replicas-engine 0.1.143 → 0.1.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/src/{chunk-XCFRYWEV.js → chunk-2Y7PD56W.js} +12 -12
  2. package/dist/src/{chunk-JFXVYYQY.js → chunk-5VUQ55WW.js} +19 -19
  3. package/dist/src/{chunk-NPXMDMPW.js → chunk-AAVVX4U5.js} +6 -6
  4. package/dist/src/{chunk-J3WZZOOL.js → chunk-BUG7ZAQW.js} +72 -355
  5. package/dist/src/{chunk-TY2FR253.js → chunk-SGITM26Q.js} +309 -22
  6. package/dist/src/{chunk-YDW6RZI2.js → chunk-ST5JVROM.js} +2 -2
  7. package/dist/src/{chunk-WCAERHFE.js → chunk-SWX24AGM.js} +1 -1
  8. package/dist/src/{chunk-7RS3TOFT.js → chunk-TU2SAX7Z.js} +1072 -1228
  9. package/dist/src/{chunk-MCYTXPBZ.js → chunk-WPAL27HA.js} +2 -2
  10. package/dist/src/{chunk-N2BGF5AZ.js → chunk-ZNARSMJG.js} +1 -1
  11. package/dist/src/{dist-es-UV765YRF.js → dist-es-BUG4C6LP.js} +18 -18
  12. package/dist/src/{dist-es-3LYC7DO3.js → dist-es-F6RG3S4O.js} +12 -14
  13. package/dist/src/{dist-es-KHBICPEM.js → dist-es-GGHPJZ3K.js} +19 -19
  14. package/dist/src/{dist-es-7DTYZ3KD.js → dist-es-GZBSW2H3.js} +27 -27
  15. package/dist/src/{dist-es-YWO2URNL.js → dist-es-JIV2SPEM.js} +7 -7
  16. package/dist/src/{dist-es-BNJQGHZR.js → dist-es-Q3YZVSCP.js} +7 -7
  17. package/dist/src/{dist-es-EVINFDC2.js → dist-es-YKS4LXBO.js} +3 -3
  18. package/dist/src/index.js +4 -109
  19. package/dist/src/{loadSso-ZRFAKENS.js → loadSso-3WFGTQV7.js} +109 -148
  20. package/dist/src/{signin-PNR24U2H.js → signin-RSKKVVIS.js} +123 -177
  21. package/dist/src/{sso-oidc-O55BGCVQ.js → sso-oidc-LBVW2ORP.js} +111 -150
  22. package/dist/src/{sts-MRC7OH6Z.js → sts-DKGAU6YE.js} +2911 -718
  23. package/package.json +1 -1
  24. package/dist/src/chunk-5V5ZNFZK.js +0 -178
  25. package/dist/src/event-streams-IFAW3KBX.js +0 -244
@@ -3,21 +3,19 @@ import {
3
3
  loadConfig,
4
4
  memoize,
5
5
  parseUrl
6
- } from "./chunk-XCFRYWEV.js";
7
- import {
8
- CONFIG_PREFIX_SEPARATOR
9
- } from "./chunk-JFXVYYQY.js";
6
+ } from "./chunk-2Y7PD56W.js";
10
7
  import {
11
8
  HttpResponse,
12
9
  escapeUri,
13
10
  fromBase64,
14
11
  fromHex,
12
+ parseRfc7231DateTime,
15
13
  toBase64,
16
14
  toHex
17
- } from "./chunk-TY2FR253.js";
15
+ } from "./chunk-SGITM26Q.js";
18
16
  import {
19
17
  HttpRequest
20
- } from "./chunk-WCAERHFE.js";
18
+ } from "./chunk-SWX24AGM.js";
21
19
  import {
22
20
  fromArrayBuffer,
23
21
  fromString,
@@ -25,9 +23,15 @@ import {
25
23
  isArrayBuffer,
26
24
  toUtf8
27
25
  } from "./chunk-ERL3EC7G.js";
26
+ import {
27
+ CONFIG_PREFIX_SEPARATOR
28
+ } from "./chunk-5VUQ55WW.js";
28
29
  import {
29
30
  setCredentialFeature
30
- } from "./chunk-N2BGF5AZ.js";
31
+ } from "./chunk-ZNARSMJG.js";
32
+ import {
33
+ ProviderError
34
+ } from "./chunk-ST5JVROM.js";
31
35
 
32
36
  // ../node_modules/.bun/@smithy+middleware-stack@4.2.14/node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js
33
37
  var getAllAliases = (name, aliases) => {
@@ -370,6 +374,166 @@ var deref = (schemaRef) => {
370
374
  return schemaRef;
371
375
  };
372
376
 
377
+ // ../node_modules/.bun/@smithy+protocol-http@5.3.14/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
378
+ var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
379
+ return {
380
+ setHttpHandler(handler) {
381
+ runtimeConfig.httpHandler = handler;
382
+ },
383
+ httpHandler() {
384
+ return runtimeConfig.httpHandler;
385
+ },
386
+ updateHttpClientConfig(key, value) {
387
+ runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
388
+ },
389
+ httpHandlerConfigs() {
390
+ return runtimeConfig.httpHandler.httpHandlerConfigs();
391
+ }
392
+ };
393
+ };
394
+ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
395
+ return {
396
+ httpHandler: httpHandlerExtensionConfiguration.httpHandler()
397
+ };
398
+ };
399
+
400
+ // ../node_modules/.bun/@smithy+util-middleware@4.2.14/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
401
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
402
+
403
+ // ../node_modules/.bun/@smithy+util-middleware@4.2.14/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
404
+ var normalizeProvider = (input) => {
405
+ if (typeof input === "function")
406
+ return input;
407
+ const promisified = Promise.resolve(input);
408
+ return () => promisified;
409
+ };
410
+
411
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
412
+ var operation = (namespace, name, traits, input, output) => ({
413
+ name,
414
+ namespace,
415
+ traits,
416
+ input,
417
+ output
418
+ });
419
+
420
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
421
+ var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
422
+ const { response } = await next(args);
423
+ const { operationSchema } = getSmithyContext(context);
424
+ const [, ns, n, t, i, o] = operationSchema ?? [];
425
+ try {
426
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
427
+ ...config,
428
+ ...context
429
+ }, response);
430
+ return {
431
+ response,
432
+ output: parsed
433
+ };
434
+ } catch (error) {
435
+ Object.defineProperty(error, "$response", {
436
+ value: response,
437
+ enumerable: false,
438
+ writable: false,
439
+ configurable: false
440
+ });
441
+ if (!("$metadata" in error)) {
442
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
443
+ try {
444
+ error.message += "\n " + hint;
445
+ } catch (e) {
446
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
447
+ console.warn(hint);
448
+ } else {
449
+ context.logger?.warn?.(hint);
450
+ }
451
+ }
452
+ if (typeof error.$responseBodyText !== "undefined") {
453
+ if (error.$response) {
454
+ error.$response.body = error.$responseBodyText;
455
+ }
456
+ }
457
+ try {
458
+ if (HttpResponse.isInstance(response)) {
459
+ const { headers = {} } = response;
460
+ const headerEntries = Object.entries(headers);
461
+ error.$metadata = {
462
+ httpStatusCode: response.statusCode,
463
+ requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
464
+ extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
465
+ cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
466
+ };
467
+ }
468
+ } catch (e) {
469
+ }
470
+ }
471
+ throw error;
472
+ }
473
+ };
474
+ var findHeader = (pattern, headers) => {
475
+ return (headers.find(([k]) => {
476
+ return k.match(pattern);
477
+ }) || [void 0, void 0])[1];
478
+ };
479
+
480
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js
481
+ var toEndpointV1 = (endpoint) => {
482
+ if (typeof endpoint === "object") {
483
+ if ("url" in endpoint) {
484
+ const v1Endpoint = parseUrl(endpoint.url);
485
+ if (endpoint.headers) {
486
+ v1Endpoint.headers = {};
487
+ for (const name in endpoint.headers) {
488
+ v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
489
+ }
490
+ }
491
+ return v1Endpoint;
492
+ }
493
+ return endpoint;
494
+ }
495
+ return parseUrl(endpoint);
496
+ };
497
+
498
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
499
+ var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
500
+ const { operationSchema } = getSmithyContext(context);
501
+ const [, ns, n, t, i, o] = operationSchema ?? [];
502
+ const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
503
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
504
+ ...config,
505
+ ...context,
506
+ endpoint
507
+ });
508
+ return next({
509
+ ...args,
510
+ request
511
+ });
512
+ };
513
+
514
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
515
+ var deserializerMiddlewareOption = {
516
+ name: "deserializerMiddleware",
517
+ step: "deserialize",
518
+ tags: ["DESERIALIZER"],
519
+ override: true
520
+ };
521
+ var serializerMiddlewareOption = {
522
+ name: "serializerMiddleware",
523
+ step: "serialize",
524
+ tags: ["SERIALIZER"],
525
+ override: true
526
+ };
527
+ function getSchemaSerdePlugin(config) {
528
+ return {
529
+ applyToStack: (commandStack) => {
530
+ commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
531
+ commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
532
+ config.protocol.setSerdeContext(config);
533
+ }
534
+ };
535
+ }
536
+
373
537
  // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
374
538
  var traitsCache = [];
375
539
  function translateTraits(indicator) {
@@ -680,6 +844,97 @@ function member(memberSchema, memberName) {
680
844
  var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
681
845
  var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
682
846
 
847
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
848
+ var TypeRegistry = class _TypeRegistry {
849
+ namespace;
850
+ schemas;
851
+ exceptions;
852
+ static registries = /* @__PURE__ */ new Map();
853
+ constructor(namespace, schemas = /* @__PURE__ */ new Map(), exceptions = /* @__PURE__ */ new Map()) {
854
+ this.namespace = namespace;
855
+ this.schemas = schemas;
856
+ this.exceptions = exceptions;
857
+ }
858
+ static for(namespace) {
859
+ if (!_TypeRegistry.registries.has(namespace)) {
860
+ _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
861
+ }
862
+ return _TypeRegistry.registries.get(namespace);
863
+ }
864
+ copyFrom(other) {
865
+ const { schemas, exceptions } = this;
866
+ for (const [k, v] of other.schemas) {
867
+ if (!schemas.has(k)) {
868
+ schemas.set(k, v);
869
+ }
870
+ }
871
+ for (const [k, v] of other.exceptions) {
872
+ if (!exceptions.has(k)) {
873
+ exceptions.set(k, v);
874
+ }
875
+ }
876
+ }
877
+ register(shapeId, schema) {
878
+ const qualifiedName = this.normalizeShapeId(shapeId);
879
+ for (const r of [this, _TypeRegistry.for(qualifiedName.split("#")[0])]) {
880
+ r.schemas.set(qualifiedName, schema);
881
+ }
882
+ }
883
+ getSchema(shapeId) {
884
+ const id = this.normalizeShapeId(shapeId);
885
+ if (!this.schemas.has(id)) {
886
+ throw new Error(`@smithy/core/schema - schema not found for ${id}`);
887
+ }
888
+ return this.schemas.get(id);
889
+ }
890
+ registerError(es, ctor) {
891
+ const $error = es;
892
+ const ns = $error[1];
893
+ for (const r of [this, _TypeRegistry.for(ns)]) {
894
+ r.schemas.set(ns + "#" + $error[2], $error);
895
+ r.exceptions.set($error, ctor);
896
+ }
897
+ }
898
+ getErrorCtor(es) {
899
+ const $error = es;
900
+ if (this.exceptions.has($error)) {
901
+ return this.exceptions.get($error);
902
+ }
903
+ const registry = _TypeRegistry.for($error[1]);
904
+ return registry.exceptions.get($error);
905
+ }
906
+ getBaseException() {
907
+ for (const exceptionKey of this.exceptions.keys()) {
908
+ if (Array.isArray(exceptionKey)) {
909
+ const [, ns, name] = exceptionKey;
910
+ const id = ns + "#" + name;
911
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
912
+ return exceptionKey;
913
+ }
914
+ }
915
+ }
916
+ return void 0;
917
+ }
918
+ find(predicate) {
919
+ for (const schema of this.schemas.values()) {
920
+ if (predicate(schema)) {
921
+ return schema;
922
+ }
923
+ }
924
+ return void 0;
925
+ }
926
+ clear() {
927
+ this.schemas.clear();
928
+ this.exceptions.clear();
929
+ }
930
+ normalizeShapeId(shapeId) {
931
+ if (shapeId.includes("#")) {
932
+ return shapeId;
933
+ }
934
+ return this.namespace + "#" + shapeId;
935
+ }
936
+ };
937
+
683
938
  // ../node_modules/.bun/@smithy+smithy-client@4.12.13/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
684
939
  var SENSITIVE_STRING = "***SensitiveInformation***";
685
940
  function schemaLogFilter(schema, data) {
@@ -703,9 +958,9 @@ function schemaLogFilter(schema, data) {
703
958
  } else if (ns.isStructSchema() && typeof data === "object") {
704
959
  const object = data;
705
960
  const newObject = {};
706
- for (const [member3, memberNs] of ns.structIterator()) {
707
- if (object[member3] != null) {
708
- newObject[member3] = schemaLogFilter(memberNs, object[member3]);
961
+ for (const [member2, memberNs] of ns.structIterator()) {
962
+ if (object[member2] != null) {
963
+ newObject[member2] = schemaLogFilter(memberNs, object[member2]);
709
964
  }
710
965
  }
711
966
  return newObject;
@@ -844,30 +1099,7 @@ var ClassBuilder = class {
844
1099
  }
845
1100
  };
846
1101
 
847
- // ../node_modules/.bun/@smithy+protocol-http@5.3.12/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
848
- var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
849
- return {
850
- setHttpHandler(handler) {
851
- runtimeConfig.httpHandler = handler;
852
- },
853
- httpHandler() {
854
- return runtimeConfig.httpHandler;
855
- },
856
- updateHttpClientConfig(key, value) {
857
- runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
858
- },
859
- httpHandlerConfigs() {
860
- return runtimeConfig.httpHandler.httpHandlerConfigs();
861
- }
862
- };
863
- };
864
- var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
865
- return {
866
- httpHandler: httpHandlerExtensionConfiguration.httpHandler()
867
- };
868
- };
869
-
870
- // ../node_modules/.bun/@aws-sdk+middleware-host-header@3.972.8/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
1102
+ // ../node_modules/.bun/@aws-sdk+middleware-host-header@3.972.10/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
871
1103
  function resolveHostHeaderConfig(input) {
872
1104
  return input;
873
1105
  }
@@ -900,7 +1132,7 @@ var getHostHeaderPlugin = (options) => ({
900
1132
  }
901
1133
  });
902
1134
 
903
- // ../node_modules/.bun/@aws-sdk+middleware-logger@3.972.8/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
1135
+ // ../node_modules/.bun/@aws-sdk+middleware-logger@3.972.10/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
904
1136
  var loggerMiddleware = () => (next, context) => async (args) => {
905
1137
  try {
906
1138
  const response = await next(args);
@@ -943,7 +1175,7 @@ var getLoggerPlugin = (options) => ({
943
1175
  }
944
1176
  });
945
1177
 
946
- // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.9/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js
1178
+ // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.11/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js
947
1179
  var recursionDetectionMiddlewareOptions = {
948
1180
  step: "build",
949
1181
  tags: ["RECURSION_DETECTION"],
@@ -1063,7 +1295,7 @@ var InvokeStore;
1063
1295
  } : void 0;
1064
1296
  })(InvokeStore || (InvokeStore = {}));
1065
1297
 
1066
- // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.9/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js
1298
+ // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.11/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js
1067
1299
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
1068
1300
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
1069
1301
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
@@ -1091,7 +1323,7 @@ var recursionDetectionMiddleware = () => (next) => async (args) => {
1091
1323
  });
1092
1324
  };
1093
1325
 
1094
- // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.9/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js
1326
+ // ../node_modules/.bun/@aws-sdk+middleware-recursion-detection@3.972.11/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js
1095
1327
  var getRecursionDetectionPlugin = (options) => ({
1096
1328
  applyToStack: (clientStack) => {
1097
1329
  clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
@@ -1145,18 +1377,7 @@ var decorateServiceException = (exception, additions = {}) => {
1145
1377
  return exception;
1146
1378
  };
1147
1379
 
1148
- // ../node_modules/.bun/@smithy+util-middleware@4.2.12/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
1149
- var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
1150
-
1151
- // ../node_modules/.bun/@smithy+util-middleware@4.2.12/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
1152
- var normalizeProvider = (input) => {
1153
- if (typeof input === "function")
1154
- return input;
1155
- const promisified = Promise.resolve(input);
1156
- return () => promisified;
1157
- };
1158
-
1159
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
1380
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
1160
1381
  var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
1161
1382
  if (!authSchemePreference || authSchemePreference.length === 0) {
1162
1383
  return candidateAuthOptions;
@@ -1166,723 +1387,194 @@ var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
1166
1387
  for (const candidateAuthOption of candidateAuthOptions) {
1167
1388
  const candidateAuthSchemeName = candidateAuthOption.schemeId.split("#")[1];
1168
1389
  if (candidateAuthSchemeName === preferredSchemeName) {
1169
- preferredAuthOptions.push(candidateAuthOption);
1170
- }
1171
- }
1172
- }
1173
- for (const candidateAuthOption of candidateAuthOptions) {
1174
- if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) {
1175
- preferredAuthOptions.push(candidateAuthOption);
1176
- }
1177
- }
1178
- return preferredAuthOptions;
1179
- };
1180
-
1181
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
1182
- function convertHttpAuthSchemesToMap(httpAuthSchemes) {
1183
- const map = /* @__PURE__ */ new Map();
1184
- for (const scheme of httpAuthSchemes) {
1185
- map.set(scheme.schemeId, scheme);
1186
- }
1187
- return map;
1188
- }
1189
- var httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => {
1190
- const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input));
1191
- const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
1192
- const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
1193
- const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
1194
- const smithyContext = getSmithyContext(context);
1195
- const failureReasons = [];
1196
- for (const option of resolvedOptions) {
1197
- const scheme = authSchemes.get(option.schemeId);
1198
- if (!scheme) {
1199
- failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
1200
- continue;
1201
- }
1202
- const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
1203
- if (!identityProvider) {
1204
- failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
1205
- continue;
1206
- }
1207
- const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
1208
- option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
1209
- option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
1210
- smithyContext.selectedHttpAuthScheme = {
1211
- httpAuthOption: option,
1212
- identity: await identityProvider(option.identityProperties),
1213
- signer: scheme.signer
1214
- };
1215
- break;
1216
- }
1217
- if (!smithyContext.selectedHttpAuthScheme) {
1218
- throw new Error(failureReasons.join("\n"));
1219
- }
1220
- return next(args);
1221
- };
1222
-
1223
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
1224
- var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
1225
- step: "serialize",
1226
- tags: ["HTTP_AUTH_SCHEME"],
1227
- name: "httpAuthSchemeMiddleware",
1228
- override: true,
1229
- relation: "before",
1230
- toMiddleware: "endpointV2Middleware"
1231
- };
1232
- var getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({
1233
- applyToStack: (clientStack) => {
1234
- clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
1235
- httpAuthSchemeParametersProvider,
1236
- identityProviderConfigProvider
1237
- }), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
1238
- }
1239
- });
1240
-
1241
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
1242
- var defaultErrorHandler = (signingProperties) => (error) => {
1243
- throw error;
1244
- };
1245
- var defaultSuccessHandler = (httpResponse, signingProperties) => {
1246
- };
1247
- var httpSigningMiddleware = (config) => (next, context) => async (args) => {
1248
- if (!HttpRequest.isInstance(args.request)) {
1249
- return next(args);
1250
- }
1251
- const smithyContext = getSmithyContext(context);
1252
- const scheme = smithyContext.selectedHttpAuthScheme;
1253
- if (!scheme) {
1254
- throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
1255
- }
1256
- const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
1257
- const output = await next({
1258
- ...args,
1259
- request: await signer.sign(args.request, identity, signingProperties)
1260
- }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
1261
- (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
1262
- return output;
1263
- };
1264
-
1265
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
1266
- var httpSigningMiddlewareOptions = {
1267
- step: "finalizeRequest",
1268
- tags: ["HTTP_SIGNING"],
1269
- name: "httpSigningMiddleware",
1270
- aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"],
1271
- override: true,
1272
- relation: "after",
1273
- toMiddleware: "retryMiddleware"
1274
- };
1275
- var getHttpSigningPlugin = (config) => ({
1276
- applyToStack: (clientStack) => {
1277
- clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
1278
- }
1279
- });
1280
-
1281
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
1282
- var operation = (namespace, name, traits, input, output) => ({
1283
- name,
1284
- namespace,
1285
- traits,
1286
- input,
1287
- output
1288
- });
1289
-
1290
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
1291
- var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
1292
- const { response } = await next(args);
1293
- const { operationSchema } = getSmithyContext(context);
1294
- const [, ns, n, t, i, o] = operationSchema ?? [];
1295
- try {
1296
- const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
1297
- ...config,
1298
- ...context
1299
- }, response);
1300
- return {
1301
- response,
1302
- output: parsed
1303
- };
1304
- } catch (error) {
1305
- Object.defineProperty(error, "$response", {
1306
- value: response,
1307
- enumerable: false,
1308
- writable: false,
1309
- configurable: false
1310
- });
1311
- if (!("$metadata" in error)) {
1312
- const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
1313
- try {
1314
- error.message += "\n " + hint;
1315
- } catch (e) {
1316
- if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
1317
- console.warn(hint);
1318
- } else {
1319
- context.logger?.warn?.(hint);
1320
- }
1321
- }
1322
- if (typeof error.$responseBodyText !== "undefined") {
1323
- if (error.$response) {
1324
- error.$response.body = error.$responseBodyText;
1325
- }
1326
- }
1327
- try {
1328
- if (HttpResponse.isInstance(response)) {
1329
- const { headers = {} } = response;
1330
- const headerEntries = Object.entries(headers);
1331
- error.$metadata = {
1332
- httpStatusCode: response.statusCode,
1333
- requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
1334
- extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
1335
- cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
1336
- };
1337
- }
1338
- } catch (e) {
1339
- }
1340
- }
1341
- throw error;
1342
- }
1343
- };
1344
- var findHeader = (pattern, headers) => {
1345
- return (headers.find(([k]) => {
1346
- return k.match(pattern);
1347
- }) || [void 0, void 0])[1];
1348
- };
1349
-
1350
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js
1351
- var toEndpointV1 = (endpoint) => {
1352
- if (typeof endpoint === "object") {
1353
- if ("url" in endpoint) {
1354
- const v1Endpoint = parseUrl(endpoint.url);
1355
- if (endpoint.headers) {
1356
- v1Endpoint.headers = {};
1357
- for (const [name, values] of Object.entries(endpoint.headers)) {
1358
- v1Endpoint.headers[name.toLowerCase()] = values.join(", ");
1359
- }
1360
- }
1361
- return v1Endpoint;
1362
- }
1363
- return endpoint;
1364
- }
1365
- return parseUrl(endpoint);
1366
- };
1367
-
1368
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
1369
- var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
1370
- const { operationSchema } = getSmithyContext(context);
1371
- const [, ns, n, t, i, o] = operationSchema ?? [];
1372
- const endpoint = context.endpointV2 ? async () => toEndpointV1(context.endpointV2) : config.endpoint;
1373
- const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
1374
- ...config,
1375
- ...context,
1376
- endpoint
1377
- });
1378
- return next({
1379
- ...args,
1380
- request
1381
- });
1382
- };
1383
-
1384
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
1385
- var deserializerMiddlewareOption = {
1386
- name: "deserializerMiddleware",
1387
- step: "deserialize",
1388
- tags: ["DESERIALIZER"],
1389
- override: true
1390
- };
1391
- var serializerMiddlewareOption = {
1392
- name: "serializerMiddleware",
1393
- step: "serialize",
1394
- tags: ["SERIALIZER"],
1395
- override: true
1396
- };
1397
- function getSchemaSerdePlugin(config) {
1398
- return {
1399
- applyToStack: (commandStack) => {
1400
- commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
1401
- commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
1402
- config.protocol.setSerdeContext(config);
1403
- }
1404
- };
1405
- }
1406
-
1407
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
1408
- var TypeRegistry = class _TypeRegistry {
1409
- namespace;
1410
- schemas;
1411
- exceptions;
1412
- static registries = /* @__PURE__ */ new Map();
1413
- constructor(namespace, schemas = /* @__PURE__ */ new Map(), exceptions = /* @__PURE__ */ new Map()) {
1414
- this.namespace = namespace;
1415
- this.schemas = schemas;
1416
- this.exceptions = exceptions;
1417
- }
1418
- static for(namespace) {
1419
- if (!_TypeRegistry.registries.has(namespace)) {
1420
- _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
1421
- }
1422
- return _TypeRegistry.registries.get(namespace);
1423
- }
1424
- copyFrom(other) {
1425
- const { schemas, exceptions } = this;
1426
- for (const [k, v] of other.schemas) {
1427
- if (!schemas.has(k)) {
1428
- schemas.set(k, v);
1429
- }
1430
- }
1431
- for (const [k, v] of other.exceptions) {
1432
- if (!exceptions.has(k)) {
1433
- exceptions.set(k, v);
1434
- }
1435
- }
1436
- }
1437
- register(shapeId, schema) {
1438
- const qualifiedName = this.normalizeShapeId(shapeId);
1439
- for (const r of [this, _TypeRegistry.for(qualifiedName.split("#")[0])]) {
1440
- r.schemas.set(qualifiedName, schema);
1441
- }
1442
- }
1443
- getSchema(shapeId) {
1444
- const id = this.normalizeShapeId(shapeId);
1445
- if (!this.schemas.has(id)) {
1446
- throw new Error(`@smithy/core/schema - schema not found for ${id}`);
1447
- }
1448
- return this.schemas.get(id);
1449
- }
1450
- registerError(es, ctor) {
1451
- const $error = es;
1452
- const ns = $error[1];
1453
- for (const r of [this, _TypeRegistry.for(ns)]) {
1454
- r.schemas.set(ns + "#" + $error[2], $error);
1455
- r.exceptions.set($error, ctor);
1456
- }
1457
- }
1458
- getErrorCtor(es) {
1459
- const $error = es;
1460
- if (this.exceptions.has($error)) {
1461
- return this.exceptions.get($error);
1462
- }
1463
- const registry = _TypeRegistry.for($error[1]);
1464
- return registry.exceptions.get($error);
1465
- }
1466
- getBaseException() {
1467
- for (const exceptionKey of this.exceptions.keys()) {
1468
- if (Array.isArray(exceptionKey)) {
1469
- const [, ns, name] = exceptionKey;
1470
- const id = ns + "#" + name;
1471
- if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
1472
- return exceptionKey;
1473
- }
1474
- }
1475
- }
1476
- return void 0;
1477
- }
1478
- find(predicate) {
1479
- return [...this.schemas.values()].find(predicate);
1480
- }
1481
- clear() {
1482
- this.schemas.clear();
1483
- this.exceptions.clear();
1484
- }
1485
- normalizeShapeId(shapeId) {
1486
- if (shapeId.includes("#")) {
1487
- return shapeId;
1488
- }
1489
- return this.namespace + "#" + shapeId;
1490
- }
1491
- };
1492
-
1493
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
1494
- var DefaultIdentityProviderConfig = class {
1495
- authSchemes = /* @__PURE__ */ new Map();
1496
- constructor(config) {
1497
- for (const [key, value] of Object.entries(config)) {
1498
- if (value !== void 0) {
1499
- this.authSchemes.set(key, value);
1500
- }
1501
- }
1502
- }
1503
- getIdentityProvider(schemeId) {
1504
- return this.authSchemes.get(schemeId);
1505
- }
1506
- };
1507
-
1508
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/normalizeProvider.js
1509
- var normalizeProvider2 = (input) => {
1510
- if (typeof input === "function")
1511
- return input;
1512
- const promisified = Promise.resolve(input);
1513
- return () => promisified;
1514
- };
1515
-
1516
- // ../node_modules/.bun/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
1517
- var toUint8Array = (data) => {
1518
- if (typeof data === "string") {
1519
- return fromUtf8(data);
1520
- }
1521
- if (ArrayBuffer.isView(data)) {
1522
- return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1523
- }
1524
- return new Uint8Array(data);
1525
- };
1526
-
1527
- // ../node_modules/.bun/@smithy+util-stream@4.5.21/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
1528
- var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
1529
- static fromString(source, encoding = "utf-8") {
1530
- if (typeof source === "string") {
1531
- if (encoding === "base64") {
1532
- return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
1533
- }
1534
- return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
1535
- }
1536
- throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
1537
- }
1538
- static mutate(source) {
1539
- Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
1540
- return source;
1541
- }
1542
- transformToString(encoding = "utf-8") {
1543
- if (encoding === "base64") {
1544
- return toBase64(this);
1545
- }
1546
- return toUtf8(this);
1547
- }
1548
- };
1549
-
1550
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
1551
- var collectBody = async (streamBody = new Uint8Array(), context) => {
1552
- if (streamBody instanceof Uint8Array) {
1553
- return Uint8ArrayBlobAdapter.mutate(streamBody);
1554
- }
1555
- if (!streamBody) {
1556
- return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
1557
- }
1558
- const fromContext = context.streamCollector(streamBody);
1559
- return Uint8ArrayBlobAdapter.mutate(await fromContext);
1560
- };
1561
-
1562
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
1563
- function extendedEncodeURIComponent(str) {
1564
- return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
1565
- return "%" + c.charCodeAt(0).toString(16).toUpperCase();
1566
- });
1567
- }
1568
-
1569
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/deref.js
1570
- var deref2 = (schemaRef) => {
1571
- if (typeof schemaRef === "function") {
1572
- return schemaRef();
1573
- }
1574
- return schemaRef;
1575
- };
1576
-
1577
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
1578
- var traitsCache2 = [];
1579
- function translateTraits2(indicator) {
1580
- if (typeof indicator === "object") {
1581
- return indicator;
1582
- }
1583
- indicator = indicator | 0;
1584
- if (traitsCache2[indicator]) {
1585
- return traitsCache2[indicator];
1586
- }
1587
- const traits = {};
1588
- let i = 0;
1589
- for (const trait of [
1590
- "httpLabel",
1591
- "idempotent",
1592
- "idempotencyToken",
1593
- "sensitive",
1594
- "httpPayload",
1595
- "httpResponseCode",
1596
- "httpQueryParams"
1597
- ]) {
1598
- if ((indicator >> i++ & 1) === 1) {
1599
- traits[trait] = 1;
1600
- }
1601
- }
1602
- return traitsCache2[indicator] = traits;
1603
- }
1604
-
1605
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
1606
- var anno2 = {
1607
- it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it"),
1608
- ns: /* @__PURE__ */ Symbol.for("@smithy/ns")
1609
- };
1610
- var simpleSchemaCacheN2 = [];
1611
- var simpleSchemaCacheS2 = {};
1612
- var NormalizedSchema2 = class _NormalizedSchema {
1613
- ref;
1614
- memberName;
1615
- static symbol = /* @__PURE__ */ Symbol.for("@smithy/nor");
1616
- symbol = _NormalizedSchema.symbol;
1617
- name;
1618
- schema;
1619
- _isMemberSchema;
1620
- traits;
1621
- memberTraits;
1622
- normalizedTraits;
1623
- constructor(ref, memberName) {
1624
- this.ref = ref;
1625
- this.memberName = memberName;
1626
- const traitStack = [];
1627
- let _ref = ref;
1628
- let schema = ref;
1629
- this._isMemberSchema = false;
1630
- while (isMemberSchema2(_ref)) {
1631
- traitStack.push(_ref[1]);
1632
- _ref = _ref[0];
1633
- schema = deref2(_ref);
1634
- this._isMemberSchema = true;
1635
- }
1636
- if (traitStack.length > 0) {
1637
- this.memberTraits = {};
1638
- for (let i = traitStack.length - 1; i >= 0; --i) {
1639
- const traitSet = traitStack[i];
1640
- Object.assign(this.memberTraits, translateTraits2(traitSet));
1641
- }
1642
- } else {
1643
- this.memberTraits = 0;
1644
- }
1645
- if (schema instanceof _NormalizedSchema) {
1646
- const computedMemberTraits = this.memberTraits;
1647
- Object.assign(this, schema);
1648
- this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
1649
- this.normalizedTraits = void 0;
1650
- this.memberName = memberName ?? schema.memberName;
1651
- return;
1652
- }
1653
- this.schema = deref2(schema);
1654
- if (isStaticSchema2(this.schema)) {
1655
- this.name = `${this.schema[1]}#${this.schema[2]}`;
1656
- this.traits = this.schema[3];
1657
- } else {
1658
- this.name = this.memberName ?? String(schema);
1659
- this.traits = 0;
1660
- }
1661
- if (this._isMemberSchema && !memberName) {
1662
- throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
1663
- }
1664
- }
1665
- static [Symbol.hasInstance](lhs) {
1666
- const isPrototype = this.prototype.isPrototypeOf(lhs);
1667
- if (!isPrototype && typeof lhs === "object" && lhs !== null) {
1668
- const ns = lhs;
1669
- return ns.symbol === this.symbol;
1670
- }
1671
- return isPrototype;
1672
- }
1673
- static of(ref) {
1674
- const keyAble = typeof ref === "function" || typeof ref === "object" && ref !== null;
1675
- if (typeof ref === "number") {
1676
- if (simpleSchemaCacheN2[ref]) {
1677
- return simpleSchemaCacheN2[ref];
1678
- }
1679
- } else if (typeof ref === "string") {
1680
- if (simpleSchemaCacheS2[ref]) {
1681
- return simpleSchemaCacheS2[ref];
1682
- }
1683
- } else if (keyAble) {
1684
- if (ref[anno2.ns]) {
1685
- return ref[anno2.ns];
1686
- }
1687
- }
1688
- const sc = deref2(ref);
1689
- if (sc instanceof _NormalizedSchema) {
1690
- return sc;
1691
- }
1692
- if (isMemberSchema2(sc)) {
1693
- const [ns2, traits] = sc;
1694
- if (ns2 instanceof _NormalizedSchema) {
1695
- Object.assign(ns2.getMergedTraits(), translateTraits2(traits));
1696
- return ns2;
1697
- }
1698
- throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
1699
- }
1700
- const ns = new _NormalizedSchema(sc);
1701
- if (keyAble) {
1702
- return ref[anno2.ns] = ns;
1703
- }
1704
- if (typeof sc === "string") {
1705
- return simpleSchemaCacheS2[sc] = ns;
1706
- }
1707
- if (typeof sc === "number") {
1708
- return simpleSchemaCacheN2[sc] = ns;
1709
- }
1710
- return ns;
1711
- }
1712
- getSchema() {
1713
- const sc = this.schema;
1714
- if (Array.isArray(sc) && sc[0] === 0) {
1715
- return sc[4];
1716
- }
1717
- return sc;
1718
- }
1719
- getName(withNamespace = false) {
1720
- const { name } = this;
1721
- const short = !withNamespace && name && name.includes("#");
1722
- return short ? name.split("#")[1] : name || void 0;
1723
- }
1724
- getMemberName() {
1725
- return this.memberName;
1726
- }
1727
- isMemberSchema() {
1728
- return this._isMemberSchema;
1729
- }
1730
- isListSchema() {
1731
- const sc = this.getSchema();
1732
- return typeof sc === "number" ? sc >= 64 && sc < 128 : sc[0] === 1;
1733
- }
1734
- isMapSchema() {
1735
- const sc = this.getSchema();
1736
- return typeof sc === "number" ? sc >= 128 && sc <= 255 : sc[0] === 2;
1737
- }
1738
- isStructSchema() {
1739
- const sc = this.getSchema();
1740
- if (typeof sc !== "object") {
1741
- return false;
1742
- }
1743
- const id = sc[0];
1744
- return id === 3 || id === -3 || id === 4;
1745
- }
1746
- isUnionSchema() {
1747
- const sc = this.getSchema();
1748
- if (typeof sc !== "object") {
1749
- return false;
1750
- }
1751
- return sc[0] === 4;
1752
- }
1753
- isBlobSchema() {
1754
- const sc = this.getSchema();
1755
- return sc === 21 || sc === 42;
1756
- }
1757
- isTimestampSchema() {
1758
- const sc = this.getSchema();
1759
- return typeof sc === "number" && sc >= 4 && sc <= 7;
1760
- }
1761
- isUnitSchema() {
1762
- return this.getSchema() === "unit";
1763
- }
1764
- isDocumentSchema() {
1765
- return this.getSchema() === 15;
1766
- }
1767
- isStringSchema() {
1768
- return this.getSchema() === 0;
1769
- }
1770
- isBooleanSchema() {
1771
- return this.getSchema() === 2;
1390
+ preferredAuthOptions.push(candidateAuthOption);
1391
+ }
1392
+ }
1772
1393
  }
1773
- isNumericSchema() {
1774
- return this.getSchema() === 1;
1394
+ for (const candidateAuthOption of candidateAuthOptions) {
1395
+ if (!preferredAuthOptions.find(({ schemeId }) => schemeId === candidateAuthOption.schemeId)) {
1396
+ preferredAuthOptions.push(candidateAuthOption);
1397
+ }
1775
1398
  }
1776
- isBigIntegerSchema() {
1777
- return this.getSchema() === 17;
1399
+ return preferredAuthOptions;
1400
+ };
1401
+
1402
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
1403
+ function convertHttpAuthSchemesToMap(httpAuthSchemes) {
1404
+ const map = /* @__PURE__ */ new Map();
1405
+ for (const scheme of httpAuthSchemes) {
1406
+ map.set(scheme.schemeId, scheme);
1778
1407
  }
1779
- isBigDecimalSchema() {
1780
- return this.getSchema() === 19;
1408
+ return map;
1409
+ }
1410
+ var httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (args) => {
1411
+ const options = config.httpAuthSchemeProvider(await mwOptions.httpAuthSchemeParametersProvider(config, context, args.input));
1412
+ const authSchemePreference = config.authSchemePreference ? await config.authSchemePreference() : [];
1413
+ const resolvedOptions = resolveAuthOptions(options, authSchemePreference);
1414
+ const authSchemes = convertHttpAuthSchemesToMap(config.httpAuthSchemes);
1415
+ const smithyContext = getSmithyContext(context);
1416
+ const failureReasons = [];
1417
+ for (const option of resolvedOptions) {
1418
+ const scheme = authSchemes.get(option.schemeId);
1419
+ if (!scheme) {
1420
+ failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` was not enabled for this service.`);
1421
+ continue;
1422
+ }
1423
+ const identityProvider = scheme.identityProvider(await mwOptions.identityProviderConfigProvider(config));
1424
+ if (!identityProvider) {
1425
+ failureReasons.push(`HttpAuthScheme \`${option.schemeId}\` did not have an IdentityProvider configured.`);
1426
+ continue;
1427
+ }
1428
+ const { identityProperties = {}, signingProperties = {} } = option.propertiesExtractor?.(config, context) || {};
1429
+ option.identityProperties = Object.assign(option.identityProperties || {}, identityProperties);
1430
+ option.signingProperties = Object.assign(option.signingProperties || {}, signingProperties);
1431
+ smithyContext.selectedHttpAuthScheme = {
1432
+ httpAuthOption: option,
1433
+ identity: await identityProvider(option.identityProperties),
1434
+ signer: scheme.signer
1435
+ };
1436
+ break;
1781
1437
  }
1782
- isStreaming() {
1783
- const { streaming } = this.getMergedTraits();
1784
- return !!streaming || this.getSchema() === 42;
1438
+ if (!smithyContext.selectedHttpAuthScheme) {
1439
+ throw new Error(failureReasons.join("\n"));
1785
1440
  }
1786
- isIdempotencyToken() {
1787
- return !!this.getMergedTraits().idempotencyToken;
1441
+ return next(args);
1442
+ };
1443
+
1444
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
1445
+ var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
1446
+ step: "serialize",
1447
+ tags: ["HTTP_AUTH_SCHEME"],
1448
+ name: "httpAuthSchemeMiddleware",
1449
+ override: true,
1450
+ relation: "before",
1451
+ toMiddleware: "endpointV2Middleware"
1452
+ };
1453
+ var getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParametersProvider, identityProviderConfigProvider }) => ({
1454
+ applyToStack: (clientStack) => {
1455
+ clientStack.addRelativeTo(httpAuthSchemeMiddleware(config, {
1456
+ httpAuthSchemeParametersProvider,
1457
+ identityProviderConfigProvider
1458
+ }), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
1788
1459
  }
1789
- getMergedTraits() {
1790
- return this.normalizedTraits ?? (this.normalizedTraits = {
1791
- ...this.getOwnTraits(),
1792
- ...this.getMemberTraits()
1793
- });
1460
+ });
1461
+
1462
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
1463
+ var defaultErrorHandler = (signingProperties) => (error) => {
1464
+ throw error;
1465
+ };
1466
+ var defaultSuccessHandler = (httpResponse, signingProperties) => {
1467
+ };
1468
+ var httpSigningMiddleware = (config) => (next, context) => async (args) => {
1469
+ if (!HttpRequest.isInstance(args.request)) {
1470
+ return next(args);
1794
1471
  }
1795
- getMemberTraits() {
1796
- return translateTraits2(this.memberTraits);
1472
+ const smithyContext = getSmithyContext(context);
1473
+ const scheme = smithyContext.selectedHttpAuthScheme;
1474
+ if (!scheme) {
1475
+ throw new Error(`No HttpAuthScheme was selected: unable to sign request`);
1797
1476
  }
1798
- getOwnTraits() {
1799
- return translateTraits2(this.traits);
1477
+ const { httpAuthOption: { signingProperties = {} }, identity, signer } = scheme;
1478
+ const output = await next({
1479
+ ...args,
1480
+ request: await signer.sign(args.request, identity, signingProperties)
1481
+ }).catch((signer.errorHandler || defaultErrorHandler)(signingProperties));
1482
+ (signer.successHandler || defaultSuccessHandler)(output.response, signingProperties);
1483
+ return output;
1484
+ };
1485
+
1486
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
1487
+ var httpSigningMiddlewareOptions = {
1488
+ step: "finalizeRequest",
1489
+ tags: ["HTTP_SIGNING"],
1490
+ name: "httpSigningMiddleware",
1491
+ aliases: ["apiKeyMiddleware", "tokenMiddleware", "awsAuthMiddleware"],
1492
+ override: true,
1493
+ relation: "after",
1494
+ toMiddleware: "retryMiddleware"
1495
+ };
1496
+ var getHttpSigningPlugin = (config) => ({
1497
+ applyToStack: (clientStack) => {
1498
+ clientStack.addRelativeTo(httpSigningMiddleware(config), httpSigningMiddlewareOptions);
1800
1499
  }
1801
- getKeySchema() {
1802
- const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
1803
- if (!isDoc && !isMap) {
1804
- throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
1500
+ });
1501
+
1502
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
1503
+ var DefaultIdentityProviderConfig = class {
1504
+ authSchemes = /* @__PURE__ */ new Map();
1505
+ constructor(config) {
1506
+ for (const key in config) {
1507
+ const value = config[key];
1508
+ if (value !== void 0) {
1509
+ this.authSchemes.set(key, value);
1510
+ }
1805
1511
  }
1806
- const schema = this.getSchema();
1807
- const memberSchema = isDoc ? 15 : schema[4] ?? 0;
1808
- return member2([memberSchema, 0], "key");
1809
1512
  }
1810
- getValueSchema() {
1811
- const sc = this.getSchema();
1812
- const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
1813
- const memberSchema = typeof sc === "number" ? 63 & sc : sc && typeof sc === "object" && (isMap || isList) ? sc[3 + sc[0]] : isDoc ? 15 : void 0;
1814
- if (memberSchema != null) {
1815
- return member2([memberSchema, 0], isMap ? "value" : "member");
1816
- }
1817
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
1513
+ getIdentityProvider(schemeId) {
1514
+ return this.authSchemes.get(schemeId);
1818
1515
  }
1819
- getMemberSchema(memberName) {
1820
- const struct = this.getSchema();
1821
- if (this.isStructSchema() && struct[4].includes(memberName)) {
1822
- const i = struct[4].indexOf(memberName);
1823
- const memberSchema = struct[5][i];
1824
- return member2(isMemberSchema2(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
1825
- }
1826
- if (this.isDocumentSchema()) {
1827
- return member2([15, 0], memberName);
1828
- }
1829
- throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${memberName}.`);
1516
+ };
1517
+
1518
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/normalizeProvider.js
1519
+ var normalizeProvider2 = (input) => {
1520
+ if (typeof input === "function")
1521
+ return input;
1522
+ const promisified = Promise.resolve(input);
1523
+ return () => promisified;
1524
+ };
1525
+
1526
+ // ../node_modules/.bun/@smithy+util-utf8@4.2.2/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
1527
+ var toUint8Array = (data) => {
1528
+ if (typeof data === "string") {
1529
+ return fromUtf8(data);
1830
1530
  }
1831
- getMemberSchemas() {
1832
- const buffer = {};
1833
- try {
1834
- for (const [k, v] of this.structIterator()) {
1835
- buffer[k] = v;
1836
- }
1837
- } catch (ignored) {
1838
- }
1839
- return buffer;
1531
+ if (ArrayBuffer.isView(data)) {
1532
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1840
1533
  }
1841
- getEventStreamMember() {
1842
- if (this.isStructSchema()) {
1843
- for (const [memberName, memberSchema] of this.structIterator()) {
1844
- if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
1845
- return memberName;
1846
- }
1534
+ return new Uint8Array(data);
1535
+ };
1536
+
1537
+ // ../node_modules/.bun/@smithy+util-stream@4.5.25/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
1538
+ var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
1539
+ static fromString(source, encoding = "utf-8") {
1540
+ if (typeof source === "string") {
1541
+ if (encoding === "base64") {
1542
+ return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
1847
1543
  }
1544
+ return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
1848
1545
  }
1849
- return "";
1546
+ throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
1850
1547
  }
1851
- *structIterator() {
1852
- if (this.isUnitSchema()) {
1853
- return;
1854
- }
1855
- if (!this.isStructSchema()) {
1856
- throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
1857
- }
1858
- const struct = this.getSchema();
1859
- const z = struct[4].length;
1860
- let it = struct[anno2.it];
1861
- if (it && z === it.length) {
1862
- yield* it;
1863
- return;
1864
- }
1865
- it = Array(z);
1866
- for (let i = 0; i < z; ++i) {
1867
- const k = struct[4][i];
1868
- const v = member2([struct[5][i], 0], k);
1869
- yield it[i] = [k, v];
1548
+ static mutate(source) {
1549
+ Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
1550
+ return source;
1551
+ }
1552
+ transformToString(encoding = "utf-8") {
1553
+ if (encoding === "base64") {
1554
+ return toBase64(this);
1870
1555
  }
1871
- struct[anno2.it] = it;
1556
+ return toUtf8(this);
1872
1557
  }
1873
1558
  };
1874
- function member2(memberSchema, memberName) {
1875
- if (memberSchema instanceof NormalizedSchema2) {
1876
- return Object.assign(memberSchema, {
1877
- memberName,
1878
- _isMemberSchema: true
1879
- });
1559
+
1560
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
1561
+ var collectBody = async (streamBody = new Uint8Array(), context) => {
1562
+ if (streamBody instanceof Uint8Array) {
1563
+ return Uint8ArrayBlobAdapter.mutate(streamBody);
1880
1564
  }
1881
- const internalCtorAccess = NormalizedSchema2;
1882
- return new internalCtorAccess(memberSchema, memberName);
1565
+ if (!streamBody) {
1566
+ return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
1567
+ }
1568
+ const fromContext = context.streamCollector(streamBody);
1569
+ return Uint8ArrayBlobAdapter.mutate(await fromContext);
1570
+ };
1571
+
1572
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
1573
+ function extendedEncodeURIComponent(str) {
1574
+ return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
1575
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
1576
+ });
1883
1577
  }
1884
- var isMemberSchema2 = (sc) => Array.isArray(sc) && sc.length === 2;
1885
- var isStaticSchema2 = (sc) => Array.isArray(sc) && sc.length >= 5;
1886
1578
 
1887
1579
  // ../node_modules/.bun/@smithy+uuid@1.1.2/node_modules/@smithy/uuid/dist-es/randomUUID.js
1888
1580
  import crypto2 from "crypto";
@@ -1901,7 +1593,7 @@ var v4 = () => {
1901
1593
  return decimalToHex[rnds[0]] + decimalToHex[rnds[1]] + decimalToHex[rnds[2]] + decimalToHex[rnds[3]] + "-" + decimalToHex[rnds[4]] + decimalToHex[rnds[5]] + "-" + decimalToHex[rnds[6]] + decimalToHex[rnds[7]] + "-" + decimalToHex[rnds[8]] + decimalToHex[rnds[9]] + "-" + decimalToHex[rnds[10]] + decimalToHex[rnds[11]] + decimalToHex[rnds[12]] + decimalToHex[rnds[13]] + decimalToHex[rnds[14]] + decimalToHex[rnds[15]];
1902
1594
  };
1903
1595
 
1904
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js
1596
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js
1905
1597
  var LazyJsonString = function LazyJsonString2(val) {
1906
1598
  const str = Object.assign(new String(val), {
1907
1599
  deserializeJSON() {
@@ -1926,7 +1618,7 @@ LazyJsonString.from = (object) => {
1926
1618
  };
1927
1619
  LazyJsonString.fromObject = LazyJsonString.from;
1928
1620
 
1929
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js
1621
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js
1930
1622
  var ddd = `(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;
1931
1623
  var mmm = `(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;
1932
1624
  var time = `(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;
@@ -2025,7 +1717,7 @@ function range(v, min, max) {
2025
1717
  }
2026
1718
  }
2027
1719
 
2028
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js
1720
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js
2029
1721
  var splitHeader = (value) => {
2030
1722
  const z = value.length;
2031
1723
  const values = [];
@@ -2064,7 +1756,7 @@ var splitHeader = (value) => {
2064
1756
  });
2065
1757
  };
2066
1758
 
2067
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js
1759
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js
2068
1760
  var format = /^-?\d*(\.\d+)?$/;
2069
1761
  var NumericValue = class _NumericValue {
2070
1762
  string;
@@ -2088,7 +1780,7 @@ var NumericValue = class _NumericValue {
2088
1780
  }
2089
1781
  };
2090
1782
 
2091
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
1783
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
2092
1784
  var SerdeContext = class {
2093
1785
  serdeContext;
2094
1786
  setSerdeContext(serdeContext) {
@@ -2096,7 +1788,7 @@ var SerdeContext = class {
2096
1788
  }
2097
1789
  };
2098
1790
 
2099
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
1791
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
2100
1792
  var HttpProtocol = class extends SerdeContext {
2101
1793
  options;
2102
1794
  compositeErrorRegistry;
@@ -2138,8 +1830,8 @@ var HttpProtocol = class extends SerdeContext {
2138
1830
  request.query[k] = v;
2139
1831
  }
2140
1832
  if (endpoint.headers) {
2141
- for (const [name, values] of Object.entries(endpoint.headers)) {
2142
- request.headers[name] = values.join(", ");
1833
+ for (const name in endpoint.headers) {
1834
+ request.headers[name] = endpoint.headers[name].join(", ");
2143
1835
  }
2144
1836
  }
2145
1837
  return request;
@@ -2152,8 +1844,8 @@ var HttpProtocol = class extends SerdeContext {
2152
1844
  ...endpoint.query
2153
1845
  };
2154
1846
  if (endpoint.headers) {
2155
- for (const [name, value] of Object.entries(endpoint.headers)) {
2156
- request.headers[name] = value;
1847
+ for (const name in endpoint.headers) {
1848
+ request.headers[name] = endpoint.headers[name];
2157
1849
  }
2158
1850
  }
2159
1851
  return request;
@@ -2163,13 +1855,15 @@ var HttpProtocol = class extends SerdeContext {
2163
1855
  if (this.serdeContext?.disableHostPrefix) {
2164
1856
  return;
2165
1857
  }
2166
- const inputNs = NormalizedSchema2.of(operationSchema.input);
2167
- const opTraits = translateTraits2(operationSchema.traits ?? {});
1858
+ const inputNs = NormalizedSchema.of(operationSchema.input);
1859
+ const opTraits = translateTraits(operationSchema.traits ?? {});
2168
1860
  if (opTraits.endpoint) {
2169
1861
  let hostPrefix = opTraits.endpoint?.[0];
2170
1862
  if (typeof hostPrefix === "string") {
2171
- const hostLabelInputs = [...inputNs.structIterator()].filter(([, member3]) => member3.getMergedTraits().hostLabel);
2172
- for (const [name] of hostLabelInputs) {
1863
+ for (const [name, member2] of inputNs.structIterator()) {
1864
+ if (!member2.getMergedTraits().hostLabel) {
1865
+ continue;
1866
+ }
2173
1867
  const replacement = input[name];
2174
1868
  if (typeof replacement !== "string") {
2175
1869
  throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
@@ -2205,7 +1899,7 @@ var HttpProtocol = class extends SerdeContext {
2205
1899
  });
2206
1900
  }
2207
1901
  async loadEventStreamCapability() {
2208
- const { EventStreamSerde } = await import("./event-streams-IFAW3KBX.js");
1902
+ const { EventStreamSerde } = await import("./event-streams-XS4D2DFO.js");
2209
1903
  return new EventStreamSerde({
2210
1904
  marshaller: this.getEventStreamMarshaller(),
2211
1905
  serializer: this.serializer,
@@ -2234,7 +1928,7 @@ var HttpProtocol = class extends SerdeContext {
2234
1928
  }
2235
1929
  };
2236
1930
 
2237
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
1931
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
2238
1932
  function determineTimestampFormat(ns, settings) {
2239
1933
  if (settings.timestampFormat.useTrait) {
2240
1934
  if (ns.isTimestampSchema() && (ns.getSchema() === 5 || ns.getSchema() === 6 || ns.getSchema() === 7)) {
@@ -2246,7 +1940,7 @@ function determineTimestampFormat(ns, settings) {
2246
1940
  return bindingFormat ?? settings.timestampFormat.default;
2247
1941
  }
2248
1942
 
2249
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
1943
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
2250
1944
  var FromStringShapeDeserializer = class extends SerdeContext {
2251
1945
  settings;
2252
1946
  constructor(settings) {
@@ -2254,7 +1948,7 @@ var FromStringShapeDeserializer = class extends SerdeContext {
2254
1948
  this.settings = settings;
2255
1949
  }
2256
1950
  read(_schema, data) {
2257
- const ns = NormalizedSchema2.of(_schema);
1951
+ const ns = NormalizedSchema.of(_schema);
2258
1952
  if (ns.isListSchema()) {
2259
1953
  return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item));
2260
1954
  }
@@ -2308,7 +2002,7 @@ var FromStringShapeDeserializer = class extends SerdeContext {
2308
2002
  }
2309
2003
  };
2310
2004
 
2311
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/setFeature.js
2005
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/setFeature.js
2312
2006
  function setFeature(context, feature, value) {
2313
2007
  if (!context.__smithy_context) {
2314
2008
  context.__smithy_context = {
@@ -2320,14 +2014,14 @@ function setFeature(context, feature, value) {
2320
2014
  context.__smithy_context.features[feature] = value;
2321
2015
  }
2322
2016
 
2323
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
2017
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
2324
2018
  var NoAuthSigner = class {
2325
2019
  async sign(httpRequest, identity, signingProperties) {
2326
2020
  return httpRequest;
2327
2021
  }
2328
2022
  };
2329
2023
 
2330
- // ../node_modules/.bun/@smithy+core@3.23.13/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
2024
+ // ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
2331
2025
  var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity) {
2332
2026
  return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
2333
2027
  };
@@ -2383,7 +2077,7 @@ var memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
2383
2077
  };
2384
2078
  };
2385
2079
 
2386
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
2080
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
2387
2081
  var DEFAULT_UA_APP_ID = void 0;
2388
2082
  function isValidUserAgentAppId(appId) {
2389
2083
  if (appId === void 0) {
@@ -2411,7 +2105,24 @@ function resolveUserAgentConfig(input) {
2411
2105
  });
2412
2106
  }
2413
2107
 
2414
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
2108
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/bdd/BinaryDecisionDiagram.js
2109
+ var BinaryDecisionDiagram = class _BinaryDecisionDiagram {
2110
+ nodes;
2111
+ root;
2112
+ conditions;
2113
+ results;
2114
+ constructor(bdd, root, conditions, results) {
2115
+ this.nodes = bdd;
2116
+ this.root = root;
2117
+ this.conditions = conditions;
2118
+ this.results = results;
2119
+ }
2120
+ static from(bdd, root, conditions, results) {
2121
+ return new _BinaryDecisionDiagram(bdd, root, conditions, results);
2122
+ }
2123
+ };
2124
+
2125
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
2415
2126
  var EndpointCache = class {
2416
2127
  capacity;
2417
2128
  data = /* @__PURE__ */ new Map();
@@ -2463,32 +2174,18 @@ var EndpointCache = class {
2463
2174
  }
2464
2175
  };
2465
2176
 
2466
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
2467
- 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}$`);
2468
- var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
2469
-
2470
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
2471
- var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
2472
- var isValidHostLabel = (value, allowSubDomains = false) => {
2473
- if (!allowSubDomains) {
2474
- return VALID_HOST_LABEL_REGEX.test(value);
2475
- }
2476
- const labels = value.split(".");
2477
- for (const label of labels) {
2478
- if (!isValidHostLabel(label)) {
2479
- return false;
2480
- }
2481
- }
2482
- return true;
2483
- };
2484
-
2485
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
2486
- var customEndpointFunctions = {};
2177
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
2178
+ var EndpointError = class extends Error {
2179
+ constructor(message) {
2180
+ super(message);
2181
+ this.name = "EndpointError";
2182
+ }
2183
+ };
2487
2184
 
2488
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
2185
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
2489
2186
  var debugId = "endpoints";
2490
2187
 
2491
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
2188
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
2492
2189
  function toDebugString(input) {
2493
2190
  if (typeof input !== "object" || input == null) {
2494
2191
  return input;
@@ -2502,18 +2199,23 @@ function toDebugString(input) {
2502
2199
  return JSON.stringify(input, null, 2);
2503
2200
  }
2504
2201
 
2505
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
2506
- var EndpointError = class extends Error {
2507
- constructor(message) {
2508
- super(message);
2509
- this.name = "EndpointError";
2510
- }
2511
- };
2202
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
2203
+ var customEndpointFunctions = {};
2512
2204
 
2513
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
2205
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
2514
2206
  var booleanEquals = (value1, value2) => value1 === value2;
2515
2207
 
2516
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
2208
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/coalesce.js
2209
+ function coalesce(...args) {
2210
+ for (const arg of args) {
2211
+ if (arg != null) {
2212
+ return arg;
2213
+ }
2214
+ }
2215
+ return void 0;
2216
+ }
2217
+
2218
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
2517
2219
  var getAttrPathList = (path) => {
2518
2220
  const parts = path.split(".");
2519
2221
  const pathList = [];
@@ -2538,23 +2240,48 @@ var getAttrPathList = (path) => {
2538
2240
  return pathList;
2539
2241
  };
2540
2242
 
2541
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
2243
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
2542
2244
  var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
2543
2245
  if (typeof acc !== "object") {
2544
2246
  throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
2545
2247
  } else if (Array.isArray(acc)) {
2546
- return acc[parseInt(index)];
2248
+ const i = parseInt(index);
2249
+ return acc[i < 0 ? acc.length + i : i];
2547
2250
  }
2548
2251
  return acc[index];
2549
2252
  }, value);
2550
2253
 
2551
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
2254
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
2552
2255
  var isSet = (value) => value != null;
2553
2256
 
2554
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/not.js
2257
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
2258
+ var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
2259
+ var isValidHostLabel = (value, allowSubDomains = false) => {
2260
+ if (!allowSubDomains) {
2261
+ return VALID_HOST_LABEL_REGEX.test(value);
2262
+ }
2263
+ const labels = value.split(".");
2264
+ for (const label of labels) {
2265
+ if (!isValidHostLabel(label)) {
2266
+ return false;
2267
+ }
2268
+ }
2269
+ return true;
2270
+ };
2271
+
2272
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/ite.js
2273
+ function ite(condition, trueValue, falseValue) {
2274
+ return condition ? trueValue : falseValue;
2275
+ }
2276
+
2277
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/not.js
2555
2278
  var not = (value) => !value;
2556
2279
 
2557
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
2280
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
2281
+ 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}$`);
2282
+ var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
2283
+
2284
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
2558
2285
  var DEFAULT_PORTS = {
2559
2286
  [EndpointURLScheme.HTTP]: 80,
2560
2287
  [EndpointURLScheme.HTTPS]: 443
@@ -2601,12 +2328,27 @@ var parseURL = (value) => {
2601
2328
  };
2602
2329
  };
2603
2330
 
2604
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
2331
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/split.js
2332
+ function split(value, delimiter, limit) {
2333
+ if (limit === 1) {
2334
+ return [value];
2335
+ }
2336
+ if (value === "") {
2337
+ return [""];
2338
+ }
2339
+ const parts = value.split(delimiter);
2340
+ if (limit === 0) {
2341
+ return parts;
2342
+ }
2343
+ return parts.slice(0, limit - 1).concat(parts.slice(1).join(delimiter));
2344
+ }
2345
+
2346
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
2605
2347
  var stringEquals = (value1, value2) => value1 === value2;
2606
2348
 
2607
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
2349
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
2608
2350
  var substring = (input, start, stop, reverse) => {
2609
- if (start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) {
2351
+ if (input == null || start >= stop || input.length < stop || /[^\u0000-\u007f]/.test(input)) {
2610
2352
  return null;
2611
2353
  }
2612
2354
  if (!reverse) {
@@ -2615,29 +2357,29 @@ var substring = (input, start, stop, reverse) => {
2615
2357
  return input.substring(input.length - stop, input.length - start);
2616
2358
  };
2617
2359
 
2618
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
2360
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
2619
2361
  var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
2620
2362
 
2621
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
2363
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
2622
2364
  var endpointFunctions = {
2623
2365
  booleanEquals,
2366
+ coalesce,
2624
2367
  getAttr,
2625
2368
  isSet,
2626
2369
  isValidHostLabel,
2370
+ ite,
2627
2371
  not,
2628
2372
  parseURL,
2373
+ split,
2629
2374
  stringEquals,
2630
2375
  substring,
2631
2376
  uriEncode
2632
2377
  };
2633
2378
 
2634
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
2379
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
2635
2380
  var evaluateTemplate = (template, options) => {
2636
2381
  const evaluatedTemplateArr = [];
2637
- const templateContext = {
2638
- ...options.endpointParams,
2639
- ...options.referenceRecord
2640
- };
2382
+ const { referenceRecord, endpointParams } = options;
2641
2383
  let currentIndex = 0;
2642
2384
  while (currentIndex < template.length) {
2643
2385
  const openingBraceIndex = template.indexOf("{", currentIndex);
@@ -2658,25 +2400,21 @@ var evaluateTemplate = (template, options) => {
2658
2400
  const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex);
2659
2401
  if (parameterName.includes("#")) {
2660
2402
  const [refName, attrName] = parameterName.split("#");
2661
- evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName));
2403
+ evaluatedTemplateArr.push(getAttr(referenceRecord[refName] ?? endpointParams[refName], attrName));
2662
2404
  } else {
2663
- evaluatedTemplateArr.push(templateContext[parameterName]);
2405
+ evaluatedTemplateArr.push(referenceRecord[parameterName] ?? endpointParams[parameterName]);
2664
2406
  }
2665
2407
  currentIndex = closingBraceIndex + 1;
2666
2408
  }
2667
2409
  return evaluatedTemplateArr.join("");
2668
2410
  };
2669
2411
 
2670
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
2412
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
2671
2413
  var getReferenceValue = ({ ref }, options) => {
2672
- const referenceRecord = {
2673
- ...options.endpointParams,
2674
- ...options.referenceRecord
2675
- };
2676
- return referenceRecord[ref];
2414
+ return options.referenceRecord[ref] ?? options.endpointParams[ref];
2677
2415
  };
2678
2416
 
2679
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
2417
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
2680
2418
  var evaluateExpression = (obj, keyName, options) => {
2681
2419
  if (typeof obj === "string") {
2682
2420
  return evaluateTemplate(obj, options);
@@ -2688,70 +2426,66 @@ var evaluateExpression = (obj, keyName, options) => {
2688
2426
  throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
2689
2427
  };
2690
2428
  var callFunction = ({ fn, argv }, options) => {
2691
- const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : group.evaluateExpression(arg, "arg", options));
2692
- const fnSegments = fn.split(".");
2693
- if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
2694
- return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
2429
+ const evaluatedArgs = Array(argv.length);
2430
+ for (let i = 0; i < evaluatedArgs.length; ++i) {
2431
+ const arg = argv[i];
2432
+ if (typeof arg === "boolean" || typeof arg === "number") {
2433
+ evaluatedArgs[i] = arg;
2434
+ } else {
2435
+ evaluatedArgs[i] = group.evaluateExpression(arg, "arg", options);
2436
+ }
2437
+ }
2438
+ const namespaceSeparatorIndex = fn.indexOf(".");
2439
+ if (namespaceSeparatorIndex !== -1) {
2440
+ const namespaceFunctions = customEndpointFunctions[fn.slice(0, namespaceSeparatorIndex)];
2441
+ const customFunction = namespaceFunctions?.[fn.slice(namespaceSeparatorIndex + 1)];
2442
+ if (typeof customFunction === "function") {
2443
+ return customFunction(...evaluatedArgs);
2444
+ }
2695
2445
  }
2696
- return endpointFunctions[fn](...evaluatedArgs);
2446
+ const callable = endpointFunctions[fn];
2447
+ if (typeof callable === "function") {
2448
+ return callable(...evaluatedArgs);
2449
+ }
2450
+ throw new Error(`function ${fn} not loaded in endpointFunctions.`);
2697
2451
  };
2698
2452
  var group = {
2699
2453
  evaluateExpression,
2700
2454
  callFunction
2701
2455
  };
2702
2456
 
2703
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
2704
- var evaluateCondition = ({ assign, ...fnArgs }, options) => {
2457
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
2458
+ var evaluateCondition = (condition, options) => {
2459
+ const { assign } = condition;
2705
2460
  if (assign && assign in options.referenceRecord) {
2706
2461
  throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
2707
2462
  }
2708
- const value = callFunction(fnArgs, options);
2709
- options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`);
2710
- return {
2711
- result: value === "" ? true : !!value,
2712
- ...assign != null && { toAssign: { name: assign, value } }
2713
- };
2714
- };
2715
-
2716
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js
2717
- var evaluateConditions = (conditions = [], options) => {
2718
- const conditionsReferenceRecord = {};
2719
- for (const condition of conditions) {
2720
- const { result, toAssign } = evaluateCondition(condition, {
2721
- ...options,
2722
- referenceRecord: {
2723
- ...options.referenceRecord,
2724
- ...conditionsReferenceRecord
2725
- }
2726
- });
2727
- if (!result) {
2728
- return { result };
2729
- }
2730
- if (toAssign) {
2731
- conditionsReferenceRecord[toAssign.name] = toAssign.value;
2732
- options.logger?.debug?.(`${debugId} assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`);
2733
- }
2463
+ const value = callFunction(condition, options);
2464
+ options.logger?.debug?.(`${debugId} evaluateCondition: ${toDebugString(condition)} = ${toDebugString(value)}`);
2465
+ const result = value === "" ? true : !!value;
2466
+ if (assign != null) {
2467
+ return { result, toAssign: { name: assign, value } };
2734
2468
  }
2735
- return { result: true, referenceRecord: conditionsReferenceRecord };
2469
+ return { result };
2736
2470
  };
2737
2471
 
2738
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
2739
- var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
2740
- ...acc,
2741
- [headerKey]: headerVal.map((headerValEntry) => {
2472
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
2473
+ var getEndpointHeaders = (headers, options) => Object.entries(headers ?? {}).reduce((acc, [headerKey, headerVal]) => {
2474
+ acc[headerKey] = headerVal.map((headerValEntry) => {
2742
2475
  const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options);
2743
2476
  if (typeof processedExpr !== "string") {
2744
2477
  throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`);
2745
2478
  }
2746
2479
  return processedExpr;
2747
- })
2748
- }), {});
2749
-
2750
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
2751
- var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
2752
- ...acc,
2753
- [propertyKey]: group2.getEndpointProperty(propertyVal, options)
2754
- }), {});
2480
+ });
2481
+ return acc;
2482
+ }, {});
2483
+
2484
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
2485
+ var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => {
2486
+ acc[propertyKey] = group2.getEndpointProperty(propertyVal, options);
2487
+ return acc;
2488
+ }, {});
2755
2489
  var getEndpointProperty = (property, options) => {
2756
2490
  if (Array.isArray(property)) {
2757
2491
  return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
@@ -2775,7 +2509,7 @@ var group2 = {
2775
2509
  getEndpointProperties
2776
2510
  };
2777
2511
 
2778
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
2512
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
2779
2513
  var getEndpointUrl = (endpointUrl, options) => {
2780
2514
  const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
2781
2515
  if (typeof expression === "string") {
@@ -2789,103 +2523,45 @@ var getEndpointUrl = (endpointUrl, options) => {
2789
2523
  throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
2790
2524
  };
2791
2525
 
2792
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js
2793
- var evaluateEndpointRule = (endpointRule, options) => {
2794
- const { conditions, endpoint } = endpointRule;
2795
- const { result, referenceRecord } = evaluateConditions(conditions, options);
2796
- if (!result) {
2797
- return;
2798
- }
2799
- const endpointRuleOptions = {
2800
- ...options,
2801
- referenceRecord: { ...options.referenceRecord, ...referenceRecord }
2802
- };
2803
- const { url, properties, headers } = endpoint;
2804
- options.logger?.debug?.(`${debugId} Resolving endpoint from template: ${toDebugString(endpoint)}`);
2805
- return {
2806
- ...headers != void 0 && {
2807
- headers: getEndpointHeaders(headers, endpointRuleOptions)
2808
- },
2809
- ...properties != void 0 && {
2810
- properties: getEndpointProperties(properties, endpointRuleOptions)
2811
- },
2812
- url: getEndpointUrl(url, endpointRuleOptions)
2526
+ // ../node_modules/.bun/@smithy+util-endpoints@3.4.2/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js
2527
+ var RESULT = 1e8;
2528
+ var decideEndpoint = (bdd, options) => {
2529
+ const { nodes, root, results, conditions } = bdd;
2530
+ let ref = root;
2531
+ const referenceRecord = {};
2532
+ const closure = {
2533
+ referenceRecord,
2534
+ endpointParams: options.endpointParams,
2535
+ logger: options.logger
2813
2536
  };
2814
- };
2815
-
2816
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js
2817
- var evaluateErrorRule = (errorRule, options) => {
2818
- const { conditions, error } = errorRule;
2819
- const { result, referenceRecord } = evaluateConditions(conditions, options);
2820
- if (!result) {
2821
- return;
2822
- }
2823
- throw new EndpointError(evaluateExpression(error, "Error", {
2824
- ...options,
2825
- referenceRecord: { ...options.referenceRecord, ...referenceRecord }
2826
- }));
2827
- };
2828
-
2829
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
2830
- var evaluateRules = (rules, options) => {
2831
- for (const rule of rules) {
2832
- if (rule.type === "endpoint") {
2833
- const endpointOrUndefined = evaluateEndpointRule(rule, options);
2834
- if (endpointOrUndefined) {
2835
- return endpointOrUndefined;
2836
- }
2837
- } else if (rule.type === "error") {
2838
- evaluateErrorRule(rule, options);
2839
- } else if (rule.type === "tree") {
2840
- const endpointOrUndefined = group3.evaluateTreeRule(rule, options);
2841
- if (endpointOrUndefined) {
2842
- return endpointOrUndefined;
2843
- }
2844
- } else {
2845
- throw new EndpointError(`Unknown endpoint rule: ${rule}`);
2846
- }
2847
- }
2848
- throw new EndpointError(`Rules evaluation failed`);
2849
- };
2850
- var evaluateTreeRule = (treeRule, options) => {
2851
- const { conditions, rules } = treeRule;
2852
- const { result, referenceRecord } = evaluateConditions(conditions, options);
2853
- if (!result) {
2854
- return;
2855
- }
2856
- return group3.evaluateRules(rules, {
2857
- ...options,
2858
- referenceRecord: { ...options.referenceRecord, ...referenceRecord }
2859
- });
2860
- };
2861
- var group3 = {
2862
- evaluateRules,
2863
- evaluateTreeRule
2864
- };
2865
-
2866
- // ../node_modules/.bun/@smithy+util-endpoints@3.3.3/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
2867
- var resolveEndpoint = (ruleSetObject, options) => {
2868
- const { endpointParams, logger } = options;
2869
- const { parameters, rules } = ruleSetObject;
2870
- options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
2871
- const paramsWithDefault = Object.entries(parameters).filter(([, v]) => v.default != null).map(([k, v]) => [k, v.default]);
2872
- if (paramsWithDefault.length > 0) {
2873
- for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
2874
- endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
2875
- }
2876
- }
2877
- const requiredParams = Object.entries(parameters).filter(([, v]) => v.required).map(([k]) => k);
2878
- for (const requiredParam of requiredParams) {
2879
- if (endpointParams[requiredParam] == null) {
2880
- throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
2881
- }
2537
+ while (ref !== 1 && ref !== -1 && ref < RESULT) {
2538
+ const node_i = 3 * (Math.abs(ref) - 1);
2539
+ const [condition_i, highRef, lowRef] = [nodes[node_i], nodes[node_i + 1], nodes[node_i + 2]];
2540
+ const [fn, argv, assign] = conditions[condition_i];
2541
+ const evaluation = evaluateCondition({ fn, assign, argv }, closure);
2542
+ if (evaluation.toAssign) {
2543
+ const { name, value } = evaluation.toAssign;
2544
+ referenceRecord[name] = value;
2545
+ }
2546
+ ref = ref >= 0 === evaluation.result ? highRef : lowRef;
2547
+ }
2548
+ if (ref >= RESULT) {
2549
+ const result = results[ref - RESULT];
2550
+ if (result[0] === -1) {
2551
+ const [, errorExpression] = result;
2552
+ throw new EndpointError(evaluateExpression(errorExpression, "Error", closure));
2553
+ }
2554
+ const [url, properties, headers] = result;
2555
+ return {
2556
+ url: getEndpointUrl(url, closure),
2557
+ properties: getEndpointProperties(properties, closure),
2558
+ headers: getEndpointHeaders(headers ?? {}, closure)
2559
+ };
2882
2560
  }
2883
- const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} });
2884
- options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`);
2885
- return endpoint;
2561
+ throw new EndpointError(`No matching endpoint.`);
2886
2562
  };
2887
2563
 
2888
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
2564
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
2889
2565
  var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
2890
2566
  if (allowSubDomains) {
2891
2567
  for (const label of value.split(".")) {
@@ -2910,7 +2586,7 @@ var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
2910
2586
  return true;
2911
2587
  };
2912
2588
 
2913
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
2589
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
2914
2590
  var ARN_DELIMITER = ":";
2915
2591
  var RESOURCE_DELIMITER = "/";
2916
2592
  var parseArn = (value) => {
@@ -2930,7 +2606,7 @@ var parseArn = (value) => {
2930
2606
  };
2931
2607
  };
2932
2608
 
2933
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
2609
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
2934
2610
  var partitions_default = {
2935
2611
  partitions: [{
2936
2612
  id: "aws",
@@ -3199,7 +2875,7 @@ var partitions_default = {
3199
2875
  version: "1.1"
3200
2876
  };
3201
2877
 
3202
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
2878
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
3203
2879
  var selectedPartitionsInfo = partitions_default;
3204
2880
  var selectedUserAgentPrefix = "";
3205
2881
  var partition = (value) => {
@@ -3233,7 +2909,7 @@ var partition = (value) => {
3233
2909
  };
3234
2910
  var getUserAgentPrefix = () => selectedUserAgentPrefix;
3235
2911
 
3236
- // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.5/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
2912
+ // ../node_modules/.bun/@aws-sdk+util-endpoints@3.996.8/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
3237
2913
  var awsEndpointFunctions = {
3238
2914
  isVirtualHostableS3Bucket,
3239
2915
  parseArn,
@@ -3241,36 +2917,33 @@ var awsEndpointFunctions = {
3241
2917
  };
3242
2918
  customEndpointFunctions.aws = awsEndpointFunctions;
3243
2919
 
3244
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
2920
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
3245
2921
  var state = {
3246
2922
  warningEmitted: false
3247
2923
  };
3248
2924
  var emitWarningIfUnsupportedVersion = (version) => {
3249
- if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 20) {
3250
- state.warningEmitted = true;
3251
- process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
3252
- no longer support Node.js ${version} in January 2026.
2925
+ if (version && !state.warningEmitted) {
2926
+ if (process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED === "true") {
2927
+ state.warningEmitted = true;
2928
+ return;
2929
+ }
2930
+ const userMajorVersion = parseInt(version.substring(1, version.indexOf(".")));
2931
+ const vv = 22;
2932
+ if (userMajorVersion < vv) {
2933
+ state.warningEmitted = true;
2934
+ process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
2935
+ versions published after the first week of January 2027
2936
+ will require node >=${vv}. You are running node ${version}.
3253
2937
 
3254
- To continue receiving updates to AWS services, bug fixes, and security
3255
- updates please upgrade to a supported Node.js LTS version.
2938
+ To continue receiving updates to AWS services, bug fixes,
2939
+ and security updates please upgrade to node >=${vv}.
3256
2940
 
3257
2941
  More information can be found at: https://a.co/c895JFp`);
2942
+ }
3258
2943
  }
3259
2944
  };
3260
2945
 
3261
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
3262
- function setFeature2(context, feature, value) {
3263
- if (!context.__aws_sdk_context) {
3264
- context.__aws_sdk_context = {
3265
- features: {}
3266
- };
3267
- } else if (!context.__aws_sdk_context.features) {
3268
- context.__aws_sdk_context.features = {};
3269
- }
3270
- context.__aws_sdk_context.features[feature] = value;
3271
- }
3272
-
3273
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/config.js
2946
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/config.js
3274
2947
  var RETRY_MODES;
3275
2948
  (function(RETRY_MODES2) {
3276
2949
  RETRY_MODES2["STANDARD"] = "standard";
@@ -3279,7 +2952,7 @@ var RETRY_MODES;
3279
2952
  var DEFAULT_MAX_ATTEMPTS = 3;
3280
2953
  var DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
3281
2954
 
3282
- // ../node_modules/.bun/@smithy+service-error-classification@4.2.12/node_modules/@smithy/service-error-classification/dist-es/constants.js
2955
+ // ../node_modules/.bun/@smithy+service-error-classification@4.3.1/node_modules/@smithy/service-error-classification/dist-es/constants.js
3283
2956
  var THROTTLING_ERROR_CODES = [
3284
2957
  "BandwidthLimitExceeded",
3285
2958
  "EC2ThrottledException",
@@ -3301,7 +2974,7 @@ var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
3301
2974
  var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
3302
2975
  var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
3303
2976
 
3304
- // ../node_modules/.bun/@smithy+service-error-classification@4.2.12/node_modules/@smithy/service-error-classification/dist-es/index.js
2977
+ // ../node_modules/.bun/@smithy+service-error-classification@4.3.1/node_modules/@smithy/service-error-classification/dist-es/index.js
3305
2978
  var isRetryableByTrait = (error) => error?.$retryable !== void 0;
3306
2979
  var isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
3307
2980
  var isBrowserNetworkError = (error) => {
@@ -3319,7 +2992,7 @@ var isBrowserNetworkError = (error) => {
3319
2992
  return errorMessages.has(error.message);
3320
2993
  };
3321
2994
  var isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true;
3322
- var isTransientError = (error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
2995
+ var isTransientError = (error, depth = 0) => isRetryableByTrait(error) || isClockSkewCorrectedError(error) || error.name === "InvalidSignatureException" && error.message?.includes("Signature expired") || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") || TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) || isBrowserNetworkError(error) || isNodeJsHttp2TransientError(error) || error.cause !== void 0 && depth <= 10 && isTransientError(error.cause, depth + 1);
3323
2996
  var isServerError = (error) => {
3324
2997
  if (error.$metadata?.httpStatusCode !== void 0) {
3325
2998
  const statusCode = error.$metadata.httpStatusCode;
@@ -3330,8 +3003,11 @@ var isServerError = (error) => {
3330
3003
  }
3331
3004
  return false;
3332
3005
  };
3006
+ function isNodeJsHttp2TransientError(error) {
3007
+ return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
3008
+ }
3333
3009
 
3334
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
3010
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
3335
3011
  var DefaultRateLimiter = class _DefaultRateLimiter {
3336
3012
  static setTimeoutFn = setTimeout;
3337
3013
  beta;
@@ -3356,26 +3032,45 @@ var DefaultRateLimiter = class _DefaultRateLimiter {
3356
3032
  this.minFillRate = options?.minFillRate ?? 0.5;
3357
3033
  this.scaleConstant = options?.scaleConstant ?? 0.4;
3358
3034
  this.smooth = options?.smooth ?? 0.8;
3359
- const currentTimeInSeconds = this.getCurrentTimeInSeconds();
3360
- this.lastThrottleTime = currentTimeInSeconds;
3035
+ this.lastThrottleTime = this.getCurrentTimeInSeconds();
3361
3036
  this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds());
3362
3037
  this.fillRate = this.minFillRate;
3363
3038
  this.maxCapacity = this.minCapacity;
3364
3039
  }
3365
- getCurrentTimeInSeconds() {
3366
- return Date.now() / 1e3;
3367
- }
3368
3040
  async getSendToken() {
3369
3041
  return this.acquireTokenBucket(1);
3370
3042
  }
3043
+ updateClientSendingRate(response) {
3044
+ let calculatedRate;
3045
+ this.updateMeasuredRate();
3046
+ const retryErrorInfo = response;
3047
+ const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response);
3048
+ if (isThrottling) {
3049
+ const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
3050
+ this.lastMaxRate = rateToUse;
3051
+ this.calculateTimeWindow();
3052
+ this.lastThrottleTime = this.getCurrentTimeInSeconds();
3053
+ calculatedRate = this.cubicThrottle(rateToUse);
3054
+ this.enableTokenBucket();
3055
+ } else {
3056
+ this.calculateTimeWindow();
3057
+ calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
3058
+ }
3059
+ const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
3060
+ this.updateTokenBucketRate(newRate);
3061
+ }
3062
+ getCurrentTimeInSeconds() {
3063
+ return Date.now() / 1e3;
3064
+ }
3371
3065
  async acquireTokenBucket(amount) {
3372
3066
  if (!this.enabled) {
3373
3067
  return;
3374
3068
  }
3375
3069
  this.refillTokenBucket();
3376
- if (amount > this.availableTokens) {
3070
+ while (amount > this.availableTokens) {
3377
3071
  const delay = (amount - this.availableTokens) / this.fillRate * 1e3;
3378
3072
  await new Promise((resolve) => _DefaultRateLimiter.setTimeoutFn(resolve, delay));
3073
+ this.refillTokenBucket();
3379
3074
  }
3380
3075
  this.availableTokens = this.availableTokens - amount;
3381
3076
  }
@@ -3389,25 +3084,6 @@ var DefaultRateLimiter = class _DefaultRateLimiter {
3389
3084
  this.availableTokens = Math.min(this.maxCapacity, this.availableTokens + fillAmount);
3390
3085
  this.lastTimestamp = timestamp;
3391
3086
  }
3392
- updateClientSendingRate(response) {
3393
- let calculatedRate;
3394
- this.updateMeasuredRate();
3395
- const retryErrorInfo = response;
3396
- const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response);
3397
- if (isThrottling) {
3398
- const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
3399
- this.lastMaxRate = rateToUse;
3400
- this.calculateTimeWindow();
3401
- this.lastThrottleTime = this.getCurrentTimeInSeconds();
3402
- calculatedRate = this.cubicThrottle(rateToUse);
3403
- this.enableTokenBucket();
3404
- } else {
3405
- this.calculateTimeWindow();
3406
- calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds());
3407
- }
3408
- const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate);
3409
- this.updateTokenBucketRate(newRate);
3410
- }
3411
3087
  calculateTimeWindow() {
3412
3088
  this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3));
3413
3089
  }
@@ -3442,84 +3118,136 @@ var DefaultRateLimiter = class _DefaultRateLimiter {
3442
3118
  }
3443
3119
  };
3444
3120
 
3445
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/constants.js
3446
- var DEFAULT_RETRY_DELAY_BASE = 100;
3121
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/constants.js
3447
3122
  var MAXIMUM_RETRY_DELAY = 20 * 1e3;
3448
- var THROTTLING_RETRY_DELAY_BASE = 500;
3449
3123
  var INITIAL_RETRY_TOKENS = 500;
3450
- var RETRY_COST = 5;
3451
- var TIMEOUT_RETRY_COST = 10;
3452
3124
  var NO_RETRY_INCREMENT = 1;
3453
3125
  var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
3454
3126
  var REQUEST_HEADER = "amz-sdk-request";
3455
3127
 
3456
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js
3457
- var getDefaultRetryBackoffStrategy = () => {
3458
- let delayBase = DEFAULT_RETRY_DELAY_BASE;
3459
- const computeNextBackoffDelay = (attempts) => {
3460
- return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase));
3461
- };
3462
- const setDelayBase = (delay) => {
3463
- delayBase = delay;
3464
- };
3465
- return {
3466
- computeNextBackoffDelay,
3467
- setDelayBase
3468
- };
3128
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js
3129
+ var Retry = class _Retry {
3130
+ static v2026 = typeof process !== "undefined" && process.env?.SMITHY_NEW_RETRIES_2026 === "true";
3131
+ static delay() {
3132
+ return _Retry.v2026 ? 50 : 100;
3133
+ }
3134
+ static throttlingDelay() {
3135
+ return _Retry.v2026 ? 1e3 : 500;
3136
+ }
3137
+ static cost() {
3138
+ return _Retry.v2026 ? 14 : 5;
3139
+ }
3140
+ static throttlingCost() {
3141
+ return _Retry.v2026 ? 5 : 10;
3142
+ }
3143
+ static modifiedCostType() {
3144
+ return _Retry.v2026 ? "THROTTLING" : "TRANSIENT";
3145
+ }
3469
3146
  };
3470
3147
 
3471
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js
3472
- var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => {
3473
- const getRetryCount = () => retryCount;
3474
- const getRetryDelay = () => Math.min(MAXIMUM_RETRY_DELAY, retryDelay);
3475
- const getRetryCost = () => retryCost;
3476
- return {
3477
- getRetryCount,
3478
- getRetryDelay,
3479
- getRetryCost
3480
- };
3148
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js
3149
+ var DefaultRetryBackoffStrategy = class {
3150
+ x = Retry.delay();
3151
+ computeNextBackoffDelay(i) {
3152
+ const b = Math.random();
3153
+ const r = 2;
3154
+ const t_i = b * Math.min(this.x * r ** i, MAXIMUM_RETRY_DELAY);
3155
+ return Math.floor(t_i);
3156
+ }
3157
+ setDelayBase(delay) {
3158
+ this.x = delay;
3159
+ }
3481
3160
  };
3482
3161
 
3483
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
3162
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js
3163
+ var DefaultRetryToken = class {
3164
+ delay;
3165
+ count;
3166
+ cost;
3167
+ longPoll;
3168
+ constructor(delay, count, cost, longPoll) {
3169
+ this.delay = delay;
3170
+ this.count = count;
3171
+ this.cost = cost;
3172
+ this.longPoll = longPoll;
3173
+ }
3174
+ getRetryCount() {
3175
+ return this.count;
3176
+ }
3177
+ getRetryDelay() {
3178
+ return Math.min(MAXIMUM_RETRY_DELAY, this.delay);
3179
+ }
3180
+ getRetryCost() {
3181
+ return this.cost;
3182
+ }
3183
+ isLongPoll() {
3184
+ return this.longPoll;
3185
+ }
3186
+ };
3187
+
3188
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
3189
+ var refusal = {
3190
+ incompatible: 1,
3191
+ attempts: 2,
3192
+ capacity: 3
3193
+ };
3484
3194
  var StandardRetryStrategy = class {
3485
- maxAttempts;
3486
3195
  mode = RETRY_MODES.STANDARD;
3487
3196
  capacity = INITIAL_RETRY_TOKENS;
3488
- retryBackoffStrategy = getDefaultRetryBackoffStrategy();
3197
+ retryBackoffStrategy;
3489
3198
  maxAttemptsProvider;
3490
- constructor(maxAttempts) {
3491
- this.maxAttempts = maxAttempts;
3492
- this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
3199
+ baseDelay;
3200
+ constructor(arg1) {
3201
+ if (typeof arg1 === "number") {
3202
+ this.maxAttemptsProvider = async () => arg1;
3203
+ } else if (typeof arg1 === "function") {
3204
+ this.maxAttemptsProvider = arg1;
3205
+ } else if (arg1 && typeof arg1 === "object") {
3206
+ this.maxAttemptsProvider = async () => arg1.maxAttempts;
3207
+ this.baseDelay = arg1.baseDelay;
3208
+ this.retryBackoffStrategy = arg1.backoff;
3209
+ }
3210
+ this.maxAttemptsProvider ??= async () => DEFAULT_MAX_ATTEMPTS;
3211
+ this.baseDelay ??= Retry.delay();
3212
+ this.retryBackoffStrategy ??= new DefaultRetryBackoffStrategy();
3493
3213
  }
3494
3214
  async acquireInitialRetryToken(retryTokenScope) {
3495
- return createDefaultRetryToken({
3496
- retryDelay: DEFAULT_RETRY_DELAY_BASE,
3497
- retryCount: 0
3498
- });
3215
+ return new DefaultRetryToken(Retry.delay(), 0, void 0, Retry.v2026 && retryTokenScope.includes(":longpoll"));
3499
3216
  }
3500
3217
  async refreshRetryTokenForRetry(token, errorInfo) {
3501
3218
  const maxAttempts = await this.getMaxAttempts();
3502
- if (this.shouldRetry(token, errorInfo, maxAttempts)) {
3219
+ const retryCode = this.retryCode(token, errorInfo, maxAttempts);
3220
+ const shouldRetry = retryCode === 0;
3221
+ const isLongPoll = token.isLongPoll?.();
3222
+ if (shouldRetry || isLongPoll) {
3503
3223
  const errorType = errorInfo.errorType;
3504
- this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE);
3224
+ this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? Retry.throttlingDelay() : this.baseDelay);
3505
3225
  const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount());
3506
- const retryDelay = errorInfo.retryAfterHint ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) : delayFromErrorType;
3507
- const capacityCost = this.getCapacityCost(errorType);
3508
- this.capacity -= capacityCost;
3509
- return createDefaultRetryToken({
3510
- retryDelay,
3511
- retryCount: token.getRetryCount() + 1,
3512
- retryCost: capacityCost
3513
- });
3226
+ let retryDelay = delayFromErrorType;
3227
+ if (errorInfo.retryAfterHint instanceof Date) {
3228
+ retryDelay = Math.max(delayFromErrorType, Math.min(errorInfo.retryAfterHint.getTime() - Date.now(), delayFromErrorType + 5e3));
3229
+ }
3230
+ if (!shouldRetry) {
3231
+ throw Object.assign(new Error("No retry token available"), {
3232
+ $backoff: Retry.v2026 && retryCode === refusal.capacity && isLongPoll ? retryDelay : 0
3233
+ });
3234
+ } else {
3235
+ const capacityCost = this.getCapacityCost(errorType);
3236
+ this.capacity -= capacityCost;
3237
+ return new DefaultRetryToken(retryDelay, token.getRetryCount() + 1, capacityCost, token.isLongPoll?.() ?? false);
3238
+ }
3514
3239
  }
3515
3240
  throw new Error("No retry token available");
3516
3241
  }
3517
3242
  recordSuccess(token) {
3518
- this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
3243
+ this.capacity = Math.min(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT));
3519
3244
  }
3520
3245
  getCapacity() {
3521
3246
  return this.capacity;
3522
3247
  }
3248
+ async maxAttempts() {
3249
+ return this.maxAttemptsProvider();
3250
+ }
3523
3251
  async getMaxAttempts() {
3524
3252
  try {
3525
3253
  return await this.maxAttemptsProvider();
@@ -3528,45 +3256,68 @@ var StandardRetryStrategy = class {
3528
3256
  return DEFAULT_MAX_ATTEMPTS;
3529
3257
  }
3530
3258
  }
3531
- shouldRetry(tokenToRenew, errorInfo, maxAttempts) {
3259
+ retryCode(tokenToRenew, errorInfo, maxAttempts) {
3532
3260
  const attempts = tokenToRenew.getRetryCount() + 1;
3533
- return attempts < maxAttempts && this.capacity >= this.getCapacityCost(errorInfo.errorType) && this.isRetryableError(errorInfo.errorType);
3261
+ const retryableStatus = this.isRetryableError(errorInfo.errorType) ? 0 : refusal.incompatible;
3262
+ const attemptStatus = attempts < maxAttempts ? 0 : refusal.attempts;
3263
+ const capacityStatus = this.capacity >= this.getCapacityCost(errorInfo.errorType) ? 0 : refusal.capacity;
3264
+ return retryableStatus || attemptStatus || capacityStatus;
3534
3265
  }
3535
3266
  getCapacityCost(errorType) {
3536
- return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST;
3267
+ return errorType === Retry.modifiedCostType() ? Retry.throttlingCost() : Retry.cost();
3537
3268
  }
3538
3269
  isRetryableError(errorType) {
3539
3270
  return errorType === "THROTTLING" || errorType === "TRANSIENT";
3540
3271
  }
3541
3272
  };
3542
3273
 
3543
- // ../node_modules/.bun/@smithy+util-retry@4.2.13/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
3274
+ // ../node_modules/.bun/@smithy+util-retry@4.3.8/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
3544
3275
  var AdaptiveRetryStrategy = class {
3545
- maxAttemptsProvider;
3276
+ mode = RETRY_MODES.ADAPTIVE;
3546
3277
  rateLimiter;
3547
3278
  standardRetryStrategy;
3548
- mode = RETRY_MODES.ADAPTIVE;
3549
3279
  constructor(maxAttemptsProvider, options) {
3550
- this.maxAttemptsProvider = maxAttemptsProvider;
3551
3280
  const { rateLimiter } = options ?? {};
3552
3281
  this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
3553
- this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
3282
+ this.standardRetryStrategy = options ? new StandardRetryStrategy({
3283
+ maxAttempts: typeof maxAttemptsProvider === "number" ? maxAttemptsProvider : 3,
3284
+ ...options
3285
+ }) : new StandardRetryStrategy(maxAttemptsProvider);
3554
3286
  }
3555
3287
  async acquireInitialRetryToken(retryTokenScope) {
3288
+ const token = await this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
3556
3289
  await this.rateLimiter.getSendToken();
3557
- return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope);
3290
+ return token;
3558
3291
  }
3559
3292
  async refreshRetryTokenForRetry(tokenToRenew, errorInfo) {
3560
3293
  this.rateLimiter.updateClientSendingRate(errorInfo);
3561
- return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
3294
+ const token = await this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo);
3295
+ await this.rateLimiter.getSendToken();
3296
+ return token;
3562
3297
  }
3563
3298
  recordSuccess(token) {
3564
3299
  this.rateLimiter.updateClientSendingRate({});
3565
3300
  this.standardRetryStrategy.recordSuccess(token);
3566
3301
  }
3302
+ async maxAttemptsProvider() {
3303
+ return this.standardRetryStrategy.maxAttempts();
3304
+ }
3567
3305
  };
3568
3306
 
3569
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
3307
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
3308
+ Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
3309
+ function setFeature2(context, feature, value) {
3310
+ if (!context.__aws_sdk_context) {
3311
+ context.__aws_sdk_context = {
3312
+ features: {}
3313
+ };
3314
+ } else if (!context.__aws_sdk_context.features) {
3315
+ context.__aws_sdk_context.features = {};
3316
+ }
3317
+ context.__aws_sdk_context.features[feature] = value;
3318
+ }
3319
+
3320
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
3570
3321
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
3571
3322
  async function checkFeatures(context, config, args) {
3572
3323
  const request = args.request;
@@ -3615,7 +3366,7 @@ async function checkFeatures(context, config, args) {
3615
3366
  }
3616
3367
  }
3617
3368
 
3618
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
3369
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
3619
3370
  var USER_AGENT = "user-agent";
3620
3371
  var X_AMZ_USER_AGENT = "x-amz-user-agent";
3621
3372
  var SPACE = " ";
@@ -3624,7 +3375,7 @@ var UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g;
3624
3375
  var UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g;
3625
3376
  var UA_ESCAPE_CHAR = "-";
3626
3377
 
3627
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js
3378
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js
3628
3379
  var BYTE_LIMIT = 1024;
3629
3380
  function encodeFeatures(features) {
3630
3381
  let buffer = "";
@@ -3643,7 +3394,7 @@ function encodeFeatures(features) {
3643
3394
  return buffer;
3644
3395
  }
3645
3396
 
3646
- // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.28/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
3397
+ // ../node_modules/.bun/@aws-sdk+middleware-user-agent@3.972.38/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
3647
3398
  var userAgentMiddleware = (options) => (next, context) => async (args) => {
3648
3399
  const { request } = args;
3649
3400
  if (!HttpRequest.isInstance(request)) {
@@ -3712,7 +3463,7 @@ var getUserAgentPlugin = (config) => ({
3712
3463
  }
3713
3464
  });
3714
3465
 
3715
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js
3466
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js
3716
3467
  var validRegions = /* @__PURE__ */ new Set();
3717
3468
  var checkRegion = (region, check = isValidHostLabel) => {
3718
3469
  if (!validRegions.has(region) && !check(region)) {
@@ -3726,13 +3477,13 @@ var checkRegion = (region, check = isValidHostLabel) => {
3726
3477
  }
3727
3478
  };
3728
3479
 
3729
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
3480
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
3730
3481
  var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
3731
3482
 
3732
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
3483
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
3733
3484
  var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
3734
3485
 
3735
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
3486
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
3736
3487
  var resolveRegionConfig = (input) => {
3737
3488
  const { region, useFipsEndpoint } = input;
3738
3489
  if (!region) {
@@ -3755,7 +3506,7 @@ var resolveRegionConfig = (input) => {
3755
3506
  });
3756
3507
  };
3757
3508
 
3758
- // ../node_modules/.bun/@smithy+middleware-content-length@4.2.12/node_modules/@smithy/middleware-content-length/dist-es/index.js
3509
+ // ../node_modules/.bun/@smithy+middleware-content-length@4.2.14/node_modules/@smithy/middleware-content-length/dist-es/index.js
3759
3510
  var CONTENT_LENGTH_HEADER = "content-length";
3760
3511
  function contentLengthMiddleware(bodyLengthChecker) {
3761
3512
  return (next) => async (args) => {
@@ -3791,7 +3542,7 @@ var getContentLengthPlugin = (options) => ({
3791
3542
  }
3792
3543
  });
3793
3544
 
3794
- // ../node_modules/.bun/@smithy+middleware-serde@4.2.16/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
3545
+ // ../node_modules/.bun/@smithy+middleware-serde@4.2.20/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
3795
3546
  var serializerMiddlewareOption2 = {
3796
3547
  name: "serializerMiddleware",
3797
3548
  step: "serialize",
@@ -3799,7 +3550,7 @@ var serializerMiddlewareOption2 = {
3799
3550
  override: true
3800
3551
  };
3801
3552
 
3802
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
3553
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
3803
3554
  var resolveParamsForS3 = async (endpointParams) => {
3804
3555
  const bucket = endpointParams?.Bucket || "";
3805
3556
  if (typeof endpointParams.Bucket === "string") {
@@ -3832,7 +3583,7 @@ var isArnBucketName = (bucketName) => {
3832
3583
  return isValidArn;
3833
3584
  };
3834
3585
 
3835
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
3586
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
3836
3587
  var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config, isClientContextParam = false) => {
3837
3588
  const configProvider = async () => {
3838
3589
  let configValue;
@@ -3883,7 +3634,7 @@ var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config, i
3883
3634
  return configProvider;
3884
3635
  };
3885
3636
 
3886
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js
3637
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js
3887
3638
  var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
3888
3639
  var CONFIG_ENDPOINT_URL = "endpoint_url";
3889
3640
  var getEndpointUrlConfig = (serviceId) => ({
@@ -3915,10 +3666,10 @@ var getEndpointUrlConfig = (serviceId) => ({
3915
3666
  default: void 0
3916
3667
  });
3917
3668
 
3918
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
3669
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
3919
3670
  var getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
3920
3671
 
3921
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
3672
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
3922
3673
  var toEndpointV12 = (endpoint) => {
3923
3674
  if (typeof endpoint === "object") {
3924
3675
  if ("url" in endpoint) {
@@ -3936,7 +3687,7 @@ var toEndpointV12 = (endpoint) => {
3936
3687
  return parseUrl(endpoint);
3937
3688
  };
3938
3689
 
3939
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
3690
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
3940
3691
  var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
3941
3692
  if (!clientConfig.isCustomEndpoint) {
3942
3693
  let endpointFromConfig;
@@ -3997,7 +3748,7 @@ var resolveParams = async (commandInput, instructionsSupplier, clientConfig) =>
3997
3748
  return endpointParams;
3998
3749
  };
3999
3750
 
4000
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
3751
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
4001
3752
  var endpointMiddleware = ({ config, instructions }) => {
4002
3753
  return (next, context) => async (args) => {
4003
3754
  if (config.isCustomEndpoint) {
@@ -4032,7 +3783,7 @@ var endpointMiddleware = ({ config, instructions }) => {
4032
3783
  };
4033
3784
  };
4034
3785
 
4035
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
3786
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
4036
3787
  var endpointMiddlewareOptions = {
4037
3788
  step: "serialize",
4038
3789
  tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
@@ -4050,7 +3801,7 @@ var getEndpointPlugin = (config, instructions) => ({
4050
3801
  }
4051
3802
  });
4052
3803
 
4053
- // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.28/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
3804
+ // ../node_modules/.bun/@smithy+middleware-endpoint@4.4.32/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
4054
3805
  var resolveEndpointConfig = (input) => {
4055
3806
  const tls = input.tls ?? true;
4056
3807
  const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
@@ -4073,7 +3824,7 @@ var resolveEndpointConfig = (input) => {
4073
3824
  return resolvedConfig;
4074
3825
  };
4075
3826
 
4076
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/configurations.js
3827
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/configurations.js
4077
3828
  var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
4078
3829
  var CONFIG_MAX_ATTEMPTS = "max_attempts";
4079
3830
  var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
@@ -4240,11 +3991,52 @@ var NoOpLogger = class {
4240
3991
  }
4241
3992
  };
4242
3993
 
4243
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
3994
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
4244
3995
  import { Readable } from "stream";
4245
3996
  var isStreamingPayload = (request) => request?.body instanceof Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream;
4246
3997
 
4247
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/util.js
3998
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js
3999
+ function parseRetryAfterHeader(response, logger) {
4000
+ if (!HttpResponse.isInstance(response)) {
4001
+ return;
4002
+ }
4003
+ for (const header of Object.keys(response.headers)) {
4004
+ const h = header.toLowerCase();
4005
+ if (h === "retry-after") {
4006
+ const retryAfter = response.headers[header];
4007
+ let retryAfterSeconds = NaN;
4008
+ if (retryAfter.endsWith("GMT")) {
4009
+ try {
4010
+ const date2 = parseRfc7231DateTime(retryAfter);
4011
+ retryAfterSeconds = (date2.getTime() - Date.now()) / 1e3;
4012
+ } catch (e) {
4013
+ logger?.trace?.("Failed to parse retry-after header");
4014
+ logger?.trace?.(e);
4015
+ }
4016
+ } else if (retryAfter.match(/ GMT, ((\d+)|(\d+\.\d+))$/)) {
4017
+ retryAfterSeconds = Number(retryAfter.match(/ GMT, ([\d.]+)$/)?.[1]);
4018
+ } else if (retryAfter.match(/^((\d+)|(\d+\.\d+))$/)) {
4019
+ retryAfterSeconds = Number(retryAfter);
4020
+ } else if (Date.parse(retryAfter) >= Date.now()) {
4021
+ retryAfterSeconds = (Date.parse(retryAfter) - Date.now()) / 1e3;
4022
+ }
4023
+ if (isNaN(retryAfterSeconds)) {
4024
+ return;
4025
+ }
4026
+ return new Date(Date.now() + retryAfterSeconds * 1e3);
4027
+ } else if (h === "x-amz-retry-after") {
4028
+ const v = response.headers[header];
4029
+ const backoffMilliseconds = Number(v);
4030
+ if (isNaN(backoffMilliseconds)) {
4031
+ logger?.trace?.(`Failed to parse x-amz-retry-after=${v}`);
4032
+ return;
4033
+ }
4034
+ return new Date(Date.now() + backoffMilliseconds);
4035
+ }
4036
+ }
4037
+ }
4038
+
4039
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/util.js
4248
4040
  var asSdkError = (error) => {
4249
4041
  if (error instanceof Error)
4250
4042
  return error;
@@ -4255,13 +4047,13 @@ var asSdkError = (error) => {
4255
4047
  return new Error(`AWS SDK error wrapper for ${error}`);
4256
4048
  };
4257
4049
 
4258
- // ../node_modules/.bun/@smithy+middleware-retry@4.4.46/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
4050
+ // ../node_modules/.bun/@smithy+middleware-retry@4.5.7/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
4259
4051
  var retryMiddleware = (options) => (next, context) => async (args) => {
4260
4052
  let retryStrategy = await options.retryStrategy();
4261
4053
  const maxAttempts = await options.maxAttempts();
4262
4054
  if (isRetryStrategyV2(retryStrategy)) {
4263
4055
  retryStrategy = retryStrategy;
4264
- let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]);
4056
+ let retryToken = await retryStrategy.acquireInitialRetryToken((context["partition_id"] ?? "") + (context.__retryLongPoll ? ":longpoll" : ""));
4265
4057
  let lastError = new Error();
4266
4058
  let attempts = 0;
4267
4059
  let totalRetryDelay = 0;
@@ -4281,7 +4073,7 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
4281
4073
  output.$metadata.totalRetryDelay = totalRetryDelay;
4282
4074
  return { response, output };
4283
4075
  } catch (e) {
4284
- const retryErrorInfo = getRetryErrorInfo(e);
4076
+ const retryErrorInfo = getRetryErrorInfo(e, options.logger);
4285
4077
  lastError = asSdkError(e);
4286
4078
  if (isRequest && isStreamingPayload(request)) {
4287
4079
  (context.logger instanceof NoOpLogger ? console : context.logger)?.warn("An error was encountered in a non-retryable streaming request.");
@@ -4290,6 +4082,9 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
4290
4082
  try {
4291
4083
  retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo);
4292
4084
  } catch (refreshError) {
4085
+ if (typeof refreshError.$backoff === "number") {
4086
+ await cooldown(refreshError.$backoff);
4087
+ }
4293
4088
  if (!lastError.$metadata) {
4294
4089
  lastError.$metadata = {};
4295
4090
  }
@@ -4300,23 +4095,25 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
4300
4095
  attempts = retryToken.getRetryCount();
4301
4096
  const delay = retryToken.getRetryDelay();
4302
4097
  totalRetryDelay += delay;
4303
- await new Promise((resolve) => setTimeout(resolve, delay));
4098
+ await cooldown(delay);
4304
4099
  }
4305
4100
  }
4306
4101
  } else {
4307
4102
  retryStrategy = retryStrategy;
4308
- if (retryStrategy?.mode)
4103
+ if (retryStrategy?.mode) {
4309
4104
  context.userAgent = [...context.userAgent || [], ["cfg/retry-mode", retryStrategy.mode]];
4105
+ }
4310
4106
  return retryStrategy.retry(next, args);
4311
4107
  }
4312
4108
  };
4109
+ var cooldown = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
4313
4110
  var isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined";
4314
- var getRetryErrorInfo = (error) => {
4111
+ var getRetryErrorInfo = (error, logger) => {
4315
4112
  const errorInfo = {
4316
4113
  error,
4317
4114
  errorType: getRetryErrorType(error)
4318
4115
  };
4319
- const retryAfterHint = getRetryAfterHint(error.$response);
4116
+ const retryAfterHint = parseRetryAfterHeader(error.$response, logger);
4320
4117
  if (retryAfterHint) {
4321
4118
  errorInfo.retryAfterHint = retryAfterHint;
4322
4119
  }
@@ -4343,19 +4140,6 @@ var getRetryPlugin = (options) => ({
4343
4140
  clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
4344
4141
  }
4345
4142
  });
4346
- var getRetryAfterHint = (response) => {
4347
- if (!HttpResponse.isInstance(response))
4348
- return;
4349
- const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
4350
- if (!retryAfterHeaderName)
4351
- return;
4352
- const retryAfter = response.headers[retryAfterHeaderName];
4353
- const retryAfterSeconds = Number(retryAfter);
4354
- if (!Number.isNaN(retryAfterSeconds))
4355
- return new Date(retryAfterSeconds * 1e3);
4356
- const retryAfterDate = new Date(retryAfter);
4357
- return retryAfterDate;
4358
- };
4359
4143
 
4360
4144
  // ../node_modules/.bun/@smithy+util-config-provider@4.2.2/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
4361
4145
  var booleanSelector = (obj, key, type) => {
@@ -4375,7 +4159,7 @@ var SelectorType;
4375
4159
  SelectorType2["CONFIG"] = "shared config entry";
4376
4160
  })(SelectorType || (SelectorType = {}));
4377
4161
 
4378
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
4162
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
4379
4163
  var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
4380
4164
  var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
4381
4165
  var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
@@ -4384,7 +4168,7 @@ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
4384
4168
  default: false
4385
4169
  };
4386
4170
 
4387
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
4171
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
4388
4172
  var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
4389
4173
  var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
4390
4174
  var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
@@ -4393,7 +4177,7 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
4393
4177
  default: false
4394
4178
  };
4395
4179
 
4396
- // ../node_modules/.bun/@smithy+config-resolver@4.4.13/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
4180
+ // ../node_modules/.bun/@smithy+config-resolver@4.4.17/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
4397
4181
  var REGION_ENV_NAME = "AWS_REGION";
4398
4182
  var REGION_INI_NAME = "region";
4399
4183
  var NODE_REGION_CONFIG_OPTIONS = {
@@ -4407,16 +4191,16 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
4407
4191
  preferredFile: "credentials"
4408
4192
  };
4409
4193
 
4410
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
4194
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
4411
4195
  var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
4412
4196
 
4413
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
4197
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
4414
4198
  var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
4415
4199
 
4416
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
4200
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
4417
4201
  var isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5;
4418
4202
 
4419
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
4203
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
4420
4204
  var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
4421
4205
  const clockTimeInMs = Date.parse(clockTime);
4422
4206
  if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
@@ -4425,7 +4209,7 @@ var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
4425
4209
  return currentSystemClockOffset;
4426
4210
  };
4427
4211
 
4428
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
4212
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
4429
4213
  var throwSigningPropertyError = (name, property) => {
4430
4214
  if (!property) {
4431
4215
  throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
@@ -4496,13 +4280,31 @@ var AwsSdkSigV4Signer = class {
4496
4280
  }
4497
4281
  };
4498
4282
 
4499
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
4283
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js
4284
+ var AwsSdkSigV4ASigner = class extends AwsSdkSigV4Signer {
4285
+ async sign(httpRequest, identity, signingProperties) {
4286
+ if (!HttpRequest.isInstance(httpRequest)) {
4287
+ throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");
4288
+ }
4289
+ const { config, signer, signingRegion, signingRegionSet, signingName } = await validateSigningProperties(signingProperties);
4290
+ const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
4291
+ const multiRegionOverride = (configResolvedSigningRegionSet ?? signingRegionSet ?? [signingRegion]).join(",");
4292
+ const signedRequest = await signer.sign(httpRequest, {
4293
+ signingDate: getSkewCorrectedDate(config.systemClockOffset),
4294
+ signingRegion: multiRegionOverride,
4295
+ signingService: signingName
4296
+ });
4297
+ return signedRequest;
4298
+ }
4299
+ };
4300
+
4301
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
4500
4302
  var getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
4501
4303
 
4502
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
4304
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
4503
4305
  var getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`;
4504
4306
 
4505
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
4307
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
4506
4308
  var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
4507
4309
  var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
4508
4310
  var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
@@ -4524,7 +4326,32 @@ var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
4524
4326
  default: []
4525
4327
  };
4526
4328
 
4527
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/constants.js
4329
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js
4330
+ var resolveAwsSdkSigV4AConfig = (config) => {
4331
+ config.sigv4aSigningRegionSet = normalizeProvider2(config.sigv4aSigningRegionSet);
4332
+ return config;
4333
+ };
4334
+ var NODE_SIGV4A_CONFIG_OPTIONS = {
4335
+ environmentVariableSelector(env2) {
4336
+ if (env2.AWS_SIGV4A_SIGNING_REGION_SET) {
4337
+ return env2.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((_) => _.trim());
4338
+ }
4339
+ throw new ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.", {
4340
+ tryNextLink: true
4341
+ });
4342
+ },
4343
+ configFileSelector(profile) {
4344
+ if (profile.sigv4a_signing_region_set) {
4345
+ return (profile.sigv4a_signing_region_set ?? "").split(",").map((_) => _.trim());
4346
+ }
4347
+ throw new ProviderError("sigv4a_signing_region_set not set in profile.", {
4348
+ tryNextLink: true
4349
+ });
4350
+ },
4351
+ default: void 0
4352
+ };
4353
+
4354
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/constants.js
4528
4355
  var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
4529
4356
  var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
4530
4357
  var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
@@ -4565,7 +4392,7 @@ var MAX_CACHE_SIZE = 50;
4565
4392
  var KEY_TYPE_IDENTIFIER = "aws4_request";
4566
4393
  var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
4567
4394
 
4568
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
4395
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
4569
4396
  var signingKeyCache = {};
4570
4397
  var cacheQueue = [];
4571
4398
  var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`;
@@ -4591,7 +4418,7 @@ var hmac = (ctor, secret, data) => {
4591
4418
  return hash.digest();
4592
4419
  };
4593
4420
 
4594
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
4421
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
4595
4422
  var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
4596
4423
  const canonical = {};
4597
4424
  for (const headerName of Object.keys(headers).sort()) {
@@ -4609,7 +4436,7 @@ var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
4609
4436
  return canonical;
4610
4437
  };
4611
4438
 
4612
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
4439
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
4613
4440
  var getPayloadHash = async ({ headers, body }, hashConstructor) => {
4614
4441
  for (const headerName of Object.keys(headers)) {
4615
4442
  if (headerName.toLowerCase() === SHA256_HEADER) {
@@ -4626,7 +4453,7 @@ var getPayloadHash = async ({ headers, body }, hashConstructor) => {
4626
4453
  return UNSIGNED_PAYLOAD;
4627
4454
  };
4628
4455
 
4629
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
4456
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
4630
4457
  var HeaderFormatter = class {
4631
4458
  format(headers) {
4632
4459
  const chunks = [];
@@ -4752,7 +4579,7 @@ function negate(bytes) {
4752
4579
  }
4753
4580
  }
4754
4581
 
4755
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
4582
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
4756
4583
  var hasHeader = (soughtHeader, headers) => {
4757
4584
  soughtHeader = soughtHeader.toLowerCase();
4758
4585
  for (const headerName of Object.keys(headers)) {
@@ -4763,7 +4590,7 @@ var hasHeader = (soughtHeader, headers) => {
4763
4590
  return false;
4764
4591
  };
4765
4592
 
4766
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
4593
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
4767
4594
  var moveHeadersToQuery = (request, options = {}) => {
4768
4595
  const { headers, query = {} } = HttpRequest.clone(request);
4769
4596
  for (const name of Object.keys(headers)) {
@@ -4780,7 +4607,7 @@ var moveHeadersToQuery = (request, options = {}) => {
4780
4607
  };
4781
4608
  };
4782
4609
 
4783
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
4610
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
4784
4611
  var prepareRequest = (request) => {
4785
4612
  request = HttpRequest.clone(request);
4786
4613
  for (const headerName of Object.keys(request.headers)) {
@@ -4791,7 +4618,7 @@ var prepareRequest = (request) => {
4791
4618
  return request;
4792
4619
  };
4793
4620
 
4794
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
4621
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
4795
4622
  var getCanonicalQuery = ({ query = {} }) => {
4796
4623
  const keys = [];
4797
4624
  const serialized = {};
@@ -4811,7 +4638,7 @@ var getCanonicalQuery = ({ query = {} }) => {
4811
4638
  return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&");
4812
4639
  };
4813
4640
 
4814
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/utilDate.js
4641
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/utilDate.js
4815
4642
  var iso8601 = (time2) => toDate(time2).toISOString().replace(/\.\d{3}Z$/, "Z");
4816
4643
  var toDate = (time2) => {
4817
4644
  if (typeof time2 === "number") {
@@ -4826,7 +4653,7 @@ var toDate = (time2) => {
4826
4653
  return time2;
4827
4654
  };
4828
4655
 
4829
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
4656
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
4830
4657
  var SignatureV4Base = class {
4831
4658
  service;
4832
4659
  regionProvider;
@@ -4898,7 +4725,7 @@ ${toHex(hashedRequest)}`;
4898
4725
  }
4899
4726
  };
4900
4727
 
4901
- // ../node_modules/.bun/@smithy+signature-v4@5.3.12/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
4728
+ // ../node_modules/.bun/@smithy+signature-v4@5.3.14/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
4902
4729
  var SignatureV4 = class extends SignatureV4Base {
4903
4730
  headerFormatter = new HeaderFormatter();
4904
4731
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
@@ -4945,7 +4772,7 @@ var SignatureV4 = class extends SignatureV4Base {
4945
4772
  return this.signRequest(toSign, options);
4946
4773
  }
4947
4774
  }
4948
- async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService }) {
4775
+ async signEvent({ headers, payload }, { signingDate = /* @__PURE__ */ new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials }) {
4949
4776
  const region = signingRegion ?? await this.regionProvider();
4950
4777
  const { shortDate, longDate } = this.formatDate(signingDate);
4951
4778
  const scope = createScope(shortDate, region, signingService ?? this.service);
@@ -4961,9 +4788,14 @@ var SignatureV4 = class extends SignatureV4Base {
4961
4788
  hashedHeaders,
4962
4789
  hashedPayload
4963
4790
  ].join("\n");
4964
- return this.signString(stringToSign, { signingDate, signingRegion: region, signingService });
4791
+ return this.signString(stringToSign, {
4792
+ signingDate,
4793
+ signingRegion: region,
4794
+ signingService,
4795
+ eventStreamCredentials
4796
+ });
4965
4797
  }
4966
- async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService }) {
4798
+ async signMessage(signableMessage, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService, eventStreamCredentials }) {
4967
4799
  const promise = this.signEvent({
4968
4800
  headers: this.headerFormatter.format(signableMessage.message.headers),
4969
4801
  payload: signableMessage.message.body
@@ -4971,14 +4803,15 @@ var SignatureV4 = class extends SignatureV4Base {
4971
4803
  signingDate,
4972
4804
  signingRegion,
4973
4805
  signingService,
4974
- priorSignature: signableMessage.priorSignature
4806
+ priorSignature: signableMessage.priorSignature,
4807
+ eventStreamCredentials
4975
4808
  });
4976
4809
  return promise.then((signature) => {
4977
4810
  return { message: signableMessage.message, signature };
4978
4811
  });
4979
4812
  }
4980
- async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService } = {}) {
4981
- const credentials = await this.credentialProvider();
4813
+ async signString(stringToSign, { signingDate = /* @__PURE__ */ new Date(), signingRegion, signingService, eventStreamCredentials } = {}) {
4814
+ const credentials = eventStreamCredentials ?? await this.credentialProvider();
4982
4815
  this.validateResolvedCredentials(credentials);
4983
4816
  const region = signingRegion ?? await this.regionProvider();
4984
4817
  const { shortDate } = this.formatDate(signingDate);
@@ -5017,7 +4850,7 @@ var SignatureV4 = class extends SignatureV4Base {
5017
4850
  }
5018
4851
  };
5019
4852
 
5020
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
4853
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
5021
4854
  var resolveAwsSdkSigV4Config = (config) => {
5022
4855
  let inputCredentials = config.credentials;
5023
4856
  let isUserSupplied = !!config.credentials;
@@ -5146,10 +4979,10 @@ function bindCallerConfig(config, credentialsProvider) {
5146
4979
  return fn;
5147
4980
  }
5148
4981
 
5149
- // ../node_modules/.bun/@aws-sdk+nested-clients@3.996.18/node_modules/@aws-sdk/nested-clients/package.json
4982
+ // ../node_modules/.bun/@aws-sdk+nested-clients@3.997.6/node_modules/@aws-sdk/nested-clients/package.json
5150
4983
  var package_default = {
5151
4984
  name: "@aws-sdk/nested-clients",
5152
- version: "3.996.18",
4985
+ version: "3.997.6",
5153
4986
  description: "Nested clients for AWS SDK packages.",
5154
4987
  main: "./dist-cjs/index.js",
5155
4988
  module: "./dist-es/index.js",
@@ -5178,40 +5011,41 @@ var package_default = {
5178
5011
  dependencies: {
5179
5012
  "@aws-crypto/sha256-browser": "5.2.0",
5180
5013
  "@aws-crypto/sha256-js": "5.2.0",
5181
- "@aws-sdk/core": "^3.973.26",
5182
- "@aws-sdk/middleware-host-header": "^3.972.8",
5183
- "@aws-sdk/middleware-logger": "^3.972.8",
5184
- "@aws-sdk/middleware-recursion-detection": "^3.972.9",
5185
- "@aws-sdk/middleware-user-agent": "^3.972.28",
5186
- "@aws-sdk/region-config-resolver": "^3.972.10",
5187
- "@aws-sdk/types": "^3.973.6",
5188
- "@aws-sdk/util-endpoints": "^3.996.5",
5189
- "@aws-sdk/util-user-agent-browser": "^3.972.8",
5190
- "@aws-sdk/util-user-agent-node": "^3.973.14",
5191
- "@smithy/config-resolver": "^4.4.13",
5192
- "@smithy/core": "^3.23.13",
5193
- "@smithy/fetch-http-handler": "^5.3.15",
5194
- "@smithy/hash-node": "^4.2.12",
5195
- "@smithy/invalid-dependency": "^4.2.12",
5196
- "@smithy/middleware-content-length": "^4.2.12",
5197
- "@smithy/middleware-endpoint": "^4.4.28",
5198
- "@smithy/middleware-retry": "^4.4.46",
5199
- "@smithy/middleware-serde": "^4.2.16",
5200
- "@smithy/middleware-stack": "^4.2.12",
5201
- "@smithy/node-config-provider": "^4.3.12",
5202
- "@smithy/node-http-handler": "^4.5.1",
5203
- "@smithy/protocol-http": "^5.3.12",
5204
- "@smithy/smithy-client": "^4.12.8",
5205
- "@smithy/types": "^4.13.1",
5206
- "@smithy/url-parser": "^4.2.12",
5014
+ "@aws-sdk/core": "^3.974.8",
5015
+ "@aws-sdk/middleware-host-header": "^3.972.10",
5016
+ "@aws-sdk/middleware-logger": "^3.972.10",
5017
+ "@aws-sdk/middleware-recursion-detection": "^3.972.11",
5018
+ "@aws-sdk/middleware-user-agent": "^3.972.38",
5019
+ "@aws-sdk/region-config-resolver": "^3.972.13",
5020
+ "@aws-sdk/signature-v4-multi-region": "^3.996.25",
5021
+ "@aws-sdk/types": "^3.973.8",
5022
+ "@aws-sdk/util-endpoints": "^3.996.8",
5023
+ "@aws-sdk/util-user-agent-browser": "^3.972.10",
5024
+ "@aws-sdk/util-user-agent-node": "^3.973.24",
5025
+ "@smithy/config-resolver": "^4.4.17",
5026
+ "@smithy/core": "^3.23.17",
5027
+ "@smithy/fetch-http-handler": "^5.3.17",
5028
+ "@smithy/hash-node": "^4.2.14",
5029
+ "@smithy/invalid-dependency": "^4.2.14",
5030
+ "@smithy/middleware-content-length": "^4.2.14",
5031
+ "@smithy/middleware-endpoint": "^4.4.32",
5032
+ "@smithy/middleware-retry": "^4.5.7",
5033
+ "@smithy/middleware-serde": "^4.2.20",
5034
+ "@smithy/middleware-stack": "^4.2.14",
5035
+ "@smithy/node-config-provider": "^4.3.14",
5036
+ "@smithy/node-http-handler": "^4.6.1",
5037
+ "@smithy/protocol-http": "^5.3.14",
5038
+ "@smithy/smithy-client": "^4.12.13",
5039
+ "@smithy/types": "^4.14.1",
5040
+ "@smithy/url-parser": "^4.2.14",
5207
5041
  "@smithy/util-base64": "^4.3.2",
5208
5042
  "@smithy/util-body-length-browser": "^4.2.2",
5209
5043
  "@smithy/util-body-length-node": "^4.2.3",
5210
- "@smithy/util-defaults-mode-browser": "^4.3.44",
5211
- "@smithy/util-defaults-mode-node": "^4.2.48",
5212
- "@smithy/util-endpoints": "^3.3.3",
5213
- "@smithy/util-middleware": "^4.2.12",
5214
- "@smithy/util-retry": "^4.2.13",
5044
+ "@smithy/util-defaults-mode-browser": "^4.3.49",
5045
+ "@smithy/util-defaults-mode-node": "^4.2.54",
5046
+ "@smithy/util-endpoints": "^3.4.2",
5047
+ "@smithy/util-middleware": "^4.2.14",
5048
+ "@smithy/util-retry": "^4.3.6",
5215
5049
  "@smithy/util-utf8": "^4.2.2",
5216
5050
  tslib: "^2.6.2"
5217
5051
  },
@@ -5295,11 +5129,11 @@ var package_default = {
5295
5129
  }
5296
5130
  };
5297
5131
 
5298
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5132
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5299
5133
  import { platform, release } from "os";
5300
5134
  import { env } from "process";
5301
5135
 
5302
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js
5136
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js
5303
5137
  import { versions } from "process";
5304
5138
  var getRuntimeUserAgentPair = () => {
5305
5139
  const runtimesToCheck = ["deno", "bun", "llrt"];
@@ -5311,11 +5145,11 @@ var getRuntimeUserAgentPair = () => {
5311
5145
  return ["md/nodejs", versions.node];
5312
5146
  };
5313
5147
 
5314
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5148
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5315
5149
  import { readFile } from "fs/promises";
5316
5150
  import { join } from "path";
5317
5151
 
5318
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js
5152
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js
5319
5153
  import { normalize, sep } from "path";
5320
5154
  var getNodeModulesParentDirs = (dirname) => {
5321
5155
  const cwd = process.cwd();
@@ -5332,7 +5166,7 @@ var getNodeModulesParentDirs = (dirname) => {
5332
5166
  return [parentDir, cwd];
5333
5167
  };
5334
5168
 
5335
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js
5169
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js
5336
5170
  var SEMVER_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;
5337
5171
  var getSanitizedTypeScriptVersion = (version = "") => {
5338
5172
  const match = version.match(SEMVER_REGEX);
@@ -5343,7 +5177,7 @@ var getSanitizedTypeScriptVersion = (version = "") => {
5343
5177
  return prerelease ? `${major}.${minor}.${patch}-${prerelease}` : `${major}.${minor}.${patch}`;
5344
5178
  };
5345
5179
 
5346
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js
5180
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js
5347
5181
  var ALLOWED_PREFIXES = ["^", "~", ">=", "<=", ">", "<"];
5348
5182
  var ALLOWED_DIST_TAGS = ["latest", "beta", "dev", "rc", "insiders", "next"];
5349
5183
  var getSanitizedDevTypeScriptVersion = (version = "") => {
@@ -5358,7 +5192,7 @@ var getSanitizedDevTypeScriptVersion = (version = "") => {
5358
5192
  return `${prefix}${sanitizedTypeScriptVersion}`;
5359
5193
  };
5360
5194
 
5361
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5195
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js
5362
5196
  var tscVersion;
5363
5197
  var TS_PACKAGE_JSON = join("node_modules", "typescript", "package.json");
5364
5198
  var getTypeScriptUserAgentPair = async () => {
@@ -5425,12 +5259,12 @@ var getTypeScriptUserAgentPair = async () => {
5425
5259
  return ["md/tsc", tscVersion];
5426
5260
  };
5427
5261
 
5428
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js
5262
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js
5429
5263
  var crtAvailability = {
5430
5264
  isCrtAvailable: false
5431
5265
  };
5432
5266
 
5433
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
5267
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
5434
5268
  var isCrtAvailable = () => {
5435
5269
  if (crtAvailability.isCrtAvailable) {
5436
5270
  return ["md/crt-avail"];
@@ -5438,7 +5272,7 @@ var isCrtAvailable = () => {
5438
5272
  return null;
5439
5273
  };
5440
5274
 
5441
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5275
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
5442
5276
  var createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
5443
5277
  const runtimeUserAgentPair = getRuntimeUserAgentPair();
5444
5278
  return async (config) => {
@@ -5469,7 +5303,7 @@ var createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
5469
5303
  };
5470
5304
  };
5471
5305
 
5472
- // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.14/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
5306
+ // ../node_modules/.bun/@aws-sdk+util-user-agent-node@3.973.24/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
5473
5307
  var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
5474
5308
  var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
5475
5309
  var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
@@ -5479,7 +5313,7 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
5479
5313
  default: DEFAULT_UA_APP_ID
5480
5314
  };
5481
5315
 
5482
- // ../node_modules/.bun/@smithy+hash-node@4.2.12/node_modules/@smithy/hash-node/dist-es/index.js
5316
+ // ../node_modules/.bun/@smithy+hash-node@4.2.14/node_modules/@smithy/hash-node/dist-es/index.js
5483
5317
  import { Buffer as Buffer2 } from "buffer";
5484
5318
  import { createHash, createHmac } from "crypto";
5485
5319
  var Hash = class {
@@ -5538,7 +5372,7 @@ var calculateBodyLength = (body) => {
5538
5372
  throw new Error(`Body Length computation failed for ${body}`);
5539
5373
  };
5540
5374
 
5541
- // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.48/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
5375
+ // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.54/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
5542
5376
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
5543
5377
  var AWS_REGION_ENV = "AWS_REGION";
5544
5378
  var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
@@ -5546,7 +5380,7 @@ var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
5546
5380
  var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
5547
5381
  var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
5548
5382
 
5549
- // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.48/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js
5383
+ // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.54/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js
5550
5384
  var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
5551
5385
  var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
5552
5386
  var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
@@ -5559,7 +5393,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
5559
5393
  default: "legacy"
5560
5394
  };
5561
5395
 
5562
- // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.48/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
5396
+ // ../node_modules/.bun/@smithy+util-defaults-mode-node@4.2.54/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
5563
5397
  var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
5564
5398
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
5565
5399
  switch (mode?.toLowerCase()) {
@@ -5598,7 +5432,7 @@ var inferPhysicalRegion = async () => {
5598
5432
  }
5599
5433
  if (!process.env[ENV_IMDS_DISABLED]) {
5600
5434
  try {
5601
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-KHBICPEM.js");
5435
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-GGHPJZ3K.js");
5602
5436
  const endpoint = await getInstanceMetadataEndpoint();
5603
5437
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
5604
5438
  } catch (e) {
@@ -5606,7 +5440,7 @@ var inferPhysicalRegion = async () => {
5606
5440
  }
5607
5441
  };
5608
5442
 
5609
- // ../node_modules/.bun/@aws-sdk+region-config-resolver@3.972.10/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
5443
+ // ../node_modules/.bun/@aws-sdk+region-config-resolver@3.972.13/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
5610
5444
  var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
5611
5445
  return {
5612
5446
  setRegion(region) {
@@ -5623,7 +5457,7 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
5623
5457
  };
5624
5458
  };
5625
5459
 
5626
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
5460
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
5627
5461
  var ProtocolLib = class {
5628
5462
  queryCompat;
5629
5463
  errorRegistry;
@@ -5705,12 +5539,11 @@ var ProtocolLib = class {
5705
5539
  if (msg) {
5706
5540
  error.message = msg;
5707
5541
  }
5708
- error.Error = {
5709
- ...error.Error,
5710
- Type: error.Error?.Type,
5711
- Code: error.Error?.Code,
5712
- Message: error.Error?.message ?? error.Error?.Message ?? msg
5713
- };
5542
+ const errorObj = error.Error ?? {};
5543
+ errorObj.Type = error.Error?.Type;
5544
+ errorObj.Code = error.Error?.Code;
5545
+ errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
5546
+ error.Error = errorObj;
5714
5547
  const reqId = error.$metadata.requestId;
5715
5548
  if (reqId) {
5716
5549
  error.RequestId = reqId;
@@ -5723,14 +5556,16 @@ var ProtocolLib = class {
5723
5556
  const queryErrorHeader = response.headers?.["x-amzn-query-error"];
5724
5557
  if (output !== void 0 && queryErrorHeader != null) {
5725
5558
  const [Code, Type] = queryErrorHeader.split(";");
5726
- const entries = Object.entries(output);
5559
+ const keys = Object.keys(output);
5727
5560
  const Error2 = {
5728
5561
  Code,
5729
5562
  Type
5730
5563
  };
5731
- Object.assign(output, Error2);
5732
- for (const [k, v] of entries) {
5733
- Error2[k === "message" ? "Message" : k] = v;
5564
+ output.Code = Code;
5565
+ output.Type = Type;
5566
+ for (let i = 0; i < keys.length; i++) {
5567
+ const k = keys[i];
5568
+ Error2[k === "message" ? "Message" : k] = output[k];
5734
5569
  }
5735
5570
  delete Error2.__type;
5736
5571
  output.Error = Error2;
@@ -5751,12 +5586,12 @@ var ProtocolLib = class {
5751
5586
  try {
5752
5587
  return registry.getSchema(errorName);
5753
5588
  } catch (e) {
5754
- return registry.find((schema) => NormalizedSchema2.of(schema).getMergedTraits().awsQueryError?.[0] === errorName);
5589
+ return registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName);
5755
5590
  }
5756
5591
  }
5757
5592
  };
5758
5593
 
5759
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
5594
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
5760
5595
  var SerdeContextConfig = class {
5761
5596
  serdeContext;
5762
5597
  setSerdeContext(serdeContext) {
@@ -5764,7 +5599,7 @@ var SerdeContextConfig = class {
5764
5599
  }
5765
5600
  };
5766
5601
 
5767
- // ../node_modules/.bun/@aws-sdk+core@3.973.26/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
5602
+ // ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js
5768
5603
  var UnionSerde = class {
5769
5604
  from;
5770
5605
  to;
@@ -5772,7 +5607,10 @@ var UnionSerde = class {
5772
5607
  constructor(from, to) {
5773
5608
  this.from = from;
5774
5609
  this.to = to;
5775
- this.keys = new Set(Object.keys(this.from).filter((k) => k !== "__type"));
5610
+ const keys = Object.keys(this.from);
5611
+ const set = new Set(keys);
5612
+ set.delete("__type");
5613
+ this.keys = set;
5776
5614
  }
5777
5615
  mark(key) {
5778
5616
  this.keys.delete(key);
@@ -5793,6 +5631,7 @@ export {
5793
5631
  getHttpHandlerExtensionConfiguration,
5794
5632
  resolveHttpHandlerRuntimeConfig,
5795
5633
  emitWarningIfUnsupportedVersion,
5634
+ DEFAULT_RETRY_MODE,
5796
5635
  getSmithyContext,
5797
5636
  normalizeProvider,
5798
5637
  resolveHostHeaderConfig,
@@ -5800,23 +5639,14 @@ export {
5800
5639
  getLoggerPlugin,
5801
5640
  getRecursionDetectionPlugin,
5802
5641
  Client,
5803
- v4,
5804
- Command,
5805
- ServiceException,
5806
- loadConfigsForDefaultMode,
5807
- emitWarningIfUnsupportedVersion2,
5808
- getDefaultExtensionConfiguration,
5809
- resolveDefaultRuntimeConfig,
5810
- NoOpLogger,
5811
- getHttpAuthSchemeEndpointRuleSetPlugin,
5812
- getHttpSigningPlugin,
5813
5642
  collectBody,
5814
5643
  extendedEncodeURIComponent,
5815
- deref2 as deref,
5644
+ deref,
5816
5645
  getSchemaSerdePlugin,
5817
- translateTraits2 as translateTraits,
5818
- NormalizedSchema2 as NormalizedSchema,
5646
+ translateTraits,
5647
+ NormalizedSchema,
5819
5648
  TypeRegistry,
5649
+ v4,
5820
5650
  LazyJsonString,
5821
5651
  splitHeader,
5822
5652
  NumericValue,
@@ -5824,17 +5654,27 @@ export {
5824
5654
  HttpProtocol,
5825
5655
  determineTimestampFormat,
5826
5656
  FromStringShapeDeserializer,
5657
+ Command,
5658
+ ServiceException,
5659
+ loadConfigsForDefaultMode,
5660
+ emitWarningIfUnsupportedVersion2,
5661
+ getDefaultExtensionConfiguration,
5662
+ resolveDefaultRuntimeConfig,
5663
+ NoOpLogger,
5664
+ SignatureV4,
5665
+ getHttpAuthSchemeEndpointRuleSetPlugin,
5666
+ getHttpSigningPlugin,
5827
5667
  DefaultIdentityProviderConfig,
5828
5668
  NoAuthSigner,
5829
5669
  ProtocolLib,
5830
5670
  SerdeContextConfig,
5831
5671
  UnionSerde,
5832
5672
  resolveUserAgentConfig,
5673
+ BinaryDecisionDiagram,
5833
5674
  EndpointCache,
5834
5675
  customEndpointFunctions,
5835
- resolveEndpoint,
5676
+ decideEndpoint,
5836
5677
  awsEndpointFunctions,
5837
- DEFAULT_RETRY_MODE,
5838
5678
  getUserAgentPlugin,
5839
5679
  NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
5840
5680
  NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
@@ -5842,6 +5682,7 @@ export {
5842
5682
  NODE_REGION_CONFIG_FILE_OPTIONS,
5843
5683
  resolveRegionConfig,
5844
5684
  getContentLengthPlugin,
5685
+ resolveParams,
5845
5686
  getEndpointPlugin,
5846
5687
  resolveEndpointConfig,
5847
5688
  NODE_MAX_ATTEMPT_CONFIG_OPTIONS,
@@ -5849,7 +5690,10 @@ export {
5849
5690
  NODE_RETRY_MODE_CONFIG_OPTIONS,
5850
5691
  getRetryPlugin,
5851
5692
  AwsSdkSigV4Signer,
5693
+ AwsSdkSigV4ASigner,
5852
5694
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
5695
+ resolveAwsSdkSigV4AConfig,
5696
+ NODE_SIGV4A_CONFIG_OPTIONS,
5853
5697
  resolveAwsSdkSigV4Config,
5854
5698
  package_default,
5855
5699
  createDefaultUserAgentProvider,