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,18 +0,0 @@
1
- import{x as N0,y as K} from"./chunk-a5c18c07abe8fd9c.js";import{B as x,C as jU,D as s4,G as nU,H as pE,K as gE,O as vG,R as TW} from"./chunk-d9968563c6c84405.js";import{gb as F0} from"./chunk-3bf6f8c8e8589e3d.js";import{hb as vf,ib as Q0} from"./chunk-bd2888a454e50cfd.js";import{jb as M$} from"./chunk-2ec287222364c6b6.js";import{pb as OU} from"./chunk-c62b5c4cec67029c.js";var E1=K((C7,ff)=>{var Uf=function($,U,f){return{applyToStack:(G)=>{G.add(tU($,f),eU),G.add(aU($,U),$f)}}},W1=Object.defineProperty,WL=Object.getOwnPropertyDescriptor,EL=Object.getOwnPropertyNames,LL=Object.prototype.hasOwnProperty,Z$=($,U)=>W1($,"name",{value:U,configurable:!0}),XL=($,U)=>{for(var f in U)W1($,f,{get:U[f],enumerable:!0})},FL=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of EL(U))if(!LL.call($,w)&&w!==f)W1($,w,{get:()=>U[w],enumerable:!(G=WL(U,w))||G.enumerable})}return $},ZL=($)=>FL(W1({},"__esModule",{value:!0}),$),oU={};XL(oU,{deserializerMiddleware:()=>tU,deserializerMiddlewareOption:()=>eU,getSerdePlugin:()=>Uf,serializerMiddleware:()=>aU,serializerMiddlewareOption:()=>$f});ff.exports=ZL(oU);var tU=Z$(($,U)=>(f)=>async(G)=>{const{response:w}=await f(G);try{const W=await U(w,$);return{response:w,output:W}}catch(W){if(Object.defineProperty(W,"$response",{value:w}),!("$metadata"in W)){if(W.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof W.$responseBodyText!=="undefined"){if(W.$response)W.$response.body=W.$responseBodyText}}throw W}},"deserializerMiddleware"),aU=Z$(($,U)=>(f,G)=>async(w)=>{var W;const E=((W=G.endpointV2)==null?void 0:W.url)&&$.urlParser?async()=>$.urlParser(G.endpointV2.url):$.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const L=await U(w.input,{...$,endpoint:E});return f({...w,request:L})},"serializerMiddleware"),eU={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},$f={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};Z$(Uf,"getSerdePlugin")});var k0=K((q7,Ef)=>{var{defineProperty:L1,getOwnPropertyDescriptor:RL,getOwnPropertyNames:IL}=Object,YL=Object.prototype.hasOwnProperty,Gf=($,U)=>L1($,"name",{value:U,configurable:!0}),QL=($,U)=>{for(var f in U)L1($,f,{get:U[f],enumerable:!0})},zL=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of IL(U))if(!YL.call($,w)&&w!==f)L1($,w,{get:()=>U[w],enumerable:!(G=RL(U,w))||G.enumerable})}return $},JL=($)=>zL(L1({},"__esModule",{value:!0}),$),Wf={};QL(Wf,{getSmithyContext:()=>TL,normalizeProvider:()=>KL});Ef.exports=JL(Wf);var wf=F0(),TL=Gf(($)=>$[wf.SMITHY_CONTEXT_KEY]||($[wf.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),KL=Gf(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var M0=K((Lf)=>{Object.defineProperty(Lf,"__esModule",{value:!0});Lf.getHomeDir=void 0;var ML=import.meta.require("os"),OL=import.meta.require("path"),R$={},AL=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},BL=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:f,HOMEDRIVE:G=`C:${OL.sep}`}=process.env;if($)return $;if(U)return U;if(f)return`${G}${f}`;const w=AL();if(!R$[w])R$[w]=ML.homedir();return R$[w]};Lf.getHomeDir=BL});var I$=K((Ff)=>{Object.defineProperty(Ff,"__esModule",{value:!0});Ff.getSSOTokenFilepath=void 0;var VL=import.meta.require("crypto"),HL=import.meta.require("path"),CL=M0(),qL=($)=>{const f=VL.createHash("sha1").update($).digest("hex");return HL.join(CL.getHomeDir(),".aws","sso","cache",`${f}.json`)};Ff.getSSOTokenFilepath=qL});var Yf=K((Rf)=>{Object.defineProperty(Rf,"__esModule",{value:!0});Rf.getSSOTokenFromFile=void 0;var NL=import.meta.require("fs"),PL=I$(),{readFile:jL}=NL.promises,SL=async($)=>{const U=PL.getSSOTokenFilepath($),f=await jL(U,"utf8");return JSON.parse(f)};Rf.getSSOTokenFromFile=SL});var Q$=K((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.slurpFile=void 0;var bL=import.meta.require("fs"),{readFile:hL}=bL.promises,Y$={},DL=($,U)=>{if(!Y$[$]||(U===null||U===void 0?void 0:U.ignoreCache))Y$[$]=hL($,"utf8");return Y$[$]};Qf.slurpFile=DL});var K$=K((b7,v0)=>{var{defineProperty:Z1,getOwnPropertyDescriptor:kL,getOwnPropertyNames:cL}=Object,vL=Object.prototype.hasOwnProperty,u=($,U)=>Z1($,"name",{value:U,configurable:!0}),xL=($,U)=>{for(var f in U)Z1($,f,{get:U[f],enumerable:!0})},z$=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of cL(U))if(!vL.call($,w)&&w!==f)Z1($,w,{get:()=>U[w],enumerable:!(G=kL(U,w))||G.enumerable})}return $},T$=($,U,f)=>(z$($,U,"default"),f&&z$(f,U,"default")),uL=($)=>z$(Z1({},"__esModule",{value:!0}),$),c0={};xL(c0,{CONFIG_PREFIX_SEPARATOR:()=>Z0,DEFAULT_PROFILE:()=>Mf,ENV_PROFILE:()=>Kf,getProfileName:()=>yL,loadSharedConfigFiles:()=>Af,loadSsoSessionData:()=>aL,parseKnownFiles:()=>$X});v0.exports=uL(c0);T$(c0,M0(),v0.exports);var Kf="AWS_PROFILE",Mf="default",yL=u(($)=>$.profile||process.env[Kf]||Mf,"getProfileName");T$(c0,I$(),v0.exports);T$(c0,Yf(),v0.exports);var X1=F0(),_L=u(($)=>Object.entries($).filter(([U])=>{const f=U.indexOf(Z0);if(f===-1)return!1;return Object.values(X1.IniSectionType).includes(U.substring(0,f))}).reduce((U,[f,G])=>{const w=f.indexOf(Z0),W=f.substring(0,w)===X1.IniSectionType.PROFILE?f.substring(w+1):f;return U[W]=G,U},{...$.default&&{default:$.default}}),"getConfigData"),F1=import.meta.require("path"),dL=M0(),pL="AWS_CONFIG_FILE",Of=u(()=>process.env[pL]||F1.join(dL.getHomeDir(),".aws","config"),"getConfigFilepath"),gL=M0(),lL="AWS_SHARED_CREDENTIALS_FILE",sL=u(()=>process.env[lL]||F1.join(gL.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),nL=M0(),mL=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,iL=["__proto__","profile __proto__"],J$=u(($)=>{const U={};let f,G;for(let w of $.split(/\r?\n/)){const W=w.split(/(^|\s)[;#]/)[0].trim();if(W[0]==="["&&W[W.length-1]==="]"){f=void 0,G=void 0;const L=W.substring(1,W.length-1),X=mL.exec(L);if(X){const[,F,,Z]=X;if(Object.values(X1.IniSectionType).includes(F))f=[F,Z].join(Z0)}else f=L;if(iL.includes(L))throw new Error(`Found invalid profile name "${L}"`)}else if(f){const L=W.indexOf("=");if(![0,-1].includes(L)){const[X,F]=[W.substring(0,L).trim(),W.substring(L+1).trim()];if(F==="")G=X;else{if(G&&w.trimStart()===w)G=void 0;U[f]=U[f]||{};const Z=G?[G,X].join(Z0):X;U[f][Z]=F}}}}return U},"parseIni"),Jf=Q$(),Tf=u(()=>({}),"swallowError"),Z0=".",Af=u(async($={})=>{const{filepath:U=sL(),configFilepath:f=Of()}=$,G=nL.getHomeDir();let W=U;if(U.startsWith("~/"))W=F1.join(G,U.slice(2));let E=f;if(f.startsWith("~/"))E=F1.join(G,f.slice(2));const L=await Promise.all([Jf.slurpFile(E,{ignoreCache:$.ignoreCache}).then(J$).then(_L).catch(Tf),Jf.slurpFile(W,{ignoreCache:$.ignoreCache}).then(J$).catch(Tf)]);return{configFile:L[0],credentialsFile:L[1]}},"loadSharedConfigFiles"),rL=u(($)=>Object.entries($).filter(([U])=>U.startsWith(X1.IniSectionType.SSO_SESSION+Z0)).reduce((U,[f,G])=>({...U,[f.substring(f.indexOf(Z0)+1)]:G}),{}),"getSsoSessionData"),oL=Q$(),tL=u(()=>({}),"swallowError"),aL=u(async($={})=>oL.slurpFile($.configFilepath??Of()).then(J$).then(rL).catch(tL),"loadSsoSessionData"),eL=u((...$)=>{const U={};for(let f of $)for(let[G,w]of Object.entries(f))if(U[G]!==void 0)Object.assign(U[G],w);else U[G]=w;return U},"mergeConfigFiles"),$X=u(async($)=>{const U=await Af($);return eL(U.configFile,U.credentialsFile)},"parseKnownFiles")});var Cf=K((h7,Hf)=>{var O$=function($){try{const U=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return U.delete("CONFIG"),U.delete("CONFIG_PREFIX_SEPARATOR"),U.delete("ENV"),[...U].join(", ")}catch(U){return $}},R1=Object.defineProperty,UX=Object.getOwnPropertyDescriptor,fX=Object.getOwnPropertyNames,wX=Object.prototype.hasOwnProperty,O0=($,U)=>R1($,"name",{value:U,configurable:!0}),GX=($,U)=>{for(var f in U)R1($,f,{get:U[f],enumerable:!0})},WX=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of fX(U))if(!wX.call($,w)&&w!==f)R1($,w,{get:()=>U[w],enumerable:!(G=UX(U,w))||G.enumerable})}return $},EX=($)=>WX(R1({},"__esModule",{value:!0}),$),Vf={};GX(Vf,{loadConfig:()=>RX});Hf.exports=EX(Vf);var x0=M$();O0(O$,"getSelectorName");var LX=O0(($,U)=>async()=>{try{const f=$(process.env);if(f===void 0)throw new Error;return f}catch(f){throw new x0.CredentialsProviderError(f.message||`Not found in ENV: ${O$($.toString())}`,{logger:U})}},"fromEnv"),Bf=K$(),XX=O0(($,{preferredFile:U="config",...f}={})=>async()=>{const G=Bf.getProfileName(f),{configFile:w,credentialsFile:W}=await Bf.loadSharedConfigFiles(f),E=W[G]||{},L=w[G]||{},X=U==="config"?{...E,...L}:{...L,...E};try{const Z=$(X,U==="config"?w:W);if(Z===void 0)throw new Error;return Z}catch(F){throw new x0.CredentialsProviderError(F.message||`Not found in config files w/ profile [${G}]: ${O$($.toString())}`,{logger:f.logger})}},"fromSharedConfigFiles"),FX=O0(($)=>typeof $==="function","isFunction"),ZX=O0(($)=>FX($)?async()=>await $():x0.fromStatic($),"fromStatic"),RX=O0(({environmentVariableSelector:$,configFileSelector:U,default:f},G={})=>x0.memoize(x0.chain(LX($),XX(U,G),ZX(f))),"loadConfig")});var bf=K((jf)=>{Object.defineProperty(jf,"__esModule",{value:!0});jf.getEndpointUrlConfig=void 0;var qf=K$(),Nf="AWS_ENDPOINT_URL",Pf="endpoint_url",IX=($)=>({environmentVariableSelector:(U)=>{const f=$.split(" ").map((W)=>W.toUpperCase()),G=U[[Nf,...f].join("_")];if(G)return G;const w=U[Nf];if(w)return w;return},configFileSelector:(U,f)=>{if(f&&U.services){const w=f[["services",U.services].join(qf.CONFIG_PREFIX_SEPARATOR)];if(w){const W=$.split(" ").map((L)=>L.toLowerCase()),E=w[[W.join("_"),Pf].join(qf.CONFIG_PREFIX_SEPARATOR)];if(E)return E}}const G=U[Pf];if(G)return G;return},default:void 0});jf.getEndpointUrlConfig=IX});var kf=K((hf)=>{Object.defineProperty(hf,"__esModule",{value:!0});hf.getEndpointFromConfig=void 0;var YX=Cf(),QX=bf(),zX=async($)=>YX.loadConfig(QX.getEndpointUrlConfig($))();hf.getEndpointFromConfig=zX});var gf=K((c7,pf)=>{var{defineProperty:Y1,getOwnPropertyDescriptor:JX,getOwnPropertyNames:TX}=Object,KX=Object.prototype.hasOwnProperty,p=($,U)=>Y1($,"name",{value:U,configurable:!0}),MX=($,U)=>{for(var f in U)Y1($,f,{get:U[f],enumerable:!0})},OX=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of TX(U))if(!KX.call($,w)&&w!==f)Y1($,w,{get:()=>U[w],enumerable:!(G=JX(U,w))||G.enumerable})}return $},AX=($)=>OX(Y1({},"__esModule",{value:!0}),$),xf={};MX(xf,{endpointMiddleware:()=>_f,endpointMiddlewareOptions:()=>df,getEndpointFromInstructions:()=>uf,getEndpointPlugin:()=>bX,resolveEndpointConfig:()=>hX,resolveParams:()=>yf,toEndpointV1:()=>A$});pf.exports=AX(xf);var BX=p(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(NX(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!qX(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),VX=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,HX=/(\d+\.){3}\d+/,CX=/\.\./,qX=p(($)=>VX.test($)&&!HX.test($)&&!CX.test($),"isDnsCompatibleBucketName"),NX=p(($)=>{const[U,f,G,,,w]=$.split(":"),W=U==="arn"&&$.split(":").length>=6,E=Boolean(W&&f&&G&&w);if(W&&!E)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return E},"isArnBucketName"),PX=p(($,U,f)=>{const G=p(async()=>{const w=f[$]??f[U];if(typeof w==="function")return w();return w},"configProvider");if($==="credentialScope"||U==="CredentialScope")return async()=>{const w=typeof f.credentials==="function"?await f.credentials():f.credentials;return(w==null?void 0:w.credentialScope)??(w==null?void 0:w.CredentialScope)};if($==="accountId"||U==="AccountId")return async()=>{const w=typeof f.credentials==="function"?await f.credentials():f.credentials;return(w==null?void 0:w.accountId)??(w==null?void 0:w.AccountId)};if($==="endpoint"||U==="endpoint")return async()=>{const w=await G();if(w&&typeof w==="object"){if("url"in w)return w.url.href;if("hostname"in w){const{protocol:W,hostname:E,port:L,path:X}=w;return`${W}//${E}${L?":"+L:""}${X}`}}return w};return G},"createConfigValueProvider"),jX=kf(),cf=vf(),A$=p(($)=>{if(typeof $==="object"){if("url"in $)return cf.parseUrl($.url);return $}return cf.parseUrl($)},"toEndpointV1"),uf=p(async($,U,f,G)=>{if(!f.endpoint){const E=await jX.getEndpointFromConfig(f.serviceId||"");if(E)f.endpoint=()=>Promise.resolve(A$(E))}const w=await yf($,U,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(w,G)},"getEndpointFromInstructions"),yf=p(async($,U,f)=>{var G;const w={},W=((G=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:G.call(U))||{};for(let[E,L]of Object.entries(W))switch(L.type){case"staticContextParams":w[E]=L.value;break;case"contextParams":w[E]=$[L.name];break;case"clientContextParams":case"builtInParams":w[E]=await PX(L.name,E,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(W).length===0)Object.assign(w,f);if(String(f.serviceId).toLowerCase()==="s3")await BX(w);return w},"resolveParams"),I1=k0(),_f=p(({config:$,instructions:U})=>{return(f,G)=>async(w)=>{var W,E,L;const X=await uf(w.input,{getEndpointParameterInstructions(){return U}},{...$},G);G.endpointV2=X,G.authSchemes=(W=X.properties)==null?void 0:W.authSchemes;const F=(E=G.authSchemes)==null?void 0:E[0];if(F){G.signing_region=F.signingRegion,G.signing_service=F.signingName;const Z=I1.getSmithyContext(G),R=(L=Z==null?void 0:Z.selectedHttpAuthScheme)==null?void 0:L.httpAuthOption;if(R)R.signingProperties=Object.assign(R.signingProperties||{},{signing_region:F.signingRegion,signingRegion:F.signingRegion,signing_service:F.signingName,signingName:F.signingName,signingRegionSet:F.signingRegionSet},F.properties)}return f({...w})}},"endpointMiddleware"),SX=E1(),df={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:SX.serializerMiddlewareOption.name},bX=p(($,U)=>({applyToStack:(f)=>{f.addRelativeTo(_f({config:$,instructions:U}),df)}}),"getEndpointPlugin"),hX=p(($)=>{const U=$.tls??!0,{endpoint:f}=$,G=f!=null?async()=>A$(await I1.normalizeProvider(f)()):void 0;return{...$,endpoint:G,tls:U,isCustomEndpoint:!!f,useDualstackEndpoint:I1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:I1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var i=K((v7,ef)=>{var of=function($){return Object.keys($).reduce((U,f)=>{const G=$[f];return{...U,[f]:Array.isArray(G)?[...G]:G}},{})},af=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},Q1=Object.defineProperty,DX=Object.getOwnPropertyDescriptor,kX=Object.getOwnPropertyNames,cX=Object.prototype.hasOwnProperty,$0=($,U)=>Q1($,"name",{value:U,configurable:!0}),vX=($,U)=>{for(var f in U)Q1($,f,{get:U[f],enumerable:!0})},xX=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of kX(U))if(!cX.call($,w)&&w!==f)Q1($,w,{get:()=>U[w],enumerable:!(G=DX(U,w))||G.enumerable})}return $},uX=($)=>xX(Q1({},"__esModule",{value:!0}),$),lf={};vX(lf,{Field:()=>dX,Fields:()=>pX,HttpRequest:()=>gX,HttpResponse:()=>lX,IHttpRequest:()=>sf.HttpRequest,getHttpHandlerExtensionConfiguration:()=>yX,isValidHostname:()=>af,resolveHttpHandlerRuntimeConfig:()=>_X});ef.exports=uX(lf);var yX=$0(($)=>{let U=$.httpHandler;return{setHttpHandler(f){U=f},httpHandler(){return U},updateHttpClientConfig(f,G){U.updateHttpClientConfig(f,G)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),_X=$0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),sf=F0(),nf=class ${constructor({name:U,kind:f=sf.FieldPosition.HEADER,values:G=[]}){this.name=U,this.kind=f,this.values=G}add(U){this.values.push(U)}set(U){this.values=U}remove(U){this.values=this.values.filter((f)=>f!==U)}toString(){return this.values.map((U)=>U.includes(",")||U.includes(" ")?`"${U}"`:U).join(", ")}get(){return this.values}};$0(nf,"Field");var dX=nf,mf=class ${constructor({fields:U=[],encoding:f="utf-8"}){this.entries={},U.forEach(this.setField.bind(this)),this.encoding=f}setField(U){this.entries[U.name.toLowerCase()]=U}getField(U){return this.entries[U.toLowerCase()]}removeField(U){delete this.entries[U.toLowerCase()]}getByType(U){return Object.values(this.entries).filter((f)=>f.kind===U)}};$0(mf,"Fields");var pX=mf,rf=class ${constructor(U){this.method=U.method||"GET",this.hostname=U.hostname||"localhost",this.port=U.port,this.query=U.query||{},this.headers=U.headers||{},this.body=U.body,this.protocol=U.protocol?U.protocol.slice(-1)!==":"?`${U.protocol}:`:U.protocol:"https:",this.path=U.path?U.path.charAt(0)!=="/"?`/${U.path}`:U.path:"/",this.username=U.username,this.password=U.password,this.fragment=U.fragment}static clone(U){const f=new $({...U,headers:{...U.headers}});if(f.query)f.query=of(f.query);return f}static isInstance(U){if(!U)return!1;const f=U;return"method"in f&&"protocol"in f&&"hostname"in f&&"path"in f&&typeof f.query==="object"&&typeof f.headers==="object"}clone(){return $.clone(this)}};$0(rf,"HttpRequest");var gX=rf;$0(of,"cloneQuery");var tf=class ${constructor(U){this.statusCode=U.statusCode,this.reason=U.reason,this.headers=U.headers||{},this.body=U.body}static isInstance(U){if(!U)return!1;const f=U;return typeof f.statusCode==="number"&&typeof f.headers==="object"}};$0(tf,"HttpResponse");var lX=tf;$0(af,"isValidHostname")});var B$=K(($w)=>{var nX=function($){return $&&$.__esModule?$:{default:$}},mX=function(){if(z1>J1.length-16)sX.default.randomFillSync(J1),z1=0;return J1.slice(z1,z1+=16)};Object.defineProperty($w,"__esModule",{value:!0});$w.default=mX;var sX=nX(import.meta.require("crypto")),J1=new Uint8Array(256),z1=J1.length});var ww=K((Uw)=>{Object.defineProperty(Uw,"__esModule",{value:!0});Uw.default=void 0;var rX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Uw.default=rX});var u0=K((Gw)=>{var tX=function($){return $&&$.__esModule?$:{default:$}},aX=function($){return typeof $==="string"&&oX.default.test($)};Object.defineProperty(Gw,"__esModule",{value:!0});Gw.default=void 0;var oX=tX(ww()),eX=aX;Gw.default=eX});var y0=K((Lw)=>{var UF=function($){return $&&$.__esModule?$:{default:$}},Ew=function($,U=0){return h[$[U+0]]+h[$[U+1]]+h[$[U+2]]+h[$[U+3]]+"-"+h[$[U+4]]+h[$[U+5]]+"-"+h[$[U+6]]+h[$[U+7]]+"-"+h[$[U+8]]+h[$[U+9]]+"-"+h[$[U+10]]+h[$[U+11]]+h[$[U+12]]+h[$[U+13]]+h[$[U+14]]+h[$[U+15]]},fF=function($,U=0){const f=Ew($,U);if(!$F.default(f))throw TypeError("Stringified UUID is invalid");return f};Object.defineProperty(Lw,"__esModule",{value:!0});Lw.default=void 0;Lw.unsafeStringify=Ew;var $F=UF(u0()),h=[];for(let $=0;$<256;++$)h.push(($+256).toString(16).slice(1));var wF=fF;Lw.default=wF});var Iw=K((Zw)=>{var LF=function($){return $&&$.__esModule?$:{default:$}},XF=function($,U,f){let G=U&&f||0;const w=U||new Array(16);$=$||{};let W=$.node||Fw,E=$.clockseq!==void 0?$.clockseq:V$;if(W==null||E==null){const Y=$.random||($.rng||WF.default)();if(W==null)W=Fw=[Y[0]|1,Y[1],Y[2],Y[3],Y[4],Y[5]];if(E==null)E=V$=(Y[6]<<8|Y[7])&16383}let L=$.msecs!==void 0?$.msecs:Date.now(),X=$.nsecs!==void 0?$.nsecs:C$+1;const F=L-H$+(X-C$)/1e4;if(F<0&&$.clockseq===void 0)E=E+1&16383;if((F<0||L>H$)&&$.nsecs===void 0)X=0;if(X>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");H$=L,C$=X,V$=E,L+=12219292800000;const Z=((L&268435455)*1e4+X)%4294967296;w[G++]=Z>>>24&255,w[G++]=Z>>>16&255,w[G++]=Z>>>8&255,w[G++]=Z&255;const R=L/4294967296*1e4&268435455;w[G++]=R>>>8&255,w[G++]=R&255,w[G++]=R>>>24&15|16,w[G++]=R>>>16&255,w[G++]=E>>>8|128,w[G++]=E&255;for(let Y=0;Y<6;++Y)w[G+Y]=W[Y];return U||EF.unsafeStringify(w)};Object.defineProperty(Zw,"__esModule",{value:!0});Zw.default=void 0;var WF=LF(B$()),EF=y0(),Fw,V$,H$=0,C$=0,FF=XF;Zw.default=FF});var q$=K((Yw)=>{var RF=function($){return $&&$.__esModule?$:{default:$}},IF=function($){if(!ZF.default($))throw TypeError("Invalid UUID");let U;const f=new Uint8Array(16);return f[0]=(U=parseInt($.slice(0,8),16))>>>24,f[1]=U>>>16&255,f[2]=U>>>8&255,f[3]=U&255,f[4]=(U=parseInt($.slice(9,13),16))>>>8,f[5]=U&255,f[6]=(U=parseInt($.slice(14,18),16))>>>8,f[7]=U&255,f[8]=(U=parseInt($.slice(19,23),16))>>>8,f[9]=U&255,f[10]=(U=parseInt($.slice(24,36),16))/1099511627776&255,f[11]=U/4294967296&255,f[12]=U>>>24&255,f[13]=U>>>16&255,f[14]=U>>>8&255,f[15]=U&255,f};Object.defineProperty(Yw,"__esModule",{value:!0});Yw.default=void 0;var ZF=RF(u0()),YF=IF;Yw.default=YF});var N$=K((Tw)=>{var JF=function($){return $&&$.__esModule?$:{default:$}},TF=function($){$=unescape(encodeURIComponent($));const U=[];for(let f=0;f<$.length;++f)U.push($.charCodeAt(f));return U},KF=function($,U,f){function G(w,W,E,L){var X;if(typeof w==="string")w=TF(w);if(typeof W==="string")W=zF.default(W);if(((X=W)===null||X===void 0?void 0:X.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let F=new Uint8Array(16+w.length);if(F.set(W),F.set(w,W.length),F=f(F),F[6]=F[6]&15|U,F[8]=F[8]&63|128,E){L=L||0;for(let Z=0;Z<16;++Z)E[L+Z]=F[Z];return E}return QF.unsafeStringify(F)}try{G.name=$}catch(w){}return G.DNS=zw,G.URL=Jw,G};Object.defineProperty(Tw,"__esModule",{value:!0});Tw.URL=Tw.DNS=void 0;Tw.default=KF;var QF=y0(),zF=JF(q$()),zw="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Tw.DNS=zw;var Jw="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Tw.URL=Jw});var Aw=K((Mw)=>{var BF=function($){return $&&$.__esModule?$:{default:$}},VF=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return AF.default.createHash("md5").update($).digest()};Object.defineProperty(Mw,"__esModule",{value:!0});Mw.default=void 0;var AF=BF(import.meta.require("crypto")),HF=VF;Mw.default=HF});var Cw=K((Vw)=>{var Bw=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.default=void 0;var CF=Bw(N$()),qF=Bw(Aw()),NF=CF.default("v3",48,qF.default),PF=NF;Vw.default=PF});var Pw=K((qw)=>{var SF=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(qw,"__esModule",{value:!0});qw.default=void 0;var jF=SF(import.meta.require("crypto")),bF={randomUUID:jF.default.randomUUID};qw.default=bF});var Dw=K((bw)=>{var Sw=function($){return $&&$.__esModule?$:{default:$}},kF=function($,U,f){if(jw.default.randomUUID&&!U&&!$)return jw.default.randomUUID();$=$||{};const G=$.random||($.rng||hF.default)();if(G[6]=G[6]&15|64,G[8]=G[8]&63|128,U){f=f||0;for(let w=0;w<16;++w)U[f+w]=G[w];return U}return DF.unsafeStringify(G)};Object.defineProperty(bw,"__esModule",{value:!0});bw.default=void 0;var jw=Sw(Pw()),hF=Sw(B$()),DF=y0(),cF=kF;bw.default=cF});var vw=K((kw)=>{var xF=function($){return $&&$.__esModule?$:{default:$}},uF=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return vF.default.createHash("sha1").update($).digest()};Object.defineProperty(kw,"__esModule",{value:!0});kw.default=void 0;var vF=xF(import.meta.require("crypto")),yF=uF;kw.default=yF});var _w=K((uw)=>{var xw=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(uw,"__esModule",{value:!0});uw.default=void 0;var _F=xw(N$()),dF=xw(vw()),pF=_F.default("v5",80,dF.default),gF=pF;uw.default=gF});var gw=K((dw)=>{Object.defineProperty(dw,"__esModule",{value:!0});dw.default=void 0;var lF="00000000-0000-0000-0000-000000000000";dw.default=lF});var nw=K((lw)=>{var nF=function($){return $&&$.__esModule?$:{default:$}},mF=function($){if(!sF.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(lw,"__esModule",{value:!0});lw.default=void 0;var sF=nF(u0()),iF=mF;lw.default=iF});var P$=K((g)=>{var r=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"NIL",{enumerable:!0,get:function(){return eF.default}});Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return w2.default}});Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return f2.default}});Object.defineProperty(g,"v1",{enumerable:!0,get:function(){return rF.default}});Object.defineProperty(g,"v3",{enumerable:!0,get:function(){return oF.default}});Object.defineProperty(g,"v4",{enumerable:!0,get:function(){return tF.default}});Object.defineProperty(g,"v5",{enumerable:!0,get:function(){return aF.default}});Object.defineProperty(g,"validate",{enumerable:!0,get:function(){return U2.default}});Object.defineProperty(g,"version",{enumerable:!0,get:function(){return $2.default}});var rF=r(Iw()),oF=r(Cw()),tF=r(Dw()),aF=r(_w()),eF=r(gw()),$2=r(nw()),U2=r(u0()),f2=r(y0()),w2=r(q$())});var j$=K((e7,ow)=>{var{defineProperty:T1,getOwnPropertyDescriptor:G2,getOwnPropertyNames:W2}=Object,E2=Object.prototype.hasOwnProperty,A0=($,U)=>T1($,"name",{value:U,configurable:!0}),L2=($,U)=>{for(var f in U)T1($,f,{get:U[f],enumerable:!0})},X2=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of W2(U))if(!E2.call($,w)&&w!==f)T1($,w,{get:()=>U[w],enumerable:!(G=G2(U,w))||G.enumerable})}return $},F2=($)=>X2(T1({},"__esModule",{value:!0}),$),mw={};L2(mw,{isClockSkewCorrectedError:()=>iw,isClockSkewError:()=>J2,isRetryableByTrait:()=>z2,isServerError:()=>K2,isThrottlingError:()=>T2,isTransientError:()=>rw});ow.exports=F2(mw);var Z2=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],R2=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],I2=["TimeoutError","RequestTimeout","RequestTimeoutException"],Y2=[500,502,503,504],Q2=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],z2=A0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),J2=A0(($)=>Z2.includes($.name),"isClockSkewError"),iw=A0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),T2=A0(($)=>{var U,f;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||R2.includes($.name)||((f=$.$retryable)==null?void 0:f.throttling)==!0},"isThrottlingError"),rw=A0(($)=>{var U;return iw($)||I2.includes($.name)||Q2.includes(($==null?void 0:$.code)||"")||Y2.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),K2=A0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const f=$.$metadata.httpStatusCode;if(500<=f&&f<=599&&!rw($))return!0;return!1}return!1},"isServerError")});var ZG=K(($z,FG)=>{var{defineProperty:K1,getOwnPropertyDescriptor:M2,getOwnPropertyNames:O2}=Object,A2=Object.prototype.hasOwnProperty,l=($,U)=>K1($,"name",{value:U,configurable:!0}),B2=($,U)=>{for(var f in U)K1($,f,{get:U[f],enumerable:!0})},V2=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of O2(U))if(!A2.call($,w)&&w!==f)K1($,w,{get:()=>U[w],enumerable:!(G=M2(U,w))||G.enumerable})}return $},H2=($)=>V2(K1({},"__esModule",{value:!0}),$),aw={};B2(aw,{AdaptiveRetryStrategy:()=>S2,ConfiguredRetryStrategy:()=>b2,DEFAULT_MAX_ATTEMPTS:()=>S$,DEFAULT_RETRY_DELAY_BASE:()=>_0,DEFAULT_RETRY_MODE:()=>C2,DefaultRateLimiter:()=>UG,INITIAL_RETRY_TOKENS:()=>b$,INVOCATION_ID_HEADER:()=>N2,MAXIMUM_RETRY_DELAY:()=>h$,NO_RETRY_INCREMENT:()=>WG,REQUEST_HEADER:()=>P2,RETRY_COST:()=>wG,RETRY_MODES:()=>ew,StandardRetryStrategy:()=>D$,THROTTLING_RETRY_DELAY_BASE:()=>fG,TIMEOUT_RETRY_COST:()=>GG});FG.exports=H2(aw);var ew=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})(ew||{}),S$=3,C2="standard",q2=j$(),$G=class ${constructor(U){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(U==null?void 0:U.beta)??0.7,this.minCapacity=(U==null?void 0:U.minCapacity)??1,this.minFillRate=(U==null?void 0:U.minFillRate)??0.5,this.scaleConstant=(U==null?void 0:U.scaleConstant)??0.4,this.smooth=(U==null?void 0:U.smooth)??0.8;const f=this.getCurrentTimeInSeconds();this.lastThrottleTime=f,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(U){if(!this.enabled)return;if(this.refillTokenBucket(),U>this.currentCapacity){const f=(U-this.currentCapacity)/this.fillRate*1000;await new Promise((G)=>setTimeout(G,f))}this.currentCapacity=this.currentCapacity-U}refillTokenBucket(){const U=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=U;return}const f=(U-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+f),this.lastTimestamp=U}updateClientSendingRate(U){let f;if(this.updateMeasuredRate(),q2.isThrottlingError(U)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),f=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),f=this.cubicSuccess(this.getCurrentTimeInSeconds());const G=Math.min(f,2*this.measuredTxRate);this.updateTokenBucketRate(G)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(U){return this.getPrecise(U*this.beta)}cubicSuccess(U){return this.getPrecise(this.scaleConstant*Math.pow(U-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(U){this.refillTokenBucket(),this.fillRate=Math.max(U,this.minFillRate),this.maxCapacity=Math.max(U,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const U=this.getCurrentTimeInSeconds(),f=Math.floor(U*2)/2;if(this.requestCount++,f>this.lastTxRateBucket){const G=this.requestCount/(f-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=f}}getPrecise(U){return parseFloat(U.toFixed(8))}};l($G,"DefaultRateLimiter");var UG=$G,_0=100,h$=20000,fG=500,b$=500,wG=5,GG=10,WG=1,N2="amz-sdk-invocation-id",P2="amz-sdk-request",j2=l(()=>{let $=_0;return{computeNextBackoffDelay:l((G)=>{return Math.floor(Math.min(h$,Math.random()*2**G*$))},"computeNextBackoffDelay"),setDelayBase:l((G)=>{$=G},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),tw=l(({retryDelay:$,retryCount:U,retryCost:f})=>{return{getRetryCount:l(()=>U,"getRetryCount"),getRetryDelay:l(()=>Math.min(h$,$),"getRetryDelay"),getRetryCost:l(()=>f,"getRetryCost")}},"createDefaultRetryToken"),EG=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=b$,this.retryBackoffStrategy=j2(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return tw({retryDelay:_0,retryCount:0})}async refreshRetryTokenForRetry(U,f){const G=await this.getMaxAttempts();if(this.shouldRetry(U,f,G)){const w=f.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?fG:_0);const W=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),E=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,W):W,L=this.getCapacityCost(w);return this.capacity-=L,tw({retryDelay:E,retryCount:U.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess(U){this.capacity=Math.max(b$,this.capacity+(U.getRetryCost()??WG))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(U){return console.warn(`Max attempts provider could not resolve. Using default of ${S$}`),S$}}shouldRetry(U,f,G){return U.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(f.errorType)&&this.isRetryableError(f.errorType)}getCapacityCost(U){return U==="TRANSIENT"?GG:wG}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};l(EG,"StandardRetryStrategy");var D$=EG,LG=class ${constructor(U,f){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:G}=f??{};this.rateLimiter=G??new UG,this.standardRetryStrategy=new D$(U)}async acquireInitialRetryToken(U){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(U)}async refreshRetryTokenForRetry(U,f){return this.rateLimiter.updateClientSendingRate(f),this.standardRetryStrategy.refreshRetryTokenForRetry(U,f)}recordSuccess(U){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(U)}};l(LG,"AdaptiveRetryStrategy");var S2=LG,XG=class $ extends D${constructor(U,f=_0){super(typeof U==="function"?U:async()=>U);if(typeof f==="number")this.computeNextBackoffDelay=()=>f;else this.computeNextBackoffDelay=f}async refreshRetryTokenForRetry(U,f){const G=await super.refreshRetryTokenForRetry(U,f);return G.getRetryDelay=()=>this.computeNextBackoffDelay(G.getRetryCount()),G}};l(XG,"ConfiguredRetryStrategy");var b2=XG});var zG=K((Uz,QG)=>{var{defineProperty:M1,getOwnPropertyDescriptor:h2,getOwnPropertyNames:D2}=Object,k2=Object.prototype.hasOwnProperty,y=($,U)=>M1($,"name",{value:U,configurable:!0}),c2=($,U)=>{for(var f in U)M1($,f,{get:U[f],enumerable:!0})},v2=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of D2(U))if(!k2.call($,w)&&w!==f)M1($,w,{get:()=>U[w],enumerable:!(G=h2(U,w))||G.enumerable})}return $},x2=($)=>v2(M1({},"__esModule",{value:!0}),$),YG={};c2(YG,{constructStack:()=>k$});QG.exports=x2(YG);var R0=y(($,U)=>{const f=[];if($)f.push($);if(U)for(let G of U)f.push(G);return f},"getAllAliases"),U0=y(($,U)=>{return`${$||"anonymous"}${U&&U.length>0?` (a.k.a. ${U.join(",")})`:""}`},"getMiddlewareNameWithAliases"),k$=y(()=>{let $=[],U=[],f=!1;const G=new Set,w=y((R)=>R.sort((Y,I)=>RG[I.step]-RG[Y.step]||IG[I.priority||"normal"]-IG[Y.priority||"normal"]),"sort"),W=y((R)=>{let Y=!1;const I=y((Q)=>{const O=R0(Q.name,Q.aliases);if(O.includes(R)){Y=!0;for(let T of O)G.delete(T);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},"removeByName"),E=y((R)=>{let Y=!1;const I=y((Q)=>{if(Q.middleware===R){Y=!0;for(let O of R0(Q.name,Q.aliases))G.delete(O);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},"removeByReference"),L=y((R)=>{var Y;return $.forEach((I)=>{R.add(I.middleware,{...I})}),U.forEach((I)=>{R.addRelativeTo(I.middleware,{...I})}),(Y=R.identifyOnResolve)==null||Y.call(R,Z.identifyOnResolve()),R},"cloneTo"),X=y((R)=>{const Y=[];return R.before.forEach((I)=>{if(I.before.length===0&&I.after.length===0)Y.push(I);else Y.push(...X(I))}),Y.push(R),R.after.reverse().forEach((I)=>{if(I.before.length===0&&I.after.length===0)Y.push(I);else Y.push(...X(I))}),Y},"expandRelativeMiddlewareList"),F=y((R=!1)=>{const Y=[],I=[],Q={};return $.forEach((T)=>{const z={...T,before:[],after:[]};for(let M of R0(z.name,z.aliases))Q[M]=z;Y.push(z)}),U.forEach((T)=>{const z={...T,before:[],after:[]};for(let M of R0(z.name,z.aliases))Q[M]=z;I.push(z)}),I.forEach((T)=>{if(T.toMiddleware){const z=Q[T.toMiddleware];if(z===void 0){if(R)return;throw new Error(`${T.toMiddleware} is not found when adding ${U0(T.name,T.aliases)} middleware ${T.relation} ${T.toMiddleware}`)}if(T.relation==="after")z.after.push(T);if(T.relation==="before")z.before.push(T)}}),w(Y).map(X).reduce((T,z)=>{return T.push(...z),T},[])},"getMiddlewareList"),Z={add:(R,Y={})=>{const{name:I,override:Q,aliases:O}=Y,T={step:"initialize",priority:"normal",middleware:R,...Y},z=R0(I,O);if(z.length>0){if(z.some((M)=>G.has(M))){if(!Q)throw new Error(`Duplicate middleware name '${U0(I,O)}'`);for(let M of z){const A=$.findIndex((V)=>{var e;return V.name===M||((e=V.aliases)==null?void 0:e.some((X0)=>X0===M))});if(A===-1)continue;const B=$[A];if(B.step!==T.step||T.priority!==B.priority)throw new Error(`"${U0(B.name,B.aliases)}" middleware with ${B.priority} priority in ${B.step} step cannot be overridden by "${U0(I,O)}" middleware with ${T.priority} priority in ${T.step} step.`);$.splice(A,1)}}for(let M of z)G.add(M)}$.push(T)},addRelativeTo:(R,Y)=>{const{name:I,override:Q,aliases:O}=Y,T={middleware:R,...Y},z=R0(I,O);if(z.length>0){if(z.some((M)=>G.has(M))){if(!Q)throw new Error(`Duplicate middleware name '${U0(I,O)}'`);for(let M of z){const A=U.findIndex((V)=>{var e;return V.name===M||((e=V.aliases)==null?void 0:e.some((X0)=>X0===M))});if(A===-1)continue;const B=U[A];if(B.toMiddleware!==T.toMiddleware||B.relation!==T.relation)throw new Error(`"${U0(B.name,B.aliases)}" middleware ${B.relation} "${B.toMiddleware}" middleware cannot be overridden by "${U0(I,O)}" middleware ${T.relation} "${T.toMiddleware}" middleware.`);U.splice(A,1)}}for(let M of z)G.add(M)}U.push(T)},clone:()=>L(k$()),use:(R)=>{R.applyToStack(Z)},remove:(R)=>{if(typeof R==="string")return W(R);else return E(R)},removeByTag:(R)=>{let Y=!1;const I=y((Q)=>{const{tags:O,name:T,aliases:z}=Q;if(O&&O.includes(R)){const M=R0(T,z);for(let A of M)G.delete(A);return Y=!0,!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},concat:(R)=>{var Y;const I=L(k$());return I.use(R),I.identifyOnResolve(f||I.identifyOnResolve()||(((Y=R.identifyOnResolve)==null?void 0:Y.call(R))??!1)),I},applyToStack:L,identify:()=>{return F(!0).map((R)=>{const Y=R.step??R.relation+" "+R.toMiddleware;return U0(R.name,R.aliases)+" - "+Y})},identifyOnResolve(R){if(typeof R==="boolean")f=R;return f},resolve:(R,Y)=>{for(let I of F().map((Q)=>Q.middleware).reverse())R=I(R,Y);if(f)console.log(Z.identify());return R}};return Z},"constructStack"),RG={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},IG={high:3,normal:2,low:1}});var c$=K((fz,TG)=>{var{defineProperty:O1,getOwnPropertyDescriptor:u2,getOwnPropertyNames:y2}=Object,_2=Object.prototype.hasOwnProperty,d2=($,U)=>O1($,"name",{value:U,configurable:!0}),p2=($,U)=>{for(var f in U)O1($,f,{get:U[f],enumerable:!0})},g2=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of y2(U))if(!_2.call($,w)&&w!==f)O1($,w,{get:()=>U[w],enumerable:!(G=u2(U,w))||G.enumerable})}return $},l2=($)=>g2(O1({},"__esModule",{value:!0}),$),JG={};p2(JG,{isArrayBuffer:()=>s2});TG.exports=l2(JG);var s2=d2(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var d0=K((wz,OG)=>{var{defineProperty:A1,getOwnPropertyDescriptor:n2,getOwnPropertyNames:m2}=Object,i2=Object.prototype.hasOwnProperty,KG=($,U)=>A1($,"name",{value:U,configurable:!0}),r2=($,U)=>{for(var f in U)A1($,f,{get:U[f],enumerable:!0})},o2=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of m2(U))if(!i2.call($,w)&&w!==f)A1($,w,{get:()=>U[w],enumerable:!(G=n2(U,w))||G.enumerable})}return $},t2=($)=>o2(A1({},"__esModule",{value:!0}),$),MG={};r2(MG,{fromArrayBuffer:()=>e2,fromString:()=>$Z});OG.exports=t2(MG);var a2=c$(),v$=import.meta.require("buffer"),e2=KG(($,U=0,f=$.byteLength-U)=>{if(!a2.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return v$.Buffer.from($,U,f)},"fromArrayBuffer"),$Z=KG(($,U)=>{if(typeof $!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return U?v$.Buffer.from($,U):v$.Buffer.from($)},"fromString")});var VG=K((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.fromBase64=void 0;var UZ=d0(),fZ=/^[A-Za-z0-9+/]*={0,2}$/,wZ=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!fZ.exec($))throw new TypeError("Invalid base64 string.");const U=UZ.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};AG.fromBase64=wZ});var f0=K((Wz,NG)=>{var{defineProperty:B1,getOwnPropertyDescriptor:GZ,getOwnPropertyNames:WZ}=Object,EZ=Object.prototype.hasOwnProperty,x$=($,U)=>B1($,"name",{value:U,configurable:!0}),LZ=($,U)=>{for(var f in U)B1($,f,{get:U[f],enumerable:!0})},XZ=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of WZ(U))if(!EZ.call($,w)&&w!==f)B1($,w,{get:()=>U[w],enumerable:!(G=GZ(U,w))||G.enumerable})}return $},FZ=($)=>XZ(B1({},"__esModule",{value:!0}),$),HG={};LZ(HG,{fromUtf8:()=>qG,toUint8Array:()=>ZZ,toUtf8:()=>RZ});NG.exports=FZ(HG);var CG=d0(),qG=x$(($)=>{const U=CG.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),ZZ=x$(($)=>{if(typeof $==="string")return qG($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),RZ=x$(($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return CG.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var SG=K((PG)=>{Object.defineProperty(PG,"__esModule",{value:!0});PG.toBase64=void 0;var IZ=d0(),YZ=f0(),QZ=($)=>{let U;if(typeof $==="string")U=YZ.fromUtf8($);else U=$;if(typeof U!=="object"||typeof U.byteOffset!=="number"||typeof U.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return IZ.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};PG.toBase64=QZ});var H1=K((Lz,V1)=>{var{defineProperty:bG,getOwnPropertyDescriptor:zZ,getOwnPropertyNames:JZ}=Object,TZ=Object.prototype.hasOwnProperty,u$=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of JZ(U))if(!TZ.call($,w)&&w!==f)bG($,w,{get:()=>U[w],enumerable:!(G=zZ(U,w))||G.enumerable})}return $},hG=($,U,f)=>(u$($,U,"default"),f&&u$(f,U,"default")),KZ=($)=>u$(bG({},"__esModule",{value:!0}),$),y$={};V1.exports=KZ(y$);hG(y$,VG(),V1.exports);hG(y$,SG(),V1.exports)});var cG=K((DG)=>{Object.defineProperty(DG,"__esModule",{value:!0});DG.getAwsChunkedEncodingStream=void 0;var MZ=import.meta.require("stream"),OZ=($,U)=>{const{base64Encoder:f,bodyLengthChecker:G,checksumAlgorithmFn:w,checksumLocationName:W,streamHasher:E}=U,L=f!==void 0&&w!==void 0&&W!==void 0&&E!==void 0,X=L?E(w,$):void 0,F=new MZ.Readable({read:()=>{}});return $.on("data",(Z)=>{const R=G(Z)||0;F.push(`${R.toString(16)}\r\n`),F.push(Z),F.push("\r\n")}),$.on("end",async()=>{if(F.push("0\r\n"),L){const Z=f(await X);F.push(`${W}:${Z}\r\n`),F.push("\r\n")}F.push(null)}),F};DG.getAwsChunkedEncodingStream=OZ});var d$=K((Fz,yG)=>{var uG=function($){const U=[];for(let f of Object.keys($).sort()){const G=$[f];if(f=_$.escapeUri(f),Array.isArray(G))for(let w=0,W=G.length;w<W;w++)U.push(`${f}=${_$.escapeUri(G[w])}`);else{let w=f;if(G||typeof G==="string")w+=`=${_$.escapeUri(G)}`;U.push(w)}}return U.join("&")},C1=Object.defineProperty,AZ=Object.getOwnPropertyDescriptor,BZ=Object.getOwnPropertyNames,VZ=Object.prototype.hasOwnProperty,HZ=($,U)=>C1($,"name",{value:U,configurable:!0}),CZ=($,U)=>{for(var f in U)C1($,f,{get:U[f],enumerable:!0})},qZ=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of BZ(U))if(!VZ.call($,w)&&w!==f)C1($,w,{get:()=>U[w],enumerable:!(G=AZ(U,w))||G.enumerable})}return $},NZ=($)=>qZ(C1({},"__esModule",{value:!0}),$),xG={};CZ(xG,{buildQueryString:()=>uG});yG.exports=NZ(xG);var _$=vG();HZ(uG,"buildQueryString")});var fW=K((Zz,UW)=>{async function l$($,U,f=_G){const G=U.headers??{},w=G.Expect||G.expect;let W=-1,E=!1;if(w==="100-continue")await Promise.race([new Promise((L)=>{W=Number(setTimeout(L,Math.max(_G,f)))}),new Promise((L)=>{$.on("continue",()=>{clearTimeout(W),L()}),$.on("error",()=>{E=!0,clearTimeout(W),L()})})]);if(!E)iG($,U.body)}var iG=function($,U){if(U instanceof mG.Readable){U.pipe($);return}if(U){if(Buffer.isBuffer(U)||typeof U==="string"){$.end(U);return}const f=U;if(typeof f==="object"&&f.buffer&&typeof f.byteOffset==="number"&&typeof f.byteLength==="number"){$.end(Buffer.from(f.buffer,f.byteOffset,f.byteLength));return}$.end(Buffer.from(U));return}$.end()};async function $W($){const U=[],f=$.getReader();let G=!1,w=0;while(!G){const{done:L,value:X}=await f.read();if(X)U.push(X),w+=X.length;G=L}const W=new Uint8Array(w);let E=0;for(let L of U)W.set(L,E),E+=L.length;return W}var{create:PZ,defineProperty:p0,getOwnPropertyDescriptor:jZ,getOwnPropertyNames:SZ,getPrototypeOf:bZ}=Object,hZ=Object.prototype.hasOwnProperty,P=($,U)=>p0($,"name",{value:U,configurable:!0}),DZ=($,U)=>{for(var f in U)p0($,f,{get:U[f],enumerable:!0})},pG=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of SZ(U))if(!hZ.call($,w)&&w!==f)p0($,w,{get:()=>U[w],enumerable:!(G=jZ(U,w))||G.enumerable})}return $},kZ=($,U,f)=>(f=$!=null?PZ(bZ($)):{},pG(U||!$||!$.__esModule?p0(f,"default",{value:$,enumerable:!0}):f,$)),cZ=($)=>pG(p0({},"__esModule",{value:!0}),$),gG={};DZ(gG,{DEFAULT_REQUEST_TIMEOUT:()=>_Z,NodeHttp2Handler:()=>sZ,NodeHttpHandler:()=>dZ,streamCollector:()=>mZ});UW.exports=cZ(gG);var lG=i(),sG=d$(),p$=import.meta.require("http"),g$=import.meta.require("https"),vZ=["ECONNRESET","EPIPE","ETIMEDOUT"],nG=P(($)=>{const U={};for(let f of Object.keys($)){const G=$[f];U[f]=Array.isArray(G)?G.join(","):G}return U},"getTransformedHeaders"),xZ=P(($,U,f=0)=>{if(!f)return;const G=setTimeout(()=>{$.destroy(),U(Object.assign(new Error(`Socket timed out without establishing a connection within ${f} ms`),{name:"TimeoutError"}))},f);$.on("socket",(w)=>{if(w.connecting)w.on("connect",()=>{clearTimeout(G)});else clearTimeout(G)})},"setConnectionTimeout"),uZ=P(($,{keepAlive:U,keepAliveMsecs:f})=>{if(U!==!0)return;$.on("socket",(G)=>{G.setKeepAlive(U,f||0)})},"setSocketKeepAlive"),yZ=P(($,U,f=0)=>{$.setTimeout(f,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${f} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),mG=import.meta.require("stream"),_G=1000;P(l$,"writeRequestBody");P(iG,"writeBody");var _Z=0,rG=class ${constructor(U){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((f,G)=>{if(typeof U==="function")U().then((w)=>{f(this.resolveDefaultConfig(w))}).catch(G);else f(this.resolveDefaultConfig(U))})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}static checkSocketUsage(U,f,G=console){var w,W,E;const{sockets:L,requests:X,maxSockets:F}=U;if(typeof F!=="number"||F===Infinity)return f;const Z=15000;if(Date.now()-Z<f)return f;if(L&&X)for(let R in L){const Y=((w=L[R])==null?void 0:w.length)??0,I=((W=X[R])==null?void 0:W.length)??0;if(Y>=F&&I>=2*F)return(E=G==null?void 0:G.warn)==null||E.call(G,`@smithy/node-http-handler:WARN - socket usage at capacity=${Y} and ${I} 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 f}resolveDefaultConfig(U){const{requestTimeout:f,connectionTimeout:G,socketTimeout:w,httpAgent:W,httpsAgent:E}=U||{};return{connectionTimeout:G,requestTimeout:f??w,httpAgent:(()=>{if(W instanceof p$.Agent||typeof(W==null?void 0:W.destroy)==="function")return W;return new p$.Agent({keepAlive:!0,maxSockets:50,...W})})(),httpsAgent:(()=>{if(E instanceof g$.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new g$.Agent({keepAlive:!0,maxSockets:50,...E})})(),logger:console}}destroy(){var U,f,G,w;(f=(U=this.config)==null?void 0:U.httpAgent)==null||f.destroy(),(w=(G=this.config)==null?void 0:G.httpsAgent)==null||w.destroy()}async handle(U,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;let G;return new Promise((w,W)=>{let E=void 0;const L=P(async(M)=>{await E,clearTimeout(G),w(M)},"resolve"),X=P(async(M)=>{await E,clearTimeout(G),W(M)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f==null?void 0:f.aborted){const M=new Error("Request aborted");M.name="AbortError",X(M);return}const F=U.protocol==="https:",Z=F?this.config.httpsAgent:this.config.httpAgent;G=setTimeout(()=>{this.socketWarningTimestamp=$.checkSocketUsage(Z,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const R=sG.buildQueryString(U.query||{});let Y=void 0;if(U.username!=null||U.password!=null){const M=U.username??"",A=U.password??"";Y=`${M}:${A}`}let I=U.path;if(R)I+=`?${R}`;if(U.fragment)I+=`#${U.fragment}`;const Q={headers:U.headers,host:U.hostname,method:U.method,path:I,port:U.port,agent:Z,auth:Y},T=(F?g$.request:p$.request)(Q,(M)=>{const A=new lG.HttpResponse({statusCode:M.statusCode||-1,reason:M.statusMessage,headers:nG(M.headers),body:M});L({response:A})});if(T.on("error",(M)=>{if(vZ.includes(M.code))X(Object.assign(M,{name:"TimeoutError"}));else X(M)}),xZ(T,X,this.config.connectionTimeout),yZ(T,X,this.config.requestTimeout),f){const M=P(()=>{T.destroy();const A=new Error("Request aborted");A.name="AbortError",X(A)},"onAbort");if(typeof f.addEventListener==="function"){const A=f;A.addEventListener("abort",M,{once:!0}),T.once("close",()=>A.removeEventListener("abort",M))}else f.onabort=M}const z=Q.agent;if(typeof z==="object"&&"keepAlive"in z)uZ(T,{keepAlive:z.keepAlive,keepAliveMsecs:z.keepAliveMsecs});E=l$(T,U,this.config.requestTimeout).catch((M)=>{return clearTimeout(G),W(M)})})}updateHttpClientConfig(U,f){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return{...G,[U]:f}})}httpHandlerConfigs(){return this.config??{}}};P(rG,"NodeHttpHandler");var dZ=rG,dG=import.meta.require("http2"),pZ=kZ(import.meta.require("http2")),oG=class ${constructor(U){this.sessions=[],this.sessions=U??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(U){this.sessions.push(U)}contains(U){return this.sessions.includes(U)}remove(U){this.sessions=this.sessions.filter((f)=>f!==U)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(U){for(let f of this.sessions)if(f===U){if(!f.destroyed)f.destroy()}}};P(oG,"NodeHttp2ConnectionPool");var gZ=oG,tG=class ${constructor(U){if(this.sessionCache=new Map,this.config=U,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(U,f){const G=this.getUrlString(U),w=this.sessionCache.get(G);if(w){const X=w.poll();if(X&&!this.config.disableConcurrency)return X}const W=pZ.default.connect(G);if(this.config.maxConcurrency)W.settings({maxConcurrentStreams:this.config.maxConcurrency},(X)=>{if(X)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+U.destination.toString())});W.unref();const E=P(()=>{W.destroy(),this.deleteSession(G,W)},"destroySessionCb");if(W.on("goaway",E),W.on("error",E),W.on("frameError",E),W.on("close",()=>this.deleteSession(G,W)),f.requestTimeout)W.setTimeout(f.requestTimeout,E);const L=this.sessionCache.get(G)||new gZ;return L.offerLast(W),this.sessionCache.set(G,L),W}deleteSession(U,f){const G=this.sessionCache.get(U);if(!G)return;if(!G.contains(f))return;G.remove(f),this.sessionCache.set(U,G)}release(U,f){var G;const w=this.getUrlString(U);(G=this.sessionCache.get(w))==null||G.offerLast(f)}destroy(){for(let[U,f]of this.sessionCache){for(let G of f){if(!G.destroyed)G.destroy();f.remove(G)}this.sessionCache.delete(U)}}setMaxConcurrentStreams(U){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=U}setDisableConcurrentStreams(U){this.config.disableConcurrency=U}getUrlString(U){return U.destination.toString()}};P(tG,"NodeHttp2ConnectionManager");var lZ=tG,aG=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new lZ({}),this.configProvider=new Promise((f,G)=>{if(typeof U==="function")U().then((w)=>{f(w||{})}).catch(G);else f(U||{})})}static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}destroy(){this.connectionManager.destroy()}async handle(U,{abortSignal:f}={}){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:G,disableConcurrentStreams:w}=this.config;return new Promise((W,E)=>{var L;let X=!1,F=void 0;const Z=P(async(N)=>{await F,W(N)},"resolve"),R=P(async(N)=>{await F,E(N)},"reject");if(f==null?void 0:f.aborted){X=!0;const N=new Error("Request aborted");N.name="AbortError",R(N);return}const{hostname:Y,method:I,port:Q,protocol:O,query:T}=U;let z="";if(U.username!=null||U.password!=null){const N=U.username??"",d=U.password??"";z=`${N}:${d}@`}const M=`${O}//${z}${Y}${Q?`:${Q}`:""}`,A={destination:new URL(M)},B=this.connectionManager.lease(A,{requestTimeout:(L=this.config)==null?void 0:L.sessionTimeout,disableConcurrentStreams:w||!1}),V=P((N)=>{if(w)this.destroySession(B);X=!0,R(N)},"rejectWithDestroy"),e=sG.buildQueryString(T||{});let X0=U.path;if(e)X0+=`?${e}`;if(U.fragment)X0+=`#${U.fragment}`;const v=B.request({...U.headers,[dG.constants.HTTP2_HEADER_PATH]:X0,[dG.constants.HTTP2_HEADER_METHOD]:I});if(B.ref(),v.on("response",(N)=>{const d=new lG.HttpResponse({statusCode:N[":status"]||-1,headers:nG(N),body:v});if(X=!0,Z({response:d}),w)B.close(),this.connectionManager.deleteSession(M,B)}),G)v.setTimeout(G,()=>{v.close();const N=new Error(`Stream timed out because of no activity for ${G} ms`);N.name="TimeoutError",V(N)});if(f){const N=P(()=>{v.close();const d=new Error("Request aborted");d.name="AbortError",V(d)},"onAbort");if(typeof f.addEventListener==="function"){const d=f;d.addEventListener("abort",N,{once:!0}),v.once("close",()=>d.removeEventListener("abort",N))}else f.onabort=N}v.on("frameError",(N,d,oE)=>{V(new Error(`Frame type id ${N} in stream id ${oE} has failed with code ${d}.`))}),v.on("error",V),v.on("aborted",()=>{V(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${v.rstCode}.`))}),v.on("close",()=>{if(B.unref(),w)B.destroy();if(!X)V(new Error("Unexpected error: http2 request did not get a response"))}),F=l$(v,U,G)})}updateHttpClientConfig(U,f){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return{...G,[U]:f}})}httpHandlerConfigs(){return this.config??{}}destroySession(U){if(!U.destroyed)U.destroy()}};P(aG,"NodeHttp2Handler");var sZ=aG,eG=class $ extends mG.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,f,G){this.bufferedBytes.push(U),G()}};P(eG,"Collector");var nZ=eG,mZ=P(($)=>{if(iZ($))return $W($);return new Promise((U,f)=>{const G=new nZ;$.pipe(G),$.on("error",(w)=>{G.end(),f(w)}),G.on("error",f),G.on("finish",function(){const w=new Uint8Array(Buffer.concat(this.bufferedBytes));U(w)})})},"streamCollector"),iZ=P(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");P($W,"collectReadableStream")});var RW=K((Rz,ZW)=>{var WW=function($=0){return new Promise((U,f)=>{if($)setTimeout(()=>{const G=new Error(`Request did not complete within ${$} ms`);G.name="TimeoutError",f(G)},$)})};async function LW($){const U=await FW($),f=wR.fromBase64(U);return new Uint8Array(f)}async function XW($){const U=[],f=$.getReader();let G=!1,w=0;while(!G){const{done:L,value:X}=await f.read();if(X)U.push(X),w+=X.length;G=L}const W=new Uint8Array(w);let E=0;for(let L of U)W.set(L,E),E+=L.length;return W}var FW=function($){return new Promise((U,f)=>{const G=new FileReader;G.onloadend=()=>{if(G.readyState!==2)return f(new Error("Reader aborted too early"));const w=G.result??"",W=w.indexOf(","),E=W>-1?W+1:w.length;U(w.substring(E))},G.onabort=()=>f(new Error("Read aborted")),G.onerror=()=>f(G.error),G.readAsDataURL($)})},N1=Object.defineProperty,rZ=Object.getOwnPropertyDescriptor,oZ=Object.getOwnPropertyNames,tZ=Object.prototype.hasOwnProperty,o=($,U)=>N1($,"name",{value:U,configurable:!0}),aZ=($,U)=>{for(var f in U)N1($,f,{get:U[f],enumerable:!0})},eZ=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of oZ(U))if(!tZ.call($,w)&&w!==f)N1($,w,{get:()=>U[w],enumerable:!(G=rZ(U,w))||G.enumerable})}return $},$R=($)=>eZ(N1({},"__esModule",{value:!0}),$),GW={};aZ(GW,{FetchHttpHandler:()=>fR,keepAliveSupport:()=>q1,streamCollector:()=>GR});ZW.exports=$R(GW);var wW=i(),UR=d$();o(WW,"requestTimeout");var q1={supported:void 0},EW=class ${static create(U){if(typeof(U==null?void 0:U.handle)==="function")return U;return new $(U)}constructor(U){if(typeof U==="function")this.configProvider=U().then((f)=>f||{});else this.config=U??{},this.configProvider=Promise.resolve(this.config);if(q1.supported===void 0)q1.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in new Request("https://[::1]"))}destroy(){}async handle(U,{abortSignal:f}={}){if(!this.config)this.config=await this.configProvider;const G=this.config.requestTimeout,w=this.config.keepAlive===!0,W=this.config.credentials;if(f==null?void 0:f.aborted){const z=new Error("Request aborted");return z.name="AbortError",Promise.reject(z)}let E=U.path;const L=UR.buildQueryString(U.query||{});if(L)E+=`?${L}`;if(U.fragment)E+=`#${U.fragment}`;let X="";if(U.username!=null||U.password!=null){const z=U.username??"",M=U.password??"";X=`${z}:${M}@`}const{port:F,method:Z}=U,R=`${U.protocol}//${X}${U.hostname}${F?`:${F}`:""}${E}`,Y=Z==="GET"||Z==="HEAD"?void 0:U.body,I={body:Y,headers:new Headers(U.headers),method:Z,credentials:W};if(Y)I.duplex="half";if(typeof AbortController!=="undefined")I.signal=f;if(q1.supported)I.keepalive=w;let Q=o(()=>{},"removeSignalEventListener");const O=new Request(R,I),T=[fetch(O).then((z)=>{const M=z.headers,A={};for(let V of M.entries())A[V[0]]=V[1];if(z.body==null)return z.blob().then((V)=>({response:new wW.HttpResponse({headers:A,reason:z.statusText,statusCode:z.status,body:V})}));return{response:new wW.HttpResponse({headers:A,reason:z.statusText,statusCode:z.status,body:z.body})}}),WW(G)];if(f)T.push(new Promise((z,M)=>{const A=o(()=>{const B=new Error("Request aborted");B.name="AbortError",M(B)},"onAbort");if(typeof f.addEventListener==="function"){const B=f;B.addEventListener("abort",A,{once:!0}),Q=o(()=>B.removeEventListener("abort",A),"removeSignalEventListener")}else f.onabort=A}));return Promise.race(T).finally(Q)}updateHttpClientConfig(U,f){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return G[U]=f,G})}httpHandlerConfigs(){return this.config??{}}};o(EW,"FetchHttpHandler");var fR=EW,wR=H1(),GR=o(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return LW($);return XW($)},"streamCollector");o(LW,"collectBlob");o(XW,"collectStream");o(FW,"readToBase64")});var g0=K((IW)=>{Object.defineProperty(IW,"__esModule",{value:!0});IW.isReadableStream=void 0;var WR=($)=>{var U;return typeof ReadableStream==="function"&&(((U=$===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)===ReadableStream.name||$ instanceof ReadableStream)};IW.isReadableStream=WR});var OW=K((KW)=>{Object.defineProperty(KW,"__esModule",{value:!0});KW.sdkStreamMixin=void 0;var ER=RW(),LR=H1(),XR=TW(),FR=f0(),QW=g0(),zW="The stream has already been transformed.",ZR=($)=>{var U,f;if(!JW($)&&!QW.isReadableStream($)){const E=((f=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||f===void 0?void 0:f.name)||$;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${E}`)}let G=!1;const w=async()=>{if(G)throw new Error(zW);return G=!0,await ER.streamCollector($)},W=(E)=>{if(typeof E.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 E.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(E)=>{const L=await w();if(E==="base64")return LR.toBase64(L);else if(E==="hex")return XR.toHex(L);else if(E===void 0||E==="utf8"||E==="utf-8")return FR.toUtf8(L);else if(typeof TextDecoder==="function")return new TextDecoder(E).decode(L);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(G)throw new Error(zW);if(G=!0,JW($))return W($);else if(QW.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};KW.sdkStreamMixin=ZR;var JW=($)=>typeof Blob==="function"&&$ instanceof Blob});var HW=K((BW)=>{Object.defineProperty(BW,"__esModule",{value:!0});BW.sdkStreamMixin=void 0;var RR=fW(),IR=d0(),s$=import.meta.require("stream"),YR=import.meta.require("util"),QR=OW(),AW="The stream has already been transformed.",zR=($)=>{var U,f;if(!($ instanceof s$.Readable))try{return QR.sdkStreamMixin($)}catch(W){const E=((f=(U=$===null||$===void 0?void 0:$.__proto__)===null||U===void 0?void 0:U.constructor)===null||f===void 0?void 0:f.name)||$;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${E}`)}let G=!1;const w=async()=>{if(G)throw new Error(AW);return G=!0,await RR.streamCollector($)};return Object.assign($,{transformToByteArray:w,transformToString:async(W)=>{const E=await w();if(W===void 0||Buffer.isEncoding(W))return IR.fromArrayBuffer(E.buffer,E.byteOffset,E.byteLength).toString(W);else return new YR.TextDecoder(W).decode(E)},transformToWebStream:()=>{if(G)throw new Error(AW);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof s$.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 G=!0,s$.Readable.toWeb($)}})};BW.sdkStreamMixin=zR});var NW=K((CW)=>{async function JR($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(CW,"__esModule",{value:!0});CW.splitStream=void 0;CW.splitStream=JR});var bW=K((jW)=>{async function MR($){if(KR.isReadableStream($))return TR.splitStream($);const U=new PW.PassThrough,f=new PW.PassThrough;return $.pipe(U),$.pipe(f),[U,f]}Object.defineProperty(jW,"__esModule",{value:!0});jW.splitStream=void 0;var PW=import.meta.require("stream"),TR=NW(),KR=g0();jW.splitStream=MR});var kW=K((hW)=>{async function OR($,U){var f;let G=0;const w=[],W=$.getReader();let E=!1;while(!E){const{done:F,value:Z}=await W.read();if(Z)w.push(Z),G+=(f=Z===null||Z===void 0?void 0:Z.byteLength)!==null&&f!==void 0?f:0;if(G>=U)break;E=F}W.releaseLock();const L=new Uint8Array(Math.min(U,G));let X=0;for(let F of w){if(F.byteLength>L.byteLength-X){L.set(F.subarray(0,L.byteLength-X),X);break}else L.set(F,X);X+=F.length}return L}Object.defineProperty(hW,"__esModule",{value:!0});hW.headStream=void 0;hW.headStream=OR});var uW=K((vW)=>{Object.defineProperty(vW,"__esModule",{value:!0});vW.headStream=void 0;var AR=import.meta.require("stream"),BR=kW(),VR=g0(),HR=($,U)=>{if(VR.isReadableStream($))return BR.headStream($,U);return new Promise((f,G)=>{const w=new cW;w.limit=U,$.pipe(w),$.on("error",(W)=>{w.end(),G(W)}),w.on("error",G),w.on("finish",function(){const W=new Uint8Array(Buffer.concat(this.buffers));f(W)})})};vW.headStream=HR;class cW extends AR.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write($,U,f){var G;if(this.buffers.push($),this.bytesBuffered+=(G=$.byteLength)!==null&&G!==void 0?G:0,this.bytesBuffered>=this.limit){const w=this.bytesBuffered-this.limit,W=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=W.subarray(0,W.byteLength-w),this.emit("finish")}f()}}});var lW=K((Mz,Y0)=>{var dW=function($,U="utf-8"){if(U==="base64")return yW.toBase64($);return _W.toUtf8($)},pW=function($,U){if(U==="base64")return m$.mutate(yW.fromBase64($));return m$.mutate(_W.fromUtf8($))},P1=Object.defineProperty,CR=Object.getOwnPropertyDescriptor,qR=Object.getOwnPropertyNames,NR=Object.prototype.hasOwnProperty,i$=($,U)=>P1($,"name",{value:U,configurable:!0}),PR=($,U)=>{for(var f in U)P1($,f,{get:U[f],enumerable:!0})},n$=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of qR(U))if(!NR.call($,w)&&w!==f)P1($,w,{get:()=>U[w],enumerable:!(G=CR(U,w))||G.enumerable})}return $},l0=($,U,f)=>(n$($,U,"default"),f&&n$(f,U,"default")),jR=($)=>n$(P1({},"__esModule",{value:!0}),$),I0={};PR(I0,{Uint8ArrayBlobAdapter:()=>m$});Y0.exports=jR(I0);var yW=H1(),_W=f0();i$(dW,"transformToString");i$(pW,"transformFromString");var gW=class $ extends Uint8Array{static fromString(U,f="utf-8"){switch(typeof U){case"string":return pW(U,f);default:throw new Error(`Unsupported conversion from ${typeof U} to Uint8ArrayBlobAdapter.`)}}static mutate(U){return Object.setPrototypeOf(U,$.prototype),U}transformToString(U="utf-8"){return dW(this,U)}};i$(gW,"Uint8ArrayBlobAdapter");var m$=gW;l0(I0,cG(),Y0.exports);l0(I0,HW(),Y0.exports);l0(I0,bW(),Y0.exports);l0(I0,uW(),Y0.exports);l0(I0,g0(),Y0.exports)});var C0=K((Oz,Y8)=>{var G8=function($){const U=$.getUTCFullYear(),f=$.getUTCMonth(),G=$.getUTCDay(),w=$.getUTCDate(),W=$.getUTCHours(),E=$.getUTCMinutes(),L=$.getUTCSeconds(),X=w<10?`0${w}`:`${w}`,F=W<10?`0${W}`:`${W}`,Z=E<10?`0${E}`:`${E}`,R=L<10?`0${L}`:`${L}`;return`${wI[G]}, ${X} ${WU[f]} ${U} ${F}:${Z}:${R} GMT`},b1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},EU=function($,U,f){let G,w,W;if(typeof U==="undefined"&&typeof f==="undefined")G={},W=$;else if(G=$,typeof U==="function")return w=U,W=f,vI(G,w,W);else W=U;for(let E of Object.keys(W)){if(!Array.isArray(W[E])){G[E]=W[E];continue}R8(G,null,W,E)}return G},I8=function($,U,f){if(f<=0||!Number.isInteger(f))throw new Error("Invalid number of delimiters ("+f+") for splitEvery.");const G=$.split(U);if(f===1)return G;const w=[];let W="";for(let E=0;E<G.length;E++){if(W==="")W=G[E];else W+=U+G[E];if((E+1)%f===0)w.push(W),W=""}if(W!=="")w.push(W);return w},h1=Object.defineProperty,SR=Object.getOwnPropertyDescriptor,bR=Object.getOwnPropertyNames,hR=Object.prototype.hasOwnProperty,J=($,U)=>h1($,"name",{value:U,configurable:!0}),DR=($,U)=>{for(var f in U)h1($,f,{get:U[f],enumerable:!0})},kR=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of bR(U))if(!hR.call($,w)&&w!==f)h1($,w,{get:()=>U[w],enumerable:!(G=SR(U,w))||G.enumerable})}return $},cR=($)=>kR(h1({},"__esModule",{value:!0}),$),nW={};DR(nW,{Client:()=>xR,Command:()=>tW,LazyJsonString:()=>DI,NoOpLogger:()=>vR,SENSITIVE_STRING:()=>_R,ServiceException:()=>AI,StringWrapper:()=>r0,_json:()=>UU,collectBody:()=>uR,convertMap:()=>kI,createAggregatedClient:()=>dR,dateToUtcString:()=>G8,decorateServiceException:()=>E8,emitWarningIfUnsupportedVersion:()=>CI,expectBoolean:()=>gR,expectByte:()=>$U,expectFloat32:()=>j1,expectInt:()=>sR,expectInt32:()=>a$,expectLong:()=>m0,expectNonNull:()=>mR,expectNumber:()=>n0,expectObject:()=>eW,expectShort:()=>e$,expectString:()=>iR,expectUnion:()=>rR,extendedEncodeURIComponent:()=>b1,getArrayIfSingleItem:()=>hI,getDefaultClientConfiguration:()=>SI,getDefaultExtensionConfiguration:()=>X8,getValueFromTextNode:()=>F8,handleFloat:()=>aR,limitedParseDouble:()=>GU,limitedParseFloat:()=>eR,limitedParseFloat32:()=>$I,loadConfigsForDefaultMode:()=>HI,logger:()=>i0,map:()=>EU,parseBoolean:()=>pR,parseEpochTimestamp:()=>II,parseRfc3339DateTime:()=>WI,parseRfc3339DateTimeWithOffset:()=>LI,parseRfc7231DateTime:()=>RI,resolveDefaultRuntimeConfig:()=>bI,resolvedPath:()=>yI,serializeDateTime:()=>dI,serializeFloat:()=>_I,splitEvery:()=>I8,strictParseByte:()=>w8,strictParseDouble:()=>wU,strictParseFloat:()=>oR,strictParseFloat32:()=>$8,strictParseInt:()=>UI,strictParseInt32:()=>fI,strictParseLong:()=>f8,strictParseShort:()=>B0,take:()=>cI,throwDefaultError:()=>L8,withBaseException:()=>BI});Y8.exports=cR(nW);var mW=class ${trace(){}debug(){}info(){}warn(){}error(){}};J(mW,"NoOpLogger");var vR=mW,iW=zG(),rW=class ${constructor(U){this.middlewareStack=iW.constructStack(),this.config=U}send(U,f,G){const w=typeof f!=="function"?f:void 0,W=typeof f==="function"?f:G,E=U.resolveMiddleware(this.middlewareStack,this.config,w);if(W)E(U).then((L)=>W(null,L.output),(L)=>W(L)).catch(()=>{});else return E(U).then((L)=>L.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};J(rW,"Client");var xR=rW,r$=lW(),uR=J(async($=new Uint8Array,U)=>{if($ instanceof Uint8Array)return r$.Uint8ArrayBlobAdapter.mutate($);if(!$)return r$.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const f=U.streamCollector($);return r$.Uint8ArrayBlobAdapter.mutate(await f)},"collectBody"),t$=F0(),oW=class ${constructor(){this.middlewareStack=iW.constructStack()}static classBuilder(){return new yR}resolveMiddlewareWithContext(U,f,G,{middlewareFn:w,clientName:W,commandName:E,inputFilterSensitiveLog:L,outputFilterSensitiveLog:X,smithyContext:F,additionalContext:Z,CommandCtor:R}){for(let T of w.bind(this)(R,U,f,G))this.middlewareStack.use(T);const Y=U.concat(this.middlewareStack),{logger:I}=f,Q={logger:I,clientName:W,commandName:E,inputFilterSensitiveLog:L,outputFilterSensitiveLog:X,[t$.SMITHY_CONTEXT_KEY]:{commandInstance:this,...F},...Z},{requestHandler:O}=f;return Y.resolve((T)=>O.handle(T.request,G||{}),Q)}};J(oW,"Command");var tW=oW,aW=class ${constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(U)=>U,this._outputFilterSensitiveLog=(U)=>U,this._serializer=null,this._deserializer=null}init(U){this._init=U}ep(U){return this._ep=U,this}m(U){return this._middlewareFn=U,this}s(U,f,G={}){return this._smithyContext={service:U,operation:f,...G},this}c(U={}){return this._additionalContext=U,this}n(U,f){return this._clientName=U,this._commandName=f,this}f(U=(G)=>G,f=(G)=>G){return this._inputFilterSensitiveLog=U,this._outputFilterSensitiveLog=f,this}ser(U){return this._serializer=U,this}de(U){return this._deserializer=U,this}build(){var U;const f=this;let G;return G=(U=class extends tW{constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(w,W,E){return this.resolveMiddlewareWithContext(w,W,E,{CommandCtor:G,middlewareFn:f._middlewareFn,clientName:f._clientName,commandName:f._commandName,inputFilterSensitiveLog:f._inputFilterSensitiveLog,outputFilterSensitiveLog:f._outputFilterSensitiveLog,smithyContext:f._smithyContext,additionalContext:f._additionalContext})}},J(U,"CommandRef"),U)}};J(aW,"ClassBuilder");var yR=aW,_R="***SensitiveInformation***",dR=J(($,U)=>{for(let f of Object.keys($)){const G=$[f],w=J(async function(E,L,X){const F=new G(E);if(typeof L==="function")this.send(F,L);else if(typeof X==="function"){if(typeof L!=="object")throw new Error(`Expected http options but got ${typeof L}`);this.send(F,L||{},X)}else return this.send(F,L)},"methodImpl"),W=(f[0].toLowerCase()+f.slice(1)).replace(/Command$/,"");U.prototype[W]=w}},"createAggregatedClient"),pR=J(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),gR=J(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)i0.warn(S1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")i0.warn(S1(`Expected boolean, got ${typeof $}: ${$}`));if(U==="false")return!1;if(U==="true")return!0}if(typeof $==="boolean")return $;throw new TypeError(`Expected boolean, got ${typeof $}: ${$}`)},"expectBoolean"),n0=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))i0.warn(S1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),lR=Math.ceil(340282346638528860000000000000000000000),j1=J(($)=>{const U=n0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>lR)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),m0=J(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),sR=m0,a$=J(($)=>fU($,32),"expectInt32"),e$=J(($)=>fU($,16),"expectShort"),$U=J(($)=>fU($,8),"expectByte"),fU=J(($,U)=>{const f=m0($);if(f!==void 0&&nR(f,U)!==f)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return f},"expectSizedInt"),nR=J(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),mR=J(($,U)=>{if($===null||$===void 0){if(U)throw new TypeError(`Expected a non-null value for ${U}`);throw new TypeError("Expected a non-null value")}return $},"expectNonNull"),eW=J(($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;const U=Array.isArray($)?"array":typeof $;throw new TypeError(`Expected object, got ${U}: ${$}`)},"expectObject"),iR=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return i0.warn(S1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),rR=J(($)=>{if($===null||$===void 0)return;const U=eW($),f=Object.entries(U).filter(([,G])=>G!=null).map(([G])=>G);if(f.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(f.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${f} were not null.`);return U},"expectUnion"),wU=J(($)=>{if(typeof $=="string")return n0(H0($));return n0($)},"strictParseDouble"),oR=wU,$8=J(($)=>{if(typeof $=="string")return j1(H0($));return j1($)},"strictParseFloat32"),tR=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,H0=J(($)=>{const U=$.match(tR);if(U===null||U[0].length!==$.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat($)},"parseNumber"),GU=J(($)=>{if(typeof $=="string")return U8($);return n0($)},"limitedParseDouble"),aR=GU,eR=GU,$I=J(($)=>{if(typeof $=="string")return U8($);return j1($)},"limitedParseFloat32"),U8=J(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),f8=J(($)=>{if(typeof $==="string")return m0(H0($));return m0($)},"strictParseLong"),UI=f8,fI=J(($)=>{if(typeof $==="string")return a$(H0($));return a$($)},"strictParseInt32"),B0=J(($)=>{if(typeof $==="string")return e$(H0($));return e$($)},"strictParseShort"),w8=J(($)=>{if(typeof $==="string")return $U(H0($));return $U($)},"strictParseByte"),S1=J(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),i0={warn:console.warn},wI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],WU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];J(G8,"dateToUtcString");var GI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),WI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=GI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[f,G,w,W,E,L,X,F]=U,Z=B0(V0(G)),R=n(w,"month",1,12),Y=n(W,"day",1,31);return s0(Z,R,Y,{hours:E,minutes:L,seconds:X,fractionalMilliseconds:F})},"parseRfc3339DateTime"),EI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),LI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=EI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[f,G,w,W,E,L,X,F,Z]=U,R=B0(V0(G)),Y=n(w,"month",1,12),I=n(W,"day",1,31),Q=s0(R,Y,I,{hours:E,minutes:L,seconds:X,fractionalMilliseconds:F});if(Z.toUpperCase()!="Z")Q.setTime(Q.getTime()-OI(Z));return Q},"parseRfc3339DateTimeWithOffset"),XI=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$/),FI=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$/),ZI=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})$/),RI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=XI.exec($);if(U){const[f,G,w,W,E,L,X,F]=U;return s0(B0(V0(W)),o$(w),n(G,"day",1,31),{hours:E,minutes:L,seconds:X,fractionalMilliseconds:F})}if(U=FI.exec($),U){const[f,G,w,W,E,L,X,F]=U;return zI(s0(YI(W),o$(w),n(G,"day",1,31),{hours:E,minutes:L,seconds:X,fractionalMilliseconds:F}))}if(U=ZI.exec($),U){const[f,G,w,W,E,L,X,F]=U;return s0(B0(V0(F)),o$(G),n(w.trimLeft(),"day",1,31),{hours:W,minutes:E,seconds:L,fractionalMilliseconds:X})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),II=J(($)=>{if($===null||$===void 0)return;let U;if(typeof $==="number")U=$;else if(typeof $==="string")U=wU($);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(U)||U===Infinity||U===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(U*1000))},"parseEpochTimestamp"),s0=J(($,U,f,G)=>{const w=U-1;return TI($,w,f),new Date(Date.UTC($,w,f,n(G.hours,"hour",0,23),n(G.minutes,"minute",0,59),n(G.seconds,"seconds",0,60),MI(G.fractionalMilliseconds)))},"buildDate"),YI=J(($)=>{const U=(new Date()).getUTCFullYear(),f=Math.floor(U/100)*100+B0(V0($));if(f<U)return f+100;return f},"parseTwoDigitYear"),QI=1576800000000,zI=J(($)=>{if($.getTime()-(new Date()).getTime()>QI)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),o$=J(($)=>{const U=WU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),JI=[31,28,31,30,31,30,31,31,30,31,30,31],TI=J(($,U,f)=>{let G=JI[U];if(U===1&&KI($))G=29;if(f>G)throw new TypeError(`Invalid day for ${WU[U]} in ${$}: ${f}`)},"validateDayOfMonth"),KI=J(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),n=J(($,U,f,G)=>{const w=w8(V0($));if(w<f||w>G)throw new TypeError(`${U} must be between ${f} and ${G}, inclusive`);return w},"parseDateValue"),MI=J(($)=>{if($===null||$===void 0)return 0;return $8("0."+$)*1000},"parseMilliseconds"),OI=J(($)=>{const U=$[0];let f=1;if(U=="+")f=1;else if(U=="-")f=-1;else throw new TypeError(`Offset direction, ${U}, must be "+" or "-"`);const G=Number($.substring(1,3)),w=Number($.substring(4,6));return f*(G*60+w)*60*1000},"parseOffsetToMilliseconds"),V0=J(($)=>{let U=0;while(U<$.length-1&&$.charAt(U)==="0")U++;if(U===0)return $;return $.slice(U)},"stripLeadingZeroes"),W8=class $ extends Error{constructor(U){super(U.message);Object.setPrototypeOf(this,$.prototype),this.name=U.name,this.$fault=U.$fault,this.$metadata=U.$metadata}};J(W8,"ServiceException");var AI=W8,E8=J(($,U={})=>{Object.entries(U).filter(([,G])=>G!==void 0).forEach(([G,w])=>{if($[G]==null||$[G]==="")$[G]=w});const f=$.message||$.Message||"UnknownError";return $.message=f,delete $.Message,$},"decorateServiceException"),L8=J(({output:$,parsedBody:U,exceptionCtor:f,errorCode:G})=>{const w=VI($),W=w.httpStatusCode?w.httpStatusCode+"":void 0,E=new f({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||G||W||"UnknownError",$fault:"client",$metadata:w});throw E8(E,U)},"throwDefaultError"),BI=J(($)=>{return({output:U,parsedBody:f,errorCode:G})=>{L8({output:U,parsedBody:f,exceptionCtor:$,errorCode:G})}},"withBaseException"),VI=J(($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),"deserializeMetadata"),HI=J(($)=>{switch($){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{}}},"loadConfigsForDefaultMode"),sW=!1,CI=J(($)=>{if($&&!sW&&parseInt($.substring(1,$.indexOf(".")))<16)sW=!0},"emitWarningIfUnsupportedVersion"),qI=J(($)=>{const U=[];for(let f in t$.AlgorithmId){const G=t$.AlgorithmId[f];if($[G]===void 0)continue;U.push({algorithmId:()=>G,checksumConstructor:()=>$[G]})}return{_checksumAlgorithms:U,addChecksumAlgorithm(f){this._checksumAlgorithms.push(f)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),NI=J(($)=>{const U={};return $.checksumAlgorithms().forEach((f)=>{U[f.algorithmId()]=f.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),PI=J(($)=>{let U=$.retryStrategy;return{setRetryStrategy(f){U=f},retryStrategy(){return U}}},"getRetryConfiguration"),jI=J(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),X8=J(($)=>{return{...qI($),...PI($)}},"getDefaultExtensionConfiguration"),SI=X8,bI=J(($)=>{return{...NI($),...jI($)}},"resolveDefaultRuntimeConfig");J(b1,"extendedEncodeURIComponent");var hI=J(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),F8=J(($)=>{for(let f in $)if($.hasOwnProperty(f)&&$[f]["#text"]!==void 0)$[f]=$[f]["#text"];else if(typeof $[f]==="object"&&$[f]!==null)$[f]=F8($[f]);return $},"getValueFromTextNode"),r0=J(function(){const $=Object.getPrototypeOf(this).constructor,f=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(f,$.prototype),f},"StringWrapper");r0.prototype=Object.create(String.prototype,{constructor:{value:r0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(r0,String);var Z8=class $ extends r0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(U){if(U instanceof $)return U;else if(U instanceof String||typeof U==="string")return new $(U);return new $(JSON.stringify(U))}};J(Z8,"LazyJsonString");var DI=Z8;J(EU,"map");var kI=J(($)=>{const U={};for(let[f,G]of Object.entries($||{}))U[f]=[,G];return U},"convertMap"),cI=J(($,U)=>{const f={};for(let G in U)R8(f,$,U,G);return f},"take"),vI=J(($,U,f)=>{return EU($,Object.entries(f).reduce((G,[w,W])=>{if(Array.isArray(W))G[w]=W;else if(typeof W==="function")G[w]=[U,W()];else G[w]=[U,W];return G},{}))},"mapWithFilter"),R8=J(($,U,f,G)=>{if(U!==null){let E=f[G];if(typeof E==="function")E=[,E];const[L=xI,X=uI,F=G]=E;if(typeof L==="function"&&L(U[F])||typeof L!=="function"&&!!L)$[G]=X(U[F]);return}let[w,W]=f[G];if(typeof W==="function"){let E;const L=w===void 0&&(E=W())!=null,X=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(L)$[G]=E;else if(X)$[G]=W()}else{const E=w===void 0&&W!=null,L=typeof w==="function"&&!!w(W)||typeof w!=="function"&&!!w;if(E||L)$[G]=W}},"applyInstruction"),xI=J(($)=>$!=null,"nonNullish"),uI=J(($)=>$,"pass"),yI=J(($,U,f,G,w,W)=>{if(U!=null&&U[f]!==void 0){const E=G();if(E.length<=0)throw new Error("Empty value provided for input HTTP label: "+f+".");$=$.replace(w,W?E.split("/").map((L)=>b1(L)).join("/"):b1(E))}else throw new Error("No value provided for input HTTP label: "+f+".");return $},"resolvedPath"),_I=J(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),dI=J(($)=>$.toISOString().replace(".000Z","Z"),"serializeDateTime"),UU=J(($)=>{if($==null)return{};if(Array.isArray($))return $.filter((U)=>U!=null).map(UU);if(typeof $==="object"){const U={};for(let f of Object.keys($)){if($[f]==null)continue;U[f]=UU($[f])}return U}return $},"_json");J(I8,"splitEvery")});var J8=K((Q8)=>{Object.defineProperty(Q8,"__esModule",{value:!0});Q8.isStreamingPayload=void 0;var pI=import.meta.require("stream"),gI=($)=>($===null||$===void 0?void 0:$.body)instanceof pI.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;Q8.isStreamingPayload=gI});var k8=K((Vz,D8)=>{var{defineProperty:D1,getOwnPropertyDescriptor:lI,getOwnPropertyNames:sI}=Object,nI=Object.prototype.hasOwnProperty,S=($,U)=>D1($,"name",{value:U,configurable:!0}),mI=($,U)=>{for(var f in U)D1($,f,{get:U[f],enumerable:!0})},iI=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of sI(U))if(!nI.call($,w)&&w!==f)D1($,w,{get:()=>U[w],enumerable:!(G=lI(U,w))||G.enumerable})}return $},rI=($)=>iI(D1({},"__esModule",{value:!0}),$),K8={};mI(K8,{AdaptiveRetryStrategy:()=>aI,CONFIG_MAX_ATTEMPTS:()=>XU,CONFIG_RETRY_MODE:()=>N8,ENV_MAX_ATTEMPTS:()=>LU,ENV_RETRY_MODE:()=>q8,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>eI,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>UY,StandardRetryStrategy:()=>H8,defaultDelayDecider:()=>O8,defaultRetryDecider:()=>A8,getOmitRetryHeadersPlugin:()=>fY,getRetryAfterHint:()=>h8,getRetryPlugin:()=>XY,omitRetryHeadersMiddleware:()=>P8,omitRetryHeadersMiddlewareOptions:()=>j8,resolveRetryConfig:()=>$Y,retryMiddleware:()=>S8,retryMiddlewareOptions:()=>b8});D8.exports=rI(K8);var q0=i(),M8=P$(),q=ZG(),oI=S(($,U)=>{const f=$,G=(U==null?void 0:U.noRetryIncrement)??q.NO_RETRY_INCREMENT,w=(U==null?void 0:U.retryCost)??q.RETRY_COST,W=(U==null?void 0:U.timeoutRetryCost)??q.TIMEOUT_RETRY_COST;let E=$;const L=S((R)=>R.name==="TimeoutError"?W:w,"getCapacityAmount"),X=S((R)=>L(R)<=E,"hasRetryTokens");return Object.freeze({hasRetryTokens:X,retrieveRetryTokens:S((R)=>{if(!X(R))throw new Error("No retry token available");const Y=L(R);return E-=Y,Y},"retrieveRetryTokens"),releaseRetryTokens:S((R)=>{E+=R??G,E=Math.min(E,f)},"releaseRetryTokens")})},"getDefaultRetryQuota"),O8=S(($,U)=>Math.floor(Math.min(q.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),w0=j$(),A8=S(($)=>{if(!$)return!1;return w0.isRetryableByTrait($)||w0.isClockSkewError($)||w0.isThrottlingError($)||w0.isTransientError($)},"defaultRetryDecider"),B8=S(($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)},"asSdkError"),V8=class ${constructor(U,f){this.maxAttemptsProvider=U,this.mode=q.RETRY_MODES.STANDARD,this.retryDecider=(f==null?void 0:f.retryDecider)??A8,this.delayDecider=(f==null?void 0:f.delayDecider)??O8,this.retryQuota=(f==null?void 0:f.retryQuota)??oI(q.INITIAL_RETRY_TOKENS)}shouldRetry(U,f,G){return f<G&&this.retryDecider(U)&&this.retryQuota.hasRetryTokens(U)}async getMaxAttempts(){let U;try{U=await this.maxAttemptsProvider()}catch(f){U=q.DEFAULT_MAX_ATTEMPTS}return U}async retry(U,f,G){let w,W=0,E=0;const L=await this.getMaxAttempts(),{request:X}=f;if(q0.HttpRequest.isInstance(X))X.headers[q.INVOCATION_ID_HEADER]=M8.v4();while(!0)try{if(q0.HttpRequest.isInstance(X))X.headers[q.REQUEST_HEADER]=`attempt=${W+1}; max=${L}`;if(G==null?void 0:G.beforeRequest)await G.beforeRequest();const{response:F,output:Z}=await U(f);if(G==null?void 0:G.afterRequest)G.afterRequest(F);return this.retryQuota.releaseRetryTokens(w),Z.$metadata.attempts=W+1,Z.$metadata.totalRetryDelay=E,{response:F,output:Z}}catch(F){const Z=B8(F);if(W++,this.shouldRetry(Z,W,L)){w=this.retryQuota.retrieveRetryTokens(Z);const R=this.delayDecider(w0.isThrottlingError(Z)?q.THROTTLING_RETRY_DELAY_BASE:q.DEFAULT_RETRY_DELAY_BASE,W),Y=tI(Z.$response),I=Math.max(Y||0,R);E+=I,await new Promise((Q)=>setTimeout(Q,I));continue}if(!Z.$metadata)Z.$metadata={};throw Z.$metadata.attempts=W,Z.$metadata.totalRetryDelay=E,Z}}};S(V8,"StandardRetryStrategy");var H8=V8,tI=S(($)=>{if(!q0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!U)return;const f=$.headers[U],G=Number(f);if(!Number.isNaN(G))return G*1000;return new Date(f).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),C8=class $ extends H8{constructor(U,f){const{rateLimiter:G,...w}=f??{};super(U,w);this.rateLimiter=G??new q.DefaultRateLimiter,this.mode=q.RETRY_MODES.ADAPTIVE}async retry(U,f){return super.retry(U,f,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(G)=>{this.rateLimiter.updateClientSendingRate(G)}})}};S(C8,"AdaptiveRetryStrategy");var aI=C8,T8=k0(),LU="AWS_MAX_ATTEMPTS",XU="max_attempts",eI={environmentVariableSelector:($)=>{const U=$[LU];if(!U)return;const f=parseInt(U);if(Number.isNaN(f))throw new Error(`Environment variable ${LU} mast be a number, got "${U}"`);return f},configFileSelector:($)=>{const U=$[XU];if(!U)return;const f=parseInt(U);if(Number.isNaN(f))throw new Error(`Shared config file entry ${XU} mast be a number, got "${U}"`);return f},default:q.DEFAULT_MAX_ATTEMPTS},$Y=S(($)=>{const{retryStrategy:U}=$,f=T8.normalizeProvider($.maxAttempts??q.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:f,retryStrategy:async()=>{if(U)return U;if(await T8.normalizeProvider($.retryMode)()===q.RETRY_MODES.ADAPTIVE)return new q.AdaptiveRetryStrategy(f);return new q.StandardRetryStrategy(f)}}},"resolveRetryConfig"),q8="AWS_RETRY_MODE",N8="retry_mode",UY={environmentVariableSelector:($)=>$[q8],configFileSelector:($)=>$[N8],default:q.DEFAULT_RETRY_MODE},P8=S(()=>($)=>async(U)=>{const{request:f}=U;if(q0.HttpRequest.isInstance(f))delete f.headers[q.INVOCATION_ID_HEADER],delete f.headers[q.REQUEST_HEADER];return $(U)},"omitRetryHeadersMiddleware"),j8={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},fY=S(($)=>({applyToStack:(U)=>{U.addRelativeTo(P8(),j8)}}),"getOmitRetryHeadersPlugin"),wY=C0(),GY=J8(),S8=S(($)=>(U,f)=>async(G)=>{var w;let W=await $.retryStrategy();const E=await $.maxAttempts();if(WY(W)){W=W;let L=await W.acquireInitialRetryToken(f.partition_id),X=new Error,F=0,Z=0;const{request:R}=G,Y=q0.HttpRequest.isInstance(R);if(Y)R.headers[q.INVOCATION_ID_HEADER]=M8.v4();while(!0)try{if(Y)R.headers[q.REQUEST_HEADER]=`attempt=${F+1}; max=${E}`;const{response:I,output:Q}=await U(G);return W.recordSuccess(L),Q.$metadata.attempts=F+1,Q.$metadata.totalRetryDelay=Z,{response:I,output:Q}}catch(I){const Q=EY(I);if(X=B8(I),Y&&GY.isStreamingPayload(R))throw(w=f.logger instanceof wY.NoOpLogger?console:f.logger)==null||w.warn("An error was encountered in a non-retryable streaming request."),X;try{L=await W.refreshRetryTokenForRetry(L,Q)}catch(T){if(!X.$metadata)X.$metadata={};throw X.$metadata.attempts=F+1,X.$metadata.totalRetryDelay=Z,X}F=L.getRetryCount();const O=L.getRetryDelay();Z+=O,await new Promise((T)=>setTimeout(T,O))}}else{if(W=W,W==null?void 0:W.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",W.mode]];return W.retry(U,G)}},"retryMiddleware"),WY=S(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),EY=S(($)=>{const U={error:$,errorType:LY($)},f=h8($.$response);if(f)U.retryAfterHint=f;return U},"getRetryErrorInfo"),LY=S(($)=>{if(w0.isThrottlingError($))return"THROTTLING";if(w0.isTransientError($))return"TRANSIENT";if(w0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),b8={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},XY=S(($)=>({applyToStack:(U)=>{U.add(S8($),b8)}}),"getRetryPlugin"),h8=S(($)=>{if(!q0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!U)return;const f=$.headers[U],G=Number(f);if(!Number.isNaN(G))return new Date(G*1000);return new Date(f)},"getRetryAfterHint")});var ZU=K((Hz,e8)=>{var x8=function($){const U=new Map;for(let f of $)U.set(f.schemeId,f);return U},r8=function($,U){return new t8($,U)},a8=function($,U,f,G,w){return C(async function*W(E,L,...X){let F=E.startingToken||void 0,Z=!0,R;while(Z){if(L[f]=F,w)L[w]=L[w]??E.pageSize;if(E.client instanceof $)R=await hY(U,E.client,L,...X);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield R;const Y=F;F=DY(R,G),Z=!!(F&&(!E.stopOnSameToken||F!==Y))}return},"paginateOperation")},c1=Object.defineProperty,FY=Object.getOwnPropertyDescriptor,ZY=Object.getOwnPropertyNames,RY=Object.prototype.hasOwnProperty,C=($,U)=>c1($,"name",{value:U,configurable:!0}),IY=($,U)=>{for(var f in U)c1($,f,{get:U[f],enumerable:!0})},YY=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of ZY(U))if(!RY.call($,w)&&w!==f)c1($,w,{get:()=>U[w],enumerable:!(G=FY(U,w))||G.enumerable})}return $},QY=($)=>YY(c1({},"__esModule",{value:!0}),$),c8={};IY(c8,{DefaultIdentityProviderConfig:()=>VY,EXPIRATION_MS:()=>m8,HttpApiKeyAuthSigner:()=>HY,HttpBearerAuthSigner:()=>CY,NoAuthSigner:()=>qY,RequestBuilder:()=>t8,createIsIdentityExpiredFunction:()=>n8,createPaginator:()=>a8,doesIdentityRequireRefresh:()=>i8,getHttpAuthSchemeEndpointRuleSetPlugin:()=>JY,getHttpAuthSchemePlugin:()=>KY,getHttpSigningPlugin:()=>BY,getSmithyContext:()=>jY,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>u8,httpAuthSchemeMiddleware:()=>FU,httpAuthSchemeMiddlewareOptions:()=>y8,httpSigningMiddleware:()=>_8,httpSigningMiddlewareOptions:()=>d8,isIdentityExpired:()=>NY,memoizeIdentityProvider:()=>PY,normalizeProvider:()=>SY,requestBuilder:()=>r8});e8.exports=QY(c8);var v8=k0();C(x8,"convertHttpAuthSchemesToMap");var FU=C(($,U)=>(f,G)=>async(w)=>{var W;const E=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,G,w.input)),L=x8($.httpAuthSchemes),X=v8.getSmithyContext(G),F=[];for(let Z of E){const R=L.get(Z.schemeId);if(!R){F.push(`HttpAuthScheme \`${Z.schemeId}\` was not enabled for this service.`);continue}const Y=R.identityProvider(await U.identityProviderConfigProvider($));if(!Y){F.push(`HttpAuthScheme \`${Z.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:I={},signingProperties:Q={}}=((W=Z.propertiesExtractor)==null?void 0:W.call(Z,$,G))||{};Z.identityProperties=Object.assign(Z.identityProperties||{},I),Z.signingProperties=Object.assign(Z.signingProperties||{},Q),X.selectedHttpAuthScheme={httpAuthOption:Z,identity:await Y(Z.identityProperties),signer:R.signer};break}if(!X.selectedHttpAuthScheme)throw new Error(F.join("\n"));return f(w)},"httpAuthSchemeMiddleware"),zY=gf(),u8={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:zY.endpointMiddlewareOptions.name},JY=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f})=>({applyToStack:(G)=>{G.addRelativeTo(FU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f}),u8)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),TY=E1(),y8={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:TY.serializerMiddlewareOption.name},KY=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f})=>({applyToStack:(G)=>{G.addRelativeTo(FU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f}),y8)}}),"getHttpAuthSchemePlugin"),v1=i(),MY=C(($)=>(U)=>{throw U},"defaultErrorHandler"),OY=C(($,U)=>{},"defaultSuccessHandler"),_8=C(($)=>(U,f)=>async(G)=>{if(!v1.HttpRequest.isInstance(G.request))return U(G);const W=v8.getSmithyContext(f).selectedHttpAuthScheme;if(!W)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:E={}},identity:L,signer:X}=W,F=await U({...G,request:await X.sign(G.request,L,E)}).catch((X.errorHandler||MY)(E));return(X.successHandler||OY)(F.response,E),F},"httpSigningMiddleware"),AY=k8(),d8={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:AY.retryMiddlewareOptions.name},BY=C(($)=>({applyToStack:(U)=>{U.addRelativeTo(_8($),d8)}}),"getHttpSigningPlugin"),p8=class ${constructor(U){this.authSchemes=new Map;for(let[f,G]of Object.entries(U))if(G!==void 0)this.authSchemes.set(f,G)}getIdentityProvider(U){return this.authSchemes.get(U)}};C(p8,"DefaultIdentityProviderConfig");var VY=p8,k1=F0(),g8=class ${async sign(U,f,G){if(!G)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!f.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const w=v1.HttpRequest.clone(U);if(G.in===k1.HttpApiKeyAuthLocation.QUERY)w.query[G.name]=f.apiKey;else if(G.in===k1.HttpApiKeyAuthLocation.HEADER)w.headers[G.name]=G.scheme?`${G.scheme} ${f.apiKey}`:f.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return w}};C(g8,"HttpApiKeyAuthSigner");var HY=g8,l8=class ${async sign(U,f,G){const w=v1.HttpRequest.clone(U);if(!f.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return w.headers.Authorization=`Bearer ${f.token}`,w}};C(l8,"HttpBearerAuthSigner");var CY=l8,s8=class ${async sign(U,f,G){return U}};C(s8,"NoAuthSigner");var qY=s8,n8=C(($)=>(U)=>i8(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),m8=300000,NY=n8(m8),i8=C(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),PY=C(($,U,f)=>{if($===void 0)return;const G=typeof $!=="function"?async()=>Promise.resolve($):$;let w,W,E,L=!1;const X=C(async(F)=>{if(!W)W=G(F);try{w=await W,E=!0,L=!1}finally{W=void 0}return w},"coalesceProvider");if(U===void 0)return async(F)=>{if(!E||(F==null?void 0:F.forceRefresh))w=await X(F);return w};return async(F)=>{if(!E||(F==null?void 0:F.forceRefresh))w=await X(F);if(L)return w;if(!f(w))return L=!0,w;if(U(w))return await X(F),w;return w}},"memoizeIdentityProvider"),jY=C(($)=>$[k1.SMITHY_CONTEXT_KEY]||($[k1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),SY=C(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),bY=C0();C(r8,"requestBuilder");var o8=class ${constructor(U,f){this.input=U,this.context=f,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:U,protocol:f="https",port:G,path:w}=await this.context.endpoint();this.path=w;for(let W of this.resolvePathStack)W(this.path);return new v1.HttpRequest({protocol:f,hostname:this.hostname||U,port:G,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(U){return this.hostname=U,this}bp(U){return this.resolvePathStack.push((f)=>{this.path=`${(f==null?void 0:f.endsWith("/"))?f.slice(0,-1):f||""}`+U}),this}p(U,f,G,w){return this.resolvePathStack.push((W)=>{this.path=bY.resolvedPath(W,this.input,U,f,G,w)}),this}h(U){return this.headers=U,this}q(U){return this.query=U,this}b(U){return this.body=U,this}m(U){return this.method=U,this}};C(o8,"RequestBuilder");var t8=o8,hY=C(async($,U,f,...G)=>{return await U.send(new $(f),...G)},"makePagedClientRequest");C(a8,"createPaginator");var DY=C(($,U)=>{let f=$;const G=U.split(".");for(let w of G){if(!f||typeof f!=="object")return;f=f[w]}return f},"get")});var M6=K((_O,$$)=>{var n4,m4,i4,r4,o4,t4,a4,e4,$6,U6,f6,w6,G6,a1,SU,W6,E6,L6,h0,X6,F6,Z6,R6,I6,Y6,Q6,z6,J6,e1,T6,K6;(function($){var U=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(G){$(f(U,f(G)))});else if(typeof $$==="object"&&typeof _O==="object")$(f(U,f(_O)));else $(f(U));function f(G,w){if(G!==U)if(typeof Object.create==="function")Object.defineProperty(G,"__esModule",{value:!0});else G.__esModule=!0;return function(W,E){return G[W]=w?w(W,E):E}}})(function($){var U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,W){w.__proto__=W}||function(w,W){for(var E in W)if(Object.prototype.hasOwnProperty.call(W,E))w[E]=W[E]};n4=function(w,W){if(typeof W!=="function"&&W!==null)throw new TypeError("Class extends value "+String(W)+" is not a constructor or null");U(w,W);function E(){this.constructor=w}w.prototype=W===null?Object.create(W):(E.prototype=W.prototype,new E)},m4=Object.assign||function(w){for(var W,E=1,L=arguments.length;E<L;E++){W=arguments[E];for(var X in W)if(Object.prototype.hasOwnProperty.call(W,X))w[X]=W[X]}return w},i4=function(w,W){var E={};for(var L in w)if(Object.prototype.hasOwnProperty.call(w,L)&&W.indexOf(L)<0)E[L]=w[L];if(w!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var X=0,L=Object.getOwnPropertySymbols(w);X<L.length;X++)if(W.indexOf(L[X])<0&&Object.prototype.propertyIsEnumerable.call(w,L[X]))E[L[X]]=w[L[X]]}return E},r4=function(w,W,E,L){var X=arguments.length,F=X<3?W:L===null?L=Object.getOwnPropertyDescriptor(W,E):L,Z;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")F=Reflect.decorate(w,W,E,L);else for(var R=w.length-1;R>=0;R--)if(Z=w[R])F=(X<3?Z(F):X>3?Z(W,E,F):Z(W,E))||F;return X>3&&F&&Object.defineProperty(W,E,F),F},o4=function(w,W){return function(E,L){W(E,L,w)}},t4=function(w,W,E,L,X,F){function Z(V){if(V!==void 0&&typeof V!=="function")throw new TypeError("Function expected");return V}var R=L.kind,Y=R==="getter"?"get":R==="setter"?"set":"value",I=!W&&w?L.static?w:w.prototype:null,Q=W||(I?Object.getOwnPropertyDescriptor(I,L.name):{}),O,T=!1;for(var z=E.length-1;z>=0;z--){var M={};for(var A in L)M[A]=A==="access"?{}:L[A];for(var A in L.access)M.access[A]=L.access[A];M.addInitializer=function(V){if(T)throw new TypeError("Cannot add initializers after decoration has completed");F.push(Z(V||null))};var B=E[z](R==="accessor"?{get:Q.get,set:Q.set}:Q[Y],M);if(R==="accessor"){if(B===void 0)continue;if(B===null||typeof B!=="object")throw new TypeError("Object expected");if(O=Z(B.get))Q.get=O;if(O=Z(B.set))Q.set=O;if(O=Z(B.init))X.unshift(O)}else if(O=Z(B))if(R==="field")X.unshift(O);else Q[Y]=O}if(I)Object.defineProperty(I,L.name,Q);T=!0},a4=function(w,W,E){var L=arguments.length>2;for(var X=0;X<W.length;X++)E=L?W[X].call(w,E):W[X].call(w);return L?E:void 0},e4=function(w){return typeof w==="symbol"?w:"".concat(w)},$6=function(w,W,E){if(typeof W==="symbol")W=W.description?"[".concat(W.description,"]"):"";return Object.defineProperty(w,"name",{configurable:!0,value:E?"".concat(E," ",W):W})},U6=function(w,W){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(w,W)},f6=function(w,W,E,L){function X(F){return F instanceof E?F:new E(function(Z){Z(F)})}return new(E||(E=Promise))(function(F,Z){function R(Q){try{I(L.next(Q))}catch(O){Z(O)}}function Y(Q){try{I(L.throw(Q))}catch(O){Z(O)}}function I(Q){Q.done?F(Q.value):X(Q.value).then(R,Y)}I((L=L.apply(w,W||[])).next())})},w6=function(w,W){var E={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},L,X,F,Z;return Z={next:R(0),throw:R(1),return:R(2)},typeof Symbol==="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function R(I){return function(Q){return Y([I,Q])}}function Y(I){if(L)throw new TypeError("Generator is already executing.");while(Z&&(Z=0,I[0]&&(E=0)),E)try{if(L=1,X&&(F=I[0]&2?X.return:I[0]?X.throw||((F=X.return)&&F.call(X),0):X.next)&&!(F=F.call(X,I[1])).done)return F;if(X=0,F)I=[I[0]&2,F.value];switch(I[0]){case 0:case 1:F=I;break;case 4:return E.label++,{value:I[1],done:!1};case 5:E.label++,X=I[1],I=[0];continue;case 7:I=E.ops.pop(),E.trys.pop();continue;default:if((F=E.trys,!(F=F.length>0&&F[F.length-1]))&&(I[0]===6||I[0]===2)){E=0;continue}if(I[0]===3&&(!F||I[1]>F[0]&&I[1]<F[3])){E.label=I[1];break}if(I[0]===6&&E.label<F[1]){E.label=F[1],F=I;break}if(F&&E.label<F[2]){E.label=F[2],E.ops.push(I);break}if(F[2])E.ops.pop();E.trys.pop();continue}I=W.call(w,E)}catch(Q){I=[6,Q],X=0}finally{L=F=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}},G6=function(w,W){for(var E in w)if(E!=="default"&&!Object.prototype.hasOwnProperty.call(W,E))e1(W,w,E)},e1=Object.create?function(w,W,E,L){if(L===void 0)L=E;var X=Object.getOwnPropertyDescriptor(W,E);if(!X||("get"in X?!W.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return W[E]}};Object.defineProperty(w,L,X)}:function(w,W,E,L){if(L===void 0)L=E;w[L]=W[E]},a1=function(w){var W=typeof Symbol==="function"&&Symbol.iterator,E=W&&w[W],L=0;if(E)return E.call(w);if(w&&typeof w.length==="number")return{next:function(){if(w&&L>=w.length)w=void 0;return{value:w&&w[L++],done:!w}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")},SU=function(w,W){var E=typeof Symbol==="function"&&w[Symbol.iterator];if(!E)return w;var L=E.call(w),X,F=[],Z;try{while((W===void 0||W-- >0)&&!(X=L.next()).done)F.push(X.value)}catch(R){Z={error:R}}finally{try{if(X&&!X.done&&(E=L.return))E.call(L)}finally{if(Z)throw Z.error}}return F},W6=function(){for(var w=[],W=0;W<arguments.length;W++)w=w.concat(SU(arguments[W]));return w},E6=function(){for(var w=0,W=0,E=arguments.length;W<E;W++)w+=arguments[W].length;for(var L=Array(w),X=0,W=0;W<E;W++)for(var F=arguments[W],Z=0,R=F.length;Z<R;Z++,X++)L[X]=F[Z];return L},L6=function(w,W,E){if(E||arguments.length===2){for(var L=0,X=W.length,F;L<X;L++)if(F||!(L in W)){if(!F)F=Array.prototype.slice.call(W,0,L);F[L]=W[L]}}return w.concat(F||Array.prototype.slice.call(W))},h0=function(w){return this instanceof h0?(this.v=w,this):new h0(w)},X6=function(w,W,E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L=E.apply(w,W||[]),X,F=[];return X={},R("next"),R("throw"),R("return",Z),X[Symbol.asyncIterator]=function(){return this},X;function Z(z){return function(M){return Promise.resolve(M).then(z,O)}}function R(z,M){if(L[z]){if(X[z]=function(A){return new Promise(function(B,V){F.push([z,A,B,V])>1||Y(z,A)})},M)X[z]=M(X[z])}}function Y(z,M){try{I(L[z](M))}catch(A){T(F[0][3],A)}}function I(z){z.value instanceof h0?Promise.resolve(z.value.v).then(Q,O):T(F[0][2],z)}function Q(z){Y("next",z)}function O(z){Y("throw",z)}function T(z,M){if(z(M),F.shift(),F.length)Y(F[0][0],F[0][1])}},F6=function(w){var W,E;return W={},L("next"),L("throw",function(X){throw X}),L("return"),W[Symbol.iterator]=function(){return this},W;function L(X,F){W[X]=w[X]?function(Z){return(E=!E)?{value:h0(w[X](Z)),done:!1}:F?F(Z):Z}:F}},Z6=function(w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W=w[Symbol.asyncIterator],E;return W?W.call(w):(w=typeof a1==="function"?a1(w):w[Symbol.iterator](),E={},L("next"),L("throw"),L("return"),E[Symbol.asyncIterator]=function(){return this},E);function L(F){E[F]=w[F]&&function(Z){return new Promise(function(R,Y){Z=w[F](Z),X(R,Y,Z.done,Z.value)})}}function X(F,Z,R,Y){Promise.resolve(Y).then(function(I){F({value:I,done:R})},Z)}},R6=function(w,W){if(Object.defineProperty)Object.defineProperty(w,"raw",{value:W});else w.raw=W;return w};var f=Object.create?function(w,W){Object.defineProperty(w,"default",{enumerable:!0,value:W})}:function(w,W){w.default=W};I6=function(w){if(w&&w.__esModule)return w;var W={};if(w!=null){for(var E in w)if(E!=="default"&&Object.prototype.hasOwnProperty.call(w,E))e1(W,w,E)}return f(W,w),W},Y6=function(w){return w&&w.__esModule?w:{default:w}},Q6=function(w,W,E,L){if(E==="a"&&!L)throw new TypeError("Private accessor was defined without a getter");if(typeof W==="function"?w!==W||!L:!W.has(w))throw new TypeError("Cannot read private member from an object whose class did not declare it");return E==="m"?L:E==="a"?L.call(w):L?L.value:W.get(w)},z6=function(w,W,E,L,X){if(L==="m")throw new TypeError("Private method is not writable");if(L==="a"&&!X)throw new TypeError("Private accessor was defined without a setter");if(typeof W==="function"?w!==W||!X:!W.has(w))throw new TypeError("Cannot write private member to an object whose class did not declare it");return L==="a"?X.call(w,E):X?X.value=E:W.set(w,E),E},J6=function(w,W){if(W===null||typeof W!=="object"&&typeof W!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof w==="function"?W===w:w.has(W)},T6=function(w,W,E){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("Object expected.");var L,X;if(E){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");L=W[Symbol.asyncDispose]}if(L===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(L=W[Symbol.dispose],E)X=L}if(typeof L!=="function")throw new TypeError("Object not disposable.");if(X)L=function(){try{X.call(this)}catch(F){return Promise.reject(F)}};w.stack.push({value:W,dispose:L,async:E})}else if(E)w.stack.push({async:!0});return W};var G=typeof SuppressedError==="function"?SuppressedError:function(w,W,E){var L=new Error(E);return L.name="SuppressedError",L.error=w,L.suppressed=W,L};K6=function(w){function W(L){w.error=w.hasError?new G(L,w.error,"An error was suppressed during disposal."):L,w.hasError=!0}function E(){while(w.stack.length){var L=w.stack.pop();try{var X=L.dispose&&L.dispose.call(L.value);if(L.async)return Promise.resolve(X).then(E,function(F){return W(F),E()})}catch(F){W(F)}}if(w.hasError)throw w.error}return E()},$("__extends",n4),$("__assign",m4),$("__rest",i4),$("__decorate",r4),$("__param",o4),$("__esDecorate",t4),$("__runInitializers",a4),$("__propKey",e4),$("__setFunctionName",$6),$("__metadata",U6),$("__awaiter",f6),$("__generator",w6),$("__exportStar",G6),$("__createBinding",e1),$("__values",a1),$("__read",SU),$("__spread",W6),$("__spreadArrays",E6),$("__spreadArray",L6),$("__await",h0),$("__asyncGenerator",X6),$("__asyncDelegator",F6),$("__asyncValues",Z6),$("__makeTemplateObject",R6),$("__importStar",I6),$("__importDefault",Y6),$("__classPrivateFieldGet",Q6),$("__classPrivateFieldSet",z6),$("__classPrivateFieldIn",J6),$("__addDisposableResource",T6),$("__disposeResources",K6)})});var V6=K((dO,B6)=>{var{defineProperty:U$,getOwnPropertyDescriptor:I5,getOwnPropertyNames:Y5}=Object,Q5=Object.prototype.hasOwnProperty,z5=($,U)=>U$($,"name",{value:U,configurable:!0}),J5=($,U)=>{for(var f in U)U$($,f,{get:U[f],enumerable:!0})},T5=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of Y5(U))if(!Q5.call($,w)&&w!==f)U$($,w,{get:()=>U[w],enumerable:!(G=I5(U,w))||G.enumerable})}return $},K5=($)=>T5(U$({},"__esModule",{value:!0}),$),A6={};J5(A6,{emitWarningIfUnsupportedVersion:()=>M5});B6.exports=K5(A6);var O6=!1,M5=z5(($)=>{if($&&!O6&&parseInt($.substring(1,$.indexOf(".")))<18)O6=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
4
- no longer support Node.js 16.x on January 6, 2025.
5
-
6
- To continue receiving updates to AWS services, bug fixes, and security
7
- updates please upgrade to a supported Node.js LTS version.
8
-
9
- More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var g6=K((pO,p6)=>{var cU=function($){for(let U=0;U<8;U++)$[U]^=255;for(let U=7;U>-1;U--)if($[U]++,$[U]!==0)break},E$=Object.defineProperty,O5=Object.getOwnPropertyDescriptor,A5=Object.getOwnPropertyNames,B5=Object.prototype.hasOwnProperty,b=($,U)=>E$($,"name",{value:U,configurable:!0}),V5=($,U)=>{for(var f in U)E$($,f,{get:U[f],enumerable:!0})},H5=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of A5(U))if(!B5.call($,w)&&w!==f)E$($,w,{get:()=>U[w],enumerable:!(G=O5(U,w))||G.enumerable})}return $},C5=($)=>H5(E$({},"__esModule",{value:!0}),$),P6={};V5(P6,{SignatureV4:()=>t5,clearCredentialCache:()=>p5,createScope:()=>G$,getCanonicalHeaders:()=>kU,getCanonicalQuery:()=>v6,getPayloadHash:()=>W$,getSigningKey:()=>c6,moveHeadersToQuery:()=>_6,prepareRequest:()=>vU});p6.exports=C5(P6);var H6=k0(),bU=f0(),q5="X-Amz-Algorithm",N5="X-Amz-Credential",j6="X-Amz-Date",P5="X-Amz-SignedHeaders",j5="X-Amz-Expires",S6="X-Amz-Signature",b6="X-Amz-Security-Token",h6="authorization",D6=j6.toLowerCase(),S5="date",b5=[h6,D6,S5],h5=S6.toLowerCase(),DU="x-amz-content-sha256",D5=b6.toLowerCase(),k5={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},c5=/^proxy-/,v5=/^sec-/,hU="AWS4-HMAC-SHA256",x5="AWS4-HMAC-SHA256-PAYLOAD",u5="UNSIGNED-PAYLOAD",y5=50,k6="aws4_request",_5=604800,E0=TW(),d5=f0(),D0={},w$=[],G$=b(($,U,f)=>`${$}/${U}/${f}/${k6}`,"createScope"),c6=b(async($,U,f,G,w)=>{const W=await C6($,U.secretAccessKey,U.accessKeyId),E=`${f}:${G}:${w}:${E0.toHex(W)}:${U.sessionToken}`;if(E in D0)return D0[E];w$.push(E);while(w$.length>y5)delete D0[w$.shift()];let L=`AWS4${U.secretAccessKey}`;for(let X of[f,G,w,k6])L=await C6($,L,X);return D0[E]=L},"getSigningKey"),p5=b(()=>{w$.length=0,Object.keys(D0).forEach(($)=>{delete D0[$]})},"clearCredentialCache"),C6=b(($,U,f)=>{const G=new $(U);return G.update(d5.toUint8Array(f)),G.digest()},"hmac"),kU=b(({headers:$},U,f)=>{const G={};for(let w of Object.keys($).sort()){if($[w]==null)continue;const W=w.toLowerCase();if(W in k5||(U==null?void 0:U.has(W))||c5.test(W)||v5.test(W)){if(!f||f&&!f.has(W))continue}G[W]=$[w].trim().replace(/\s+/g," ")}return G},"getCanonicalHeaders"),$1=vG(),v6=b(({query:$={}})=>{const U=[],f={};for(let G of Object.keys($).sort()){if(G.toLowerCase()===h5)continue;U.push(G);const w=$[G];if(typeof w==="string")f[G]=`${$1.escapeUri(G)}=${$1.escapeUri(w)}`;else if(Array.isArray(w))f[G]=w.slice(0).reduce((W,E)=>W.concat([`${$1.escapeUri(G)}=${$1.escapeUri(E)}`]),[]).sort().join("&")}return U.map((G)=>f[G]).filter((G)=>G).join("&")},"getCanonicalQuery"),g5=c$(),l5=f0(),W$=b(async({headers:$,body:U},f)=>{for(let G of Object.keys($))if(G.toLowerCase()===DU)return $[G];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||g5.isArrayBuffer(U)){const G=new f;return G.update(l5.toUint8Array(U)),E0.toHex(await G.digest())}return u5},"getPayloadHash"),q6=f0(),x6=class ${format(U){const f=[];for(let W of Object.keys(U)){const E=q6.fromUtf8(W);f.push(Uint8Array.from([E.byteLength]),E,this.formatHeaderValue(U[W]))}const G=new Uint8Array(f.reduce((W,E)=>W+E.byteLength,0));let w=0;for(let W of f)G.set(W,w),w+=W.byteLength;return G}formatHeaderValue(U){switch(U.type){case"boolean":return Uint8Array.from([U.value?0:1]);case"byte":return Uint8Array.from([2,U.value]);case"short":const f=new DataView(new ArrayBuffer(3));return f.setUint8(0,3),f.setInt16(1,U.value,!1),new Uint8Array(f.buffer);case"integer":const G=new DataView(new ArrayBuffer(5));return G.setUint8(0,4),G.setInt32(1,U.value,!1),new Uint8Array(G.buffer);case"long":const w=new Uint8Array(9);return w[0]=5,w.set(U.value.bytes,1),w;case"binary":const W=new DataView(new ArrayBuffer(3+U.value.byteLength));W.setUint8(0,6),W.setUint16(1,U.value.byteLength,!1);const E=new Uint8Array(W.buffer);return E.set(U.value,3),E;case"string":const L=q6.fromUtf8(U.value),X=new DataView(new ArrayBuffer(3+L.byteLength));X.setUint8(0,7),X.setUint16(1,L.byteLength,!1);const F=new Uint8Array(X.buffer);return F.set(L,3),F;case"timestamp":const Z=new Uint8Array(9);return Z[0]=8,Z.set(m5.fromNumber(U.value.valueOf()).bytes,1),Z;case"uuid":if(!n5.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const R=new Uint8Array(17);return R[0]=9,R.set(E0.fromHex(U.value.replace(/\-/g,"")),1),R}}};b(x6,"HeaderFormatter");var s5=x6,n5=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,u6=class ${constructor(U){if(this.bytes=U,U.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(U){if(U>9223372036854776000||U<-9223372036854776000)throw new Error(`${U} is too large (or, if negative, too small) to represent as an Int64`);const f=new Uint8Array(8);for(let G=7,w=Math.abs(Math.round(U));G>-1&&w>0;G--,w/=256)f[G]=w;if(U<0)cU(f);return new $(f)}valueOf(){const U=this.bytes.slice(0),f=U[0]&128;if(f)cU(U);return parseInt(E0.toHex(U),16)*(f?-1:1)}toString(){return String(this.valueOf())}};b(u6,"Int64");var m5=u6;b(cU,"negate");var i5=b(($,U)=>{$=$.toLowerCase();for(let f of Object.keys(U))if($===f.toLowerCase())return!0;return!1},"hasHeader"),y6=i(),_6=b(($,U={})=>{var f;const{headers:G,query:w={}}=y6.HttpRequest.clone($);for(let W of Object.keys(G)){const E=W.toLowerCase();if(E.slice(0,6)==="x-amz-"&&!((f=U.unhoistableHeaders)==null?void 0:f.has(E)))w[W]=G[W],delete G[W]}return{...$,headers:G,query:w}},"moveHeadersToQuery"),vU=b(($)=>{$=y6.HttpRequest.clone($);for(let U of Object.keys($.headers))if(b5.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),r5=b(($)=>o5($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),o5=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),d6=class ${constructor({applyChecksum:U,credentials:f,region:G,service:w,sha256:W,uriEscapePath:E=!0}){this.headerFormatter=new s5,this.service=w,this.sha256=W,this.uriEscapePath=E,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=H6.normalizeProvider(G),this.credentialProvider=H6.normalizeProvider(f)}async presign(U,f={}){const{signingDate:G=new Date,expiresIn:w=3600,unsignableHeaders:W,unhoistableHeaders:E,signableHeaders:L,signingRegion:X,signingService:F}=f,Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const R=X??await this.regionProvider(),{longDate:Y,shortDate:I}=f$(G);if(w>_5)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Q=G$(I,R,F??this.service),O=_6(vU(U),{unhoistableHeaders:E});if(Z.sessionToken)O.query[b6]=Z.sessionToken;O.query[q5]=hU,O.query[N5]=`${Z.accessKeyId}/${Q}`,O.query[j6]=Y,O.query[j5]=w.toString(10);const T=kU(O,W,L);return O.query[P5]=N6(T),O.query[S6]=await this.getSignature(Y,Q,this.getSigningKey(Z,R,I,F),this.createCanonicalRequest(O,T,await W$(U,this.sha256))),O}async sign(U,f){if(typeof U==="string")return this.signString(U,f);else if(U.headers&&U.payload)return this.signEvent(U,f);else if(U.message)return this.signMessage(U,f);else return this.signRequest(U,f)}async signEvent({headers:U,payload:f},{signingDate:G=new Date,priorSignature:w,signingRegion:W,signingService:E}){const L=W??await this.regionProvider(),{shortDate:X,longDate:F}=f$(G),Z=G$(X,L,E??this.service),R=await W$({headers:{},body:f},this.sha256),Y=new this.sha256;Y.update(U);const I=E0.toHex(await Y.digest()),Q=[x5,F,Z,w,I,R].join("\n");return this.signString(Q,{signingDate:G,signingRegion:L,signingService:E})}async signMessage(U,{signingDate:f=new Date,signingRegion:G,signingService:w}){return this.signEvent({headers:this.headerFormatter.format(U.message.headers),payload:U.message.body},{signingDate:f,signingRegion:G,signingService:w,priorSignature:U.priorSignature}).then((E)=>{return{message:U.message,signature:E}})}async signString(U,{signingDate:f=new Date,signingRegion:G,signingService:w}={}){const W=await this.credentialProvider();this.validateResolvedCredentials(W);const E=G??await this.regionProvider(),{shortDate:L}=f$(f),X=new this.sha256(await this.getSigningKey(W,E,L,w));return X.update(bU.toUint8Array(U)),E0.toHex(await X.digest())}async signRequest(U,{signingDate:f=new Date,signableHeaders:G,unsignableHeaders:w,signingRegion:W,signingService:E}={}){const L=await this.credentialProvider();this.validateResolvedCredentials(L);const X=W??await this.regionProvider(),F=vU(U),{longDate:Z,shortDate:R}=f$(f),Y=G$(R,X,E??this.service);if(F.headers[D6]=Z,L.sessionToken)F.headers[D5]=L.sessionToken;const I=await W$(F,this.sha256);if(!i5(DU,F.headers)&&this.applyChecksum)F.headers[DU]=I;const Q=kU(F,w,G),O=await this.getSignature(Z,Y,this.getSigningKey(L,X,R,E),this.createCanonicalRequest(F,Q,I));return F.headers[h6]=`${hU} Credential=${L.accessKeyId}/${Y}, SignedHeaders=${N6(Q)}, Signature=${O}`,F}createCanonicalRequest(U,f,G){const w=Object.keys(f).sort();return`${U.method}
10
- ${this.getCanonicalPath(U)}
11
- ${v6(U)}
12
- ${w.map((W)=>`${W}:${f[W]}`).join("\n")}
13
-
14
- ${w.join(";")}
15
- ${G}`}async createStringToSign(U,f,G){const w=new this.sha256;w.update(bU.toUint8Array(G));const W=await w.digest();return`${hU}
16
- ${U}
17
- ${f}
18
- ${E0.toHex(W)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const f=[];for(let W of U.split("/")){if((W==null?void 0:W.length)===0)continue;if(W===".")continue;if(W==="..")f.pop();else f.push(W)}const G=`${(U==null?void 0:U.startsWith("/"))?"/":""}${f.join("/")}${f.length>0&&(U==null?void 0:U.endsWith("/"))?"/":""}`;return $1.escapeUri(G).replace(/%2F/g,"/")}return U}async getSignature(U,f,G,w){const W=await this.createStringToSign(U,f,w),E=new this.sha256(await G);return E.update(bU.toUint8Array(W)),E0.toHex(await E.digest())}getSigningKey(U,f,G,w){return c6(this.sha256,U,G,f,w||this.service)}validateResolvedCredentials(U){if(typeof U!=="object"||typeof U.accessKeyId!=="string"||typeof U.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};b(d6,"SignatureV4");var t5=d6,f$=b(($)=>{const U=r5($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),N6=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var e6=K((gO,a6)=>{var{defineProperty:L$,getOwnPropertyDescriptor:a5,getOwnPropertyNames:e5}=Object,$9=Object.prototype.hasOwnProperty,k=($,U)=>L$($,"name",{value:U,configurable:!0}),U9=($,U)=>{for(var f in U)L$($,f,{get:U[f],enumerable:!0})},f9=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of e5(U))if(!$9.call($,w)&&w!==f)L$($,w,{get:()=>U[w],enumerable:!(G=a5(U,w))||G.enumerable})}return $},w9=($)=>f9(L$({},"__esModule",{value:!0}),$),i6={};U9(i6,{AWSSDKSigV4Signer:()=>L9,AwsSdkSigV4ASigner:()=>F9,AwsSdkSigV4Signer:()=>yU,NODE_SIGV4A_CONFIG_OPTIONS:()=>I9,resolveAWSSDKSigV4Config:()=>Y9,resolveAwsSdkSigV4AConfig:()=>R9,resolveAwsSdkSigV4Config:()=>t6,validateSigningProperties:()=>uU});a6.exports=w9(i6);var G9=i(),W9=i(),l6=k(($)=>{var U,f;return W9.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((f=$.headers)==null?void 0:f.Date):void 0},"getDateHeader"),xU=k(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),E9=k(($,U)=>Math.abs(xU(U).getTime()-$)>=300000,"isClockSkewed"),s6=k(($,U)=>{const f=Date.parse($);if(E9(f,U))return f-Date.now();return U},"getUpdatedSystemClockOffset"),U1=k(($,U)=>{if(!U)throw new Error(`Property \`${$}\` is not resolved for AWS SDK SigV4Auth`);return U},"throwSigningPropertyError"),uU=k(async($)=>{var U,f,G;const w=U1("context",$.context),W=U1("config",$.config),E=(G=(f=(U=w.endpointV2)==null?void 0:U.properties)==null?void 0:f.authSchemes)==null?void 0:G[0],X=await U1("signer",W.signer)(E),F=$==null?void 0:$.signingRegion,Z=$==null?void 0:$.signingRegionSet,R=$==null?void 0:$.signingName;return{config:W,signer:X,signingRegion:F,signingRegionSet:Z,signingName:R}},"validateSigningProperties"),r6=class ${async sign(U,f,G){var w;if(!G9.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const W=await uU(G),{config:E,signer:L}=W;let{signingRegion:X,signingName:F}=W;const Z=G.context;if(((w=Z==null?void 0:Z.authSchemes)==null?void 0:w.length)??0>1){const[Y,I]=Z.authSchemes;if((Y==null?void 0:Y.name)==="sigv4a"&&(I==null?void 0:I.name)==="sigv4")X=(I==null?void 0:I.signingRegion)??X,F=(I==null?void 0:I.signingName)??F}return await L.sign(U,{signingDate:xU(E.systemClockOffset),signingRegion:X,signingService:F})}errorHandler(U){return(f)=>{const G=f.ServerTime??l6(f.$response);if(G){const w=U1("config",U.config),W=w.systemClockOffset;if(w.systemClockOffset=s6(G,w.systemClockOffset),w.systemClockOffset!==W&&f.$metadata)f.$metadata.clockSkewCorrected=!0}throw f}}successHandler(U,f){const G=l6(U);if(G){const w=U1("config",f.config);w.systemClockOffset=s6(G,w.systemClockOffset)}}};k(r6,"AwsSdkSigV4Signer");var yU=r6,L9=yU,X9=i(),o6=class $ extends yU{async sign(U,f,G){var w;if(!X9.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:W,signer:E,signingRegion:L,signingRegionSet:X,signingName:F}=await uU(G),R=(await((w=W.sigv4aSigningRegionSet)==null?void 0:w.call(W))??X??[L]).join(",");return await E.sign(U,{signingDate:xU(W.systemClockOffset),signingRegion:R,signingService:F})}};k(o6,"AwsSdkSigV4ASigner");var F9=o6,Z9=ZU(),n6=M$(),R9=k(($)=>{return $.sigv4aSigningRegionSet=Z9.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),I9={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new n6.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector($){if($.sigv4a_signing_region_set)return($.sigv4a_signing_region_set??"").split(",").map((U)=>U.trim());throw new n6.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},T0=ZU(),m6=g6(),t6=k(($)=>{let U;if($.credentials)U=T0.memoizeIdentityProvider($.credentials,T0.isIdentityExpired,T0.doesIdentityRequireRefresh);if(!U)if($.credentialDefaultProvider)U=T0.normalizeProvider($.credentialDefaultProvider(Object.assign({},$,{parentClientConfig:$})));else U=k(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:f=!0,systemClockOffset:G=$.systemClockOffset||0,sha256:w}=$;let W;if($.signer)W=T0.normalizeProvider($.signer);else if($.regionInfoProvider)W=k(()=>T0.normalizeProvider($.region)().then(async(E)=>[await $.regionInfoProvider(E,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},E]).then(([E,L])=>{const{signingRegion:X,signingService:F}=E;$.signingRegion=$.signingRegion||X||L,$.signingName=$.signingName||F||$.serviceId;const Z={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:w,uriEscapePath:f};return new($.signerConstructor||m6.SignatureV4)(Z)}),"signer");else W=k(async(E)=>{E=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await T0.normalizeProvider($.region)(),properties:{}},E);const{signingRegion:L,signingName:X}=E;$.signingRegion=$.signingRegion||L,$.signingName=$.signingName||X||$.serviceId;const F={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:w,uriEscapePath:f};return new($.signerConstructor||m6.SignatureV4)(F)},"signer");return{...$,systemClockOffset:G,signingEscapePath:f,credentials:U,signer:W}},"resolveAwsSdkSigV4Config"),Y9=t6});var X$=K((K9)=>{var Q9=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",$E="[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]["+Q9+"]*",z9=new RegExp("^"+$E+"$"),J9=function($,U){const f=[];let G=U.exec($);while(G){const w=[];w.startIndex=U.lastIndex-G[0].length;const W=G.length;for(let E=0;E<W;E++)w.push(G[E]);f.push(w),G=U.exec($)}return f},T9=function($){const U=z9.exec($);return!(U===null||typeof U==="undefined")};K9.isExist=function($){return typeof $!=="undefined"};K9.isEmptyObject=function($){return Object.keys($).length===0};K9.merge=function($,U,f){if(U){const G=Object.keys(U),w=G.length;for(let W=0;W<w;W++)if(f==="strict")$[G[W]]=[U[G[W]]];else $[G[W]]=U[G[W]]}};K9.getValue=function($){if(K9.isExist($))return $;else return""};K9.isName=T9;K9.getAllMatches=J9;K9.nameRegexp=$E});var dU=K((k9)=>{var fE=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},wE=function($,U){const f=U;for(;U<$.length;U++)if($[U]=="?"||$[U]==" "){const G=$.substr(f,U-f);if(U>5&&G==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",D($,U));else if($[U]=="?"&&$[U+1]==">"){U++;break}else continue}return U},GE=function($,U){if($.length>U+5&&$[U+1]==="-"&&$[U+2]==="-"){for(U+=3;U<$.length;U++)if($[U]==="-"&&$[U+1]==="-"&&$[U+2]===">"){U+=2;break}}else if($.length>U+8&&$[U+1]==="D"&&$[U+2]==="O"&&$[U+3]==="C"&&$[U+4]==="T"&&$[U+5]==="Y"&&$[U+6]==="P"&&$[U+7]==="E"){let f=1;for(U+=8;U<$.length;U++)if($[U]==="<")f++;else if($[U]===">"){if(f--,f===0)break}}else if($.length>U+9&&$[U+1]==="["&&$[U+2]==="C"&&$[U+3]==="D"&&$[U+4]==="A"&&$[U+5]==="T"&&$[U+6]==="A"&&$[U+7]==="["){for(U+=8;U<$.length;U++)if($[U]==="]"&&$[U+1]==="]"&&$[U+2]===">"){U+=2;break}}return U},P9=function($,U){let f="",G="",w=!1;for(;U<$.length;U++){if($[U]===q9||$[U]===N9)if(G==="")G=$[U];else if(G!==$[U]);else G="";else if($[U]===">"){if(G===""){w=!0;break}}f+=$[U]}if(G!=="")return!1;return{value:f,index:U,tagClosed:w}},WE=function($,U){const f=_U.getAllMatches($,j9),G={};for(let w=0;w<f.length;w++){if(f[w][1].length===0)return j("InvalidAttr","Attribute '"+f[w][2]+"' has no space in starting.",f1(f[w]));else if(f[w][3]!==void 0&&f[w][4]===void 0)return j("InvalidAttr","Attribute '"+f[w][2]+"' is without value.",f1(f[w]));else if(f[w][3]===void 0&&!U.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+f[w][2]+"' is not allowed.",f1(f[w]));const W=f[w][2];if(!h9(W))return j("InvalidAttr","Attribute '"+W+"' is an invalid name.",f1(f[w]));if(!G.hasOwnProperty(W))G[W]=1;else return j("InvalidAttr","Attribute '"+W+"' is repeated.",f1(f[w]))}return!0},S9=function($,U){let f=/\d/;if($[U]==="x")U++,f=/[\da-fA-F]/;for(;U<$.length;U++){if($[U]===";")return U;if(!$[U].match(f))break}return-1},b9=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,S9($,U);let f=0;for(;U<$.length;U++,f++){if($[U].match(/\w/)&&f<20)continue;if($[U]===";")break;return-1}return U},j=function($,U,f){return{err:{code:$,msg:U,line:f.line||f,col:f.col}}},h9=function($){return _U.isName($)},D9=function($){return _U.isName($)},D=function($,U){const f=$.substring(0,U).split(/\r?\n/);return{line:f.length,col:f[f.length-1].length+1}},f1=function($){return $.startIndex+$[1].length},_U=X$(),C9={allowBooleanAttributes:!1,unpairedTags:[]};k9.validate=function($,U){U=Object.assign({},C9,U);const f=[];let G=!1,w=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let W=0;W<$.length;W++)if($[W]==="<"&&$[W+1]==="?"){if(W+=2,W=wE($,W),W.err)return W}else if($[W]==="<"){let E=W;if(W++,$[W]==="!"){W=GE($,W);continue}else{let L=!1;if($[W]==="/")L=!0,W++;let X="";for(;W<$.length&&$[W]!==">"&&$[W]!==" "&&$[W]!=="\t"&&$[W]!=="\n"&&$[W]!=="\r";W++)X+=$[W];if(X=X.trim(),X[X.length-1]==="/")X=X.substring(0,X.length-1),W--;if(!D9(X)){let R;if(X.trim().length===0)R="Invalid space after '<'.";else R="Tag '"+X+"' is an invalid name.";return j("InvalidTag",R,D($,W))}const F=P9($,W);if(F===!1)return j("InvalidAttr","Attributes for '"+X+"' have open quote.",D($,W));let Z=F.value;if(W=F.index,Z[Z.length-1]==="/"){const R=W-Z.length;Z=Z.substring(0,Z.length-1);const Y=WE(Z,U);if(Y===!0)G=!0;else return j(Y.err.code,Y.err.msg,D($,R+Y.err.line))}else if(L)if(!F.tagClosed)return j("InvalidTag","Closing tag '"+X+"' doesn't have proper closing.",D($,W));else if(Z.trim().length>0)return j("InvalidTag","Closing tag '"+X+"' can't have attributes or invalid starting.",D($,E));else if(f.length===0)return j("InvalidTag","Closing tag '"+X+"' has not been opened.",D($,E));else{const R=f.pop();if(X!==R.tagName){let Y=D($,R.tagStartPos);return j("InvalidTag","Expected closing tag '"+R.tagName+"' (opened in line "+Y.line+", col "+Y.col+") instead of closing tag '"+X+"'.",D($,E))}if(f.length==0)w=!0}else{const R=WE(Z,U);if(R!==!0)return j(R.err.code,R.err.msg,D($,W-Z.length+R.err.line));if(w===!0)return j("InvalidXml","Multiple possible root nodes found.",D($,W));else if(U.unpairedTags.indexOf(X)!==-1);else f.push({tagName:X,tagStartPos:E});G=!0}for(W++;W<$.length;W++)if($[W]==="<")if($[W+1]==="!"){W++,W=GE($,W);continue}else if($[W+1]==="?"){if(W=wE($,++W),W.err)return W}else break;else if($[W]==="&"){const R=b9($,W);if(R==-1)return j("InvalidChar","char '&' is not expected.",D($,W));W=R}else if(w===!0&&!fE($[W]))return j("InvalidXml","Extra text at the end",D($,W));if($[W]==="<")W--}}else{if(fE($[W]))continue;return j("InvalidChar","char '"+$[W]+"' is not expected.",D($,W))}if(!G)return j("InvalidXml","Start tag expected.",1);else if(f.length==1)return j("InvalidTag","Unclosed tag '"+f[0].tagName+"'.",D($,f[0].tagStartPos));else if(f.length>0)return j("InvalidXml","Invalid '"+JSON.stringify(f.map((W)=>W.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var q9='"',N9="'",j9=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var LE=K((x9)=>{var EE={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function($,U,f){return $}},v9=function($){return Object.assign({},EE,$)};x9.buildOptions=v9;x9.defaultOptions=EE});var ZE=K((mO,FE)=>{class XE{constructor($){this.tagname=$,this.child=[],this[":@"]={}}add($,U){if($==="__proto__")$="#__proto__";this.child.push({[$]:U})}addChild($){if($.tagname==="__proto__")$.tagname="#__proto__";if($[":@"]&&Object.keys($[":@"]).length>0)this.child.push({[$.tagname]:$.child,[":@"]:$[":@"]});else this.child.push({[$.tagname]:$.child})}}FE.exports=XE});var IE=K((iO,RE)=>{var d9=function($,U){const f={};if($[U+3]==="O"&&$[U+4]==="C"&&$[U+5]==="T"&&$[U+6]==="Y"&&$[U+7]==="P"&&$[U+8]==="E"){U=U+9;let G=1,w=!1,W=!1,E="";for(;U<$.length;U++)if($[U]==="<"&&!W){if(w&&l9($,U)){if(U+=7,[entityName,val,U]=p9($,U+1),val.indexOf("&")===-1)f[i9(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(w&&s9($,U))U+=8;else if(w&&n9($,U))U+=8;else if(w&&m9($,U))U+=9;else if(g9)W=!0;else throw new Error("Invalid DOCTYPE");G++,E=""}else if($[U]===">"){if(W){if($[U-1]==="-"&&$[U-2]==="-")W=!1,G--}else G--;if(G===0)break}else if($[U]==="[")w=!0;else E+=$[U];if(G!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:U}},p9=function($,U){let f="";for(;U<$.length&&($[U]!=="'"&&$[U]!=='"');U++)f+=$[U];if(f=f.trim(),f.indexOf(" ")!==-1)throw new Error("External entites are not supported");const G=$[U++];let w="";for(;U<$.length&&$[U]!==G;U++)w+=$[U];return[f,w,U]},g9=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},l9=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="N"&&$[U+4]==="T"&&$[U+5]==="I"&&$[U+6]==="T"&&$[U+7]==="Y")return!0;return!1},s9=function($,U){if($[U+1]==="!"&&$[U+2]==="E"&&$[U+3]==="L"&&$[U+4]==="E"&&$[U+5]==="M"&&$[U+6]==="E"&&$[U+7]==="N"&&$[U+8]==="T")return!0;return!1},n9=function($,U){if($[U+1]==="!"&&$[U+2]==="A"&&$[U+3]==="T"&&$[U+4]==="T"&&$[U+5]==="L"&&$[U+6]==="I"&&$[U+7]==="S"&&$[U+8]==="T")return!0;return!1},m9=function($,U){if($[U+1]==="!"&&$[U+2]==="N"&&$[U+3]==="O"&&$[U+4]==="T"&&$[U+5]==="A"&&$[U+6]==="T"&&$[U+7]==="I"&&$[U+8]==="O"&&$[U+9]==="N")return!0;return!1},i9=function($){if(_9.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},_9=X$();RE.exports=d9});var QE=K((rO,YE)=>{var a9=function($,U={}){if(U=Object.assign({},t9,U),!$||typeof $!=="string")return $;let f=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(f))return $;else if(U.hex&&r9.test(f))return Number.parseInt(f,16);else{const G=o9.exec(f);if(G){const w=G[1],W=G[2];let E=e9(G[3]);const L=G[4]||G[6];if(!U.leadingZeros&&W.length>0&&w&&f[2]!==".")return $;else if(!U.leadingZeros&&W.length>0&&!w&&f[1]!==".")return $;else{const X=Number(f),F=""+X;if(F.search(/[eE]/)!==-1)if(U.eNotation)return X;else return $;else if(L)if(U.eNotation)return X;else return $;else if(f.indexOf(".")!==-1)if(F==="0"&&E==="")return X;else if(F===E)return X;else if(w&&F==="-"+E)return X;else return $;if(W)if(E===F)return X;else if(w+E===F)return X;else return $;if(f===F)return X;else if(f===w+F)return X;return $}}else return $}},e9=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},r9=/^[-+]?0x[a-fA-F0-9]+$/,o9=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;if(!Number.parseInt&&window.parseInt)Number.parseInt=window.parseInt;if(!Number.parseFloat&&window.parseFloat)Number.parseFloat=window.parseFloat;var t9={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};YE.exports=a9});var KE=K((oO,TE)=>{var fQ=function($){const U=Object.keys($);for(let f=0;f<U.length;f++){const G=U[f];this.lastEntities[G]={regex:new RegExp("&"+G+";","g"),val:$[G]}}},wQ=function($,U,f,G,w,W,E){if($!==void 0){if(this.options.trimValues&&!G)$=$.trim();if($.length>0){if(!E)$=this.replaceEntitiesValue($);const L=this.options.tagValueProcessor(U,$,f,w,W);if(L===null||L===void 0)return $;else if(typeof L!==typeof $||L!==$)return L;else if(this.options.trimValues)return gU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return gU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},GQ=function($){if(this.options.removeNSPrefix){const U=$.split(":"),f=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=f+U[1]}return $},EQ=function($,U,f){if(!this.options.ignoreAttributes&&typeof $==="string"){const G=zE.getAllMatches($,WQ),w=G.length,W={};for(let E=0;E<w;E++){const L=this.resolveNameSpace(G[E][1]);let X=G[E][4],F=this.options.attributeNamePrefix+L;if(L.length){if(this.options.transformAttributeName)F=this.options.transformAttributeName(F);if(F==="__proto__")F="#__proto__";if(X!==void 0){if(this.options.trimValues)X=X.trim();X=this.replaceEntitiesValue(X);const Z=this.options.attributeValueProcessor(L,X,U);if(Z===null||Z===void 0)W[F]=X;else if(typeof Z!==typeof X||Z!==X)W[F]=Z;else W[F]=gU(X,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)W[F]=!0}}if(!Object.keys(W).length)return;if(this.options.attributesGroupName){const E={};return E[this.options.attributesGroupName]=W,E}return W}},XQ=function($,U,f){const G=this.options.updateTag(U.tagname,f,U[":@"]);if(G===!1);else if(typeof G==="string")U.tagname=G,$.addChild(U);else $.addChild(U)},ZQ=function($,U,f,G){if($){if(G===void 0)G=Object.keys(U.child).length===0;if($=this.parseTextData($,U.tagname,f,!1,U[":@"]?Object.keys(U[":@"]).length!==0:!1,G),$!==void 0&&$!=="")U.add(this.options.textNodeName,$);$=""}return $},RQ=function($,U,f){const G="*."+f;for(let w in $){const W=$[w];if(G===W||U===W)return!0}return!1},IQ=function($,U,f=">"){let G,w="";for(let W=U;W<$.length;W++){let E=$[W];if(G){if(E===G)G=""}else if(E==='"'||E==="'")G=E;else if(E===f[0])if(f[1]){if($[W+1]===f[1])return{data:w,index:W}}else return{data:w,index:W};else if(E==="\t")E=" ";w+=E}},K0=function($,U,f,G){const w=$.indexOf(U,f);if(w===-1)throw new Error(G);else return w+U.length-1},pU=function($,U,f,G=">"){const w=IQ($,U+1,G);if(!w)return;let W=w.data;const E=w.index,L=W.search(/\s/);let X=W,F=!0;if(L!==-1)X=W.substring(0,L),W=W.substring(L+1).trimStart();const Z=X;if(f){const R=X.indexOf(":");if(R!==-1)X=X.substr(R+1),F=X!==w.data.substr(R+1)}return{tagName:X,tagExp:W,closeIndex:E,attrExpPresent:F,rawTagName:Z}},YQ=function($,U,f){const G=f;let w=1;for(;f<$.length;f++)if($[f]==="<")if($[f+1]==="/"){const W=K0($,">",f,`${U} is not closed`);if($.substring(f+2,W).trim()===U){if(w--,w===0)return{tagContent:$.substring(G,f),i:W}}f=W}else if($[f+1]==="?")f=K0($,"?>",f+1,"StopNode is not closed.");else if($.substr(f+1,3)==="!--")f=K0($,"-->",f+3,"StopNode is not closed.");else if($.substr(f+1,2)==="![")f=K0($,"]]>",f,"StopNode is not closed.")-2;else{const W=pU($,f,">");if(W){if((W&&W.tagName)===U&&W.tagExp[W.tagExp.length-1]!=="/")w++;f=W.closeIndex}}},gU=function($,U,f){if(U&&typeof $==="string"){const G=$.trim();if(G==="true")return!0;else if(G==="false")return!1;else return UQ($,f)}else if(zE.isExist($))return $;else return""},zE=X$(),w1=ZE(),$Q=IE(),UQ=QE();class JE{constructor($){this.options=$,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(U,f)=>String.fromCharCode(Number.parseInt(f,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(U,f)=>String.fromCharCode(Number.parseInt(f,16))}},this.addExternalEntities=fQ,this.parseXml=LQ,this.parseTextData=wQ,this.resolveNameSpace=GQ,this.buildAttributesMap=EQ,this.isItStopNode=RQ,this.replaceEntitiesValue=FQ,this.readStopNodeData=YQ,this.saveTextToParentTag=ZQ,this.addChild=XQ}}var WQ=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),LQ=function($){$=$.replace(/\r\n?/g,"\n");const U=new w1("!xml");let f=U,G="",w="";for(let W=0;W<$.length;W++)if($[W]==="<")if($[W+1]==="/"){const L=K0($,">",W,"Closing Tag is not closed.");let X=$.substring(W+2,L).trim();if(this.options.removeNSPrefix){const R=X.indexOf(":");if(R!==-1)X=X.substr(R+1)}if(this.options.transformTagName)X=this.options.transformTagName(X);if(f)G=this.saveTextToParentTag(G,f,w);const F=w.substring(w.lastIndexOf(".")+1);if(X&&this.options.unpairedTags.indexOf(X)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${X}>`);let Z=0;if(F&&this.options.unpairedTags.indexOf(F)!==-1)Z=w.lastIndexOf(".",w.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Z=w.lastIndexOf(".");w=w.substring(0,Z),f=this.tagsNodeStack.pop(),G="",W=L}else if($[W+1]==="?"){let L=pU($,W,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(G=this.saveTextToParentTag(G,f,w),this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags);else{const X=new w1(L.tagName);if(X.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent)X[":@"]=this.buildAttributesMap(L.tagExp,w,L.tagName);this.addChild(f,X,w)}W=L.closeIndex+1}else if($.substr(W+1,3)==="!--"){const L=K0($,"-->",W+4,"Comment is not closed.");if(this.options.commentPropName){const X=$.substring(W+4,L-2);G=this.saveTextToParentTag(G,f,w),f.add(this.options.commentPropName,[{[this.options.textNodeName]:X}])}W=L}else if($.substr(W+1,2)==="!D"){const L=$Q($,W);this.docTypeEntities=L.entities,W=L.i}else if($.substr(W+1,2)==="!["){const L=K0($,"]]>",W,"CDATA is not closed.")-2,X=$.substring(W+9,L);G=this.saveTextToParentTag(G,f,w);let F=this.parseTextData(X,f.tagname,w,!0,!1,!0,!0);if(F==null)F="";if(this.options.cdataPropName)f.add(this.options.cdataPropName,[{[this.options.textNodeName]:X}]);else f.add(this.options.textNodeName,F);W=L+2}else{let L=pU($,W,this.options.removeNSPrefix),X=L.tagName;const F=L.rawTagName;let{tagExp:Z,attrExpPresent:R,closeIndex:Y}=L;if(this.options.transformTagName)X=this.options.transformTagName(X);if(f&&G){if(f.tagname!=="!xml")G=this.saveTextToParentTag(G,f,w,!1)}const I=f;if(I&&this.options.unpairedTags.indexOf(I.tagname)!==-1)f=this.tagsNodeStack.pop(),w=w.substring(0,w.lastIndexOf("."));if(X!==U.tagname)w+=w?"."+X:X;if(this.isItStopNode(this.options.stopNodes,w,X)){let Q="";if(Z.length>0&&Z.lastIndexOf("/")===Z.length-1){if(X[X.length-1]==="/")X=X.substr(0,X.length-1),w=w.substr(0,w.length-1),Z=X;else Z=Z.substr(0,Z.length-1);W=L.closeIndex}else if(this.options.unpairedTags.indexOf(X)!==-1)W=L.closeIndex;else{const T=this.readStopNodeData($,F,Y+1);if(!T)throw new Error(`Unexpected end of ${F}`);W=T.i,Q=T.tagContent}const O=new w1(X);if(X!==Z&&R)O[":@"]=this.buildAttributesMap(Z,w,X);if(Q)Q=this.parseTextData(Q,X,w,!0,R,!0,!0);w=w.substr(0,w.lastIndexOf(".")),O.add(this.options.textNodeName,Q),this.addChild(f,O,w)}else{if(Z.length>0&&Z.lastIndexOf("/")===Z.length-1){if(X[X.length-1]==="/")X=X.substr(0,X.length-1),w=w.substr(0,w.length-1),Z=X;else Z=Z.substr(0,Z.length-1);if(this.options.transformTagName)X=this.options.transformTagName(X);const Q=new w1(X);if(X!==Z&&R)Q[":@"]=this.buildAttributesMap(Z,w,X);this.addChild(f,Q,w),w=w.substr(0,w.lastIndexOf("."))}else{const Q=new w1(X);if(this.tagsNodeStack.push(f),X!==Z&&R)Q[":@"]=this.buildAttributesMap(Z,w,X);this.addChild(f,Q,w),f=Q}G="",W=Y}}else G+=$[W];return U.child},FQ=function($){if(this.options.processEntities){for(let U in this.docTypeEntities){const f=this.docTypeEntities[U];$=$.replace(f.regx,f.val)}for(let U in this.lastEntities){const f=this.lastEntities[U];$=$.replace(f.regex,f.val)}if(this.options.htmlEntities)for(let U in this.htmlEntities){const f=this.htmlEntities[U];$=$.replace(f.regex,f.val)}$=$.replace(this.ampEntity.regex,this.ampEntity.val)}return $};TE.exports=JE});var OE=K((KQ)=>{var QQ=function($,U){return ME($,U)},ME=function($,U,f){let G;const w={};for(let W=0;W<$.length;W++){const E=$[W],L=zQ(E);let X="";if(f===void 0)X=L;else X=f+"."+L;if(L===U.textNodeName)if(G===void 0)G=E[L];else G+=""+E[L];else if(L===void 0)continue;else if(E[L]){let F=ME(E[L],U,X);const Z=TQ(F,U);if(E[":@"])JQ(F,E[":@"],X,U);else if(Object.keys(F).length===1&&F[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)F=F[U.textNodeName];else if(Object.keys(F).length===0)if(U.alwaysCreateTextNode)F[U.textNodeName]="";else F="";if(w[L]!==void 0&&w.hasOwnProperty(L)){if(!Array.isArray(w[L]))w[L]=[w[L]];w[L].push(F)}else if(U.isArray(L,X,Z))w[L]=[F];else w[L]=F}}if(typeof G==="string"){if(G.length>0)w[U.textNodeName]=G}else if(G!==void 0)w[U.textNodeName]=G;return w},zQ=function($){const U=Object.keys($);for(let f=0;f<U.length;f++){const G=U[f];if(G!==":@")return G}},JQ=function($,U,f,G){if(U){const w=Object.keys(U),W=w.length;for(let E=0;E<W;E++){const L=w[E];if(G.isArray(L,f+"."+L,!0,!0))$[L]=[U[L]];else $[L]=U[L]}}},TQ=function($,U){const{textNodeName:f}=U,G=Object.keys($).length;if(G===0)return!0;if(G===1&&($[f]||typeof $[f]==="boolean"||$[f]===0))return!0;return!1};KQ.prettify=QQ});var VE=K((aO,BE)=>{var{buildOptions:OQ}=LE(),AQ=KE(),{prettify:BQ}=OE(),VQ=dU();class AE{constructor($){this.externalEntities={},this.options=OQ($)}parse($,U){if(typeof $==="string");else if($.toString)$=$.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(U){if(U===!0)U={};const w=VQ.validate($,U);if(w!==!0)throw Error(`${w.err.msg}:${w.err.line}:${w.err.col}`)}const f=new AQ(this.options);f.addExternalEntities(this.externalEntities);const G=f.parseXml($);if(this.options.preserveOrder||G===void 0)return G;else return BQ(G,this.options)}addEntity($,U){if(U.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if($.indexOf("&")!==-1||$.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}BE.exports=AE});var PE=K((eO,NE)=>{var HQ=function($,U){let f="";if(U.format&&U.indentBy.length>0)f="\n";return CE($,U,"",f)},CE=function($,U,f,G){let w="",W=!1;for(let E=0;E<$.length;E++){const L=$[E],X=CQ(L);if(X===void 0)continue;let F="";if(f.length===0)F=X;else F=`${f}.${X}`;if(X===U.textNodeName){let Q=L[X];if(!qQ(F,U))Q=U.tagValueProcessor(X,Q),Q=qE(Q,U);if(W)w+=G;w+=Q,W=!1;continue}else if(X===U.cdataPropName){if(W)w+=G;w+=`<![CDATA[${L[X][0][U.textNodeName]}]]>`,W=!1;continue}else if(X===U.commentPropName){w+=G+`<!--${L[X][0][U.textNodeName]}-->`,W=!0;continue}else if(X[0]==="?"){const Q=HE(L[":@"],U),O=X==="?xml"?"":G;let T=L[X][0][U.textNodeName];T=T.length!==0?" "+T:"",w+=O+`<${X}${T}${Q}?>`,W=!0;continue}let Z=G;if(Z!=="")Z+=U.indentBy;const R=HE(L[":@"],U),Y=G+`<${X}${R}`,I=CE(L[X],U,F,Z);if(U.unpairedTags.indexOf(X)!==-1)if(U.suppressUnpairedNode)w+=Y+">";else w+=Y+"/>";else if((!I||I.length===0)&&U.suppressEmptyNode)w+=Y+"/>";else if(I&&I.endsWith(">"))w+=Y+`>${I}${G}</${X}>`;else{if(w+=Y+">",I&&G!==""&&(I.includes("/>")||I.includes("</")))w+=G+U.indentBy+I+G;else w+=I;w+=`</${X}>`}W=!0}return w},CQ=function($){const U=Object.keys($);for(let f=0;f<U.length;f++){const G=U[f];if(!$.hasOwnProperty(G))continue;if(G!==":@")return G}},HE=function($,U){let f="";if($&&!U.ignoreAttributes)for(let G in $){if(!$.hasOwnProperty(G))continue;let w=U.attributeValueProcessor(G,$[G]);if(w=qE(w,U),w===!0&&U.suppressBooleanAttributes)f+=` ${G.substr(U.attributeNamePrefix.length)}`;else f+=` ${G.substr(U.attributeNamePrefix.length)}="${w}"`}return f},qQ=function($,U){$=$.substr(0,$.length-U.textNodeName.length-1);let f=$.substr($.lastIndexOf(".")+1);for(let G in U.stopNodes)if(U.stopNodes[G]===$||U.stopNodes[G]==="*."+f)return!0;return!1},qE=function($,U){if($&&$.length>0&&U.processEntities)for(let f=0;f<U.entities.length;f++){const G=U.entities[f];$=$.replace(G.regex,G.val)}return $};NE.exports=HQ});var SE=K(($A,jE)=>{var L0=function($){if(this.options=Object.assign({},PQ,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=bQ;if(this.processTextOrObjNode=jQ,this.options.format)this.indentate=SQ,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},jQ=function($,U,f){const G=this.j2x($,f+1);if($[this.options.textNodeName]!==void 0&&Object.keys($).length===1)return this.buildTextValNode($[this.options.textNodeName],U,G.attrStr,f);else return this.buildObjectNode(G.val,U,G.attrStr,f)},SQ=function($){return this.options.indentBy.repeat($)},bQ=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},NQ=PE(),PQ={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function($,U){return U},attributeValueProcessor:function($,U){return U},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("\'","g"),val:"&apos;"},{regex:new RegExp("\"","g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};L0.prototype.build=function($){if(this.options.preserveOrder)return NQ($,this.options);else{if(Array.isArray($)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)$={[this.options.arrayNodeName]:$};return this.j2x($,0).val}};L0.prototype.j2x=function($,U){let f="",G="";for(let w in $){if(!Object.prototype.hasOwnProperty.call($,w))continue;if(typeof $[w]==="undefined"){if(this.isAttribute(w))G+=""}else if($[w]===null)if(this.isAttribute(w))G+="";else if(w[0]==="?")G+=this.indentate(U)+"<"+w+"?"+this.tagEndChar;else G+=this.indentate(U)+"<"+w+"/"+this.tagEndChar;else if($[w]instanceof Date)G+=this.buildTextValNode($[w],w,"",U);else if(typeof $[w]!=="object"){const W=this.isAttribute(w);if(W)f+=this.buildAttrPairStr(W,""+$[w]);else if(w===this.options.textNodeName){let E=this.options.tagValueProcessor(w,""+$[w]);G+=this.replaceEntitiesValue(E)}else G+=this.buildTextValNode($[w],w,"",U)}else if(Array.isArray($[w])){const W=$[w].length;let E="",L="";for(let X=0;X<W;X++){const F=$[w][X];if(typeof F==="undefined");else if(F===null)if(w[0]==="?")G+=this.indentate(U)+"<"+w+"?"+this.tagEndChar;else G+=this.indentate(U)+"<"+w+"/"+this.tagEndChar;else if(typeof F==="object")if(this.options.oneListGroup){const Z=this.j2x(F,U+1);if(E+=Z.val,this.options.attributesGroupName&&F.hasOwnProperty(this.options.attributesGroupName))L+=Z.attrStr}else E+=this.processTextOrObjNode(F,w,U);else if(this.options.oneListGroup){let Z=this.options.tagValueProcessor(w,F);Z=this.replaceEntitiesValue(Z),E+=Z}else E+=this.buildTextValNode(F,w,"",U)}if(this.options.oneListGroup)E=this.buildObjectNode(E,w,L,U);G+=E}else if(this.options.attributesGroupName&&w===this.options.attributesGroupName){const W=Object.keys($[w]),E=W.length;for(let L=0;L<E;L++)f+=this.buildAttrPairStr(W[L],""+$[w][W[L]])}else G+=this.processTextOrObjNode($[w],w,U)}return{attrStr:f,val:G}};L0.prototype.buildAttrPairStr=function($,U){if(U=this.options.attributeValueProcessor($,""+U),U=this.replaceEntitiesValue(U),this.options.suppressBooleanAttributes&&U==="true")return" "+$;else return" "+$+'="'+U+'"'};L0.prototype.buildObjectNode=function($,U,f,G){if($==="")if(U[0]==="?")return this.indentate(G)+"<"+U+f+"?"+this.tagEndChar;else return this.indentate(G)+"<"+U+f+this.closeTag(U)+this.tagEndChar;else{let w="</"+U+this.tagEndChar,W="";if(U[0]==="?")W="?",w="";if((f||f==="")&&$.indexOf("<")===-1)return this.indentate(G)+"<"+U+f+W+">"+$+w;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&W.length===0)return this.indentate(G)+`<!--${$}-->`+this.newLine;else return this.indentate(G)+"<"+U+f+W+this.tagEndChar+$+this.indentate(G)+w}};L0.prototype.closeTag=function($){let U="";if(this.options.unpairedTags.indexOf($)!==-1){if(!this.options.suppressUnpairedNode)U="/"}else if(this.options.suppressEmptyNode)U="/";else U=`></${$}`;return U};L0.prototype.buildTextValNode=function($,U,f,G){if(this.options.cdataPropName!==!1&&U===this.options.cdataPropName)return this.indentate(G)+`<![CDATA[${$}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName)return this.indentate(G)+`<!--${$}-->`+this.newLine;else if(U[0]==="?")return this.indentate(G)+"<"+U+f+"?"+this.tagEndChar;else{let w=this.options.tagValueProcessor(U,$);if(w=this.replaceEntitiesValue(w),w==="")return this.indentate(G)+"<"+U+f+this.closeTag(U)+this.tagEndChar;else return this.indentate(G)+"<"+U+f+">"+w+"</"+U+this.tagEndChar}};L0.prototype.replaceEntitiesValue=function($){if($&&$.length>0&&this.options.processEntities)for(let U=0;U<this.options.entities.length;U++){const f=this.options.entities[U];$=$.replace(f.regex,f.val)}return $};jE.exports=L0});var hE=K((UA,bE)=>{var hQ=dU(),DQ=VE(),kQ=SE();bE.exports={XMLParser:DQ,XMLValidator:hQ,XMLBuilder:kQ}});var uE=K((fA,xE)=>{var{defineProperty:F$,getOwnPropertyDescriptor:cQ,getOwnPropertyNames:vQ}=Object,xQ=Object.prototype.hasOwnProperty,c=($,U)=>F$($,"name",{value:U,configurable:!0}),uQ=($,U)=>{for(var f in U)F$($,f,{get:U[f],enumerable:!0})},yQ=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of vQ(U))if(!xQ.call($,w)&&w!==f)F$($,w,{get:()=>U[w],enumerable:!(G=cQ(U,w))||G.enumerable})}return $},_Q=($)=>yQ(F$({},"__esModule",{value:!0}),$),DE={};uQ(DE,{_toBool:()=>pQ,_toNum:()=>gQ,_toStr:()=>dQ,awsExpectUnion:()=>sQ,loadRestJsonErrorCode:()=>iQ,loadRestXmlErrorCode:()=>aQ,parseJsonBody:()=>cE,parseJsonErrorBody:()=>mQ,parseXmlBody:()=>vE,parseXmlErrorBody:()=>tQ});xE.exports=_Q(DE);var dQ=c(($)=>{if($==null)return $;if(typeof $==="number"||typeof $==="bigint"){const U=new Error(`Received number ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}if(typeof $==="boolean"){const U=new Error(`Received boolean ${$} where a string was expected.`);return U.name="Warning",console.warn(U),String($)}return $},"_toStr"),pQ=c(($)=>{if($==null)return $;if(typeof $==="string"){const U=$.toLowerCase();if($!==""&&U!=="false"&&U!=="true"){const f=new Error(`Received string "${$}" where a boolean was expected.`);f.name="Warning",console.warn(f)}return $!==""&&U!=="false"}return $},"_toBool"),gQ=c(($)=>{if($==null)return $;if(typeof $==="string"){const U=Number($);if(U.toString()!==$){const f=new Error(`Received string "${$}" where a number was expected.`);return f.name="Warning",console.warn(f),$}return U}return $},"_toNum"),lQ=C0(),sQ=c(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return lQ.expectUnion($)},"awsExpectUnion"),nQ=C0(),kE=c(($,U)=>nQ.collectBody($,U).then((f)=>U.utf8Encoder(f)),"collectBodyString"),cE=c(($,U)=>kE($,U).then((f)=>{if(f.length)try{return JSON.parse(f)}catch(G){if((G==null?void 0:G.name)==="SyntaxError")Object.defineProperty(G,"$responseBodyText",{value:f});throw G}return{}}),"parseJsonBody"),mQ=c(async($,U)=>{const f=await cE($,U);return f.message=f.message??f.Message,f},"parseJsonErrorBody"),iQ=c(($,U)=>{const f=c((W,E)=>Object.keys(W).find((L)=>L.toLowerCase()===E.toLowerCase()),"findKey"),G=c((W)=>{let E=W;if(typeof E==="number")E=E.toString();if(E.indexOf(",")>=0)E=E.split(",")[0];if(E.indexOf(":")>=0)E=E.split(":")[0];if(E.indexOf("#")>=0)E=E.split("#")[1];return E},"sanitizeErrorCode"),w=f($.headers,"x-amzn-errortype");if(w!==void 0)return G($.headers[w]);if(U.code!==void 0)return G(U.code);if(U.__type!==void 0)return G(U.__type)},"loadRestJsonErrorCode"),rQ=C0(),oQ=hE(),vE=c(($,U)=>kE($,U).then((f)=>{if(f.length){const G=new oQ.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(X,F)=>F.trim()===""&&F.includes("\n")?"":void 0});G.addEntity("#xD","\r"),G.addEntity("#10","\n");let w;try{w=G.parse(f,!0)}catch(X){if(X&&typeof X==="object")Object.defineProperty(X,"$responseBodyText",{value:f});throw X}const W="#text",E=Object.keys(w)[0],L=w[E];if(L[W])L[E]=L[W],delete L[W];return rQ.getValueFromTextNode(L)}return{}}),"parseXmlBody"),tQ=c(async($,U)=>{const f=await vE($,U);if(f.Error)f.Error.message=f.Error.message??f.Error.Message;return f},"parseXmlErrorBody"),aQ=c(($,U)=>{var f;if(((f=U==null?void 0:U.Error)==null?void 0:f.Code)!==void 0)return U.Error.Code;if((U==null?void 0:U.Code)!==void 0)return U.Code;if($.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var eQ=K((G1)=>{Object.defineProperty(G1,"__esModule",{value:!0});var lU=M6();lU.__exportStar(V6(),G1);lU.__exportStar(e6(),G1);lU.__exportStar(uE(),G1)});function z7($){return $}var tE=($)=>(U)=>async(f)=>{if(!x.isInstance(f.request))return U(f);const{request:G}=f,{handlerProtocol:w=""}=$.requestHandler.metadata||{};if(w.indexOf("h2")>=0&&!G.headers[":authority"])delete G.headers.host,G.headers[":authority"]=G.hostname+(G.port?":"+G.port:"");else if(!G.headers.host){let W=G.hostname;if(G.port!=null)W+=`:${G.port}`;G.headers.host=W}return U(f)},aE={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},J7=($)=>({applyToStack:(U)=>{U.add(tE($),aE)}});var eE=()=>($,U)=>async(f)=>{try{const G=await $(f),{clientName:w,commandName:W,logger:E,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:X,overrideOutputFilterSensitiveLog:F}=L,Z=X??U.inputFilterSensitiveLog,R=F??U.outputFilterSensitiveLog,{$metadata:Y,...I}=G.output;return E?.info?.({clientName:w,commandName:W,input:Z(f.input),output:R(I),metadata:Y}),G}catch(G){const{clientName:w,commandName:W,logger:E,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:X}=L,F=X??U.inputFilterSensitiveLog;throw E?.error?.({clientName:w,commandName:W,input:F(f.input),error:G,metadata:G.$metadata}),G}},$L={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},K7=($)=>({applyToStack:(U)=>{U.add(eE(),$L)}});var rU="X-Amzn-Trace-Id",UL="AWS_LAMBDA_FUNCTION_NAME",fL="_X_AMZN_TRACE_ID",wL=($)=>(U)=>async(f)=>{const{request:G}=f;if(!x.isInstance(G)||$.runtime!=="node"||G.headers.hasOwnProperty(rU))return U(f);const w=process.env[UL],W=process.env[fL],E=(L)=>typeof L==="string"&&L.length>0;if(E(w)&&E(W))G.headers[rU]=W;return U({...f,request:G})},GL={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},V7=($)=>({applyToStack:(U)=>{U.add(wL($),GL)}});function Cz($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var kY=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),o0=($)=>kY.test($)||$.startsWith("[")&&$.endsWith("]");var cY=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),t0=($,U=!1)=>{if(!U)return cY.test($);const f=$.split(".");for(let G of f)if(!t0(G))return!1;return!0};var a0={};var t="endpoints";function _($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`\$${_($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(_).join(", ")})`;return JSON.stringify($,null,2)}class H extends Error{constructor($){super($);this.name="EndpointError"}}var $4=($,U)=>$===U;var U4=($)=>{const U=$.split("."),f=[];for(let G of U){const w=G.indexOf("[");if(w!==-1){if(G.indexOf("]")!==G.length-1)throw new H(`Path: '${$}' does not end with ']'`);const W=G.slice(w+1,-1);if(Number.isNaN(parseInt(W)))throw new H(`Invalid array index: '${W}' in path: '${$}'`);if(w!==0)f.push(G.slice(0,w));f.push(W)}else f.push(G)}return f};var x1=($,U)=>U4(U).reduce((f,G)=>{if(typeof f!=="object")throw new H(`Index '${G}' in '${U}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(f))return f[parseInt(G)];return f[G]},$);var f4=($)=>$!=null;var w4=($)=>!$;var u1=N0(F0(),1);var RU={[u1.EndpointURLScheme.HTTP]:80,[u1.EndpointURLScheme.HTTPS]:443},G4=($)=>{const U=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){const{hostname:Y,port:I,protocol:Q="",path:O="",query:T={}}=$,z=new URL(`${Q}//${Y}${I?`:${I}`:""}${O}`);return z.search=Object.entries(T).map(([M,A])=>`${M}=${A}`).join("&"),z}return new URL($)}catch(Y){return null}})();if(!U)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;const f=U.href,{host:G,hostname:w,pathname:W,protocol:E,search:L}=U;if(L)return null;const X=E.slice(0,-1);if(!Object.values(u1.EndpointURLScheme).includes(X))return null;const F=o0(w),Z=f.includes(`${G}:${RU[X]}`)||typeof $==="string"&&$.includes(`${G}:${RU[X]}`),R=`${G}${Z?`:${RU[X]}`:""}`;return{scheme:X,authority:R,path:W,normalizedPath:W.endsWith("/")?W:`${W}/`,isIp:F}};var W4=($,U)=>$===U;var E4=($,U,f,G)=>{if(U>=f||$.length<f)return null;if(!G)return $.substring(U,f);return $.substring($.length-f,$.length-U)};var L4=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var X4={booleanEquals:$4,getAttr:x1,isSet:f4,isValidHostLabel:t0,not:w4,parseURL:G4,stringEquals:W4,substring:E4,uriEncode:L4};var y1=($,U)=>{const f=[],G={...U.endpointParams,...U.referenceRecord};let w=0;while(w<$.length){const W=$.indexOf("{",w);if(W===-1){f.push($.slice(w));break}f.push($.slice(w,W));const E=$.indexOf("}",W);if(E===-1){f.push($.slice(W));break}if($[W+1]==="{"&&$[E+1]==="}")f.push($.slice(W+1,E)),w=E+2;const L=$.substring(W+1,E);if(L.includes("#")){const[X,F]=L.split("#");f.push(x1(G[X],F))}else f.push(G[L]);w=E+1}return f.join("")};var F4=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var G0=($,U,f)=>{if(typeof $==="string")return y1($,f);else if($.fn)return _1($,f);else if($.ref)return F4($,f);throw new H(`'${U}': ${String($)} is not a string, function or reference.`)};var _1=({fn:$,argv:U},f)=>{const G=U.map((W)=>["boolean","number"].includes(typeof W)?W:G0(W,"arg",f)),w=$.split(".");if(w[0]in a0&&w[1]!=null)return a0[w[0]][w[1]](...G);return X4[$](...G)};var Z4=({assign:$,...U},f)=>{if($&&$ in f.referenceRecord)throw new H(`'${$}' is already defined in Reference Record.`);const G=_1(U,f);return f.logger?.debug?.(`${t} evaluateCondition: ${_(U)} = ${_(G)}`),{result:G===""?!0:!!G,...$!=null&&{toAssign:{name:$,value:G}}}};var P0=($=[],U)=>{const f={};for(let G of $){const{result:w,toAssign:W}=Z4(G,{...U,referenceRecord:{...U.referenceRecord,...f}});if(!w)return{result:w};if(W)f[W.name]=W.value,U.logger?.debug?.(`${t} assign: ${W.name} := ${_(W.value)}`)}return{result:!0,referenceRecord:f}};var R4=($,U)=>Object.entries($).reduce((f,[G,w])=>({...f,[G]:w.map((W)=>{const E=G0(W,"Header value entry",U);if(typeof E!=="string")throw new H(`Header '${G}' value '${E}' is not a string`);return E})}),{});var IU=($,U)=>{if(Array.isArray($))return $.map((f)=>IU(f,U));switch(typeof $){case"string":return y1($,U);case"object":if($===null)throw new H(`Unexpected endpoint property: ${$}`);return d1($,U);case"boolean":return $;default:throw new H(`Unexpected endpoint property type: ${typeof $}`)}};var d1=($,U)=>Object.entries($).reduce((f,[G,w])=>({...f,[G]:IU(w,U)}),{});var I4=($,U)=>{const f=G0($,"Endpoint URL",U);if(typeof f==="string")try{return new URL(f)}catch(G){throw console.error(`Failed to construct URL with ${f}`,G),G}throw new H(`Endpoint URL must be a string, got ${typeof f}`)};var Y4=($,U)=>{const{conditions:f,endpoint:G}=$,{result:w,referenceRecord:W}=P0(f,U);if(!w)return;const E={...U,referenceRecord:{...U.referenceRecord,...W}},{url:L,properties:X,headers:F}=G;return U.logger?.debug?.(`${t} Resolving endpoint from template: ${_(G)}`),{...F!=null&&{headers:R4(F,E)},...X!=null&&{properties:d1(X,E)},url:I4(L,E)}};var Q4=($,U)=>{const{conditions:f,error:G}=$,{result:w,referenceRecord:W}=P0(f,U);if(!w)return;throw new H(G0(G,"Error",{...U,referenceRecord:{...U.referenceRecord,...W}}))};var z4=($,U)=>{const{conditions:f,rules:G}=$,{result:w,referenceRecord:W}=P0(f,U);if(!w)return;return p1(G,{...U,referenceRecord:{...U.referenceRecord,...W}})};var p1=($,U)=>{for(let f of $)if(f.type==="endpoint"){const G=Y4(f,U);if(G)return G}else if(f.type==="error")Q4(f,U);else if(f.type==="tree"){const G=z4(f,U);if(G)return G}else throw new H(`Unknown endpoint rule: ${f}`);throw new H("Rules evaluation failed")};var vY=($,U)=>{const{endpointParams:f,logger:G}=U,{parameters:w,rules:W}=$;U.logger?.debug?.(`${t} Initial EndpointParams: ${_(f)}`);const E=Object.entries(w).filter(([,F])=>F.default!=null).map(([F,Z])=>[F,Z.default]);if(E.length>0)for(let[F,Z]of E)f[F]=f[F]??Z;const L=Object.entries(w).filter(([,F])=>F.required).map(([F])=>F);for(let F of L)if(f[F]==null)throw new H(`Missing required parameter: '${F}'`);const X=p1(W,{endpointParams:f,logger:G,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const F=new URL(U.endpointParams.Endpoint),{protocol:Z,port:R}=F;X.url.protocol=Z,X.url.port=R}catch(F){}return U.logger?.debug?.(`${t} Resolved endpoint: ${_(X)}`),X};var YU=($,U=!1)=>{if(U){for(let f of $.split("."))if(!YU(f))return!1;return!0}if(!t0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(o0($))return!1;return!0};var J4=($)=>{const U=$.split(":");if(U.length<6)return null;const[f,G,w,W,E,...L]=U;if(f!=="arn"||G===""||w===""||L[0]==="")return null;return{partition:G,service:w,region:W,accountId:E,resourceId:L[0].includes("/")?L[0].split("/"):L}};var T4={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],version:"1.1"};var uY=T4,yY="",K4=($)=>{const{partitions:U}=uY;for(let G of U){const{regions:w,outputs:W}=G;for(let[E,L]of Object.entries(w))if(E===$)return{...W,...L}}for(let G of U){const{regionRegex:w,outputs:W}=G;if(new RegExp(w).test($))return{...W}}const f=U.find((G)=>G.id==="aws");if(!f)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...f.outputs}};var M4=()=>yY;var _Y={isVirtualHostableS3Bucket:YU,parseArn:J4,partition:K4};a0.aws=_Y;var QU="user-agent",g1="x-amz-user-agent",zU=" ",l1="/",O4=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,A4=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,JU="-";var dY=($)=>(U,f)=>async(G)=>{const{request:w}=G;if(!x.isInstance(w))return U(G);const{headers:W}=w,E=f?.userAgent?.map(TU)||[],L=(await $.defaultUserAgentProvider()).map(TU),X=$?.customUserAgent?.map(TU)||[],F=M4(),Z=(F?[F]:[]).concat([...L,...E,...X]).join(zU),R=[...L.filter((Y)=>Y.startsWith("aws-sdk-")),...X].join(zU);if($.runtime!=="browser"){if(R)W[g1]=W[g1]?`${W[QU]} ${R}`:R;W[QU]=Z}else W[g1]=Z;return U({...G,request:w})},TU=($)=>{const U=$[0].split(l1).map((E)=>E.replace(O4,JU)).join(l1),f=$[1]?.replace(A4,JU),G=U.indexOf(l1),w=U.substring(0,G);let W=U.substring(G+1);if(w==="api")W=W.toLowerCase();return[w,W,f].filter((E)=>E&&E.length>0).reduce((E,L,X)=>{switch(X){case 0:return L;case 1:return`${E}/${L}`;default:return`${E}#${L}`}},"")},pY={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},GK=($)=>({applyToStack:(U)=>{U.add(dY($),pY)}});var s1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var KU=($)=>s1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var QK=($)=>{const{region:U,useFipsEndpoint:f}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return KU(U);const G=await U();return KU(G)},useFipsEndpoint:async()=>{const G=typeof U==="string"?U:await U();if(s1(G))return!0;return typeof f!=="function"?Promise.resolve(!!f):f()}}};var j0=($,U,f)=>{if(!(U in $))return;if($[U]==="true")return!0;if($[U]==="false")return!1;throw new Error(`Cannot load ${f} "${U}". Expected "true" or "false", got ${$[U]}.`)};var W0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(W0||(W0={}));var gY="AWS_USE_DUALSTACK_ENDPOINT",lY="use_dualstack_endpoint";var HK={environmentVariableSelector:($)=>j0($,gY,W0.ENV),configFileSelector:($)=>j0($,lY,W0.CONFIG),default:!1};var sY="AWS_USE_FIPS_ENDPOINT",nY="use_fips_endpoint";var NK={environmentVariableSelector:($)=>j0($,sY,W0.ENV),configFileSelector:($)=>j0($,nY,W0.CONFIG),default:!1};var MU=N0(F0(),1),B4=($)=>$[MU.SMITHY_CONTEXT_KEY]||($[MU.SMITHY_CONTEXT_KEY]={});var a=($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U};var V4={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},nK={preferredFile:"credentials"};function mY($){return(U)=>async(f)=>{const G=f.request;if(x.isInstance(G)){const{body:w,headers:W}=G;if(w&&Object.keys(W).map((E)=>E.toLowerCase()).indexOf(H4)===-1)try{const E=$(w);G.headers={...G.headers,[H4]:String(E)}}catch(E){}}return U({...f,request:G})}}var H4="content-length",iY={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},MM=($)=>({applyToStack:(U)=>{U.add(mY($.bodyLengthChecker),iY)}});var D4=N0(E1(),1);var C4=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(eY(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!aY(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},rY=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,oY=/(\d+\.){3}\d+/,tY=/\.\./;var aY=($)=>rY.test($)&&!oY.test($)&&!tY.test($),eY=($)=>{const[U,f,G,,,w]=$.split(":"),W=U==="arn"&&$.split(":").length>=6,E=Boolean(W&&f&&G&&w);if(W&&!E)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return E};var q4=($,U,f)=>{const G=async()=>{const w=f[$]??f[U];if(typeof w==="function")return w();return w};if($==="credentialScope"||U==="CredentialScope")return async()=>{const w=typeof f.credentials==="function"?await f.credentials():f.credentials;return w?.credentialScope??w?.CredentialScope};if($==="accountId"||U==="AccountId")return async()=>{const w=typeof f.credentials==="function"?await f.credentials():f.credentials;return w?.accountId??w?.AccountId};if($==="endpoint"||U==="endpoint")return async()=>{const w=await G();if(w&&typeof w==="object"){if("url"in w)return w.url.href;if("hostname"in w){const{protocol:W,hostname:E,port:L,path:X}=w;return`${W}//${E}${L?":"+L:""}${X}`}}return w};return G};var N4="AWS_ENDPOINT_URL",P4="endpoint_url",j4=($)=>({environmentVariableSelector:(U)=>{const f=$.split(" ").map((W)=>W.toUpperCase()),G=U[[N4,...f].join("_")];if(G)return G;const w=U[N4];if(w)return w;return},configFileSelector:(U,f)=>{if(f&&U.services){const w=f[["services",U.services].join(OU)];if(w){const W=$.split(" ").map((L)=>L.toLowerCase()),E=w[[W.join("_"),P4].join(OU)];if(E)return E}}const G=U[P4];if(G)return G;return},default:void 0});var S4=async($)=>Q0(j4($))();var AU=N0(vf(),1),n1=($)=>{if(typeof $==="object"){if("url"in $)return AU.parseUrl($.url);return $}return AU.parseUrl($)};var b4=async($,U,f,G)=>{if(!f.endpoint){const E=await S4(f.serviceId||"");if(E)f.endpoint=()=>Promise.resolve(n1(E))}const w=await $5($,U,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(w,G)},$5=async($,U,f)=>{const G={},w=U?.getEndpointParameterInstructions?.()||{};for(let[W,E]of Object.entries(w))switch(E.type){case"staticContextParams":G[W]=E.value;break;case"contextParams":G[W]=$[E.name];break;case"clientContextParams":case"builtInParams":G[W]=await q4(E.name,W,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(E))}if(Object.keys(w).length===0)Object.assign(G,f);if(String(f.serviceId).toLowerCase()==="s3")await C4(G);return G};var h4=({config:$,instructions:U})=>{return(f,G)=>async(w)=>{const W=await b4(w.input,{getEndpointParameterInstructions(){return U}},{...$},G);G.endpointV2=W,G.authSchemes=W.properties?.authSchemes;const E=G.authSchemes?.[0];if(E){G.signing_region=E.signingRegion,G.signing_service=E.signingName;const X=B4(G)?.selectedHttpAuthScheme?.httpAuthOption;if(X)X.signingProperties=Object.assign(X.signingProperties||{},{signing_region:E.signingRegion,signingRegion:E.signingRegion,signing_service:E.signingName,signingName:E.signingName,signingRegionSet:E.signingRegionSet},E.properties)}return f({...w})}};var U5={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:D4.serializerMiddlewareOption.name},_M=($,U)=>({applyToStack:(f)=>{f.addRelativeTo(h4({config:$,instructions:U}),U5)}});var lM=($)=>{const U=$.tls??!0,{endpoint:f}=$,G=f!=null?async()=>n1(await a(f)()):void 0;return{...$,endpoint:G,tls:U,isCustomEndpoint:!!f,useDualstackEndpoint:a($.useDualstackEndpoint??!1),useFipsEndpoint:a($.useFipsEndpoint??!1)}};var m=N0(P$(),1),U3=m.default.v1,f3=m.default.v3,k4=m.default.v4,w3=m.default.v5,G3=m.default.NIL,W3=m.default.version,E3=m.default.validate,L3=m.default.stringify,X3=m.default.parse;var s;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(s||(s={}));var z0=3,c4=s.STANDARD;var v4=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],x4=["TimeoutError","RequestTimeout","RequestTimeoutException"],u4=[500,502,503,504],y4=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var f5=($)=>$.$metadata?.clockSkewCorrected,S0=($)=>$.$metadata?.httpStatusCode===429||v4.includes($.name)||$.$retryable?.throttling==!0,m1=($)=>f5($)||x4.includes($.name)||y4.includes($?.code||"")||u4.includes($.$metadata?.httpStatusCode||0),_4=($)=>{if($.$metadata?.httpStatusCode!==void 0){const U=$.$metadata.httpStatusCode;if(500<=U&&U<=599&&!m1($))return!0;return!1}return!1};class i1{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.smooth??0.8;const U=this.getCurrentTimeInSeconds();this.lastThrottleTime=U,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.currentCapacity){const U=($-this.currentCapacity)/this.fillRate*1000;await new Promise((f)=>setTimeout(f,U))}this.currentCapacity=this.currentCapacity-$}refillTokenBucket(){const $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}const U=($-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+U),this.lastTimestamp=$}updateClientSendingRate($){let U;if(this.updateMeasuredRate(),S0($)){const G=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=G,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(G),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const f=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(f)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const $=this.getCurrentTimeInSeconds(),U=Math.floor($*2)/2;if(this.requestCount++,U>this.lastTxRateBucket){const f=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(f*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}}var J0=100,e0=20000,BU=500,r1=500,VU=5,HU=10,CU=1,o1="amz-sdk-invocation-id",t1="amz-sdk-request";var d4=()=>{let $=J0;return{computeNextBackoffDelay:(G)=>{return Math.floor(Math.min(e0,Math.random()*2**G*$))},setDelayBase:(G)=>{$=G}}};var qU=({retryDelay:$,retryCount:U,retryCost:f})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(e0,$),getRetryCost:()=>f}};class b0{constructor($){this.maxAttempts=$,this.mode=s.STANDARD,this.capacity=r1,this.retryBackoffStrategy=d4(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return qU({retryDelay:J0,retryCount:0})}async refreshRetryTokenForRetry($,U){const f=await this.getMaxAttempts();if(this.shouldRetry($,U,f)){const G=U.errorType;this.retryBackoffStrategy.setDelayBase(G==="THROTTLING"?BU:J0);const w=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),W=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,w):w,E=this.getCapacityCost(G);return this.capacity-=E,qU({retryDelay:W,retryCount:$.getRetryCount()+1,retryCost:E})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(r1,this.capacity+($.getRetryCost()??CU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${z0}`),z0}}shouldRetry($,U,f){return $.getRetryCount()+1<f&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?HU:VU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class NU{constructor($,U){this.maxAttemptsProvider=$,this.mode=s.ADAPTIVE;const{rateLimiter:f}=U??{};this.rateLimiter=f??new i1,this.standardRetryStrategy=new b0($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,U){return this.rateLimiter.updateClientSendingRate(U),this.standardRetryStrategy.refreshRetryTokenForRetry($,U)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}}var p4="AWS_MAX_ATTEMPTS",g4="max_attempts",l3={environmentVariableSelector:($)=>{const U=$[p4];if(!U)return;const f=parseInt(U);if(Number.isNaN(f))throw new Error(`Environment variable ${p4} mast be a number, got "${U}"`);return f},configFileSelector:($)=>{const U=$[g4];if(!U)return;const f=parseInt(U);if(Number.isNaN(f))throw new Error(`Shared config file entry ${g4} mast be a number, got "${U}"`);return f},default:z0},s3=($)=>{const{retryStrategy:U}=$,f=a($.maxAttempts??z0);return{...$,maxAttempts:f,retryStrategy:async()=>{if(U)return U;if(await a($.retryMode)()===s.ADAPTIVE)return new NU(f);return new b0(f)}}},w5="AWS_RETRY_MODE",G5="retry_mode",n3={environmentVariableSelector:($)=>$[w5],configFileSelector:($)=>$[G5],default:c4};import{Readable as W5} from"stream";var l4=($)=>$?.body instanceof W5||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var PU=($)=>{if($ instanceof Error)return $;if($ instanceof Object)return Object.assign(new Error,$);if(typeof $==="string")return new Error($);return new Error(`AWS SDK error wrapper for ${$}`)};var E5=($)=>(U,f)=>async(G)=>{let w=await $.retryStrategy();const W=await $.maxAttempts();if(L5(w)){w=w;let E=await w.acquireInitialRetryToken(f.partition_id),L=new Error,X=0,F=0;const{request:Z}=G,R=x.isInstance(Z);if(R)Z.headers[o1]=k4();while(!0)try{if(R)Z.headers[t1]=`attempt=${X+1}; max=${W}`;const{response:Y,output:I}=await U(G);return w.recordSuccess(E),I.$metadata.attempts=X+1,I.$metadata.totalRetryDelay=F,{response:Y,output:I}}catch(Y){const I=X5(Y);if(L=PU(Y),R&&l4(Z))throw(f.logger instanceof s4?console:f.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{E=await w.refreshRetryTokenForRetry(E,I)}catch(O){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=X+1,L.$metadata.totalRetryDelay=F,L}X=E.getRetryCount();const Q=E.getRetryDelay();F+=Q,await new Promise((O)=>setTimeout(O,Q))}}else{if(w=w,w?.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",w.mode]];return w.retry(U,G)}},L5=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",X5=($)=>{const U={error:$,errorType:F5($)},f=R5($.$response);if(f)U.retryAfterHint=f;return U},F5=($)=>{if(S0($))return"THROTTLING";if(m1($))return"TRANSIENT";if(_4($))return"SERVER_ERROR";return"CLIENT_ERROR"},Z5={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},GO=($)=>({applyToStack:(U)=>{U.add(E5($),Z5)}}),R5=($)=>{if(!jU.isInstance($))return;const U=Object.keys($.headers).find((W)=>W.toLowerCase()==="retry-after");if(!U)return;const f=$.headers[U],G=Number(f);if(!Number.isNaN(G))return new Date(G*1000);return new Date(f)};import{platform as $7,release as U7} from"os";import{env as _E,versions as f7} from"process";var sU={isCrtAvailable:!1};var yE=()=>{if(sU.isCrtAvailable)return["md/crt-avail"];return null};var w7="AWS_SDK_UA_APP_ID",G7="sdk-ua-app-id",RA=({serviceId:$,clientVersion:U})=>{const f=[["aws-sdk-js",U],["ua","2.0"],[`os/${$7()}`,U7()],["lang/js"],["md/nodejs",`${f7.node}`]],G=yE();if(G)f.push(G);if($)f.push([`api/${$}`,U]);if(_E.AWS_EXECUTION_ENV)f.push([`exec-env/${_E.AWS_EXECUTION_ENV}`]);const w=Q0({environmentVariableSelector:(E)=>E[w7],configFileSelector:(E)=>E[G7],default:void 0})();let W=void 0;return async()=>{if(!W){const E=await w;W=E?[...f,[`app/${E}`]]:[...f]}return W}};import{Buffer as W7} from"buffer";import{createHash as E7,createHmac as L7} from"crypto";var dE=function($,U){if(W7.isBuffer($))return $;if(typeof $==="string")return pE($,U);if(ArrayBuffer.isView($))return nU($.buffer,$.byteOffset,$.byteLength);return nU($)};class X7{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(gE(dE($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?L7(this.algorithmIdentifier,dE(this.secret)):E7(this.algorithmIdentifier)}}import{fstatSync as F7,lstatSync as Z7} from"fs";var OA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if(typeof $.path==="string"||Buffer.isBuffer($.path))return Z7($.path).size;else if(typeof $.fd==="number")return F7($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var rE=N0(M$(),1);var lE="AWS_EXECUTION_ENV",mU="AWS_REGION",iU="AWS_DEFAULT_REGION",sE="AWS_EC2_METADATA_DISABLED",nE=["in-region","cross-region","mobile","standard","legacy"],mE="/latest/meta-data/placement/region";var iE={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var SA=({region:$=Q0(V4),defaultsMode:U=Q0(iE)}={})=>rE.memoize(async()=>{const f=typeof U==="function"?await U():U;switch(f?.toLowerCase()){case"auto":return R7($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(f?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${nE.join(", ")}, got ${f}`)}}),R7=async($)=>{if($){const U=typeof $==="function"?await $():$,f=await I7();if(!f)return"standard";if(U===f)return"in-region";else return"cross-region"}return"standard"},I7=async()=>{if(process.env[lE]&&(process.env[mU]||process.env[iU]))return process.env[mU]??process.env[iU];if(!process.env[sE])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-b9e4546aaa58319c.js"),f=await $();return(await U({...f,path:mE})).toString()}catch($){}};var kA=($)=>{let U=async()=>{if($.region===void 0)throw new Error("Region is missing from runtimeConfig");const f=$.region;if(typeof f==="string")return f;return f()};return{setRegion(f){U=f},region(){return U}}},cA=($)=>{return{region:$.region()}};export{z7 as wa,J7 as xa,K7 as ya,V7 as za,B4 as Aa,a as Ba,j0 as Ca,W0 as Da,E1 as Ea,ZU as Fa,Cz as Ga,a0 as Ha,vY as Ia,_Y as Ja,GK as Ka,HK as La,NK as Ma,V4 as Na,nK as Oa,QK as Pa,MM as Qa,$5 as Ra,_M as Sa,lM as Ta,c4 as Ua,k4 as Va,l3 as Wa,s3 as Xa,n3 as Ya,GO as Za,M6 as _a,eQ as $a,RA as ab,X7 as bb,OA as cb,SA as db,kA as eb,cA as fb};
@@ -1,2 +0,0 @@
1
- import{u as l,v as w} from"./chunk-c8f1115d77efc1c0.js";class m{requests={};static kind="controller";constructor(){}}class C extends m{constructor(){super(...arguments)}}function P(e){return typeof e==="function"&&e.prototype!==void 0}var H=function(e){return P(e)};class d{e;t;n;middlewares=[];constructor(e,t,n){this.method=e;this.handler=t;this.methodName=n;this.handler=t,this.methodName=n,this.method=e}run(e){let t=e;if(H(this.handler)){const n=new this.handler,r=n[this.methodName].bind(n);return t=n.requests[this.methodName]?new n.requests[this.methodName](e.rawRequest,e.params):t,r(t)}else return this.handler(e)}middleware(e){return this.middlewares=e,this}}class R{routes={};middlewares=[];middleware(e){}get(e,t){return new d("GET",e,t)}post(e,t){return new d("POST",e,t)}put(e,t){return new d("PUT",e,t)}patch(e,t){return new d("PATCH",e,t)}delete(e,t){return new d("DELETE",e,t)}resource(e){class t extends R{constructor(){super(...arguments)}routes={"/":{list:this.get(e,"list"),create:this.post(e,"create")},"/:id":{show:this.get(e,"show"),update:this.put(e,"update"),delete:this.delete(e,"delete")}}}return t}}class f{routes={};middlewares=[];middleware(e){}layout(e,...t){function n(r=[]){const[o,a]=t;let s=a??{};if(o&&o.constructor===Object)s=o;return{exec:async(u)=>{let i=()=>Promise.resolve({data:{[e]:{}},headers:{},head:{}});if(typeof o==="function")i=o;if(Array.isArray(o)){const[T,y]=o,p=new T;i=p[y].bind(p)}const h=await i(u);return{[e]:h}},children:s,viewPath:e,middlewares:r,kind:"layout"}}return{prepare:n,middleware:(r)=>({prepare:()=>n(r)})}}view(e,...t){function n(r=[]){const[o,a]=t;let s=a??{};if(o&&o.constructor===Object)s=o;return{exec:async(u)=>{let i=()=>Promise.resolve({data:{[e]:{}},headers:{},head:{}});if(typeof handler==="function")i=handler;if(Array.isArray(o)){const[T,y]=o,p=new T;i=p[y].bind(p)}const h=await i(u);return{[e]:h}},children:s,viewPath:e,middlewares:r,kind:"view"}}return{prepare:n,middleware:(r)=>({prepare:()=>n(r)})}}}class c extends l{errors={};constructor(e){super("Validation error");this.name="ValidationError",this.errors=e,this.payload={api:{status:400,data:{error:{kind:"validation_error",messages:e}},headers:{"Content-Type":"application/json"}},view:{status:400}}}}class K extends l{error;constructor(e="Not authorized"){super("Authentication error");this.name="AuthenticationError",this.error=e,this.payload={api:{status:401,data:{error:this.error}},view:{}}}}class g extends l{error;constructor(e="Insufficient permissions"){super("Authentication error");this.name="AuthenticationError",this.error=e,this.payload={api:{status:401,data:{error:this.error}},view:{}}}}class b extends l{constructor(){super("Authentication error");this.name="AuthenticationError"}payload={api:{status:401,data:{error:"Authentication error"}},view:{status:302,headers:{"Cache-Control":"private, no-cache, no-store, max-age=0, must-revalidate",Location:"/auth/sign-in"}}}}var O=function(e){const[t,n]=e.split(":");switch(t){case"required":return(r)=>{return r!==null&&r!==void 0&&r?.length>0};case"password":return(r)=>{return/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^a-zA-Z0-9]).{8,}$/.test(r)};case"number":return(r)=>{if(typeof r!=="number")return!1;return!isNaN(r)};case"min":return(r)=>{return r?.length>=parseInt(n)};case"max":return(r)=>{return r?.length<=parseInt(n)};case"email":return(r)=>{return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)};default:return()=>!0}};class x{e;constructor(e){this.data=e}get(e){return this.data[e]}set(e,t){this.data[e]=t}has(e){return this.data[e]!==void 0}toJSON(){return this.data}}class M{rawRequest;headers;cookies;schema={};params;ctx=w.getStore();constructor(e,t){this.params=t,this.rawRequest=e,this.headers=e.headers;const n=this.rawRequest.headers.get("Cookie"),r=new Map;if(n){const o=n.split(";");for(let a of o){const[s,u]=a.split("=");r.set(s.trim(),u.trim())}}this.cookies=r}async parseBody(){const e=new x({});if(this.rawRequest.headers.get("Content-Type")==="application/json"){const t=await this.rawRequest.json();for(let[n,r]of Object.entries(t))e.set(n,r)}if(this.rawRequest.headers.get("Content-Type")==="application/x-www-form-urlencoded"){const t=await this.rawRequest.formData();for(let[n,r]of t)e.set(n,r)}if(this.rawRequest.headers.get("Content-Type").startsWith("multipart/form-data")){const t=await this.rawRequest.formData();for(let[n,r]of t)if(e.has(n)){const o=e.get(n);if(Array.isArray(o))o.push(r),e.set(n,o);else e.set(n,[o,r])}else e.set(n,r)}return e}validateInput(e){const t={};for(let[n,r]of Object.entries(this.schema))for(let[o,a]of Object.entries(r))if(!O(o)(e.get(n))){if(!t[n])t[n]=[];if(o==="required"){t[n]=[String(a)];break}else t[n].push(String(a))}if(Object.keys(t).length>0)throw new c(t);else return e}async input(){return this.validateInput(await this.parseBody())}async safeInput(){const e=await this.parseBody();try{return this.validateInput(e),{isValid:!0,errors:{},input:e}}catch(t){if(!(t instanceof c))throw t;return{isValid:!1,errors:t.errors,input:e}}}async terminate(e){throw"not implemented"}}class I{aliases={}}class q{policiesList={};constructor(){const e=this.register();for(let t of e){const n=new t;this.policiesList[t.name]=n}}register(){return[]}}
2
- export{m as d,C as e,P as f,R as g,f as h,c as i,K as j,g as k,b as l,M as m,I as n,q as o};