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,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-c1813278ccdc04b8.js";import{y as $} from"./chunk-7ce930fe69575c87.js";import{$ as b,A as ue,B as er,E as be,F as cr,J as je,K as Fe,M as De,N as qe,P as Je,Q as Ve,W as v,X as t,Y as Vr,_,aa as j,ba as F,ca as h,ja as Sr,ka as a,la as jr,ma as We,na as fe,oa as rr,pa as sr,ra as d,sa as o,ua as I} from"./chunk-9113f22a5215c639.js";import{Da as H,Ea as ee,Fa as re,Ga as tr,Ha as Ie,Ia as Re,Ja as Pe,Ka as ar,La as Ae,Ma as Ke,Na as Me,Oa as Be,Pa as mr,Qa as wr,Sa as E,Ta as S,Ua as kr,Va as Le,Xa as Qe,Ya as vr,Za as Xe,_a as Er,ab as q,bb as Ye,cb as Ze,db as He,eb as Ne,fb as ir,gb as lr,wa as nr,xa as or,ya as dr,za as yr} from"./chunk-af6b79a6ce7388ee.js";import"./chunk-a0003b7feea6fae6.js";import{ib as R,jb as Ue} from"./chunk-4cb19a9e82653084.js";import"./chunk-ff086fe014985526.js";import{qb as Ce} from"./chunk-5fd67245740e3908.js";import"./chunk-d26ffb7722e6df54.js";var P=$(H(),1);var se=$(q(),1);var Mr=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(s,r)=>({signingProperties:{config:s,context:r}})}},Z=function(e){return{schemeId:"smithy.api#noAuth"}},ie=async(e,s,r)=>{return{operation:ee(s).operation,region:await re(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},le=(e)=>{const s=[];switch(e.operation){case"CreateToken":{s.push(Z(e));break}case"RegisterClient":{s.push(Z(e));break}case"StartDeviceAuthorization":{s.push(Z(e));break}default:s.push(Mr(e))}return s},he=(e)=>{return{...se.resolveAwsSdkSigV4Config(e)}};var ne=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}},k={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var oe={name:"@aws-sdk/client-sso-oidc",description:"AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso-oidc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso-oidc"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/credential-provider-node":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",peerDependencies:{"@aws-sdk/client-sts":"^3.629.0"},browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso-oidc",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso-oidc"}};var _e=$(q(),1);var xe=$(q(),1),ze=$(H(),1);var de={["required"]:!1,type:"String"},ye={["required"]:!0,default:!1,type:"Boolean"},ce={["ref"]:"Endpoint"},ve={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},Ee={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},m={},te={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},Se={["ref"]:"PartitionResult"},ae={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[Se,"supportsDualStack"]}]},me=[ve],we=[Ee],ke=[{["ref"]:"Region"}],Lr={version:"1.0",parameters:{Region:de,UseDualStack:ye,UseFIPS:ye,Endpoint:de},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[ce]}],rules:[{conditions:me,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:we,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:ce,properties:m,headers:m},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:ke}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:ke,assign:"PartitionResult"}],rules:[{conditions:[ve,Ee],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,te]},ae],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:me,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[te,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[Se,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:m,headers:m},type:"endpoint"},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:we,rules:[{conditions:[ae],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},$e=Lr;var Te=(e,s={})=>{return Re($e,{endpointParams:e,logger:s.logger})};Ie.aws=Pe;var Ge=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??je,base64Encoder:e?.base64Encoder??qe,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Te,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??le,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new xe.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ze.NoAuthSigner}],logger:e?.logger??new be,serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??Ue,utf8Decoder:e?.utf8Decoder??Fe,utf8Encoder:e?.utf8Encoder??De}};var pe=(e)=>{fe(process.version);const s=Ne(e),r=()=>s().then(We),i=Ge(e);return _e.emitWarningIfUnsupportedVersion(process.version),{...i,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??He,credentialDefaultProvider:e?.credentialDefaultProvider??Ce,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ye({serviceId:i.serviceId,clientVersion:oe.version}),maxAttempts:e?.maxAttempts??R(Qe),region:e?.region??R(Me,Be),requestHandler:Je.create(e?.requestHandler??r),retryMode:e?.retryMode??R({...Xe,default:async()=>(await r()).retryMode||Le}),sha256:e?.sha256??Ze.bind(null,"sha256"),streamCollector:e?.streamCollector??Ve,useDualstackEndpoint:e?.useDualstackEndpoint??R(Ae),useFipsEndpoint:e?.useFipsEndpoint??R(Ke)}};var ge=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:r,credentials:i}=e;return{setHttpAuthScheme(l){const n=s.findIndex((T)=>T.schemeId===l.schemeId);if(n===-1)s.push(l);else s.splice(n,1,l)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(l){r=l},httpAuthSchemeProvider(){return r},setCredentials(l){i=l},credentials(){return i}}},Oe=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var U=(e)=>e,hr=(e,s)=>{const r={...U(ir(e)),...U(rr(e)),...U(ue(e)),...U(ge(e))};return s.forEach((i)=>i.configure(r)),{...e,...lr(r),...sr(r),...er(r),...Oe(r)}};class N extends cr{constructor(...[e]){const s=pe(e||{}),r=ne(s),i=tr(r),l=vr(i),n=mr(l),T=nr(n),fr=kr(T),Ar=he(fr),u=hr(Ar,e?.extensions||[]);super(u);this.config=u,this.middlewareStack.use(ar(this.config)),this.middlewareStack.use(Er(this.config)),this.middlewareStack.use(wr(this.config)),this.middlewareStack.use(or(this.config)),this.middlewareStack.use(dr(this.config)),this.middlewareStack.use(yr(this.config)),this.middlewareStack.use(P.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ie,identityProviderConfigProvider:async(Kr)=>new P.DefaultIdentityProviderConfig({"aws.auth#sigv4":Kr.credentials})})),this.middlewareStack.use(P.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class y extends Sr{constructor(e){super(e);Object.setPrototypeOf(this,y.prototype)}}class x extends y{constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});this.name="AccessDeniedException",this.$fault="client",Object.setPrototypeOf(this,x.prototype),this.error=e.error,this.error_description=e.error_description}}class z extends y{constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});this.name="AuthorizationPendingException",this.$fault="client",Object.setPrototypeOf(this,z.prototype),this.error=e.error,this.error_description=e.error_description}}class G extends y{constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,G.prototype),this.error=e.error,this.error_description=e.error_description}}class J extends y{constructor(e){super({name:"InternalServerException",$fault:"server",...e});this.name="InternalServerException",this.$fault="server",Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}class V extends y{constructor(e){super({name:"InvalidClientException",$fault:"client",...e});this.name="InvalidClientException",this.$fault="client",Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}class W extends y{constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});this.name="InvalidGrantException",this.$fault="client",Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}class f extends y{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,f.prototype),this.error=e.error,this.error_description=e.error_description}}class A extends y{constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});this.name="InvalidScopeException",this.$fault="client",Object.setPrototypeOf(this,A.prototype),this.error=e.error,this.error_description=e.error_description}}class K extends y{constructor(e){super({name:"SlowDownException",$fault:"client",...e});this.name="SlowDownException",this.$fault="client",Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}class M extends y{constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});this.name="UnauthorizedClientException",this.$fault="client",Object.setPrototypeOf(this,M.prototype),this.error=e.error,this.error_description=e.error_description}}class B extends y{constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});this.name="UnsupportedGrantTypeException",this.$fault="client",Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}class L extends y{constructor(e){super({name:"InvalidRequestRegionException",$fault:"client",...e});this.name="InvalidRequestRegionException",this.$fault="client",Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description,this.endpoint=e.endpoint,this.region=e.region}}class Q extends y{constructor(e){super({name:"InvalidClientMetadataException",$fault:"client",...e});this.name="InvalidClientMetadataException",this.$fault="client",Object.setPrototypeOf(this,Q.prototype),this.error=e.error,this.error_description=e.error_description}}class X extends y{constructor(e){super({name:"InvalidRedirectUriException",$fault:"client",...e});this.name="InvalidRedirectUriException",this.$fault="client",Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}var $r=(e)=>({...e,...e.clientSecret&&{clientSecret:t},...e.refreshToken&&{refreshToken:t},...e.codeVerifier&&{codeVerifier:t}}),Ir=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Rr=(e)=>({...e,...e.refreshToken&&{refreshToken:t},...e.assertion&&{assertion:t},...e.subjectToken&&{subjectToken:t},...e.codeVerifier&&{codeVerifier:t}}),Pr=(e)=>({...e,...e.accessToken&&{accessToken:t},...e.refreshToken&&{refreshToken:t},...e.idToken&&{idToken:t}}),Tr=(e)=>({...e,...e.clientSecret&&{clientSecret:t}}),br=(e)=>({...e,...e.clientSecret&&{clientSecret:t}});var w=$(q(),1),D=$(H(),1);var Fr=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],code:[],codeVerifier:[],deviceCode:[],grantType:[],redirectUri:[],refreshToken:[],scope:(n)=>I(n)})),r.m("POST").h(i).b(l),r.build()},Dr=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/token");const l=d({[is]:[,"t"]});let n;return n=JSON.stringify(o(e,{assertion:[],clientId:[],code:[],codeVerifier:[],grantType:[],redirectUri:[],refreshToken:[],requestedTokenType:[],scope:(T)=>I(T),subjectToken:[],subjectTokenType:[]})),r.m("POST").h(i).q(l).b(n),r.build()},qr=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/client/register");let l;return l=JSON.stringify(o(e,{clientName:[],clientType:[],entitledApplicationArn:[],grantTypes:(n)=>I(n),issuerUrl:[],redirectUris:(n)=>I(n),scopes:(n)=>I(n)})),r.m("POST").h(i).b(l),r.build()},Ur=async(e,s)=>{const r=D.requestBuilder(e,s),i={"content-type":"application/json"};r.bp("/device_authorization");let l;return l=JSON.stringify(o(e,{clientId:[],clientSecret:[],startUrl:[]})),r.m("POST").h(i).b(l),r.build()},xr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,refreshToken:h,tokenType:h});return Object.assign(r,l),r},zr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{accessToken:h,expiresIn:b,idToken:h,issuedTokenType:h,refreshToken:h,scope:I,tokenType:h});return Object.assign(r,l),r},Gr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{authorizationEndpoint:h,clientId:h,clientIdIssuedAt:_,clientSecret:h,clientSecretExpiresAt:_,tokenEndpoint:h});return Object.assign(r,l),r},Jr=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return Y(e,s);const r=d({$metadata:c(e)}),i=j(F(await w.parseJsonBody(e.body,s)),"body"),l=o(i,{deviceCode:h,expiresIn:b,interval:b,userCode:h,verificationUri:h,verificationUriComplete:h});return Object.assign(r,l),r},Y=async(e,s)=>{const r={...e,body:await w.parseJsonErrorBody(e.body,s)},i=w.loadRestJsonErrorCode(e,r.body);switch(i){case"AccessDeniedException":case"com.amazonaws.ssooidc#AccessDeniedException":throw await Xr(r,s);case"AuthorizationPendingException":case"com.amazonaws.ssooidc#AuthorizationPendingException":throw await Yr(r,s);case"ExpiredTokenException":case"com.amazonaws.ssooidc#ExpiredTokenException":throw await Zr(r,s);case"InternalServerException":case"com.amazonaws.ssooidc#InternalServerException":throw await Hr(r,s);case"InvalidClientException":case"com.amazonaws.ssooidc#InvalidClientException":throw await Nr(r,s);case"InvalidGrantException":case"com.amazonaws.ssooidc#InvalidGrantException":throw await pr(r,s);case"InvalidRequestException":case"com.amazonaws.ssooidc#InvalidRequestException":throw await gr(r,s);case"InvalidScopeException":case"com.amazonaws.ssooidc#InvalidScopeException":throw await ur(r,s);case"SlowDownException":case"com.amazonaws.ssooidc#SlowDownException":throw await es(r,s);case"UnauthorizedClientException":case"com.amazonaws.ssooidc#UnauthorizedClientException":throw await rs(r,s);case"UnsupportedGrantTypeException":case"com.amazonaws.ssooidc#UnsupportedGrantTypeException":throw await ss(r,s);case"InvalidRequestRegionException":case"com.amazonaws.ssooidc#InvalidRequestRegionException":throw await Or(r,s);case"InvalidClientMetadataException":case"com.amazonaws.ssooidc#InvalidClientMetadataException":throw await _r(r,s);case"InvalidRedirectUriException":case"com.amazonaws.ssooidc#InvalidRedirectUriException":throw await Cr(r,s);default:const l=r.body;return Qr({output:e,parsedBody:l,errorCode:i})}},Qr=jr(y),Xr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new x({$metadata:c(e),...r});return a(n,e.body)},Yr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new z({$metadata:c(e),...r});return a(n,e.body)},Zr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new G({$metadata:c(e),...r});return a(n,e.body)},Hr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new J({$metadata:c(e),...r});return a(n,e.body)},Nr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new V({$metadata:c(e),...r});return a(n,e.body)},_r=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new Q({$metadata:c(e),...r});return a(n,e.body)},pr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new W({$metadata:c(e),...r});return a(n,e.body)},Cr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new X({$metadata:c(e),...r});return a(n,e.body)},gr=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new f({$metadata:c(e),...r});return a(n,e.body)},Or=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{endpoint:h,error:h,error_description:h,region:h});Object.assign(r,l);const n=new L({$metadata:c(e),...r});return a(n,e.body)},ur=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new A({$metadata:c(e),...r});return a(n,e.body)},es=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new K({$metadata:c(e),...r});return a(n,e.body)},rs=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new M({$metadata:c(e),...r});return a(n,e.body)},ss=async(e,s)=>{const r=d({}),i=e.body,l=o(i,{error:h,error_description:h});Object.assign(r,l);const n=new B({$metadata:c(e),...r});return a(n,e.body)},c=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var is="aws_iam";class p extends v.classBuilder().ep({...k}).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").f($r,Ir).ser(Fr).de(xr).build(){}class C extends v.classBuilder().ep({...k}).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateTokenWithIAM",{}).n("SSOOIDCClient","CreateTokenWithIAMCommand").f(Rr,Pr).ser(Dr).de(zr).build(){}class g extends v.classBuilder().ep({...k}).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","RegisterClient",{}).n("SSOOIDCClient","RegisterClientCommand").f(void 0,Tr).ser(qr).de(Gr).build(){}class O extends v.classBuilder().ep({...k}).m(function(e,s,r,i){return[E(r,this.serialize,this.deserialize),S(r,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","StartDeviceAuthorization",{}).n("SSOOIDCClient","StartDeviceAuthorizationCommand").f(br,void 0).ser(Ur).de(Jr).build(){}var ls={CreateTokenCommand:p,CreateTokenWithIAMCommand:C,RegisterClientCommand:g,StartDeviceAuthorizationCommand:O};class Wr extends N{}Vr(ls,Wr);export{cr as __Client,B as UnsupportedGrantTypeException,M as UnauthorizedClientException,br as StartDeviceAuthorizationRequestFilterSensitiveLog,O as StartDeviceAuthorizationCommand,K as SlowDownException,y as SSOOIDCServiceException,N as SSOOIDCClient,Wr as SSOOIDC,Tr as RegisterClientResponseFilterSensitiveLog,g as RegisterClientCommand,A as InvalidScopeException,L as InvalidRequestRegionException,f as InvalidRequestException,X as InvalidRedirectUriException,W as InvalidGrantException,Q as InvalidClientMetadataException,V as InvalidClientException,J as InternalServerException,G as ExpiredTokenException,Pr as CreateTokenWithIAMResponseFilterSensitiveLog,Rr as CreateTokenWithIAMRequestFilterSensitiveLog,C as CreateTokenWithIAMCommand,Ir as CreateTokenResponseFilterSensitiveLog,$r as CreateTokenRequestFilterSensitiveLog,p as CreateTokenCommand,z as AuthorizationPendingException,x as AccessDeniedException,v as $Command};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{y as K} from"./chunk-7ce930fe69575c87.js";import"./chunk-9501e589e3e86a96.js";import{rb as v,sb as P} from"./chunk-f1e28c4c1a227c27.js";import{tb as _} from"./chunk-345f66382cf35683.js";import"./chunk-088b47e135832170.js";var m=K(_(),1);import{parse as o} from"url";var z=K(_(),1);import{Buffer as a} from"buffer";import{request as n} from"http";function f(c){return new Promise((I,x)=>{const T=n({method:"GET",...c,hostname:c.hostname?.replace(/^\[(.+)\]$/,"$1")});T.on("error",(N)=>{x(Object.assign(new z.ProviderError("Unable to connect to instance metadata service"),N)),T.destroy()}),T.on("timeout",()=>{x(new z.ProviderError("TimeoutError from instance metadata service")),T.destroy()}),T.on("response",(N)=>{const{statusCode:O=400}=N;if(O<200||300<=O)x(Object.assign(new z.ProviderError("Error response received from instance metadata service"),{statusCode:O})),T.destroy();const u=[];N.on("data",(y)=>{u.push(y)}),N.on("end",()=>{I(a.concat(u)),T.destroy()})}),T.end()})}var D=(c)=>Boolean(c)&&typeof c==="object"&&typeof c.AccessKeyId==="string"&&typeof c.SecretAccessKey==="string"&&typeof c.Token==="string"&&typeof c.Expiration==="string",G=(c)=>({accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.Token,expiration:new Date(c.Expiration),...c.AccountId&&{accountId:c.AccountId}});var fc=1000,uc=0,Q=({maxRetries:c=0,timeout:I=1000})=>({maxRetries:c,timeout:I});var J=(c,I)=>{let x=c();for(let T=0;T<I;T++)x=x.catch(c);return x};var Z="AWS_CONTAINER_CREDENTIALS_FULL_URI",L="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",B="AWS_CONTAINER_AUTHORIZATION_TOKEN",zc=(c={})=>{const{timeout:I,maxRetries:x}=Q(c);return()=>J(async()=>{const T=await d({logger:c.logger}),N=JSON.parse(await s(I,T));if(!D(N))throw new m.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:c.logger});return G(N)},x)},s=async(c,I)=>{if(process.env[B])I.headers={...I.headers,Authorization:process.env[B]};return(await f({...I,timeout:c})).toString()},g="169.254.170.2",l={localhost:!0,"127.0.0.1":!0},r={"http:":!0,"https:":!0},d=async({logger:c})=>{if(process.env[L])return{hostname:g,path:process.env[L]};if(process.env[Z]){const I=o(process.env[Z]);if(!I.hostname||!(I.hostname in l))throw new m.CredentialsProviderError(`${I.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:c});if(!I.protocol||!(I.protocol in r))throw new m.CredentialsProviderError(`${I.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:c});return{...I,port:I.port?parseInt(I.port,10):void 0}}throw new m.CredentialsProviderError("The container metadata credential provider cannot be used unless"+` the ${L} or ${Z} environment`+" variable is set",{tryNextLink:!1,logger:c})};var q=K(_(),1);var U=K(_(),1);class X extends U.CredentialsProviderError{constructor(c,I=!0){super(c,I);this.tryNextLink=I,this.name="InstanceMetadataV1FallbackError",Object.setPrototypeOf(this,X.prototype)}}var j;(function(c){c.IPv4="http://169.254.169.254",c.IPv6="http://[fd00:ec2::254]"})(j||(j={}));var t={environmentVariableSelector:(c)=>c["AWS_EC2_METADATA_SERVICE_ENDPOINT"],configFileSelector:(c)=>c["ec2_metadata_service_endpoint"],default:void 0};var S;(function(c){c.IPv4="IPv4",c.IPv6="IPv6"})(S||(S={}));var e="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",i="ec2_metadata_service_endpoint_mode",F={environmentVariableSelector:(c)=>c[e],configFileSelector:(c)=>c[i],default:S.IPv4};var W=async()=>P(await cc()||await Ic()),cc=async()=>v(t)(),Ic=async()=>{const c=await v(F)();switch(c){case S.IPv4:return j.IPv4;case S.IPv6:return j.IPv6;default:throw new Error(`Unsupported endpoint mode: ${c}.`+` Select from ${Object.values(S)}`)}};var b=(c,I)=>{const x=300+Math.floor(Math.random()*300),T=new Date(Date.now()+x*1000);I.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these "+`credentials will be attempted after ${new Date(T)}.\nFor more information, please visit: `+"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html");const N=c.originalExpiration??c.expiration;return{...c,...N?{originalExpiration:N}:{},expiration:T}};var V=(c,I={})=>{const x=I?.logger||console;let T;return async()=>{let N;try{if(N=await c(),N.expiration&&N.expiration.getTime()<Date.now())N=b(N,x)}catch(O){if(T)x.warn("Credential renew failed: ",O),N=b(T,x);else throw O}return T=N,N}};var k="/latest/meta-data/iam/security-credentials/",Tc="/latest/api/token",H="AWS_EC2_METADATA_V1_DISABLED",R="ec2_metadata_v1_disabled",M="x-aws-ec2-metadata-token",oc=(c={})=>V(Nc(c),{logger:c.logger}),Nc=(c={})=>{let I=!1;const{logger:x,profile:T}=c,{timeout:N,maxRetries:O}=Q(c),u=async(y,E)=>{if(I||E.headers?.[M]==null){let w=!1,h=!1;const C=await v({environmentVariableSelector:(Y)=>{const $=Y[H];if(h=!!$&&$!=="false",$===void 0)throw new q.CredentialsProviderError(`${H} not set in env, checking config file next.`,{logger:c.logger});return h},configFileSelector:(Y)=>{const $=Y[R];return w=!!$&&$!=="false",w},default:!1},{profile:T})();if(c.ec2MetadataV1Disabled||C){const Y=[];if(c.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(w)Y.push(`config file profile (${R})`);if(h)Y.push(`process environment variable (${H})`);throw new X(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}const p=(await J(async()=>{let w;try{w=await Oc(E)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)).trim();return J(async()=>{let w;try{w=await yc(p,E,c)}catch(h){if(h.statusCode===401)I=!1;throw h}return w},y)};return async()=>{const y=await W();if(I)return x?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),u(O,{...y,timeout:N});else{let E;try{E=(await xc({...y,timeout:N})).toString()}catch(A){if(A?.statusCode===400)throw Object.assign(A,{message:"EC2 Metadata token request returned error"});else if(A.message==="TimeoutError"||[403,404,405].includes(A.statusCode))I=!0;return x?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),u(O,{...y,timeout:N})}return u(O,{...y,headers:{[M]:E},timeout:N})}}},xc=async(c)=>f({...c,path:Tc,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Oc=async(c)=>(await f({...c,path:k})).toString(),yc=async(c,I,x)=>{const T=JSON.parse((await f({...I,path:k+c})).toString());if(!D(T))throw new q.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:x.logger});return G(T)};export{Q as providerConfigFromInit,f as httpRequest,W as getInstanceMetadataEndpoint,oc as fromInstanceMetadata,zc as fromContainerMetadata,j as Endpoint,L as ENV_CMDS_RELATIVE_URI,Z as ENV_CMDS_FULL_URI,B as ENV_CMDS_AUTH_TOKEN,fc as DEFAULT_TIMEOUT,uc as DEFAULT_MAX_RETRIES};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{y as x} from"./chunk-7ce930fe69575c87.js";import{pb as S} from"./chunk-9501e589e3e86a96.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env["AWS_PROFILE"]||"default";import{join as b} from"path";import{homedir as N} from"os";import{sep as L} from"path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{const{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;const i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I} from"path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{const t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{const i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j} from"path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{const e={};let t,r;for(let i of o.split(/\r?\n/)){const s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;const n=s.substring(1,s.length-1),m=$.exec(n);if(m){const[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){const n=s.indexOf("=");if(![0,-1].includes(n)){const[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};const F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W} from"fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{const{filepath:e=_(),configFilepath:t=g()}=o,r=f();let s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));const n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{const e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{const e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U} from"crypto";import{join as X} from"path";var H=(o)=>{const t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k} from"fs";var{readFile:M}=k,$e=async(o)=>{const e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as zb,B as Ab,H as Bb,$e as Cb,c as Db,R as Eb,Pe as Fb,He as Gb};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{y as qf,z as T} from"./chunk-7ce930fe69575c87.js";import{C as v,D as Y$,E as rW,H as j$,I as nL,L as lL,P as qZ,S as L0,T as yR,U as NZ,V as zX,W as T0,X as MG,Y as RX,Z as TG} from"./chunk-e05db2eae976681b.js";import{pb as z0} from"./chunk-9501e589e3e86a96.js";import{qb as Y2,rb as X0,sb as E$} from"./chunk-f1e28c4c1a227c27.js";import{tb as L1} from"./chunk-345f66382cf35683.js";import{zb as G$} from"./chunk-088b47e135832170.js";var b0=T((k9,v$)=>{var{defineProperty:$f,getOwnPropertyDescriptor:FF,getOwnPropertyNames:RF}=Object,XF=Object.prototype.hasOwnProperty,c$=(f,$)=>$f(f,"name",{value:$,configurable:!0}),IF=(f,$)=>{for(var U in $)$f(f,U,{get:$[U],enumerable:!0})},ZF=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of RF($))if(!XF.call(f,w)&&w!==U)$f(f,w,{get:()=>$[w],enumerable:!(G=FF($,w))||G.enumerable})}return f},YF=(f)=>ZF($f({},"__esModule",{value:!0}),f),u$={};IF(u$,{getSmithyContext:()=>QF,normalizeProvider:()=>zF});v$.exports=YF(u$);var D$=z0(),QF=c$((f)=>f[D$.SMITHY_CONTEXT_KEY]||(f[D$.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),zF=c$((f)=>{if(typeof f==="function")return f;const $=Promise.resolve(f);return()=>$},"normalizeProvider")});var J0=T((x$)=>{Object.defineProperty(x$,"__esModule",{value:!0});x$.getHomeDir=void 0;var JF=import.meta.require("os"),OF=import.meta.require("path"),ef={},MF=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},TF=()=>{const{HOME:f,USERPROFILE:$,HOMEPATH:U,HOMEDRIVE:G=`C:${OF.sep}`}=process.env;if(f)return f;if($)return $;if(U)return`${G}${U}`;const w=MF();if(!ef[w])ef[w]=JF.homedir();return ef[w]};x$.getHomeDir=TF});var f1=T((y$)=>{Object.defineProperty(y$,"__esModule",{value:!0});y$.getSSOTokenFilepath=void 0;var KF=import.meta.require("crypto"),AF=import.meta.require("path"),BF=J0(),VF=(f)=>{const U=KF.createHash("sha1").update(f).digest("hex");return AF.join(BF.getHomeDir(),".aws","sso","cache",`${U}.json`)};y$.getSSOTokenFilepath=VF});var s$=T((d$)=>{Object.defineProperty(d$,"__esModule",{value:!0});d$.getSSOTokenFromFile=void 0;var HF=import.meta.require("fs"),CF=f1(),{readFile:qF}=HF.promises,NF=async(f)=>{const $=CF.getSSOTokenFilepath(f),U=await qF($,"utf8");return JSON.parse(U)};d$.getSSOTokenFromFile=NF});var U1=T((n$)=>{Object.defineProperty(n$,"__esModule",{value:!0});n$.slurpFile=void 0;var PF=import.meta.require("fs"),{readFile:SF}=PF.promises,$1={},jF=(f,$)=>{if(!$1[f]||($===null||$===void 0?void 0:$.ignoreCache))$1[f]=SF(f,"utf8");return $1[f]};n$.slurpFile=jF});var W1=T((x9,k0)=>{var{defineProperty:Gf,getOwnPropertyDescriptor:bF,getOwnPropertyNames:hF}=Object,kF=Object.prototype.hasOwnProperty,x=(f,$)=>Gf(f,"name",{value:$,configurable:!0}),DF=(f,$)=>{for(var U in $)Gf(f,U,{get:$[U],enumerable:!0})},w1=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of hF($))if(!kF.call(f,w)&&w!==U)Gf(f,w,{get:()=>$[w],enumerable:!(G=bF($,w))||G.enumerable})}return f},E1=(f,$,U)=>(w1(f,$,"default"),U&&w1(U,$,"default")),cF=(f)=>w1(Gf({},"__esModule",{value:!0}),f),h0={};DF(h0,{CONFIG_PREFIX_SEPARATOR:()=>E0,DEFAULT_PROFILE:()=>o$,ENV_PROFILE:()=>i$,getProfileName:()=>uF,loadSharedConfigFiles:()=>a$,loadSsoSessionData:()=>iF,parseKnownFiles:()=>tF});k0.exports=cF(h0);E1(h0,J0(),k0.exports);var i$="AWS_PROFILE",o$="default",uF=x((f)=>f.profile||process.env[i$]||o$,"getProfileName");E1(h0,f1(),k0.exports);E1(h0,s$(),k0.exports);var Uf=z0(),vF=x((f)=>Object.entries(f).filter(([$])=>{const U=$.indexOf(E0);if(U===-1)return!1;return Object.values(Uf.IniSectionType).includes($.substring(0,U))}).reduce(($,[U,G])=>{const w=U.indexOf(E0),E=U.substring(0,w)===Uf.IniSectionType.PROFILE?U.substring(w+1):U;return $[E]=G,$},{...f.default&&{default:f.default}}),"getConfigData"),wf=import.meta.require("path"),xF=J0(),_F="AWS_CONFIG_FILE",t$=x(()=>process.env[_F]||wf.join(xF.getHomeDir(),".aws","config"),"getConfigFilepath"),yF=J0(),pF="AWS_SHARED_CREDENTIALS_FILE",dF=x(()=>process.env[pF]||wf.join(yF.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),gF=J0(),sF=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,nF=["__proto__","profile __proto__"],G1=x((f)=>{const $={};let U,G;for(let w of f.split(/\r?\n/)){const E=w.split(/(^|\s)[;#]/)[0].trim();if(E[0]==="["&&E[E.length-1]==="]"){U=void 0,G=void 0;const L=E.substring(1,E.length-1),F=sF.exec(L);if(F){const[,R,,X]=F;if(Object.values(Uf.IniSectionType).includes(R))U=[R,X].join(E0)}else U=L;if(nF.includes(L))throw new Error(`Found invalid profile name "${L}"`)}else if(U){const L=E.indexOf("=");if(![0,-1].includes(L)){const[F,R]=[E.substring(0,L).trim(),E.substring(L+1).trim()];if(R==="")G=F;else{if(G&&w.trimStart()===w)G=void 0;$[U]=$[U]||{};const X=G?[G,F].join(E0):F;$[U][X]=R}}}}return $},"parseIni"),m$=U1(),r$=x(()=>({}),"swallowError"),E0=".",a$=x(async(f={})=>{const{filepath:$=dF(),configFilepath:U=t$()}=f,G=gF.getHomeDir();let E=$;if($.startsWith("~/"))E=wf.join(G,$.slice(2));let W=U;if(U.startsWith("~/"))W=wf.join(G,U.slice(2));const L=await Promise.all([m$.slurpFile(W,{ignoreCache:f.ignoreCache}).then(G1).then(vF).catch(r$),m$.slurpFile(E,{ignoreCache:f.ignoreCache}).then(G1).catch(r$)]);return{configFile:L[0],credentialsFile:L[1]}},"loadSharedConfigFiles"),lF=x((f)=>Object.entries(f).filter(([$])=>$.startsWith(Uf.IniSectionType.SSO_SESSION+E0)).reduce(($,[U,G])=>({...$,[U.substring(U.indexOf(E0)+1)]:G}),{}),"getSsoSessionData"),mF=U1(),rF=x(()=>({}),"swallowError"),iF=x(async(f={})=>mF.slurpFile(f.configFilepath??t$()).then(G1).then(lF).catch(rF),"loadSsoSessionData"),oF=x((...f)=>{const $={};for(let U of f)for(let[G,w]of Object.entries(U))if($[G]!==void 0)Object.assign($[G],w);else $[G]=w;return $},"mergeConfigFiles"),tF=x(async(f)=>{const $=await a$(f);return oF($.configFile,$.credentialsFile)},"parseKnownFiles")});var UU=T((_9,$U)=>{var F1=function(f){try{const $=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return $.delete("CONFIG"),$.delete("CONFIG_PREFIX_SEPARATOR"),$.delete("ENV"),[...$].join(", ")}catch($){return f}},Ef=Object.defineProperty,aF=Object.getOwnPropertyDescriptor,eF=Object.getOwnPropertyNames,f2=Object.prototype.hasOwnProperty,O0=(f,$)=>Ef(f,"name",{value:$,configurable:!0}),$2=(f,$)=>{for(var U in $)Ef(f,U,{get:$[U],enumerable:!0})},U2=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of eF($))if(!f2.call(f,w)&&w!==U)Ef(f,w,{get:()=>$[w],enumerable:!(G=aF($,w))||G.enumerable})}return f},w2=(f)=>U2(Ef({},"__esModule",{value:!0}),f),fU={};$2(fU,{loadConfig:()=>F2});$U.exports=w2(fU);var D0=L1();O0(F1,"getSelectorName");var G2=O0((f,$)=>async()=>{try{const U=f(process.env);if(U===void 0)throw new Error;return U}catch(U){throw new D0.CredentialsProviderError(U.message||`Not found in ENV: ${F1(f.toString())}`,{logger:$})}},"fromEnv"),e$=W1(),E2=O0((f,{preferredFile:$="config",...U}={})=>async()=>{const G=e$.getProfileName(U),{configFile:w,credentialsFile:E}=await e$.loadSharedConfigFiles(U),W=E[G]||{},L=w[G]||{},F=$==="config"?{...W,...L}:{...L,...W};try{const X=f(F,$==="config"?w:E);if(X===void 0)throw new Error;return X}catch(R){throw new D0.CredentialsProviderError(R.message||`Not found in config files w/ profile [${G}]: ${F1(f.toString())}`,{logger:U.logger})}},"fromSharedConfigFiles"),W2=O0((f)=>typeof f==="function","isFunction"),L2=O0((f)=>W2(f)?async()=>await f():D0.fromStatic(f),"fromStatic"),F2=O0(({environmentVariableSelector:f,configFileSelector:$,default:U},G={})=>D0.memoize(D0.chain(G2(f),E2($,G),L2(U))),"loadConfig")});var FU=T((WU)=>{Object.defineProperty(WU,"__esModule",{value:!0});WU.getEndpointUrlConfig=void 0;var wU=W1(),GU="AWS_ENDPOINT_URL",EU="endpoint_url",R2=(f)=>({environmentVariableSelector:($)=>{const U=f.split(" ").map((E)=>E.toUpperCase()),G=$[[GU,...U].join("_")];if(G)return G;const w=$[GU];if(w)return w;return},configFileSelector:($,U)=>{if(U&&$.services){const w=U[["services",$.services].join(wU.CONFIG_PREFIX_SEPARATOR)];if(w){const E=f.split(" ").map((L)=>L.toLowerCase()),W=w[[E.join("_"),EU].join(wU.CONFIG_PREFIX_SEPARATOR)];if(W)return W}}const G=$[EU];if(G)return G;return},default:void 0});WU.getEndpointUrlConfig=R2});var IU=T((RU)=>{Object.defineProperty(RU,"__esModule",{value:!0});RU.getEndpointFromConfig=void 0;var X2=UU(),I2=FU(),Z2=async(f)=>X2.loadConfig(I2.getEndpointUrlConfig(f))();RU.getEndpointFromConfig=Z2});var zU=T((d9,QU)=>{var{defineProperty:Wf,getOwnPropertyDescriptor:Q2,getOwnPropertyNames:z2}=Object,J2=Object.prototype.hasOwnProperty,O2=(f,$)=>Wf(f,"name",{value:$,configurable:!0}),M2=(f,$)=>{for(var U in $)Wf(f,U,{get:$[U],enumerable:!0})},T2=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of z2($))if(!J2.call(f,w)&&w!==U)Wf(f,w,{get:()=>$[w],enumerable:!(G=Q2($,w))||G.enumerable})}return f},K2=(f)=>T2(Wf({},"__esModule",{value:!0}),f),ZU={};M2(ZU,{parseUrl:()=>YU});QU.exports=K2(ZU);var A2=Y2(),YU=O2((f)=>{if(typeof f==="string")return YU(new URL(f));const{hostname:$,pathname:U,port:G,protocol:w,search:E}=f;let W;if(E)W=A2.parseQueryString(E);return{hostname:$,port:G?parseInt(G):void 0,protocol:w,path:U,query:W}},"parseUrl")});var X1=T((g9,BU)=>{var AU=function(f,$,U){return{applyToStack:(G)=>{G.add(OU(f,U),TU),G.add(MU(f,$),KU)}}},Lf=Object.defineProperty,B2=Object.getOwnPropertyDescriptor,V2=Object.getOwnPropertyNames,H2=Object.prototype.hasOwnProperty,R1=(f,$)=>Lf(f,"name",{value:$,configurable:!0}),C2=(f,$)=>{for(var U in $)Lf(f,U,{get:$[U],enumerable:!0})},q2=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of V2($))if(!H2.call(f,w)&&w!==U)Lf(f,w,{get:()=>$[w],enumerable:!(G=B2($,w))||G.enumerable})}return f},N2=(f)=>q2(Lf({},"__esModule",{value:!0}),f),JU={};C2(JU,{deserializerMiddleware:()=>OU,deserializerMiddlewareOption:()=>TU,getSerdePlugin:()=>AU,serializerMiddleware:()=>MU,serializerMiddlewareOption:()=>KU});BU.exports=N2(JU);var OU=R1((f,$)=>(U)=>async(G)=>{const{response:w}=await U(G);try{const E=await $(w,f);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"),MU=R1((f,$)=>(U,G)=>async(w)=>{var E;const W=((E=G.endpointV2)==null?void 0:E.url)&&f.urlParser?async()=>f.urlParser(G.endpointV2.url):f.endpoint;if(!W)throw new Error("No valid endpoint provider available.");const L=await $(w.input,{...f,endpoint:W});return U({...w,request:L})},"serializerMiddleware"),TU={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},KU={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};R1(AU,"getSerdePlugin")});var jU=T((s9,SU)=>{var{defineProperty:Rf,getOwnPropertyDescriptor:P2,getOwnPropertyNames:S2}=Object,j2=Object.prototype.hasOwnProperty,d=(f,$)=>Rf(f,"name",{value:$,configurable:!0}),b2=(f,$)=>{for(var U in $)Rf(f,U,{get:$[U],enumerable:!0})},h2=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of S2($))if(!j2.call(f,w)&&w!==U)Rf(f,w,{get:()=>$[w],enumerable:!(G=P2($,w))||G.enumerable})}return f},k2=(f)=>h2(Rf({},"__esModule",{value:!0}),f),HU={};b2(HU,{endpointMiddleware:()=>NU,endpointMiddlewareOptions:()=>PU,getEndpointFromInstructions:()=>CU,getEndpointPlugin:()=>g2,resolveEndpointConfig:()=>s2,resolveParams:()=>qU,toEndpointV1:()=>I1});SU.exports=k2(HU);var D2=d(async(f)=>{const $=(f==null?void 0:f.Bucket)||"";if(typeof f.Bucket==="string")f.Bucket=$.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(_2($)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!x2($)||$.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||$.toLowerCase()!==$||$.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),c2=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,u2=/(\d+\.){3}\d+/,v2=/\.\./,x2=d((f)=>c2.test(f)&&!u2.test(f)&&!v2.test(f),"isDnsCompatibleBucketName"),_2=d((f)=>{const[$,U,G,,,w]=f.split(":"),E=$==="arn"&&f.split(":").length>=6,W=Boolean(E&&U&&G&&w);if(E&&!W)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return W},"isArnBucketName"),y2=d((f,$,U)=>{const G=d(async()=>{const w=U[f]??U[$];if(typeof w==="function")return w();return w},"configProvider");if(f==="credentialScope"||$==="CredentialScope")return async()=>{const w=typeof U.credentials==="function"?await U.credentials():U.credentials;return(w==null?void 0:w.credentialScope)??(w==null?void 0:w.CredentialScope)};if(f==="accountId"||$==="AccountId")return async()=>{const w=typeof U.credentials==="function"?await U.credentials():U.credentials;return(w==null?void 0:w.accountId)??(w==null?void 0:w.AccountId)};if(f==="endpoint"||$==="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:F}=w;return`${E}//${W}${L?":"+L:""}${F}`}}return w};return G},"createConfigValueProvider"),p2=IU(),VU=zU(),I1=d((f)=>{if(typeof f==="object"){if("url"in f)return VU.parseUrl(f.url);return f}return VU.parseUrl(f)},"toEndpointV1"),CU=d(async(f,$,U,G)=>{if(!U.endpoint){const W=await p2.getEndpointFromConfig(U.serviceId||"");if(W)U.endpoint=()=>Promise.resolve(I1(W))}const w=await qU(f,$,U);if(typeof U.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return U.endpointProvider(w,G)},"getEndpointFromInstructions"),qU=d(async(f,$,U)=>{var G;const w={},E=((G=$==null?void 0:$.getEndpointParameterInstructions)==null?void 0:G.call($))||{};for(let[W,L]of Object.entries(E))switch(L.type){case"staticContextParams":w[W]=L.value;break;case"contextParams":w[W]=f[L.name];break;case"clientContextParams":case"builtInParams":w[W]=await y2(L.name,W,U)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(L))}if(Object.keys(E).length===0)Object.assign(w,U);if(String(U.serviceId).toLowerCase()==="s3")await D2(w);return w},"resolveParams"),Ff=b0(),NU=d(({config:f,instructions:$})=>{return(U,G)=>async(w)=>{var E,W,L;const F=await CU(w.input,{getEndpointParameterInstructions(){return $}},{...f},G);G.endpointV2=F,G.authSchemes=(E=F.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 X=Ff.getSmithyContext(G),I=(L=X==null?void 0:X.selectedHttpAuthScheme)==null?void 0:L.httpAuthOption;if(I)I.signingProperties=Object.assign(I.signingProperties||{},{signing_region:R.signingRegion,signingRegion:R.signingRegion,signing_service:R.signingName,signingName:R.signingName,signingRegionSet:R.signingRegionSet},R.properties)}return U({...w})}},"endpointMiddleware"),d2=X1(),PU={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:d2.serializerMiddlewareOption.name},g2=d((f,$)=>({applyToStack:(U)=>{U.addRelativeTo(NU({config:f,instructions:$}),PU)}}),"getEndpointPlugin"),s2=d((f)=>{const $=f.tls??!0,{endpoint:U}=f,G=U!=null?async()=>I1(await Ff.normalizeProvider(U)()):void 0;return{...f,endpoint:G,tls:$,isCustomEndpoint:!!U,useDualstackEndpoint:Ff.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:Ff.normalizeProvider(f.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var Z1=T((bU)=>{var l2=function(f){return f&&f.__esModule?f:{default:f}},m2=function(){if(Xf>If.length-16)n2.default.randomFillSync(If),Xf=0;return If.slice(Xf,Xf+=16)};Object.defineProperty(bU,"__esModule",{value:!0});bU.default=m2;var n2=l2(import.meta.require("crypto")),If=new Uint8Array(256),Xf=If.length});var DU=T((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.default=void 0;var i2=/^(?:[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;hU.default=i2});var c0=T((cU)=>{var t2=function(f){return f&&f.__esModule?f:{default:f}},a2=function(f){return typeof f==="string"&&o2.default.test(f)};Object.defineProperty(cU,"__esModule",{value:!0});cU.default=void 0;var o2=t2(DU()),e2=a2;cU.default=e2});var u0=T((xU)=>{var $4=function(f){return f&&f.__esModule?f:{default:f}},vU=function(f,$=0){return h[f[$+0]]+h[f[$+1]]+h[f[$+2]]+h[f[$+3]]+"-"+h[f[$+4]]+h[f[$+5]]+"-"+h[f[$+6]]+h[f[$+7]]+"-"+h[f[$+8]]+h[f[$+9]]+"-"+h[f[$+10]]+h[f[$+11]]+h[f[$+12]]+h[f[$+13]]+h[f[$+14]]+h[f[$+15]]},U4=function(f,$=0){const U=vU(f,$);if(!f4.default(U))throw TypeError("Stringified UUID is invalid");return U};Object.defineProperty(xU,"__esModule",{value:!0});xU.default=void 0;xU.unsafeStringify=vU;var f4=$4(c0()),h=[];for(let f=0;f<256;++f)h.push((f+256).toString(16).slice(1));var w4=U4;xU.default=w4});var gU=T((pU)=>{var L4=function(f){return f&&f.__esModule?f:{default:f}},F4=function(f,$,U){let G=$&&U||0;const w=$||new Array(16);f=f||{};let E=f.node||yU,W=f.clockseq!==void 0?f.clockseq:Y1;if(E==null||W==null){const Y=f.random||(f.rng||E4.default)();if(E==null)E=yU=[Y[0]|1,Y[1],Y[2],Y[3],Y[4],Y[5]];if(W==null)W=Y1=(Y[6]<<8|Y[7])&16383}let L=f.msecs!==void 0?f.msecs:Date.now(),F=f.nsecs!==void 0?f.nsecs:z1+1;const R=L-Q1+(F-z1)/1e4;if(R<0&&f.clockseq===void 0)W=W+1&16383;if((R<0||L>Q1)&&f.nsecs===void 0)F=0;if(F>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Q1=L,z1=F,Y1=W,L+=12219292800000;const X=((L&268435455)*1e4+F)%4294967296;w[G++]=X>>>24&255,w[G++]=X>>>16&255,w[G++]=X>>>8&255,w[G++]=X&255;const I=L/4294967296*1e4&268435455;w[G++]=I>>>8&255,w[G++]=I&255,w[G++]=I>>>24&15|16,w[G++]=I>>>16&255,w[G++]=W>>>8|128,w[G++]=W&255;for(let Y=0;Y<6;++Y)w[G+Y]=E[Y];return $||W4.unsafeStringify(w)};Object.defineProperty(pU,"__esModule",{value:!0});pU.default=void 0;var E4=L4(Z1()),W4=u0(),yU,Y1,Q1=0,z1=0,R4=F4;pU.default=R4});var J1=T((sU)=>{var I4=function(f){return f&&f.__esModule?f:{default:f}},Z4=function(f){if(!X4.default(f))throw TypeError("Invalid UUID");let $;const U=new Uint8Array(16);return U[0]=($=parseInt(f.slice(0,8),16))>>>24,U[1]=$>>>16&255,U[2]=$>>>8&255,U[3]=$&255,U[4]=($=parseInt(f.slice(9,13),16))>>>8,U[5]=$&255,U[6]=($=parseInt(f.slice(14,18),16))>>>8,U[7]=$&255,U[8]=($=parseInt(f.slice(19,23),16))>>>8,U[9]=$&255,U[10]=($=parseInt(f.slice(24,36),16))/1099511627776&255,U[11]=$/4294967296&255,U[12]=$>>>24&255,U[13]=$>>>16&255,U[14]=$>>>8&255,U[15]=$&255,U};Object.defineProperty(sU,"__esModule",{value:!0});sU.default=void 0;var X4=I4(c0()),Y4=Z4;sU.default=Y4});var O1=T((rU)=>{var J4=function(f){return f&&f.__esModule?f:{default:f}},O4=function(f){f=unescape(encodeURIComponent(f));const $=[];for(let U=0;U<f.length;++U)$.push(f.charCodeAt(U));return $},M4=function(f,$,U){function G(w,E,W,L){var F;if(typeof w==="string")w=O4(w);if(typeof E==="string")E=z4.default(E);if(((F=E)===null||F===void 0?void 0:F.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=U(R),R[6]=R[6]&15|$,R[8]=R[8]&63|128,W){L=L||0;for(let X=0;X<16;++X)W[L+X]=R[X];return W}return Q4.unsafeStringify(R)}try{G.name=f}catch(w){}return G.DNS=lU,G.URL=mU,G};Object.defineProperty(rU,"__esModule",{value:!0});rU.URL=rU.DNS=void 0;rU.default=M4;var Q4=u0(),z4=J4(J1()),lU="6ba7b810-9dad-11d1-80b4-00c04fd430c8";rU.DNS=lU;var mU="6ba7b811-9dad-11d1-80b4-00c04fd430c8";rU.URL=mU});var aU=T((oU)=>{var B4=function(f){return f&&f.__esModule?f:{default:f}},V4=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return A4.default.createHash("md5").update(f).digest()};Object.defineProperty(oU,"__esModule",{value:!0});oU.default=void 0;var A4=B4(import.meta.require("crypto")),H4=V4;oU.default=H4});var Uw=T((fw)=>{var eU=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(fw,"__esModule",{value:!0});fw.default=void 0;var C4=eU(O1()),q4=eU(aU()),N4=C4.default("v3",48,q4.default),P4=N4;fw.default=P4});var Ew=T((ww)=>{var j4=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(ww,"__esModule",{value:!0});ww.default=void 0;var S4=j4(import.meta.require("crypto")),b4={randomUUID:S4.default.randomUUID};ww.default=b4});var Xw=T((Fw)=>{var Lw=function(f){return f&&f.__esModule?f:{default:f}},D4=function(f,$,U){if(Ww.default.randomUUID&&!$&&!f)return Ww.default.randomUUID();f=f||{};const G=f.random||(f.rng||h4.default)();if(G[6]=G[6]&15|64,G[8]=G[8]&63|128,$){U=U||0;for(let w=0;w<16;++w)$[U+w]=G[w];return $}return k4.unsafeStringify(G)};Object.defineProperty(Fw,"__esModule",{value:!0});Fw.default=void 0;var Ww=Lw(Ew()),h4=Lw(Z1()),k4=u0(),c4=D4;Fw.default=c4});var Yw=T((Iw)=>{var v4=function(f){return f&&f.__esModule?f:{default:f}},x4=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return u4.default.createHash("sha1").update(f).digest()};Object.defineProperty(Iw,"__esModule",{value:!0});Iw.default=void 0;var u4=v4(import.meta.require("crypto")),_4=x4;Iw.default=_4});var Ow=T((zw)=>{var Qw=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(zw,"__esModule",{value:!0});zw.default=void 0;var y4=Qw(O1()),p4=Qw(Yw()),d4=y4.default("v5",80,p4.default),g4=d4;zw.default=g4});var Kw=T((Mw)=>{Object.defineProperty(Mw,"__esModule",{value:!0});Mw.default=void 0;var s4="00000000-0000-0000-0000-000000000000";Mw.default=s4});var Vw=T((Aw)=>{var l4=function(f){return f&&f.__esModule?f:{default:f}},m4=function(f){if(!n4.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)};Object.defineProperty(Aw,"__esModule",{value:!0});Aw.default=void 0;var n4=l4(c0()),r4=m4;Aw.default=r4});var M1=T((g)=>{var r=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"NIL",{enumerable:!0,get:function(){return e4.default}});Object.defineProperty(g,"parse",{enumerable:!0,get:function(){return wR.default}});Object.defineProperty(g,"stringify",{enumerable:!0,get:function(){return UR.default}});Object.defineProperty(g,"v1",{enumerable:!0,get:function(){return i4.default}});Object.defineProperty(g,"v3",{enumerable:!0,get:function(){return o4.default}});Object.defineProperty(g,"v4",{enumerable:!0,get:function(){return t4.default}});Object.defineProperty(g,"v5",{enumerable:!0,get:function(){return a4.default}});Object.defineProperty(g,"validate",{enumerable:!0,get:function(){return $R.default}});Object.defineProperty(g,"version",{enumerable:!0,get:function(){return fR.default}});var i4=r(gU()),o4=r(Uw()),t4=r(Xw()),a4=r(Ow()),e4=r(Kw()),fR=r(Vw()),$R=r(c0()),UR=r(u0()),wR=r(J1())});var T1=T((L7,Nw)=>{var{defineProperty:Zf,getOwnPropertyDescriptor:GR,getOwnPropertyNames:ER}=Object,WR=Object.prototype.hasOwnProperty,M0=(f,$)=>Zf(f,"name",{value:$,configurable:!0}),LR=(f,$)=>{for(var U in $)Zf(f,U,{get:$[U],enumerable:!0})},FR=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of ER($))if(!WR.call(f,w)&&w!==U)Zf(f,w,{get:()=>$[w],enumerable:!(G=GR($,w))||G.enumerable})}return f},RR=(f)=>FR(Zf({},"__esModule",{value:!0}),f),Hw={};LR(Hw,{isClockSkewCorrectedError:()=>Cw,isClockSkewError:()=>JR,isRetryableByTrait:()=>zR,isServerError:()=>MR,isThrottlingError:()=>OR,isTransientError:()=>qw});Nw.exports=RR(Hw);var XR=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],IR=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ZR=["TimeoutError","RequestTimeout","RequestTimeoutException"],YR=[500,502,503,504],QR=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],zR=M0((f)=>f.$retryable!==void 0,"isRetryableByTrait"),JR=M0((f)=>XR.includes(f.name),"isClockSkewError"),Cw=M0((f)=>{var $;return($=f.$metadata)==null?void 0:$.clockSkewCorrected},"isClockSkewCorrectedError"),OR=M0((f)=>{var $,U;return(($=f.$metadata)==null?void 0:$.httpStatusCode)===429||IR.includes(f.name)||((U=f.$retryable)==null?void 0:U.throttling)==!0},"isThrottlingError"),qw=M0((f)=>{var $;return Cw(f)||ZR.includes(f.name)||QR.includes((f==null?void 0:f.code)||"")||YR.includes((($=f.$metadata)==null?void 0:$.httpStatusCode)||0)},"isTransientError"),MR=M0((f)=>{var $;if((($=f.$metadata)==null?void 0:$.httpStatusCode)!==void 0){const U=f.$metadata.httpStatusCode;if(500<=U&&U<=599&&!qw(f))return!0;return!1}return!1},"isServerError")});var pw=T((F7,yw)=>{var{defineProperty:Yf,getOwnPropertyDescriptor:TR,getOwnPropertyNames:KR}=Object,AR=Object.prototype.hasOwnProperty,s=(f,$)=>Yf(f,"name",{value:$,configurable:!0}),BR=(f,$)=>{for(var U in $)Yf(f,U,{get:$[U],enumerable:!0})},VR=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of KR($))if(!AR.call(f,w)&&w!==U)Yf(f,w,{get:()=>$[w],enumerable:!(G=TR($,w))||G.enumerable})}return f},HR=(f)=>VR(Yf({},"__esModule",{value:!0}),f),Sw={};BR(Sw,{AdaptiveRetryStrategy:()=>jR,ConfiguredRetryStrategy:()=>bR,DEFAULT_MAX_ATTEMPTS:()=>K1,DEFAULT_RETRY_DELAY_BASE:()=>v0,DEFAULT_RETRY_MODE:()=>CR,DefaultRateLimiter:()=>hw,INITIAL_RETRY_TOKENS:()=>A1,INVOCATION_ID_HEADER:()=>NR,MAXIMUM_RETRY_DELAY:()=>B1,NO_RETRY_INCREMENT:()=>uw,REQUEST_HEADER:()=>PR,RETRY_COST:()=>Dw,RETRY_MODES:()=>jw,StandardRetryStrategy:()=>V1,THROTTLING_RETRY_DELAY_BASE:()=>kw,TIMEOUT_RETRY_COST:()=>cw});yw.exports=HR(Sw);var jw=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(jw||{}),K1=3,CR="standard",qR=T1(),bw=class f{constructor($){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=($==null?void 0:$.beta)??0.7,this.minCapacity=($==null?void 0:$.minCapacity)??1,this.minFillRate=($==null?void 0:$.minFillRate)??0.5,this.scaleConstant=($==null?void 0:$.scaleConstant)??0.4,this.smooth=($==null?void 0:$.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((G)=>setTimeout(G,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(),qR.isThrottlingError($)){const w=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=w,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),U=this.cubicThrottle(w),this.enableTokenBucket()}else this.calculateTimeWindow(),U=this.cubicSuccess(this.getCurrentTimeInSeconds());const G=Math.min(U,2*this.measuredTxRate);this.updateTokenBucketRate(G)}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 G=this.requestCount/(U-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=U}}getPrecise($){return parseFloat($.toFixed(8))}};s(bw,"DefaultRateLimiter");var hw=bw,v0=100,B1=20000,kw=500,A1=500,Dw=5,cw=10,uw=1,NR="amz-sdk-invocation-id",PR="amz-sdk-request",SR=s(()=>{let f=v0;return{computeNextBackoffDelay:s((G)=>{return Math.floor(Math.min(B1,Math.random()*2**G*f))},"computeNextBackoffDelay"),setDelayBase:s((G)=>{f=G},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),Pw=s(({retryDelay:f,retryCount:$,retryCost:U})=>{return{getRetryCount:s(()=>$,"getRetryCount"),getRetryDelay:s(()=>Math.min(B1,f),"getRetryDelay"),getRetryCost:s(()=>U,"getRetryCost")}},"createDefaultRetryToken"),vw=class f{constructor($){this.maxAttempts=$,this.mode="standard",this.capacity=A1,this.retryBackoffStrategy=SR(),this.maxAttemptsProvider=typeof $==="function"?$:async()=>$}async acquireInitialRetryToken($){return Pw({retryDelay:v0,retryCount:0})}async refreshRetryTokenForRetry($,U){const G=await this.getMaxAttempts();if(this.shouldRetry($,U,G)){const w=U.errorType;this.retryBackoffStrategy.setDelayBase(w==="THROTTLING"?kw:v0);const E=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),W=U.retryAfterHint?Math.max(U.retryAfterHint.getTime()-Date.now()||0,E):E,L=this.getCapacityCost(w);return this.capacity-=L,Pw({retryDelay:W,retryCount:$.getRetryCount()+1,retryCost:L})}throw new Error("No retry token available")}recordSuccess($){this.capacity=Math.max(A1,this.capacity+($.getRetryCost()??uw))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${K1}`),K1}}shouldRetry($,U,G){return $.getRetryCount()+1<G&&this.capacity>=this.getCapacityCost(U.errorType)&&this.isRetryableError(U.errorType)}getCapacityCost($){return $==="TRANSIENT"?cw:Dw}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}};s(vw,"StandardRetryStrategy");var V1=vw,xw=class f{constructor($,U){this.maxAttemptsProvider=$,this.mode="adaptive";const{rateLimiter:G}=U??{};this.rateLimiter=G??new hw,this.standardRetryStrategy=new V1($)}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($)}};s(xw,"AdaptiveRetryStrategy");var jR=xw,_w=class f extends V1{constructor($,U=v0){super(typeof $==="function"?$:async()=>$);if(typeof U==="number")this.computeNextBackoffDelay=()=>U;else this.computeNextBackoffDelay=U}async refreshRetryTokenForRetry($,U){const G=await super.refreshRetryTokenForRetry($,U);return G.getRetryDelay=()=>this.computeNextBackoffDelay(G.getRetryCount()),G}};s(_w,"ConfiguredRetryStrategy");var bR=_w});var lw=T((R7,nw)=>{var{defineProperty:Qf,getOwnPropertyDescriptor:hR,getOwnPropertyNames:kR}=Object,DR=Object.prototype.hasOwnProperty,_=(f,$)=>Qf(f,"name",{value:$,configurable:!0}),cR=(f,$)=>{for(var U in $)Qf(f,U,{get:$[U],enumerable:!0})},uR=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of kR($))if(!DR.call(f,w)&&w!==U)Qf(f,w,{get:()=>$[w],enumerable:!(G=hR($,w))||G.enumerable})}return f},vR=(f)=>uR(Qf({},"__esModule",{value:!0}),f),sw={};cR(sw,{constructStack:()=>H1});nw.exports=vR(sw);var W0=_((f,$)=>{const U=[];if(f)U.push(f);if($)for(let G of $)U.push(G);return U},"getAllAliases"),a=_((f,$)=>{return`${f||"anonymous"}${$&&$.length>0?` (a.k.a. ${$.join(",")})`:""}`},"getMiddlewareNameWithAliases"),H1=_(()=>{let f=[],$=[],U=!1;const G=new Set,w=_((I)=>I.sort((Y,Z)=>dw[Z.step]-dw[Y.step]||gw[Z.priority||"normal"]-gw[Y.priority||"normal"]),"sort"),E=_((I)=>{let Y=!1;const Z=_((Q)=>{const O=W0(Q.name,Q.aliases);if(O.includes(I)){Y=!0;for(let J of O)G.delete(J);return!1}return!0},"filterCb");return f=f.filter(Z),$=$.filter(Z),Y},"removeByName"),W=_((I)=>{let Y=!1;const Z=_((Q)=>{if(Q.middleware===I){Y=!0;for(let O of W0(Q.name,Q.aliases))G.delete(O);return!1}return!0},"filterCb");return f=f.filter(Z),$=$.filter(Z),Y},"removeByReference"),L=_((I)=>{var Y;return f.forEach((Z)=>{I.add(Z.middleware,{...Z})}),$.forEach((Z)=>{I.addRelativeTo(Z.middleware,{...Z})}),(Y=I.identifyOnResolve)==null||Y.call(I,X.identifyOnResolve()),I},"cloneTo"),F=_((I)=>{const Y=[];return I.before.forEach((Z)=>{if(Z.before.length===0&&Z.after.length===0)Y.push(Z);else Y.push(...F(Z))}),Y.push(I),I.after.reverse().forEach((Z)=>{if(Z.before.length===0&&Z.after.length===0)Y.push(Z);else Y.push(...F(Z))}),Y},"expandRelativeMiddlewareList"),R=_((I=!1)=>{const Y=[],Z=[],Q={};return f.forEach((J)=>{const M={...J,before:[],after:[]};for(let K of W0(M.name,M.aliases))Q[K]=M;Y.push(M)}),$.forEach((J)=>{const M={...J,before:[],after:[]};for(let K of W0(M.name,M.aliases))Q[K]=M;Z.push(M)}),Z.forEach((J)=>{if(J.toMiddleware){const M=Q[J.toMiddleware];if(M===void 0){if(I)return;throw new Error(`${J.toMiddleware} is not found when adding ${a(J.name,J.aliases)} middleware ${J.relation} ${J.toMiddleware}`)}if(J.relation==="after")M.after.push(J);if(J.relation==="before")M.before.push(J)}}),w(Y).map(F).reduce((J,M)=>{return J.push(...M),J},[])},"getMiddlewareList"),X={add:(I,Y={})=>{const{name:Z,override:Q,aliases:O}=Y,J={step:"initialize",priority:"normal",middleware:I,...Y},M=W0(Z,O);if(M.length>0){if(M.some((K)=>G.has(K))){if(!Q)throw new Error(`Duplicate middleware name '${a(Z,O)}'`);for(let K of M){const A=f.findIndex((S)=>{var t;return S.name===K||((t=S.aliases)==null?void 0:t.some((G0)=>G0===K))});if(A===-1)continue;const B=f[A];if(B.step!==J.step||J.priority!==B.priority)throw new Error(`"${a(B.name,B.aliases)}" middleware with ${B.priority} priority in ${B.step} step cannot be overridden by "${a(Z,O)}" middleware with ${J.priority} priority in ${J.step} step.`);f.splice(A,1)}}for(let K of M)G.add(K)}f.push(J)},addRelativeTo:(I,Y)=>{const{name:Z,override:Q,aliases:O}=Y,J={middleware:I,...Y},M=W0(Z,O);if(M.length>0){if(M.some((K)=>G.has(K))){if(!Q)throw new Error(`Duplicate middleware name '${a(Z,O)}'`);for(let K of M){const A=$.findIndex((S)=>{var t;return S.name===K||((t=S.aliases)==null?void 0:t.some((G0)=>G0===K))});if(A===-1)continue;const B=$[A];if(B.toMiddleware!==J.toMiddleware||B.relation!==J.relation)throw new Error(`"${a(B.name,B.aliases)}" middleware ${B.relation} "${B.toMiddleware}" middleware cannot be overridden by "${a(Z,O)}" middleware ${J.relation} "${J.toMiddleware}" middleware.`);$.splice(A,1)}}for(let K of M)G.add(K)}$.push(J)},clone:()=>L(H1()),use:(I)=>{I.applyToStack(X)},remove:(I)=>{if(typeof I==="string")return E(I);else return W(I)},removeByTag:(I)=>{let Y=!1;const Z=_((Q)=>{const{tags:O,name:J,aliases:M}=Q;if(O&&O.includes(I)){const K=W0(J,M);for(let A of K)G.delete(A);return Y=!0,!1}return!0},"filterCb");return f=f.filter(Z),$=$.filter(Z),Y},concat:(I)=>{var Y;const Z=L(H1());return Z.use(I),Z.identifyOnResolve(U||Z.identifyOnResolve()||(((Y=I.identifyOnResolve)==null?void 0:Y.call(I))??!1)),Z},applyToStack:L,identify:()=>{return R(!0).map((I)=>{const Y=I.step??I.relation+" "+I.toMiddleware;return a(I.name,I.aliases)+" - "+Y})},identifyOnResolve(I){if(typeof I==="boolean")U=I;return U},resolve:(I,Y)=>{for(let Z of R().map((Q)=>Q.middleware).reverse())I=Z(I,Y);if(U)console.log(X.identify());return I}};return X},"constructStack"),dw={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},gw={high:3,normal:2,low:1}});var iw=T((mw)=>{Object.defineProperty(mw,"__esModule",{value:!0});mw.getAwsChunkedEncodingStream=void 0;var xR=import.meta.require("stream"),_R=(f,$)=>{const{base64Encoder:U,bodyLengthChecker:G,checksumAlgorithmFn:w,checksumLocationName:E,streamHasher:W}=$,L=U!==void 0&&w!==void 0&&E!==void 0&&W!==void 0,F=L?W(w,f):void 0,R=new xR.Readable({read:()=>{}});return f.on("data",(X)=>{const I=G(X)||0;R.push(`${I.toString(16)}\r\n`),R.push(X),R.push("\r\n")}),f.on("end",async()=>{if(R.push("0\r\n"),L){const X=U(await F);R.push(`${E}:${X}\r\n`),R.push("\r\n")}R.push(null)}),R};mw.getAwsChunkedEncodingStream=_R});var ZG=T((I7,IG)=>{async function N1(f,$,U=ow){const G=$.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(ow,U)))}),new Promise((L)=>{f.on("continue",()=>{clearTimeout(E),L()}),f.on("error",()=>{W=!0,clearTimeout(E),L()})})]);if(!W)GG(f,$.body)}var GG=function(f,$){if($ instanceof wG.Readable){$.pipe(f);return}if($){if(Buffer.isBuffer($)||typeof $==="string"){f.end($);return}const U=$;if(typeof U==="object"&&U.buffer&&typeof U.byteOffset==="number"&&typeof U.byteLength==="number"){f.end(Buffer.from(U.buffer,U.byteOffset,U.byteLength));return}f.end(Buffer.from($));return}f.end()};async function XG(f){const $=[],U=f.getReader();let G=!1,w=0;while(!G){const{done:L,value:F}=await U.read();if(F)$.push(F),w+=F.length;G=L}const E=new Uint8Array(w);let W=0;for(let L of $)E.set(L,W),W+=L.length;return E}var{create:pR,defineProperty:x0,getOwnPropertyDescriptor:dR,getOwnPropertyNames:gR,getPrototypeOf:sR}=Object,nR=Object.prototype.hasOwnProperty,N=(f,$)=>x0(f,"name",{value:$,configurable:!0}),lR=(f,$)=>{for(var U in $)x0(f,U,{get:$[U],enumerable:!0})},aw=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of gR($))if(!nR.call(f,w)&&w!==U)x0(f,w,{get:()=>$[w],enumerable:!(G=dR($,w))||G.enumerable})}return f},mR=(f,$,U)=>(U=f!=null?pR(sR(f)):{},aw($||!f||!f.__esModule?x0(U,"default",{value:f,enumerable:!0}):U,f)),rR=(f)=>aw(x0({},"__esModule",{value:!0}),f),ew={};lR(ew,{DEFAULT_REQUEST_TIMEOUT:()=>eR,NodeHttp2Handler:()=>GX,NodeHttpHandler:()=>fX,streamCollector:()=>WX});IG.exports=rR(ew);var fG=L0(),$G=yR(),C1=import.meta.require("http"),q1=import.meta.require("https"),iR=["ECONNRESET","EPIPE","ETIMEDOUT"],UG=N((f)=>{const $={};for(let U of Object.keys(f)){const G=f[U];$[U]=Array.isArray(G)?G.join(","):G}return $},"getTransformedHeaders"),oR=N((f,$,U=0)=>{if(!U)return;const G=setTimeout(()=>{f.destroy(),$(Object.assign(new Error(`Socket timed out without establishing a connection within ${U} ms`),{name:"TimeoutError"}))},U);f.on("socket",(w)=>{if(w.connecting)w.on("connect",()=>{clearTimeout(G)});else clearTimeout(G)})},"setConnectionTimeout"),tR=N((f,{keepAlive:$,keepAliveMsecs:U})=>{if($!==!0)return;f.on("socket",(G)=>{G.setKeepAlive($,U||0)})},"setSocketKeepAlive"),aR=N((f,$,U=0)=>{f.setTimeout(U,()=>{f.destroy(),$(Object.assign(new Error(`Connection timed out after ${U} ms`),{name:"TimeoutError"}))})},"setSocketTimeout"),wG=import.meta.require("stream"),ow=1000;N(N1,"writeRequestBody");N(GG,"writeBody");var eR=0,EG=class f{constructor($){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((U,G)=>{if(typeof $==="function")$().then((w)=>{U(this.resolveDefaultConfig(w))}).catch(G);else U(this.resolveDefaultConfig($))})}static create($){if(typeof($==null?void 0:$.handle)==="function")return $;return new f($)}static checkSocketUsage($,U,G=console){var w,E,W;const{sockets:L,requests:F,maxSockets:R}=$;if(typeof R!=="number"||R===Infinity)return U;const X=15000;if(Date.now()-X<U)return U;if(L&&F)for(let I in L){const Y=((w=L[I])==null?void 0:w.length)??0,Z=((E=F[I])==null?void 0:E.length)??0;if(Y>=R&&Z>=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 ${Z} 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 U}resolveDefaultConfig($){const{requestTimeout:U,connectionTimeout:G,socketTimeout:w,httpAgent:E,httpsAgent:W}=$||{};return{connectionTimeout:G,requestTimeout:U??w,httpAgent:(()=>{if(E instanceof C1.Agent||typeof(E==null?void 0:E.destroy)==="function")return E;return new C1.Agent({keepAlive:!0,maxSockets:50,...E})})(),httpsAgent:(()=>{if(W instanceof q1.Agent||typeof(W==null?void 0:W.destroy)==="function")return W;return new q1.Agent({keepAlive:!0,maxSockets:50,...W})})(),logger:console}}destroy(){var $,U,G,w;(U=($=this.config)==null?void 0:$.httpAgent)==null||U.destroy(),(w=(G=this.config)==null?void 0:G.httpsAgent)==null||w.destroy()}async handle($,{abortSignal:U}={}){if(!this.config)this.config=await this.configProvider;let G;return new Promise((w,E)=>{let W=void 0;const L=N(async(K)=>{await W,clearTimeout(G),w(K)},"resolve"),F=N(async(K)=>{await W,clearTimeout(G),E(K)},"reject");if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(U==null?void 0:U.aborted){const K=new Error("Request aborted");K.name="AbortError",F(K);return}const R=$.protocol==="https:",X=R?this.config.httpsAgent:this.config.httpAgent;G=setTimeout(()=>{this.socketWarningTimestamp=f.checkSocketUsage(X,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const I=$G.buildQueryString($.query||{});let Y=void 0;if($.username!=null||$.password!=null){const K=$.username??"",A=$.password??"";Y=`${K}:${A}`}let Z=$.path;if(I)Z+=`?${I}`;if($.fragment)Z+=`#${$.fragment}`;const Q={headers:$.headers,host:$.hostname,method:$.method,path:Z,port:$.port,agent:X,auth:Y},J=(R?q1.request:C1.request)(Q,(K)=>{const A=new fG.HttpResponse({statusCode:K.statusCode||-1,reason:K.statusMessage,headers:UG(K.headers),body:K});L({response:A})});if(J.on("error",(K)=>{if(iR.includes(K.code))F(Object.assign(K,{name:"TimeoutError"}));else F(K)}),oR(J,F,this.config.connectionTimeout),aR(J,F,this.config.requestTimeout),U){const K=N(()=>{J.destroy();const A=new Error("Request aborted");A.name="AbortError",F(A)},"onAbort");if(typeof U.addEventListener==="function"){const A=U;A.addEventListener("abort",K,{once:!0}),J.once("close",()=>A.removeEventListener("abort",K))}else U.onabort=K}const M=Q.agent;if(typeof M==="object"&&"keepAlive"in M)tR(J,{keepAlive:M.keepAlive,keepAliveMsecs:M.keepAliveMsecs});W=N1(J,$,this.config.requestTimeout).catch((K)=>{return clearTimeout(G),E(K)})})}updateHttpClientConfig($,U){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return{...G,[$]:U}})}httpHandlerConfigs(){return this.config??{}}};N(EG,"NodeHttpHandler");var fX=EG,tw=import.meta.require("http2"),$X=mR(import.meta.require("http2")),WG=class f{constructor($){this.sessions=[],this.sessions=$??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast($){this.sessions.push($)}contains($){return this.sessions.includes($)}remove($){this.sessions=this.sessions.filter((U)=>U!==$)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy($){for(let U of this.sessions)if(U===$){if(!U.destroyed)U.destroy()}}};N(WG,"NodeHttp2ConnectionPool");var UX=WG,LG=class f{constructor($){if(this.sessionCache=new Map,this.config=$,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease($,U){const G=this.getUrlString($),w=this.sessionCache.get(G);if(w){const F=w.poll();if(F&&!this.config.disableConcurrency)return F}const E=$X.default.connect(G);if(this.config.maxConcurrency)E.settings({maxConcurrentStreams:this.config.maxConcurrency},(F)=>{if(F)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+$.destination.toString())});E.unref();const W=N(()=>{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)),U.requestTimeout)E.setTimeout(U.requestTimeout,W);const L=this.sessionCache.get(G)||new UX;return L.offerLast(E),this.sessionCache.set(G,L),E}deleteSession($,U){const G=this.sessionCache.get($);if(!G)return;if(!G.contains(U))return;G.remove(U),this.sessionCache.set($,G)}release($,U){var G;const w=this.getUrlString($);(G=this.sessionCache.get(w))==null||G.offerLast(U)}destroy(){for(let[$,U]of this.sessionCache){for(let G of U){if(!G.destroyed)G.destroy();U.remove(G)}this.sessionCache.delete($)}}setMaxConcurrentStreams($){if(this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=$}setDisableConcurrentStreams($){this.config.disableConcurrency=$}getUrlString($){return $.destination.toString()}};N(LG,"NodeHttp2ConnectionManager");var wX=LG,FG=class f{constructor($){this.metadata={handlerProtocol:"h2"},this.connectionManager=new wX({}),this.configProvider=new Promise((U,G)=>{if(typeof $==="function")$().then((w)=>{U(w||{})}).catch(G);else U($||{})})}static create($){if(typeof($==null?void 0:$.handle)==="function")return $;return new f($)}destroy(){this.connectionManager.destroy()}async handle($,{abortSignal:U}={}){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 F=!1,R=void 0;const X=N(async(q)=>{await R,E(q)},"resolve"),I=N(async(q)=>{await R,W(q)},"reject");if(U==null?void 0:U.aborted){F=!0;const q=new Error("Request aborted");q.name="AbortError",I(q);return}const{hostname:Y,method:Z,port:Q,protocol:O,query:J}=$;let M="";if($.username!=null||$.password!=null){const q=$.username??"",p=$.password??"";M=`${q}:${p}@`}const K=`${O}//${M}${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}),S=N((q)=>{if(w)this.destroySession(B);F=!0,I(q)},"rejectWithDestroy"),t=$G.buildQueryString(J||{});let G0=$.path;if(t)G0+=`?${t}`;if($.fragment)G0+=`#${$.fragment}`;const u=B.request({...$.headers,[tw.constants.HTTP2_HEADER_PATH]:G0,[tw.constants.HTTP2_HEADER_METHOD]:Z});if(B.ref(),u.on("response",(q)=>{const p=new fG.HttpResponse({statusCode:q[":status"]||-1,headers:UG(q),body:u});if(F=!0,X({response:p}),w)B.close(),this.connectionManager.deleteSession(K,B)}),G)u.setTimeout(G,()=>{u.close();const q=new Error(`Stream timed out because of no activity for ${G} ms`);q.name="TimeoutError",S(q)});if(U){const q=N(()=>{u.close();const p=new Error("Request aborted");p.name="AbortError",S(p)},"onAbort");if(typeof U.addEventListener==="function"){const p=U;p.addEventListener("abort",q,{once:!0}),u.once("close",()=>p.removeEventListener("abort",q))}else U.onabort=q}u.on("frameError",(q,p,eL)=>{S(new Error(`Frame type id ${q} in stream id ${eL} has failed with code ${p}.`))}),u.on("error",S),u.on("aborted",()=>{S(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${u.rstCode}.`))}),u.on("close",()=>{if(B.unref(),w)B.destroy();if(!F)S(new Error("Unexpected error: http2 request did not get a response"))}),R=N1(u,$,G)})}updateHttpClientConfig($,U){this.config=void 0,this.configProvider=this.configProvider.then((G)=>{return{...G,[$]:U}})}httpHandlerConfigs(){return this.config??{}}destroySession($){if(!$.destroyed)$.destroy()}};N(FG,"NodeHttp2Handler");var GX=FG,RG=class f extends wG.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write($,U,G){this.bufferedBytes.push($),G()}};N(RG,"Collector");var EX=RG,WX=N((f)=>{if(LX(f))return XG(f);return new Promise(($,U)=>{const G=new EX;f.pipe(G),f.on("error",(w)=>{G.end(),U(w)}),G.on("error",U),G.on("finish",function(){const w=new Uint8Array(Buffer.concat(this.bufferedBytes));$(w)})})},"streamCollector"),LX=N((f)=>typeof ReadableStream==="function"&&f instanceof ReadableStream,"isReadableStreamInstance");N(XG,"collectReadableStream")});var _0=T((YG)=>{Object.defineProperty(YG,"__esModule",{value:!0});YG.isReadableStream=void 0;var FX=(f)=>{var $;return typeof ReadableStream==="function"&&((($=f===null||f===void 0?void 0:f.constructor)===null||$===void 0?void 0:$.name)===ReadableStream.name||f instanceof ReadableStream)};YG.isReadableStream=FX});var BG=T((KG)=>{Object.defineProperty(KG,"__esModule",{value:!0});KG.sdkStreamMixin=void 0;var XX=RX(),IX=MG(),ZX=TG(),YX=T0(),zG=_0(),JG="The stream has already been transformed.",QX=(f)=>{var $,U;if(!OG(f)&&!zG.isReadableStream(f)){const W=((U=($=f===null||f===void 0?void 0:f.__proto__)===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)||f;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${W}`)}let G=!1;const w=async()=>{if(G)throw new Error(JG);return G=!0,await XX.streamCollector(f)},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(f,{transformToByteArray:w,transformToString:async(W)=>{const L=await w();if(W==="base64")return IX.toBase64(L);else if(W==="hex")return ZX.toHex(L);else if(W===void 0||W==="utf8"||W==="utf-8")return YX.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(JG);if(G=!0,OG(f))return E(f);else if(zG.isReadableStream(f))return f;else throw new Error(`Cannot transform payload to web stream, got ${f}`)}})};KG.sdkStreamMixin=QX;var OG=(f)=>typeof Blob==="function"&&f instanceof Blob});var qG=T((HG)=>{Object.defineProperty(HG,"__esModule",{value:!0});HG.sdkStreamMixin=void 0;var JX=ZG(),OX=zX(),P1=import.meta.require("stream"),MX=import.meta.require("util"),TX=BG(),VG="The stream has already been transformed.",KX=(f)=>{var $,U;if(!(f instanceof P1.Readable))try{return TX.sdkStreamMixin(f)}catch(E){const W=((U=($=f===null||f===void 0?void 0:f.__proto__)===null||$===void 0?void 0:$.constructor)===null||U===void 0?void 0:U.name)||f;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${W}`)}let G=!1;const w=async()=>{if(G)throw new Error(VG);return G=!0,await JX.streamCollector(f)};return Object.assign(f,{transformToByteArray:w,transformToString:async(E)=>{const W=await w();if(E===void 0||Buffer.isEncoding(E))return OX.fromArrayBuffer(W.buffer,W.byteOffset,W.byteLength).toString(E);else return new MX.TextDecoder(E).decode(W)},transformToWebStream:()=>{if(G)throw new Error(VG);if(f.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof P1.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,P1.Readable.toWeb(f)}})};HG.sdkStreamMixin=KX});var SG=T((NG)=>{async function AX(f){if(typeof f.stream==="function")f=f.stream();return f.tee()}Object.defineProperty(NG,"__esModule",{value:!0});NG.splitStream=void 0;NG.splitStream=AX});var kG=T((bG)=>{async function HX(f){if(VX.isReadableStream(f))return BX.splitStream(f);const $=new jG.PassThrough,U=new jG.PassThrough;return f.pipe($),f.pipe(U),[$,U]}Object.defineProperty(bG,"__esModule",{value:!0});bG.splitStream=void 0;var jG=import.meta.require("stream"),BX=SG(),VX=_0();bG.splitStream=HX});var uG=T((DG)=>{async function CX(f,$){var U;let G=0;const w=[],E=f.getReader();let W=!1;while(!W){const{done:R,value:X}=await E.read();if(X)w.push(X),G+=(U=X===null||X===void 0?void 0:X.byteLength)!==null&&U!==void 0?U:0;if(G>=$)break;W=R}E.releaseLock();const L=new Uint8Array(Math.min($,G));let F=0;for(let R of w){if(R.byteLength>L.byteLength-F){L.set(R.subarray(0,L.byteLength-F),F);break}else L.set(R,F);F+=R.length}return L}Object.defineProperty(DG,"__esModule",{value:!0});DG.headStream=void 0;DG.headStream=CX});var yG=T((xG)=>{Object.defineProperty(xG,"__esModule",{value:!0});xG.headStream=void 0;var qX=import.meta.require("stream"),NX=uG(),PX=_0(),SX=(f,$)=>{if(PX.isReadableStream(f))return NX.headStream(f,$);return new Promise((U,G)=>{const w=new vG;w.limit=$,f.pipe(w),f.on("error",(E)=>{w.end(),G(E)}),w.on("error",G),w.on("finish",function(){const E=new Uint8Array(Buffer.concat(this.buffers));U(E)})})};xG.headStream=SX;class vG extends qX.Writable{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write(f,$,U){var G;if(this.buffers.push(f),this.bytesBuffered+=(G=f.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")}U()}}});var lG=T((T7,R0)=>{var gG=function(f,$="utf-8"){if($==="base64")return pG.toBase64(f);return dG.toUtf8(f)},sG=function(f,$){if($==="base64")return j1.mutate(pG.fromBase64(f));return j1.mutate(dG.fromUtf8(f))},zf=Object.defineProperty,jX=Object.getOwnPropertyDescriptor,bX=Object.getOwnPropertyNames,hX=Object.prototype.hasOwnProperty,b1=(f,$)=>zf(f,"name",{value:$,configurable:!0}),kX=(f,$)=>{for(var U in $)zf(f,U,{get:$[U],enumerable:!0})},S1=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of bX($))if(!hX.call(f,w)&&w!==U)zf(f,w,{get:()=>$[w],enumerable:!(G=jX($,w))||G.enumerable})}return f},y0=(f,$,U)=>(S1(f,$,"default"),U&&S1(U,$,"default")),DX=(f)=>S1(zf({},"__esModule",{value:!0}),f),F0={};kX(F0,{Uint8ArrayBlobAdapter:()=>j1});R0.exports=DX(F0);var pG=MG(),dG=T0();b1(gG,"transformToString");b1(sG,"transformFromString");var nG=class f extends Uint8Array{static fromString($,U="utf-8"){switch(typeof $){case"string":return sG($,U);default:throw new Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}}static mutate($){return Object.setPrototypeOf($,f.prototype),$}transformToString($="utf-8"){return gG(this,$)}};b1(nG,"Uint8ArrayBlobAdapter");var j1=nG;y0(F0,iw(),R0.exports);y0(F0,qG(),R0.exports);y0(F0,kG(),R0.exports);y0(F0,yG(),R0.exports);y0(F0,_0(),R0.exports)});var V0=T((K7,zE)=>{var WE=function(f){const $=f.getUTCFullYear(),U=f.getUTCMonth(),G=f.getUTCDay(),w=f.getUTCDate(),E=f.getUTCHours(),W=f.getUTCMinutes(),L=f.getUTCSeconds(),F=w<10?`0${w}`:`${w}`,R=E<10?`0${E}`:`${E}`,X=W<10?`0${W}`:`${W}`,I=L<10?`0${L}`:`${L}`;return`${FI[G]}, ${F} ${d1[U]} ${$} ${R}:${X}:${I} GMT`},Mf=function(f){return encodeURIComponent(f).replace(/[!'()*]/g,function($){return"%"+$.charCodeAt(0).toString(16).toUpperCase()})},g1=function(f,$,U){let G,w,E;if(typeof $==="undefined"&&typeof U==="undefined")G={},E=f;else if(G=f,typeof $==="function")return w=$,E=U,pI(G,w,E);else E=$;for(let W of Object.keys(E)){if(!Array.isArray(E[W])){G[W]=E[W];continue}YE(G,null,E,W)}return G},QE=function(f,$,U){if(U<=0||!Number.isInteger(U))throw new Error("Invalid number of delimiters ("+U+") for splitEvery.");const G=f.split($);if(U===1)return G;const w=[];let E="";for(let W=0;W<G.length;W++){if(E==="")E=G[W];else E+=$+G[W];if((W+1)%U===0)w.push(E),E=""}if(E!=="")w.push(E);return w},Tf=Object.defineProperty,cX=Object.getOwnPropertyDescriptor,uX=Object.getOwnPropertyNames,vX=Object.prototype.hasOwnProperty,z=(f,$)=>Tf(f,"name",{value:$,configurable:!0}),xX=(f,$)=>{for(var U in $)Tf(f,U,{get:$[U],enumerable:!0})},_X=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of uX($))if(!vX.call(f,w)&&w!==U)Tf(f,w,{get:()=>$[w],enumerable:!(G=cX($,w))||G.enumerable})}return f},yX=(f)=>_X(Tf({},"__esModule",{value:!0}),f),rG={};xX(rG,{Client:()=>dX,Command:()=>eG,LazyJsonString:()=>xI,NoOpLogger:()=>pX,SENSITIVE_STRING:()=>nX,ServiceException:()=>qI,StringWrapper:()=>n0,_json:()=>x1,collectBody:()=>gX,convertMap:()=>_I,createAggregatedClient:()=>lX,dateToUtcString:()=>WE,decorateServiceException:()=>FE,emitWarningIfUnsupportedVersion:()=>jI,expectBoolean:()=>rX,expectByte:()=>v1,expectFloat32:()=>Jf,expectInt:()=>oX,expectInt32:()=>c1,expectLong:()=>g0,expectNonNull:()=>aX,expectNumber:()=>d0,expectObject:()=>$E,expectShort:()=>u1,expectString:()=>eX,expectUnion:()=>fI,extendedEncodeURIComponent:()=>Mf,getArrayIfSingleItem:()=>vI,getDefaultClientConfiguration:()=>cI,getDefaultExtensionConfiguration:()=>XE,getValueFromTextNode:()=>IE,handleFloat:()=>wI,limitedParseDouble:()=>p1,limitedParseFloat:()=>GI,limitedParseFloat32:()=>EI,loadConfigsForDefaultMode:()=>SI,logger:()=>s0,map:()=>g1,parseBoolean:()=>mX,parseEpochTimestamp:()=>OI,parseRfc3339DateTime:()=>XI,parseRfc3339DateTimeWithOffset:()=>ZI,parseRfc7231DateTime:()=>JI,resolveDefaultRuntimeConfig:()=>uI,resolvedPath:()=>sI,serializeDateTime:()=>lI,serializeFloat:()=>nI,splitEvery:()=>QE,strictParseByte:()=>EE,strictParseDouble:()=>y1,strictParseFloat:()=>$I,strictParseFloat32:()=>UE,strictParseInt:()=>WI,strictParseInt32:()=>LI,strictParseLong:()=>GE,strictParseShort:()=>K0,take:()=>yI,throwDefaultError:()=>RE,withBaseException:()=>NI});zE.exports=yX(rG);var iG=class f{trace(){}debug(){}info(){}warn(){}error(){}};z(iG,"NoOpLogger");var pX=iG,oG=lw(),tG=class f{constructor($){this.middlewareStack=oG.constructStack(),this.config=$}send($,U,G){const w=typeof U!=="function"?U:void 0,E=typeof U==="function"?U:G,W=$.resolveMiddleware(this.middlewareStack,this.config,w);if(E)W($).then((L)=>E(null,L.output),(L)=>E(L)).catch(()=>{});else return W($).then((L)=>L.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};z(tG,"Client");var dX=tG,h1=lG(),gX=z(async(f=new Uint8Array,$)=>{if(f instanceof Uint8Array)return h1.Uint8ArrayBlobAdapter.mutate(f);if(!f)return h1.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const U=$.streamCollector(f);return h1.Uint8ArrayBlobAdapter.mutate(await U)},"collectBody"),D1=z0(),aG=class f{constructor(){this.middlewareStack=oG.constructStack()}static classBuilder(){return new sX}resolveMiddlewareWithContext($,U,G,{middlewareFn:w,clientName:E,commandName:W,inputFilterSensitiveLog:L,outputFilterSensitiveLog:F,smithyContext:R,additionalContext:X,CommandCtor:I}){for(let J of w.bind(this)(I,$,U,G))this.middlewareStack.use(J);const Y=$.concat(this.middlewareStack),{logger:Z}=U,Q={logger:Z,clientName:E,commandName:W,inputFilterSensitiveLog:L,outputFilterSensitiveLog:F,[D1.SMITHY_CONTEXT_KEY]:{commandInstance:this,...R},...X},{requestHandler:O}=U;return Y.resolve((J)=>O.handle(J.request,G||{}),Q)}};z(aG,"Command");var eG=aG,fE=class f{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=($)=>$,this._outputFilterSensitiveLog=($)=>$,this._serializer=null,this._deserializer=null}init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,U,G={}){return this._smithyContext={service:$,operation:U,...G},this}c($={}){return this._additionalContext=$,this}n($,U){return this._clientName=$,this._commandName=U,this}f($=(G)=>G,U=(G)=>G){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=U,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}build(){var $;const U=this;let G;return G=($=class extends eG{constructor(...[w]){super();this.serialize=U._serializer,this.deserialize=U._deserializer,this.input=w??{},U._init(this)}static getEndpointParameterInstructions(){return U._ep}resolveMiddleware(w,E,W){return this.resolveMiddlewareWithContext(w,E,W,{CommandCtor:G,middlewareFn:U._middlewareFn,clientName:U._clientName,commandName:U._commandName,inputFilterSensitiveLog:U._inputFilterSensitiveLog,outputFilterSensitiveLog:U._outputFilterSensitiveLog,smithyContext:U._smithyContext,additionalContext:U._additionalContext})}},z($,"CommandRef"),$)}};z(fE,"ClassBuilder");var sX=fE,nX="***SensitiveInformation***",lX=z((f,$)=>{for(let U of Object.keys(f)){const G=f[U],w=z(async function(W,L,F){const R=new G(W);if(typeof L==="function")this.send(R,L);else if(typeof F==="function"){if(typeof L!=="object")throw new Error(`Expected http options but got ${typeof L}`);this.send(R,L||{},F)}else return this.send(R,L)},"methodImpl"),E=(U[0].toLowerCase()+U.slice(1)).replace(/Command$/,"");$.prototype[E]=w}},"createAggregatedClient"),mX=z((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),rX=z((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)s0.warn(Of(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){const $=f.toLowerCase();if($==="false"||$==="true")s0.warn(Of(`Expected boolean, got ${typeof f}: ${f}`));if($==="false")return!1;if($==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),d0=z((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){const $=parseFloat(f);if(!Number.isNaN($)){if(String($)!==String(f))s0.warn(Of(`Expected number but observed string: ${f}`));return $}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),iX=Math.ceil(340282346638528860000000000000000000000),Jf=z((f)=>{const $=d0(f);if($!==void 0&&!Number.isNaN($)&&$!==Infinity&&$!==(-Infinity)){if(Math.abs($)>iX)throw new TypeError(`Expected 32-bit float, got ${f}`)}return $},"expectFloat32"),g0=z((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),oX=g0,c1=z((f)=>_1(f,32),"expectInt32"),u1=z((f)=>_1(f,16),"expectShort"),v1=z((f)=>_1(f,8),"expectByte"),_1=z((f,$)=>{const U=g0(f);if(U!==void 0&&tX(U,$)!==U)throw new TypeError(`Expected ${$}-bit integer, got ${f}`);return U},"expectSizedInt"),tX=z((f,$)=>{switch($){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),aX=z((f,$)=>{if(f===null||f===void 0){if($)throw new TypeError(`Expected a non-null value for ${$}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),$E=z((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;const $=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${$}: ${f}`)},"expectObject"),eX=z((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return s0.warn(Of(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),fI=z((f)=>{if(f===null||f===void 0)return;const $=$E(f),U=Object.entries($).filter(([,G])=>G!=null).map(([G])=>G);if(U.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(U.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${U} were not null.`);return $},"expectUnion"),y1=z((f)=>{if(typeof f=="string")return d0(B0(f));return d0(f)},"strictParseDouble"),$I=y1,UE=z((f)=>{if(typeof f=="string")return Jf(B0(f));return Jf(f)},"strictParseFloat32"),UI=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,B0=z((f)=>{const $=f.match(UI);if($===null||$[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),p1=z((f)=>{if(typeof f=="string")return wE(f);return d0(f)},"limitedParseDouble"),wI=p1,GI=p1,EI=z((f)=>{if(typeof f=="string")return wE(f);return Jf(f)},"limitedParseFloat32"),wE=z((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),GE=z((f)=>{if(typeof f==="string")return g0(B0(f));return g0(f)},"strictParseLong"),WI=GE,LI=z((f)=>{if(typeof f==="string")return c1(B0(f));return c1(f)},"strictParseInt32"),K0=z((f)=>{if(typeof f==="string")return u1(B0(f));return u1(f)},"strictParseShort"),EE=z((f)=>{if(typeof f==="string")return v1(B0(f));return v1(f)},"strictParseByte"),Of=z((f)=>{return String(new TypeError(f).stack||f).split("\n").slice(0,5).filter(($)=>!$.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),s0={warn:console.warn},FI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],d1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];z(WE,"dateToUtcString");var RI=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),XI=z((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const $=RI.exec(f);if(!$)throw new TypeError("Invalid RFC-3339 date-time value");const[U,G,w,E,W,L,F,R]=$,X=K0(A0(G)),I=l(w,"month",1,12),Y=l(E,"day",1,31);return p0(X,I,Y,{hours:W,minutes:L,seconds:F,fractionalMilliseconds:R})},"parseRfc3339DateTime"),II=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),ZI=z((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const $=II.exec(f);if(!$)throw new TypeError("Invalid RFC-3339 date-time value");const[U,G,w,E,W,L,F,R,X]=$,I=K0(A0(G)),Y=l(w,"month",1,12),Z=l(E,"day",1,31),Q=p0(I,Y,Z,{hours:W,minutes:L,seconds:F,fractionalMilliseconds:R});if(X.toUpperCase()!="Z")Q.setTime(Q.getTime()-CI(X));return Q},"parseRfc3339DateTimeWithOffset"),YI=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$/),QI=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),zI=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),JI=z((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let $=YI.exec(f);if($){const[U,G,w,E,W,L,F,R]=$;return p0(K0(A0(E)),k1(w),l(G,"day",1,31),{hours:W,minutes:L,seconds:F,fractionalMilliseconds:R})}if($=QI.exec(f),$){const[U,G,w,E,W,L,F,R]=$;return KI(p0(MI(E),k1(w),l(G,"day",1,31),{hours:W,minutes:L,seconds:F,fractionalMilliseconds:R}))}if($=zI.exec(f),$){const[U,G,w,E,W,L,F,R]=$;return p0(K0(A0(R)),k1(G),l(w.trimLeft(),"day",1,31),{hours:E,minutes:W,seconds:L,fractionalMilliseconds:F})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),OI=z((f)=>{if(f===null||f===void 0)return;let $;if(typeof f==="number")$=f;else if(typeof f==="string")$=y1(f);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN($)||$===Infinity||$===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round($*1000))},"parseEpochTimestamp"),p0=z((f,$,U,G)=>{const w=$-1;return BI(f,w,U),new Date(Date.UTC(f,w,U,l(G.hours,"hour",0,23),l(G.minutes,"minute",0,59),l(G.seconds,"seconds",0,60),HI(G.fractionalMilliseconds)))},"buildDate"),MI=z((f)=>{const $=(new Date()).getUTCFullYear(),U=Math.floor($/100)*100+K0(A0(f));if(U<$)return U+100;return U},"parseTwoDigitYear"),TI=1576800000000,KI=z((f)=>{if(f.getTime()-(new Date()).getTime()>TI)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),k1=z((f)=>{const $=d1.indexOf(f);if($<0)throw new TypeError(`Invalid month: ${f}`);return $+1},"parseMonthByShortName"),AI=[31,28,31,30,31,30,31,31,30,31,30,31],BI=z((f,$,U)=>{let G=AI[$];if($===1&&VI(f))G=29;if(U>G)throw new TypeError(`Invalid day for ${d1[$]} in ${f}: ${U}`)},"validateDayOfMonth"),VI=z((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),l=z((f,$,U,G)=>{const w=EE(A0(f));if(w<U||w>G)throw new TypeError(`${$} must be between ${U} and ${G}, inclusive`);return w},"parseDateValue"),HI=z((f)=>{if(f===null||f===void 0)return 0;return UE("0."+f)*1000},"parseMilliseconds"),CI=z((f)=>{const $=f[0];let U=1;if($=="+")U=1;else if($=="-")U=-1;else throw new TypeError(`Offset direction, ${$}, must be "+" or "-"`);const G=Number(f.substring(1,3)),w=Number(f.substring(4,6));return U*(G*60+w)*60*1000},"parseOffsetToMilliseconds"),A0=z((f)=>{let $=0;while($<f.length-1&&f.charAt($)==="0")$++;if($===0)return f;return f.slice($)},"stripLeadingZeroes"),LE=class f extends Error{constructor($){super($.message);Object.setPrototypeOf(this,f.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}};z(LE,"ServiceException");var qI=LE,FE=z((f,$={})=>{Object.entries($).filter(([,G])=>G!==void 0).forEach(([G,w])=>{if(f[G]==null||f[G]==="")f[G]=w});const U=f.message||f.Message||"UnknownError";return f.message=U,delete f.Message,f},"decorateServiceException"),RE=z(({output:f,parsedBody:$,exceptionCtor:U,errorCode:G})=>{const w=PI(f),E=w.httpStatusCode?w.httpStatusCode+"":void 0,W=new U({name:($==null?void 0:$.code)||($==null?void 0:$.Code)||G||E||"UnknownError",$fault:"client",$metadata:w});throw FE(W,$)},"throwDefaultError"),NI=z((f)=>{return({output:$,parsedBody:U,errorCode:G})=>{RE({output:$,parsedBody:U,exceptionCtor:f,errorCode:G})}},"withBaseException"),PI=z((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),SI=z((f)=>{switch(f){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"),mG=!1,jI=z((f)=>{if(f&&!mG&&parseInt(f.substring(1,f.indexOf(".")))<16)mG=!0},"emitWarningIfUnsupportedVersion"),bI=z((f)=>{const $=[];for(let U in D1.AlgorithmId){const G=D1.AlgorithmId[U];if(f[G]===void 0)continue;$.push({algorithmId:()=>G,checksumConstructor:()=>f[G]})}return{_checksumAlgorithms:$,addChecksumAlgorithm(U){this._checksumAlgorithms.push(U)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),hI=z((f)=>{const $={};return f.checksumAlgorithms().forEach((U)=>{$[U.algorithmId()]=U.checksumConstructor()}),$},"resolveChecksumRuntimeConfig"),kI=z((f)=>{let $=f.retryStrategy;return{setRetryStrategy(U){$=U},retryStrategy(){return $}}},"getRetryConfiguration"),DI=z((f)=>{const $={};return $.retryStrategy=f.retryStrategy(),$},"resolveRetryRuntimeConfig"),XE=z((f)=>{return{...bI(f),...kI(f)}},"getDefaultExtensionConfiguration"),cI=XE,uI=z((f)=>{return{...hI(f),...DI(f)}},"resolveDefaultRuntimeConfig");z(Mf,"extendedEncodeURIComponent");var vI=z((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),IE=z((f)=>{for(let U in f)if(f.hasOwnProperty(U)&&f[U]["#text"]!==void 0)f[U]=f[U]["#text"];else if(typeof f[U]==="object"&&f[U]!==null)f[U]=IE(f[U]);return f},"getValueFromTextNode"),n0=z(function(){const f=Object.getPrototypeOf(this).constructor,U=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(U,f.prototype),U},"StringWrapper");n0.prototype=Object.create(String.prototype,{constructor:{value:n0,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(n0,String);var ZE=class f extends n0{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject($){if($ instanceof f)return $;else if($ instanceof String||typeof $==="string")return new f($);return new f(JSON.stringify($))}};z(ZE,"LazyJsonString");var xI=ZE;z(g1,"map");var _I=z((f)=>{const $={};for(let[U,G]of Object.entries(f||{}))$[U]=[,G];return $},"convertMap"),yI=z((f,$)=>{const U={};for(let G in $)YE(U,f,$,G);return U},"take"),pI=z((f,$,U)=>{return g1(f,Object.entries(U).reduce((G,[w,E])=>{if(Array.isArray(E))G[w]=E;else if(typeof E==="function")G[w]=[$,E()];else G[w]=[$,E];return G},{}))},"mapWithFilter"),YE=z((f,$,U,G)=>{if($!==null){let W=U[G];if(typeof W==="function")W=[,W];const[L=dI,F=gI,R=G]=W;if(typeof L==="function"&&L($[R])||typeof L!=="function"&&!!L)f[G]=F($[R]);return}let[w,E]=U[G];if(typeof E==="function"){let W;const L=w===void 0&&(W=E())!=null,F=typeof w==="function"&&!!w(void 0)||typeof w!=="function"&&!!w;if(L)f[G]=W;else if(F)f[G]=E()}else{const W=w===void 0&&E!=null,L=typeof w==="function"&&!!w(E)||typeof w!=="function"&&!!w;if(W||L)f[G]=E}},"applyInstruction"),dI=z((f)=>f!=null,"nonNullish"),gI=z((f)=>f,"pass"),sI=z((f,$,U,G,w,E)=>{if($!=null&&$[U]!==void 0){const W=G();if(W.length<=0)throw new Error("Empty value provided for input HTTP label: "+U+".");f=f.replace(w,E?W.split("/").map((L)=>Mf(L)).join("/"):Mf(W))}else throw new Error("No value provided for input HTTP label: "+U+".");return f},"resolvedPath"),nI=z((f)=>{if(f!==f)return"NaN";switch(f){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return f}},"serializeFloat"),lI=z((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),x1=z((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter(($)=>$!=null).map(x1);if(typeof f==="object"){const $={};for(let U of Object.keys(f)){if(f[U]==null)continue;$[U]=x1(f[U])}return $}return f},"_json");z(QE,"splitEvery")});var ME=T((JE)=>{Object.defineProperty(JE,"__esModule",{value:!0});JE.isStreamingPayload=void 0;var mI=import.meta.require("stream"),rI=(f)=>(f===null||f===void 0?void 0:f.body)instanceof mI.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;JE.isStreamingPayload=rI});var uE=T((V7,cE)=>{var{defineProperty:Kf,getOwnPropertyDescriptor:iI,getOwnPropertyNames:oI}=Object,tI=Object.prototype.hasOwnProperty,j=(f,$)=>Kf(f,"name",{value:$,configurable:!0}),aI=(f,$)=>{for(var U in $)Kf(f,U,{get:$[U],enumerable:!0})},eI=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of oI($))if(!tI.call(f,w)&&w!==U)Kf(f,w,{get:()=>$[w],enumerable:!(G=iI($,w))||G.enumerable})}return f},f6=(f)=>eI(Kf({},"__esModule",{value:!0}),f),KE={};aI(KE,{AdaptiveRetryStrategy:()=>w6,CONFIG_MAX_ATTEMPTS:()=>n1,CONFIG_RETRY_MODE:()=>SE,ENV_MAX_ATTEMPTS:()=>s1,ENV_RETRY_MODE:()=>PE,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>G6,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>W6,StandardRetryStrategy:()=>qE,defaultDelayDecider:()=>BE,defaultRetryDecider:()=>VE,getOmitRetryHeadersPlugin:()=>L6,getRetryAfterHint:()=>DE,getRetryPlugin:()=>Y6,omitRetryHeadersMiddleware:()=>jE,omitRetryHeadersMiddlewareOptions:()=>bE,resolveRetryConfig:()=>E6,retryMiddleware:()=>hE,retryMiddlewareOptions:()=>kE});cE.exports=f6(KE);var H0=L0(),AE=M1(),C=pw(),$6=j((f,$)=>{const U=f,G=($==null?void 0:$.noRetryIncrement)??C.NO_RETRY_INCREMENT,w=($==null?void 0:$.retryCost)??C.RETRY_COST,E=($==null?void 0:$.timeoutRetryCost)??C.TIMEOUT_RETRY_COST;let W=f;const L=j((I)=>I.name==="TimeoutError"?E:w,"getCapacityAmount"),F=j((I)=>L(I)<=W,"hasRetryTokens");return Object.freeze({hasRetryTokens:F,retrieveRetryTokens:j((I)=>{if(!F(I))throw new Error("No retry token available");const Y=L(I);return W-=Y,Y},"retrieveRetryTokens"),releaseRetryTokens:j((I)=>{W+=I??G,W=Math.min(W,U)},"releaseRetryTokens")})},"getDefaultRetryQuota"),BE=j((f,$)=>Math.floor(Math.min(C.MAXIMUM_RETRY_DELAY,Math.random()*2**$*f)),"defaultDelayDecider"),e=T1(),VE=j((f)=>{if(!f)return!1;return e.isRetryableByTrait(f)||e.isClockSkewError(f)||e.isThrottlingError(f)||e.isTransientError(f)},"defaultRetryDecider"),HE=j((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),CE=class f{constructor($,U){this.maxAttemptsProvider=$,this.mode=C.RETRY_MODES.STANDARD,this.retryDecider=(U==null?void 0:U.retryDecider)??VE,this.delayDecider=(U==null?void 0:U.delayDecider)??BE,this.retryQuota=(U==null?void 0:U.retryQuota)??$6(C.INITIAL_RETRY_TOKENS)}shouldRetry($,U,G){return U<G&&this.retryDecider($)&&this.retryQuota.hasRetryTokens($)}async getMaxAttempts(){let $;try{$=await this.maxAttemptsProvider()}catch(U){$=C.DEFAULT_MAX_ATTEMPTS}return $}async retry($,U,G){let w,E=0,W=0;const L=await this.getMaxAttempts(),{request:F}=U;if(H0.HttpRequest.isInstance(F))F.headers[C.INVOCATION_ID_HEADER]=AE.v4();while(!0)try{if(H0.HttpRequest.isInstance(F))F.headers[C.REQUEST_HEADER]=`attempt=${E+1}; max=${L}`;if(G==null?void 0:G.beforeRequest)await G.beforeRequest();const{response:R,output:X}=await $(U);if(G==null?void 0:G.afterRequest)G.afterRequest(R);return this.retryQuota.releaseRetryTokens(w),X.$metadata.attempts=E+1,X.$metadata.totalRetryDelay=W,{response:R,output:X}}catch(R){const X=HE(R);if(E++,this.shouldRetry(X,E,L)){w=this.retryQuota.retrieveRetryTokens(X);const I=this.delayDecider(e.isThrottlingError(X)?C.THROTTLING_RETRY_DELAY_BASE:C.DEFAULT_RETRY_DELAY_BASE,E),Y=U6(X.$response),Z=Math.max(Y||0,I);W+=Z,await new Promise((Q)=>setTimeout(Q,Z));continue}if(!X.$metadata)X.$metadata={};throw X.$metadata.attempts=E,X.$metadata.totalRetryDelay=W,X}}};j(CE,"StandardRetryStrategy");var qE=CE,U6=j((f)=>{if(!H0.HttpResponse.isInstance(f))return;const $=Object.keys(f.headers).find((E)=>E.toLowerCase()==="retry-after");if(!$)return;const U=f.headers[$],G=Number(U);if(!Number.isNaN(G))return G*1000;return new Date(U).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),NE=class f extends qE{constructor($,U){const{rateLimiter:G,...w}=U??{};super($,w);this.rateLimiter=G??new C.DefaultRateLimiter,this.mode=C.RETRY_MODES.ADAPTIVE}async retry($,U){return super.retry($,U,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(G)=>{this.rateLimiter.updateClientSendingRate(G)}})}};j(NE,"AdaptiveRetryStrategy");var w6=NE,TE=b0(),s1="AWS_MAX_ATTEMPTS",n1="max_attempts",G6={environmentVariableSelector:(f)=>{const $=f[s1];if(!$)return;const U=parseInt($);if(Number.isNaN(U))throw new Error(`Environment variable ${s1} mast be a number, got "${$}"`);return U},configFileSelector:(f)=>{const $=f[n1];if(!$)return;const U=parseInt($);if(Number.isNaN(U))throw new Error(`Shared config file entry ${n1} mast be a number, got "${$}"`);return U},default:C.DEFAULT_MAX_ATTEMPTS},E6=j((f)=>{const{retryStrategy:$}=f,U=TE.normalizeProvider(f.maxAttempts??C.DEFAULT_MAX_ATTEMPTS);return{...f,maxAttempts:U,retryStrategy:async()=>{if($)return $;if(await TE.normalizeProvider(f.retryMode)()===C.RETRY_MODES.ADAPTIVE)return new C.AdaptiveRetryStrategy(U);return new C.StandardRetryStrategy(U)}}},"resolveRetryConfig"),PE="AWS_RETRY_MODE",SE="retry_mode",W6={environmentVariableSelector:(f)=>f[PE],configFileSelector:(f)=>f[SE],default:C.DEFAULT_RETRY_MODE},jE=j(()=>(f)=>async($)=>{const{request:U}=$;if(H0.HttpRequest.isInstance(U))delete U.headers[C.INVOCATION_ID_HEADER],delete U.headers[C.REQUEST_HEADER];return f($)},"omitRetryHeadersMiddleware"),bE={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},L6=j((f)=>({applyToStack:($)=>{$.addRelativeTo(jE(),bE)}}),"getOmitRetryHeadersPlugin"),F6=V0(),R6=ME(),hE=j((f)=>($,U)=>async(G)=>{var w;let E=await f.retryStrategy();const W=await f.maxAttempts();if(X6(E)){E=E;let L=await E.acquireInitialRetryToken(U.partition_id),F=new Error,R=0,X=0;const{request:I}=G,Y=H0.HttpRequest.isInstance(I);if(Y)I.headers[C.INVOCATION_ID_HEADER]=AE.v4();while(!0)try{if(Y)I.headers[C.REQUEST_HEADER]=`attempt=${R+1}; max=${W}`;const{response:Z,output:Q}=await $(G);return E.recordSuccess(L),Q.$metadata.attempts=R+1,Q.$metadata.totalRetryDelay=X,{response:Z,output:Q}}catch(Z){const Q=I6(Z);if(F=HE(Z),Y&&R6.isStreamingPayload(I))throw(w=U.logger instanceof F6.NoOpLogger?console:U.logger)==null||w.warn("An error was encountered in a non-retryable streaming request."),F;try{L=await E.refreshRetryTokenForRetry(L,Q)}catch(J){if(!F.$metadata)F.$metadata={};throw F.$metadata.attempts=R+1,F.$metadata.totalRetryDelay=X,F}R=L.getRetryCount();const O=L.getRetryDelay();X+=O,await new Promise((J)=>setTimeout(J,O))}}else{if(E=E,E==null?void 0:E.mode)U.userAgent=[...U.userAgent||[],["cfg/retry-mode",E.mode]];return E.retry($,G)}},"retryMiddleware"),X6=j((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),I6=j((f)=>{const $={error:f,errorType:Z6(f)},U=DE(f.$response);if(U)$.retryAfterHint=U;return $},"getRetryErrorInfo"),Z6=j((f)=>{if(e.isThrottlingError(f))return"THROTTLING";if(e.isTransientError(f))return"TRANSIENT";if(e.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),kE={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Y6=j((f)=>({applyToStack:($)=>{$.add(hE(f),kE)}}),"getRetryPlugin"),DE=j((f)=>{if(!H0.HttpResponse.isInstance(f))return;const $=Object.keys(f.headers).find((E)=>E.toLowerCase()==="retry-after");if(!$)return;const U=f.headers[$],G=Number(U);if(!Number.isNaN(G))return new Date(G*1000);return new Date(U)},"getRetryAfterHint")});var m1=T((H7,$W)=>{var _E=function(f){const $=new Map;for(let U of f)$.set(U.schemeId,U);return $},tE=function(f,$){return new eE(f,$)},fW=function(f,$,U,G,w){return H(async function*E(W,L,...F){let R=W.startingToken||void 0,X=!0,I;while(X){if(L[U]=R,w)L[w]=L[w]??W.pageSize;if(W.client instanceof f)I=await v6($,W.client,L,...F);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield I;const Y=R;R=x6(I,G),X=!!(R&&(!W.stopOnSameToken||R!==Y))}return},"paginateOperation")},Bf=Object.defineProperty,Q6=Object.getOwnPropertyDescriptor,z6=Object.getOwnPropertyNames,J6=Object.prototype.hasOwnProperty,H=(f,$)=>Bf(f,"name",{value:$,configurable:!0}),O6=(f,$)=>{for(var U in $)Bf(f,U,{get:$[U],enumerable:!0})},M6=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of z6($))if(!J6.call(f,w)&&w!==U)Bf(f,w,{get:()=>$[w],enumerable:!(G=Q6($,w))||G.enumerable})}return f},T6=(f)=>M6(Bf({},"__esModule",{value:!0}),f),vE={};O6(vE,{DefaultIdentityProviderConfig:()=>P6,EXPIRATION_MS:()=>iE,HttpApiKeyAuthSigner:()=>S6,HttpBearerAuthSigner:()=>j6,NoAuthSigner:()=>b6,RequestBuilder:()=>eE,createIsIdentityExpiredFunction:()=>rE,createPaginator:()=>fW,doesIdentityRequireRefresh:()=>oE,getHttpAuthSchemeEndpointRuleSetPlugin:()=>A6,getHttpAuthSchemePlugin:()=>V6,getHttpSigningPlugin:()=>N6,getSmithyContext:()=>D6,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>yE,httpAuthSchemeMiddleware:()=>l1,httpAuthSchemeMiddlewareOptions:()=>pE,httpSigningMiddleware:()=>dE,httpSigningMiddlewareOptions:()=>gE,isIdentityExpired:()=>h6,memoizeIdentityProvider:()=>k6,normalizeProvider:()=>c6,requestBuilder:()=>tE});$W.exports=T6(vE);var xE=b0();H(_E,"convertHttpAuthSchemesToMap");var l1=H((f,$)=>(U,G)=>async(w)=>{var E;const W=f.httpAuthSchemeProvider(await $.httpAuthSchemeParametersProvider(f,G,w.input)),L=_E(f.httpAuthSchemes),F=xE.getSmithyContext(G),R=[];for(let X of W){const I=L.get(X.schemeId);if(!I){R.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}const Y=I.identityProvider(await $.identityProviderConfigProvider(f));if(!Y){R.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:Z={},signingProperties:Q={}}=((E=X.propertiesExtractor)==null?void 0:E.call(X,f,G))||{};X.identityProperties=Object.assign(X.identityProperties||{},Z),X.signingProperties=Object.assign(X.signingProperties||{},Q),F.selectedHttpAuthScheme={httpAuthOption:X,identity:await Y(X.identityProperties),signer:I.signer};break}if(!F.selectedHttpAuthScheme)throw new Error(R.join("\n"));return U(w)},"httpAuthSchemeMiddleware"),K6=jU(),yE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:K6.endpointMiddlewareOptions.name},A6=H((f,{httpAuthSchemeParametersProvider:$,identityProviderConfigProvider:U})=>({applyToStack:(G)=>{G.addRelativeTo(l1(f,{httpAuthSchemeParametersProvider:$,identityProviderConfigProvider:U}),yE)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),B6=X1(),pE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:B6.serializerMiddlewareOption.name},V6=H((f,{httpAuthSchemeParametersProvider:$,identityProviderConfigProvider:U})=>({applyToStack:(G)=>{G.addRelativeTo(l1(f,{httpAuthSchemeParametersProvider:$,identityProviderConfigProvider:U}),pE)}}),"getHttpAuthSchemePlugin"),Vf=L0(),H6=H((f)=>($)=>{throw $},"defaultErrorHandler"),C6=H((f,$)=>{},"defaultSuccessHandler"),dE=H((f)=>($,U)=>async(G)=>{if(!Vf.HttpRequest.isInstance(G.request))return $(G);const E=xE.getSmithyContext(U).selectedHttpAuthScheme;if(!E)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:W={}},identity:L,signer:F}=E,R=await $({...G,request:await F.sign(G.request,L,W)}).catch((F.errorHandler||H6)(W));return(F.successHandler||C6)(R.response,W),R},"httpSigningMiddleware"),q6=uE(),gE={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:q6.retryMiddlewareOptions.name},N6=H((f)=>({applyToStack:($)=>{$.addRelativeTo(dE(f),gE)}}),"getHttpSigningPlugin"),sE=class f{constructor($){this.authSchemes=new Map;for(let[U,G]of Object.entries($))if(G!==void 0)this.authSchemes.set(U,G)}getIdentityProvider($){return this.authSchemes.get($)}};H(sE,"DefaultIdentityProviderConfig");var P6=sE,Af=z0(),nE=class f{async sign($,U,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(!U.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const w=Vf.HttpRequest.clone($);if(G.in===Af.HttpApiKeyAuthLocation.QUERY)w.query[G.name]=U.apiKey;else if(G.in===Af.HttpApiKeyAuthLocation.HEADER)w.headers[G.name]=G.scheme?`${G.scheme} ${U.apiKey}`:U.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return w}};H(nE,"HttpApiKeyAuthSigner");var S6=nE,lE=class f{async sign($,U,G){const w=Vf.HttpRequest.clone($);if(!U.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return w.headers.Authorization=`Bearer ${U.token}`,w}};H(lE,"HttpBearerAuthSigner");var j6=lE,mE=class f{async sign($,U,G){return $}};H(mE,"NoAuthSigner");var b6=mE,rE=H((f)=>($)=>oE($)&&$.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),iE=300000,h6=rE(iE),oE=H((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),k6=H((f,$,U)=>{if(f===void 0)return;const G=typeof f!=="function"?async()=>Promise.resolve(f):f;let w,E,W,L=!1;const F=H(async(R)=>{if(!E)E=G(R);try{w=await E,W=!0,L=!1}finally{E=void 0}return w},"coalesceProvider");if($===void 0)return async(R)=>{if(!W||(R==null?void 0:R.forceRefresh))w=await F(R);return w};return async(R)=>{if(!W||(R==null?void 0:R.forceRefresh))w=await F(R);if(L)return w;if(!U(w))return L=!0,w;if($(w))return await F(R),w;return w}},"memoizeIdentityProvider"),D6=H((f)=>f[Af.SMITHY_CONTEXT_KEY]||(f[Af.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),c6=H((f)=>{if(typeof f==="function")return f;const $=Promise.resolve(f);return()=>$},"normalizeProvider"),u6=V0();H(tE,"requestBuilder");var aE=class f{constructor($,U){this.input=$,this.context=U,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:$,protocol:U="https",port:G,path:w}=await this.context.endpoint();this.path=w;for(let E of this.resolvePathStack)E(this.path);return new Vf.HttpRequest({protocol:U,hostname:this.hostname||$,port:G,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn($){return this.hostname=$,this}bp($){return this.resolvePathStack.push((U)=>{this.path=`${(U==null?void 0:U.endsWith("/"))?U.slice(0,-1):U||""}`+$}),this}p($,U,G,w){return this.resolvePathStack.push((E)=>{this.path=u6.resolvedPath(E,this.input,$,U,G,w)}),this}h($){return this.headers=$,this}q($){return this.query=$,this}b($){return this.body=$,this}m($){return this.method=$,this}};H(aE,"RequestBuilder");var eE=aE,v6=H(async(f,$,U,...G)=>{return await $.send(new f(U),...G)},"makePagedClientRequest");H(fW,"createPaginator");var x6=H((f,$)=>{let U=f;const G=$.split(".");for(let w of G){if(!U||typeof U!=="object")return;U=U[w]}return U},"get")});var B8=T((aT,df)=>{var iW,oW,tW,aW,eW,f8,$8,U8,w8,G8,E8,W8,L8,yf,Q$,F8,R8,X8,S0,I8,Z8,Y8,Q8,z8,J8,O8,M8,T8,pf,K8,A8;(function(f){var $=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($,U(G)))});else if(typeof df==="object"&&typeof aT==="object")f(U($,U(aT)));else f(U($));function U(G,w){if(G!==$)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(f){var $=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]};iW=function(w,E){if(typeof E!=="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");$(w,E);function W(){this.constructor=w}w.prototype=E===null?Object.create(E):(W.prototype=E.prototype,new W)},oW=Object.assign||function(w){for(var E,W=1,L=arguments.length;W<L;W++){E=arguments[W];for(var F in E)if(Object.prototype.hasOwnProperty.call(E,F))w[F]=E[F]}return w},tW=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 F=0,L=Object.getOwnPropertySymbols(w);F<L.length;F++)if(E.indexOf(L[F])<0&&Object.prototype.propertyIsEnumerable.call(w,L[F]))W[L[F]]=w[L[F]]}return W},aW=function(w,E,W,L){var F=arguments.length,R=F<3?E:L===null?L=Object.getOwnPropertyDescriptor(E,W):L,X;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")R=Reflect.decorate(w,E,W,L);else for(var I=w.length-1;I>=0;I--)if(X=w[I])R=(F<3?X(R):F>3?X(E,W,R):X(E,W))||R;return F>3&&R&&Object.defineProperty(E,W,R),R},eW=function(w,E){return function(W,L){E(W,L,w)}},f8=function(w,E,W,L,F,R){function X(S){if(S!==void 0&&typeof S!=="function")throw new TypeError("Function expected");return S}var I=L.kind,Y=I==="getter"?"get":I==="setter"?"set":"value",Z=!E&&w?L.static?w:w.prototype:null,Q=E||(Z?Object.getOwnPropertyDescriptor(Z,L.name):{}),O,J=!1;for(var M=W.length-1;M>=0;M--){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(S){if(J)throw new TypeError("Cannot add initializers after decoration has completed");R.push(X(S||null))};var B=W[M](I==="accessor"?{get:Q.get,set:Q.set}:Q[Y],K);if(I==="accessor"){if(B===void 0)continue;if(B===null||typeof B!=="object")throw new TypeError("Object expected");if(O=X(B.get))Q.get=O;if(O=X(B.set))Q.set=O;if(O=X(B.init))F.unshift(O)}else if(O=X(B))if(I==="field")F.unshift(O);else Q[Y]=O}if(Z)Object.defineProperty(Z,L.name,Q);J=!0},$8=function(w,E,W){var L=arguments.length>2;for(var F=0;F<E.length;F++)W=L?E[F].call(w,W):E[F].call(w);return L?W:void 0},U8=function(w){return typeof w==="symbol"?w:"".concat(w)},w8=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})},G8=function(w,E){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(w,E)},E8=function(w,E,W,L){function F(R){return R instanceof W?R:new W(function(X){X(R)})}return new(W||(W=Promise))(function(R,X){function I(Q){try{Z(L.next(Q))}catch(O){X(O)}}function Y(Q){try{Z(L.throw(Q))}catch(O){X(O)}}function Z(Q){Q.done?R(Q.value):F(Q.value).then(I,Y)}Z((L=L.apply(w,E||[])).next())})},W8=function(w,E){var W={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},L,F,R,X;return X={next:I(0),throw:I(1),return:I(2)},typeof Symbol==="function"&&(X[Symbol.iterator]=function(){return this}),X;function I(Z){return function(Q){return Y([Z,Q])}}function Y(Z){if(L)throw new TypeError("Generator is already executing.");while(X&&(X=0,Z[0]&&(W=0)),W)try{if(L=1,F&&(R=Z[0]&2?F.return:Z[0]?F.throw||((R=F.return)&&R.call(F),0):F.next)&&!(R=R.call(F,Z[1])).done)return R;if(F=0,R)Z=[Z[0]&2,R.value];switch(Z[0]){case 0:case 1:R=Z;break;case 4:return W.label++,{value:Z[1],done:!1};case 5:W.label++,F=Z[1],Z=[0];continue;case 7:Z=W.ops.pop(),W.trys.pop();continue;default:if((R=W.trys,!(R=R.length>0&&R[R.length-1]))&&(Z[0]===6||Z[0]===2)){W=0;continue}if(Z[0]===3&&(!R||Z[1]>R[0]&&Z[1]<R[3])){W.label=Z[1];break}if(Z[0]===6&&W.label<R[1]){W.label=R[1],R=Z;break}if(R&&W.label<R[2]){W.label=R[2],W.ops.push(Z);break}if(R[2])W.ops.pop();W.trys.pop();continue}Z=E.call(w,W)}catch(Q){Z=[6,Q],F=0}finally{L=R=0}if(Z[0]&5)throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}},L8=function(w,E){for(var W in w)if(W!=="default"&&!Object.prototype.hasOwnProperty.call(E,W))pf(E,w,W)},pf=Object.create?function(w,E,W,L){if(L===void 0)L=W;var F=Object.getOwnPropertyDescriptor(E,W);if(!F||("get"in F?!E.__esModule:F.writable||F.configurable))F={enumerable:!0,get:function(){return E[W]}};Object.defineProperty(w,L,F)}:function(w,E,W,L){if(L===void 0)L=W;w[L]=E[W]},yf=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.")},Q$=function(w,E){var W=typeof Symbol==="function"&&w[Symbol.iterator];if(!W)return w;var L=W.call(w),F,R=[],X;try{while((E===void 0||E-- >0)&&!(F=L.next()).done)R.push(F.value)}catch(I){X={error:I}}finally{try{if(F&&!F.done&&(W=L.return))W.call(L)}finally{if(X)throw X.error}}return R},F8=function(){for(var w=[],E=0;E<arguments.length;E++)w=w.concat(Q$(arguments[E]));return w},R8=function(){for(var w=0,E=0,W=arguments.length;E<W;E++)w+=arguments[E].length;for(var L=Array(w),F=0,E=0;E<W;E++)for(var R=arguments[E],X=0,I=R.length;X<I;X++,F++)L[F]=R[X];return L},X8=function(w,E,W){if(W||arguments.length===2){for(var L=0,F=E.length,R;L<F;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))},S0=function(w){return this instanceof S0?(this.v=w,this):new S0(w)},I8=function(w,E,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var L=W.apply(w,E||[]),F,R=[];return F={},I("next"),I("throw"),I("return",X),F[Symbol.asyncIterator]=function(){return this},F;function X(M){return function(K){return Promise.resolve(K).then(M,O)}}function I(M,K){if(L[M]){if(F[M]=function(A){return new Promise(function(B,S){R.push([M,A,B,S])>1||Y(M,A)})},K)F[M]=K(F[M])}}function Y(M,K){try{Z(L[M](K))}catch(A){J(R[0][3],A)}}function Z(M){M.value instanceof S0?Promise.resolve(M.value.v).then(Q,O):J(R[0][2],M)}function Q(M){Y("next",M)}function O(M){Y("throw",M)}function J(M,K){if(M(K),R.shift(),R.length)Y(R[0][0],R[0][1])}},Z8=function(w){var E,W;return E={},L("next"),L("throw",function(F){throw F}),L("return"),E[Symbol.iterator]=function(){return this},E;function L(F,R){E[F]=w[F]?function(X){return(W=!W)?{value:S0(w[F](X)),done:!1}:R?R(X):X}:R}},Y8=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 yf==="function"?yf(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(X){return new Promise(function(I,Y){X=w[R](X),F(I,Y,X.done,X.value)})}}function F(R,X,I,Y){Promise.resolve(Y).then(function(Z){R({value:Z,done:I})},X)}},Q8=function(w,E){if(Object.defineProperty)Object.defineProperty(w,"raw",{value:E});else w.raw=E;return w};var U=Object.create?function(w,E){Object.defineProperty(w,"default",{enumerable:!0,value:E})}:function(w,E){w.default=E};z8=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))pf(E,w,W)}return U(E,w),E},J8=function(w){return w&&w.__esModule?w:{default:w}},O8=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)},M8=function(w,E,W,L,F){if(L==="m")throw new TypeError("Private method is not writable");if(L==="a"&&!F)throw new TypeError("Private accessor was defined without a setter");if(typeof E==="function"?w!==E||!F:!E.has(w))throw new TypeError("Cannot write private member to an object whose class did not declare it");return L==="a"?F.call(w,W):F?F.value=W:E.set(w,W),W},T8=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)},K8=function(w,E,W){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");var L,F;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)F=L}if(typeof L!=="function")throw new TypeError("Object not disposable.");if(F)L=function(){try{F.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};A8=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 F=L.dispose&&L.dispose.call(L.value);if(L.async)return Promise.resolve(F).then(W,function(R){return E(R),W()})}catch(R){E(R)}}if(w.hasError)throw w.error}return W()},f("__extends",iW),f("__assign",oW),f("__rest",tW),f("__decorate",aW),f("__param",eW),f("__esDecorate",f8),f("__runInitializers",$8),f("__propKey",U8),f("__setFunctionName",w8),f("__metadata",G8),f("__awaiter",E8),f("__generator",W8),f("__exportStar",L8),f("__createBinding",pf),f("__values",yf),f("__read",Q$),f("__spread",F8),f("__spreadArrays",R8),f("__spreadArray",X8),f("__await",S0),f("__asyncGenerator",I8),f("__asyncDelegator",Z8),f("__asyncValues",Y8),f("__makeTemplateObject",Q8),f("__importStar",z8),f("__importDefault",J8),f("__classPrivateFieldGet",O8),f("__classPrivateFieldSet",M8),f("__classPrivateFieldIn",T8),f("__addDisposableResource",K8),f("__disposeResources",A8)})});var q8=T((eT,C8)=>{var{defineProperty:gf,getOwnPropertyDescriptor:MZ,getOwnPropertyNames:TZ}=Object,KZ=Object.prototype.hasOwnProperty,AZ=(f,$)=>gf(f,"name",{value:$,configurable:!0}),BZ=(f,$)=>{for(var U in $)gf(f,U,{get:$[U],enumerable:!0})},VZ=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of TZ($))if(!KZ.call(f,w)&&w!==U)gf(f,w,{get:()=>$[w],enumerable:!(G=MZ($,w))||G.enumerable})}return f},HZ=(f)=>VZ(gf({},"__esModule",{value:!0}),f),H8={};BZ(H8,{emitWarningIfUnsupportedVersion:()=>CZ});C8.exports=HZ(H8);var V8=!1,CZ=AZ((f)=>{if(f&&!V8&&parseInt(f.substring(1,f.indexOf(".")))<18)V8=!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 l8=T((fK,n8)=>{var T$=function(f){for(let $=0;$<8;$++)f[$]^=255;for(let $=7;$>-1;$--)if(f[$]++,f[$]!==0)break},rf=Object.defineProperty,PZ=Object.getOwnPropertyDescriptor,SZ=Object.getOwnPropertyNames,jZ=Object.prototype.hasOwnProperty,b=(f,$)=>rf(f,"name",{value:$,configurable:!0}),bZ=(f,$)=>{for(var U in $)rf(f,U,{get:$[U],enumerable:!0})},hZ=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of SZ($))if(!jZ.call(f,w)&&w!==U)rf(f,w,{get:()=>$[w],enumerable:!(G=PZ($,w))||G.enumerable})}return f},kZ=(f)=>hZ(rf({},"__esModule",{value:!0}),f),b8={};bZ(b8,{SignatureV4:()=>E5,clearCredentialCache:()=>oZ,createScope:()=>lf,getCanonicalHeaders:()=>M$,getCanonicalQuery:()=>_8,getPayloadHash:()=>mf,getSigningKey:()=>x8,moveHeadersToQuery:()=>g8,prepareRequest:()=>K$});n8.exports=kZ(b8);var N8=b0(),z$=T0(),DZ="X-Amz-Algorithm",cZ="X-Amz-Credential",h8="X-Amz-Date",uZ="X-Amz-SignedHeaders",vZ="X-Amz-Expires",k8="X-Amz-Signature",D8="X-Amz-Security-Token",c8="authorization",u8=h8.toLowerCase(),xZ="date",_Z=[c8,u8,xZ],yZ=k8.toLowerCase(),O$="x-amz-content-sha256",pZ=D8.toLowerCase(),dZ={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},gZ=/^proxy-/,sZ=/^sec-/,J$="AWS4-HMAC-SHA256",nZ="AWS4-HMAC-SHA256-PAYLOAD",lZ="UNSIGNED-PAYLOAD",mZ=50,v8="aws4_request",rZ=604800,U0=TG(),iZ=T0(),j0={},nf=[],lf=b((f,$,U)=>`${f}/${$}/${U}/${v8}`,"createScope"),x8=b(async(f,$,U,G,w)=>{const E=await P8(f,$.secretAccessKey,$.accessKeyId),W=`${U}:${G}:${w}:${U0.toHex(E)}:${$.sessionToken}`;if(W in j0)return j0[W];nf.push(W);while(nf.length>mZ)delete j0[nf.shift()];let L=`AWS4${$.secretAccessKey}`;for(let F of[U,G,w,v8])L=await P8(f,L,F);return j0[W]=L},"getSigningKey"),oZ=b(()=>{nf.length=0,Object.keys(j0).forEach((f)=>{delete j0[f]})},"clearCredentialCache"),P8=b((f,$,U)=>{const G=new f($);return G.update(iZ.toUint8Array(U)),G.digest()},"hmac"),M$=b(({headers:f},$,U)=>{const G={};for(let w of Object.keys(f).sort()){if(f[w]==null)continue;const E=w.toLowerCase();if(E in dZ||($==null?void 0:$.has(E))||gZ.test(E)||sZ.test(E)){if(!U||U&&!U.has(E))continue}G[E]=f[w].trim().replace(/\s+/g," ")}return G},"getCanonicalHeaders"),o0=qZ(),_8=b(({query:f={}})=>{const $=[],U={};for(let G of Object.keys(f).sort()){if(G.toLowerCase()===yZ)continue;$.push(G);const w=f[G];if(typeof w==="string")U[G]=`${o0.escapeUri(G)}=${o0.escapeUri(w)}`;else if(Array.isArray(w))U[G]=w.slice(0).reduce((E,W)=>E.concat([`${o0.escapeUri(G)}=${o0.escapeUri(W)}`]),[]).sort().join("&")}return $.map((G)=>U[G]).filter((G)=>G).join("&")},"getCanonicalQuery"),tZ=NZ(),aZ=T0(),mf=b(async({headers:f,body:$},U)=>{for(let G of Object.keys(f))if(G.toLowerCase()===O$)return f[G];if($==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof $==="string"||ArrayBuffer.isView($)||tZ.isArrayBuffer($)){const G=new U;return G.update(aZ.toUint8Array($)),U0.toHex(await G.digest())}return lZ},"getPayloadHash"),S8=T0(),y8=class f{format($){const U=[];for(let E of Object.keys($)){const W=S8.fromUtf8(E);U.push(Uint8Array.from([W.byteLength]),W,this.formatHeaderValue($[E]))}const G=new Uint8Array(U.reduce((E,W)=>E+W.byteLength,0));let w=0;for(let E of U)G.set(E,w),w+=E.byteLength;return G}formatHeaderValue($){switch($.type){case"boolean":return Uint8Array.from([$.value?0:1]);case"byte":return Uint8Array.from([2,$.value]);case"short":const U=new DataView(new ArrayBuffer(3));return U.setUint8(0,3),U.setInt16(1,$.value,!1),new Uint8Array(U.buffer);case"integer":const G=new DataView(new ArrayBuffer(5));return G.setUint8(0,4),G.setInt32(1,$.value,!1),new Uint8Array(G.buffer);case"long":const w=new Uint8Array(9);return w[0]=5,w.set($.value.bytes,1),w;case"binary":const E=new DataView(new ArrayBuffer(3+$.value.byteLength));E.setUint8(0,6),E.setUint16(1,$.value.byteLength,!1);const W=new Uint8Array(E.buffer);return W.set($.value,3),W;case"string":const L=S8.fromUtf8($.value),F=new DataView(new ArrayBuffer(3+L.byteLength));F.setUint8(0,7),F.setUint16(1,L.byteLength,!1);const R=new Uint8Array(F.buffer);return R.set(L,3),R;case"timestamp":const X=new Uint8Array(9);return X[0]=8,X.set($5.fromNumber($.value.valueOf()).bytes,1),X;case"uuid":if(!f5.test($.value))throw new Error(`Invalid UUID received: ${$.value}`);const I=new Uint8Array(17);return I[0]=9,I.set(U0.fromHex($.value.replace(/\-/g,"")),1),I}}};b(y8,"HeaderFormatter");var eZ=y8,f5=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,p8=class f{constructor($){if(this.bytes=$,$.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber($){if($>9223372036854776000||$<-9223372036854776000)throw new Error(`${$} is too large (or, if negative, too small) to represent as an Int64`);const U=new Uint8Array(8);for(let G=7,w=Math.abs(Math.round($));G>-1&&w>0;G--,w/=256)U[G]=w;if($<0)T$(U);return new f(U)}valueOf(){const $=this.bytes.slice(0),U=$[0]&128;if(U)T$($);return parseInt(U0.toHex($),16)*(U?-1:1)}toString(){return String(this.valueOf())}};b(p8,"Int64");var $5=p8;b(T$,"negate");var U5=b((f,$)=>{f=f.toLowerCase();for(let U of Object.keys($))if(f===U.toLowerCase())return!0;return!1},"hasHeader"),d8=L0(),g8=b((f,$={})=>{var U;const{headers:G,query:w={}}=d8.HttpRequest.clone(f);for(let E of Object.keys(G)){const W=E.toLowerCase();if(W.slice(0,6)==="x-amz-"&&!((U=$.unhoistableHeaders)==null?void 0:U.has(W)))w[E]=G[E],delete G[E]}return{...f,headers:G,query:w}},"moveHeadersToQuery"),K$=b((f)=>{f=d8.HttpRequest.clone(f);for(let $ of Object.keys(f.headers))if(_Z.indexOf($.toLowerCase())>-1)delete f.headers[$];return f},"prepareRequest"),w5=b((f)=>G5(f).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),G5=b((f)=>{if(typeof f==="number")return new Date(f*1000);if(typeof f==="string"){if(Number(f))return new Date(Number(f)*1000);return new Date(f)}return f},"toDate"),s8=class f{constructor({applyChecksum:$,credentials:U,region:G,service:w,sha256:E,uriEscapePath:W=!0}){this.headerFormatter=new eZ,this.service=w,this.sha256=E,this.uriEscapePath=W,this.applyChecksum=typeof $==="boolean"?$:!0,this.regionProvider=N8.normalizeProvider(G),this.credentialProvider=N8.normalizeProvider(U)}async presign($,U={}){const{signingDate:G=new Date,expiresIn:w=3600,unsignableHeaders:E,unhoistableHeaders:W,signableHeaders:L,signingRegion:F,signingService:R}=U,X=await this.credentialProvider();this.validateResolvedCredentials(X);const I=F??await this.regionProvider(),{longDate:Y,shortDate:Z}=sf(G);if(w>rZ)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const Q=lf(Z,I,R??this.service),O=g8(K$($),{unhoistableHeaders:W});if(X.sessionToken)O.query[D8]=X.sessionToken;O.query[DZ]=J$,O.query[cZ]=`${X.accessKeyId}/${Q}`,O.query[h8]=Y,O.query[vZ]=w.toString(10);const J=M$(O,E,L);return O.query[uZ]=j8(J),O.query[k8]=await this.getSignature(Y,Q,this.getSigningKey(X,I,Z,R),this.createCanonicalRequest(O,J,await mf($,this.sha256))),O}async sign($,U){if(typeof $==="string")return this.signString($,U);else if($.headers&&$.payload)return this.signEvent($,U);else if($.message)return this.signMessage($,U);else return this.signRequest($,U)}async signEvent({headers:$,payload:U},{signingDate:G=new Date,priorSignature:w,signingRegion:E,signingService:W}){const L=E??await this.regionProvider(),{shortDate:F,longDate:R}=sf(G),X=lf(F,L,W??this.service),I=await mf({headers:{},body:U},this.sha256),Y=new this.sha256;Y.update($);const Z=U0.toHex(await Y.digest()),Q=[nZ,R,X,w,Z,I].join("\n");return this.signString(Q,{signingDate:G,signingRegion:L,signingService:W})}async signMessage($,{signingDate:U=new Date,signingRegion:G,signingService:w}){return this.signEvent({headers:this.headerFormatter.format($.message.headers),payload:$.message.body},{signingDate:U,signingRegion:G,signingService:w,priorSignature:$.priorSignature}).then((W)=>{return{message:$.message,signature:W}})}async signString($,{signingDate:U=new Date,signingRegion:G,signingService:w}={}){const E=await this.credentialProvider();this.validateResolvedCredentials(E);const W=G??await this.regionProvider(),{shortDate:L}=sf(U),F=new this.sha256(await this.getSigningKey(E,W,L,w));return F.update(z$.toUint8Array($)),U0.toHex(await F.digest())}async signRequest($,{signingDate:U=new Date,signableHeaders:G,unsignableHeaders:w,signingRegion:E,signingService:W}={}){const L=await this.credentialProvider();this.validateResolvedCredentials(L);const F=E??await this.regionProvider(),R=K$($),{longDate:X,shortDate:I}=sf(U),Y=lf(I,F,W??this.service);if(R.headers[u8]=X,L.sessionToken)R.headers[pZ]=L.sessionToken;const Z=await mf(R,this.sha256);if(!U5(O$,R.headers)&&this.applyChecksum)R.headers[O$]=Z;const Q=M$(R,w,G),O=await this.getSignature(X,Y,this.getSigningKey(L,F,I,W),this.createCanonicalRequest(R,Q,Z));return R.headers[c8]=`${J$} Credential=${L.accessKeyId}/${Y}, SignedHeaders=${j8(Q)}, Signature=${O}`,R}createCanonicalRequest($,U,G){const w=Object.keys(U).sort();return`${$.method}
|
|
10
|
-
${this.getCanonicalPath($)}
|
|
11
|
-
${_8($)}
|
|
12
|
-
${w.map((E)=>`${E}:${U[E]}`).join("\n")}
|
|
13
|
-
|
|
14
|
-
${w.join(";")}
|
|
15
|
-
${G}`}async createStringToSign($,U,G){const w=new this.sha256;w.update(z$.toUint8Array(G));const E=await w.digest();return`${J$}
|
|
16
|
-
${$}
|
|
17
|
-
${U}
|
|
18
|
-
${U0.toHex(E)}`}getCanonicalPath({path:$}){if(this.uriEscapePath){const U=[];for(let E of $.split("/")){if((E==null?void 0:E.length)===0)continue;if(E===".")continue;if(E==="..")U.pop();else U.push(E)}const G=`${($==null?void 0:$.startsWith("/"))?"/":""}${U.join("/")}${U.length>0&&($==null?void 0:$.endsWith("/"))?"/":""}`;return o0.escapeUri(G).replace(/%2F/g,"/")}return $}async getSignature($,U,G,w){const E=await this.createStringToSign($,U,w),W=new this.sha256(await G);return W.update(z$.toUint8Array(E)),U0.toHex(await W.digest())}getSigningKey($,U,G,w){return x8(this.sha256,$,G,U,w||this.service)}validateResolvedCredentials($){if(typeof $!=="object"||typeof $.accessKeyId!=="string"||typeof $.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};b(s8,"SignatureV4");var E5=s8,sf=b((f)=>{const $=w5(f).replace(/[\-:]/g,"");return{longDate:$,shortDate:$.slice(0,8)}},"formatDate"),j8=b((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var UL=T(($K,$L)=>{var{defineProperty:of,getOwnPropertyDescriptor:W5,getOwnPropertyNames:L5}=Object,F5=Object.prototype.hasOwnProperty,D=(f,$)=>of(f,"name",{value:$,configurable:!0}),R5=(f,$)=>{for(var U in $)of(f,U,{get:$[U],enumerable:!0})},X5=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of L5($))if(!F5.call(f,w)&&w!==U)of(f,w,{get:()=>$[w],enumerable:!(G=W5($,w))||G.enumerable})}return f},I5=(f)=>X5(of({},"__esModule",{value:!0}),f),t8={};R5(t8,{AWSSDKSigV4Signer:()=>z5,AwsSdkSigV4ASigner:()=>O5,AwsSdkSigV4Signer:()=>V$,NODE_SIGV4A_CONFIG_OPTIONS:()=>K5,resolveAWSSDKSigV4Config:()=>A5,resolveAwsSdkSigV4AConfig:()=>T5,resolveAwsSdkSigV4Config:()=>fL,validateSigningProperties:()=>B$});$L.exports=I5(t8);var Z5=L0(),Y5=L0(),m8=D((f)=>{var $,U;return Y5.HttpResponse.isInstance(f)?(($=f.headers)==null?void 0:$.date)??((U=f.headers)==null?void 0:U.Date):void 0},"getDateHeader"),A$=D((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),Q5=D((f,$)=>Math.abs(A$($).getTime()-f)>=300000,"isClockSkewed"),r8=D((f,$)=>{const U=Date.parse(f);if(Q5(U,$))return U-Date.now();return $},"getUpdatedSystemClockOffset"),t0=D((f,$)=>{if(!$)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return $},"throwSigningPropertyError"),B$=D(async(f)=>{var $,U,G;const w=t0("context",f.context),E=t0("config",f.config),W=(G=(U=($=w.endpointV2)==null?void 0:$.properties)==null?void 0:U.authSchemes)==null?void 0:G[0],F=await t0("signer",E.signer)(W),R=f==null?void 0:f.signingRegion,X=f==null?void 0:f.signingRegionSet,I=f==null?void 0:f.signingName;return{config:E,signer:F,signingRegion:R,signingRegionSet:X,signingName:I}},"validateSigningProperties"),a8=class f{async sign($,U,G){var w;if(!Z5.HttpRequest.isInstance($))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const E=await B$(G),{config:W,signer:L}=E;let{signingRegion:F,signingName:R}=E;const X=G.context;if(((w=X==null?void 0:X.authSchemes)==null?void 0:w.length)??0>1){const[Y,Z]=X.authSchemes;if((Y==null?void 0:Y.name)==="sigv4a"&&(Z==null?void 0:Z.name)==="sigv4")F=(Z==null?void 0:Z.signingRegion)??F,R=(Z==null?void 0:Z.signingName)??R}return await L.sign($,{signingDate:A$(W.systemClockOffset),signingRegion:F,signingService:R})}errorHandler($){return(U)=>{const G=U.ServerTime??m8(U.$response);if(G){const w=t0("config",$.config),E=w.systemClockOffset;if(w.systemClockOffset=r8(G,w.systemClockOffset),w.systemClockOffset!==E&&U.$metadata)U.$metadata.clockSkewCorrected=!0}throw U}}successHandler($,U){const G=m8($);if(G){const w=t0("config",U.config);w.systemClockOffset=r8(G,w.systemClockOffset)}}};D(a8,"AwsSdkSigV4Signer");var V$=a8,z5=V$,J5=L0(),e8=class f extends V${async sign($,U,G){var w;if(!J5.HttpRequest.isInstance($))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:E,signer:W,signingRegion:L,signingRegionSet:F,signingName:R}=await B$(G),I=(await((w=E.sigv4aSigningRegionSet)==null?void 0:w.call(E))??F??[L]).join(",");return await W.sign($,{signingDate:A$(E.systemClockOffset),signingRegion:I,signingService:R})}};D(e8,"AwsSdkSigV4ASigner");var O5=e8,M5=m1(),i8=L1(),T5=D((f)=>{return f.sigv4aSigningRegionSet=M5.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),K5={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(($)=>$.trim());throw new i8.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map(($)=>$.trim());throw new i8.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Y0=m1(),o8=l8(),fL=D((f)=>{let $;if(f.credentials)$=Y0.memoizeIdentityProvider(f.credentials,Y0.isIdentityExpired,Y0.doesIdentityRequireRefresh);if(!$)if(f.credentialDefaultProvider)$=Y0.normalizeProvider(f.credentialDefaultProvider(Object.assign({},f,{parentClientConfig:f})));else $=D(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:U=!0,systemClockOffset:G=f.systemClockOffset||0,sha256:w}=f;let E;if(f.signer)E=Y0.normalizeProvider(f.signer);else if(f.regionInfoProvider)E=D(()=>Y0.normalizeProvider(f.region)().then(async(W)=>[await f.regionInfoProvider(W,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},W]).then(([W,L])=>{const{signingRegion:F,signingService:R}=W;f.signingRegion=f.signingRegion||F||L,f.signingName=f.signingName||R||f.serviceId;const X={...f,credentials:$,region:f.signingRegion,service:f.signingName,sha256:w,uriEscapePath:U};return new(f.signerConstructor||o8.SignatureV4)(X)}),"signer");else E=D(async(W)=>{W=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await Y0.normalizeProvider(f.region)(),properties:{}},W);const{signingRegion:L,signingName:F}=W;f.signingRegion=f.signingRegion||L,f.signingName=f.signingName||F||f.serviceId;const R={...f,credentials:$,region:f.signingRegion,service:f.signingName,sha256:w,uriEscapePath:U};return new(f.signerConstructor||o8.SignatureV4)(R)},"signer");return{...f,systemClockOffset:G,signingEscapePath:U,credentials:$,signer:E}},"resolveAwsSdkSigV4Config"),A5=fL});var tf=T((q5)=>{var B5=":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",wL="[: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]["+B5+"]*",V5=new RegExp("^"+wL+"$"),H5=function(f,$){const U=[];let G=$.exec(f);while(G){const w=[];w.startIndex=$.lastIndex-G[0].length;const E=G.length;for(let W=0;W<E;W++)w.push(G[W]);U.push(w),G=$.exec(f)}return U},C5=function(f){const $=V5.exec(f);return!($===null||typeof $==="undefined")};q5.isExist=function(f){return typeof f!=="undefined"};q5.isEmptyObject=function(f){return Object.keys(f).length===0};q5.merge=function(f,$,U){if($){const G=Object.keys($),w=G.length;for(let E=0;E<w;E++)if(U==="strict")f[G[E]]=[$[G[E]]];else f[G[E]]=$[G[E]]}};q5.getValue=function(f){if(q5.isExist(f))return f;else return""};q5.isName=C5;q5.getAllMatches=H5;q5.nameRegexp=wL});var C$=T((d5)=>{var EL=function(f){return f===" "||f==="\t"||f==="\n"||f==="\r"},WL=function(f,$){const U=$;for(;$<f.length;$++)if(f[$]=="?"||f[$]==" "){const G=f.substr(U,$-U);if($>5&&G==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",k(f,$));else if(f[$]=="?"&&f[$+1]==">"){$++;break}else continue}return $},LL=function(f,$){if(f.length>$+5&&f[$+1]==="-"&&f[$+2]==="-"){for($+=3;$<f.length;$++)if(f[$]==="-"&&f[$+1]==="-"&&f[$+2]===">"){$+=2;break}}else if(f.length>$+8&&f[$+1]==="D"&&f[$+2]==="O"&&f[$+3]==="C"&&f[$+4]==="T"&&f[$+5]==="Y"&&f[$+6]==="P"&&f[$+7]==="E"){let U=1;for($+=8;$<f.length;$++)if(f[$]==="<")U++;else if(f[$]===">"){if(U--,U===0)break}}else if(f.length>$+9&&f[$+1]==="["&&f[$+2]==="C"&&f[$+3]==="D"&&f[$+4]==="A"&&f[$+5]==="T"&&f[$+6]==="A"&&f[$+7]==="["){for($+=8;$<f.length;$++)if(f[$]==="]"&&f[$+1]==="]"&&f[$+2]===">"){$+=2;break}}return $},u5=function(f,$){let U="",G="",w=!1;for(;$<f.length;$++){if(f[$]===D5||f[$]===c5)if(G==="")G=f[$];else if(G!==f[$]);else G="";else if(f[$]===">"){if(G===""){w=!0;break}}U+=f[$]}if(G!=="")return!1;return{value:U,index:$,tagClosed:w}},FL=function(f,$){const U=H$.getAllMatches(f,v5),G={};for(let w=0;w<U.length;w++){if(U[w][1].length===0)return P("InvalidAttr","Attribute '"+U[w][2]+"' has no space in starting.",a0(U[w]));else if(U[w][3]!==void 0&&U[w][4]===void 0)return P("InvalidAttr","Attribute '"+U[w][2]+"' is without value.",a0(U[w]));else if(U[w][3]===void 0&&!$.allowBooleanAttributes)return P("InvalidAttr","boolean attribute '"+U[w][2]+"' is not allowed.",a0(U[w]));const E=U[w][2];if(!y5(E))return P("InvalidAttr","Attribute '"+E+"' is an invalid name.",a0(U[w]));if(!G.hasOwnProperty(E))G[E]=1;else return P("InvalidAttr","Attribute '"+E+"' is repeated.",a0(U[w]))}return!0},x5=function(f,$){let U=/\d/;if(f[$]==="x")$++,U=/[\da-fA-F]/;for(;$<f.length;$++){if(f[$]===";")return $;if(!f[$].match(U))break}return-1},_5=function(f,$){if($++,f[$]===";")return-1;if(f[$]==="#")return $++,x5(f,$);let U=0;for(;$<f.length;$++,U++){if(f[$].match(/\w/)&&U<20)continue;if(f[$]===";")break;return-1}return $},P=function(f,$,U){return{err:{code:f,msg:$,line:U.line||U,col:U.col}}},y5=function(f){return H$.isName(f)},p5=function(f){return H$.isName(f)},k=function(f,$){const U=f.substring(0,$).split(/\r?\n/);return{line:U.length,col:U[U.length-1].length+1}},a0=function(f){return f.startIndex+f[1].length},H$=tf(),k5={allowBooleanAttributes:!1,unpairedTags:[]};d5.validate=function(f,$){$=Object.assign({},k5,$);const U=[];let G=!1,w=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let E=0;E<f.length;E++)if(f[E]==="<"&&f[E+1]==="?"){if(E+=2,E=WL(f,E),E.err)return E}else if(f[E]==="<"){let W=E;if(E++,f[E]==="!"){E=LL(f,E);continue}else{let L=!1;if(f[E]==="/")L=!0,E++;let F="";for(;E<f.length&&f[E]!==">"&&f[E]!==" "&&f[E]!=="\t"&&f[E]!=="\n"&&f[E]!=="\r";E++)F+=f[E];if(F=F.trim(),F[F.length-1]==="/")F=F.substring(0,F.length-1),E--;if(!p5(F)){let I;if(F.trim().length===0)I="Invalid space after '<'.";else I="Tag '"+F+"' is an invalid name.";return P("InvalidTag",I,k(f,E))}const R=u5(f,E);if(R===!1)return P("InvalidAttr","Attributes for '"+F+"' have open quote.",k(f,E));let X=R.value;if(E=R.index,X[X.length-1]==="/"){const I=E-X.length;X=X.substring(0,X.length-1);const Y=FL(X,$);if(Y===!0)G=!0;else return P(Y.err.code,Y.err.msg,k(f,I+Y.err.line))}else if(L)if(!R.tagClosed)return P("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",k(f,E));else if(X.trim().length>0)return P("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",k(f,W));else if(U.length===0)return P("InvalidTag","Closing tag '"+F+"' has not been opened.",k(f,W));else{const I=U.pop();if(F!==I.tagName){let Y=k(f,I.tagStartPos);return P("InvalidTag","Expected closing tag '"+I.tagName+"' (opened in line "+Y.line+", col "+Y.col+") instead of closing tag '"+F+"'.",k(f,W))}if(U.length==0)w=!0}else{const I=FL(X,$);if(I!==!0)return P(I.err.code,I.err.msg,k(f,E-X.length+I.err.line));if(w===!0)return P("InvalidXml","Multiple possible root nodes found.",k(f,E));else if($.unpairedTags.indexOf(F)!==-1);else U.push({tagName:F,tagStartPos:W});G=!0}for(E++;E<f.length;E++)if(f[E]==="<")if(f[E+1]==="!"){E++,E=LL(f,E);continue}else if(f[E+1]==="?"){if(E=WL(f,++E),E.err)return E}else break;else if(f[E]==="&"){const I=_5(f,E);if(I==-1)return P("InvalidChar","char '&' is not expected.",k(f,E));E=I}else if(w===!0&&!EL(f[E]))return P("InvalidXml","Extra text at the end",k(f,E));if(f[E]==="<")E--}}else{if(EL(f[E]))continue;return P("InvalidChar","char '"+f[E]+"' is not expected.",k(f,E))}if(!G)return P("InvalidXml","Start tag expected.",1);else if(U.length==1)return P("InvalidTag","Unclosed tag '"+U[0].tagName+"'.",k(f,U[0].tagStartPos));else if(U.length>0)return P("InvalidXml","Invalid '"+JSON.stringify(U.map((E)=>E.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var D5='"',c5="'",v5=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var XL=T((n5)=>{var RL={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(f,$){return $},attributeValueProcessor:function(f,$){return $},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(f,$,U){return f}},s5=function(f){return Object.assign({},RL,f)};n5.buildOptions=s5;n5.defaultOptions=RL});var YL=T((EK,ZL)=>{class IL{constructor(f){this.tagname=f,this.child=[],this[":@"]={}}add(f,$){if(f==="__proto__")f="#__proto__";this.child.push({[f]:$})}addChild(f){if(f.tagname==="__proto__")f.tagname="#__proto__";if(f[":@"]&&Object.keys(f[":@"]).length>0)this.child.push({[f.tagname]:f.child,[":@"]:f[":@"]});else this.child.push({[f.tagname]:f.child})}}ZL.exports=IL});var zL=T((WK,QL)=>{var i5=function(f,$){const U={};if(f[$+3]==="O"&&f[$+4]==="C"&&f[$+5]==="T"&&f[$+6]==="Y"&&f[$+7]==="P"&&f[$+8]==="E"){$=$+9;let G=1,w=!1,E=!1,W="";for(;$<f.length;$++)if(f[$]==="<"&&!E){if(w&&a5(f,$)){if($+=7,[entityName,val,$]=o5(f,$+1),val.indexOf("&")===-1)U[UY(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(w&&e5(f,$))$+=8;else if(w&&fY(f,$))$+=8;else if(w&&$Y(f,$))$+=9;else if(t5)E=!0;else throw new Error("Invalid DOCTYPE");G++,W=""}else if(f[$]===">"){if(E){if(f[$-1]==="-"&&f[$-2]==="-")E=!1,G--}else G--;if(G===0)break}else if(f[$]==="[")w=!0;else W+=f[$];if(G!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:U,i:$}},o5=function(f,$){let U="";for(;$<f.length&&(f[$]!=="'"&&f[$]!=='"');$++)U+=f[$];if(U=U.trim(),U.indexOf(" ")!==-1)throw new Error("External entites are not supported");const G=f[$++];let w="";for(;$<f.length&&f[$]!==G;$++)w+=f[$];return[U,w,$]},t5=function(f,$){if(f[$+1]==="!"&&f[$+2]==="-"&&f[$+3]==="-")return!0;return!1},a5=function(f,$){if(f[$+1]==="!"&&f[$+2]==="E"&&f[$+3]==="N"&&f[$+4]==="T"&&f[$+5]==="I"&&f[$+6]==="T"&&f[$+7]==="Y")return!0;return!1},e5=function(f,$){if(f[$+1]==="!"&&f[$+2]==="E"&&f[$+3]==="L"&&f[$+4]==="E"&&f[$+5]==="M"&&f[$+6]==="E"&&f[$+7]==="N"&&f[$+8]==="T")return!0;return!1},fY=function(f,$){if(f[$+1]==="!"&&f[$+2]==="A"&&f[$+3]==="T"&&f[$+4]==="T"&&f[$+5]==="L"&&f[$+6]==="I"&&f[$+7]==="S"&&f[$+8]==="T")return!0;return!1},$Y=function(f,$){if(f[$+1]==="!"&&f[$+2]==="N"&&f[$+3]==="O"&&f[$+4]==="T"&&f[$+5]==="A"&&f[$+6]==="T"&&f[$+7]==="I"&&f[$+8]==="O"&&f[$+9]==="N")return!0;return!1},UY=function(f){if(r5.isName(f))return f;else throw new Error(`Invalid entity name ${f}`)},r5=tf();QL.exports=i5});var OL=T((LK,JL)=>{var WY=function(f,$={}){if($=Object.assign({},EY,$),!f||typeof f!=="string")return f;let U=f.trim();if($.skipLike!==void 0&&$.skipLike.test(U))return f;else if($.hex&&wY.test(U))return Number.parseInt(U,16);else{const G=GY.exec(U);if(G){const w=G[1],E=G[2];let W=LY(G[3]);const L=G[4]||G[6];if(!$.leadingZeros&&E.length>0&&w&&U[2]!==".")return f;else if(!$.leadingZeros&&E.length>0&&!w&&U[1]!==".")return f;else{const F=Number(U),R=""+F;if(R.search(/[eE]/)!==-1)if($.eNotation)return F;else return f;else if(L)if($.eNotation)return F;else return f;else if(U.indexOf(".")!==-1)if(R==="0"&&W==="")return F;else if(R===W)return F;else if(w&&R==="-"+W)return F;else return f;if(E)if(W===R)return F;else if(w+W===R)return F;else return f;if(U===R)return F;else if(U===w+R)return F;return f}}else return f}},LY=function(f){if(f&&f.indexOf(".")!==-1){if(f=f.replace(/0+$/,""),f===".")f="0";else if(f[0]===".")f="0"+f;else if(f[f.length-1]===".")f=f.substr(0,f.length-1);return f}return f},wY=/^[-+]?0x[a-fA-F0-9]+$/,GY=/^([\-\+])?(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 EY={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};JL.exports=WY});var AL=T((FK,KL)=>{var XY=function(f){const $=Object.keys(f);for(let U=0;U<$.length;U++){const G=$[U];this.lastEntities[G]={regex:new RegExp("&"+G+";","g"),val:f[G]}}},IY=function(f,$,U,G,w,E,W){if(f!==void 0){if(this.options.trimValues&&!G)f=f.trim();if(f.length>0){if(!W)f=this.replaceEntitiesValue(f);const L=this.options.tagValueProcessor($,f,U,w,E);if(L===null||L===void 0)return f;else if(typeof L!==typeof f||L!==f)return L;else if(this.options.trimValues)return N$(f,this.options.parseTagValue,this.options.numberParseOptions);else if(f.trim()===f)return N$(f,this.options.parseTagValue,this.options.numberParseOptions);else return f}}},ZY=function(f){if(this.options.removeNSPrefix){const $=f.split(":"),U=f.charAt(0)==="/"?"/":"";if($[0]==="xmlns")return"";if($.length===2)f=U+$[1]}return f},QY=function(f,$,U){if(!this.options.ignoreAttributes&&typeof f==="string"){const G=ML.getAllMatches(f,YY),w=G.length,E={};for(let W=0;W<w;W++){const L=this.resolveNameSpace(G[W][1]);let F=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(F!==void 0){if(this.options.trimValues)F=F.trim();F=this.replaceEntitiesValue(F);const X=this.options.attributeValueProcessor(L,F,$);if(X===null||X===void 0)E[R]=F;else if(typeof X!==typeof F||X!==F)E[R]=X;else E[R]=N$(F,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}},JY=function(f,$,U){const G=this.options.updateTag($.tagname,U,$[":@"]);if(G===!1);else if(typeof G==="string")$.tagname=G,f.addChild($);else f.addChild($)},MY=function(f,$,U,G){if(f){if(G===void 0)G=Object.keys($.child).length===0;if(f=this.parseTextData(f,$.tagname,U,!1,$[":@"]?Object.keys($[":@"]).length!==0:!1,G),f!==void 0&&f!=="")$.add(this.options.textNodeName,f);f=""}return f},TY=function(f,$,U){const G="*."+U;for(let w in f){const E=f[w];if(G===E||$===E)return!0}return!1},KY=function(f,$,U=">"){let G,w="";for(let E=$;E<f.length;E++){let W=f[E];if(G){if(W===G)G=""}else if(W==='"'||W==="'")G=W;else if(W===U[0])if(U[1]){if(f[E+1]===U[1])return{data:w,index:E}}else return{data:w,index:E};else if(W==="\t")W=" ";w+=W}},Q0=function(f,$,U,G){const w=f.indexOf($,U);if(w===-1)throw new Error(G);else return w+$.length-1},q$=function(f,$,U,G=">"){const w=KY(f,$+1,G);if(!w)return;let E=w.data;const W=w.index,L=E.search(/\s/);let F=E,R=!0;if(L!==-1)F=E.substring(0,L),E=E.substring(L+1).trimStart();const X=F;if(U){const I=F.indexOf(":");if(I!==-1)F=F.substr(I+1),R=F!==w.data.substr(I+1)}return{tagName:F,tagExp:E,closeIndex:W,attrExpPresent:R,rawTagName:X}},AY=function(f,$,U){const G=U;let w=1;for(;U<f.length;U++)if(f[U]==="<")if(f[U+1]==="/"){const E=Q0(f,">",U,`${$} is not closed`);if(f.substring(U+2,E).trim()===$){if(w--,w===0)return{tagContent:f.substring(G,U),i:E}}U=E}else if(f[U+1]==="?")U=Q0(f,"?>",U+1,"StopNode is not closed.");else if(f.substr(U+1,3)==="!--")U=Q0(f,"-->",U+3,"StopNode is not closed.");else if(f.substr(U+1,2)==="![")U=Q0(f,"]]>",U,"StopNode is not closed.")-2;else{const E=q$(f,U,">");if(E){if((E&&E.tagName)===$&&E.tagExp[E.tagExp.length-1]!=="/")w++;U=E.closeIndex}}},N$=function(f,$,U){if($&&typeof f==="string"){const G=f.trim();if(G==="true")return!0;else if(G==="false")return!1;else return RY(f,U)}else if(ML.isExist(f))return f;else return""},ML=tf(),e0=YL(),FY=zL(),RY=OL();class TL{constructor(f){this.options=f,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)=>String.fromCharCode(Number.parseInt(U,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:($,U)=>String.fromCharCode(Number.parseInt(U,16))}},this.addExternalEntities=XY,this.parseXml=zY,this.parseTextData=IY,this.resolveNameSpace=ZY,this.buildAttributesMap=QY,this.isItStopNode=TY,this.replaceEntitiesValue=OY,this.readStopNodeData=AY,this.saveTextToParentTag=MY,this.addChild=JY}}var YY=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),zY=function(f){f=f.replace(/\r\n?/g,"\n");const $=new e0("!xml");let U=$,G="",w="";for(let E=0;E<f.length;E++)if(f[E]==="<")if(f[E+1]==="/"){const L=Q0(f,">",E,"Closing Tag is not closed.");let F=f.substring(E+2,L).trim();if(this.options.removeNSPrefix){const I=F.indexOf(":");if(I!==-1)F=F.substr(I+1)}if(this.options.transformTagName)F=this.options.transformTagName(F);if(U)G=this.saveTextToParentTag(G,U,w);const R=w.substring(w.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${F}>`);let X=0;if(R&&this.options.unpairedTags.indexOf(R)!==-1)X=w.lastIndexOf(".",w.lastIndexOf(".")-1),this.tagsNodeStack.pop();else X=w.lastIndexOf(".");w=w.substring(0,X),U=this.tagsNodeStack.pop(),G="",E=L}else if(f[E+1]==="?"){let L=q$(f,E,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(G=this.saveTextToParentTag(G,U,w),this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags);else{const F=new e0(L.tagName);if(F.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent)F[":@"]=this.buildAttributesMap(L.tagExp,w,L.tagName);this.addChild(U,F,w)}E=L.closeIndex+1}else if(f.substr(E+1,3)==="!--"){const L=Q0(f,"-->",E+4,"Comment is not closed.");if(this.options.commentPropName){const F=f.substring(E+4,L-2);G=this.saveTextToParentTag(G,U,w),U.add(this.options.commentPropName,[{[this.options.textNodeName]:F}])}E=L}else if(f.substr(E+1,2)==="!D"){const L=FY(f,E);this.docTypeEntities=L.entities,E=L.i}else if(f.substr(E+1,2)==="!["){const L=Q0(f,"]]>",E,"CDATA is not closed.")-2,F=f.substring(E+9,L);G=this.saveTextToParentTag(G,U,w);let R=this.parseTextData(F,U.tagname,w,!0,!1,!0,!0);if(R==null)R="";if(this.options.cdataPropName)U.add(this.options.cdataPropName,[{[this.options.textNodeName]:F}]);else U.add(this.options.textNodeName,R);E=L+2}else{let L=q$(f,E,this.options.removeNSPrefix),F=L.tagName;const R=L.rawTagName;let{tagExp:X,attrExpPresent:I,closeIndex:Y}=L;if(this.options.transformTagName)F=this.options.transformTagName(F);if(U&&G){if(U.tagname!=="!xml")G=this.saveTextToParentTag(G,U,w,!1)}const Z=U;if(Z&&this.options.unpairedTags.indexOf(Z.tagname)!==-1)U=this.tagsNodeStack.pop(),w=w.substring(0,w.lastIndexOf("."));if(F!==$.tagname)w+=w?"."+F:F;if(this.isItStopNode(this.options.stopNodes,w,F)){let Q="";if(X.length>0&&X.lastIndexOf("/")===X.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),w=w.substr(0,w.length-1),X=F;else X=X.substr(0,X.length-1);E=L.closeIndex}else if(this.options.unpairedTags.indexOf(F)!==-1)E=L.closeIndex;else{const J=this.readStopNodeData(f,R,Y+1);if(!J)throw new Error(`Unexpected end of ${R}`);E=J.i,Q=J.tagContent}const O=new e0(F);if(F!==X&&I)O[":@"]=this.buildAttributesMap(X,w,F);if(Q)Q=this.parseTextData(Q,F,w,!0,I,!0,!0);w=w.substr(0,w.lastIndexOf(".")),O.add(this.options.textNodeName,Q),this.addChild(U,O,w)}else{if(X.length>0&&X.lastIndexOf("/")===X.length-1){if(F[F.length-1]==="/")F=F.substr(0,F.length-1),w=w.substr(0,w.length-1),X=F;else X=X.substr(0,X.length-1);if(this.options.transformTagName)F=this.options.transformTagName(F);const Q=new e0(F);if(F!==X&&I)Q[":@"]=this.buildAttributesMap(X,w,F);this.addChild(U,Q,w),w=w.substr(0,w.lastIndexOf("."))}else{const Q=new e0(F);if(this.tagsNodeStack.push(U),F!==X&&I)Q[":@"]=this.buildAttributesMap(X,w,F);this.addChild(U,Q,w),U=Q}G="",E=Y}}else G+=f[E];return $.child},OY=function(f){if(this.options.processEntities){for(let $ in this.docTypeEntities){const U=this.docTypeEntities[$];f=f.replace(U.regx,U.val)}for(let $ in this.lastEntities){const U=this.lastEntities[$];f=f.replace(U.regex,U.val)}if(this.options.htmlEntities)for(let $ in this.htmlEntities){const U=this.htmlEntities[$];f=f.replace(U.regex,U.val)}f=f.replace(this.ampEntity.regex,this.ampEntity.val)}return f};KL.exports=TL});var VL=T((qY)=>{var BY=function(f,$){return BL(f,$)},BL=function(f,$,U){let G;const w={};for(let E=0;E<f.length;E++){const W=f[E],L=VY(W);let F="";if(U===void 0)F=L;else F=U+"."+L;if(L===$.textNodeName)if(G===void 0)G=W[L];else G+=""+W[L];else if(L===void 0)continue;else if(W[L]){let R=BL(W[L],$,F);const X=CY(R,$);if(W[":@"])HY(R,W[":@"],F,$);else if(Object.keys(R).length===1&&R[$.textNodeName]!==void 0&&!$.alwaysCreateTextNode)R=R[$.textNodeName];else if(Object.keys(R).length===0)if($.alwaysCreateTextNode)R[$.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($.isArray(L,F,X))w[L]=[R];else w[L]=R}}if(typeof G==="string"){if(G.length>0)w[$.textNodeName]=G}else if(G!==void 0)w[$.textNodeName]=G;return w},VY=function(f){const $=Object.keys(f);for(let U=0;U<$.length;U++){const G=$[U];if(G!==":@")return G}},HY=function(f,$,U,G){if($){const w=Object.keys($),E=w.length;for(let W=0;W<E;W++){const L=w[W];if(G.isArray(L,U+"."+L,!0,!0))f[L]=[$[L]];else f[L]=$[L]}}},CY=function(f,$){const{textNodeName:U}=$,G=Object.keys(f).length;if(G===0)return!0;if(G===1&&(f[U]||typeof f[U]==="boolean"||f[U]===0))return!0;return!1};qY.prettify=BY});var qL=T((XK,CL)=>{var{buildOptions:PY}=XL(),SY=AL(),{prettify:jY}=VL(),bY=C$();class HL{constructor(f){this.externalEntities={},this.options=PY(f)}parse(f,$){if(typeof f==="string");else if(f.toString)f=f.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if($){if($===!0)$={};const w=bY.validate(f,$);if(w!==!0)throw Error(`${w.err.msg}:${w.err.line}:${w.err.col}`)}const U=new SY(this.options);U.addExternalEntities(this.externalEntities);const G=U.parseXml(f);if(this.options.preserveOrder||G===void 0)return G;else return jY(G,this.options)}addEntity(f,$){if($.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(f.indexOf("&")!==-1||f.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if($==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[f]=$}}CL.exports=HL});var bL=T((IK,jL)=>{var hY=function(f,$){let U="";if($.format&&$.indentBy.length>0)U="\n";return PL(f,$,"",U)},PL=function(f,$,U,G){let w="",E=!1;for(let W=0;W<f.length;W++){const L=f[W],F=kY(L);if(F===void 0)continue;let R="";if(U.length===0)R=F;else R=`${U}.${F}`;if(F===$.textNodeName){let Q=L[F];if(!DY(R,$))Q=$.tagValueProcessor(F,Q),Q=SL(Q,$);if(E)w+=G;w+=Q,E=!1;continue}else if(F===$.cdataPropName){if(E)w+=G;w+=`<![CDATA[${L[F][0][$.textNodeName]}]]>`,E=!1;continue}else if(F===$.commentPropName){w+=G+`<!--${L[F][0][$.textNodeName]}-->`,E=!0;continue}else if(F[0]==="?"){const Q=NL(L[":@"],$),O=F==="?xml"?"":G;let J=L[F][0][$.textNodeName];J=J.length!==0?" "+J:"",w+=O+`<${F}${J}${Q}?>`,E=!0;continue}let X=G;if(X!=="")X+=$.indentBy;const I=NL(L[":@"],$),Y=G+`<${F}${I}`,Z=PL(L[F],$,R,X);if($.unpairedTags.indexOf(F)!==-1)if($.suppressUnpairedNode)w+=Y+">";else w+=Y+"/>";else if((!Z||Z.length===0)&&$.suppressEmptyNode)w+=Y+"/>";else if(Z&&Z.endsWith(">"))w+=Y+`>${Z}${G}</${F}>`;else{if(w+=Y+">",Z&&G!==""&&(Z.includes("/>")||Z.includes("</")))w+=G+$.indentBy+Z+G;else w+=Z;w+=`</${F}>`}E=!0}return w},kY=function(f){const $=Object.keys(f);for(let U=0;U<$.length;U++){const G=$[U];if(!f.hasOwnProperty(G))continue;if(G!==":@")return G}},NL=function(f,$){let U="";if(f&&!$.ignoreAttributes)for(let G in f){if(!f.hasOwnProperty(G))continue;let w=$.attributeValueProcessor(G,f[G]);if(w=SL(w,$),w===!0&&$.suppressBooleanAttributes)U+=` ${G.substr($.attributeNamePrefix.length)}`;else U+=` ${G.substr($.attributeNamePrefix.length)}="${w}"`}return U},DY=function(f,$){f=f.substr(0,f.length-$.textNodeName.length-1);let U=f.substr(f.lastIndexOf(".")+1);for(let G in $.stopNodes)if($.stopNodes[G]===f||$.stopNodes[G]==="*."+U)return!0;return!1},SL=function(f,$){if(f&&f.length>0&&$.processEntities)for(let U=0;U<$.entities.length;U++){const G=$.entities[U];f=f.replace(G.regex,G.val)}return f};jL.exports=hY});var kL=T((ZK,hL)=>{var w0=function(f){if(this.options=Object.assign({},uY,f),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=_Y;if(this.processTextOrObjNode=vY,this.options.format)this.indentate=xY,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},vY=function(f,$,U){const G=this.j2x(f,U+1);if(f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1)return this.buildTextValNode(f[this.options.textNodeName],$,G.attrStr,U);else return this.buildObjectNode(G.val,$,G.attrStr,U)},xY=function(f){return this.options.indentBy.repeat(f)},_Y=function(f){if(f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName)return f.substr(this.attrPrefixLen);else return!1},cY=bL(),uY={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(f,$){return $},attributeValueProcessor:function(f,$){return $},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};w0.prototype.build=function(f){if(this.options.preserveOrder)return cY(f,this.options);else{if(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)f={[this.options.arrayNodeName]:f};return this.j2x(f,0).val}};w0.prototype.j2x=function(f,$){let U="",G="";for(let w in f){if(!Object.prototype.hasOwnProperty.call(f,w))continue;if(typeof f[w]==="undefined"){if(this.isAttribute(w))G+=""}else if(f[w]===null)if(this.isAttribute(w))G+="";else if(w[0]==="?")G+=this.indentate($)+"<"+w+"?"+this.tagEndChar;else G+=this.indentate($)+"<"+w+"/"+this.tagEndChar;else if(f[w]instanceof Date)G+=this.buildTextValNode(f[w],w,"",$);else if(typeof f[w]!=="object"){const E=this.isAttribute(w);if(E)U+=this.buildAttrPairStr(E,""+f[w]);else if(w===this.options.textNodeName){let W=this.options.tagValueProcessor(w,""+f[w]);G+=this.replaceEntitiesValue(W)}else G+=this.buildTextValNode(f[w],w,"",$)}else if(Array.isArray(f[w])){const E=f[w].length;let W="",L="";for(let F=0;F<E;F++){const R=f[w][F];if(typeof R==="undefined");else if(R===null)if(w[0]==="?")G+=this.indentate($)+"<"+w+"?"+this.tagEndChar;else G+=this.indentate($)+"<"+w+"/"+this.tagEndChar;else if(typeof R==="object")if(this.options.oneListGroup){const X=this.j2x(R,$+1);if(W+=X.val,this.options.attributesGroupName&&R.hasOwnProperty(this.options.attributesGroupName))L+=X.attrStr}else W+=this.processTextOrObjNode(R,w,$);else if(this.options.oneListGroup){let X=this.options.tagValueProcessor(w,R);X=this.replaceEntitiesValue(X),W+=X}else W+=this.buildTextValNode(R,w,"",$)}if(this.options.oneListGroup)W=this.buildObjectNode(W,w,L,$);G+=W}else if(this.options.attributesGroupName&&w===this.options.attributesGroupName){const E=Object.keys(f[w]),W=E.length;for(let L=0;L<W;L++)U+=this.buildAttrPairStr(E[L],""+f[w][E[L]])}else G+=this.processTextOrObjNode(f[w],w,$)}return{attrStr:U,val:G}};w0.prototype.buildAttrPairStr=function(f,$){if($=this.options.attributeValueProcessor(f,""+$),$=this.replaceEntitiesValue($),this.options.suppressBooleanAttributes&&$==="true")return" "+f;else return" "+f+'="'+$+'"'};w0.prototype.buildObjectNode=function(f,$,U,G){if(f==="")if($[0]==="?")return this.indentate(G)+"<"+$+U+"?"+this.tagEndChar;else return this.indentate(G)+"<"+$+U+this.closeTag($)+this.tagEndChar;else{let w="</"+$+this.tagEndChar,E="";if($[0]==="?")E="?",w="";if((U||U==="")&&f.indexOf("<")===-1)return this.indentate(G)+"<"+$+U+E+">"+f+w;else if(this.options.commentPropName!==!1&&$===this.options.commentPropName&&E.length===0)return this.indentate(G)+`<!--${f}-->`+this.newLine;else return this.indentate(G)+"<"+$+U+E+this.tagEndChar+f+this.indentate(G)+w}};w0.prototype.closeTag=function(f){let $="";if(this.options.unpairedTags.indexOf(f)!==-1){if(!this.options.suppressUnpairedNode)$="/"}else if(this.options.suppressEmptyNode)$="/";else $=`></${f}`;return $};w0.prototype.buildTextValNode=function(f,$,U,G){if(this.options.cdataPropName!==!1&&$===this.options.cdataPropName)return this.indentate(G)+`<![CDATA[${f}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&$===this.options.commentPropName)return this.indentate(G)+`<!--${f}-->`+this.newLine;else if($[0]==="?")return this.indentate(G)+"<"+$+U+"?"+this.tagEndChar;else{let w=this.options.tagValueProcessor($,f);if(w=this.replaceEntitiesValue(w),w==="")return this.indentate(G)+"<"+$+U+this.closeTag($)+this.tagEndChar;else return this.indentate(G)+"<"+$+U+">"+w+"</"+$+this.tagEndChar}};w0.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let $=0;$<this.options.entities.length;$++){const U=this.options.entities[$];f=f.replace(U.regex,U.val)}return f};hL.exports=w0});var cL=T((YK,DL)=>{var yY=C$(),pY=qL(),dY=kL();DL.exports={XMLParser:pY,XMLValidator:yY,XMLBuilder:dY}});var pL=T((QK,yL)=>{var{defineProperty:af,getOwnPropertyDescriptor:gY,getOwnPropertyNames:sY}=Object,nY=Object.prototype.hasOwnProperty,c=(f,$)=>af(f,"name",{value:$,configurable:!0}),lY=(f,$)=>{for(var U in $)af(f,U,{get:$[U],enumerable:!0})},mY=(f,$,U,G)=>{if($&&typeof $==="object"||typeof $==="function"){for(let w of sY($))if(!nY.call(f,w)&&w!==U)af(f,w,{get:()=>$[w],enumerable:!(G=gY($,w))||G.enumerable})}return f},rY=(f)=>mY(af({},"__esModule",{value:!0}),f),uL={};lY(uL,{_toBool:()=>oY,_toNum:()=>tY,_toStr:()=>iY,awsExpectUnion:()=>eY,loadRestJsonErrorCode:()=>U9,loadRestXmlErrorCode:()=>W9,parseJsonBody:()=>xL,parseJsonErrorBody:()=>$9,parseXmlBody:()=>_L,parseXmlErrorBody:()=>E9});yL.exports=rY(uL);var iY=c((f)=>{if(f==null)return f;if(typeof f==="number"||typeof f==="bigint"){const $=new Error(`Received number ${f} where a string was expected.`);return $.name="Warning",console.warn($),String(f)}if(typeof f==="boolean"){const $=new Error(`Received boolean ${f} where a string was expected.`);return $.name="Warning",console.warn($),String(f)}return f},"_toStr"),oY=c((f)=>{if(f==null)return f;if(typeof f==="string"){const $=f.toLowerCase();if(f!==""&&$!=="false"&&$!=="true"){const U=new Error(`Received string "${f}" where a boolean was expected.`);U.name="Warning",console.warn(U)}return f!==""&&$!=="false"}return f},"_toBool"),tY=c((f)=>{if(f==null)return f;if(typeof f==="string"){const $=Number(f);if($.toString()!==f){const U=new Error(`Received string "${f}" where a number was expected.`);return U.name="Warning",console.warn(U),f}return $}return f},"_toNum"),aY=V0(),eY=c((f)=>{if(f==null)return;if(typeof f==="object"&&"__type"in f)delete f.__type;return aY.expectUnion(f)},"awsExpectUnion"),f9=V0(),vL=c((f,$)=>f9.collectBody(f,$).then((U)=>$.utf8Encoder(U)),"collectBodyString"),xL=c((f,$)=>vL(f,$).then((U)=>{if(U.length)try{return JSON.parse(U)}catch(G){if((G==null?void 0:G.name)==="SyntaxError")Object.defineProperty(G,"$responseBodyText",{value:U});throw G}return{}}),"parseJsonBody"),$9=c(async(f,$)=>{const U=await xL(f,$);return U.message=U.message??U.Message,U},"parseJsonErrorBody"),U9=c((f,$)=>{const U=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=U(f.headers,"x-amzn-errortype");if(w!==void 0)return G(f.headers[w]);if($.code!==void 0)return G($.code);if($.__type!==void 0)return G($.__type)},"loadRestJsonErrorCode"),w9=V0(),G9=cL(),_L=c((f,$)=>vL(f,$).then((U)=>{if(U.length){const G=new G9.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(F,R)=>R.trim()===""&&R.includes("\n")?"":void 0});G.addEntity("#xD","\r"),G.addEntity("#10","\n");let w;try{w=G.parse(U,!0)}catch(F){if(F&&typeof F==="object")Object.defineProperty(F,"$responseBodyText",{value:U});throw F}const E="#text",W=Object.keys(w)[0],L=w[W];if(L[E])L[W]=L[E],delete L[E];return w9.getValueFromTextNode(L)}return{}}),"parseXmlBody"),E9=c(async(f,$)=>{const U=await _L(f,$);if(U.Error)U.Error.message=U.Error.message??U.Error.Message;return U},"parseXmlErrorBody"),W9=c((f,$)=>{var U;if(((U=$==null?void 0:$.Error)==null?void 0:U.Code)!==void 0)return $.Error.Code;if(($==null?void 0:$.Code)!==void 0)return $.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var L9=T((ff)=>{Object.defineProperty(ff,"__esModule",{value:!0});var P$=B8();P$.__exportStar(q8(),ff);P$.__exportStar(UL(),ff);P$.__exportStar(pL(),ff)});function V9(f){return f}var fF=(f)=>($)=>async(U)=>{if(!v.isInstance(U.request))return $(U);const{request:G}=U,{handlerProtocol:w=""}=f.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={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},H9=(f)=>({applyToStack:($)=>{$.add(fF(f),$F)}});var UF=()=>(f,$)=>async(U)=>{try{const G=await f(U),{clientName:w,commandName:E,logger:W,dynamoDbDocumentClientOptions:L={}}=$,{overrideInputFilterSensitiveLog:F,overrideOutputFilterSensitiveLog:R}=L,X=F??$.inputFilterSensitiveLog,I=R??$.outputFilterSensitiveLog,{$metadata:Y,...Z}=G.output;return W?.info?.({clientName:w,commandName:E,input:X(U.input),output:I(Z),metadata:Y}),G}catch(G){const{clientName:w,commandName:E,logger:W,dynamoDbDocumentClientOptions:L={}}=$,{overrideInputFilterSensitiveLog:F}=L,R=F??$.inputFilterSensitiveLog;throw W?.error?.({clientName:w,commandName:E,input:R(U.input),error:G,metadata:G.$metadata}),G}},wF={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},q9=(f)=>({applyToStack:($)=>{$.add(UF(),wF)}});var k$="X-Amzn-Trace-Id",GF="AWS_LAMBDA_FUNCTION_NAME",EF="_X_AMZN_TRACE_ID",WF=(f)=>($)=>async(U)=>{const{request:G}=U;if(!v.isInstance(G)||f.runtime!=="node"||G.headers.hasOwnProperty(k$))return $(U);const w=process.env[GF],E=process.env[EF],W=(L)=>typeof L==="string"&&L.length>0;if(W(w)&&W(E))G.headers[k$]=E;return $({...U,request:G})},LF={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},b9=(f)=>({applyToStack:($)=>{$.add(WF(f),LF)}});function C7(f){return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent}}var _6=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}$"),l0=(f)=>_6.test(f)||f.startsWith("[")&&f.endsWith("]");var y6=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),m0=(f,$=!1)=>{if(!$)return y6.test(f);const U=f.split(".");for(let G of U)if(!m0(G))return!1;return!0};var r0={};var i="endpoints";function y(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`\$${y(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(y).join(", ")})`;return JSON.stringify(f,null,2)}class V extends Error{constructor(f){super(f);this.name="EndpointError"}}var UW=(f,$)=>f===$;var wW=(f)=>{const $=f.split("."),U=[];for(let G of $){const w=G.indexOf("[");if(w!==-1){if(G.indexOf("]")!==G.length-1)throw new V(`Path: '${f}' does not end with ']'`);const E=G.slice(w+1,-1);if(Number.isNaN(parseInt(E)))throw new V(`Invalid array index: '${E}' in path: '${f}'`);if(w!==0)U.push(G.slice(0,w));U.push(E)}else U.push(G)}return U};var Hf=(f,$)=>wW($).reduce((U,G)=>{if(typeof U!=="object")throw new V(`Index '${G}' in '${$}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray(U))return U[parseInt(G)];return U[G]},f);var GW=(f)=>f!=null;var EW=(f)=>!f;var Cf=qf(z0(),1);var r1={[Cf.EndpointURLScheme.HTTP]:80,[Cf.EndpointURLScheme.HTTPS]:443},WW=(f)=>{const $=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){const{hostname:Y,port:Z,protocol:Q="",path:O="",query:J={}}=f,M=new URL(`${Q}//${Y}${Z?`:${Z}`:""}${O}`);return M.search=Object.entries(J).map(([K,A])=>`${K}=${A}`).join("&"),M}return new URL(f)}catch(Y){return null}})();if(!$)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;const U=$.href,{host:G,hostname:w,pathname:E,protocol:W,search:L}=$;if(L)return null;const F=W.slice(0,-1);if(!Object.values(Cf.EndpointURLScheme).includes(F))return null;const R=l0(w),X=U.includes(`${G}:${r1[F]}`)||typeof f==="string"&&f.includes(`${G}:${r1[F]}`),I=`${G}${X?`:${r1[F]}`:""}`;return{scheme:F,authority:I,path:E,normalizedPath:E.endsWith("/")?E:`${E}/`,isIp:R}};var LW=(f,$)=>f===$;var FW=(f,$,U,G)=>{if($>=U||f.length<U)return null;if(!G)return f.substring($,U);return f.substring(f.length-U,f.length-$)};var RW=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`);var XW={booleanEquals:UW,getAttr:Hf,isSet:GW,isValidHostLabel:m0,not:EW,parseURL:WW,stringEquals:LW,substring:FW,uriEncode:RW};var Nf=(f,$)=>{const U=[],G={...$.endpointParams,...$.referenceRecord};let w=0;while(w<f.length){const E=f.indexOf("{",w);if(E===-1){U.push(f.slice(w));break}U.push(f.slice(w,E));const W=f.indexOf("}",E);if(W===-1){U.push(f.slice(E));break}if(f[E+1]==="{"&&f[W+1]==="}")U.push(f.slice(E+1,W)),w=W+2;const L=f.substring(E+1,W);if(L.includes("#")){const[F,R]=L.split("#");U.push(Hf(G[F],R))}else U.push(G[L]);w=W+1}return U.join("")};var IW=({ref:f},$)=>{return{...$.endpointParams,...$.referenceRecord}[f]};var f0=(f,$,U)=>{if(typeof f==="string")return Nf(f,U);else if(f.fn)return Pf(f,U);else if(f.ref)return IW(f,U);throw new V(`'${$}': ${String(f)} is not a string, function or reference.`)};var Pf=({fn:f,argv:$},U)=>{const G=$.map((E)=>["boolean","number"].includes(typeof E)?E:f0(E,"arg",U)),w=f.split(".");if(w[0]in r0&&w[1]!=null)return r0[w[0]][w[1]](...G);return XW[f](...G)};var ZW=({assign:f,...$},U)=>{if(f&&f in U.referenceRecord)throw new V(`'${f}' is already defined in Reference Record.`);const G=Pf($,U);return U.logger?.debug?.(`${i} evaluateCondition: ${y($)} = ${y(G)}`),{result:G===""?!0:!!G,...f!=null&&{toAssign:{name:f,value:G}}}};var C0=(f=[],$)=>{const U={};for(let G of f){const{result:w,toAssign:E}=ZW(G,{...$,referenceRecord:{...$.referenceRecord,...U}});if(!w)return{result:w};if(E)U[E.name]=E.value,$.logger?.debug?.(`${i} assign: ${E.name} := ${y(E.value)}`)}return{result:!0,referenceRecord:U}};var YW=(f,$)=>Object.entries(f).reduce((U,[G,w])=>({...U,[G]:w.map((E)=>{const W=f0(E,"Header value entry",$);if(typeof W!=="string")throw new V(`Header '${G}' value '${W}' is not a string`);return W})}),{});var i1=(f,$)=>{if(Array.isArray(f))return f.map((U)=>i1(U,$));switch(typeof f){case"string":return Nf(f,$);case"object":if(f===null)throw new V(`Unexpected endpoint property: ${f}`);return Sf(f,$);case"boolean":return f;default:throw new V(`Unexpected endpoint property type: ${typeof f}`)}};var Sf=(f,$)=>Object.entries(f).reduce((U,[G,w])=>({...U,[G]:i1(w,$)}),{});var QW=(f,$)=>{const U=f0(f,"Endpoint URL",$);if(typeof U==="string")try{return new URL(U)}catch(G){throw console.error(`Failed to construct URL with ${U}`,G),G}throw new V(`Endpoint URL must be a string, got ${typeof U}`)};var zW=(f,$)=>{const{conditions:U,endpoint:G}=f,{result:w,referenceRecord:E}=C0(U,$);if(!w)return;const W={...$,referenceRecord:{...$.referenceRecord,...E}},{url:L,properties:F,headers:R}=G;return $.logger?.debug?.(`${i} Resolving endpoint from template: ${y(G)}`),{...R!=null&&{headers:YW(R,W)},...F!=null&&{properties:Sf(F,W)},url:QW(L,W)}};var JW=(f,$)=>{const{conditions:U,error:G}=f,{result:w,referenceRecord:E}=C0(U,$);if(!w)return;throw new V(f0(G,"Error",{...$,referenceRecord:{...$.referenceRecord,...E}}))};var OW=(f,$)=>{const{conditions:U,rules:G}=f,{result:w,referenceRecord:E}=C0(U,$);if(!w)return;return jf(G,{...$,referenceRecord:{...$.referenceRecord,...E}})};var jf=(f,$)=>{for(let U of f)if(U.type==="endpoint"){const G=zW(U,$);if(G)return G}else if(U.type==="error")JW(U,$);else if(U.type==="tree"){const G=OW(U,$);if(G)return G}else throw new V(`Unknown endpoint rule: ${U}`);throw new V("Rules evaluation failed")};var p6=(f,$)=>{const{endpointParams:U,logger:G}=$,{parameters:w,rules:E}=f;$.logger?.debug?.(`${i} Initial EndpointParams: ${y(U)}`);const W=Object.entries(w).filter(([,R])=>R.default!=null).map(([R,X])=>[R,X.default]);if(W.length>0)for(let[R,X]of W)U[R]=U[R]??X;const L=Object.entries(w).filter(([,R])=>R.required).map(([R])=>R);for(let R of L)if(U[R]==null)throw new V(`Missing required parameter: '${R}'`);const F=jf(E,{endpointParams:U,logger:G,referenceRecord:{}});if($.endpointParams?.Endpoint)try{const R=new URL($.endpointParams.Endpoint),{protocol:X,port:I}=R;F.url.protocol=X,F.url.port=I}catch(R){}return $.logger?.debug?.(`${i} Resolved endpoint: ${y(F)}`),F};var o1=(f,$=!1)=>{if($){for(let U of f.split("."))if(!o1(U))return!1;return!0}if(!m0(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(l0(f))return!1;return!0};var MW=(f)=>{const $=f.split(":");if($.length<6)return null;const[U,G,w,E,W,...L]=$;if(U!=="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 TW={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 g6=TW,s6="",KW=(f)=>{const{partitions:$}=g6;for(let G of $){const{regions:w,outputs:E}=G;for(let[W,L]of Object.entries(w))if(W===f)return{...E,...L}}for(let G of $){const{regionRegex:w,outputs:E}=G;if(new RegExp(w).test(f))return{...E}}const U=$.find((G)=>G.id==="aws");if(!U)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...U.outputs}};var AW=()=>s6;var n6={isVirtualHostableS3Bucket:o1,parseArn:MW,partition:KW};r0.aws=n6;var t1="user-agent",bf="x-amz-user-agent",a1=" ",hf="/",BW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,VW=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,e1="-";var l6=(f)=>($,U)=>async(G)=>{const{request:w}=G;if(!v.isInstance(w))return $(G);const{headers:E}=w,W=U?.userAgent?.map(f$)||[],L=(await f.defaultUserAgentProvider()).map(f$),F=f?.customUserAgent?.map(f$)||[],R=AW(),X=(R?[R]:[]).concat([...L,...W,...F]).join(a1),I=[...L.filter((Y)=>Y.startsWith("aws-sdk-")),...F].join(a1);if(f.runtime!=="browser"){if(I)E[bf]=E[bf]?`${E[t1]} ${I}`:I;E[t1]=X}else E[bf]=X;return $({...G,request:w})},f$=(f)=>{const $=f[0].split(hf).map((W)=>W.replace(BW,e1)).join(hf),U=f[1]?.replace(VW,e1),G=$.indexOf(hf),w=$.substring(0,G);let E=$.substring(G+1);if(w==="api")E=E.toLowerCase();return[w,E,U].filter((W)=>W&&W.length>0).reduce((W,L,F)=>{switch(F){case 0:return L;case 1:return`${W}/${L}`;default:return`${W}#${L}`}},"")},m6={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},GJ=(f)=>({applyToStack:($)=>{$.add(l6(f),m6)}});var kf=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var $$=(f)=>kf(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var QJ=(f)=>{const{region:$,useFipsEndpoint:U}=f;if(!$)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof $==="string")return $$($);const G=await $();return $$(G)},useFipsEndpoint:async()=>{const G=typeof $==="string"?$:await $();if(kf(G))return!0;return typeof U!=="function"?Promise.resolve(!!U):U()}}};var q0=(f,$,U)=>{if(!($ in f))return;if(f[$]==="true")return!0;if(f[$]==="false")return!1;throw new Error(`Cannot load ${U} "${$}". Expected "true" or "false", got ${f[$]}.`)};var $0;(function(f){f.ENV="env",f.CONFIG="shared config entry"})($0||($0={}));var r6="AWS_USE_DUALSTACK_ENDPOINT",i6="use_dualstack_endpoint";var HJ={environmentVariableSelector:(f)=>q0(f,r6,$0.ENV),configFileSelector:(f)=>q0(f,i6,$0.CONFIG),default:!1};var o6="AWS_USE_FIPS_ENDPOINT",t6="use_fips_endpoint";var NJ={environmentVariableSelector:(f)=>q0(f,o6,$0.ENV),configFileSelector:(f)=>q0(f,t6,$0.CONFIG),default:!1};var U$=qf(z0(),1),HW=(f)=>f[U$.SMITHY_CONTEXT_KEY]||(f[U$.SMITHY_CONTEXT_KEY]={});var o=(f)=>{if(typeof f==="function")return f;const $=Promise.resolve(f);return()=>$};var CW={environmentVariableSelector:(f)=>f["AWS_REGION"],configFileSelector:(f)=>f["region"],default:()=>{throw new Error("Region is missing")}},lJ={preferredFile:"credentials"};function a6(f){return($)=>async(U)=>{const G=U.request;if(v.isInstance(G)){const{body:w,headers:E}=G;if(w&&Object.keys(E).map((W)=>W.toLowerCase()).indexOf(qW)===-1)try{const W=f(w);G.headers={...G.headers,[qW]:String(W)}}catch(W){}}return $({...U,request:G})}}var qW="content-length",e6={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},TO=(f)=>({applyToStack:($)=>{$.add(a6(f.bodyLengthChecker),e6)}});var NW=(f,$)=>(U)=>async(G)=>{const{response:w}=await U(G);try{const E=await $(w,f);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 PW=(f,$)=>(U,G)=>async(w)=>{const E=G.endpointV2?.url&&f.urlParser?async()=>f.urlParser(G.endpointV2.url):f.endpoint;if(!E)throw new Error("No valid endpoint provider available.");const W=await $(w.input,{...f,endpoint:E});return U({...w,request:W})};function CO(f,$,U){return{applyToStack:(G)=>{G.add(NW(f,U),fZ),G.add(PW(f,$),w$)}}}var fZ={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},w$={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var SW=async(f)=>{const $=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=$.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(EZ($)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!GZ($)||$.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||$.toLowerCase()!==$||$.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},$Z=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,UZ=/(\d+\.){3}\d+/,wZ=/\.\./;var GZ=(f)=>$Z.test(f)&&!UZ.test(f)&&!wZ.test(f),EZ=(f)=>{const[$,U,G,,,w]=f.split(":"),E=$==="arn"&&f.split(":").length>=6,W=Boolean(E&&U&&G&&w);if(E&&!W)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return W};var jW=(f,$,U)=>{const G=async()=>{const w=U[f]??U[$];if(typeof w==="function")return w();return w};if(f==="credentialScope"||$==="CredentialScope")return async()=>{const w=typeof U.credentials==="function"?await U.credentials():U.credentials;return w?.credentialScope??w?.CredentialScope};if(f==="accountId"||$==="AccountId")return async()=>{const w=typeof U.credentials==="function"?await U.credentials():U.credentials;return w?.accountId??w?.AccountId};if(f==="endpoint"||$==="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:F}=w;return`${E}//${W}${L?":"+L:""}${F}`}}return w};return G};var bW="AWS_ENDPOINT_URL",hW="endpoint_url",kW=(f)=>({environmentVariableSelector:($)=>{const U=f.split(" ").map((E)=>E.toUpperCase()),G=$[[bW,...U].join("_")];if(G)return G;const w=$[bW];if(w)return w;return},configFileSelector:($,U)=>{if(U&&$.services){const w=U[["services",$.services].join(G$)];if(w){const E=f.split(" ").map((L)=>L.toLowerCase()),W=w[[E.join("_"),hW].join(G$)];if(W)return W}}const G=$[hW];if(G)return G;return},default:void 0});var DW=async(f)=>X0(kW(f))();var Df=(f)=>{if(typeof f==="object"){if("url"in f)return E$(f.url);return f}return E$(f)};var cW=async(f,$,U,G)=>{if(!U.endpoint){const W=await DW(U.serviceId||"");if(W)U.endpoint=()=>Promise.resolve(Df(W))}const w=await WZ(f,$,U);if(typeof U.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return U.endpointProvider(w,G)},WZ=async(f,$,U)=>{const G={},w=$?.getEndpointParameterInstructions?.()||{};for(let[E,W]of Object.entries(w))switch(W.type){case"staticContextParams":G[E]=W.value;break;case"contextParams":G[E]=f[W.name];break;case"clientContextParams":case"builtInParams":G[E]=await jW(W.name,E,U)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(W))}if(Object.keys(w).length===0)Object.assign(G,U);if(String(U.serviceId).toLowerCase()==="s3")await SW(G);return G};var uW=({config:f,instructions:$})=>{return(U,G)=>async(w)=>{const E=await cW(w.input,{getEndpointParameterInstructions(){return $}},{...f},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 F=HW(G)?.selectedHttpAuthScheme?.httpAuthOption;if(F)F.signingProperties=Object.assign(F.signingProperties||{},{signing_region:W.signingRegion,signingRegion:W.signingRegion,signing_service:W.signingName,signingName:W.signingName,signingRegionSet:W.signingRegionSet},W.properties)}return U({...w})}};var LZ={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:w$.name},aO=(f,$)=>({applyToStack:(U)=>{U.addRelativeTo(uW({config:f,instructions:$}),LZ)}});var UM=(f)=>{const $=f.tls??!0,{endpoint:U}=f,G=U!=null?async()=>Df(await o(U)()):void 0;return{...f,endpoint:G,tls:$,isCustomEndpoint:!!U,useDualstackEndpoint:o(f.useDualstackEndpoint??!1),useFipsEndpoint:o(f.useFipsEndpoint??!1)}};var m=qf(M1(),1),YM=m.default.v1,QM=m.default.v3,vW=m.default.v4,zM=m.default.v5,JM=m.default.NIL,OM=m.default.version,MM=m.default.validate,TM=m.default.stringify,KM=m.default.parse;var n;(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(n||(n={}));var I0=3,xW=n.STANDARD;var _W=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],yW=["TimeoutError","RequestTimeout","RequestTimeoutException"],pW=[500,502,503,504],dW=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var FZ=(f)=>f.$metadata?.clockSkewCorrected,N0=(f)=>f.$metadata?.httpStatusCode===429||_W.includes(f.name)||f.$retryable?.throttling==!0,cf=(f)=>FZ(f)||yW.includes(f.name)||dW.includes(f?.code||"")||pW.includes(f.$metadata?.httpStatusCode||0),gW=(f)=>{if(f.$metadata?.httpStatusCode!==void 0){const $=f.$metadata.httpStatusCode;if(500<=$&&$<=599&&!cf(f))return!0;return!1}return!1};class uf{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=f?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.smooth??0.8;const $=this.getCurrentTimeInSeconds();this.lastThrottleTime=$,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(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const $=(f-this.currentCapacity)/this.fillRate*1000;await new Promise((U)=>setTimeout(U,$))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const $=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+$),this.lastTimestamp=f}updateClientSendingRate(f){let $;if(this.updateMeasuredRate(),N0(f)){const G=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=G,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),$=this.cubicThrottle(G),this.enableTokenBucket()}else this.calculateTimeWindow(),$=this.cubicSuccess(this.getCurrentTimeInSeconds());const U=Math.min($,2*this.measuredTxRate);this.updateTokenBucketRate(U)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),$=Math.floor(f*2)/2;if(this.requestCount++,$>this.lastTxRateBucket){const U=this.requestCount/($-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(U*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=$}}getPrecise(f){return parseFloat(f.toFixed(8))}}var Z0=100,i0=20000,W$=500,vf=500,L$=5,F$=10,R$=1,xf="amz-sdk-invocation-id",_f="amz-sdk-request";var sW=()=>{let f=Z0;return{computeNextBackoffDelay:(G)=>{return Math.floor(Math.min(i0,Math.random()*2**G*f))},setDelayBase:(G)=>{f=G}}};var X$=({retryDelay:f,retryCount:$,retryCost:U})=>{return{getRetryCount:()=>$,getRetryDelay:()=>Math.min(i0,f),getRetryCost:()=>U}};class P0{constructor(f){this.maxAttempts=f,this.mode=n.STANDARD,this.capacity=vf,this.retryBackoffStrategy=sW(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return X$({retryDelay:Z0,retryCount:0})}async refreshRetryTokenForRetry(f,$){const U=await this.getMaxAttempts();if(this.shouldRetry(f,$,U)){const G=$.errorType;this.retryBackoffStrategy.setDelayBase(G==="THROTTLING"?W$:Z0);const w=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),E=$.retryAfterHint?Math.max($.retryAfterHint.getTime()-Date.now()||0,w):w,W=this.getCapacityCost(G);return this.capacity-=W,X$({retryDelay:E,retryCount:f.getRetryCount()+1,retryCost:W})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(vf,this.capacity+(f.getRetryCost()??R$))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${I0}`),I0}}shouldRetry(f,$,U){return f.getRetryCount()+1<U&&this.capacity>=this.getCapacityCost($.errorType)&&this.isRetryableError($.errorType)}getCapacityCost(f){return f==="TRANSIENT"?F$:L$}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}class I${constructor(f,$){this.maxAttemptsProvider=f,this.mode=n.ADAPTIVE;const{rateLimiter:U}=$??{};this.rateLimiter=U??new uf,this.standardRetryStrategy=new P0(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,$){return this.rateLimiter.updateClientSendingRate($),this.standardRetryStrategy.refreshRetryTokenForRetry(f,$)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var nW="AWS_MAX_ATTEMPTS",lW="max_attempts",UT={environmentVariableSelector:(f)=>{const $=f[nW];if(!$)return;const U=parseInt($);if(Number.isNaN(U))throw new Error(`Environment variable ${nW} mast be a number, got "${$}"`);return U},configFileSelector:(f)=>{const $=f[lW];if(!$)return;const U=parseInt($);if(Number.isNaN(U))throw new Error(`Shared config file entry ${lW} mast be a number, got "${$}"`);return U},default:I0},wT=(f)=>{const{retryStrategy:$}=f,U=o(f.maxAttempts??I0);return{...f,maxAttempts:U,retryStrategy:async()=>{if($)return $;if(await o(f.retryMode)()===n.ADAPTIVE)return new I$(U);return new P0(U)}}},RZ="AWS_RETRY_MODE",XZ="retry_mode",GT={environmentVariableSelector:(f)=>f[RZ],configFileSelector:(f)=>f[XZ],default:xW};import{Readable as IZ} from"stream";var mW=(f)=>f?.body instanceof IZ||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var Z$=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var ZZ=(f)=>($,U)=>async(G)=>{let w=await f.retryStrategy();const E=await f.maxAttempts();if(YZ(w)){w=w;let W=await w.acquireInitialRetryToken(U.partition_id),L=new Error,F=0,R=0;const{request:X}=G,I=v.isInstance(X);if(I)X.headers[xf]=vW();while(!0)try{if(I)X.headers[_f]=`attempt=${F+1}; max=${E}`;const{response:Y,output:Z}=await $(G);return w.recordSuccess(W),Z.$metadata.attempts=F+1,Z.$metadata.totalRetryDelay=R,{response:Y,output:Z}}catch(Y){const Z=QZ(Y);if(L=Z$(Y),I&&mW(X))throw(U.logger instanceof rW?console:U.logger)?.warn("An error was encountered in a non-retryable streaming request."),L;try{W=await w.refreshRetryTokenForRetry(W,Z)}catch(O){if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=F+1,L.$metadata.totalRetryDelay=R,L}F=W.getRetryCount();const Q=W.getRetryDelay();R+=Q,await new Promise((O)=>setTimeout(O,Q))}}else{if(w=w,w?.mode)U.userAgent=[...U.userAgent||[],["cfg/retry-mode",w.mode]];return w.retry($,G)}},YZ=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",QZ=(f)=>{const $={error:f,errorType:zZ(f)},U=OZ(f.$response);if(U)$.retryAfterHint=U;return $},zZ=(f)=>{if(N0(f))return"THROTTLING";if(cf(f))return"TRANSIENT";if(gW(f))return"SERVER_ERROR";return"CLIENT_ERROR"},JZ={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},JT=(f)=>({applyToStack:($)=>{$.add(ZZ(f),JZ)}}),OZ=(f)=>{if(!Y$.isInstance(f))return;const $=Object.keys(f.headers).find((E)=>E.toLowerCase()==="retry-after");if(!$)return;const U=f.headers[$],G=Number(U);if(!Number.isNaN(G))return new Date(G*1000);return new Date(U)};import{platform as F9,release as R9} from"os";import{env as gL,versions as X9} from"process";var S$={isCrtAvailable:!1};var dL=()=>{if(S$.isCrtAvailable)return["md/crt-avail"];return null};var I9="AWS_SDK_UA_APP_ID",Z9="sdk-ua-app-id",VK=({serviceId:f,clientVersion:$})=>{const U=[["aws-sdk-js",$],["ua","2.0"],[`os/${F9()}`,R9()],["lang/js"],["md/nodejs",`${X9.node}`]],G=dL();if(G)U.push(G);if(f)U.push([`api/${f}`,$]);if(gL.AWS_EXECUTION_ENV)U.push([`exec-env/${gL.AWS_EXECUTION_ENV}`]);const w=X0({environmentVariableSelector:(W)=>W[I9],configFileSelector:(W)=>W[Z9],default:void 0})();let E=void 0;return async()=>{if(!E){const W=await w;E=W?[...U,[`app/${W}`]]:[...U]}return E}};import{Buffer as Y9} from"buffer";import{createHash as Q9,createHmac as z9} from"crypto";var sL=function(f,$){if(Y9.isBuffer(f))return f;if(typeof f==="string")return nL(f,$);if(ArrayBuffer.isView(f))return j$(f.buffer,f.byteOffset,f.byteLength);return j$(f)};class J9{constructor(f,$){this.algorithmIdentifier=f,this.secret=$,this.reset()}update(f,$){this.hash.update(lL(sL(f,$)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?z9(this.algorithmIdentifier,sL(this.secret)):Q9(this.algorithmIdentifier)}}import{fstatSync as O9,lstatSync as M9} from"fs";var hK=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return M9(f.path).size;else if(typeof f.fd==="number")return O9(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var aL=qf(L1(),1);var mL="AWS_EXECUTION_ENV",b$="AWS_REGION",h$="AWS_DEFAULT_REGION",rL="AWS_EC2_METADATA_DISABLED",iL=["in-region","cross-region","mobile","standard","legacy"],oL="/latest/meta-data/placement/region";var tL={environmentVariableSelector:(f)=>{return f["AWS_DEFAULTS_MODE"]},configFileSelector:(f)=>{return f["defaults_mode"]},default:"legacy"};var dK=({region:f=X0(CW),defaultsMode:$=X0(tL)}={})=>aL.memoize(async()=>{const U=typeof $==="function"?await $():$;switch(U?.toLowerCase()){case"auto":return T9(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(U?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${iL.join(", ")}, got ${U}`)}}),T9=async(f)=>{if(f){const $=typeof f==="function"?await f():f,U=await K9();if(!U)return"standard";if($===U)return"in-region";else return"cross-region"}return"standard"},K9=async()=>{if(process.env[mL]&&(process.env[b$]||process.env[h$]))return process.env[b$]??process.env[h$];if(!process.env[rL])try{const{getInstanceMetadataEndpoint:f,httpRequest:$}=await import("./chunk-e1e84c38542d78ec.js"),U=await f();return(await $({...U,path:oL})).toString()}catch(f){}};var lK=(f)=>{let $=async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");const U=f.region;if(typeof U==="string")return U;return U()};return{setRegion(U){$=U},region(){return $}}},mK=(f)=>{return{region:f.region()}};export{V9 as Ea,H9 as Fa,q9 as Ga,b9 as Ha,l8 as Ia,q0 as Ja,$0 as Ka,m1 as La,HW as Ma,o as Na,C7 as Oa,r0 as Pa,p6 as Qa,n6 as Ra,GJ as Sa,HJ as Ta,NJ as Ua,CW as Va,lJ as Wa,QJ as Xa,TO as Ya,WZ as Za,CO as _a,aO as $a,UM as ab,xW as bb,vW as cb,UT as db,wT as eb,GT as fb,JT as gb,B8 as hb,L9 as ib,VK as jb,J9 as kb,hK as lb,dK as mb,lK as nb,mK as ob};
|