@larkup/cli 0.3.19 → 0.3.21

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 (38) hide show
  1. package/dist/{analytics-store-4EI56OLE.js → analytics-store-UU5MX3JA.js} +1 -1
  2. package/dist/bowser-KBMRPWZW.js +2100 -0
  3. package/dist/{chunk-OSTTFYPX.js → chunk-2PEO3NCV.js} +4 -4
  4. package/dist/{chunk-GYXT77I3.js → chunk-2QOWBHZK.js} +10 -10
  5. package/dist/{chunk-DTRGAEFR.js → chunk-4SOSQVIA.js} +4 -4
  6. package/dist/{chunk-HYYSI5FE.js → chunk-5YXDD2GC.js} +183 -174
  7. package/dist/{chunk-DT2STGSS.js → chunk-6B7OTI2Y.js} +2 -2
  8. package/dist/{chunk-TFGGCUFR.js → chunk-D3H2VEHZ.js} +7 -7
  9. package/dist/{chunk-VZAREDRR.js → chunk-EFPXIMED.js} +3 -3
  10. package/dist/{chunk-PFTSXAZG.js → chunk-FDCIUBLI.js} +46 -27
  11. package/dist/{chunk-6HRBZ7QP.js → chunk-G5BURVQB.js} +3 -3
  12. package/dist/{chunk-ZH2A3TFQ.js → chunk-HTNZPVID.js} +99 -1154
  13. package/dist/{chunk-YOPP3ETL.js → chunk-JAIHHTKN.js} +111 -80
  14. package/dist/{chunk-54YIZOXQ.js → chunk-PTQR3VCA.js} +58 -26
  15. package/dist/{chunk-CUA3FHFQ.js → chunk-RUMUOFC7.js} +39 -26
  16. package/dist/{chunk-6VBJAFWY.js → chunk-RV756WXU.js} +85 -70
  17. package/dist/{chunk-FMBWCTFV.js → chunk-WSDGBXA3.js} +1223 -77
  18. package/dist/{dist-es-PY4YS7TC.js → dist-es-27PHRDP5.js} +7 -7
  19. package/dist/{dist-es-FEVR73CQ.js → dist-es-2OQPXBWH.js} +8 -8
  20. package/dist/{dist-es-CM7567P2.js → dist-es-DXUGAPLS.js} +8 -8
  21. package/dist/{dist-es-3SVFRI6P.js → dist-es-I2CSW44W.js} +248 -232
  22. package/dist/{dist-es-M6OXVHSI.js → dist-es-MNMQ7EY7.js} +2 -2
  23. package/dist/{dist-es-OB4H2RSG.js → dist-es-OOS7VNC3.js} +10 -10
  24. package/dist/{dist-es-ZDCXFYRX.js → dist-es-P55SOOJS.js} +5 -5
  25. package/dist/{dist-es-DC3KLBPR.js → dist-es-TVPOX7SI.js} +9 -9
  26. package/dist/{dist-es-IS5PH45I.js → dist-es-YACWQ6TD.js} +54 -37
  27. package/dist/{dist-es-KY7QTIEX.js → dist-es-ZM2PC6Y7.js} +22 -22
  28. package/dist/{event-streams-KOWL2S4G.js → event-streams-7VYAXCGO.js} +3 -3
  29. package/dist/index.js +11 -11
  30. package/dist/{loadSso-OLMNBQ4H.js → loadSso-MPKJCJHV.js} +23 -23
  31. package/dist/{signin-NBTUJ5KD.js → signin-WY5DIZ6I.js} +33 -26
  32. package/dist/{sso-oidc-WNK6HQX7.js → sso-oidc-6P6INS3W.js} +25 -25
  33. package/dist/{sts-TGY2Y4DZ.js → sts-2EDS5GKI.js} +28 -28
  34. package/dist/{tool-loader-SOIT6ZYY.js → tool-loader-LURY25XY.js} +2 -2
  35. package/dist/{tool-registry-SNMN6NUP.js → tool-registry-I7553RRN.js} +1 -1
  36. package/package.json +3 -3
  37. package/dist/bowser-GZLEN3PD.js +0 -2821
  38. /package/dist/{chunk-SMQUSHD4.js → chunk-OXX5AQPP.js} +0 -0
@@ -17,16 +17,20 @@ import {
17
17
  hasOwn,
18
18
  isValidHostLabel,
19
19
  isValidHostname,
20
+ parseEpochTimestamp,
21
+ parseRfc3339DateTimeWithOffset,
22
+ parseRfc7231DateTime,
20
23
  quoteHeader,
21
24
  sdkStreamMixin,
22
25
  splitEvery,
23
26
  splitHeader,
24
27
  toBase64,
25
28
  toUtf8,
26
- translateTraits
27
- } from "./chunk-HYYSI5FE.js";
29
+ translateTraits,
30
+ writeKey
31
+ } from "./chunk-5YXDD2GC.js";
28
32
 
29
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js
33
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js
30
34
  var ProviderError = class _ProviderError extends Error {
31
35
  name = "ProviderError";
32
36
  tryNextLink;
@@ -50,7 +54,7 @@ var ProviderError = class _ProviderError extends Error {
50
54
  }
51
55
  };
52
56
 
53
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js
57
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js
54
58
  var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
55
59
  name = "CredentialsProviderError";
56
60
  constructor(message, options = true) {
@@ -59,15 +63,15 @@ var CredentialsProviderError = class _CredentialsProviderError extends ProviderE
59
63
  }
60
64
  };
61
65
 
62
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js
66
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js
63
67
  var ENV_PROFILE = "AWS_PROFILE";
64
68
  var DEFAULT_PROFILE = "default";
65
69
  var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
66
70
 
67
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
71
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
68
72
  import { join } from "path";
69
73
 
70
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js
74
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js
71
75
  import { homedir } from "os";
72
76
  import { sep } from "path";
73
77
  var homeDirCache = {};
@@ -79,29 +83,33 @@ var getHomeDirCacheKey = () => {
79
83
  };
80
84
  var getHomeDir = () => {
81
85
  const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
82
- if (HOME)
86
+ if (HOME) {
83
87
  return HOME;
84
- if (USERPROFILE)
88
+ }
89
+ if (USERPROFILE) {
85
90
  return USERPROFILE;
86
- if (HOMEPATH)
91
+ }
92
+ if (HOMEPATH) {
87
93
  return `${HOMEDRIVE}${HOMEPATH}`;
94
+ }
88
95
  const homeDirCacheKey = getHomeDirCacheKey();
89
- if (!homeDirCache[homeDirCacheKey])
96
+ if (!homeDirCache[homeDirCacheKey]) {
90
97
  homeDirCache[homeDirCacheKey] = homedir();
98
+ }
91
99
  return homeDirCache[homeDirCacheKey];
92
100
  };
93
101
 
94
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
102
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
95
103
  var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
96
104
  var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
97
105
 
98
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
106
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
99
107
  import { join as join3 } from "path";
100
108
 
101
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js
109
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js
102
110
  var CONFIG_PREFIX_SEPARATOR = ".";
103
111
 
104
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
112
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
105
113
  var getConfigData = (data) => Object.entries(data).filter(([key]) => {
106
114
  const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
107
115
  if (indexOfSeparator === -1) {
@@ -117,12 +125,12 @@ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
117
125
  ...data.default && { default: data.default }
118
126
  });
119
127
 
120
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
128
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
121
129
  import { join as join2 } from "path";
122
130
  var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
123
131
  var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
124
132
 
125
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
133
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
126
134
  var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
127
135
  var profileNameBlockList = ["__proto__", "profile __proto__"];
128
136
  var parseIni = (iniData) => {
@@ -171,7 +179,7 @@ var parseIni = (iniData) => {
171
179
  return map;
172
180
  };
173
181
 
174
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
182
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
175
183
  import { readFile as fsReadFile } from "fs/promises";
176
184
  var filePromises = {};
177
185
  var fileIntercept = {};
@@ -185,7 +193,7 @@ var readFile = (path, options) => {
185
193
  return filePromises[path];
186
194
  };
187
195
 
188
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
196
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
189
197
  var swallowError = () => ({});
190
198
  var loadSharedConfigFiles = async (init = {}) => {
191
199
  const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
@@ -213,14 +221,14 @@ var loadSharedConfigFiles = async (init = {}) => {
213
221
  };
214
222
  };
215
223
 
216
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
224
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
217
225
  var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
218
226
 
219
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
227
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
220
228
  var swallowError2 = () => ({});
221
229
  var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
222
230
 
223
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
231
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
224
232
  var mergeConfigFiles = (...files) => {
225
233
  const merged = {};
226
234
  for (const file of files) {
@@ -235,16 +243,16 @@ var mergeConfigFiles = (...files) => {
235
243
  return merged;
236
244
  };
237
245
 
238
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
246
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
239
247
  var parseKnownFiles = async (init) => {
240
248
  const parsedFiles = await loadSharedConfigFiles(init);
241
249
  return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
242
250
  };
243
251
 
244
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
252
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
245
253
  import { readFile as readFile2 } from "fs/promises";
246
254
 
247
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
255
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
248
256
  import { createHash } from "crypto";
249
257
  import { join as join4 } from "path";
250
258
  var getSSOTokenFilepath = (id) => {
@@ -253,7 +261,7 @@ var getSSOTokenFilepath = (id) => {
253
261
  return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
254
262
  };
255
263
 
256
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
264
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
257
265
  var tokenIntercept = {};
258
266
  var getSSOTokenFromFile = async (id) => {
259
267
  if (tokenIntercept[id]) {
@@ -264,7 +272,7 @@ var getSSOTokenFromFile = async (id) => {
264
272
  return JSON.parse(ssoTokenText);
265
273
  };
266
274
 
267
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js
275
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/externalDataInterceptor.js
268
276
  var externalDataInterceptor = {
269
277
  getFileRecord() {
270
278
  return fileIntercept;
@@ -280,7 +288,7 @@ var externalDataInterceptor = {
280
288
  }
281
289
  };
282
290
 
283
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
291
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
284
292
  var chain = (...providers) => async () => {
285
293
  if (providers.length === 0) {
286
294
  throw new ProviderError("No providers in chain");
@@ -301,7 +309,7 @@ var chain = (...providers) => async () => {
301
309
  throw lastProviderError;
302
310
  };
303
311
 
304
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
312
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
305
313
  var memoize = (provider, isExpired, requiresRefresh) => {
306
314
  let resolved;
307
315
  let pending;
@@ -347,7 +355,7 @@ var memoize = (provider, isExpired, requiresRefresh) => {
347
355
  };
348
356
  };
349
357
 
350
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
358
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
351
359
  function getSelectorName(functionString) {
352
360
  try {
353
361
  const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
@@ -360,7 +368,7 @@ function getSelectorName(functionString) {
360
368
  }
361
369
  }
362
370
 
363
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
371
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
364
372
  var fromEnv = (envVarSelector, options) => async () => {
365
373
  try {
366
374
  const config = envVarSelector(process.env, options);
@@ -373,7 +381,7 @@ var fromEnv = (envVarSelector, options) => async () => {
373
381
  }
374
382
  };
375
383
 
376
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
384
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
377
385
  var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
378
386
  const profile = getProfileName(init);
379
387
  const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
@@ -392,21 +400,21 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
392
400
  }
393
401
  };
394
402
 
395
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
403
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
396
404
  var fromValue = (staticValue) => () => Promise.resolve(staticValue);
397
405
 
398
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
406
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
399
407
  var isFunction = (func) => typeof func === "function";
400
408
  var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue);
401
409
 
402
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
410
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
403
411
  var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
404
412
  const { signingName, logger } = configuration;
405
413
  const envOptions = { signingName, logger };
406
414
  return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
407
415
  };
408
416
 
409
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
417
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
410
418
  var validRegions = /* @__PURE__ */ new Set();
411
419
  var checkRegion = (region, check = isValidHostLabel) => {
412
420
  if (!validRegions.has(region) && !check(region)) {
@@ -420,13 +428,13 @@ var checkRegion = (region, check = isValidHostLabel) => {
420
428
  }
421
429
  };
422
430
 
423
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
431
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
424
432
  var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
425
433
 
426
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
434
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
427
435
  var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
428
436
 
429
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
437
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
430
438
  var resolveRegionConfig = (input) => {
431
439
  const { region, useFipsEndpoint } = input;
432
440
  if (!region) {
@@ -449,7 +457,7 @@ var resolveRegionConfig = (input) => {
449
457
  });
450
458
  };
451
459
 
452
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js
460
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js
453
461
  var TokenProviderError = class _TokenProviderError extends ProviderError {
454
462
  name = "TokenProviderError";
455
463
  constructor(message, options = true) {
@@ -458,25 +466,28 @@ var TokenProviderError = class _TokenProviderError extends ProviderError {
458
466
  }
459
467
  };
460
468
 
461
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
469
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
462
470
  var booleanSelector = (obj, key, type) => {
463
- if (!(key in obj))
471
+ if (!(key in obj)) {
464
472
  return void 0;
465
- if (obj[key] === "true")
473
+ }
474
+ if (obj[key] === "true") {
466
475
  return true;
467
- if (obj[key] === "false")
476
+ }
477
+ if (obj[key] === "false") {
468
478
  return false;
479
+ }
469
480
  throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
470
481
  };
471
482
 
472
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
483
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
473
484
  var SelectorType;
474
485
  (function(SelectorType2) {
475
486
  SelectorType2["ENV"] = "env";
476
487
  SelectorType2["CONFIG"] = "shared config entry";
477
488
  })(SelectorType || (SelectorType = {}));
478
489
 
479
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
490
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
480
491
  var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
481
492
  var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
482
493
  var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
@@ -485,7 +496,7 @@ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
485
496
  default: false
486
497
  };
487
498
 
488
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
499
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
489
500
  var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
490
501
  var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
491
502
  var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
@@ -494,7 +505,7 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
494
505
  default: false
495
506
  };
496
507
 
497
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js
508
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js
498
509
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
499
510
  var AWS_REGION_ENV = "AWS_REGION";
500
511
  var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
@@ -505,7 +516,7 @@ var IMDS_TOKEN_PATH = "/latest/api/token";
505
516
  var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
506
517
  var X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
507
518
 
508
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js
519
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js
509
520
  var TIMEOUT_MS = 1e3;
510
521
  var NEG_CACHE_TTL_MS = 6e4;
511
522
  var negativeCacheUntil = 0;
@@ -595,7 +606,7 @@ var imdsRequest = async (options) => {
595
606
  });
596
607
  };
597
608
 
598
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
609
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
599
610
  var REGION_ENV_NAME = "AWS_REGION";
600
611
  var REGION_INI_NAME = "region";
601
612
  var NODE_REGION_CONFIG_OPTIONS = {
@@ -613,7 +624,7 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
613
624
  preferredFile: "credentials"
614
625
  };
615
626
 
616
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js
627
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js
617
628
  var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
618
629
  var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
619
630
  var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
@@ -626,7 +637,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
626
637
  default: "legacy"
627
638
  };
628
639
 
629
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js
640
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js
630
641
  var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
631
642
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
632
643
  switch (mode?.toLowerCase()) {
@@ -666,7 +677,7 @@ var inferPhysicalRegion = async () => {
666
677
  return getInstanceMetadataRegion();
667
678
  };
668
679
 
669
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js
680
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js
670
681
  var CONTENT_LENGTH_HEADER = "content-length";
671
682
  function contentLengthMiddleware(bodyLengthChecker) {
672
683
  return (next) => async (args) => {
@@ -704,7 +715,7 @@ var getContentLengthPlugin = (options) => ({
704
715
  }
705
716
  });
706
717
 
707
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
718
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
708
719
  var collectBody = async (streamBody = new Uint8Array(), context) => {
709
720
  if (streamBody instanceof Uint8Array) {
710
721
  return Uint8ArrayBlobAdapter.mutate(streamBody);
@@ -716,14 +727,14 @@ var collectBody = async (streamBody = new Uint8Array(), context) => {
716
727
  return Uint8ArrayBlobAdapter.mutate(await fromContext);
717
728
  };
718
729
 
719
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
730
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
720
731
  function extendedEncodeURIComponent(str) {
721
732
  return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
722
733
  return "%" + c.charCodeAt(0).toString(16).toUpperCase();
723
734
  });
724
735
  }
725
736
 
726
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
737
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
727
738
  var SerdeContext = class {
728
739
  serdeContext;
729
740
  setSerdeContext(serdeContext) {
@@ -731,7 +742,7 @@ var SerdeContext = class {
731
742
  }
732
743
  };
733
744
 
734
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
745
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
735
746
  var HttpProtocol = class extends SerdeContext {
736
747
  options;
737
748
  compositeErrorRegistry;
@@ -774,8 +785,9 @@ var HttpProtocol = class extends SerdeContext {
774
785
  }
775
786
  if (endpoint.headers) {
776
787
  for (const name in endpoint.headers) {
777
- if (!hasOwn(endpoint.headers, name))
788
+ if (!hasOwn(endpoint.headers, name)) {
778
789
  continue;
790
+ }
779
791
  request.headers[name] = endpoint.headers[name].join(", ");
780
792
  }
781
793
  }
@@ -790,8 +802,9 @@ var HttpProtocol = class extends SerdeContext {
790
802
  };
791
803
  if (endpoint.headers) {
792
804
  for (const name in endpoint.headers) {
793
- if (!hasOwn(endpoint.headers, name))
805
+ if (!hasOwn(endpoint.headers, name)) {
794
806
  continue;
807
+ }
795
808
  request.headers[name] = endpoint.headers[name];
796
809
  }
797
810
  }
@@ -887,7 +900,7 @@ var HttpProtocol = class extends SerdeContext {
887
900
  });
888
901
  }
889
902
  async loadEventStreamCapability() {
890
- const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-KOWL2S4G.js");
903
+ const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-7VYAXCGO.js");
891
904
  const marshaller = this.resolveEventStreamMarshaller(eventStreamSerdeProvider);
892
905
  return new EventStreamSerde({
893
906
  marshaller,
@@ -925,7 +938,7 @@ var HttpProtocol = class extends SerdeContext {
925
938
  }
926
939
  };
927
940
 
928
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
941
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js
929
942
  var HttpBindingProtocol = class extends HttpProtocol {
930
943
  async serializeRequest(operationSchema, _input, context) {
931
944
  const input = _input && typeof _input === "object" ? _input : {};
@@ -1008,8 +1021,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1008
1021
  headers[memberTraits.httpHeader.toLowerCase()] = String(serializer.flush());
1009
1022
  } else if (typeof memberTraits.httpPrefixHeaders === "string") {
1010
1023
  for (const key in inputMemberValue) {
1011
- if (!hasOwn(inputMemberValue, key))
1024
+ if (!hasOwn(inputMemberValue, key)) {
1012
1025
  continue;
1026
+ }
1013
1027
  const val = inputMemberValue[key];
1014
1028
  const amalgam = memberTraits.httpPrefixHeaders + key;
1015
1029
  serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
@@ -1053,8 +1067,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1053
1067
  const traits = ns.getMergedTraits();
1054
1068
  if (traits.httpQueryParams) {
1055
1069
  for (const key in data) {
1056
- if (!hasOwn(data, key))
1070
+ if (!hasOwn(data, key)) {
1057
1071
  continue;
1072
+ }
1058
1073
  if (!(key in query)) {
1059
1074
  const val = data[key];
1060
1075
  const valueSchema = ns.getValueSchema();
@@ -1097,8 +1112,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1097
1112
  throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
1098
1113
  }
1099
1114
  for (const header in response.headers) {
1100
- if (!hasOwn(response.headers, header))
1115
+ if (!hasOwn(response.headers, header)) {
1101
1116
  continue;
1117
+ }
1102
1118
  const value = response.headers[header];
1103
1119
  delete response.headers[header];
1104
1120
  response.headers[header.toLowerCase()] = value;
@@ -1177,8 +1193,9 @@ var HttpBindingProtocol = class extends HttpProtocol {
1177
1193
  } else if (memberTraits.httpPrefixHeaders !== void 0) {
1178
1194
  dataObject[memberName] = {};
1179
1195
  for (const header in response.headers) {
1180
- if (!hasOwn(response.headers, header))
1196
+ if (!hasOwn(response.headers, header)) {
1181
1197
  continue;
1198
+ }
1182
1199
  if (header.startsWith(memberTraits.httpPrefixHeaders)) {
1183
1200
  const value = response.headers[header];
1184
1201
  const valueSchema = memberSchema.getValueSchema();
@@ -1197,7 +1214,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
1197
1214
  }
1198
1215
  };
1199
1216
 
1200
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js
1217
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js
1201
1218
  var RpcProtocol = class extends HttpProtocol {
1202
1219
  async serializeRequest(operationSchema, _input, context) {
1203
1220
  const serializer = this.serializer;
@@ -1253,7 +1270,7 @@ var RpcProtocol = class extends HttpProtocol {
1253
1270
  const deserializer = this.deserializer;
1254
1271
  const ns = NormalizedSchema.of(operationSchema.output);
1255
1272
  const dataObject = {};
1256
- if (response.statusCode >= 300) {
1273
+ if (this.isErrorResponse(response.statusCode)) {
1257
1274
  const bytes = await collectBody(response.body, context);
1258
1275
  if (bytes.byteLength > 0) {
1259
1276
  Object.assign(dataObject, await deserializer.read(15, bytes));
@@ -1262,8 +1279,9 @@ var RpcProtocol = class extends HttpProtocol {
1262
1279
  throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
1263
1280
  }
1264
1281
  for (const header in response.headers) {
1265
- if (!hasOwn(response.headers, header))
1282
+ if (!hasOwn(response.headers, header)) {
1266
1283
  continue;
1284
+ }
1267
1285
  const value = response.headers[header];
1268
1286
  delete response.headers[header];
1269
1287
  response.headers[header.toLowerCase()] = value;
@@ -1284,9 +1302,12 @@ var RpcProtocol = class extends HttpProtocol {
1284
1302
  dataObject.$metadata = this.deserializeMetadata(response);
1285
1303
  return dataObject;
1286
1304
  }
1305
+ isErrorResponse(statusCode) {
1306
+ return statusCode >= 300;
1307
+ }
1287
1308
  };
1288
1309
 
1289
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
1310
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
1290
1311
  function determineTimestampFormat(ns, settings) {
1291
1312
  if (settings.timestampFormat.useTrait) {
1292
1313
  if (ns.isTimestampSchema() && (ns.getSchema() === 5 || ns.getSchema() === 6 || ns.getSchema() === 7)) {
@@ -1298,7 +1319,7 @@ function determineTimestampFormat(ns, settings) {
1298
1319
  return bindingFormat ?? settings.timestampFormat.default;
1299
1320
  }
1300
1321
 
1301
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
1322
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
1302
1323
  var FromStringShapeDeserializer = class extends SerdeContext {
1303
1324
  settings;
1304
1325
  constructor(settings) {
@@ -1360,7 +1381,7 @@ var FromStringShapeDeserializer = class extends SerdeContext {
1360
1381
  }
1361
1382
  };
1362
1383
 
1363
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
1384
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js
1364
1385
  var HttpInterceptingShapeDeserializer = class extends SerdeContext {
1365
1386
  codecDeserializer;
1366
1387
  stringDeserializer;
@@ -1399,7 +1420,7 @@ var HttpInterceptingShapeDeserializer = class extends SerdeContext {
1399
1420
  }
1400
1421
  };
1401
1422
 
1402
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
1423
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js
1403
1424
  var ToStringShapeSerializer = class extends SerdeContext {
1404
1425
  settings;
1405
1426
  stringBuffer = "";
@@ -1486,7 +1507,7 @@ var ToStringShapeSerializer = class extends SerdeContext {
1486
1507
  }
1487
1508
  };
1488
1509
 
1489
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
1510
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeSerializer.js
1490
1511
  var HttpInterceptingShapeSerializer = class {
1491
1512
  codecSerializer;
1492
1513
  stringSerializer;
@@ -1519,11 +1540,14 @@ var HttpInterceptingShapeSerializer = class {
1519
1540
  }
1520
1541
  };
1521
1542
 
1522
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js
1543
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js
1523
1544
  var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
1524
1545
  if (runtimeConfig.logger && runtimeConfig.logger.constructor?.name !== "NoOpLogger") {
1525
1546
  runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"), runtimeConfig.logger);
1526
1547
  }
1548
+ if (runtimeConfig.defaultSocketTimeout) {
1549
+ runtimeConfig.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"), runtimeConfig.defaultSocketTimeout);
1550
+ }
1527
1551
  return {
1528
1552
  setHttpHandler(handler) {
1529
1553
  runtimeConfig.requestHandler = handler;
@@ -1545,11 +1569,11 @@ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
1545
1569
  };
1546
1570
  };
1547
1571
 
1548
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js
1572
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/util-uri-escape/escape-uri.js
1549
1573
  var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
1550
1574
  var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
1551
1575
 
1552
- // ../../node_modules/.pnpm/@smithy+core@3.35.2/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js
1576
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/querystring-builder/buildQueryString.js
1553
1577
  function buildQueryString(query) {
1554
1578
  const parts = [];
1555
1579
  for (let key of Object.keys(query).sort()) {
@@ -1570,6 +1594,1126 @@ function buildQueryString(query) {
1570
1594
  return parts.join("&");
1571
1595
  }
1572
1596
 
1597
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
1598
+ var SerdeContextConfig = class {
1599
+ serdeContext;
1600
+ setSerdeContext(serdeContext) {
1601
+ this.serdeContext = serdeContext;
1602
+ }
1603
+ };
1604
+
1605
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/UnionSerde.js
1606
+ var UnionSerde = class {
1607
+ from;
1608
+ to;
1609
+ keys;
1610
+ constructor(from, to) {
1611
+ this.from = from;
1612
+ this.to = to;
1613
+ const keys = Object.keys(this.from);
1614
+ const set = new Set(keys);
1615
+ set.delete("__type");
1616
+ this.keys = set;
1617
+ }
1618
+ mark(key) {
1619
+ this.keys.delete(key);
1620
+ }
1621
+ hasUnknown() {
1622
+ return this.keys.size === 1 && Object.keys(this.to).length === 0;
1623
+ }
1624
+ writeUnknown() {
1625
+ if (this.hasUnknown()) {
1626
+ const k = this.keys.values().next().value;
1627
+ const v = this.from[k];
1628
+ this.to.$unknown = [k, v];
1629
+ }
1630
+ }
1631
+ };
1632
+
1633
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/detectBufferParsing.js
1634
+ var canParseBuffer;
1635
+ function detectBufferParsing() {
1636
+ if (canParseBuffer === void 0) {
1637
+ try {
1638
+ if (typeof Buffer !== "function") {
1639
+ canParseBuffer = false;
1640
+ } else {
1641
+ const result = JSON.parse(Buffer.from([123, 125]));
1642
+ canParseBuffer = result !== null && typeof result === "object";
1643
+ }
1644
+ } catch {
1645
+ canParseBuffer = false;
1646
+ }
1647
+ }
1648
+ return canParseBuffer;
1649
+ }
1650
+
1651
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/jsonReviver.js
1652
+ function jsonReviver(key, value, context) {
1653
+ if (context?.source) {
1654
+ const numericString = context.source;
1655
+ if (typeof value === "number") {
1656
+ const inSafeRange = value <= Number.MAX_SAFE_INTEGER && value >= Number.MIN_SAFE_INTEGER;
1657
+ if (inSafeRange) {
1658
+ if (isRepresentable(numericString, value)) {
1659
+ return value;
1660
+ }
1661
+ return new NumericValue(numericString, "bigDecimal");
1662
+ } else {
1663
+ if (isFractionalBigNumeric(numericString)) {
1664
+ return new NumericValue(numericString, "bigDecimal");
1665
+ }
1666
+ if (/[eE]/.test(numericString)) {
1667
+ return expandExponentToBigInt(numericString);
1668
+ }
1669
+ return BigInt(numericString);
1670
+ }
1671
+ }
1672
+ }
1673
+ return value;
1674
+ }
1675
+ function isFractionalBigNumeric(s) {
1676
+ const dotIndex = s.indexOf(".");
1677
+ if (dotIndex === -1) {
1678
+ return false;
1679
+ }
1680
+ const eIndex = s.search(/[eE]/);
1681
+ if (eIndex === -1) {
1682
+ return true;
1683
+ }
1684
+ const fracDigits = eIndex - dotIndex - 1;
1685
+ const exp = parseInt(s.slice(eIndex + 1), 10);
1686
+ return exp < fracDigits;
1687
+ }
1688
+ function isRepresentable(numericString, value) {
1689
+ if (numericString === String(value)) {
1690
+ return true;
1691
+ }
1692
+ if (Object.is(value, -0)) {
1693
+ return true;
1694
+ }
1695
+ if (/[eE]/.test(numericString)) {
1696
+ return expandToDecimal(numericString) === expandToDecimal(String(value));
1697
+ }
1698
+ const normalized = numericString.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
1699
+ const canonical = String(value);
1700
+ if (normalized === canonical) {
1701
+ return true;
1702
+ }
1703
+ if (/[eE]/.test(canonical)) {
1704
+ return normalized === expandToDecimal(canonical);
1705
+ }
1706
+ return false;
1707
+ }
1708
+ function expandToDecimal(s) {
1709
+ const negative = s.startsWith("-");
1710
+ const abs = negative ? s.slice(1) : s;
1711
+ const eIndex = abs.search(/[eE]/);
1712
+ let result;
1713
+ if (eIndex === -1) {
1714
+ result = abs;
1715
+ } else {
1716
+ const exp = parseInt(abs.slice(eIndex + 1), 10);
1717
+ const mantissa = abs.slice(0, eIndex);
1718
+ const dotIndex = mantissa.indexOf(".");
1719
+ let digits;
1720
+ let intLen;
1721
+ if (dotIndex === -1) {
1722
+ digits = mantissa;
1723
+ intLen = mantissa.length;
1724
+ } else {
1725
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
1726
+ intLen = dotIndex;
1727
+ }
1728
+ digits = digits.replace(/0+$/, "") || "0";
1729
+ const newDotPos = intLen + exp;
1730
+ if (digits === "0") {
1731
+ result = "0";
1732
+ } else if (newDotPos <= 0) {
1733
+ result = "0." + "0".repeat(-newDotPos) + digits;
1734
+ } else if (newDotPos >= digits.length) {
1735
+ result = digits + "0".repeat(newDotPos - digits.length);
1736
+ } else {
1737
+ result = digits.slice(0, newDotPos) + "." + digits.slice(newDotPos);
1738
+ }
1739
+ }
1740
+ if (result.includes(".")) {
1741
+ result = result.replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "");
1742
+ }
1743
+ return (negative ? "-" : "") + result;
1744
+ }
1745
+ function expandExponentToBigInt(s) {
1746
+ const eIndex = s.search(/[eE]/);
1747
+ const exp = parseInt(s.slice(eIndex + 1), 10);
1748
+ const negative = s.startsWith("-");
1749
+ const mantissa = s.slice(negative ? 1 : 0, eIndex);
1750
+ const dotIndex = mantissa.indexOf(".");
1751
+ let digits;
1752
+ let shift;
1753
+ if (dotIndex === -1) {
1754
+ digits = mantissa;
1755
+ shift = exp;
1756
+ } else {
1757
+ digits = mantissa.slice(0, dotIndex) + mantissa.slice(dotIndex + 1);
1758
+ const fracDigits = mantissa.length - dotIndex - 1;
1759
+ shift = exp - fracDigits;
1760
+ }
1761
+ digits = digits.replace(/0+$/, "") || "0";
1762
+ const result = BigInt(digits) * 10n ** BigInt(shift + (mantissa.replace(".", "").length - digits.length));
1763
+ return negative ? -result : result;
1764
+ }
1765
+
1766
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/needsReviver.js
1767
+ var REVIVER_SYMBOL = Symbol.for("@aws-sdk/reviver");
1768
+ function needsReviver(schema) {
1769
+ const ns = NormalizedSchema.of(schema);
1770
+ const raw = ns.getSchema();
1771
+ if (Array.isArray(raw) && ns.isStructSchema()) {
1772
+ if (REVIVER_SYMBOL in raw) {
1773
+ return raw[REVIVER_SYMBOL];
1774
+ }
1775
+ const result = _check(ns, /* @__PURE__ */ new Set());
1776
+ raw[REVIVER_SYMBOL] = result;
1777
+ return result;
1778
+ }
1779
+ return _check(ns, /* @__PURE__ */ new Set());
1780
+ }
1781
+ function _check(ns, seen) {
1782
+ const raw = ns.getSchema();
1783
+ if (seen.has(raw)) {
1784
+ return false;
1785
+ }
1786
+ seen.add(raw);
1787
+ if (ns.isBigIntegerSchema() || ns.isBigDecimalSchema()) {
1788
+ return true;
1789
+ }
1790
+ if (ns.isStructSchema()) {
1791
+ for (const [, memberSchema] of ns.structIterator()) {
1792
+ if (_check(memberSchema, seen)) {
1793
+ return true;
1794
+ }
1795
+ }
1796
+ } else if (ns.isListSchema() || ns.isMapSchema()) {
1797
+ if (_check(ns.getValueSchema(), seen)) {
1798
+ return true;
1799
+ }
1800
+ } else if (ns.isDocumentSchema()) {
1801
+ return true;
1802
+ }
1803
+ return false;
1804
+ }
1805
+
1806
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/common.js
1807
+ var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => (context?.utf8Encoder ?? toUtf8)(body));
1808
+
1809
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/parseJsonBody.js
1810
+ async function parseJsonBody(streamBody, context, schema) {
1811
+ let parsingInput;
1812
+ if (detectBufferParsing() && typeof streamBody?.[Symbol.asyncIterator] === "function") {
1813
+ const buffer = await collectBody(streamBody, context);
1814
+ if (typeof Buffer === "function") {
1815
+ if (Buffer.isBuffer(buffer)) {
1816
+ parsingInput = buffer;
1817
+ } else {
1818
+ parsingInput = Buffer.from(buffer.buffer, buffer.byteOffset, buffer.byteLength);
1819
+ }
1820
+ }
1821
+ }
1822
+ if (!parsingInput) {
1823
+ parsingInput = await collectBodyString(streamBody, context);
1824
+ }
1825
+ if (parsingInput.length === 0) {
1826
+ return {};
1827
+ }
1828
+ const reviver = schema && needsReviver(schema) ? jsonReviver : void 0;
1829
+ try {
1830
+ return JSON.parse(parsingInput, reviver);
1831
+ } catch (e) {
1832
+ if (e?.name === "SyntaxError") {
1833
+ Object.defineProperty(e, "$responseBodyText", {
1834
+ value: typeof parsingInput === "string" ? parsingInput : parsingInput.toString("utf8")
1835
+ });
1836
+ }
1837
+ throw e;
1838
+ }
1839
+ }
1840
+ var findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1841
+ var sanitizeErrorCode = (rawValue) => {
1842
+ let cleanValue = rawValue;
1843
+ if (typeof cleanValue === "number") {
1844
+ cleanValue = cleanValue.toString();
1845
+ }
1846
+ if (cleanValue.indexOf(",") >= 0) {
1847
+ cleanValue = cleanValue.split(",")[0];
1848
+ }
1849
+ if (cleanValue.indexOf(":") >= 0) {
1850
+ cleanValue = cleanValue.split(":")[0];
1851
+ }
1852
+ if (cleanValue.indexOf("#") >= 0) {
1853
+ cleanValue = cleanValue.split("#")[1];
1854
+ }
1855
+ return cleanValue;
1856
+ };
1857
+ var loadRestJsonErrorCode = (output, data) => {
1858
+ return loadErrorCode(output, data, ["header", "code", "type"]);
1859
+ };
1860
+ var loadErrorCode = ({ headers }, data, order) => {
1861
+ while (order.length > 0) {
1862
+ const location = order.shift();
1863
+ switch (location) {
1864
+ case "header":
1865
+ const headerKey = findKey(headers ?? {}, "x-amzn-errortype");
1866
+ if (headerKey !== void 0) {
1867
+ return sanitizeErrorCode(headers[headerKey]);
1868
+ }
1869
+ break;
1870
+ case "code":
1871
+ const codeKey = findKey(data ?? {}, "code");
1872
+ if (codeKey && data[codeKey] !== void 0) {
1873
+ return sanitizeErrorCode(data[codeKey]);
1874
+ }
1875
+ break;
1876
+ case "type":
1877
+ if (data?.__type !== void 0) {
1878
+ return sanitizeErrorCode(data.__type);
1879
+ }
1880
+ break;
1881
+ }
1882
+ }
1883
+ };
1884
+
1885
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js
1886
+ var JsonShapeDeserializer2 = class extends SerdeContextConfig {
1887
+ settings;
1888
+ constructor(settings) {
1889
+ super();
1890
+ this.settings = settings;
1891
+ }
1892
+ async read(schema, data) {
1893
+ const reviver = needsReviver(schema) ? jsonReviver : void 0;
1894
+ let parsed;
1895
+ if (typeof data === "string") {
1896
+ if (data.length === 0) {
1897
+ return {};
1898
+ }
1899
+ parsed = JSON.parse(data, reviver);
1900
+ } else if (data instanceof Uint8Array && detectBufferParsing()) {
1901
+ if (data.byteLength === 0) {
1902
+ return {};
1903
+ }
1904
+ const buf = Buffer.isBuffer(data) ? data : Buffer.from(data.buffer, data.byteOffset, data.byteLength);
1905
+ parsed = JSON.parse(buf, reviver);
1906
+ } else {
1907
+ parsed = await parseJsonBody(data, this.serdeContext, schema);
1908
+ }
1909
+ return this._read(schema, parsed);
1910
+ }
1911
+ readObject(schema, data) {
1912
+ return this._read(schema, data);
1913
+ }
1914
+ _read(schema, value) {
1915
+ const isObject = value !== null && typeof value === "object";
1916
+ const ns = NormalizedSchema.of(schema);
1917
+ if (isObject) {
1918
+ if (ns.isStructSchema()) {
1919
+ return this._readStruct(ns, value);
1920
+ }
1921
+ if (Array.isArray(value) && ns.isListSchema()) {
1922
+ const listMember = ns.getValueSchema();
1923
+ if (this.needsTransform(listMember)) {
1924
+ for (let i = 0; i < value.length; ++i) {
1925
+ value[i] = this._read(listMember, value[i]);
1926
+ }
1927
+ }
1928
+ return value;
1929
+ }
1930
+ if (ns.isMapSchema()) {
1931
+ const mapMember = ns.getValueSchema();
1932
+ const map = value;
1933
+ if (this.needsTransform(mapMember)) {
1934
+ for (const k in map) {
1935
+ if (!hasOwn(map, k)) {
1936
+ continue;
1937
+ }
1938
+ if (k === "__proto__") {
1939
+ writeKey(map);
1940
+ }
1941
+ map[k] = this._read(mapMember, map[k]);
1942
+ }
1943
+ }
1944
+ return map;
1945
+ }
1946
+ }
1947
+ if (ns.isBlobSchema() && typeof value === "string") {
1948
+ return fromBase64(value);
1949
+ }
1950
+ const mediaType = ns.getMergedTraits().mediaType;
1951
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
1952
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1953
+ if (isJson) {
1954
+ return LazyJsonString.from(value);
1955
+ }
1956
+ return value;
1957
+ }
1958
+ if (ns.isTimestampSchema() && value != null) {
1959
+ const format = determineTimestampFormat(ns, this.settings);
1960
+ switch (format) {
1961
+ case 5:
1962
+ return parseRfc3339DateTimeWithOffset(value);
1963
+ case 6:
1964
+ return parseRfc7231DateTime(value);
1965
+ case 7:
1966
+ return parseEpochTimestamp(value);
1967
+ default:
1968
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
1969
+ return new Date(value);
1970
+ }
1971
+ }
1972
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
1973
+ return BigInt(value);
1974
+ }
1975
+ if (ns.isBigDecimalSchema() && value != void 0) {
1976
+ if (value instanceof NumericValue) {
1977
+ return value;
1978
+ }
1979
+ const untyped = value;
1980
+ if (untyped.type === "bigDecimal" && "string" in untyped) {
1981
+ return new NumericValue(untyped.string, untyped.type);
1982
+ }
1983
+ return new NumericValue(String(value), "bigDecimal");
1984
+ }
1985
+ if (ns.isNumericSchema() && typeof value === "string") {
1986
+ switch (value) {
1987
+ case "Infinity":
1988
+ return Infinity;
1989
+ case "-Infinity":
1990
+ return -Infinity;
1991
+ case "NaN":
1992
+ return NaN;
1993
+ }
1994
+ return value;
1995
+ }
1996
+ if (ns.isDocumentSchema()) {
1997
+ if (isObject) {
1998
+ if (Array.isArray(value)) {
1999
+ for (let i = 0; i < value.length; ++i) {
2000
+ const v = value[i];
2001
+ if (!(v instanceof NumericValue)) {
2002
+ value[i] = this._read(ns, v);
2003
+ }
2004
+ }
2005
+ } else {
2006
+ const doc = value;
2007
+ for (const k in doc) {
2008
+ if (!hasOwn(doc, k)) {
2009
+ continue;
2010
+ }
2011
+ if (k === "__proto__") {
2012
+ writeKey(doc);
2013
+ }
2014
+ const v = doc[k];
2015
+ if (!(v instanceof NumericValue)) {
2016
+ doc[k] = this._read(ns, v);
2017
+ }
2018
+ }
2019
+ }
2020
+ }
2021
+ }
2022
+ return value;
2023
+ }
2024
+ _readStruct(ns, record) {
2025
+ const union = ns.isUnionSchema();
2026
+ const out = {};
2027
+ let nameMap;
2028
+ const hasType = typeof record.__type === "string";
2029
+ const { jsonName } = this.settings;
2030
+ if (jsonName && hasType) {
2031
+ nameMap = {};
2032
+ }
2033
+ let unionSerde;
2034
+ if (union) {
2035
+ unionSerde = new UnionSerde(record, out);
2036
+ }
2037
+ for (const [memberName, memberSchema] of ns.structIterator()) {
2038
+ let fromKey = memberName;
2039
+ if (jsonName) {
2040
+ fromKey = memberSchema.getMergedTraits().jsonName ?? fromKey;
2041
+ if (hasType) {
2042
+ nameMap[fromKey] = memberName;
2043
+ }
2044
+ }
2045
+ if (union) {
2046
+ unionSerde.mark(fromKey);
2047
+ }
2048
+ if (record[fromKey] != null) {
2049
+ out[memberName] = this._read(memberSchema, record[fromKey]);
2050
+ }
2051
+ }
2052
+ if (union) {
2053
+ unionSerde.writeUnknown();
2054
+ } else if (hasType) {
2055
+ for (const k in record) {
2056
+ if (!hasOwn(record, k)) {
2057
+ continue;
2058
+ }
2059
+ const v = record[k];
2060
+ const t = jsonName ? nameMap[k] ?? k : k;
2061
+ if (!(t in out)) {
2062
+ out[t] = v;
2063
+ }
2064
+ }
2065
+ }
2066
+ return out;
2067
+ }
2068
+ needsTransform(ns) {
2069
+ if (ns.isBlobSchema() || ns.isTimestampSchema() || ns.isBigIntegerSchema() || ns.isBigDecimalSchema() || ns.isNumericSchema()) {
2070
+ return true;
2071
+ }
2072
+ if (ns.isDocumentSchema() || ns.isStructSchema() || ns.isListSchema() || ns.isMapSchema()) {
2073
+ return true;
2074
+ }
2075
+ if (ns.isStringSchema() && ns.getMergedTraits().mediaType) {
2076
+ return true;
2077
+ }
2078
+ return false;
2079
+ }
2080
+ };
2081
+
2082
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js
2083
+ var JsonBytesStringAdapter = class _JsonBytesStringAdapter extends Uint8Array {
2084
+ string = null;
2085
+ static allocUnsafe(bytes) {
2086
+ if (typeof Buffer === "function") {
2087
+ const buffer = Buffer.allocUnsafe(bytes);
2088
+ return new _JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
2089
+ }
2090
+ return new _JsonBytesStringAdapter(bytes);
2091
+ }
2092
+ toString() {
2093
+ return this.s();
2094
+ }
2095
+ valueOf() {
2096
+ return this.s();
2097
+ }
2098
+ includes(searchString, position) {
2099
+ if (typeof searchString === "string") {
2100
+ return this.s().includes(searchString, position);
2101
+ }
2102
+ return Uint8Array.prototype.includes.call(this, searchString, position);
2103
+ }
2104
+ indexOf(searchString, position) {
2105
+ if (typeof searchString === "string") {
2106
+ return this.s().indexOf(searchString, position);
2107
+ }
2108
+ return Uint8Array.prototype.indexOf.call(this, searchString, position);
2109
+ }
2110
+ lastIndexOf(searchString, position) {
2111
+ if (typeof searchString === "string") {
2112
+ return this.s().lastIndexOf(searchString, position);
2113
+ }
2114
+ const fn = Uint8Array.prototype.lastIndexOf;
2115
+ if (position !== void 0) {
2116
+ return fn.call(this, searchString, position);
2117
+ }
2118
+ return fn.call(this, searchString);
2119
+ }
2120
+ startsWith(searchString, position) {
2121
+ return this.s().startsWith(searchString, position);
2122
+ }
2123
+ endsWith(searchString, endPosition) {
2124
+ return this.s().endsWith(searchString, endPosition);
2125
+ }
2126
+ match(regexp) {
2127
+ return this.s().match(regexp);
2128
+ }
2129
+ replace(searchValue, replaceValue) {
2130
+ return this.s().replace(searchValue, replaceValue);
2131
+ }
2132
+ search(regexp) {
2133
+ return this.s().search(regexp);
2134
+ }
2135
+ split(separator, limit) {
2136
+ return this.s().split(separator, limit);
2137
+ }
2138
+ substring(start, end) {
2139
+ return this.s().substring(start, end);
2140
+ }
2141
+ trim() {
2142
+ return this.s().trim();
2143
+ }
2144
+ trimStart() {
2145
+ return this.s().trimStart();
2146
+ }
2147
+ trimEnd() {
2148
+ return this.s().trimEnd();
2149
+ }
2150
+ charAt(pos) {
2151
+ return this.s().charAt(pos);
2152
+ }
2153
+ charCodeAt(index) {
2154
+ return this.s().charCodeAt(index);
2155
+ }
2156
+ padStart(maxLength, fillString) {
2157
+ return this.s().padStart(maxLength, fillString);
2158
+ }
2159
+ padEnd(maxLength, fillString) {
2160
+ return this.s().padEnd(maxLength, fillString);
2161
+ }
2162
+ repeat(count) {
2163
+ return this.s().repeat(count);
2164
+ }
2165
+ toUpperCase() {
2166
+ return this.s().toUpperCase();
2167
+ }
2168
+ toLowerCase() {
2169
+ return this.s().toLowerCase();
2170
+ }
2171
+ s() {
2172
+ if (this.string == null) {
2173
+ const n = Date.now();
2174
+ if (n > warned + 6e4) {
2175
+ console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error.");
2176
+ warned = n;
2177
+ }
2178
+ this.string = toUtf8(this);
2179
+ }
2180
+ return this.string;
2181
+ }
2182
+ };
2183
+ var warned = 0;
2184
+
2185
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js
2186
+ var encoder = new TextEncoder();
2187
+ var OPEN_BRACE = 123;
2188
+ var CLOSE_BRACE = 125;
2189
+ var OPEN_BRACKET = 91;
2190
+ var CLOSE_BRACKET = 93;
2191
+ var QUOTE = 34;
2192
+ var COLON = 58;
2193
+ var COMMA = 44;
2194
+ var BACKSLASH = 92;
2195
+ var TRUE = new Uint8Array([116, 114, 117, 101]);
2196
+ var FALSE = new Uint8Array([102, 97, 108, 115, 101]);
2197
+ var NULL = new Uint8Array([110, 117, 108, 108]);
2198
+ var ESCAPE_TABLE = new Array(128).fill(null);
2199
+ ESCAPE_TABLE[8] = "b";
2200
+ ESCAPE_TABLE[9] = "t";
2201
+ ESCAPE_TABLE[10] = "n";
2202
+ ESCAPE_TABLE[12] = "f";
2203
+ ESCAPE_TABLE[13] = "r";
2204
+ ESCAPE_TABLE[34] = '"';
2205
+ ESCAPE_TABLE[92] = "\\";
2206
+ for (let i = 0; i < 32; i++) {
2207
+ if (ESCAPE_TABLE[i] === null) {
2208
+ ESCAPE_TABLE[i] = "u00" + i.toString(16).padStart(2, "0");
2209
+ }
2210
+ }
2211
+ var INITIAL_BUFFER_SIZE = 2048;
2212
+ function alloc(size) {
2213
+ return JsonBytesStringAdapter.allocUnsafe(size);
2214
+ }
2215
+ var JsonShapeSerializer2 = class _JsonShapeSerializer2 extends SerdeContextConfig {
2216
+ settings;
2217
+ json;
2218
+ i = 0;
2219
+ rootSchema;
2220
+ rawValue;
2221
+ passthrough = false;
2222
+ constructor(settings) {
2223
+ super();
2224
+ this.settings = settings;
2225
+ this.json = alloc(INITIAL_BUFFER_SIZE);
2226
+ }
2227
+ write(schema, value) {
2228
+ this.i = 0;
2229
+ this.rawValue = value;
2230
+ this.rootSchema = NormalizedSchema.of(schema);
2231
+ this.passthrough = this.rootSchema.isBlobSchema() || this.rootSchema.isStringSchema();
2232
+ if (!this.passthrough) {
2233
+ this.writeValue(this.rootSchema, value, void 0);
2234
+ }
2235
+ }
2236
+ writeDiscriminatedDocument(schema, value) {
2237
+ this.i = 0;
2238
+ this.rootSchema = NormalizedSchema.of(schema);
2239
+ const ns = this.rootSchema;
2240
+ if (ns.isStructSchema() && value != null && typeof value === "object") {
2241
+ this.writeValue(ns, value, void 0);
2242
+ const prefix = `"__type":"${ns.getName(true) ?? "Unknown"}",`;
2243
+ const z = prefix.length;
2244
+ this.ensure(z);
2245
+ this.json.copyWithin(1 + z, 1, this.i);
2246
+ encoder.encodeInto(prefix, this.json.subarray(1));
2247
+ this.i += z;
2248
+ } else {
2249
+ this.writeValue(ns, value, void 0);
2250
+ }
2251
+ }
2252
+ flush() {
2253
+ this.rootSchema = void 0;
2254
+ const finalPosition = this.i;
2255
+ this.i = 0;
2256
+ const raw = this.rawValue;
2257
+ this.rawValue = void 0;
2258
+ if (finalPosition === 0) {
2259
+ return raw;
2260
+ }
2261
+ const result = this.json.subarray(0, finalPosition);
2262
+ this.json = alloc(INITIAL_BUFFER_SIZE);
2263
+ return result;
2264
+ }
2265
+ ensure(byteCount) {
2266
+ const { i, json } = this;
2267
+ if (i + byteCount > json.length) {
2268
+ let newSize = json.length * 2;
2269
+ while (newSize < i + byteCount) {
2270
+ newSize *= 2;
2271
+ }
2272
+ const next = alloc(newSize);
2273
+ next.set(this.json);
2274
+ this.json = next;
2275
+ }
2276
+ }
2277
+ writeAscii(s) {
2278
+ const z = s.length;
2279
+ this.ensure(z);
2280
+ let { i, json } = this;
2281
+ for (let j = 0; j < z; ++j) {
2282
+ json[i] = s.charCodeAt(j);
2283
+ i += 1;
2284
+ }
2285
+ this.i = i;
2286
+ }
2287
+ writeAsciiQuoted(s) {
2288
+ const z = s.length;
2289
+ this.ensure(z + 4);
2290
+ let { json, i } = this;
2291
+ json[i++] = QUOTE;
2292
+ for (let j = 0; j < z; ++j) {
2293
+ json[i++] = s.charCodeAt(j);
2294
+ }
2295
+ json[i++] = QUOTE;
2296
+ this.i = i;
2297
+ }
2298
+ writeJsonString(s) {
2299
+ const z = s.length;
2300
+ this.ensure(z * 3 + 2);
2301
+ this.json[this.i++] = QUOTE;
2302
+ for (let j = 0; j < z; ++j) {
2303
+ const c = s.charCodeAt(j);
2304
+ if (c > 34 && c < 92) {
2305
+ this.json[this.i++] = c;
2306
+ } else if (c < 128) {
2307
+ const esc = ESCAPE_TABLE[c];
2308
+ if (esc !== null) {
2309
+ this.ensure(esc.length + 1 + (z - j - 1) * 3 + 1);
2310
+ this.json[this.i++] = BACKSLASH;
2311
+ for (let k = 0; k < esc.length; k++) {
2312
+ this.json[this.i++] = esc.charCodeAt(k);
2313
+ }
2314
+ } else {
2315
+ this.json[this.i++] = c;
2316
+ }
2317
+ } else if (c >= 55296 && c <= 56319) {
2318
+ const next = j + 1 < z ? s.charCodeAt(j + 1) : 0;
2319
+ if (next >= 56320 && next <= 57343) {
2320
+ this.ensure(4);
2321
+ const { written } = encoder.encodeInto(s.substring(j, j + 2), this.json.subarray(this.i));
2322
+ this.i += written;
2323
+ ++j;
2324
+ } else {
2325
+ this.ensure(6 + (z - j - 1) * 3 + 1);
2326
+ this.writeUnicodeEscape(c);
2327
+ }
2328
+ } else if (c >= 56320 && c <= 57343) {
2329
+ this.ensure(6 + (z - j - 1) * 3 + 1);
2330
+ this.writeUnicodeEscape(c);
2331
+ } else {
2332
+ let { i, json } = this;
2333
+ if (c < 2048) {
2334
+ json[i++] = 192 | c >> 6;
2335
+ json[i++] = 128 | c & 63;
2336
+ } else {
2337
+ json[i++] = 224 | c >> 12;
2338
+ json[i++] = 128 | c >> 6 & 63;
2339
+ json[i++] = 128 | c & 63;
2340
+ }
2341
+ this.i = i;
2342
+ }
2343
+ }
2344
+ this.json[this.i++] = QUOTE;
2345
+ }
2346
+ writeUnicodeEscape(code) {
2347
+ let { json, i } = this;
2348
+ json[i++] = BACKSLASH;
2349
+ json[i++] = 117;
2350
+ const hex = code.toString(16).padStart(4, "0");
2351
+ for (let j = 0; j < 4; ++j) {
2352
+ json[i++] = hex.charCodeAt(j);
2353
+ }
2354
+ this.i = i;
2355
+ }
2356
+ static B64 = (() => {
2357
+ const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
2358
+ const table = new Uint8Array(64);
2359
+ for (let i = 0; i < 64; ++i) {
2360
+ table[i] = chars.charCodeAt(i);
2361
+ }
2362
+ return table;
2363
+ })();
2364
+ writeBase64(data) {
2365
+ const b64Len = Math.ceil(data.length / 3) * 4;
2366
+ this.ensure(b64Len + 2);
2367
+ const json = this.json;
2368
+ const B64 = _JsonShapeSerializer2.B64;
2369
+ let i = this.i;
2370
+ json[i++] = QUOTE;
2371
+ const len = data.length;
2372
+ const remainder = len % 3;
2373
+ const mainLen = len - remainder;
2374
+ for (let j = 0; j < mainLen; j += 3) {
2375
+ const a = data[j];
2376
+ const b = data[j + 1];
2377
+ const c = data[j + 2];
2378
+ json[i++] = B64[a >> 2];
2379
+ json[i++] = B64[(a & 3) << 4 | b >> 4];
2380
+ json[i++] = B64[(b & 15) << 2 | c >> 6];
2381
+ json[i++] = B64[c & 63];
2382
+ }
2383
+ if (remainder === 2) {
2384
+ const a = data[mainLen];
2385
+ const b = data[mainLen + 1];
2386
+ json[i++] = B64[a >> 2];
2387
+ json[i++] = B64[(a & 3) << 4 | b >> 4];
2388
+ json[i++] = B64[(b & 15) << 2];
2389
+ json[i++] = 61;
2390
+ } else if (remainder === 1) {
2391
+ const a = data[mainLen];
2392
+ json[i++] = B64[a >> 2];
2393
+ json[i++] = B64[(a & 3) << 4];
2394
+ json[i++] = 61;
2395
+ json[i++] = 61;
2396
+ }
2397
+ json[i++] = QUOTE;
2398
+ this.i = i;
2399
+ }
2400
+ writeValue(schema, value, container) {
2401
+ if (value == null) {
2402
+ if (container?.isStructSchema()) {
2403
+ if (value === void 0) {
2404
+ const ns2 = NormalizedSchema.of(schema);
2405
+ if (ns2.isIdempotencyToken()) {
2406
+ this.writeAsciiQuoted(generateIdempotencyToken());
2407
+ return;
2408
+ }
2409
+ }
2410
+ return;
2411
+ }
2412
+ this.ensure(4);
2413
+ this.json.set(NULL, this.i);
2414
+ this.i += 4;
2415
+ return;
2416
+ }
2417
+ const ns = NormalizedSchema.of(schema);
2418
+ const isObject = typeof value === "object";
2419
+ if (ns.isStringSchema()) {
2420
+ const mediaType = ns.getMergedTraits().mediaType;
2421
+ if (mediaType) {
2422
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
2423
+ if (isJson) {
2424
+ this.writeJsonString(LazyJsonString.from(value).toString());
2425
+ return;
2426
+ }
2427
+ }
2428
+ }
2429
+ if (this.settings.bigNumberAsString && value != null && (ns.isBigIntegerSchema() || ns.isBigDecimalSchema())) {
2430
+ const asString = value instanceof NumericValue ? value.string : String(value);
2431
+ this.writeAsciiQuoted(asString);
2432
+ return;
2433
+ }
2434
+ if (isObject) {
2435
+ if (ns.isStructSchema()) {
2436
+ this.writeStruct(ns, value);
2437
+ return;
2438
+ }
2439
+ if (Array.isArray(value) && (ns.isListSchema() || ns.isDocumentSchema())) {
2440
+ this.writeList(ns, value, ns.isDocumentSchema());
2441
+ return;
2442
+ }
2443
+ if (ns.isMapSchema()) {
2444
+ this.writeMap(ns, value, false);
2445
+ return;
2446
+ }
2447
+ if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
2448
+ this.writeBase64(value);
2449
+ return;
2450
+ }
2451
+ if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
2452
+ this.writeTimestamp(ns, value);
2453
+ return;
2454
+ }
2455
+ if (value instanceof NumericValue) {
2456
+ this.writeAscii(value.string);
2457
+ return;
2458
+ }
2459
+ if (ns.isDocumentSchema()) {
2460
+ if (Array.isArray(value)) {
2461
+ this.writeList(ns, value, true);
2462
+ } else {
2463
+ this.writeMap(ns, value, true);
2464
+ }
2465
+ return;
2466
+ }
2467
+ const json = JSON.stringify(value);
2468
+ this.writeAscii(json);
2469
+ return;
2470
+ }
2471
+ if (typeof value === "string") {
2472
+ if (ns.isBlobSchema()) {
2473
+ const b64 = (this.serdeContext?.base64Encoder ?? toBase64)(value);
2474
+ this.writeAsciiQuoted(b64);
2475
+ return;
2476
+ }
2477
+ this.writeJsonString(value);
2478
+ return;
2479
+ }
2480
+ if (typeof value === "number") {
2481
+ if (Math.abs(value) === Infinity || Number.isNaN(value)) {
2482
+ this.writeAsciiQuoted(String(value));
2483
+ return;
2484
+ }
2485
+ const numStr = String(value);
2486
+ this.writeAscii(numStr);
2487
+ return;
2488
+ }
2489
+ if (typeof value === "boolean") {
2490
+ this.ensure(5);
2491
+ let { i, json } = this;
2492
+ if (value) {
2493
+ json.set(TRUE, i);
2494
+ i += 4;
2495
+ } else {
2496
+ json.set(FALSE, i);
2497
+ i += 5;
2498
+ }
2499
+ this.i = i;
2500
+ return;
2501
+ }
2502
+ if (typeof value === "bigint") {
2503
+ this.writeAscii(value.toString());
2504
+ return;
2505
+ }
2506
+ this.writeAscii(String(value));
2507
+ }
2508
+ writeStruct(ns, value) {
2509
+ this.ensure(2);
2510
+ this.json[this.i++] = OPEN_BRACE;
2511
+ let wroteAny = false;
2512
+ const hasType = typeof value.__type === "string";
2513
+ let writtenKeys;
2514
+ if (hasType) {
2515
+ writtenKeys = /* @__PURE__ */ new Set();
2516
+ }
2517
+ for (const [memberName, memberSchema] of ns.structIterator()) {
2518
+ const item = value[memberName];
2519
+ if (item == null && !memberSchema.isIdempotencyToken()) {
2520
+ continue;
2521
+ }
2522
+ if (wroteAny) {
2523
+ this.ensure(1);
2524
+ this.json[this.i++] = COMMA;
2525
+ }
2526
+ wroteAny = true;
2527
+ const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
2528
+ if (writtenKeys) {
2529
+ writtenKeys.add(memberName);
2530
+ writtenKeys.add(targetKey);
2531
+ }
2532
+ this.writeAsciiQuoted(targetKey);
2533
+ this.json[this.i++] = COLON;
2534
+ this.writeValue(memberSchema, item, ns);
2535
+ }
2536
+ if (!wroteAny && ns.isUnionSchema()) {
2537
+ const { $unknown } = value;
2538
+ if (Array.isArray($unknown)) {
2539
+ const [k, v] = $unknown;
2540
+ this.writeAsciiQuoted(k);
2541
+ this.ensure(1);
2542
+ this.json[this.i++] = COLON;
2543
+ this.writeValue(15, v, ns);
2544
+ }
2545
+ } else if (hasType) {
2546
+ for (const k in value) {
2547
+ if (writtenKeys.has(k)) {
2548
+ continue;
2549
+ }
2550
+ writtenKeys.add(k);
2551
+ const v = value[k];
2552
+ if (wroteAny) {
2553
+ this.ensure(1);
2554
+ this.json[this.i++] = COMMA;
2555
+ }
2556
+ wroteAny = true;
2557
+ this.writeAsciiQuoted(k);
2558
+ this.ensure(1);
2559
+ this.json[this.i++] = COLON;
2560
+ this.writeValue(15, v, void 0);
2561
+ }
2562
+ }
2563
+ this.ensure(1);
2564
+ this.json[this.i++] = CLOSE_BRACE;
2565
+ }
2566
+ writeList(ns, value, isDocument) {
2567
+ const sparse = !!ns.getMergedTraits().sparse;
2568
+ const valueSchema = ns.getValueSchema();
2569
+ if (!isDocument) {
2570
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
2571
+ let hasSpecials = false;
2572
+ for (let i = 0; i < value.length; ++i) {
2573
+ const v = value[i];
2574
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity || v == null && !sparse) {
2575
+ hasSpecials = true;
2576
+ break;
2577
+ }
2578
+ }
2579
+ let json;
2580
+ if (!hasSpecials) {
2581
+ json = JSON.stringify(value);
2582
+ } else {
2583
+ const out = [];
2584
+ for (let i = 0; i < value.length; ++i) {
2585
+ const v = value[i];
2586
+ if (v == null && !sparse) {
2587
+ continue;
2588
+ }
2589
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2590
+ out.push(String(v));
2591
+ } else {
2592
+ out.push(v);
2593
+ }
2594
+ }
2595
+ json = JSON.stringify(out);
2596
+ }
2597
+ this.ensure(json.length * 3);
2598
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
2599
+ return;
2600
+ }
2601
+ }
2602
+ this.ensure(2);
2603
+ this.json[this.i++] = OPEN_BRACKET;
2604
+ let wroteFirstItem = false;
2605
+ for (let i = 0; i < value.length; ++i) {
2606
+ const item = value[i];
2607
+ if (isDocument ? item === void 0 : item == null && !sparse) {
2608
+ continue;
2609
+ }
2610
+ if (wroteFirstItem) {
2611
+ this.ensure(1);
2612
+ this.json[this.i++] = COMMA;
2613
+ }
2614
+ this.writeValue(valueSchema, item, void 0);
2615
+ wroteFirstItem = true;
2616
+ }
2617
+ this.ensure(1);
2618
+ this.json[this.i++] = CLOSE_BRACKET;
2619
+ }
2620
+ writeMap(ns, value, isDocument) {
2621
+ const sparse = !!ns.getMergedTraits().sparse;
2622
+ const valueSchema = ns.getValueSchema();
2623
+ if (!isDocument) {
2624
+ if (valueSchema.isStringSchema() || valueSchema.isNumericSchema() || valueSchema.isBooleanSchema()) {
2625
+ let modifications;
2626
+ for (const k in value) {
2627
+ if (!hasOwn(value, k)) {
2628
+ continue;
2629
+ }
2630
+ const v = value[k];
2631
+ if (Number.isNaN(v) || v === Infinity || v === -Infinity) {
2632
+ (modifications ??= {})[k] = v;
2633
+ value[k] = String(v);
2634
+ } else if (v === null && !sparse) {
2635
+ (modifications ??= {})[k] = null;
2636
+ value[k] = void 0;
2637
+ }
2638
+ }
2639
+ const json = JSON.stringify(value);
2640
+ if (modifications) {
2641
+ Object.assign(value, modifications);
2642
+ }
2643
+ this.ensure(json.length * 3);
2644
+ this.i += encoder.encodeInto(json, this.json.subarray(this.i)).written;
2645
+ return;
2646
+ }
2647
+ }
2648
+ this.ensure(2);
2649
+ this.json[this.i++] = OPEN_BRACE;
2650
+ let first = true;
2651
+ for (const k in value) {
2652
+ if (!hasOwn(value, k)) {
2653
+ continue;
2654
+ }
2655
+ const v = value[k];
2656
+ if (isDocument ? v === void 0 : v == null && !sparse) {
2657
+ continue;
2658
+ }
2659
+ if (!first) {
2660
+ this.ensure(1);
2661
+ this.json[this.i++] = COMMA;
2662
+ }
2663
+ first = false;
2664
+ this.writeJsonString(k);
2665
+ this.ensure(1);
2666
+ this.json[this.i++] = COLON;
2667
+ this.writeValue(valueSchema, v, void 0);
2668
+ }
2669
+ this.ensure(1);
2670
+ this.json[this.i++] = CLOSE_BRACE;
2671
+ }
2672
+ writeTimestamp(ns, value) {
2673
+ const format = determineTimestampFormat(ns, this.settings);
2674
+ switch (format) {
2675
+ case 5: {
2676
+ const iso = value.toISOString().replace(".000Z", "Z");
2677
+ this.writeAsciiQuoted(iso);
2678
+ return;
2679
+ }
2680
+ case 6: {
2681
+ this.writeAsciiQuoted(dateToUtcString(value));
2682
+ return;
2683
+ }
2684
+ case 7: {
2685
+ const epochSecs = String(value.getTime() / 1e3);
2686
+ this.writeAscii(epochSecs);
2687
+ return;
2688
+ }
2689
+ default: {
2690
+ const epochSecs = String(value.getTime() / 1e3);
2691
+ this.writeAscii(epochSecs);
2692
+ return;
2693
+ }
2694
+ }
2695
+ }
2696
+ };
2697
+
2698
+ // ../../node_modules/.pnpm/@smithy+core@3.38.1/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js
2699
+ var JsonCodec2 = class extends SerdeContextConfig {
2700
+ settings;
2701
+ constructor(settings) {
2702
+ super();
2703
+ this.settings = settings;
2704
+ }
2705
+ createSerializer() {
2706
+ const serializer = new JsonShapeSerializer2(this.settings);
2707
+ serializer.setSerdeContext(this.serdeContext);
2708
+ return serializer;
2709
+ }
2710
+ createDeserializer() {
2711
+ const deserializer = new JsonShapeDeserializer2(this.settings);
2712
+ deserializer.setSerdeContext(this.serdeContext);
2713
+ return deserializer;
2714
+ }
2715
+ };
2716
+
1573
2717
  export {
1574
2718
  ProviderError,
1575
2719
  CredentialsProviderError,
@@ -1604,5 +2748,7 @@ export {
1604
2748
  resolveHttpHandlerRuntimeConfig,
1605
2749
  getContentLengthPlugin,
1606
2750
  escapeUri,
1607
- buildQueryString
2751
+ buildQueryString,
2752
+ loadRestJsonErrorCode,
2753
+ JsonCodec2
1608
2754
  };