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.
- package/dist/{chunk-f5a531a49e7591bd.js → chunk-2895a97b65e7107b.js} +1 -1
- package/dist/{chunk-8884e59809021f5f.js → chunk-2dd61d279d9f0b13.js} +1 -1
- package/dist/{chunk-100b76ab0ca3e14d.js → chunk-448c9eceacddef90.js} +1 -1
- package/dist/{chunk-a4b231bf6d911e01.js → chunk-466213c5585251ad.js} +1 -1
- package/dist/{chunk-edfc3362e0d21dab.js → chunk-4b8da0fabb3539db.js} +5 -5
- package/dist/{chunk-1bd88dc9c4475e1d.js → chunk-4bc3b71775040cb9.js} +1 -1
- package/dist/{chunk-00935722c776a294.js → chunk-af7d1951242b1c6e.js} +1 -1
- package/dist/{chunk-1d2c062034e3ed2d.js → chunk-b6a64bf9af2e91be.js} +2 -2
- package/dist/{chunk-a35eb04f0c7c9944.js → chunk-b8176bf532f59485.js} +1 -1
- package/dist/{chunk-545989119755857f.js → chunk-cca33e85bf87b3b3.js} +1 -1
- package/dist/{chunk-a1efc60864e65ef2.js → chunk-de75d134f236f4bb.js} +1 -1
- package/dist/{chunk-107dbe753ed86605.js → chunk-e344c95f8ae7a124.js} +2 -2
- package/dist/{chunk-f5200f44395bf49d.js → chunk-e565da7343a33b65.js} +2 -2
- package/dist/{chunk-3330ff12936f5a2e.js → chunk-e912bf7c7a0e988a.js} +1 -1
- package/dist/{chunk-210fc3731e7d2299.js → chunk-f22ac1ec6c3f782b.js} +1 -1
- package/dist/{chunk-1b3b7c2c9ae041ca.js → chunk-fe65548818651cb5.js} +1 -1
- package/dist/client/ClientRouterContext.d.ts.map +1 -1
- package/dist/client/HttpReload.d.ts.map +1 -1
- package/dist/client/index.js +19 -5
- package/dist/server/index.js +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/vite/{index-D9QWnghl.mjs → index-BbySvAwL.mjs} +3 -3
- package/dist/vite/index.mjs +1 -1
- package/dist/vite/{typescript-DADBvwYC.mjs → typescript-CeZcXBr-.mjs} +1 -1
- package/package.json +1 -1
- package/dist/app/App.test.d.ts +0 -20
- package/dist/app/App.test.d.ts.map +0 -1
- package/dist/app/createComponentTree.test.d.ts +0 -2
- package/dist/app/createComponentTree.test.d.ts.map +0 -1
- package/dist/app/createFlatApiRoutes.test.d.ts +0 -2
- package/dist/app/createFlatApiRoutes.test.d.ts.map +0 -1
- package/dist/app/createFlatViewRoutes.test.d.ts +0 -2
- package/dist/app/createFlatViewRoutes.test.d.ts.map +0 -1
- package/dist/app/createRouteManifest.test.d.ts +0 -2
- package/dist/app/createRouteManifest.test.d.ts.map +0 -1
- package/dist/chunk-00234eac874c2722.js +0 -2
- package/dist/chunk-00cb9f80352454dd.js +0 -1
- package/dist/chunk-00e9dad0734d9761.js +0 -2
- package/dist/chunk-00ecc27f03e2e84a.js +0 -2
- package/dist/chunk-00f16704831dd8b0.js +0 -2
- package/dist/chunk-01052ff9d1c07ef8.js +0 -2
- package/dist/chunk-0113570164c56f57.js +0 -2
- package/dist/chunk-0130e95410edb036.js +0 -18
- package/dist/chunk-01e07763e3e32710.js +0 -2
- package/dist/chunk-01e1579811beb424.js +0 -2
- package/dist/chunk-01ffccc19e8ef862.js +0 -3
- package/dist/chunk-02118fc60206588d.js +0 -2
- package/dist/chunk-0306d8fccec5104e.js +0 -2
- package/dist/chunk-030b4fb955329860.js +0 -16
- package/dist/chunk-03227f4a68e038f4.js +0 -2
- package/dist/chunk-03a72299591d45a7.js +0 -18
- package/dist/chunk-03c8e645c994d40a.js +0 -2
- package/dist/chunk-04aa62521338e3ab.js +0 -18
- package/dist/chunk-04d6b88ed6d3f076.js +0 -6
- package/dist/chunk-0557700bf68e85d4.js +0 -18
- package/dist/chunk-05fa767ab29abb0f.js +0 -2
- package/dist/chunk-061d95b15c00e38b.js +0 -9
- package/dist/chunk-069fcad61c8841dc.js +0 -1
- package/dist/chunk-06b83143607ebdc8.js +0 -6
- package/dist/chunk-06eebef7eb056baa.js +0 -2
- package/dist/chunk-073f5b81e98d91fe.js +0 -3
- package/dist/chunk-08539d08fa7362f7.js +0 -2
- package/dist/chunk-088b47e135832170.js +0 -1
- package/dist/chunk-088ed28ebed2b009.js +0 -5
- package/dist/chunk-08e9ab1091d7383e.js +0 -3
- package/dist/chunk-0909c7f6b64b8806.js +0 -2
- package/dist/chunk-095848ccb81718bf.js +0 -2
- package/dist/chunk-09dd89e1046786a5.js +0 -2
- package/dist/chunk-0a6614fbd65524af.js +0 -2
- package/dist/chunk-0a9ae42aae6f406e.js +0 -2
- package/dist/chunk-0b1b4e4e251ffe01.js +0 -2
- package/dist/chunk-0b46ec66d2c3d5f3.js +0 -2
- package/dist/chunk-0b5fb4e0c7de8316.js +0 -2
- package/dist/chunk-0b7a7410fce0b12e.js +0 -9
- package/dist/chunk-0b8dc3d1ff94a0fa.js +0 -6
- package/dist/chunk-0b99ba34351bde91.js +0 -3
- package/dist/chunk-0d0f764773c0f6b8.js +0 -2
- package/dist/chunk-0d8ab901365b9696.js +0 -2
- package/dist/chunk-0db33ac43bd1d504.js +0 -2
- package/dist/chunk-0de36a7e51fbd11b.js +0 -9
- package/dist/chunk-0e125593337a68aa.js +0 -18
- package/dist/chunk-0e3473f7e43f4876.js +0 -2
- package/dist/chunk-0e99fe5c976c8ea2.js +0 -6
- package/dist/chunk-0f8e80862546cbc5.js +0 -18
- package/dist/chunk-0ffc38ed09847e35.js +0 -2
- package/dist/chunk-1062b3156a49fabc.js +0 -2
- package/dist/chunk-1084614a350762fb.js +0 -2
- package/dist/chunk-10a623a23a65bb20.js +0 -18
- package/dist/chunk-1109657ed53fbdc9.js +0 -2
- package/dist/chunk-11323d7a5d9219ce.js +0 -2
- package/dist/chunk-1171d9afbbfe827b.js +0 -2
- package/dist/chunk-119ffcaf1c463b8d.js +0 -6
- package/dist/chunk-11a75566ff74db17.js +0 -6
- package/dist/chunk-11d1336f6de61f45.js +0 -16
- package/dist/chunk-11fb7f7f30378785.js +0 -2
- package/dist/chunk-12b4f44a2beae19b.js +0 -2
- package/dist/chunk-12ca7224eb6ccf72.js +0 -9
- package/dist/chunk-132c71db605759c9.js +0 -2
- package/dist/chunk-1334ee957ff9058c.js +0 -2
- package/dist/chunk-136896e8038083a1.js +0 -2
- package/dist/chunk-13801a8f811f0461.js +0 -2
- package/dist/chunk-13e45ce3460f6375.js +0 -2
- package/dist/chunk-14d5491e97673c7d.js +0 -2
- package/dist/chunk-14e60554a2e78f4a.js +0 -2
- package/dist/chunk-159f5b922269aef1.js +0 -2
- package/dist/chunk-15e9771e524c5726.js +0 -2
- package/dist/chunk-16a63b2fee0ce9e2.js +0 -2
- package/dist/chunk-16dbe3a15379140b.js +0 -2
- package/dist/chunk-176e5ded5ed33d4d.js +0 -2
- package/dist/chunk-1838696dc4e7a115.js +0 -2
- package/dist/chunk-1874b66d572fb0db.js +0 -6
- package/dist/chunk-1875b98b6a064557.js +0 -2
- package/dist/chunk-187a09f46e2b36e5.js +0 -2
- package/dist/chunk-18c32b54097c580e.js +0 -2
- package/dist/chunk-18d87123ae525263.js +0 -2
- package/dist/chunk-1900e90c372bb1d6.js +0 -2
- package/dist/chunk-1976eef63d2e56d5.js +0 -18
- package/dist/chunk-197fca66ec324ed9.js +0 -2
- package/dist/chunk-1ad1795e55abfdb5.js +0 -2
- package/dist/chunk-1b0afbf1baeeaa37.js +0 -2
- package/dist/chunk-1b71d04a15bfa432.js +0 -2
- package/dist/chunk-1b8acf308a3dc9ec.js +0 -1
- package/dist/chunk-1c439804a4c5f8e7.js +0 -18
- package/dist/chunk-1cc0d1072ee4a92b.js +0 -2
- package/dist/chunk-1d6e287ca9c14fef.js +0 -9
- package/dist/chunk-1efe790f8b4ad86d.js +0 -2
- package/dist/chunk-1fab30ab853c48cc.js +0 -2
- package/dist/chunk-2081b862587086df.js +0 -2
- package/dist/chunk-216cc6dcf17534ba.js +0 -2
- package/dist/chunk-21b1f7ac5f75cd26.js +0 -2
- package/dist/chunk-21e105fb2b3d36d7.js +0 -799
- package/dist/chunk-21fe96d1a3bb5a27.js +0 -2
- package/dist/chunk-223b0aac9e62386a.js +0 -2
- package/dist/chunk-226243dd851d2050.js +0 -2
- package/dist/chunk-22773aec8cc230c6.js +0 -6
- package/dist/chunk-2279c382943fca51.js +0 -2
- package/dist/chunk-22ec1973752a5488.js +0 -2
- package/dist/chunk-2335866508ec8b1b.js +0 -2
- package/dist/chunk-23c287376e277e1d.js +0 -6
- package/dist/chunk-241584e48397dda8.js +0 -2
- package/dist/chunk-24e01cba9fc81ed1.js +0 -2
- package/dist/chunk-25dd80c6d9144f89.js +0 -2
- package/dist/chunk-2665dffd37ead1d9.js +0 -2
- package/dist/chunk-2672477bf396bad8.js +0 -2
- package/dist/chunk-269dd2cd89aa1c32.js +0 -2
- package/dist/chunk-26a5c9db5d17f5e7.js +0 -3
- package/dist/chunk-26d58ddc3a89234f.js +0 -2
- package/dist/chunk-27484e5ca3244aea.js +0 -6
- package/dist/chunk-281226b6c79ebf8b.js +0 -2
- package/dist/chunk-285299d784985340.js +0 -3
- package/dist/chunk-28bb1e70f39736ee.js +0 -2
- package/dist/chunk-28e02c9b9c46a167.js +0 -2
- package/dist/chunk-293d8be91a9ad4f9.js +0 -2
- package/dist/chunk-29a0dbe3c8eb87d4.js +0 -6
- package/dist/chunk-29bc27c5e126c304.js +0 -18
- package/dist/chunk-29c46abebbc0f09b.js +0 -2
- package/dist/chunk-2a0d1475ac05027d.js +0 -2
- package/dist/chunk-2a0e8565f874d787.js +0 -18
- package/dist/chunk-2a101fb25d52469b.js +0 -2
- package/dist/chunk-2a328e3beda74e4f.js +0 -2
- package/dist/chunk-2a48e0098ccd4249.js +0 -2
- package/dist/chunk-2a5b4dfab2e26e21.js +0 -1
- package/dist/chunk-2b2764983015552e.js +0 -2
- package/dist/chunk-2b3eabd01b2ae3f8.js +0 -2
- package/dist/chunk-2bfbc777c6995d9a.js +0 -18
- package/dist/chunk-2cf271e24c26b0ee.js +0 -2
- package/dist/chunk-2db6c9bb69bb27aa.js +0 -1
- package/dist/chunk-2e34b856e195c353.js +0 -2
- package/dist/chunk-2e447b50094b2862.js +0 -2
- package/dist/chunk-2ec287222364c6b6.js +0 -2
- package/dist/chunk-2ecc077efab285b4.js +0 -2
- package/dist/chunk-2f6867d08b95f2d2.js +0 -2
- package/dist/chunk-2f7091b9e4f728c7.js +0 -2
- package/dist/chunk-2f7aac67f16768a5.js +0 -1
- package/dist/chunk-3042abeb18cf180e.js +0 -2
- package/dist/chunk-30622b4547786346.js +0 -2
- package/dist/chunk-30f854fb2ba73268.js +0 -2
- package/dist/chunk-322e991c2b56a79d.js +0 -2
- package/dist/chunk-3258ba57992f25bb.js +0 -6
- package/dist/chunk-328c98321c6ba3d6.js +0 -2
- package/dist/chunk-32af3a3a1c95157f.js +0 -2
- package/dist/chunk-32f06f9ad00aaabd.js +0 -2
- package/dist/chunk-32f3d5e11b4bc87d.js +0 -2
- package/dist/chunk-339dd63e93f196b7.js +0 -16
- package/dist/chunk-345f66382cf35683.js +0 -2
- package/dist/chunk-34786cd9bc9be20b.js +0 -18
- package/dist/chunk-3567e8e424a60c99.js +0 -18
- package/dist/chunk-35ab4be8ca6c67ee.js +0 -2
- package/dist/chunk-361f806684fe532e.js +0 -6
- package/dist/chunk-36ab979dae2a2094.js +0 -2
- package/dist/chunk-36b8e37ca93fcc67.js +0 -2
- package/dist/chunk-370389a68668658a.js +0 -2
- package/dist/chunk-3728fa21e6931333.js +0 -2
- package/dist/chunk-378a050132886d17.js +0 -2
- package/dist/chunk-38237d1b01b0db25.js +0 -3
- package/dist/chunk-382a513747a9aa52.js +0 -6
- package/dist/chunk-38fc9d258dbe62fd.js +0 -18
- package/dist/chunk-3a3092db69408490.js +0 -2
- package/dist/chunk-3a9fcddbd219223b.js +0 -3
- package/dist/chunk-3ab807ceccde81f3.js +0 -3
- package/dist/chunk-3abb49bba3da7231.js +0 -1
- package/dist/chunk-3aecba8553e036bf.js +0 -6
- package/dist/chunk-3afa6cad1106f55a.js +0 -2
- package/dist/chunk-3b235fc8816ff5e6.js +0 -2
- package/dist/chunk-3b6df70b3d01d442.js +0 -3
- package/dist/chunk-3bd48fb5397a155b.js +0 -5
- package/dist/chunk-3bedef94ef8dba4a.js +0 -2
- package/dist/chunk-3bf6f8c8e8589e3d.js +0 -2
- package/dist/chunk-3c83d6762f7e56b3.js +0 -2
- package/dist/chunk-3cbc1c9cdc091b43.js +0 -2
- package/dist/chunk-3d7556bb2f665f61.js +0 -2
- package/dist/chunk-3dbf073642b377eb.js +0 -1
- package/dist/chunk-3e3078cae755e834.js +0 -2
- package/dist/chunk-3f1eaa4b49aa9a15.js +0 -3
- package/dist/chunk-40111275eef9f7b3.js +0 -6
- package/dist/chunk-408fb31b8b0f97ee.js +0 -2
- package/dist/chunk-40942fb138dcd780.js +0 -9
- package/dist/chunk-40c21fe243675250.js +0 -2
- package/dist/chunk-40f4bfe67d75f2ec.js +0 -6
- package/dist/chunk-412ad792487747bc.js +0 -2
- package/dist/chunk-415d564ff61a8fe6.js +0 -2
- package/dist/chunk-42097f79deccd5b7.js +0 -2
- package/dist/chunk-4272071146eb5eb2.js +0 -1
- package/dist/chunk-42aa6e3d42149620.js +0 -2
- package/dist/chunk-432bbd1d38ff3b52.js +0 -2
- package/dist/chunk-437335670ad9059d.js +0 -2
- package/dist/chunk-442a5b1ec74c72f8.js +0 -2
- package/dist/chunk-4432f8d8567e682b.js +0 -9
- package/dist/chunk-4548da0edd8c39ed.js +0 -2
- package/dist/chunk-45badde289996d82.js +0 -9
- package/dist/chunk-464cce477d8a56e0.js +0 -2
- package/dist/chunk-46528bdbb2218772.js +0 -2
- package/dist/chunk-477a4d3115b9703e.js +0 -2
- package/dist/chunk-47c4cec992af0689.js +0 -2
- package/dist/chunk-487b7c0cb388d533.js +0 -6
- package/dist/chunk-488b4db0c522d44a.js +0 -1
- package/dist/chunk-489125d86cd75e69.js +0 -9
- package/dist/chunk-4960e27e19bbe42a.js +0 -2
- package/dist/chunk-4b201cccdf6d290f.js +0 -2
- package/dist/chunk-4b4ea80149bba4e6.js +0 -2
- package/dist/chunk-4bbeb47cc6137c49.js +0 -2
- package/dist/chunk-4cb19a9e82653084.js +0 -2
- package/dist/chunk-4cb5f3feff1a81c5.js +0 -2
- package/dist/chunk-4cc2463d985f6882.js +0 -9
- package/dist/chunk-4d19e16340534ed0.js +0 -2
- package/dist/chunk-4d46e390f99b97e0.js +0 -2
- package/dist/chunk-4d80485e7efb826f.js +0 -2
- package/dist/chunk-4e023976eb557258.js +0 -2
- package/dist/chunk-4e5485d3cfe9dc4e.js +0 -2
- package/dist/chunk-4e9167391dd0d15f.js +0 -2
- package/dist/chunk-4e9d5acfa5541d1b.js +0 -2
- package/dist/chunk-4eeee2f82b1fa8bb.js +0 -2
- package/dist/chunk-4f01c5a98726e704.js +0 -2
- package/dist/chunk-4f1b43f5232b3e65.js +0 -6
- package/dist/chunk-4f5b07a6a6fd5cc6.js +0 -2
- package/dist/chunk-4ffecff075e73d43.js +0 -2
- package/dist/chunk-50b440397d41ab5a.js +0 -2
- package/dist/chunk-50ea27a13eb62b5e.js +0 -2
- package/dist/chunk-5128de1a65ba6ce1.js +0 -2
- package/dist/chunk-514f8554fb446139.js +0 -9
- package/dist/chunk-515c26d532207095.js +0 -2
- package/dist/chunk-516c6b67d6e3d041.js +0 -18
- package/dist/chunk-5190b38f06507ee1.js +0 -18
- package/dist/chunk-51bad63147c3be4e.js +0 -6
- package/dist/chunk-51c21d2a3c45fbe1.js +0 -2
- package/dist/chunk-51e930ef29de215b.js +0 -1
- package/dist/chunk-51ee928673a12486.js +0 -2
- package/dist/chunk-521750cca5e03c65.js +0 -2
- package/dist/chunk-5290ecaf429d5a61.js +0 -2
- package/dist/chunk-52e76204b898931e.js +0 -18
- package/dist/chunk-53b7d6267c9172bc.js +0 -2
- package/dist/chunk-53c39aca36ece018.js +0 -2
- package/dist/chunk-543013123141745c.js +0 -2
- package/dist/chunk-54c03438ff1f41e5.js +0 -2
- package/dist/chunk-552bdaee8c03e091.js +0 -9
- package/dist/chunk-55f76d4f6116f296.js +0 -9
- package/dist/chunk-5656abf3151c8fa2.js +0 -2
- package/dist/chunk-56f6f8c2162dcf1c.js +0 -2
- package/dist/chunk-57a61e580c4adf80.js +0 -2
- package/dist/chunk-581e0d46235dbf7c.js +0 -2
- package/dist/chunk-584e33c96b1a78e4.js +0 -2
- package/dist/chunk-5852c4da08af607f.js +0 -2
- package/dist/chunk-589f4b330dd6d32e.js +0 -2
- package/dist/chunk-590bd43a75f48606.js +0 -18
- package/dist/chunk-590cd512f9e72880.js +0 -18
- package/dist/chunk-596024c880387c2f.js +0 -2
- package/dist/chunk-597d5c6772b14a85.js +0 -9
- package/dist/chunk-59980167a4c574b3.js +0 -2
- package/dist/chunk-59da8b8ab8add738.js +0 -16
- package/dist/chunk-59e951812cb019e6.js +0 -2
- package/dist/chunk-59fe590e19085858.js +0 -18
- package/dist/chunk-5a2d89fce13094a9.js +0 -2
- package/dist/chunk-5a66922d5981afc8.js +0 -18
- package/dist/chunk-5a75eae6c32c2ba3.js +0 -2
- package/dist/chunk-5a9fa677066f72ac.js +0 -2
- package/dist/chunk-5b54843712abde58.js +0 -2
- package/dist/chunk-5b836c769c5dad2a.js +0 -2
- package/dist/chunk-5c2a5156f6bef0f5.js +0 -2
- package/dist/chunk-5c3681fb029d7588.js +0 -1
- package/dist/chunk-5cd0a98345a5d57a.js +0 -2
- package/dist/chunk-5d3431e9686096af.js +0 -18
- package/dist/chunk-5d51afe60efaf99e.js +0 -2
- package/dist/chunk-5d86d49d66db1c22.js +0 -2
- package/dist/chunk-5defd55c3c97bdb2.js +0 -2
- package/dist/chunk-5e13846c554dc272.js +0 -2
- package/dist/chunk-5fb9d31b7b4629e9.js +0 -1
- package/dist/chunk-5fbde192153a2a50.js +0 -2
- package/dist/chunk-5fd67245740e3908.js +0 -9
- package/dist/chunk-6003411eae26f246.js +0 -3
- package/dist/chunk-60d70dcbf4e79276.js +0 -2
- package/dist/chunk-60f3b8242209ac3e.js +0 -18
- package/dist/chunk-61973614facb50a8.js +0 -2
- package/dist/chunk-61abf77c3eee8698.js +0 -2
- package/dist/chunk-61fc22887a7be6f9.js +0 -3
- package/dist/chunk-62144f9c5008bd47.js +0 -1
- package/dist/chunk-625025af819f55f5.js +0 -2
- package/dist/chunk-6259cd13f53334df.js +0 -2
- package/dist/chunk-62b2777c629d5157.js +0 -2
- package/dist/chunk-62c0f9a87ad8a46b.js +0 -2
- package/dist/chunk-634c80cac76d9080.js +0 -18
- package/dist/chunk-63ad0436d3d896b5.js +0 -3
- package/dist/chunk-63c5605bcce508ea.js +0 -1
- package/dist/chunk-640e4bdae1671873.js +0 -1
- package/dist/chunk-648dff766091372e.js +0 -2
- package/dist/chunk-64a5b833cef67725.js +0 -2
- package/dist/chunk-64c89cee4d4bd9a9.js +0 -2
- package/dist/chunk-65626c3d72d4e071.js +0 -2
- package/dist/chunk-65c413665a7cf876.js +0 -2
- package/dist/chunk-6605e290c4de1f0e.js +0 -6
- package/dist/chunk-66ab377654806d08.js +0 -2
- package/dist/chunk-670d2c924e80cb33.js +0 -3
- package/dist/chunk-67351e678a7ccc10.js +0 -2
- package/dist/chunk-6766e66417809e1a.js +0 -2
- package/dist/chunk-6821bb0ff6ed2452.js +0 -18
- package/dist/chunk-682b01231754a121.js +0 -2
- package/dist/chunk-68af0a6f6be163ce.js +0 -2
- package/dist/chunk-6921ba2fa2e1adea.js +0 -2
- package/dist/chunk-6943b50bd0a3ac84.js +0 -1
- package/dist/chunk-699957e6eb705a81.js +0 -2
- package/dist/chunk-69ff5047661fe699.js +0 -2
- package/dist/chunk-6a28d299b5726bba.js +0 -2
- package/dist/chunk-6ac91c66919b5ddd.js +0 -2
- package/dist/chunk-6afe097e13ebdf55.js +0 -2
- package/dist/chunk-6c345dba15e1c3f2.js +0 -2
- package/dist/chunk-6c461d293fa213f1.js +0 -2
- package/dist/chunk-6caabea5fcbc9cf7.js +0 -2
- package/dist/chunk-6d04c1ccb3ca8c74.js +0 -1
- package/dist/chunk-6e06660ab4e9d4da.js +0 -6
- package/dist/chunk-6e415d0e12fc9539.js +0 -1
- package/dist/chunk-6f78f2a54491595d.js +0 -2
- package/dist/chunk-700835a3a709b370.js +0 -2
- package/dist/chunk-70bb003c03f21dad.js +0 -2
- package/dist/chunk-711f86b9d50d45fe.js +0 -18
- package/dist/chunk-71820a3186a38543.js +0 -6
- package/dist/chunk-7195a8718fcd8215.js +0 -1
- package/dist/chunk-722f2aeae58daaa3.js +0 -18
- package/dist/chunk-72821f055108528e.js +0 -2
- package/dist/chunk-72add10919c9d7ae.js +0 -2
- package/dist/chunk-731f30522682483a.js +0 -2
- package/dist/chunk-733513f9c9e8b50f.js +0 -2
- package/dist/chunk-733688c7851fffd1.js +0 -2
- package/dist/chunk-7336bd3f3b799e3e.js +0 -1
- package/dist/chunk-7399f06d840a1449.js +0 -2
- package/dist/chunk-73c97da8ac4f1d30.js +0 -1
- package/dist/chunk-73c9d39f58a30fe2.js +0 -6
- package/dist/chunk-73eed146ee78f681.js +0 -1
- package/dist/chunk-73fb3bb4d001bb2e.js +0 -1
- package/dist/chunk-7431d60af8814bc8.js +0 -2
- package/dist/chunk-74802f454b9972eb.js +0 -2
- package/dist/chunk-74ab9c225bfe0eaa.js +0 -2
- package/dist/chunk-74db07ba7b97d1c1.js +0 -2
- package/dist/chunk-76a525af0575486d.js +0 -5
- package/dist/chunk-76db0552d2492ee7.js +0 -3
- package/dist/chunk-774337ca540a856d.js +0 -2
- package/dist/chunk-77c89e3c8a03f91e.js +0 -2
- package/dist/chunk-77d1b26236f5feec.js +0 -2
- package/dist/chunk-77d5bbc7a9117c21.js +0 -2
- package/dist/chunk-782dde0748025b5a.js +0 -2
- package/dist/chunk-78534576cf359780.js +0 -2
- package/dist/chunk-7898dd7609f163e8.js +0 -2
- package/dist/chunk-78ab7bcbe6104c5f.js +0 -2
- package/dist/chunk-78d6df0054754d5d.js +0 -2
- package/dist/chunk-795a1bd1d89efce1.js +0 -2
- package/dist/chunk-797430f55303e6b5.js +0 -2
- package/dist/chunk-7975e27df461cbfb.js +0 -6
- package/dist/chunk-798f550643937b6d.js +0 -2
- package/dist/chunk-79b438007611560a.js +0 -2
- package/dist/chunk-79f7d7d90c4fb51a.js +0 -2
- package/dist/chunk-7a318e738fec6c2b.js +0 -3
- package/dist/chunk-7aa7f7e219919c4d.js +0 -2
- package/dist/chunk-7abc696047809312.js +0 -6
- package/dist/chunk-7afdc0ba5afe109a.js +0 -21
- package/dist/chunk-7b3bbc8a88aee78c.js +0 -1
- package/dist/chunk-7b8e777f7353b492.js +0 -2
- package/dist/chunk-7c0fd956d14fc327.js +0 -2
- package/dist/chunk-7c62e9d6edc4b418.js +0 -2
- package/dist/chunk-7c670baec90faacb.js +0 -2
- package/dist/chunk-7d7b2c1f2a8dd018.js +0 -6
- package/dist/chunk-7de7f34d46c76019.js +0 -18
- package/dist/chunk-7dfb17814922ade0.js +0 -2
- package/dist/chunk-7e9d5eea3aa359ad.js +0 -2
- package/dist/chunk-7ea1baca4032004f.js +0 -2
- package/dist/chunk-7eb54149dff25532.js +0 -2
- package/dist/chunk-7ec30fbbbdf89272.js +0 -2
- package/dist/chunk-7fadaab2fa180ca9.js +0 -6
- package/dist/chunk-7fef11f59982b1f6.js +0 -2
- package/dist/chunk-7ffe2ce59a054e35.js +0 -2
- package/dist/chunk-80b17f9853d76e98.js +0 -2
- package/dist/chunk-8133ed564834cff3.js +0 -2
- package/dist/chunk-8163d4f4c2c91caf.js +0 -2
- package/dist/chunk-817aad76d1e8eecc.js +0 -6
- package/dist/chunk-81938d68b172446d.js +0 -2
- package/dist/chunk-81a00ae1b3ea4824.js +0 -2
- package/dist/chunk-81ce9b491b290639.js +0 -1
- package/dist/chunk-81f5123a24c19089.js +0 -2
- package/dist/chunk-827d2c67c03d1a52.js +0 -2
- package/dist/chunk-8295e42bcfc910ff.js +0 -16
- package/dist/chunk-82f72dfc6e27be04.js +0 -1
- package/dist/chunk-8401f0f53dc26633.js +0 -1
- package/dist/chunk-8450a38607a86896.js +0 -2
- package/dist/chunk-847629c9a7550cc3.js +0 -2
- package/dist/chunk-84b129a5185ac24d.js +0 -2
- package/dist/chunk-84c7f86a97d17f53.js +0 -2
- package/dist/chunk-84f1b068dc7fc8b7.js +0 -2
- package/dist/chunk-8581aa9e876d46fb.js +0 -2
- package/dist/chunk-85a1f8fb96fd9473.js +0 -2
- package/dist/chunk-85d5e5d7ff832255.js +0 -2
- package/dist/chunk-860f5fcef7074193.js +0 -9
- package/dist/chunk-869d80d2e475b938.js +0 -3
- package/dist/chunk-880273a32da461fd.js +0 -9
- package/dist/chunk-88103b9d011960db.js +0 -5
- package/dist/chunk-89187bbdf6945131.js +0 -2
- package/dist/chunk-89291b5eb2bbd0b4.js +0 -2
- package/dist/chunk-895d9b1ef7a65211.js +0 -2
- package/dist/chunk-897773d66a89947a.js +0 -2
- package/dist/chunk-89c6080d4a693ddf.js +0 -2
- package/dist/chunk-8a993922ea970923.js +0 -2
- package/dist/chunk-8aa3e0e20e411d11.js +0 -2
- package/dist/chunk-8af626a703659719.js +0 -18
- package/dist/chunk-8b3d411f441a43ce.js +0 -2
- package/dist/chunk-8b40d6a498f8bf81.js +0 -2
- package/dist/chunk-8b944ecefa1b832c.js +0 -18
- package/dist/chunk-8bb91c504b9ca45e.js +0 -2
- package/dist/chunk-8bf925705fdcef0c.js +0 -2
- package/dist/chunk-8c2b349a7198788f.js +0 -6
- package/dist/chunk-8c3e0f5d4a0d6e53.js +0 -2
- package/dist/chunk-8c8c8fd3646b76a1.js +0 -2
- package/dist/chunk-8caa0abe673f5d41.js +0 -2
- package/dist/chunk-8d8666b73758171e.js +0 -2
- package/dist/chunk-8e72aa06d4e47eca.js +0 -2
- package/dist/chunk-8ef8222b34d8f63f.js +0 -2
- package/dist/chunk-8f24cd33e07d02f3.js +0 -2
- package/dist/chunk-8f547b919361fdf4.js +0 -2
- package/dist/chunk-8f986f307ff91bd3.js +0 -2
- package/dist/chunk-901e700a2c2d43f3.js +0 -18
- package/dist/chunk-90c5196ff1f827a8.js +0 -2
- package/dist/chunk-9113f22a5215c639.js +0 -3
- package/dist/chunk-915c050c94553981.js +0 -2
- package/dist/chunk-9238196d4889d660.js +0 -1
- package/dist/chunk-92a55add20b5d7ac.js +0 -9
- package/dist/chunk-92f6095a3be7f459.js +0 -1
- package/dist/chunk-9326224d1e4c1a64.js +0 -2
- package/dist/chunk-933845e73519b4c5.js +0 -2
- package/dist/chunk-934ebff128f86ef1.js +0 -1
- package/dist/chunk-9350baa090b5a424.js +0 -2
- package/dist/chunk-938fed005335132e.js +0 -9
- package/dist/chunk-93b6f53456c1251b.js +0 -2
- package/dist/chunk-94578320d28e33ad.js +0 -2
- package/dist/chunk-9501e589e3e86a96.js +0 -2
- package/dist/chunk-955e2bfcdb7a7e71.js +0 -2
- package/dist/chunk-96b635a3bdba7415.js +0 -2
- package/dist/chunk-970e033f764e29fc.js +0 -19
- package/dist/chunk-98126e4b5bd19831.js +0 -2
- package/dist/chunk-9938e9a4fe25dda5.js +0 -2
- package/dist/chunk-99ba9dfd7c11383b.js +0 -18
- package/dist/chunk-9a622a10e7764b23.js +0 -2
- package/dist/chunk-9b5649697d59dfb4.js +0 -2
- package/dist/chunk-9bd00e182ac2f8a6.js +0 -6
- package/dist/chunk-9bd90ecd4ddde546.js +0 -18
- package/dist/chunk-9c3b4dd1591053c5.js +0 -18
- package/dist/chunk-9c4a4b4bd266869d.js +0 -2
- package/dist/chunk-9d069ba29a122630.js +0 -1
- package/dist/chunk-9d1337fc9976354d.js +0 -2
- package/dist/chunk-9d2777df26b445e4.js +0 -2
- package/dist/chunk-9d2af1a704b857ee.js +0 -2
- package/dist/chunk-9d6cc631cdabbe35.js +0 -9
- package/dist/chunk-9d714f87e4e3e250.js +0 -18
- package/dist/chunk-9ee2118bd4eb34ae.js +0 -9
- package/dist/chunk-9f6199bc705fc395.js +0 -18
- package/dist/chunk-a0003b7feea6fae6.js +0 -2
- package/dist/chunk-a004fce37a0f5a65.js +0 -2
- package/dist/chunk-a02b2d564bdb603d.js +0 -6
- package/dist/chunk-a095821ffc039b99.js +0 -18
- package/dist/chunk-a10ae1a06a28aaab.js +0 -2
- package/dist/chunk-a13ab30c392c3563.js +0 -9
- package/dist/chunk-a14516ac5e6f78aa.js +0 -1
- package/dist/chunk-a14b8af8b2a8d0b0.js +0 -2
- package/dist/chunk-a210ec2b987fa5f7.js +0 -2
- package/dist/chunk-a2fcc46e344ae7ae.js +0 -2
- package/dist/chunk-a3526e321ac9d173.js +0 -1
- package/dist/chunk-a3f85d0d3261ae44.js +0 -9
- package/dist/chunk-a4862acc0c3fed7d.js +0 -6
- package/dist/chunk-a50b9cd348c3e882.js +0 -9
- package/dist/chunk-a57ecc74c0fb9045.js +0 -2
- package/dist/chunk-a5c18c07abe8fd9c.js +0 -2
- package/dist/chunk-a63e13c410e92923.js +0 -2
- package/dist/chunk-a693f8ec2e8af8ca.js +0 -2
- package/dist/chunk-a719a1f305964521.js +0 -2
- package/dist/chunk-a7a144f5e4772c35.js +0 -2
- package/dist/chunk-a7f3e9d5b7cf7c42.js +0 -2
- package/dist/chunk-a816613f5321b9db.js +0 -1
- package/dist/chunk-a8310ad9bad32329.js +0 -2
- package/dist/chunk-a885dc5561caa8e0.js +0 -3
- package/dist/chunk-a88c3919c74b7877.js +0 -18
- package/dist/chunk-a9625dd807cb668e.js +0 -2
- package/dist/chunk-a991fdce275f1256.js +0 -2
- package/dist/chunk-aa1b1fb08828cb24.js +0 -2
- package/dist/chunk-aad7af5112f0f4f2.js +0 -2
- package/dist/chunk-aaf5855c5199efe9.js +0 -2
- package/dist/chunk-aaf70ff16705d558.js +0 -2
- package/dist/chunk-aafdd9bfb5bde8bf.js +0 -2
- package/dist/chunk-ab0c3f72f95cb4f4.js +0 -3
- package/dist/chunk-ab79a2f0d89fbeae.js +0 -1
- package/dist/chunk-ab7b6ceb26aca9b1.js +0 -3
- package/dist/chunk-abb2f588bd34adff.js +0 -2
- package/dist/chunk-abd0b68c299eebfc.js +0 -2
- package/dist/chunk-ac32b3d9dda47756.js +0 -9
- package/dist/chunk-acd4530b2ff92aff.js +0 -18
- package/dist/chunk-ad656a60ce7912bb.js +0 -2
- package/dist/chunk-ad8e7de66d8bf8c5.js +0 -2
- package/dist/chunk-adb4e1e222eb1d20.js +0 -2
- package/dist/chunk-ae373c8ae2d526ae.js +0 -18
- package/dist/chunk-ae50ef54d7de9179.js +0 -2
- package/dist/chunk-ae7b1bdf00266d88.js +0 -2
- package/dist/chunk-aef3f1c1429e6058.js +0 -2
- package/dist/chunk-af6b79a6ce7388ee.js +0 -18
- package/dist/chunk-afbf69daa7589a52.js +0 -2
- package/dist/chunk-b009482e01114059.js +0 -3
- package/dist/chunk-b031077f0a783b82.js +0 -2
- package/dist/chunk-b05cb7ef4546980d.js +0 -2
- package/dist/chunk-b05e4833f4bb2f8f.js +0 -9
- package/dist/chunk-b06168e5d3080486.js +0 -1
- package/dist/chunk-b07249c949a284d2.js +0 -16
- package/dist/chunk-b0cc82fa84d5362d.js +0 -2
- package/dist/chunk-b0f453845cad4e6e.js +0 -2
- package/dist/chunk-b13cfa16a8a18324.js +0 -3
- package/dist/chunk-b1918e88103a8501.js +0 -2
- package/dist/chunk-b2bc43f60314d1a9.js +0 -2
- package/dist/chunk-b2d07c19a78dc397.js +0 -2
- package/dist/chunk-b3bfe533d66f6a17.js +0 -2
- package/dist/chunk-b3e27ec4b56a20ac.js +0 -2
- package/dist/chunk-b558c43783464f1b.js +0 -2
- package/dist/chunk-b5d6eb761760b2a7.js +0 -6
- package/dist/chunk-b66a9e50afbac035.js +0 -9
- package/dist/chunk-b7b365f7e6038104.js +0 -2
- package/dist/chunk-b7c4dc1136fcaeb7.js +0 -2
- package/dist/chunk-b7da6c96acf0478f.js +0 -18
- package/dist/chunk-b7f9e29074a9f36a.js +0 -2
- package/dist/chunk-b80a86610158cbfd.js +0 -1
- package/dist/chunk-b855e71b162ce5a2.js +0 -2
- package/dist/chunk-b8d3d76e1dd9affe.js +0 -2
- package/dist/chunk-b97189ea9588db36.js +0 -9
- package/dist/chunk-b9cba2a8bd5bcd3e.js +0 -2
- package/dist/chunk-b9e4546aaa58319c.js +0 -2
- package/dist/chunk-b9f4c1fce7152fc8.js +0 -9
- package/dist/chunk-ba051a98cd651063.js +0 -1
- package/dist/chunk-bb72c8820407f3a6.js +0 -2
- package/dist/chunk-bbd36ce62b950ee5.js +0 -2
- package/dist/chunk-bbdd098f2a2cd820.js +0 -18
- package/dist/chunk-bcd70a6fc2fd359c.js +0 -1
- package/dist/chunk-bd2888a454e50cfd.js +0 -1
- package/dist/chunk-bd52b3f25b928eb1.js +0 -2
- package/dist/chunk-bdc34785363e3f34.js +0 -2
- package/dist/chunk-bdf4f2b1862899bb.js +0 -2
- package/dist/chunk-be095501304df604.js +0 -9
- package/dist/chunk-beca91bf7cc216cd.js +0 -2
- package/dist/chunk-bee6075c5738d87a.js +0 -2
- package/dist/chunk-bf14cc3e71fcd2d8.js +0 -2
- package/dist/chunk-bf4fa1d9864332a8.js +0 -2
- package/dist/chunk-bf92f3127474b56a.js +0 -3
- package/dist/chunk-bfccfb070c1630e9.js +0 -2
- package/dist/chunk-bffb8d677e1424a9.js +0 -6
- package/dist/chunk-c041f058dc3d571b.js +0 -1
- package/dist/chunk-c0bd8e19395d722b.js +0 -2
- package/dist/chunk-c124bf801cec12d9.js +0 -2
- package/dist/chunk-c153b192112b0d44.js +0 -2
- package/dist/chunk-c1813278ccdc04b8.js +0 -2
- package/dist/chunk-c210f6ae6276ebe8.js +0 -1
- package/dist/chunk-c29701ffef4ca07a.js +0 -2
- package/dist/chunk-c2d1f66cf8468e71.js +0 -1
- package/dist/chunk-c2fe378a1764eb92.js +0 -2
- package/dist/chunk-c3e4a396dc7a5fe7.js +0 -2
- package/dist/chunk-c3eaa877d3aab9db.js +0 -18
- package/dist/chunk-c45e1427f48008f0.js +0 -2
- package/dist/chunk-c4f342e09d9b2f23.js +0 -2
- package/dist/chunk-c50ff3cf3c78af79.js +0 -2
- package/dist/chunk-c609d06153ed09ce.js +0 -2
- package/dist/chunk-c62b5c4cec67029c.js +0 -1
- package/dist/chunk-c675395110f371b1.js +0 -6
- package/dist/chunk-c675f193d459818e.js +0 -2
- package/dist/chunk-c6846df9c8456b20.js +0 -3
- package/dist/chunk-c6d988f5928a4df1.js +0 -2
- package/dist/chunk-c72bfaa252a03f6f.js +0 -2
- package/dist/chunk-c7b024c7bd4cffc9.js +0 -3
- package/dist/chunk-c7e2acfd5087fb30.js +0 -2
- package/dist/chunk-c83b39b7178003da.js +0 -2
- package/dist/chunk-c85fc7168a708cb6.js +0 -3
- package/dist/chunk-c8631aa6bbb62e13.js +0 -2
- package/dist/chunk-c864ab57913d658f.js +0 -1
- package/dist/chunk-c882d0c175c22c17.js +0 -2
- package/dist/chunk-c8b00b645df96ed5.js +0 -2
- package/dist/chunk-c8f1115d77efc1c0.js +0 -2
- package/dist/chunk-c9707ae8f1d346ff.js +0 -3
- package/dist/chunk-c99b8c3d6bda27b0.js +0 -2
- package/dist/chunk-cb65fe402653c65e.js +0 -2
- package/dist/chunk-cb69e9621a60d310.js +0 -1
- package/dist/chunk-cca1f3ae7ec0dee1.js +0 -2
- package/dist/chunk-ccb551ce4fd177fe.js +0 -2
- package/dist/chunk-cce7de7e81895807.js +0 -2
- package/dist/chunk-ccfd101ce72e80bf.js +0 -1
- package/dist/chunk-cd1636884486d7b3.js +0 -1
- package/dist/chunk-cdfa2adeddc1a8e1.js +0 -2
- package/dist/chunk-ceb94e70091088e5.js +0 -2
- package/dist/chunk-cf3d1744ea801f48.js +0 -6
- package/dist/chunk-cf7dde2ab1be3a3c.js +0 -1
- package/dist/chunk-cf8b1c7a4e9fc32d.js +0 -18
- package/dist/chunk-cfa9a65fae5ddaf4.js +0 -2
- package/dist/chunk-d0757747d9cc2e47.js +0 -2
- package/dist/chunk-d0806df6defd9dce.js +0 -2
- package/dist/chunk-d12b578765686adb.js +0 -6
- package/dist/chunk-d16ef78d852a6856.js +0 -1
- package/dist/chunk-d22136d39cf8465f.js +0 -2
- package/dist/chunk-d26ffb7722e6df54.js +0 -1
- package/dist/chunk-d27588325ae2c0f3.js +0 -2
- package/dist/chunk-d2e057b6f3f9d500.js +0 -2
- package/dist/chunk-d3033805e98482dc.js +0 -6
- package/dist/chunk-d33a0e61ccf1bab5.js +0 -2
- package/dist/chunk-d3765f96a689a0c1.js +0 -2
- package/dist/chunk-d37757ffee07b05f.js +0 -6
- package/dist/chunk-d3b4a3c778c23705.js +0 -2
- package/dist/chunk-d3e039d010842a3f.js +0 -2
- package/dist/chunk-d43b3f444e738dd1.js +0 -1
- package/dist/chunk-d445af84de70bf7e.js +0 -2
- package/dist/chunk-d535b1e3078465f8.js +0 -2
- package/dist/chunk-d54843c1d8516c75.js +0 -2
- package/dist/chunk-d5709251a0493152.js +0 -6
- package/dist/chunk-d5ddfacbfc84a47d.js +0 -6
- package/dist/chunk-d665d3ee2a62d48b.js +0 -2
- package/dist/chunk-d7457cb6aae3b29b.js +0 -2
- package/dist/chunk-d850d83873a89e2b.js +0 -18
- package/dist/chunk-d93a6531661d56b5.js +0 -9
- package/dist/chunk-d93cbffc712a052f.js +0 -2
- package/dist/chunk-d950bbcb684a11ef.js +0 -2
- package/dist/chunk-d9577d79d4b718a6.js +0 -2
- package/dist/chunk-d9762bab5df03532.js +0 -2
- package/dist/chunk-d9968563c6c84405.js +0 -3
- package/dist/chunk-d9a84b9122601b72.js +0 -2
- package/dist/chunk-da1c673d9685624e.js +0 -2
- package/dist/chunk-dab2dde8cc9da99b.js +0 -9
- package/dist/chunk-dac0e2ef13060d02.js +0 -1
- package/dist/chunk-dac9276e506d125d.js +0 -2
- package/dist/chunk-dad55fcc32d05b69.js +0 -2
- package/dist/chunk-db2270bbca7854fe.js +0 -2
- package/dist/chunk-db65c75cda396f98.js +0 -2
- package/dist/chunk-dba84b47adec2108.js +0 -2
- package/dist/chunk-dc23bfb4fd92e2f0.js +0 -2
- package/dist/chunk-dc7b0cf226ba3afa.js +0 -2
- package/dist/chunk-dcc432bd72fb7e46.js +0 -3
- package/dist/chunk-dd211856e049a67f.js +0 -9
- package/dist/chunk-dd21f367f8029793.js +0 -2
- package/dist/chunk-dd8b042837b4d5f1.js +0 -2
- package/dist/chunk-ddef8961cbf08a05.js +0 -6
- package/dist/chunk-de0784c3310db458.js +0 -5
- package/dist/chunk-de39fc86bbd37240.js +0 -1
- package/dist/chunk-de3ec02f9d17c2c9.js +0 -2
- package/dist/chunk-def30dbcb4c6aceb.js +0 -2
- package/dist/chunk-df55f07f8adf212f.js +0 -2
- package/dist/chunk-df926b342440f55f.js +0 -5
- package/dist/chunk-dfadfa4e09b4db22.js +0 -2
- package/dist/chunk-dfc390f0bbdf5a81.js +0 -1
- package/dist/chunk-e05db2eae976681b.js +0 -3
- package/dist/chunk-e06fbc8e70a88f07.js +0 -2
- package/dist/chunk-e0a028ef931a3eb1.js +0 -18
- package/dist/chunk-e0e0f2ee626a6fb3.js +0 -18
- package/dist/chunk-e0ffb920c65ebf44.js +0 -2
- package/dist/chunk-e11c7f3abcf2269f.js +0 -2
- package/dist/chunk-e16b252158474b8c.js +0 -1
- package/dist/chunk-e19064e9f1d5faed.js +0 -2
- package/dist/chunk-e1a08bb52ee7ea09.js +0 -2
- package/dist/chunk-e1e84c38542d78ec.js +0 -2
- package/dist/chunk-e33c33445a92adf1.js +0 -1
- package/dist/chunk-e3acd3561fe1342c.js +0 -18
- package/dist/chunk-e3e996b3821027e1.js +0 -2
- package/dist/chunk-e3ef81776c8f2d28.js +0 -2
- package/dist/chunk-e4869466459233fa.js +0 -16
- package/dist/chunk-e4f28182cf5f6e1d.js +0 -2
- package/dist/chunk-e53fdd0a1888c5e8.js +0 -2
- package/dist/chunk-e5a95230e0858544.js +0 -3
- package/dist/chunk-e64d5a7b7e0fa2c5.js +0 -6
- package/dist/chunk-e755f2c1c7ad3912.js +0 -2
- package/dist/chunk-e8159722d49ad044.js +0 -2
- package/dist/chunk-e86269d01f94404c.js +0 -2
- package/dist/chunk-e9275fb341d2cdd9.js +0 -2
- package/dist/chunk-e9c96f9b825f8de7.js +0 -2
- package/dist/chunk-ea9b86cf2edd807b.js +0 -18
- package/dist/chunk-ec24a0767aa58f1f.js +0 -18
- package/dist/chunk-ed21fb7d8c4b675e.js +0 -3
- package/dist/chunk-ed589d4e4c575de7.js +0 -2
- package/dist/chunk-edba144b170cd87e.js +0 -6
- package/dist/chunk-edeefd833c30a5ed.js +0 -2
- package/dist/chunk-ee35048642cfe9d8.js +0 -2
- package/dist/chunk-ee4ff285d7f4ccdf.js +0 -2
- package/dist/chunk-ee604d0215ea07e6.js +0 -1
- package/dist/chunk-ee92e80230ce02ec.js +0 -2
- package/dist/chunk-eea1d6f60a6875d5.js +0 -2
- package/dist/chunk-eeb3b193701aec43.js +0 -1
- package/dist/chunk-ef1ebd10affe5726.js +0 -2
- package/dist/chunk-ef30aafcfd40dc07.js +0 -2
- package/dist/chunk-f077321ef55ea627.js +0 -1
- package/dist/chunk-f08ca4bd263b132b.js +0 -2
- package/dist/chunk-f0d3ed16a520ecf1.js +0 -18
- package/dist/chunk-f117757df00aa18d.js +0 -2
- package/dist/chunk-f13fd46441a58606.js +0 -2
- package/dist/chunk-f1ac22ad55dbab7a.js +0 -9
- package/dist/chunk-f1dfc76a05462dde.js +0 -2
- package/dist/chunk-f1e28c4c1a227c27.js +0 -2
- package/dist/chunk-f2428c56f532e719.js +0 -3
- package/dist/chunk-f256432c3e5819d0.js +0 -2
- package/dist/chunk-f2dca6305fcba70b.js +0 -2
- package/dist/chunk-f316793e4ec0f386.js +0 -2
- package/dist/chunk-f32726d374c6bee5.js +0 -1
- package/dist/chunk-f34a78d9e3a62c43.js +0 -3
- package/dist/chunk-f404a785b581d029.js +0 -2
- package/dist/chunk-f5910f2c8a3f6974.js +0 -2
- package/dist/chunk-f5a4295176f9b1c1.js +0 -2
- package/dist/chunk-f5b888aa9ac4e20f.js +0 -2
- package/dist/chunk-f5e313cc7d724fbe.js +0 -2
- package/dist/chunk-f67aa3e46d73674e.js +0 -2
- package/dist/chunk-f69bcbd7998553cb.js +0 -2
- package/dist/chunk-f74928c3f9ae5359.js +0 -2
- package/dist/chunk-f7796c3724a35057.js +0 -2
- package/dist/chunk-f84049d82d29bd9e.js +0 -2
- package/dist/chunk-f868cdf653dbe87e.js +0 -2
- package/dist/chunk-f8823a1ede83155e.js +0 -2
- package/dist/chunk-f8ad65b3a07ce3c4.js +0 -6
- package/dist/chunk-f900b5868b14827e.js +0 -2
- package/dist/chunk-f9084650419a23c4.js +0 -2
- package/dist/chunk-f95f5e3439539ca5.js +0 -2
- package/dist/chunk-f99bdfc336b2ac57.js +0 -9
- package/dist/chunk-f9a17b871b527bff.js +0 -2
- package/dist/chunk-f9e6a0a946ebb032.js +0 -2
- package/dist/chunk-fa40971555060604.js +0 -81
- package/dist/chunk-fa6bdfb32d2f97fb.js +0 -2
- package/dist/chunk-faa8c62bfa11f9d5.js +0 -2
- package/dist/chunk-fb25896f1638ca8e.js +0 -3
- package/dist/chunk-fc165cee61f6efe8.js +0 -6
- package/dist/chunk-fd5ffee329d6f29b.js +0 -2
- package/dist/chunk-feaaa37d30cd1e9b.js +0 -2
- package/dist/chunk-fec9f0b0b0319f3b.js +0 -2
- package/dist/chunk-ff086fe014985526.js +0 -1
- package/dist/chunk-ff1bbce70d726bc6.js +0 -9
- package/dist/chunk-ff9a2d6d503e6db6.js +0 -18
- package/dist/chunk-ffe161a589b4c44b.js +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{y as a0,z as M} from"./chunk-7ce930fe69575c87.js";import{C as x,D as SU,E as m8,H as mU,I as s6,L as l6,P as xG,S as ME} from"./chunk-f5200f44395bf49d.js";import{hb as R0} from"./chunk-a0003b7feea6fae6.js";import{ib as xf,jb as Q0} from"./chunk-7195a8718fcd8215.js";import{kb as T$} from"./chunk-3cbc1c9cdc091b43.js";import{qb as AU} from"./chunk-934ebff128f86ef1.js";var D0=M((P7,$f)=>{var{defineProperty:E1,getOwnPropertyDescriptor:LL,getOwnPropertyNames:XL}=Object,RL=Object.prototype.hasOwnProperty,aU=($,U)=>E1($,"name",{value:U,configurable:!0}),ZL=($,U)=>{for(var f in U)E1($,f,{get:U[f],enumerable:!0})},FL=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of XL(U))if(!RL.call($,w)&&w!==f)E1($,w,{get:()=>U[w],enumerable:!(G=LL(U,w))||G.enumerable})}return $},IL=($)=>FL(E1({},"__esModule",{value:!0}),$),eU={};ZL(eU,{getSmithyContext:()=>YL,normalizeProvider:()=>QL});$f.exports=IL(eU);var tU=R0(),YL=aU(($)=>$[tU.SMITHY_CONTEXT_KEY]||($[tU.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),QL=aU(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider")});var K0=M((Uf)=>{Object.defineProperty(Uf,"__esModule",{value:!0});Uf.getHomeDir=void 0;var zL=import.meta.require("os"),JL=import.meta.require("path"),R$={},TL=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},ML=()=>{const{HOME:$,USERPROFILE:U,HOMEPATH:f,HOMEDRIVE:G=`C:${JL.sep}`}=process.env;if($)return $;if(U)return U;if(f)return`${G}${f}`;const w=TL();if(!R$[w])R$[w]=zL.homedir();return R$[w]};Uf.getHomeDir=ML});var Z$=M((wf)=>{Object.defineProperty(wf,"__esModule",{value:!0});wf.getSSOTokenFilepath=void 0;var KL=import.meta.require("crypto"),OL=import.meta.require("path"),AL=K0(),BL=($)=>{const f=KL.createHash("sha1").update($).digest("hex");return OL.join(AL.getHomeDir(),".aws","sso","cache",`${f}.json`)};wf.getSSOTokenFilepath=BL});var Lf=M((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.getSSOTokenFromFile=void 0;var VL=import.meta.require("fs"),HL=Z$(),{readFile:CL}=VL.promises,qL=async($)=>{const U=HL.getSSOTokenFilepath($),f=await CL(U,"utf8");return JSON.parse(f)};Ef.getSSOTokenFromFile=qL});var I$=M((Xf)=>{Object.defineProperty(Xf,"__esModule",{value:!0});Xf.slurpFile=void 0;var NL=import.meta.require("fs"),{readFile:PL}=NL.promises,F$={},jL=($,U)=>{if(!F$[$]||(U===null||U===void 0?void 0:U.ignoreCache))F$[$]=PL($,"utf8");return F$[$]};Xf.slurpFile=jL});var J$=M((D7,c0)=>{var{defineProperty:X1,getOwnPropertyDescriptor:SL,getOwnPropertyNames:bL}=Object,hL=Object.prototype.hasOwnProperty,u=($,U)=>X1($,"name",{value:U,configurable:!0}),DL=($,U)=>{for(var f in U)X1($,f,{get:U[f],enumerable:!0})},Y$=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of bL(U))if(!hL.call($,w)&&w!==f)X1($,w,{get:()=>U[w],enumerable:!(G=SL(U,w))||G.enumerable})}return $},z$=($,U,f)=>(Y$($,U,"default"),f&&Y$(f,U,"default")),kL=($)=>Y$(X1({},"__esModule",{value:!0}),$),k0={};DL(k0,{CONFIG_PREFIX_SEPARATOR:()=>Z0,DEFAULT_PROFILE:()=>Yf,ENV_PROFILE:()=>If,getProfileName:()=>cL,loadSharedConfigFiles:()=>zf,loadSsoSessionData:()=>iL,parseKnownFiles:()=>oL});c0.exports=kL(k0);z$(k0,K0(),c0.exports);var If="AWS_PROFILE",Yf="default",cL=u(($)=>$.profile||process.env[If]||Yf,"getProfileName");z$(k0,Z$(),c0.exports);z$(k0,Lf(),c0.exports);var W1=R0(),vL=u(($)=>Object.entries($).filter(([U])=>{const f=U.indexOf(Z0);if(f===-1)return!1;return Object.values(W1.IniSectionType).includes(U.substring(0,f))}).reduce((U,[f,G])=>{const w=f.indexOf(Z0),E=f.substring(0,w)===W1.IniSectionType.PROFILE?f.substring(w+1):f;return U[E]=G,U},{...$.default&&{default:$.default}}),"getConfigData"),L1=import.meta.require("path"),xL=K0(),uL="AWS_CONFIG_FILE",Qf=u(()=>process.env[uL]||L1.join(xL.getHomeDir(),".aws","config"),"getConfigFilepath"),yL=K0(),_L="AWS_SHARED_CREDENTIALS_FILE",dL=u(()=>process.env[_L]||L1.join(yL.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),pL=K0(),gL=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,sL=["__proto__","profile __proto__"],Q$=u(($)=>{const U={};let f,G;for(let w of $.split(/\r?\n/)){const E=w.split(/(^|\s)[;#]/)[0].trim();if(E[0]==="["&&E[E.length-1]==="]"){f=void 0,G=void 0;const L=E.substring(1,E.length-1),X=gL.exec(L);if(X){const[,R,,Z]=X;if(Object.values(W1.IniSectionType).includes(R))f=[R,Z].join(Z0)}else f=L;if(sL.includes(L))throw new Error(`Found invalid profile name "${L}"`)}else if(f){const L=E.indexOf("=");if(![0,-1].includes(L)){const[X,R]=[E.substring(0,L).trim(),E.substring(L+1).trim()];if(R==="")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]=R}}}}return U},"parseIni"),Zf=I$(),Ff=u(()=>({}),"swallowError"),Z0=".",zf=u(async($={})=>{const{filepath:U=dL(),configFilepath:f=Qf()}=$,G=pL.getHomeDir();let E=U;if(U.startsWith("~/"))E=L1.join(G,U.slice(2));let W=f;if(f.startsWith("~/"))W=L1.join(G,f.slice(2));const L=await Promise.all([Zf.slurpFile(W,{ignoreCache:$.ignoreCache}).then(Q$).then(vL).catch(Ff),Zf.slurpFile(E,{ignoreCache:$.ignoreCache}).then(Q$).catch(Ff)]);return{configFile:L[0],credentialsFile:L[1]}},"loadSharedConfigFiles"),lL=u(($)=>Object.entries($).filter(([U])=>U.startsWith(W1.IniSectionType.SSO_SESSION+Z0)).reduce((U,[f,G])=>({...U,[f.substring(f.indexOf(Z0)+1)]:G}),{}),"getSsoSessionData"),nL=I$(),mL=u(()=>({}),"swallowError"),iL=u(async($={})=>nL.slurpFile($.configFilepath??Qf()).then(Q$).then(lL).catch(mL),"loadSsoSessionData"),rL=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"),oL=u(async($)=>{const U=await zf($);return rL(U.configFile,U.credentialsFile)},"parseKnownFiles")});var Kf=M((k7,Mf)=>{var M$=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,tL=Object.getOwnPropertyDescriptor,aL=Object.getOwnPropertyNames,eL=Object.prototype.hasOwnProperty,O0=($,U)=>R1($,"name",{value:U,configurable:!0}),$X=($,U)=>{for(var f in U)R1($,f,{get:U[f],enumerable:!0})},UX=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of aL(U))if(!eL.call($,w)&&w!==f)R1($,w,{get:()=>U[w],enumerable:!(G=tL(U,w))||G.enumerable})}return $},fX=($)=>UX(R1({},"__esModule",{value:!0}),$),Tf={};$X(Tf,{loadConfig:()=>LX});Mf.exports=fX(Tf);var v0=T$();O0(M$,"getSelectorName");var wX=O0(($,U)=>async()=>{try{const f=$(process.env);if(f===void 0)throw new Error;return f}catch(f){throw new v0.CredentialsProviderError(f.message||`Not found in ENV: ${M$($.toString())}`,{logger:U})}},"fromEnv"),Jf=J$(),GX=O0(($,{preferredFile:U="config",...f}={})=>async()=>{const G=Jf.getProfileName(f),{configFile:w,credentialsFile:E}=await Jf.loadSharedConfigFiles(f),W=E[G]||{},L=w[G]||{},X=U==="config"?{...W,...L}:{...L,...W};try{const Z=$(X,U==="config"?w:E);if(Z===void 0)throw new Error;return Z}catch(R){throw new v0.CredentialsProviderError(R.message||`Not found in config files w/ profile [${G}]: ${M$($.toString())}`,{logger:f.logger})}},"fromSharedConfigFiles"),EX=O0(($)=>typeof $==="function","isFunction"),WX=O0(($)=>EX($)?async()=>await $():v0.fromStatic($),"fromStatic"),LX=O0(({environmentVariableSelector:$,configFileSelector:U,default:f},G={})=>v0.memoize(v0.chain(wX($),GX(U,G),WX(f))),"loadConfig")});var Cf=M((Vf)=>{Object.defineProperty(Vf,"__esModule",{value:!0});Vf.getEndpointUrlConfig=void 0;var Of=J$(),Af="AWS_ENDPOINT_URL",Bf="endpoint_url",XX=($)=>({environmentVariableSelector:(U)=>{const f=$.split(" ").map((E)=>E.toUpperCase()),G=U[[Af,...f].join("_")];if(G)return G;const w=U[Af];if(w)return w;return},configFileSelector:(U,f)=>{if(f&&U.services){const w=f[["services",U.services].join(Of.CONFIG_PREFIX_SEPARATOR)];if(w){const E=$.split(" ").map((L)=>L.toLowerCase()),W=w[[E.join("_"),Bf].join(Of.CONFIG_PREFIX_SEPARATOR)];if(W)return W}}const G=U[Bf];if(G)return G;return},default:void 0});Vf.getEndpointUrlConfig=XX});var Pf=M((qf)=>{Object.defineProperty(qf,"__esModule",{value:!0});qf.getEndpointFromConfig=void 0;var RX=Kf(),ZX=Cf(),FX=async($)=>RX.loadConfig(ZX.getEndpointUrlConfig($))();qf.getEndpointFromConfig=FX});var O$=M((x7,cf)=>{var kf=function($,U,f){return{applyToStack:(G)=>{G.add(Sf($,f),hf),G.add(bf($,U),Df)}}},Z1=Object.defineProperty,IX=Object.getOwnPropertyDescriptor,YX=Object.getOwnPropertyNames,QX=Object.prototype.hasOwnProperty,K$=($,U)=>Z1($,"name",{value:U,configurable:!0}),zX=($,U)=>{for(var f in U)Z1($,f,{get:U[f],enumerable:!0})},JX=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of YX(U))if(!QX.call($,w)&&w!==f)Z1($,w,{get:()=>U[w],enumerable:!(G=IX(U,w))||G.enumerable})}return $},TX=($)=>JX(Z1({},"__esModule",{value:!0}),$),jf={};zX(jf,{deserializerMiddleware:()=>Sf,deserializerMiddlewareOption:()=>hf,getSerdePlugin:()=>kf,serializerMiddleware:()=>bf,serializerMiddlewareOption:()=>Df});cf.exports=TX(jf);var Sf=K$(($,U)=>(f)=>async(G)=>{const{response:w}=await f(G);try{const E=await U(w,$);return{response:w,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:w}),!("$metadata"in E)){if(E.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}},"deserializerMiddleware"),bf=K$(($,U)=>(f,G)=>async(w)=>{var E;const W=((E=G.endpointV2)==null?void 0:E.url)&&$.urlParser?async()=>$.urlParser(G.endpointV2.url):$.endpoint;if(!W)throw new Error("No valid endpoint provider available.");const L=await U(w.input,{...$,endpoint:W});return f({...w,request:L})},"serializerMiddleware"),hf={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Df={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};K$(kf,"getSerdePlugin")});var sf=M((u7,gf)=>{var{defineProperty:I1,getOwnPropertyDescriptor:MX,getOwnPropertyNames:KX}=Object,OX=Object.prototype.hasOwnProperty,p=($,U)=>I1($,"name",{value:U,configurable:!0}),AX=($,U)=>{for(var f in U)I1($,f,{get:U[f],enumerable:!0})},BX=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of KX(U))if(!OX.call($,w)&&w!==f)I1($,w,{get:()=>U[w],enumerable:!(G=MX(U,w))||G.enumerable})}return $},VX=($)=>BX(I1({},"__esModule",{value:!0}),$),uf={};AX(uf,{endpointMiddleware:()=>df,endpointMiddlewareOptions:()=>pf,getEndpointFromInstructions:()=>yf,getEndpointPlugin:()=>DX,resolveEndpointConfig:()=>kX,resolveParams:()=>_f,toEndpointV1:()=>A$});gf.exports=VX(uf);var HX=p(async($)=>{const U=($==null?void 0:$.Bucket)||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(jX(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!PX(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},"resolveParamsForS3"),CX=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,qX=/(\d+\.){3}\d+/,NX=/\.\./,PX=p(($)=>CX.test($)&&!qX.test($)&&!NX.test($),"isDnsCompatibleBucketName"),jX=p(($)=>{const[U,f,G,,,w]=$.split(":"),E=U==="arn"&&$.split(":").length>=6,W=Boolean(E&&f&&G&&w);if(E&&!W)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return W},"isArnBucketName"),SX=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:E,hostname:W,port:L,path:X}=w;return`${E}//${W}${L?":"+L:""}${X}`}}return w};return G},"createConfigValueProvider"),bX=Pf(),vf=xf(),A$=p(($)=>{if(typeof $==="object"){if("url"in $)return vf.parseUrl($.url);return $}return vf.parseUrl($)},"toEndpointV1"),yf=p(async($,U,f,G)=>{if(!f.endpoint){const W=await bX.getEndpointFromConfig(f.serviceId||"");if(W)f.endpoint=()=>Promise.resolve(A$(W))}const w=await _f($,U,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(w,G)},"getEndpointFromInstructions"),_f=p(async($,U,f)=>{var G;const w={},E=((G=U==null?void 0:U.getEndpointParameterInstructions)==null?void 0:G.call(U))||{};for(let[W,L]of Object.entries(E))switch(L.type){case"staticContextParams":w[W]=L.value;break;case"contextParams":w[W]=$[L.name];break;case"clientContextParams":case"builtInParams":w[W]=await SX(L.name,W,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(E).length===0)Object.assign(w,f);if(String(f.serviceId).toLowerCase()==="s3")await HX(w);return w},"resolveParams"),F1=D0(),df=p(({config:$,instructions:U})=>{return(f,G)=>async(w)=>{var E,W,L;const X=await yf(w.input,{getEndpointParameterInstructions(){return U}},{...$},G);G.endpointV2=X,G.authSchemes=(E=X.properties)==null?void 0:E.authSchemes;const R=(W=G.authSchemes)==null?void 0:W[0];if(R){G.signing_region=R.signingRegion,G.signing_service=R.signingName;const Z=F1.getSmithyContext(G),F=(L=Z==null?void 0:Z.selectedHttpAuthScheme)==null?void 0:L.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:R.signingRegion,signingRegion:R.signingRegion,signing_service:R.signingName,signingName:R.signingName,signingRegionSet:R.signingRegionSet},R.properties)}return f({...w})}},"endpointMiddleware"),hX=O$(),pf={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:hX.serializerMiddlewareOption.name},DX=p(($,U)=>({applyToStack:(f)=>{f.addRelativeTo(df({config:$,instructions:U}),pf)}}),"getEndpointPlugin"),kX=p(($)=>{const U=$.tls??!0,{endpoint:f}=$,G=f!=null?async()=>A$(await F1.normalizeProvider(f)()):void 0;return{...$,endpoint:G,tls:U,isCustomEndpoint:!!f,useDualstackEndpoint:F1.normalizeProvider($.useDualstackEndpoint??!1),useFipsEndpoint:F1.normalizeProvider($.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var i=M((y7,$w)=>{var tf=function($){return Object.keys($).reduce((U,f)=>{const G=$[f];return{...U,[f]:Array.isArray(G)?[...G]:G}},{})},ef=function($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)},Y1=Object.defineProperty,cX=Object.getOwnPropertyDescriptor,vX=Object.getOwnPropertyNames,xX=Object.prototype.hasOwnProperty,$0=($,U)=>Y1($,"name",{value:U,configurable:!0}),uX=($,U)=>{for(var f in U)Y1($,f,{get:U[f],enumerable:!0})},yX=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of vX(U))if(!xX.call($,w)&&w!==f)Y1($,w,{get:()=>U[w],enumerable:!(G=cX(U,w))||G.enumerable})}return $},_X=($)=>yX(Y1({},"__esModule",{value:!0}),$),lf={};uX(lf,{Field:()=>gX,Fields:()=>sX,HttpRequest:()=>lX,HttpResponse:()=>nX,IHttpRequest:()=>nf.HttpRequest,getHttpHandlerExtensionConfiguration:()=>dX,isValidHostname:()=>ef,resolveHttpHandlerRuntimeConfig:()=>pX});$w.exports=_X(lf);var dX=$0(($)=>{let U=$.httpHandler;return{setHttpHandler(f){U=f},httpHandler(){return U},updateHttpClientConfig(f,G){U.updateHttpClientConfig(f,G)},httpHandlerConfigs(){return U.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),pX=$0(($)=>{return{httpHandler:$.httpHandler()}},"resolveHttpHandlerRuntimeConfig"),nf=R0(),mf=class ${constructor({name:U,kind:f=nf.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(mf,"Field");var gX=mf,rf=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(rf,"Fields");var sX=rf,of=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=tf(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(of,"HttpRequest");var lX=of;$0(tf,"cloneQuery");var af=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(af,"HttpResponse");var nX=af;$0(ef,"isValidHostname")});var B$=M((Uw)=>{var iX=function($){return $&&$.__esModule?$:{default:$}},rX=function(){if(Q1>z1.length-16)mX.default.randomFillSync(z1),Q1=0;return z1.slice(Q1,Q1+=16)};Object.defineProperty(Uw,"__esModule",{value:!0});Uw.default=rX;var mX=iX(import.meta.require("crypto")),z1=new Uint8Array(256),Q1=z1.length});var Gw=M((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.default=void 0;var tX=/^(?:[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;fw.default=tX});var x0=M((Ew)=>{var eX=function($){return $&&$.__esModule?$:{default:$}},$2=function($){return typeof $==="string"&&aX.default.test($)};Object.defineProperty(Ew,"__esModule",{value:!0});Ew.default=void 0;var aX=eX(Gw()),U2=$2;Ew.default=U2});var u0=M((Xw)=>{var w2=function($){return $&&$.__esModule?$:{default:$}},Lw=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]]},G2=function($,U=0){const f=Lw($,U);if(!f2.default(f))throw TypeError("Stringified UUID is invalid");return f};Object.defineProperty(Xw,"__esModule",{value:!0});Xw.default=void 0;Xw.unsafeStringify=Lw;var f2=w2(x0()),h=[];for(let $=0;$<256;++$)h.push(($+256).toString(16).slice(1));var E2=G2;Xw.default=E2});var Yw=M((Fw)=>{var R2=function($){return $&&$.__esModule?$:{default:$}},Z2=function($,U,f){let G=U&&f||0;const w=U||new Array(16);$=$||{};let E=$.node||Zw,W=$.clockseq!==void 0?$.clockseq:V$;if(E==null||W==null){const Y=$.random||($.rng||L2.default)();if(E==null)E=Zw=[Y[0]|1,Y[1],Y[2],Y[3],Y[4],Y[5]];if(W==null)W=V$=(Y[6]<<8|Y[7])&16383}let L=$.msecs!==void 0?$.msecs:Date.now(),X=$.nsecs!==void 0?$.nsecs:C$+1;const R=L-H$+(X-C$)/1e4;if(R<0&&$.clockseq===void 0)W=W+1&16383;if((R<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$=W,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 F=L/4294967296*1e4&268435455;w[G++]=F>>>8&255,w[G++]=F&255,w[G++]=F>>>24&15|16,w[G++]=F>>>16&255,w[G++]=W>>>8|128,w[G++]=W&255;for(let Y=0;Y<6;++Y)w[G+Y]=E[Y];return U||X2.unsafeStringify(w)};Object.defineProperty(Fw,"__esModule",{value:!0});Fw.default=void 0;var L2=R2(B$()),X2=u0(),Zw,V$,H$=0,C$=0,F2=Z2;Fw.default=F2});var q$=M((Qw)=>{var Y2=function($){return $&&$.__esModule?$:{default:$}},Q2=function($){if(!I2.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(Qw,"__esModule",{value:!0});Qw.default=void 0;var I2=Y2(x0()),z2=Q2;Qw.default=z2});var N$=M((Mw)=>{var M2=function($){return $&&$.__esModule?$:{default:$}},K2=function($){$=unescape(encodeURIComponent($));const U=[];for(let f=0;f<$.length;++f)U.push($.charCodeAt(f));return U},O2=function($,U,f){function G(w,E,W,L){var X;if(typeof w==="string")w=K2(w);if(typeof E==="string")E=T2.default(E);if(((X=E)===null||X===void 0?void 0:X.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let R=new Uint8Array(16+w.length);if(R.set(E),R.set(w,E.length),R=f(R),R[6]=R[6]&15|U,R[8]=R[8]&63|128,W){L=L||0;for(let Z=0;Z<16;++Z)W[L+Z]=R[Z];return W}return J2.unsafeStringify(R)}try{G.name=$}catch(w){}return G.DNS=Jw,G.URL=Tw,G};Object.defineProperty(Mw,"__esModule",{value:!0});Mw.URL=Mw.DNS=void 0;Mw.default=O2;var J2=u0(),T2=M2(q$()),Jw="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Mw.DNS=Jw;var Tw="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Mw.URL=Tw});var Bw=M((Ow)=>{var H2=function($){return $&&$.__esModule?$:{default:$}},C2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return V2.default.createHash("md5").update($).digest()};Object.defineProperty(Ow,"__esModule",{value:!0});Ow.default=void 0;var V2=H2(import.meta.require("crypto")),q2=C2;Ow.default=q2});var qw=M((Hw)=>{var Vw=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Hw,"__esModule",{value:!0});Hw.default=void 0;var N2=Vw(N$()),P2=Vw(Bw()),j2=N2.default("v3",48,P2.default),S2=j2;Hw.default=S2});var jw=M((Nw)=>{var h2=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(Nw,"__esModule",{value:!0});Nw.default=void 0;var b2=h2(import.meta.require("crypto")),D2={randomUUID:b2.default.randomUUID};Nw.default=D2});var kw=M((hw)=>{var bw=function($){return $&&$.__esModule?$:{default:$}},v2=function($,U,f){if(Sw.default.randomUUID&&!U&&!$)return Sw.default.randomUUID();$=$||{};const G=$.random||($.rng||k2.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 c2.unsafeStringify(G)};Object.defineProperty(hw,"__esModule",{value:!0});hw.default=void 0;var Sw=bw(jw()),k2=bw(B$()),c2=u0(),x2=v2;hw.default=x2});var xw=M((cw)=>{var y2=function($){return $&&$.__esModule?$:{default:$}},_2=function($){if(Array.isArray($))$=Buffer.from($);else if(typeof $==="string")$=Buffer.from($,"utf8");return u2.default.createHash("sha1").update($).digest()};Object.defineProperty(cw,"__esModule",{value:!0});cw.default=void 0;var u2=y2(import.meta.require("crypto")),d2=_2;cw.default=d2});var dw=M((yw)=>{var uw=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(yw,"__esModule",{value:!0});yw.default=void 0;var p2=uw(N$()),g2=uw(xw()),s2=p2.default("v5",80,g2.default),l2=s2;yw.default=l2});var sw=M((pw)=>{Object.defineProperty(pw,"__esModule",{value:!0});pw.default=void 0;var n2="00000000-0000-0000-0000-000000000000";pw.default=n2});var mw=M((lw)=>{var i2=function($){return $&&$.__esModule?$:{default:$}},r2=function($){if(!m2.default($))throw TypeError("Invalid UUID");return parseInt($.slice(14,15),16)};Object.defineProperty(lw,"__esModule",{value:!0});lw.default=void 0;var m2=i2(x0()),o2=r2;lw.default=o2});var P$=M((g)=>{var r=function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"NIL",{enumerable:!0,get:function(){return UR.default}});Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return ER.default}});Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return GR.default}});Object.defineProperty(g,"v1",{enumerable:!0,get:function(){return t2.default}});Object.defineProperty(g,"v3",{enumerable:!0,get:function(){return a2.default}});Object.defineProperty(g,"v4",{enumerable:!0,get:function(){return e2.default}});Object.defineProperty(g,"v5",{enumerable:!0,get:function(){return $R.default}});Object.defineProperty(g,"validate",{enumerable:!0,get:function(){return wR.default}});Object.defineProperty(g,"version",{enumerable:!0,get:function(){return fR.default}});var t2=r(Yw()),a2=r(qw()),e2=r(kw()),$R=r(dw()),UR=r(sw()),fR=r(mw()),wR=r(x0()),GR=r(u0()),ER=r(q$())});var j$=M((fz,tw)=>{var{defineProperty:J1,getOwnPropertyDescriptor:WR,getOwnPropertyNames:LR}=Object,XR=Object.prototype.hasOwnProperty,A0=($,U)=>J1($,"name",{value:U,configurable:!0}),RR=($,U)=>{for(var f in U)J1($,f,{get:U[f],enumerable:!0})},ZR=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of LR(U))if(!XR.call($,w)&&w!==f)J1($,w,{get:()=>U[w],enumerable:!(G=WR(U,w))||G.enumerable})}return $},FR=($)=>ZR(J1({},"__esModule",{value:!0}),$),iw={};RR(iw,{isClockSkewCorrectedError:()=>rw,isClockSkewError:()=>MR,isRetryableByTrait:()=>TR,isServerError:()=>OR,isThrottlingError:()=>KR,isTransientError:()=>ow});tw.exports=FR(iw);var IR=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],YR=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],QR=["TimeoutError","RequestTimeout","RequestTimeoutException"],zR=[500,502,503,504],JR=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],TR=A0(($)=>$.$retryable!==void 0,"isRetryableByTrait"),MR=A0(($)=>IR.includes($.name),"isClockSkewError"),rw=A0(($)=>{var U;return(U=$.$metadata)==null?void 0:U.clockSkewCorrected},"isClockSkewCorrectedError"),KR=A0(($)=>{var U,f;return((U=$.$metadata)==null?void 0:U.httpStatusCode)===429||YR.includes($.name)||((f=$.$retryable)==null?void 0:f.throttling)==!0},"isThrottlingError"),ow=A0(($)=>{var U;return rw($)||QR.includes($.name)||JR.includes(($==null?void 0:$.code)||"")||zR.includes(((U=$.$metadata)==null?void 0:U.httpStatusCode)||0)},"isTransientError"),OR=A0(($)=>{var U;if(((U=$.$metadata)==null?void 0:U.httpStatusCode)!==void 0){const f=$.$metadata.httpStatusCode;if(500<=f&&f<=599&&!ow($))return!0;return!1}return!1},"isServerError")});var FG=M((wz,ZG)=>{var{defineProperty:T1,getOwnPropertyDescriptor:AR,getOwnPropertyNames:BR}=Object,VR=Object.prototype.hasOwnProperty,s=($,U)=>T1($,"name",{value:U,configurable:!0}),HR=($,U)=>{for(var f in U)T1($,f,{get:U[f],enumerable:!0})},CR=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of BR(U))if(!VR.call($,w)&&w!==f)T1($,w,{get:()=>U[w],enumerable:!(G=AR(U,w))||G.enumerable})}return $},qR=($)=>CR(T1({},"__esModule",{value:!0}),$),ew={};HR(ew,{AdaptiveRetryStrategy:()=>hR,ConfiguredRetryStrategy:()=>DR,DEFAULT_MAX_ATTEMPTS:()=>S$,DEFAULT_RETRY_DELAY_BASE:()=>y0,DEFAULT_RETRY_MODE:()=>NR,DefaultRateLimiter:()=>fG,INITIAL_RETRY_TOKENS:()=>b$,INVOCATION_ID_HEADER:()=>jR,MAXIMUM_RETRY_DELAY:()=>h$,NO_RETRY_INCREMENT:()=>WG,REQUEST_HEADER:()=>SR,RETRY_COST:()=>GG,RETRY_MODES:()=>$G,StandardRetryStrategy:()=>D$,THROTTLING_RETRY_DELAY_BASE:()=>wG,TIMEOUT_RETRY_COST:()=>EG});ZG.exports=qR(ew);var $G=(($)=>{return $.STANDARD="standard",$.ADAPTIVE="adaptive",$})($G||{}),S$=3,NR="standard",PR=j$(),UG=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(),PR.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))}};s(UG,"DefaultRateLimiter");var fG=UG,y0=100,h$=20000,wG=500,b$=500,GG=5,EG=10,WG=1,jR="amz-sdk-invocation-id",SR="amz-sdk-request",bR=s(()=>{let $=y0;return{computeNextBackoffDelay:s((G)=>{return Math.floor(Math.min(h$,Math.random()*2**G*$))},"computeNextBackoffDelay"),setDelayBase:s((G)=>{$=G},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),aw=s(({retryDelay:$,retryCount:U,retryCost:f})=>{return{getRetryCount:s(()=>U,"getRetryCount"),getRetryDelay:s(()=>Math.min(h$,$),"getRetryDelay"),getRetryCost:s(()=>f,"getRetryCost")}},"createDefaultRetryToken"),LG=class ${constructor(U){this.maxAttempts=U,this.mode="standard",this.capacity=b$,this.retryBackoffStrategy=bR(),this.maxAttemptsProvider=typeof U==="function"?U:async()=>U}async acquireInitialRetryToken(U){return aw({retryDelay:y0,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"?wG:y0);const E=this.retryBackoffStrategy.computeNextBackoffDelay(U.getRetryCount()),W=f.retryAfterHint?Math.max(f.retryAfterHint.getTime()-Date.now()||0,E):E,L=this.getCapacityCost(w);return this.capacity-=L,aw({retryDelay:W,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"?EG:GG}isRetryableError(U){return U==="THROTTLING"||U==="TRANSIENT"}};s(LG,"StandardRetryStrategy");var D$=LG,XG=class ${constructor(U,f){this.maxAttemptsProvider=U,this.mode="adaptive";const{rateLimiter:G}=f??{};this.rateLimiter=G??new fG,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)}};s(XG,"AdaptiveRetryStrategy");var hR=XG,RG=class $ extends D${constructor(U,f=y0){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}};s(RG,"ConfiguredRetryStrategy");var DR=RG});var JG=M((Gz,zG)=>{var{defineProperty:M1,getOwnPropertyDescriptor:kR,getOwnPropertyNames:cR}=Object,vR=Object.prototype.hasOwnProperty,y=($,U)=>M1($,"name",{value:U,configurable:!0}),xR=($,U)=>{for(var f in U)M1($,f,{get:U[f],enumerable:!0})},uR=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of cR(U))if(!vR.call($,w)&&w!==f)M1($,w,{get:()=>U[w],enumerable:!(G=kR(U,w))||G.enumerable})}return $},yR=($)=>uR(M1({},"__esModule",{value:!0}),$),QG={};xR(QG,{constructStack:()=>k$});zG.exports=yR(QG);var F0=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((F)=>F.sort((Y,I)=>IG[I.step]-IG[Y.step]||YG[I.priority||"normal"]-YG[Y.priority||"normal"]),"sort"),E=y((F)=>{let Y=!1;const I=y((Q)=>{const O=F0(Q.name,Q.aliases);if(O.includes(F)){Y=!0;for(let T of O)G.delete(T);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},"removeByName"),W=y((F)=>{let Y=!1;const I=y((Q)=>{if(Q.middleware===F){Y=!0;for(let O of F0(Q.name,Q.aliases))G.delete(O);return!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},"removeByReference"),L=y((F)=>{var Y;return $.forEach((I)=>{F.add(I.middleware,{...I})}),U.forEach((I)=>{F.addRelativeTo(I.middleware,{...I})}),(Y=F.identifyOnResolve)==null||Y.call(F,Z.identifyOnResolve()),F},"cloneTo"),X=y((F)=>{const Y=[];return F.before.forEach((I)=>{if(I.before.length===0&&I.after.length===0)Y.push(I);else Y.push(...X(I))}),Y.push(F),F.after.reverse().forEach((I)=>{if(I.before.length===0&&I.after.length===0)Y.push(I);else Y.push(...X(I))}),Y},"expandRelativeMiddlewareList"),R=y((F=!1)=>{const Y=[],I=[],Q={};return $.forEach((T)=>{const z={...T,before:[],after:[]};for(let K of F0(z.name,z.aliases))Q[K]=z;Y.push(z)}),U.forEach((T)=>{const z={...T,before:[],after:[]};for(let K of F0(z.name,z.aliases))Q[K]=z;I.push(z)}),I.forEach((T)=>{if(T.toMiddleware){const z=Q[T.toMiddleware];if(z===void 0){if(F)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:(F,Y={})=>{const{name:I,override:Q,aliases:O}=Y,T={step:"initialize",priority:"normal",middleware:F,...Y},z=F0(I,O);if(z.length>0){if(z.some((K)=>G.has(K))){if(!Q)throw new Error(`Duplicate middleware name '${U0(I,O)}'`);for(let K of z){const A=$.findIndex((V)=>{var e;return V.name===K||((e=V.aliases)==null?void 0:e.some((X0)=>X0===K))});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 K of z)G.add(K)}$.push(T)},addRelativeTo:(F,Y)=>{const{name:I,override:Q,aliases:O}=Y,T={middleware:F,...Y},z=F0(I,O);if(z.length>0){if(z.some((K)=>G.has(K))){if(!Q)throw new Error(`Duplicate middleware name '${U0(I,O)}'`);for(let K of z){const A=U.findIndex((V)=>{var e;return V.name===K||((e=V.aliases)==null?void 0:e.some((X0)=>X0===K))});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 K of z)G.add(K)}U.push(T)},clone:()=>L(k$()),use:(F)=>{F.applyToStack(Z)},remove:(F)=>{if(typeof F==="string")return E(F);else return W(F)},removeByTag:(F)=>{let Y=!1;const I=y((Q)=>{const{tags:O,name:T,aliases:z}=Q;if(O&&O.includes(F)){const K=F0(T,z);for(let A of K)G.delete(A);return Y=!0,!1}return!0},"filterCb");return $=$.filter(I),U=U.filter(I),Y},concat:(F)=>{var Y;const I=L(k$());return I.use(F),I.identifyOnResolve(f||I.identifyOnResolve()||(((Y=F.identifyOnResolve)==null?void 0:Y.call(F))??!1)),I},applyToStack:L,identify:()=>{return R(!0).map((F)=>{const Y=F.step??F.relation+" "+F.toMiddleware;return U0(F.name,F.aliases)+" - "+Y})},identifyOnResolve(F){if(typeof F==="boolean")f=F;return f},resolve:(F,Y)=>{for(let I of R().map((Q)=>Q.middleware).reverse())F=I(F,Y);if(f)console.log(Z.identify());return F}};return Z},"constructStack"),IG={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},YG={high:3,normal:2,low:1}});var c$=M((Ez,MG)=>{var{defineProperty:K1,getOwnPropertyDescriptor:_R,getOwnPropertyNames:dR}=Object,pR=Object.prototype.hasOwnProperty,gR=($,U)=>K1($,"name",{value:U,configurable:!0}),sR=($,U)=>{for(var f in U)K1($,f,{get:U[f],enumerable:!0})},lR=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of dR(U))if(!pR.call($,w)&&w!==f)K1($,w,{get:()=>U[w],enumerable:!(G=_R(U,w))||G.enumerable})}return $},nR=($)=>lR(K1({},"__esModule",{value:!0}),$),TG={};sR(TG,{isArrayBuffer:()=>mR});MG.exports=nR(TG);var mR=gR(($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]","isArrayBuffer")});var _0=M((Wz,AG)=>{var{defineProperty:O1,getOwnPropertyDescriptor:iR,getOwnPropertyNames:rR}=Object,oR=Object.prototype.hasOwnProperty,KG=($,U)=>O1($,"name",{value:U,configurable:!0}),tR=($,U)=>{for(var f in U)O1($,f,{get:U[f],enumerable:!0})},aR=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of rR(U))if(!oR.call($,w)&&w!==f)O1($,w,{get:()=>U[w],enumerable:!(G=iR(U,w))||G.enumerable})}return $},eR=($)=>aR(O1({},"__esModule",{value:!0}),$),OG={};tR(OG,{fromArrayBuffer:()=>UZ,fromString:()=>fZ});AG.exports=eR(OG);var $Z=c$(),v$=import.meta.require("buffer"),UZ=KG(($,U=0,f=$.byteLength-U)=>{if(!$Z.isArrayBuffer($))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return v$.Buffer.from($,U,f)},"fromArrayBuffer"),fZ=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 HG=M((BG)=>{Object.defineProperty(BG,"__esModule",{value:!0});BG.fromBase64=void 0;var wZ=_0(),GZ=/^[A-Za-z0-9+/]*={0,2}$/,EZ=($)=>{if($.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!GZ.exec($))throw new TypeError("Invalid base64 string.");const U=wZ.fromString($,"base64");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength)};BG.fromBase64=EZ});var f0=M((Xz,PG)=>{var{defineProperty:A1,getOwnPropertyDescriptor:WZ,getOwnPropertyNames:LZ}=Object,XZ=Object.prototype.hasOwnProperty,x$=($,U)=>A1($,"name",{value:U,configurable:!0}),RZ=($,U)=>{for(var f in U)A1($,f,{get:U[f],enumerable:!0})},ZZ=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of LZ(U))if(!XZ.call($,w)&&w!==f)A1($,w,{get:()=>U[w],enumerable:!(G=WZ(U,w))||G.enumerable})}return $},FZ=($)=>ZZ(A1({},"__esModule",{value:!0}),$),CG={};RZ(CG,{fromUtf8:()=>NG,toUint8Array:()=>IZ,toUtf8:()=>YZ});PG.exports=FZ(CG);var qG=_0(),NG=x$(($)=>{const U=qG.fromString($,"utf8");return new Uint8Array(U.buffer,U.byteOffset,U.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),IZ=x$(($)=>{if(typeof $==="string")return NG($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},"toUint8Array"),YZ=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 qG.fromArrayBuffer($.buffer,$.byteOffset,$.byteLength).toString("utf8")},"toUtf8")});var bG=M((jG)=>{Object.defineProperty(jG,"__esModule",{value:!0});jG.toBase64=void 0;var QZ=_0(),zZ=f0(),JZ=($)=>{let U;if(typeof $==="string")U=zZ.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 QZ.fromArrayBuffer(U.buffer,U.byteOffset,U.byteLength).toString("base64")};jG.toBase64=JZ});var V1=M((Zz,B1)=>{var{defineProperty:hG,getOwnPropertyDescriptor:TZ,getOwnPropertyNames:MZ}=Object,KZ=Object.prototype.hasOwnProperty,u$=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of MZ(U))if(!KZ.call($,w)&&w!==f)hG($,w,{get:()=>U[w],enumerable:!(G=TZ(U,w))||G.enumerable})}return $},DG=($,U,f)=>(u$($,U,"default"),f&&u$(f,U,"default")),OZ=($)=>u$(hG({},"__esModule",{value:!0}),$),y$={};B1.exports=OZ(y$);DG(y$,HG(),B1.exports);DG(y$,bG(),B1.exports)});var vG=M((kG)=>{Object.defineProperty(kG,"__esModule",{value:!0});kG.getAwsChunkedEncodingStream=void 0;var AZ=import.meta.require("stream"),BZ=($,U)=>{const{base64Encoder:f,bodyLengthChecker:G,checksumAlgorithmFn:w,checksumLocationName:E,streamHasher:W}=U,L=f!==void 0&&w!==void 0&&E!==void 0&&W!==void 0,X=L?W(w,$):void 0,R=new AZ.Readable({read:()=>{}});return $.on("data",(Z)=>{const F=G(Z)||0;R.push(`${F.toString(16)}\r\n`),R.push(Z),R.push("\r\n")}),$.on("end",async()=>{if(R.push("0\r\n"),L){const Z=f(await X);R.push(`${E}:${Z}\r\n`),R.push("\r\n")}R.push(null)}),R};kG.getAwsChunkedEncodingStream=BZ});var d$=M((Iz,_G)=>{var yG=function($){const U=[];for(let f of Object.keys($).sort()){const G=$[f];if(f=_$.escapeUri(f),Array.isArray(G))for(let w=0,E=G.length;w<E;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("&")},H1=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,HZ=Object.getOwnPropertyNames,CZ=Object.prototype.hasOwnProperty,qZ=($,U)=>H1($,"name",{value:U,configurable:!0}),NZ=($,U)=>{for(var f in U)H1($,f,{get:U[f],enumerable:!0})},PZ=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of HZ(U))if(!CZ.call($,w)&&w!==f)H1($,w,{get:()=>U[w],enumerable:!(G=VZ(U,w))||G.enumerable})}return $},jZ=($)=>PZ(H1({},"__esModule",{value:!0}),$),uG={};NZ(uG,{buildQueryString:()=>yG});_G.exports=jZ(uG);var _$=xG();qZ(yG,"buildQueryString")});var wE=M((Yz,fE)=>{async function s$($,U,f=dG){const G=U.headers??{},w=G.Expect||G.expect;let E=-1,W=!1;if(w==="100-continue")await Promise.race([new Promise((L)=>{E=Number(setTimeout(L,Math.max(dG,f)))}),new Promise((L)=>{$.on("continue",()=>{clearTimeout(E),L()}),$.on("error",()=>{W=!0,clearTimeout(E),L()})})]);if(!W)rG($,U.body)}var rG=function($,U){if(U instanceof iG.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 UE($){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 E=new Uint8Array(w);let W=0;for(let L of U)E.set(L,W),W+=L.length;return E}var{create:SZ,defineProperty:d0,getOwnPropertyDescriptor:bZ,getOwnPropertyNames:hZ,getPrototypeOf:DZ}=Object,kZ=Object.prototype.hasOwnProperty,P=($,U)=>d0($,"name",{value:U,configurable:!0}),cZ=($,U)=>{for(var f in U)d0($,f,{get:U[f],enumerable:!0})},gG=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of hZ(U))if(!kZ.call($,w)&&w!==f)d0($,w,{get:()=>U[w],enumerable:!(G=bZ(U,w))||G.enumerable})}return $},vZ=($,U,f)=>(f=$!=null?SZ(DZ($)):{},gG(U||!$||!$.__esModule?d0(f,"default",{value:$,enumerable:!0}):f,$)),xZ=($)=>gG(d0({},"__esModule",{value:!0}),$),sG={};cZ(sG,{DEFAULT_REQUEST_TIMEOUT:()=>pZ,NodeHttp2Handler:()=>mZ,NodeHttpHandler:()=>gZ,streamCollector:()=>rZ});fE.exports=xZ(sG);var lG=i(),nG=d$(),p$=import.meta.require("http"),g$=import.meta.require("https"),uZ=["ECONNRESET","EPIPE","ETIMEDOUT"],mG=P(($)=>{const U={};for(let f of Object.keys($)){const G=$[f];U[f]=Array.isArray(G)?G.join(","):G}return U},"getTransformedHeaders"),yZ=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"),_Z=P(($,{keepAlive:U,keepAliveMsecs:f})=>{if(U!==!0)return;$.on("socket",(G)=>{G.setKeepAlive(U,f||0)})},"setSocketKeepAlive"),dZ=P(($,U,f=0)=>{$.setTimeout(f,()=>{$.destroy(),U(Object.assign(new Error(`Connection timed out after ${f} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),iG=import.meta.require("stream"),dG=1000;P(s$,"writeRequestBody");P(rG,"writeBody");var pZ=0,oG=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,E,W;const{sockets:L,requests:X,maxSockets:R}=U;if(typeof R!=="number"||R===Infinity)return f;const Z=15000;if(Date.now()-Z<f)return f;if(L&&X)for(let F in L){const Y=((w=L[F])==null?void 0:w.length)??0,I=((E=X[F])==null?void 0:E.length)??0;if(Y>=R&&I>=2*R)return(W=G==null?void 0:G.warn)==null||W.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:E,httpsAgent:W}=U||{};return{connectionTimeout:G,requestTimeout:f??w,httpAgent:(()=>{if(E instanceof p$.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new p$.Agent({keepAlive:!0,maxSockets:50,...E})})(),httpsAgent:(()=>{if(W instanceof g$.Agent||typeof(W==null?void 0:W.destroy)==="function")return W;return new g$.Agent({keepAlive:!0,maxSockets:50,...W})})(),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,E)=>{let W=void 0;const L=P(async(K)=>{await W,clearTimeout(G),w(K)},"resolve"),X=P(async(K)=>{await W,clearTimeout(G),E(K)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(f==null?void 0:f.aborted){const K=new Error("Request aborted");K.name="AbortError",X(K);return}const R=U.protocol==="https:",Z=R?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 F=nG.buildQueryString(U.query||{});let Y=void 0;if(U.username!=null||U.password!=null){const K=U.username??"",A=U.password??"";Y=`${K}:${A}`}let I=U.path;if(F)I+=`?${F}`;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=(R?g$.request:p$.request)(Q,(K)=>{const A=new lG.HttpResponse({statusCode:K.statusCode||-1,reason:K.statusMessage,headers:mG(K.headers),body:K});L({response:A})});if(T.on("error",(K)=>{if(uZ.includes(K.code))X(Object.assign(K,{name:"TimeoutError"}));else X(K)}),yZ(T,X,this.config.connectionTimeout),dZ(T,X,this.config.requestTimeout),f){const K=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",K,{once:!0}),T.once("close",()=>A.removeEventListener("abort",K))}else f.onabort=K}const z=Q.agent;if(typeof z==="object"&&"keepAlive"in z)_Z(T,{keepAlive:z.keepAlive,keepAliveMsecs:z.keepAliveMsecs});W=s$(T,U,this.config.requestTimeout).catch((K)=>{return clearTimeout(G),E(K)})})}updateHttpClientConfig(U,f){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return{...G,[U]:f}})}httpHandlerConfigs(){return this.config??{}}};P(oG,"NodeHttpHandler");var gZ=oG,pG=import.meta.require("http2"),sZ=vZ(import.meta.require("http2")),tG=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(tG,"NodeHttp2ConnectionPool");var lZ=tG,aG=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 E=sZ.default.connect(G);if(this.config.maxConcurrency)E.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())});E.unref();const W=P(()=>{E.destroy(),this.deleteSession(G,E)},"destroySessionCb");if(E.on("goaway",W),E.on("error",W),E.on("frameError",W),E.on("close",()=>this.deleteSession(G,E)),f.requestTimeout)E.setTimeout(f.requestTimeout,W);const L=this.sessionCache.get(G)||new lZ;return L.offerLast(E),this.sessionCache.set(G,L),E}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(aG,"NodeHttp2ConnectionManager");var nZ=aG,eG=class ${constructor(U){this.metadata={handlerProtocol:"h2"},this.connectionManager=new nZ({}),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((E,W)=>{var L;let X=!1,R=void 0;const Z=P(async(N)=>{await R,E(N)},"resolve"),F=P(async(N)=>{await R,W(N)},"reject");if(f==null?void 0:f.aborted){X=!0;const N=new Error("Request aborted");N.name="AbortError",F(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 K=`${O}//${z}${Y}${Q?`:${Q}`:""}`,A={destination:new URL(K)},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,F(N)},"rejectWithDestroy"),e=nG.buildQueryString(T||{});let X0=U.path;if(e)X0+=`?${e}`;if(U.fragment)X0+=`#${U.fragment}`;const v=B.request({...U.headers,[pG.constants.HTTP2_HEADER_PATH]:X0,[pG.constants.HTTP2_HEADER_METHOD]:I});if(B.ref(),v.on("response",(N)=>{const d=new lG.HttpResponse({statusCode:N[":status"]||-1,headers:mG(N),body:v});if(X=!0,Z({response:d}),w)B.close(),this.connectionManager.deleteSession(K,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,a6)=>{V(new Error(`Frame type id ${N} in stream id ${a6} 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"))}),R=s$(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(eG,"NodeHttp2Handler");var mZ=eG,$E=class $ extends iG.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(U,f,G){this.bufferedBytes.push(U),G()}};P($E,"Collector");var iZ=$E,rZ=P(($)=>{if(oZ($))return UE($);return new Promise((U,f)=>{const G=new iZ;$.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"),oZ=P(($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream,"isReadableStreamInstance");P(UE,"collectReadableStream")});var IE=M((Qz,FE)=>{var WE=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 XE($){const U=await ZE($),f=EF.fromBase64(U);return new Uint8Array(f)}async function RE($){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 E=new Uint8Array(w);let W=0;for(let L of U)E.set(L,W),W+=L.length;return E}var ZE=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??"",E=w.indexOf(","),W=E>-1?E+1:w.length;U(w.substring(W))},G.onabort=()=>f(new Error("Read aborted")),G.onerror=()=>f(G.error),G.readAsDataURL($)})},q1=Object.defineProperty,tZ=Object.getOwnPropertyDescriptor,aZ=Object.getOwnPropertyNames,eZ=Object.prototype.hasOwnProperty,o=($,U)=>q1($,"name",{value:U,configurable:!0}),$F=($,U)=>{for(var f in U)q1($,f,{get:U[f],enumerable:!0})},UF=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of aZ(U))if(!eZ.call($,w)&&w!==f)q1($,w,{get:()=>U[w],enumerable:!(G=tZ(U,w))||G.enumerable})}return $},fF=($)=>UF(q1({},"__esModule",{value:!0}),$),EE={};$F(EE,{FetchHttpHandler:()=>GF,keepAliveSupport:()=>C1,streamCollector:()=>WF});FE.exports=fF(EE);var GE=i(),wF=d$();o(WE,"requestTimeout");var C1={supported:void 0},LE=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(C1.supported===void 0)C1.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,E=this.config.credentials;if(f==null?void 0:f.aborted){const z=new Error("Request aborted");return z.name="AbortError",Promise.reject(z)}let W=U.path;const L=wF.buildQueryString(U.query||{});if(L)W+=`?${L}`;if(U.fragment)W+=`#${U.fragment}`;let X="";if(U.username!=null||U.password!=null){const z=U.username??"",K=U.password??"";X=`${z}:${K}@`}const{port:R,method:Z}=U,F=`${U.protocol}//${X}${U.hostname}${R?`:${R}`:""}${W}`,Y=Z==="GET"||Z==="HEAD"?void 0:U.body,I={body:Y,headers:new Headers(U.headers),method:Z,credentials:E};if(Y)I.duplex="half";if(typeof AbortController!=="undefined")I.signal=f;if(C1.supported)I.keepalive=w;let Q=o(()=>{},"removeSignalEventListener");const O=new Request(F,I),T=[fetch(O).then((z)=>{const K=z.headers,A={};for(let V of K.entries())A[V[0]]=V[1];if(z.body==null)return z.blob().then((V)=>({response:new GE.HttpResponse({headers:A,reason:z.statusText,statusCode:z.status,body:V})}));return{response:new GE.HttpResponse({headers:A,reason:z.statusText,statusCode:z.status,body:z.body})}}),WE(G)];if(f)T.push(new Promise((z,K)=>{const A=o(()=>{const B=new Error("Request aborted");B.name="AbortError",K(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(LE,"FetchHttpHandler");var GF=LE,EF=V1(),WF=o(($)=>{if(typeof Blob==="function"&&$ instanceof Blob)return XE($);return RE($)},"streamCollector");o(XE,"collectBlob");o(RE,"collectStream");o(ZE,"readToBase64")});var p0=M((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.isReadableStream=void 0;var LF=($)=>{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)};YE.isReadableStream=LF});var AE=M((KE)=>{Object.defineProperty(KE,"__esModule",{value:!0});KE.sdkStreamMixin=void 0;var XF=IE(),RF=V1(),ZF=ME(),FF=f0(),zE=p0(),JE="The stream has already been transformed.",IF=($)=>{var U,f;if(!TE($)&&!zE.isReadableStream($)){const W=((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 ${W}`)}let G=!1;const w=async()=>{if(G)throw new Error(JE);return G=!0,await XF.streamCollector($)},E=(W)=>{if(typeof W.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 W.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(W)=>{const L=await w();if(W==="base64")return RF.toBase64(L);else if(W==="hex")return ZF.toHex(L);else if(W===void 0||W==="utf8"||W==="utf-8")return FF.toUtf8(L);else if(typeof TextDecoder==="function")return new TextDecoder(W).decode(L);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(G)throw new Error(JE);if(G=!0,TE($))return E($);else if(zE.isReadableStream($))return $;else throw new Error(`Cannot transform payload to web stream, got ${$}`)}})};KE.sdkStreamMixin=IF;var TE=($)=>typeof Blob==="function"&&$ instanceof Blob});var CE=M((VE)=>{Object.defineProperty(VE,"__esModule",{value:!0});VE.sdkStreamMixin=void 0;var YF=wE(),QF=_0(),l$=import.meta.require("stream"),zF=import.meta.require("util"),JF=AE(),BE="The stream has already been transformed.",TF=($)=>{var U,f;if(!($ instanceof l$.Readable))try{return JF.sdkStreamMixin($)}catch(E){const W=((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 ${W}`)}let G=!1;const w=async()=>{if(G)throw new Error(BE);return G=!0,await YF.streamCollector($)};return Object.assign($,{transformToByteArray:w,transformToString:async(E)=>{const W=await w();if(E===void 0||Buffer.isEncoding(E))return QF.fromArrayBuffer(W.buffer,W.byteOffset,W.byteLength).toString(E);else return new zF.TextDecoder(E).decode(W)},transformToWebStream:()=>{if(G)throw new Error(BE);if($.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof l$.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,l$.Readable.toWeb($)}})};VE.sdkStreamMixin=TF});var PE=M((qE)=>{async function MF($){if(typeof $.stream==="function")$=$.stream();return $.tee()}Object.defineProperty(qE,"__esModule",{value:!0});qE.splitStream=void 0;qE.splitStream=MF});var hE=M((SE)=>{async function AF($){if(OF.isReadableStream($))return KF.splitStream($);const U=new jE.PassThrough,f=new jE.PassThrough;return $.pipe(U),$.pipe(f),[U,f]}Object.defineProperty(SE,"__esModule",{value:!0});SE.splitStream=void 0;var jE=import.meta.require("stream"),KF=PE(),OF=p0();SE.splitStream=AF});var cE=M((DE)=>{async function BF($,U){var f;let G=0;const w=[],E=$.getReader();let W=!1;while(!W){const{done:R,value:Z}=await E.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;W=R}E.releaseLock();const L=new Uint8Array(Math.min(U,G));let X=0;for(let R of w){if(R.byteLength>L.byteLength-X){L.set(R.subarray(0,L.byteLength-X),X);break}else L.set(R,X);X+=R.length}return L}Object.defineProperty(DE,"__esModule",{value:!0});DE.headStream=void 0;DE.headStream=BF});var yE=M((xE)=>{Object.defineProperty(xE,"__esModule",{value:!0});xE.headStream=void 0;var VF=import.meta.require("stream"),HF=cE(),CF=p0(),qF=($,U)=>{if(CF.isReadableStream($))return HF.headStream($,U);return new Promise((f,G)=>{const w=new vE;w.limit=U,$.pipe(w),$.on("error",(E)=>{w.end(),G(E)}),w.on("error",G),w.on("finish",function(){const E=new Uint8Array(Buffer.concat(this.buffers));f(E)})})};xE.headStream=qF;class vE extends VF.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,E=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=E.subarray(0,E.byteLength-w),this.emit("finish")}f()}}});var lE=M((Bz,Y0)=>{var pE=function($,U="utf-8"){if(U==="base64")return _E.toBase64($);return dE.toUtf8($)},gE=function($,U){if(U==="base64")return m$.mutate(_E.fromBase64($));return m$.mutate(dE.fromUtf8($))},N1=Object.defineProperty,NF=Object.getOwnPropertyDescriptor,PF=Object.getOwnPropertyNames,jF=Object.prototype.hasOwnProperty,i$=($,U)=>N1($,"name",{value:U,configurable:!0}),SF=($,U)=>{for(var f in U)N1($,f,{get:U[f],enumerable:!0})},n$=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of PF(U))if(!jF.call($,w)&&w!==f)N1($,w,{get:()=>U[w],enumerable:!(G=NF(U,w))||G.enumerable})}return $},g0=($,U,f)=>(n$($,U,"default"),f&&n$(f,U,"default")),bF=($)=>n$(N1({},"__esModule",{value:!0}),$),I0={};SF(I0,{Uint8ArrayBlobAdapter:()=>m$});Y0.exports=bF(I0);var _E=V1(),dE=f0();i$(pE,"transformToString");i$(gE,"transformFromString");var sE=class $ extends Uint8Array{static fromString(U,f="utf-8"){switch(typeof U){case"string":return gE(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 pE(this,U)}};i$(sE,"Uint8ArrayBlobAdapter");var m$=sE;g0(I0,vG(),Y0.exports);g0(I0,CE(),Y0.exports);g0(I0,hE(),Y0.exports);g0(I0,yE(),Y0.exports);g0(I0,p0(),Y0.exports)});var C0=M((Vz,QW)=>{var EW=function($){const U=$.getUTCFullYear(),f=$.getUTCMonth(),G=$.getUTCDay(),w=$.getUTCDate(),E=$.getUTCHours(),W=$.getUTCMinutes(),L=$.getUTCSeconds(),X=w<10?`0${w}`:`${w}`,R=E<10?`0${E}`:`${E}`,Z=W<10?`0${W}`:`${W}`,F=L<10?`0${L}`:`${L}`;return`${EI[G]}, ${X} ${EU[f]} ${U} ${R}:${Z}:${F} GMT`},S1=function($){return encodeURIComponent($).replace(/[!'()*]/g,function(U){return"%"+U.charCodeAt(0).toString(16).toUpperCase()})},WU=function($,U,f){let G,w,E;if(typeof U==="undefined"&&typeof f==="undefined")G={},E=$;else if(G=$,typeof U==="function")return w=U,E=f,uI(G,w,E);else E=U;for(let W of Object.keys(E)){if(!Array.isArray(E[W])){G[W]=E[W];continue}IW(G,null,E,W)}return G},YW=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 E="";for(let W=0;W<G.length;W++){if(E==="")E=G[W];else E+=U+G[W];if((W+1)%f===0)w.push(E),E=""}if(E!=="")w.push(E);return w},b1=Object.defineProperty,hF=Object.getOwnPropertyDescriptor,DF=Object.getOwnPropertyNames,kF=Object.prototype.hasOwnProperty,J=($,U)=>b1($,"name",{value:U,configurable:!0}),cF=($,U)=>{for(var f in U)b1($,f,{get:U[f],enumerable:!0})},vF=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of DF(U))if(!kF.call($,w)&&w!==f)b1($,w,{get:()=>U[w],enumerable:!(G=hF(U,w))||G.enumerable})}return $},xF=($)=>vF(b1({},"__esModule",{value:!0}),$),mE={};cF(mE,{Client:()=>yF,Command:()=>aE,LazyJsonString:()=>cI,NoOpLogger:()=>uF,SENSITIVE_STRING:()=>pF,ServiceException:()=>VI,StringWrapper:()=>i0,_json:()=>UU,collectBody:()=>_F,convertMap:()=>vI,createAggregatedClient:()=>gF,dateToUtcString:()=>EW,decorateServiceException:()=>LW,emitWarningIfUnsupportedVersion:()=>NI,expectBoolean:()=>lF,expectByte:()=>$U,expectFloat32:()=>P1,expectInt:()=>mF,expectInt32:()=>a$,expectLong:()=>n0,expectNonNull:()=>rF,expectNumber:()=>l0,expectObject:()=>$W,expectShort:()=>e$,expectString:()=>oF,expectUnion:()=>tF,extendedEncodeURIComponent:()=>S1,getArrayIfSingleItem:()=>kI,getDefaultClientConfiguration:()=>hI,getDefaultExtensionConfiguration:()=>RW,getValueFromTextNode:()=>ZW,handleFloat:()=>$I,limitedParseDouble:()=>GU,limitedParseFloat:()=>UI,limitedParseFloat32:()=>fI,loadConfigsForDefaultMode:()=>qI,logger:()=>m0,map:()=>WU,parseBoolean:()=>sF,parseEpochTimestamp:()=>QI,parseRfc3339DateTime:()=>LI,parseRfc3339DateTimeWithOffset:()=>RI,parseRfc7231DateTime:()=>YI,resolveDefaultRuntimeConfig:()=>DI,resolvedPath:()=>dI,serializeDateTime:()=>gI,serializeFloat:()=>pI,splitEvery:()=>YW,strictParseByte:()=>GW,strictParseDouble:()=>wU,strictParseFloat:()=>aF,strictParseFloat32:()=>UW,strictParseInt:()=>wI,strictParseInt32:()=>GI,strictParseLong:()=>wW,strictParseShort:()=>B0,take:()=>xI,throwDefaultError:()=>XW,withBaseException:()=>HI});QW.exports=xF(mE);var iE=class ${trace(){}debug(){}info(){}warn(){}error(){}};J(iE,"NoOpLogger");var uF=iE,rE=JG(),oE=class ${constructor(U){this.middlewareStack=rE.constructStack(),this.config=U}send(U,f,G){const w=typeof f!=="function"?f:void 0,E=typeof f==="function"?f:G,W=U.resolveMiddleware(this.middlewareStack,this.config,w);if(E)W(U).then((L)=>E(null,L.output),(L)=>E(L)).catch(()=>{});else return W(U).then((L)=>L.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};J(oE,"Client");var yF=oE,r$=lE(),_F=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$=R0(),tE=class ${constructor(){this.middlewareStack=rE.constructStack()}static classBuilder(){return new dF}resolveMiddlewareWithContext(U,f,G,{middlewareFn:w,clientName:E,commandName:W,inputFilterSensitiveLog:L,outputFilterSensitiveLog:X,smithyContext:R,additionalContext:Z,CommandCtor:F}){for(let T of w.bind(this)(F,U,f,G))this.middlewareStack.use(T);const Y=U.concat(this.middlewareStack),{logger:I}=f,Q={logger:I,clientName:E,commandName:W,inputFilterSensitiveLog:L,outputFilterSensitiveLog:X,[t$.SMITHY_CONTEXT_KEY]:{commandInstance:this,...R},...Z},{requestHandler:O}=f;return Y.resolve((T)=>O.handle(T.request,G||{}),Q)}};J(tE,"Command");var aE=tE,eE=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 aE{constructor(...[w]){super();this.serialize=f._serializer,this.deserialize=f._deserializer,this.input=w??{},f._init(this)}static getEndpointParameterInstructions(){return f._ep}resolveMiddleware(w,E,W){return this.resolveMiddlewareWithContext(w,E,W,{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(eE,"ClassBuilder");var dF=eE,pF="***SensitiveInformation***",gF=J(($,U)=>{for(let f of Object.keys($)){const G=$[f],w=J(async function(W,L,X){const R=new G(W);if(typeof L==="function")this.send(R,L);else if(typeof X==="function"){if(typeof L!=="object")throw new Error(`Expected http options but got ${typeof L}`);this.send(R,L||{},X)}else return this.send(R,L)},"methodImpl"),E=(f[0].toLowerCase()+f.slice(1)).replace(/Command$/,"");U.prototype[E]=w}},"createAggregatedClient"),sF=J(($)=>{switch($){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${$}"`)}},"parseBoolean"),lF=J(($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)m0.warn(j1(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){const U=$.toLowerCase();if(U==="false"||U==="true")m0.warn(j1(`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"),l0=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string"){const U=parseFloat($);if(!Number.isNaN(U)){if(String(U)!==String($))m0.warn(j1(`Expected number but observed string: ${$}`));return U}}if(typeof $==="number")return $;throw new TypeError(`Expected number, got ${typeof $}: ${$}`)},"expectNumber"),nF=Math.ceil(340282346638528860000000000000000000000),P1=J(($)=>{const U=l0($);if(U!==void 0&&!Number.isNaN(U)&&U!==Infinity&&U!==(-Infinity)){if(Math.abs(U)>nF)throw new TypeError(`Expected 32-bit float, got ${$}`)}return U},"expectFloat32"),n0=J(($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw new TypeError(`Expected integer, got ${typeof $}: ${$}`)},"expectLong"),mF=n0,a$=J(($)=>fU($,32),"expectInt32"),e$=J(($)=>fU($,16),"expectShort"),$U=J(($)=>fU($,8),"expectByte"),fU=J(($,U)=>{const f=n0($);if(f!==void 0&&iF(f,U)!==f)throw new TypeError(`Expected ${U}-bit integer, got ${$}`);return f},"expectSizedInt"),iF=J(($,U)=>{switch(U){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},"castInt"),rF=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"),$W=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"),oF=J(($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return m0.warn(j1(`Expected string, got ${typeof $}: ${$}`)),String($);throw new TypeError(`Expected string, got ${typeof $}: ${$}`)},"expectString"),tF=J(($)=>{if($===null||$===void 0)return;const U=$W($),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 l0(H0($));return l0($)},"strictParseDouble"),aF=wU,UW=J(($)=>{if(typeof $=="string")return P1(H0($));return P1($)},"strictParseFloat32"),eF=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,H0=J(($)=>{const U=$.match(eF);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 fW($);return l0($)},"limitedParseDouble"),$I=GU,UI=GU,fI=J(($)=>{if(typeof $=="string")return fW($);return P1($)},"limitedParseFloat32"),fW=J(($)=>{switch($){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${$}`)}},"parseFloatString"),wW=J(($)=>{if(typeof $==="string")return n0(H0($));return n0($)},"strictParseLong"),wI=wW,GI=J(($)=>{if(typeof $==="string")return a$(H0($));return a$($)},"strictParseInt32"),B0=J(($)=>{if(typeof $==="string")return e$(H0($));return e$($)},"strictParseShort"),GW=J(($)=>{if(typeof $==="string")return $U(H0($));return $U($)},"strictParseByte"),j1=J(($)=>{return String(new TypeError($).stack||$).split("\n").slice(0,5).filter((U)=>!U.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),m0={warn:console.warn},EI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],EU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];J(EW,"dateToUtcString");var WI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[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=WI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[f,G,w,E,W,L,X,R]=U,Z=B0(V0(G)),F=n(w,"month",1,12),Y=n(E,"day",1,31);return s0(Z,F,Y,{hours:W,minutes:L,seconds:X,fractionalMilliseconds:R})},"parseRfc3339DateTime"),XI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),RI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const U=XI.exec($);if(!U)throw new TypeError("Invalid RFC-3339 date-time value");const[f,G,w,E,W,L,X,R,Z]=U,F=B0(V0(G)),Y=n(w,"month",1,12),I=n(E,"day",1,31),Q=s0(F,Y,I,{hours:W,minutes:L,seconds:X,fractionalMilliseconds:R});if(Z.toUpperCase()!="Z")Q.setTime(Q.getTime()-BI(Z));return Q},"parseRfc3339DateTimeWithOffset"),ZI=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$/),II=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})$/),YI=J(($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let U=ZI.exec($);if(U){const[f,G,w,E,W,L,X,R]=U;return s0(B0(V0(E)),o$(w),n(G,"day",1,31),{hours:W,minutes:L,seconds:X,fractionalMilliseconds:R})}if(U=FI.exec($),U){const[f,G,w,E,W,L,X,R]=U;return TI(s0(zI(E),o$(w),n(G,"day",1,31),{hours:W,minutes:L,seconds:X,fractionalMilliseconds:R}))}if(U=II.exec($),U){const[f,G,w,E,W,L,X,R]=U;return s0(B0(V0(R)),o$(G),n(w.trimLeft(),"day",1,31),{hours:E,minutes:W,seconds:L,fractionalMilliseconds:X})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),QI=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 KI($,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),AI(G.fractionalMilliseconds)))},"buildDate"),zI=J(($)=>{const U=(new Date()).getUTCFullYear(),f=Math.floor(U/100)*100+B0(V0($));if(f<U)return f+100;return f},"parseTwoDigitYear"),JI=1576800000000,TI=J(($)=>{if($.getTime()-(new Date()).getTime()>JI)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},"adjustRfc850Year"),o$=J(($)=>{const U=EU.indexOf($);if(U<0)throw new TypeError(`Invalid month: ${$}`);return U+1},"parseMonthByShortName"),MI=[31,28,31,30,31,30,31,31,30,31,30,31],KI=J(($,U,f)=>{let G=MI[U];if(U===1&&OI($))G=29;if(f>G)throw new TypeError(`Invalid day for ${EU[U]} in ${$}: ${f}`)},"validateDayOfMonth"),OI=J(($)=>{return $%4===0&&($%100!==0||$%400===0)},"isLeapYear"),n=J(($,U,f,G)=>{const w=GW(V0($));if(w<f||w>G)throw new TypeError(`${U} must be between ${f} and ${G}, inclusive`);return w},"parseDateValue"),AI=J(($)=>{if($===null||$===void 0)return 0;return UW("0."+$)*1000},"parseMilliseconds"),BI=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"),WW=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(WW,"ServiceException");var VI=WW,LW=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"),XW=J(({output:$,parsedBody:U,exceptionCtor:f,errorCode:G})=>{const w=CI($),E=w.httpStatusCode?w.httpStatusCode+"":void 0,W=new f({name:(U==null?void 0:U.code)||(U==null?void 0:U.Code)||G||E||"UnknownError",$fault:"client",$metadata:w});throw LW(W,U)},"throwDefaultError"),HI=J(($)=>{return({output:U,parsedBody:f,errorCode:G})=>{XW({output:U,parsedBody:f,exceptionCtor:$,errorCode:G})}},"withBaseException"),CI=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"),qI=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"),nE=!1,NI=J(($)=>{if($&&!nE&&parseInt($.substring(1,$.indexOf(".")))<16)nE=!0},"emitWarningIfUnsupportedVersion"),PI=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"),jI=J(($)=>{const U={};return $.checksumAlgorithms().forEach((f)=>{U[f.algorithmId()]=f.checksumConstructor()}),U},"resolveChecksumRuntimeConfig"),SI=J(($)=>{let U=$.retryStrategy;return{setRetryStrategy(f){U=f},retryStrategy(){return U}}},"getRetryConfiguration"),bI=J(($)=>{const U={};return U.retryStrategy=$.retryStrategy(),U},"resolveRetryRuntimeConfig"),RW=J(($)=>{return{...PI($),...SI($)}},"getDefaultExtensionConfiguration"),hI=RW,DI=J(($)=>{return{...jI($),...bI($)}},"resolveDefaultRuntimeConfig");J(S1,"extendedEncodeURIComponent");var kI=J(($)=>Array.isArray($)?$:[$],"getArrayIfSingleItem"),ZW=J(($)=>{for(let f in $)if($.hasOwnProperty(f)&&$[f]["#text"]!==void 0)$[f]=$[f]["#text"];else if(typeof $[f]==="object"&&$[f]!==null)$[f]=ZW($[f]);return $},"getValueFromTextNode"),i0=J(function(){const $=Object.getPrototypeOf(this).constructor,f=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(f,$.prototype),f},"StringWrapper");i0.prototype=Object.create(String.prototype,{constructor:{value:i0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(i0,String);var FW=class $ extends i0{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(FW,"LazyJsonString");var cI=FW;J(WU,"map");var vI=J(($)=>{const U={};for(let[f,G]of Object.entries($||{}))U[f]=[,G];return U},"convertMap"),xI=J(($,U)=>{const f={};for(let G in U)IW(f,$,U,G);return f},"take"),uI=J(($,U,f)=>{return WU($,Object.entries(f).reduce((G,[w,E])=>{if(Array.isArray(E))G[w]=E;else if(typeof E==="function")G[w]=[U,E()];else G[w]=[U,E];return G},{}))},"mapWithFilter"),IW=J(($,U,f,G)=>{if(U!==null){let W=f[G];if(typeof W==="function")W=[,W];const[L=yI,X=_I,R=G]=W;if(typeof L==="function"&&L(U[R])||typeof L!=="function"&&!!L)$[G]=X(U[R]);return}let[w,E]=f[G];if(typeof E==="function"){let W;const L=w===void 0&&(W=E())!=null,X=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(L)$[G]=W;else if(X)$[G]=E()}else{const W=w===void 0&&E!=null,L=typeof w==="function"&&!!w(E)||typeof w!=="function"&&!!w;if(W||L)$[G]=E}},"applyInstruction"),yI=J(($)=>$!=null,"nonNullish"),_I=J(($)=>$,"pass"),dI=J(($,U,f,G,w,E)=>{if(U!=null&&U[f]!==void 0){const W=G();if(W.length<=0)throw new Error("Empty value provided for input HTTP label: "+f+".");$=$.replace(w,E?W.split("/").map((L)=>S1(L)).join("/"):S1(W))}else throw new Error("No value provided for input HTTP label: "+f+".");return $},"resolvedPath"),pI=J(($)=>{if($!==$)return"NaN";switch($){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return $}},"serializeFloat"),gI=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(YW,"splitEvery")});var TW=M((zW)=>{Object.defineProperty(zW,"__esModule",{value:!0});zW.isStreamingPayload=void 0;var sI=import.meta.require("stream"),lI=($)=>($===null||$===void 0?void 0:$.body)instanceof sI.Readable||typeof ReadableStream!=="undefined"&&($===null||$===void 0?void 0:$.body)instanceof ReadableStream;zW.isStreamingPayload=lI});var cW=M((qz,kW)=>{var{defineProperty:h1,getOwnPropertyDescriptor:nI,getOwnPropertyNames:mI}=Object,iI=Object.prototype.hasOwnProperty,S=($,U)=>h1($,"name",{value:U,configurable:!0}),rI=($,U)=>{for(var f in U)h1($,f,{get:U[f],enumerable:!0})},oI=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of mI(U))if(!iI.call($,w)&&w!==f)h1($,w,{get:()=>U[w],enumerable:!(G=nI(U,w))||G.enumerable})}return $},tI=($)=>oI(h1({},"__esModule",{value:!0}),$),KW={};rI(KW,{AdaptiveRetryStrategy:()=>$Y,CONFIG_MAX_ATTEMPTS:()=>XU,CONFIG_RETRY_MODE:()=>PW,ENV_MAX_ATTEMPTS:()=>LU,ENV_RETRY_MODE:()=>NW,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>UY,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>wY,StandardRetryStrategy:()=>CW,defaultDelayDecider:()=>AW,defaultRetryDecider:()=>BW,getOmitRetryHeadersPlugin:()=>GY,getRetryAfterHint:()=>DW,getRetryPlugin:()=>ZY,omitRetryHeadersMiddleware:()=>jW,omitRetryHeadersMiddlewareOptions:()=>SW,resolveRetryConfig:()=>fY,retryMiddleware:()=>bW,retryMiddlewareOptions:()=>hW});kW.exports=tI(KW);var q0=i(),OW=P$(),q=FG(),aI=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,E=(U==null?void 0:U.timeoutRetryCost)??q.TIMEOUT_RETRY_COST;let W=$;const L=S((F)=>F.name==="TimeoutError"?E:w,"getCapacityAmount"),X=S((F)=>L(F)<=W,"hasRetryTokens");return Object.freeze({hasRetryTokens:X,retrieveRetryTokens:S((F)=>{if(!X(F))throw new Error("No retry token available");const Y=L(F);return W-=Y,Y},"retrieveRetryTokens"),releaseRetryTokens:S((F)=>{W+=F??G,W=Math.min(W,f)},"releaseRetryTokens")})},"getDefaultRetryQuota"),AW=S(($,U)=>Math.floor(Math.min(q.MAXIMUM_RETRY_DELAY,Math.random()*2**U*$)),"defaultDelayDecider"),w0=j$(),BW=S(($)=>{if(!$)return!1;return w0.isRetryableByTrait($)||w0.isClockSkewError($)||w0.isThrottlingError($)||w0.isTransientError($)},"defaultRetryDecider"),VW=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"),HW=class ${constructor(U,f){this.maxAttemptsProvider=U,this.mode=q.RETRY_MODES.STANDARD,this.retryDecider=(f==null?void 0:f.retryDecider)??BW,this.delayDecider=(f==null?void 0:f.delayDecider)??AW,this.retryQuota=(f==null?void 0:f.retryQuota)??aI(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,E=0,W=0;const L=await this.getMaxAttempts(),{request:X}=f;if(q0.HttpRequest.isInstance(X))X.headers[q.INVOCATION_ID_HEADER]=OW.v4();while(!0)try{if(q0.HttpRequest.isInstance(X))X.headers[q.REQUEST_HEADER]=`attempt=${E+1}; max=${L}`;if(G==null?void 0:G.beforeRequest)await G.beforeRequest();const{response:R,output:Z}=await U(f);if(G==null?void 0:G.afterRequest)G.afterRequest(R);return this.retryQuota.releaseRetryTokens(w),Z.$metadata.attempts=E+1,Z.$metadata.totalRetryDelay=W,{response:R,output:Z}}catch(R){const Z=VW(R);if(E++,this.shouldRetry(Z,E,L)){w=this.retryQuota.retrieveRetryTokens(Z);const F=this.delayDecider(w0.isThrottlingError(Z)?q.THROTTLING_RETRY_DELAY_BASE:q.DEFAULT_RETRY_DELAY_BASE,E),Y=eI(Z.$response),I=Math.max(Y||0,F);W+=I,await new Promise((Q)=>setTimeout(Q,I));continue}if(!Z.$metadata)Z.$metadata={};throw Z.$metadata.attempts=E,Z.$metadata.totalRetryDelay=W,Z}}};S(HW,"StandardRetryStrategy");var CW=HW,eI=S(($)=>{if(!q0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((E)=>E.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"),qW=class $ extends CW{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(qW,"AdaptiveRetryStrategy");var $Y=qW,MW=D0(),LU="AWS_MAX_ATTEMPTS",XU="max_attempts",UY={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},fY=S(($)=>{const{retryStrategy:U}=$,f=MW.normalizeProvider($.maxAttempts??q.DEFAULT_MAX_ATTEMPTS);return{...$,maxAttempts:f,retryStrategy:async()=>{if(U)return U;if(await MW.normalizeProvider($.retryMode)()===q.RETRY_MODES.ADAPTIVE)return new q.AdaptiveRetryStrategy(f);return new q.StandardRetryStrategy(f)}}},"resolveRetryConfig"),NW="AWS_RETRY_MODE",PW="retry_mode",wY={environmentVariableSelector:($)=>$[NW],configFileSelector:($)=>$[PW],default:q.DEFAULT_RETRY_MODE},jW=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"),SW={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},GY=S(($)=>({applyToStack:(U)=>{U.addRelativeTo(jW(),SW)}}),"getOmitRetryHeadersPlugin"),EY=C0(),WY=TW(),bW=S(($)=>(U,f)=>async(G)=>{var w;let E=await $.retryStrategy();const W=await $.maxAttempts();if(LY(E)){E=E;let L=await E.acquireInitialRetryToken(f.partition_id),X=new Error,R=0,Z=0;const{request:F}=G,Y=q0.HttpRequest.isInstance(F);if(Y)F.headers[q.INVOCATION_ID_HEADER]=OW.v4();while(!0)try{if(Y)F.headers[q.REQUEST_HEADER]=`attempt=${R+1}; max=${W}`;const{response:I,output:Q}=await U(G);return E.recordSuccess(L),Q.$metadata.attempts=R+1,Q.$metadata.totalRetryDelay=Z,{response:I,output:Q}}catch(I){const Q=XY(I);if(X=VW(I),Y&&WY.isStreamingPayload(F))throw(w=f.logger instanceof EY.NoOpLogger?console:f.logger)==null||w.warn("An error was encountered in a non-retryable streaming request."),X;try{L=await E.refreshRetryTokenForRetry(L,Q)}catch(T){if(!X.$metadata)X.$metadata={};throw X.$metadata.attempts=R+1,X.$metadata.totalRetryDelay=Z,X}R=L.getRetryCount();const O=L.getRetryDelay();Z+=O,await new Promise((T)=>setTimeout(T,O))}}else{if(E=E,E==null?void 0:E.mode)f.userAgent=[...f.userAgent||[],["cfg/retry-mode",E.mode]];return E.retry(U,G)}},"retryMiddleware"),LY=S(($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined","isRetryStrategyV2"),XY=S(($)=>{const U={error:$,errorType:RY($)},f=DW($.$response);if(f)U.retryAfterHint=f;return U},"getRetryErrorInfo"),RY=S(($)=>{if(w0.isThrottlingError($))return"THROTTLING";if(w0.isTransientError($))return"TRANSIENT";if(w0.isServerError($))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),hW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},ZY=S(($)=>({applyToStack:(U)=>{U.add(bW($),hW)}}),"getRetryPlugin"),DW=S(($)=>{if(!q0.HttpResponse.isInstance($))return;const U=Object.keys($.headers).find((E)=>E.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=M((Nz,$8)=>{var uW=function($){const U=new Map;for(let f of $)U.set(f.schemeId,f);return U},oW=function($,U){return new aW($,U)},eW=function($,U,f,G,w){return C(async function*E(W,L,...X){let R=W.startingToken||void 0,Z=!0,F;while(Z){if(L[f]=R,w)L[w]=L[w]??W.pageSize;if(W.client instanceof $)F=await kY(U,W.client,L,...X);else throw new Error(`Invalid client, expected instance of ${$.name}`);yield F;const Y=R;R=cY(F,G),Z=!!(R&&(!W.stopOnSameToken||R!==Y))}return},"paginateOperation")},k1=Object.defineProperty,FY=Object.getOwnPropertyDescriptor,IY=Object.getOwnPropertyNames,YY=Object.prototype.hasOwnProperty,C=($,U)=>k1($,"name",{value:U,configurable:!0}),QY=($,U)=>{for(var f in U)k1($,f,{get:U[f],enumerable:!0})},zY=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of IY(U))if(!YY.call($,w)&&w!==f)k1($,w,{get:()=>U[w],enumerable:!(G=FY(U,w))||G.enumerable})}return $},JY=($)=>zY(k1({},"__esModule",{value:!0}),$),vW={};QY(vW,{DefaultIdentityProviderConfig:()=>CY,EXPIRATION_MS:()=>iW,HttpApiKeyAuthSigner:()=>qY,HttpBearerAuthSigner:()=>NY,NoAuthSigner:()=>PY,RequestBuilder:()=>aW,createIsIdentityExpiredFunction:()=>mW,createPaginator:()=>eW,doesIdentityRequireRefresh:()=>rW,getHttpAuthSchemeEndpointRuleSetPlugin:()=>MY,getHttpAuthSchemePlugin:()=>OY,getHttpSigningPlugin:()=>HY,getSmithyContext:()=>bY,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>yW,httpAuthSchemeMiddleware:()=>RU,httpAuthSchemeMiddlewareOptions:()=>_W,httpSigningMiddleware:()=>dW,httpSigningMiddlewareOptions:()=>pW,isIdentityExpired:()=>jY,memoizeIdentityProvider:()=>SY,normalizeProvider:()=>hY,requestBuilder:()=>oW});$8.exports=JY(vW);var xW=D0();C(uW,"convertHttpAuthSchemesToMap");var RU=C(($,U)=>(f,G)=>async(w)=>{var E;const W=$.httpAuthSchemeProvider(await U.httpAuthSchemeParametersProvider($,G,w.input)),L=uW($.httpAuthSchemes),X=xW.getSmithyContext(G),R=[];for(let Z of W){const F=L.get(Z.schemeId);if(!F){R.push(`HttpAuthScheme \`${Z.schemeId}\` was not enabled for this service.`);continue}const Y=F.identityProvider(await U.identityProviderConfigProvider($));if(!Y){R.push(`HttpAuthScheme \`${Z.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:I={},signingProperties:Q={}}=((E=Z.propertiesExtractor)==null?void 0:E.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:F.signer};break}if(!X.selectedHttpAuthScheme)throw new Error(R.join("\n"));return f(w)},"httpAuthSchemeMiddleware"),TY=sf(),yW={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:TY.endpointMiddlewareOptions.name},MY=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f})=>({applyToStack:(G)=>{G.addRelativeTo(RU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f}),yW)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),KY=O$(),_W={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:KY.serializerMiddlewareOption.name},OY=C(($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f})=>({applyToStack:(G)=>{G.addRelativeTo(RU($,{httpAuthSchemeParametersProvider:U,identityProviderConfigProvider:f}),_W)}}),"getHttpAuthSchemePlugin"),c1=i(),AY=C(($)=>(U)=>{throw U},"defaultErrorHandler"),BY=C(($,U)=>{},"defaultSuccessHandler"),dW=C(($)=>(U,f)=>async(G)=>{if(!c1.HttpRequest.isInstance(G.request))return U(G);const E=xW.getSmithyContext(f).selectedHttpAuthScheme;if(!E)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:W={}},identity:L,signer:X}=E,R=await U({...G,request:await X.sign(G.request,L,W)}).catch((X.errorHandler||AY)(W));return(X.successHandler||BY)(R.response,W),R},"httpSigningMiddleware"),VY=cW(),pW={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:VY.retryMiddlewareOptions.name},HY=C(($)=>({applyToStack:(U)=>{U.addRelativeTo(dW($),pW)}}),"getHttpSigningPlugin"),gW=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(gW,"DefaultIdentityProviderConfig");var CY=gW,D1=R0(),sW=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=c1.HttpRequest.clone(U);if(G.in===D1.HttpApiKeyAuthLocation.QUERY)w.query[G.name]=f.apiKey;else if(G.in===D1.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(sW,"HttpApiKeyAuthSigner");var qY=sW,lW=class ${async sign(U,f,G){const w=c1.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(lW,"HttpBearerAuthSigner");var NY=lW,nW=class ${async sign(U,f,G){return U}};C(nW,"NoAuthSigner");var PY=nW,mW=C(($)=>(U)=>rW(U)&&U.expiration.getTime()-Date.now()<$,"createIsIdentityExpiredFunction"),iW=300000,jY=mW(iW),rW=C(($)=>$.expiration!==void 0,"doesIdentityRequireRefresh"),SY=C(($,U,f)=>{if($===void 0)return;const G=typeof $!=="function"?async()=>Promise.resolve($):$;let w,E,W,L=!1;const X=C(async(R)=>{if(!E)E=G(R);try{w=await E,W=!0,L=!1}finally{E=void 0}return w},"coalesceProvider");if(U===void 0)return async(R)=>{if(!W||(R==null?void 0:R.forceRefresh))w=await X(R);return w};return async(R)=>{if(!W||(R==null?void 0:R.forceRefresh))w=await X(R);if(L)return w;if(!f(w))return L=!0,w;if(U(w))return await X(R),w;return w}},"memoizeIdentityProvider"),bY=C(($)=>$[D1.SMITHY_CONTEXT_KEY]||($[D1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),hY=C(($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U},"normalizeProvider"),DY=C0();C(oW,"requestBuilder");var tW=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 E of this.resolvePathStack)E(this.path);return new c1.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((E)=>{this.path=DY.resolvedPath(E,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(tW,"RequestBuilder");var aW=tW,kY=C(async($,U,f,...G)=>{return await U.send(new $(f),...G)},"makePagedClientRequest");C(eW,"createPaginator");var cY=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 A4=M(($A,e1)=>{var i8,r8,o8,t8,a8,e8,$4,U4,f4,w4,G4,E4,W4,t1,bU,L4,X4,R4,b0,Z4,F4,I4,Y4,Q4,z4,J4,T4,M4,a1,K4,O4;(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 e1==="object"&&typeof $A==="object")$(f(U,f($A)));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(E,W){return G[E]=w?w(E,W):W}}})(function($){var U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,E){w.__proto__=E}||function(w,E){for(var W in E)if(Object.prototype.hasOwnProperty.call(E,W))w[W]=E[W]};i8=function(w,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");U(w,E);function W(){this.constructor=w}w.prototype=E===null?Object.create(E):(W.prototype=E.prototype,new W)},r8=Object.assign||function(w){for(var E,W=1,L=arguments.length;W<L;W++){E=arguments[W];for(var X in E)if(Object.prototype.hasOwnProperty.call(E,X))w[X]=E[X]}return w},o8=function(w,E){var W={};for(var L in w)if(Object.prototype.hasOwnProperty.call(w,L)&&E.indexOf(L)<0)W[L]=w[L];if(w!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var X=0,L=Object.getOwnPropertySymbols(w);X<L.length;X++)if(E.indexOf(L[X])<0&&Object.prototype.propertyIsEnumerable.call(w,L[X]))W[L[X]]=w[L[X]]}return W},t8=function(w,E,W,L){var X=arguments.length,R=X<3?E:L===null?L=Object.getOwnPropertyDescriptor(E,W):L,Z;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")R=Reflect.decorate(w,E,W,L);else for(var F=w.length-1;F>=0;F--)if(Z=w[F])R=(X<3?Z(R):X>3?Z(E,W,R):Z(E,W))||R;return X>3&&R&&Object.defineProperty(E,W,R),R},a8=function(w,E){return function(W,L){E(W,L,w)}},e8=function(w,E,W,L,X,R){function Z(V){if(V!==void 0&&typeof V!=="function")throw new TypeError("Function expected");return V}var F=L.kind,Y=F==="getter"?"get":F==="setter"?"set":"value",I=!E&&w?L.static?w:w.prototype:null,Q=E||(I?Object.getOwnPropertyDescriptor(I,L.name):{}),O,T=!1;for(var z=W.length-1;z>=0;z--){var K={};for(var A in L)K[A]=A==="access"?{}:L[A];for(var A in L.access)K.access[A]=L.access[A];K.addInitializer=function(V){if(T)throw new TypeError("Cannot add initializers after decoration has completed");R.push(Z(V||null))};var B=W[z](F==="accessor"?{get:Q.get,set:Q.set}:Q[Y],K);if(F==="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(F==="field")X.unshift(O);else Q[Y]=O}if(I)Object.defineProperty(I,L.name,Q);T=!0},$4=function(w,E,W){var L=arguments.length>2;for(var X=0;X<E.length;X++)W=L?E[X].call(w,W):E[X].call(w);return L?W:void 0},U4=function(w){return typeof w==="symbol"?w:"".concat(w)},f4=function(w,E,W){if(typeof E==="symbol")E=E.description?"[".concat(E.description,"]"):"";return Object.defineProperty(w,"name",{configurable:!0,value:W?"".concat(W," ",E):E})},w4=function(w,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(w,E)},G4=function(w,E,W,L){function X(R){return R instanceof W?R:new W(function(Z){Z(R)})}return new(W||(W=Promise))(function(R,Z){function F(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?R(Q.value):X(Q.value).then(F,Y)}I((L=L.apply(w,E||[])).next())})},E4=function(w,E){var W={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},L,X,R,Z;return Z={next:F(0),throw:F(1),return:F(2)},typeof Symbol==="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function F(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]&&(W=0)),W)try{if(L=1,X&&(R=I[0]&2?X.return:I[0]?X.throw||((R=X.return)&&R.call(X),0):X.next)&&!(R=R.call(X,I[1])).done)return R;if(X=0,R)I=[I[0]&2,R.value];switch(I[0]){case 0:case 1:R=I;break;case 4:return W.label++,{value:I[1],done:!1};case 5:W.label++,X=I[1],I=[0];continue;case 7:I=W.ops.pop(),W.trys.pop();continue;default:if((R=W.trys,!(R=R.length>0&&R[R.length-1]))&&(I[0]===6||I[0]===2)){W=0;continue}if(I[0]===3&&(!R||I[1]>R[0]&&I[1]<R[3])){W.label=I[1];break}if(I[0]===6&&W.label<R[1]){W.label=R[1],R=I;break}if(R&&W.label<R[2]){W.label=R[2],W.ops.push(I);break}if(R[2])W.ops.pop();W.trys.pop();continue}I=E.call(w,W)}catch(Q){I=[6,Q],X=0}finally{L=R=0}if(I[0]&5)throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}},W4=function(w,E){for(var W in w)if(W!=="default"&&!Object.prototype.hasOwnProperty.call(E,W))a1(E,w,W)},a1=Object.create?function(w,E,W,L){if(L===void 0)L=W;var X=Object.getOwnPropertyDescriptor(E,W);if(!X||("get"in X?!E.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return E[W]}};Object.defineProperty(w,L,X)}:function(w,E,W,L){if(L===void 0)L=W;w[L]=E[W]},t1=function(w){var E=typeof Symbol==="function"&&Symbol.iterator,W=E&&w[E],L=0;if(W)return W.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(E?"Object is not iterable.":"Symbol.iterator is not defined.")},bU=function(w,E){var W=typeof Symbol==="function"&&w[Symbol.iterator];if(!W)return w;var L=W.call(w),X,R=[],Z;try{while((E===void 0||E-- >0)&&!(X=L.next()).done)R.push(X.value)}catch(F){Z={error:F}}finally{try{if(X&&!X.done&&(W=L.return))W.call(L)}finally{if(Z)throw Z.error}}return R},L4=function(){for(var w=[],E=0;E<arguments.length;E++)w=w.concat(bU(arguments[E]));return w},X4=function(){for(var w=0,E=0,W=arguments.length;E<W;E++)w+=arguments[E].length;for(var L=Array(w),X=0,E=0;E<W;E++)for(var R=arguments[E],Z=0,F=R.length;Z<F;Z++,X++)L[X]=R[Z];return L},R4=function(w,E,W){if(W||arguments.length===2){for(var L=0,X=E.length,R;L<X;L++)if(R||!(L in E)){if(!R)R=Array.prototype.slice.call(E,0,L);R[L]=E[L]}}return w.concat(R||Array.prototype.slice.call(E))},b0=function(w){return this instanceof b0?(this.v=w,this):new b0(w)},Z4=function(w,E,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L=W.apply(w,E||[]),X,R=[];return X={},F("next"),F("throw"),F("return",Z),X[Symbol.asyncIterator]=function(){return this},X;function Z(z){return function(K){return Promise.resolve(K).then(z,O)}}function F(z,K){if(L[z]){if(X[z]=function(A){return new Promise(function(B,V){R.push([z,A,B,V])>1||Y(z,A)})},K)X[z]=K(X[z])}}function Y(z,K){try{I(L[z](K))}catch(A){T(R[0][3],A)}}function I(z){z.value instanceof b0?Promise.resolve(z.value.v).then(Q,O):T(R[0][2],z)}function Q(z){Y("next",z)}function O(z){Y("throw",z)}function T(z,K){if(z(K),R.shift(),R.length)Y(R[0][0],R[0][1])}},F4=function(w){var E,W;return E={},L("next"),L("throw",function(X){throw X}),L("return"),E[Symbol.iterator]=function(){return this},E;function L(X,R){E[X]=w[X]?function(Z){return(W=!W)?{value:b0(w[X](Z)),done:!1}:R?R(Z):Z}:R}},I4=function(w){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=w[Symbol.asyncIterator],W;return E?E.call(w):(w=typeof t1==="function"?t1(w):w[Symbol.iterator](),W={},L("next"),L("throw"),L("return"),W[Symbol.asyncIterator]=function(){return this},W);function L(R){W[R]=w[R]&&function(Z){return new Promise(function(F,Y){Z=w[R](Z),X(F,Y,Z.done,Z.value)})}}function X(R,Z,F,Y){Promise.resolve(Y).then(function(I){R({value:I,done:F})},Z)}},Y4=function(w,E){if(Object.defineProperty)Object.defineProperty(w,"raw",{value:E});else w.raw=E;return w};var f=Object.create?function(w,E){Object.defineProperty(w,"default",{enumerable:!0,value:E})}:function(w,E){w.default=E};Q4=function(w){if(w&&w.__esModule)return w;var E={};if(w!=null){for(var W in w)if(W!=="default"&&Object.prototype.hasOwnProperty.call(w,W))a1(E,w,W)}return f(E,w),E},z4=function(w){return w&&w.__esModule?w:{default:w}},J4=function(w,E,W,L){if(W==="a"&&!L)throw new TypeError("Private accessor was defined without a getter");if(typeof E==="function"?w!==E||!L:!E.has(w))throw new TypeError("Cannot read private member from an object whose class did not declare it");return W==="m"?L:W==="a"?L.call(w):L?L.value:E.get(w)},T4=function(w,E,W,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 E==="function"?w!==E||!X:!E.has(w))throw new TypeError("Cannot write private member to an object whose class did not declare it");return L==="a"?X.call(w,W):X?X.value=W:E.set(w,W),W},M4=function(w,E){if(E===null||typeof E!=="object"&&typeof E!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof w==="function"?E===w:w.has(E)},K4=function(w,E,W){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var L,X;if(W){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");L=E[Symbol.asyncDispose]}if(L===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(L=E[Symbol.dispose],W)X=L}if(typeof L!=="function")throw new TypeError("Object not disposable.");if(X)L=function(){try{X.call(this)}catch(R){return Promise.reject(R)}};w.stack.push({value:E,dispose:L,async:W})}else if(W)w.stack.push({async:!0});return E};var G=typeof SuppressedError==="function"?SuppressedError:function(w,E,W){var L=new Error(W);return L.name="SuppressedError",L.error=w,L.suppressed=E,L};O4=function(w){function E(L){w.error=w.hasError?new G(L,w.error,"An error was suppressed during disposal."):L,w.hasError=!0}function W(){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(W,function(R){return E(R),W()})}catch(R){E(R)}}if(w.hasError)throw w.error}return W()},$("__extends",i8),$("__assign",r8),$("__rest",o8),$("__decorate",t8),$("__param",a8),$("__esDecorate",e8),$("__runInitializers",$4),$("__propKey",U4),$("__setFunctionName",f4),$("__metadata",w4),$("__awaiter",G4),$("__generator",E4),$("__exportStar",W4),$("__createBinding",a1),$("__values",t1),$("__read",bU),$("__spread",L4),$("__spreadArrays",X4),$("__spreadArray",R4),$("__await",b0),$("__asyncGenerator",Z4),$("__asyncDelegator",F4),$("__asyncValues",I4),$("__makeTemplateObject",Y4),$("__importStar",Q4),$("__importDefault",z4),$("__classPrivateFieldGet",J4),$("__classPrivateFieldSet",T4),$("__classPrivateFieldIn",M4),$("__addDisposableResource",K4),$("__disposeResources",O4)})});var C4=M((UA,H4)=>{var{defineProperty:$$,getOwnPropertyDescriptor:z5,getOwnPropertyNames:J5}=Object,T5=Object.prototype.hasOwnProperty,M5=($,U)=>$$($,"name",{value:U,configurable:!0}),K5=($,U)=>{for(var f in U)$$($,f,{get:U[f],enumerable:!0})},O5=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of J5(U))if(!T5.call($,w)&&w!==f)$$($,w,{get:()=>U[w],enumerable:!(G=z5(U,w))||G.enumerable})}return $},A5=($)=>O5($$({},"__esModule",{value:!0}),$),V4={};K5(V4,{emitWarningIfUnsupportedVersion:()=>B5});H4.exports=A5(V4);var B4=!1,B5=M5(($)=>{if($&&!B4&&parseInt($.substring(1,$.indexOf(".")))<18)B4=!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 l4=M((fA,s4)=>{var vU=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,V5=Object.getOwnPropertyDescriptor,H5=Object.getOwnPropertyNames,C5=Object.prototype.hasOwnProperty,b=($,U)=>E$($,"name",{value:U,configurable:!0}),q5=($,U)=>{for(var f in U)E$($,f,{get:U[f],enumerable:!0})},N5=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of H5(U))if(!C5.call($,w)&&w!==f)E$($,w,{get:()=>U[w],enumerable:!(G=V5(U,w))||G.enumerable})}return $},P5=($)=>N5(E$({},"__esModule",{value:!0}),$),S4={};q5(S4,{SignatureV4:()=>$9,clearCredentialCache:()=>l5,createScope:()=>w$,getCanonicalHeaders:()=>cU,getCanonicalQuery:()=>u4,getPayloadHash:()=>G$,getSigningKey:()=>x4,moveHeadersToQuery:()=>p4,prepareRequest:()=>xU});s4.exports=P5(S4);var q4=D0(),hU=f0(),j5="X-Amz-Algorithm",S5="X-Amz-Credential",b4="X-Amz-Date",b5="X-Amz-SignedHeaders",h5="X-Amz-Expires",h4="X-Amz-Signature",D4="X-Amz-Security-Token",k4="authorization",c4=b4.toLowerCase(),D5="date",k5=[k4,c4,D5],c5=h4.toLowerCase(),kU="x-amz-content-sha256",v5=D4.toLowerCase(),x5={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},u5=/^proxy-/,y5=/^sec-/,DU="AWS4-HMAC-SHA256",_5="AWS4-HMAC-SHA256-PAYLOAD",d5="UNSIGNED-PAYLOAD",p5=50,v4="aws4_request",g5=604800,W0=ME(),s5=f0(),h0={},f$=[],w$=b(($,U,f)=>`${$}/${U}/${f}/${v4}`,"createScope"),x4=b(async($,U,f,G,w)=>{const E=await N4($,U.secretAccessKey,U.accessKeyId),W=`${f}:${G}:${w}:${W0.toHex(E)}:${U.sessionToken}`;if(W in h0)return h0[W];f$.push(W);while(f$.length>p5)delete h0[f$.shift()];let L=`AWS4${U.secretAccessKey}`;for(let X of[f,G,w,v4])L=await N4($,L,X);return h0[W]=L},"getSigningKey"),l5=b(()=>{f$.length=0,Object.keys(h0).forEach(($)=>{delete h0[$]})},"clearCredentialCache"),N4=b(($,U,f)=>{const G=new $(U);return G.update(s5.toUint8Array(f)),G.digest()},"hmac"),cU=b(({headers:$},U,f)=>{const G={};for(let w of Object.keys($).sort()){if($[w]==null)continue;const E=w.toLowerCase();if(E in x5||(U==null?void 0:U.has(E))||u5.test(E)||y5.test(E)){if(!f||f&&!f.has(E))continue}G[E]=$[w].trim().replace(/\s+/g," ")}return G},"getCanonicalHeaders"),$1=xG(),u4=b(({query:$={}})=>{const U=[],f={};for(let G of Object.keys($).sort()){if(G.toLowerCase()===c5)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((E,W)=>E.concat([`${$1.escapeUri(G)}=${$1.escapeUri(W)}`]),[]).sort().join("&")}return U.map((G)=>f[G]).filter((G)=>G).join("&")},"getCanonicalQuery"),n5=c$(),m5=f0(),G$=b(async({headers:$,body:U},f)=>{for(let G of Object.keys($))if(G.toLowerCase()===kU)return $[G];if(U==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof U==="string"||ArrayBuffer.isView(U)||n5.isArrayBuffer(U)){const G=new f;return G.update(m5.toUint8Array(U)),W0.toHex(await G.digest())}return d5},"getPayloadHash"),P4=f0(),y4=class ${format(U){const f=[];for(let E of Object.keys(U)){const W=P4.fromUtf8(E);f.push(Uint8Array.from([W.byteLength]),W,this.formatHeaderValue(U[E]))}const G=new Uint8Array(f.reduce((E,W)=>E+W.byteLength,0));let w=0;for(let E of f)G.set(E,w),w+=E.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 E=new DataView(new ArrayBuffer(3+U.value.byteLength));E.setUint8(0,6),E.setUint16(1,U.value.byteLength,!1);const W=new Uint8Array(E.buffer);return W.set(U.value,3),W;case"string":const L=P4.fromUtf8(U.value),X=new DataView(new ArrayBuffer(3+L.byteLength));X.setUint8(0,7),X.setUint16(1,L.byteLength,!1);const R=new Uint8Array(X.buffer);return R.set(L,3),R;case"timestamp":const Z=new Uint8Array(9);return Z[0]=8,Z.set(o5.fromNumber(U.value.valueOf()).bytes,1),Z;case"uuid":if(!r5.test(U.value))throw new Error(`Invalid UUID received: ${U.value}`);const F=new Uint8Array(17);return F[0]=9,F.set(W0.fromHex(U.value.replace(/\-/g,"")),1),F}}};b(y4,"HeaderFormatter");var i5=y4,r5=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,_4=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)vU(f);return new $(f)}valueOf(){const U=this.bytes.slice(0),f=U[0]&128;if(f)vU(U);return parseInt(W0.toHex(U),16)*(f?-1:1)}toString(){return String(this.valueOf())}};b(_4,"Int64");var o5=_4;b(vU,"negate");var t5=b(($,U)=>{$=$.toLowerCase();for(let f of Object.keys(U))if($===f.toLowerCase())return!0;return!1},"hasHeader"),d4=i(),p4=b(($,U={})=>{var f;const{headers:G,query:w={}}=d4.HttpRequest.clone($);for(let E of Object.keys(G)){const W=E.toLowerCase();if(W.slice(0,6)==="x-amz-"&&!((f=U.unhoistableHeaders)==null?void 0:f.has(W)))w[E]=G[E],delete G[E]}return{...$,headers:G,query:w}},"moveHeadersToQuery"),xU=b(($)=>{$=d4.HttpRequest.clone($);for(let U of Object.keys($.headers))if(k5.indexOf(U.toLowerCase())>-1)delete $.headers[U];return $},"prepareRequest"),a5=b(($)=>e5($).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),e5=b(($)=>{if(typeof $==="number")return new Date($*1000);if(typeof $==="string"){if(Number($))return new Date(Number($)*1000);return new Date($)}return $},"toDate"),g4=class ${constructor({applyChecksum:U,credentials:f,region:G,service:w,sha256:E,uriEscapePath:W=!0}){this.headerFormatter=new i5,this.service=w,this.sha256=E,this.uriEscapePath=W,this.applyChecksum=typeof U==="boolean"?U:!0,this.regionProvider=q4.normalizeProvider(G),this.credentialProvider=q4.normalizeProvider(f)}async presign(U,f={}){const{signingDate:G=new Date,expiresIn:w=3600,unsignableHeaders:E,unhoistableHeaders:W,signableHeaders:L,signingRegion:X,signingService:R}=f,Z=await this.credentialProvider();this.validateResolvedCredentials(Z);const F=X??await this.regionProvider(),{longDate:Y,shortDate:I}=U$(G);if(w>g5)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Q=w$(I,F,R??this.service),O=p4(xU(U),{unhoistableHeaders:W});if(Z.sessionToken)O.query[D4]=Z.sessionToken;O.query[j5]=DU,O.query[S5]=`${Z.accessKeyId}/${Q}`,O.query[b4]=Y,O.query[h5]=w.toString(10);const T=cU(O,E,L);return O.query[b5]=j4(T),O.query[h4]=await this.getSignature(Y,Q,this.getSigningKey(Z,F,I,R),this.createCanonicalRequest(O,T,await G$(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:E,signingService:W}){const L=E??await this.regionProvider(),{shortDate:X,longDate:R}=U$(G),Z=w$(X,L,W??this.service),F=await G$({headers:{},body:f},this.sha256),Y=new this.sha256;Y.update(U);const I=W0.toHex(await Y.digest()),Q=[_5,R,Z,w,I,F].join("\n");return this.signString(Q,{signingDate:G,signingRegion:L,signingService:W})}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((W)=>{return{message:U.message,signature:W}})}async signString(U,{signingDate:f=new Date,signingRegion:G,signingService:w}={}){const E=await this.credentialProvider();this.validateResolvedCredentials(E);const W=G??await this.regionProvider(),{shortDate:L}=U$(f),X=new this.sha256(await this.getSigningKey(E,W,L,w));return X.update(hU.toUint8Array(U)),W0.toHex(await X.digest())}async signRequest(U,{signingDate:f=new Date,signableHeaders:G,unsignableHeaders:w,signingRegion:E,signingService:W}={}){const L=await this.credentialProvider();this.validateResolvedCredentials(L);const X=E??await this.regionProvider(),R=xU(U),{longDate:Z,shortDate:F}=U$(f),Y=w$(F,X,W??this.service);if(R.headers[c4]=Z,L.sessionToken)R.headers[v5]=L.sessionToken;const I=await G$(R,this.sha256);if(!t5(kU,R.headers)&&this.applyChecksum)R.headers[kU]=I;const Q=cU(R,w,G),O=await this.getSignature(Z,Y,this.getSigningKey(L,X,F,W),this.createCanonicalRequest(R,Q,I));return R.headers[k4]=`${DU} Credential=${L.accessKeyId}/${Y}, SignedHeaders=${j4(Q)}, Signature=${O}`,R}createCanonicalRequest(U,f,G){const w=Object.keys(f).sort();return`${U.method}
|
|
10
|
-
${this.getCanonicalPath(U)}
|
|
11
|
-
${u4(U)}
|
|
12
|
-
${w.map((E)=>`${E}:${f[E]}`).join("\n")}
|
|
13
|
-
|
|
14
|
-
${w.join(";")}
|
|
15
|
-
${G}`}async createStringToSign(U,f,G){const w=new this.sha256;w.update(hU.toUint8Array(G));const E=await w.digest();return`${DU}
|
|
16
|
-
${U}
|
|
17
|
-
${f}
|
|
18
|
-
${W0.toHex(E)}`}getCanonicalPath({path:U}){if(this.uriEscapePath){const f=[];for(let E of U.split("/")){if((E==null?void 0:E.length)===0)continue;if(E===".")continue;if(E==="..")f.pop();else f.push(E)}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 E=await this.createStringToSign(U,f,w),W=new this.sha256(await G);return W.update(hU.toUint8Array(E)),W0.toHex(await W.digest())}getSigningKey(U,f,G,w){return x4(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(g4,"SignatureV4");var $9=g4,U$=b(($)=>{const U=a5($).replace(/[\-:]/g,"");return{longDate:U,shortDate:U.slice(0,8)}},"formatDate"),j4=b(($)=>Object.keys($).sort().join(";"),"getCanonicalHeaderList")});var U6=M((wA,$6)=>{var{defineProperty:W$,getOwnPropertyDescriptor:U9,getOwnPropertyNames:f9}=Object,w9=Object.prototype.hasOwnProperty,k=($,U)=>W$($,"name",{value:U,configurable:!0}),G9=($,U)=>{for(var f in U)W$($,f,{get:U[f],enumerable:!0})},E9=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of f9(U))if(!w9.call($,w)&&w!==f)W$($,w,{get:()=>U[w],enumerable:!(G=U9(U,w))||G.enumerable})}return $},W9=($)=>E9(W$({},"__esModule",{value:!0}),$),o4={};G9(o4,{AWSSDKSigV4Signer:()=>Z9,AwsSdkSigV4ASigner:()=>I9,AwsSdkSigV4Signer:()=>_U,NODE_SIGV4A_CONFIG_OPTIONS:()=>z9,resolveAWSSDKSigV4Config:()=>J9,resolveAwsSdkSigV4AConfig:()=>Q9,resolveAwsSdkSigV4Config:()=>e4,validateSigningProperties:()=>yU});$6.exports=W9(o4);var L9=i(),X9=i(),n4=k(($)=>{var U,f;return X9.HttpResponse.isInstance($)?((U=$.headers)==null?void 0:U.date)??((f=$.headers)==null?void 0:f.Date):void 0},"getDateHeader"),uU=k(($)=>new Date(Date.now()+$),"getSkewCorrectedDate"),R9=k(($,U)=>Math.abs(uU(U).getTime()-$)>=300000,"isClockSkewed"),m4=k(($,U)=>{const f=Date.parse($);if(R9(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"),yU=k(async($)=>{var U,f,G;const w=U1("context",$.context),E=U1("config",$.config),W=(G=(f=(U=w.endpointV2)==null?void 0:U.properties)==null?void 0:f.authSchemes)==null?void 0:G[0],X=await U1("signer",E.signer)(W),R=$==null?void 0:$.signingRegion,Z=$==null?void 0:$.signingRegionSet,F=$==null?void 0:$.signingName;return{config:E,signer:X,signingRegion:R,signingRegionSet:Z,signingName:F}},"validateSigningProperties"),t4=class ${async sign(U,f,G){var w;if(!L9.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const E=await yU(G),{config:W,signer:L}=E;let{signingRegion:X,signingName:R}=E;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,R=(I==null?void 0:I.signingName)??R}return await L.sign(U,{signingDate:uU(W.systemClockOffset),signingRegion:X,signingService:R})}errorHandler(U){return(f)=>{const G=f.ServerTime??n4(f.$response);if(G){const w=U1("config",U.config),E=w.systemClockOffset;if(w.systemClockOffset=m4(G,w.systemClockOffset),w.systemClockOffset!==E&&f.$metadata)f.$metadata.clockSkewCorrected=!0}throw f}}successHandler(U,f){const G=n4(U);if(G){const w=U1("config",f.config);w.systemClockOffset=m4(G,w.systemClockOffset)}}};k(t4,"AwsSdkSigV4Signer");var _U=t4,Z9=_U,F9=i(),a4=class $ extends _U{async sign(U,f,G){var w;if(!F9.HttpRequest.isInstance(U))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:E,signer:W,signingRegion:L,signingRegionSet:X,signingName:R}=await yU(G),F=(await((w=E.sigv4aSigningRegionSet)==null?void 0:w.call(E))??X??[L]).join(",");return await W.sign(U,{signingDate:uU(E.systemClockOffset),signingRegion:F,signingService:R})}};k(a4,"AwsSdkSigV4ASigner");var I9=a4,Y9=ZU(),i4=T$(),Q9=k(($)=>{return $.sigv4aSigningRegionSet=Y9.normalizeProvider($.sigv4aSigningRegionSet),$},"resolveAwsSdkSigV4AConfig"),z9={environmentVariableSelector($){if($.AWS_SIGV4A_SIGNING_REGION_SET)return $.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((U)=>U.trim());throw new i4.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 i4.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},T0=ZU(),r4=l4(),e4=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 E;if($.signer)E=T0.normalizeProvider($.signer);else if($.regionInfoProvider)E=k(()=>T0.normalizeProvider($.region)().then(async(W)=>[await $.regionInfoProvider(W,{useFipsEndpoint:await $.useFipsEndpoint(),useDualstackEndpoint:await $.useDualstackEndpoint()})||{},W]).then(([W,L])=>{const{signingRegion:X,signingService:R}=W;$.signingRegion=$.signingRegion||X||L,$.signingName=$.signingName||R||$.serviceId;const Z={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:w,uriEscapePath:f};return new($.signerConstructor||r4.SignatureV4)(Z)}),"signer");else E=k(async(W)=>{W=Object.assign({},{name:"sigv4",signingName:$.signingName||$.defaultSigningName,signingRegion:await T0.normalizeProvider($.region)(),properties:{}},W);const{signingRegion:L,signingName:X}=W;$.signingRegion=$.signingRegion||L,$.signingName=$.signingName||X||$.serviceId;const R={...$,credentials:U,region:$.signingRegion,service:$.signingName,sha256:w,uriEscapePath:f};return new($.signerConstructor||r4.SignatureV4)(R)},"signer");return{...$,systemClockOffset:G,signingEscapePath:f,credentials:U,signer:E}},"resolveAwsSdkSigV4Config"),J9=e4});var L$=M((A9)=>{var T9=":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",f6="[: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]["+T9+"]*",M9=new RegExp("^"+f6+"$"),K9=function($,U){const f=[];let G=U.exec($);while(G){const w=[];w.startIndex=U.lastIndex-G[0].length;const E=G.length;for(let W=0;W<E;W++)w.push(G[W]);f.push(w),G=U.exec($)}return f},O9=function($){const U=M9.exec($);return!(U===null||typeof U==="undefined")};A9.isExist=function($){return typeof $!=="undefined"};A9.isEmptyObject=function($){return Object.keys($).length===0};A9.merge=function($,U,f){if(U){const G=Object.keys(U),w=G.length;for(let E=0;E<w;E++)if(f==="strict")$[G[E]]=[U[G[E]]];else $[G[E]]=U[G[E]]}};A9.getValue=function($){if(A9.isExist($))return $;else return""};A9.isName=O9;A9.getAllMatches=K9;A9.nameRegexp=f6});var pU=M((x9)=>{var G6=function($){return $===" "||$==="\t"||$==="\n"||$==="\r"},E6=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},W6=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},b9=function($,U){let f="",G="",w=!1;for(;U<$.length;U++){if($[U]===j9||$[U]===S9)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}},L6=function($,U){const f=dU.getAllMatches($,h9),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 E=f[w][2];if(!c9(E))return j("InvalidAttr","Attribute '"+E+"' is an invalid name.",f1(f[w]));if(!G.hasOwnProperty(E))G[E]=1;else return j("InvalidAttr","Attribute '"+E+"' is repeated.",f1(f[w]))}return!0},D9=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},k9=function($,U){if(U++,$[U]===";")return-1;if($[U]==="#")return U++,D9($,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}}},c9=function($){return dU.isName($)},v9=function($){return dU.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},dU=L$(),P9={allowBooleanAttributes:!1,unpairedTags:[]};x9.validate=function($,U){U=Object.assign({},P9,U);const f=[];let G=!1,w=!1;if($[0]==="\uFEFF")$=$.substr(1);for(let E=0;E<$.length;E++)if($[E]==="<"&&$[E+1]==="?"){if(E+=2,E=E6($,E),E.err)return E}else if($[E]==="<"){let W=E;if(E++,$[E]==="!"){E=W6($,E);continue}else{let L=!1;if($[E]==="/")L=!0,E++;let X="";for(;E<$.length&&$[E]!==">"&&$[E]!==" "&&$[E]!=="\t"&&$[E]!=="\n"&&$[E]!=="\r";E++)X+=$[E];if(X=X.trim(),X[X.length-1]==="/")X=X.substring(0,X.length-1),E--;if(!v9(X)){let F;if(X.trim().length===0)F="Invalid space after '<'.";else F="Tag '"+X+"' is an invalid name.";return j("InvalidTag",F,D($,E))}const R=b9($,E);if(R===!1)return j("InvalidAttr","Attributes for '"+X+"' have open quote.",D($,E));let Z=R.value;if(E=R.index,Z[Z.length-1]==="/"){const F=E-Z.length;Z=Z.substring(0,Z.length-1);const Y=L6(Z,U);if(Y===!0)G=!0;else return j(Y.err.code,Y.err.msg,D($,F+Y.err.line))}else if(L)if(!R.tagClosed)return j("InvalidTag","Closing tag '"+X+"' doesn't have proper closing.",D($,E));else if(Z.trim().length>0)return j("InvalidTag","Closing tag '"+X+"' can't have attributes or invalid starting.",D($,W));else if(f.length===0)return j("InvalidTag","Closing tag '"+X+"' has not been opened.",D($,W));else{const F=f.pop();if(X!==F.tagName){let Y=D($,F.tagStartPos);return j("InvalidTag","Expected closing tag '"+F.tagName+"' (opened in line "+Y.line+", col "+Y.col+") instead of closing tag '"+X+"'.",D($,W))}if(f.length==0)w=!0}else{const F=L6(Z,U);if(F!==!0)return j(F.err.code,F.err.msg,D($,E-Z.length+F.err.line));if(w===!0)return j("InvalidXml","Multiple possible root nodes found.",D($,E));else if(U.unpairedTags.indexOf(X)!==-1);else f.push({tagName:X,tagStartPos:W});G=!0}for(E++;E<$.length;E++)if($[E]==="<")if($[E+1]==="!"){E++,E=W6($,E);continue}else if($[E+1]==="?"){if(E=E6($,++E),E.err)return E}else break;else if($[E]==="&"){const F=k9($,E);if(F==-1)return j("InvalidChar","char '&' is not expected.",D($,E));E=F}else if(w===!0&&!G6($[E]))return j("InvalidXml","Extra text at the end",D($,E));if($[E]==="<")E--}}else{if(G6($[E]))continue;return j("InvalidChar","char '"+$[E]+"' is not expected.",D($,E))}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((E)=>E.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var j9='"',S9="'",h9=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var R6=M((_9)=>{var X6={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 $}},y9=function($){return Object.assign({},X6,$)};_9.buildOptions=y9;_9.defaultOptions=X6});var I6=M((LA,F6)=>{class Z6{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})}}F6.exports=Z6});var Q6=M((XA,Y6)=>{var s9=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,E=!1,W="";for(;U<$.length;U++)if($[U]==="<"&&!E){if(w&&m9($,U)){if(U+=7,[entityName,val,U]=l9($,U+1),val.indexOf("&")===-1)f[t9(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(w&&i9($,U))U+=8;else if(w&&r9($,U))U+=8;else if(w&&o9($,U))U+=9;else if(n9)E=!0;else throw new Error("Invalid DOCTYPE");G++,W=""}else if($[U]===">"){if(E){if($[U-1]==="-"&&$[U-2]==="-")E=!1,G--}else G--;if(G===0)break}else if($[U]==="[")w=!0;else W+=$[U];if(G!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:U}},l9=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]},n9=function($,U){if($[U+1]==="!"&&$[U+2]==="-"&&$[U+3]==="-")return!0;return!1},m9=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},i9=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},r9=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},o9=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},t9=function($){if(g9.isName($))return $;else throw new Error(`Invalid entity name ${$}`)},g9=L$();Y6.exports=s9});var J6=M((RA,z6)=>{var UQ=function($,U={}){if(U=Object.assign({},$Q,U),!$||typeof $!=="string")return $;let f=$.trim();if(U.skipLike!==void 0&&U.skipLike.test(f))return $;else if(U.hex&&a9.test(f))return Number.parseInt(f,16);else{const G=e9.exec(f);if(G){const w=G[1],E=G[2];let W=fQ(G[3]);const L=G[4]||G[6];if(!U.leadingZeros&&E.length>0&&w&&f[2]!==".")return $;else if(!U.leadingZeros&&E.length>0&&!w&&f[1]!==".")return $;else{const X=Number(f),R=""+X;if(R.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(R==="0"&&W==="")return X;else if(R===W)return X;else if(w&&R==="-"+W)return X;else return $;if(E)if(W===R)return X;else if(w+W===R)return X;else return $;if(f===R)return X;else if(f===w+R)return X;return $}}else return $}},fQ=function($){if($&&$.indexOf(".")!==-1){if($=$.replace(/0+$/,""),$===".")$="0";else if($[0]===".")$="0"+$;else if($[$.length-1]===".")$=$.substr(0,$.length-1);return $}return $},a9=/^[-+]?0x[a-fA-F0-9]+$/,e9=/^([\-\+])?(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 $Q={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};z6.exports=UQ});var O6=M((ZA,K6)=>{var EQ=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,E,W){if($!==void 0){if(this.options.trimValues&&!G)$=$.trim();if($.length>0){if(!W)$=this.replaceEntitiesValue($);const L=this.options.tagValueProcessor(U,$,f,w,E);if(L===null||L===void 0)return $;else if(typeof L!==typeof $||L!==$)return L;else if(this.options.trimValues)return sU($,this.options.parseTagValue,this.options.numberParseOptions);else if($.trim()===$)return sU($,this.options.parseTagValue,this.options.numberParseOptions);else return $}}},LQ=function($){if(this.options.removeNSPrefix){const U=$.split(":"),f=$.charAt(0)==="/"?"/":"";if(U[0]==="xmlns")return"";if(U.length===2)$=f+U[1]}return $},RQ=function($,U,f){if(!this.options.ignoreAttributes&&typeof $==="string"){const G=T6.getAllMatches($,XQ),w=G.length,E={};for(let W=0;W<w;W++){const L=this.resolveNameSpace(G[W][1]);let X=G[W][4],R=this.options.attributeNamePrefix+L;if(L.length){if(this.options.transformAttributeName)R=this.options.transformAttributeName(R);if(R==="__proto__")R="#__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)E[R]=X;else if(typeof Z!==typeof X||Z!==X)E[R]=Z;else E[R]=sU(X,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)E[R]=!0}}if(!Object.keys(E).length)return;if(this.options.attributesGroupName){const W={};return W[this.options.attributesGroupName]=E,W}return E}},FQ=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)},YQ=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 $},QQ=function($,U,f){const G="*."+f;for(let w in $){const E=$[w];if(G===E||U===E)return!0}return!1},zQ=function($,U,f=">"){let G,w="";for(let E=U;E<$.length;E++){let W=$[E];if(G){if(W===G)G=""}else if(W==='"'||W==="'")G=W;else if(W===f[0])if(f[1]){if($[E+1]===f[1])return{data:w,index:E}}else return{data:w,index:E};else if(W==="\t")W=" ";w+=W}},M0=function($,U,f,G){const w=$.indexOf(U,f);if(w===-1)throw new Error(G);else return w+U.length-1},gU=function($,U,f,G=">"){const w=zQ($,U+1,G);if(!w)return;let E=w.data;const W=w.index,L=E.search(/\s/);let X=E,R=!0;if(L!==-1)X=E.substring(0,L),E=E.substring(L+1).trimStart();const Z=X;if(f){const F=X.indexOf(":");if(F!==-1)X=X.substr(F+1),R=X!==w.data.substr(F+1)}return{tagName:X,tagExp:E,closeIndex:W,attrExpPresent:R,rawTagName:Z}},JQ=function($,U,f){const G=f;let w=1;for(;f<$.length;f++)if($[f]==="<")if($[f+1]==="/"){const E=M0($,">",f,`${U} is not closed`);if($.substring(f+2,E).trim()===U){if(w--,w===0)return{tagContent:$.substring(G,f),i:E}}f=E}else if($[f+1]==="?")f=M0($,"?>",f+1,"StopNode is not closed.");else if($.substr(f+1,3)==="!--")f=M0($,"-->",f+3,"StopNode is not closed.");else if($.substr(f+1,2)==="![")f=M0($,"]]>",f,"StopNode is not closed.")-2;else{const E=gU($,f,">");if(E){if((E&&E.tagName)===U&&E.tagExp[E.tagExp.length-1]!=="/")w++;f=E.closeIndex}}},sU=function($,U,f){if(U&&typeof $==="string"){const G=$.trim();if(G==="true")return!0;else if(G==="false")return!1;else return GQ($,f)}else if(T6.isExist($))return $;else return""},T6=L$(),w1=I6(),wQ=Q6(),GQ=J6();class M6{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=EQ,this.parseXml=ZQ,this.parseTextData=WQ,this.resolveNameSpace=LQ,this.buildAttributesMap=RQ,this.isItStopNode=QQ,this.replaceEntitiesValue=IQ,this.readStopNodeData=JQ,this.saveTextToParentTag=YQ,this.addChild=FQ}}var XQ=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),ZQ=function($){$=$.replace(/\r\n?/g,"\n");const U=new w1("!xml");let f=U,G="",w="";for(let E=0;E<$.length;E++)if($[E]==="<")if($[E+1]==="/"){const L=M0($,">",E,"Closing Tag is not closed.");let X=$.substring(E+2,L).trim();if(this.options.removeNSPrefix){const F=X.indexOf(":");if(F!==-1)X=X.substr(F+1)}if(this.options.transformTagName)X=this.options.transformTagName(X);if(f)G=this.saveTextToParentTag(G,f,w);const R=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(R&&this.options.unpairedTags.indexOf(R)!==-1)Z=w.lastIndexOf(".",w.lastIndexOf(".")-1),this.tagsNodeStack.pop();else Z=w.lastIndexOf(".");w=w.substring(0,Z),f=this.tagsNodeStack.pop(),G="",E=L}else if($[E+1]==="?"){let L=gU($,E,!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)}E=L.closeIndex+1}else if($.substr(E+1,3)==="!--"){const L=M0($,"-->",E+4,"Comment is not closed.");if(this.options.commentPropName){const X=$.substring(E+4,L-2);G=this.saveTextToParentTag(G,f,w),f.add(this.options.commentPropName,[{[this.options.textNodeName]:X}])}E=L}else if($.substr(E+1,2)==="!D"){const L=wQ($,E);this.docTypeEntities=L.entities,E=L.i}else if($.substr(E+1,2)==="!["){const L=M0($,"]]>",E,"CDATA is not closed.")-2,X=$.substring(E+9,L);G=this.saveTextToParentTag(G,f,w);let R=this.parseTextData(X,f.tagname,w,!0,!1,!0,!0);if(R==null)R="";if(this.options.cdataPropName)f.add(this.options.cdataPropName,[{[this.options.textNodeName]:X}]);else f.add(this.options.textNodeName,R);E=L+2}else{let L=gU($,E,this.options.removeNSPrefix),X=L.tagName;const R=L.rawTagName;let{tagExp:Z,attrExpPresent:F,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);E=L.closeIndex}else if(this.options.unpairedTags.indexOf(X)!==-1)E=L.closeIndex;else{const T=this.readStopNodeData($,R,Y+1);if(!T)throw new Error(`Unexpected end of ${R}`);E=T.i,Q=T.tagContent}const O=new w1(X);if(X!==Z&&F)O[":@"]=this.buildAttributesMap(Z,w,X);if(Q)Q=this.parseTextData(Q,X,w,!0,F,!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&&F)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&&F)Q[":@"]=this.buildAttributesMap(Z,w,X);this.addChild(f,Q,w),f=Q}G="",E=Y}}else G+=$[E];return U.child},IQ=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 $};K6.exports=M6});var B6=M((AQ)=>{var TQ=function($,U){return A6($,U)},A6=function($,U,f){let G;const w={};for(let E=0;E<$.length;E++){const W=$[E],L=MQ(W);let X="";if(f===void 0)X=L;else X=f+"."+L;if(L===U.textNodeName)if(G===void 0)G=W[L];else G+=""+W[L];else if(L===void 0)continue;else if(W[L]){let R=A6(W[L],U,X);const Z=OQ(R,U);if(W[":@"])KQ(R,W[":@"],X,U);else if(Object.keys(R).length===1&&R[U.textNodeName]!==void 0&&!U.alwaysCreateTextNode)R=R[U.textNodeName];else if(Object.keys(R).length===0)if(U.alwaysCreateTextNode)R[U.textNodeName]="";else R="";if(w[L]!==void 0&&w.hasOwnProperty(L)){if(!Array.isArray(w[L]))w[L]=[w[L]];w[L].push(R)}else if(U.isArray(L,X,Z))w[L]=[R];else w[L]=R}}if(typeof G==="string"){if(G.length>0)w[U.textNodeName]=G}else if(G!==void 0)w[U.textNodeName]=G;return w},MQ=function($){const U=Object.keys($);for(let f=0;f<U.length;f++){const G=U[f];if(G!==":@")return G}},KQ=function($,U,f,G){if(U){const w=Object.keys(U),E=w.length;for(let W=0;W<E;W++){const L=w[W];if(G.isArray(L,f+"."+L,!0,!0))$[L]=[U[L]];else $[L]=U[L]}}},OQ=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};AQ.prettify=TQ});var C6=M((IA,H6)=>{var{buildOptions:VQ}=R6(),HQ=O6(),{prettify:CQ}=B6(),qQ=pU();class V6{constructor($){this.externalEntities={},this.options=VQ($)}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=qQ.validate($,U);if(w!==!0)throw Error(`${w.err.msg}:${w.err.line}:${w.err.col}`)}const f=new HQ(this.options);f.addExternalEntities(this.externalEntities);const G=f.parseXml($);if(this.options.preserveOrder||G===void 0)return G;else return CQ(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 '
'");else if(U==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[$]=U}}H6.exports=V6});var S6=M((YA,j6)=>{var NQ=function($,U){let f="";if(U.format&&U.indentBy.length>0)f="\n";return N6($,U,"",f)},N6=function($,U,f,G){let w="",E=!1;for(let W=0;W<$.length;W++){const L=$[W],X=PQ(L);if(X===void 0)continue;let R="";if(f.length===0)R=X;else R=`${f}.${X}`;if(X===U.textNodeName){let Q=L[X];if(!jQ(R,U))Q=U.tagValueProcessor(X,Q),Q=P6(Q,U);if(E)w+=G;w+=Q,E=!1;continue}else if(X===U.cdataPropName){if(E)w+=G;w+=`<![CDATA[${L[X][0][U.textNodeName]}]]>`,E=!1;continue}else if(X===U.commentPropName){w+=G+`<!--${L[X][0][U.textNodeName]}-->`,E=!0;continue}else if(X[0]==="?"){const Q=q6(L[":@"],U),O=X==="?xml"?"":G;let T=L[X][0][U.textNodeName];T=T.length!==0?" "+T:"",w+=O+`<${X}${T}${Q}?>`,E=!0;continue}let Z=G;if(Z!=="")Z+=U.indentBy;const F=q6(L[":@"],U),Y=G+`<${X}${F}`,I=N6(L[X],U,R,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}>`}E=!0}return w},PQ=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}},q6=function($,U){let f="";if($&&!U.ignoreAttributes)for(let G in $){if(!$.hasOwnProperty(G))continue;let w=U.attributeValueProcessor(G,$[G]);if(w=P6(w,U),w===!0&&U.suppressBooleanAttributes)f+=` ${G.substr(U.attributeNamePrefix.length)}`;else f+=` ${G.substr(U.attributeNamePrefix.length)}="${w}"`}return f},jQ=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},P6=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 $};j6.exports=NQ});var h6=M((QA,b6)=>{var L0=function($){if(this.options=Object.assign({},bQ,$),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=kQ;if(this.processTextOrObjNode=hQ,this.options.format)this.indentate=DQ,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},hQ=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)},DQ=function($){return this.options.indentBy.repeat($)},kQ=function($){if($.startsWith(this.options.attributeNamePrefix)&&$!==this.options.textNodeName)return $.substr(this.attrPrefixLen);else return!1},SQ=S6(),bQ={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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};L0.prototype.build=function($){if(this.options.preserveOrder)return SQ($,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 E=this.isAttribute(w);if(E)f+=this.buildAttrPairStr(E,""+$[w]);else if(w===this.options.textNodeName){let W=this.options.tagValueProcessor(w,""+$[w]);G+=this.replaceEntitiesValue(W)}else G+=this.buildTextValNode($[w],w,"",U)}else if(Array.isArray($[w])){const E=$[w].length;let W="",L="";for(let X=0;X<E;X++){const R=$[w][X];if(typeof R==="undefined");else if(R===null)if(w[0]==="?")G+=this.indentate(U)+"<"+w+"?"+this.tagEndChar;else G+=this.indentate(U)+"<"+w+"/"+this.tagEndChar;else if(typeof R==="object")if(this.options.oneListGroup){const Z=this.j2x(R,U+1);if(W+=Z.val,this.options.attributesGroupName&&R.hasOwnProperty(this.options.attributesGroupName))L+=Z.attrStr}else W+=this.processTextOrObjNode(R,w,U);else if(this.options.oneListGroup){let Z=this.options.tagValueProcessor(w,R);Z=this.replaceEntitiesValue(Z),W+=Z}else W+=this.buildTextValNode(R,w,"",U)}if(this.options.oneListGroup)W=this.buildObjectNode(W,w,L,U);G+=W}else if(this.options.attributesGroupName&&w===this.options.attributesGroupName){const E=Object.keys($[w]),W=E.length;for(let L=0;L<W;L++)f+=this.buildAttrPairStr(E[L],""+$[w][E[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,E="";if(U[0]==="?")E="?",w="";if((f||f==="")&&$.indexOf("<")===-1)return this.indentate(G)+"<"+U+f+E+">"+$+w;else if(this.options.commentPropName!==!1&&U===this.options.commentPropName&&E.length===0)return this.indentate(G)+`<!--${$}-->`+this.newLine;else return this.indentate(G)+"<"+U+f+E+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 $};b6.exports=L0});var k6=M((zA,D6)=>{var cQ=pU(),vQ=C6(),xQ=h6();D6.exports={XMLParser:vQ,XMLValidator:cQ,XMLBuilder:xQ}});var _6=M((JA,y6)=>{var{defineProperty:X$,getOwnPropertyDescriptor:uQ,getOwnPropertyNames:yQ}=Object,_Q=Object.prototype.hasOwnProperty,c=($,U)=>X$($,"name",{value:U,configurable:!0}),dQ=($,U)=>{for(var f in U)X$($,f,{get:U[f],enumerable:!0})},pQ=($,U,f,G)=>{if(U&&typeof U==="object"||typeof U==="function"){for(let w of yQ(U))if(!_Q.call($,w)&&w!==f)X$($,w,{get:()=>U[w],enumerable:!(G=uQ(U,w))||G.enumerable})}return $},gQ=($)=>pQ(X$({},"__esModule",{value:!0}),$),c6={};dQ(c6,{_toBool:()=>lQ,_toNum:()=>nQ,_toStr:()=>sQ,awsExpectUnion:()=>iQ,loadRestJsonErrorCode:()=>tQ,loadRestXmlErrorCode:()=>U7,parseJsonBody:()=>x6,parseJsonErrorBody:()=>oQ,parseXmlBody:()=>u6,parseXmlErrorBody:()=>$7});y6.exports=gQ(c6);var sQ=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"),lQ=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"),nQ=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"),mQ=C0(),iQ=c(($)=>{if($==null)return;if(typeof $==="object"&&"__type"in $)delete $.__type;return mQ.expectUnion($)},"awsExpectUnion"),rQ=C0(),v6=c(($,U)=>rQ.collectBody($,U).then((f)=>U.utf8Encoder(f)),"collectBodyString"),x6=c(($,U)=>v6($,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"),oQ=c(async($,U)=>{const f=await x6($,U);return f.message=f.message??f.Message,f},"parseJsonErrorBody"),tQ=c(($,U)=>{const f=c((E,W)=>Object.keys(E).find((L)=>L.toLowerCase()===W.toLowerCase()),"findKey"),G=c((E)=>{let W=E;if(typeof W==="number")W=W.toString();if(W.indexOf(",")>=0)W=W.split(",")[0];if(W.indexOf(":")>=0)W=W.split(":")[0];if(W.indexOf("#")>=0)W=W.split("#")[1];return W},"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"),aQ=C0(),eQ=k6(),u6=c(($,U)=>v6($,U).then((f)=>{if(f.length){const G=new eQ.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(X,R)=>R.trim()===""&&R.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 E="#text",W=Object.keys(w)[0],L=w[W];if(L[E])L[W]=L[E],delete L[E];return aQ.getValueFromTextNode(L)}return{}}),"parseXmlBody"),$7=c(async($,U)=>{const f=await u6($,U);if(f.Error)f.Error.message=f.Error.message??f.Error.Message;return f},"parseXmlErrorBody"),U7=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 f7=M((G1)=>{Object.defineProperty(G1,"__esModule",{value:!0});var lU=A4();lU.__exportStar(C4(),G1);lU.__exportStar(U6(),G1);lU.__exportStar(_6(),G1)});function M7($){return $}var e6=($)=>(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 E=G.hostname;if(G.port!=null)E+=`:${G.port}`;G.headers.host=E}return U(f)},$L={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},K7=($)=>({applyToStack:(U)=>{U.add(e6($),$L)}});var UL=()=>($,U)=>async(f)=>{try{const G=await $(f),{clientName:w,commandName:E,logger:W,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:X,overrideOutputFilterSensitiveLog:R}=L,Z=X??U.inputFilterSensitiveLog,F=R??U.outputFilterSensitiveLog,{$metadata:Y,...I}=G.output;return W?.info?.({clientName:w,commandName:E,input:Z(f.input),output:F(I),metadata:Y}),G}catch(G){const{clientName:w,commandName:E,logger:W,dynamoDbDocumentClientOptions:L={}}=U,{overrideInputFilterSensitiveLog:X}=L,R=X??U.inputFilterSensitiveLog;throw W?.error?.({clientName:w,commandName:E,input:R(f.input),error:G,metadata:G.$metadata}),G}},fL={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},A7=($)=>({applyToStack:(U)=>{U.add(UL(),fL)}});var oU="X-Amzn-Trace-Id",wL="AWS_LAMBDA_FUNCTION_NAME",GL="_X_AMZN_TRACE_ID",EL=($)=>(U)=>async(f)=>{const{request:G}=f;if(!x.isInstance(G)||$.runtime!=="node"||G.headers.hasOwnProperty(oU))return U(f);const w=process.env[wL],E=process.env[GL],W=(L)=>typeof L==="string"&&L.length>0;if(W(w)&&W(E))G.headers[oU]=E;return U({...f,request:G})},WL={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},q7=($)=>({applyToStack:(U)=>{U.add(EL($),WL)}});function Pz($){return{...$,customUserAgent:typeof $.customUserAgent==="string"?[[$.customUserAgent]]:$.customUserAgent}}var vY=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}$"),r0=($)=>vY.test($)||$.startsWith("[")&&$.endsWith("]");var xY=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o0=($,U=!1)=>{if(!U)return xY.test($);const f=$.split(".");for(let G of f)if(!o0(G))return!1;return!0};var t0={};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 U8=($,U)=>$===U;var f8=($)=>{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 E=G.slice(w+1,-1);if(Number.isNaN(parseInt(E)))throw new H(`Invalid array index: '${E}' in path: '${$}'`);if(w!==0)f.push(G.slice(0,w));f.push(E)}else f.push(G)}return f};var v1=($,U)=>f8(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 w8=($)=>$!=null;var G8=($)=>!$;var x1=a0(R0(),1);var FU={[x1.EndpointURLScheme.HTTP]:80,[x1.EndpointURLScheme.HTTPS]:443},E8=($)=>{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(([K,A])=>`${K}=${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:E,protocol:W,search:L}=U;if(L)return null;const X=W.slice(0,-1);if(!Object.values(x1.EndpointURLScheme).includes(X))return null;const R=r0(w),Z=f.includes(`${G}:${FU[X]}`)||typeof $==="string"&&$.includes(`${G}:${FU[X]}`),F=`${G}${Z?`:${FU[X]}`:""}`;return{scheme:X,authority:F,path:E,normalizedPath:E.endsWith("/")?E:`${E}/`,isIp:R}};var W8=($,U)=>$===U;var L8=($,U,f,G)=>{if(U>=f||$.length<f)return null;if(!G)return $.substring(U,f);return $.substring($.length-f,$.length-U)};var X8=($)=>encodeURIComponent($).replace(/[!*'()]/g,(U)=>`%${U.charCodeAt(0).toString(16).toUpperCase()}`);var R8={booleanEquals:U8,getAttr:v1,isSet:w8,isValidHostLabel:o0,not:G8,parseURL:E8,stringEquals:W8,substring:L8,uriEncode:X8};var u1=($,U)=>{const f=[],G={...U.endpointParams,...U.referenceRecord};let w=0;while(w<$.length){const E=$.indexOf("{",w);if(E===-1){f.push($.slice(w));break}f.push($.slice(w,E));const W=$.indexOf("}",E);if(W===-1){f.push($.slice(E));break}if($[E+1]==="{"&&$[W+1]==="}")f.push($.slice(E+1,W)),w=W+2;const L=$.substring(E+1,W);if(L.includes("#")){const[X,R]=L.split("#");f.push(v1(G[X],R))}else f.push(G[L]);w=W+1}return f.join("")};var Z8=({ref:$},U)=>{return{...U.endpointParams,...U.referenceRecord}[$]};var G0=($,U,f)=>{if(typeof $==="string")return u1($,f);else if($.fn)return y1($,f);else if($.ref)return Z8($,f);throw new H(`'${U}': ${String($)} is not a string, function or reference.`)};var y1=({fn:$,argv:U},f)=>{const G=U.map((E)=>["boolean","number"].includes(typeof E)?E:G0(E,"arg",f)),w=$.split(".");if(w[0]in t0&&w[1]!=null)return t0[w[0]][w[1]](...G);return R8[$](...G)};var F8=({assign:$,...U},f)=>{if($&&$ in f.referenceRecord)throw new H(`'${$}' is already defined in Reference Record.`);const G=y1(U,f);return f.logger?.debug?.(`${t} evaluateCondition: ${_(U)} = ${_(G)}`),{result:G===""?!0:!!G,...$!=null&&{toAssign:{name:$,value:G}}}};var N0=($=[],U)=>{const f={};for(let G of $){const{result:w,toAssign:E}=F8(G,{...U,referenceRecord:{...U.referenceRecord,...f}});if(!w)return{result:w};if(E)f[E.name]=E.value,U.logger?.debug?.(`${t} assign: ${E.name} := ${_(E.value)}`)}return{result:!0,referenceRecord:f}};var I8=($,U)=>Object.entries($).reduce((f,[G,w])=>({...f,[G]:w.map((E)=>{const W=G0(E,"Header value entry",U);if(typeof W!=="string")throw new H(`Header '${G}' value '${W}' is not a string`);return W})}),{});var IU=($,U)=>{if(Array.isArray($))return $.map((f)=>IU(f,U));switch(typeof $){case"string":return u1($,U);case"object":if($===null)throw new H(`Unexpected endpoint property: ${$}`);return _1($,U);case"boolean":return $;default:throw new H(`Unexpected endpoint property type: ${typeof $}`)}};var _1=($,U)=>Object.entries($).reduce((f,[G,w])=>({...f,[G]:IU(w,U)}),{});var Y8=($,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 Q8=($,U)=>{const{conditions:f,endpoint:G}=$,{result:w,referenceRecord:E}=N0(f,U);if(!w)return;const W={...U,referenceRecord:{...U.referenceRecord,...E}},{url:L,properties:X,headers:R}=G;return U.logger?.debug?.(`${t} Resolving endpoint from template: ${_(G)}`),{...R!=null&&{headers:I8(R,W)},...X!=null&&{properties:_1(X,W)},url:Y8(L,W)}};var z8=($,U)=>{const{conditions:f,error:G}=$,{result:w,referenceRecord:E}=N0(f,U);if(!w)return;throw new H(G0(G,"Error",{...U,referenceRecord:{...U.referenceRecord,...E}}))};var J8=($,U)=>{const{conditions:f,rules:G}=$,{result:w,referenceRecord:E}=N0(f,U);if(!w)return;return d1(G,{...U,referenceRecord:{...U.referenceRecord,...E}})};var d1=($,U)=>{for(let f of $)if(f.type==="endpoint"){const G=Q8(f,U);if(G)return G}else if(f.type==="error")z8(f,U);else if(f.type==="tree"){const G=J8(f,U);if(G)return G}else throw new H(`Unknown endpoint rule: ${f}`);throw new H("Rules evaluation failed")};var uY=($,U)=>{const{endpointParams:f,logger:G}=U,{parameters:w,rules:E}=$;U.logger?.debug?.(`${t} Initial EndpointParams: ${_(f)}`);const W=Object.entries(w).filter(([,R])=>R.default!=null).map(([R,Z])=>[R,Z.default]);if(W.length>0)for(let[R,Z]of W)f[R]=f[R]??Z;const L=Object.entries(w).filter(([,R])=>R.required).map(([R])=>R);for(let R of L)if(f[R]==null)throw new H(`Missing required parameter: '${R}'`);const X=d1(E,{endpointParams:f,logger:G,referenceRecord:{}});if(U.endpointParams?.Endpoint)try{const R=new URL(U.endpointParams.Endpoint),{protocol:Z,port:F}=R;X.url.protocol=Z,X.url.port=F}catch(R){}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(!o0($))return!1;if($.length<3||$.length>63)return!1;if($!==$.toLowerCase())return!1;if(r0($))return!1;return!0};var T8=($)=>{const U=$.split(":");if(U.length<6)return null;const[f,G,w,E,W,...L]=U;if(f!=="arn"||G===""||w===""||L[0]==="")return null;return{partition:G,service:w,region:E,accountId:W,resourceId:L[0].includes("/")?L[0].split("/"):L}};var M8={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 _Y=M8,dY="",K8=($)=>{const{partitions:U}=_Y;for(let G of U){const{regions:w,outputs:E}=G;for(let[W,L]of Object.entries(w))if(W===$)return{...E,...L}}for(let G of U){const{regionRegex:w,outputs:E}=G;if(new RegExp(w).test($))return{...E}}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 O8=()=>dY;var pY={isVirtualHostableS3Bucket:YU,parseArn:T8,partition:K8};t0.aws=pY;var QU="user-agent",p1="x-amz-user-agent",zU=" ",g1="/",A8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,B8=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,JU="-";var gY=($)=>(U,f)=>async(G)=>{const{request:w}=G;if(!x.isInstance(w))return U(G);const{headers:E}=w,W=f?.userAgent?.map(TU)||[],L=(await $.defaultUserAgentProvider()).map(TU),X=$?.customUserAgent?.map(TU)||[],R=O8(),Z=(R?[R]:[]).concat([...L,...W,...X]).join(zU),F=[...L.filter((Y)=>Y.startsWith("aws-sdk-")),...X].join(zU);if($.runtime!=="browser"){if(F)E[p1]=E[p1]?`${E[QU]} ${F}`:F;E[QU]=Z}else E[p1]=Z;return U({...G,request:w})},TU=($)=>{const U=$[0].split(g1).map((W)=>W.replace(A8,JU)).join(g1),f=$[1]?.replace(B8,JU),G=U.indexOf(g1),w=U.substring(0,G);let E=U.substring(G+1);if(w==="api")E=E.toLowerCase();return[w,E,f].filter((W)=>W&&W.length>0).reduce((W,L,X)=>{switch(X){case 0:return L;case 1:return`${W}/${L}`;default:return`${W}#${L}`}},"")},sY={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},LM=($)=>({applyToStack:(U)=>{U.add(gY($),sY)}});var s1=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips"));var MU=($)=>s1($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$;var TM=($)=>{const{region:U,useFipsEndpoint:f}=$;if(!U)throw new Error("Region is missing");return{...$,region:async()=>{if(typeof U==="string")return MU(U);const G=await U();return MU(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 P0=($,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 E0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(E0||(E0={}));var lY="AWS_USE_DUALSTACK_ENDPOINT",nY="use_dualstack_endpoint";var NM={environmentVariableSelector:($)=>P0($,lY,E0.ENV),configFileSelector:($)=>P0($,nY,E0.CONFIG),default:!1};var mY="AWS_USE_FIPS_ENDPOINT",iY="use_fips_endpoint";var SM={environmentVariableSelector:($)=>P0($,mY,E0.ENV),configFileSelector:($)=>P0($,iY,E0.CONFIG),default:!1};var KU=a0(R0(),1),V8=($)=>$[KU.SMITHY_CONTEXT_KEY]||($[KU.SMITHY_CONTEXT_KEY]={});var a=($)=>{if(typeof $==="function")return $;const U=Promise.resolve($);return()=>U};var H8={environmentVariableSelector:($)=>$["AWS_REGION"],configFileSelector:($)=>$["region"],default:()=>{throw new Error("Region is missing")}},rM={preferredFile:"credentials"};function rY($){return(U)=>async(f)=>{const G=f.request;if(x.isInstance(G)){const{body:w,headers:E}=G;if(w&&Object.keys(E).map((W)=>W.toLowerCase()).indexOf(C8)===-1)try{const W=$(w);G.headers={...G.headers,[C8]:String(W)}}catch(W){}}return U({...f,request:G})}}var C8="content-length",oY={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},BK=($)=>({applyToStack:(U)=>{U.add(rY($.bodyLengthChecker),oY)}});var q8=($,U)=>(f)=>async(G)=>{const{response:w}=await f(G);try{const E=await U(w,$);return{response:w,output:E}}catch(E){if(Object.defineProperty(E,"$response",{value:w}),!("$metadata"in E)){if(E.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof E.$responseBodyText!=="undefined"){if(E.$response)E.$response.body=E.$responseBodyText}}throw E}};var N8=($,U)=>(f,G)=>async(w)=>{const E=G.endpointV2?.url&&$.urlParser?async()=>$.urlParser(G.endpointV2.url):$.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const W=await U(w.input,{...$,endpoint:E});return f({...w,request:W})};function PK($,U,f){return{applyToStack:(G)=>{G.add(q8($,f),tY),G.add(N8($,U),OU)}}}var tY={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},OU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var P8=async($)=>{const U=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=U.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(f5(U)){if($.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!U5(U)||U.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||U.toLowerCase()!==U||U.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},aY=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,eY=/(\d+\.){3}\d+/,$5=/\.\./;var U5=($)=>aY.test($)&&!eY.test($)&&!$5.test($),f5=($)=>{const[U,f,G,,,w]=$.split(":"),E=U==="arn"&&$.split(":").length>=6,W=Boolean(E&&f&&G&&w);if(E&&!W)throw new Error(`Invalid ARN: ${$} was an invalid ARN.`);return W};var j8=($,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:E,hostname:W,port:L,path:X}=w;return`${E}//${W}${L?":"+L:""}${X}`}}return w};return G};var S8="AWS_ENDPOINT_URL",b8="endpoint_url",h8=($)=>({environmentVariableSelector:(U)=>{const f=$.split(" ").map((E)=>E.toUpperCase()),G=U[[S8,...f].join("_")];if(G)return G;const w=U[S8];if(w)return w;return},configFileSelector:(U,f)=>{if(f&&U.services){const w=f[["services",U.services].join(AU)];if(w){const E=$.split(" ").map((L)=>L.toLowerCase()),W=w[[E.join("_"),b8].join(AU)];if(W)return W}}const G=U[b8];if(G)return G;return},default:void 0});var D8=async($)=>Q0(h8($))();var BU=a0(xf(),1),l1=($)=>{if(typeof $==="object"){if("url"in $)return BU.parseUrl($.url);return $}return BU.parseUrl($)};var k8=async($,U,f,G)=>{if(!f.endpoint){const W=await D8(f.serviceId||"");if(W)f.endpoint=()=>Promise.resolve(l1(W))}const w=await w5($,U,f);if(typeof f.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return f.endpointProvider(w,G)},w5=async($,U,f)=>{const G={},w=U?.getEndpointParameterInstructions?.()||{};for(let[E,W]of Object.entries(w))switch(W.type){case"staticContextParams":G[E]=W.value;break;case"contextParams":G[E]=$[W.name];break;case"clientContextParams":case"builtInParams":G[E]=await j8(W.name,E,f)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(W))}if(Object.keys(w).length===0)Object.assign(G,f);if(String(f.serviceId).toLowerCase()==="s3")await P8(G);return G};var c8=({config:$,instructions:U})=>{return(f,G)=>async(w)=>{const E=await k8(w.input,{getEndpointParameterInstructions(){return U}},{...$},G);G.endpointV2=E,G.authSchemes=E.properties?.authSchemes;const W=G.authSchemes?.[0];if(W){G.signing_region=W.signingRegion,G.signing_service=W.signingName;const X=V8(G)?.selectedHttpAuthScheme?.httpAuthOption;if(X)X.signingProperties=Object.assign(X.signingProperties||{},{signing_region:W.signingRegion,signingRegion:W.signingRegion,signing_service:W.signingName,signingName:W.signingName,signingRegionSet:W.signingRegionSet},W.properties)}return f({...w})}};var G5={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:OU.name},$3=($,U)=>({applyToStack:(f)=>{f.addRelativeTo(c8({config:$,instructions:U}),G5)}});var G3=($)=>{const U=$.tls??!0,{endpoint:f}=$,G=f!=null?async()=>l1(await a(f)()):void 0;return{...$,endpoint:G,tls:U,isCustomEndpoint:!!f,useDualstackEndpoint:a($.useDualstackEndpoint??!1),useFipsEndpoint:a($.useFipsEndpoint??!1)}};var m=a0(P$(),1),z3=m.default.v1,J3=m.default.v3,v8=m.default.v4,T3=m.default.v5,M3=m.default.NIL,K3=m.default.version,O3=m.default.validate,A3=m.default.stringify,B3=m.default.parse;var l;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(l||(l={}));var z0=3,x8=l.STANDARD;var u8=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],y8=["TimeoutError","RequestTimeout","RequestTimeoutException"],_8=[500,502,503,504],d8=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var E5=($)=>$.$metadata?.clockSkewCorrected,j0=($)=>$.$metadata?.httpStatusCode===429||u8.includes($.name)||$.$retryable?.throttling==!0,n1=($)=>E5($)||y8.includes($.name)||d8.includes($?.code||"")||_8.includes($.$metadata?.httpStatusCode||0),p8=($)=>{if($.$metadata?.httpStatusCode!==void 0){const U=$.$metadata.httpStatusCode;if(500<=U&&U<=599&&!n1($))return!0;return!1}return!1};class m1{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(),j0($)){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,VU=500,i1=500,HU=5,CU=10,qU=1,r1="amz-sdk-invocation-id",o1="amz-sdk-request";var g8=()=>{let $=J0;return{computeNextBackoffDelay:(G)=>{return Math.floor(Math.min(e0,Math.random()*2**G*$))},setDelayBase:(G)=>{$=G}}};var NU=({retryDelay:$,retryCount:U,retryCost:f})=>{return{getRetryCount:()=>U,getRetryDelay:()=>Math.min(e0,$),getRetryCost:()=>f}};class S0{constructor($){this.maxAttempts=$,this.mode=l.STANDARD,this.capacity=i1,this.retryBackoffStrategy=g8(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return NU({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"?VU:J0);const w=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),E=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,w):w,W=this.getCapacityCost(G);return this.capacity-=W,NU({retryDelay:E,retryCount:$.getRetryCount()+1,retryCost:W})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(i1,this.capacity+($.getRetryCost()??qU))}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"?CU:HU}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class PU{constructor($,U){this.maxAttemptsProvider=$,this.mode=l.ADAPTIVE;const{rateLimiter:f}=U??{};this.rateLimiter=f??new m1,this.standardRetryStrategy=new S0($)}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 s8="AWS_MAX_ATTEMPTS",l8="max_attempts",GO={environmentVariableSelector:($)=>{const U=$[s8];if(!U)return;const f=parseInt(U);if(Number.isNaN(f))throw new Error(`Environment variable ${s8} mast be a number, got "${U}"`);return f},configFileSelector:($)=>{const U=$[l8];if(!U)return;const f=parseInt(U);if(Number.isNaN(f))throw new Error(`Shared config file entry ${l8} mast be a number, got "${U}"`);return f},default:z0},EO=($)=>{const{retryStrategy:U}=$,f=a($.maxAttempts??z0);return{...$,maxAttempts:f,retryStrategy:async()=>{if(U)return U;if(await a($.retryMode)()===l.ADAPTIVE)return new PU(f);return new S0(f)}}},W5="AWS_RETRY_MODE",L5="retry_mode",WO={environmentVariableSelector:($)=>$[W5],configFileSelector:($)=>$[L5],default:x8};import{Readable as X5} from"stream";var n8=($)=>$?.body instanceof X5||typeof ReadableStream!=="undefined"&&$?.body instanceof ReadableStream;var jU=($)=>{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 R5=($)=>(U,f)=>async(G)=>{let w=await $.retryStrategy();const E=await $.maxAttempts();if(Z5(w)){w=w;let W=await w.acquireInitialRetryToken(f.partition_id),L=new Error,X=0,R=0;const{request:Z}=G,F=x.isInstance(Z);if(F)Z.headers[r1]=v8();while(!0)try{if(F)Z.headers[o1]=`attempt=${X+1}; max=${E}`;const{response:Y,output:I}=await U(G);return w.recordSuccess(W),I.$metadata.attempts=X+1,I.$metadata.totalRetryDelay=R,{response:Y,output:I}}catch(Y){const I=F5(Y);if(L=jU(Y),F&&n8(Z))throw(f.logger instanceof m8?console:f.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{W=await w.refreshRetryTokenForRetry(W,I)}catch(O){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=X+1,L.$metadata.totalRetryDelay=R,L}X=W.getRetryCount();const Q=W.getRetryDelay();R+=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)}},Z5=($)=>typeof $.acquireInitialRetryToken!=="undefined"&&typeof $.refreshRetryTokenForRetry!=="undefined"&&typeof $.recordSuccess!=="undefined",F5=($)=>{const U={error:$,errorType:I5($)},f=Q5($.$response);if(f)U.retryAfterHint=f;return U},I5=($)=>{if(j0($))return"THROTTLING";if(n1($))return"TRANSIENT";if(p8($))return"SERVER_ERROR";return"CLIENT_ERROR"},Y5={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},MO=($)=>({applyToStack:(U)=>{U.add(R5($),Y5)}}),Q5=($)=>{if(!SU.isInstance($))return;const U=Object.keys($.headers).find((E)=>E.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 w7,release as G7} from"os";import{env as p6,versions as E7} from"process";var nU={isCrtAvailable:!1};var d6=()=>{if(nU.isCrtAvailable)return["md/crt-avail"];return null};var W7="AWS_SDK_UA_APP_ID",L7="sdk-ua-app-id",CA=({serviceId:$,clientVersion:U})=>{const f=[["aws-sdk-js",U],["ua","2.0"],[`os/${w7()}`,G7()],["lang/js"],["md/nodejs",`${E7.node}`]],G=d6();if(G)f.push(G);if($)f.push([`api/${$}`,U]);if(p6.AWS_EXECUTION_ENV)f.push([`exec-env/${p6.AWS_EXECUTION_ENV}`]);const w=Q0({environmentVariableSelector:(W)=>W[W7],configFileSelector:(W)=>W[L7],default:void 0})();let E=void 0;return async()=>{if(!E){const W=await w;E=W?[...f,[`app/${W}`]]:[...f]}return E}};import{Buffer as X7} from"buffer";import{createHash as R7,createHmac as Z7} from"crypto";var g6=function($,U){if(X7.isBuffer($))return $;if(typeof $==="string")return s6($,U);if(ArrayBuffer.isView($))return mU($.buffer,$.byteOffset,$.byteLength);return mU($)};class F7{constructor($,U){this.algorithmIdentifier=$,this.secret=U,this.reset()}update($,U){this.hash.update(l6(g6($,U)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Z7(this.algorithmIdentifier,g6(this.secret)):R7(this.algorithmIdentifier)}}import{fstatSync as I7,lstatSync as Y7} from"fs";var kA=($)=>{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 Y7($.path).size;else if(typeof $.fd==="number")return I7($.fd).size;throw new Error(`Body Length computation failed for ${$}`)};var t6=a0(T$(),1);var n6="AWS_EXECUTION_ENV",iU="AWS_REGION",rU="AWS_DEFAULT_REGION",m6="AWS_EC2_METADATA_DISABLED",i6=["in-region","cross-region","mobile","standard","legacy"],r6="/latest/meta-data/placement/region";var o6={environmentVariableSelector:($)=>{return $["AWS_DEFAULTS_MODE"]},configFileSelector:($)=>{return $["defaults_mode"]},default:"legacy"};var sA=({region:$=Q0(H8),defaultsMode:U=Q0(o6)}={})=>t6.memoize(async()=>{const f=typeof U==="function"?await U():U;switch(f?.toLowerCase()){case"auto":return Q7($);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 ${i6.join(", ")}, got ${f}`)}}),Q7=async($)=>{if($){const U=typeof $==="function"?await $():$,f=await z7();if(!f)return"standard";if(U===f)return"in-region";else return"cross-region"}return"standard"},z7=async()=>{if(process.env[n6]&&(process.env[iU]||process.env[rU]))return process.env[iU]??process.env[rU];if(!process.env[m6])try{const{getInstanceMetadataEndpoint:$,httpRequest:U}=await import("./chunk-827d2c67c03d1a52.js"),f=await $();return(await U({...f,path:r6})).toString()}catch($){}};var iA=($)=>{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}}},rA=($)=>{return{region:$.region()}};export{M7 as xa,K7 as ya,A7 as za,q7 as Aa,V8 as Ba,a as Ca,P0 as Da,E0 as Ea,ZU as Fa,Pz as Ga,t0 as Ha,uY as Ia,pY as Ja,LM as Ka,NM as La,SM as Ma,H8 as Na,rM as Oa,TM as Pa,BK as Qa,w5 as Ra,PK as Sa,$3 as Ta,G3 as Ua,x8 as Va,v8 as Wa,GO as Xa,EO as Ya,WO as Za,MO as _a,A4 as $a,f7 as ab,CA as bb,F7 as cb,kA as db,sA as eb,iA as fb,rA as gb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{x as K} from"./chunk-a5c18c07abe8fd9c.js";import"./chunk-d93cbffc712a052f.js";import{eb as T} from"./chunk-3042abeb18cf180e.js";import{fb as _} from"./chunk-15e9771e524c5726.js";var r=K(T(),1);var o=K(_(),1);import{exec as y} from"child_process";import{promisify as A} from"util";var x=(c,n,s)=>{if(n.Version!==1)throw Error(`Profile ${c} credential_process did not return Version 1.`);if(n.AccessKeyId===void 0||n.SecretAccessKey===void 0)throw Error(`Profile ${c} credential_process returned invalid credentials.`);if(n.Expiration){const t=new Date;if(new Date(n.Expiration)<t)throw Error(`Profile ${c} credential_process returned expired credentials.`)}let e=n.AccountId;if(!e&&s?.[c]?.aws_account_id)e=s[c].aws_account_id;return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,...n.SessionToken&&{sessionToken:n.SessionToken},...n.Expiration&&{expiration:new Date(n.Expiration)},...n.CredentialScope&&{credentialScope:n.CredentialScope},...e&&{accountId:e}}};var S=async(c,n,s)=>{const e=n[c];if(n[c]){const t=e.credential_process;if(t!==void 0){const w=A(y);try{const{stdout:u}=await w(t);let i;try{i=JSON.parse(u.trim())}catch{throw Error(`Profile ${c} credential_process returned invalid JSON.`)}return x(c,i,n)}catch(u){throw new o.CredentialsProviderError(u.message,{logger:s})}}else throw new o.CredentialsProviderError(`Profile ${c} did not contain credential_process.`,{logger:s})}else throw new o.CredentialsProviderError(`Profile ${c} could not be found in shared credentials file.`,{logger:s})};var $=(c={})=>async()=>{c.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");const n=await r.parseKnownFiles(c);return S(r.getProfileName(c),n,c.logger)};export{$ as fromProcess};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{z as h} from"./chunk-bdf4f2b1862899bb.js";import"./chunk-dc23bfb4fd92e2f0.js";import{sb as _} from"./chunk-f316793e4ec0f386.js";import{Ab as v,Bb as P,vb as N,wb as W,xb as I} from"./chunk-ba051a98cd651063.js";var T=h(_(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var u=h(_(),1);var K=300000,g="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var R={},b=async(e)=>{const{SSOOIDCClient:r}=await import("./chunk-795a1bd1d89efce1.js");if(R[e])return R[e];const s=new r({region:e});return R[e]=s,s};var G=async(e,r)=>{const{CreateTokenCommand:s}=await import("./chunk-795a1bd1d89efce1.js");return(await b(r)).send(new s({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var U=h(_(),1);var D=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new U.TokenProviderError(`Token is expired. ${g}`,!1)};var q=h(_(),1);var p=(e,r,s=!1)=>{if(typeof r==="undefined")throw new q.TokenProviderError(`Value not present for '${e}' in SSO Token${s?". Cannot refresh":""}. ${g}`,!1)};import{promises as B} from"fs";var{writeFile:Q}=B,j=(e,r)=>{const s=W(e),t=JSON.stringify(r,null,2);return Q(s,t)};var X=new Date(0),z=(e={})=>async()=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");const r=await P(e),s=N(e),t=r[s];if(!t)throw new u.TokenProviderError(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!t.sso_session)throw new u.TokenProviderError(`Profile '${s}' is missing required property 'sso_session'.`);const i=t.sso_session,a=(await v(e))[i];if(!a)throw new u.TokenProviderError(`Sso session '${i}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new u.TokenProviderError(`Sso session '${i}' is missing required property '${n}'.`,!1);const{sso_start_url:l,sso_region:f}=a;let o;try{o=await I(i)}catch(n){throw new u.TokenProviderError(`The SSO session token associated with profile=${s} was not found or is invalid. ${g}`,!1)}p("accessToken",o.accessToken),p("expiresAt",o.expiresAt);const{accessToken:E,expiresAt:x}=o,c={token:E,expiration:new Date(x)};if(c.expiration.getTime()-Date.now()>K)return c;if(Date.now()-X.getTime()<30000)return D(c),c;p("clientId",o.clientId,!0),p("clientSecret",o.clientSecret,!0),p("refreshToken",o.refreshToken,!0);try{X.setTime(Date.now());const n=await G(o,f);p("accessToken",n.accessToken),p("expiresIn",n.expiresIn);const w=new Date(Date.now()+n.expiresIn*1000);try{await j(i,{...o,accessToken:n.accessToken,expiresAt:w.toISOString(),refreshToken:n.refreshToken})}catch(C){}return{token:n.accessToken,expiration:w}}catch(n){return D(c),c}};var k=h(_(),1);var y=!1,A=async({ssoStartUrl:e,ssoSession:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:S,clientConfig:a,profile:l,logger:f})=>{let o;const E="To refresh this SSO session run aws sso login with the corresponding profile.";if(r)try{const d=await z({profile:l})();o={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:y,logger:f})}else try{o=await I(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f})}if(new Date(o.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f});const{accessToken:x}=o,{SSOClient:c,GetRoleCredentialsCommand:n}=await import("./chunk-77d1b26236f5feec.js"),w=S||new c(Object.assign({},a??{},{region:a?.region??t}));let C;try{C=await w.send(new n({accountId:s,roleName:i,accessToken:x}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:y,logger:f})}const{roleCredentials:{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:F,credentialScope:L,accountId:M}={}}=C;if(!m||!O||!$||!F)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:y,logger:f});return{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:new Date(F),...L&&{credentialScope:L},...M&&{accountId:M}}};var J=h(_(),1),V=(e,r)=>{const{sso_start_url:s,sso_account_id:t,sso_region:i,sso_role_name:S}=e;if(!s||!t||!i||!S)throw new J.CredentialsProviderError('Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", '+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:r});return e};var Ee=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoSession:S}=e,{ssoClient:a}=e,l=N(e);if(!r&&!s&&!t&&!i&&!S){const o=(await P(e))[l];if(!o)throw new T.CredentialsProviderError(`Profile ${l} was not found.`,{logger:e.logger});if(!H(o))throw new T.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`,{logger:e.logger});if(o?.sso_session){const m=(await v(e))[o.sso_session],O=` configurations in profile ${l} and sso-session ${o.sso_session}`;if(t&&t!==m.sso_region)throw new T.CredentialsProviderError("Conflicting SSO region"+O,{tryNextLink:!1,logger:e.logger});if(r&&r!==m.sso_start_url)throw new T.CredentialsProviderError("Conflicting SSO start_url"+O,{tryNextLink:!1,logger:e.logger});o.sso_region=m.sso_region,o.sso_start_url=m.sso_start_url}const{sso_start_url:E,sso_account_id:x,sso_region:c,sso_role_name:n,sso_session:w}=V(o,e.logger);return A({ssoStartUrl:E,ssoSession:w,ssoAccountId:x,ssoRegion:c,ssoRoleName:n,ssoClient:a,clientConfig:e.clientConfig,profile:l})}else if(!r||!s||!t||!i)throw new T.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return A({ssoStartUrl:r,ssoSession:S,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:a,clientConfig:e.clientConfig,profile:l})};export{V as validateSsoProfile,H as isSsoProfile,Ee as fromSSO};
|