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