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