@granite-js/pulumi-aws 0.1.34 → 1.0.1

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 (82) hide show
  1. package/CHANGELOG.md +4 -116
  2. package/dist/chunk-23MVQUOJ.js +1630 -0
  3. package/dist/chunk-24XYHOWM.js +171 -0
  4. package/dist/chunk-3AVBP57V.js +1598 -0
  5. package/dist/chunk-3JKQPIJ2.js +460 -0
  6. package/dist/{chunk-ITI6QA2Q.js → chunk-3OYGHA4S.js} +1 -1
  7. package/dist/{chunk-IEZY5C3G.js → chunk-46DIC54Q.js} +49 -37
  8. package/dist/chunk-57WYIP4I.js +808 -0
  9. package/dist/{chunk-WCHHWTND.js → chunk-63Q3RLAK.js} +93 -59
  10. package/dist/chunk-6KRYZP6R.js +28 -0
  11. package/dist/{chunk-QAE2S7MG.js → chunk-7NN7DVGK.js} +2050 -552
  12. package/dist/{chunk-5W7B34BN.js → chunk-ASGFIK4A.js} +2231 -464
  13. package/dist/chunk-BTBQTDRJ.js +174 -0
  14. package/dist/chunk-DDZTWBHZ.js +154 -0
  15. package/dist/chunk-G3FWLTNJ.js +10 -0
  16. package/dist/{chunk-TJ744C2T.js → chunk-GJFKL6XM.js} +43 -38
  17. package/dist/chunk-H4QJ5O4E.js +36 -0
  18. package/dist/{chunk-X6XO7USX.js → chunk-LCO5F3JB.js} +109 -56
  19. package/dist/chunk-NDDYFDCU.js +60 -0
  20. package/dist/chunk-OCHPLE5N.js +28 -0
  21. package/dist/chunk-OSJA4YYQ.js +846 -0
  22. package/dist/chunk-PIT3K3NC.js +464 -0
  23. package/dist/chunk-QCKAO4UT.js +476 -0
  24. package/dist/{chunk-64IS37V6.js → chunk-RYIGWCGK.js} +1 -6
  25. package/dist/chunk-S4LJWEXU.js +37 -0
  26. package/dist/chunk-SJ26Y3GW.js +472 -0
  27. package/dist/chunk-TDZTH7TL.js +60 -0
  28. package/dist/chunk-THUA35UY.js +35 -0
  29. package/dist/{chunk-IUKLHJNE.js → chunk-V7TRGEV6.js} +4 -7
  30. package/dist/{chunk-KGNTV362.js → chunk-WDFKVCPC.js} +66 -34
  31. package/dist/{chunk-B7OAPHPY.js → chunk-YWWEFWFD.js} +3 -3
  32. package/dist/chunk-Z4UYYQ4J.js +42 -0
  33. package/dist/chunk-ZBT5SDIQ.js +16528 -0
  34. package/dist/chunk-ZIHRRTTA.js +24 -0
  35. package/dist/{dist-es-CDFIYJVE.js → dist-es-3VZ2IGGJ.js} +18 -15
  36. package/dist/{dist-es-SUPEA6VE-3B5JSW5C.js → dist-es-BQW4ETQH-C7ZSD5EG.js} +8 -25
  37. package/dist/{dist-es-GHYMLBON.js → dist-es-HSWXMGNC.js} +21 -21
  38. package/dist/{dist-es-OCQVKISC-TNAJ62WG.js → dist-es-IDBNBAO5-H3TO63FG.js} +15 -18
  39. package/dist/{dist-es-S75EKWRJ.js → dist-es-KPJNIAPT.js} +9 -10
  40. package/dist/{dist-es-PRWCVZGQ-HTTVI42T.js → dist-es-LZDRG6RP-SP2FWWEO.js} +3 -4
  41. package/dist/{dist-es-OZGLUDWT.js → dist-es-PIWY5TOR.js} +49 -26
  42. package/dist/{dist-es-ADTONJUN-RVFWNZHO.js → dist-es-R4LD2OHZ-B5MB6BR2.js} +11 -13
  43. package/dist/dist-es-S2KJK4L2-5GDBXJIO.js +470 -0
  44. package/dist/{dist-es-XQME5F6W.js → dist-es-THYWPEKB.js} +12 -10
  45. package/dist/{dist-es-HJVOMDYC-PIAMWMAL.js → dist-es-TIYLKN6W-BAHZRZH5.js} +7 -13
  46. package/dist/{dist-es-IDBDK36G-Y6TQMRO5.js → dist-es-VORPMM2F-WOMP2FYQ.js} +37 -30
  47. package/dist/{dist-es-WQHDOVD7.js → dist-es-WESJCADT.js} +3 -4
  48. package/dist/dist-es-XMOG24OT.js +490 -0
  49. package/dist/event-streams-L7RH32OW-AFMBEYJJ.js +237 -0
  50. package/dist/event-streams-NGUY2RWE.js +237 -0
  51. package/dist/index.cjs +2 -2
  52. package/dist/index.js +2 -2
  53. package/dist/lambda/auto-cache-removal.cjs +28894 -16488
  54. package/dist/lambda/auto-cache-removal.js +11574 -2713
  55. package/dist/lambda/origin-request.cjs +22351 -17619
  56. package/dist/lambda/origin-request.js +21 -17
  57. package/dist/lambda/origin-response.cjs +22219 -17387
  58. package/dist/lambda/origin-response.js +17 -13
  59. package/dist/{loadSso-CZSSLFH6-SA5HOQAX.js → loadSso-F4PTCHDN-YR3RRUYW.js} +330 -227
  60. package/dist/{loadSso-T7GJVVO2.js → loadSso-LG7MFP7N.js} +344 -223
  61. package/dist/signin-P7DNG43W.js +658 -0
  62. package/dist/signin-XWTOVLF3-4ENWNEF7.js +630 -0
  63. package/dist/{sso-oidc-PKO5GYK5-LC65L46O.js → sso-oidc-FQQGUOJL.js} +293 -332
  64. package/dist/{sso-oidc-55SJ27II.js → sso-oidc-RRDYLOJY-FK3AUTOI.js} +263 -337
  65. package/dist/{sts-OPF4H3GL.js → sts-7FBOVTCN.js} +674 -601
  66. package/dist/{sts-P7Q3MYTS-BKGWHQE4.js → sts-TBWJ374A-DHXXCVJJ.js} +651 -608
  67. package/package.json +5 -5
  68. package/dist/chunk-AEOST5WF.js +0 -63
  69. package/dist/chunk-FO7L563E.js +0 -13695
  70. package/dist/chunk-FRWSD3YQ.js +0 -1722
  71. package/dist/chunk-JBVMOFGH.js +0 -152
  72. package/dist/chunk-JSBRDJBE.js +0 -30
  73. package/dist/chunk-KRJS4RAS.js +0 -1732
  74. package/dist/chunk-M5GUUX64.js +0 -63
  75. package/dist/chunk-SX6SVQKS.js +0 -67
  76. package/dist/chunk-UNXXS5FM.js +0 -120
  77. package/dist/chunk-UT2RMOJS.js +0 -2447
  78. package/dist/chunk-VOTRVWIB.js +0 -1965
  79. package/dist/chunk-W3VXP3A3.js +0 -119
  80. package/dist/chunk-XLUI7RQ4.js +0 -115
  81. package/dist/dist-es-2M7RLZ5O.js +0 -200
  82. package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +0 -196
@@ -1,36 +1,992 @@
1
1
  import {
2
2
  loadConfig,
3
+ memoize,
3
4
  parseUrl
4
- } from "./chunk-WCHHWTND.js";
5
+ } from "./chunk-LCO5F3JB.js";
5
6
  import {
6
- CONFIG_PREFIX_SEPARATOR
7
- } from "./chunk-KGNTV362.js";
8
- import {
9
- HttpRequest,
10
7
  HttpResponse,
11
- NoOpLogger,
12
- collectBody,
13
8
  escapeUri,
14
- fromArrayBuffer,
9
+ fromBase64,
15
10
  fromHex,
16
- fromString,
17
- fromUtf8,
18
- isArrayBuffer,
19
- toHex,
20
- toUint8Array
21
- } from "./chunk-VOTRVWIB.js";
11
+ toBase64,
12
+ toHex
13
+ } from "./chunk-OSJA4YYQ.js";
22
14
  import {
23
- setCredentialFeature
24
- } from "./chunk-ITI6QA2Q.js";
15
+ HttpRequest
16
+ } from "./chunk-NDDYFDCU.js";
25
17
  import {
26
- EndpointURLScheme,
27
- SMITHY_CONTEXT_KEY
28
- } from "./chunk-M5GUUX64.js";
18
+ CONFIG_PREFIX_SEPARATOR
19
+ } from "./chunk-WDFKVCPC.js";
20
+ import {
21
+ setCredentialFeature
22
+ } from "./chunk-3OYGHA4S.js";
29
23
  import {
30
- memoize
31
- } from "./chunk-W3VXP3A3.js";
24
+ fromArrayBuffer,
25
+ fromString,
26
+ fromUtf8,
27
+ isArrayBuffer,
28
+ toUtf8
29
+ } from "./chunk-Z4UYYQ4J.js";
30
+
31
+ // ../../.yarn/cache/@smithy-middleware-stack-npm-4.2.5-c2c432e836-c884760539.zip/node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js
32
+ var getAllAliases = (name, aliases) => {
33
+ const _aliases = [];
34
+ if (name) {
35
+ _aliases.push(name);
36
+ }
37
+ if (aliases) {
38
+ for (const alias of aliases) {
39
+ _aliases.push(alias);
40
+ }
41
+ }
42
+ return _aliases;
43
+ };
44
+ var getMiddlewareNameWithAliases = (name, aliases) => {
45
+ return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
46
+ };
47
+ var constructStack = () => {
48
+ let absoluteEntries = [];
49
+ let relativeEntries = [];
50
+ let identifyOnResolve = false;
51
+ const entriesNameSet = /* @__PURE__ */ new Set();
52
+ const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
53
+ const removeByName = (toRemove) => {
54
+ let isRemoved = false;
55
+ const filterCb = (entry) => {
56
+ const aliases = getAllAliases(entry.name, entry.aliases);
57
+ if (aliases.includes(toRemove)) {
58
+ isRemoved = true;
59
+ for (const alias of aliases) {
60
+ entriesNameSet.delete(alias);
61
+ }
62
+ return false;
63
+ }
64
+ return true;
65
+ };
66
+ absoluteEntries = absoluteEntries.filter(filterCb);
67
+ relativeEntries = relativeEntries.filter(filterCb);
68
+ return isRemoved;
69
+ };
70
+ const removeByReference = (toRemove) => {
71
+ let isRemoved = false;
72
+ const filterCb = (entry) => {
73
+ if (entry.middleware === toRemove) {
74
+ isRemoved = true;
75
+ for (const alias of getAllAliases(entry.name, entry.aliases)) {
76
+ entriesNameSet.delete(alias);
77
+ }
78
+ return false;
79
+ }
80
+ return true;
81
+ };
82
+ absoluteEntries = absoluteEntries.filter(filterCb);
83
+ relativeEntries = relativeEntries.filter(filterCb);
84
+ return isRemoved;
85
+ };
86
+ const cloneTo = (toStack) => {
87
+ absoluteEntries.forEach((entry) => {
88
+ toStack.add(entry.middleware, { ...entry });
89
+ });
90
+ relativeEntries.forEach((entry) => {
91
+ toStack.addRelativeTo(entry.middleware, { ...entry });
92
+ });
93
+ toStack.identifyOnResolve?.(stack.identifyOnResolve());
94
+ return toStack;
95
+ };
96
+ const expandRelativeMiddlewareList = (from) => {
97
+ const expandedMiddlewareList = [];
98
+ from.before.forEach((entry) => {
99
+ if (entry.before.length === 0 && entry.after.length === 0) {
100
+ expandedMiddlewareList.push(entry);
101
+ } else {
102
+ expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
103
+ }
104
+ });
105
+ expandedMiddlewareList.push(from);
106
+ from.after.reverse().forEach((entry) => {
107
+ if (entry.before.length === 0 && entry.after.length === 0) {
108
+ expandedMiddlewareList.push(entry);
109
+ } else {
110
+ expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry));
111
+ }
112
+ });
113
+ return expandedMiddlewareList;
114
+ };
115
+ const getMiddlewareList = (debug = false) => {
116
+ const normalizedAbsoluteEntries = [];
117
+ const normalizedRelativeEntries = [];
118
+ const normalizedEntriesNameMap = {};
119
+ absoluteEntries.forEach((entry) => {
120
+ const normalizedEntry = {
121
+ ...entry,
122
+ before: [],
123
+ after: []
124
+ };
125
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
126
+ normalizedEntriesNameMap[alias] = normalizedEntry;
127
+ }
128
+ normalizedAbsoluteEntries.push(normalizedEntry);
129
+ });
130
+ relativeEntries.forEach((entry) => {
131
+ const normalizedEntry = {
132
+ ...entry,
133
+ before: [],
134
+ after: []
135
+ };
136
+ for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
137
+ normalizedEntriesNameMap[alias] = normalizedEntry;
138
+ }
139
+ normalizedRelativeEntries.push(normalizedEntry);
140
+ });
141
+ normalizedRelativeEntries.forEach((entry) => {
142
+ if (entry.toMiddleware) {
143
+ const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware];
144
+ if (toMiddleware === void 0) {
145
+ if (debug) {
146
+ return;
147
+ }
148
+ throw new Error(`${entry.toMiddleware} is not found when adding ${getMiddlewareNameWithAliases(entry.name, entry.aliases)} middleware ${entry.relation} ${entry.toMiddleware}`);
149
+ }
150
+ if (entry.relation === "after") {
151
+ toMiddleware.after.push(entry);
152
+ }
153
+ if (entry.relation === "before") {
154
+ toMiddleware.before.push(entry);
155
+ }
156
+ }
157
+ });
158
+ const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expandedMiddlewareList) => {
159
+ wholeList.push(...expandedMiddlewareList);
160
+ return wholeList;
161
+ }, []);
162
+ return mainChain;
163
+ };
164
+ const stack = {
165
+ add: (middleware, options = {}) => {
166
+ const { name, override, aliases: _aliases } = options;
167
+ const entry = {
168
+ step: "initialize",
169
+ priority: "normal",
170
+ middleware,
171
+ ...options
172
+ };
173
+ const aliases = getAllAliases(name, _aliases);
174
+ if (aliases.length > 0) {
175
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
176
+ if (!override)
177
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
178
+ for (const alias of aliases) {
179
+ const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
180
+ if (toOverrideIndex === -1) {
181
+ continue;
182
+ }
183
+ const toOverride = absoluteEntries[toOverrideIndex];
184
+ if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
185
+ throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ${entry.priority} priority in ${entry.step} step.`);
186
+ }
187
+ absoluteEntries.splice(toOverrideIndex, 1);
188
+ }
189
+ }
190
+ for (const alias of aliases) {
191
+ entriesNameSet.add(alias);
192
+ }
193
+ }
194
+ absoluteEntries.push(entry);
195
+ },
196
+ addRelativeTo: (middleware, options) => {
197
+ const { name, override, aliases: _aliases } = options;
198
+ const entry = {
199
+ middleware,
200
+ ...options
201
+ };
202
+ const aliases = getAllAliases(name, _aliases);
203
+ if (aliases.length > 0) {
204
+ if (aliases.some((alias) => entriesNameSet.has(alias))) {
205
+ if (!override)
206
+ throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
207
+ for (const alias of aliases) {
208
+ const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === alias || entry2.aliases?.some((a) => a === alias));
209
+ if (toOverrideIndex === -1) {
210
+ continue;
211
+ }
212
+ const toOverride = relativeEntries[toOverrideIndex];
213
+ if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
214
+ throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} "${entry.toMiddleware}" middleware.`);
215
+ }
216
+ relativeEntries.splice(toOverrideIndex, 1);
217
+ }
218
+ }
219
+ for (const alias of aliases) {
220
+ entriesNameSet.add(alias);
221
+ }
222
+ }
223
+ relativeEntries.push(entry);
224
+ },
225
+ clone: () => cloneTo(constructStack()),
226
+ use: (plugin) => {
227
+ plugin.applyToStack(stack);
228
+ },
229
+ remove: (toRemove) => {
230
+ if (typeof toRemove === "string")
231
+ return removeByName(toRemove);
232
+ else
233
+ return removeByReference(toRemove);
234
+ },
235
+ removeByTag: (toRemove) => {
236
+ let isRemoved = false;
237
+ const filterCb = (entry) => {
238
+ const { tags, name, aliases: _aliases } = entry;
239
+ if (tags && tags.includes(toRemove)) {
240
+ const aliases = getAllAliases(name, _aliases);
241
+ for (const alias of aliases) {
242
+ entriesNameSet.delete(alias);
243
+ }
244
+ isRemoved = true;
245
+ return false;
246
+ }
247
+ return true;
248
+ };
249
+ absoluteEntries = absoluteEntries.filter(filterCb);
250
+ relativeEntries = relativeEntries.filter(filterCb);
251
+ return isRemoved;
252
+ },
253
+ concat: (from) => {
254
+ const cloned = cloneTo(constructStack());
255
+ cloned.use(from);
256
+ cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false));
257
+ return cloned;
258
+ },
259
+ applyToStack: cloneTo,
260
+ identify: () => {
261
+ return getMiddlewareList(true).map((mw) => {
262
+ const step = mw.step ?? mw.relation + " " + mw.toMiddleware;
263
+ return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
264
+ });
265
+ },
266
+ identifyOnResolve(toggle) {
267
+ if (typeof toggle === "boolean")
268
+ identifyOnResolve = toggle;
269
+ return identifyOnResolve;
270
+ },
271
+ resolve: (handler, context) => {
272
+ for (const middleware of getMiddlewareList().map((entry) => entry.middleware).reverse()) {
273
+ handler = middleware(handler, context);
274
+ }
275
+ if (identifyOnResolve) {
276
+ console.log(stack.identify());
277
+ }
278
+ return handler;
279
+ }
280
+ };
281
+ return stack;
282
+ };
283
+ var stepWeights = {
284
+ initialize: 5,
285
+ serialize: 4,
286
+ build: 3,
287
+ finalizeRequest: 2,
288
+ deserialize: 1
289
+ };
290
+ var priorityWeights = {
291
+ high: 3,
292
+ normal: 2,
293
+ low: 1
294
+ };
295
+
296
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/client.js
297
+ var Client = class {
298
+ config;
299
+ middlewareStack = constructStack();
300
+ initConfig;
301
+ handlers;
302
+ constructor(config) {
303
+ this.config = config;
304
+ }
305
+ send(command, optionsOrCb, cb) {
306
+ const options = typeof optionsOrCb !== "function" ? optionsOrCb : void 0;
307
+ const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb;
308
+ const useHandlerCache = options === void 0 && this.config.cacheMiddleware === true;
309
+ let handler;
310
+ if (useHandlerCache) {
311
+ if (!this.handlers) {
312
+ this.handlers = /* @__PURE__ */ new WeakMap();
313
+ }
314
+ const handlers = this.handlers;
315
+ if (handlers.has(command.constructor)) {
316
+ handler = handlers.get(command.constructor);
317
+ } else {
318
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
319
+ handlers.set(command.constructor, handler);
320
+ }
321
+ } else {
322
+ delete this.handlers;
323
+ handler = command.resolveMiddleware(this.middlewareStack, this.config, options);
324
+ }
325
+ if (callback) {
326
+ handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => {
327
+ });
328
+ } else {
329
+ return handler(command).then((result) => result.output);
330
+ }
331
+ }
332
+ destroy() {
333
+ this.config?.requestHandler?.destroy?.();
334
+ delete this.handlers;
335
+ }
336
+ };
32
337
 
33
- // ../../.yarn/cache/@aws-sdk-middleware-host-header-npm-3.804.0-be68ca7913-4089d24b70.zip/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
338
+ // ../../.yarn/cache/@smithy-types-npm-4.9.0-93f68e10e2-7068428d2e.zip/node_modules/@smithy/types/dist-es/endpoint.js
339
+ var EndpointURLScheme;
340
+ (function(EndpointURLScheme2) {
341
+ EndpointURLScheme2["HTTP"] = "http";
342
+ EndpointURLScheme2["HTTPS"] = "https";
343
+ })(EndpointURLScheme || (EndpointURLScheme = {}));
344
+
345
+ // ../../.yarn/cache/@smithy-types-npm-4.9.0-93f68e10e2-7068428d2e.zip/node_modules/@smithy/types/dist-es/extensions/checksum.js
346
+ var AlgorithmId;
347
+ (function(AlgorithmId2) {
348
+ AlgorithmId2["MD5"] = "md5";
349
+ AlgorithmId2["CRC32"] = "crc32";
350
+ AlgorithmId2["CRC32C"] = "crc32c";
351
+ AlgorithmId2["SHA1"] = "sha1";
352
+ AlgorithmId2["SHA256"] = "sha256";
353
+ })(AlgorithmId || (AlgorithmId = {}));
354
+
355
+ // ../../.yarn/cache/@smithy-types-npm-4.9.0-93f68e10e2-7068428d2e.zip/node_modules/@smithy/types/dist-es/middleware.js
356
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
357
+
358
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/deref.js
359
+ var deref = (schemaRef) => {
360
+ if (typeof schemaRef === "function") {
361
+ return schemaRef();
362
+ }
363
+ return schemaRef;
364
+ };
365
+
366
+ // ../../.yarn/cache/@smithy-protocol-http-npm-5.3.5-49ab1bf413-15e6bfbf39.zip/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
367
+ var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
368
+ return {
369
+ setHttpHandler(handler) {
370
+ runtimeConfig.httpHandler = handler;
371
+ },
372
+ httpHandler() {
373
+ return runtimeConfig.httpHandler;
374
+ },
375
+ updateHttpClientConfig(key, value) {
376
+ runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
377
+ },
378
+ httpHandlerConfigs() {
379
+ return runtimeConfig.httpHandler.httpHandlerConfigs();
380
+ }
381
+ };
382
+ };
383
+ var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
384
+ return {
385
+ httpHandler: httpHandlerExtensionConfiguration.httpHandler()
386
+ };
387
+ };
388
+
389
+ // ../../.yarn/cache/@smithy-util-middleware-npm-4.2.5-16e1742a1b-6b05a986ec.zip/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
390
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
391
+
392
+ // ../../.yarn/cache/@smithy-util-middleware-npm-4.2.5-16e1742a1b-6b05a986ec.zip/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
393
+ var normalizeProvider = (input) => {
394
+ if (typeof input === "function")
395
+ return input;
396
+ const promisified = Promise.resolve(input);
397
+ return () => promisified;
398
+ };
399
+
400
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js
401
+ var operation = (namespace, name, traits, input, output) => ({
402
+ name,
403
+ namespace,
404
+ traits,
405
+ input,
406
+ output
407
+ });
408
+
409
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js
410
+ var schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
411
+ const { response } = await next(args);
412
+ const { operationSchema } = getSmithyContext(context);
413
+ const [, ns, n, t, i, o] = operationSchema ?? [];
414
+ try {
415
+ const parsed = await config.protocol.deserializeResponse(operation(ns, n, t, i, o), {
416
+ ...config,
417
+ ...context
418
+ }, response);
419
+ return {
420
+ response,
421
+ output: parsed
422
+ };
423
+ } catch (error) {
424
+ Object.defineProperty(error, "$response", {
425
+ value: response,
426
+ enumerable: false,
427
+ writable: false,
428
+ configurable: false
429
+ });
430
+ if (!("$metadata" in error)) {
431
+ const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
432
+ try {
433
+ error.message += "\n " + hint;
434
+ } catch (e) {
435
+ if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
436
+ console.warn(hint);
437
+ } else {
438
+ context.logger?.warn?.(hint);
439
+ }
440
+ }
441
+ if (typeof error.$responseBodyText !== "undefined") {
442
+ if (error.$response) {
443
+ error.$response.body = error.$responseBodyText;
444
+ }
445
+ }
446
+ try {
447
+ if (HttpResponse.isInstance(response)) {
448
+ const { headers = {} } = response;
449
+ const headerEntries = Object.entries(headers);
450
+ error.$metadata = {
451
+ httpStatusCode: response.statusCode,
452
+ requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
453
+ extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
454
+ cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
455
+ };
456
+ }
457
+ } catch (e) {
458
+ }
459
+ }
460
+ throw error;
461
+ }
462
+ };
463
+ var findHeader = (pattern, headers) => {
464
+ return (headers.find(([k]) => {
465
+ return k.match(pattern);
466
+ }) || [void 0, void 0])[1];
467
+ };
468
+
469
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js
470
+ var schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
471
+ const { operationSchema } = getSmithyContext(context);
472
+ const [, ns, n, t, i, o] = operationSchema ?? [];
473
+ const endpoint = context.endpointV2?.url && config.urlParser ? async () => config.urlParser(context.endpointV2.url) : config.endpoint;
474
+ const request = await config.protocol.serializeRequest(operation(ns, n, t, i, o), args.input, {
475
+ ...config,
476
+ ...context,
477
+ endpoint
478
+ });
479
+ return next({
480
+ ...args,
481
+ request
482
+ });
483
+ };
484
+
485
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/middleware/getSchemaSerdePlugin.js
486
+ var deserializerMiddlewareOption = {
487
+ name: "deserializerMiddleware",
488
+ step: "deserialize",
489
+ tags: ["DESERIALIZER"],
490
+ override: true
491
+ };
492
+ var serializerMiddlewareOption = {
493
+ name: "serializerMiddleware",
494
+ step: "serialize",
495
+ tags: ["SERIALIZER"],
496
+ override: true
497
+ };
498
+ function getSchemaSerdePlugin(config) {
499
+ return {
500
+ applyToStack: (commandStack) => {
501
+ commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
502
+ commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
503
+ config.protocol.setSerdeContext(config);
504
+ }
505
+ };
506
+ }
507
+
508
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js
509
+ function translateTraits(indicator) {
510
+ if (typeof indicator === "object") {
511
+ return indicator;
512
+ }
513
+ indicator = indicator | 0;
514
+ const traits = {};
515
+ let i = 0;
516
+ for (const trait of [
517
+ "httpLabel",
518
+ "idempotent",
519
+ "idempotencyToken",
520
+ "sensitive",
521
+ "httpPayload",
522
+ "httpResponseCode",
523
+ "httpQueryParams"
524
+ ]) {
525
+ if ((indicator >> i++ & 1) === 1) {
526
+ traits[trait] = 1;
527
+ }
528
+ }
529
+ return traits;
530
+ }
531
+
532
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js
533
+ var NormalizedSchema = class _NormalizedSchema {
534
+ ref;
535
+ memberName;
536
+ static symbol = Symbol.for("@smithy/nor");
537
+ symbol = _NormalizedSchema.symbol;
538
+ name;
539
+ schema;
540
+ _isMemberSchema;
541
+ traits;
542
+ memberTraits;
543
+ normalizedTraits;
544
+ constructor(ref, memberName) {
545
+ this.ref = ref;
546
+ this.memberName = memberName;
547
+ const traitStack = [];
548
+ let _ref = ref;
549
+ let schema = ref;
550
+ this._isMemberSchema = false;
551
+ while (isMemberSchema(_ref)) {
552
+ traitStack.push(_ref[1]);
553
+ _ref = _ref[0];
554
+ schema = deref(_ref);
555
+ this._isMemberSchema = true;
556
+ }
557
+ if (traitStack.length > 0) {
558
+ this.memberTraits = {};
559
+ for (let i = traitStack.length - 1; i >= 0; --i) {
560
+ const traitSet = traitStack[i];
561
+ Object.assign(this.memberTraits, translateTraits(traitSet));
562
+ }
563
+ } else {
564
+ this.memberTraits = 0;
565
+ }
566
+ if (schema instanceof _NormalizedSchema) {
567
+ const computedMemberTraits = this.memberTraits;
568
+ Object.assign(this, schema);
569
+ this.memberTraits = Object.assign({}, computedMemberTraits, schema.getMemberTraits(), this.getMemberTraits());
570
+ this.normalizedTraits = void 0;
571
+ this.memberName = memberName ?? schema.memberName;
572
+ return;
573
+ }
574
+ this.schema = deref(schema);
575
+ if (isStaticSchema(this.schema)) {
576
+ this.name = `${this.schema[1]}#${this.schema[2]}`;
577
+ this.traits = this.schema[3];
578
+ } else {
579
+ this.name = this.memberName ?? String(schema);
580
+ this.traits = 0;
581
+ }
582
+ if (this._isMemberSchema && !memberName) {
583
+ throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`);
584
+ }
585
+ }
586
+ static [Symbol.hasInstance](lhs) {
587
+ const isPrototype = this.prototype.isPrototypeOf(lhs);
588
+ if (!isPrototype && typeof lhs === "object" && lhs !== null) {
589
+ const ns = lhs;
590
+ return ns.symbol === this.symbol;
591
+ }
592
+ return isPrototype;
593
+ }
594
+ static of(ref) {
595
+ const sc = deref(ref);
596
+ if (sc instanceof _NormalizedSchema) {
597
+ return sc;
598
+ }
599
+ if (isMemberSchema(sc)) {
600
+ const [ns, traits] = sc;
601
+ if (ns instanceof _NormalizedSchema) {
602
+ Object.assign(ns.getMergedTraits(), translateTraits(traits));
603
+ return ns;
604
+ }
605
+ throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(ref, null, 2)}.`);
606
+ }
607
+ return new _NormalizedSchema(sc);
608
+ }
609
+ getSchema() {
610
+ const sc = this.schema;
611
+ if (sc[0] === 0) {
612
+ return sc[4];
613
+ }
614
+ return sc;
615
+ }
616
+ getName(withNamespace = false) {
617
+ const { name } = this;
618
+ const short = !withNamespace && name && name.includes("#");
619
+ return short ? name.split("#")[1] : name || void 0;
620
+ }
621
+ getMemberName() {
622
+ return this.memberName;
623
+ }
624
+ isMemberSchema() {
625
+ return this._isMemberSchema;
626
+ }
627
+ isListSchema() {
628
+ const sc = this.getSchema();
629
+ return typeof sc === "number" ? sc >= 64 && sc < 128 : sc[0] === 1;
630
+ }
631
+ isMapSchema() {
632
+ const sc = this.getSchema();
633
+ return typeof sc === "number" ? sc >= 128 && sc <= 255 : sc[0] === 2;
634
+ }
635
+ isStructSchema() {
636
+ const sc = this.getSchema();
637
+ return sc[0] === 3 || sc[0] === -3;
638
+ }
639
+ isBlobSchema() {
640
+ const sc = this.getSchema();
641
+ return sc === 21 || sc === 42;
642
+ }
643
+ isTimestampSchema() {
644
+ const sc = this.getSchema();
645
+ return typeof sc === "number" && sc >= 4 && sc <= 7;
646
+ }
647
+ isUnitSchema() {
648
+ return this.getSchema() === "unit";
649
+ }
650
+ isDocumentSchema() {
651
+ return this.getSchema() === 15;
652
+ }
653
+ isStringSchema() {
654
+ return this.getSchema() === 0;
655
+ }
656
+ isBooleanSchema() {
657
+ return this.getSchema() === 2;
658
+ }
659
+ isNumericSchema() {
660
+ return this.getSchema() === 1;
661
+ }
662
+ isBigIntegerSchema() {
663
+ return this.getSchema() === 17;
664
+ }
665
+ isBigDecimalSchema() {
666
+ return this.getSchema() === 19;
667
+ }
668
+ isStreaming() {
669
+ const { streaming } = this.getMergedTraits();
670
+ return !!streaming || this.getSchema() === 42;
671
+ }
672
+ isIdempotencyToken() {
673
+ const match = (traits2) => (traits2 & 4) === 4 || !!traits2?.idempotencyToken;
674
+ const { normalizedTraits, traits, memberTraits } = this;
675
+ return match(normalizedTraits) || match(traits) || match(memberTraits);
676
+ }
677
+ getMergedTraits() {
678
+ return this.normalizedTraits ?? (this.normalizedTraits = {
679
+ ...this.getOwnTraits(),
680
+ ...this.getMemberTraits()
681
+ });
682
+ }
683
+ getMemberTraits() {
684
+ return translateTraits(this.memberTraits);
685
+ }
686
+ getOwnTraits() {
687
+ return translateTraits(this.traits);
688
+ }
689
+ getKeySchema() {
690
+ const [isDoc, isMap] = [this.isDocumentSchema(), this.isMapSchema()];
691
+ if (!isDoc && !isMap) {
692
+ throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
693
+ }
694
+ const schema = this.getSchema();
695
+ const memberSchema = isDoc ? 15 : schema[4] ?? 0;
696
+ return member([memberSchema, 0], "key");
697
+ }
698
+ getValueSchema() {
699
+ const sc = this.getSchema();
700
+ const [isDoc, isMap, isList] = [this.isDocumentSchema(), this.isMapSchema(), this.isListSchema()];
701
+ const memberSchema = typeof sc === "number" ? 63 & sc : sc && typeof sc === "object" && (isMap || isList) ? sc[3 + sc[0]] : isDoc ? 15 : void 0;
702
+ if (memberSchema != null) {
703
+ return member([memberSchema, 0], isMap ? "value" : "member");
704
+ }
705
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`);
706
+ }
707
+ getMemberSchema(memberName) {
708
+ const struct = this.getSchema();
709
+ if (this.isStructSchema() && struct[4].includes(memberName)) {
710
+ const i = struct[4].indexOf(memberName);
711
+ const memberSchema = struct[5][i];
712
+ return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
713
+ }
714
+ if (this.isDocumentSchema()) {
715
+ return member([15, 0], memberName);
716
+ }
717
+ throw new Error(`@smithy/core/schema - ${this.getName(true)} has no no member=${memberName}.`);
718
+ }
719
+ getMemberSchemas() {
720
+ const buffer = {};
721
+ try {
722
+ for (const [k, v] of this.structIterator()) {
723
+ buffer[k] = v;
724
+ }
725
+ } catch (ignored) {
726
+ }
727
+ return buffer;
728
+ }
729
+ getEventStreamMember() {
730
+ if (this.isStructSchema()) {
731
+ for (const [memberName, memberSchema] of this.structIterator()) {
732
+ if (memberSchema.isStreaming() && memberSchema.isStructSchema()) {
733
+ return memberName;
734
+ }
735
+ }
736
+ }
737
+ return "";
738
+ }
739
+ *structIterator() {
740
+ if (this.isUnitSchema()) {
741
+ return;
742
+ }
743
+ if (!this.isStructSchema()) {
744
+ throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
745
+ }
746
+ const struct = this.getSchema();
747
+ for (let i = 0; i < struct[4].length; ++i) {
748
+ yield [struct[4][i], member([struct[5][i], 0], struct[4][i])];
749
+ }
750
+ }
751
+ };
752
+ function member(memberSchema, memberName) {
753
+ if (memberSchema instanceof NormalizedSchema) {
754
+ return Object.assign(memberSchema, {
755
+ memberName,
756
+ _isMemberSchema: true
757
+ });
758
+ }
759
+ const internalCtorAccess = NormalizedSchema;
760
+ return new internalCtorAccess(memberSchema, memberName);
761
+ }
762
+ var isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
763
+ var isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
764
+
765
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js
766
+ var TypeRegistry = class _TypeRegistry {
767
+ namespace;
768
+ schemas;
769
+ exceptions;
770
+ static registries = /* @__PURE__ */ new Map();
771
+ constructor(namespace, schemas = /* @__PURE__ */ new Map(), exceptions = /* @__PURE__ */ new Map()) {
772
+ this.namespace = namespace;
773
+ this.schemas = schemas;
774
+ this.exceptions = exceptions;
775
+ }
776
+ static for(namespace) {
777
+ if (!_TypeRegistry.registries.has(namespace)) {
778
+ _TypeRegistry.registries.set(namespace, new _TypeRegistry(namespace));
779
+ }
780
+ return _TypeRegistry.registries.get(namespace);
781
+ }
782
+ register(shapeId, schema) {
783
+ const qualifiedName = this.normalizeShapeId(shapeId);
784
+ const registry = _TypeRegistry.for(qualifiedName.split("#")[0]);
785
+ registry.schemas.set(qualifiedName, schema);
786
+ }
787
+ getSchema(shapeId) {
788
+ const id = this.normalizeShapeId(shapeId);
789
+ if (!this.schemas.has(id)) {
790
+ throw new Error(`@smithy/core/schema - schema not found for ${id}`);
791
+ }
792
+ return this.schemas.get(id);
793
+ }
794
+ registerError(es, ctor) {
795
+ const $error = es;
796
+ const registry = _TypeRegistry.for($error[1]);
797
+ registry.schemas.set($error[1] + "#" + $error[2], $error);
798
+ registry.exceptions.set($error, ctor);
799
+ }
800
+ getErrorCtor(es) {
801
+ const $error = es;
802
+ const registry = _TypeRegistry.for($error[1]);
803
+ return registry.exceptions.get($error);
804
+ }
805
+ getBaseException() {
806
+ for (const exceptionKey of this.exceptions.keys()) {
807
+ if (Array.isArray(exceptionKey)) {
808
+ const [, ns, name] = exceptionKey;
809
+ const id = ns + "#" + name;
810
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
811
+ return exceptionKey;
812
+ }
813
+ }
814
+ }
815
+ return void 0;
816
+ }
817
+ find(predicate) {
818
+ return [...this.schemas.values()].find(predicate);
819
+ }
820
+ clear() {
821
+ this.schemas.clear();
822
+ this.exceptions.clear();
823
+ }
824
+ normalizeShapeId(shapeId) {
825
+ if (shapeId.includes("#")) {
826
+ return shapeId;
827
+ }
828
+ return this.namespace + "#" + shapeId;
829
+ }
830
+ };
831
+
832
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
833
+ var SENSITIVE_STRING = "***SensitiveInformation***";
834
+ function schemaLogFilter(schema, data) {
835
+ if (data == null) {
836
+ return data;
837
+ }
838
+ const ns = NormalizedSchema.of(schema);
839
+ if (ns.getMergedTraits().sensitive) {
840
+ return SENSITIVE_STRING;
841
+ }
842
+ if (ns.isListSchema()) {
843
+ const isSensitive = !!ns.getValueSchema().getMergedTraits().sensitive;
844
+ if (isSensitive) {
845
+ return SENSITIVE_STRING;
846
+ }
847
+ } else if (ns.isMapSchema()) {
848
+ const isSensitive = !!ns.getKeySchema().getMergedTraits().sensitive || !!ns.getValueSchema().getMergedTraits().sensitive;
849
+ if (isSensitive) {
850
+ return SENSITIVE_STRING;
851
+ }
852
+ } else if (ns.isStructSchema() && typeof data === "object") {
853
+ const object = data;
854
+ const newObject = {};
855
+ for (const [member2, memberNs] of ns.structIterator()) {
856
+ if (object[member2] != null) {
857
+ newObject[member2] = schemaLogFilter(memberNs, object[member2]);
858
+ }
859
+ }
860
+ return newObject;
861
+ }
862
+ return data;
863
+ }
864
+
865
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/command.js
866
+ var Command = class {
867
+ middlewareStack = constructStack();
868
+ schema;
869
+ static classBuilder() {
870
+ return new ClassBuilder();
871
+ }
872
+ resolveMiddlewareWithContext(clientStack, configuration, options, { middlewareFn, clientName, commandName, inputFilterSensitiveLog, outputFilterSensitiveLog, smithyContext, additionalContext, CommandCtor }) {
873
+ for (const mw of middlewareFn.bind(this)(CommandCtor, clientStack, configuration, options)) {
874
+ this.middlewareStack.use(mw);
875
+ }
876
+ const stack = clientStack.concat(this.middlewareStack);
877
+ const { logger } = configuration;
878
+ const handlerExecutionContext = {
879
+ logger,
880
+ clientName,
881
+ commandName,
882
+ inputFilterSensitiveLog,
883
+ outputFilterSensitiveLog,
884
+ [SMITHY_CONTEXT_KEY]: {
885
+ commandInstance: this,
886
+ ...smithyContext
887
+ },
888
+ ...additionalContext
889
+ };
890
+ const { requestHandler } = configuration;
891
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
892
+ }
893
+ };
894
+ var ClassBuilder = class {
895
+ _init = () => {
896
+ };
897
+ _ep = {};
898
+ _middlewareFn = () => [];
899
+ _commandName = "";
900
+ _clientName = "";
901
+ _additionalContext = {};
902
+ _smithyContext = {};
903
+ _inputFilterSensitiveLog = void 0;
904
+ _outputFilterSensitiveLog = void 0;
905
+ _serializer = null;
906
+ _deserializer = null;
907
+ _operationSchema;
908
+ init(cb) {
909
+ this._init = cb;
910
+ }
911
+ ep(endpointParameterInstructions) {
912
+ this._ep = endpointParameterInstructions;
913
+ return this;
914
+ }
915
+ m(middlewareSupplier) {
916
+ this._middlewareFn = middlewareSupplier;
917
+ return this;
918
+ }
919
+ s(service, operation2, smithyContext = {}) {
920
+ this._smithyContext = {
921
+ service,
922
+ operation: operation2,
923
+ ...smithyContext
924
+ };
925
+ return this;
926
+ }
927
+ c(additionalContext = {}) {
928
+ this._additionalContext = additionalContext;
929
+ return this;
930
+ }
931
+ n(clientName, commandName) {
932
+ this._clientName = clientName;
933
+ this._commandName = commandName;
934
+ return this;
935
+ }
936
+ f(inputFilter = (_) => _, outputFilter = (_) => _) {
937
+ this._inputFilterSensitiveLog = inputFilter;
938
+ this._outputFilterSensitiveLog = outputFilter;
939
+ return this;
940
+ }
941
+ ser(serializer) {
942
+ this._serializer = serializer;
943
+ return this;
944
+ }
945
+ de(deserializer) {
946
+ this._deserializer = deserializer;
947
+ return this;
948
+ }
949
+ sc(operation2) {
950
+ this._operationSchema = operation2;
951
+ this._smithyContext.operationSchema = operation2;
952
+ return this;
953
+ }
954
+ build() {
955
+ const closure = this;
956
+ let CommandRef;
957
+ return CommandRef = class extends Command {
958
+ input;
959
+ static getEndpointParameterInstructions() {
960
+ return closure._ep;
961
+ }
962
+ constructor(...[input]) {
963
+ super();
964
+ this.input = input ?? {};
965
+ closure._init(this);
966
+ this.schema = closure._operationSchema;
967
+ }
968
+ resolveMiddleware(stack, configuration, options) {
969
+ const op = closure._operationSchema;
970
+ const input = op?.[4] ?? op?.input;
971
+ const output = op?.[5] ?? op?.output;
972
+ return this.resolveMiddlewareWithContext(stack, configuration, options, {
973
+ CommandCtor: CommandRef,
974
+ middlewareFn: closure._middlewareFn,
975
+ clientName: closure._clientName,
976
+ commandName: closure._commandName,
977
+ inputFilterSensitiveLog: closure._inputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, input) : (_) => _),
978
+ outputFilterSensitiveLog: closure._outputFilterSensitiveLog ?? (op ? schemaLogFilter.bind(null, output) : (_) => _),
979
+ smithyContext: closure._smithyContext,
980
+ additionalContext: closure._additionalContext
981
+ });
982
+ }
983
+ serialize = closure._serializer;
984
+ deserialize = closure._deserializer;
985
+ };
986
+ }
987
+ };
988
+
989
+ // ../../.yarn/cache/@aws-sdk-middleware-host-header-npm-3.936.0-9da9f6f22b-524221650f.zip/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
34
990
  function resolveHostHeaderConfig(input) {
35
991
  return input;
36
992
  }
@@ -63,7 +1019,7 @@ var getHostHeaderPlugin = (options) => ({
63
1019
  }
64
1020
  });
65
1021
 
66
- // ../../.yarn/cache/@aws-sdk-middleware-logger-npm-3.804.0-a7b86f3ea1-4b7deebb33.zip/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
1022
+ // ../../.yarn/cache/@aws-sdk-middleware-logger-npm-3.936.0-f4dd2ddeff-9f94ae2f30.zip/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js
67
1023
  var loggerMiddleware = () => (next, context) => async (args) => {
68
1024
  try {
69
1025
  const response = await next(args);
@@ -106,13 +1062,137 @@ var getLoggerPlugin = (options) => ({
106
1062
  }
107
1063
  });
108
1064
 
109
- // ../../.yarn/cache/@aws-sdk-middleware-recursion-detection-npm-3.804.0-4c5a442f7f-86e6d2902d.zip/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js
1065
+ // ../../.yarn/cache/@aws-sdk-middleware-recursion-detection-npm-3.936.0-d27306c983-3230f48688.zip/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/configuration.js
1066
+ var recursionDetectionMiddlewareOptions = {
1067
+ step: "build",
1068
+ tags: ["RECURSION_DETECTION"],
1069
+ name: "recursionDetectionMiddleware",
1070
+ override: true,
1071
+ priority: "low"
1072
+ };
1073
+
1074
+ // ../../.yarn/cache/@aws-lambda-invoke-store-npm-0.2.1-93a949e0eb-7fdfd6e4b1.zip/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js
1075
+ var PROTECTED_KEYS = {
1076
+ REQUEST_ID: Symbol.for("_AWS_LAMBDA_REQUEST_ID"),
1077
+ X_RAY_TRACE_ID: Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),
1078
+ TENANT_ID: Symbol.for("_AWS_LAMBDA_TENANT_ID")
1079
+ };
1080
+ var NO_GLOBAL_AWS_LAMBDA = ["true", "1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA ?? "");
1081
+ if (!NO_GLOBAL_AWS_LAMBDA) {
1082
+ globalThis.awslambda = globalThis.awslambda || {};
1083
+ }
1084
+ var InvokeStoreBase = class {
1085
+ static PROTECTED_KEYS = PROTECTED_KEYS;
1086
+ isProtectedKey(key) {
1087
+ return Object.values(PROTECTED_KEYS).includes(key);
1088
+ }
1089
+ getRequestId() {
1090
+ return this.get(PROTECTED_KEYS.REQUEST_ID) ?? "-";
1091
+ }
1092
+ getXRayTraceId() {
1093
+ return this.get(PROTECTED_KEYS.X_RAY_TRACE_ID);
1094
+ }
1095
+ getTenantId() {
1096
+ return this.get(PROTECTED_KEYS.TENANT_ID);
1097
+ }
1098
+ };
1099
+ var InvokeStoreSingle = class extends InvokeStoreBase {
1100
+ currentContext;
1101
+ getContext() {
1102
+ return this.currentContext;
1103
+ }
1104
+ hasContext() {
1105
+ return this.currentContext !== void 0;
1106
+ }
1107
+ get(key) {
1108
+ return this.currentContext?.[key];
1109
+ }
1110
+ set(key, value) {
1111
+ if (this.isProtectedKey(key)) {
1112
+ throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
1113
+ }
1114
+ this.currentContext = this.currentContext || {};
1115
+ this.currentContext[key] = value;
1116
+ }
1117
+ run(context, fn) {
1118
+ this.currentContext = context;
1119
+ try {
1120
+ return fn();
1121
+ } finally {
1122
+ this.currentContext = void 0;
1123
+ }
1124
+ }
1125
+ };
1126
+ var InvokeStoreMulti = class _InvokeStoreMulti extends InvokeStoreBase {
1127
+ als;
1128
+ static async create() {
1129
+ const instance = new _InvokeStoreMulti();
1130
+ const asyncHooks = await import("async_hooks");
1131
+ instance.als = new asyncHooks.AsyncLocalStorage();
1132
+ return instance;
1133
+ }
1134
+ getContext() {
1135
+ return this.als.getStore();
1136
+ }
1137
+ hasContext() {
1138
+ return this.als.getStore() !== void 0;
1139
+ }
1140
+ get(key) {
1141
+ return this.als.getStore()?.[key];
1142
+ }
1143
+ set(key, value) {
1144
+ if (this.isProtectedKey(key)) {
1145
+ throw new Error(`Cannot modify protected Lambda context field: ${String(key)}`);
1146
+ }
1147
+ const store = this.als.getStore();
1148
+ if (!store) {
1149
+ throw new Error("No context available");
1150
+ }
1151
+ store[key] = value;
1152
+ }
1153
+ run(context, fn) {
1154
+ return this.als.run(context, fn);
1155
+ }
1156
+ };
1157
+ var InvokeStore;
1158
+ (function(InvokeStore2) {
1159
+ let instance = null;
1160
+ async function getInstanceAsync() {
1161
+ if (!instance) {
1162
+ instance = (async () => {
1163
+ const isMulti = "AWS_LAMBDA_MAX_CONCURRENCY" in process.env;
1164
+ const newInstance = isMulti ? await InvokeStoreMulti.create() : new InvokeStoreSingle();
1165
+ if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda?.InvokeStore) {
1166
+ return globalThis.awslambda.InvokeStore;
1167
+ } else if (!NO_GLOBAL_AWS_LAMBDA && globalThis.awslambda) {
1168
+ globalThis.awslambda.InvokeStore = newInstance;
1169
+ return newInstance;
1170
+ } else {
1171
+ return newInstance;
1172
+ }
1173
+ })();
1174
+ }
1175
+ return instance;
1176
+ }
1177
+ InvokeStore2.getInstanceAsync = getInstanceAsync;
1178
+ InvokeStore2._testing = process.env.AWS_LAMBDA_BENCHMARK_MODE === "1" ? {
1179
+ reset: () => {
1180
+ instance = null;
1181
+ if (globalThis.awslambda?.InvokeStore) {
1182
+ delete globalThis.awslambda.InvokeStore;
1183
+ }
1184
+ globalThis.awslambda = {};
1185
+ }
1186
+ } : void 0;
1187
+ })(InvokeStore || (InvokeStore = {}));
1188
+
1189
+ // ../../.yarn/cache/@aws-sdk-middleware-recursion-detection-npm-3.936.0-d27306c983-3230f48688.zip/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js
110
1190
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
111
1191
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
112
1192
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
113
- var recursionDetectionMiddleware = (options) => (next) => async (args) => {
1193
+ var recursionDetectionMiddleware = () => (next) => async (args) => {
114
1194
  const { request } = args;
115
- if (!HttpRequest.isInstance(request) || options.runtime !== "node") {
1195
+ if (!HttpRequest.isInstance(request)) {
116
1196
  return next(args);
117
1197
  }
118
1198
  const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
@@ -120,7 +1200,10 @@ var recursionDetectionMiddleware = (options) => (next) => async (args) => {
120
1200
  return next(args);
121
1201
  }
122
1202
  const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
123
- const traceId = process.env[ENV_TRACE_ID];
1203
+ const traceIdFromEnv = process.env[ENV_TRACE_ID];
1204
+ const invokeStore = await InvokeStore.getInstanceAsync();
1205
+ const traceIdFromInvokeStore = invokeStore?.getXRayTraceId();
1206
+ const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
124
1207
  const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
125
1208
  if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
126
1209
  request.headers[TRACE_ID_HEADER_NAME] = traceId;
@@ -130,31 +1213,15 @@ var recursionDetectionMiddleware = (options) => (next) => async (args) => {
130
1213
  request
131
1214
  });
132
1215
  };
133
- var addRecursionDetectionMiddlewareOptions = {
134
- step: "build",
135
- tags: ["RECURSION_DETECTION"],
136
- name: "recursionDetectionMiddleware",
137
- override: true,
138
- priority: "low"
139
- };
1216
+
1217
+ // ../../.yarn/cache/@aws-sdk-middleware-recursion-detection-npm-3.936.0-d27306c983-3230f48688.zip/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/getRecursionDetectionPlugin.js
140
1218
  var getRecursionDetectionPlugin = (options) => ({
141
1219
  applyToStack: (clientStack) => {
142
- clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions);
1220
+ clientStack.add(recursionDetectionMiddleware(), recursionDetectionMiddlewareOptions);
143
1221
  }
144
1222
  });
145
1223
 
146
- // ../../.yarn/cache/@smithy-util-middleware-npm-4.0.3-f7250b67f0-c9de70875c.zip/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
147
- var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
148
-
149
- // ../../.yarn/cache/@smithy-util-middleware-npm-4.0.3-f7250b67f0-c9de70875c.zip/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
150
- var normalizeProvider = (input) => {
151
- if (typeof input === "function")
152
- return input;
153
- const promisified = Promise.resolve(input);
154
- return () => promisified;
155
- };
156
-
157
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
1224
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/resolveAuthOptions.js
158
1225
  var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
159
1226
  if (!authSchemePreference || authSchemePreference.length === 0) {
160
1227
  return candidateAuthOptions;
@@ -176,7 +1243,7 @@ var resolveAuthOptions = (candidateAuthOptions, authSchemePreference) => {
176
1243
  return preferredAuthOptions;
177
1244
  };
178
1245
 
179
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
1246
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js
180
1247
  function convertHttpAuthSchemesToMap(httpAuthSchemes) {
181
1248
  const map = /* @__PURE__ */ new Map();
182
1249
  for (const scheme of httpAuthSchemes) {
@@ -218,7 +1285,7 @@ var httpAuthSchemeMiddleware = (config, mwOptions) => (next, context) => async (
218
1285
  return next(args);
219
1286
  };
220
1287
 
221
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
1288
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js
222
1289
  var httpAuthSchemeEndpointRuleSetMiddlewareOptions = {
223
1290
  step: "serialize",
224
1291
  tags: ["HTTP_AUTH_SCHEME"],
@@ -236,95 +1303,7 @@ var getHttpAuthSchemeEndpointRuleSetPlugin = (config, { httpAuthSchemeParameters
236
1303
  }
237
1304
  });
238
1305
 
239
- // ../../.yarn/cache/@smithy-middleware-serde-npm-4.0.6-63cfd55ed4-c99d872d2c.zip/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js
240
- var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => {
241
- const { response } = await next(args);
242
- try {
243
- const parsed = await deserializer(response, options);
244
- return {
245
- response,
246
- output: parsed
247
- };
248
- } catch (error) {
249
- Object.defineProperty(error, "$response", {
250
- value: response
251
- });
252
- if (!("$metadata" in error)) {
253
- const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
254
- try {
255
- error.message += "\n " + hint;
256
- } catch (e) {
257
- if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
258
- console.warn(hint);
259
- } else {
260
- context.logger?.warn?.(hint);
261
- }
262
- }
263
- if (typeof error.$responseBodyText !== "undefined") {
264
- if (error.$response) {
265
- error.$response.body = error.$responseBodyText;
266
- }
267
- }
268
- try {
269
- if (HttpResponse.isInstance(response)) {
270
- const { headers = {} } = response;
271
- const headerEntries = Object.entries(headers);
272
- error.$metadata = {
273
- httpStatusCode: response.statusCode,
274
- requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
275
- extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
276
- cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries)
277
- };
278
- }
279
- } catch (e) {
280
- }
281
- }
282
- throw error;
283
- }
284
- };
285
- var findHeader = (pattern, headers) => {
286
- return (headers.find(([k]) => {
287
- return k.match(pattern);
288
- }) || [void 0, void 0])[1];
289
- };
290
-
291
- // ../../.yarn/cache/@smithy-middleware-serde-npm-4.0.6-63cfd55ed4-c99d872d2c.zip/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js
292
- var serializerMiddleware = (options, serializer) => (next, context) => async (args) => {
293
- const endpointConfig = options;
294
- const endpoint = context.endpointV2?.url && endpointConfig.urlParser ? async () => endpointConfig.urlParser(context.endpointV2.url) : endpointConfig.endpoint;
295
- if (!endpoint) {
296
- throw new Error("No valid endpoint provider available.");
297
- }
298
- const request = await serializer(args.input, { ...options, endpoint });
299
- return next({
300
- ...args,
301
- request
302
- });
303
- };
304
-
305
- // ../../.yarn/cache/@smithy-middleware-serde-npm-4.0.6-63cfd55ed4-c99d872d2c.zip/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
306
- var deserializerMiddlewareOption = {
307
- name: "deserializerMiddleware",
308
- step: "deserialize",
309
- tags: ["DESERIALIZER"],
310
- override: true
311
- };
312
- var serializerMiddlewareOption = {
313
- name: "serializerMiddleware",
314
- step: "serialize",
315
- tags: ["SERIALIZER"],
316
- override: true
317
- };
318
- function getSerdePlugin(config, serializer, deserializer) {
319
- return {
320
- applyToStack: (commandStack) => {
321
- commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption);
322
- commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption);
323
- }
324
- };
325
- }
326
-
327
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
1306
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/middleware-http-signing/httpSigningMiddleware.js
328
1307
  var defaultErrorHandler = (signingProperties) => (error) => {
329
1308
  throw error;
330
1309
  };
@@ -348,7 +1327,7 @@ var httpSigningMiddleware = (config) => (next, context) => async (args) => {
348
1327
  return output;
349
1328
  };
350
1329
 
351
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
1330
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/middleware-http-signing/getHttpSigningMiddleware.js
352
1331
  var httpSigningMiddlewareOptions = {
353
1332
  step: "finalizeRequest",
354
1333
  tags: ["HTTP_SIGNING"],
@@ -364,10 +1343,10 @@ var getHttpSigningPlugin = (config) => ({
364
1343
  }
365
1344
  });
366
1345
 
367
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
1346
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js
368
1347
  var DefaultIdentityProviderConfig = class {
1348
+ authSchemes = /* @__PURE__ */ new Map();
369
1349
  constructor(config) {
370
- this.authSchemes = /* @__PURE__ */ new Map();
371
1350
  for (const [key, value] of Object.entries(config)) {
372
1351
  if (value !== void 0) {
373
1352
  this.authSchemes.set(key, value);
@@ -379,17 +1358,15 @@ var DefaultIdentityProviderConfig = class {
379
1358
  }
380
1359
  };
381
1360
 
382
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js
383
- var httpAuthSchemeMiddlewareOptions = {
1361
+ // ../../.yarn/cache/@smithy-middleware-serde-npm-4.2.6-44dd6e9fd7-c7b4f806f3.zip/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js
1362
+ var serializerMiddlewareOption2 = {
1363
+ name: "serializerMiddleware",
384
1364
  step: "serialize",
385
- tags: ["HTTP_AUTH_SCHEME"],
386
- name: "httpAuthSchemeMiddleware",
387
- override: true,
388
- relation: "before",
389
- toMiddleware: serializerMiddlewareOption.name
1365
+ tags: ["SERIALIZER"],
1366
+ override: true
390
1367
  };
391
1368
 
392
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/normalizeProvider.js
1369
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/normalizeProvider.js
393
1370
  var normalizeProvider2 = (input) => {
394
1371
  if (typeof input === "function")
395
1372
  return input;
@@ -397,7 +1374,466 @@ var normalizeProvider2 = (input) => {
397
1374
  return () => promisified;
398
1375
  };
399
1376
 
400
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/setFeature.js
1377
+ // ../../.yarn/cache/@smithy-util-utf8-npm-4.2.0-129dbf931f-689a1f2295.zip/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
1378
+ var toUint8Array = (data) => {
1379
+ if (typeof data === "string") {
1380
+ return fromUtf8(data);
1381
+ }
1382
+ if (ArrayBuffer.isView(data)) {
1383
+ return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
1384
+ }
1385
+ return new Uint8Array(data);
1386
+ };
1387
+
1388
+ // ../../.yarn/cache/@smithy-util-stream-npm-4.5.6-2962292a4c-42bb6f834b.zip/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js
1389
+ var Uint8ArrayBlobAdapter = class _Uint8ArrayBlobAdapter extends Uint8Array {
1390
+ static fromString(source, encoding = "utf-8") {
1391
+ if (typeof source === "string") {
1392
+ if (encoding === "base64") {
1393
+ return _Uint8ArrayBlobAdapter.mutate(fromBase64(source));
1394
+ }
1395
+ return _Uint8ArrayBlobAdapter.mutate(fromUtf8(source));
1396
+ }
1397
+ throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
1398
+ }
1399
+ static mutate(source) {
1400
+ Object.setPrototypeOf(source, _Uint8ArrayBlobAdapter.prototype);
1401
+ return source;
1402
+ }
1403
+ transformToString(encoding = "utf-8") {
1404
+ if (encoding === "base64") {
1405
+ return toBase64(this);
1406
+ }
1407
+ return toUtf8(this);
1408
+ }
1409
+ };
1410
+
1411
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/protocols/collect-stream-body.js
1412
+ var collectBody = async (streamBody = new Uint8Array(), context) => {
1413
+ if (streamBody instanceof Uint8Array) {
1414
+ return Uint8ArrayBlobAdapter.mutate(streamBody);
1415
+ }
1416
+ if (!streamBody) {
1417
+ return Uint8ArrayBlobAdapter.mutate(new Uint8Array());
1418
+ }
1419
+ const fromContext = context.streamCollector(streamBody);
1420
+ return Uint8ArrayBlobAdapter.mutate(await fromContext);
1421
+ };
1422
+
1423
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/protocols/extended-encode-uri-component.js
1424
+ function extendedEncodeURIComponent(str) {
1425
+ return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
1426
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
1427
+ });
1428
+ }
1429
+
1430
+ // ../../.yarn/cache/@smithy-uuid-npm-1.1.0-c3c39c12ad-f8a8bfcc0e.zip/node_modules/@smithy/uuid/dist-es/randomUUID.js
1431
+ import crypto2 from "crypto";
1432
+ var randomUUID = crypto2.randomUUID.bind(crypto2);
1433
+
1434
+ // ../../.yarn/cache/@smithy-uuid-npm-1.1.0-c3c39c12ad-f8a8bfcc0e.zip/node_modules/@smithy/uuid/dist-es/v4.js
1435
+ var decimalToHex = Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
1436
+ var v4 = () => {
1437
+ if (randomUUID) {
1438
+ return randomUUID();
1439
+ }
1440
+ const rnds = new Uint8Array(16);
1441
+ crypto.getRandomValues(rnds);
1442
+ rnds[6] = rnds[6] & 15 | 64;
1443
+ rnds[8] = rnds[8] & 63 | 128;
1444
+ 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]];
1445
+ };
1446
+
1447
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/serde/lazy-json.js
1448
+ var LazyJsonString = function LazyJsonString2(val) {
1449
+ const str = Object.assign(new String(val), {
1450
+ deserializeJSON() {
1451
+ return JSON.parse(String(val));
1452
+ },
1453
+ toString() {
1454
+ return String(val);
1455
+ },
1456
+ toJSON() {
1457
+ return String(val);
1458
+ }
1459
+ });
1460
+ return str;
1461
+ };
1462
+ LazyJsonString.from = (object) => {
1463
+ if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) {
1464
+ return object;
1465
+ } else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) {
1466
+ return LazyJsonString(String(object));
1467
+ }
1468
+ return LazyJsonString(JSON.stringify(object));
1469
+ };
1470
+ LazyJsonString.fromObject = LazyJsonString.from;
1471
+
1472
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js
1473
+ var ddd = `(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;
1474
+ var mmm = `(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;
1475
+ var time = `(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;
1476
+ var date = `(\\d?\\d)`;
1477
+ var year = `(\\d{4})`;
1478
+ var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);
1479
+ var IMF_FIXDATE = new RegExp(`^${ddd}, ${date} ${mmm} ${year} ${time} GMT$`);
1480
+ var RFC_850_DATE = new RegExp(`^${ddd}, ${date}-${mmm}-(\\d\\d) ${time} GMT$`);
1481
+ var ASC_TIME = new RegExp(`^${ddd} ${mmm} ( [1-9]|\\d\\d) ${time} ${year}$`);
1482
+ var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
1483
+ var _parseEpochTimestamp = (value) => {
1484
+ if (value == null) {
1485
+ return void 0;
1486
+ }
1487
+ let num = NaN;
1488
+ if (typeof value === "number") {
1489
+ num = value;
1490
+ } else if (typeof value === "string") {
1491
+ if (!/^-?\d*\.?\d+$/.test(value)) {
1492
+ throw new TypeError(`parseEpochTimestamp - numeric string invalid.`);
1493
+ }
1494
+ num = Number.parseFloat(value);
1495
+ } else if (typeof value === "object" && value.tag === 1) {
1496
+ num = value.value;
1497
+ }
1498
+ if (isNaN(num) || Math.abs(num) === Infinity) {
1499
+ throw new TypeError("Epoch timestamps must be valid finite numbers.");
1500
+ }
1501
+ return new Date(Math.round(num * 1e3));
1502
+ };
1503
+ var _parseRfc3339DateTimeWithOffset = (value) => {
1504
+ if (value == null) {
1505
+ return void 0;
1506
+ }
1507
+ if (typeof value !== "string") {
1508
+ throw new TypeError("RFC3339 timestamps must be strings");
1509
+ }
1510
+ const matches = RFC3339_WITH_OFFSET.exec(value);
1511
+ if (!matches) {
1512
+ throw new TypeError(`Invalid RFC3339 timestamp format ${value}`);
1513
+ }
1514
+ const [, yearStr, monthStr, dayStr, hours, minutes, seconds, , ms, offsetStr] = matches;
1515
+ range(monthStr, 1, 12);
1516
+ range(dayStr, 1, 31);
1517
+ range(hours, 0, 23);
1518
+ range(minutes, 0, 59);
1519
+ range(seconds, 0, 60);
1520
+ const date2 = new Date(Date.UTC(Number(yearStr), Number(monthStr) - 1, Number(dayStr), Number(hours), Number(minutes), Number(seconds), Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1e3) : 0));
1521
+ date2.setUTCFullYear(Number(yearStr));
1522
+ if (offsetStr.toUpperCase() != "Z") {
1523
+ const [, sign, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [void 0, "+", 0, 0];
1524
+ const scalar = sign === "-" ? 1 : -1;
1525
+ date2.setTime(date2.getTime() + scalar * (Number(offsetH) * 60 * 60 * 1e3 + Number(offsetM) * 60 * 1e3));
1526
+ }
1527
+ return date2;
1528
+ };
1529
+ var _parseRfc7231DateTime = (value) => {
1530
+ if (value == null) {
1531
+ return void 0;
1532
+ }
1533
+ if (typeof value !== "string") {
1534
+ throw new TypeError("RFC7231 timestamps must be strings.");
1535
+ }
1536
+ let day;
1537
+ let month;
1538
+ let year2;
1539
+ let hour;
1540
+ let minute;
1541
+ let second;
1542
+ let fraction;
1543
+ let matches;
1544
+ if (matches = IMF_FIXDATE.exec(value)) {
1545
+ [, day, month, year2, hour, minute, second, fraction] = matches;
1546
+ } else if (matches = RFC_850_DATE.exec(value)) {
1547
+ [, day, month, year2, hour, minute, second, fraction] = matches;
1548
+ year2 = (Number(year2) + 1900).toString();
1549
+ } else if (matches = ASC_TIME.exec(value)) {
1550
+ [, month, day, hour, minute, second, fraction, year2] = matches;
1551
+ }
1552
+ if (year2 && second) {
1553
+ const timestamp = Date.UTC(Number(year2), months.indexOf(month), Number(day), Number(hour), Number(minute), Number(second), fraction ? Math.round(parseFloat(`0.${fraction}`) * 1e3) : 0);
1554
+ range(day, 1, 31);
1555
+ range(hour, 0, 23);
1556
+ range(minute, 0, 59);
1557
+ range(second, 0, 60);
1558
+ const date2 = new Date(timestamp);
1559
+ date2.setUTCFullYear(Number(year2));
1560
+ return date2;
1561
+ }
1562
+ throw new TypeError(`Invalid RFC7231 date-time value ${value}.`);
1563
+ };
1564
+ function range(v, min, max) {
1565
+ const _v = Number(v);
1566
+ if (_v < min || _v > max) {
1567
+ throw new Error(`Value ${_v} out of range [${min}, ${max}]`);
1568
+ }
1569
+ }
1570
+
1571
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/serde/split-header.js
1572
+ var splitHeader = (value) => {
1573
+ const z = value.length;
1574
+ const values = [];
1575
+ let withinQuotes = false;
1576
+ let prevChar = void 0;
1577
+ let anchor = 0;
1578
+ for (let i = 0; i < z; ++i) {
1579
+ const char = value[i];
1580
+ switch (char) {
1581
+ case `"`:
1582
+ if (prevChar !== "\\") {
1583
+ withinQuotes = !withinQuotes;
1584
+ }
1585
+ break;
1586
+ case ",":
1587
+ if (!withinQuotes) {
1588
+ values.push(value.slice(anchor, i));
1589
+ anchor = i + 1;
1590
+ }
1591
+ break;
1592
+ default:
1593
+ }
1594
+ prevChar = char;
1595
+ }
1596
+ values.push(value.slice(anchor));
1597
+ return values.map((v) => {
1598
+ v = v.trim();
1599
+ const z2 = v.length;
1600
+ if (z2 < 2) {
1601
+ return v;
1602
+ }
1603
+ if (v[0] === `"` && v[z2 - 1] === `"`) {
1604
+ v = v.slice(1, z2 - 1);
1605
+ }
1606
+ return v.replace(/\\"/g, '"');
1607
+ });
1608
+ };
1609
+
1610
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js
1611
+ var format = /^-?\d*(\.\d+)?$/;
1612
+ var NumericValue = class _NumericValue {
1613
+ string;
1614
+ type;
1615
+ constructor(string, type) {
1616
+ this.string = string;
1617
+ this.type = type;
1618
+ if (!format.test(string)) {
1619
+ throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`);
1620
+ }
1621
+ }
1622
+ toString() {
1623
+ return this.string;
1624
+ }
1625
+ static [Symbol.hasInstance](object) {
1626
+ if (!object || typeof object !== "object") {
1627
+ return false;
1628
+ }
1629
+ const _nv = object;
1630
+ return _NumericValue.prototype.isPrototypeOf(object) || _nv.type === "bigDecimal" && format.test(_nv.string);
1631
+ }
1632
+ };
1633
+
1634
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js
1635
+ var SerdeContext = class {
1636
+ serdeContext;
1637
+ setSerdeContext(serdeContext) {
1638
+ this.serdeContext = serdeContext;
1639
+ }
1640
+ };
1641
+
1642
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js
1643
+ var HttpProtocol = class extends SerdeContext {
1644
+ options;
1645
+ constructor(options) {
1646
+ super();
1647
+ this.options = options;
1648
+ }
1649
+ getRequestType() {
1650
+ return HttpRequest;
1651
+ }
1652
+ getResponseType() {
1653
+ return HttpResponse;
1654
+ }
1655
+ setSerdeContext(serdeContext) {
1656
+ this.serdeContext = serdeContext;
1657
+ this.serializer.setSerdeContext(serdeContext);
1658
+ this.deserializer.setSerdeContext(serdeContext);
1659
+ if (this.getPayloadCodec()) {
1660
+ this.getPayloadCodec().setSerdeContext(serdeContext);
1661
+ }
1662
+ }
1663
+ updateServiceEndpoint(request, endpoint) {
1664
+ if ("url" in endpoint) {
1665
+ request.protocol = endpoint.url.protocol;
1666
+ request.hostname = endpoint.url.hostname;
1667
+ request.port = endpoint.url.port ? Number(endpoint.url.port) : void 0;
1668
+ request.path = endpoint.url.pathname;
1669
+ request.fragment = endpoint.url.hash || void 0;
1670
+ request.username = endpoint.url.username || void 0;
1671
+ request.password = endpoint.url.password || void 0;
1672
+ if (!request.query) {
1673
+ request.query = {};
1674
+ }
1675
+ for (const [k, v] of endpoint.url.searchParams.entries()) {
1676
+ request.query[k] = v;
1677
+ }
1678
+ return request;
1679
+ } else {
1680
+ request.protocol = endpoint.protocol;
1681
+ request.hostname = endpoint.hostname;
1682
+ request.port = endpoint.port ? Number(endpoint.port) : void 0;
1683
+ request.path = endpoint.path;
1684
+ request.query = {
1685
+ ...endpoint.query
1686
+ };
1687
+ return request;
1688
+ }
1689
+ }
1690
+ setHostPrefix(request, operationSchema, input) {
1691
+ const inputNs = NormalizedSchema.of(operationSchema.input);
1692
+ const opTraits = translateTraits(operationSchema.traits ?? {});
1693
+ if (opTraits.endpoint) {
1694
+ let hostPrefix = opTraits.endpoint?.[0];
1695
+ if (typeof hostPrefix === "string") {
1696
+ const hostLabelInputs = [...inputNs.structIterator()].filter(([, member2]) => member2.getMergedTraits().hostLabel);
1697
+ for (const [name] of hostLabelInputs) {
1698
+ const replacement = input[name];
1699
+ if (typeof replacement !== "string") {
1700
+ throw new Error(`@smithy/core/schema - ${name} in input must be a string as hostLabel.`);
1701
+ }
1702
+ hostPrefix = hostPrefix.replace(`{${name}}`, replacement);
1703
+ }
1704
+ request.hostname = hostPrefix + request.hostname;
1705
+ }
1706
+ }
1707
+ }
1708
+ deserializeMetadata(output) {
1709
+ return {
1710
+ httpStatusCode: output.statusCode,
1711
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1712
+ extendedRequestId: output.headers["x-amz-id-2"],
1713
+ cfId: output.headers["x-amz-cf-id"]
1714
+ };
1715
+ }
1716
+ async serializeEventStream({ eventStream, requestSchema, initialRequest }) {
1717
+ const eventStreamSerde = await this.loadEventStreamCapability();
1718
+ return eventStreamSerde.serializeEventStream({
1719
+ eventStream,
1720
+ requestSchema,
1721
+ initialRequest
1722
+ });
1723
+ }
1724
+ async deserializeEventStream({ response, responseSchema, initialResponseContainer }) {
1725
+ const eventStreamSerde = await this.loadEventStreamCapability();
1726
+ return eventStreamSerde.deserializeEventStream({
1727
+ response,
1728
+ responseSchema,
1729
+ initialResponseContainer
1730
+ });
1731
+ }
1732
+ async loadEventStreamCapability() {
1733
+ const { EventStreamSerde } = await import("./event-streams-NGUY2RWE.js");
1734
+ return new EventStreamSerde({
1735
+ marshaller: this.getEventStreamMarshaller(),
1736
+ serializer: this.serializer,
1737
+ deserializer: this.deserializer,
1738
+ serdeContext: this.serdeContext,
1739
+ defaultContentType: this.getDefaultContentType()
1740
+ });
1741
+ }
1742
+ getDefaultContentType() {
1743
+ throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`);
1744
+ }
1745
+ async deserializeHttpMessage(schema, context, response, arg4, arg5) {
1746
+ void schema;
1747
+ void context;
1748
+ void response;
1749
+ void arg4;
1750
+ void arg5;
1751
+ return [];
1752
+ }
1753
+ getEventStreamMarshaller() {
1754
+ const context = this.serdeContext;
1755
+ if (!context.eventStreamMarshaller) {
1756
+ throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");
1757
+ }
1758
+ return context.eventStreamMarshaller;
1759
+ }
1760
+ };
1761
+
1762
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/protocols/serde/determineTimestampFormat.js
1763
+ function determineTimestampFormat(ns, settings) {
1764
+ if (settings.timestampFormat.useTrait) {
1765
+ if (ns.isTimestampSchema() && (ns.getSchema() === 5 || ns.getSchema() === 6 || ns.getSchema() === 7)) {
1766
+ return ns.getSchema();
1767
+ }
1768
+ }
1769
+ const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits();
1770
+ const bindingFormat = settings.httpBindings ? typeof httpPrefixHeaders === "string" || Boolean(httpHeader) ? 6 : Boolean(httpQuery) || Boolean(httpLabel) ? 5 : void 0 : void 0;
1771
+ return bindingFormat ?? settings.timestampFormat.default;
1772
+ }
1773
+
1774
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
1775
+ var FromStringShapeDeserializer = class extends SerdeContext {
1776
+ settings;
1777
+ constructor(settings) {
1778
+ super();
1779
+ this.settings = settings;
1780
+ }
1781
+ read(_schema, data) {
1782
+ const ns = NormalizedSchema.of(_schema);
1783
+ if (ns.isListSchema()) {
1784
+ return splitHeader(data).map((item) => this.read(ns.getValueSchema(), item));
1785
+ }
1786
+ if (ns.isBlobSchema()) {
1787
+ return (this.serdeContext?.base64Decoder ?? fromBase64)(data);
1788
+ }
1789
+ if (ns.isTimestampSchema()) {
1790
+ const format2 = determineTimestampFormat(ns, this.settings);
1791
+ switch (format2) {
1792
+ case 5:
1793
+ return _parseRfc3339DateTimeWithOffset(data);
1794
+ case 6:
1795
+ return _parseRfc7231DateTime(data);
1796
+ case 7:
1797
+ return _parseEpochTimestamp(data);
1798
+ default:
1799
+ console.warn("Missing timestamp format, parsing value with Date constructor:", data);
1800
+ return new Date(data);
1801
+ }
1802
+ }
1803
+ if (ns.isStringSchema()) {
1804
+ const mediaType = ns.getMergedTraits().mediaType;
1805
+ let intermediateValue = data;
1806
+ if (mediaType) {
1807
+ if (ns.getMergedTraits().httpHeader) {
1808
+ intermediateValue = this.base64ToUtf8(intermediateValue);
1809
+ }
1810
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
1811
+ if (isJson) {
1812
+ intermediateValue = LazyJsonString.from(intermediateValue);
1813
+ }
1814
+ return intermediateValue;
1815
+ }
1816
+ }
1817
+ if (ns.isNumericSchema()) {
1818
+ return Number(data);
1819
+ }
1820
+ if (ns.isBigIntegerSchema()) {
1821
+ return BigInt(data);
1822
+ }
1823
+ if (ns.isBigDecimalSchema()) {
1824
+ return new NumericValue(data, "bigDecimal");
1825
+ }
1826
+ if (ns.isBooleanSchema()) {
1827
+ return String(data).toLowerCase() === "true";
1828
+ }
1829
+ return data;
1830
+ }
1831
+ base64ToUtf8(base64String) {
1832
+ return (this.serdeContext?.utf8Encoder ?? toUtf8)((this.serdeContext?.base64Decoder ?? fromBase64)(base64String));
1833
+ }
1834
+ };
1835
+
1836
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/setFeature.js
401
1837
  function setFeature(context, feature, value) {
402
1838
  if (!context.__smithy_context) {
403
1839
  context.__smithy_context = {
@@ -409,15 +1845,10 @@ function setFeature(context, feature, value) {
409
1845
  context.__smithy_context.features[feature] = value;
410
1846
  }
411
1847
 
412
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/util-identity-and-auth/httpAuthSchemes/noAuth.js
413
- var NoAuthSigner = class {
414
- async sign(httpRequest, identity, signingProperties) {
415
- return httpRequest;
416
- }
1848
+ // ../../.yarn/cache/@smithy-core-npm-3.18.5-16e80a170e-c6ccaf4a06.zip/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
1849
+ var createIsIdentityExpiredFunction = (expirationMs) => function isIdentityExpired2(identity) {
1850
+ return doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
417
1851
  };
418
-
419
- // ../../.yarn/cache/@smithy-core-npm-3.4.0-638c63a3b8-49b81ea502.zip/node_modules/@smithy/core/dist-es/util-identity-and-auth/memoizeIdentityProvider.js
420
- var createIsIdentityExpiredFunction = (expirationMs) => (identity) => doesIdentityRequireRefresh(identity) && identity.expiration.getTime() - Date.now() < expirationMs;
421
1852
  var EXPIRATION_MS = 3e5;
422
1853
  var isIdentityExpired = createIsIdentityExpiredFunction(EXPIRATION_MS);
423
1854
  var doesIdentityRequireRefresh = (identity) => identity.expiration !== void 0;
@@ -470,7 +1901,7 @@ var memoizeIdentityProvider = (provider, isExpired, requiresRefresh) => {
470
1901
  };
471
1902
  };
472
1903
 
473
- // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.816.0-e8bdacf6e2-af3caa6df1.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
1904
+ // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.940.0-3e822100ad-1756e35c96.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
474
1905
  var DEFAULT_UA_APP_ID = void 0;
475
1906
  function isValidUserAgentAppId(appId) {
476
1907
  if (appId === void 0) {
@@ -498,11 +1929,59 @@ function resolveUserAgentConfig(input) {
498
1929
  });
499
1930
  }
500
1931
 
501
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
1932
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/exceptions.js
1933
+ var ServiceException = class _ServiceException extends Error {
1934
+ $fault;
1935
+ $response;
1936
+ $retryable;
1937
+ $metadata;
1938
+ constructor(options) {
1939
+ super(options.message);
1940
+ Object.setPrototypeOf(this, Object.getPrototypeOf(this).constructor.prototype);
1941
+ this.name = options.name;
1942
+ this.$fault = options.$fault;
1943
+ this.$metadata = options.$metadata;
1944
+ }
1945
+ static isInstance(value) {
1946
+ if (!value)
1947
+ return false;
1948
+ const candidate = value;
1949
+ return _ServiceException.prototype.isPrototypeOf(candidate) || Boolean(candidate.$fault) && Boolean(candidate.$metadata) && (candidate.$fault === "client" || candidate.$fault === "server");
1950
+ }
1951
+ static [Symbol.hasInstance](instance) {
1952
+ if (!instance)
1953
+ return false;
1954
+ const candidate = instance;
1955
+ if (this === _ServiceException) {
1956
+ return _ServiceException.isInstance(instance);
1957
+ }
1958
+ if (_ServiceException.isInstance(instance)) {
1959
+ if (candidate.name && this.name) {
1960
+ return this.prototype.isPrototypeOf(instance) || candidate.name === this.name;
1961
+ }
1962
+ return this.prototype.isPrototypeOf(instance);
1963
+ }
1964
+ return false;
1965
+ }
1966
+ };
1967
+ var decorateServiceException = (exception, additions = {}) => {
1968
+ Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => {
1969
+ if (exception[k] == void 0 || exception[k] === "") {
1970
+ exception[k] = v;
1971
+ }
1972
+ });
1973
+ const message = exception.message || exception.Message || "UnknownError";
1974
+ exception.message = message;
1975
+ delete exception.Message;
1976
+ return exception;
1977
+ };
1978
+
1979
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/cache/EndpointCache.js
502
1980
  var EndpointCache = class {
1981
+ capacity;
1982
+ data = /* @__PURE__ */ new Map();
1983
+ parameters = [];
503
1984
  constructor({ size, params }) {
504
- this.data = /* @__PURE__ */ new Map();
505
- this.parameters = [];
506
1985
  this.capacity = size ?? 50;
507
1986
  if (params) {
508
1987
  this.parameters = params;
@@ -549,11 +2028,11 @@ var EndpointCache = class {
549
2028
  }
550
2029
  };
551
2030
 
552
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
2031
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js
553
2032
  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}$`);
554
2033
  var isIpAddress = (value) => IP_V4_REGEX.test(value) || value.startsWith("[") && value.endsWith("]");
555
2034
 
556
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
2035
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js
557
2036
  var VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);
558
2037
  var isValidHostLabel = (value, allowSubDomains = false) => {
559
2038
  if (!allowSubDomains) {
@@ -568,13 +2047,13 @@ var isValidHostLabel = (value, allowSubDomains = false) => {
568
2047
  return true;
569
2048
  };
570
2049
 
571
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
2050
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js
572
2051
  var customEndpointFunctions = {};
573
2052
 
574
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
2053
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js
575
2054
  var debugId = "endpoints";
576
2055
 
577
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
2056
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js
578
2057
  function toDebugString(input) {
579
2058
  if (typeof input !== "object" || input == null) {
580
2059
  return input;
@@ -588,7 +2067,7 @@ function toDebugString(input) {
588
2067
  return JSON.stringify(input, null, 2);
589
2068
  }
590
2069
 
591
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
2070
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js
592
2071
  var EndpointError = class extends Error {
593
2072
  constructor(message) {
594
2073
  super(message);
@@ -596,10 +2075,10 @@ var EndpointError = class extends Error {
596
2075
  }
597
2076
  };
598
2077
 
599
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
2078
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js
600
2079
  var booleanEquals = (value1, value2) => value1 === value2;
601
2080
 
602
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
2081
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js
603
2082
  var getAttrPathList = (path) => {
604
2083
  const parts = path.split(".");
605
2084
  const pathList = [];
@@ -624,7 +2103,7 @@ var getAttrPathList = (path) => {
624
2103
  return pathList;
625
2104
  };
626
2105
 
627
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
2106
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js
628
2107
  var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
629
2108
  if (typeof acc !== "object") {
630
2109
  throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`);
@@ -634,13 +2113,13 @@ var getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => {
634
2113
  return acc[index];
635
2114
  }, value);
636
2115
 
637
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
2116
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js
638
2117
  var isSet = (value) => value != null;
639
2118
 
640
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/not.js
2119
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/not.js
641
2120
  var not = (value) => !value;
642
2121
 
643
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
2122
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
644
2123
  var DEFAULT_PORTS = {
645
2124
  [EndpointURLScheme.HTTP]: 80,
646
2125
  [EndpointURLScheme.HTTPS]: 443
@@ -687,10 +2166,10 @@ var parseURL = (value) => {
687
2166
  };
688
2167
  };
689
2168
 
690
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
2169
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js
691
2170
  var stringEquals = (value1, value2) => value1 === value2;
692
2171
 
693
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
2172
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
694
2173
  var substring = (input, start, stop, reverse) => {
695
2174
  if (start >= stop || input.length < stop) {
696
2175
  return null;
@@ -701,10 +2180,10 @@ var substring = (input, start, stop, reverse) => {
701
2180
  return input.substring(input.length - stop, input.length - start);
702
2181
  };
703
2182
 
704
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
2183
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js
705
2184
  var uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
706
2185
 
707
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
2186
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js
708
2187
  var endpointFunctions = {
709
2188
  booleanEquals,
710
2189
  getAttr,
@@ -717,7 +2196,7 @@ var endpointFunctions = {
717
2196
  uriEncode
718
2197
  };
719
2198
 
720
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
2199
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js
721
2200
  var evaluateTemplate = (template, options) => {
722
2201
  const evaluatedTemplateArr = [];
723
2202
  const templateContext = {
@@ -753,7 +2232,7 @@ var evaluateTemplate = (template, options) => {
753
2232
  return evaluatedTemplateArr.join("");
754
2233
  };
755
2234
 
756
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
2235
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js
757
2236
  var getReferenceValue = ({ ref }, options) => {
758
2237
  const referenceRecord = {
759
2238
  ...options.endpointParams,
@@ -762,29 +2241,31 @@ var getReferenceValue = ({ ref }, options) => {
762
2241
  return referenceRecord[ref];
763
2242
  };
764
2243
 
765
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
2244
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js
766
2245
  var evaluateExpression = (obj, keyName, options) => {
767
2246
  if (typeof obj === "string") {
768
2247
  return evaluateTemplate(obj, options);
769
2248
  } else if (obj["fn"]) {
770
- return callFunction(obj, options);
2249
+ return group.callFunction(obj, options);
771
2250
  } else if (obj["ref"]) {
772
2251
  return getReferenceValue(obj, options);
773
2252
  }
774
2253
  throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`);
775
2254
  };
776
-
777
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js
778
2255
  var callFunction = ({ fn, argv }, options) => {
779
- const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options));
2256
+ const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : group.evaluateExpression(arg, "arg", options));
780
2257
  const fnSegments = fn.split(".");
781
2258
  if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) {
782
2259
  return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs);
783
2260
  }
784
2261
  return endpointFunctions[fn](...evaluatedArgs);
785
2262
  };
2263
+ var group = {
2264
+ evaluateExpression,
2265
+ callFunction
2266
+ };
786
2267
 
787
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
2268
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js
788
2269
  var evaluateCondition = ({ assign, ...fnArgs }, options) => {
789
2270
  if (assign && assign in options.referenceRecord) {
790
2271
  throw new EndpointError(`'${assign}' is already defined in Reference Record.`);
@@ -797,7 +2278,7 @@ var evaluateCondition = ({ assign, ...fnArgs }, options) => {
797
2278
  };
798
2279
  };
799
2280
 
800
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js
2281
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js
801
2282
  var evaluateConditions = (conditions = [], options) => {
802
2283
  const conditionsReferenceRecord = {};
803
2284
  for (const condition of conditions) {
@@ -819,7 +2300,7 @@ var evaluateConditions = (conditions = [], options) => {
819
2300
  return { result: true, referenceRecord: conditionsReferenceRecord };
820
2301
  };
821
2302
 
822
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
2303
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js
823
2304
  var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({
824
2305
  ...acc,
825
2306
  [headerKey]: headerVal.map((headerValEntry) => {
@@ -831,7 +2312,11 @@ var getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((a
831
2312
  })
832
2313
  }), {});
833
2314
 
834
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js
2315
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
2316
+ var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
2317
+ ...acc,
2318
+ [propertyKey]: group2.getEndpointProperty(propertyVal, options)
2319
+ }), {});
835
2320
  var getEndpointProperty = (property, options) => {
836
2321
  if (Array.isArray(property)) {
837
2322
  return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options));
@@ -843,21 +2328,19 @@ var getEndpointProperty = (property, options) => {
843
2328
  if (property === null) {
844
2329
  throw new EndpointError(`Unexpected endpoint property: ${property}`);
845
2330
  }
846
- return getEndpointProperties(property, options);
2331
+ return group2.getEndpointProperties(property, options);
847
2332
  case "boolean":
848
2333
  return property;
849
2334
  default:
850
2335
  throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`);
851
2336
  }
852
2337
  };
2338
+ var group2 = {
2339
+ getEndpointProperty,
2340
+ getEndpointProperties
2341
+ };
853
2342
 
854
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js
855
- var getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({
856
- ...acc,
857
- [propertyKey]: getEndpointProperty(propertyVal, options)
858
- }), {});
859
-
860
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
2343
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js
861
2344
  var getEndpointUrl = (endpointUrl, options) => {
862
2345
  const expression = evaluateExpression(endpointUrl, "Endpoint URL", options);
863
2346
  if (typeof expression === "string") {
@@ -871,7 +2354,7 @@ var getEndpointUrl = (endpointUrl, options) => {
871
2354
  throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`);
872
2355
  };
873
2356
 
874
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js
2357
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js
875
2358
  var evaluateEndpointRule = (endpointRule, options) => {
876
2359
  const { conditions, endpoint } = endpointRule;
877
2360
  const { result, referenceRecord } = evaluateConditions(conditions, options);
@@ -895,7 +2378,7 @@ var evaluateEndpointRule = (endpointRule, options) => {
895
2378
  };
896
2379
  };
897
2380
 
898
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js
2381
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js
899
2382
  var evaluateErrorRule = (errorRule, options) => {
900
2383
  const { conditions, error } = errorRule;
901
2384
  const { result, referenceRecord } = evaluateConditions(conditions, options);
@@ -908,20 +2391,7 @@ var evaluateErrorRule = (errorRule, options) => {
908
2391
  }));
909
2392
  };
910
2393
 
911
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js
912
- var evaluateTreeRule = (treeRule, options) => {
913
- const { conditions, rules } = treeRule;
914
- const { result, referenceRecord } = evaluateConditions(conditions, options);
915
- if (!result) {
916
- return;
917
- }
918
- return evaluateRules(rules, {
919
- ...options,
920
- referenceRecord: { ...options.referenceRecord, ...referenceRecord }
921
- });
922
- };
923
-
924
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
2394
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js
925
2395
  var evaluateRules = (rules, options) => {
926
2396
  for (const rule of rules) {
927
2397
  if (rule.type === "endpoint") {
@@ -932,7 +2402,7 @@ var evaluateRules = (rules, options) => {
932
2402
  } else if (rule.type === "error") {
933
2403
  evaluateErrorRule(rule, options);
934
2404
  } else if (rule.type === "tree") {
935
- const endpointOrUndefined = evaluateTreeRule(rule, options);
2405
+ const endpointOrUndefined = group3.evaluateTreeRule(rule, options);
936
2406
  if (endpointOrUndefined) {
937
2407
  return endpointOrUndefined;
938
2408
  }
@@ -942,8 +2412,23 @@ var evaluateRules = (rules, options) => {
942
2412
  }
943
2413
  throw new EndpointError(`Rules evaluation failed`);
944
2414
  };
2415
+ var evaluateTreeRule = (treeRule, options) => {
2416
+ const { conditions, rules } = treeRule;
2417
+ const { result, referenceRecord } = evaluateConditions(conditions, options);
2418
+ if (!result) {
2419
+ return;
2420
+ }
2421
+ return group3.evaluateRules(rules, {
2422
+ ...options,
2423
+ referenceRecord: { ...options.referenceRecord, ...referenceRecord }
2424
+ });
2425
+ };
2426
+ var group3 = {
2427
+ evaluateRules,
2428
+ evaluateTreeRule
2429
+ };
945
2430
 
946
- // ../../.yarn/cache/@smithy-util-endpoints-npm-3.0.5-7de1befdda-95d00d9a0e.zip/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
2431
+ // ../../.yarn/cache/@smithy-util-endpoints-npm-3.2.5-99c061e0fe-919767b499.zip/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js
947
2432
  var resolveEndpoint = (ruleSetObject, options) => {
948
2433
  const { endpointParams, logger } = options;
949
2434
  const { parameters, rules } = ruleSetObject;
@@ -965,7 +2450,7 @@ var resolveEndpoint = (ruleSetObject, options) => {
965
2450
  return endpoint;
966
2451
  };
967
2452
 
968
- // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.808.0-43cec0322b-197e07aa97.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
2453
+ // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.936.0-bf91c0e536-13b1ae923e.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js
969
2454
  var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
970
2455
  if (allowSubDomains) {
971
2456
  for (const label of value.split(".")) {
@@ -990,7 +2475,7 @@ var isVirtualHostableS3Bucket = (value, allowSubDomains = false) => {
990
2475
  return true;
991
2476
  };
992
2477
 
993
- // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.808.0-43cec0322b-197e07aa97.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
2478
+ // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.936.0-bf91c0e536-13b1ae923e.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js
994
2479
  var ARN_DELIMITER = ":";
995
2480
  var RESOURCE_DELIMITER = "/";
996
2481
  var parseArn = (value) => {
@@ -1010,7 +2495,7 @@ var parseArn = (value) => {
1010
2495
  };
1011
2496
  };
1012
2497
 
1013
- // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.808.0-43cec0322b-197e07aa97.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
2498
+ // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.936.0-bf91c0e536-13b1ae923e.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json
1014
2499
  var partitions_default = {
1015
2500
  partitions: [{
1016
2501
  id: "aws",
@@ -1030,6 +2515,9 @@ var partitions_default = {
1030
2515
  "ap-east-1": {
1031
2516
  description: "Asia Pacific (Hong Kong)"
1032
2517
  },
2518
+ "ap-east-2": {
2519
+ description: "Asia Pacific (Taipei)"
2520
+ },
1033
2521
  "ap-northeast-1": {
1034
2522
  description: "Asia Pacific (Tokyo)"
1035
2523
  },
@@ -1060,11 +2548,14 @@ var partitions_default = {
1060
2548
  "ap-southeast-5": {
1061
2549
  description: "Asia Pacific (Malaysia)"
1062
2550
  },
2551
+ "ap-southeast-6": {
2552
+ description: "Asia Pacific (New Zealand)"
2553
+ },
1063
2554
  "ap-southeast-7": {
1064
2555
  description: "Asia Pacific (Thailand)"
1065
2556
  },
1066
2557
  "aws-global": {
1067
- description: "AWS Standard global region"
2558
+ description: "aws global region"
1068
2559
  },
1069
2560
  "ca-central-1": {
1070
2561
  description: "Canada (Central)"
@@ -1137,7 +2628,7 @@ var partitions_default = {
1137
2628
  regionRegex: "^cn\\-\\w+\\-\\d+$",
1138
2629
  regions: {
1139
2630
  "aws-cn-global": {
1140
- description: "AWS China global region"
2631
+ description: "aws-cn global region"
1141
2632
  },
1142
2633
  "cn-north-1": {
1143
2634
  description: "China (Beijing)"
@@ -1147,41 +2638,35 @@ var partitions_default = {
1147
2638
  }
1148
2639
  }
1149
2640
  }, {
1150
- id: "aws-us-gov",
2641
+ id: "aws-eusc",
1151
2642
  outputs: {
1152
- dnsSuffix: "amazonaws.com",
1153
- dualStackDnsSuffix: "api.aws",
1154
- implicitGlobalRegion: "us-gov-west-1",
1155
- name: "aws-us-gov",
2643
+ dnsSuffix: "amazonaws.eu",
2644
+ dualStackDnsSuffix: "api.amazonwebservices.eu",
2645
+ implicitGlobalRegion: "eusc-de-east-1",
2646
+ name: "aws-eusc",
1156
2647
  supportsDualStack: true,
1157
2648
  supportsFIPS: true
1158
2649
  },
1159
- regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
2650
+ regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
1160
2651
  regions: {
1161
- "aws-us-gov-global": {
1162
- description: "AWS GovCloud (US) global region"
1163
- },
1164
- "us-gov-east-1": {
1165
- description: "AWS GovCloud (US-East)"
1166
- },
1167
- "us-gov-west-1": {
1168
- description: "AWS GovCloud (US-West)"
2652
+ "eusc-de-east-1": {
2653
+ description: "EU (Germany)"
1169
2654
  }
1170
2655
  }
1171
2656
  }, {
1172
2657
  id: "aws-iso",
1173
2658
  outputs: {
1174
2659
  dnsSuffix: "c2s.ic.gov",
1175
- dualStackDnsSuffix: "c2s.ic.gov",
2660
+ dualStackDnsSuffix: "api.aws.ic.gov",
1176
2661
  implicitGlobalRegion: "us-iso-east-1",
1177
2662
  name: "aws-iso",
1178
- supportsDualStack: false,
2663
+ supportsDualStack: true,
1179
2664
  supportsFIPS: true
1180
2665
  },
1181
2666
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
1182
2667
  regions: {
1183
2668
  "aws-iso-global": {
1184
- description: "AWS ISO (US) global region"
2669
+ description: "aws-iso global region"
1185
2670
  },
1186
2671
  "us-iso-east-1": {
1187
2672
  description: "US ISO East"
@@ -1194,35 +2679,38 @@ var partitions_default = {
1194
2679
  id: "aws-iso-b",
1195
2680
  outputs: {
1196
2681
  dnsSuffix: "sc2s.sgov.gov",
1197
- dualStackDnsSuffix: "sc2s.sgov.gov",
2682
+ dualStackDnsSuffix: "api.aws.scloud",
1198
2683
  implicitGlobalRegion: "us-isob-east-1",
1199
2684
  name: "aws-iso-b",
1200
- supportsDualStack: false,
2685
+ supportsDualStack: true,
1201
2686
  supportsFIPS: true
1202
2687
  },
1203
2688
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
1204
2689
  regions: {
1205
2690
  "aws-iso-b-global": {
1206
- description: "AWS ISOB (US) global region"
2691
+ description: "aws-iso-b global region"
1207
2692
  },
1208
2693
  "us-isob-east-1": {
1209
2694
  description: "US ISOB East (Ohio)"
2695
+ },
2696
+ "us-isob-west-1": {
2697
+ description: "US ISOB West"
1210
2698
  }
1211
2699
  }
1212
2700
  }, {
1213
2701
  id: "aws-iso-e",
1214
2702
  outputs: {
1215
2703
  dnsSuffix: "cloud.adc-e.uk",
1216
- dualStackDnsSuffix: "cloud.adc-e.uk",
2704
+ dualStackDnsSuffix: "api.cloud-aws.adc-e.uk",
1217
2705
  implicitGlobalRegion: "eu-isoe-west-1",
1218
2706
  name: "aws-iso-e",
1219
- supportsDualStack: false,
2707
+ supportsDualStack: true,
1220
2708
  supportsFIPS: true
1221
2709
  },
1222
2710
  regionRegex: "^eu\\-isoe\\-\\w+\\-\\d+$",
1223
2711
  regions: {
1224
2712
  "aws-iso-e-global": {
1225
- description: "AWS ISOE (Europe) global region"
2713
+ description: "aws-iso-e global region"
1226
2714
  },
1227
2715
  "eu-isoe-west-1": {
1228
2716
  description: "EU ISOE West"
@@ -1232,16 +2720,16 @@ var partitions_default = {
1232
2720
  id: "aws-iso-f",
1233
2721
  outputs: {
1234
2722
  dnsSuffix: "csp.hci.ic.gov",
1235
- dualStackDnsSuffix: "csp.hci.ic.gov",
2723
+ dualStackDnsSuffix: "api.aws.hci.ic.gov",
1236
2724
  implicitGlobalRegion: "us-isof-south-1",
1237
2725
  name: "aws-iso-f",
1238
- supportsDualStack: false,
2726
+ supportsDualStack: true,
1239
2727
  supportsFIPS: true
1240
2728
  },
1241
2729
  regionRegex: "^us\\-isof\\-\\w+\\-\\d+$",
1242
2730
  regions: {
1243
2731
  "aws-iso-f-global": {
1244
- description: "AWS ISOF global region"
2732
+ description: "aws-iso-f global region"
1245
2733
  },
1246
2734
  "us-isof-east-1": {
1247
2735
  description: "US ISOF EAST"
@@ -1251,26 +2739,32 @@ var partitions_default = {
1251
2739
  }
1252
2740
  }
1253
2741
  }, {
1254
- id: "aws-eusc",
2742
+ id: "aws-us-gov",
1255
2743
  outputs: {
1256
- dnsSuffix: "amazonaws.eu",
1257
- dualStackDnsSuffix: "amazonaws.eu",
1258
- implicitGlobalRegion: "eusc-de-east-1",
1259
- name: "aws-eusc",
1260
- supportsDualStack: false,
2744
+ dnsSuffix: "amazonaws.com",
2745
+ dualStackDnsSuffix: "api.aws",
2746
+ implicitGlobalRegion: "us-gov-west-1",
2747
+ name: "aws-us-gov",
2748
+ supportsDualStack: true,
1261
2749
  supportsFIPS: true
1262
2750
  },
1263
- regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
2751
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
1264
2752
  regions: {
1265
- "eusc-de-east-1": {
1266
- description: "EU (Germany)"
2753
+ "aws-us-gov-global": {
2754
+ description: "aws-us-gov global region"
2755
+ },
2756
+ "us-gov-east-1": {
2757
+ description: "AWS GovCloud (US-East)"
2758
+ },
2759
+ "us-gov-west-1": {
2760
+ description: "AWS GovCloud (US-West)"
1267
2761
  }
1268
2762
  }
1269
2763
  }],
1270
2764
  version: "1.1"
1271
2765
  };
1272
2766
 
1273
- // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.808.0-43cec0322b-197e07aa97.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
2767
+ // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.936.0-bf91c0e536-13b1ae923e.zip/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js
1274
2768
  var selectedPartitionsInfo = partitions_default;
1275
2769
  var selectedUserAgentPrefix = "";
1276
2770
  var partition = (value) => {
@@ -1304,7 +2798,7 @@ var partition = (value) => {
1304
2798
  };
1305
2799
  var getUserAgentPrefix = () => selectedUserAgentPrefix;
1306
2800
 
1307
- // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.808.0-43cec0322b-197e07aa97.zip/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
2801
+ // ../../.yarn/cache/@aws-sdk-util-endpoints-npm-3.936.0-bf91c0e536-13b1ae923e.zip/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js
1308
2802
  var awsEndpointFunctions = {
1309
2803
  isVirtualHostableS3Bucket,
1310
2804
  parseArn,
@@ -1312,7 +2806,7 @@ var awsEndpointFunctions = {
1312
2806
  };
1313
2807
  customEndpointFunctions.aws = awsEndpointFunctions;
1314
2808
 
1315
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
2809
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
1316
2810
  var state = {
1317
2811
  warningEmitted: false
1318
2812
  };
@@ -1329,7 +2823,7 @@ More information can be found at: https://a.co/74kJMmI`);
1329
2823
  }
1330
2824
  };
1331
2825
 
1332
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
2826
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js
1333
2827
  function setFeature2(context, feature, value) {
1334
2828
  if (!context.__aws_sdk_context) {
1335
2829
  context.__aws_sdk_context = {
@@ -1341,16 +2835,16 @@ function setFeature2(context, feature, value) {
1341
2835
  context.__aws_sdk_context.features[feature] = value;
1342
2836
  }
1343
2837
 
1344
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
2838
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js
1345
2839
  var getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : void 0;
1346
2840
 
1347
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
2841
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.js
1348
2842
  var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset);
1349
2843
 
1350
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
2844
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js
1351
2845
  var isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 3e5;
1352
2846
 
1353
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
2847
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
1354
2848
  var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
1355
2849
  const clockTimeInMs = Date.parse(clockTime);
1356
2850
  if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
@@ -1359,7 +2853,7 @@ var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
1359
2853
  return currentSystemClockOffset;
1360
2854
  };
1361
2855
 
1362
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
2856
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
1363
2857
  var throwSigningPropertyError = (name, property) => {
1364
2858
  if (!property) {
1365
2859
  throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
@@ -1430,13 +2924,13 @@ var AwsSdkSigV4Signer = class {
1430
2924
  }
1431
2925
  };
1432
2926
 
1433
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
2927
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.js
1434
2928
  var getArrayForCommaSeparatedString = (str) => typeof str === "string" && str.length > 0 ? str.split(",").map((item) => item.trim()) : [];
1435
2929
 
1436
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
2930
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.js
1437
2931
  var getBearerTokenEnvKey = (signingName) => `AWS_BEARER_TOKEN_${signingName.replace(/[\s-]/g, "_").toUpperCase()}`;
1438
2932
 
1439
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
2933
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js
1440
2934
  var NODE_AUTH_SCHEME_PREFERENCE_ENV_KEY = "AWS_AUTH_SCHEME_PREFERENCE";
1441
2935
  var NODE_AUTH_SCHEME_PREFERENCE_CONFIG_KEY = "auth_scheme_preference";
1442
2936
  var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
@@ -1458,7 +2952,7 @@ var NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = {
1458
2952
  default: []
1459
2953
  };
1460
2954
 
1461
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/constants.js
2955
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/constants.js
1462
2956
  var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
1463
2957
  var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
1464
2958
  var AMZ_DATE_QUERY_PARAM = "X-Amz-Date";
@@ -1499,7 +2993,7 @@ var MAX_CACHE_SIZE = 50;
1499
2993
  var KEY_TYPE_IDENTIFIER = "aws4_request";
1500
2994
  var MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
1501
2995
 
1502
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
2996
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js
1503
2997
  var signingKeyCache = {};
1504
2998
  var cacheQueue = [];
1505
2999
  var createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`;
@@ -1525,7 +3019,7 @@ var hmac = (ctor, secret, data) => {
1525
3019
  return hash.digest();
1526
3020
  };
1527
3021
 
1528
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
3022
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js
1529
3023
  var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
1530
3024
  const canonical = {};
1531
3025
  for (const headerName of Object.keys(headers).sort()) {
@@ -1543,7 +3037,7 @@ var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => {
1543
3037
  return canonical;
1544
3038
  };
1545
3039
 
1546
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
3040
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js
1547
3041
  var getPayloadHash = async ({ headers, body }, hashConstructor) => {
1548
3042
  for (const headerName of Object.keys(headers)) {
1549
3043
  if (headerName.toLowerCase() === SHA256_HEADER) {
@@ -1560,7 +3054,7 @@ var getPayloadHash = async ({ headers, body }, hashConstructor) => {
1560
3054
  return UNSIGNED_PAYLOAD;
1561
3055
  };
1562
3056
 
1563
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
3057
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js
1564
3058
  var HeaderFormatter = class {
1565
3059
  format(headers) {
1566
3060
  const chunks = [];
@@ -1643,6 +3137,7 @@ var HEADER_VALUE_TYPE;
1643
3137
  })(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {}));
1644
3138
  var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
1645
3139
  var Int64 = class _Int64 {
3140
+ bytes;
1646
3141
  constructor(bytes) {
1647
3142
  this.bytes = bytes;
1648
3143
  if (bytes.byteLength !== 8) {
@@ -1685,7 +3180,7 @@ function negate(bytes) {
1685
3180
  }
1686
3181
  }
1687
3182
 
1688
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
3183
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/headerUtil.js
1689
3184
  var hasHeader = (soughtHeader, headers) => {
1690
3185
  soughtHeader = soughtHeader.toLowerCase();
1691
3186
  for (const headerName of Object.keys(headers)) {
@@ -1696,7 +3191,7 @@ var hasHeader = (soughtHeader, headers) => {
1696
3191
  return false;
1697
3192
  };
1698
3193
 
1699
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
3194
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js
1700
3195
  var moveHeadersToQuery = (request, options = {}) => {
1701
3196
  const { headers, query = {} } = HttpRequest.clone(request);
1702
3197
  for (const name of Object.keys(headers)) {
@@ -1713,7 +3208,7 @@ var moveHeadersToQuery = (request, options = {}) => {
1713
3208
  };
1714
3209
  };
1715
3210
 
1716
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
3211
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js
1717
3212
  var prepareRequest = (request) => {
1718
3213
  request = HttpRequest.clone(request);
1719
3214
  for (const headerName of Object.keys(request.headers)) {
@@ -1724,7 +3219,7 @@ var prepareRequest = (request) => {
1724
3219
  return request;
1725
3220
  };
1726
3221
 
1727
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
3222
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js
1728
3223
  var getCanonicalQuery = ({ query = {} }) => {
1729
3224
  const keys = [];
1730
3225
  const serialized = {};
@@ -1744,23 +3239,29 @@ var getCanonicalQuery = ({ query = {} }) => {
1744
3239
  return keys.sort().map((key) => serialized[key]).filter((serialized2) => serialized2).join("&");
1745
3240
  };
1746
3241
 
1747
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/utilDate.js
1748
- var iso8601 = (time) => toDate(time).toISOString().replace(/\.\d{3}Z$/, "Z");
1749
- var toDate = (time) => {
1750
- if (typeof time === "number") {
1751
- return new Date(time * 1e3);
3242
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/utilDate.js
3243
+ var iso8601 = (time2) => toDate(time2).toISOString().replace(/\.\d{3}Z$/, "Z");
3244
+ var toDate = (time2) => {
3245
+ if (typeof time2 === "number") {
3246
+ return new Date(time2 * 1e3);
1752
3247
  }
1753
- if (typeof time === "string") {
1754
- if (Number(time)) {
1755
- return new Date(Number(time) * 1e3);
3248
+ if (typeof time2 === "string") {
3249
+ if (Number(time2)) {
3250
+ return new Date(Number(time2) * 1e3);
1756
3251
  }
1757
- return new Date(time);
3252
+ return new Date(time2);
1758
3253
  }
1759
- return time;
3254
+ return time2;
1760
3255
  };
1761
3256
 
1762
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
3257
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js
1763
3258
  var SignatureV4Base = class {
3259
+ service;
3260
+ regionProvider;
3261
+ credentialProvider;
3262
+ sha256;
3263
+ uriEscapePath;
3264
+ applyChecksum;
1764
3265
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
1765
3266
  this.service = service;
1766
3267
  this.sha256 = sha256;
@@ -1825,8 +3326,9 @@ ${toHex(hashedRequest)}`;
1825
3326
  }
1826
3327
  };
1827
3328
 
1828
- // ../../.yarn/cache/@smithy-signature-v4-npm-5.1.1-1b3dab9983-e0e4d414c7.zip/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
3329
+ // ../../.yarn/cache/@smithy-signature-v4-npm-5.3.5-e0b4efa55d-e4e8f28fc5.zip/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js
1829
3330
  var SignatureV4 = class extends SignatureV4Base {
3331
+ headerFormatter = new HeaderFormatter();
1830
3332
  constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {
1831
3333
  super({
1832
3334
  applyChecksum,
@@ -1836,7 +3338,6 @@ var SignatureV4 = class extends SignatureV4Base {
1836
3338
  sha256,
1837
3339
  uriEscapePath
1838
3340
  });
1839
- this.headerFormatter = new HeaderFormatter();
1840
3341
  }
1841
3342
  async presign(originalRequest, options = {}) {
1842
3343
  const { signingDate = /* @__PURE__ */ new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, hoistableHeaders, signingRegion, signingService } = options;
@@ -1944,7 +3445,7 @@ var SignatureV4 = class extends SignatureV4Base {
1944
3445
  }
1945
3446
  };
1946
3447
 
1947
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
3448
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
1948
3449
  var resolveAwsSdkSigV4Config = (config) => {
1949
3450
  let inputCredentials = config.credentials;
1950
3451
  let isUserSupplied = !!config.credentials;
@@ -2065,10 +3566,259 @@ function bindCallerConfig(config, credentialsProvider) {
2065
3566
  return fn;
2066
3567
  }
2067
3568
 
2068
- // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
2069
- var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3569
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/defaults-mode.js
3570
+ var loadConfigsForDefaultMode = (mode) => {
3571
+ switch (mode) {
3572
+ case "standard":
3573
+ return {
3574
+ retryMode: "standard",
3575
+ connectionTimeout: 3100
3576
+ };
3577
+ case "in-region":
3578
+ return {
3579
+ retryMode: "standard",
3580
+ connectionTimeout: 1100
3581
+ };
3582
+ case "cross-region":
3583
+ return {
3584
+ retryMode: "standard",
3585
+ connectionTimeout: 3100
3586
+ };
3587
+ case "mobile":
3588
+ return {
3589
+ retryMode: "standard",
3590
+ connectionTimeout: 3e4
3591
+ };
3592
+ default:
3593
+ return {};
3594
+ }
3595
+ };
3596
+
3597
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js
3598
+ var warningEmitted = false;
3599
+ var emitWarningIfUnsupportedVersion2 = (version) => {
3600
+ if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
3601
+ warningEmitted = true;
3602
+ }
3603
+ };
3604
+
3605
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js
3606
+ var getChecksumConfiguration = (runtimeConfig) => {
3607
+ const checksumAlgorithms = [];
3608
+ for (const id in AlgorithmId) {
3609
+ const algorithmId = AlgorithmId[id];
3610
+ if (runtimeConfig[algorithmId] === void 0) {
3611
+ continue;
3612
+ }
3613
+ checksumAlgorithms.push({
3614
+ algorithmId: () => algorithmId,
3615
+ checksumConstructor: () => runtimeConfig[algorithmId]
3616
+ });
3617
+ }
3618
+ return {
3619
+ addChecksumAlgorithm(algo) {
3620
+ checksumAlgorithms.push(algo);
3621
+ },
3622
+ checksumAlgorithms() {
3623
+ return checksumAlgorithms;
3624
+ }
3625
+ };
3626
+ };
3627
+ var resolveChecksumRuntimeConfig = (clientConfig) => {
3628
+ const runtimeConfig = {};
3629
+ clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
3630
+ runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
3631
+ });
3632
+ return runtimeConfig;
3633
+ };
3634
+
3635
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js
3636
+ var getRetryConfiguration = (runtimeConfig) => {
3637
+ return {
3638
+ setRetryStrategy(retryStrategy) {
3639
+ runtimeConfig.retryStrategy = retryStrategy;
3640
+ },
3641
+ retryStrategy() {
3642
+ return runtimeConfig.retryStrategy;
3643
+ }
3644
+ };
3645
+ };
3646
+ var resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
3647
+ const runtimeConfig = {};
3648
+ runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
3649
+ return runtimeConfig;
3650
+ };
3651
+
3652
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js
3653
+ var getDefaultExtensionConfiguration = (runtimeConfig) => {
3654
+ return Object.assign(getChecksumConfiguration(runtimeConfig), getRetryConfiguration(runtimeConfig));
3655
+ };
3656
+ var resolveDefaultRuntimeConfig = (config) => {
3657
+ return Object.assign(resolveChecksumRuntimeConfig(config), resolveRetryRuntimeConfig(config));
3658
+ };
3659
+
3660
+ // ../../.yarn/cache/@smithy-smithy-client-npm-4.9.8-803f5201c0-42752686da.zip/node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js
3661
+ var NoOpLogger = class {
3662
+ trace() {
3663
+ }
3664
+ debug() {
3665
+ }
3666
+ info() {
3667
+ }
3668
+ warn() {
3669
+ }
3670
+ error() {
3671
+ }
3672
+ };
3673
+
3674
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js
3675
+ var ProtocolLib = class {
3676
+ queryCompat;
3677
+ constructor(queryCompat = false) {
3678
+ this.queryCompat = queryCompat;
3679
+ }
3680
+ resolveRestContentType(defaultContentType, inputSchema) {
3681
+ const members = inputSchema.getMemberSchemas();
3682
+ const httpPayloadMember = Object.values(members).find((m) => {
3683
+ return !!m.getMergedTraits().httpPayload;
3684
+ });
3685
+ if (httpPayloadMember) {
3686
+ const mediaType = httpPayloadMember.getMergedTraits().mediaType;
3687
+ if (mediaType) {
3688
+ return mediaType;
3689
+ } else if (httpPayloadMember.isStringSchema()) {
3690
+ return "text/plain";
3691
+ } else if (httpPayloadMember.isBlobSchema()) {
3692
+ return "application/octet-stream";
3693
+ } else {
3694
+ return defaultContentType;
3695
+ }
3696
+ } else if (!inputSchema.isUnitSchema()) {
3697
+ const hasBody = Object.values(members).find((m) => {
3698
+ const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
3699
+ const noPrefixHeaders = httpPrefixHeaders === void 0;
3700
+ return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && noPrefixHeaders;
3701
+ });
3702
+ if (hasBody) {
3703
+ return defaultContentType;
3704
+ }
3705
+ }
3706
+ }
3707
+ async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
3708
+ let namespace = defaultNamespace;
3709
+ let errorName = errorIdentifier;
3710
+ if (errorIdentifier.includes("#")) {
3711
+ [namespace, errorName] = errorIdentifier.split("#");
3712
+ }
3713
+ const errorMetadata = {
3714
+ $metadata: metadata,
3715
+ $fault: response.statusCode < 500 ? "client" : "server"
3716
+ };
3717
+ const registry = TypeRegistry.for(namespace);
3718
+ try {
3719
+ const errorSchema = getErrorSchema?.(registry, errorName) ?? registry.getSchema(errorIdentifier);
3720
+ return { errorSchema, errorMetadata };
3721
+ } catch (e) {
3722
+ dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
3723
+ const synthetic = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
3724
+ const baseExceptionSchema = synthetic.getBaseException();
3725
+ if (baseExceptionSchema) {
3726
+ const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
3727
+ throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
3728
+ }
3729
+ throw this.decorateServiceException(Object.assign(new Error(errorName), errorMetadata), dataObject);
3730
+ }
3731
+ }
3732
+ decorateServiceException(exception, additions = {}) {
3733
+ if (this.queryCompat) {
3734
+ const msg = exception.Message ?? additions.Message;
3735
+ const error = decorateServiceException(exception, additions);
3736
+ if (msg) {
3737
+ error.Message = msg;
3738
+ error.message = msg;
3739
+ }
3740
+ return error;
3741
+ }
3742
+ return decorateServiceException(exception, additions);
3743
+ }
3744
+ setQueryCompatError(output, response) {
3745
+ const queryErrorHeader = response.headers?.["x-amzn-query-error"];
3746
+ if (output !== void 0 && queryErrorHeader != null) {
3747
+ const [Code, Type] = queryErrorHeader.split(";");
3748
+ const entries = Object.entries(output);
3749
+ const Error2 = {
3750
+ Code,
3751
+ Type
3752
+ };
3753
+ Object.assign(output, Error2);
3754
+ for (const [k, v] of entries) {
3755
+ Error2[k] = v;
3756
+ }
3757
+ delete Error2.__type;
3758
+ output.Error = Error2;
3759
+ }
3760
+ }
3761
+ queryCompatOutput(queryCompatErrorData, errorData) {
3762
+ if (queryCompatErrorData.Error) {
3763
+ errorData.Error = queryCompatErrorData.Error;
3764
+ }
3765
+ if (queryCompatErrorData.Type) {
3766
+ errorData.Type = queryCompatErrorData.Type;
3767
+ }
3768
+ if (queryCompatErrorData.Code) {
3769
+ errorData.Code = queryCompatErrorData.Code;
3770
+ }
3771
+ }
3772
+ };
3773
+
3774
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js
3775
+ var SerdeContextConfig = class {
3776
+ serdeContext;
3777
+ setSerdeContext(serdeContext) {
3778
+ this.serdeContext = serdeContext;
3779
+ }
3780
+ };
3781
+
3782
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.940.0-0d32a8e8d2-090b960007.zip/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js
3783
+ function* serializingStructIterator(ns, sourceObject) {
3784
+ if (ns.isUnitSchema()) {
3785
+ return;
3786
+ }
3787
+ const struct = ns.getSchema();
3788
+ for (let i = 0; i < struct[4].length; ++i) {
3789
+ const key = struct[4][i];
3790
+ const memberNs = new NormalizedSchema([struct[5][i], 0], key);
3791
+ if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
3792
+ continue;
3793
+ }
3794
+ yield [key, memberNs];
3795
+ }
3796
+ }
3797
+ function* deserializingStructIterator(ns, sourceObject, nameTrait) {
3798
+ if (ns.isUnitSchema()) {
3799
+ return;
3800
+ }
3801
+ const struct = ns.getSchema();
3802
+ let keysRemaining = Object.keys(sourceObject).length;
3803
+ for (let i = 0; i < struct[4].length; ++i) {
3804
+ if (keysRemaining === 0) {
3805
+ break;
3806
+ }
3807
+ const key = struct[4][i];
3808
+ const memberNs = new NormalizedSchema([struct[5][i], 0], key);
3809
+ let serializationKey = key;
3810
+ if (nameTrait) {
3811
+ serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
3812
+ }
3813
+ if (!(serializationKey in sourceObject)) {
3814
+ continue;
3815
+ }
3816
+ yield [key, memberNs];
3817
+ keysRemaining -= 1;
3818
+ }
3819
+ }
2070
3820
 
2071
- // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.816.0-e8bdacf6e2-af3caa6df1.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
3821
+ // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.940.0-3e822100ad-1756e35c96.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
2072
3822
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
2073
3823
  async function checkFeatures(context, config, args) {
2074
3824
  const request = args.request;
@@ -2116,16 +3866,16 @@ async function checkFeatures(context, config, args) {
2116
3866
  }
2117
3867
  }
2118
3868
 
2119
- // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.816.0-e8bdacf6e2-af3caa6df1.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
3869
+ // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.940.0-3e822100ad-1756e35c96.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js
2120
3870
  var USER_AGENT = "user-agent";
2121
3871
  var X_AMZ_USER_AGENT = "x-amz-user-agent";
2122
3872
  var SPACE = " ";
2123
3873
  var UA_NAME_SEPARATOR = "/";
2124
- var UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g;
2125
- var UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g;
3874
+ var UA_NAME_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w]/g;
3875
+ var UA_VALUE_ESCAPE_REGEX = /[^!$%&'*+\-.^_`|~\w#]/g;
2126
3876
  var UA_ESCAPE_CHAR = "-";
2127
3877
 
2128
- // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.816.0-e8bdacf6e2-af3caa6df1.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js
3878
+ // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.940.0-3e822100ad-1756e35c96.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/encode-features.js
2129
3879
  var BYTE_LIMIT = 1024;
2130
3880
  function encodeFeatures(features) {
2131
3881
  let buffer = "";
@@ -2144,7 +3894,7 @@ function encodeFeatures(features) {
2144
3894
  return buffer;
2145
3895
  }
2146
3896
 
2147
- // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.816.0-e8bdacf6e2-af3caa6df1.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
3897
+ // ../../.yarn/cache/@aws-sdk-middleware-user-agent-npm-3.940.0-3e822100ad-1756e35c96.zip/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
2148
3898
  var userAgentMiddleware = (options) => (next, context) => async (args) => {
2149
3899
  const { request } = args;
2150
3900
  if (!HttpRequest.isInstance(request)) {
@@ -2159,7 +3909,7 @@ var userAgentMiddleware = (options) => (next, context) => async (args) => {
2159
3909
  const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || [];
2160
3910
  const appId = await options.userAgentAppId();
2161
3911
  if (appId) {
2162
- defaultUserAgent.push(escapeUserAgent([`app/${appId}`]));
3912
+ defaultUserAgent.push(escapeUserAgent([`app`, `${appId}`]));
2163
3913
  }
2164
3914
  const prefix = getUserAgentPrefix();
2165
3915
  const sdkUserAgentValue = (prefix ? [prefix] : []).concat([...defaultUserAgent, ...userAgent, ...customUserAgent]).join(SPACE);
@@ -2213,13 +3963,27 @@ var getUserAgentPlugin = (config) => ({
2213
3963
  }
2214
3964
  });
2215
3965
 
2216
- // ../../.yarn/cache/@smithy-config-resolver-npm-4.1.3-08af992379-6ec52e1609.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
3966
+ // ../../.yarn/cache/@smithy-config-resolver-npm-4.4.3-995b58e856-e28844ea32.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/checkRegion.js
3967
+ var validRegions = /* @__PURE__ */ new Set();
3968
+ var checkRegion = (region, check = isValidHostLabel) => {
3969
+ if (!validRegions.has(region) && !check(region)) {
3970
+ if (region === "*") {
3971
+ console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`);
3972
+ } else {
3973
+ throw new Error(`Region not accepted: region="${region}" is not a valid hostname component.`);
3974
+ }
3975
+ } else {
3976
+ validRegions.add(region);
3977
+ }
3978
+ };
3979
+
3980
+ // ../../.yarn/cache/@smithy-config-resolver-npm-4.4.3-995b58e856-e28844ea32.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js
2217
3981
  var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
2218
3982
 
2219
- // ../../.yarn/cache/@smithy-config-resolver-npm-4.1.3-08af992379-6ec52e1609.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
3983
+ // ../../.yarn/cache/@smithy-config-resolver-npm-4.4.3-995b58e856-e28844ea32.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js
2220
3984
  var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
2221
3985
 
2222
- // ../../.yarn/cache/@smithy-config-resolver-npm-4.1.3-08af992379-6ec52e1609.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
3986
+ // ../../.yarn/cache/@smithy-config-resolver-npm-4.4.3-995b58e856-e28844ea32.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js
2223
3987
  var resolveRegionConfig = (input) => {
2224
3988
  const { region, useFipsEndpoint } = input;
2225
3989
  if (!region) {
@@ -2227,11 +3991,10 @@ var resolveRegionConfig = (input) => {
2227
3991
  }
2228
3992
  return Object.assign(input, {
2229
3993
  region: async () => {
2230
- if (typeof region === "string") {
2231
- return getRealRegion(region);
2232
- }
2233
- const providedRegion = await region();
2234
- return getRealRegion(providedRegion);
3994
+ const providedRegion = typeof region === "function" ? await region() : region;
3995
+ const realRegion = getRealRegion(providedRegion);
3996
+ checkRegion(realRegion);
3997
+ return realRegion;
2235
3998
  },
2236
3999
  useFipsEndpoint: async () => {
2237
4000
  const providedRegion = typeof region === "string" ? region : await region();
@@ -2243,57 +4006,7 @@ var resolveRegionConfig = (input) => {
2243
4006
  });
2244
4007
  };
2245
4008
 
2246
- // ../../.yarn/cache/@smithy-util-config-provider-npm-4.0.0-f9e394b66a-cd9498d5f7.zip/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
2247
- var booleanSelector = (obj, key, type) => {
2248
- if (!(key in obj))
2249
- return void 0;
2250
- if (obj[key] === "true")
2251
- return true;
2252
- if (obj[key] === "false")
2253
- return false;
2254
- throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
2255
- };
2256
-
2257
- // ../../.yarn/cache/@smithy-util-config-provider-npm-4.0.0-f9e394b66a-cd9498d5f7.zip/node_modules/@smithy/util-config-provider/dist-es/types.js
2258
- var SelectorType;
2259
- (function(SelectorType2) {
2260
- SelectorType2["ENV"] = "env";
2261
- SelectorType2["CONFIG"] = "shared config entry";
2262
- })(SelectorType || (SelectorType = {}));
2263
-
2264
- // ../../.yarn/cache/@smithy-config-resolver-npm-4.1.3-08af992379-6ec52e1609.zip/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
2265
- var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
2266
- var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
2267
- var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
2268
- environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
2269
- configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
2270
- default: false
2271
- };
2272
-
2273
- // ../../.yarn/cache/@smithy-config-resolver-npm-4.1.3-08af992379-6ec52e1609.zip/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
2274
- var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
2275
- var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
2276
- var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
2277
- environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
2278
- configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
2279
- default: false
2280
- };
2281
-
2282
- // ../../.yarn/cache/@smithy-config-resolver-npm-4.1.3-08af992379-6ec52e1609.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
2283
- var REGION_ENV_NAME = "AWS_REGION";
2284
- var REGION_INI_NAME = "region";
2285
- var NODE_REGION_CONFIG_OPTIONS = {
2286
- environmentVariableSelector: (env2) => env2[REGION_ENV_NAME],
2287
- configFileSelector: (profile) => profile[REGION_INI_NAME],
2288
- default: () => {
2289
- throw new Error("Region is missing");
2290
- }
2291
- };
2292
- var NODE_REGION_CONFIG_FILE_OPTIONS = {
2293
- preferredFile: "credentials"
2294
- };
2295
-
2296
- // ../../.yarn/cache/@smithy-middleware-content-length-npm-4.0.3-d15f97cd59-a212d89f23.zip/node_modules/@smithy/middleware-content-length/dist-es/index.js
4009
+ // ../../.yarn/cache/@smithy-middleware-content-length-npm-4.2.5-a18ec50ef8-672a29ab57.zip/node_modules/@smithy/middleware-content-length/dist-es/index.js
2297
4010
  var CONTENT_LENGTH_HEADER = "content-length";
2298
4011
  function contentLengthMiddleware(bodyLengthChecker) {
2299
4012
  return (next) => async (args) => {
@@ -2329,7 +4042,7 @@ var getContentLengthPlugin = (options) => ({
2329
4042
  }
2330
4043
  });
2331
4044
 
2332
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
4045
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
2333
4046
  var resolveParamsForS3 = async (endpointParams) => {
2334
4047
  const bucket = endpointParams?.Bucket || "";
2335
4048
  if (typeof endpointParams.Bucket === "string") {
@@ -2362,7 +4075,7 @@ var isArnBucketName = (bucketName) => {
2362
4075
  return isValidArn;
2363
4076
  };
2364
4077
 
2365
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
4078
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js
2366
4079
  var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => {
2367
4080
  const configProvider = async () => {
2368
4081
  const configValue = config[configKey] ?? config[canonicalEndpointParamKey];
@@ -2387,6 +4100,9 @@ var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) =
2387
4100
  }
2388
4101
  if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") {
2389
4102
  return async () => {
4103
+ if (config.isCustomEndpoint === false) {
4104
+ return void 0;
4105
+ }
2390
4106
  const endpoint = await configProvider();
2391
4107
  if (endpoint && typeof endpoint === "object") {
2392
4108
  if ("url" in endpoint) {
@@ -2403,7 +4119,7 @@ var createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) =
2403
4119
  return configProvider;
2404
4120
  };
2405
4121
 
2406
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js
4122
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js
2407
4123
  var ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
2408
4124
  var CONFIG_ENDPOINT_URL = "endpoint_url";
2409
4125
  var getEndpointUrlConfig = (serviceId) => ({
@@ -2435,10 +4151,10 @@ var getEndpointUrlConfig = (serviceId) => ({
2435
4151
  default: void 0
2436
4152
  });
2437
4153
 
2438
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
4154
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js
2439
4155
  var getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
2440
4156
 
2441
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
4157
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js
2442
4158
  var toEndpointV1 = (endpoint) => {
2443
4159
  if (typeof endpoint === "object") {
2444
4160
  if ("url" in endpoint) {
@@ -2449,9 +4165,9 @@ var toEndpointV1 = (endpoint) => {
2449
4165
  return parseUrl(endpoint);
2450
4166
  };
2451
4167
 
2452
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
4168
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js
2453
4169
  var getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => {
2454
- if (!clientConfig.endpoint) {
4170
+ if (!clientConfig.isCustomEndpoint) {
2455
4171
  let endpointFromConfig;
2456
4172
  if (clientConfig.serviceConfiguredEndpoint) {
2457
4173
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -2460,6 +4176,7 @@ var getEndpointFromInstructions = async (commandInput, instructionsSupplier, cli
2460
4176
  }
2461
4177
  if (endpointFromConfig) {
2462
4178
  clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
4179
+ clientConfig.isCustomEndpoint = true;
2463
4180
  }
2464
4181
  }
2465
4182
  const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
@@ -2500,10 +4217,10 @@ var resolveParams = async (commandInput, instructionsSupplier, clientConfig) =>
2500
4217
  return endpointParams;
2501
4218
  };
2502
4219
 
2503
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
4220
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
2504
4221
  var endpointMiddleware = ({ config, instructions }) => {
2505
4222
  return (next, context) => async (args) => {
2506
- if (config.endpoint) {
4223
+ if (config.isCustomEndpoint) {
2507
4224
  setFeature(context, "ENDPOINT_OVERRIDE", "N");
2508
4225
  }
2509
4226
  const endpoint = await getEndpointFromInstructions(args.input, {
@@ -2535,14 +4252,14 @@ var endpointMiddleware = ({ config, instructions }) => {
2535
4252
  };
2536
4253
  };
2537
4254
 
2538
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
4255
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js
2539
4256
  var endpointMiddlewareOptions = {
2540
4257
  step: "serialize",
2541
4258
  tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
2542
4259
  name: "endpointV2Middleware",
2543
4260
  override: true,
2544
4261
  relation: "before",
2545
- toMiddleware: serializerMiddlewareOption.name
4262
+ toMiddleware: serializerMiddlewareOption2.name
2546
4263
  };
2547
4264
  var getEndpointPlugin = (config, instructions) => ({
2548
4265
  applyToStack: (clientStack) => {
@@ -2553,7 +4270,7 @@ var getEndpointPlugin = (config, instructions) => ({
2553
4270
  }
2554
4271
  });
2555
4272
 
2556
- // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.1.7-04a4311cd0-c3678a97d9.zip/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
4273
+ // ../../.yarn/cache/@smithy-middleware-endpoint-npm-4.3.12-0496a2b4e2-0bfb1d825d.zip/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
2557
4274
  var resolveEndpointConfig = (input) => {
2558
4275
  const tls = input.tls ?? true;
2559
4276
  const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
@@ -2576,7 +4293,7 @@ var resolveEndpointConfig = (input) => {
2576
4293
  return resolvedConfig;
2577
4294
  };
2578
4295
 
2579
- // ../../.yarn/cache/@smithy-util-retry-npm-4.0.4-8cb74135af-ef4dd318ec.zip/node_modules/@smithy/util-retry/dist-es/config.js
4296
+ // ../../.yarn/cache/@smithy-util-retry-npm-4.2.5-d589822ced-3b330df346.zip/node_modules/@smithy/util-retry/dist-es/config.js
2580
4297
  var RETRY_MODES;
2581
4298
  (function(RETRY_MODES2) {
2582
4299
  RETRY_MODES2["STANDARD"] = "standard";
@@ -2585,7 +4302,7 @@ var RETRY_MODES;
2585
4302
  var DEFAULT_MAX_ATTEMPTS = 3;
2586
4303
  var DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
2587
4304
 
2588
- // ../../.yarn/cache/@smithy-service-error-classification-npm-4.0.4-3aa7ae5563-06d6db4d88.zip/node_modules/@smithy/service-error-classification/dist-es/constants.js
4305
+ // ../../.yarn/cache/@smithy-service-error-classification-npm-4.2.5-12663503cb-d1a3ef99b4.zip/node_modules/@smithy/service-error-classification/dist-es/constants.js
2589
4306
  var THROTTLING_ERROR_CODES = [
2590
4307
  "BandwidthLimitExceeded",
2591
4308
  "EC2ThrottledException",
@@ -2605,8 +4322,10 @@ var THROTTLING_ERROR_CODES = [
2605
4322
  var TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"];
2606
4323
  var TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504];
2607
4324
  var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"];
4325
+ var NODEJS_NETWORK_ERROR_CODES = ["EHOSTUNREACH", "ENETUNREACH", "ENOTFOUND"];
2608
4326
 
2609
- // ../../.yarn/cache/@smithy-service-error-classification-npm-4.0.4-3aa7ae5563-06d6db4d88.zip/node_modules/@smithy/service-error-classification/dist-es/index.js
4327
+ // ../../.yarn/cache/@smithy-service-error-classification-npm-4.2.5-12663503cb-d1a3ef99b4.zip/node_modules/@smithy/service-error-classification/dist-es/index.js
4328
+ var isRetryableByTrait = (error) => error?.$retryable !== void 0;
2610
4329
  var isClockSkewCorrectedError = (error) => error.$metadata?.clockSkewCorrected;
2611
4330
  var isBrowserNetworkError = (error) => {
2612
4331
  const errorMessages = /* @__PURE__ */ new Set([
@@ -2623,7 +4342,7 @@ var isBrowserNetworkError = (error) => {
2623
4342
  return errorMessages.has(error.message);
2624
4343
  };
2625
4344
  var isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || THROTTLING_ERROR_CODES.includes(error.name) || error.$retryable?.throttling == true;
2626
- var isTransientError = (error, depth = 0) => isClockSkewCorrectedError(error) || TRANSIENT_ERROR_CODES.includes(error.name) || NODEJS_TIMEOUT_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);
4345
+ 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);
2627
4346
  var isServerError = (error) => {
2628
4347
  if (error.$metadata?.httpStatusCode !== void 0) {
2629
4348
  const statusCode = error.$metadata.httpStatusCode;
@@ -2635,16 +4354,26 @@ var isServerError = (error) => {
2635
4354
  return false;
2636
4355
  };
2637
4356
 
2638
- // ../../.yarn/cache/@smithy-util-retry-npm-4.0.4-8cb74135af-ef4dd318ec.zip/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
4357
+ // ../../.yarn/cache/@smithy-util-retry-npm-4.2.5-d589822ced-3b330df346.zip/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js
2639
4358
  var DefaultRateLimiter = class _DefaultRateLimiter {
4359
+ static setTimeoutFn = setTimeout;
4360
+ beta;
4361
+ minCapacity;
4362
+ minFillRate;
4363
+ scaleConstant;
4364
+ smooth;
4365
+ currentCapacity = 0;
4366
+ enabled = false;
4367
+ lastMaxRate = 0;
4368
+ measuredTxRate = 0;
4369
+ requestCount = 0;
4370
+ fillRate;
4371
+ lastThrottleTime;
4372
+ lastTimestamp = 0;
4373
+ lastTxRateBucket;
4374
+ maxCapacity;
4375
+ timeWindow = 0;
2640
4376
  constructor(options) {
2641
- this.currentCapacity = 0;
2642
- this.enabled = false;
2643
- this.lastMaxRate = 0;
2644
- this.measuredTxRate = 0;
2645
- this.requestCount = 0;
2646
- this.lastTimestamp = 0;
2647
- this.timeWindow = 0;
2648
4377
  this.beta = options?.beta ?? 0.7;
2649
4378
  this.minCapacity = options?.minCapacity ?? 1;
2650
4379
  this.minFillRate = options?.minFillRate ?? 0.5;
@@ -2733,9 +4462,8 @@ var DefaultRateLimiter = class _DefaultRateLimiter {
2733
4462
  return parseFloat(num.toFixed(8));
2734
4463
  }
2735
4464
  };
2736
- DefaultRateLimiter.setTimeoutFn = setTimeout;
2737
4465
 
2738
- // ../../.yarn/cache/@smithy-util-retry-npm-4.0.4-8cb74135af-ef4dd318ec.zip/node_modules/@smithy/util-retry/dist-es/constants.js
4466
+ // ../../.yarn/cache/@smithy-util-retry-npm-4.2.5-d589822ced-3b330df346.zip/node_modules/@smithy/util-retry/dist-es/constants.js
2739
4467
  var DEFAULT_RETRY_DELAY_BASE = 100;
2740
4468
  var MAXIMUM_RETRY_DELAY = 20 * 1e3;
2741
4469
  var THROTTLING_RETRY_DELAY_BASE = 500;
@@ -2746,7 +4474,7 @@ var NO_RETRY_INCREMENT = 1;
2746
4474
  var INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
2747
4475
  var REQUEST_HEADER = "amz-sdk-request";
2748
4476
 
2749
- // ../../.yarn/cache/@smithy-util-retry-npm-4.0.4-8cb74135af-ef4dd318ec.zip/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js
4477
+ // ../../.yarn/cache/@smithy-util-retry-npm-4.2.5-d589822ced-3b330df346.zip/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js
2750
4478
  var getDefaultRetryBackoffStrategy = () => {
2751
4479
  let delayBase = DEFAULT_RETRY_DELAY_BASE;
2752
4480
  const computeNextBackoffDelay = (attempts) => {
@@ -2761,7 +4489,7 @@ var getDefaultRetryBackoffStrategy = () => {
2761
4489
  };
2762
4490
  };
2763
4491
 
2764
- // ../../.yarn/cache/@smithy-util-retry-npm-4.0.4-8cb74135af-ef4dd318ec.zip/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js
4492
+ // ../../.yarn/cache/@smithy-util-retry-npm-4.2.5-d589822ced-3b330df346.zip/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js
2765
4493
  var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => {
2766
4494
  const getRetryCount = () => retryCount;
2767
4495
  const getRetryDelay = () => Math.min(MAXIMUM_RETRY_DELAY, retryDelay);
@@ -2773,13 +4501,15 @@ var createDefaultRetryToken = ({ retryDelay, retryCount, retryCost }) => {
2773
4501
  };
2774
4502
  };
2775
4503
 
2776
- // ../../.yarn/cache/@smithy-util-retry-npm-4.0.4-8cb74135af-ef4dd318ec.zip/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
4504
+ // ../../.yarn/cache/@smithy-util-retry-npm-4.2.5-d589822ced-3b330df346.zip/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js
2777
4505
  var StandardRetryStrategy = class {
4506
+ maxAttempts;
4507
+ mode = RETRY_MODES.STANDARD;
4508
+ capacity = INITIAL_RETRY_TOKENS;
4509
+ retryBackoffStrategy = getDefaultRetryBackoffStrategy();
4510
+ maxAttemptsProvider;
2778
4511
  constructor(maxAttempts) {
2779
4512
  this.maxAttempts = maxAttempts;
2780
- this.mode = RETRY_MODES.STANDARD;
2781
- this.capacity = INITIAL_RETRY_TOKENS;
2782
- this.retryBackoffStrategy = getDefaultRetryBackoffStrategy();
2783
4513
  this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts;
2784
4514
  }
2785
4515
  async acquireInitialRetryToken(retryTokenScope) {
@@ -2831,11 +4561,14 @@ var StandardRetryStrategy = class {
2831
4561
  }
2832
4562
  };
2833
4563
 
2834
- // ../../.yarn/cache/@smithy-util-retry-npm-4.0.4-8cb74135af-ef4dd318ec.zip/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
4564
+ // ../../.yarn/cache/@smithy-util-retry-npm-4.2.5-d589822ced-3b330df346.zip/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js
2835
4565
  var AdaptiveRetryStrategy = class {
4566
+ maxAttemptsProvider;
4567
+ rateLimiter;
4568
+ standardRetryStrategy;
4569
+ mode = RETRY_MODES.ADAPTIVE;
2836
4570
  constructor(maxAttemptsProvider, options) {
2837
4571
  this.maxAttemptsProvider = maxAttemptsProvider;
2838
- this.mode = RETRY_MODES.ADAPTIVE;
2839
4572
  const { rateLimiter } = options ?? {};
2840
4573
  this.rateLimiter = rateLimiter ?? new DefaultRateLimiter();
2841
4574
  this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider);
@@ -2854,7 +4587,7 @@ var AdaptiveRetryStrategy = class {
2854
4587
  }
2855
4588
  };
2856
4589
 
2857
- // ../../.yarn/cache/@smithy-middleware-retry-npm-4.1.8-d97de21375-bed41045a3.zip/node_modules/@smithy/middleware-retry/dist-es/configurations.js
4590
+ // ../../.yarn/cache/@smithy-middleware-retry-npm-4.4.12-84978bdff8-3c958a58c6.zip/node_modules/@smithy/middleware-retry/dist-es/configurations.js
2858
4591
  var ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
2859
4592
  var CONFIG_MAX_ATTEMPTS = "max_attempts";
2860
4593
  var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
@@ -2905,58 +4638,11 @@ var NODE_RETRY_MODE_CONFIG_OPTIONS = {
2905
4638
  default: DEFAULT_RETRY_MODE
2906
4639
  };
2907
4640
 
2908
- // ../../.yarn/cache/uuid-npm-9.0.1-39a8442bc6-1607dd32ac.zip/node_modules/uuid/dist/esm-node/rng.js
2909
- import crypto from "crypto";
2910
- var rnds8Pool = new Uint8Array(256);
2911
- var poolPtr = rnds8Pool.length;
2912
- function rng() {
2913
- if (poolPtr > rnds8Pool.length - 16) {
2914
- crypto.randomFillSync(rnds8Pool);
2915
- poolPtr = 0;
2916
- }
2917
- return rnds8Pool.slice(poolPtr, poolPtr += 16);
2918
- }
2919
-
2920
- // ../../.yarn/cache/uuid-npm-9.0.1-39a8442bc6-1607dd32ac.zip/node_modules/uuid/dist/esm-node/stringify.js
2921
- var byteToHex = [];
2922
- for (let i = 0; i < 256; ++i) {
2923
- byteToHex.push((i + 256).toString(16).slice(1));
2924
- }
2925
- function unsafeStringify(arr, offset = 0) {
2926
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
2927
- }
2928
-
2929
- // ../../.yarn/cache/uuid-npm-9.0.1-39a8442bc6-1607dd32ac.zip/node_modules/uuid/dist/esm-node/native.js
2930
- import crypto2 from "crypto";
2931
- var native_default = {
2932
- randomUUID: crypto2.randomUUID
2933
- };
2934
-
2935
- // ../../.yarn/cache/uuid-npm-9.0.1-39a8442bc6-1607dd32ac.zip/node_modules/uuid/dist/esm-node/v4.js
2936
- function v4(options, buf, offset) {
2937
- if (native_default.randomUUID && !buf && !options) {
2938
- return native_default.randomUUID();
2939
- }
2940
- options = options || {};
2941
- const rnds = options.random || (options.rng || rng)();
2942
- rnds[6] = rnds[6] & 15 | 64;
2943
- rnds[8] = rnds[8] & 63 | 128;
2944
- if (buf) {
2945
- offset = offset || 0;
2946
- for (let i = 0; i < 16; ++i) {
2947
- buf[offset + i] = rnds[i];
2948
- }
2949
- return buf;
2950
- }
2951
- return unsafeStringify(rnds);
2952
- }
2953
- var v4_default = v4;
2954
-
2955
- // ../../.yarn/cache/@smithy-middleware-retry-npm-4.1.8-d97de21375-bed41045a3.zip/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
4641
+ // ../../.yarn/cache/@smithy-middleware-retry-npm-4.4.12-84978bdff8-3c958a58c6.zip/node_modules/@smithy/middleware-retry/dist-es/isStreamingPayload/isStreamingPayload.js
2956
4642
  import { Readable } from "stream";
2957
4643
  var isStreamingPayload = (request) => request?.body instanceof Readable || typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream;
2958
4644
 
2959
- // ../../.yarn/cache/@smithy-middleware-retry-npm-4.1.8-d97de21375-bed41045a3.zip/node_modules/@smithy/middleware-retry/dist-es/util.js
4645
+ // ../../.yarn/cache/@smithy-middleware-retry-npm-4.4.12-84978bdff8-3c958a58c6.zip/node_modules/@smithy/middleware-retry/dist-es/util.js
2960
4646
  var asSdkError = (error) => {
2961
4647
  if (error instanceof Error)
2962
4648
  return error;
@@ -2967,7 +4653,7 @@ var asSdkError = (error) => {
2967
4653
  return new Error(`AWS SDK error wrapper for ${error}`);
2968
4654
  };
2969
4655
 
2970
- // ../../.yarn/cache/@smithy-middleware-retry-npm-4.1.8-d97de21375-bed41045a3.zip/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
4656
+ // ../../.yarn/cache/@smithy-middleware-retry-npm-4.4.12-84978bdff8-3c958a58c6.zip/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
2971
4657
  var retryMiddleware = (options) => (next, context) => async (args) => {
2972
4658
  let retryStrategy = await options.retryStrategy();
2973
4659
  const maxAttempts = await options.maxAttempts();
@@ -2980,7 +4666,7 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
2980
4666
  const { request } = args;
2981
4667
  const isRequest = HttpRequest.isInstance(request);
2982
4668
  if (isRequest) {
2983
- request.headers[INVOCATION_ID_HEADER] = v4_default();
4669
+ request.headers[INVOCATION_ID_HEADER] = v4();
2984
4670
  }
2985
4671
  while (true) {
2986
4672
  try {
@@ -3069,16 +4755,66 @@ var getRetryAfterHint = (response) => {
3069
4755
  return retryAfterDate;
3070
4756
  };
3071
4757
 
3072
- // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-d7c5be5d47/0/cache/@aws-sdk-util-user-agent-node-npm-3.816.0-fd0f8bc4b3-199f89c9de.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
4758
+ // ../../.yarn/cache/@smithy-util-config-provider-npm-4.2.0-2db64d7c7a-0699b9980e.zip/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js
4759
+ var booleanSelector = (obj, key, type) => {
4760
+ if (!(key in obj))
4761
+ return void 0;
4762
+ if (obj[key] === "true")
4763
+ return true;
4764
+ if (obj[key] === "false")
4765
+ return false;
4766
+ throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
4767
+ };
4768
+
4769
+ // ../../.yarn/cache/@smithy-util-config-provider-npm-4.2.0-2db64d7c7a-0699b9980e.zip/node_modules/@smithy/util-config-provider/dist-es/types.js
4770
+ var SelectorType;
4771
+ (function(SelectorType2) {
4772
+ SelectorType2["ENV"] = "env";
4773
+ SelectorType2["CONFIG"] = "shared config entry";
4774
+ })(SelectorType || (SelectorType = {}));
4775
+
4776
+ // ../../.yarn/cache/@smithy-config-resolver-npm-4.4.3-995b58e856-e28844ea32.zip/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
4777
+ var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
4778
+ var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
4779
+ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
4780
+ environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV),
4781
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG),
4782
+ default: false
4783
+ };
4784
+
4785
+ // ../../.yarn/cache/@smithy-config-resolver-npm-4.4.3-995b58e856-e28844ea32.zip/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
4786
+ var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
4787
+ var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
4788
+ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
4789
+ environmentVariableSelector: (env2) => booleanSelector(env2, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV),
4790
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
4791
+ default: false
4792
+ };
4793
+
4794
+ // ../../.yarn/cache/@smithy-config-resolver-npm-4.4.3-995b58e856-e28844ea32.zip/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
4795
+ var REGION_ENV_NAME = "AWS_REGION";
4796
+ var REGION_INI_NAME = "region";
4797
+ var NODE_REGION_CONFIG_OPTIONS = {
4798
+ environmentVariableSelector: (env2) => env2[REGION_ENV_NAME],
4799
+ configFileSelector: (profile) => profile[REGION_INI_NAME],
4800
+ default: () => {
4801
+ throw new Error("Region is missing");
4802
+ }
4803
+ };
4804
+ var NODE_REGION_CONFIG_FILE_OPTIONS = {
4805
+ preferredFile: "credentials"
4806
+ };
4807
+
4808
+ // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-53d8ac5a0c/0/cache/@aws-sdk-util-user-agent-node-npm-3.940.0-1053e573db-0287c87d3e.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
3073
4809
  import { platform, release } from "os";
3074
4810
  import { env, versions } from "process";
3075
4811
 
3076
- // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-d7c5be5d47/0/cache/@aws-sdk-util-user-agent-node-npm-3.816.0-fd0f8bc4b3-199f89c9de.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js
4812
+ // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-53d8ac5a0c/0/cache/@aws-sdk-util-user-agent-node-npm-3.940.0-1053e573db-0287c87d3e.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js
3077
4813
  var crtAvailability = {
3078
4814
  isCrtAvailable: false
3079
4815
  };
3080
4816
 
3081
- // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-d7c5be5d47/0/cache/@aws-sdk-util-user-agent-node-npm-3.816.0-fd0f8bc4b3-199f89c9de.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
4817
+ // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-53d8ac5a0c/0/cache/@aws-sdk-util-user-agent-node-npm-3.940.0-1053e573db-0287c87d3e.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js
3082
4818
  var isCrtAvailable = () => {
3083
4819
  if (crtAvailability.isCrtAvailable) {
3084
4820
  return ["md/crt-avail"];
@@ -3086,7 +4822,7 @@ var isCrtAvailable = () => {
3086
4822
  return null;
3087
4823
  };
3088
4824
 
3089
- // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-d7c5be5d47/0/cache/@aws-sdk-util-user-agent-node-npm-3.816.0-fd0f8bc4b3-199f89c9de.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
4825
+ // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-53d8ac5a0c/0/cache/@aws-sdk-util-user-agent-node-npm-3.940.0-1053e573db-0287c87d3e.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
3090
4826
  var createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
3091
4827
  return async (config) => {
3092
4828
  const sections = [
@@ -3112,7 +4848,7 @@ var createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
3112
4848
  };
3113
4849
  };
3114
4850
 
3115
- // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-d7c5be5d47/0/cache/@aws-sdk-util-user-agent-node-npm-3.816.0-fd0f8bc4b3-199f89c9de.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
4851
+ // ../../.yarn/__virtual__/@aws-sdk-util-user-agent-node-virtual-53d8ac5a0c/0/cache/@aws-sdk-util-user-agent-node-npm-3.940.0-1053e573db-0287c87d3e.zip/node_modules/@aws-sdk/util-user-agent-node/dist-es/nodeAppIdConfigOptions.js
3116
4852
  var UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID";
3117
4853
  var UA_APP_ID_INI_NAME = "sdk_ua_app_id";
3118
4854
  var UA_APP_ID_INI_NAME_DEPRECATED = "sdk-ua-app-id";
@@ -3122,10 +4858,13 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
3122
4858
  default: DEFAULT_UA_APP_ID
3123
4859
  };
3124
4860
 
3125
- // ../../.yarn/cache/@smithy-hash-node-npm-4.0.3-ac40e4abd9-ce48452828.zip/node_modules/@smithy/hash-node/dist-es/index.js
4861
+ // ../../.yarn/cache/@smithy-hash-node-npm-4.2.5-b32ea95a0a-e0c24b8b93.zip/node_modules/@smithy/hash-node/dist-es/index.js
3126
4862
  import { Buffer as Buffer2 } from "buffer";
3127
4863
  import { createHash, createHmac } from "crypto";
3128
4864
  var Hash = class {
4865
+ algorithmIdentifier;
4866
+ secret;
4867
+ hash;
3129
4868
  constructor(algorithmIdentifier, secret) {
3130
4869
  this.algorithmIdentifier = algorithmIdentifier;
3131
4870
  this.secret = secret;
@@ -3154,8 +4893,8 @@ function castSourceData(toCast, encoding) {
3154
4893
  return fromArrayBuffer(toCast);
3155
4894
  }
3156
4895
 
3157
- // ../../.yarn/cache/@smithy-util-body-length-node-npm-4.0.0-a7afbc8cd6-e91fd38167.zip/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js
3158
- import { fstatSync, lstatSync } from "fs";
4896
+ // ../../.yarn/cache/@smithy-util-body-length-node-npm-4.2.1-c885ec7ad4-3c32306735.zip/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js
4897
+ import { fstatSync, lstatSync, ReadStream } from "fs";
3159
4898
  var calculateBodyLength = (body) => {
3160
4899
  if (!body) {
3161
4900
  return 0;
@@ -3168,15 +4907,17 @@ var calculateBodyLength = (body) => {
3168
4907
  return body.size;
3169
4908
  } else if (typeof body.start === "number" && typeof body.end === "number") {
3170
4909
  return body.end + 1 - body.start;
3171
- } else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) {
3172
- return lstatSync(body.path).size;
3173
- } else if (typeof body.fd === "number") {
3174
- return fstatSync(body.fd).size;
4910
+ } else if (body instanceof ReadStream) {
4911
+ if (body.path != null) {
4912
+ return lstatSync(body.path).size;
4913
+ } else if (typeof body.fd === "number") {
4914
+ return fstatSync(body.fd).size;
4915
+ }
3175
4916
  }
3176
4917
  throw new Error(`Body Length computation failed for ${body}`);
3177
4918
  };
3178
4919
 
3179
- // ../../.yarn/cache/@smithy-util-defaults-mode-node-npm-4.0.15-b4c74611bb-c20fa407b1.zip/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
4920
+ // ../../.yarn/cache/@smithy-util-defaults-mode-node-npm-4.2.14-97d242f937-965860eddf.zip/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
3180
4921
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
3181
4922
  var AWS_REGION_ENV = "AWS_REGION";
3182
4923
  var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
@@ -3184,7 +4925,7 @@ var ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
3184
4925
  var DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"];
3185
4926
  var IMDS_REGION_PATH = "/latest/meta-data/placement/region";
3186
4927
 
3187
- // ../../.yarn/cache/@smithy-util-defaults-mode-node-npm-4.0.15-b4c74611bb-c20fa407b1.zip/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js
4928
+ // ../../.yarn/cache/@smithy-util-defaults-mode-node-npm-4.2.14-97d242f937-965860eddf.zip/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js
3188
4929
  var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
3189
4930
  var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
3190
4931
  var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
@@ -3197,7 +4938,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
3197
4938
  default: "legacy"
3198
4939
  };
3199
4940
 
3200
- // ../../.yarn/cache/@smithy-util-defaults-mode-node-npm-4.0.15-b4c74611bb-c20fa407b1.zip/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
4941
+ // ../../.yarn/cache/@smithy-util-defaults-mode-node-npm-4.2.14-97d242f937-965860eddf.zip/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
3201
4942
  var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
3202
4943
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
3203
4944
  switch (mode?.toLowerCase()) {
@@ -3236,7 +4977,7 @@ var inferPhysicalRegion = async () => {
3236
4977
  }
3237
4978
  if (!process.env[ENV_IMDS_DISABLED]) {
3238
4979
  try {
3239
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-GHYMLBON.js");
4980
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./dist-es-HSWXMGNC.js");
3240
4981
  const endpoint = await getInstanceMetadataEndpoint();
3241
4982
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
3242
4983
  } catch (e) {
@@ -3244,7 +4985,7 @@ var inferPhysicalRegion = async () => {
3244
4985
  }
3245
4986
  };
3246
4987
 
3247
- // ../../.yarn/cache/@aws-sdk-region-config-resolver-npm-3.808.0-fa9d95c7c8-3e21dcf467.zip/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
4988
+ // ../../.yarn/cache/@aws-sdk-region-config-resolver-npm-3.936.0-ac429a151d-67ecf8f357.zip/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js
3248
4989
  var getAwsRegionExtensionConfiguration = (runtimeConfig) => {
3249
4990
  return {
3250
4991
  setRegion(region) {
@@ -3262,6 +5003,8 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
3262
5003
  };
3263
5004
 
3264
5005
  export {
5006
+ getHttpHandlerExtensionConfiguration,
5007
+ resolveHttpHandlerRuntimeConfig,
3265
5008
  resolveHostHeaderConfig,
3266
5009
  getHostHeaderPlugin,
3267
5010
  getLoggerPlugin,
@@ -3269,10 +5012,23 @@ export {
3269
5012
  getSmithyContext,
3270
5013
  normalizeProvider,
3271
5014
  getHttpAuthSchemeEndpointRuleSetPlugin,
3272
- getSerdePlugin,
3273
5015
  getHttpSigningPlugin,
5016
+ collectBody,
5017
+ extendedEncodeURIComponent,
5018
+ deref,
5019
+ getSchemaSerdePlugin,
5020
+ translateTraits,
5021
+ NormalizedSchema,
5022
+ TypeRegistry,
5023
+ v4,
5024
+ LazyJsonString,
5025
+ splitHeader,
5026
+ NumericValue,
5027
+ SerdeContext,
5028
+ HttpProtocol,
5029
+ determineTimestampFormat,
5030
+ FromStringShapeDeserializer,
3274
5031
  DefaultIdentityProviderConfig,
3275
- NoAuthSigner,
3276
5032
  resolveUserAgentConfig,
3277
5033
  EndpointCache,
3278
5034
  customEndpointFunctions,
@@ -3282,7 +5038,18 @@ export {
3282
5038
  AwsSdkSigV4Signer,
3283
5039
  NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,
3284
5040
  resolveAwsSdkSigV4Config,
3285
- collectBodyString,
5041
+ Client,
5042
+ Command,
5043
+ ServiceException,
5044
+ loadConfigsForDefaultMode,
5045
+ emitWarningIfUnsupportedVersion2,
5046
+ getDefaultExtensionConfiguration,
5047
+ resolveDefaultRuntimeConfig,
5048
+ NoOpLogger,
5049
+ ProtocolLib,
5050
+ SerdeContextConfig,
5051
+ serializingStructIterator,
5052
+ deserializingStructIterator,
3286
5053
  getUserAgentPlugin,
3287
5054
  NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
3288
5055
  NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,