gemi 0.4.69 → 0.4.71

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 (763) hide show
  1. package/dist/{chunk-f5a531a49e7591bd.js → chunk-2895a97b65e7107b.js} +1 -1
  2. package/dist/{chunk-8884e59809021f5f.js → chunk-2dd61d279d9f0b13.js} +1 -1
  3. package/dist/{chunk-100b76ab0ca3e14d.js → chunk-448c9eceacddef90.js} +1 -1
  4. package/dist/{chunk-a4b231bf6d911e01.js → chunk-466213c5585251ad.js} +1 -1
  5. package/dist/{chunk-edfc3362e0d21dab.js → chunk-4b8da0fabb3539db.js} +5 -5
  6. package/dist/{chunk-1bd88dc9c4475e1d.js → chunk-4bc3b71775040cb9.js} +1 -1
  7. package/dist/{chunk-00935722c776a294.js → chunk-af7d1951242b1c6e.js} +1 -1
  8. package/dist/{chunk-1d2c062034e3ed2d.js → chunk-b6a64bf9af2e91be.js} +2 -2
  9. package/dist/{chunk-a35eb04f0c7c9944.js → chunk-b8176bf532f59485.js} +1 -1
  10. package/dist/{chunk-545989119755857f.js → chunk-cca33e85bf87b3b3.js} +1 -1
  11. package/dist/{chunk-a1efc60864e65ef2.js → chunk-de75d134f236f4bb.js} +1 -1
  12. package/dist/{chunk-107dbe753ed86605.js → chunk-e344c95f8ae7a124.js} +2 -2
  13. package/dist/{chunk-f5200f44395bf49d.js → chunk-e565da7343a33b65.js} +2 -2
  14. package/dist/{chunk-3330ff12936f5a2e.js → chunk-e912bf7c7a0e988a.js} +1 -1
  15. package/dist/{chunk-210fc3731e7d2299.js → chunk-f22ac1ec6c3f782b.js} +1 -1
  16. package/dist/{chunk-1b3b7c2c9ae041ca.js → chunk-fe65548818651cb5.js} +1 -1
  17. package/dist/client/ClientRouterContext.d.ts.map +1 -1
  18. package/dist/client/HttpReload.d.ts.map +1 -1
  19. package/dist/client/index.js +19 -5
  20. package/dist/server/index.js +1 -1
  21. package/dist/storage/index.js +1 -1
  22. package/dist/vite/{index-D9QWnghl.mjs → index-BbySvAwL.mjs} +3 -3
  23. package/dist/vite/index.mjs +1 -1
  24. package/dist/vite/{typescript-DADBvwYC.mjs → typescript-CeZcXBr-.mjs} +1 -1
  25. package/package.json +1 -1
  26. package/dist/app/App.test.d.ts +0 -20
  27. package/dist/app/App.test.d.ts.map +0 -1
  28. package/dist/app/createComponentTree.test.d.ts +0 -2
  29. package/dist/app/createComponentTree.test.d.ts.map +0 -1
  30. package/dist/app/createFlatApiRoutes.test.d.ts +0 -2
  31. package/dist/app/createFlatApiRoutes.test.d.ts.map +0 -1
  32. package/dist/app/createFlatViewRoutes.test.d.ts +0 -2
  33. package/dist/app/createFlatViewRoutes.test.d.ts.map +0 -1
  34. package/dist/app/createRouteManifest.test.d.ts +0 -2
  35. package/dist/app/createRouteManifest.test.d.ts.map +0 -1
  36. package/dist/chunk-00234eac874c2722.js +0 -2
  37. package/dist/chunk-00cb9f80352454dd.js +0 -1
  38. package/dist/chunk-00e9dad0734d9761.js +0 -2
  39. package/dist/chunk-00ecc27f03e2e84a.js +0 -2
  40. package/dist/chunk-00f16704831dd8b0.js +0 -2
  41. package/dist/chunk-01052ff9d1c07ef8.js +0 -2
  42. package/dist/chunk-0113570164c56f57.js +0 -2
  43. package/dist/chunk-0130e95410edb036.js +0 -18
  44. package/dist/chunk-01e07763e3e32710.js +0 -2
  45. package/dist/chunk-01e1579811beb424.js +0 -2
  46. package/dist/chunk-01ffccc19e8ef862.js +0 -3
  47. package/dist/chunk-02118fc60206588d.js +0 -2
  48. package/dist/chunk-0306d8fccec5104e.js +0 -2
  49. package/dist/chunk-030b4fb955329860.js +0 -16
  50. package/dist/chunk-03227f4a68e038f4.js +0 -2
  51. package/dist/chunk-03a72299591d45a7.js +0 -18
  52. package/dist/chunk-03c8e645c994d40a.js +0 -2
  53. package/dist/chunk-04aa62521338e3ab.js +0 -18
  54. package/dist/chunk-04d6b88ed6d3f076.js +0 -6
  55. package/dist/chunk-0557700bf68e85d4.js +0 -18
  56. package/dist/chunk-05fa767ab29abb0f.js +0 -2
  57. package/dist/chunk-061d95b15c00e38b.js +0 -9
  58. package/dist/chunk-069fcad61c8841dc.js +0 -1
  59. package/dist/chunk-06b83143607ebdc8.js +0 -6
  60. package/dist/chunk-06eebef7eb056baa.js +0 -2
  61. package/dist/chunk-073f5b81e98d91fe.js +0 -3
  62. package/dist/chunk-08539d08fa7362f7.js +0 -2
  63. package/dist/chunk-088b47e135832170.js +0 -1
  64. package/dist/chunk-088ed28ebed2b009.js +0 -5
  65. package/dist/chunk-08e9ab1091d7383e.js +0 -3
  66. package/dist/chunk-0909c7f6b64b8806.js +0 -2
  67. package/dist/chunk-095848ccb81718bf.js +0 -2
  68. package/dist/chunk-09dd89e1046786a5.js +0 -2
  69. package/dist/chunk-0a6614fbd65524af.js +0 -2
  70. package/dist/chunk-0a9ae42aae6f406e.js +0 -2
  71. package/dist/chunk-0b1b4e4e251ffe01.js +0 -2
  72. package/dist/chunk-0b46ec66d2c3d5f3.js +0 -2
  73. package/dist/chunk-0b5fb4e0c7de8316.js +0 -2
  74. package/dist/chunk-0b7a7410fce0b12e.js +0 -9
  75. package/dist/chunk-0b8dc3d1ff94a0fa.js +0 -6
  76. package/dist/chunk-0b99ba34351bde91.js +0 -3
  77. package/dist/chunk-0d0f764773c0f6b8.js +0 -2
  78. package/dist/chunk-0d8ab901365b9696.js +0 -2
  79. package/dist/chunk-0db33ac43bd1d504.js +0 -2
  80. package/dist/chunk-0de36a7e51fbd11b.js +0 -9
  81. package/dist/chunk-0e125593337a68aa.js +0 -18
  82. package/dist/chunk-0e3473f7e43f4876.js +0 -2
  83. package/dist/chunk-0e99fe5c976c8ea2.js +0 -6
  84. package/dist/chunk-0f8e80862546cbc5.js +0 -18
  85. package/dist/chunk-0ffc38ed09847e35.js +0 -2
  86. package/dist/chunk-1062b3156a49fabc.js +0 -2
  87. package/dist/chunk-1084614a350762fb.js +0 -2
  88. package/dist/chunk-10a623a23a65bb20.js +0 -18
  89. package/dist/chunk-1109657ed53fbdc9.js +0 -2
  90. package/dist/chunk-11323d7a5d9219ce.js +0 -2
  91. package/dist/chunk-1171d9afbbfe827b.js +0 -2
  92. package/dist/chunk-119ffcaf1c463b8d.js +0 -6
  93. package/dist/chunk-11a75566ff74db17.js +0 -6
  94. package/dist/chunk-11d1336f6de61f45.js +0 -16
  95. package/dist/chunk-11fb7f7f30378785.js +0 -2
  96. package/dist/chunk-12b4f44a2beae19b.js +0 -2
  97. package/dist/chunk-12ca7224eb6ccf72.js +0 -9
  98. package/dist/chunk-132c71db605759c9.js +0 -2
  99. package/dist/chunk-1334ee957ff9058c.js +0 -2
  100. package/dist/chunk-136896e8038083a1.js +0 -2
  101. package/dist/chunk-13801a8f811f0461.js +0 -2
  102. package/dist/chunk-13e45ce3460f6375.js +0 -2
  103. package/dist/chunk-14d5491e97673c7d.js +0 -2
  104. package/dist/chunk-14e60554a2e78f4a.js +0 -2
  105. package/dist/chunk-159f5b922269aef1.js +0 -2
  106. package/dist/chunk-15e9771e524c5726.js +0 -2
  107. package/dist/chunk-16a63b2fee0ce9e2.js +0 -2
  108. package/dist/chunk-16dbe3a15379140b.js +0 -2
  109. package/dist/chunk-176e5ded5ed33d4d.js +0 -2
  110. package/dist/chunk-1838696dc4e7a115.js +0 -2
  111. package/dist/chunk-1874b66d572fb0db.js +0 -6
  112. package/dist/chunk-1875b98b6a064557.js +0 -2
  113. package/dist/chunk-187a09f46e2b36e5.js +0 -2
  114. package/dist/chunk-18c32b54097c580e.js +0 -2
  115. package/dist/chunk-18d87123ae525263.js +0 -2
  116. package/dist/chunk-1900e90c372bb1d6.js +0 -2
  117. package/dist/chunk-1976eef63d2e56d5.js +0 -18
  118. package/dist/chunk-197fca66ec324ed9.js +0 -2
  119. package/dist/chunk-1ad1795e55abfdb5.js +0 -2
  120. package/dist/chunk-1b0afbf1baeeaa37.js +0 -2
  121. package/dist/chunk-1b71d04a15bfa432.js +0 -2
  122. package/dist/chunk-1b8acf308a3dc9ec.js +0 -1
  123. package/dist/chunk-1c439804a4c5f8e7.js +0 -18
  124. package/dist/chunk-1cc0d1072ee4a92b.js +0 -2
  125. package/dist/chunk-1d6e287ca9c14fef.js +0 -9
  126. package/dist/chunk-1efe790f8b4ad86d.js +0 -2
  127. package/dist/chunk-1fab30ab853c48cc.js +0 -2
  128. package/dist/chunk-2081b862587086df.js +0 -2
  129. package/dist/chunk-216cc6dcf17534ba.js +0 -2
  130. package/dist/chunk-21b1f7ac5f75cd26.js +0 -2
  131. package/dist/chunk-21e105fb2b3d36d7.js +0 -799
  132. package/dist/chunk-21fe96d1a3bb5a27.js +0 -2
  133. package/dist/chunk-223b0aac9e62386a.js +0 -2
  134. package/dist/chunk-226243dd851d2050.js +0 -2
  135. package/dist/chunk-22773aec8cc230c6.js +0 -6
  136. package/dist/chunk-2279c382943fca51.js +0 -2
  137. package/dist/chunk-22ec1973752a5488.js +0 -2
  138. package/dist/chunk-2335866508ec8b1b.js +0 -2
  139. package/dist/chunk-23c287376e277e1d.js +0 -6
  140. package/dist/chunk-241584e48397dda8.js +0 -2
  141. package/dist/chunk-24e01cba9fc81ed1.js +0 -2
  142. package/dist/chunk-25dd80c6d9144f89.js +0 -2
  143. package/dist/chunk-2665dffd37ead1d9.js +0 -2
  144. package/dist/chunk-2672477bf396bad8.js +0 -2
  145. package/dist/chunk-269dd2cd89aa1c32.js +0 -2
  146. package/dist/chunk-26a5c9db5d17f5e7.js +0 -3
  147. package/dist/chunk-26d58ddc3a89234f.js +0 -2
  148. package/dist/chunk-27484e5ca3244aea.js +0 -6
  149. package/dist/chunk-281226b6c79ebf8b.js +0 -2
  150. package/dist/chunk-285299d784985340.js +0 -3
  151. package/dist/chunk-28bb1e70f39736ee.js +0 -2
  152. package/dist/chunk-28e02c9b9c46a167.js +0 -2
  153. package/dist/chunk-293d8be91a9ad4f9.js +0 -2
  154. package/dist/chunk-29a0dbe3c8eb87d4.js +0 -6
  155. package/dist/chunk-29bc27c5e126c304.js +0 -18
  156. package/dist/chunk-29c46abebbc0f09b.js +0 -2
  157. package/dist/chunk-2a0d1475ac05027d.js +0 -2
  158. package/dist/chunk-2a0e8565f874d787.js +0 -18
  159. package/dist/chunk-2a101fb25d52469b.js +0 -2
  160. package/dist/chunk-2a328e3beda74e4f.js +0 -2
  161. package/dist/chunk-2a48e0098ccd4249.js +0 -2
  162. package/dist/chunk-2a5b4dfab2e26e21.js +0 -1
  163. package/dist/chunk-2b2764983015552e.js +0 -2
  164. package/dist/chunk-2b3eabd01b2ae3f8.js +0 -2
  165. package/dist/chunk-2bfbc777c6995d9a.js +0 -18
  166. package/dist/chunk-2cf271e24c26b0ee.js +0 -2
  167. package/dist/chunk-2db6c9bb69bb27aa.js +0 -1
  168. package/dist/chunk-2e34b856e195c353.js +0 -2
  169. package/dist/chunk-2e447b50094b2862.js +0 -2
  170. package/dist/chunk-2ec287222364c6b6.js +0 -2
  171. package/dist/chunk-2ecc077efab285b4.js +0 -2
  172. package/dist/chunk-2f6867d08b95f2d2.js +0 -2
  173. package/dist/chunk-2f7091b9e4f728c7.js +0 -2
  174. package/dist/chunk-2f7aac67f16768a5.js +0 -1
  175. package/dist/chunk-3042abeb18cf180e.js +0 -2
  176. package/dist/chunk-30622b4547786346.js +0 -2
  177. package/dist/chunk-30f854fb2ba73268.js +0 -2
  178. package/dist/chunk-322e991c2b56a79d.js +0 -2
  179. package/dist/chunk-3258ba57992f25bb.js +0 -6
  180. package/dist/chunk-328c98321c6ba3d6.js +0 -2
  181. package/dist/chunk-32af3a3a1c95157f.js +0 -2
  182. package/dist/chunk-32f06f9ad00aaabd.js +0 -2
  183. package/dist/chunk-32f3d5e11b4bc87d.js +0 -2
  184. package/dist/chunk-339dd63e93f196b7.js +0 -16
  185. package/dist/chunk-345f66382cf35683.js +0 -2
  186. package/dist/chunk-34786cd9bc9be20b.js +0 -18
  187. package/dist/chunk-3567e8e424a60c99.js +0 -18
  188. package/dist/chunk-35ab4be8ca6c67ee.js +0 -2
  189. package/dist/chunk-361f806684fe532e.js +0 -6
  190. package/dist/chunk-36ab979dae2a2094.js +0 -2
  191. package/dist/chunk-36b8e37ca93fcc67.js +0 -2
  192. package/dist/chunk-370389a68668658a.js +0 -2
  193. package/dist/chunk-3728fa21e6931333.js +0 -2
  194. package/dist/chunk-378a050132886d17.js +0 -2
  195. package/dist/chunk-38237d1b01b0db25.js +0 -3
  196. package/dist/chunk-382a513747a9aa52.js +0 -6
  197. package/dist/chunk-38fc9d258dbe62fd.js +0 -18
  198. package/dist/chunk-3a3092db69408490.js +0 -2
  199. package/dist/chunk-3a9fcddbd219223b.js +0 -3
  200. package/dist/chunk-3ab807ceccde81f3.js +0 -3
  201. package/dist/chunk-3abb49bba3da7231.js +0 -1
  202. package/dist/chunk-3aecba8553e036bf.js +0 -6
  203. package/dist/chunk-3afa6cad1106f55a.js +0 -2
  204. package/dist/chunk-3b235fc8816ff5e6.js +0 -2
  205. package/dist/chunk-3b6df70b3d01d442.js +0 -3
  206. package/dist/chunk-3bd48fb5397a155b.js +0 -5
  207. package/dist/chunk-3bedef94ef8dba4a.js +0 -2
  208. package/dist/chunk-3bf6f8c8e8589e3d.js +0 -2
  209. package/dist/chunk-3c83d6762f7e56b3.js +0 -2
  210. package/dist/chunk-3cbc1c9cdc091b43.js +0 -2
  211. package/dist/chunk-3d7556bb2f665f61.js +0 -2
  212. package/dist/chunk-3dbf073642b377eb.js +0 -1
  213. package/dist/chunk-3e3078cae755e834.js +0 -2
  214. package/dist/chunk-3f1eaa4b49aa9a15.js +0 -3
  215. package/dist/chunk-40111275eef9f7b3.js +0 -6
  216. package/dist/chunk-408fb31b8b0f97ee.js +0 -2
  217. package/dist/chunk-40942fb138dcd780.js +0 -9
  218. package/dist/chunk-40c21fe243675250.js +0 -2
  219. package/dist/chunk-40f4bfe67d75f2ec.js +0 -6
  220. package/dist/chunk-412ad792487747bc.js +0 -2
  221. package/dist/chunk-415d564ff61a8fe6.js +0 -2
  222. package/dist/chunk-42097f79deccd5b7.js +0 -2
  223. package/dist/chunk-4272071146eb5eb2.js +0 -1
  224. package/dist/chunk-42aa6e3d42149620.js +0 -2
  225. package/dist/chunk-432bbd1d38ff3b52.js +0 -2
  226. package/dist/chunk-437335670ad9059d.js +0 -2
  227. package/dist/chunk-442a5b1ec74c72f8.js +0 -2
  228. package/dist/chunk-4432f8d8567e682b.js +0 -9
  229. package/dist/chunk-4548da0edd8c39ed.js +0 -2
  230. package/dist/chunk-45badde289996d82.js +0 -9
  231. package/dist/chunk-464cce477d8a56e0.js +0 -2
  232. package/dist/chunk-46528bdbb2218772.js +0 -2
  233. package/dist/chunk-477a4d3115b9703e.js +0 -2
  234. package/dist/chunk-47c4cec992af0689.js +0 -2
  235. package/dist/chunk-487b7c0cb388d533.js +0 -6
  236. package/dist/chunk-488b4db0c522d44a.js +0 -1
  237. package/dist/chunk-489125d86cd75e69.js +0 -9
  238. package/dist/chunk-4960e27e19bbe42a.js +0 -2
  239. package/dist/chunk-4b201cccdf6d290f.js +0 -2
  240. package/dist/chunk-4b4ea80149bba4e6.js +0 -2
  241. package/dist/chunk-4bbeb47cc6137c49.js +0 -2
  242. package/dist/chunk-4cb19a9e82653084.js +0 -2
  243. package/dist/chunk-4cb5f3feff1a81c5.js +0 -2
  244. package/dist/chunk-4cc2463d985f6882.js +0 -9
  245. package/dist/chunk-4d19e16340534ed0.js +0 -2
  246. package/dist/chunk-4d46e390f99b97e0.js +0 -2
  247. package/dist/chunk-4d80485e7efb826f.js +0 -2
  248. package/dist/chunk-4e023976eb557258.js +0 -2
  249. package/dist/chunk-4e5485d3cfe9dc4e.js +0 -2
  250. package/dist/chunk-4e9167391dd0d15f.js +0 -2
  251. package/dist/chunk-4e9d5acfa5541d1b.js +0 -2
  252. package/dist/chunk-4eeee2f82b1fa8bb.js +0 -2
  253. package/dist/chunk-4f01c5a98726e704.js +0 -2
  254. package/dist/chunk-4f1b43f5232b3e65.js +0 -6
  255. package/dist/chunk-4f5b07a6a6fd5cc6.js +0 -2
  256. package/dist/chunk-4ffecff075e73d43.js +0 -2
  257. package/dist/chunk-50b440397d41ab5a.js +0 -2
  258. package/dist/chunk-50ea27a13eb62b5e.js +0 -2
  259. package/dist/chunk-5128de1a65ba6ce1.js +0 -2
  260. package/dist/chunk-514f8554fb446139.js +0 -9
  261. package/dist/chunk-515c26d532207095.js +0 -2
  262. package/dist/chunk-516c6b67d6e3d041.js +0 -18
  263. package/dist/chunk-5190b38f06507ee1.js +0 -18
  264. package/dist/chunk-51bad63147c3be4e.js +0 -6
  265. package/dist/chunk-51c21d2a3c45fbe1.js +0 -2
  266. package/dist/chunk-51e930ef29de215b.js +0 -1
  267. package/dist/chunk-51ee928673a12486.js +0 -2
  268. package/dist/chunk-521750cca5e03c65.js +0 -2
  269. package/dist/chunk-5290ecaf429d5a61.js +0 -2
  270. package/dist/chunk-52e76204b898931e.js +0 -18
  271. package/dist/chunk-53b7d6267c9172bc.js +0 -2
  272. package/dist/chunk-53c39aca36ece018.js +0 -2
  273. package/dist/chunk-543013123141745c.js +0 -2
  274. package/dist/chunk-54c03438ff1f41e5.js +0 -2
  275. package/dist/chunk-552bdaee8c03e091.js +0 -9
  276. package/dist/chunk-55f76d4f6116f296.js +0 -9
  277. package/dist/chunk-5656abf3151c8fa2.js +0 -2
  278. package/dist/chunk-56f6f8c2162dcf1c.js +0 -2
  279. package/dist/chunk-57a61e580c4adf80.js +0 -2
  280. package/dist/chunk-581e0d46235dbf7c.js +0 -2
  281. package/dist/chunk-584e33c96b1a78e4.js +0 -2
  282. package/dist/chunk-5852c4da08af607f.js +0 -2
  283. package/dist/chunk-589f4b330dd6d32e.js +0 -2
  284. package/dist/chunk-590bd43a75f48606.js +0 -18
  285. package/dist/chunk-590cd512f9e72880.js +0 -18
  286. package/dist/chunk-596024c880387c2f.js +0 -2
  287. package/dist/chunk-597d5c6772b14a85.js +0 -9
  288. package/dist/chunk-59980167a4c574b3.js +0 -2
  289. package/dist/chunk-59da8b8ab8add738.js +0 -16
  290. package/dist/chunk-59e951812cb019e6.js +0 -2
  291. package/dist/chunk-59fe590e19085858.js +0 -18
  292. package/dist/chunk-5a2d89fce13094a9.js +0 -2
  293. package/dist/chunk-5a66922d5981afc8.js +0 -18
  294. package/dist/chunk-5a75eae6c32c2ba3.js +0 -2
  295. package/dist/chunk-5a9fa677066f72ac.js +0 -2
  296. package/dist/chunk-5b54843712abde58.js +0 -2
  297. package/dist/chunk-5b836c769c5dad2a.js +0 -2
  298. package/dist/chunk-5c2a5156f6bef0f5.js +0 -2
  299. package/dist/chunk-5c3681fb029d7588.js +0 -1
  300. package/dist/chunk-5cd0a98345a5d57a.js +0 -2
  301. package/dist/chunk-5d3431e9686096af.js +0 -18
  302. package/dist/chunk-5d51afe60efaf99e.js +0 -2
  303. package/dist/chunk-5d86d49d66db1c22.js +0 -2
  304. package/dist/chunk-5defd55c3c97bdb2.js +0 -2
  305. package/dist/chunk-5e13846c554dc272.js +0 -2
  306. package/dist/chunk-5fb9d31b7b4629e9.js +0 -1
  307. package/dist/chunk-5fbde192153a2a50.js +0 -2
  308. package/dist/chunk-5fd67245740e3908.js +0 -9
  309. package/dist/chunk-6003411eae26f246.js +0 -3
  310. package/dist/chunk-60d70dcbf4e79276.js +0 -2
  311. package/dist/chunk-60f3b8242209ac3e.js +0 -18
  312. package/dist/chunk-61973614facb50a8.js +0 -2
  313. package/dist/chunk-61abf77c3eee8698.js +0 -2
  314. package/dist/chunk-61fc22887a7be6f9.js +0 -3
  315. package/dist/chunk-62144f9c5008bd47.js +0 -1
  316. package/dist/chunk-625025af819f55f5.js +0 -2
  317. package/dist/chunk-6259cd13f53334df.js +0 -2
  318. package/dist/chunk-62b2777c629d5157.js +0 -2
  319. package/dist/chunk-62c0f9a87ad8a46b.js +0 -2
  320. package/dist/chunk-634c80cac76d9080.js +0 -18
  321. package/dist/chunk-63ad0436d3d896b5.js +0 -3
  322. package/dist/chunk-63c5605bcce508ea.js +0 -1
  323. package/dist/chunk-640e4bdae1671873.js +0 -1
  324. package/dist/chunk-648dff766091372e.js +0 -2
  325. package/dist/chunk-64a5b833cef67725.js +0 -2
  326. package/dist/chunk-64c89cee4d4bd9a9.js +0 -2
  327. package/dist/chunk-65626c3d72d4e071.js +0 -2
  328. package/dist/chunk-65c413665a7cf876.js +0 -2
  329. package/dist/chunk-6605e290c4de1f0e.js +0 -6
  330. package/dist/chunk-66ab377654806d08.js +0 -2
  331. package/dist/chunk-670d2c924e80cb33.js +0 -3
  332. package/dist/chunk-67351e678a7ccc10.js +0 -2
  333. package/dist/chunk-6766e66417809e1a.js +0 -2
  334. package/dist/chunk-6821bb0ff6ed2452.js +0 -18
  335. package/dist/chunk-682b01231754a121.js +0 -2
  336. package/dist/chunk-68af0a6f6be163ce.js +0 -2
  337. package/dist/chunk-6921ba2fa2e1adea.js +0 -2
  338. package/dist/chunk-6943b50bd0a3ac84.js +0 -1
  339. package/dist/chunk-699957e6eb705a81.js +0 -2
  340. package/dist/chunk-69ff5047661fe699.js +0 -2
  341. package/dist/chunk-6a28d299b5726bba.js +0 -2
  342. package/dist/chunk-6ac91c66919b5ddd.js +0 -2
  343. package/dist/chunk-6afe097e13ebdf55.js +0 -2
  344. package/dist/chunk-6c345dba15e1c3f2.js +0 -2
  345. package/dist/chunk-6c461d293fa213f1.js +0 -2
  346. package/dist/chunk-6caabea5fcbc9cf7.js +0 -2
  347. package/dist/chunk-6d04c1ccb3ca8c74.js +0 -1
  348. package/dist/chunk-6e06660ab4e9d4da.js +0 -6
  349. package/dist/chunk-6e415d0e12fc9539.js +0 -1
  350. package/dist/chunk-6f78f2a54491595d.js +0 -2
  351. package/dist/chunk-700835a3a709b370.js +0 -2
  352. package/dist/chunk-70bb003c03f21dad.js +0 -2
  353. package/dist/chunk-711f86b9d50d45fe.js +0 -18
  354. package/dist/chunk-71820a3186a38543.js +0 -6
  355. package/dist/chunk-7195a8718fcd8215.js +0 -1
  356. package/dist/chunk-722f2aeae58daaa3.js +0 -18
  357. package/dist/chunk-72821f055108528e.js +0 -2
  358. package/dist/chunk-72add10919c9d7ae.js +0 -2
  359. package/dist/chunk-731f30522682483a.js +0 -2
  360. package/dist/chunk-733513f9c9e8b50f.js +0 -2
  361. package/dist/chunk-733688c7851fffd1.js +0 -2
  362. package/dist/chunk-7336bd3f3b799e3e.js +0 -1
  363. package/dist/chunk-7399f06d840a1449.js +0 -2
  364. package/dist/chunk-73c97da8ac4f1d30.js +0 -1
  365. package/dist/chunk-73c9d39f58a30fe2.js +0 -6
  366. package/dist/chunk-73eed146ee78f681.js +0 -1
  367. package/dist/chunk-73fb3bb4d001bb2e.js +0 -1
  368. package/dist/chunk-7431d60af8814bc8.js +0 -2
  369. package/dist/chunk-74802f454b9972eb.js +0 -2
  370. package/dist/chunk-74ab9c225bfe0eaa.js +0 -2
  371. package/dist/chunk-74db07ba7b97d1c1.js +0 -2
  372. package/dist/chunk-76a525af0575486d.js +0 -5
  373. package/dist/chunk-76db0552d2492ee7.js +0 -3
  374. package/dist/chunk-774337ca540a856d.js +0 -2
  375. package/dist/chunk-77c89e3c8a03f91e.js +0 -2
  376. package/dist/chunk-77d1b26236f5feec.js +0 -2
  377. package/dist/chunk-77d5bbc7a9117c21.js +0 -2
  378. package/dist/chunk-782dde0748025b5a.js +0 -2
  379. package/dist/chunk-78534576cf359780.js +0 -2
  380. package/dist/chunk-7898dd7609f163e8.js +0 -2
  381. package/dist/chunk-78ab7bcbe6104c5f.js +0 -2
  382. package/dist/chunk-78d6df0054754d5d.js +0 -2
  383. package/dist/chunk-795a1bd1d89efce1.js +0 -2
  384. package/dist/chunk-797430f55303e6b5.js +0 -2
  385. package/dist/chunk-7975e27df461cbfb.js +0 -6
  386. package/dist/chunk-798f550643937b6d.js +0 -2
  387. package/dist/chunk-79b438007611560a.js +0 -2
  388. package/dist/chunk-79f7d7d90c4fb51a.js +0 -2
  389. package/dist/chunk-7a318e738fec6c2b.js +0 -3
  390. package/dist/chunk-7aa7f7e219919c4d.js +0 -2
  391. package/dist/chunk-7abc696047809312.js +0 -6
  392. package/dist/chunk-7afdc0ba5afe109a.js +0 -21
  393. package/dist/chunk-7b3bbc8a88aee78c.js +0 -1
  394. package/dist/chunk-7b8e777f7353b492.js +0 -2
  395. package/dist/chunk-7c0fd956d14fc327.js +0 -2
  396. package/dist/chunk-7c62e9d6edc4b418.js +0 -2
  397. package/dist/chunk-7c670baec90faacb.js +0 -2
  398. package/dist/chunk-7d7b2c1f2a8dd018.js +0 -6
  399. package/dist/chunk-7de7f34d46c76019.js +0 -18
  400. package/dist/chunk-7dfb17814922ade0.js +0 -2
  401. package/dist/chunk-7e9d5eea3aa359ad.js +0 -2
  402. package/dist/chunk-7ea1baca4032004f.js +0 -2
  403. package/dist/chunk-7eb54149dff25532.js +0 -2
  404. package/dist/chunk-7ec30fbbbdf89272.js +0 -2
  405. package/dist/chunk-7fadaab2fa180ca9.js +0 -6
  406. package/dist/chunk-7fef11f59982b1f6.js +0 -2
  407. package/dist/chunk-7ffe2ce59a054e35.js +0 -2
  408. package/dist/chunk-80b17f9853d76e98.js +0 -2
  409. package/dist/chunk-8133ed564834cff3.js +0 -2
  410. package/dist/chunk-8163d4f4c2c91caf.js +0 -2
  411. package/dist/chunk-817aad76d1e8eecc.js +0 -6
  412. package/dist/chunk-81938d68b172446d.js +0 -2
  413. package/dist/chunk-81a00ae1b3ea4824.js +0 -2
  414. package/dist/chunk-81ce9b491b290639.js +0 -1
  415. package/dist/chunk-81f5123a24c19089.js +0 -2
  416. package/dist/chunk-827d2c67c03d1a52.js +0 -2
  417. package/dist/chunk-8295e42bcfc910ff.js +0 -16
  418. package/dist/chunk-82f72dfc6e27be04.js +0 -1
  419. package/dist/chunk-8401f0f53dc26633.js +0 -1
  420. package/dist/chunk-8450a38607a86896.js +0 -2
  421. package/dist/chunk-847629c9a7550cc3.js +0 -2
  422. package/dist/chunk-84b129a5185ac24d.js +0 -2
  423. package/dist/chunk-84c7f86a97d17f53.js +0 -2
  424. package/dist/chunk-84f1b068dc7fc8b7.js +0 -2
  425. package/dist/chunk-8581aa9e876d46fb.js +0 -2
  426. package/dist/chunk-85a1f8fb96fd9473.js +0 -2
  427. package/dist/chunk-85d5e5d7ff832255.js +0 -2
  428. package/dist/chunk-860f5fcef7074193.js +0 -9
  429. package/dist/chunk-869d80d2e475b938.js +0 -3
  430. package/dist/chunk-880273a32da461fd.js +0 -9
  431. package/dist/chunk-88103b9d011960db.js +0 -5
  432. package/dist/chunk-89187bbdf6945131.js +0 -2
  433. package/dist/chunk-89291b5eb2bbd0b4.js +0 -2
  434. package/dist/chunk-895d9b1ef7a65211.js +0 -2
  435. package/dist/chunk-897773d66a89947a.js +0 -2
  436. package/dist/chunk-89c6080d4a693ddf.js +0 -2
  437. package/dist/chunk-8a993922ea970923.js +0 -2
  438. package/dist/chunk-8aa3e0e20e411d11.js +0 -2
  439. package/dist/chunk-8af626a703659719.js +0 -18
  440. package/dist/chunk-8b3d411f441a43ce.js +0 -2
  441. package/dist/chunk-8b40d6a498f8bf81.js +0 -2
  442. package/dist/chunk-8b944ecefa1b832c.js +0 -18
  443. package/dist/chunk-8bb91c504b9ca45e.js +0 -2
  444. package/dist/chunk-8bf925705fdcef0c.js +0 -2
  445. package/dist/chunk-8c2b349a7198788f.js +0 -6
  446. package/dist/chunk-8c3e0f5d4a0d6e53.js +0 -2
  447. package/dist/chunk-8c8c8fd3646b76a1.js +0 -2
  448. package/dist/chunk-8caa0abe673f5d41.js +0 -2
  449. package/dist/chunk-8d8666b73758171e.js +0 -2
  450. package/dist/chunk-8e72aa06d4e47eca.js +0 -2
  451. package/dist/chunk-8ef8222b34d8f63f.js +0 -2
  452. package/dist/chunk-8f24cd33e07d02f3.js +0 -2
  453. package/dist/chunk-8f547b919361fdf4.js +0 -2
  454. package/dist/chunk-8f986f307ff91bd3.js +0 -2
  455. package/dist/chunk-901e700a2c2d43f3.js +0 -18
  456. package/dist/chunk-90c5196ff1f827a8.js +0 -2
  457. package/dist/chunk-9113f22a5215c639.js +0 -3
  458. package/dist/chunk-915c050c94553981.js +0 -2
  459. package/dist/chunk-9238196d4889d660.js +0 -1
  460. package/dist/chunk-92a55add20b5d7ac.js +0 -9
  461. package/dist/chunk-92f6095a3be7f459.js +0 -1
  462. package/dist/chunk-9326224d1e4c1a64.js +0 -2
  463. package/dist/chunk-933845e73519b4c5.js +0 -2
  464. package/dist/chunk-934ebff128f86ef1.js +0 -1
  465. package/dist/chunk-9350baa090b5a424.js +0 -2
  466. package/dist/chunk-938fed005335132e.js +0 -9
  467. package/dist/chunk-93b6f53456c1251b.js +0 -2
  468. package/dist/chunk-94578320d28e33ad.js +0 -2
  469. package/dist/chunk-9501e589e3e86a96.js +0 -2
  470. package/dist/chunk-955e2bfcdb7a7e71.js +0 -2
  471. package/dist/chunk-96b635a3bdba7415.js +0 -2
  472. package/dist/chunk-970e033f764e29fc.js +0 -19
  473. package/dist/chunk-98126e4b5bd19831.js +0 -2
  474. package/dist/chunk-9938e9a4fe25dda5.js +0 -2
  475. package/dist/chunk-99ba9dfd7c11383b.js +0 -18
  476. package/dist/chunk-9a622a10e7764b23.js +0 -2
  477. package/dist/chunk-9b5649697d59dfb4.js +0 -2
  478. package/dist/chunk-9bd00e182ac2f8a6.js +0 -6
  479. package/dist/chunk-9bd90ecd4ddde546.js +0 -18
  480. package/dist/chunk-9c3b4dd1591053c5.js +0 -18
  481. package/dist/chunk-9c4a4b4bd266869d.js +0 -2
  482. package/dist/chunk-9d069ba29a122630.js +0 -1
  483. package/dist/chunk-9d1337fc9976354d.js +0 -2
  484. package/dist/chunk-9d2777df26b445e4.js +0 -2
  485. package/dist/chunk-9d2af1a704b857ee.js +0 -2
  486. package/dist/chunk-9d6cc631cdabbe35.js +0 -9
  487. package/dist/chunk-9d714f87e4e3e250.js +0 -18
  488. package/dist/chunk-9ee2118bd4eb34ae.js +0 -9
  489. package/dist/chunk-9f6199bc705fc395.js +0 -18
  490. package/dist/chunk-a0003b7feea6fae6.js +0 -2
  491. package/dist/chunk-a004fce37a0f5a65.js +0 -2
  492. package/dist/chunk-a02b2d564bdb603d.js +0 -6
  493. package/dist/chunk-a095821ffc039b99.js +0 -18
  494. package/dist/chunk-a10ae1a06a28aaab.js +0 -2
  495. package/dist/chunk-a13ab30c392c3563.js +0 -9
  496. package/dist/chunk-a14516ac5e6f78aa.js +0 -1
  497. package/dist/chunk-a14b8af8b2a8d0b0.js +0 -2
  498. package/dist/chunk-a210ec2b987fa5f7.js +0 -2
  499. package/dist/chunk-a2fcc46e344ae7ae.js +0 -2
  500. package/dist/chunk-a3526e321ac9d173.js +0 -1
  501. package/dist/chunk-a3f85d0d3261ae44.js +0 -9
  502. package/dist/chunk-a4862acc0c3fed7d.js +0 -6
  503. package/dist/chunk-a50b9cd348c3e882.js +0 -9
  504. package/dist/chunk-a57ecc74c0fb9045.js +0 -2
  505. package/dist/chunk-a5c18c07abe8fd9c.js +0 -2
  506. package/dist/chunk-a63e13c410e92923.js +0 -2
  507. package/dist/chunk-a693f8ec2e8af8ca.js +0 -2
  508. package/dist/chunk-a719a1f305964521.js +0 -2
  509. package/dist/chunk-a7a144f5e4772c35.js +0 -2
  510. package/dist/chunk-a7f3e9d5b7cf7c42.js +0 -2
  511. package/dist/chunk-a816613f5321b9db.js +0 -1
  512. package/dist/chunk-a8310ad9bad32329.js +0 -2
  513. package/dist/chunk-a885dc5561caa8e0.js +0 -3
  514. package/dist/chunk-a88c3919c74b7877.js +0 -18
  515. package/dist/chunk-a9625dd807cb668e.js +0 -2
  516. package/dist/chunk-a991fdce275f1256.js +0 -2
  517. package/dist/chunk-aa1b1fb08828cb24.js +0 -2
  518. package/dist/chunk-aad7af5112f0f4f2.js +0 -2
  519. package/dist/chunk-aaf5855c5199efe9.js +0 -2
  520. package/dist/chunk-aaf70ff16705d558.js +0 -2
  521. package/dist/chunk-aafdd9bfb5bde8bf.js +0 -2
  522. package/dist/chunk-ab0c3f72f95cb4f4.js +0 -3
  523. package/dist/chunk-ab79a2f0d89fbeae.js +0 -1
  524. package/dist/chunk-ab7b6ceb26aca9b1.js +0 -3
  525. package/dist/chunk-abb2f588bd34adff.js +0 -2
  526. package/dist/chunk-abd0b68c299eebfc.js +0 -2
  527. package/dist/chunk-ac32b3d9dda47756.js +0 -9
  528. package/dist/chunk-acd4530b2ff92aff.js +0 -18
  529. package/dist/chunk-ad656a60ce7912bb.js +0 -2
  530. package/dist/chunk-ad8e7de66d8bf8c5.js +0 -2
  531. package/dist/chunk-adb4e1e222eb1d20.js +0 -2
  532. package/dist/chunk-ae373c8ae2d526ae.js +0 -18
  533. package/dist/chunk-ae50ef54d7de9179.js +0 -2
  534. package/dist/chunk-ae7b1bdf00266d88.js +0 -2
  535. package/dist/chunk-aef3f1c1429e6058.js +0 -2
  536. package/dist/chunk-af6b79a6ce7388ee.js +0 -18
  537. package/dist/chunk-afbf69daa7589a52.js +0 -2
  538. package/dist/chunk-b009482e01114059.js +0 -3
  539. package/dist/chunk-b031077f0a783b82.js +0 -2
  540. package/dist/chunk-b05cb7ef4546980d.js +0 -2
  541. package/dist/chunk-b05e4833f4bb2f8f.js +0 -9
  542. package/dist/chunk-b06168e5d3080486.js +0 -1
  543. package/dist/chunk-b07249c949a284d2.js +0 -16
  544. package/dist/chunk-b0cc82fa84d5362d.js +0 -2
  545. package/dist/chunk-b0f453845cad4e6e.js +0 -2
  546. package/dist/chunk-b13cfa16a8a18324.js +0 -3
  547. package/dist/chunk-b1918e88103a8501.js +0 -2
  548. package/dist/chunk-b2bc43f60314d1a9.js +0 -2
  549. package/dist/chunk-b2d07c19a78dc397.js +0 -2
  550. package/dist/chunk-b3bfe533d66f6a17.js +0 -2
  551. package/dist/chunk-b3e27ec4b56a20ac.js +0 -2
  552. package/dist/chunk-b558c43783464f1b.js +0 -2
  553. package/dist/chunk-b5d6eb761760b2a7.js +0 -6
  554. package/dist/chunk-b66a9e50afbac035.js +0 -9
  555. package/dist/chunk-b7b365f7e6038104.js +0 -2
  556. package/dist/chunk-b7c4dc1136fcaeb7.js +0 -2
  557. package/dist/chunk-b7da6c96acf0478f.js +0 -18
  558. package/dist/chunk-b7f9e29074a9f36a.js +0 -2
  559. package/dist/chunk-b80a86610158cbfd.js +0 -1
  560. package/dist/chunk-b855e71b162ce5a2.js +0 -2
  561. package/dist/chunk-b8d3d76e1dd9affe.js +0 -2
  562. package/dist/chunk-b97189ea9588db36.js +0 -9
  563. package/dist/chunk-b9cba2a8bd5bcd3e.js +0 -2
  564. package/dist/chunk-b9e4546aaa58319c.js +0 -2
  565. package/dist/chunk-b9f4c1fce7152fc8.js +0 -9
  566. package/dist/chunk-ba051a98cd651063.js +0 -1
  567. package/dist/chunk-bb72c8820407f3a6.js +0 -2
  568. package/dist/chunk-bbd36ce62b950ee5.js +0 -2
  569. package/dist/chunk-bbdd098f2a2cd820.js +0 -18
  570. package/dist/chunk-bcd70a6fc2fd359c.js +0 -1
  571. package/dist/chunk-bd2888a454e50cfd.js +0 -1
  572. package/dist/chunk-bd52b3f25b928eb1.js +0 -2
  573. package/dist/chunk-bdc34785363e3f34.js +0 -2
  574. package/dist/chunk-bdf4f2b1862899bb.js +0 -2
  575. package/dist/chunk-be095501304df604.js +0 -9
  576. package/dist/chunk-beca91bf7cc216cd.js +0 -2
  577. package/dist/chunk-bee6075c5738d87a.js +0 -2
  578. package/dist/chunk-bf14cc3e71fcd2d8.js +0 -2
  579. package/dist/chunk-bf4fa1d9864332a8.js +0 -2
  580. package/dist/chunk-bf92f3127474b56a.js +0 -3
  581. package/dist/chunk-bfccfb070c1630e9.js +0 -2
  582. package/dist/chunk-bffb8d677e1424a9.js +0 -6
  583. package/dist/chunk-c041f058dc3d571b.js +0 -1
  584. package/dist/chunk-c0bd8e19395d722b.js +0 -2
  585. package/dist/chunk-c124bf801cec12d9.js +0 -2
  586. package/dist/chunk-c153b192112b0d44.js +0 -2
  587. package/dist/chunk-c1813278ccdc04b8.js +0 -2
  588. package/dist/chunk-c210f6ae6276ebe8.js +0 -1
  589. package/dist/chunk-c29701ffef4ca07a.js +0 -2
  590. package/dist/chunk-c2d1f66cf8468e71.js +0 -1
  591. package/dist/chunk-c2fe378a1764eb92.js +0 -2
  592. package/dist/chunk-c3e4a396dc7a5fe7.js +0 -2
  593. package/dist/chunk-c3eaa877d3aab9db.js +0 -18
  594. package/dist/chunk-c45e1427f48008f0.js +0 -2
  595. package/dist/chunk-c4f342e09d9b2f23.js +0 -2
  596. package/dist/chunk-c50ff3cf3c78af79.js +0 -2
  597. package/dist/chunk-c609d06153ed09ce.js +0 -2
  598. package/dist/chunk-c62b5c4cec67029c.js +0 -1
  599. package/dist/chunk-c675395110f371b1.js +0 -6
  600. package/dist/chunk-c675f193d459818e.js +0 -2
  601. package/dist/chunk-c6846df9c8456b20.js +0 -3
  602. package/dist/chunk-c6d988f5928a4df1.js +0 -2
  603. package/dist/chunk-c72bfaa252a03f6f.js +0 -2
  604. package/dist/chunk-c7b024c7bd4cffc9.js +0 -3
  605. package/dist/chunk-c7e2acfd5087fb30.js +0 -2
  606. package/dist/chunk-c83b39b7178003da.js +0 -2
  607. package/dist/chunk-c85fc7168a708cb6.js +0 -3
  608. package/dist/chunk-c8631aa6bbb62e13.js +0 -2
  609. package/dist/chunk-c864ab57913d658f.js +0 -1
  610. package/dist/chunk-c882d0c175c22c17.js +0 -2
  611. package/dist/chunk-c8b00b645df96ed5.js +0 -2
  612. package/dist/chunk-c8f1115d77efc1c0.js +0 -2
  613. package/dist/chunk-c9707ae8f1d346ff.js +0 -3
  614. package/dist/chunk-c99b8c3d6bda27b0.js +0 -2
  615. package/dist/chunk-cb65fe402653c65e.js +0 -2
  616. package/dist/chunk-cb69e9621a60d310.js +0 -1
  617. package/dist/chunk-cca1f3ae7ec0dee1.js +0 -2
  618. package/dist/chunk-ccb551ce4fd177fe.js +0 -2
  619. package/dist/chunk-cce7de7e81895807.js +0 -2
  620. package/dist/chunk-ccfd101ce72e80bf.js +0 -1
  621. package/dist/chunk-cd1636884486d7b3.js +0 -1
  622. package/dist/chunk-cdfa2adeddc1a8e1.js +0 -2
  623. package/dist/chunk-ceb94e70091088e5.js +0 -2
  624. package/dist/chunk-cf3d1744ea801f48.js +0 -6
  625. package/dist/chunk-cf7dde2ab1be3a3c.js +0 -1
  626. package/dist/chunk-cf8b1c7a4e9fc32d.js +0 -18
  627. package/dist/chunk-cfa9a65fae5ddaf4.js +0 -2
  628. package/dist/chunk-d0757747d9cc2e47.js +0 -2
  629. package/dist/chunk-d0806df6defd9dce.js +0 -2
  630. package/dist/chunk-d12b578765686adb.js +0 -6
  631. package/dist/chunk-d16ef78d852a6856.js +0 -1
  632. package/dist/chunk-d22136d39cf8465f.js +0 -2
  633. package/dist/chunk-d26ffb7722e6df54.js +0 -1
  634. package/dist/chunk-d27588325ae2c0f3.js +0 -2
  635. package/dist/chunk-d2e057b6f3f9d500.js +0 -2
  636. package/dist/chunk-d3033805e98482dc.js +0 -6
  637. package/dist/chunk-d33a0e61ccf1bab5.js +0 -2
  638. package/dist/chunk-d3765f96a689a0c1.js +0 -2
  639. package/dist/chunk-d37757ffee07b05f.js +0 -6
  640. package/dist/chunk-d3b4a3c778c23705.js +0 -2
  641. package/dist/chunk-d3e039d010842a3f.js +0 -2
  642. package/dist/chunk-d43b3f444e738dd1.js +0 -1
  643. package/dist/chunk-d445af84de70bf7e.js +0 -2
  644. package/dist/chunk-d535b1e3078465f8.js +0 -2
  645. package/dist/chunk-d54843c1d8516c75.js +0 -2
  646. package/dist/chunk-d5709251a0493152.js +0 -6
  647. package/dist/chunk-d5ddfacbfc84a47d.js +0 -6
  648. package/dist/chunk-d665d3ee2a62d48b.js +0 -2
  649. package/dist/chunk-d7457cb6aae3b29b.js +0 -2
  650. package/dist/chunk-d850d83873a89e2b.js +0 -18
  651. package/dist/chunk-d93a6531661d56b5.js +0 -9
  652. package/dist/chunk-d93cbffc712a052f.js +0 -2
  653. package/dist/chunk-d950bbcb684a11ef.js +0 -2
  654. package/dist/chunk-d9577d79d4b718a6.js +0 -2
  655. package/dist/chunk-d9762bab5df03532.js +0 -2
  656. package/dist/chunk-d9968563c6c84405.js +0 -3
  657. package/dist/chunk-d9a84b9122601b72.js +0 -2
  658. package/dist/chunk-da1c673d9685624e.js +0 -2
  659. package/dist/chunk-dab2dde8cc9da99b.js +0 -9
  660. package/dist/chunk-dac0e2ef13060d02.js +0 -1
  661. package/dist/chunk-dac9276e506d125d.js +0 -2
  662. package/dist/chunk-dad55fcc32d05b69.js +0 -2
  663. package/dist/chunk-db2270bbca7854fe.js +0 -2
  664. package/dist/chunk-db65c75cda396f98.js +0 -2
  665. package/dist/chunk-dba84b47adec2108.js +0 -2
  666. package/dist/chunk-dc23bfb4fd92e2f0.js +0 -2
  667. package/dist/chunk-dc7b0cf226ba3afa.js +0 -2
  668. package/dist/chunk-dcc432bd72fb7e46.js +0 -3
  669. package/dist/chunk-dd211856e049a67f.js +0 -9
  670. package/dist/chunk-dd21f367f8029793.js +0 -2
  671. package/dist/chunk-dd8b042837b4d5f1.js +0 -2
  672. package/dist/chunk-ddef8961cbf08a05.js +0 -6
  673. package/dist/chunk-de0784c3310db458.js +0 -5
  674. package/dist/chunk-de39fc86bbd37240.js +0 -1
  675. package/dist/chunk-de3ec02f9d17c2c9.js +0 -2
  676. package/dist/chunk-def30dbcb4c6aceb.js +0 -2
  677. package/dist/chunk-df55f07f8adf212f.js +0 -2
  678. package/dist/chunk-df926b342440f55f.js +0 -5
  679. package/dist/chunk-dfadfa4e09b4db22.js +0 -2
  680. package/dist/chunk-dfc390f0bbdf5a81.js +0 -1
  681. package/dist/chunk-e05db2eae976681b.js +0 -3
  682. package/dist/chunk-e06fbc8e70a88f07.js +0 -2
  683. package/dist/chunk-e0a028ef931a3eb1.js +0 -18
  684. package/dist/chunk-e0e0f2ee626a6fb3.js +0 -18
  685. package/dist/chunk-e0ffb920c65ebf44.js +0 -2
  686. package/dist/chunk-e11c7f3abcf2269f.js +0 -2
  687. package/dist/chunk-e16b252158474b8c.js +0 -1
  688. package/dist/chunk-e19064e9f1d5faed.js +0 -2
  689. package/dist/chunk-e1a08bb52ee7ea09.js +0 -2
  690. package/dist/chunk-e1e84c38542d78ec.js +0 -2
  691. package/dist/chunk-e33c33445a92adf1.js +0 -1
  692. package/dist/chunk-e3acd3561fe1342c.js +0 -18
  693. package/dist/chunk-e3e996b3821027e1.js +0 -2
  694. package/dist/chunk-e3ef81776c8f2d28.js +0 -2
  695. package/dist/chunk-e4869466459233fa.js +0 -16
  696. package/dist/chunk-e4f28182cf5f6e1d.js +0 -2
  697. package/dist/chunk-e53fdd0a1888c5e8.js +0 -2
  698. package/dist/chunk-e5a95230e0858544.js +0 -3
  699. package/dist/chunk-e64d5a7b7e0fa2c5.js +0 -6
  700. package/dist/chunk-e755f2c1c7ad3912.js +0 -2
  701. package/dist/chunk-e8159722d49ad044.js +0 -2
  702. package/dist/chunk-e86269d01f94404c.js +0 -2
  703. package/dist/chunk-e9275fb341d2cdd9.js +0 -2
  704. package/dist/chunk-e9c96f9b825f8de7.js +0 -2
  705. package/dist/chunk-ea9b86cf2edd807b.js +0 -18
  706. package/dist/chunk-ec24a0767aa58f1f.js +0 -18
  707. package/dist/chunk-ed21fb7d8c4b675e.js +0 -3
  708. package/dist/chunk-ed589d4e4c575de7.js +0 -2
  709. package/dist/chunk-edba144b170cd87e.js +0 -6
  710. package/dist/chunk-edeefd833c30a5ed.js +0 -2
  711. package/dist/chunk-ee35048642cfe9d8.js +0 -2
  712. package/dist/chunk-ee4ff285d7f4ccdf.js +0 -2
  713. package/dist/chunk-ee604d0215ea07e6.js +0 -1
  714. package/dist/chunk-ee92e80230ce02ec.js +0 -2
  715. package/dist/chunk-eea1d6f60a6875d5.js +0 -2
  716. package/dist/chunk-eeb3b193701aec43.js +0 -1
  717. package/dist/chunk-ef1ebd10affe5726.js +0 -2
  718. package/dist/chunk-ef30aafcfd40dc07.js +0 -2
  719. package/dist/chunk-f077321ef55ea627.js +0 -1
  720. package/dist/chunk-f08ca4bd263b132b.js +0 -2
  721. package/dist/chunk-f0d3ed16a520ecf1.js +0 -18
  722. package/dist/chunk-f117757df00aa18d.js +0 -2
  723. package/dist/chunk-f13fd46441a58606.js +0 -2
  724. package/dist/chunk-f1ac22ad55dbab7a.js +0 -9
  725. package/dist/chunk-f1dfc76a05462dde.js +0 -2
  726. package/dist/chunk-f1e28c4c1a227c27.js +0 -2
  727. package/dist/chunk-f2428c56f532e719.js +0 -3
  728. package/dist/chunk-f256432c3e5819d0.js +0 -2
  729. package/dist/chunk-f2dca6305fcba70b.js +0 -2
  730. package/dist/chunk-f316793e4ec0f386.js +0 -2
  731. package/dist/chunk-f32726d374c6bee5.js +0 -1
  732. package/dist/chunk-f34a78d9e3a62c43.js +0 -3
  733. package/dist/chunk-f404a785b581d029.js +0 -2
  734. package/dist/chunk-f5910f2c8a3f6974.js +0 -2
  735. package/dist/chunk-f5a4295176f9b1c1.js +0 -2
  736. package/dist/chunk-f5b888aa9ac4e20f.js +0 -2
  737. package/dist/chunk-f5e313cc7d724fbe.js +0 -2
  738. package/dist/chunk-f67aa3e46d73674e.js +0 -2
  739. package/dist/chunk-f69bcbd7998553cb.js +0 -2
  740. package/dist/chunk-f74928c3f9ae5359.js +0 -2
  741. package/dist/chunk-f7796c3724a35057.js +0 -2
  742. package/dist/chunk-f84049d82d29bd9e.js +0 -2
  743. package/dist/chunk-f868cdf653dbe87e.js +0 -2
  744. package/dist/chunk-f8823a1ede83155e.js +0 -2
  745. package/dist/chunk-f8ad65b3a07ce3c4.js +0 -6
  746. package/dist/chunk-f900b5868b14827e.js +0 -2
  747. package/dist/chunk-f9084650419a23c4.js +0 -2
  748. package/dist/chunk-f95f5e3439539ca5.js +0 -2
  749. package/dist/chunk-f99bdfc336b2ac57.js +0 -9
  750. package/dist/chunk-f9a17b871b527bff.js +0 -2
  751. package/dist/chunk-f9e6a0a946ebb032.js +0 -2
  752. package/dist/chunk-fa40971555060604.js +0 -81
  753. package/dist/chunk-fa6bdfb32d2f97fb.js +0 -2
  754. package/dist/chunk-faa8c62bfa11f9d5.js +0 -2
  755. package/dist/chunk-fb25896f1638ca8e.js +0 -3
  756. package/dist/chunk-fc165cee61f6efe8.js +0 -6
  757. package/dist/chunk-fd5ffee329d6f29b.js +0 -2
  758. package/dist/chunk-feaaa37d30cd1e9b.js +0 -2
  759. package/dist/chunk-fec9f0b0b0319f3b.js +0 -2
  760. package/dist/chunk-ff086fe014985526.js +0 -1
  761. package/dist/chunk-ff1bbce70d726bc6.js +0 -9
  762. package/dist/chunk-ff9a2d6d503e6db6.js +0 -18
  763. package/dist/chunk-ffe161a589b4c44b.js +0 -1
@@ -1,3 +0,0 @@
1
- import{x as $,y as B} from"./chunk-a5c18c07abe8fd9c.js";import{ib as X} from"./chunk-442a5b1ec74c72f8.js";var K=B((Br,gt)=>{var{defineProperty:H,getOwnPropertyDescriptor:be,getOwnPropertyNames:Te}=Object,Se=Object.prototype.hasOwnProperty,b=(t,e)=>H(t,"name",{value:e,configurable:!0}),Ce=(t,e)=>{for(var r in e)H(t,r,{get:e[r],enumerable:!0})},Ee=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of Te(e))if(!Se.call(t,o)&&o!==r)H(t,o,{get:()=>e[o],enumerable:!(n=be(e,o))||n.enumerable})}return t},$e=(t)=>Ee(H({},"__esModule",{value:!0}),t),mt={};Ce(mt,{constructStack:()=>G});gt.exports=$e(mt);var A=b((t,e)=>{const r=[];if(t)r.push(t);if(e)for(let n of e)r.push(n);return r},"getAllAliases"),E=b((t,e)=>{return`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`},"getMiddlewareNameWithAliases"),G=b(()=>{let t=[],e=[],r=!1;const n=new Set,o=b((f)=>f.sort((p,u)=>dt[u.step]-dt[p.step]||lt[u.priority||"normal"]-lt[p.priority||"normal"]),"sort"),s=b((f)=>{let p=!1;const u=b((y)=>{const g=A(y.name,y.aliases);if(g.includes(f)){p=!0;for(let l of g)n.delete(l);return!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},"removeByName"),c=b((f)=>{let p=!1;const u=b((y)=>{if(y.middleware===f){p=!0;for(let g of A(y.name,y.aliases))n.delete(g);return!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},"removeByReference"),i=b((f)=>{var p;return t.forEach((u)=>{f.add(u.middleware,{...u})}),e.forEach((u)=>{f.addRelativeTo(u.middleware,{...u})}),(p=f.identifyOnResolve)==null||p.call(f,w.identifyOnResolve()),f},"cloneTo"),a=b((f)=>{const p=[];return f.before.forEach((u)=>{if(u.before.length===0&&u.after.length===0)p.push(u);else p.push(...a(u))}),p.push(f),f.after.reverse().forEach((u)=>{if(u.before.length===0&&u.after.length===0)p.push(u);else p.push(...a(u))}),p},"expandRelativeMiddlewareList"),d=b((f=!1)=>{const p=[],u=[],y={};return t.forEach((l)=>{const h={...l,before:[],after:[]};for(let m of A(h.name,h.aliases))y[m]=h;p.push(h)}),e.forEach((l)=>{const h={...l,before:[],after:[]};for(let m of A(h.name,h.aliases))y[m]=h;u.push(h)}),u.forEach((l)=>{if(l.toMiddleware){const h=y[l.toMiddleware];if(h===void 0){if(f)return;throw new Error(`${l.toMiddleware} is not found when adding ${E(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")h.after.push(l);if(l.relation==="before")h.before.push(l)}}),o(p).map(a).reduce((l,h)=>{return l.push(...h),l},[])},"getMiddlewareList"),w={add:(f,p={})=>{const{name:u,override:y,aliases:g}=p,l={step:"initialize",priority:"normal",middleware:f,...p},h=A(u,g);if(h.length>0){if(h.some((m)=>n.has(m))){if(!y)throw new Error(`Duplicate middleware name '${E(u,g)}'`);for(let m of h){const S=t.findIndex((P)=>{var D;return P.name===m||((D=P.aliases)==null?void 0:D.some((Q)=>Q===m))});if(S===-1)continue;const x=t[S];if(x.step!==l.step||l.priority!==x.priority)throw new Error(`"${E(x.name,x.aliases)}" middleware with ${x.priority} priority in ${x.step} step cannot be overridden by "${E(u,g)}" middleware with ${l.priority} priority in ${l.step} step.`);t.splice(S,1)}}for(let m of h)n.add(m)}t.push(l)},addRelativeTo:(f,p)=>{const{name:u,override:y,aliases:g}=p,l={middleware:f,...p},h=A(u,g);if(h.length>0){if(h.some((m)=>n.has(m))){if(!y)throw new Error(`Duplicate middleware name '${E(u,g)}'`);for(let m of h){const S=e.findIndex((P)=>{var D;return P.name===m||((D=P.aliases)==null?void 0:D.some((Q)=>Q===m))});if(S===-1)continue;const x=e[S];if(x.toMiddleware!==l.toMiddleware||x.relation!==l.relation)throw new Error(`"${E(x.name,x.aliases)}" middleware ${x.relation} "${x.toMiddleware}" middleware cannot be overridden by "${E(u,g)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);e.splice(S,1)}}for(let m of h)n.add(m)}e.push(l)},clone:()=>i(G()),use:(f)=>{f.applyToStack(w)},remove:(f)=>{if(typeof f==="string")return s(f);else return c(f)},removeByTag:(f)=>{let p=!1;const u=b((y)=>{const{tags:g,name:l,aliases:h}=y;if(g&&g.includes(f)){const m=A(l,h);for(let S of m)n.delete(S);return p=!0,!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},concat:(f)=>{var p;const u=i(G());return u.use(f),u.identifyOnResolve(r||u.identifyOnResolve()||(((p=f.identifyOnResolve)==null?void 0:p.call(f))??!1)),u},applyToStack:i,identify:()=>{return d(!0).map((f)=>{const p=f.step??f.relation+" "+f.toMiddleware;return E(f.name,f.aliases)+" - "+p})},identifyOnResolve(f){if(typeof f==="boolean")r=f;return r},resolve:(f,p)=>{for(let u of d().map((y)=>y.middleware).reverse())f=u(f,p);if(r)console.log(w.identify());return f}};return w},"constructStack"),dt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},lt={high:3,normal:2,low:1}});var $t=B((cn,Et)=>{var{defineProperty:q,getOwnPropertyDescriptor:Fe,getOwnPropertyNames:Ne}=Object,ke=Object.prototype.hasOwnProperty,_=(t,e)=>q(t,"name",{value:e,configurable:!0}),Pe=(t,e)=>{for(var r in e)q(t,r,{get:e[r],enumerable:!0})},De=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of Ne(e))if(!ke.call(t,o)&&o!==r)q(t,o,{get:()=>e[o],enumerable:!(n=Fe(e,o))||n.enumerable})}return t},Le=(t)=>De(q({},"__esModule",{value:!0}),t),St={};Pe(St,{escapeUri:()=>Ct,escapeUriPath:()=>Re});Et.exports=Le(St);var Ct=_((t)=>encodeURIComponent(t).replace(/[!'()*]/g,Me),"escapeUri"),Me=_((t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Re=_((t)=>t.split("/").map(Ct).join("/"),"escapeUriPath")});var Ht=B((vn,Bt)=>{var{defineProperty:O,getOwnPropertyDescriptor:Je,getOwnPropertyNames:Ve}=Object,Ze=Object.prototype.hasOwnProperty,Qe=(t,e)=>O(t,"name",{value:e,configurable:!0}),Ge=(t,e)=>{for(var r in e)O(t,r,{get:e[r],enumerable:!0})},Ke=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of Ve(e))if(!Ze.call(t,o)&&o!==r)O(t,o,{get:()=>e[o],enumerable:!(n=Je(e,o))||n.enumerable})}return t},Xe=(t)=>Ke(O({},"__esModule",{value:!0}),t),Rt={};Ge(Rt,{isArrayBuffer:()=>ve});Bt.exports=Xe(Rt);var ve=Qe((t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var Gt=B((Yo,Qt)=>{var Vt=function(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){const n=t.slice(r,r+2).toLowerCase();if(n in st)e[r/2]=st[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e},Zt=function(t){let e="";for(let r=0;r<t.byteLength;r++)e+=Jt[t[r]];return e},Z=Object.defineProperty,or=Object.getOwnPropertyDescriptor,sr=Object.getOwnPropertyNames,ir=Object.prototype.hasOwnProperty,Wt=(t,e)=>Z(t,"name",{value:e,configurable:!0}),cr=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},fr=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of sr(e))if(!ir.call(t,o)&&o!==r)Z(t,o,{get:()=>e[o],enumerable:!(n=or(e,o))||n.enumerable})}return t},ur=(t)=>fr(Z({},"__esModule",{value:!0}),t),zt={};cr(zt,{fromHex:()=>Vt,toHex:()=>Zt});Qt.exports=ur(zt);var Jt={},st={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();if(e.length===1)e=`0${e}`;Jt[t]=e,st[e]=t}Wt(Vt,"fromHex");Wt(Zt,"toHex")});var yt=$(K(),1);class Ae{constructor(t){this.middlewareStack=yt.constructStack(),this.config=t}send(t,e,r){const n=typeof e!=="function"?e:void 0,o=typeof e==="function"?e:r,s=t.resolveMiddleware(this.middlewareStack,this.config,n);if(o)s(t).then((c)=>o(null,c.output),(c)=>o(c)).catch(()=>{});else return s(t).then((c)=>c.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var wt=$(K(),1),xt=$(X(),1);class bt{constructor(){this.middlewareStack=wt.constructStack()}static classBuilder(){return new Tt}resolveMiddlewareWithContext(t,e,r,{middlewareFn:n,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,smithyContext:a,additionalContext:d,CommandCtor:w}){for(let g of n.bind(this)(w,t,e,r))this.middlewareStack.use(g);const f=t.concat(this.middlewareStack),{logger:p}=e,u={logger:p,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,[xt.SMITHY_CONTEXT_KEY]:{commandInstance:this,...a},...d},{requestHandler:y}=e;return f.resolve((g)=>y.handle(g.request,r||{}),u)}}class Tt{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(t)=>t,this._outputFilterSensitiveLog=(t)=>t,this._serializer=null,this._deserializer=null}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,e,r={}){return this._smithyContext={service:t,operation:e,...r},this}c(t={}){return this._additionalContext=t,this}n(t,e){return this._clientName=t,this._commandName=e,this}f(t=(r)=>r,e=(r)=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=e,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}build(){const t=this;let e;return e=class extends bt{static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super();this.serialize=t._serializer,this.deserialize=t._deserializer,this.input=r??{},t._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}}var Yr=(t)=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},Or=(t)=>{return{httpHandler:t.httpHandler()}};var Ie=$(X(),1);var Ue=function(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})};class v{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const e=new v({...t,headers:{...t.headers}});if(e.query)e.query=Ue(e.query);return e}static isInstance(t){if(!t)return!1;const e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return v.clone(this)}}class L{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}var j=$($t(),1);function Y(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=j.escapeUri(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${j.escapeUri(n[o])}`);else{let o=r;if(n||typeof n==="string")o+=`=${j.escapeUri(n)}`;e.push(o)}}return e.join("&")}import{Agent as kt,request as qe} from"http";import{Agent as Pt,request as je} from"https";var At=["ECONNRESET","EPIPE","ETIMEDOUT"];var tt=(t)=>{const e={};for(let r of Object.keys(t)){const n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e};var It=(t,e,r=0)=>{if(!r)return;const n=setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);t.on("socket",(o)=>{if(o.connecting)o.on("connect",()=>{clearTimeout(n)});else clearTimeout(n)})};var Ut=(t,{keepAlive:e,keepAliveMsecs:r})=>{if(e!==!0)return;t.on("socket",(n)=>{n.setKeepAlive(e,r||0)})};var Ft=(t,e,r=0)=>{t.setTimeout(r,()=>{t.destroy(),e(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};import{Readable as Be} from"stream";async function et(t,e,r=Nt){const n=e.headers??{},o=n.Expect||n.expect;let s=-1,c=!1;if(o==="100-continue")await Promise.race([new Promise((i)=>{s=Number(setTimeout(i,Math.max(Nt,r)))}),new Promise((i)=>{t.on("continue",()=>{clearTimeout(s),i()}),t.on("error",()=>{c=!0,clearTimeout(s),i()})})]);if(!c)He(t,e.body)}var He=function(t,e){if(e instanceof Be){e.pipe(t);return}if(e){if(Buffer.isBuffer(e)||typeof e==="string"){t.end(e);return}const r=e;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){t.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}t.end(Buffer.from(e));return}t.end()},Nt=1000;class rt{static create(t){if(typeof t?.handle==="function")return t;return new rt(t)}static checkSocketUsage(t,e,r=console){const{sockets:n,requests:o,maxSockets:s}=t;if(typeof s!=="number"||s===Infinity)return e;const c=15000;if(Date.now()-c<e)return e;if(n&&o)for(let i in n){const a=n[i]?.length??0,d=o[i]?.length??0;if(a>=s&&d>=2*s)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${a} and ${d} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return e}constructor(t){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((e,r)=>{if(typeof t==="function")t().then((n)=>{e(this.resolveDefaultConfig(n))}).catch(r);else e(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){const{requestTimeout:e,connectionTimeout:r,socketTimeout:n,httpAgent:o,httpsAgent:s}=t||{};return{connectionTimeout:r,requestTimeout:e??n,httpAgent:(()=>{if(o instanceof kt||typeof o?.destroy==="function")return o;return new kt({keepAlive:!0,maxSockets:50,...o})})(),httpsAgent:(()=>{if(s instanceof Pt||typeof s?.destroy==="function")return s;return new Pt({keepAlive:!0,maxSockets:50,...s})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:e}={}){if(!this.config)this.config=await this.configProvider;let r;return new Promise((n,o)=>{let s=void 0;const c=async(h)=>{await s,clearTimeout(r),n(h)},i=async(h)=>{await s,clearTimeout(r),o(h)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(e?.aborted){const h=new Error("Request aborted");h.name="AbortError",i(h);return}const a=t.protocol==="https:",d=a?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=rt.checkSocketUsage(d,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const w=Y(t.query||{});let f=void 0;if(t.username!=null||t.password!=null){const h=t.username??"",m=t.password??"";f=`${h}:${m}`}let p=t.path;if(w)p+=`?${w}`;if(t.fragment)p+=`#${t.fragment}`;const u={headers:t.headers,host:t.hostname,method:t.method,path:p,port:t.port,agent:d,auth:f},g=(a?je:qe)(u,(h)=>{const m=new L({statusCode:h.statusCode||-1,reason:h.statusMessage,headers:tt(h.headers),body:h});c({response:m})});if(g.on("error",(h)=>{if(At.includes(h.code))i(Object.assign(h,{name:"TimeoutError"}));else i(h)}),It(g,i,this.config.connectionTimeout),Ft(g,i,this.config.requestTimeout),e){const h=()=>{g.destroy();const m=new Error("Request aborted");m.name="AbortError",i(m)};if(typeof e.addEventListener==="function"){const m=e;m.addEventListener("abort",h,{once:!0}),g.once("close",()=>m.removeEventListener("abort",h))}else e.onabort=h}const l=u.agent;if(typeof l==="object"&&"keepAlive"in l)Ut(g,{keepAlive:l.keepAlive,keepAliveMsecs:l.keepAliveMsecs});s=et(g,t,this.config.requestTimeout).catch((h)=>{return clearTimeout(r),o(h)})})}updateHttpClientConfig(t,e){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return{...r,[t]:e}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as Ye} from"stream";class nt extends Ye{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,e,r){this.bufferedBytes.push(t),r()}}async function We(t){const e=[],r=t.getReader();let n=!1,o=0;while(!n){const{done:i,value:a}=await r.read();if(a)e.push(a),o+=a.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of e)s.set(i,c),c+=i.length;return s}var Dt=(t)=>{if(Oe(t))return We(t);return new Promise((e,r)=>{const n=new nt;t.pipe(n),t.on("error",(o)=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){const o=new Uint8Array(Buffer.concat(this.bufferedBytes));e(o)})})},Oe=(t)=>typeof ReadableStream==="function"&&t instanceof ReadableStream;var Vn="***SensitiveInformation***";var Qn=(t,e)=>{for(let r of Object.keys(t)){const n=t[r],o=async function(c,i,a){const d=new n(c);if(typeof i==="function")this.send(d,i);else if(typeof a==="function"){if(typeof i!=="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(d,i||{},a)}else return this.send(d,i)},s=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");e.prototype[s]=o}};class Lt extends Error{constructor(t){super(t.message);Object.setPrototypeOf(this,Lt.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}}var Mt=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{if(t[n]==null||t[n]==="")t[n]=o});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t};class ze{trace(){}debug(){}info(){}warn(){}error(){}}var qt=$(Ht(),1);import{Buffer as ot} from"buffer";var U=(t,e=0,r=t.byteLength-e)=>{if(!qt.isArrayBuffer(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return ot.from(t,e,r)},W=(t,e)=>{if(typeof t!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?ot.from(t,e):ot.from(t)};var _e=/^[A-Za-z0-9+/]*={0,2}$/,z=(t)=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!_e.exec(t))throw new TypeError("Invalid base64 string.");const e=W(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};var F=(t)=>{const e=W(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var io=(t)=>{if(typeof t==="string")return F(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(t)};var J=(t)=>{if(typeof t==="string")return t;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return U(t.buffer,t.byteOffset,t.byteLength).toString("utf8")};var V=(t)=>{let e;if(typeof t==="string")e=F(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return U(e.buffer,e.byteOffset,e.byteLength).toString("base64")};function jt(t,e="utf-8"){if(e==="base64")return V(t);return J(t)}function Yt(t,e){if(e==="base64")return C.mutate(z(t));return C.mutate(F(t))}class C extends Uint8Array{static fromString(t,e="utf-8"){switch(typeof t){case"string":return Yt(t,e);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,C.prototype),t}transformToString(t="utf-8"){return jt(this,t)}}import{Readable as tr} from"stream";var Uo=(t,e)=>{const{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=e,i=r!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,a=i?c(o,t):void 0,d=new tr({read:()=>{}});return t.on("data",(w)=>{const f=n(w)||0;d.push(`${f.toString(16)}\r\n`),d.push(w),d.push("\r\n")}),t.on("end",async()=>{if(d.push("0\r\n"),i){const w=r(await a);d.push(`${s}:${w}\r\n`),d.push("\r\n")}d.push(null)}),d};import{Readable as it} from"stream";import{TextDecoder as hr} from"util";async function er(t){const e=await nr(t),r=z(e);return new Uint8Array(r)}async function rr(t){const e=[],r=t.getReader();let n=!1,o=0;while(!n){const{done:i,value:a}=await r.read();if(a)e.push(a),o+=a.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of e)s.set(i,c),c+=i.length;return s}var nr=function(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const o=n.result??"",s=o.indexOf(","),c=s>-1?s+1:o.length;e(o.substring(c))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})},Ot=(t)=>{if(typeof Blob==="function"&&t instanceof Blob)return er(t);return rr(t)};var vt=$(Gt(),1);var I=(t)=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);var Kt="The stream has already been transformed.",_t=(t)=>{if(!Xt(t)&&!I(t)){const o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let e=!1;const r=async()=>{if(e)throw new Error(Kt);return e=!0,await Ot(t)},n=(o)=>{if(typeof o.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async(o)=>{const s=await r();if(o==="base64")return V(s);else if(o==="hex")return vt.toHex(s);else if(o===void 0||o==="utf8"||o==="utf-8")return J(s);else if(typeof TextDecoder==="function")return new TextDecoder(o).decode(s);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(Kt);if(e=!0,Xt(t))return n(t);else if(I(t))return t;else throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},Xt=(t)=>typeof Blob==="function"&&t instanceof Blob;var te="The stream has already been transformed.",_o=(t)=>{if(!(t instanceof it))try{return _t(t)}catch(n){const o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1;const r=async()=>{if(e)throw new Error(te);return e=!0,await Dt(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async(n)=>{const o=await r();if(n===void 0||Buffer.isEncoding(n))return U(o.buffer,o.byteOffset,o.byteLength).toString(n);else return new hr(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(te);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof it.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return e=!0,it.toWeb(t)}})};import{PassThrough as re} from"stream";async function ee(t){if(typeof t.stream==="function")t=t.stream();return t.tee()}async function ss(t){if(I(t))return ee(t);const e=new re,r=new re;return t.pipe(e),t.pipe(r),[e,r]}import{Writable as ar} from"stream";async function ne(t,e){let r=0;const n=[],o=t.getReader();let s=!1;while(!s){const{done:a,value:d}=await o.read();if(d)n.push(d),r+=d?.byteLength??0;if(r>=e)break;s=a}o.releaseLock();const c=new Uint8Array(Math.min(e,r));let i=0;for(let a of n){if(a.byteLength>c.byteLength-i){c.set(a.subarray(0,c.byteLength-i),i);break}else c.set(a,i);i+=a.length}return c}var as=(t,e)=>{if(I(t))return ne(t,e);return new Promise((r,n)=>{const o=new oe;o.limit=e,t.pipe(o),t.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){const s=new Uint8Array(Buffer.concat(this.buffers));r(s)})})};class oe extends ar{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write(t,e,r){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){const n=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-n),this.emit("finish")}r()}}var Ts=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return C.mutate(t);if(!t)return C.mutate(new Uint8Array);const r=e.streamCollector(t);return C.mutate(await r)};var Cs=(t)=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}};var pr=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string"){const e=parseFloat(t);if(!Number.isNaN(e)){if(String(e)!==String(t))pe.warn(ae(`Expected number but observed string: ${t}`));return e}}if(typeof t==="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)},dr=Math.ceil(340282346638528860000000000000000000000),se=(t)=>{const e=pr(t);if(e!==void 0&&!Number.isNaN(e)&&e!==Infinity&&e!==(-Infinity)){if(Math.abs(e)>dr)throw new TypeError(`Expected 32-bit float, got ${t}`)}return e},ct=(t)=>{if(t===null||t===void 0)return;if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)};var ie=(t)=>ft(t,32),ce=(t)=>ft(t,16),fe=(t)=>ft(t,8),ft=(t,e)=>{const r=ct(t);if(r!==void 0&&lr(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},lr=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},Es=(t,e)=>{if(t===null||t===void 0){if(e)throw new TypeError(`Expected a non-null value for ${e}`);throw new TypeError("Expected a non-null value")}return t},$s=(t)=>{if(t===null||t===void 0)return;if(typeof t==="object"&&!Array.isArray(t))return t;const e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},As=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string")return t;if(["boolean","number","bigint"].includes(typeof t))return pe.warn(ae(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)};var ue=(t)=>{if(typeof t=="string")return se(M(t));return se(t)},mr=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,M=(t)=>{const e=t.match(mr);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)};var Is=(t)=>{if(typeof t==="string")return ct(M(t));return ct(t)};var Us=(t)=>{if(typeof t==="string")return ie(M(t));return ie(t)},N=(t)=>{if(typeof t==="string")return ce(M(t));return ce(t)},he=(t)=>{if(typeof t==="string")return fe(M(t));return fe(t)},ae=(t)=>{return String(new TypeError(t).stack||t).split("\n").slice(0,5).filter((e)=>!e.includes("stackTraceWarning")).join("\n")},pe={warn:console.warn};function Ps(t){const e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),c=t.getUTCMinutes(),i=t.getUTCSeconds(),a=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`,w=c<10?`0${c}`:`${c}`,f=i<10?`0${i}`:`${i}`;return`${gr[n]}, ${a} ${ht[r]} ${e} ${d}:${w}:${f} GMT`}var gr=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ht=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yr=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ds=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=yr.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,a,d]=e,w=N(k(n)),f=T(o,"month",1,12),p=T(s,"day",1,31);return R(w,f,p,{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d})},wr=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Ls=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=wr.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,a,d,w]=e,f=N(k(n)),p=T(o,"month",1,12),u=T(s,"day",1,31),y=R(f,p,u,{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d});if(w.toUpperCase()!="Z")y.setTime(y.getTime()-Fr(w));return y},xr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),br=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Tr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Ms=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=xr.exec(t);if(e){const[r,n,o,s,c,i,a,d]=e;return R(N(k(s)),ut(o),T(n,"day",1,31),{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d})}if(e=br.exec(t),e){const[r,n,o,s,c,i,a,d]=e;return Er(R(Sr(s),ut(o),T(n,"day",1,31),{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d}))}if(e=Tr.exec(t),e){const[r,n,o,s,c,i,a,d]=e;return R(N(k(d)),ut(n),T(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")};var R=(t,e,r,n)=>{const o=e-1;return Ar(t,o,r),new Date(Date.UTC(t,o,r,T(n.hours,"hour",0,23),T(n.minutes,"minute",0,59),T(n.seconds,"seconds",0,60),Ur(n.fractionalMilliseconds)))},Sr=(t)=>{const e=(new Date()).getUTCFullYear(),r=Math.floor(e/100)*100+N(k(t));if(r<e)return r+100;return r},Cr=1576800000000,Er=(t)=>{if(t.getTime()-(new Date()).getTime()>Cr)return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()));return t},ut=(t)=>{const e=ht.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},$r=[31,28,31,30,31,30,31,31,30,31,30,31],Ar=(t,e,r)=>{let n=$r[e];if(e===1&&Ir(t))n=29;if(r>n)throw new TypeError(`Invalid day for ${ht[e]} in ${t}: ${r}`)},Ir=(t)=>{return t%4===0&&(t%100!==0||t%400===0)},T=(t,e,r,n)=>{const o=he(k(t));if(o<r||o>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return o},Ur=(t)=>{if(t===null||t===void 0)return 0;return ue("0."+t)*1000},Fr=(t)=>{const e=t[0];let r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);const n=Number(t.substring(1,3)),o=Number(t.substring(4,6));return r*(n*60+o)*60*1000},k=(t)=>{let e=0;while(e<t.length-1&&t.charAt(e)==="0")e++;if(e===0)return t;return t.slice(e)};var Nr=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const o=kr(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw Mt(c,e)},Hs=(t)=>{return({output:e,parsedBody:r,errorCode:n})=>{Nr({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})}},kr=(t)=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]});var js=(t)=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var de=!1,Os=(t)=>{if(t&&!de&&parseInt(t.substring(1,t.indexOf(".")))<16)de=!0};var at=$(X(),1);var le=(t)=>{const e=[];for(let r in at.AlgorithmId){const n=at.AlgorithmId[r];if(t[n]===void 0)continue;e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},me=(t)=>{const e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e};var ge=(t)=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},ye=(t)=>{const e={};return e.retryStrategy=t.retryStrategy(),e};var Qs=(t)=>{return{...le(t),...ge(t)}};var Gs=(t)=>{return{...me(t),...ye(t)}};function Pr(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var pt=function(){const t=Object.getPrototypeOf(this).constructor,r=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(r,t.prototype),r};pt.prototype=Object.create(String.prototype,{constructor:{value:pt,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(pt,String);function Dr(t,e,r){let n,o,s;if(typeof e==="undefined"&&typeof r==="undefined")n={},s=t;else if(n=t,typeof e==="function")return o=e,s=r,Lr(n,o,s);else s=e;for(let c of Object.keys(s)){if(!Array.isArray(s[c])){n[c]=s[c];continue}we(n,null,s,c)}return n}var ni=(t,e)=>{const r={};for(let n in e)we(r,t,e,n);return r},Lr=(t,e,r)=>{return Dr(t,Object.entries(r).reduce((n,[o,s])=>{if(Array.isArray(s))n[o]=s;else if(typeof s==="function")n[o]=[e,s()];else n[o]=[e,s];return n},{}))},we=(t,e,r,n)=>{if(e!==null){let c=r[n];if(typeof c==="function")c=[,c];const[i=Mr,a=Rr,d=n]=c;if(typeof i==="function"&&i(e[d])||typeof i!=="function"&&!!i)t[n]=a(e[d]);return}let[o,s]=r[n];if(typeof s==="function"){let c;const i=o===void 0&&(c=s())!=null,a=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(i)t[n]=c;else if(a)t[n]=s()}else{const c=o===void 0&&s!=null,i=typeof o==="function"&&!!o(s)||typeof o!=="function"&&!!o;if(c||i)t[n]=s}},Mr=(t)=>t!=null,Rr=(t)=>t;var ci=(t)=>t.toISOString().replace(".000Z","Z");var xe=(t)=>{if(t==null)return{};if(Array.isArray(t))return t.filter((e)=>e!=null).map(xe);if(typeof t==="object"){const e={};for(let r of Object.keys(t)){if(t[r]==null)continue;e[r]=xe(t[r])}return e}return t};export{Yr as z,Or as A,v as B,L as C,ze as D,K as E,Ae as F,Ht as G,U as H,W as I,z as J,F as K,io as L,J as M,V as N,Uo as O,$t as P,rt as Q,Dt as R,Gt as S,_o as T,ss as U,as as V,Ts as W,bt as X,Vn as Y,Qn as Z,Cs as _,ct as $,ie as aa,Es as ba,$s as ca,As as da,Is as ea,Us as fa,Ps as ga,Ds as ha,Ls as ia,Ms as ja,Lt as ka,Mt as la,Hs as ma,js as na,Os as oa,Qs as pa,Gs as qa,Pr as ra,Dr as sa,ni as ta,ci as ua,xe as va};
@@ -1,3 +0,0 @@
1
- import{x as A,y as Q} from"./chunk-a5c18c07abe8fd9c.js";import{fb as K} from"./chunk-bbd36ce62b950ee5.js";var G=Q(($r,mt)=>{var{defineProperty:R,getOwnPropertyDescriptor:ge,getOwnPropertyNames:ye}=Object,we=Object.prototype.hasOwnProperty,b=(t,e)=>R(t,"name",{value:e,configurable:!0}),xe=(t,e)=>{for(var r in e)R(t,r,{get:e[r],enumerable:!0})},be=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of ye(e))if(!we.call(t,o)&&o!==r)R(t,o,{get:()=>e[o],enumerable:!(n=ge(e,o))||n.enumerable})}return t},Te=(t)=>be(R({},"__esModule",{value:!0}),t),lt={};xe(lt,{constructStack:()=>Z});mt.exports=Te(lt);var $=b((t,e)=>{const r=[];if(t)r.push(t);if(e)for(let n of e)r.push(n);return r},"getAllAliases"),E=b((t,e)=>{return`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`},"getMiddlewareNameWithAliases"),Z=b(()=>{let t=[],e=[],r=!1;const n=new Set,o=b((f)=>f.sort((p,u)=>pt[u.step]-pt[p.step]||dt[u.priority||"normal"]-dt[p.priority||"normal"]),"sort"),s=b((f)=>{let p=!1;const u=b((y)=>{const g=$(y.name,y.aliases);if(g.includes(f)){p=!0;for(let l of g)n.delete(l);return!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},"removeByName"),c=b((f)=>{let p=!1;const u=b((y)=>{if(y.middleware===f){p=!0;for(let g of $(y.name,y.aliases))n.delete(g);return!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},"removeByReference"),i=b((f)=>{var p;return t.forEach((u)=>{f.add(u.middleware,{...u})}),e.forEach((u)=>{f.addRelativeTo(u.middleware,{...u})}),(p=f.identifyOnResolve)==null||p.call(f,w.identifyOnResolve()),f},"cloneTo"),a=b((f)=>{const p=[];return f.before.forEach((u)=>{if(u.before.length===0&&u.after.length===0)p.push(u);else p.push(...a(u))}),p.push(f),f.after.reverse().forEach((u)=>{if(u.before.length===0&&u.after.length===0)p.push(u);else p.push(...a(u))}),p},"expandRelativeMiddlewareList"),d=b((f=!1)=>{const p=[],u=[],y={};return t.forEach((l)=>{const h={...l,before:[],after:[]};for(let m of $(h.name,h.aliases))y[m]=h;p.push(h)}),e.forEach((l)=>{const h={...l,before:[],after:[]};for(let m of $(h.name,h.aliases))y[m]=h;u.push(h)}),u.forEach((l)=>{if(l.toMiddleware){const h=y[l.toMiddleware];if(h===void 0){if(f)return;throw new Error(`${l.toMiddleware} is not found when adding ${E(l.name,l.aliases)} middleware ${l.relation} ${l.toMiddleware}`)}if(l.relation==="after")h.after.push(l);if(l.relation==="before")h.before.push(l)}}),o(p).map(a).reduce((l,h)=>{return l.push(...h),l},[])},"getMiddlewareList"),w={add:(f,p={})=>{const{name:u,override:y,aliases:g}=p,l={step:"initialize",priority:"normal",middleware:f,...p},h=$(u,g);if(h.length>0){if(h.some((m)=>n.has(m))){if(!y)throw new Error(`Duplicate middleware name '${E(u,g)}'`);for(let m of h){const S=t.findIndex((N)=>{var D;return N.name===m||((D=N.aliases)==null?void 0:D.some((V)=>V===m))});if(S===-1)continue;const x=t[S];if(x.step!==l.step||l.priority!==x.priority)throw new Error(`"${E(x.name,x.aliases)}" middleware with ${x.priority} priority in ${x.step} step cannot be overridden by "${E(u,g)}" middleware with ${l.priority} priority in ${l.step} step.`);t.splice(S,1)}}for(let m of h)n.add(m)}t.push(l)},addRelativeTo:(f,p)=>{const{name:u,override:y,aliases:g}=p,l={middleware:f,...p},h=$(u,g);if(h.length>0){if(h.some((m)=>n.has(m))){if(!y)throw new Error(`Duplicate middleware name '${E(u,g)}'`);for(let m of h){const S=e.findIndex((N)=>{var D;return N.name===m||((D=N.aliases)==null?void 0:D.some((V)=>V===m))});if(S===-1)continue;const x=e[S];if(x.toMiddleware!==l.toMiddleware||x.relation!==l.relation)throw new Error(`"${E(x.name,x.aliases)}" middleware ${x.relation} "${x.toMiddleware}" middleware cannot be overridden by "${E(u,g)}" middleware ${l.relation} "${l.toMiddleware}" middleware.`);e.splice(S,1)}}for(let m of h)n.add(m)}e.push(l)},clone:()=>i(Z()),use:(f)=>{f.applyToStack(w)},remove:(f)=>{if(typeof f==="string")return s(f);else return c(f)},removeByTag:(f)=>{let p=!1;const u=b((y)=>{const{tags:g,name:l,aliases:h}=y;if(g&&g.includes(f)){const m=$(l,h);for(let S of m)n.delete(S);return p=!0,!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},concat:(f)=>{var p;const u=i(Z());return u.use(f),u.identifyOnResolve(r||u.identifyOnResolve()||(((p=f.identifyOnResolve)==null?void 0:p.call(f))??!1)),u},applyToStack:i,identify:()=>{return d(!0).map((f)=>{const p=f.step??f.relation+" "+f.toMiddleware;return E(f.name,f.aliases)+" - "+p})},identifyOnResolve(f){if(typeof f==="boolean")r=f;return r},resolve:(f,p)=>{for(let u of d().map((y)=>y.middleware).reverse())f=u(f,p);if(r)console.log(w.identify());return f}};return w},"constructStack"),pt={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},dt={high:3,normal:2,low:1}});var Et=Q((Qr,Ct)=>{var{defineProperty:H,getOwnPropertyDescriptor:$e,getOwnPropertyNames:Ae}=Object,Ie=Object.prototype.hasOwnProperty,v=(t,e)=>H(t,"name",{value:e,configurable:!0}),Ue=(t,e)=>{for(var r in e)H(t,r,{get:e[r],enumerable:!0})},Fe=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of Ae(e))if(!Ie.call(t,o)&&o!==r)H(t,o,{get:()=>e[o],enumerable:!(n=$e(e,o))||n.enumerable})}return t},Pe=(t)=>Fe(H({},"__esModule",{value:!0}),t),Tt={};Ue(Tt,{escapeUri:()=>St,escapeUriPath:()=>Ne});Ct.exports=Pe(Tt);var St=v((t)=>encodeURIComponent(t).replace(/[!'()*]/g,ke),"escapeUri"),ke=v((t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Ne=v((t)=>t.split("/").map(St).join("/"),"escapeUriPath")});var zt=Q((Po,Wt)=>{var Yt=function(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){const n=t.slice(r,r+2).toLowerCase();if(n in ot)e[r/2]=ot[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e},Jt=function(t){let e="";for(let r=0;r<t.byteLength;r++)e+=Ot[t[r]];return e},z=Object.defineProperty,Ve=Object.getOwnPropertyDescriptor,Ze=Object.getOwnPropertyNames,Qe=Object.prototype.hasOwnProperty,qt=(t,e)=>z(t,"name",{value:e,configurable:!0}),Ge=(t,e)=>{for(var r in e)z(t,r,{get:e[r],enumerable:!0})},Ke=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of Ze(e))if(!Qe.call(t,o)&&o!==r)z(t,o,{get:()=>e[o],enumerable:!(n=Ve(e,o))||n.enumerable})}return t},Xe=(t)=>Ke(z({},"__esModule",{value:!0}),t),jt={};Ge(jt,{fromHex:()=>Yt,toHex:()=>Jt});Wt.exports=Xe(jt);var Ot={},ot={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();if(e.length===1)e=`0${e}`;Ot[t]=e,ot[e]=t}qt(Yt,"fromHex");qt(Jt,"toHex")});var gt=A(G(),1);class Se{constructor(t){this.middlewareStack=gt.constructStack(),this.config=t}send(t,e,r){const n=typeof e!=="function"?e:void 0,o=typeof e==="function"?e:r,s=t.resolveMiddleware(this.middlewareStack,this.config,n);if(o)s(t).then((c)=>o(null,c.output),(c)=>o(c)).catch(()=>{});else return s(t).then((c)=>c.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var yt=A(G(),1),wt=A(K(),1);class xt{constructor(){this.middlewareStack=yt.constructStack()}static classBuilder(){return new bt}resolveMiddlewareWithContext(t,e,r,{middlewareFn:n,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,smithyContext:a,additionalContext:d,CommandCtor:w}){for(let g of n.bind(this)(w,t,e,r))this.middlewareStack.use(g);const f=t.concat(this.middlewareStack),{logger:p}=e,u={logger:p,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,[wt.SMITHY_CONTEXT_KEY]:{commandInstance:this,...a},...d},{requestHandler:y}=e;return f.resolve((g)=>y.handle(g.request,r||{}),u)}}class bt{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(t)=>t,this._outputFilterSensitiveLog=(t)=>t,this._serializer=null,this._deserializer=null}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,e,r={}){return this._smithyContext={service:t,operation:e,...r},this}c(t={}){return this._additionalContext=t,this}n(t,e){return this._clientName=t,this._commandName=e,this}f(t=(r)=>r,e=(r)=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=e,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}build(){const t=this;let e;return e=class extends xt{static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super();this.serialize=t._serializer,this.deserialize=t._deserializer,this.input=r??{},t._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}}var Fr=(t)=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},Pr=(t)=>{return{httpHandler:t.httpHandler()}};var Ce=A(K(),1);var Ee=function(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})};class X{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const e=new X({...t,headers:{...t.headers}});if(e.query)e.query=Ee(e.query);return e}static isInstance(t){if(!t)return!1;const e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return X.clone(this)}}class L{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}var q=A(Et(),1);function j(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=q.escapeUri(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${q.escapeUri(n[o])}`);else{let o=r;if(n||typeof n==="string")o+=`=${q.escapeUri(n)}`;e.push(o)}}return e.join("&")}import{Agent as Pt,request as Me} from"http";import{Agent as kt,request as Be} from"https";var $t=["ECONNRESET","EPIPE","ETIMEDOUT"];var _=(t)=>{const e={};for(let r of Object.keys(t)){const n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e};var At=(t,e,r=0)=>{if(!r)return;const n=setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);t.on("socket",(o)=>{if(o.connecting)o.on("connect",()=>{clearTimeout(n)});else clearTimeout(n)})};var It=(t,{keepAlive:e,keepAliveMsecs:r})=>{if(e!==!0)return;t.on("socket",(n)=>{n.setKeepAlive(e,r||0)})};var Ut=(t,e,r=0)=>{t.setTimeout(r,()=>{t.destroy(),e(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};import{Readable as De} from"stream";async function tt(t,e,r=Ft){const n=e.headers??{},o=n.Expect||n.expect;let s=-1,c=!1;if(o==="100-continue")await Promise.race([new Promise((i)=>{s=Number(setTimeout(i,Math.max(Ft,r)))}),new Promise((i)=>{t.on("continue",()=>{clearTimeout(s),i()}),t.on("error",()=>{c=!0,clearTimeout(s),i()})})]);if(!c)Le(t,e.body)}var Le=function(t,e){if(e instanceof De){e.pipe(t);return}if(e){if(Buffer.isBuffer(e)||typeof e==="string"){t.end(e);return}const r=e;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){t.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}t.end(Buffer.from(e));return}t.end()},Ft=1000;class et{static create(t){if(typeof t?.handle==="function")return t;return new et(t)}static checkSocketUsage(t,e,r=console){const{sockets:n,requests:o,maxSockets:s}=t;if(typeof s!=="number"||s===Infinity)return e;const c=15000;if(Date.now()-c<e)return e;if(n&&o)for(let i in n){const a=n[i]?.length??0,d=o[i]?.length??0;if(a>=s&&d>=2*s)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${a} and ${d} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return e}constructor(t){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((e,r)=>{if(typeof t==="function")t().then((n)=>{e(this.resolveDefaultConfig(n))}).catch(r);else e(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){const{requestTimeout:e,connectionTimeout:r,socketTimeout:n,httpAgent:o,httpsAgent:s}=t||{};return{connectionTimeout:r,requestTimeout:e??n,httpAgent:(()=>{if(o instanceof Pt||typeof o?.destroy==="function")return o;return new Pt({keepAlive:!0,maxSockets:50,...o})})(),httpsAgent:(()=>{if(s instanceof kt||typeof s?.destroy==="function")return s;return new kt({keepAlive:!0,maxSockets:50,...s})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:e}={}){if(!this.config)this.config=await this.configProvider;let r;return new Promise((n,o)=>{let s=void 0;const c=async(h)=>{await s,clearTimeout(r),n(h)},i=async(h)=>{await s,clearTimeout(r),o(h)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(e?.aborted){const h=new Error("Request aborted");h.name="AbortError",i(h);return}const a=t.protocol==="https:",d=a?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=et.checkSocketUsage(d,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const w=j(t.query||{});let f=void 0;if(t.username!=null||t.password!=null){const h=t.username??"",m=t.password??"";f=`${h}:${m}`}let p=t.path;if(w)p+=`?${w}`;if(t.fragment)p+=`#${t.fragment}`;const u={headers:t.headers,host:t.hostname,method:t.method,path:p,port:t.port,agent:d,auth:f},g=(a?Be:Me)(u,(h)=>{const m=new L({statusCode:h.statusCode||-1,reason:h.statusMessage,headers:_(h.headers),body:h});c({response:m})});if(g.on("error",(h)=>{if($t.includes(h.code))i(Object.assign(h,{name:"TimeoutError"}));else i(h)}),At(g,i,this.config.connectionTimeout),Ut(g,i,this.config.requestTimeout),e){const h=()=>{g.destroy();const m=new Error("Request aborted");m.name="AbortError",i(m)};if(typeof e.addEventListener==="function"){const m=e;m.addEventListener("abort",h,{once:!0}),g.once("close",()=>m.removeEventListener("abort",h))}else e.onabort=h}const l=u.agent;if(typeof l==="object"&&"keepAlive"in l)It(g,{keepAlive:l.keepAlive,keepAliveMsecs:l.keepAliveMsecs});s=tt(g,t,this.config.requestTimeout).catch((h)=>{return clearTimeout(r),o(h)})})}updateHttpClientConfig(t,e){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return{...r,[t]:e}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as Re} from"stream";class rt extends Re{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,e,r){this.bufferedBytes.push(t),r()}}async function qe(t){const e=[],r=t.getReader();let n=!1,o=0;while(!n){const{done:i,value:a}=await r.read();if(a)e.push(a),o+=a.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of e)s.set(i,c),c+=i.length;return s}var Nt=(t)=>{if(He(t))return qe(t);return new Promise((e,r)=>{const n=new rt;t.pipe(n),t.on("error",(o)=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){const o=new Uint8Array(Buffer.concat(this.bufferedBytes));e(o)})})},He=(t)=>typeof ReadableStream==="function"&&t instanceof ReadableStream;var Ln="***SensitiveInformation***";var Bn=(t,e)=>{for(let r of Object.keys(t)){const n=t[r],o=async function(c,i,a){const d=new n(c);if(typeof i==="function")this.send(d,i);else if(typeof a==="function"){if(typeof i!=="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(d,i||{},a)}else return this.send(d,i)},s=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");e.prototype[s]=o}};class Dt extends Error{constructor(t){super(t.message);Object.setPrototypeOf(this,Dt.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}}var Lt=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{if(t[n]==null||t[n]==="")t[n]=o});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t};class je{trace(){}debug(){}info(){}warn(){}error(){}}var Mt=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";import{Buffer as nt} from"buffer";var U=(t,e=0,r=t.byteLength-e)=>{if(!Mt(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return nt.from(t,e,r)},O=(t,e)=>{if(typeof t!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?nt.from(t,e):nt.from(t)};var Oe=/^[A-Za-z0-9+/]*={0,2}$/,Y=(t)=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Oe.exec(t))throw new TypeError("Invalid base64 string.");const e=O(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};var F=(t)=>{const e=O(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var Gn=(t)=>{if(typeof t==="string")return F(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(t)};var J=(t)=>{if(typeof t==="string")return t;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return U(t.buffer,t.byteOffset,t.byteLength).toString("utf8")};var W=(t)=>{let e;if(typeof t==="string")e=F(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return U(e.buffer,e.byteOffset,e.byteLength).toString("base64")};function Bt(t,e="utf-8"){if(e==="base64")return W(t);return J(t)}function Rt(t,e){if(e==="base64")return C.mutate(Y(t));return C.mutate(F(t))}class C extends Uint8Array{static fromString(t,e="utf-8"){switch(typeof t){case"string":return Rt(t,e);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,C.prototype),t}transformToString(t="utf-8"){return Bt(this,t)}}import{Readable as Ye} from"stream";var yo=(t,e)=>{const{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=e,i=r!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,a=i?c(o,t):void 0,d=new Ye({read:()=>{}});return t.on("data",(w)=>{const f=n(w)||0;d.push(`${f.toString(16)}\r\n`),d.push(w),d.push("\r\n")}),t.on("end",async()=>{if(d.push("0\r\n"),i){const w=r(await a);d.push(`${s}:${w}\r\n`),d.push("\r\n")}d.push(null)}),d};import{Readable as st} from"stream";import{TextDecoder as ve} from"util";async function Je(t){const e=await ze(t),r=Y(e);return new Uint8Array(r)}async function We(t){const e=[],r=t.getReader();let n=!1,o=0;while(!n){const{done:i,value:a}=await r.read();if(a)e.push(a),o+=a.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of e)s.set(i,c),c+=i.length;return s}var ze=function(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const o=n.result??"",s=o.indexOf(","),c=s>-1?s+1:o.length;e(o.substring(c))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})},Ht=(t)=>{if(typeof Blob==="function"&&t instanceof Blob)return Je(t);return We(t)};var Qt=A(zt(),1);var I=(t)=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);var Vt="The stream has already been transformed.",Gt=(t)=>{if(!Zt(t)&&!I(t)){const o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let e=!1;const r=async()=>{if(e)throw new Error(Vt);return e=!0,await Ht(t)},n=(o)=>{if(typeof o.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async(o)=>{const s=await r();if(o==="base64")return W(s);else if(o==="hex")return Qt.toHex(s);else if(o===void 0||o==="utf8"||o==="utf-8")return J(s);else if(typeof TextDecoder==="function")return new TextDecoder(o).decode(s);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(Vt);if(e=!0,Zt(t))return n(t);else if(I(t))return t;else throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},Zt=(t)=>typeof Blob==="function"&&t instanceof Blob;var Kt="The stream has already been transformed.",Yo=(t)=>{if(!(t instanceof st))try{return Gt(t)}catch(n){const o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1;const r=async()=>{if(e)throw new Error(Kt);return e=!0,await Nt(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async(n)=>{const o=await r();if(n===void 0||Buffer.isEncoding(n))return U(o.buffer,o.byteOffset,o.byteLength).toString(n);else return new ve(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(Kt);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof st.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return e=!0,st.toWeb(t)}})};import{PassThrough as vt} from"stream";async function Xt(t){if(typeof t.stream==="function")t=t.stream();return t.tee()}async function Qo(t){if(I(t))return Xt(t);const e=new vt,r=new vt;return t.pipe(e),t.pipe(r),[e,r]}import{Writable as _e} from"stream";async function _t(t,e){let r=0;const n=[],o=t.getReader();let s=!1;while(!s){const{done:a,value:d}=await o.read();if(d)n.push(d),r+=d?.byteLength??0;if(r>=e)break;s=a}o.releaseLock();const c=new Uint8Array(Math.min(e,r));let i=0;for(let a of n){if(a.byteLength>c.byteLength-i){c.set(a.subarray(0,c.byteLength-i),i);break}else c.set(a,i);i+=a.length}return c}var ts=(t,e)=>{if(I(t))return _t(t,e);return new Promise((r,n)=>{const o=new te;o.limit=e,t.pipe(o),t.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){const s=new Uint8Array(Buffer.concat(this.buffers));r(s)})})};class te extends _e{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write(t,e,r){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){const n=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-n),this.emit("finish")}r()}}var hs=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return C.mutate(t);if(!t)return C.mutate(new Uint8Array);const r=e.streamCollector(t);return C.mutate(await r)};var ps=(t)=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}};var tr=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string"){const e=parseFloat(t);if(!Number.isNaN(e)){if(String(e)!==String(t))fe.warn(ce(`Expected number but observed string: ${t}`));return e}}if(typeof t==="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)},er=Math.ceil(340282346638528860000000000000000000000),ee=(t)=>{const e=tr(t);if(e!==void 0&&!Number.isNaN(e)&&e!==Infinity&&e!==(-Infinity)){if(Math.abs(e)>er)throw new TypeError(`Expected 32-bit float, got ${t}`)}return e},it=(t)=>{if(t===null||t===void 0)return;if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)};var re=(t)=>ct(t,32),ne=(t)=>ct(t,16),oe=(t)=>ct(t,8),ct=(t,e)=>{const r=it(t);if(r!==void 0&&rr(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},rr=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},ds=(t,e)=>{if(t===null||t===void 0){if(e)throw new TypeError(`Expected a non-null value for ${e}`);throw new TypeError("Expected a non-null value")}return t},ls=(t)=>{if(t===null||t===void 0)return;if(typeof t==="object"&&!Array.isArray(t))return t;const e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},ms=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string")return t;if(["boolean","number","bigint"].includes(typeof t))return fe.warn(ce(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)};var se=(t)=>{if(typeof t=="string")return ee(M(t));return ee(t)},nr=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,M=(t)=>{const e=t.match(nr);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)};var gs=(t)=>{if(typeof t==="string")return it(M(t));return it(t)};var ys=(t)=>{if(typeof t==="string")return re(M(t));return re(t)},P=(t)=>{if(typeof t==="string")return ne(M(t));return ne(t)},ie=(t)=>{if(typeof t==="string")return oe(M(t));return oe(t)},ce=(t)=>{return String(new TypeError(t).stack||t).split("\n").slice(0,5).filter((e)=>!e.includes("stackTraceWarning")).join("\n")},fe={warn:console.warn};function Ts(t){const e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),c=t.getUTCMinutes(),i=t.getUTCSeconds(),a=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`,w=c<10?`0${c}`:`${c}`,f=i<10?`0${i}`:`${i}`;return`${or[n]}, ${a} ${ut[r]} ${e} ${d}:${w}:${f} GMT`}var or=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ut=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sr=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ss=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=sr.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,a,d]=e,w=P(k(n)),f=T(o,"month",1,12),p=T(s,"day",1,31);return B(w,f,p,{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d})},ir=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Cs=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=ir.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,a,d,w]=e,f=P(k(n)),p=T(o,"month",1,12),u=T(s,"day",1,31),y=B(f,p,u,{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d});if(w.toUpperCase()!="Z")y.setTime(y.getTime()-yr(w));return y},cr=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),fr=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),ur=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),Es=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=cr.exec(t);if(e){const[r,n,o,s,c,i,a,d]=e;return B(P(k(s)),ft(o),T(n,"day",1,31),{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d})}if(e=fr.exec(t),e){const[r,n,o,s,c,i,a,d]=e;return pr(B(hr(s),ft(o),T(n,"day",1,31),{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d}))}if(e=ur.exec(t),e){const[r,n,o,s,c,i,a,d]=e;return B(P(k(d)),ft(n),T(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")};var B=(t,e,r,n)=>{const o=e-1;return lr(t,o,r),new Date(Date.UTC(t,o,r,T(n.hours,"hour",0,23),T(n.minutes,"minute",0,59),T(n.seconds,"seconds",0,60),gr(n.fractionalMilliseconds)))},hr=(t)=>{const e=(new Date()).getUTCFullYear(),r=Math.floor(e/100)*100+P(k(t));if(r<e)return r+100;return r},ar=1576800000000,pr=(t)=>{if(t.getTime()-(new Date()).getTime()>ar)return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()));return t},ft=(t)=>{const e=ut.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},dr=[31,28,31,30,31,30,31,31,30,31,30,31],lr=(t,e,r)=>{let n=dr[e];if(e===1&&mr(t))n=29;if(r>n)throw new TypeError(`Invalid day for ${ut[e]} in ${t}: ${r}`)},mr=(t)=>{return t%4===0&&(t%100!==0||t%400===0)},T=(t,e,r,n)=>{const o=ie(k(t));if(o<r||o>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return o},gr=(t)=>{if(t===null||t===void 0)return 0;return se("0."+t)*1000},yr=(t)=>{const e=t[0];let r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);const n=Number(t.substring(1,3)),o=Number(t.substring(4,6));return r*(n*60+o)*60*1000},k=(t)=>{let e=0;while(e<t.length-1&&t.charAt(e)==="0")e++;if(e===0)return t;return t.slice(e)};var wr=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const o=xr(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw Lt(c,e)},Is=(t)=>{return({output:e,parsedBody:r,errorCode:n})=>{wr({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})}},xr=(t)=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]});var Fs=(t)=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var ue=!1,ks=(t)=>{if(t&&!ue&&parseInt(t.substring(1,t.indexOf(".")))<16)ue=!0};var ht=A(K(),1);var he=(t)=>{const e=[];for(let r in ht.AlgorithmId){const n=ht.AlgorithmId[r];if(t[n]===void 0)continue;e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},ae=(t)=>{const e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e};var pe=(t)=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},de=(t)=>{const e={};return e.retryStrategy=t.retryStrategy(),e};var Rs=(t)=>{return{...he(t),...pe(t)}};var Hs=(t)=>{return{...ae(t),...de(t)}};function br(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var at=function(){const t=Object.getPrototypeOf(this).constructor,r=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(r,t.prototype),r};at.prototype=Object.create(String.prototype,{constructor:{value:at,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(at,String);function Tr(t,e,r){let n,o,s;if(typeof e==="undefined"&&typeof r==="undefined")n={},s=t;else if(n=t,typeof e==="function")return o=e,s=r,Sr(n,o,s);else s=e;for(let c of Object.keys(s)){if(!Array.isArray(s[c])){n[c]=s[c];continue}le(n,null,s,c)}return n}var Vs=(t,e)=>{const r={};for(let n in e)le(r,t,e,n);return r},Sr=(t,e,r)=>{return Tr(t,Object.entries(r).reduce((n,[o,s])=>{if(Array.isArray(s))n[o]=s;else if(typeof s==="function")n[o]=[e,s()];else n[o]=[e,s];return n},{}))},le=(t,e,r,n)=>{if(e!==null){let c=r[n];if(typeof c==="function")c=[,c];const[i=Cr,a=Er,d=n]=c;if(typeof i==="function"&&i(e[d])||typeof i!=="function"&&!!i)t[n]=a(e[d]);return}let[o,s]=r[n];if(typeof s==="function"){let c;const i=o===void 0&&(c=s())!=null,a=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(i)t[n]=c;else if(a)t[n]=s()}else{const c=o===void 0&&s!=null,i=typeof o==="function"&&!!o(s)||typeof o!=="function"&&!!o;if(c||i)t[n]=s}},Cr=(t)=>t!=null,Er=(t)=>t;var Ks=(t)=>t.toISOString().replace(".000Z","Z");var me=(t)=>{if(t==null)return{};if(Array.isArray(t))return t.filter((e)=>e!=null).map(me);if(typeof t==="object"){const e={};for(let r of Object.keys(t)){if(t[r]==null)continue;e[r]=me(t[r])}return e}return t};export{Fr as z,Pr as A,X as B,L as C,je as D,G as E,Se as F,Mt as G,U as H,O as I,Y as J,F as K,Gn as L,J as M,W as N,yo as O,Et as P,et as Q,Nt as R,zt as S,Yo as T,Qo as U,ts as V,hs as W,xt as X,Ln as Y,Bn as Z,ps as _,it as $,re as aa,ds as ba,ls as ca,ms as da,gs as ea,ys as fa,Ts as ga,Ss as ha,Cs as ia,Es as ja,Dt as ka,Lt as la,Is as ma,Fs as na,ks as oa,Rs as pa,Hs as qa,br as ra,Tr as sa,Vs as ta,Ks as ua,me as va};
@@ -1 +0,0 @@
1
- class n extends Error{constructor(t,e=!0){let o,r=!0;if(typeof e==="boolean")o=void 0,r=e;else if(e!=null&&typeof e==="object")o=e.logger,r=e.tryNextLink??!0;super(t);this.name="ProviderError",this.tryNextLink=r,Object.setPrototypeOf(this,n.prototype),o?.debug?.(`@smithy/property-provider ${r?"->":"(!)"} ${t}`)}static from(t,e=!0){return Object.assign(new this(t.message,e),t)}}class u extends n{constructor(t,e=!0){super(t,e);this.name="CredentialsProviderError",Object.setPrototypeOf(this,u.prototype)}}class l extends n{constructor(t,e=!0){super(t,e);this.name="TokenProviderError",Object.setPrototypeOf(this,l.prototype)}}var v=(...t)=>async()=>{if(t.length===0)throw new n("No providers in chain");let e;for(let o of t)try{return await o()}catch(r){if(e=r,r?.tryNextLink)continue;throw r}throw e};var w=(t)=>()=>Promise.resolve(t);var b=(t,e,o)=>{let r,i,s,f=!1;const a=async()=>{if(!i)i=t();try{r=await i,s=!0,f=!1}finally{i=void 0}return r};if(e===void 0)return async(c)=>{if(!s||c?.forceRefresh)r=await a();return r};return async(c)=>{if(!s||c?.forceRefresh)r=await a();if(f)return r;if(o&&!o(r))return f=!0,r;if(e(r))return await a(),r;return r}};export{n as yb,u as zb,l as Ab,v as Bb,w as Cb,b as Db};
@@ -1,6 +0,0 @@
1
- // @bun
2
- import{y as h} from"./chunk-7ce930fe69575c87.js";import{C as g,Q as P,T as w,ha as I} from"./chunk-c85fc7168a708cb6.js";import"./chunk-09dd89e1046786a5.js";import{lb as d} from"./chunk-c72bfaa252a03f6f.js";var i=h(d(),1);import A from"fs/promises";var C=h(d(),1);var E="169.254.170.2",R="169.254.170.23",p="[fd00:ec2::23]",S=(e,c)=>{if(e.protocol==="https:")return;if(e.hostname===E||e.hostname===R||e.hostname===p)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;const a=e.hostname.split("."),r=(t)=>{const s=parseInt(t,10);return 0<=s&&s<=255};if(a[0]==="127"&&r(a[1])&&r(a[2])&&r(a[3])&&a.length===4)return}throw new C.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
3
- - loopback CIDR 127.0.0.0/8 or [::1/128]
4
- - ECS container host 169.254.170.2
5
- - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:c})};var m=h(d(),1);function K(e){return new g({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((c,[a,r])=>{return c[a]=r,c},{}),fragment:e.hash})}async function T(e,c){const r=await w(e.body).transformToString();if(e.statusCode===200){const t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new m.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:c});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:I(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new m.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c}),{Code:t.Code,Message:t.Message})}throw new m.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c})}var x=(e,c,a)=>{return async()=>{for(let r=0;r<c;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,a))}return await e()}};var O="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",b="http://169.254.170.2",_="AWS_CONTAINER_CREDENTIALS_FULL_URI",v="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",D=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let c;const a=e.awsContainerCredentialsRelativeUri??process.env[O],r=e.awsContainerCredentialsFullUri??process.env[_],t=e.awsContainerAuthorizationToken??process.env[B],s=e.awsContainerAuthorizationTokenFile??process.env[v],n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console.warn:e.logger.warn;if(a&&r)n("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),n("awsContainerCredentialsFullUri will take precedence.");if(t&&s)n("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),n("awsContainerAuthorizationToken will take precedence.");if(r)c=r;else if(a)c=`${b}${a}`;else throw new i.CredentialsProviderError(`No HTTP credential provider host provided.
6
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});const y=new URL(c);S(y,e.logger);const u=new P({requestTimeout:e.timeout??1000,connectionTimeout:e.timeout??1000});return x(async()=>{const o=K(y);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await A.readFile(s)).toString();try{const f=await u.handle(o);return T(f.response)}catch(f){throw new i.CredentialsProviderError(String(f),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000)};export{D as fromHttp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{s as h} from"./chunk-c675f193d459818e.js";import"./chunk-72821f055108528e.js";import{jb as _} from"./chunk-c29701ffef4ca07a.js";import{mb as N,nb as W,ob as I,rb as v,sb as P} from"./chunk-ee604d0215ea07e6.js";var T=h(_(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var u=h(_(),1);var K=300000,g="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var R={},b=async(e)=>{const{SSOOIDCClient:r}=await import("./chunk-36b8e37ca93fcc67.js");if(R[e])return R[e];const s=new r({region:e});return R[e]=s,s};var G=async(e,r)=>{const{CreateTokenCommand:s}=await import("./chunk-36b8e37ca93fcc67.js");return(await b(r)).send(new s({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var U=h(_(),1);var D=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new U.TokenProviderError(`Token is expired. ${g}`,!1)};var q=h(_(),1);var p=(e,r,s=!1)=>{if(typeof r==="undefined")throw new q.TokenProviderError(`Value not present for '${e}' in SSO Token${s?". Cannot refresh":""}. ${g}`,!1)};import{promises as B} from"fs";var{writeFile:Q}=B,j=(e,r)=>{const s=W(e),t=JSON.stringify(r,null,2);return Q(s,t)};var X=new Date(0),z=(e={})=>async()=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");const r=await P(e),s=N(e),t=r[s];if(!t)throw new u.TokenProviderError(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!t.sso_session)throw new u.TokenProviderError(`Profile '${s}' is missing required property 'sso_session'.`);const i=t.sso_session,a=(await v(e))[i];if(!a)throw new u.TokenProviderError(`Sso session '${i}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new u.TokenProviderError(`Sso session '${i}' is missing required property '${n}'.`,!1);const{sso_start_url:l,sso_region:f}=a;let o;try{o=await I(i)}catch(n){throw new u.TokenProviderError(`The SSO session token associated with profile=${s} was not found or is invalid. ${g}`,!1)}p("accessToken",o.accessToken),p("expiresAt",o.expiresAt);const{accessToken:E,expiresAt:x}=o,c={token:E,expiration:new Date(x)};if(c.expiration.getTime()-Date.now()>K)return c;if(Date.now()-X.getTime()<30000)return D(c),c;p("clientId",o.clientId,!0),p("clientSecret",o.clientSecret,!0),p("refreshToken",o.refreshToken,!0);try{X.setTime(Date.now());const n=await G(o,f);p("accessToken",n.accessToken),p("expiresIn",n.expiresIn);const w=new Date(Date.now()+n.expiresIn*1000);try{await j(i,{...o,accessToken:n.accessToken,expiresAt:w.toISOString(),refreshToken:n.refreshToken})}catch(C){}return{token:n.accessToken,expiration:w}}catch(n){return D(c),c}};var k=h(_(),1);var y=!1,A=async({ssoStartUrl:e,ssoSession:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:S,clientConfig:a,profile:l,logger:f})=>{let o;const E="To refresh this SSO session run aws sso login with the corresponding profile.";if(r)try{const d=await z({profile:l})();o={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:y,logger:f})}else try{o=await I(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f})}if(new Date(o.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f});const{accessToken:x}=o,{SSOClient:c,GetRoleCredentialsCommand:n}=await import("./chunk-beca91bf7cc216cd.js"),w=S||new c(Object.assign({},a??{},{region:a?.region??t}));let C;try{C=await w.send(new n({accountId:s,roleName:i,accessToken:x}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:y,logger:f})}const{roleCredentials:{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:F,credentialScope:L,accountId:M}={}}=C;if(!m||!O||!$||!F)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:y,logger:f});return{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:new Date(F),...L&&{credentialScope:L},...M&&{accountId:M}}};var J=h(_(),1),V=(e,r)=>{const{sso_start_url:s,sso_account_id:t,sso_region:i,sso_role_name:S}=e;if(!s||!t||!i||!S)throw new J.CredentialsProviderError('Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", '+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:r});return e};var Ee=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoSession:S}=e,{ssoClient:a}=e,l=N(e);if(!r&&!s&&!t&&!i&&!S){const o=(await P(e))[l];if(!o)throw new T.CredentialsProviderError(`Profile ${l} was not found.`,{logger:e.logger});if(!H(o))throw new T.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`,{logger:e.logger});if(o?.sso_session){const m=(await v(e))[o.sso_session],O=` configurations in profile ${l} and sso-session ${o.sso_session}`;if(t&&t!==m.sso_region)throw new T.CredentialsProviderError("Conflicting SSO region"+O,{tryNextLink:!1,logger:e.logger});if(r&&r!==m.sso_start_url)throw new T.CredentialsProviderError("Conflicting SSO start_url"+O,{tryNextLink:!1,logger:e.logger});o.sso_region=m.sso_region,o.sso_start_url=m.sso_start_url}const{sso_start_url:E,sso_account_id:x,sso_region:c,sso_role_name:n,sso_session:w}=V(o,e.logger);return A({ssoStartUrl:E,ssoSession:w,ssoAccountId:x,ssoRegion:c,ssoRoleName:n,ssoClient:a,clientConfig:e.clientConfig,profile:l})}else if(!r||!s||!t||!i)throw new T.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return A({ssoStartUrl:r,ssoSession:S,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:a,clientConfig:e.clientConfig,profile:l})};export{V as validateSsoProfile,H as isSsoProfile,Ee as fromSSO};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{y as l} from"./chunk-7ce930fe69575c87.js";import{tb as m} from"./chunk-345f66382cf35683.js";var E=l(m(),1);import{readFileSync as S} from"fs";var t=(e)=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:c,policyArns:i,policy:_,durationSeconds:N}=e;let{roleAssumerWithWebIdentity:s}=e;if(!s){const{getDefaultRoleAssumerWithWebIdentity:d}=await import("./chunk-4d46e390f99b97e0.js");s=d({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return s({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:c,PolicyArns:i,Policy:_,DurationSeconds:N})};var p="AWS_WEB_IDENTITY_TOKEN_FILE",f="AWS_ROLE_ARN",T="AWS_ROLE_SESSION_NAME",I=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const o=e?.webIdentityTokenFile??process.env[p],r=e?.roleArn??process.env[f],n=e?.roleSessionName??process.env[T];if(!o||!r)throw new E.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});return t({...e,webIdentityToken:S(o,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()};export{t as fromWebToken,I as fromTokenFile};
@@ -1,3 +0,0 @@
1
- import{y as U,z as at} from"./chunk-7ce930fe69575c87.js";import{ib as Q} from"./chunk-09dd89e1046786a5.js";var Z=at((pr,dt)=>{var{defineProperty:H,getOwnPropertyDescriptor:he,getOwnPropertyNames:ae}=Object,pe=Object.prototype.hasOwnProperty,b=(t,e)=>H(t,"name",{value:e,configurable:!0}),de=(t,e)=>{for(var r in e)H(t,r,{get:e[r],enumerable:!0})},me=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of ae(e))if(!pe.call(t,o)&&o!==r)H(t,o,{get:()=>e[o],enumerable:!(n=he(e,o))||n.enumerable})}return t},le=(t)=>me(H({},"__esModule",{value:!0}),t),pt={};de(pt,{constructStack:()=>V});dt.exports=le(pt);var $=b((t,e)=>{const r=[];if(t)r.push(t);if(e)for(let n of e)r.push(n);return r},"getAllAliases"),E=b((t,e)=>{return`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`},"getMiddlewareNameWithAliases"),V=b(()=>{let t=[],e=[],r=!1;const n=new Set,o=b((f)=>f.sort((p,u)=>ut[u.step]-ut[p.step]||ht[u.priority||"normal"]-ht[p.priority||"normal"]),"sort"),s=b((f)=>{let p=!1;const u=b((y)=>{const g=$(y.name,y.aliases);if(g.includes(f)){p=!0;for(let m of g)n.delete(m);return!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},"removeByName"),c=b((f)=>{let p=!1;const u=b((y)=>{if(y.middleware===f){p=!0;for(let g of $(y.name,y.aliases))n.delete(g);return!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},"removeByReference"),i=b((f)=>{var p;return t.forEach((u)=>{f.add(u.middleware,{...u})}),e.forEach((u)=>{f.addRelativeTo(u.middleware,{...u})}),(p=f.identifyOnResolve)==null||p.call(f,x.identifyOnResolve()),f},"cloneTo"),a=b((f)=>{const p=[];return f.before.forEach((u)=>{if(u.before.length===0&&u.after.length===0)p.push(u);else p.push(...a(u))}),p.push(f),f.after.reverse().forEach((u)=>{if(u.before.length===0&&u.after.length===0)p.push(u);else p.push(...a(u))}),p},"expandRelativeMiddlewareList"),d=b((f=!1)=>{const p=[],u=[],y={};return t.forEach((m)=>{const h={...m,before:[],after:[]};for(let l of $(h.name,h.aliases))y[l]=h;p.push(h)}),e.forEach((m)=>{const h={...m,before:[],after:[]};for(let l of $(h.name,h.aliases))y[l]=h;u.push(h)}),u.forEach((m)=>{if(m.toMiddleware){const h=y[m.toMiddleware];if(h===void 0){if(f)return;throw new Error(`${m.toMiddleware} is not found when adding ${E(m.name,m.aliases)} middleware ${m.relation} ${m.toMiddleware}`)}if(m.relation==="after")h.after.push(m);if(m.relation==="before")h.before.push(m)}}),o(p).map(a).reduce((m,h)=>{return m.push(...h),m},[])},"getMiddlewareList"),x={add:(f,p={})=>{const{name:u,override:y,aliases:g}=p,m={step:"initialize",priority:"normal",middleware:f,...p},h=$(u,g);if(h.length>0){if(h.some((l)=>n.has(l))){if(!y)throw new Error(`Duplicate middleware name '${E(u,g)}'`);for(let l of h){const S=t.findIndex((N)=>{var D;return N.name===l||((D=N.aliases)==null?void 0:D.some((z)=>z===l))});if(S===-1)continue;const w=t[S];if(w.step!==m.step||m.priority!==w.priority)throw new Error(`"${E(w.name,w.aliases)}" middleware with ${w.priority} priority in ${w.step} step cannot be overridden by "${E(u,g)}" middleware with ${m.priority} priority in ${m.step} step.`);t.splice(S,1)}}for(let l of h)n.add(l)}t.push(m)},addRelativeTo:(f,p)=>{const{name:u,override:y,aliases:g}=p,m={middleware:f,...p},h=$(u,g);if(h.length>0){if(h.some((l)=>n.has(l))){if(!y)throw new Error(`Duplicate middleware name '${E(u,g)}'`);for(let l of h){const S=e.findIndex((N)=>{var D;return N.name===l||((D=N.aliases)==null?void 0:D.some((z)=>z===l))});if(S===-1)continue;const w=e[S];if(w.toMiddleware!==m.toMiddleware||w.relation!==m.relation)throw new Error(`"${E(w.name,w.aliases)}" middleware ${w.relation} "${w.toMiddleware}" middleware cannot be overridden by "${E(u,g)}" middleware ${m.relation} "${m.toMiddleware}" middleware.`);e.splice(S,1)}}for(let l of h)n.add(l)}e.push(m)},clone:()=>i(V()),use:(f)=>{f.applyToStack(x)},remove:(f)=>{if(typeof f==="string")return s(f);else return c(f)},removeByTag:(f)=>{let p=!1;const u=b((y)=>{const{tags:g,name:m,aliases:h}=y;if(g&&g.includes(f)){const l=$(m,h);for(let S of l)n.delete(S);return p=!0,!1}return!0},"filterCb");return t=t.filter(u),e=e.filter(u),p},concat:(f)=>{var p;const u=i(V());return u.use(f),u.identifyOnResolve(r||u.identifyOnResolve()||(((p=f.identifyOnResolve)==null?void 0:p.call(f))??!1)),u},applyToStack:i,identify:()=>{return d(!0).map((f)=>{const p=f.step??f.relation+" "+f.toMiddleware;return E(f.name,f.aliases)+" - "+p})},identifyOnResolve(f){if(typeof f==="boolean")r=f;return r},resolve:(f,p)=>{for(let u of d().map((y)=>y.middleware).reverse())f=u(f,p);if(r)console.log(x.identify());return f}};return x},"constructStack"),ut={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ht={high:3,normal:2,low:1}});var qt=at((Co,Ht)=>{var Bt=function(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){const n=t.slice(r,r+2).toLowerCase();if(n in et)e[r/2]=et[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e},Rt=function(t){let e="";for(let r=0;r<t.byteLength;r++)e+=Mt[t[r]];return e},W=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Le=Object.getOwnPropertyNames,Me=Object.prototype.hasOwnProperty,Dt=(t,e)=>W(t,"name",{value:e,configurable:!0}),Be=(t,e)=>{for(var r in e)W(t,r,{get:e[r],enumerable:!0})},Re=(t,e,r,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let o of Le(e))if(!Me.call(t,o)&&o!==r)W(t,o,{get:()=>e[o],enumerable:!(n=De(e,o))||n.enumerable})}return t},He=(t)=>Re(W({},"__esModule",{value:!0}),t),Lt={};Be(Lt,{fromHex:()=>Bt,toHex:()=>Rt});Ht.exports=He(Lt);var Mt={},et={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();if(e.length===1)e=`0${e}`;Mt[t]=e,et[e]=t}Dt(Bt,"fromHex");Dt(Rt,"toHex")});var mt=U(Z(),1);class ge{constructor(t){this.middlewareStack=mt.constructStack(),this.config=t}send(t,e,r){const n=typeof e!=="function"?e:void 0,o=typeof e==="function"?e:r,s=t.resolveMiddleware(this.middlewareStack,this.config,n);if(o)s(t).then((c)=>o(null,c.output),(c)=>o(c)).catch(()=>{});else return s(t).then((c)=>c.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var lt=U(Z(),1),gt=U(Q(),1);class yt{constructor(){this.middlewareStack=lt.constructStack()}static classBuilder(){return new xt}resolveMiddlewareWithContext(t,e,r,{middlewareFn:n,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,smithyContext:a,additionalContext:d,CommandCtor:x}){for(let g of n.bind(this)(x,t,e,r))this.middlewareStack.use(g);const f=t.concat(this.middlewareStack),{logger:p}=e,u={logger:p,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,[gt.SMITHY_CONTEXT_KEY]:{commandInstance:this,...a},...d},{requestHandler:y}=e;return f.resolve((g)=>y.handle(g.request,r||{}),u)}}class xt{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(t)=>t,this._outputFilterSensitiveLog=(t)=>t,this._serializer=null,this._deserializer=null}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,e,r={}){return this._smithyContext={service:t,operation:e,...r},this}c(t={}){return this._additionalContext=t,this}n(t,e){return this._clientName=t,this._commandName=e,this}f(t=(r)=>r,e=(r)=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=e,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}build(){const t=this;let e;return e=class extends yt{static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super();this.serialize=t._serializer,this.deserialize=t._deserializer,this.input=r??{},t._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:e,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}}var gr=(t)=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},yr=(t)=>{return{httpHandler:t.httpHandler()}};var ye=U(Q(),1);var xe=function(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})};class G{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const e=new G({...t,headers:{...t.headers}});if(e.query)e.query=xe(e.query);return e}static isInstance(t){if(!t)return!1;const e=t;return"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&typeof e.query==="object"&&typeof e.headers==="object"}clone(){return G.clone(this)}}class L{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const e=t;return typeof e.statusCode==="number"&&typeof e.headers==="object"}}var M=(t)=>encodeURIComponent(t).replace(/[!'()*]/g,we),we=(t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function q(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=M(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)e.push(`${r}=${M(n[o])}`);else{let o=r;if(n||typeof n==="string")o+=`=${M(n)}`;e.push(o)}}return e.join("&")}import{Agent as Et,request as Se} from"http";import{Agent as $t,request as Ce} from"https";var wt=["ECONNRESET","EPIPE","ETIMEDOUT"];var K=(t)=>{const e={};for(let r of Object.keys(t)){const n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e};var bt=(t,e,r=0)=>{if(!r)return;const n=setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);t.on("socket",(o)=>{if(o.connecting)o.on("connect",()=>{clearTimeout(n)});else clearTimeout(n)})};var Tt=(t,{keepAlive:e,keepAliveMsecs:r})=>{if(e!==!0)return;t.on("socket",(n)=>{n.setKeepAlive(e,r||0)})};var St=(t,e,r=0)=>{t.setTimeout(r,()=>{t.destroy(),e(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};import{Readable as be} from"stream";async function X(t,e,r=Ct){const n=e.headers??{},o=n.Expect||n.expect;let s=-1,c=!1;if(o==="100-continue")await Promise.race([new Promise((i)=>{s=Number(setTimeout(i,Math.max(Ct,r)))}),new Promise((i)=>{t.on("continue",()=>{clearTimeout(s),i()}),t.on("error",()=>{c=!0,clearTimeout(s),i()})})]);if(!c)Te(t,e.body)}var Te=function(t,e){if(e instanceof be){e.pipe(t);return}if(e){if(Buffer.isBuffer(e)||typeof e==="string"){t.end(e);return}const r=e;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){t.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}t.end(Buffer.from(e));return}t.end()},Ct=1000;class _{static create(t){if(typeof t?.handle==="function")return t;return new _(t)}static checkSocketUsage(t,e,r=console){const{sockets:n,requests:o,maxSockets:s}=t;if(typeof s!=="number"||s===Infinity)return e;const c=15000;if(Date.now()-c<e)return e;if(n&&o)for(let i in n){const a=n[i]?.length??0,d=o[i]?.length??0;if(a>=s&&d>=2*s)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${a} and ${d} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return e}constructor(t){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((e,r)=>{if(typeof t==="function")t().then((n)=>{e(this.resolveDefaultConfig(n))}).catch(r);else e(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){const{requestTimeout:e,connectionTimeout:r,socketTimeout:n,httpAgent:o,httpsAgent:s}=t||{};return{connectionTimeout:r,requestTimeout:e??n,httpAgent:(()=>{if(o instanceof Et||typeof o?.destroy==="function")return o;return new Et({keepAlive:!0,maxSockets:50,...o})})(),httpsAgent:(()=>{if(s instanceof $t||typeof s?.destroy==="function")return s;return new $t({keepAlive:!0,maxSockets:50,...s})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:e}={}){if(!this.config)this.config=await this.configProvider;let r;return new Promise((n,o)=>{let s=void 0;const c=async(h)=>{await s,clearTimeout(r),n(h)},i=async(h)=>{await s,clearTimeout(r),o(h)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(e?.aborted){const h=new Error("Request aborted");h.name="AbortError",i(h);return}const a=t.protocol==="https:",d=a?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=_.checkSocketUsage(d,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const x=q(t.query||{});let f=void 0;if(t.username!=null||t.password!=null){const h=t.username??"",l=t.password??"";f=`${h}:${l}`}let p=t.path;if(x)p+=`?${x}`;if(t.fragment)p+=`#${t.fragment}`;const u={headers:t.headers,host:t.hostname,method:t.method,path:p,port:t.port,agent:d,auth:f},g=(a?Ce:Se)(u,(h)=>{const l=new L({statusCode:h.statusCode||-1,reason:h.statusMessage,headers:K(h.headers),body:h});c({response:l})});if(g.on("error",(h)=>{if(wt.includes(h.code))i(Object.assign(h,{name:"TimeoutError"}));else i(h)}),bt(g,i,this.config.connectionTimeout),St(g,i,this.config.requestTimeout),e){const h=()=>{g.destroy();const l=new Error("Request aborted");l.name="AbortError",i(l)};if(typeof e.addEventListener==="function"){const l=e;l.addEventListener("abort",h,{once:!0}),g.once("close",()=>l.removeEventListener("abort",h))}else e.onabort=h}const m=u.agent;if(typeof m==="object"&&"keepAlive"in m)Tt(g,{keepAlive:m.keepAlive,keepAliveMsecs:m.keepAliveMsecs});s=X(g,t,this.config.requestTimeout).catch((h)=>{return clearTimeout(r),o(h)})})}updateHttpClientConfig(t,e){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return{...r,[t]:e}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as Ee} from"stream";class v extends Ee{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,e,r){this.bufferedBytes.push(t),r()}}async function Ae(t){const e=[],r=t.getReader();let n=!1,o=0;while(!n){const{done:i,value:a}=await r.read();if(a)e.push(a),o+=a.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of e)s.set(i,c),c+=i.length;return s}var At=(t)=>{if($e(t))return Ae(t);return new Promise((e,r)=>{const n=new v;t.pipe(n),t.on("error",(o)=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){const o=new Uint8Array(Buffer.concat(this.bufferedBytes));e(o)})})},$e=(t)=>typeof ReadableStream==="function"&&t instanceof ReadableStream;var Un="***SensitiveInformation***";var Fn=(t,e)=>{for(let r of Object.keys(t)){const n=t[r],o=async function(c,i,a){const d=new n(c);if(typeof i==="function")this.send(d,i);else if(typeof a==="function"){if(typeof i!=="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(d,i||{},a)}else return this.send(d,i)},s=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");e.prototype[s]=o}};class Ut extends Error{constructor(t){super(t.message);Object.setPrototypeOf(this,Ut.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}}var It=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,o])=>{if(t[n]==null||t[n]==="")t[n]=o});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t};class Ue{trace(){}debug(){}info(){}warn(){}error(){}}var Ft=(t)=>typeof ArrayBuffer==="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]";import{Buffer as tt} from"buffer";var I=(t,e=0,r=t.byteLength-e)=>{if(!Ft(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return tt.from(t,e,r)},j=(t,e)=>{if(typeof t!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?tt.from(t,e):tt.from(t)};var Ie=/^[A-Za-z0-9+/]*={0,2}$/,O=(t)=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Ie.exec(t))throw new TypeError("Invalid base64 string.");const e=j(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};var F=(t)=>{const e=j(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var Yn=(t)=>{if(typeof t==="string")return F(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(t)};var Y=(t)=>{if(typeof t==="string")return t;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return I(t.buffer,t.byteOffset,t.byteLength).toString("utf8")};var J=(t)=>{let e;if(typeof t==="string")e=F(t);else e=t;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return I(e.buffer,e.byteOffset,e.byteLength).toString("base64")};function Pt(t,e="utf-8"){if(e==="base64")return J(t);return Y(t)}function kt(t,e){if(e==="base64")return C.mutate(O(t));return C.mutate(F(t))}class C extends Uint8Array{static fromString(t,e="utf-8"){switch(typeof t){case"string":return kt(t,e);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,C.prototype),t}transformToString(t="utf-8"){return Pt(this,t)}}import{Readable as Fe} from"stream";var uo=(t,e)=>{const{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=e,i=r!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,a=i?c(o,t):void 0,d=new Fe({read:()=>{}});return t.on("data",(x)=>{const f=n(x)||0;d.push(`${f.toString(16)}\r\n`),d.push(x),d.push("\r\n")}),t.on("end",async()=>{if(d.push("0\r\n"),i){const x=r(await a);d.push(`${s}:${x}\r\n`),d.push("\r\n")}d.push(null)}),d};import{Readable as rt} from"stream";import{TextDecoder as qe} from"util";async function Pe(t){const e=await Ne(t),r=O(e);return new Uint8Array(r)}async function ke(t){const e=[],r=t.getReader();let n=!1,o=0;while(!n){const{done:i,value:a}=await r.read();if(a)e.push(a),o+=a.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of e)s.set(i,c),c+=i.length;return s}var Ne=function(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const o=n.result??"",s=o.indexOf(","),c=s>-1?s+1:o.length;e(o.substring(c))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})},Nt=(t)=>{if(typeof Blob==="function"&&t instanceof Blob)return Pe(t);return ke(t)};var Yt=U(qt(),1);var A=(t)=>typeof ReadableStream==="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream);var jt="The stream has already been transformed.",Jt=(t)=>{if(!Ot(t)&&!A(t)){const o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let e=!1;const r=async()=>{if(e)throw new Error(jt);return e=!0,await Nt(t)},n=(o)=>{if(typeof o.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return o.stream()};return Object.assign(t,{transformToByteArray:r,transformToString:async(o)=>{const s=await r();if(o==="base64")return J(s);else if(o==="hex")return Yt.toHex(s);else if(o===void 0||o==="utf8"||o==="utf-8")return Y(s);else if(typeof TextDecoder==="function")return new TextDecoder(o).decode(s);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(e)throw new Error(jt);if(e=!0,Ot(t))return n(t);else if(A(t))return t;else throw new Error(`Cannot transform payload to web stream, got ${t}`)}})},Ot=(t)=>typeof Blob==="function"&&t instanceof Blob;var Wt="The stream has already been transformed.",Mo=(t)=>{if(!(t instanceof rt))try{return Jt(t)}catch(n){const o=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let e=!1;const r=async()=>{if(e)throw new Error(Wt);return e=!0,await At(t)};return Object.assign(t,{transformToByteArray:r,transformToString:async(n)=>{const o=await r();if(n===void 0||Buffer.isEncoding(n))return I(o.buffer,o.byteOffset,o.byteLength).toString(n);else return new qe(n).decode(o)},transformToWebStream:()=>{if(e)throw new Error(Wt);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof rt.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return e=!0,rt.toWeb(t)}})};import{PassThrough as Vt} from"stream";async function zt(t){if(typeof t.stream==="function")t=t.stream();return t.tee()}async function Oo(t){if(A(t))return zt(t);const e=new Vt,r=new Vt;return t.pipe(e),t.pipe(r),[e,r]}import{Writable as je} from"stream";async function Zt(t,e){let r=0;const n=[],o=t.getReader();let s=!1;while(!s){const{done:a,value:d}=await o.read();if(d)n.push(d),r+=d?.byteLength??0;if(r>=e)break;s=a}o.releaseLock();const c=new Uint8Array(Math.min(e,r));let i=0;for(let a of n){if(a.byteLength>c.byteLength-i){c.set(a.subarray(0,c.byteLength-i),i);break}else c.set(a,i);i+=a.length}return c}var Zo=(t,e)=>{if(A(t))return Zt(t,e);return new Promise((r,n)=>{const o=new Qt;o.limit=e,t.pipe(o),t.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){const s=new Uint8Array(Buffer.concat(this.buffers));r(s)})})};class Qt extends je{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write(t,e,r){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){const n=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-n),this.emit("finish")}r()}}var ns=async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return C.mutate(t);if(!t)return C.mutate(new Uint8Array);const r=e.streamCollector(t);return C.mutate(await r)};var ss=(t)=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}};var Oe=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string"){const e=parseFloat(t);if(!Number.isNaN(e)){if(String(e)!==String(t))re.warn(ee(`Expected number but observed string: ${t}`));return e}}if(typeof t==="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)},Ye=Math.ceil(340282346638528860000000000000000000000),Gt=(t)=>{const e=Oe(t);if(e!==void 0&&!Number.isNaN(e)&&e!==Infinity&&e!==(-Infinity)){if(Math.abs(e)>Ye)throw new TypeError(`Expected 32-bit float, got ${t}`)}return e},nt=(t)=>{if(t===null||t===void 0)return;if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)};var Kt=(t)=>ot(t,32),Xt=(t)=>ot(t,16),_t=(t)=>ot(t,8),ot=(t,e)=>{const r=nt(t);if(r!==void 0&&Je(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},Je=(t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},is=(t,e)=>{if(t===null||t===void 0){if(e)throw new TypeError(`Expected a non-null value for ${e}`);throw new TypeError("Expected a non-null value")}return t},cs=(t)=>{if(t===null||t===void 0)return;if(typeof t==="object"&&!Array.isArray(t))return t;const e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},fs=(t)=>{if(t===null||t===void 0)return;if(typeof t==="string")return t;if(["boolean","number","bigint"].includes(typeof t))return re.warn(ee(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)};var vt=(t)=>{if(typeof t=="string")return Gt(B(t));return Gt(t)},We=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,B=(t)=>{const e=t.match(We);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)};var us=(t)=>{if(typeof t==="string")return nt(B(t));return nt(t)};var hs=(t)=>{if(typeof t==="string")return Kt(B(t));return Kt(t)},P=(t)=>{if(typeof t==="string")return Xt(B(t));return Xt(t)},te=(t)=>{if(typeof t==="string")return _t(B(t));return _t(t)},ee=(t)=>{return String(new TypeError(t).stack||t).split("\n").slice(0,5).filter((e)=>!e.includes("stackTraceWarning")).join("\n")},re={warn:console.warn};function ms(t){const e=t.getUTCFullYear(),r=t.getUTCMonth(),n=t.getUTCDay(),o=t.getUTCDate(),s=t.getUTCHours(),c=t.getUTCMinutes(),i=t.getUTCSeconds(),a=o<10?`0${o}`:`${o}`,d=s<10?`0${s}`:`${s}`,x=c<10?`0${c}`:`${c}`,f=i<10?`0${i}`:`${i}`;return`${ze[n]}, ${a} ${it[r]} ${e} ${d}:${x}:${f} GMT`}var ze=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ve=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),ls=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=Ve.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,a,d]=e,x=P(k(n)),f=T(o,"month",1,12),p=T(s,"day",1,31);return R(x,f,p,{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d})},Ze=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),gs=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const e=Ze.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,a,d,x]=e,f=P(k(n)),p=T(o,"month",1,12),u=T(s,"day",1,31),y=R(f,p,u,{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d});if(x.toUpperCase()!="Z")y.setTime(y.getTime()-or(x));return y},Qe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Ge=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Ke=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),ys=(t)=>{if(t===null||t===void 0)return;if(typeof t!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Qe.exec(t);if(e){const[r,n,o,s,c,i,a,d]=e;return R(P(k(s)),st(o),T(n,"day",1,31),{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d})}if(e=Ge.exec(t),e){const[r,n,o,s,c,i,a,d]=e;return ve(R(Xe(s),st(o),T(n,"day",1,31),{hours:c,minutes:i,seconds:a,fractionalMilliseconds:d}))}if(e=Ke.exec(t),e){const[r,n,o,s,c,i,a,d]=e;return R(P(k(d)),st(n),T(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:a})}throw new TypeError("Invalid RFC-7231 date-time value")};var R=(t,e,r,n)=>{const o=e-1;return er(t,o,r),new Date(Date.UTC(t,o,r,T(n.hours,"hour",0,23),T(n.minutes,"minute",0,59),T(n.seconds,"seconds",0,60),nr(n.fractionalMilliseconds)))},Xe=(t)=>{const e=(new Date()).getUTCFullYear(),r=Math.floor(e/100)*100+P(k(t));if(r<e)return r+100;return r},_e=1576800000000,ve=(t)=>{if(t.getTime()-(new Date()).getTime()>_e)return new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()));return t},st=(t)=>{const e=it.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},tr=[31,28,31,30,31,30,31,31,30,31,30,31],er=(t,e,r)=>{let n=tr[e];if(e===1&&rr(t))n=29;if(r>n)throw new TypeError(`Invalid day for ${it[e]} in ${t}: ${r}`)},rr=(t)=>{return t%4===0&&(t%100!==0||t%400===0)},T=(t,e,r,n)=>{const o=te(k(t));if(o<r||o>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return o},nr=(t)=>{if(t===null||t===void 0)return 0;return vt("0."+t)*1000},or=(t)=>{const e=t[0];let r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);const n=Number(t.substring(1,3)),o=Number(t.substring(4,6));return r*(n*60+o)*60*1000},k=(t)=>{let e=0;while(e<t.length-1&&t.charAt(e)==="0")e++;if(e===0)return t;return t.slice(e)};var sr=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const o=ir(t),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new r({name:e?.code||e?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw It(c,e)},bs=(t)=>{return({output:e,parsedBody:r,errorCode:n})=>{sr({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})}},ir=(t)=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]});var Ss=(t)=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var ne=!1,Es=(t)=>{if(t&&!ne&&parseInt(t.substring(1,t.indexOf(".")))<16)ne=!0};var ct=U(Q(),1);var oe=(t)=>{const e=[];for(let r in ct.AlgorithmId){const n=ct.AlgorithmId[r];if(t[n]===void 0)continue;e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},se=(t)=>{const e={};return t.checksumAlgorithms().forEach((r)=>{e[r.algorithmId()]=r.checksumConstructor()}),e};var ie=(t)=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},ce=(t)=>{const e={};return e.retryStrategy=t.retryStrategy(),e};var Ps=(t)=>{return{...oe(t),...ie(t)}};var ks=(t)=>{return{...se(t),...ce(t)}};function cr(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var ft=function(){const t=Object.getPrototypeOf(this).constructor,r=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(r,t.prototype),r};ft.prototype=Object.create(String.prototype,{constructor:{value:ft,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(ft,String);function fr(t,e,r){let n,o,s;if(typeof e==="undefined"&&typeof r==="undefined")n={},s=t;else if(n=t,typeof e==="function")return o=e,s=r,ur(n,o,s);else s=e;for(let c of Object.keys(s)){if(!Array.isArray(s[c])){n[c]=s[c];continue}fe(n,null,s,c)}return n}var qs=(t,e)=>{const r={};for(let n in e)fe(r,t,e,n);return r},ur=(t,e,r)=>{return fr(t,Object.entries(r).reduce((n,[o,s])=>{if(Array.isArray(s))n[o]=s;else if(typeof s==="function")n[o]=[e,s()];else n[o]=[e,s];return n},{}))},fe=(t,e,r,n)=>{if(e!==null){let c=r[n];if(typeof c==="function")c=[,c];const[i=hr,a=ar,d=n]=c;if(typeof i==="function"&&i(e[d])||typeof i!=="function"&&!!i)t[n]=a(e[d]);return}let[o,s]=r[n];if(typeof s==="function"){let c;const i=o===void 0&&(c=s())!=null,a=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(i)t[n]=c;else if(a)t[n]=s()}else{const c=o===void 0&&s!=null,i=typeof o==="function"&&!!o(s)||typeof o!=="function"&&!!o;if(c||i)t[n]=s}},hr=(t)=>t!=null,ar=(t)=>t;var Js=(t)=>t.toISOString().replace(".000Z","Z");var ue=(t)=>{if(t==null)return{};if(Array.isArray(t))return t.filter((e)=>e!=null).map(ue);if(typeof t==="object"){const e={};for(let r of Object.keys(t)){if(t[r]==null)continue;e[r]=ue(t[r])}return e}return t};export{gr as A,yr as B,G as C,L as D,Ue as E,Z as F,ge as G,Ft as H,I,j as J,O as K,F as L,Yn as M,Y as N,J as O,uo as P,_ as Q,At as R,qt as S,Mo as T,Oo as U,Zo as V,ns as W,yt as X,Un as Y,Fn as Z,ss as _,nt as $,Kt as aa,is as ba,cs as ca,fs as da,us as ea,hs as fa,ms as ga,ls as ha,gs as ia,ys as ja,Ut as ka,It as la,bs as ma,Ss as na,Es as oa,Ps as pa,ks as qa,cr as ra,fr as sa,qs as ta,Js as ua,ue as va};
@@ -1,5 +0,0 @@
1
- import{x as X,y as D} from"./chunk-a5c18c07abe8fd9c.js";import{eb as l} from"./chunk-a57ecc74c0fb9045.js";var xn=D((Dr,kn)=>{var{defineProperty:O,getOwnPropertyDescriptor:of,getOwnPropertyNames:Ef}=Object,yf=Object.prototype.hasOwnProperty,S=(n,t)=>O(n,"name",{value:t,configurable:!0}),If=(n,t)=>{for(var c in t)O(n,c,{get:t[c],enumerable:!0})},Uf=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of Ef(t))if(!yf.call(n,i)&&i!==c)O(n,i,{get:()=>t[i],enumerable:!(f=of(t,i))||f.enumerable})}return n},Lf=(n)=>Uf(O({},"__esModule",{value:!0}),n),Pn={};If(Pn,{constructStack:()=>Tn});kn.exports=Lf(Pn);var K=S((n,t)=>{const c=[];if(n)c.push(n);if(t)for(let f of t)c.push(f);return c},"getAllAliases"),G=S((n,t)=>{return`${n||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`},"getMiddlewareNameWithAliases"),Tn=S(()=>{let n=[],t=[],c=!1;const f=new Set,i=S(($)=>$.sort((F,T)=>Rn[T.step]-Rn[F.step]||Hn[T.priority||"normal"]-Hn[F.priority||"normal"]),"sort"),h=S(($)=>{let F=!1;const T=S((E)=>{const y=K(E.name,E.aliases);if(y.includes($)){F=!0;for(let C of y)f.delete(C);return!1}return!0},"filterCb");return n=n.filter(T),t=t.filter(T),F},"removeByName"),r=S(($)=>{let F=!1;const T=S((E)=>{if(E.middleware===$){F=!0;for(let y of K(E.name,E.aliases))f.delete(y);return!1}return!0},"filterCb");return n=n.filter(T),t=t.filter(T),F},"removeByReference"),s=S(($)=>{var F;return n.forEach((T)=>{$.add(T.middleware,{...T})}),t.forEach((T)=>{$.addRelativeTo(T.middleware,{...T})}),(F=$.identifyOnResolve)==null||F.call($,o.identifyOnResolve()),$},"cloneTo"),u=S(($)=>{const F=[];return $.before.forEach((T)=>{if(T.before.length===0&&T.after.length===0)F.push(T);else F.push(...u(T))}),F.push($),$.after.reverse().forEach((T)=>{if(T.before.length===0&&T.after.length===0)F.push(T);else F.push(...u(T))}),F},"expandRelativeMiddlewareList"),d=S(($=!1)=>{const F=[],T=[],E={};return n.forEach((C)=>{const w={...C,before:[],after:[]};for(let x of K(w.name,w.aliases))E[x]=w;F.push(w)}),t.forEach((C)=>{const w={...C,before:[],after:[]};for(let x of K(w.name,w.aliases))E[x]=w;T.push(w)}),T.forEach((C)=>{if(C.toMiddleware){const w=E[C.toMiddleware];if(w===void 0){if($)return;throw new Error(`${C.toMiddleware} is not found when adding ${G(C.name,C.aliases)} middleware ${C.relation} ${C.toMiddleware}`)}if(C.relation==="after")w.after.push(C);if(C.relation==="before")w.before.push(C)}}),i(F).map(u).reduce((C,w)=>{return C.push(...w),C},[])},"getMiddlewareList"),o={add:($,F={})=>{const{name:T,override:E,aliases:y}=F,C={step:"initialize",priority:"normal",middleware:$,...F},w=K(T,y);if(w.length>0){if(w.some((x)=>f.has(x))){if(!E)throw new Error(`Duplicate middleware name '${G(T,y)}'`);for(let x of w){const I=n.findIndex((g)=>{var V;return g.name===x||((V=g.aliases)==null?void 0:V.some((M)=>M===x))});if(I===-1)continue;const U=n[I];if(U.step!==C.step||C.priority!==U.priority)throw new Error(`"${G(U.name,U.aliases)}" middleware with ${U.priority} priority in ${U.step} step cannot be overridden by "${G(T,y)}" middleware with ${C.priority} priority in ${C.step} step.`);n.splice(I,1)}}for(let x of w)f.add(x)}n.push(C)},addRelativeTo:($,F)=>{const{name:T,override:E,aliases:y}=F,C={middleware:$,...F},w=K(T,y);if(w.length>0){if(w.some((x)=>f.has(x))){if(!E)throw new Error(`Duplicate middleware name '${G(T,y)}'`);for(let x of w){const I=t.findIndex((g)=>{var V;return g.name===x||((V=g.aliases)==null?void 0:V.some((M)=>M===x))});if(I===-1)continue;const U=t[I];if(U.toMiddleware!==C.toMiddleware||U.relation!==C.relation)throw new Error(`"${G(U.name,U.aliases)}" middleware ${U.relation} "${U.toMiddleware}" middleware cannot be overridden by "${G(T,y)}" middleware ${C.relation} "${C.toMiddleware}" middleware.`);t.splice(I,1)}}for(let x of w)f.add(x)}t.push(C)},clone:()=>s(Tn()),use:($)=>{$.applyToStack(o)},remove:($)=>{if(typeof $==="string")return h($);else return r($)},removeByTag:($)=>{let F=!1;const T=S((E)=>{const{tags:y,name:C,aliases:w}=E;if(y&&y.includes($)){const x=K(C,w);for(let I of x)f.delete(I);return F=!0,!1}return!0},"filterCb");return n=n.filter(T),t=t.filter(T),F},concat:($)=>{var F;const T=s(Tn());return T.use($),T.identifyOnResolve(c||T.identifyOnResolve()||(((F=$.identifyOnResolve)==null?void 0:F.call($))??!1)),T},applyToStack:s,identify:()=>{return d(!0).map(($)=>{const F=$.step??$.relation+" "+$.toMiddleware;return G($.name,$.aliases)+" - "+F})},identifyOnResolve($){if(typeof $==="boolean")c=$;return c},resolve:($,F)=>{for(let T of d().map((E)=>E.middleware).reverse())$=T($,F);if(c)console.log(o.identify());return $}};return o},"constructStack"),Rn={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Hn={high:3,normal:2,low:1}});var tt=D((Qr,nt)=>{var{defineProperty:p,getOwnPropertyDescriptor:gf,getOwnPropertyNames:Yf}=Object,Sf=Object.prototype.hasOwnProperty,ef=(n,t)=>p(n,"name",{value:t,configurable:!0}),zf=(n,t)=>{for(var c in t)p(n,c,{get:t[c],enumerable:!0})},Zf=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of Yf(t))if(!Sf.call(n,i)&&i!==c)p(n,i,{get:()=>t[i],enumerable:!(f=gf(t,i))||f.enumerable})}return n},Vf=(n)=>Zf(p({},"__esModule",{value:!0}),n),_n={};zf(_n,{isArrayBuffer:()=>Gf});nt.exports=Vf(_n);var Gf=ef((n)=>typeof ArrayBuffer==="function"&&n instanceof ArrayBuffer||Object.prototype.toString.call(n)==="[object ArrayBuffer]","isArrayBuffer")});var B=D((Mr,it)=>{var{defineProperty:v,getOwnPropertyDescriptor:Qf,getOwnPropertyNames:Mf}=Object,Kf=Object.prototype.hasOwnProperty,ct=(n,t)=>v(n,"name",{value:t,configurable:!0}),Xf=(n,t)=>{for(var c in t)v(n,c,{get:t[c],enumerable:!0})},Af=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of Mf(t))if(!Kf.call(n,i)&&i!==c)v(n,i,{get:()=>t[i],enumerable:!(f=Qf(t,i))||f.enumerable})}return n},Jf=(n)=>Af(v({},"__esModule",{value:!0}),n),ft={};Xf(ft,{fromArrayBuffer:()=>bf,fromString:()=>Bf});it.exports=Jf(ft);var Wf=tt(),dn=import.meta.require("buffer"),bf=ct((n,t=0,c=n.byteLength-t)=>{if(!Wf.isArrayBuffer(n))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof n} (${n})`);return dn.Buffer.from(n,t,c)},"fromArrayBuffer"),Bf=ct((n,t)=>{if(typeof n!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof n} (${n})`);return t?dn.Buffer.from(n,t):dn.Buffer.from(n)},"fromString")});var st=D((ht)=>{Object.defineProperty(ht,"__esModule",{value:!0});ht.fromBase64=void 0;var jf=B(),Rf=/^[A-Za-z0-9+/]*={0,2}$/,Hf=(n)=>{if(n.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Rf.exec(n))throw new TypeError("Invalid base64 string.");const t=jf.fromString(n,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};ht.fromBase64=Hf});var a=D((Xr,Tt)=>{var{defineProperty:q,getOwnPropertyDescriptor:Pf,getOwnPropertyNames:kf}=Object,Of=Object.prototype.hasOwnProperty,Fn=(n,t)=>q(n,"name",{value:t,configurable:!0}),lf=(n,t)=>{for(var c in t)q(n,c,{get:t[c],enumerable:!0})},pf=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of kf(t))if(!Of.call(n,i)&&i!==c)q(n,i,{get:()=>t[i],enumerable:!(f=Pf(t,i))||f.enumerable})}return n},vf=(n)=>pf(q({},"__esModule",{value:!0}),n),ut={};lf(ut,{fromUtf8:()=>$t,toUint8Array:()=>qf,toUtf8:()=>af});Tt.exports=vf(ut);var wt=B(),$t=Fn((n)=>{const t=wt.fromString(n,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),qf=Fn((n)=>{if(typeof n==="string")return $t(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(n)},"toUint8Array"),af=Fn((n)=>{if(typeof n==="string")return n;if(typeof n!=="object"||typeof n.byteOffset!=="number"||typeof n.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return wt.fromArrayBuffer(n.buffer,n.byteOffset,n.byteLength).toString("utf8")},"toUtf8")});var Ft=D((xt)=>{Object.defineProperty(xt,"__esModule",{value:!0});xt.toBase64=void 0;var mf=B(),_f=a(),ni=(n)=>{let t;if(typeof n==="string")t=_f.fromUtf8(n);else t=n;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return mf.fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength).toString("base64")};xt.toBase64=ni});var _=D((Jr,m)=>{var{defineProperty:Ct,getOwnPropertyDescriptor:ti,getOwnPropertyNames:ci}=Object,fi=Object.prototype.hasOwnProperty,Cn=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of ci(t))if(!fi.call(n,i)&&i!==c)Ct(n,i,{get:()=>t[i],enumerable:!(f=ti(t,i))||f.enumerable})}return n},ot=(n,t,c)=>(Cn(n,t,"default"),c&&Cn(c,t,"default")),ii=(n)=>Cn(Ct({},"__esModule",{value:!0}),n),on={};m.exports=ii(on);ot(on,st(),m.exports);ot(on,Ft(),m.exports)});var It=D((Et)=>{Object.defineProperty(Et,"__esModule",{value:!0});Et.getAwsChunkedEncodingStream=void 0;var hi=import.meta.require("stream"),ri=(n,t)=>{const{base64Encoder:c,bodyLengthChecker:f,checksumAlgorithmFn:i,checksumLocationName:h,streamHasher:r}=t,s=c!==void 0&&i!==void 0&&h!==void 0&&r!==void 0,u=s?r(i,n):void 0,d=new hi.Readable({read:()=>{}});return n.on("data",(o)=>{const $=f(o)||0;d.push(`${$.toString(16)}\r\n`),d.push(o),d.push("\r\n")}),n.on("end",async()=>{if(d.push("0\r\n"),s){const o=c(await u);d.push(`${h}:${o}\r\n`),d.push("\r\n")}d.push(null)}),d};Et.getAwsChunkedEncodingStream=ri});var En=D((br,zt)=>{var Yt=function(n){return Object.keys(n).reduce((t,c)=>{const f=n[c];return{...t,[c]:Array.isArray(f)?[...f]:f}},{})},et=function(n){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(n)},nn=Object.defineProperty,si=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyNames,wi=Object.prototype.hasOwnProperty,Q=(n,t)=>nn(n,"name",{value:t,configurable:!0}),$i=(n,t)=>{for(var c in t)nn(n,c,{get:t[c],enumerable:!0})},Ti=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of ui(t))if(!wi.call(n,i)&&i!==c)nn(n,i,{get:()=>t[i],enumerable:!(f=si(t,i))||f.enumerable})}return n},xi=(n)=>Ti(nn({},"__esModule",{value:!0}),n),Ut={};$i(Ut,{Field:()=>Ci,Fields:()=>oi,HttpRequest:()=>Ei,HttpResponse:()=>yi,IHttpRequest:()=>Lt.HttpRequest,getHttpHandlerExtensionConfiguration:()=>di,isValidHostname:()=>et,resolveHttpHandlerRuntimeConfig:()=>Fi});zt.exports=xi(Ut);var di=Q((n)=>{let t=n.httpHandler;return{setHttpHandler(c){t=c},httpHandler(){return t},updateHttpClientConfig(c,f){t.updateHttpClientConfig(c,f)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),Fi=Q((n)=>{return{httpHandler:n.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),Lt=l(),Dt=class n{constructor({name:t,kind:c=Lt.FieldPosition.HEADER,values:f=[]}){this.name=t,this.kind=c,this.values=f}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter((c)=>c!==t)}toString(){return this.values.map((t)=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}};Q(Dt,"Field");var Ci=Dt,Nt=class n{constructor({fields:t=[],encoding:c="utf-8"}){this.entries={},t.forEach(this.setField.bind(this)),this.encoding=c}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter((c)=>c.kind===t)}};Q(Nt,"Fields");var oi=Nt,gt=class n{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const c=new n({...t,headers:{...t.headers}});if(c.query)c.query=Yt(c.query);return c}static isInstance(t){if(!t)return!1;const c=t;return"method"in c&&"protocol"in c&&"hostname"in c&&"path"in c&&typeof c.query==="object"&&typeof c.headers==="object"}clone(){return n.clone(this)}};Q(gt,"HttpRequest");var Ei=gt;Q(Yt,"cloneQuery");var St=class n{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const c=t;return typeof c.statusCode==="number"&&typeof c.headers==="object"}};Q(St,"HttpResponse");var yi=St;Q(et,"isValidHostname")});var In=D((Br,Gt)=>{var{defineProperty:tn,getOwnPropertyDescriptor:Ii,getOwnPropertyNames:Ui}=Object,Li=Object.prototype.hasOwnProperty,yn=(n,t)=>tn(n,"name",{value:t,configurable:!0}),Di=(n,t)=>{for(var c in t)tn(n,c,{get:t[c],enumerable:!0})},Ni=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of Ui(t))if(!Li.call(n,i)&&i!==c)tn(n,i,{get:()=>t[i],enumerable:!(f=Ii(t,i))||f.enumerable})}return n},gi=(n)=>Ni(tn({},"__esModule",{value:!0}),n),Zt={};Di(Zt,{escapeUri:()=>Vt,escapeUriPath:()=>Si});Gt.exports=gi(Zt);var Vt=yn((n)=>encodeURIComponent(n).replace(/[!'()*]/g,Yi),"escapeUri"),Yi=yn((n)=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Si=yn((n)=>n.split("/").map(Vt).join("/"),"escapeUriPath")});var Ln=D((jr,Kt)=>{var Mt=function(n){const t=[];for(let c of Object.keys(n).sort()){const f=n[c];if(c=Un.escapeUri(c),Array.isArray(f))for(let i=0,h=f.length;i<h;i++)t.push(`${c}=${Un.escapeUri(f[i])}`);else{let i=c;if(f||typeof f==="string")i+=`=${Un.escapeUri(f)}`;t.push(i)}}return t.join("&")},cn=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,zi=Object.getOwnPropertyNames,Zi=Object.prototype.hasOwnProperty,Vi=(n,t)=>cn(n,"name",{value:t,configurable:!0}),Gi=(n,t)=>{for(var c in t)cn(n,c,{get:t[c],enumerable:!0})},Qi=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of zi(t))if(!Zi.call(n,i)&&i!==c)cn(n,i,{get:()=>t[i],enumerable:!(f=ei(t,i))||f.enumerable})}return n},Mi=(n)=>Qi(cn({},"__esModule",{value:!0}),n),Qt={};Gi(Qt,{buildQueryString:()=>Mt});Kt.exports=Mi(Qt);var Un=In();Vi(Mt,"buildQueryString")});var at=D((Rr,qt)=>{async function gn(n,t,c=Xt){const f=t.headers??{},i=f.Expect||f.expect;let h=-1,r=!1;if(i==="100-continue")await Promise.race([new Promise((s)=>{h=Number(setTimeout(s,Math.max(Xt,c)))}),new Promise((s)=>{n.on("continue",()=>{clearTimeout(h),s()}),n.on("error",()=>{r=!0,clearTimeout(h),s()})})]);if(!r)Ht(n,t.body)}var Ht=function(n,t){if(t instanceof Rt.Readable){t.pipe(n);return}if(t){if(Buffer.isBuffer(t)||typeof t==="string"){n.end(t);return}const c=t;if(typeof c==="object"&&c.buffer&&typeof c.byteOffset==="number"&&typeof c.byteLength==="number"){n.end(Buffer.from(c.buffer,c.byteOffset,c.byteLength));return}n.end(Buffer.from(t));return}n.end()};async function vt(n){const t=[],c=n.getReader();let f=!1,i=0;while(!f){const{done:s,value:u}=await c.read();if(u)t.push(u),i+=u.length;f=s}const h=new Uint8Array(i);let r=0;for(let s of t)h.set(s,r),r+=s.length;return h}var{create:Ki,defineProperty:j,getOwnPropertyDescriptor:Xi,getOwnPropertyNames:Ai,getPrototypeOf:Ji}=Object,Wi=Object.prototype.hasOwnProperty,N=(n,t)=>j(n,"name",{value:t,configurable:!0}),bi=(n,t)=>{for(var c in t)j(n,c,{get:t[c],enumerable:!0})},Jt=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of Ai(t))if(!Wi.call(n,i)&&i!==c)j(n,i,{get:()=>t[i],enumerable:!(f=Xi(t,i))||f.enumerable})}return n},Bi=(n,t,c)=>(c=n!=null?Ki(Ji(n)):{},Jt(t||!n||!n.__esModule?j(c,"default",{value:n,enumerable:!0}):c,n)),ji=(n)=>Jt(j({},"__esModule",{value:!0}),n),Wt={};bi(Wt,{DEFAULT_REQUEST_TIMEOUT:()=>Oi,NodeHttp2Handler:()=>ai,NodeHttpHandler:()=>li,streamCollector:()=>_i});qt.exports=ji(Wt);var bt=En(),Bt=Ln(),Dn=import.meta.require("http"),Nn=import.meta.require("https"),Ri=["ECONNRESET","EPIPE","ETIMEDOUT"],jt=N((n)=>{const t={};for(let c of Object.keys(n)){const f=n[c];t[c]=Array.isArray(f)?f.join(","):f}return t},"getTransformedHeaders"),Hi=N((n,t,c=0)=>{if(!c)return;const f=setTimeout(()=>{n.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${c} ms`),{name:"TimeoutError"}))},c);n.on("socket",(i)=>{if(i.connecting)i.on("connect",()=>{clearTimeout(f)});else clearTimeout(f)})},"setConnectionTimeout"),Pi=N((n,{keepAlive:t,keepAliveMsecs:c})=>{if(t!==!0)return;n.on("socket",(f)=>{f.setKeepAlive(t,c||0)})},"setSocketKeepAlive"),ki=N((n,t,c=0)=>{n.setTimeout(c,()=>{n.destroy(),t(Object.assign(new Error(`Connection timed out after ${c} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),Rt=import.meta.require("stream"),Xt=1000;N(gn,"writeRequestBody");N(Ht,"writeBody");var Oi=0,Pt=class n{constructor(t){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((c,f)=>{if(typeof t==="function")t().then((i)=>{c(this.resolveDefaultConfig(i))}).catch(f);else c(this.resolveDefaultConfig(t))})}static create(t){if(typeof(t==null?void 0:t.handle)==="function")return t;return new n(t)}static checkSocketUsage(t,c,f=console){var i,h,r;const{sockets:s,requests:u,maxSockets:d}=t;if(typeof d!=="number"||d===Infinity)return c;const o=15000;if(Date.now()-o<c)return c;if(s&&u)for(let $ in s){const F=((i=s[$])==null?void 0:i.length)??0,T=((h=u[$])==null?void 0:h.length)??0;if(F>=d&&T>=2*d)return(r=f==null?void 0:f.warn)==null||r.call(f,`@smithy/node-http-handler:WARN - socket usage at capacity=${F} and ${T} additional requests are enqueued.
2
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
3
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return c}resolveDefaultConfig(t){const{requestTimeout:c,connectionTimeout:f,socketTimeout:i,httpAgent:h,httpsAgent:r}=t||{};return{connectionTimeout:f,requestTimeout:c??i,httpAgent:(()=>{if(h instanceof Dn.Agent||typeof(h==null?void 0:h.destroy)==="function")return h;return new Dn.Agent({keepAlive:!0,maxSockets:50,...h})})(),httpsAgent:(()=>{if(r instanceof Nn.Agent||typeof(r==null?void 0:r.destroy)==="function")return r;return new Nn.Agent({keepAlive:!0,maxSockets:50,...r})})(),logger:console}}destroy(){var t,c,f,i;(c=(t=this.config)==null?void 0:t.httpAgent)==null||c.destroy(),(i=(f=this.config)==null?void 0:f.httpsAgent)==null||i.destroy()}async handle(t,{abortSignal:c}={}){if(!this.config)this.config=await this.configProvider;let f;return new Promise((i,h)=>{let r=void 0;const s=N(async(x)=>{await r,clearTimeout(f),i(x)},"resolve"),u=N(async(x)=>{await r,clearTimeout(f),h(x)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(c==null?void 0:c.aborted){const x=new Error("Request aborted");x.name="AbortError",u(x);return}const d=t.protocol==="https:",o=d?this.config.httpsAgent:this.config.httpAgent;f=setTimeout(()=>{this.socketWarningTimestamp=n.checkSocketUsage(o,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const $=Bt.buildQueryString(t.query||{});let F=void 0;if(t.username!=null||t.password!=null){const x=t.username??"",I=t.password??"";F=`${x}:${I}`}let T=t.path;if($)T+=`?${$}`;if(t.fragment)T+=`#${t.fragment}`;const E={headers:t.headers,host:t.hostname,method:t.method,path:T,port:t.port,agent:o,auth:F},C=(d?Nn.request:Dn.request)(E,(x)=>{const I=new bt.HttpResponse({statusCode:x.statusCode||-1,reason:x.statusMessage,headers:jt(x.headers),body:x});s({response:I})});if(C.on("error",(x)=>{if(Ri.includes(x.code))u(Object.assign(x,{name:"TimeoutError"}));else u(x)}),Hi(C,u,this.config.connectionTimeout),ki(C,u,this.config.requestTimeout),c){const x=N(()=>{C.destroy();const I=new Error("Request aborted");I.name="AbortError",u(I)},"onAbort");if(typeof c.addEventListener==="function"){const I=c;I.addEventListener("abort",x,{once:!0}),C.once("close",()=>I.removeEventListener("abort",x))}else c.onabort=x}const w=E.agent;if(typeof w==="object"&&"keepAlive"in w)Pi(C,{keepAlive:w.keepAlive,keepAliveMsecs:w.keepAliveMsecs});r=gn(C,t,this.config.requestTimeout).catch((x)=>{return clearTimeout(f),h(x)})})}updateHttpClientConfig(t,c){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return{...f,[t]:c}})}httpHandlerConfigs(){return this.config??{}}};N(Pt,"NodeHttpHandler");var li=Pt,At=import.meta.require("http2"),pi=Bi(import.meta.require("http2")),kt=class n{constructor(t){this.sessions=[],this.sessions=t??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(t){this.sessions.push(t)}contains(t){return this.sessions.includes(t)}remove(t){this.sessions=this.sessions.filter((c)=>c!==t)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(t){for(let c of this.sessions)if(c===t){if(!c.destroyed)c.destroy()}}};N(kt,"NodeHttp2ConnectionPool");var vi=kt,Ot=class n{constructor(t){if(this.sessionCache=new Map,this.config=t,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(t,c){const f=this.getUrlString(t),i=this.sessionCache.get(f);if(i){const u=i.poll();if(u&&!this.config.disableConcurrency)return u}const h=pi.default.connect(f);if(this.config.maxConcurrency)h.settings({maxConcurrentStreams:this.config.maxConcurrency},(u)=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+t.destination.toString())});h.unref();const r=N(()=>{h.destroy(),this.deleteSession(f,h)},"destroySessionCb");if(h.on("goaway",r),h.on("error",r),h.on("frameError",r),h.on("close",()=>this.deleteSession(f,h)),c.requestTimeout)h.setTimeout(c.requestTimeout,r);const s=this.sessionCache.get(f)||new vi;return s.offerLast(h),this.sessionCache.set(f,s),h}deleteSession(t,c){const f=this.sessionCache.get(t);if(!f)return;if(!f.contains(c))return;f.remove(c),this.sessionCache.set(t,f)}release(t,c){var f;const i=this.getUrlString(t);(f=this.sessionCache.get(i))==null||f.offerLast(c)}destroy(){for(let[t,c]of this.sessionCache){for(let f of c){if(!f.destroyed)f.destroy();c.remove(f)}this.sessionCache.delete(t)}}setMaxConcurrentStreams(t){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=t}setDisableConcurrentStreams(t){this.config.disableConcurrency=t}getUrlString(t){return t.destination.toString()}};N(Ot,"NodeHttp2ConnectionManager");var qi=Ot,lt=class n{constructor(t){this.metadata={handlerProtocol:"h2"},this.connectionManager=new qi({}),this.configProvider=new Promise((c,f)=>{if(typeof t==="function")t().then((i)=>{c(i||{})}).catch(f);else c(t||{})})}static create(t){if(typeof(t==null?void 0:t.handle)==="function")return t;return new n(t)}destroy(){this.connectionManager.destroy()}async handle(t,{abortSignal:c}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}const{requestTimeout:f,disableConcurrentStreams:i}=this.config;return new Promise((h,r)=>{var s;let u=!1,d=void 0;const o=N(async(L)=>{await d,h(L)},"resolve"),$=N(async(L)=>{await d,r(L)},"reject");if(c==null?void 0:c.aborted){u=!0;const L=new Error("Request aborted");L.name="AbortError",$(L);return}const{hostname:F,method:T,port:E,protocol:y,query:C}=t;let w="";if(t.username!=null||t.password!=null){const L=t.username??"",e=t.password??"";w=`${L}:${e}@`}const x=`${y}//${w}${F}${E?`:${E}`:""}`,I={destination:new URL(x)},U=this.connectionManager.lease(I,{requestTimeout:(s=this.config)==null?void 0:s.sessionTimeout,disableConcurrentStreams:i||!1}),g=N((L)=>{if(i)this.destroySession(U);u=!0,$(L)},"rejectWithDestroy"),V=Bt.buildQueryString(C||{});let M=t.path;if(V)M+=`?${V}`;if(t.fragment)M+=`#${t.fragment}`;const Y=U.request({...t.headers,[At.constants.HTTP2_HEADER_PATH]:M,[At.constants.HTTP2_HEADER_METHOD]:T});if(U.ref(),Y.on("response",(L)=>{const e=new bt.HttpResponse({statusCode:L[":status"]||-1,headers:jt(L),body:Y});if(u=!0,o({response:e}),i)U.close(),this.connectionManager.deleteSession(x,U)}),f)Y.setTimeout(f,()=>{Y.close();const L=new Error(`Stream timed out because of no activity for ${f} ms`);L.name="TimeoutError",g(L)});if(c){const L=N(()=>{Y.close();const e=new Error("Request aborted");e.name="AbortError",g(e)},"onAbort");if(typeof c.addEventListener==="function"){const e=c;e.addEventListener("abort",L,{once:!0}),Y.once("close",()=>e.removeEventListener("abort",L))}else c.onabort=L}Y.on("frameError",(L,e,Cf)=>{g(new Error(`Frame type id ${L} in stream id ${Cf} has failed with code ${e}.`))}),Y.on("error",g),Y.on("aborted",()=>{g(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Y.rstCode}.`))}),Y.on("close",()=>{if(U.unref(),i)U.destroy();if(!u)g(new Error("Unexpected error: http2 request did not get a response"))}),d=gn(Y,t,f)})}updateHttpClientConfig(t,c){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return{...f,[t]:c}})}httpHandlerConfigs(){return this.config??{}}destroySession(t){if(!t.destroyed)t.destroy()}};N(lt,"NodeHttp2Handler");var ai=lt,pt=class n extends Rt.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,c,f){this.bufferedBytes.push(t),f()}};N(pt,"Collector");var mi=pt,_i=N((n)=>{if(nh(n))return vt(n);return new Promise((t,c)=>{const f=new mi;n.pipe(f),n.on("error",(i)=>{f.end(),c(i)}),f.on("error",c),f.on("finish",function(){const i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})})},"streamCollector"),nh=N((n)=>typeof ReadableStream==="function"&&n instanceof ReadableStream,"isReadableStreamInstance");N(vt,"collectReadableStream")});var rc=D((Hr,hc)=>{var nc=function(n=0){return new Promise((t,c)=>{if(n)setTimeout(()=>{const f=new Error(`Request did not complete within ${n} ms`);f.name="TimeoutError",c(f)},n)})};async function cc(n){const t=await ic(n),c=wh.fromBase64(t);return new Uint8Array(c)}async function fc(n){const t=[],c=n.getReader();let f=!1,i=0;while(!f){const{done:s,value:u}=await c.read();if(u)t.push(u),i+=u.length;f=s}const h=new Uint8Array(i);let r=0;for(let s of t)h.set(s,r),r+=s.length;return h}var ic=function(n){return new Promise((t,c)=>{const f=new FileReader;f.onloadend=()=>{if(f.readyState!==2)return c(new Error("Reader aborted too early"));const i=f.result??"",h=i.indexOf(","),r=h>-1?h+1:i.length;t(i.substring(r))},f.onabort=()=>c(new Error("Read aborted")),f.onerror=()=>c(f.error),f.readAsDataURL(n)})},hn=Object.defineProperty,th=Object.getOwnPropertyDescriptor,ch=Object.getOwnPropertyNames,fh=Object.prototype.hasOwnProperty,Z=(n,t)=>hn(n,"name",{value:t,configurable:!0}),ih=(n,t)=>{for(var c in t)hn(n,c,{get:t[c],enumerable:!0})},hh=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of ch(t))if(!fh.call(n,i)&&i!==c)hn(n,i,{get:()=>t[i],enumerable:!(f=th(t,i))||f.enumerable})}return n},rh=(n)=>hh(hn({},"__esModule",{value:!0}),n),_t={};ih(_t,{FetchHttpHandler:()=>uh,keepAliveSupport:()=>fn,streamCollector:()=>$h});hc.exports=rh(_t);var mt=En(),sh=Ln();Z(nc,"requestTimeout");var fn={supported:void 0},tc=class n{static create(t){if(typeof(t==null?void 0:t.handle)==="function")return t;return new n(t)}constructor(t){if(typeof t==="function")this.configProvider=t().then((c)=>c||{});else this.config=t??{},this.configProvider=Promise.resolve(this.config);if(fn.supported===void 0)fn.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(t,{abortSignal:c}={}){if(!this.config)this.config=await this.configProvider;const f=this.config.requestTimeout,i=this.config.keepAlive===!0,h=this.config.credentials;if(c==null?void 0:c.aborted){const w=new Error("Request aborted");return w.name="AbortError",Promise.reject(w)}let r=t.path;const s=sh.buildQueryString(t.query||{});if(s)r+=`?${s}`;if(t.fragment)r+=`#${t.fragment}`;let u="";if(t.username!=null||t.password!=null){const w=t.username??"",x=t.password??"";u=`${w}:${x}@`}const{port:d,method:o}=t,$=`${t.protocol}//${u}${t.hostname}${d?`:${d}`:""}${r}`,F=o==="GET"||o==="HEAD"?void 0:t.body,T={body:F,headers:new Headers(t.headers),method:o,credentials:h};if(F)T.duplex="half";if(typeof AbortController!=="undefined")T.signal=c;if(fn.supported)T.keepalive=i;let E=Z(()=>{},"removeSignalEventListener");const y=new Request($,T),C=[fetch(y).then((w)=>{const x=w.headers,I={};for(let g of x.entries())I[g[0]]=g[1];if(w.body==null)return w.blob().then((g)=>({response:new mt.HttpResponse({headers:I,reason:w.statusText,statusCode:w.status,body:g})}));return{response:new mt.HttpResponse({headers:I,reason:w.statusText,statusCode:w.status,body:w.body})}}),nc(f)];if(c)C.push(new Promise((w,x)=>{const I=Z(()=>{const U=new Error("Request aborted");U.name="AbortError",x(U)},"onAbort");if(typeof c.addEventListener==="function"){const U=c;U.addEventListener("abort",I,{once:!0}),E=Z(()=>U.removeEventListener("abort",I),"removeSignalEventListener")}else c.onabort=I}));return Promise.race(C).finally(E)}updateHttpClientConfig(t,c){this.config=void 0,this.configProvider=this.configProvider.then((f)=>{return f[t]=c,f})}httpHandlerConfigs(){return this.config??{}}};Z(tc,"FetchHttpHandler");var uh=tc,wh=_(),$h=Z((n)=>{if(typeof Blob==="function"&&n instanceof Blob)return cc(n);return fc(n)},"streamCollector");Z(cc,"collectBlob");Z(fc,"collectStream");Z(ic,"readToBase64")});var dc=D((Pr,xc)=>{var $c=function(n){if(n.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(n.length/2);for(let c=0;c<n.length;c+=2){const f=n.slice(c,c+2).toLowerCase();if(f in Yn)t[c/2]=Yn[f];else throw new Error(`Cannot decode unrecognized sequence ${f} as hexadecimal`)}return t},Tc=function(n){let t="";for(let c=0;c<n.byteLength;c++)t+=wc[n[c]];return t},rn=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,xh=Object.getOwnPropertyNames,dh=Object.prototype.hasOwnProperty,sc=(n,t)=>rn(n,"name",{value:t,configurable:!0}),Fh=(n,t)=>{for(var c in t)rn(n,c,{get:t[c],enumerable:!0})},Ch=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of xh(t))if(!dh.call(n,i)&&i!==c)rn(n,i,{get:()=>t[i],enumerable:!(f=Th(t,i))||f.enumerable})}return n},oh=(n)=>Ch(rn({},"__esModule",{value:!0}),n),uc={};Fh(uc,{fromHex:()=>$c,toHex:()=>Tc});xc.exports=oh(uc);var wc={},Yn={};for(let n=0;n<256;n++){let t=n.toString(16).toLowerCase();if(t.length===1)t=`0${t}`;wc[n]=t,Yn[t]=n}sc($c,"fromHex");sc(Tc,"toHex")});var R=D((Fc)=>{Object.defineProperty(Fc,"__esModule",{value:!0});Fc.isReadableStream=void 0;var Eh=(n)=>{var t;return typeof ReadableStream==="function"&&(((t=n===null||n===void 0?void 0:n.constructor)===null||t===void 0?void 0:t.name)===ReadableStream.name||n instanceof ReadableStream)};Fc.isReadableStream=Eh});var Lc=D((Ic)=>{Object.defineProperty(Ic,"__esModule",{value:!0});Ic.sdkStreamMixin=void 0;var yh=rc(),Ih=_(),Uh=dc(),Lh=a(),oc=R(),Ec="The stream has already been transformed.",Dh=(n)=>{var t,c;if(!yc(n)&&!oc.isReadableStream(n)){const r=((c=(t=n===null||n===void 0?void 0:n.__proto__)===null||t===void 0?void 0:t.constructor)===null||c===void 0?void 0:c.name)||n;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${r}`)}let f=!1;const i=async()=>{if(f)throw new Error(Ec);return f=!0,await yh.streamCollector(n)},h=(r)=>{if(typeof r.stream!=="function")throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return r.stream()};return Object.assign(n,{transformToByteArray:i,transformToString:async(r)=>{const s=await i();if(r==="base64")return Ih.toBase64(s);else if(r==="hex")return Uh.toHex(s);else if(r===void 0||r==="utf8"||r==="utf-8")return Lh.toUtf8(s);else if(typeof TextDecoder==="function")return new TextDecoder(r).decode(s);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(f)throw new Error(Ec);if(f=!0,yc(n))return h(n);else if(oc.isReadableStream(n))return n;else throw new Error(`Cannot transform payload to web stream, got ${n}`)}})};Ic.sdkStreamMixin=Dh;var yc=(n)=>typeof Blob==="function"&&n instanceof Blob});var Yc=D((Nc)=>{Object.defineProperty(Nc,"__esModule",{value:!0});Nc.sdkStreamMixin=void 0;var Nh=at(),gh=B(),Sn=import.meta.require("stream"),Yh=import.meta.require("util"),Sh=Lc(),Dc="The stream has already been transformed.",eh=(n)=>{var t,c;if(!(n instanceof Sn.Readable))try{return Sh.sdkStreamMixin(n)}catch(h){const r=((c=(t=n===null||n===void 0?void 0:n.__proto__)===null||t===void 0?void 0:t.constructor)===null||c===void 0?void 0:c.name)||n;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${r}`)}let f=!1;const i=async()=>{if(f)throw new Error(Dc);return f=!0,await Nh.streamCollector(n)};return Object.assign(n,{transformToByteArray:i,transformToString:async(h)=>{const r=await i();if(h===void 0||Buffer.isEncoding(h))return gh.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString(h);else return new Yh.TextDecoder(h).decode(r)},transformToWebStream:()=>{if(f)throw new Error(Dc);if(n.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Sn.Readable.toWeb!=="function")throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available.");return f=!0,Sn.Readable.toWeb(n)}})};Nc.sdkStreamMixin=eh});var zc=D((Sc)=>{async function zh(n){if(typeof n.stream==="function")n=n.stream();return n.tee()}Object.defineProperty(Sc,"__esModule",{value:!0});Sc.splitStream=void 0;Sc.splitStream=zh});var Qc=D((Vc)=>{async function Gh(n){if(Vh.isReadableStream(n))return Zh.splitStream(n);const t=new Zc.PassThrough,c=new Zc.PassThrough;return n.pipe(t),n.pipe(c),[t,c]}Object.defineProperty(Vc,"__esModule",{value:!0});Vc.splitStream=void 0;var Zc=import.meta.require("stream"),Zh=zc(),Vh=R();Vc.splitStream=Gh});var Xc=D((Mc)=>{async function Qh(n,t){var c;let f=0;const i=[],h=n.getReader();let r=!1;while(!r){const{done:d,value:o}=await h.read();if(o)i.push(o),f+=(c=o===null||o===void 0?void 0:o.byteLength)!==null&&c!==void 0?c:0;if(f>=t)break;r=d}h.releaseLock();const s=new Uint8Array(Math.min(t,f));let u=0;for(let d of i){if(d.byteLength>s.byteLength-u){s.set(d.subarray(0,s.byteLength-u),u);break}else s.set(d,u);u+=d.length}return s}Object.defineProperty(Mc,"__esModule",{value:!0});Mc.headStream=void 0;Mc.headStream=Qh});var bc=D((Jc)=>{Object.defineProperty(Jc,"__esModule",{value:!0});Jc.headStream=void 0;var Mh=import.meta.require("stream"),Kh=Xc(),Xh=R(),Ah=(n,t)=>{if(Xh.isReadableStream(n))return Kh.headStream(n,t);return new Promise((c,f)=>{const i=new Ac;i.limit=t,n.pipe(i),n.on("error",(h)=>{i.end(),f(h)}),i.on("error",f),i.on("finish",function(){const h=new Uint8Array(Buffer.concat(this.buffers));c(h)})})};Jc.headStream=Ah;class Ac extends Mh.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write(n,t,c){var f;if(this.buffers.push(n),this.bytesBuffered+=(f=n.byteLength)!==null&&f!==void 0?f:0,this.bytesBuffered>=this.limit){const i=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-i),this.emit("finish")}c()}}});var kc=D((mr,J)=>{var Rc=function(n,t="utf-8"){if(t==="base64")return Bc.toBase64(n);return jc.toUtf8(n)},Hc=function(n,t){if(t==="base64")return zn.mutate(Bc.fromBase64(n));return zn.mutate(jc.fromUtf8(n))},sn=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,Wh=Object.getOwnPropertyNames,bh=Object.prototype.hasOwnProperty,Zn=(n,t)=>sn(n,"name",{value:t,configurable:!0}),Bh=(n,t)=>{for(var c in t)sn(n,c,{get:t[c],enumerable:!0})},en=(n,t,c,f)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of Wh(t))if(!bh.call(n,i)&&i!==c)sn(n,i,{get:()=>t[i],enumerable:!(f=Jh(t,i))||f.enumerable})}return n},H=(n,t,c)=>(en(n,t,"default"),c&&en(c,t,"default")),jh=(n)=>en(sn({},"__esModule",{value:!0}),n),A={};Bh(A,{Uint8ArrayBlobAdapter:()=>zn});J.exports=jh(A);var Bc=_(),jc=a();Zn(Rc,"transformToString");Zn(Hc,"transformFromString");var Pc=class n extends Uint8Array{static fromString(t,c="utf-8"){switch(typeof t){case"string":return Hc(t,c);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,n.prototype),t}transformToString(t="utf-8"){return Rc(this,t)}};Zn(Pc,"Uint8ArrayBlobAdapter");var zn=Pc;H(A,It(),J.exports);H(A,Yc(),J.exports);H(A,Qc(),J.exports);H(A,bc(),J.exports);H(A,R(),J.exports)});var On=X(xn(),1);class Df{constructor(n){this.middlewareStack=On.constructStack(),this.config=n}send(n,t,c){const f=typeof t!=="function"?t:void 0,i=typeof t==="function"?t:c,h=n.resolveMiddleware(this.middlewareStack,this.config,f);if(i)h(n).then((r)=>i(null,r.output),(r)=>i(r)).catch(()=>{});else return h(n).then((r)=>r.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var ln=X(xn(),1),pn=X(l(),1);class vn{constructor(){this.middlewareStack=ln.constructStack()}static classBuilder(){return new qn}resolveMiddlewareWithContext(n,t,c,{middlewareFn:f,clientName:i,commandName:h,inputFilterSensitiveLog:r,outputFilterSensitiveLog:s,smithyContext:u,additionalContext:d,CommandCtor:o}){for(let y of f.bind(this)(o,n,t,c))this.middlewareStack.use(y);const $=n.concat(this.middlewareStack),{logger:F}=t,T={logger:F,clientName:i,commandName:h,inputFilterSensitiveLog:r,outputFilterSensitiveLog:s,[pn.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...d},{requestHandler:E}=t;return $.resolve((y)=>E.handle(y.request,c||{}),T)}}class qn{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(n)=>n,this._outputFilterSensitiveLog=(n)=>n,this._serializer=null,this._deserializer=null}init(n){this._init=n}ep(n){return this._ep=n,this}m(n){return this._middlewareFn=n,this}s(n,t,c={}){return this._smithyContext={service:n,operation:t,...c},this}c(n={}){return this._additionalContext=n,this}n(n,t){return this._clientName=n,this._commandName=t,this}f(n=(c)=>c,t=(c)=>c){return this._inputFilterSensitiveLog=n,this._outputFilterSensitiveLog=t,this}ser(n){return this._serializer=n,this}de(n){return this._deserializer=n,this}build(){const n=this;let t;return t=class extends vn{static getEndpointParameterInstructions(){return n._ep}constructor(...[c]){super();this.serialize=n._serializer,this.deserialize=n._deserializer,this.input=c??{},n._init(this)}resolveMiddleware(c,f,i){return this.resolveMiddlewareWithContext(c,f,i,{CommandCtor:t,middlewareFn:n._middlewareFn,clientName:n._clientName,commandName:n._commandName,inputFilterSensitiveLog:n._inputFilterSensitiveLog,outputFilterSensitiveLog:n._outputFilterSensitiveLog,smithyContext:n._smithyContext,additionalContext:n._additionalContext})}}}}var Sr="***SensitiveInformation***";var zr=(n,t)=>{for(let c of Object.keys(n)){const f=n[c],i=async function(r,s,u){const d=new f(r);if(typeof s==="function")this.send(d,s);else if(typeof u==="function"){if(typeof s!=="object")throw new Error(`Expected http options but got ${typeof s}`);this.send(d,s||{},u)}else return this.send(d,s)},h=(c[0].toLowerCase()+c.slice(1)).replace(/Command$/,"");t.prototype[h]=i}};class an extends Error{constructor(n){super(n.message);Object.setPrototypeOf(this,an.prototype),this.name=n.name,this.$fault=n.$fault,this.$metadata=n.$metadata}}var mn=(n,t={})=>{Object.entries(t).filter(([,f])=>f!==void 0).forEach(([f,i])=>{if(n[f]==null||n[f]==="")n[f]=i});const c=n.message||n.Message||"UnknownError";return n.message=c,delete n.Message,n};class Nf{trace(){}debug(){}info(){}warn(){}error(){}}var un=X(kc(),1),_r=async(n=new Uint8Array,t)=>{if(n instanceof Uint8Array)return un.Uint8ArrayBlobAdapter.mutate(n);if(!n)return un.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const c=t.streamCollector(n);return un.Uint8ArrayBlobAdapter.mutate(await c)};var ts=(n)=>{switch(n){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${n}"`)}};var Rh=(n)=>{if(n===null||n===void 0)return;if(typeof n==="string"){const t=parseFloat(n);if(!Number.isNaN(t)){if(String(t)!==String(n))_c.warn(mc(`Expected number but observed string: ${n}`));return t}}if(typeof n==="number")return n;throw new TypeError(`Expected number, got ${typeof n}: ${n}`)},Hh=Math.ceil(340282346638528860000000000000000000000),Oc=(n)=>{const t=Rh(n);if(t!==void 0&&!Number.isNaN(t)&&t!==Infinity&&t!==(-Infinity)){if(Math.abs(t)>Hh)throw new TypeError(`Expected 32-bit float, got ${n}`)}return t},Vn=(n)=>{if(n===null||n===void 0)return;if(Number.isInteger(n)&&!Number.isNaN(n))return n;throw new TypeError(`Expected integer, got ${typeof n}: ${n}`)};var lc=(n)=>Gn(n,32),pc=(n)=>Gn(n,16),vc=(n)=>Gn(n,8),Gn=(n,t)=>{const c=Vn(n);if(c!==void 0&&Ph(c,t)!==c)throw new TypeError(`Expected ${t}-bit integer, got ${n}`);return c},Ph=(n,t)=>{switch(t){case 32:return Int32Array.of(n)[0];case 16:return Int16Array.of(n)[0];case 8:return Int8Array.of(n)[0]}},cs=(n,t)=>{if(n===null||n===void 0){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return n},fs=(n)=>{if(n===null||n===void 0)return;if(typeof n==="object"&&!Array.isArray(n))return n;const t=Array.isArray(n)?"array":typeof n;throw new TypeError(`Expected object, got ${t}: ${n}`)},is=(n)=>{if(n===null||n===void 0)return;if(typeof n==="string")return n;if(["boolean","number","bigint"].includes(typeof n))return _c.warn(mc(`Expected string, got ${typeof n}: ${n}`)),String(n);throw new TypeError(`Expected string, got ${typeof n}: ${n}`)};var qc=(n)=>{if(typeof n=="string")return Oc(P(n));return Oc(n)},kh=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,P=(n)=>{const t=n.match(kh);if(t===null||t[0].length!==n.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(n)};var hs=(n)=>{if(typeof n==="string")return Vn(P(n));return Vn(n)};var rs=(n)=>{if(typeof n==="string")return lc(P(n));return lc(n)},W=(n)=>{if(typeof n==="string")return pc(P(n));return pc(n)},ac=(n)=>{if(typeof n==="string")return vc(P(n));return vc(n)},mc=(n)=>{return String(new TypeError(n).stack||n).split("\n").slice(0,5).filter((t)=>!t.includes("stackTraceWarning")).join("\n")},_c={warn:console.warn};function $s(n){const t=n.getUTCFullYear(),c=n.getUTCMonth(),f=n.getUTCDay(),i=n.getUTCDate(),h=n.getUTCHours(),r=n.getUTCMinutes(),s=n.getUTCSeconds(),u=i<10?`0${i}`:`${i}`,d=h<10?`0${h}`:`${h}`,o=r<10?`0${r}`:`${r}`,$=s<10?`0${s}`:`${s}`;return`${Oh[f]}, ${u} ${Mn[c]} ${t} ${d}:${o}:${$} GMT`}var Oh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Mn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lh=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Ts=(n)=>{if(n===null||n===void 0)return;if(typeof n!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=lh.exec(n);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[c,f,i,h,r,s,u,d]=t,o=W(b(f)),$=z(i,"month",1,12),F=z(h,"day",1,31);return k(o,$,F,{hours:r,minutes:s,seconds:u,fractionalMilliseconds:d})},ph=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),xs=(n)=>{if(n===null||n===void 0)return;if(typeof n!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=ph.exec(n);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[c,f,i,h,r,s,u,d,o]=t,$=W(b(f)),F=z(i,"month",1,12),T=z(h,"day",1,31),E=k($,F,T,{hours:r,minutes:s,seconds:u,fractionalMilliseconds:d});if(o.toUpperCase()!="Z")E.setTime(E.getTime()-hr(o));return E},vh=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),qh=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),ah=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),ds=(n)=>{if(n===null||n===void 0)return;if(typeof n!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=vh.exec(n);if(t){const[c,f,i,h,r,s,u,d]=t;return k(W(b(h)),Qn(i),z(f,"day",1,31),{hours:r,minutes:s,seconds:u,fractionalMilliseconds:d})}if(t=qh.exec(n),t){const[c,f,i,h,r,s,u,d]=t;return nr(k(mh(h),Qn(i),z(f,"day",1,31),{hours:r,minutes:s,seconds:u,fractionalMilliseconds:d}))}if(t=ah.exec(n),t){const[c,f,i,h,r,s,u,d]=t;return k(W(b(d)),Qn(f),z(i.trimLeft(),"day",1,31),{hours:h,minutes:r,seconds:s,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")};var k=(n,t,c,f)=>{const i=t-1;return cr(n,i,c),new Date(Date.UTC(n,i,c,z(f.hours,"hour",0,23),z(f.minutes,"minute",0,59),z(f.seconds,"seconds",0,60),ir(f.fractionalMilliseconds)))},mh=(n)=>{const t=(new Date()).getUTCFullYear(),c=Math.floor(t/100)*100+W(b(n));if(c<t)return c+100;return c},_h=1576800000000,nr=(n)=>{if(n.getTime()-(new Date()).getTime()>_h)return new Date(Date.UTC(n.getUTCFullYear()-100,n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()));return n},Qn=(n)=>{const t=Mn.indexOf(n);if(t<0)throw new TypeError(`Invalid month: ${n}`);return t+1},tr=[31,28,31,30,31,30,31,31,30,31,30,31],cr=(n,t,c)=>{let f=tr[t];if(t===1&&fr(n))f=29;if(c>f)throw new TypeError(`Invalid day for ${Mn[t]} in ${n}: ${c}`)},fr=(n)=>{return n%4===0&&(n%100!==0||n%400===0)},z=(n,t,c,f)=>{const i=ac(b(n));if(i<c||i>f)throw new TypeError(`${t} must be between ${c} and ${f}, inclusive`);return i},ir=(n)=>{if(n===null||n===void 0)return 0;return qc("0."+n)*1000},hr=(n)=>{const t=n[0];let c=1;if(t=="+")c=1;else if(t=="-")c=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const f=Number(n.substring(1,3)),i=Number(n.substring(4,6));return c*(f*60+i)*60*1000},b=(n)=>{let t=0;while(t<n.length-1&&n.charAt(t)==="0")t++;if(t===0)return n;return n.slice(t)};var rr=({output:n,parsedBody:t,exceptionCtor:c,errorCode:f})=>{const i=sr(n),h=i.httpStatusCode?i.httpStatusCode+"":void 0,r=new c({name:t?.code||t?.Code||f||h||"UnknownError",$fault:"client",$metadata:i});throw mn(r,t)},os=(n)=>{return({output:t,parsedBody:c,errorCode:f})=>{rr({output:t,parsedBody:c,exceptionCtor:n,errorCode:f})}},sr=(n)=>({httpStatusCode:n.statusCode,requestId:n.headers["x-amzn-requestid"]??n.headers["x-amzn-request-id"]??n.headers["x-amz-request-id"],extendedRequestId:n.headers["x-amz-id-2"],cfId:n.headers["x-amz-cf-id"]});var ys=(n)=>{switch(n){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}};var nf=!1,Us=(n)=>{if(n&&!nf&&parseInt(n.substring(1,n.indexOf(".")))<16)nf=!0};var Kn=X(l(),1);var tf=(n)=>{const t=[];for(let c in Kn.AlgorithmId){const f=Kn.AlgorithmId[c];if(n[f]===void 0)continue;t.push({algorithmId:()=>f,checksumConstructor:()=>n[f]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(c){this._checksumAlgorithms.push(c)},checksumAlgorithms(){return this._checksumAlgorithms}}},cf=(n)=>{const t={};return n.checksumAlgorithms().forEach((c)=>{t[c.algorithmId()]=c.checksumConstructor()}),t};var ff=(n)=>{let t=n.retryStrategy;return{setRetryStrategy(c){t=c},retryStrategy(){return t}}},hf=(n)=>{const t={};return t.retryStrategy=n.retryStrategy(),t};var Ss=(n)=>{return{...tf(n),...ff(n)}};var es=(n)=>{return{...cf(n),...hf(n)}};function ur(n){return encodeURIComponent(n).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}var Xn=function(){const n=Object.getPrototypeOf(this).constructor,c=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(c,n.prototype),c};Xn.prototype=Object.create(String.prototype,{constructor:{value:Xn,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(Xn,String);function wr(n,t,c){let f,i,h;if(typeof t==="undefined"&&typeof c==="undefined")f={},h=n;else if(f=n,typeof t==="function")return i=t,h=c,$r(f,i,h);else h=t;for(let r of Object.keys(h)){if(!Array.isArray(h[r])){f[r]=h[r];continue}rf(f,null,h,r)}return f}var Xs=(n,t)=>{const c={};for(let f in t)rf(c,n,t,f);return c},$r=(n,t,c)=>{return wr(n,Object.entries(c).reduce((f,[i,h])=>{if(Array.isArray(h))f[i]=h;else if(typeof h==="function")f[i]=[t,h()];else f[i]=[t,h];return f},{}))},rf=(n,t,c,f)=>{if(t!==null){let r=c[f];if(typeof r==="function")r=[,r];const[s=Tr,u=xr,d=f]=r;if(typeof s==="function"&&s(t[d])||typeof s!=="function"&&!!s)n[f]=u(t[d]);return}let[i,h]=c[f];if(typeof h==="function"){let r;const s=i===void 0&&(r=h())!=null,u=typeof i==="function"&&!!i(void 0)||typeof i!=="function"&&!!i;if(s)n[f]=r;else if(u)n[f]=h()}else{const r=i===void 0&&h!=null,s=typeof i==="function"&&!!i(h)||typeof i!=="function"&&!!i;if(r||s)n[f]=h}},Tr=(n)=>n!=null,xr=(n)=>n;var bs=(n)=>n.toISOString().replace(".000Z","Z");var sf=(n)=>{if(n==null)return{};if(Array.isArray(n))return n.filter((t)=>t!=null).map(sf);if(typeof n==="object"){const t={};for(let c of Object.keys(n)){if(n[c]==null)continue;t[c]=sf(n[c])}return t}return n};var xu=(n)=>{let t=n.httpHandler;return{setHttpHandler(c){t=c},httpHandler(){return t},updateHttpClientConfig(c,f){t.updateHttpClientConfig(c,f)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},du=(n)=>{return{httpHandler:n.httpHandler()}};var dr=X(l(),1);var Fr=function(n){return Object.keys(n).reduce((t,c)=>{const f=n[c];return{...t,[c]:Array.isArray(f)?[...f]:f}},{})};class An{constructor(n){this.method=n.method||"GET",this.hostname=n.hostname||"localhost",this.port=n.port,this.query=n.query||{},this.headers=n.headers||{},this.body=n.body,this.protocol=n.protocol?n.protocol.slice(-1)!==":"?`${n.protocol}:`:n.protocol:"https:",this.path=n.path?n.path.charAt(0)!=="/"?`/${n.path}`:n.path:"/",this.username=n.username,this.password=n.password,this.fragment=n.fragment}static clone(n){const t=new An({...n,headers:{...n.headers}});if(t.query)t.query=Fr(t.query);return t}static isInstance(n){if(!n)return!1;const t=n;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query==="object"&&typeof t.headers==="object"}clone(){return An.clone(this)}}class wn{constructor(n){this.statusCode=n.statusCode,this.reason=n.reason,this.headers=n.headers||{},this.body=n.body}static isInstance(n){if(!n)return!1;const t=n;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}var $n=X(In(),1);function Jn(n){const t=[];for(let c of Object.keys(n).sort()){const f=n[c];if(c=$n.escapeUri(c),Array.isArray(f))for(let i=0,h=f.length;i<h;i++)t.push(`${c}=${$n.escapeUri(f[i])}`);else{let i=c;if(f||typeof f==="string")i+=`=${$n.escapeUri(f)}`;t.push(i)}}return t.join("&")}import{Agent as df,request as Er} from"http";import{Agent as Ff,request as yr} from"https";var uf=["ECONNRESET","EPIPE","ETIMEDOUT"];var Wn=(n)=>{const t={};for(let c of Object.keys(n)){const f=n[c];t[c]=Array.isArray(f)?f.join(","):f}return t};var wf=(n,t,c=0)=>{if(!c)return;const f=setTimeout(()=>{n.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${c} ms`),{name:"TimeoutError"}))},c);n.on("socket",(i)=>{if(i.connecting)i.on("connect",()=>{clearTimeout(f)});else clearTimeout(f)})};var $f=(n,{keepAlive:t,keepAliveMsecs:c})=>{if(t!==!0)return;n.on("socket",(f)=>{f.setKeepAlive(t,c||0)})};var Tf=(n,t,c=0)=>{n.setTimeout(c,()=>{n.destroy(),t(Object.assign(new Error(`Connection timed out after ${c} ms`),{name:"TimeoutError"}))})};import{Readable as Cr} from"stream";async function bn(n,t,c=xf){const f=t.headers??{},i=f.Expect||f.expect;let h=-1,r=!1;if(i==="100-continue")await Promise.race([new Promise((s)=>{h=Number(setTimeout(s,Math.max(xf,c)))}),new Promise((s)=>{n.on("continue",()=>{clearTimeout(h),s()}),n.on("error",()=>{r=!0,clearTimeout(h),s()})})]);if(!r)or(n,t.body)}var or=function(n,t){if(t instanceof Cr){t.pipe(n);return}if(t){if(Buffer.isBuffer(t)||typeof t==="string"){n.end(t);return}const c=t;if(typeof c==="object"&&c.buffer&&typeof c.byteOffset==="number"&&typeof c.byteLength==="number"){n.end(Buffer.from(c.buffer,c.byteOffset,c.byteLength));return}n.end(Buffer.from(t));return}n.end()},xf=1000;class Bn{static create(n){if(typeof n?.handle==="function")return n;return new Bn(n)}static checkSocketUsage(n,t,c=console){const{sockets:f,requests:i,maxSockets:h}=n;if(typeof h!=="number"||h===Infinity)return t;const r=15000;if(Date.now()-r<t)return t;if(f&&i)for(let s in f){const u=f[s]?.length??0,d=i[s]?.length??0;if(u>=h&&d>=2*h)return c?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${d} additional requests are enqueued.
4
- See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
5
- or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(n){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,c)=>{if(typeof n==="function")n().then((f)=>{t(this.resolveDefaultConfig(f))}).catch(c);else t(this.resolveDefaultConfig(n))})}resolveDefaultConfig(n){const{requestTimeout:t,connectionTimeout:c,socketTimeout:f,httpAgent:i,httpsAgent:h}=n||{};return{connectionTimeout:c,requestTimeout:t??f,httpAgent:(()=>{if(i instanceof df||typeof i?.destroy==="function")return i;return new df({keepAlive:!0,maxSockets:50,...i})})(),httpsAgent:(()=>{if(h instanceof Ff||typeof h?.destroy==="function")return h;return new Ff({keepAlive:!0,maxSockets:50,...h})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(n,{abortSignal:t}={}){if(!this.config)this.config=await this.configProvider;let c;return new Promise((f,i)=>{let h=void 0;const r=async(w)=>{await h,clearTimeout(c),f(w)},s=async(w)=>{await h,clearTimeout(c),i(w)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t?.aborted){const w=new Error("Request aborted");w.name="AbortError",s(w);return}const u=n.protocol==="https:",d=u?this.config.httpsAgent:this.config.httpAgent;c=setTimeout(()=>{this.socketWarningTimestamp=Bn.checkSocketUsage(d,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const o=Jn(n.query||{});let $=void 0;if(n.username!=null||n.password!=null){const w=n.username??"",x=n.password??"";$=`${w}:${x}`}let F=n.path;if(o)F+=`?${o}`;if(n.fragment)F+=`#${n.fragment}`;const T={headers:n.headers,host:n.hostname,method:n.method,path:F,port:n.port,agent:d,auth:$},y=(u?yr:Er)(T,(w)=>{const x=new wn({statusCode:w.statusCode||-1,reason:w.statusMessage,headers:Wn(w.headers),body:w});r({response:x})});if(y.on("error",(w)=>{if(uf.includes(w.code))s(Object.assign(w,{name:"TimeoutError"}));else s(w)}),wf(y,s,this.config.connectionTimeout),Tf(y,s,this.config.requestTimeout),t){const w=()=>{y.destroy();const x=new Error("Request aborted");x.name="AbortError",s(x)};if(typeof t.addEventListener==="function"){const x=t;x.addEventListener("abort",w,{once:!0}),y.once("close",()=>x.removeEventListener("abort",w))}else t.onabort=w}const C=T.agent;if(typeof C==="object"&&"keepAlive"in C)$f(y,{keepAlive:C.keepAlive,keepAliveMsecs:C.keepAliveMsecs});h=bn(y,n,this.config.requestTimeout).catch((w)=>{return clearTimeout(c),i(w)})})}updateHttpClientConfig(n,t){this.config=void 0,this.configProvider=this.configProvider.then((c)=>{return{...c,[n]:t}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as Ir} from"stream";class jn extends Ir{constructor(){super(...arguments);this.bufferedBytes=[]}_write(n,t,c){this.bufferedBytes.push(n),c()}}async function Lr(n){const t=[],c=n.getReader();let f=!1,i=0;while(!f){const{done:s,value:u}=await c.read();if(u)t.push(u),i+=u.length;f=s}const h=new Uint8Array(i);let r=0;for(let s of t)h.set(s,r),r+=s.length;return h}var $0=(n)=>{if(Ur(n))return Lr(n);return new Promise((t,c)=>{const f=new jn;n.pipe(f),n.on("error",(i)=>{f.end(),c(i)}),f.on("error",c),f.on("finish",function(){const i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})})},Ur=(n)=>typeof ReadableStream==="function"&&n instanceof ReadableStream;export{xu as z,du as A,An as B,wn as C,Nf as D,xn as E,Df as F,tt as G,a as H,En as I,In as J,dc as K,kc as L,_r as M,vn as N,Sr as O,zr as P,ts as Q,Vn as R,lc as S,cs as T,fs as U,is as V,hs as W,rs as X,$s as Y,Ts as Z,xs as _,ds as $,an as aa,mn as ba,os as ca,ys as da,Us as ea,Ss as fa,es as ga,ur as ha,wr as ia,Xs as ja,bs as ka,sf as la,Bn as ma,$0 as na};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-81f5123a24c19089.js";import{y as k} from"./chunk-7ce930fe69575c87.js";import{$ as _,A as ue,B as er,E as be,F as cr,J as je,K as Fe,M as De,N as qe,Q as Je,R as Ve,X as E,Y as t,Z as Vr,aa as b,ba as j,ca as F,da as h,ka as Sr,la as a,ma as jr,na as We,oa as fe,pa as rr,qa as sr,sa as d,ta as o,va as I} from"./chunk-f5200f44395bf49d.js";import{Aa as yr,Ba as ee,Ca as re,Fa as H,Ga as tr,Ha as Ie,Ia as Re,Ja as Pe,Ka as ar,La as Ae,Ma as Ke,Na as Me,Oa as Be,Pa as mr,Qa as wr,Sa as S,Ta as $,Ua as kr,Va as Le,Xa as Qe,Ya as vr,Za as Xe,_a as Er,ab as q,bb as Ye,cb as Ze,db as He,eb as Ne,fb as ir,gb as lr,xa as nr,ya as or,za as dr} from"./chunk-b7da6c96acf0478f.js";import"./chunk-a0003b7feea6fae6.js";import{ib as Qr,jb as R} from"./chunk-7195a8718fcd8215.js";import"./chunk-3cbc1c9cdc091b43.js";import{lb as Ce} from"./chunk-b9f4c1fce7152fc8.js";import"./chunk-934ebff128f86ef1.js";var P=k(H(),1);var se=k(q(),1);var Mr=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(s,r)=>({signingProperties:{config:s,context:r}})}},Z=function(e){return{schemeId:"smithy.api#noAuth"}},ie=async(e,s,r)=>{return{operation:ee(s).operation,region:await re(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},le=(e)=>{const s=[];switch(e.operation){case"CreateToken":{s.push(Z(e));break}case"RegisterClient":{s.push(Z(e));break}case"StartDeviceAuthorization":{s.push(Z(e));break}default:s.push(Mr(e))}return s},he=(e)=>{return{...se.resolveAwsSdkSigV4Config(e)}};var ne=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},v={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var oe={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.629.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}};var _e=k(q(),1);var Ue=k(q(),1),xe=k(H(),1);var ze=k(Qr(),1);var de={["required"]:!1,type:"String"},ye={["required"]:!0,default:!1,type:"Boolean"},ce={["ref"]:"Endpoint"},ve={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},Ee={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},m={},te={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Se={["ref"]:"PartitionResult"},ae={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Se,"supportsDualStack"]}]},me=[ve],we=[Ee],ke=[{["ref"]:"Region"}],Lr={version:"1.0",parameters:{Region:de,UseDualStack:ye,UseFIPS:ye,Endpoint:de},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[ce]}],rules:[{conditions:me,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:we,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:ce,properties:m,headers:m},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:ke}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:ke,assign:"PartitionResult"}],rules:[{conditions:[ve,Ee],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,te]},ae],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:me,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[te,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Se,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:m,headers:m},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:we,rules:[{conditions:[ae],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},$e=Lr;var Te=(e,s={})=>{return Re($e,{endpointParams:e,logger:s.logger})};Ie.aws=Pe;var Ge=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??je,base64Encoder:e?.base64Encoder??qe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Te,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??le,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new Ue.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new xe.NoAuthSigner}],logger:e?.logger??new be,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??ze.parseUrl,utf8Decoder:e?.utf8Decoder??Fe,utf8Encoder:e?.utf8Encoder??De}};var pe=(e)=>{fe(process.version);const s=Ne(e),r=()=>s().then(We),i=Ge(e);return _e.emitWarningIfUnsupportedVersion(process.version),{...i,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??He,credentialDefaultProvider:e?.credentialDefaultProvider??Ce,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ye({serviceId:i.serviceId,clientVersion:oe.version}),maxAttempts:e?.maxAttempts??R(Qe),region:e?.region??R(Me,Be),requestHandler:Je.create(e?.requestHandler??r),retryMode:e?.retryMode??R({...Xe,default:async()=>(await r()).retryMode||Le}),sha256:e?.sha256??Ze.bind(null,"sha256"),streamCollector:e?.streamCollector??Ve,useDualstackEndpoint:e?.useDualstackEndpoint??R(Ae),useFipsEndpoint:e?.useFipsEndpoint??R(Ke)}};var ge=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:r,credentials:i}=e;return{setHttpAuthScheme(l){const n=s.findIndex((T)=>T.schemeId===l.schemeId);if(n===-1)s.push(l);else s.splice(n,1,l)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(l){r=l},httpAuthSchemeProvider(){return r},setCredentials(l){i=l},credentials(){return i}}},Oe=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var U=(e)=>e,hr=(e,s)=>{const r={...U(ir(e)),...U(rr(e)),...U(ue(e)),...U(ge(e))};return s.forEach((i)=>i.configure(r)),{...e,...lr(r),...sr(r),...er(r),...Oe(r)}};class N extends cr{constructor(...[e]){const s=pe(e||{}),r=ne(s),i=tr(r),l=vr(i),n=mr(l),T=nr(n),fr=kr(T),Ar=he(fr),u=hr(Ar,e?.extensions||[]);super(u);this.config=u,this.middlewareStack.use(ar(this.config)),this.middlewareStack.use(Er(this.config)),this.middlewareStack.use(wr(this.config)),this.middlewareStack.use(or(this.config)),this.middlewareStack.use(dr(this.config)),this.middlewareStack.use(yr(this.config)),this.middlewareStack.use(P.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ie,identityProviderConfigProvider:async(Kr)=>new P.DefaultIdentityProviderConfig({"aws.auth#sigv4":Kr.credentials})})),this.middlewareStack.use(P.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class y extends Sr{constructor(e){super(e);Object.setPrototypeOf(this,y.prototype)}}class x extends y{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,x.prototype),this.error=e.error,this.error_description=e.error_description}}class z extends y{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,z.prototype),this.error=e.error,this.error_description=e.error_description}}class G extends y{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,G.prototype),this.error=e.error,this.error_description=e.error_description}}class J extends y{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}class V extends y{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}class W extends y{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}class f extends y{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends y{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class K extends y{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}class M extends y{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,M.prototype),this.error=e.error,this.error_description=e.error_description}}class B extends y{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}class L extends y{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class Q extends y{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,Q.prototype),this.error=e.error,this.error_description=e.error_description}}class X extends y{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}var $r=(e)=>({...e,...e.clientSecret&&{clientSecret:t},...e.refreshToken&&{refreshToken:t},...e.codeVerifier&&{codeVerifier:t}}),Ir=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Rr=(e)=>({...e,...e.refreshToken&&{refreshToken:t},...e.assertion&&{assertion:t},...e.subjectToken&&{subjectToken:t},...e.codeVerifier&&{codeVerifier:t}}),Pr=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Tr=(e)=>({...e,...e.clientSecret&&{clientSecret:t}}),br=(e)=>({...e,...e.clientSecret&&{clientSecret:t}});var w=k(q(),1),D=k(H(),1);var Fr=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(n)=>I(n)})),r.m("POST").h(i).b(l),r.build()},Dr=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");const l=d({[ls]:[,"t"]});let n;return n=JSON.stringify(o(e,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(T)=>I(T),subjectToken:[],subjectTokenType:[]})),r.m("POST").h(i).q(l).b(n),r.build()},qr=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/client/register");let l;return l=JSON.stringify(o(e,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(n)=>I(n),issuerUrl:[],redirectUris:(n)=>I(n),scopes:(n)=>I(n)})),r.m("POST").h(i).b(l),r.build()},Ur=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/device_authorization");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],startUrl:[]})),r.m("POST").h(i).b(l),r.build()},xr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,refreshToken:h,tokenType:h});return Object.assign(r,l),r},zr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,issuedTokenType:h,refreshToken:h,scope:I,tokenType:h});return Object.assign(r,l),r},Gr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{authorizationEndpoint:h,clientId:h,clientIdIssuedAt:_,clientSecret:h,clientSecretExpiresAt:_,tokenEndpoint:h});return Object.assign(r,l),r},Jr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{deviceCode:h,expiresIn:b,interval:b,userCode:h,verificationUri:h,verificationUriComplete:h});return Object.assign(r,l),r},Y=async(e,s)=>{const r={...e,body:await w.parseJsonErrorBody(e.body,s)},i=w.loadRestJsonErrorCode(e,r.body);switch(i){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Yr(r,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Zr(r,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Hr(r,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Nr(r,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await _r(r,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await Cr(r,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await Or(r,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await es(r,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await rs(r,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await ss(r,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await is(r,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await ur(r,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await pr(r,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await gr(r,s);default:const l=r.body;return Xr({output:e,parsedBody:l,errorCode:i})}},Xr=jr(y),Yr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new x({$metadata:c(e),...r});return a(n,e.body)},Zr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new z({$metadata:c(e),...r});return a(n,e.body)},Hr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new G({$metadata:c(e),...r});return a(n,e.body)},Nr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new J({$metadata:c(e),...r});return a(n,e.body)},_r=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new V({$metadata:c(e),...r});return a(n,e.body)},pr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new Q({$metadata:c(e),...r});return a(n,e.body)},Cr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new W({$metadata:c(e),...r});return a(n,e.body)},gr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new X({$metadata:c(e),...r});return a(n,e.body)},Or=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new f({$metadata:c(e),...r});return a(n,e.body)},ur=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{endpoint:h,error:h,error_description:h,region:h});Object.assign(r,l);const n=new L({$metadata:c(e),...r});return a(n,e.body)},es=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new A({$metadata:c(e),...r});return a(n,e.body)},rs=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new K({$metadata:c(e),...r});return a(n,e.body)},ss=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new M({$metadata:c(e),...r});return a(n,e.body)},is=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new B({$metadata:c(e),...r});return a(n,e.body)},c=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var ls="aws_iam";class p extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f($r,Ir).ser(Fr).de(xr).build(){}class C extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(Rr,Pr).ser(Dr).de(zr).build(){}class g extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,Tr).ser(qr).de(Gr).build(){}class O extends E.classBuilder().ep({...v}).m(function(e,s,r,i){return[S(r,this.serialize,this.deserialize),$(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(br,void 0).ser(Ur).de(Jr).build(){}var hs={CreateTokenCommand:p,CreateTokenWithIAMCommand:C,RegisterClientCommand:g,StartDeviceAuthorizationCommand:O};class Wr extends N{}Vr(hs,Wr);export{cr as __Client,B as UnsupportedGrantTypeException,M as UnauthorizedClientException,br as StartDeviceAuthorizationRequestFilterSensitiveLog,O as StartDeviceAuthorizationCommand,K as SlowDownException,y as SSOOIDCServiceException,N as SSOOIDCClient,Wr as SSOOIDC,Tr as RegisterClientResponseFilterSensitiveLog,g as RegisterClientCommand,A as InvalidScopeException,L as InvalidRequestRegionException,f as InvalidRequestException,X as InvalidRedirectUriException,W as InvalidGrantException,Q as InvalidClientMetadataException,V as InvalidClientException,J as InternalServerException,G as ExpiredTokenException,Pr as CreateTokenWithIAMResponseFilterSensitiveLog,Rr as CreateTokenWithIAMRequestFilterSensitiveLog,C as CreateTokenWithIAMCommand,Ir as CreateTokenResponseFilterSensitiveLog,$r as CreateTokenRequestFilterSensitiveLog,p as CreateTokenCommand,z as AuthorizationPendingException,x as AccessDeniedException,E as $Command};
@@ -1,2 +0,0 @@
1
- import{y as D} from"./chunk-a5c18c07abe8fd9c.js";var S=D((y,w)=>{var{defineProperty:G,getOwnPropertyDescriptor:v,getOwnPropertyNames:O}=Object,x=Object.prototype.hasOwnProperty,Q=(b,j)=>G(b,"name",{value:j,configurable:!0}),U=(b,j)=>{for(var z in j)G(b,z,{get:j[z],enumerable:!0})},K=(b,j,z,V)=>{if(j&&typeof j==="object"||typeof j==="function"){for(let B of O(j))if(!x.call(b,B)&&B!==z)G(b,B,{get:()=>j[B],enumerable:!(V=v(j,B))||V.enumerable})}return b},q=(b)=>K(G({},"__esModule",{value:!0}),b),W={};U(W,{AlgorithmId:()=>J,EndpointURLScheme:()=>X,FieldPosition:()=>M,HttpApiKeyAuthLocation:()=>$,HttpAuthLocation:()=>Z,IniSectionType:()=>N,RequestHandlerProtocol:()=>Y,SMITHY_CONTEXT_KEY:()=>R,getDefaultClientConfiguration:()=>T,resolveDefaultRuntimeConfig:()=>k});w.exports=q(W);var Z=((b)=>{return b.HEADER="header",b.QUERY="query",b})(Z||{}),$=((b)=>{return b.HEADER="header",b.QUERY="query",b})($||{}),X=((b)=>{return b.HTTP="http",b.HTTPS="https",b})(X||{}),J=((b)=>{return b.MD5="md5",b.CRC32="crc32",b.CRC32C="crc32c",b.SHA1="sha1",b.SHA256="sha256",b})(J||{}),E=Q((b)=>{const j=[];if(b.sha256!==void 0)j.push({algorithmId:()=>"sha256",checksumConstructor:()=>b.sha256});if(b.md5!=null)j.push({algorithmId:()=>"md5",checksumConstructor:()=>b.md5});return{_checksumAlgorithms:j,addChecksumAlgorithm(z){this._checksumAlgorithms.push(z)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),F=Q((b)=>{const j={};return b.checksumAlgorithms().forEach((z)=>{j[z.algorithmId()]=z.checksumConstructor()}),j},"resolveChecksumRuntimeConfig"),T=Q((b)=>{return{...E(b)}},"getDefaultClientConfiguration"),k=Q((b)=>{return{...F(b)}},"resolveDefaultRuntimeConfig"),M=((b)=>{return b[b.HEADER=0]="HEADER",b[b.TRAILER=1]="TRAILER",b})(M||{}),R="__smithy_context",N=((b)=>{return b.PROFILE="profile",b.SSO_SESSION="sso-session",b.SERVICES="services",b})(N||{}),Y=((b)=>{return b.HTTP_0_9="http/0.9",b.HTTP_1_0="http/1.0",b.TDS_8_0="tds/8.0",b})(Y||{})});
2
- export{S as gb};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{x as _} from"./chunk-a5c18c07abe8fd9c.js";import"./chunk-442a5b1ec74c72f8.js";import{lb as y} from"./chunk-2672477bf396bad8.js";import{ob as K,ub as S} from"./chunk-73c97da8ac4f1d30.js";var o=_(y(),1);import{exec as A} from"child_process";import{promisify as T} from"util";var i=(c,n,s)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){const t=new Date;if(new Date(n.Expiration)<t)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let e=n.AccountId;if(!e&&s?.[c]?.aws_account_id)e=s[c].aws_account_id;return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...e&&{accountId:e}}};var x=async(c,n,s)=>{const e=n[c];if(n[c]){const t=e.credential_process;if(t!==void 0){const u=T(A);try{const{stdout:r}=await u(t);let w;try{w=JSON.parse(r.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return i(c,w,n)}catch(r){throw new o.CredentialsProviderError(r.message,{logger:s})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:s})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:s})};var b=(c={})=>async()=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const n=await S(c);return x(K(c),n,c.logger)};export{b as fromProcess};
@@ -1,2 +0,0 @@
1
- import{z as D} from"./chunk-7ce930fe69575c87.js";var C=D((h,A)=>{var{defineProperty:Q,getOwnPropertyDescriptor:M,getOwnPropertyNames:J}=Object,V=Object.prototype.hasOwnProperty,I=(j,b)=>Q(j,"name",{value:b,configurable:!0}),w=(j,b)=>{for(var F in b)Q(j,F,{get:b[F],enumerable:!0})},O=(j,b,F,B)=>{if(b&&typeof b==="object"||typeof b==="function"){for(let G of J(b))if(!V.call(j,G)&&G!==F)Q(j,G,{get:()=>b[G],enumerable:!(B=M(b,G))||B.enumerable})}return j},q=(j)=>O(Q({},"__esModule",{value:!0}),j),Y={};w(Y,{CredentialsProviderError:()=>L,ProviderError:()=>U,TokenProviderError:()=>S,chain:()=>T,fromStatic:()=>N,memoize:()=>R});A.exports=q(Y);var Z=class j extends Error{constructor(b,F=!0){var B;let G,H=!0;if(typeof F==="boolean")G=void 0,H=F;else if(F!=null&&typeof F==="object")G=F.logger,H=F.tryNextLink??!0;super(b);this.name="ProviderError",this.tryNextLink=H,Object.setPrototypeOf(this,j.prototype),(B=G==null?void 0:G.debug)==null||B.call(G,`@smithy/property-provider ${H?"->":"(!)"} ${b}`)}static from(b,F=!0){return Object.assign(new this(b.message,F),b)}};I(Z,"ProviderError");var U=Z,$=class j extends U{constructor(b,F=!0){super(b,F);this.name="CredentialsProviderError",Object.setPrototypeOf(this,j.prototype)}};I($,"CredentialsProviderError");var L=$,z=class j extends U{constructor(b,F=!0){super(b,F);this.name="TokenProviderError",Object.setPrototypeOf(this,j.prototype)}};I(z,"TokenProviderError");var S=z,T=I((...j)=>async()=>{if(j.length===0)throw new U("No providers in chain");let b;for(let F of j)try{return await F()}catch(B){if(b=B,B==null?void 0:B.tryNextLink)continue;throw B}throw b},"chain"),N=I((j)=>()=>Promise.resolve(j),"fromStatic"),R=I((j,b,F)=>{let B,G,H,W=!1;const X=I(async()=>{if(!G)G=j();try{B=await G,H=!0,W=!1}finally{G=void 0}return B},"coalesceProvider");if(b===void 0)return async(K)=>{if(!H||(K==null?void 0:K.forceRefresh))B=await X();return B};return async(K)=>{if(!H||(K==null?void 0:K.forceRefresh))B=await X();if(W)return B;if(F&&!F(B))return W=!0,B;if(b(B))return await X(),B;return B}},"memoize")});
2
- export{C as kb};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-7ce930fe69575c87.js";import{zb as E} from"./chunk-3abb49bba3da7231.js";import{readFileSync as l} from"fs";var t=(e)=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");const{roleArn:o,roleSessionName:r,webIdentityToken:n,providerId:c,policyArns:i,policy:_,durationSeconds:N}=e;let{roleAssumerWithWebIdentity:s}=e;if(!s){const{getDefaultRoleAssumerWithWebIdentity:d}=await import("./chunk-210fc3731e7d2299.js");s=d({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:e.parentClientConfig},e.clientPlugins)}return s({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:c,PolicyArns:i,Policy:_,DurationSeconds:N})};var m="AWS_WEB_IDENTITY_TOKEN_FILE",S="AWS_ROLE_ARN",p="AWS_ROLE_SESSION_NAME",A=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");const o=e?.webIdentityTokenFile??process.env[m],r=e?.roleArn??process.env[S],n=e?.roleSessionName??process.env[p];if(!o||!r)throw new E("Web identity configuration not specified",{logger:e.logger});return t({...e,webIdentityToken:l(o,{encoding:"ascii"}),roleArn:r,roleSessionName:n})()};export{t as fromWebToken,A as fromTokenFile};
@@ -1 +0,0 @@
1
- import{y as h,z as G} from"./chunk-7ce930fe69575c87.js";import{jb as I} from"./chunk-226243dd851d2050.js";import{mb as H,qb as K} from"./chunk-cd1636884486d7b3.js";var t=G((r,j)=>{var T=function(c){const i={};if(c=c.replace(/^\?/,""),c)for(let n of c.split("&")){let[F,f=null]=n.split("=");if(F=decodeURIComponent(F),f)f=decodeURIComponent(f);if(!(F in i))i[F]=f;else if(Array.isArray(i[F]))i[F].push(f);else i[F]=[i[F],f]}return i},o=Object.defineProperty,M=Object.getOwnPropertyDescriptor,Q=Object.getOwnPropertyNames,U=Object.prototype.hasOwnProperty,O=(c,i)=>o(c,"name",{value:i,configurable:!0}),d=(c,i)=>{for(var n in i)o(c,n,{get:i[n],enumerable:!0})},v=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of Q(i))if(!U.call(c,f)&&f!==n)o(c,f,{get:()=>i[f],enumerable:!(F=M(i,f))||F.enumerable})}return c},J=(c)=>v(o({},"__esModule",{value:!0}),c),S={};d(S,{parseQueryString:()=>T});j.exports=J(S);O(T,"parseQueryString")});var a=G((y,Z)=>{var{defineProperty:w,getOwnPropertyDescriptor:x,getOwnPropertyNames:P}=Object,s=Object.prototype.hasOwnProperty,l=(c,i)=>w(c,"name",{value:i,configurable:!0}),m=(c,i)=>{for(var n in i)w(c,n,{get:i[n],enumerable:!0})},k=(c,i,n,F)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let f of P(i))if(!s.call(c,f)&&f!==n)w(c,f,{get:()=>i[f],enumerable:!(F=x(i,f))||F.enumerable})}return c},q=(c)=>k(w({},"__esModule",{value:!0}),c),z={};m(z,{parseUrl:()=>X});Z.exports=q(z);var p=t(),X=l((c)=>{if(typeof c==="string")return X(new URL(c));const{hostname:i,pathname:n,port:F,protocol:f,search:E}=c;let N;if(E)N=p.parseQueryString(E);return{hostname:i,port:F?parseInt(F):void 0,protocol:f,path:n,query:N}},"parseUrl")});var R=h(I(),1);var b=h(I(),1);function C(c){try{const i=new Set(Array.from(c.match(/([A-Z_]){3,}/g)??[]));return i.delete("CONFIG"),i.delete("CONFIG_PREFIX_SEPARATOR"),i.delete("ENV"),[...i].join(", ")}catch(i){return c}}var B=(c,i)=>async()=>{try{const n=c(process.env);if(n===void 0)throw new Error;return n}catch(n){throw new b.CredentialsProviderError(n.message||`Not found in ENV: ${C(c.toString())}`,{logger:i})}};var L=h(I(),1);var V=(c,{preferredFile:i="config",...n}={})=>async()=>{const F=H(n),{configFile:f,credentialsFile:E}=await K(n),N=E[F]||{},$=f[F]||{},D=i==="config"?{...N,...$}:{...$,...N};try{const A=c(D,i==="config"?f:E);if(A===void 0)throw new Error;return A}catch(g){throw new L.CredentialsProviderError(g.message||`Not found in config files w/ profile [${F}]: ${C(c.toString())}`,{logger:n.logger})}};var W=h(I(),1),u=(c)=>typeof c==="function",Y=(c)=>u(c)?async()=>await c():W.fromStatic(c);var wi=({environmentVariableSelector:c,configFileSelector:i,default:n},F={})=>R.memoize(R.chain(B(c),V(i,F),Y(n)));export{a as hb,wi as ib};