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,16 +0,0 @@
|
|
|
1
|
-
import{x as r,y as Z} from"./chunk-a5c18c07abe8fd9c.js";import{B as j,C as ow,D as CR,E as AL,G as G2,H as D0,I as Ff,J as W2,K as I2,L as ML} from"./chunk-088ed28ebed2b009.js";import{fb as Kf} from"./chunk-bbd36ce62b950ee5.js";import{gb as G$,hb as ff} from"./chunk-5c3681fb029d7588.js";import{nb as yw} from"./chunk-6943b50bd0a3ac84.js";import{wb as cW} from"./chunk-100b76ab0ca3e14d.js";var v=Z((XF,z1)=>{var{defineProperty:gf,getOwnPropertyDescriptor:vW,getOwnPropertyNames:xW}=Object,pW=Object.prototype.hasOwnProperty,Z1=(f,w)=>gf(f,"name",{value:w,configurable:!0}),dW=(f,w)=>{for(var $ in w)gf(f,$,{get:w[$],enumerable:!0})},gW=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of xW(w))if(!pW.call(f,U)&&U!==$)gf(f,U,{get:()=>w[U],enumerable:!(E=vW(w,U))||E.enumerable})}return f},sW=(f)=>gW(gf({},"__esModule",{value:!0}),f),Y1={};dW(Y1,{getSmithyContext:()=>nW,normalizeProvider:()=>rW});z1.exports=sW(Y1);var X1=Kf(),nW=Z1((f)=>f[X1.SMITHY_CONTEXT_KEY]||(f[X1.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),rW=Z1((f)=>{if(typeof f==="function")return f;const w=Promise.resolve(f);return()=>w},"normalizeProvider")});var d0=Z((ZF,q1)=>{var{defineProperty:sf,getOwnPropertyDescriptor:lW,getOwnPropertyNames:oW}=Object,mW=Object.prototype.hasOwnProperty,e=(f,w)=>sf(f,"name",{value:w,configurable:!0}),iW=(f,w)=>{for(var $ in w)sf(f,$,{get:w[$],enumerable:!0})},tW=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of oW(w))if(!mW.call(f,U)&&U!==$)sf(f,U,{get:()=>w[U],enumerable:!(E=lW(w,U))||E.enumerable})}return f},eW=(f)=>tW(sf({},"__esModule",{value:!0}),f),Q1={};iW(Q1,{CredentialsProviderError:()=>aW,ProviderError:()=>nf,TokenProviderError:()=>fI,chain:()=>wI,fromStatic:()=>$I,memoize:()=>UI});q1.exports=eW(Q1);var J1=class f extends Error{constructor(w,$=!0){var E;let U,R=!0;if(typeof $==="boolean")U=void 0,R=$;else if($!=null&&typeof $==="object")U=$.logger,R=$.tryNextLink??!0;super(w);this.name="ProviderError",this.tryNextLink=R,Object.setPrototypeOf(this,f.prototype),(E=U==null?void 0:U.debug)==null||E.call(U,`@smithy/property-provider ${R?"->":"(!)"} ${w}`)}static from(w,$=!0){return Object.assign(new this(w.message,$),w)}};e(J1,"ProviderError");var nf=J1,B1=class f extends nf{constructor(w,$=!0){super(w,$);this.name="CredentialsProviderError",Object.setPrototypeOf(this,f.prototype)}};e(B1,"CredentialsProviderError");var aW=B1,K1=class f extends nf{constructor(w,$=!0){super(w,$);this.name="TokenProviderError",Object.setPrototypeOf(this,f.prototype)}};e(K1,"TokenProviderError");var fI=K1,wI=e((...f)=>async()=>{if(f.length===0)throw new nf("No providers in chain");let w;for(let $ of f)try{return await $()}catch(E){if(w=E,E==null?void 0:E.tryNextLink)continue;throw E}throw w},"chain"),$I=e((f)=>()=>Promise.resolve(f),"fromStatic"),UI=e((f,w,$)=>{let E,U,R,G=!1;const W=e(async()=>{if(!U)U=f();try{E=await U,R=!0,G=!1}finally{U=void 0}return E},"coalesceProvider");if(w===void 0)return async(I)=>{if(!R||(I==null?void 0:I.forceRefresh))E=await W();return E};return async(I)=>{if(!R||(I==null?void 0:I.forceRefresh))E=await W();if(G)return E;if($&&!$(E))return G=!0,E;if(w(E))return await W(),E;return E}},"memoize")});var Gf=Z((H1)=>{Object.defineProperty(H1,"__esModule",{value:!0});H1.getHomeDir=void 0;var EI=import.meta.require("os"),RI=import.meta.require("path"),g0={},GI=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},WI=()=>{const{HOME:f,USERPROFILE:w,HOMEPATH:$,HOMEDRIVE:E=`C:${RI.sep}`}=process.env;if(f)return f;if(w)return w;if($)return`${E}${$}`;const U=GI();if(!g0[U])g0[U]=EI.homedir();return g0[U]};H1.getHomeDir=WI});var s0=Z((C1)=>{Object.defineProperty(C1,"__esModule",{value:!0});C1.getSSOTokenFilepath=void 0;var II=import.meta.require("crypto"),OI=import.meta.require("path"),LI=Gf(),AI=(f)=>{const $=II.createHash("sha1").update(f).digest("hex");return OI.join(LI.getHomeDir(),".aws","sso","cache",`${$}.json`)};C1.getSSOTokenFilepath=AI});var c1=Z((S1)=>{Object.defineProperty(S1,"__esModule",{value:!0});S1.getSSOTokenFromFile=void 0;var MI=import.meta.require("fs"),TI=s0(),{readFile:FI}=MI.promises,XI=async(f)=>{const w=TI.getSSOTokenFilepath(f),$=await FI(w,"utf8");return JSON.parse($)};S1.getSSOTokenFromFile=XI});var r0=Z((b1)=>{Object.defineProperty(b1,"__esModule",{value:!0});b1.slurpFile=void 0;var ZI=import.meta.require("fs"),{readFile:YI}=ZI.promises,n0={},zI=(f,w)=>{if(!n0[f]||(w===null||w===void 0?void 0:w.ignoreCache))n0[f]=YI(f,"utf8");return n0[f]};b1.slurpFile=zI});var i0=Z((BF,Hf)=>{var{defineProperty:of,getOwnPropertyDescriptor:QI,getOwnPropertyNames:JI}=Object,BI=Object.prototype.hasOwnProperty,h=(f,w)=>of(f,"name",{value:w,configurable:!0}),KI=(f,w)=>{for(var $ in w)of(f,$,{get:w[$],enumerable:!0})},l0=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of JI(w))if(!BI.call(f,U)&&U!==$)of(f,U,{get:()=>w[U],enumerable:!(E=QI(w,U))||E.enumerable})}return f},m0=(f,w,$)=>(l0(f,w,"default"),$&&l0($,w,"default")),qI=(f)=>l0(of({},"__esModule",{value:!0}),f),qf={};KI(qf,{CONFIG_PREFIX_SEPARATOR:()=>a,DEFAULT_PROFILE:()=>D1,ENV_PROFILE:()=>k1,getProfileName:()=>HI,loadSharedConfigFiles:()=>y1,loadSsoSessionData:()=>_I,parseKnownFiles:()=>vI});Hf.exports=qI(qf);m0(qf,Gf(),Hf.exports);var k1="AWS_PROFILE",D1="default",HI=h((f)=>f.profile||process.env[k1]||D1,"getProfileName");m0(qf,s0(),Hf.exports);m0(qf,c1(),Hf.exports);var rf=Kf(),VI=h((f)=>Object.entries(f).filter(([w])=>{const $=w.indexOf(a);if($===-1)return!1;return Object.values(rf.IniSectionType).includes(w.substring(0,$))}).reduce((w,[$,E])=>{const U=$.indexOf(a),R=$.substring(0,U)===rf.IniSectionType.PROFILE?$.substring(U+1):$;return w[R]=E,w},{...f.default&&{default:f.default}}),"getConfigData"),lf=import.meta.require("path"),CI=Gf(),NI="AWS_CONFIG_FILE",_1=h(()=>process.env[NI]||lf.join(CI.getHomeDir(),".aws","config"),"getConfigFilepath"),SI=Gf(),PI="AWS_SHARED_CREDENTIALS_FILE",cI=h(()=>process.env[PI]||lf.join(SI.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),bI=Gf(),jI=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,hI=["__proto__","profile __proto__"],o0=h((f)=>{const w={};let $,E;for(let U of f.split(/\r?\n/)){const R=U.split(/(^|\s)[;#]/)[0].trim();if(R[0]==="["&&R[R.length-1]==="]"){$=void 0,E=void 0;const W=R.substring(1,R.length-1),I=jI.exec(W);if(I){const[,O,,L]=I;if(Object.values(rf.IniSectionType).includes(O))$=[O,L].join(a)}else $=W;if(hI.includes(W))throw new Error(`Found invalid profile name "${W}"`)}else if($){const W=R.indexOf("=");if(![0,-1].includes(W)){const[I,O]=[R.substring(0,W).trim(),R.substring(W+1).trim()];if(O==="")E=I;else{if(E&&U.trimStart()===U)E=void 0;w[$]=w[$]||{};const L=E?[E,I].join(a):I;w[$][L]=O}}}}return w},"parseIni"),h1=r0(),u1=h(()=>({}),"swallowError"),a=".",y1=h(async(f={})=>{const{filepath:w=cI(),configFilepath:$=_1()}=f,E=bI.getHomeDir();let R=w;if(w.startsWith("~/"))R=lf.join(E,w.slice(2));let G=$;if($.startsWith("~/"))G=lf.join(E,$.slice(2));const W=await Promise.all([h1.slurpFile(G,{ignoreCache:f.ignoreCache}).then(o0).then(VI).catch(u1),h1.slurpFile(R,{ignoreCache:f.ignoreCache}).then(o0).catch(u1)]);return{configFile:W[0],credentialsFile:W[1]}},"loadSharedConfigFiles"),uI=h((f)=>Object.entries(f).filter(([w])=>w.startsWith(rf.IniSectionType.SSO_SESSION+a)).reduce((w,[$,E])=>({...w,[$.substring($.indexOf(a)+1)]:E}),{}),"getSsoSessionData"),kI=r0(),DI=h(()=>({}),"swallowError"),_I=h(async(f={})=>kI.slurpFile(f.configFilepath??_1()).then(o0).then(uI).catch(DI),"loadSsoSessionData"),yI=h((...f)=>{const w={};for(let $ of f)for(let[E,U]of Object.entries($))if(w[E]!==void 0)Object.assign(w[E],U);else w[E]=U;return w},"mergeConfigFiles"),vI=h(async(f)=>{const w=await y1(f);return yI(w.configFile,w.credentialsFile)},"parseKnownFiles")});var d1=Z((KF,p1)=>{var t0=function(f){try{const w=new Set(Array.from(f.match(/([A-Z_]){3,}/g)??[]));return w.delete("CONFIG"),w.delete("CONFIG_PREFIX_SEPARATOR"),w.delete("ENV"),[...w].join(", ")}catch(w){return f}},mf=Object.defineProperty,xI=Object.getOwnPropertyDescriptor,pI=Object.getOwnPropertyNames,dI=Object.prototype.hasOwnProperty,Wf=(f,w)=>mf(f,"name",{value:w,configurable:!0}),gI=(f,w)=>{for(var $ in w)mf(f,$,{get:w[$],enumerable:!0})},sI=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of pI(w))if(!dI.call(f,U)&&U!==$)mf(f,U,{get:()=>w[U],enumerable:!(E=xI(w,U))||E.enumerable})}return f},nI=(f)=>sI(mf({},"__esModule",{value:!0}),f),x1={};gI(x1,{loadConfig:()=>iI});p1.exports=nI(x1);var Vf=d0();Wf(t0,"getSelectorName");var rI=Wf((f,w)=>async()=>{try{const $=f(process.env);if($===void 0)throw new Error;return $}catch($){throw new Vf.CredentialsProviderError($.message||`Not found in ENV: ${t0(f.toString())}`,{logger:w})}},"fromEnv"),v1=i0(),lI=Wf((f,{preferredFile:w="config",...$}={})=>async()=>{const E=v1.getProfileName($),{configFile:U,credentialsFile:R}=await v1.loadSharedConfigFiles($),G=R[E]||{},W=U[E]||{},I=w==="config"?{...G,...W}:{...W,...G};try{const L=f(I,w==="config"?U:R);if(L===void 0)throw new Error;return L}catch(O){throw new Vf.CredentialsProviderError(O.message||`Not found in config files w/ profile [${E}]: ${t0(f.toString())}`,{logger:$.logger})}},"fromSharedConfigFiles"),oI=Wf((f)=>typeof f==="function","isFunction"),mI=Wf((f)=>oI(f)?async()=>await f():Vf.fromStatic(f),"fromStatic"),iI=Wf(({environmentVariableSelector:f,configFileSelector:w,default:$},E={})=>Vf.memoize(Vf.chain(rI(f),lI(w,E),mI($))),"loadConfig")});var o1=Z((r1)=>{Object.defineProperty(r1,"__esModule",{value:!0});r1.getEndpointUrlConfig=void 0;var g1=i0(),s1="AWS_ENDPOINT_URL",n1="endpoint_url",tI=(f)=>({environmentVariableSelector:(w)=>{const $=f.split(" ").map((R)=>R.toUpperCase()),E=w[[s1,...$].join("_")];if(E)return E;const U=w[s1];if(U)return U;return},configFileSelector:(w,$)=>{if($&&w.services){const U=$[["services",w.services].join(g1.CONFIG_PREFIX_SEPARATOR)];if(U){const R=f.split(" ").map((W)=>W.toLowerCase()),G=U[[R.join("_"),n1].join(g1.CONFIG_PREFIX_SEPARATOR)];if(G)return G}}const E=w[n1];if(E)return E;return},default:void 0});r1.getEndpointUrlConfig=tI});var t1=Z((m1)=>{Object.defineProperty(m1,"__esModule",{value:!0});m1.getEndpointFromConfig=void 0;var eI=d1(),aI=o1(),f8=async(f)=>eI.loadConfig(aI.getEndpointUrlConfig(f))();m1.getEndpointFromConfig=f8});var a0=Z((VF,E$)=>{var U$=function(f,w,$){return{applyToStack:(E)=>{E.add(a1(f,$),w$),E.add(f$(f,w),$$)}}},tf=Object.defineProperty,w8=Object.getOwnPropertyDescriptor,$8=Object.getOwnPropertyNames,U8=Object.prototype.hasOwnProperty,e0=(f,w)=>tf(f,"name",{value:w,configurable:!0}),E8=(f,w)=>{for(var $ in w)tf(f,$,{get:w[$],enumerable:!0})},R8=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of $8(w))if(!U8.call(f,U)&&U!==$)tf(f,U,{get:()=>w[U],enumerable:!(E=w8(w,U))||E.enumerable})}return f},G8=(f)=>R8(tf({},"__esModule",{value:!0}),f),e1={};E8(e1,{deserializerMiddleware:()=>a1,deserializerMiddlewareOption:()=>w$,getSerdePlugin:()=>U$,serializerMiddleware:()=>f$,serializerMiddlewareOption:()=>$$});E$.exports=G8(e1);var a1=e0((f,w)=>($)=>async(E)=>{const{response:U}=await $(E);try{const R=await w(U,f);return{response:U,output:R}}catch(R){if(Object.defineProperty(R,"$response",{value:U}),!("$metadata"in R)){if(R.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof R.$responseBodyText!=="undefined"){if(R.$response)R.$response.body=R.$responseBodyText}}throw R}},"deserializerMiddleware"),f$=e0((f,w)=>($,E)=>async(U)=>{var R;const G=((R=E.endpointV2)==null?void 0:R.url)&&f.urlParser?async()=>f.urlParser(E.endpointV2.url):f.endpoint;if(!G)throw new Error("No valid endpoint provider available.");const W=await w(U.input,{...f,endpoint:G});return $({...U,request:W})},"serializerMiddleware"),w$={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},$$={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};e0(U$,"getSerdePlugin")});var T$=Z((CF,M$)=>{var{defineProperty:af,getOwnPropertyDescriptor:W8,getOwnPropertyNames:I8}=Object,O8=Object.prototype.hasOwnProperty,k=(f,w)=>af(f,"name",{value:w,configurable:!0}),L8=(f,w)=>{for(var $ in w)af(f,$,{get:w[$],enumerable:!0})},A8=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of I8(w))if(!O8.call(f,U)&&U!==$)af(f,U,{get:()=>w[U],enumerable:!(E=W8(w,U))||E.enumerable})}return f},M8=(f)=>A8(af({},"__esModule",{value:!0}),f),W$={};L8(W$,{endpointMiddleware:()=>L$,endpointMiddlewareOptions:()=>A$,getEndpointFromInstructions:()=>I$,getEndpointPlugin:()=>K8,resolveEndpointConfig:()=>q8,resolveParams:()=>O$,toEndpointV1:()=>fw});M$.exports=M8(W$);var T8=k(async(f)=>{const w=(f==null?void 0:f.Bucket)||"";if(typeof f.Bucket==="string")f.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(z8(w)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!Y8(w)||w.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},"resolveParamsForS3"),F8=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,X8=/(\d+\.){3}\d+/,Z8=/\.\./,Y8=k((f)=>F8.test(f)&&!X8.test(f)&&!Z8.test(f),"isDnsCompatibleBucketName"),z8=k((f)=>{const[w,$,E,,,U]=f.split(":"),R=w==="arn"&&f.split(":").length>=6,G=Boolean(R&&$&&E&&U);if(R&&!G)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return G},"isArnBucketName"),Q8=k((f,w,$)=>{const E=k(async()=>{const U=$[f]??$[w];if(typeof U==="function")return U();return U},"configProvider");if(f==="credentialScope"||w==="CredentialScope")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return(U==null?void 0:U.credentialScope)??(U==null?void 0:U.CredentialScope)};if(f==="accountId"||w==="AccountId")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return(U==null?void 0:U.accountId)??(U==null?void 0:U.AccountId)};if(f==="endpoint"||w==="endpoint")return async()=>{const U=await E();if(U&&typeof U==="object"){if("url"in U)return U.url.href;if("hostname"in U){const{protocol:R,hostname:G,port:W,path:I}=U;return`${R}//${G}${W?":"+W:""}${I}`}}return U};return E},"createConfigValueProvider"),J8=t1(),R$=G$(),fw=k((f)=>{if(typeof f==="object"){if("url"in f)return R$.parseUrl(f.url);return f}return R$.parseUrl(f)},"toEndpointV1"),I$=k(async(f,w,$,E)=>{if(!$.endpoint){const G=await J8.getEndpointFromConfig($.serviceId||"");if(G)$.endpoint=()=>Promise.resolve(fw(G))}const U=await O$(f,w,$);if(typeof $.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return $.endpointProvider(U,E)},"getEndpointFromInstructions"),O$=k(async(f,w,$)=>{var E;const U={},R=((E=w==null?void 0:w.getEndpointParameterInstructions)==null?void 0:E.call(w))||{};for(let[G,W]of Object.entries(R))switch(W.type){case"staticContextParams":U[G]=W.value;break;case"contextParams":U[G]=f[W.name];break;case"clientContextParams":case"builtInParams":U[G]=await Q8(W.name,G,$)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(W))}if(Object.keys(R).length===0)Object.assign(U,$);if(String($.serviceId).toLowerCase()==="s3")await T8(U);return U},"resolveParams"),ef=v(),L$=k(({config:f,instructions:w})=>{return($,E)=>async(U)=>{var R,G,W;const I=await I$(U.input,{getEndpointParameterInstructions(){return w}},{...f},E);E.endpointV2=I,E.authSchemes=(R=I.properties)==null?void 0:R.authSchemes;const O=(G=E.authSchemes)==null?void 0:G[0];if(O){E.signing_region=O.signingRegion,E.signing_service=O.signingName;const L=ef.getSmithyContext(E),A=(W=L==null?void 0:L.selectedHttpAuthScheme)==null?void 0:W.httpAuthOption;if(A)A.signingProperties=Object.assign(A.signingProperties||{},{signing_region:O.signingRegion,signingRegion:O.signingRegion,signing_service:O.signingName,signingName:O.signingName,signingRegionSet:O.signingRegionSet},O.properties)}return $({...U})}},"endpointMiddleware"),B8=a0(),A$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:B8.serializerMiddlewareOption.name},K8=k((f,w)=>({applyToStack:($)=>{$.addRelativeTo(L$({config:f,instructions:w}),A$)}}),"getEndpointPlugin"),q8=k((f)=>{const w=f.tls??!0,{endpoint:$}=f,E=$!=null?async()=>fw(await ef.normalizeProvider($)()):void 0;return{...f,endpoint:E,tls:w,isCustomEndpoint:!!$,useDualstackEndpoint:ef.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:ef.normalizeProvider(f.useFipsEndpoint??!1)}},"resolveEndpointConfig")});var ww=Z((F$)=>{var V8=function(f){return f&&f.__esModule?f:{default:f}},C8=function(){if(f0>w0.length-16)H8.default.randomFillSync(w0),f0=0;return w0.slice(f0,f0+=16)};Object.defineProperty(F$,"__esModule",{value:!0});F$.default=C8;var H8=V8(import.meta.require("crypto")),w0=new Uint8Array(256),f0=w0.length});var Y$=Z((X$)=>{Object.defineProperty(X$,"__esModule",{value:!0});X$.default=void 0;var S8=/^(?:[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;X$.default=S8});var Cf=Z((z$)=>{var c8=function(f){return f&&f.__esModule?f:{default:f}},b8=function(f){return typeof f==="string"&&P8.default.test(f)};Object.defineProperty(z$,"__esModule",{value:!0});z$.default=void 0;var P8=c8(Y$()),j8=b8;z$.default=j8});var Nf=Z((B$)=>{var u8=function(f){return f&&f.__esModule?f:{default:f}},J$=function(f,w=0){return C[f[w+0]]+C[f[w+1]]+C[f[w+2]]+C[f[w+3]]+"-"+C[f[w+4]]+C[f[w+5]]+"-"+C[f[w+6]]+C[f[w+7]]+"-"+C[f[w+8]]+C[f[w+9]]+"-"+C[f[w+10]]+C[f[w+11]]+C[f[w+12]]+C[f[w+13]]+C[f[w+14]]+C[f[w+15]]},k8=function(f,w=0){const $=J$(f,w);if(!h8.default($))throw TypeError("Stringified UUID is invalid");return $};Object.defineProperty(B$,"__esModule",{value:!0});B$.default=void 0;B$.unsafeStringify=J$;var h8=u8(Cf()),C=[];for(let f=0;f<256;++f)C.push((f+256).toString(16).slice(1));var D8=k8;B$.default=D8});var C$=Z((H$)=>{var x8=function(f){return f&&f.__esModule?f:{default:f}},p8=function(f,w,$){let E=w&&$||0;const U=w||new Array(16);f=f||{};let R=f.node||q$,G=f.clockseq!==void 0?f.clockseq:$w;if(R==null||G==null){const T=f.random||(f.rng||y8.default)();if(R==null)R=q$=[T[0]|1,T[1],T[2],T[3],T[4],T[5]];if(G==null)G=$w=(T[6]<<8|T[7])&16383}let W=f.msecs!==void 0?f.msecs:Date.now(),I=f.nsecs!==void 0?f.nsecs:Ew+1;const O=W-Uw+(I-Ew)/1e4;if(O<0&&f.clockseq===void 0)G=G+1&16383;if((O<0||W>Uw)&&f.nsecs===void 0)I=0;if(I>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Uw=W,Ew=I,$w=G,W+=12219292800000;const L=((W&268435455)*1e4+I)%4294967296;U[E++]=L>>>24&255,U[E++]=L>>>16&255,U[E++]=L>>>8&255,U[E++]=L&255;const A=W/4294967296*1e4&268435455;U[E++]=A>>>8&255,U[E++]=A&255,U[E++]=A>>>24&15|16,U[E++]=A>>>16&255,U[E++]=G>>>8|128,U[E++]=G&255;for(let T=0;T<6;++T)U[E+T]=R[T];return w||v8.unsafeStringify(U)};Object.defineProperty(H$,"__esModule",{value:!0});H$.default=void 0;var y8=x8(ww()),v8=Nf(),q$,$w,Uw=0,Ew=0,d8=p8;H$.default=d8});var Rw=Z((N$)=>{var s8=function(f){return f&&f.__esModule?f:{default:f}},n8=function(f){if(!g8.default(f))throw TypeError("Invalid UUID");let w;const $=new Uint8Array(16);return $[0]=(w=parseInt(f.slice(0,8),16))>>>24,$[1]=w>>>16&255,$[2]=w>>>8&255,$[3]=w&255,$[4]=(w=parseInt(f.slice(9,13),16))>>>8,$[5]=w&255,$[6]=(w=parseInt(f.slice(14,18),16))>>>8,$[7]=w&255,$[8]=(w=parseInt(f.slice(19,23),16))>>>8,$[9]=w&255,$[10]=(w=parseInt(f.slice(24,36),16))/1099511627776&255,$[11]=w/4294967296&255,$[12]=w>>>24&255,$[13]=w>>>16&255,$[14]=w>>>8&255,$[15]=w&255,$};Object.defineProperty(N$,"__esModule",{value:!0});N$.default=void 0;var g8=s8(Cf()),r8=n8;N$.default=r8});var Gw=Z((b$)=>{var m8=function(f){return f&&f.__esModule?f:{default:f}},i8=function(f){f=unescape(encodeURIComponent(f));const w=[];for(let $=0;$<f.length;++$)w.push(f.charCodeAt($));return w},t8=function(f,w,$){function E(U,R,G,W){var I;if(typeof U==="string")U=i8(U);if(typeof R==="string")R=o8.default(R);if(((I=R)===null||I===void 0?void 0:I.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let O=new Uint8Array(16+U.length);if(O.set(R),O.set(U,R.length),O=$(O),O[6]=O[6]&15|w,O[8]=O[8]&63|128,G){W=W||0;for(let L=0;L<16;++L)G[W+L]=O[L];return G}return l8.unsafeStringify(O)}try{E.name=f}catch(U){}return E.DNS=P$,E.URL=c$,E};Object.defineProperty(b$,"__esModule",{value:!0});b$.URL=b$.DNS=void 0;b$.default=t8;var l8=Nf(),o8=m8(Rw()),P$="6ba7b810-9dad-11d1-80b4-00c04fd430c8";b$.DNS=P$;var c$="6ba7b811-9dad-11d1-80b4-00c04fd430c8";b$.URL=c$});var k$=Z((h$)=>{var wO=function(f){return f&&f.__esModule?f:{default:f}},$O=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return fO.default.createHash("md5").update(f).digest()};Object.defineProperty(h$,"__esModule",{value:!0});h$.default=void 0;var fO=wO(import.meta.require("crypto")),UO=$O;h$.default=UO});var v$=Z((_$)=>{var D$=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(_$,"__esModule",{value:!0});_$.default=void 0;var EO=D$(Gw()),RO=D$(k$()),GO=EO.default("v3",48,RO.default),WO=GO;_$.default=WO});var d$=Z((x$)=>{var OO=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(x$,"__esModule",{value:!0});x$.default=void 0;var IO=OO(import.meta.require("crypto")),LO={randomUUID:IO.default.randomUUID};x$.default=LO});var l$=Z((n$)=>{var s$=function(f){return f&&f.__esModule?f:{default:f}},TO=function(f,w,$){if(g$.default.randomUUID&&!w&&!f)return g$.default.randomUUID();f=f||{};const E=f.random||(f.rng||AO.default)();if(E[6]=E[6]&15|64,E[8]=E[8]&63|128,w){$=$||0;for(let U=0;U<16;++U)w[$+U]=E[U];return w}return MO.unsafeStringify(E)};Object.defineProperty(n$,"__esModule",{value:!0});n$.default=void 0;var g$=s$(d$()),AO=s$(ww()),MO=Nf(),FO=TO;n$.default=FO});var i$=Z((o$)=>{var ZO=function(f){return f&&f.__esModule?f:{default:f}},YO=function(f){if(Array.isArray(f))f=Buffer.from(f);else if(typeof f==="string")f=Buffer.from(f,"utf8");return XO.default.createHash("sha1").update(f).digest()};Object.defineProperty(o$,"__esModule",{value:!0});o$.default=void 0;var XO=ZO(import.meta.require("crypto")),zO=YO;o$.default=zO});var fU=Z((e$)=>{var t$=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e$,"__esModule",{value:!0});e$.default=void 0;var QO=t$(Gw()),JO=t$(i$()),BO=QO.default("v5",80,JO.default),KO=BO;e$.default=KO});var UU=Z((wU)=>{Object.defineProperty(wU,"__esModule",{value:!0});wU.default=void 0;var qO="00000000-0000-0000-0000-000000000000";wU.default=qO});var GU=Z((EU)=>{var VO=function(f){return f&&f.__esModule?f:{default:f}},CO=function(f){if(!HO.default(f))throw TypeError("Invalid UUID");return parseInt(f.slice(14,15),16)};Object.defineProperty(EU,"__esModule",{value:!0});EU.default=void 0;var HO=VO(Cf()),NO=CO;EU.default=NO});var Ww=Z((D)=>{var g=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(D,"__esModule",{value:!0});Object.defineProperty(D,"NIL",{enumerable:!0,get:function(){return jO.default}});Object.defineProperty(D,"parse",{enumerable:!0,get:function(){return DO.default}});Object.defineProperty(D,"stringify",{enumerable:!0,get:function(){return kO.default}});Object.defineProperty(D,"v1",{enumerable:!0,get:function(){return SO.default}});Object.defineProperty(D,"v3",{enumerable:!0,get:function(){return PO.default}});Object.defineProperty(D,"v4",{enumerable:!0,get:function(){return cO.default}});Object.defineProperty(D,"v5",{enumerable:!0,get:function(){return bO.default}});Object.defineProperty(D,"validate",{enumerable:!0,get:function(){return uO.default}});Object.defineProperty(D,"version",{enumerable:!0,get:function(){return hO.default}});var SO=g(C$()),PO=g(v$()),cO=g(l$()),bO=g(fU()),jO=g(UU()),hO=g(GU()),uO=g(Cf()),kO=g(Nf()),DO=g(Rw())});var Iw=Z((gF,LU)=>{var{defineProperty:$0,getOwnPropertyDescriptor:_O,getOwnPropertyNames:yO}=Object,vO=Object.prototype.hasOwnProperty,If=(f,w)=>$0(f,"name",{value:w,configurable:!0}),xO=(f,w)=>{for(var $ in w)$0(f,$,{get:w[$],enumerable:!0})},pO=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of yO(w))if(!vO.call(f,U)&&U!==$)$0(f,U,{get:()=>w[U],enumerable:!(E=_O(w,U))||E.enumerable})}return f},dO=(f)=>pO($0({},"__esModule",{value:!0}),f),WU={};xO(WU,{isClockSkewCorrectedError:()=>IU,isClockSkewError:()=>mO,isRetryableByTrait:()=>oO,isServerError:()=>tO,isThrottlingError:()=>iO,isTransientError:()=>OU});LU.exports=dO(WU);var gO=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],sO=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],nO=["TimeoutError","RequestTimeout","RequestTimeoutException"],rO=[500,502,503,504],lO=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],oO=If((f)=>f.$retryable!==void 0,"isRetryableByTrait"),mO=If((f)=>gO.includes(f.name),"isClockSkewError"),IU=If((f)=>{var w;return(w=f.$metadata)==null?void 0:w.clockSkewCorrected},"isClockSkewCorrectedError"),iO=If((f)=>{var w,$;return((w=f.$metadata)==null?void 0:w.httpStatusCode)===429||sO.includes(f.name)||(($=f.$retryable)==null?void 0:$.throttling)==!0},"isThrottlingError"),OU=If((f)=>{var w;return IU(f)||nO.includes(f.name)||lO.includes((f==null?void 0:f.code)||"")||rO.includes(((w=f.$metadata)==null?void 0:w.httpStatusCode)||0)},"isTransientError"),tO=If((f)=>{var w;if(((w=f.$metadata)==null?void 0:w.httpStatusCode)!==void 0){const $=f.$metadata.httpStatusCode;if(500<=$&&$<=599&&!OU(f))return!0;return!1}return!1},"isServerError")});var HU=Z((sF,qU)=>{var{defineProperty:U0,getOwnPropertyDescriptor:eO,getOwnPropertyNames:aO}=Object,fL=Object.prototype.hasOwnProperty,_=(f,w)=>U0(f,"name",{value:w,configurable:!0}),wL=(f,w)=>{for(var $ in w)U0(f,$,{get:w[$],enumerable:!0})},$L=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of aO(w))if(!fL.call(f,U)&&U!==$)U0(f,U,{get:()=>w[U],enumerable:!(E=eO(w,U))||E.enumerable})}return f},UL=(f)=>$L(U0({},"__esModule",{value:!0}),f),MU={};wL(MU,{AdaptiveRetryStrategy:()=>OL,ConfiguredRetryStrategy:()=>LL,DEFAULT_MAX_ATTEMPTS:()=>Ow,DEFAULT_RETRY_DELAY_BASE:()=>Sf,DEFAULT_RETRY_MODE:()=>EL,DefaultRateLimiter:()=>XU,INITIAL_RETRY_TOKENS:()=>Lw,INVOCATION_ID_HEADER:()=>GL,MAXIMUM_RETRY_DELAY:()=>Aw,NO_RETRY_INCREMENT:()=>QU,REQUEST_HEADER:()=>WL,RETRY_COST:()=>YU,RETRY_MODES:()=>TU,StandardRetryStrategy:()=>Mw,THROTTLING_RETRY_DELAY_BASE:()=>ZU,TIMEOUT_RETRY_COST:()=>zU});qU.exports=UL(MU);var TU=((f)=>{return f.STANDARD="standard",f.ADAPTIVE="adaptive",f})(TU||{}),Ow=3,EL="standard",RL=Iw(),FU=class f{constructor(w){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(w==null?void 0:w.beta)??0.7,this.minCapacity=(w==null?void 0:w.minCapacity)??1,this.minFillRate=(w==null?void 0:w.minFillRate)??0.5,this.scaleConstant=(w==null?void 0:w.scaleConstant)??0.4,this.smooth=(w==null?void 0:w.smooth)??0.8;const $=this.getCurrentTimeInSeconds();this.lastThrottleTime=$,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(w){if(!this.enabled)return;if(this.refillTokenBucket(),w>this.currentCapacity){const $=(w-this.currentCapacity)/this.fillRate*1000;await new Promise((E)=>setTimeout(E,$))}this.currentCapacity=this.currentCapacity-w}refillTokenBucket(){const w=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=w;return}const $=(w-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+$),this.lastTimestamp=w}updateClientSendingRate(w){let $;if(this.updateMeasuredRate(),RL.isThrottlingError(w)){const U=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=U,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),$=this.cubicThrottle(U),this.enableTokenBucket()}else this.calculateTimeWindow(),$=this.cubicSuccess(this.getCurrentTimeInSeconds());const E=Math.min($,2*this.measuredTxRate);this.updateTokenBucketRate(E)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(w){return this.getPrecise(w*this.beta)}cubicSuccess(w){return this.getPrecise(this.scaleConstant*Math.pow(w-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(w){this.refillTokenBucket(),this.fillRate=Math.max(w,this.minFillRate),this.maxCapacity=Math.max(w,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const w=this.getCurrentTimeInSeconds(),$=Math.floor(w*2)/2;if(this.requestCount++,$>this.lastTxRateBucket){const E=this.requestCount/($-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=$}}getPrecise(w){return parseFloat(w.toFixed(8))}};_(FU,"DefaultRateLimiter");var XU=FU,Sf=100,Aw=20000,ZU=500,Lw=500,YU=5,zU=10,QU=1,GL="amz-sdk-invocation-id",WL="amz-sdk-request",IL=_(()=>{let f=Sf;return{computeNextBackoffDelay:_((E)=>{return Math.floor(Math.min(Aw,Math.random()*2**E*f))},"computeNextBackoffDelay"),setDelayBase:_((E)=>{f=E},"setDelayBase")}},"getDefaultRetryBackoffStrategy"),AU=_(({retryDelay:f,retryCount:w,retryCost:$})=>{return{getRetryCount:_(()=>w,"getRetryCount"),getRetryDelay:_(()=>Math.min(Aw,f),"getRetryDelay"),getRetryCost:_(()=>$,"getRetryCost")}},"createDefaultRetryToken"),JU=class f{constructor(w){this.maxAttempts=w,this.mode="standard",this.capacity=Lw,this.retryBackoffStrategy=IL(),this.maxAttemptsProvider=typeof w==="function"?w:async()=>w}async acquireInitialRetryToken(w){return AU({retryDelay:Sf,retryCount:0})}async refreshRetryTokenForRetry(w,$){const E=await this.getMaxAttempts();if(this.shouldRetry(w,$,E)){const U=$.errorType;this.retryBackoffStrategy.setDelayBase(U==="THROTTLING"?ZU:Sf);const R=this.retryBackoffStrategy.computeNextBackoffDelay(w.getRetryCount()),G=$.retryAfterHint?Math.max($.retryAfterHint.getTime()-Date.now()||0,R):R,W=this.getCapacityCost(U);return this.capacity-=W,AU({retryDelay:G,retryCount:w.getRetryCount()+1,retryCost:W})}throw new Error("No retry token available")}recordSuccess(w){this.capacity=Math.max(Lw,this.capacity+(w.getRetryCost()??QU))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(w){return console.warn(`Max attempts provider could not resolve. Using default of ${Ow}`),Ow}}shouldRetry(w,$,E){return w.getRetryCount()+1<E&&this.capacity>=this.getCapacityCost($.errorType)&&this.isRetryableError($.errorType)}getCapacityCost(w){return w==="TRANSIENT"?zU:YU}isRetryableError(w){return w==="THROTTLING"||w==="TRANSIENT"}};_(JU,"StandardRetryStrategy");var Mw=JU,BU=class f{constructor(w,$){this.maxAttemptsProvider=w,this.mode="adaptive";const{rateLimiter:E}=$??{};this.rateLimiter=E??new XU,this.standardRetryStrategy=new Mw(w)}async acquireInitialRetryToken(w){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(w)}async refreshRetryTokenForRetry(w,$){return this.rateLimiter.updateClientSendingRate($),this.standardRetryStrategy.refreshRetryTokenForRetry(w,$)}recordSuccess(w){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(w)}};_(BU,"AdaptiveRetryStrategy");var OL=BU,KU=class f extends Mw{constructor(w,$=Sf){super(typeof w==="function"?w:async()=>w);if(typeof $==="number")this.computeNextBackoffDelay=()=>$;else this.computeNextBackoffDelay=$}async refreshRetryTokenForRetry(w,$){const E=await super.refreshRetryTokenForRetry(w,$);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}};_(KU,"ConfiguredRetryStrategy");var LL=KU});var Mf=Z((nF,lU)=>{var yU=function(f){const w=f.getUTCFullYear(),$=f.getUTCMonth(),E=f.getUTCDay(),U=f.getUTCDate(),R=f.getUTCHours(),G=f.getUTCMinutes(),W=f.getUTCSeconds(),I=U<10?`0${U}`:`${U}`,O=R<10?`0${R}`:`${R}`,L=G<10?`0${G}`:`${G}`,A=W<10?`0${W}`:`${W}`;return`${xL[E]}, ${I} ${qw[$]} ${w} ${O}:${L}:${A} GMT`},G0=function(f){return encodeURIComponent(f).replace(/[!'()*]/g,function(w){return"%"+w.charCodeAt(0).toString(16).toUpperCase()})},Hw=function(f,w,$){let E,U,R;if(typeof w==="undefined"&&typeof $==="undefined")E={},R=f;else if(E=f,typeof w==="function")return U=w,R=$,QA(E,U,R);else R=w;for(let G of Object.keys(R)){if(!Array.isArray(R[G])){E[G]=R[G];continue}nU(E,null,R,G)}return E},rU=function(f,w,$){if($<=0||!Number.isInteger($))throw new Error("Invalid number of delimiters ("+$+") for splitEvery.");const E=f.split(w);if($===1)return E;const U=[];let R="";for(let G=0;G<E.length;G++){if(R==="")R=E[G];else R+=w+E[G];if((G+1)%$===0)U.push(R),R=""}if(R!=="")U.push(R);return U},W0=Object.defineProperty,TL=Object.getOwnPropertyDescriptor,FL=Object.getOwnPropertyNames,XL=Object.prototype.hasOwnProperty,F=(f,w)=>W0(f,"name",{value:w,configurable:!0}),ZL=(f,w)=>{for(var $ in w)W0(f,$,{get:w[$],enumerable:!0})},YL=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of FL(w))if(!XL.call(f,U)&&U!==$)W0(f,U,{get:()=>w[U],enumerable:!(E=TL(w,U))||E.enumerable})}return f},zL=(f)=>YL(W0({},"__esModule",{value:!0}),f),CU={};ZL(CU,{Client:()=>JL,Command:()=>bU,LazyJsonString:()=>ZA,NoOpLogger:()=>QL,SENSITIVE_STRING:()=>qL,ServiceException:()=>EA,StringWrapper:()=>hf,_json:()=>Qw,collectBody:()=>BL,convertMap:()=>YA,createAggregatedClient:()=>HL,dateToUtcString:()=>yU,decorateServiceException:()=>xU,emitWarningIfUnsupportedVersion:()=>IA,expectBoolean:()=>CL,expectByte:()=>zw,expectFloat32:()=>E0,expectInt:()=>SL,expectInt32:()=>Zw,expectLong:()=>bf,expectNonNull:()=>cL,expectNumber:()=>cf,expectObject:()=>hU,expectShort:()=>Yw,expectString:()=>bL,expectUnion:()=>jL,extendedEncodeURIComponent:()=>G0,getArrayIfSingleItem:()=>XA,getDefaultClientConfiguration:()=>TA,getDefaultExtensionConfiguration:()=>dU,getValueFromTextNode:()=>gU,handleFloat:()=>kL,limitedParseDouble:()=>Kw,limitedParseFloat:()=>DL,limitedParseFloat32:()=>_L,loadConfigsForDefaultMode:()=>WA,logger:()=>jf,map:()=>Hw,parseBoolean:()=>VL,parseEpochTimestamp:()=>mL,parseRfc3339DateTime:()=>dL,parseRfc3339DateTimeWithOffset:()=>sL,parseRfc7231DateTime:()=>oL,resolveDefaultRuntimeConfig:()=>FA,resolvedPath:()=>KA,serializeDateTime:()=>HA,serializeFloat:()=>qA,splitEvery:()=>rU,strictParseByte:()=>_U,strictParseDouble:()=>Bw,strictParseFloat:()=>hL,strictParseFloat32:()=>uU,strictParseInt:()=>yL,strictParseInt32:()=>vL,strictParseLong:()=>DU,strictParseShort:()=>Of,take:()=>zA,throwDefaultError:()=>pU,withBaseException:()=>RA});lU.exports=zL(CU);var NU=class f{trace(){}debug(){}info(){}warn(){}error(){}};F(NU,"NoOpLogger");var QL=NU,SU=AL(),PU=class f{constructor(w){this.middlewareStack=SU.constructStack(),this.config=w}send(w,$,E){const U=typeof $!=="function"?$:void 0,R=typeof $==="function"?$:E,G=w.resolveMiddleware(this.middlewareStack,this.config,U);if(R)G(w).then((W)=>R(null,W.output),(W)=>R(W)).catch(()=>{});else return G(w).then((W)=>W.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}};F(PU,"Client");var JL=PU,Tw=ML(),BL=F(async(f=new Uint8Array,w)=>{if(f instanceof Uint8Array)return Tw.Uint8ArrayBlobAdapter.mutate(f);if(!f)return Tw.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const $=w.streamCollector(f);return Tw.Uint8ArrayBlobAdapter.mutate(await $)},"collectBody"),Xw=Kf(),cU=class f{constructor(){this.middlewareStack=SU.constructStack()}static classBuilder(){return new KL}resolveMiddlewareWithContext(w,$,E,{middlewareFn:U,clientName:R,commandName:G,inputFilterSensitiveLog:W,outputFilterSensitiveLog:I,smithyContext:O,additionalContext:L,CommandCtor:A}){for(let Q of U.bind(this)(A,w,$,E))this.middlewareStack.use(Q);const T=w.concat(this.middlewareStack),{logger:M}=$,X={logger:M,clientName:R,commandName:G,inputFilterSensitiveLog:W,outputFilterSensitiveLog:I,[Xw.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...L},{requestHandler:Y}=$;return T.resolve((Q)=>Y.handle(Q.request,E||{}),X)}};F(cU,"Command");var bU=cU,jU=class f{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(w)=>w,this._outputFilterSensitiveLog=(w)=>w,this._serializer=null,this._deserializer=null}init(w){this._init=w}ep(w){return this._ep=w,this}m(w){return this._middlewareFn=w,this}s(w,$,E={}){return this._smithyContext={service:w,operation:$,...E},this}c(w={}){return this._additionalContext=w,this}n(w,$){return this._clientName=w,this._commandName=$,this}f(w=(E)=>E,$=(E)=>E){return this._inputFilterSensitiveLog=w,this._outputFilterSensitiveLog=$,this}ser(w){return this._serializer=w,this}de(w){return this._deserializer=w,this}build(){var w;const $=this;let E;return E=(w=class extends bU{constructor(...[U]){super();this.serialize=$._serializer,this.deserialize=$._deserializer,this.input=U??{},$._init(this)}static getEndpointParameterInstructions(){return $._ep}resolveMiddleware(U,R,G){return this.resolveMiddlewareWithContext(U,R,G,{CommandCtor:E,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog,outputFilterSensitiveLog:$._outputFilterSensitiveLog,smithyContext:$._smithyContext,additionalContext:$._additionalContext})}},F(w,"CommandRef"),w)}};F(jU,"ClassBuilder");var KL=jU,qL="***SensitiveInformation***",HL=F((f,w)=>{for(let $ of Object.keys(f)){const E=f[$],U=F(async function(G,W,I){const O=new E(G);if(typeof W==="function")this.send(O,W);else if(typeof I==="function"){if(typeof W!=="object")throw new Error(`Expected http options but got ${typeof W}`);this.send(O,W||{},I)}else return this.send(O,W)},"methodImpl"),R=($[0].toLowerCase()+$.slice(1)).replace(/Command$/,"");w.prototype[R]=U}},"createAggregatedClient"),VL=F((f)=>{switch(f){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${f}"`)}},"parseBoolean"),CL=F((f)=>{if(f===null||f===void 0)return;if(typeof f==="number"){if(f===0||f===1)jf.warn(R0(`Expected boolean, got ${typeof f}: ${f}`));if(f===0)return!1;if(f===1)return!0}if(typeof f==="string"){const w=f.toLowerCase();if(w==="false"||w==="true")jf.warn(R0(`Expected boolean, got ${typeof f}: ${f}`));if(w==="false")return!1;if(w==="true")return!0}if(typeof f==="boolean")return f;throw new TypeError(`Expected boolean, got ${typeof f}: ${f}`)},"expectBoolean"),cf=F((f)=>{if(f===null||f===void 0)return;if(typeof f==="string"){const w=parseFloat(f);if(!Number.isNaN(w)){if(String(w)!==String(f))jf.warn(R0(`Expected number but observed string: ${f}`));return w}}if(typeof f==="number")return f;throw new TypeError(`Expected number, got ${typeof f}: ${f}`)},"expectNumber"),NL=Math.ceil(340282346638528860000000000000000000000),E0=F((f)=>{const w=cf(f);if(w!==void 0&&!Number.isNaN(w)&&w!==Infinity&&w!==(-Infinity)){if(Math.abs(w)>NL)throw new TypeError(`Expected 32-bit float, got ${f}`)}return w},"expectFloat32"),bf=F((f)=>{if(f===null||f===void 0)return;if(Number.isInteger(f)&&!Number.isNaN(f))return f;throw new TypeError(`Expected integer, got ${typeof f}: ${f}`)},"expectLong"),SL=bf,Zw=F((f)=>Jw(f,32),"expectInt32"),Yw=F((f)=>Jw(f,16),"expectShort"),zw=F((f)=>Jw(f,8),"expectByte"),Jw=F((f,w)=>{const $=bf(f);if($!==void 0&&PL($,w)!==$)throw new TypeError(`Expected ${w}-bit integer, got ${f}`);return $},"expectSizedInt"),PL=F((f,w)=>{switch(w){case 32:return Int32Array.of(f)[0];case 16:return Int16Array.of(f)[0];case 8:return Int8Array.of(f)[0]}},"castInt"),cL=F((f,w)=>{if(f===null||f===void 0){if(w)throw new TypeError(`Expected a non-null value for ${w}`);throw new TypeError("Expected a non-null value")}return f},"expectNonNull"),hU=F((f)=>{if(f===null||f===void 0)return;if(typeof f==="object"&&!Array.isArray(f))return f;const w=Array.isArray(f)?"array":typeof f;throw new TypeError(`Expected object, got ${w}: ${f}`)},"expectObject"),bL=F((f)=>{if(f===null||f===void 0)return;if(typeof f==="string")return f;if(["boolean","number","bigint"].includes(typeof f))return jf.warn(R0(`Expected string, got ${typeof f}: ${f}`)),String(f);throw new TypeError(`Expected string, got ${typeof f}: ${f}`)},"expectString"),jL=F((f)=>{if(f===null||f===void 0)return;const w=hU(f),$=Object.entries(w).filter(([,E])=>E!=null).map(([E])=>E);if($.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if($.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${$} were not null.`);return w},"expectUnion"),Bw=F((f)=>{if(typeof f=="string")return cf(Af(f));return cf(f)},"strictParseDouble"),hL=Bw,uU=F((f)=>{if(typeof f=="string")return E0(Af(f));return E0(f)},"strictParseFloat32"),uL=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Af=F((f)=>{const w=f.match(uL);if(w===null||w[0].length!==f.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(f)},"parseNumber"),Kw=F((f)=>{if(typeof f=="string")return kU(f);return cf(f)},"limitedParseDouble"),kL=Kw,DL=Kw,_L=F((f)=>{if(typeof f=="string")return kU(f);return E0(f)},"limitedParseFloat32"),kU=F((f)=>{switch(f){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return (-Infinity);default:throw new Error(`Unable to parse float value: ${f}`)}},"parseFloatString"),DU=F((f)=>{if(typeof f==="string")return bf(Af(f));return bf(f)},"strictParseLong"),yL=DU,vL=F((f)=>{if(typeof f==="string")return Zw(Af(f));return Zw(f)},"strictParseInt32"),Of=F((f)=>{if(typeof f==="string")return Yw(Af(f));return Yw(f)},"strictParseShort"),_U=F((f)=>{if(typeof f==="string")return zw(Af(f));return zw(f)},"strictParseByte"),R0=F((f)=>{return String(new TypeError(f).stack||f).split("\n").slice(0,5).filter((w)=>!w.includes("stackTraceWarning")).join("\n")},"stackTraceWarning"),jf={warn:console.warn},xL=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],qw=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];F(yU,"dateToUtcString");var pL=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),dL=F((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=pL.exec(f);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[$,E,U,R,G,W,I,O]=w,L=Of(Lf(E)),A=x(U,"month",1,12),T=x(R,"day",1,31);return Pf(L,A,T,{hours:G,minutes:W,seconds:I,fractionalMilliseconds:O})},"parseRfc3339DateTime"),gL=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),sL=F((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const w=gL.exec(f);if(!w)throw new TypeError("Invalid RFC-3339 date-time value");const[$,E,U,R,G,W,I,O,L]=w,A=Of(Lf(E)),T=x(U,"month",1,12),M=x(R,"day",1,31),X=Pf(A,T,M,{hours:G,minutes:W,seconds:I,fractionalMilliseconds:O});if(L.toUpperCase()!="Z")X.setTime(X.getTime()-UA(L));return X},"parseRfc3339DateTimeWithOffset"),nL=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$/),rL=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$/),lL=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})$/),oL=F((f)=>{if(f===null||f===void 0)return;if(typeof f!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let w=nL.exec(f);if(w){const[$,E,U,R,G,W,I,O]=w;return Pf(Of(Lf(R)),Fw(U),x(E,"day",1,31),{hours:G,minutes:W,seconds:I,fractionalMilliseconds:O})}if(w=rL.exec(f),w){const[$,E,U,R,G,W,I,O]=w;return eL(Pf(iL(R),Fw(U),x(E,"day",1,31),{hours:G,minutes:W,seconds:I,fractionalMilliseconds:O}))}if(w=lL.exec(f),w){const[$,E,U,R,G,W,I,O]=w;return Pf(Of(Lf(O)),Fw(E),x(U.trimLeft(),"day",1,31),{hours:R,minutes:G,seconds:W,fractionalMilliseconds:I})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),mL=F((f)=>{if(f===null||f===void 0)return;let w;if(typeof f==="number")w=f;else if(typeof f==="string")w=Bw(f);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(w)||w===Infinity||w===(-Infinity))throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(w*1000))},"parseEpochTimestamp"),Pf=F((f,w,$,E)=>{const U=w-1;return fA(f,U,$),new Date(Date.UTC(f,U,$,x(E.hours,"hour",0,23),x(E.minutes,"minute",0,59),x(E.seconds,"seconds",0,60),$A(E.fractionalMilliseconds)))},"buildDate"),iL=F((f)=>{const w=(new Date()).getUTCFullYear(),$=Math.floor(w/100)*100+Of(Lf(f));if($<w)return $+100;return $},"parseTwoDigitYear"),tL=1576800000000,eL=F((f)=>{if(f.getTime()-(new Date()).getTime()>tL)return new Date(Date.UTC(f.getUTCFullYear()-100,f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()));return f},"adjustRfc850Year"),Fw=F((f)=>{const w=qw.indexOf(f);if(w<0)throw new TypeError(`Invalid month: ${f}`);return w+1},"parseMonthByShortName"),aL=[31,28,31,30,31,30,31,31,30,31,30,31],fA=F((f,w,$)=>{let E=aL[w];if(w===1&&wA(f))E=29;if($>E)throw new TypeError(`Invalid day for ${qw[w]} in ${f}: ${$}`)},"validateDayOfMonth"),wA=F((f)=>{return f%4===0&&(f%100!==0||f%400===0)},"isLeapYear"),x=F((f,w,$,E)=>{const U=_U(Lf(f));if(U<$||U>E)throw new TypeError(`${w} must be between ${$} and ${E}, inclusive`);return U},"parseDateValue"),$A=F((f)=>{if(f===null||f===void 0)return 0;return uU("0."+f)*1000},"parseMilliseconds"),UA=F((f)=>{const w=f[0];let $=1;if(w=="+")$=1;else if(w=="-")$=-1;else throw new TypeError(`Offset direction, ${w}, must be "+" or "-"`);const E=Number(f.substring(1,3)),U=Number(f.substring(4,6));return $*(E*60+U)*60*1000},"parseOffsetToMilliseconds"),Lf=F((f)=>{let w=0;while(w<f.length-1&&f.charAt(w)==="0")w++;if(w===0)return f;return f.slice(w)},"stripLeadingZeroes"),vU=class f extends Error{constructor(w){super(w.message);Object.setPrototypeOf(this,f.prototype),this.name=w.name,this.$fault=w.$fault,this.$metadata=w.$metadata}};F(vU,"ServiceException");var EA=vU,xU=F((f,w={})=>{Object.entries(w).filter(([,E])=>E!==void 0).forEach(([E,U])=>{if(f[E]==null||f[E]==="")f[E]=U});const $=f.message||f.Message||"UnknownError";return f.message=$,delete f.Message,f},"decorateServiceException"),pU=F(({output:f,parsedBody:w,exceptionCtor:$,errorCode:E})=>{const U=GA(f),R=U.httpStatusCode?U.httpStatusCode+"":void 0,G=new $({name:(w==null?void 0:w.code)||(w==null?void 0:w.Code)||E||R||"UnknownError",$fault:"client",$metadata:U});throw xU(G,w)},"throwDefaultError"),RA=F((f)=>{return({output:w,parsedBody:$,errorCode:E})=>{pU({output:w,parsedBody:$,exceptionCtor:f,errorCode:E})}},"withBaseException"),GA=F((f)=>({httpStatusCode:f.statusCode,requestId:f.headers["x-amzn-requestid"]??f.headers["x-amzn-request-id"]??f.headers["x-amz-request-id"],extendedRequestId:f.headers["x-amz-id-2"],cfId:f.headers["x-amz-cf-id"]}),"deserializeMetadata"),WA=F((f)=>{switch(f){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},"loadConfigsForDefaultMode"),VU=!1,IA=F((f)=>{if(f&&!VU&&parseInt(f.substring(1,f.indexOf(".")))<16)VU=!0},"emitWarningIfUnsupportedVersion"),OA=F((f)=>{const w=[];for(let $ in Xw.AlgorithmId){const E=Xw.AlgorithmId[$];if(f[E]===void 0)continue;w.push({algorithmId:()=>E,checksumConstructor:()=>f[E]})}return{_checksumAlgorithms:w,addChecksumAlgorithm($){this._checksumAlgorithms.push($)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),LA=F((f)=>{const w={};return f.checksumAlgorithms().forEach(($)=>{w[$.algorithmId()]=$.checksumConstructor()}),w},"resolveChecksumRuntimeConfig"),AA=F((f)=>{let w=f.retryStrategy;return{setRetryStrategy($){w=$},retryStrategy(){return w}}},"getRetryConfiguration"),MA=F((f)=>{const w={};return w.retryStrategy=f.retryStrategy(),w},"resolveRetryRuntimeConfig"),dU=F((f)=>{return{...OA(f),...AA(f)}},"getDefaultExtensionConfiguration"),TA=dU,FA=F((f)=>{return{...LA(f),...MA(f)}},"resolveDefaultRuntimeConfig");F(G0,"extendedEncodeURIComponent");var XA=F((f)=>Array.isArray(f)?f:[f],"getArrayIfSingleItem"),gU=F((f)=>{for(let $ in f)if(f.hasOwnProperty($)&&f[$]["#text"]!==void 0)f[$]=f[$]["#text"];else if(typeof f[$]==="object"&&f[$]!==null)f[$]=gU(f[$]);return f},"getValueFromTextNode"),hf=F(function(){const f=Object.getPrototypeOf(this).constructor,$=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf($,f.prototype),$},"StringWrapper");hf.prototype=Object.create(String.prototype,{constructor:{value:hf,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(hf,String);var sU=class f extends hf{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(w){if(w instanceof f)return w;else if(w instanceof String||typeof w==="string")return new f(w);return new f(JSON.stringify(w))}};F(sU,"LazyJsonString");var ZA=sU;F(Hw,"map");var YA=F((f)=>{const w={};for(let[$,E]of Object.entries(f||{}))w[$]=[,E];return w},"convertMap"),zA=F((f,w)=>{const $={};for(let E in w)nU($,f,w,E);return $},"take"),QA=F((f,w,$)=>{return Hw(f,Object.entries($).reduce((E,[U,R])=>{if(Array.isArray(R))E[U]=R;else if(typeof R==="function")E[U]=[w,R()];else E[U]=[w,R];return E},{}))},"mapWithFilter"),nU=F((f,w,$,E)=>{if(w!==null){let G=$[E];if(typeof G==="function")G=[,G];const[W=JA,I=BA,O=E]=G;if(typeof W==="function"&&W(w[O])||typeof W!=="function"&&!!W)f[E]=I(w[O]);return}let[U,R]=$[E];if(typeof R==="function"){let G;const W=U===void 0&&(G=R())!=null,I=typeof U==="function"&&!!U(void 0)||typeof U!=="function"&&!!U;if(W)f[E]=G;else if(I)f[E]=R()}else{const G=U===void 0&&R!=null,W=typeof U==="function"&&!!U(R)||typeof U!=="function"&&!!U;if(G||W)f[E]=R}},"applyInstruction"),JA=F((f)=>f!=null,"nonNullish"),BA=F((f)=>f,"pass"),KA=F((f,w,$,E,U,R)=>{if(w!=null&&w[$]!==void 0){const G=E();if(G.length<=0)throw new Error("Empty value provided for input HTTP label: "+$+".");f=f.replace(U,R?G.split("/").map((W)=>G0(W)).join("/"):G0(G))}else throw new Error("No value provided for input HTTP label: "+$+".");return f},"resolvedPath"),qA=F((f)=>{if(f!==f)return"NaN";switch(f){case Infinity:return"Infinity";case (-Infinity):return"-Infinity";default:return f}},"serializeFloat"),HA=F((f)=>f.toISOString().replace(".000Z","Z"),"serializeDateTime"),Qw=F((f)=>{if(f==null)return{};if(Array.isArray(f))return f.filter((w)=>w!=null).map(Qw);if(typeof f==="object"){const w={};for(let $ of Object.keys(f)){if(f[$]==null)continue;w[$]=Qw(f[$])}return w}return f},"_json");F(rU,"splitEvery")});var iU=Z((oU)=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.isStreamingPayload=void 0;var VA=import.meta.require("stream"),CA=(f)=>(f===null||f===void 0?void 0:f.body)instanceof VA.Readable||typeof ReadableStream!=="undefined"&&(f===null||f===void 0?void 0:f.body)instanceof ReadableStream;oU.isStreamingPayload=CA});var FE=Z((oF,TE)=>{var{defineProperty:I0,getOwnPropertyDescriptor:NA,getOwnPropertyNames:SA}=Object,PA=Object.prototype.hasOwnProperty,H=(f,w)=>I0(f,"name",{value:w,configurable:!0}),cA=(f,w)=>{for(var $ in w)I0(f,$,{get:w[$],enumerable:!0})},bA=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of SA(w))if(!PA.call(f,U)&&U!==$)I0(f,U,{get:()=>w[U],enumerable:!(E=NA(w,U))||E.enumerable})}return f},jA=(f)=>bA(I0({},"__esModule",{value:!0}),f),eU={};cA(eU,{AdaptiveRetryStrategy:()=>kA,CONFIG_MAX_ATTEMPTS:()=>Cw,CONFIG_RETRY_MODE:()=>WE,ENV_MAX_ATTEMPTS:()=>Vw,ENV_RETRY_MODE:()=>GE,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>DA,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>yA,StandardRetryStrategy:()=>EE,defaultDelayDecider:()=>fE,defaultRetryDecider:()=>wE,getOmitRetryHeadersPlugin:()=>vA,getRetryAfterHint:()=>ME,getRetryPlugin:()=>nA,omitRetryHeadersMiddleware:()=>IE,omitRetryHeadersMiddlewareOptions:()=>OE,resolveRetryConfig:()=>_A,retryMiddleware:()=>LE,retryMiddlewareOptions:()=>AE});TE.exports=jA(eU);var Tf=Ff(),aU=Ww(),K=HU(),hA=H((f,w)=>{const $=f,E=(w==null?void 0:w.noRetryIncrement)??K.NO_RETRY_INCREMENT,U=(w==null?void 0:w.retryCost)??K.RETRY_COST,R=(w==null?void 0:w.timeoutRetryCost)??K.TIMEOUT_RETRY_COST;let G=f;const W=H((A)=>A.name==="TimeoutError"?R:U,"getCapacityAmount"),I=H((A)=>W(A)<=G,"hasRetryTokens");return Object.freeze({hasRetryTokens:I,retrieveRetryTokens:H((A)=>{if(!I(A))throw new Error("No retry token available");const T=W(A);return G-=T,T},"retrieveRetryTokens"),releaseRetryTokens:H((A)=>{G+=A??E,G=Math.min(G,$)},"releaseRetryTokens")})},"getDefaultRetryQuota"),fE=H((f,w)=>Math.floor(Math.min(K.MAXIMUM_RETRY_DELAY,Math.random()*2**w*f)),"defaultDelayDecider"),n=Iw(),wE=H((f)=>{if(!f)return!1;return n.isRetryableByTrait(f)||n.isClockSkewError(f)||n.isThrottlingError(f)||n.isTransientError(f)},"defaultRetryDecider"),$E=H((f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)},"asSdkError"),UE=class f{constructor(w,$){this.maxAttemptsProvider=w,this.mode=K.RETRY_MODES.STANDARD,this.retryDecider=($==null?void 0:$.retryDecider)??wE,this.delayDecider=($==null?void 0:$.delayDecider)??fE,this.retryQuota=($==null?void 0:$.retryQuota)??hA(K.INITIAL_RETRY_TOKENS)}shouldRetry(w,$,E){return $<E&&this.retryDecider(w)&&this.retryQuota.hasRetryTokens(w)}async getMaxAttempts(){let w;try{w=await this.maxAttemptsProvider()}catch($){w=K.DEFAULT_MAX_ATTEMPTS}return w}async retry(w,$,E){let U,R=0,G=0;const W=await this.getMaxAttempts(),{request:I}=$;if(Tf.HttpRequest.isInstance(I))I.headers[K.INVOCATION_ID_HEADER]=aU.v4();while(!0)try{if(Tf.HttpRequest.isInstance(I))I.headers[K.REQUEST_HEADER]=`attempt=${R+1}; max=${W}`;if(E==null?void 0:E.beforeRequest)await E.beforeRequest();const{response:O,output:L}=await w($);if(E==null?void 0:E.afterRequest)E.afterRequest(O);return this.retryQuota.releaseRetryTokens(U),L.$metadata.attempts=R+1,L.$metadata.totalRetryDelay=G,{response:O,output:L}}catch(O){const L=$E(O);if(R++,this.shouldRetry(L,R,W)){U=this.retryQuota.retrieveRetryTokens(L);const A=this.delayDecider(n.isThrottlingError(L)?K.THROTTLING_RETRY_DELAY_BASE:K.DEFAULT_RETRY_DELAY_BASE,R),T=uA(L.$response),M=Math.max(T||0,A);G+=M,await new Promise((X)=>setTimeout(X,M));continue}if(!L.$metadata)L.$metadata={};throw L.$metadata.attempts=R,L.$metadata.totalRetryDelay=G,L}}};H(UE,"StandardRetryStrategy");var EE=UE,uA=H((f)=>{if(!Tf.HttpResponse.isInstance(f))return;const w=Object.keys(f.headers).find((R)=>R.toLowerCase()==="retry-after");if(!w)return;const $=f.headers[w],E=Number($);if(!Number.isNaN(E))return E*1000;return new Date($).getTime()-Date.now()},"getDelayFromRetryAfterHeader"),RE=class f extends EE{constructor(w,$){const{rateLimiter:E,...U}=$??{};super(w,U);this.rateLimiter=E??new K.DefaultRateLimiter,this.mode=K.RETRY_MODES.ADAPTIVE}async retry(w,$){return super.retry(w,$,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}};H(RE,"AdaptiveRetryStrategy");var kA=RE,tU=v(),Vw="AWS_MAX_ATTEMPTS",Cw="max_attempts",DA={environmentVariableSelector:(f)=>{const w=f[Vw];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Environment variable ${Vw} mast be a number, got "${w}"`);return $},configFileSelector:(f)=>{const w=f[Cw];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Shared config file entry ${Cw} mast be a number, got "${w}"`);return $},default:K.DEFAULT_MAX_ATTEMPTS},_A=H((f)=>{const{retryStrategy:w}=f,$=tU.normalizeProvider(f.maxAttempts??K.DEFAULT_MAX_ATTEMPTS);return{...f,maxAttempts:$,retryStrategy:async()=>{if(w)return w;if(await tU.normalizeProvider(f.retryMode)()===K.RETRY_MODES.ADAPTIVE)return new K.AdaptiveRetryStrategy($);return new K.StandardRetryStrategy($)}}},"resolveRetryConfig"),GE="AWS_RETRY_MODE",WE="retry_mode",yA={environmentVariableSelector:(f)=>f[GE],configFileSelector:(f)=>f[WE],default:K.DEFAULT_RETRY_MODE},IE=H(()=>(f)=>async(w)=>{const{request:$}=w;if(Tf.HttpRequest.isInstance($))delete $.headers[K.INVOCATION_ID_HEADER],delete $.headers[K.REQUEST_HEADER];return f(w)},"omitRetryHeadersMiddleware"),OE={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},vA=H((f)=>({applyToStack:(w)=>{w.addRelativeTo(IE(),OE)}}),"getOmitRetryHeadersPlugin"),xA=Mf(),pA=iU(),LE=H((f)=>(w,$)=>async(E)=>{var U;let R=await f.retryStrategy();const G=await f.maxAttempts();if(dA(R)){R=R;let W=await R.acquireInitialRetryToken($.partition_id),I=new Error,O=0,L=0;const{request:A}=E,T=Tf.HttpRequest.isInstance(A);if(T)A.headers[K.INVOCATION_ID_HEADER]=aU.v4();while(!0)try{if(T)A.headers[K.REQUEST_HEADER]=`attempt=${O+1}; max=${G}`;const{response:M,output:X}=await w(E);return R.recordSuccess(W),X.$metadata.attempts=O+1,X.$metadata.totalRetryDelay=L,{response:M,output:X}}catch(M){const X=gA(M);if(I=$E(M),T&&pA.isStreamingPayload(A))throw(U=$.logger instanceof xA.NoOpLogger?console:$.logger)==null||U.warn("An error was encountered in a non-retryable streaming request."),I;try{W=await R.refreshRetryTokenForRetry(W,X)}catch(Q){if(!I.$metadata)I.$metadata={};throw I.$metadata.attempts=O+1,I.$metadata.totalRetryDelay=L,I}O=W.getRetryCount();const Y=W.getRetryDelay();L+=Y,await new Promise((Q)=>setTimeout(Q,Y))}}else{if(R=R,R==null?void 0:R.mode)$.userAgent=[...$.userAgent||[],["cfg/retry-mode",R.mode]];return R.retry(w,E)}},"retryMiddleware"),dA=H((f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined","isRetryStrategyV2"),gA=H((f)=>{const w={error:f,errorType:sA(f)},$=ME(f.$response);if($)w.retryAfterHint=$;return w},"getRetryErrorInfo"),sA=H((f)=>{if(n.isThrottlingError(f))return"THROTTLING";if(n.isTransientError(f))return"TRANSIENT";if(n.isServerError(f))return"SERVER_ERROR";return"CLIENT_ERROR"},"getRetryErrorType"),AE={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},nA=H((f)=>({applyToStack:(w)=>{w.add(LE(f),AE)}}),"getRetryPlugin"),ME=H((f)=>{if(!Tf.HttpResponse.isInstance(f))return;const w=Object.keys(f.headers).find((R)=>R.toLowerCase()==="retry-after");if(!w)return;const $=f.headers[w],E=Number($);if(!Number.isNaN(E))return new Date(E*1000);return new Date($)},"getRetryAfterHint")});var Sw=Z((mF,hE)=>{var YE=function(f){const w=new Map;for(let $ of f)w.set($.schemeId,$);return w},PE=function(f,w){return new bE(f,w)},jE=function(f,w,$,E,U){return B(async function*R(G,W,...I){let O=G.startingToken||void 0,L=!0,A;while(L){if(W[$]=O,U)W[U]=W[U]??G.pageSize;if(G.client instanceof f)A=await XM(w,G.client,W,...I);else throw new Error(`Invalid client, expected instance of ${f.name}`);yield A;const T=O;O=ZM(A,E),L=!!(O&&(!G.stopOnSameToken||O!==T))}return},"paginateOperation")},L0=Object.defineProperty,rA=Object.getOwnPropertyDescriptor,lA=Object.getOwnPropertyNames,oA=Object.prototype.hasOwnProperty,B=(f,w)=>L0(f,"name",{value:w,configurable:!0}),mA=(f,w)=>{for(var $ in w)L0(f,$,{get:w[$],enumerable:!0})},iA=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of lA(w))if(!oA.call(f,U)&&U!==$)L0(f,U,{get:()=>w[U],enumerable:!(E=rA(w,U))||E.enumerable})}return f},tA=(f)=>iA(L0({},"__esModule",{value:!0}),f),XE={};mA(XE,{DefaultIdentityProviderConfig:()=>GM,EXPIRATION_MS:()=>NE,HttpApiKeyAuthSigner:()=>WM,HttpBearerAuthSigner:()=>IM,NoAuthSigner:()=>OM,RequestBuilder:()=>bE,createIsIdentityExpiredFunction:()=>CE,createPaginator:()=>jE,doesIdentityRequireRefresh:()=>SE,getHttpAuthSchemeEndpointRuleSetPlugin:()=>aA,getHttpAuthSchemePlugin:()=>wM,getHttpSigningPlugin:()=>RM,getSmithyContext:()=>MM,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>zE,httpAuthSchemeMiddleware:()=>Nw,httpAuthSchemeMiddlewareOptions:()=>QE,httpSigningMiddleware:()=>JE,httpSigningMiddlewareOptions:()=>BE,isIdentityExpired:()=>LM,memoizeIdentityProvider:()=>AM,normalizeProvider:()=>TM,requestBuilder:()=>PE});hE.exports=tA(XE);var ZE=v();B(YE,"convertHttpAuthSchemesToMap");var Nw=B((f,w)=>($,E)=>async(U)=>{var R;const G=f.httpAuthSchemeProvider(await w.httpAuthSchemeParametersProvider(f,E,U.input)),W=YE(f.httpAuthSchemes),I=ZE.getSmithyContext(E),O=[];for(let L of G){const A=W.get(L.schemeId);if(!A){O.push(`HttpAuthScheme \`${L.schemeId}\` was not enabled for this service.`);continue}const T=A.identityProvider(await w.identityProviderConfigProvider(f));if(!T){O.push(`HttpAuthScheme \`${L.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:M={},signingProperties:X={}}=((R=L.propertiesExtractor)==null?void 0:R.call(L,f,E))||{};L.identityProperties=Object.assign(L.identityProperties||{},M),L.signingProperties=Object.assign(L.signingProperties||{},X),I.selectedHttpAuthScheme={httpAuthOption:L,identity:await T(L.identityProperties),signer:A.signer};break}if(!I.selectedHttpAuthScheme)throw new Error(O.join("\n"));return $(U)},"httpAuthSchemeMiddleware"),eA=T$(),zE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:eA.endpointMiddlewareOptions.name},aA=B((f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$})=>({applyToStack:(E)=>{E.addRelativeTo(Nw(f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$}),zE)}}),"getHttpAuthSchemeEndpointRuleSetPlugin"),fM=a0(),QE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:fM.serializerMiddlewareOption.name},wM=B((f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$})=>({applyToStack:(E)=>{E.addRelativeTo(Nw(f,{httpAuthSchemeParametersProvider:w,identityProviderConfigProvider:$}),QE)}}),"getHttpAuthSchemePlugin"),A0=Ff(),$M=B((f)=>(w)=>{throw w},"defaultErrorHandler"),UM=B((f,w)=>{},"defaultSuccessHandler"),JE=B((f)=>(w,$)=>async(E)=>{if(!A0.HttpRequest.isInstance(E.request))return w(E);const R=ZE.getSmithyContext($).selectedHttpAuthScheme;if(!R)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:G={}},identity:W,signer:I}=R,O=await w({...E,request:await I.sign(E.request,W,G)}).catch((I.errorHandler||$M)(G));return(I.successHandler||UM)(O.response,G),O},"httpSigningMiddleware"),EM=FE(),BE={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:EM.retryMiddlewareOptions.name},RM=B((f)=>({applyToStack:(w)=>{w.addRelativeTo(JE(f),BE)}}),"getHttpSigningPlugin"),KE=class f{constructor(w){this.authSchemes=new Map;for(let[$,E]of Object.entries(w))if(E!==void 0)this.authSchemes.set($,E)}getIdentityProvider(w){return this.authSchemes.get(w)}};B(KE,"DefaultIdentityProviderConfig");var GM=KE,O0=Kf(),qE=class f{async sign(w,$,E){if(!E)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!E.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!E.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!$.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");const U=A0.HttpRequest.clone(w);if(E.in===O0.HttpApiKeyAuthLocation.QUERY)U.query[E.name]=$.apiKey;else if(E.in===O0.HttpApiKeyAuthLocation.HEADER)U.headers[E.name]=E.scheme?`${E.scheme} ${$.apiKey}`:$.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+E.in+"`");return U}};B(qE,"HttpApiKeyAuthSigner");var WM=qE,HE=class f{async sign(w,$,E){const U=A0.HttpRequest.clone(w);if(!$.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return U.headers.Authorization=`Bearer ${$.token}`,U}};B(HE,"HttpBearerAuthSigner");var IM=HE,VE=class f{async sign(w,$,E){return w}};B(VE,"NoAuthSigner");var OM=VE,CE=B((f)=>(w)=>SE(w)&&w.expiration.getTime()-Date.now()<f,"createIsIdentityExpiredFunction"),NE=300000,LM=CE(NE),SE=B((f)=>f.expiration!==void 0,"doesIdentityRequireRefresh"),AM=B((f,w,$)=>{if(f===void 0)return;const E=typeof f!=="function"?async()=>Promise.resolve(f):f;let U,R,G,W=!1;const I=B(async(O)=>{if(!R)R=E(O);try{U=await R,G=!0,W=!1}finally{R=void 0}return U},"coalesceProvider");if(w===void 0)return async(O)=>{if(!G||(O==null?void 0:O.forceRefresh))U=await I(O);return U};return async(O)=>{if(!G||(O==null?void 0:O.forceRefresh))U=await I(O);if(W)return U;if(!$(U))return W=!0,U;if(w(U))return await I(O),U;return U}},"memoizeIdentityProvider"),MM=B((f)=>f[O0.SMITHY_CONTEXT_KEY]||(f[O0.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),TM=B((f)=>{if(typeof f==="function")return f;const w=Promise.resolve(f);return()=>w},"normalizeProvider"),FM=Mf();B(PE,"requestBuilder");var cE=class f{constructor(w,$){this.input=w,this.context=$,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:w,protocol:$="https",port:E,path:U}=await this.context.endpoint();this.path=U;for(let R of this.resolvePathStack)R(this.path);return new A0.HttpRequest({protocol:$,hostname:this.hostname||w,port:E,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(w){return this.hostname=w,this}bp(w){return this.resolvePathStack.push(($)=>{this.path=`${($==null?void 0:$.endsWith("/"))?$.slice(0,-1):$||""}`+w}),this}p(w,$,E,U){return this.resolvePathStack.push((R)=>{this.path=FM.resolvedPath(R,this.input,w,$,E,U)}),this}h(w){return this.headers=w,this}q(w){return this.query=w,this}b(w){return this.body=w,this}m(w){return this.method=w,this}};B(cE,"RequestBuilder");var bE=cE,XM=B(async(f,w,$,...E)=>{return await w.send(new f($),...E)},"makePagedClientRequest");B(jE,"createPaginator");var ZM=B((f,w)=>{let $=f;const E=w.split(".");for(let U of E){if(!$||typeof $!=="object")return;$=$[U]}return $},"get")});var fG=Z((M7,c0)=>{var NR,SR,PR,cR,bR,jR,hR,uR,kR,DR,_R,yR,vR,S0,mw,xR,pR,dR,Qf,gR,sR,nR,rR,lR,oR,mR,iR,tR,P0,eR,aR;(function(f){var w=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(E){f($(w,$(E)))});else if(typeof c0==="object"&&typeof M7==="object")f($(w,$(M7)));else f($(w));function $(E,U){if(E!==w)if(typeof Object.create==="function")Object.defineProperty(E,"__esModule",{value:!0});else E.__esModule=!0;return function(R,G){return E[R]=U?U(R,G):G}}})(function(f){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,R){U.__proto__=R}||function(U,R){for(var G in R)if(Object.prototype.hasOwnProperty.call(R,G))U[G]=R[G]};NR=function(U,R){if(typeof R!=="function"&&R!==null)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");w(U,R);function G(){this.constructor=U}U.prototype=R===null?Object.create(R):(G.prototype=R.prototype,new G)},SR=Object.assign||function(U){for(var R,G=1,W=arguments.length;G<W;G++){R=arguments[G];for(var I in R)if(Object.prototype.hasOwnProperty.call(R,I))U[I]=R[I]}return U},PR=function(U,R){var G={};for(var W in U)if(Object.prototype.hasOwnProperty.call(U,W)&&R.indexOf(W)<0)G[W]=U[W];if(U!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var I=0,W=Object.getOwnPropertySymbols(U);I<W.length;I++)if(R.indexOf(W[I])<0&&Object.prototype.propertyIsEnumerable.call(U,W[I]))G[W[I]]=U[W[I]]}return G},cR=function(U,R,G,W){var I=arguments.length,O=I<3?R:W===null?W=Object.getOwnPropertyDescriptor(R,G):W,L;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")O=Reflect.decorate(U,R,G,W);else for(var A=U.length-1;A>=0;A--)if(L=U[A])O=(I<3?L(O):I>3?L(R,G,O):L(R,G))||O;return I>3&&O&&Object.defineProperty(R,G,O),O},bR=function(U,R){return function(G,W){R(G,W,U)}},jR=function(U,R,G,W,I,O){function L(t){if(t!==void 0&&typeof t!=="function")throw new TypeError("Function expected");return t}var A=W.kind,T=A==="getter"?"get":A==="setter"?"set":"value",M=!R&&U?W.static?U:U.prototype:null,X=R||(M?Object.getOwnPropertyDescriptor(M,W.name):{}),Y,Q=!1;for(var z=G.length-1;z>=0;z--){var N={};for(var P in W)N[P]=P==="access"?{}:W[P];for(var P in W.access)N.access[P]=W.access[P];N.addInitializer=function(t){if(Q)throw new TypeError("Cannot add initializers after decoration has completed");O.push(L(t||null))};var d=G[z](A==="accessor"?{get:X.get,set:X.set}:X[T],N);if(A==="accessor"){if(d===void 0)continue;if(d===null||typeof d!=="object")throw new TypeError("Object expected");if(Y=L(d.get))X.get=Y;if(Y=L(d.set))X.set=Y;if(Y=L(d.init))I.unshift(Y)}else if(Y=L(d))if(A==="field")I.unshift(Y);else X[T]=Y}if(M)Object.defineProperty(M,W.name,X);Q=!0},hR=function(U,R,G){var W=arguments.length>2;for(var I=0;I<R.length;I++)G=W?R[I].call(U,G):R[I].call(U);return W?G:void 0},uR=function(U){return typeof U==="symbol"?U:"".concat(U)},kR=function(U,R,G){if(typeof R==="symbol")R=R.description?"[".concat(R.description,"]"):"";return Object.defineProperty(U,"name",{configurable:!0,value:G?"".concat(G," ",R):R})},DR=function(U,R){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(U,R)},_R=function(U,R,G,W){function I(O){return O instanceof G?O:new G(function(L){L(O)})}return new(G||(G=Promise))(function(O,L){function A(X){try{M(W.next(X))}catch(Y){L(Y)}}function T(X){try{M(W.throw(X))}catch(Y){L(Y)}}function M(X){X.done?O(X.value):I(X.value).then(A,T)}M((W=W.apply(U,R||[])).next())})},yR=function(U,R){var G={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},W,I,O,L;return L={next:A(0),throw:A(1),return:A(2)},typeof Symbol==="function"&&(L[Symbol.iterator]=function(){return this}),L;function A(M){return function(X){return T([M,X])}}function T(M){if(W)throw new TypeError("Generator is already executing.");while(L&&(L=0,M[0]&&(G=0)),G)try{if(W=1,I&&(O=M[0]&2?I.return:M[0]?I.throw||((O=I.return)&&O.call(I),0):I.next)&&!(O=O.call(I,M[1])).done)return O;if(I=0,O)M=[M[0]&2,O.value];switch(M[0]){case 0:case 1:O=M;break;case 4:return G.label++,{value:M[1],done:!1};case 5:G.label++,I=M[1],M=[0];continue;case 7:M=G.ops.pop(),G.trys.pop();continue;default:if((O=G.trys,!(O=O.length>0&&O[O.length-1]))&&(M[0]===6||M[0]===2)){G=0;continue}if(M[0]===3&&(!O||M[1]>O[0]&&M[1]<O[3])){G.label=M[1];break}if(M[0]===6&&G.label<O[1]){G.label=O[1],O=M;break}if(O&&G.label<O[2]){G.label=O[2],G.ops.push(M);break}if(O[2])G.ops.pop();G.trys.pop();continue}M=R.call(U,G)}catch(X){M=[6,X],I=0}finally{W=O=0}if(M[0]&5)throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}},vR=function(U,R){for(var G in U)if(G!=="default"&&!Object.prototype.hasOwnProperty.call(R,G))P0(R,U,G)},P0=Object.create?function(U,R,G,W){if(W===void 0)W=G;var I=Object.getOwnPropertyDescriptor(R,G);if(!I||("get"in I?!R.__esModule:I.writable||I.configurable))I={enumerable:!0,get:function(){return R[G]}};Object.defineProperty(U,W,I)}:function(U,R,G,W){if(W===void 0)W=G;U[W]=R[G]},S0=function(U){var R=typeof Symbol==="function"&&Symbol.iterator,G=R&&U[R],W=0;if(G)return G.call(U);if(U&&typeof U.length==="number")return{next:function(){if(U&&W>=U.length)U=void 0;return{value:U&&U[W++],done:!U}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")},mw=function(U,R){var G=typeof Symbol==="function"&&U[Symbol.iterator];if(!G)return U;var W=G.call(U),I,O=[],L;try{while((R===void 0||R-- >0)&&!(I=W.next()).done)O.push(I.value)}catch(A){L={error:A}}finally{try{if(I&&!I.done&&(G=W.return))G.call(W)}finally{if(L)throw L.error}}return O},xR=function(){for(var U=[],R=0;R<arguments.length;R++)U=U.concat(mw(arguments[R]));return U},pR=function(){for(var U=0,R=0,G=arguments.length;R<G;R++)U+=arguments[R].length;for(var W=Array(U),I=0,R=0;R<G;R++)for(var O=arguments[R],L=0,A=O.length;L<A;L++,I++)W[I]=O[L];return W},dR=function(U,R,G){if(G||arguments.length===2){for(var W=0,I=R.length,O;W<I;W++)if(O||!(W in R)){if(!O)O=Array.prototype.slice.call(R,0,W);O[W]=R[W]}}return U.concat(O||Array.prototype.slice.call(R))},Qf=function(U){return this instanceof Qf?(this.v=U,this):new Qf(U)},gR=function(U,R,G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W=G.apply(U,R||[]),I,O=[];return I={},A("next"),A("throw"),A("return",L),I[Symbol.asyncIterator]=function(){return this},I;function L(z){return function(N){return Promise.resolve(N).then(z,Y)}}function A(z,N){if(W[z]){if(I[z]=function(P){return new Promise(function(d,t){O.push([z,P,d,t])>1||T(z,P)})},N)I[z]=N(I[z])}}function T(z,N){try{M(W[z](N))}catch(P){Q(O[0][3],P)}}function M(z){z.value instanceof Qf?Promise.resolve(z.value.v).then(X,Y):Q(O[0][2],z)}function X(z){T("next",z)}function Y(z){T("throw",z)}function Q(z,N){if(z(N),O.shift(),O.length)T(O[0][0],O[0][1])}},sR=function(U){var R,G;return R={},W("next"),W("throw",function(I){throw I}),W("return"),R[Symbol.iterator]=function(){return this},R;function W(I,O){R[I]=U[I]?function(L){return(G=!G)?{value:Qf(U[I](L)),done:!1}:O?O(L):L}:O}},nR=function(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=U[Symbol.asyncIterator],G;return R?R.call(U):(U=typeof S0==="function"?S0(U):U[Symbol.iterator](),G={},W("next"),W("throw"),W("return"),G[Symbol.asyncIterator]=function(){return this},G);function W(O){G[O]=U[O]&&function(L){return new Promise(function(A,T){L=U[O](L),I(A,T,L.done,L.value)})}}function I(O,L,A,T){Promise.resolve(T).then(function(M){O({value:M,done:A})},L)}},rR=function(U,R){if(Object.defineProperty)Object.defineProperty(U,"raw",{value:R});else U.raw=R;return U};var $=Object.create?function(U,R){Object.defineProperty(U,"default",{enumerable:!0,value:R})}:function(U,R){U.default=R};lR=function(U){if(U&&U.__esModule)return U;var R={};if(U!=null){for(var G in U)if(G!=="default"&&Object.prototype.hasOwnProperty.call(U,G))P0(R,U,G)}return $(R,U),R},oR=function(U){return U&&U.__esModule?U:{default:U}},mR=function(U,R,G,W){if(G==="a"&&!W)throw new TypeError("Private accessor was defined without a getter");if(typeof R==="function"?U!==R||!W:!R.has(U))throw new TypeError("Cannot read private member from an object whose class did not declare it");return G==="m"?W:G==="a"?W.call(U):W?W.value:R.get(U)},iR=function(U,R,G,W,I){if(W==="m")throw new TypeError("Private method is not writable");if(W==="a"&&!I)throw new TypeError("Private accessor was defined without a setter");if(typeof R==="function"?U!==R||!I:!R.has(U))throw new TypeError("Cannot write private member to an object whose class did not declare it");return W==="a"?I.call(U,G):I?I.value=G:R.set(U,G),G},tR=function(U,R){if(R===null||typeof R!=="object"&&typeof R!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof U==="function"?R===U:U.has(R)},eR=function(U,R,G){if(R!==null&&R!==void 0){if(typeof R!=="object"&&typeof R!=="function")throw new TypeError("Object expected.");var W,I;if(G){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");W=R[Symbol.asyncDispose]}if(W===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");if(W=R[Symbol.dispose],G)I=W}if(typeof W!=="function")throw new TypeError("Object not disposable.");if(I)W=function(){try{I.call(this)}catch(O){return Promise.reject(O)}};U.stack.push({value:R,dispose:W,async:G})}else if(G)U.stack.push({async:!0});return R};var E=typeof SuppressedError==="function"?SuppressedError:function(U,R,G){var W=new Error(G);return W.name="SuppressedError",W.error=U,W.suppressed=R,W};aR=function(U){function R(W){U.error=U.hasError?new E(W,U.error,"An error was suppressed during disposal."):W,U.hasError=!0}function G(){while(U.stack.length){var W=U.stack.pop();try{var I=W.dispose&&W.dispose.call(W.value);if(W.async)return Promise.resolve(I).then(G,function(O){return R(O),G()})}catch(O){R(O)}}if(U.hasError)throw U.error}return G()},f("__extends",NR),f("__assign",SR),f("__rest",PR),f("__decorate",cR),f("__param",bR),f("__esDecorate",jR),f("__runInitializers",hR),f("__propKey",uR),f("__setFunctionName",kR),f("__metadata",DR),f("__awaiter",_R),f("__generator",yR),f("__exportStar",vR),f("__createBinding",P0),f("__values",S0),f("__read",mw),f("__spread",xR),f("__spreadArrays",pR),f("__spreadArray",dR),f("__await",Qf),f("__asyncGenerator",gR),f("__asyncDelegator",sR),f("__asyncValues",nR),f("__makeTemplateObject",rR),f("__importStar",lR),f("__importDefault",oR),f("__classPrivateFieldGet",mR),f("__classPrivateFieldSet",iR),f("__classPrivateFieldIn",tR),f("__addDisposableResource",eR),f("__disposeResources",aR)})});var EG=Z((T7,UG)=>{var{defineProperty:b0,getOwnPropertyDescriptor:eM,getOwnPropertyNames:aM}=Object,f2=Object.prototype.hasOwnProperty,w2=(f,w)=>b0(f,"name",{value:w,configurable:!0}),$2=(f,w)=>{for(var $ in w)b0(f,$,{get:w[$],enumerable:!0})},U2=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of aM(w))if(!f2.call(f,U)&&U!==$)b0(f,U,{get:()=>w[U],enumerable:!(E=eM(w,U))||E.enumerable})}return f},E2=(f)=>U2(b0({},"__esModule",{value:!0}),f),$G={};$2($G,{emitWarningIfUnsupportedVersion:()=>R2});UG.exports=E2($G);var wG=!1,R2=w2((f)=>{if(f&&!wG&&parseInt(f.substring(1,f.indexOf(".")))<18)wG=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
2
|
-
no longer support Node.js 16.x on January 6, 2025.
|
|
3
|
-
|
|
4
|
-
To continue receiving updates to AWS services, bug fixes, and security
|
|
5
|
-
updates please upgrade to a supported Node.js LTS version.
|
|
6
|
-
|
|
7
|
-
More information can be found at: https://a.co/74kJMmI`)},"emitWarningIfUnsupportedVersion")});var HG=Z((F7,qG)=>{var f1=function(f){for(let w=0;w<8;w++)f[w]^=255;for(let w=7;w>-1;w--)if(f[w]++,f[w]!==0)break},_0=Object.defineProperty,O2=Object.getOwnPropertyDescriptor,L2=Object.getOwnPropertyNames,A2=Object.prototype.hasOwnProperty,V=(f,w)=>_0(f,"name",{value:w,configurable:!0}),M2=(f,w)=>{for(var $ in w)_0(f,$,{get:w[$],enumerable:!0})},T2=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of L2(w))if(!A2.call(f,U)&&U!==$)_0(f,U,{get:()=>w[U],enumerable:!(E=O2(w,U))||E.enumerable})}return f},F2=(f)=>T2(_0({},"__esModule",{value:!0}),f),OG={};M2(OG,{SignatureV4:()=>x2,clearCredentialCache:()=>b2,createScope:()=>u0,getCanonicalHeaders:()=>aw,getCanonicalQuery:()=>YG,getPayloadHash:()=>k0,getSigningKey:()=>ZG,moveHeadersToQuery:()=>BG,prepareRequest:()=>w1});qG.exports=F2(OG);var RG=v(),iw=D0(),X2="X-Amz-Algorithm",Z2="X-Amz-Credential",LG="X-Amz-Date",Y2="X-Amz-SignedHeaders",z2="X-Amz-Expires",AG="X-Amz-Signature",MG="X-Amz-Security-Token",TG="authorization",FG=LG.toLowerCase(),Q2="date",J2=[TG,FG,Q2],B2=AG.toLowerCase(),ew="x-amz-content-sha256",K2=MG.toLowerCase(),q2={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},H2=/^proxy-/,V2=/^sec-/,tw="AWS4-HMAC-SHA256",C2="AWS4-HMAC-SHA256-PAYLOAD",N2="UNSIGNED-PAYLOAD",S2=50,XG="aws4_request",P2=604800,m=I2(),c2=D0(),Jf={},h0=[],u0=V((f,w,$)=>`${f}/${w}/${$}/${XG}`,"createScope"),ZG=V(async(f,w,$,E,U)=>{const R=await GG(f,w.secretAccessKey,w.accessKeyId),G=`${$}:${E}:${U}:${m.toHex(R)}:${w.sessionToken}`;if(G in Jf)return Jf[G];h0.push(G);while(h0.length>S2)delete Jf[h0.shift()];let W=`AWS4${w.secretAccessKey}`;for(let I of[$,E,U,XG])W=await GG(f,W,I);return Jf[G]=W},"getSigningKey"),b2=V(()=>{h0.length=0,Object.keys(Jf).forEach((f)=>{delete Jf[f]})},"clearCredentialCache"),GG=V((f,w,$)=>{const E=new f(w);return E.update(c2.toUint8Array($)),E.digest()},"hmac"),aw=V(({headers:f},w,$)=>{const E={};for(let U of Object.keys(f).sort()){if(f[U]==null)continue;const R=U.toLowerCase();if(R in q2||(w==null?void 0:w.has(R))||H2.test(R)||V2.test(R)){if(!$||$&&!$.has(R))continue}E[R]=f[U].trim().replace(/\s+/g," ")}return E},"getCanonicalHeaders"),yf=W2(),YG=V(({query:f={}})=>{const w=[],$={};for(let E of Object.keys(f).sort()){if(E.toLowerCase()===B2)continue;w.push(E);const U=f[E];if(typeof U==="string")$[E]=`${yf.escapeUri(E)}=${yf.escapeUri(U)}`;else if(Array.isArray(U))$[E]=U.slice(0).reduce((R,G)=>R.concat([`${yf.escapeUri(E)}=${yf.escapeUri(G)}`]),[]).sort().join("&")}return w.map((E)=>$[E]).filter((E)=>E).join("&")},"getCanonicalQuery"),j2=G2(),h2=D0(),k0=V(async({headers:f,body:w},$)=>{for(let E of Object.keys(f))if(E.toLowerCase()===ew)return f[E];if(w==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof w==="string"||ArrayBuffer.isView(w)||j2.isArrayBuffer(w)){const E=new $;return E.update(h2.toUint8Array(w)),m.toHex(await E.digest())}return N2},"getPayloadHash"),WG=D0(),zG=class f{format(w){const $=[];for(let R of Object.keys(w)){const G=WG.fromUtf8(R);$.push(Uint8Array.from([G.byteLength]),G,this.formatHeaderValue(w[R]))}const E=new Uint8Array($.reduce((R,G)=>R+G.byteLength,0));let U=0;for(let R of $)E.set(R,U),U+=R.byteLength;return E}formatHeaderValue(w){switch(w.type){case"boolean":return Uint8Array.from([w.value?0:1]);case"byte":return Uint8Array.from([2,w.value]);case"short":const $=new DataView(new ArrayBuffer(3));return $.setUint8(0,3),$.setInt16(1,w.value,!1),new Uint8Array($.buffer);case"integer":const E=new DataView(new ArrayBuffer(5));return E.setUint8(0,4),E.setInt32(1,w.value,!1),new Uint8Array(E.buffer);case"long":const U=new Uint8Array(9);return U[0]=5,U.set(w.value.bytes,1),U;case"binary":const R=new DataView(new ArrayBuffer(3+w.value.byteLength));R.setUint8(0,6),R.setUint16(1,w.value.byteLength,!1);const G=new Uint8Array(R.buffer);return G.set(w.value,3),G;case"string":const W=WG.fromUtf8(w.value),I=new DataView(new ArrayBuffer(3+W.byteLength));I.setUint8(0,7),I.setUint16(1,W.byteLength,!1);const O=new Uint8Array(I.buffer);return O.set(W,3),O;case"timestamp":const L=new Uint8Array(9);return L[0]=8,L.set(D2.fromNumber(w.value.valueOf()).bytes,1),L;case"uuid":if(!k2.test(w.value))throw new Error(`Invalid UUID received: ${w.value}`);const A=new Uint8Array(17);return A[0]=9,A.set(m.fromHex(w.value.replace(/\-/g,"")),1),A}}};V(zG,"HeaderFormatter");var u2=zG,k2=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,QG=class f{constructor(w){if(this.bytes=w,w.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(w){if(w>9223372036854776000||w<-9223372036854776000)throw new Error(`${w} is too large (or, if negative, too small) to represent as an Int64`);const $=new Uint8Array(8);for(let E=7,U=Math.abs(Math.round(w));E>-1&&U>0;E--,U/=256)$[E]=U;if(w<0)f1($);return new f($)}valueOf(){const w=this.bytes.slice(0),$=w[0]&128;if($)f1(w);return parseInt(m.toHex(w),16)*($?-1:1)}toString(){return String(this.valueOf())}};V(QG,"Int64");var D2=QG;V(f1,"negate");var _2=V((f,w)=>{f=f.toLowerCase();for(let $ of Object.keys(w))if(f===$.toLowerCase())return!0;return!1},"hasHeader"),JG=Ff(),BG=V((f,w={})=>{var $;const{headers:E,query:U={}}=JG.HttpRequest.clone(f);for(let R of Object.keys(E)){const G=R.toLowerCase();if(G.slice(0,6)==="x-amz-"&&!(($=w.unhoistableHeaders)==null?void 0:$.has(G)))U[R]=E[R],delete E[R]}return{...f,headers:E,query:U}},"moveHeadersToQuery"),w1=V((f)=>{f=JG.HttpRequest.clone(f);for(let w of Object.keys(f.headers))if(J2.indexOf(w.toLowerCase())>-1)delete f.headers[w];return f},"prepareRequest"),y2=V((f)=>v2(f).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),v2=V((f)=>{if(typeof f==="number")return new Date(f*1000);if(typeof f==="string"){if(Number(f))return new Date(Number(f)*1000);return new Date(f)}return f},"toDate"),KG=class f{constructor({applyChecksum:w,credentials:$,region:E,service:U,sha256:R,uriEscapePath:G=!0}){this.headerFormatter=new u2,this.service=U,this.sha256=R,this.uriEscapePath=G,this.applyChecksum=typeof w==="boolean"?w:!0,this.regionProvider=RG.normalizeProvider(E),this.credentialProvider=RG.normalizeProvider($)}async presign(w,$={}){const{signingDate:E=new Date,expiresIn:U=3600,unsignableHeaders:R,unhoistableHeaders:G,signableHeaders:W,signingRegion:I,signingService:O}=$,L=await this.credentialProvider();this.validateResolvedCredentials(L);const A=I??await this.regionProvider(),{longDate:T,shortDate:M}=j0(E);if(U>P2)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const X=u0(M,A,O??this.service),Y=BG(w1(w),{unhoistableHeaders:G});if(L.sessionToken)Y.query[MG]=L.sessionToken;Y.query[X2]=tw,Y.query[Z2]=`${L.accessKeyId}/${X}`,Y.query[LG]=T,Y.query[z2]=U.toString(10);const Q=aw(Y,R,W);return Y.query[Y2]=IG(Q),Y.query[AG]=await this.getSignature(T,X,this.getSigningKey(L,A,M,O),this.createCanonicalRequest(Y,Q,await k0(w,this.sha256))),Y}async sign(w,$){if(typeof w==="string")return this.signString(w,$);else if(w.headers&&w.payload)return this.signEvent(w,$);else if(w.message)return this.signMessage(w,$);else return this.signRequest(w,$)}async signEvent({headers:w,payload:$},{signingDate:E=new Date,priorSignature:U,signingRegion:R,signingService:G}){const W=R??await this.regionProvider(),{shortDate:I,longDate:O}=j0(E),L=u0(I,W,G??this.service),A=await k0({headers:{},body:$},this.sha256),T=new this.sha256;T.update(w);const M=m.toHex(await T.digest()),X=[C2,O,L,U,M,A].join("\n");return this.signString(X,{signingDate:E,signingRegion:W,signingService:G})}async signMessage(w,{signingDate:$=new Date,signingRegion:E,signingService:U}){return this.signEvent({headers:this.headerFormatter.format(w.message.headers),payload:w.message.body},{signingDate:$,signingRegion:E,signingService:U,priorSignature:w.priorSignature}).then((G)=>{return{message:w.message,signature:G}})}async signString(w,{signingDate:$=new Date,signingRegion:E,signingService:U}={}){const R=await this.credentialProvider();this.validateResolvedCredentials(R);const G=E??await this.regionProvider(),{shortDate:W}=j0($),I=new this.sha256(await this.getSigningKey(R,G,W,U));return I.update(iw.toUint8Array(w)),m.toHex(await I.digest())}async signRequest(w,{signingDate:$=new Date,signableHeaders:E,unsignableHeaders:U,signingRegion:R,signingService:G}={}){const W=await this.credentialProvider();this.validateResolvedCredentials(W);const I=R??await this.regionProvider(),O=w1(w),{longDate:L,shortDate:A}=j0($),T=u0(A,I,G??this.service);if(O.headers[FG]=L,W.sessionToken)O.headers[K2]=W.sessionToken;const M=await k0(O,this.sha256);if(!_2(ew,O.headers)&&this.applyChecksum)O.headers[ew]=M;const X=aw(O,U,E),Y=await this.getSignature(L,T,this.getSigningKey(W,I,A,G),this.createCanonicalRequest(O,X,M));return O.headers[TG]=`${tw} Credential=${W.accessKeyId}/${T}, SignedHeaders=${IG(X)}, Signature=${Y}`,O}createCanonicalRequest(w,$,E){const U=Object.keys($).sort();return`${w.method}
|
|
8
|
-
${this.getCanonicalPath(w)}
|
|
9
|
-
${YG(w)}
|
|
10
|
-
${U.map((R)=>`${R}:${$[R]}`).join("\n")}
|
|
11
|
-
|
|
12
|
-
${U.join(";")}
|
|
13
|
-
${E}`}async createStringToSign(w,$,E){const U=new this.sha256;U.update(iw.toUint8Array(E));const R=await U.digest();return`${tw}
|
|
14
|
-
${w}
|
|
15
|
-
${$}
|
|
16
|
-
${m.toHex(R)}`}getCanonicalPath({path:w}){if(this.uriEscapePath){const $=[];for(let R of w.split("/")){if((R==null?void 0:R.length)===0)continue;if(R===".")continue;if(R==="..")$.pop();else $.push(R)}const E=`${(w==null?void 0:w.startsWith("/"))?"/":""}${$.join("/")}${$.length>0&&(w==null?void 0:w.endsWith("/"))?"/":""}`;return yf.escapeUri(E).replace(/%2F/g,"/")}return w}async getSignature(w,$,E,U){const R=await this.createStringToSign(w,$,U),G=new this.sha256(await E);return G.update(iw.toUint8Array(R)),m.toHex(await G.digest())}getSigningKey(w,$,E,U){return ZG(this.sha256,w,E,$,U||this.service)}validateResolvedCredentials(w){if(typeof w!=="object"||typeof w.accessKeyId!=="string"||typeof w.secretAccessKey!=="string")throw new Error("Resolved credential object is not valid")}};V(KG,"SignatureV4");var x2=KG,j0=V((f)=>{const w=y2(f).replace(/[\-:]/g,"");return{longDate:w,shortDate:w.slice(0,8)}},"formatDate"),IG=V((f)=>Object.keys(f).sort().join(";"),"getCanonicalHeaderList")});var uG=Z((X7,hG)=>{var{defineProperty:y0,getOwnPropertyDescriptor:p2,getOwnPropertyNames:d2}=Object,g2=Object.prototype.hasOwnProperty,c=(f,w)=>y0(f,"name",{value:w,configurable:!0}),s2=(f,w)=>{for(var $ in w)y0(f,$,{get:w[$],enumerable:!0})},n2=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of d2(w))if(!g2.call(f,U)&&U!==$)y0(f,U,{get:()=>w[U],enumerable:!(E=p2(w,U))||E.enumerable})}return f},r2=(f)=>n2(y0({},"__esModule",{value:!0}),f),PG={};s2(PG,{AWSSDKSigV4Signer:()=>i2,AwsSdkSigV4ASigner:()=>e2,AwsSdkSigV4Signer:()=>E1,NODE_SIGV4A_CONFIG_OPTIONS:()=>w4,resolveAWSSDKSigV4Config:()=>$4,resolveAwsSdkSigV4AConfig:()=>f4,resolveAwsSdkSigV4Config:()=>jG,validateSigningProperties:()=>U1});hG.exports=r2(PG);var l2=Ff(),o2=Ff(),VG=c((f)=>{var w,$;return o2.HttpResponse.isInstance(f)?((w=f.headers)==null?void 0:w.date)??(($=f.headers)==null?void 0:$.Date):void 0},"getDateHeader"),$1=c((f)=>new Date(Date.now()+f),"getSkewCorrectedDate"),m2=c((f,w)=>Math.abs($1(w).getTime()-f)>=300000,"isClockSkewed"),CG=c((f,w)=>{const $=Date.parse(f);if(m2($,w))return $-Date.now();return w},"getUpdatedSystemClockOffset"),vf=c((f,w)=>{if(!w)throw new Error(`Property \`${f}\` is not resolved for AWS SDK SigV4Auth`);return w},"throwSigningPropertyError"),U1=c(async(f)=>{var w,$,E;const U=vf("context",f.context),R=vf("config",f.config),G=(E=($=(w=U.endpointV2)==null?void 0:w.properties)==null?void 0:$.authSchemes)==null?void 0:E[0],I=await vf("signer",R.signer)(G),O=f==null?void 0:f.signingRegion,L=f==null?void 0:f.signingRegionSet,A=f==null?void 0:f.signingName;return{config:R,signer:I,signingRegion:O,signingRegionSet:L,signingName:A}},"validateSigningProperties"),cG=class f{async sign(w,$,E){var U;if(!l2.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const R=await U1(E),{config:G,signer:W}=R;let{signingRegion:I,signingName:O}=R;const L=E.context;if(((U=L==null?void 0:L.authSchemes)==null?void 0:U.length)??0>1){const[T,M]=L.authSchemes;if((T==null?void 0:T.name)==="sigv4a"&&(M==null?void 0:M.name)==="sigv4")I=(M==null?void 0:M.signingRegion)??I,O=(M==null?void 0:M.signingName)??O}return await W.sign(w,{signingDate:$1(G.systemClockOffset),signingRegion:I,signingService:O})}errorHandler(w){return($)=>{const E=$.ServerTime??VG($.$response);if(E){const U=vf("config",w.config),R=U.systemClockOffset;if(U.systemClockOffset=CG(E,U.systemClockOffset),U.systemClockOffset!==R&&$.$metadata)$.$metadata.clockSkewCorrected=!0}throw $}}successHandler(w,$){const E=VG(w);if(E){const U=vf("config",$.config);U.systemClockOffset=CG(E,U.systemClockOffset)}}};c(cG,"AwsSdkSigV4Signer");var E1=cG,i2=E1,t2=Ff(),bG=class f extends E1{async sign(w,$,E){var U;if(!t2.HttpRequest.isInstance(w))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:R,signer:G,signingRegion:W,signingRegionSet:I,signingName:O}=await U1(E),A=(await((U=R.sigv4aSigningRegionSet)==null?void 0:U.call(R))??I??[W]).join(",");return await G.sign(w,{signingDate:$1(R.systemClockOffset),signingRegion:A,signingService:O})}};c(bG,"AwsSdkSigV4ASigner");var e2=bG,a2=Sw(),NG=d0(),f4=c((f)=>{return f.sigv4aSigningRegionSet=a2.normalizeProvider(f.sigv4aSigningRegionSet),f},"resolveAwsSdkSigV4AConfig"),w4={environmentVariableSelector(f){if(f.AWS_SIGV4A_SIGNING_REGION_SET)return f.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((w)=>w.trim());throw new NG.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(f){if(f.sigv4a_signing_region_set)return(f.sigv4a_signing_region_set??"").split(",").map((w)=>w.trim());throw new NG.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},Uf=Sw(),SG=HG(),jG=c((f)=>{let w;if(f.credentials)w=Uf.memoizeIdentityProvider(f.credentials,Uf.isIdentityExpired,Uf.doesIdentityRequireRefresh);if(!w)if(f.credentialDefaultProvider)w=Uf.normalizeProvider(f.credentialDefaultProvider(Object.assign({},f,{parentClientConfig:f})));else w=c(async()=>{throw new Error("`credentials` is missing")},"normalizedCreds");const{signingEscapePath:$=!0,systemClockOffset:E=f.systemClockOffset||0,sha256:U}=f;let R;if(f.signer)R=Uf.normalizeProvider(f.signer);else if(f.regionInfoProvider)R=c(()=>Uf.normalizeProvider(f.region)().then(async(G)=>[await f.regionInfoProvider(G,{useFipsEndpoint:await f.useFipsEndpoint(),useDualstackEndpoint:await f.useDualstackEndpoint()})||{},G]).then(([G,W])=>{const{signingRegion:I,signingService:O}=G;f.signingRegion=f.signingRegion||I||W,f.signingName=f.signingName||O||f.serviceId;const L={...f,credentials:w,region:f.signingRegion,service:f.signingName,sha256:U,uriEscapePath:$};return new(f.signerConstructor||SG.SignatureV4)(L)}),"signer");else R=c(async(G)=>{G=Object.assign({},{name:"sigv4",signingName:f.signingName||f.defaultSigningName,signingRegion:await Uf.normalizeProvider(f.region)(),properties:{}},G);const{signingRegion:W,signingName:I}=G;f.signingRegion=f.signingRegion||W,f.signingName=f.signingName||I||f.serviceId;const O={...f,credentials:w,region:f.signingRegion,service:f.signingName,sha256:U,uriEscapePath:$};return new(f.signerConstructor||SG.SignatureV4)(O)},"signer");return{...f,systemClockOffset:E,signingEscapePath:$,credentials:w,signer:R}},"resolveAwsSdkSigV4Config"),$4=jG});var v0=Z((W4)=>{var U4=":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",kG="[: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]["+U4+"]*",E4=new RegExp("^"+kG+"$"),R4=function(f,w){const $=[];let E=w.exec(f);while(E){const U=[];U.startIndex=w.lastIndex-E[0].length;const R=E.length;for(let G=0;G<R;G++)U.push(E[G]);$.push(U),E=w.exec(f)}return $},G4=function(f){const w=E4.exec(f);return!(w===null||typeof w==="undefined")};W4.isExist=function(f){return typeof f!=="undefined"};W4.isEmptyObject=function(f){return Object.keys(f).length===0};W4.merge=function(f,w,$){if(w){const E=Object.keys(w),U=E.length;for(let R=0;R<U;R++)if($==="strict")f[E[R]]=[w[E[R]]];else f[E[R]]=w[E[R]]}};W4.getValue=function(f){if(W4.isExist(f))return f;else return""};W4.isName=G4;W4.getAllMatches=R4;W4.nameRegexp=kG});var G1=Z((q4)=>{var _G=function(f){return f===" "||f==="\t"||f==="\n"||f==="\r"},yG=function(f,w){const $=w;for(;w<f.length;w++)if(f[w]=="?"||f[w]==" "){const E=f.substr($,w-$);if(w>5&&E==="xml")return q("InvalidXml","XML declaration allowed only at the start of the document.",S(f,w));else if(f[w]=="?"&&f[w+1]==">"){w++;break}else continue}return w},vG=function(f,w){if(f.length>w+5&&f[w+1]==="-"&&f[w+2]==="-"){for(w+=3;w<f.length;w++)if(f[w]==="-"&&f[w+1]==="-"&&f[w+2]===">"){w+=2;break}}else if(f.length>w+8&&f[w+1]==="D"&&f[w+2]==="O"&&f[w+3]==="C"&&f[w+4]==="T"&&f[w+5]==="Y"&&f[w+6]==="P"&&f[w+7]==="E"){let $=1;for(w+=8;w<f.length;w++)if(f[w]==="<")$++;else if(f[w]===">"){if($--,$===0)break}}else if(f.length>w+9&&f[w+1]==="["&&f[w+2]==="C"&&f[w+3]==="D"&&f[w+4]==="A"&&f[w+5]==="T"&&f[w+6]==="A"&&f[w+7]==="["){for(w+=8;w<f.length;w++)if(f[w]==="]"&&f[w+1]==="]"&&f[w+2]===">"){w+=2;break}}return w},Y4=function(f,w){let $="",E="",U=!1;for(;w<f.length;w++){if(f[w]===X4||f[w]===Z4)if(E==="")E=f[w];else if(E!==f[w]);else E="";else if(f[w]===">"){if(E===""){U=!0;break}}$+=f[w]}if(E!=="")return!1;return{value:$,index:w,tagClosed:U}},xG=function(f,w){const $=R1.getAllMatches(f,z4),E={};for(let U=0;U<$.length;U++){if($[U][1].length===0)return q("InvalidAttr","Attribute '"+$[U][2]+"' has no space in starting.",xf($[U]));else if($[U][3]!==void 0&&$[U][4]===void 0)return q("InvalidAttr","Attribute '"+$[U][2]+"' is without value.",xf($[U]));else if($[U][3]===void 0&&!w.allowBooleanAttributes)return q("InvalidAttr","boolean attribute '"+$[U][2]+"' is not allowed.",xf($[U]));const R=$[U][2];if(!B4(R))return q("InvalidAttr","Attribute '"+R+"' is an invalid name.",xf($[U]));if(!E.hasOwnProperty(R))E[R]=1;else return q("InvalidAttr","Attribute '"+R+"' is repeated.",xf($[U]))}return!0},Q4=function(f,w){let $=/\d/;if(f[w]==="x")w++,$=/[\da-fA-F]/;for(;w<f.length;w++){if(f[w]===";")return w;if(!f[w].match($))break}return-1},J4=function(f,w){if(w++,f[w]===";")return-1;if(f[w]==="#")return w++,Q4(f,w);let $=0;for(;w<f.length;w++,$++){if(f[w].match(/\w/)&&$<20)continue;if(f[w]===";")break;return-1}return w},q=function(f,w,$){return{err:{code:f,msg:w,line:$.line||$,col:$.col}}},B4=function(f){return R1.isName(f)},K4=function(f){return R1.isName(f)},S=function(f,w){const $=f.substring(0,w).split(/\r?\n/);return{line:$.length,col:$[$.length-1].length+1}},xf=function(f){return f.startIndex+f[1].length},R1=v0(),F4={allowBooleanAttributes:!1,unpairedTags:[]};q4.validate=function(f,w){w=Object.assign({},F4,w);const $=[];let E=!1,U=!1;if(f[0]==="\uFEFF")f=f.substr(1);for(let R=0;R<f.length;R++)if(f[R]==="<"&&f[R+1]==="?"){if(R+=2,R=yG(f,R),R.err)return R}else if(f[R]==="<"){let G=R;if(R++,f[R]==="!"){R=vG(f,R);continue}else{let W=!1;if(f[R]==="/")W=!0,R++;let I="";for(;R<f.length&&f[R]!==">"&&f[R]!==" "&&f[R]!=="\t"&&f[R]!=="\n"&&f[R]!=="\r";R++)I+=f[R];if(I=I.trim(),I[I.length-1]==="/")I=I.substring(0,I.length-1),R--;if(!K4(I)){let A;if(I.trim().length===0)A="Invalid space after '<'.";else A="Tag '"+I+"' is an invalid name.";return q("InvalidTag",A,S(f,R))}const O=Y4(f,R);if(O===!1)return q("InvalidAttr","Attributes for '"+I+"' have open quote.",S(f,R));let L=O.value;if(R=O.index,L[L.length-1]==="/"){const A=R-L.length;L=L.substring(0,L.length-1);const T=xG(L,w);if(T===!0)E=!0;else return q(T.err.code,T.err.msg,S(f,A+T.err.line))}else if(W)if(!O.tagClosed)return q("InvalidTag","Closing tag '"+I+"' doesn't have proper closing.",S(f,R));else if(L.trim().length>0)return q("InvalidTag","Closing tag '"+I+"' can't have attributes or invalid starting.",S(f,G));else if($.length===0)return q("InvalidTag","Closing tag '"+I+"' has not been opened.",S(f,G));else{const A=$.pop();if(I!==A.tagName){let T=S(f,A.tagStartPos);return q("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+T.line+", col "+T.col+") instead of closing tag '"+I+"'.",S(f,G))}if($.length==0)U=!0}else{const A=xG(L,w);if(A!==!0)return q(A.err.code,A.err.msg,S(f,R-L.length+A.err.line));if(U===!0)return q("InvalidXml","Multiple possible root nodes found.",S(f,R));else if(w.unpairedTags.indexOf(I)!==-1);else $.push({tagName:I,tagStartPos:G});E=!0}for(R++;R<f.length;R++)if(f[R]==="<")if(f[R+1]==="!"){R++,R=vG(f,R);continue}else if(f[R+1]==="?"){if(R=yG(f,++R),R.err)return R}else break;else if(f[R]==="&"){const A=J4(f,R);if(A==-1)return q("InvalidChar","char '&' is not expected.",S(f,R));R=A}else if(U===!0&&!_G(f[R]))return q("InvalidXml","Extra text at the end",S(f,R));if(f[R]==="<")R--}}else{if(_G(f[R]))continue;return q("InvalidChar","char '"+f[R]+"' is not expected.",S(f,R))}if(!E)return q("InvalidXml","Start tag expected.",1);else if($.length==1)return q("InvalidTag","Unclosed tag '"+$[0].tagName+"'.",S(f,$[0].tagStartPos));else if($.length>0)return q("InvalidXml","Invalid '"+JSON.stringify($.map((R)=>R.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1});return!0};var X4='"',Z4="'",z4=new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?',"g")});var dG=Z((C4)=>{var pG={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(f,w){return w},attributeValueProcessor:function(f,w){return w},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(f,w,$){return f}},V4=function(f){return Object.assign({},pG,f)};C4.buildOptions=V4;C4.defaultOptions=pG});var nG=Z((Q7,sG)=>{class gG{constructor(f){this.tagname=f,this.child=[],this[":@"]={}}add(f,w){if(f==="__proto__")f="#__proto__";this.child.push({[f]:w})}addChild(f){if(f.tagname==="__proto__")f.tagname="#__proto__";if(f[":@"]&&Object.keys(f[":@"]).length>0)this.child.push({[f.tagname]:f.child,[":@"]:f[":@"]});else this.child.push({[f.tagname]:f.child})}}sG.exports=gG});var lG=Z((J7,rG)=>{var c4=function(f,w){const $={};if(f[w+3]==="O"&&f[w+4]==="C"&&f[w+5]==="T"&&f[w+6]==="Y"&&f[w+7]==="P"&&f[w+8]==="E"){w=w+9;let E=1,U=!1,R=!1,G="";for(;w<f.length;w++)if(f[w]==="<"&&!R){if(U&&h4(f,w)){if(w+=7,[entityName,val,w]=b4(f,w+1),val.indexOf("&")===-1)$[_4(entityName)]={regx:RegExp(`&${entityName};`,"g"),val}}else if(U&&u4(f,w))w+=8;else if(U&&k4(f,w))w+=8;else if(U&&D4(f,w))w+=9;else if(j4)R=!0;else throw new Error("Invalid DOCTYPE");E++,G=""}else if(f[w]===">"){if(R){if(f[w-1]==="-"&&f[w-2]==="-")R=!1,E--}else E--;if(E===0)break}else if(f[w]==="[")U=!0;else G+=f[w];if(E!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:$,i:w}},b4=function(f,w){let $="";for(;w<f.length&&(f[w]!=="'"&&f[w]!=='"');w++)$+=f[w];if($=$.trim(),$.indexOf(" ")!==-1)throw new Error("External entites are not supported");const E=f[w++];let U="";for(;w<f.length&&f[w]!==E;w++)U+=f[w];return[$,U,w]},j4=function(f,w){if(f[w+1]==="!"&&f[w+2]==="-"&&f[w+3]==="-")return!0;return!1},h4=function(f,w){if(f[w+1]==="!"&&f[w+2]==="E"&&f[w+3]==="N"&&f[w+4]==="T"&&f[w+5]==="I"&&f[w+6]==="T"&&f[w+7]==="Y")return!0;return!1},u4=function(f,w){if(f[w+1]==="!"&&f[w+2]==="E"&&f[w+3]==="L"&&f[w+4]==="E"&&f[w+5]==="M"&&f[w+6]==="E"&&f[w+7]==="N"&&f[w+8]==="T")return!0;return!1},k4=function(f,w){if(f[w+1]==="!"&&f[w+2]==="A"&&f[w+3]==="T"&&f[w+4]==="T"&&f[w+5]==="L"&&f[w+6]==="I"&&f[w+7]==="S"&&f[w+8]==="T")return!0;return!1},D4=function(f,w){if(f[w+1]==="!"&&f[w+2]==="N"&&f[w+3]==="O"&&f[w+4]==="T"&&f[w+5]==="A"&&f[w+6]==="T"&&f[w+7]==="I"&&f[w+8]==="O"&&f[w+9]==="N")return!0;return!1},_4=function(f){if(P4.isName(f))return f;else throw new Error(`Invalid entity name ${f}`)},P4=v0();rG.exports=c4});var mG=Z((B7,oG)=>{var p4=function(f,w={}){if(w=Object.assign({},x4,w),!f||typeof f!=="string")return f;let $=f.trim();if(w.skipLike!==void 0&&w.skipLike.test($))return f;else if(w.hex&&y4.test($))return Number.parseInt($,16);else{const E=v4.exec($);if(E){const U=E[1],R=E[2];let G=d4(E[3]);const W=E[4]||E[6];if(!w.leadingZeros&&R.length>0&&U&&$[2]!==".")return f;else if(!w.leadingZeros&&R.length>0&&!U&&$[1]!==".")return f;else{const I=Number($),O=""+I;if(O.search(/[eE]/)!==-1)if(w.eNotation)return I;else return f;else if(W)if(w.eNotation)return I;else return f;else if($.indexOf(".")!==-1)if(O==="0"&&G==="")return I;else if(O===G)return I;else if(U&&O==="-"+G)return I;else return f;if(R)if(G===O)return I;else if(U+G===O)return I;else return f;if($===O)return I;else if($===U+O)return I;return f}}else return f}},d4=function(f){if(f&&f.indexOf(".")!==-1){if(f=f.replace(/0+$/,""),f===".")f="0";else if(f[0]===".")f="0"+f;else if(f[f.length-1]===".")f=f.substr(0,f.length-1);return f}return f},y4=/^[-+]?0x[a-fA-F0-9]+$/,v4=/^([\-\+])?(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 x4={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};oG.exports=p4});var aG=Z((K7,eG)=>{var n4=function(f){const w=Object.keys(f);for(let $=0;$<w.length;$++){const E=w[$];this.lastEntities[E]={regex:new RegExp("&"+E+";","g"),val:f[E]}}},r4=function(f,w,$,E,U,R,G){if(f!==void 0){if(this.options.trimValues&&!E)f=f.trim();if(f.length>0){if(!G)f=this.replaceEntitiesValue(f);const W=this.options.tagValueProcessor(w,f,$,U,R);if(W===null||W===void 0)return f;else if(typeof W!==typeof f||W!==f)return W;else if(this.options.trimValues)return I1(f,this.options.parseTagValue,this.options.numberParseOptions);else if(f.trim()===f)return I1(f,this.options.parseTagValue,this.options.numberParseOptions);else return f}}},l4=function(f){if(this.options.removeNSPrefix){const w=f.split(":"),$=f.charAt(0)==="/"?"/":"";if(w[0]==="xmlns")return"";if(w.length===2)f=$+w[1]}return f},m4=function(f,w,$){if(!this.options.ignoreAttributes&&typeof f==="string"){const E=iG.getAllMatches(f,o4),U=E.length,R={};for(let G=0;G<U;G++){const W=this.resolveNameSpace(E[G][1]);let I=E[G][4],O=this.options.attributeNamePrefix+W;if(W.length){if(this.options.transformAttributeName)O=this.options.transformAttributeName(O);if(O==="__proto__")O="#__proto__";if(I!==void 0){if(this.options.trimValues)I=I.trim();I=this.replaceEntitiesValue(I);const L=this.options.attributeValueProcessor(W,I,w);if(L===null||L===void 0)R[O]=I;else if(typeof L!==typeof I||L!==I)R[O]=L;else R[O]=I1(I,this.options.parseAttributeValue,this.options.numberParseOptions)}else if(this.options.allowBooleanAttributes)R[O]=!0}}if(!Object.keys(R).length)return;if(this.options.attributesGroupName){const G={};return G[this.options.attributesGroupName]=R,G}return R}},t4=function(f,w,$){const E=this.options.updateTag(w.tagname,$,w[":@"]);if(E===!1);else if(typeof E==="string")w.tagname=E,f.addChild(w);else f.addChild(w)},a4=function(f,w,$,E){if(f){if(E===void 0)E=Object.keys(w.child).length===0;if(f=this.parseTextData(f,w.tagname,$,!1,w[":@"]?Object.keys(w[":@"]).length!==0:!1,E),f!==void 0&&f!=="")w.add(this.options.textNodeName,f);f=""}return f},fT=function(f,w,$){const E="*."+$;for(let U in f){const R=f[U];if(E===R||w===R)return!0}return!1},wT=function(f,w,$=">"){let E,U="";for(let R=w;R<f.length;R++){let G=f[R];if(E){if(G===E)E=""}else if(G==='"'||G==="'")E=G;else if(G===$[0])if($[1]){if(f[R+1]===$[1])return{data:U,index:R}}else return{data:U,index:R};else if(G==="\t")G=" ";U+=G}},Ef=function(f,w,$,E){const U=f.indexOf(w,$);if(U===-1)throw new Error(E);else return U+w.length-1},W1=function(f,w,$,E=">"){const U=wT(f,w+1,E);if(!U)return;let R=U.data;const G=U.index,W=R.search(/\s/);let I=R,O=!0;if(W!==-1)I=R.substring(0,W),R=R.substring(W+1).trimStart();const L=I;if($){const A=I.indexOf(":");if(A!==-1)I=I.substr(A+1),O=I!==U.data.substr(A+1)}return{tagName:I,tagExp:R,closeIndex:G,attrExpPresent:O,rawTagName:L}},$T=function(f,w,$){const E=$;let U=1;for(;$<f.length;$++)if(f[$]==="<")if(f[$+1]==="/"){const R=Ef(f,">",$,`${w} is not closed`);if(f.substring($+2,R).trim()===w){if(U--,U===0)return{tagContent:f.substring(E,$),i:R}}$=R}else if(f[$+1]==="?")$=Ef(f,"?>",$+1,"StopNode is not closed.");else if(f.substr($+1,3)==="!--")$=Ef(f,"-->",$+3,"StopNode is not closed.");else if(f.substr($+1,2)==="![")$=Ef(f,"]]>",$,"StopNode is not closed.")-2;else{const R=W1(f,$,">");if(R){if((R&&R.tagName)===w&&R.tagExp[R.tagExp.length-1]!=="/")U++;$=R.closeIndex}}},I1=function(f,w,$){if(w&&typeof f==="string"){const E=f.trim();if(E==="true")return!0;else if(E==="false")return!1;else return s4(f,$)}else if(iG.isExist(f))return f;else return""},iG=v0(),pf=nG(),g4=lG(),s4=mG();class tG{constructor(f){this.options=f,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(w,$)=>String.fromCharCode(Number.parseInt($,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(w,$)=>String.fromCharCode(Number.parseInt($,16))}},this.addExternalEntities=n4,this.parseXml=i4,this.parseTextData=r4,this.resolveNameSpace=l4,this.buildAttributesMap=m4,this.isItStopNode=fT,this.replaceEntitiesValue=e4,this.readStopNodeData=$T,this.saveTextToParentTag=a4,this.addChild=t4}}var o4=new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?',"gm"),i4=function(f){f=f.replace(/\r\n?/g,"\n");const w=new pf("!xml");let $=w,E="",U="";for(let R=0;R<f.length;R++)if(f[R]==="<")if(f[R+1]==="/"){const W=Ef(f,">",R,"Closing Tag is not closed.");let I=f.substring(R+2,W).trim();if(this.options.removeNSPrefix){const A=I.indexOf(":");if(A!==-1)I=I.substr(A+1)}if(this.options.transformTagName)I=this.options.transformTagName(I);if($)E=this.saveTextToParentTag(E,$,U);const O=U.substring(U.lastIndexOf(".")+1);if(I&&this.options.unpairedTags.indexOf(I)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${I}>`);let L=0;if(O&&this.options.unpairedTags.indexOf(O)!==-1)L=U.lastIndexOf(".",U.lastIndexOf(".")-1),this.tagsNodeStack.pop();else L=U.lastIndexOf(".");U=U.substring(0,L),$=this.tagsNodeStack.pop(),E="",R=W}else if(f[R+1]==="?"){let W=W1(f,R,!1,"?>");if(!W)throw new Error("Pi Tag is not closed.");if(E=this.saveTextToParentTag(E,$,U),this.options.ignoreDeclaration&&W.tagName==="?xml"||this.options.ignorePiTags);else{const I=new pf(W.tagName);if(I.add(this.options.textNodeName,""),W.tagName!==W.tagExp&&W.attrExpPresent)I[":@"]=this.buildAttributesMap(W.tagExp,U,W.tagName);this.addChild($,I,U)}R=W.closeIndex+1}else if(f.substr(R+1,3)==="!--"){const W=Ef(f,"-->",R+4,"Comment is not closed.");if(this.options.commentPropName){const I=f.substring(R+4,W-2);E=this.saveTextToParentTag(E,$,U),$.add(this.options.commentPropName,[{[this.options.textNodeName]:I}])}R=W}else if(f.substr(R+1,2)==="!D"){const W=g4(f,R);this.docTypeEntities=W.entities,R=W.i}else if(f.substr(R+1,2)==="!["){const W=Ef(f,"]]>",R,"CDATA is not closed.")-2,I=f.substring(R+9,W);E=this.saveTextToParentTag(E,$,U);let O=this.parseTextData(I,$.tagname,U,!0,!1,!0,!0);if(O==null)O="";if(this.options.cdataPropName)$.add(this.options.cdataPropName,[{[this.options.textNodeName]:I}]);else $.add(this.options.textNodeName,O);R=W+2}else{let W=W1(f,R,this.options.removeNSPrefix),I=W.tagName;const O=W.rawTagName;let{tagExp:L,attrExpPresent:A,closeIndex:T}=W;if(this.options.transformTagName)I=this.options.transformTagName(I);if($&&E){if($.tagname!=="!xml")E=this.saveTextToParentTag(E,$,U,!1)}const M=$;if(M&&this.options.unpairedTags.indexOf(M.tagname)!==-1)$=this.tagsNodeStack.pop(),U=U.substring(0,U.lastIndexOf("."));if(I!==w.tagname)U+=U?"."+I:I;if(this.isItStopNode(this.options.stopNodes,U,I)){let X="";if(L.length>0&&L.lastIndexOf("/")===L.length-1){if(I[I.length-1]==="/")I=I.substr(0,I.length-1),U=U.substr(0,U.length-1),L=I;else L=L.substr(0,L.length-1);R=W.closeIndex}else if(this.options.unpairedTags.indexOf(I)!==-1)R=W.closeIndex;else{const Q=this.readStopNodeData(f,O,T+1);if(!Q)throw new Error(`Unexpected end of ${O}`);R=Q.i,X=Q.tagContent}const Y=new pf(I);if(I!==L&&A)Y[":@"]=this.buildAttributesMap(L,U,I);if(X)X=this.parseTextData(X,I,U,!0,A,!0,!0);U=U.substr(0,U.lastIndexOf(".")),Y.add(this.options.textNodeName,X),this.addChild($,Y,U)}else{if(L.length>0&&L.lastIndexOf("/")===L.length-1){if(I[I.length-1]==="/")I=I.substr(0,I.length-1),U=U.substr(0,U.length-1),L=I;else L=L.substr(0,L.length-1);if(this.options.transformTagName)I=this.options.transformTagName(I);const X=new pf(I);if(I!==L&&A)X[":@"]=this.buildAttributesMap(L,U,I);this.addChild($,X,U),U=U.substr(0,U.lastIndexOf("."))}else{const X=new pf(I);if(this.tagsNodeStack.push($),I!==L&&A)X[":@"]=this.buildAttributesMap(L,U,I);this.addChild($,X,U),$=X}E="",R=T}}else E+=f[R];return w.child},e4=function(f){if(this.options.processEntities){for(let w in this.docTypeEntities){const $=this.docTypeEntities[w];f=f.replace($.regx,$.val)}for(let w in this.lastEntities){const $=this.lastEntities[w];f=f.replace($.regex,$.val)}if(this.options.htmlEntities)for(let w in this.htmlEntities){const $=this.htmlEntities[w];f=f.replace($.regex,$.val)}f=f.replace(this.ampEntity.regex,this.ampEntity.val)}return f};eG.exports=tG});var wW=Z((WT)=>{var UT=function(f,w){return fW(f,w)},fW=function(f,w,$){let E;const U={};for(let R=0;R<f.length;R++){const G=f[R],W=ET(G);let I="";if($===void 0)I=W;else I=$+"."+W;if(W===w.textNodeName)if(E===void 0)E=G[W];else E+=""+G[W];else if(W===void 0)continue;else if(G[W]){let O=fW(G[W],w,I);const L=GT(O,w);if(G[":@"])RT(O,G[":@"],I,w);else if(Object.keys(O).length===1&&O[w.textNodeName]!==void 0&&!w.alwaysCreateTextNode)O=O[w.textNodeName];else if(Object.keys(O).length===0)if(w.alwaysCreateTextNode)O[w.textNodeName]="";else O="";if(U[W]!==void 0&&U.hasOwnProperty(W)){if(!Array.isArray(U[W]))U[W]=[U[W]];U[W].push(O)}else if(w.isArray(W,I,L))U[W]=[O];else U[W]=O}}if(typeof E==="string"){if(E.length>0)U[w.textNodeName]=E}else if(E!==void 0)U[w.textNodeName]=E;return U},ET=function(f){const w=Object.keys(f);for(let $=0;$<w.length;$++){const E=w[$];if(E!==":@")return E}},RT=function(f,w,$,E){if(w){const U=Object.keys(w),R=U.length;for(let G=0;G<R;G++){const W=U[G];if(E.isArray(W,$+"."+W,!0,!0))f[W]=[w[W]];else f[W]=w[W]}}},GT=function(f,w){const{textNodeName:$}=w,E=Object.keys(f).length;if(E===0)return!0;if(E===1&&(f[$]||typeof f[$]==="boolean"||f[$]===0))return!0;return!1};WT.prettify=UT});var EW=Z((H7,UW)=>{var{buildOptions:OT}=dG(),LT=aG(),{prettify:AT}=wW(),MT=G1();class $W{constructor(f){this.externalEntities={},this.options=OT(f)}parse(f,w){if(typeof f==="string");else if(f.toString)f=f.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(w){if(w===!0)w={};const U=MT.validate(f,w);if(U!==!0)throw Error(`${U.err.msg}:${U.err.line}:${U.err.col}`)}const $=new LT(this.options);$.addExternalEntities(this.externalEntities);const E=$.parseXml(f);if(this.options.preserveOrder||E===void 0)return E;else return AT(E,this.options)}addEntity(f,w){if(w.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");else if(f.indexOf("&")!==-1||f.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");else if(w==="&")throw new Error("An entity with value '&' is not permitted");else this.externalEntities[f]=w}}UW.exports=$W});var OW=Z((V7,IW)=>{var TT=function(f,w){let $="";if(w.format&&w.indentBy.length>0)$="\n";return GW(f,w,"",$)},GW=function(f,w,$,E){let U="",R=!1;for(let G=0;G<f.length;G++){const W=f[G],I=FT(W);if(I===void 0)continue;let O="";if($.length===0)O=I;else O=`${$}.${I}`;if(I===w.textNodeName){let X=W[I];if(!XT(O,w))X=w.tagValueProcessor(I,X),X=WW(X,w);if(R)U+=E;U+=X,R=!1;continue}else if(I===w.cdataPropName){if(R)U+=E;U+=`<![CDATA[${W[I][0][w.textNodeName]}]]>`,R=!1;continue}else if(I===w.commentPropName){U+=E+`<!--${W[I][0][w.textNodeName]}-->`,R=!0;continue}else if(I[0]==="?"){const X=RW(W[":@"],w),Y=I==="?xml"?"":E;let Q=W[I][0][w.textNodeName];Q=Q.length!==0?" "+Q:"",U+=Y+`<${I}${Q}${X}?>`,R=!0;continue}let L=E;if(L!=="")L+=w.indentBy;const A=RW(W[":@"],w),T=E+`<${I}${A}`,M=GW(W[I],w,O,L);if(w.unpairedTags.indexOf(I)!==-1)if(w.suppressUnpairedNode)U+=T+">";else U+=T+"/>";else if((!M||M.length===0)&&w.suppressEmptyNode)U+=T+"/>";else if(M&&M.endsWith(">"))U+=T+`>${M}${E}</${I}>`;else{if(U+=T+">",M&&E!==""&&(M.includes("/>")||M.includes("</")))U+=E+w.indentBy+M+E;else U+=M;U+=`</${I}>`}R=!0}return U},FT=function(f){const w=Object.keys(f);for(let $=0;$<w.length;$++){const E=w[$];if(!f.hasOwnProperty(E))continue;if(E!==":@")return E}},RW=function(f,w){let $="";if(f&&!w.ignoreAttributes)for(let E in f){if(!f.hasOwnProperty(E))continue;let U=w.attributeValueProcessor(E,f[E]);if(U=WW(U,w),U===!0&&w.suppressBooleanAttributes)$+=` ${E.substr(w.attributeNamePrefix.length)}`;else $+=` ${E.substr(w.attributeNamePrefix.length)}="${U}"`}return $},XT=function(f,w){f=f.substr(0,f.length-w.textNodeName.length-1);let $=f.substr(f.lastIndexOf(".")+1);for(let E in w.stopNodes)if(w.stopNodes[E]===f||w.stopNodes[E]==="*."+$)return!0;return!1},WW=function(f,w){if(f&&f.length>0&&w.processEntities)for(let $=0;$<w.entities.length;$++){const E=w.entities[$];f=f.replace(E.regex,E.val)}return f};IW.exports=TT});var AW=Z((C7,LW)=>{var i=function(f){if(this.options=Object.assign({},YT,f),this.options.ignoreAttributes||this.options.attributesGroupName)this.isAttribute=function(){return!1};else this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=JT;if(this.processTextOrObjNode=zT,this.options.format)this.indentate=QT,this.tagEndChar=">\n",this.newLine="\n";else this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""},zT=function(f,w,$){const E=this.j2x(f,$+1);if(f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1)return this.buildTextValNode(f[this.options.textNodeName],w,E.attrStr,$);else return this.buildObjectNode(E.val,w,E.attrStr,$)},QT=function(f){return this.options.indentBy.repeat(f)},JT=function(f){if(f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName)return f.substr(this.attrPrefixLen);else return!1},ZT=OW(),YT={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(f,w){return w},attributeValueProcessor:function(f,w){return w},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("\'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};i.prototype.build=function(f){if(this.options.preserveOrder)return ZT(f,this.options);else{if(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1)f={[this.options.arrayNodeName]:f};return this.j2x(f,0).val}};i.prototype.j2x=function(f,w){let $="",E="";for(let U in f){if(!Object.prototype.hasOwnProperty.call(f,U))continue;if(typeof f[U]==="undefined"){if(this.isAttribute(U))E+=""}else if(f[U]===null)if(this.isAttribute(U))E+="";else if(U[0]==="?")E+=this.indentate(w)+"<"+U+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+U+"/"+this.tagEndChar;else if(f[U]instanceof Date)E+=this.buildTextValNode(f[U],U,"",w);else if(typeof f[U]!=="object"){const R=this.isAttribute(U);if(R)$+=this.buildAttrPairStr(R,""+f[U]);else if(U===this.options.textNodeName){let G=this.options.tagValueProcessor(U,""+f[U]);E+=this.replaceEntitiesValue(G)}else E+=this.buildTextValNode(f[U],U,"",w)}else if(Array.isArray(f[U])){const R=f[U].length;let G="",W="";for(let I=0;I<R;I++){const O=f[U][I];if(typeof O==="undefined");else if(O===null)if(U[0]==="?")E+=this.indentate(w)+"<"+U+"?"+this.tagEndChar;else E+=this.indentate(w)+"<"+U+"/"+this.tagEndChar;else if(typeof O==="object")if(this.options.oneListGroup){const L=this.j2x(O,w+1);if(G+=L.val,this.options.attributesGroupName&&O.hasOwnProperty(this.options.attributesGroupName))W+=L.attrStr}else G+=this.processTextOrObjNode(O,U,w);else if(this.options.oneListGroup){let L=this.options.tagValueProcessor(U,O);L=this.replaceEntitiesValue(L),G+=L}else G+=this.buildTextValNode(O,U,"",w)}if(this.options.oneListGroup)G=this.buildObjectNode(G,U,W,w);E+=G}else if(this.options.attributesGroupName&&U===this.options.attributesGroupName){const R=Object.keys(f[U]),G=R.length;for(let W=0;W<G;W++)$+=this.buildAttrPairStr(R[W],""+f[U][R[W]])}else E+=this.processTextOrObjNode(f[U],U,w)}return{attrStr:$,val:E}};i.prototype.buildAttrPairStr=function(f,w){if(w=this.options.attributeValueProcessor(f,""+w),w=this.replaceEntitiesValue(w),this.options.suppressBooleanAttributes&&w==="true")return" "+f;else return" "+f+'="'+w+'"'};i.prototype.buildObjectNode=function(f,w,$,E){if(f==="")if(w[0]==="?")return this.indentate(E)+"<"+w+$+"?"+this.tagEndChar;else return this.indentate(E)+"<"+w+$+this.closeTag(w)+this.tagEndChar;else{let U="</"+w+this.tagEndChar,R="";if(w[0]==="?")R="?",U="";if(($||$==="")&&f.indexOf("<")===-1)return this.indentate(E)+"<"+w+$+R+">"+f+U;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName&&R.length===0)return this.indentate(E)+`<!--${f}-->`+this.newLine;else return this.indentate(E)+"<"+w+$+R+this.tagEndChar+f+this.indentate(E)+U}};i.prototype.closeTag=function(f){let w="";if(this.options.unpairedTags.indexOf(f)!==-1){if(!this.options.suppressUnpairedNode)w="/"}else if(this.options.suppressEmptyNode)w="/";else w=`></${f}`;return w};i.prototype.buildTextValNode=function(f,w,$,E){if(this.options.cdataPropName!==!1&&w===this.options.cdataPropName)return this.indentate(E)+`<![CDATA[${f}]]>`+this.newLine;else if(this.options.commentPropName!==!1&&w===this.options.commentPropName)return this.indentate(E)+`<!--${f}-->`+this.newLine;else if(w[0]==="?")return this.indentate(E)+"<"+w+$+"?"+this.tagEndChar;else{let U=this.options.tagValueProcessor(w,f);if(U=this.replaceEntitiesValue(U),U==="")return this.indentate(E)+"<"+w+$+this.closeTag(w)+this.tagEndChar;else return this.indentate(E)+"<"+w+$+">"+U+"</"+w+this.tagEndChar}};i.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let w=0;w<this.options.entities.length;w++){const $=this.options.entities[w];f=f.replace($.regex,$.val)}return f};LW.exports=i});var TW=Z((N7,MW)=>{var BT=G1(),KT=EW(),qT=AW();MW.exports={XMLParser:KT,XMLValidator:BT,XMLBuilder:qT}});var QW=Z((S7,zW)=>{var{defineProperty:x0,getOwnPropertyDescriptor:HT,getOwnPropertyNames:VT}=Object,CT=Object.prototype.hasOwnProperty,b=(f,w)=>x0(f,"name",{value:w,configurable:!0}),NT=(f,w)=>{for(var $ in w)x0(f,$,{get:w[$],enumerable:!0})},ST=(f,w,$,E)=>{if(w&&typeof w==="object"||typeof w==="function"){for(let U of VT(w))if(!CT.call(f,U)&&U!==$)x0(f,U,{get:()=>w[U],enumerable:!(E=HT(w,U))||E.enumerable})}return f},PT=(f)=>ST(x0({},"__esModule",{value:!0}),f),FW={};NT(FW,{_toBool:()=>bT,_toNum:()=>jT,_toStr:()=>cT,awsExpectUnion:()=>uT,loadRestJsonErrorCode:()=>_T,loadRestXmlErrorCode:()=>pT,parseJsonBody:()=>ZW,parseJsonErrorBody:()=>DT,parseXmlBody:()=>YW,parseXmlErrorBody:()=>xT});zW.exports=PT(FW);var cT=b((f)=>{if(f==null)return f;if(typeof f==="number"||typeof f==="bigint"){const w=new Error(`Received number ${f} where a string was expected.`);return w.name="Warning",console.warn(w),String(f)}if(typeof f==="boolean"){const w=new Error(`Received boolean ${f} where a string was expected.`);return w.name="Warning",console.warn(w),String(f)}return f},"_toStr"),bT=b((f)=>{if(f==null)return f;if(typeof f==="string"){const w=f.toLowerCase();if(f!==""&&w!=="false"&&w!=="true"){const $=new Error(`Received string "${f}" where a boolean was expected.`);$.name="Warning",console.warn($)}return f!==""&&w!=="false"}return f},"_toBool"),jT=b((f)=>{if(f==null)return f;if(typeof f==="string"){const w=Number(f);if(w.toString()!==f){const $=new Error(`Received string "${f}" where a number was expected.`);return $.name="Warning",console.warn($),f}return w}return f},"_toNum"),hT=Mf(),uT=b((f)=>{if(f==null)return;if(typeof f==="object"&&"__type"in f)delete f.__type;return hT.expectUnion(f)},"awsExpectUnion"),kT=Mf(),XW=b((f,w)=>kT.collectBody(f,w).then(($)=>w.utf8Encoder($)),"collectBodyString"),ZW=b((f,w)=>XW(f,w).then(($)=>{if($.length)try{return JSON.parse($)}catch(E){if((E==null?void 0:E.name)==="SyntaxError")Object.defineProperty(E,"$responseBodyText",{value:$});throw E}return{}}),"parseJsonBody"),DT=b(async(f,w)=>{const $=await ZW(f,w);return $.message=$.message??$.Message,$},"parseJsonErrorBody"),_T=b((f,w)=>{const $=b((R,G)=>Object.keys(R).find((W)=>W.toLowerCase()===G.toLowerCase()),"findKey"),E=b((R)=>{let G=R;if(typeof G==="number")G=G.toString();if(G.indexOf(",")>=0)G=G.split(",")[0];if(G.indexOf(":")>=0)G=G.split(":")[0];if(G.indexOf("#")>=0)G=G.split("#")[1];return G},"sanitizeErrorCode"),U=$(f.headers,"x-amzn-errortype");if(U!==void 0)return E(f.headers[U]);if(w.code!==void 0)return E(w.code);if(w.__type!==void 0)return E(w.__type)},"loadRestJsonErrorCode"),yT=Mf(),vT=TW(),YW=b((f,w)=>XW(f,w).then(($)=>{if($.length){const E=new vT.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(I,O)=>O.trim()===""&&O.includes("\n")?"":void 0});E.addEntity("#xD","\r"),E.addEntity("#10","\n");let U;try{U=E.parse($,!0)}catch(I){if(I&&typeof I==="object")Object.defineProperty(I,"$responseBodyText",{value:$});throw I}const R="#text",G=Object.keys(U)[0],W=U[G];if(W[R])W[G]=W[R],delete W[R];return yT.getValueFromTextNode(W)}return{}}),"parseXmlBody"),xT=b(async(f,w)=>{const $=await YW(f,w);if($.Error)$.Error.message=$.Error.message??$.Error.Message;return $},"parseXmlErrorBody"),pT=b((f,w)=>{var $;if((($=w==null?void 0:w.Error)==null?void 0:$.Code)!==void 0)return w.Error.Code;if((w==null?void 0:w.Code)!==void 0)return w.Code;if(f.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var dT=Z((df)=>{Object.defineProperty(df,"__esModule",{value:!0});var O1=fG();O1.__exportStar(EG(),df);O1.__exportStar(uG(),df);O1.__exportStar(QW(),df)});function RF(f){return f}var bW=(f)=>(w)=>async($)=>{if(!j.isInstance($.request))return w($);const{request:E}=$,{handlerProtocol:U=""}=f.requestHandler.metadata||{};if(U.indexOf("h2")>=0&&!E.headers[":authority"])delete E.headers.host,E.headers[":authority"]=E.hostname+(E.port?":"+E.port:"");else if(!E.headers.host){let R=E.hostname;if(E.port!=null)R+=`:${E.port}`;E.headers.host=R}return w($)},jW={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},GF=(f)=>({applyToStack:(w)=>{w.add(bW(f),jW)}});var hW=()=>(f,w)=>async($)=>{try{const E=await f($),{clientName:U,commandName:R,logger:G,dynamoDbDocumentClientOptions:W={}}=w,{overrideInputFilterSensitiveLog:I,overrideOutputFilterSensitiveLog:O}=W,L=I??w.inputFilterSensitiveLog,A=O??w.outputFilterSensitiveLog,{$metadata:T,...M}=E.output;return G?.info?.({clientName:U,commandName:R,input:L($.input),output:A(M),metadata:T}),E}catch(E){const{clientName:U,commandName:R,logger:G,dynamoDbDocumentClientOptions:W={}}=w,{overrideInputFilterSensitiveLog:I}=W,O=I??w.inputFilterSensitiveLog;throw G?.error?.({clientName:U,commandName:R,input:O($.input),error:E,metadata:E.$metadata}),E}},uW={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},IF=(f)=>({applyToStack:(w)=>{w.add(hW(),uW)}});var F1="X-Amzn-Trace-Id",kW="AWS_LAMBDA_FUNCTION_NAME",DW="_X_AMZN_TRACE_ID",_W=(f)=>(w)=>async($)=>{const{request:E}=$;if(!j.isInstance(E)||f.runtime!=="node"||E.headers.hasOwnProperty(F1))return w($);const U=process.env[kW],R=process.env[DW],G=(W)=>typeof W==="string"&&W.length>0;if(G(U)&&G(R))E.headers[F1]=R;return w({...$,request:E})},yW={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},TF=(f)=>({applyToStack:(w)=>{w.add(_W(f),yW)}});function iF(f){return{...f,customUserAgent:typeof f.customUserAgent==="string"?[[f.customUserAgent]]:f.customUserAgent}}var YM=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}$"),uf=(f)=>YM.test(f)||f.startsWith("[")&&f.endsWith("]");var zM=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),kf=(f,w=!1)=>{if(!w)return zM.test(f);const $=f.split(".");for(let E of $)if(!kf(E))return!1;return!0};var Df={};var s="endpoints";function u(f){if(typeof f!=="object"||f==null)return f;if("ref"in f)return`\$${u(f.ref)}`;if("fn"in f)return`${f.fn}(${(f.argv||[]).map(u).join(", ")})`;return JSON.stringify(f,null,2)}class J extends Error{constructor(f){super(f);this.name="EndpointError"}}var uE=(f,w)=>f===w;var kE=(f)=>{const w=f.split("."),$=[];for(let E of w){const U=E.indexOf("[");if(U!==-1){if(E.indexOf("]")!==E.length-1)throw new J(`Path: '${f}' does not end with ']'`);const R=E.slice(U+1,-1);if(Number.isNaN(parseInt(R)))throw new J(`Invalid array index: '${R}' in path: '${f}'`);if(U!==0)$.push(E.slice(0,U));$.push(R)}else $.push(E)}return $};var M0=(f,w)=>kE(w).reduce(($,E)=>{if(typeof $!=="object")throw new J(`Index '${E}' in '${w}' not found in '${JSON.stringify(f)}'`);else if(Array.isArray($))return $[parseInt(E)];return $[E]},f);var DE=(f)=>f!=null;var _E=(f)=>!f;var T0=r(Kf(),1);var Pw={[T0.EndpointURLScheme.HTTP]:80,[T0.EndpointURLScheme.HTTPS]:443},yE=(f)=>{const w=(()=>{try{if(f instanceof URL)return f;if(typeof f==="object"&&"hostname"in f){const{hostname:T,port:M,protocol:X="",path:Y="",query:Q={}}=f,z=new URL(`${X}//${T}${M?`:${M}`:""}${Y}`);return z.search=Object.entries(Q).map(([N,P])=>`${N}=${P}`).join("&"),z}return new URL(f)}catch(T){return null}})();if(!w)return console.error(`Unable to parse ${JSON.stringify(f)} as a whatwg URL.`),null;const $=w.href,{host:E,hostname:U,pathname:R,protocol:G,search:W}=w;if(W)return null;const I=G.slice(0,-1);if(!Object.values(T0.EndpointURLScheme).includes(I))return null;const O=uf(U),L=$.includes(`${E}:${Pw[I]}`)||typeof f==="string"&&f.includes(`${E}:${Pw[I]}`),A=`${E}${L?`:${Pw[I]}`:""}`;return{scheme:I,authority:A,path:R,normalizedPath:R.endsWith("/")?R:`${R}/`,isIp:O}};var vE=(f,w)=>f===w;var xE=(f,w,$,E)=>{if(w>=$||f.length<$)return null;if(!E)return f.substring(w,$);return f.substring(f.length-$,f.length-w)};var pE=(f)=>encodeURIComponent(f).replace(/[!*'()]/g,(w)=>`%${w.charCodeAt(0).toString(16).toUpperCase()}`);var dE={booleanEquals:uE,getAttr:M0,isSet:DE,isValidHostLabel:kf,not:_E,parseURL:yE,stringEquals:vE,substring:xE,uriEncode:pE};var F0=(f,w)=>{const $=[],E={...w.endpointParams,...w.referenceRecord};let U=0;while(U<f.length){const R=f.indexOf("{",U);if(R===-1){$.push(f.slice(U));break}$.push(f.slice(U,R));const G=f.indexOf("}",R);if(G===-1){$.push(f.slice(R));break}if(f[R+1]==="{"&&f[G+1]==="}")$.push(f.slice(R+1,G)),U=G+2;const W=f.substring(R+1,G);if(W.includes("#")){const[I,O]=W.split("#");$.push(M0(E[I],O))}else $.push(E[W]);U=G+1}return $.join("")};var gE=({ref:f},w)=>{return{...w.endpointParams,...w.referenceRecord}[f]};var l=(f,w,$)=>{if(typeof f==="string")return F0(f,$);else if(f.fn)return X0(f,$);else if(f.ref)return gE(f,$);throw new J(`'${w}': ${String(f)} is not a string, function or reference.`)};var X0=({fn:f,argv:w},$)=>{const E=w.map((R)=>["boolean","number"].includes(typeof R)?R:l(R,"arg",$)),U=f.split(".");if(U[0]in Df&&U[1]!=null)return Df[U[0]][U[1]](...E);return dE[f](...E)};var sE=({assign:f,...w},$)=>{if(f&&f in $.referenceRecord)throw new J(`'${f}' is already defined in Reference Record.`);const E=X0(w,$);return $.logger?.debug?.(`${s} evaluateCondition: ${u(w)} = ${u(E)}`),{result:E===""?!0:!!E,...f!=null&&{toAssign:{name:f,value:E}}}};var Xf=(f=[],w)=>{const $={};for(let E of f){const{result:U,toAssign:R}=sE(E,{...w,referenceRecord:{...w.referenceRecord,...$}});if(!U)return{result:U};if(R)$[R.name]=R.value,w.logger?.debug?.(`${s} assign: ${R.name} := ${u(R.value)}`)}return{result:!0,referenceRecord:$}};var nE=(f,w)=>Object.entries(f).reduce(($,[E,U])=>({...$,[E]:U.map((R)=>{const G=l(R,"Header value entry",w);if(typeof G!=="string")throw new J(`Header '${E}' value '${G}' is not a string`);return G})}),{});var cw=(f,w)=>{if(Array.isArray(f))return f.map(($)=>cw($,w));switch(typeof f){case"string":return F0(f,w);case"object":if(f===null)throw new J(`Unexpected endpoint property: ${f}`);return Z0(f,w);case"boolean":return f;default:throw new J(`Unexpected endpoint property type: ${typeof f}`)}};var Z0=(f,w)=>Object.entries(f).reduce(($,[E,U])=>({...$,[E]:cw(U,w)}),{});var rE=(f,w)=>{const $=l(f,"Endpoint URL",w);if(typeof $==="string")try{return new URL($)}catch(E){throw console.error(`Failed to construct URL with ${$}`,E),E}throw new J(`Endpoint URL must be a string, got ${typeof $}`)};var lE=(f,w)=>{const{conditions:$,endpoint:E}=f,{result:U,referenceRecord:R}=Xf($,w);if(!U)return;const G={...w,referenceRecord:{...w.referenceRecord,...R}},{url:W,properties:I,headers:O}=E;return w.logger?.debug?.(`${s} Resolving endpoint from template: ${u(E)}`),{...O!=null&&{headers:nE(O,G)},...I!=null&&{properties:Z0(I,G)},url:rE(W,G)}};var oE=(f,w)=>{const{conditions:$,error:E}=f,{result:U,referenceRecord:R}=Xf($,w);if(!U)return;throw new J(l(E,"Error",{...w,referenceRecord:{...w.referenceRecord,...R}}))};var mE=(f,w)=>{const{conditions:$,rules:E}=f,{result:U,referenceRecord:R}=Xf($,w);if(!U)return;return Y0(E,{...w,referenceRecord:{...w.referenceRecord,...R}})};var Y0=(f,w)=>{for(let $ of f)if($.type==="endpoint"){const E=lE($,w);if(E)return E}else if($.type==="error")oE($,w);else if($.type==="tree"){const E=mE($,w);if(E)return E}else throw new J(`Unknown endpoint rule: ${$}`);throw new J("Rules evaluation failed")};var QM=(f,w)=>{const{endpointParams:$,logger:E}=w,{parameters:U,rules:R}=f;w.logger?.debug?.(`${s} Initial EndpointParams: ${u($)}`);const G=Object.entries(U).filter(([,O])=>O.default!=null).map(([O,L])=>[O,L.default]);if(G.length>0)for(let[O,L]of G)$[O]=$[O]??L;const W=Object.entries(U).filter(([,O])=>O.required).map(([O])=>O);for(let O of W)if($[O]==null)throw new J(`Missing required parameter: '${O}'`);const I=Y0(R,{endpointParams:$,logger:E,referenceRecord:{}});if(w.endpointParams?.Endpoint)try{const O=new URL(w.endpointParams.Endpoint),{protocol:L,port:A}=O;I.url.protocol=L,I.url.port=A}catch(O){}return w.logger?.debug?.(`${s} Resolved endpoint: ${u(I)}`),I};var bw=(f,w=!1)=>{if(w){for(let $ of f.split("."))if(!bw($))return!1;return!0}if(!kf(f))return!1;if(f.length<3||f.length>63)return!1;if(f!==f.toLowerCase())return!1;if(uf(f))return!1;return!0};var iE=(f)=>{const w=f.split(":");if(w.length<6)return null;const[$,E,U,R,G,...W]=w;if($!=="arn"||E===""||U===""||W[0]==="")return null;return{partition:E,service:U,region:R,accountId:G,resourceId:W[0].includes("/")?W[0].split("/"):W}};var tE={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 BM=tE,KM="",eE=(f)=>{const{partitions:w}=BM;for(let E of w){const{regions:U,outputs:R}=E;for(let[G,W]of Object.entries(U))if(G===f)return{...R,...W}}for(let E of w){const{regionRegex:U,outputs:R}=E;if(new RegExp(U).test(f))return{...R}}const $=w.find((E)=>E.id==="aws");if(!$)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...$.outputs}};var aE=()=>KM;var qM={isVirtualHostableS3Bucket:bw,parseArn:iE,partition:eE};Df.aws=qM;var jw="user-agent",z0="x-amz-user-agent",hw=" ",Q0="/",fR=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,wR=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,uw="-";var HM=(f)=>(w,$)=>async(E)=>{const{request:U}=E;if(!j.isInstance(U))return w(E);const{headers:R}=U,G=$?.userAgent?.map(kw)||[],W=(await f.defaultUserAgentProvider()).map(kw),I=f?.customUserAgent?.map(kw)||[],O=aE(),L=(O?[O]:[]).concat([...W,...G,...I]).join(hw),A=[...W.filter((T)=>T.startsWith("aws-sdk-")),...I].join(hw);if(f.runtime!=="browser"){if(A)R[z0]=R[z0]?`${R[jw]} ${A}`:A;R[jw]=L}else R[z0]=L;return w({...E,request:U})},kw=(f)=>{const w=f[0].split(Q0).map((G)=>G.replace(fR,uw)).join(Q0),$=f[1]?.replace(wR,uw),E=w.indexOf(Q0),U=w.substring(0,E);let R=w.substring(E+1);if(U==="api")R=R.toLowerCase();return[U,R,$].filter((G)=>G&&G.length>0).reduce((G,W,I)=>{switch(I){case 0:return W;case 1:return`${G}/${W}`;default:return`${G}#${W}`}},"")},VM={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},PZ=(f)=>({applyToStack:(w)=>{w.add(HM(f),VM)}});var J0=(f)=>typeof f==="string"&&(f.startsWith("fips-")||f.endsWith("-fips"));var Dw=(f)=>J0(f)?["fips-aws-global","aws-fips"].includes(f)?"us-east-1":f.replace(/fips-(dkr-|prod-)?|-fips/,""):f;var vZ=(f)=>{const{region:w,useFipsEndpoint:$}=f;if(!w)throw new Error("Region is missing");return{...f,region:async()=>{if(typeof w==="string")return Dw(w);const E=await w();return Dw(E)},useFipsEndpoint:async()=>{const E=typeof w==="string"?w:await w();if(J0(E))return!0;return typeof $!=="function"?Promise.resolve(!!$):$()}}};var Zf=(f,w,$)=>{if(!(w in f))return;if(f[w]==="true")return!0;if(f[w]==="false")return!1;throw new Error(`Cannot load ${$} "${w}". Expected "true" or "false", got ${f[w]}.`)};var o;(function(f){f.ENV="env",f.CONFIG="shared config entry"})(o||(o={}));var CM="AWS_USE_DUALSTACK_ENDPOINT",NM="use_dualstack_endpoint";var mZ={environmentVariableSelector:(f)=>Zf(f,CM,o.ENV),configFileSelector:(f)=>Zf(f,NM,o.CONFIG),default:!1};var SM="AWS_USE_FIPS_ENDPOINT",PM="use_fips_endpoint";var eZ={environmentVariableSelector:(f)=>Zf(f,SM,o.ENV),configFileSelector:(f)=>Zf(f,PM,o.CONFIG),default:!1};var cM=r(v(),1);var bM=r(v(),1);var $R={environmentVariableSelector:(f)=>f["AWS_REGION"],configFileSelector:(f)=>f["region"],default:()=>{throw new Error("Region is missing")}},L5={preferredFile:"credentials"};function jM(f){return(w)=>async($)=>{const E=$.request;if(j.isInstance(E)){const{body:U,headers:R}=E;if(U&&Object.keys(R).map((G)=>G.toLowerCase()).indexOf(UR)===-1)try{const G=f(U);E.headers={...E.headers,[UR]:String(G)}}catch(G){}}return w({...$,request:E})}}var UR="content-length",hM={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},_5=(f)=>({applyToStack:(w)=>{w.add(jM(f.bodyLengthChecker),hM)}});var ER=(f,w)=>($)=>async(E)=>{const{response:U}=await $(E);try{const R=await w(U,f);return{response:U,output:R}}catch(R){if(Object.defineProperty(R,"$response",{value:U}),!("$metadata"in R)){if(R.message+="\n Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.",typeof R.$responseBodyText!=="undefined"){if(R.$response)R.$response.body=R.$responseBodyText}}throw R}};var RR=(f,w)=>($,E)=>async(U)=>{const R=E.endpointV2?.url&&f.urlParser?async()=>f.urlParser(E.endpointV2.url):f.endpoint;if(!R)throw new Error("No valid endpoint provider available.");const G=await w(U.input,{...f,endpoint:R});return $({...U,request:G})};function g5(f,w,$){return{applyToStack:(E)=>{E.add(ER(f,$),uM),E.add(RR(f,w),_w)}}}var uM={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},_w={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};var TR=r(v(),1);var GR=async(f)=>{const w=f?.Bucket||"";if(typeof f.Bucket==="string")f.Bucket=w.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(vM(w)){if(f.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else if(!yM(w)||w.indexOf(".")!==-1&&!String(f.Endpoint).startsWith("http:")||w.toLowerCase()!==w||w.length<3)f.ForcePathStyle=!0;if(f.DisableMultiRegionAccessPoints)f.disableMultiRegionAccessPoints=!0,f.DisableMRAP=!0;return f},kM=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,DM=/(\d+\.){3}\d+/,_M=/\.\./;var yM=(f)=>kM.test(f)&&!DM.test(f)&&!_M.test(f),vM=(f)=>{const[w,$,E,,,U]=f.split(":"),R=w==="arn"&&f.split(":").length>=6,G=Boolean(R&&$&&E&&U);if(R&&!G)throw new Error(`Invalid ARN: ${f} was an invalid ARN.`);return G};var WR=(f,w,$)=>{const E=async()=>{const U=$[f]??$[w];if(typeof U==="function")return U();return U};if(f==="credentialScope"||w==="CredentialScope")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return U?.credentialScope??U?.CredentialScope};if(f==="accountId"||w==="AccountId")return async()=>{const U=typeof $.credentials==="function"?await $.credentials():$.credentials;return U?.accountId??U?.AccountId};if(f==="endpoint"||w==="endpoint")return async()=>{const U=await E();if(U&&typeof U==="object"){if("url"in U)return U.url.href;if("hostname"in U){const{protocol:R,hostname:G,port:W,path:I}=U;return`${R}//${G}${W?":"+W:""}${I}`}}return U};return E};var IR="AWS_ENDPOINT_URL",OR="endpoint_url",LR=(f)=>({environmentVariableSelector:(w)=>{const $=f.split(" ").map((R)=>R.toUpperCase()),E=w[[IR,...$].join("_")];if(E)return E;const U=w[IR];if(U)return U;return},configFileSelector:(w,$)=>{if($&&w.services){const U=$[["services",w.services].join(yw)];if(U){const R=f.split(" ").map((W)=>W.toLowerCase()),G=U[[R.join("_"),OR].join(yw)];if(G)return G}}const E=w[OR];if(E)return E;return},default:void 0});var AR=async(f)=>ff(LR(f))();var vw=r(G$(),1),B0=(f)=>{if(typeof f==="object"){if("url"in f)return vw.parseUrl(f.url);return f}return vw.parseUrl(f)};var MR=async(f,w,$,E)=>{if(!$.endpoint){const G=await AR($.serviceId||"");if(G)$.endpoint=()=>Promise.resolve(B0(G))}const U=await xM(f,w,$);if(typeof $.endpointProvider!=="function")throw new Error("config.endpointProvider is not set.");return $.endpointProvider(U,E)},xM=async(f,w,$)=>{const E={},U=w?.getEndpointParameterInstructions?.()||{};for(let[R,G]of Object.entries(U))switch(G.type){case"staticContextParams":E[R]=G.value;break;case"contextParams":E[R]=f[G.name];break;case"clientContextParams":case"builtInParams":E[R]=await WR(G.name,R,$)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(G))}if(Object.keys(U).length===0)Object.assign(E,$);if(String($.serviceId).toLowerCase()==="s3")await GR(E);return E};var FR=({config:f,instructions:w})=>{return($,E)=>async(U)=>{const R=await MR(U.input,{getEndpointParameterInstructions(){return w}},{...f},E);E.endpointV2=R,E.authSchemes=R.properties?.authSchemes;const G=E.authSchemes?.[0];if(G){E.signing_region=G.signingRegion,E.signing_service=G.signingName;const I=TR.getSmithyContext(E)?.selectedHttpAuthScheme?.httpAuthOption;if(I)I.signingProperties=Object.assign(I.signingProperties||{},{signing_region:G.signingRegion,signingRegion:G.signingRegion,signing_service:G.signingName,signingName:G.signingName,signingRegionSet:G.signingRegionSet},G.properties)}return $({...U})}};var pM={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:_w.name},F9=(f,w)=>({applyToStack:($)=>{$.addRelativeTo(FR({config:f,instructions:w}),pM)}});var K0=r(v(),1);var Y9=(f)=>{const w=f.tls??!0,{endpoint:$}=f,E=$!=null?async()=>B0(await K0.normalizeProvider($)()):void 0;return{...f,endpoint:E,tls:w,isCustomEndpoint:!!$,useDualstackEndpoint:K0.normalizeProvider(f.useDualstackEndpoint??!1),useFipsEndpoint:K0.normalizeProvider(f.useFipsEndpoint??!1)}};var p=r(Ww(),1),S9=p.default.v1,P9=p.default.v3,XR=p.default.v4,c9=p.default.v5,b9=p.default.NIL,j9=p.default.version,h9=p.default.validate,u9=p.default.stringify,k9=p.default.parse;var rw=r(v(),1);var y;(function(f){f.STANDARD="standard",f.ADAPTIVE="adaptive"})(y||(y={}));var wf=3,ZR=y.STANDARD;var YR=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],zR=["TimeoutError","RequestTimeout","RequestTimeoutException"],QR=[500,502,503,504],JR=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];var dM=(f)=>f.$metadata?.clockSkewCorrected,Yf=(f)=>f.$metadata?.httpStatusCode===429||YR.includes(f.name)||f.$retryable?.throttling==!0,q0=(f)=>dM(f)||zR.includes(f.name)||JR.includes(f?.code||"")||QR.includes(f.$metadata?.httpStatusCode||0),BR=(f)=>{if(f.$metadata?.httpStatusCode!==void 0){const w=f.$metadata.httpStatusCode;if(500<=w&&w<=599&&!q0(f))return!0;return!1}return!1};class H0{constructor(f){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=f?.beta??0.7,this.minCapacity=f?.minCapacity??1,this.minFillRate=f?.minFillRate??0.5,this.scaleConstant=f?.scaleConstant??0.4,this.smooth=f?.smooth??0.8;const w=this.getCurrentTimeInSeconds();this.lastThrottleTime=w,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(f){if(!this.enabled)return;if(this.refillTokenBucket(),f>this.currentCapacity){const w=(f-this.currentCapacity)/this.fillRate*1000;await new Promise(($)=>setTimeout($,w))}this.currentCapacity=this.currentCapacity-f}refillTokenBucket(){const f=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=f;return}const w=(f-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+w),this.lastTimestamp=f}updateClientSendingRate(f){let w;if(this.updateMeasuredRate(),Yf(f)){const E=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=E,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),w=this.cubicThrottle(E),this.enableTokenBucket()}else this.calculateTimeWindow(),w=this.cubicSuccess(this.getCurrentTimeInSeconds());const $=Math.min(w,2*this.measuredTxRate);this.updateTokenBucketRate($)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(f){return this.getPrecise(f*this.beta)}cubicSuccess(f){return this.getPrecise(this.scaleConstant*Math.pow(f-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(f){this.refillTokenBucket(),this.fillRate=Math.max(f,this.minFillRate),this.maxCapacity=Math.max(f,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const f=this.getCurrentTimeInSeconds(),w=Math.floor(f*2)/2;if(this.requestCount++,w>this.lastTxRateBucket){const $=this.requestCount/(w-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise($*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=w}}getPrecise(f){return parseFloat(f.toFixed(8))}}var $f=100,_f=20000,xw=500,V0=500,pw=5,dw=10,gw=1,C0="amz-sdk-invocation-id",N0="amz-sdk-request";var KR=()=>{let f=$f;return{computeNextBackoffDelay:(E)=>{return Math.floor(Math.min(_f,Math.random()*2**E*f))},setDelayBase:(E)=>{f=E}}};var sw=({retryDelay:f,retryCount:w,retryCost:$})=>{return{getRetryCount:()=>w,getRetryDelay:()=>Math.min(_f,f),getRetryCost:()=>$}};class zf{constructor(f){this.maxAttempts=f,this.mode=y.STANDARD,this.capacity=V0,this.retryBackoffStrategy=KR(),this.maxAttemptsProvider=typeof f==="function"?f:async()=>f}async acquireInitialRetryToken(f){return sw({retryDelay:$f,retryCount:0})}async refreshRetryTokenForRetry(f,w){const $=await this.getMaxAttempts();if(this.shouldRetry(f,w,$)){const E=w.errorType;this.retryBackoffStrategy.setDelayBase(E==="THROTTLING"?xw:$f);const U=this.retryBackoffStrategy.computeNextBackoffDelay(f.getRetryCount()),R=w.retryAfterHint?Math.max(w.retryAfterHint.getTime()-Date.now()||0,U):U,G=this.getCapacityCost(E);return this.capacity-=G,sw({retryDelay:R,retryCount:f.getRetryCount()+1,retryCost:G})}throw new Error("No retry token available")}recordSuccess(f){this.capacity=Math.max(V0,this.capacity+(f.getRetryCost()??gw))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(f){return console.warn(`Max attempts provider could not resolve. Using default of ${wf}`),wf}}shouldRetry(f,w,$){return f.getRetryCount()+1<$&&this.capacity>=this.getCapacityCost(w.errorType)&&this.isRetryableError(w.errorType)}getCapacityCost(f){return f==="TRANSIENT"?dw:pw}isRetryableError(f){return f==="THROTTLING"||f==="TRANSIENT"}}class nw{constructor(f,w){this.maxAttemptsProvider=f,this.mode=y.ADAPTIVE;const{rateLimiter:$}=w??{};this.rateLimiter=$??new H0,this.standardRetryStrategy=new zf(f)}async acquireInitialRetryToken(f){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(f)}async refreshRetryTokenForRetry(f,w){return this.rateLimiter.updateClientSendingRate(w),this.standardRetryStrategy.refreshRetryTokenForRetry(f,w)}recordSuccess(f){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(f)}}var qR="AWS_MAX_ATTEMPTS",HR="max_attempts",ZY={environmentVariableSelector:(f)=>{const w=f[qR];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Environment variable ${qR} mast be a number, got "${w}"`);return $},configFileSelector:(f)=>{const w=f[HR];if(!w)return;const $=parseInt(w);if(Number.isNaN($))throw new Error(`Shared config file entry ${HR} mast be a number, got "${w}"`);return $},default:wf},YY=(f)=>{const{retryStrategy:w}=f,$=rw.normalizeProvider(f.maxAttempts??wf);return{...f,maxAttempts:$,retryStrategy:async()=>{if(w)return w;if(await rw.normalizeProvider(f.retryMode)()===y.ADAPTIVE)return new nw($);return new zf($)}}},gM="AWS_RETRY_MODE",sM="retry_mode",zY={environmentVariableSelector:(f)=>f[gM],configFileSelector:(f)=>f[sM],default:ZR};import{Readable as nM} from"stream";var VR=(f)=>f?.body instanceof nM||typeof ReadableStream!=="undefined"&&f?.body instanceof ReadableStream;var lw=(f)=>{if(f instanceof Error)return f;if(f instanceof Object)return Object.assign(new Error,f);if(typeof f==="string")return new Error(f);return new Error(`AWS SDK error wrapper for ${f}`)};var rM=(f)=>(w,$)=>async(E)=>{let U=await f.retryStrategy();const R=await f.maxAttempts();if(lM(U)){U=U;let G=await U.acquireInitialRetryToken($.partition_id),W=new Error,I=0,O=0;const{request:L}=E,A=j.isInstance(L);if(A)L.headers[C0]=XR();while(!0)try{if(A)L.headers[N0]=`attempt=${I+1}; max=${R}`;const{response:T,output:M}=await w(E);return U.recordSuccess(G),M.$metadata.attempts=I+1,M.$metadata.totalRetryDelay=O,{response:T,output:M}}catch(T){const M=oM(T);if(W=lw(T),A&&VR(L))throw($.logger instanceof CR?console:$.logger)?.warn("An error was encountered in a non-retryable streaming request."),W;try{G=await U.refreshRetryTokenForRetry(G,M)}catch(Y){if(!W.$metadata)W.$metadata={};throw W.$metadata.attempts=I+1,W.$metadata.totalRetryDelay=O,W}I=G.getRetryCount();const X=G.getRetryDelay();O+=X,await new Promise((Y)=>setTimeout(Y,X))}}else{if(U=U,U?.mode)$.userAgent=[...$.userAgent||[],["cfg/retry-mode",U.mode]];return U.retry(w,E)}},lM=(f)=>typeof f.acquireInitialRetryToken!=="undefined"&&typeof f.refreshRetryTokenForRetry!=="undefined"&&typeof f.recordSuccess!=="undefined",oM=(f)=>{const w={error:f,errorType:mM(f)},$=tM(f.$response);if($)w.retryAfterHint=$;return w},mM=(f)=>{if(Yf(f))return"THROTTLING";if(q0(f))return"TRANSIENT";if(BR(f))return"SERVER_ERROR";return"CLIENT_ERROR"},iM={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},cY=(f)=>({applyToStack:(w)=>{w.add(rM(f),iM)}}),tM=(f)=>{if(!ow.isInstance(f))return;const w=Object.keys(f.headers).find((R)=>R.toLowerCase()==="retry-after");if(!w)return;const $=f.headers[w],E=Number($);if(!Number.isNaN(E))return new Date(E*1000);return new Date($)};import{platform as gT,release as sT} from"os";import{env as BW,versions as nT} from"process";var L1={isCrtAvailable:!1};var JW=()=>{if(L1.isCrtAvailable)return["md/crt-avail"];return null};var rT="AWS_SDK_UA_APP_ID",lT="sdk-ua-app-id",_7=({serviceId:f,clientVersion:w})=>{const $=[["aws-sdk-js",w],["ua","2.0"],[`os/${gT()}`,sT()],["lang/js"],["md/nodejs",`${nT.node}`]],E=JW();if(E)$.push(E);if(f)$.push([`api/${f}`,w]);if(BW.AWS_EXECUTION_ENV)$.push([`exec-env/${BW.AWS_EXECUTION_ENV}`]);const U=ff({environmentVariableSelector:(G)=>G[rT],configFileSelector:(G)=>G[lT],default:void 0})();let R=void 0;return async()=>{if(!R){const G=await U;R=G?[...$,[`app/${G}`]]:[...$]}return R}};var KW=(f)=>typeof ArrayBuffer==="function"&&f instanceof ArrayBuffer||Object.prototype.toString.call(f)==="[object ArrayBuffer]";import{Buffer as A1} from"buffer";var Rf=(f,w=0,$=f.byteLength-w)=>{if(!KW(f))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof f} (${f})`);return A1.from(f,w,$)},Bf=(f,w)=>{if(typeof f!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof f} (${f})`);return w?A1.from(f,w):A1.from(f)};var p0=(f)=>{const w=Bf(f,"utf8");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var qW=(f)=>{if(typeof f==="string")return p0(f);if(ArrayBuffer.isView(f))return new Uint8Array(f.buffer,f.byteOffset,f.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(f)};var m7=(f)=>{if(typeof f==="string")return f;if(typeof f!=="object"||typeof f.byteOffset!=="number"||typeof f.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return Rf(f.buffer,f.byteOffset,f.byteLength).toString("utf8")};import{Buffer as oT} from"buffer";import{createHash as mT,createHmac as iT} from"crypto";var HW=function(f,w){if(oT.isBuffer(f))return f;if(typeof f==="string")return Bf(f,w);if(ArrayBuffer.isView(f))return Rf(f.buffer,f.byteOffset,f.byteLength);return Rf(f)};class tT{constructor(f,w){this.algorithmIdentifier=f,this.secret=w,this.reset()}update(f,w){this.hash.update(qW(HW(f,w)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?iT(this.algorithmIdentifier,HW(this.secret)):mT(this.algorithmIdentifier)}}import{fstatSync as eT,lstatSync as aT} from"fs";var Wz=(f)=>{if(!f)return 0;if(typeof f==="string")return Buffer.byteLength(f);else if(typeof f.byteLength==="number")return f.byteLength;else if(typeof f.size==="number")return f.size;else if(typeof f.start==="number"&&typeof f.end==="number")return f.end+1-f.start;else if(typeof f.path==="string"||Buffer.isBuffer(f.path))return aT(f.path).size;else if(typeof f.fd==="number")return eT(f.fd).size;throw new Error(`Body Length computation failed for ${f}`)};var VW="AWS_EXECUTION_ENV",M1="AWS_REGION",T1="AWS_DEFAULT_REGION",CW="AWS_EC2_METADATA_DISABLED",NW=["in-region","cross-region","mobile","standard","legacy"],SW="/latest/meta-data/placement/region";var PW={environmentVariableSelector:(f)=>{return f["AWS_DEFAULTS_MODE"]},configFileSelector:(f)=>{return f["defaults_mode"]},default:"legacy"};var zz=({region:f=ff($R),defaultsMode:w=ff(PW)}={})=>cW(async()=>{const $=typeof w==="function"?await w():w;switch($?.toLowerCase()){case"auto":return fF(f);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve($?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${NW.join(", ")}, got ${$}`)}}),fF=async(f)=>{if(f){const w=typeof f==="function"?await f():f,$=await wF();if(!$)return"standard";if(w===$)return"in-region";else return"cross-region"}return"standard"},wF=async()=>{if(process.env[VW]&&(process.env[M1]||process.env[T1]))return process.env[M1]??process.env[T1];if(!process.env[CW])try{const{getInstanceMetadataEndpoint:f,httpRequest:w}=await import("./chunk-e3ef81776c8f2d28.js"),$=await f();return(await w({...$,path:SW})).toString()}catch(f){}};var Kz=(f)=>{let w=async()=>{if(f.region===void 0)throw new Error("Region is missing from runtimeConfig");const $=f.region;if(typeof $==="string")return $;return $()};return{setRegion($){w=$},region(){return w}}},qz=(f)=>{return{region:f.region()}};var UF=/^[A-Za-z0-9+/]*={0,2}$/,xz=(f)=>{if(f.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!UF.exec(f))throw new TypeError("Invalid base64 string.");const w=Bf(f,"base64");return new Uint8Array(w.buffer,w.byteOffset,w.byteLength)};var sz=(f)=>{let w;if(typeof f==="string")w=p0(f);else w=f;if(typeof w!=="object"||typeof w.byteOffset!=="number"||typeof w.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Rf(w.buffer,w.byteOffset,w.byteLength).toString("base64")};export{RF as qa,GF as ra,IF as sa,TF as ta,v as ua,KW as va,p0 as wa,qW as xa,m7 as ya,Zf as za,o as Aa,Sw as Ba,iF as Ca,Df as Da,QM as Ea,qM as Fa,PZ as Ga,mZ as Ha,eZ as Ia,$R as Ja,L5 as Ka,vZ as La,_5 as Ma,xM as Na,g5 as Oa,F9 as Pa,Y9 as Qa,ZR as Ra,XR as Sa,ZY as Ta,YY as Ua,zY as Va,cY as Wa,fG as Xa,dT as Ya,_7 as Za,tT as _a,Wz as $a,xz as ab,sz as bb,zz as cb,Kz as db,qz as eb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{y as i} from"./chunk-7ce930fe69575c87.js";import{A as Fe,B as _e,E as ee,F as Ae,J as se,K as te,M as re,N as ae,P as ie,Q as le,W as ts,X as k,aa as z,ba as Ve,ca as h,ja as He,ka as u,la as Ne,ma as pe,na as ye,oa as $e,pa as Pe,ra as c,sa as y,ua as fe} from"./chunk-9113f22a5215c639.js";import{Da as B,Ea as _,Fa as $,Ga as Ke,Ha as V,Ia as N,Ja as f,Ka as Qe,La as me,Ma as he,Na as ue,Oa as we,Pa as Xe,Qa as Ye,Sa as rs,Ta as as,Ua as Ze,Va as be,Xa as xe,Ya as je,Za as ve,_a as Te,ab as x,bb as ke,cb as Re,db as qe,eb as Ee,fb as Je,gb as Ue,wa as Le,xa as Ce,ya as Me,za as We} from"./chunk-af6b79a6ce7388ee.js";import"./chunk-a0003b7feea6fae6.js";import{ib as l,jb as ne} from"./chunk-4cb19a9e82653084.js";import"./chunk-ff086fe014985526.js";import"./chunk-d26ffb7722e6df54.js";var p=i(B(),1);var P=i(x(),1);var cs=function(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}},b=function(e){return{schemeId:"smithy.api#noAuth"}},J=async(e,s,t)=>{return{operation:_(s).operation,region:await $(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}},U=(e)=>{const s=[];switch(e.operation){case"GetRoleCredentials":{s.push(b(e));break}case"ListAccountRoles":{s.push(b(e));break}case"ListAccounts":{s.push(b(e));break}case"Logout":{s.push(b(e));break}default:s.push(cs(e))}return s},I=(e)=>{return{...P.resolveAwsSdkSigV4Config(e)}};var L=(e)=>{return{...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}},C={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};var M={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.629.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.629.0","@aws-sdk/middleware-host-header":"3.620.0","@aws-sdk/middleware-logger":"3.609.0","@aws-sdk/middleware-recursion-detection":"3.620.0","@aws-sdk/middleware-user-agent":"3.620.0","@aws-sdk/region-config-resolver":"3.614.0","@aws-sdk/types":"3.609.0","@aws-sdk/util-endpoints":"3.614.0","@aws-sdk/util-user-agent-browser":"3.609.0","@aws-sdk/util-user-agent-node":"3.614.0","@smithy/config-resolver":"^3.0.5","@smithy/core":"^2.3.2","@smithy/fetch-http-handler":"^3.2.4","@smithy/hash-node":"^3.0.3","@smithy/invalid-dependency":"^3.0.3","@smithy/middleware-content-length":"^3.0.5","@smithy/middleware-endpoint":"^3.1.0","@smithy/middleware-retry":"^3.0.14","@smithy/middleware-serde":"^3.0.3","@smithy/middleware-stack":"^3.0.3","@smithy/node-config-provider":"^3.1.4","@smithy/node-http-handler":"^3.1.4","@smithy/protocol-http":"^4.1.0","@smithy/smithy-client":"^3.1.12","@smithy/types":"^3.3.0","@smithy/url-parser":"^3.0.3","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.14","@smithy/util-defaults-mode-node":"^3.0.14","@smithy/util-endpoints":"^2.0.5","@smithy/util-middleware":"^3.0.3","@smithy/util-retry":"^3.0.3","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},engines:{node:">=16.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}};var Se=i(x(),1);var de=i(x(),1),oe=i(B(),1);var W={["required"]:!1,type:"String"},A={["required"]:!0,default:!1,type:"Boolean"},K={["ref"]:"Endpoint"},T={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseFIPS"},!0]},H={["fn"]:"booleanEquals",["argv"]:[{["ref"]:"UseDualStack"},!0]},d={},Q={["fn"]:"getAttr",["argv"]:[{["ref"]:"PartitionResult"},"supportsFIPS"]},O={["ref"]:"PartitionResult"},X={["fn"]:"booleanEquals",["argv"]:[!0,{["fn"]:"getAttr",["argv"]:[O,"supportsDualStack"]}]},Y=[T],Z=[H],j=[{["ref"]:"Region"}],ls={version:"1.0",parameters:{Region:W,UseDualStack:A,UseFIPS:A,Endpoint:W},rules:[{conditions:[{["fn"]:"isSet",["argv"]:[K]}],rules:[{conditions:Y,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:Z,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{endpoint:{url:K,properties:d,headers:d},type:"endpoint"}],type:"tree"},{conditions:[{["fn"]:"isSet",["argv"]:j}],rules:[{conditions:[{["fn"]:"aws.partition",["argv"]:j,assign:"PartitionResult"}],rules:[{conditions:[T,H],rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[!0,Q]},X],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}],type:"tree"},{conditions:Y,rules:[{conditions:[{["fn"]:"booleanEquals",["argv"]:[Q,!0]}],rules:[{conditions:[{["fn"]:"stringEquals",["argv"]:[{["fn"]:"getAttr",["argv"]:[O,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:d,headers:d},type:"endpoint"},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"FIPS is enabled but this partition does not support FIPS",type:"error"}],type:"tree"},{conditions:Z,rules:[{conditions:[X],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"},{error:"DualStack is enabled but this partition does not support DualStack",type:"error"}],type:"tree"},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:d,headers:d},type:"endpoint"}],type:"tree"}],type:"tree"},{error:"Invalid Configuration: Missing Region",type:"error"}]},G=ls;var g=(e,s={})=>{return N(G,{endpointParams:e,logger:s.logger})};V.aws=f;var ce=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??se,base64Encoder:e?.base64Encoder??ae,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??g,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??U,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new de.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new oe.NoAuthSigner}],logger:e?.logger??new ee,serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??ne,utf8Decoder:e?.utf8Decoder??te,utf8Encoder:e?.utf8Encoder??re}};var ze=(e)=>{ye(process.version);const s=Ee(e),t=()=>s().then(pe),r=ce(e);return Se.emitWarningIfUnsupportedVersion(process.version),{...r,...e,runtime:"node",defaultsMode:s,bodyLengthChecker:e?.bodyLengthChecker??qe,defaultUserAgentProvider:e?.defaultUserAgentProvider??ke({serviceId:r.serviceId,clientVersion:M.version}),maxAttempts:e?.maxAttempts??l(xe),region:e?.region??l(ue,we),requestHandler:ie.create(e?.requestHandler??t),retryMode:e?.retryMode??l({...ve,default:async()=>(await t()).retryMode||be}),sha256:e?.sha256??Re.bind(null,"sha256"),streamCollector:e?.streamCollector??le,useDualstackEndpoint:e?.useDualstackEndpoint??l(me),useFipsEndpoint:e?.useFipsEndpoint??l(he)}};var De=(e)=>{const s=e.httpAuthSchemes;let{httpAuthSchemeProvider:t,credentials:r}=e;return{setHttpAuthScheme(a){const n=s.findIndex((D)=>D.schemeId===a.schemeId);if(n===-1)s.push(a);else s.splice(n,1,a)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(a){t=a},httpAuthSchemeProvider(){return t},setCredentials(a){r=a},credentials(){return r}}},Be=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};var v=(e)=>e,Ie=(e,s)=>{const t={...v(Je(e)),...v($e(e)),...v(Fe(e)),...v(De(e))};return s.forEach((r)=>r.configure(t)),{...e,...Ue(t),...Pe(t),..._e(t),...Be(t)}};class ps extends Ae{constructor(...[e]){const s=ze(e||{}),t=L(s),r=Ke(t),a=je(r),n=Xe(a),D=Le(n),ns=Ze(D),ds=I(ns),F=Ie(ds,e?.extensions||[]);super(F);this.config=F,this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Te(this.config)),this.middlewareStack.use(Ye(this.config)),this.middlewareStack.use(Ce(this.config)),this.middlewareStack.use(Me(this.config)),this.middlewareStack.use(We(this.config)),this.middlewareStack.use(p.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:async(os)=>new p.DefaultIdentityProviderConfig({"aws.auth#sigv4":os.credentials})})),this.middlewareStack.use(p.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class o extends He{constructor(e){super(e);Object.setPrototypeOf(this,o.prototype)}}class R extends o{constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,R.prototype)}}class q extends o{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,q.prototype)}}class E extends o{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,E.prototype)}}class S extends o{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,S.prototype)}}var Oe=(e)=>({...e,...e.accessToken&&{accessToken:k}}),ys=(e)=>({...e,...e.secretAccessKey&&{secretAccessKey:k},...e.sessionToken&&{sessionToken:k}}),Ge=(e)=>({...e,...e.roleCredentials&&{roleCredentials:ys(e.roleCredentials)}});var m=i(x(),1),ge=i(B(),1);var es=async(e,s)=>{const t=ge.requestBuilder(e,s),r=c({},vs,{[zs]:e[Rs]});t.bp("/federation/credentials");const a=c({[Ss]:[,z(e[Es],"roleName")],[qs]:[,z(e[ks],"accountId")]});let n;return t.m("GET").h(r).q(a).b(n),t.build()};var ss=async(e,s)=>{if(e.statusCode!==200&&e.statusCode>=300)return ms(e,s);const t=c({$metadata:w(e)}),r=z(Ve(await m.parseJsonBody(e.body,s)),"body"),a=y(r,{roleCredentials:fe});return Object.assign(t,a),t};var ms=async(e,s)=>{const t={...e,body:await m.parseJsonErrorBody(e.body,s)},r=m.loadRestJsonErrorCode(e,t.body);switch(r){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await us(t,s);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await ws(t,s);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await bs(t,s);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await xs(t,s);default:const a=t.body;return hs({output:e,parsedBody:a,errorCode:r})}},hs=Ne(o),us=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new R({$metadata:w(e),...t});return u(n,e.body)},ws=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new q({$metadata:w(e),...t});return u(n,e.body)},bs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new E({$metadata:w(e),...t});return u(n,e.body)},xs=async(e,s)=>{const t=c({}),r=e.body,a=y(r,{message:h});Object.assign(t,a);const n=new S({$metadata:w(e),...t});return u(n,e.body)},w=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var vs=(e)=>e!==void 0&&e!==null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),ks="accountId",Rs="accessToken",qs="account_id";var Es="roleName",Ss="role_name",zs="x-amz-sso_bearer_token";class Ds extends ts.classBuilder().ep({...C}).m(function(e,s,t,r){return[rs(t,this.serialize,this.deserialize),as(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").f(Oe,Ge).ser(es).de(ss).build(){}export{ps as SSOClient,Ds as GetRoleCredentialsCommand};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"./chunk-7ce930fe69575c87.js";import{vb as E} from"./chunk-73eed146ee78f681.js";var _="AWS_ACCESS_KEY_ID",S="AWS_SECRET_ACCESS_KEY",p="AWS_SESSION_TOKEN",A="AWS_CREDENTIAL_EXPIRATION",C="AWS_CREDENTIAL_SCOPE",N="AWS_ACCOUNT_ID",a=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const o=process.env[_],r=process.env[S],n=process.env[p],s=process.env[A],t=process.env[C],c=process.env[N];if(o&&r)return{accessKeyId:o,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...t&&{credentialScope:t},...c&&{accountId:c}};throw new E("Unable to find environment variable credentials.",{logger:e?.logger})};export{a as fromEnv,p as ENV_SESSION,S as ENV_SECRET,_ as ENV_KEY,A as ENV_EXPIRATION,C as ENV_CREDENTIAL_SCOPE,N as ENV_ACCOUNT_ID};export{_ as t,S as u,a as v};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{y as z} from"./chunk-7ce930fe69575c87.js";import{lb as q} from"./chunk-c7e2acfd5087fb30.js";var C=(e,t)=>{const r=[];if(e)r.push(e);if(t)for(let n of t)r.push(n);return r},S=(e,t)=>{return`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`},A=()=>{let e=[],t=[],r=!1;const n=new Set,o=(a)=>a.sort((f,h)=>oe[h.step]-oe[f.step]||se[h.priority||"normal"]-se[f.priority||"normal"]),s=(a)=>{let f=!1;const h=(g)=>{const y=C(g.name,g.aliases);if(y.includes(a)){f=!0;for(let p of y)n.delete(p);return!1}return!0};return e=e.filter(h),t=t.filter(h),f},c=(a)=>{let f=!1;const h=(g)=>{if(g.middleware===a){f=!0;for(let y of C(g.name,g.aliases))n.delete(y);return!1}return!0};return e=e.filter(h),t=t.filter(h),f},i=(a)=>{return e.forEach((f)=>{a.add(f.middleware,{...f})}),t.forEach((f)=>{a.addRelativeTo(f.middleware,{...f})}),a.identifyOnResolve?.(w.identifyOnResolve()),a},d=(a)=>{const f=[];return a.before.forEach((h)=>{if(h.before.length===0&&h.after.length===0)f.push(h);else f.push(...d(h))}),f.push(a),a.after.reverse().forEach((h)=>{if(h.before.length===0&&h.after.length===0)f.push(h);else f.push(...d(h))}),f},l=(a=!1)=>{const f=[],h=[],g={};return e.forEach((p)=>{const u={...p,before:[],after:[]};for(let m of C(u.name,u.aliases))g[m]=u;f.push(u)}),t.forEach((p)=>{const u={...p,before:[],after:[]};for(let m of C(u.name,u.aliases))g[m]=u;h.push(u)}),h.forEach((p)=>{if(p.toMiddleware){const u=g[p.toMiddleware];if(u===void 0){if(a)return;throw new Error(`${p.toMiddleware} is not found when adding `+`${S(p.name,p.aliases)} `+`middleware ${p.relation} ${p.toMiddleware}`)}if(p.relation==="after")u.after.push(p);if(p.relation==="before")u.before.push(p)}}),o(f).map(d).reduce((p,u)=>{return p.push(...u),p},[])},w={add:(a,f={})=>{const{name:h,override:g,aliases:y}=f,p={step:"initialize",priority:"normal",middleware:a,...f},u=C(h,y);if(u.length>0){if(u.some((m)=>n.has(m))){if(!g)throw new Error(`Duplicate middleware name '${S(h,y)}'`);for(let m of u){const E=e.findIndex((P)=>P.name===m||P.aliases?.some((v)=>v===m));if(E===-1)continue;const x=e[E];if(x.step!==p.step||p.priority!==x.priority)throw new Error(`"${S(x.name,x.aliases)}" middleware with `+`${x.priority} priority in ${x.step} step cannot `+`be overridden by "${S(h,y)}" middleware with `+`${p.priority} priority in ${p.step} step.`);e.splice(E,1)}}for(let m of u)n.add(m)}e.push(p)},addRelativeTo:(a,f)=>{const{name:h,override:g,aliases:y}=f,p={middleware:a,...f},u=C(h,y);if(u.length>0){if(u.some((m)=>n.has(m))){if(!g)throw new Error(`Duplicate middleware name '${S(h,y)}'`);for(let m of u){const E=t.findIndex((P)=>P.name===m||P.aliases?.some((v)=>v===m));if(E===-1)continue;const x=t[E];if(x.toMiddleware!==p.toMiddleware||x.relation!==p.relation)throw new Error(`"${S(x.name,x.aliases)}" middleware `+`${x.relation} "${x.toMiddleware}" middleware cannot be overridden `+`by "${S(h,y)}" middleware ${p.relation} `+`"${p.toMiddleware}" middleware.`);t.splice(E,1)}}for(let m of u)n.add(m)}t.push(p)},clone:()=>i(A()),use:(a)=>{a.applyToStack(w)},remove:(a)=>{if(typeof a==="string")return s(a);else return c(a)},removeByTag:(a)=>{let f=!1;const h=(g)=>{const{tags:y,name:p,aliases:u}=g;if(y&&y.includes(a)){const m=C(p,u);for(let E of m)n.delete(E);return f=!0,!1}return!0};return e=e.filter(h),t=t.filter(h),f},concat:(a)=>{const f=i(A());return f.use(a),f.identifyOnResolve(r||f.identifyOnResolve()||(a.identifyOnResolve?.()??!1)),f},applyToStack:i,identify:()=>{return l(!0).map((a)=>{const f=a.step??a.relation+" "+a.toMiddleware;return S(a.name,a.aliases)+" - "+f})},identifyOnResolve(a){if(typeof a==="boolean")r=a;return r},resolve:(a,f)=>{for(let h of l().map((g)=>g.middleware).reverse())a=h(a,f);if(r)console.log(w.identify());return a}};return w},oe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},se={high:3,normal:2,low:1};class Ve{constructor(e){this.middlewareStack=A(),this.config=e}send(e,t,r){const n=typeof t!=="function"?t:void 0,o=typeof t==="function"?t:r,s=e.resolveMiddleware(this.middlewareStack,this.config,n);if(o)s(e).then((c)=>o(null,c.output),(c)=>o(c)).catch(()=>{});else return s(e).then((c)=>c.output)}destroy(){if(this.config.requestHandler.destroy)this.config.requestHandler.destroy()}}var ie=z(q(),1);class ce{constructor(){this.middlewareStack=A()}static classBuilder(){return new ae}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,smithyContext:d,additionalContext:l,CommandCtor:w}){for(let y of n.bind(this)(w,e,t,r))this.middlewareStack.use(y);const a=e.concat(this.middlewareStack),{logger:f}=t,h={logger:f,clientName:o,commandName:s,inputFilterSensitiveLog:c,outputFilterSensitiveLog:i,[ie.SMITHY_CONTEXT_KEY]:{commandInstance:this,...d},...l},{requestHandler:g}=t;return a.resolve((y)=>g.handle(y.request,r||{}),h)}}class ae{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=(e)=>e,this._outputFilterSensitiveLog=(e)=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=(r)=>r,t=(r)=>r){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let t;return t=class extends ce{static getEndpointParameterInstructions(){return e._ep}constructor(...[r]){super();this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=r??{},e._init(this)}resolveMiddleware(r,n,o){return this.resolveMiddlewareWithContext(r,n,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}var Jt=(e)=>{let t=e.httpHandler;return{setHttpHandler(r){t=r},httpHandler(){return t},updateHttpClientConfig(r,n){t.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},Yt=(e)=>{return{httpHandler:e.httpHandler()}};var Xe=z(q(),1);var Ze=function(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})};class W{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new W({...e,headers:{...e.headers}});if(t.query)t.query=Ze(t.query);return t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t.query==="object"&&typeof t.headers==="object"}clone(){return W.clone(this)}}class R{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}var N=(e)=>encodeURIComponent(e).replace(/[!'()*]/g,Qe),Qe=(e)=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function L(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=N(r),Array.isArray(n))for(let o=0,s=n.length;o<s;o++)t.push(`${r}=${N(n[o])}`);else{let o=r;if(n||typeof n==="string")o+=`=${N(n)}`;t.push(o)}}return t.join("&")}import{Agent as pe,request as et} from"http";import{Agent as me,request as tt} from"https";var fe=["ECONNRESET","EPIPE","ETIMEDOUT"];var j=(e)=>{const t={};for(let r of Object.keys(e)){const n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};var ue=(e,t,r=0)=>{if(!r)return;const n=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);e.on("socket",(o)=>{if(o.connecting)o.on("connect",()=>{clearTimeout(n)});else clearTimeout(n)})};var de=(e,{keepAlive:t,keepAliveMsecs:r})=>{if(t!==!0)return;e.on("socket",(n)=>{n.setKeepAlive(t,r||0)})};var le=(e,t,r=0)=>{e.setTimeout(r,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};import{Readable as Ge} from"stream";async function J(e,t,r=he){const n=t.headers??{},o=n.Expect||n.expect;let s=-1,c=!1;if(o==="100-continue")await Promise.race([new Promise((i)=>{s=Number(setTimeout(i,Math.max(he,r)))}),new Promise((i)=>{e.on("continue",()=>{clearTimeout(s),i()}),e.on("error",()=>{c=!0,clearTimeout(s),i()})})]);if(!c)Ke(e,t.body)}var Ke=function(e,t){if(t instanceof Ge){t.pipe(e);return}if(t){if(Buffer.isBuffer(t)||typeof t==="string"){e.end(t);return}const r=t;if(typeof r==="object"&&r.buffer&&typeof r.byteOffset==="number"&&typeof r.byteLength==="number"){e.end(Buffer.from(r.buffer,r.byteOffset,r.byteLength));return}e.end(Buffer.from(t));return}e.end()},he=1000;class Y{static create(e){if(typeof e?.handle==="function")return e;return new Y(e)}static checkSocketUsage(e,t,r=console){const{sockets:n,requests:o,maxSockets:s}=e;if(typeof s!=="number"||s===Infinity)return t;const c=15000;if(Date.now()-c<t)return t;if(n&&o)for(let i in n){const d=n[i]?.length??0,l=o[i]?.length??0;if(d>=s&&l>=2*s)return r?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${d} and ${l} 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 t}constructor(e){this.socketWarningTimestamp=0,this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((t,r)=>{if(typeof e==="function")e().then((n)=>{t(this.resolveDefaultConfig(n))}).catch(r);else t(this.resolveDefaultConfig(e))})}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:r,socketTimeout:n,httpAgent:o,httpsAgent:s}=e||{};return{connectionTimeout:r,requestTimeout:t??n,httpAgent:(()=>{if(o instanceof pe||typeof o?.destroy==="function")return o;return new pe({keepAlive:!0,maxSockets:50,...o})})(),httpsAgent:(()=>{if(s instanceof me||typeof s?.destroy==="function")return s;return new me({keepAlive:!0,maxSockets:50,...s})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t}={}){if(!this.config)this.config=await this.configProvider;let r;return new Promise((n,o)=>{let s=void 0;const c=async(u)=>{await s,clearTimeout(r),n(u)},i=async(u)=>{await s,clearTimeout(r),o(u)};if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(t?.aborted){const u=new Error("Request aborted");u.name="AbortError",i(u);return}const d=e.protocol==="https:",l=d?this.config.httpsAgent:this.config.httpAgent;r=setTimeout(()=>{this.socketWarningTimestamp=Y.checkSocketUsage(l,this.socketWarningTimestamp,this.config.logger)},this.config.socketAcquisitionWarningTimeout??(this.config.requestTimeout??2000)+(this.config.connectionTimeout??1000));const w=L(e.query||{});let a=void 0;if(e.username!=null||e.password!=null){const u=e.username??"",m=e.password??"";a=`${u}:${m}`}let f=e.path;if(w)f+=`?${w}`;if(e.fragment)f+=`#${e.fragment}`;const h={headers:e.headers,host:e.hostname,method:e.method,path:f,port:e.port,agent:l,auth:a},y=(d?tt:et)(h,(u)=>{const m=new R({statusCode:u.statusCode||-1,reason:u.statusMessage,headers:j(u.headers),body:u});c({response:m})});if(y.on("error",(u)=>{if(fe.includes(u.code))i(Object.assign(u,{name:"TimeoutError"}));else i(u)}),ue(y,i,this.config.connectionTimeout),le(y,i,this.config.requestTimeout),t){const u=()=>{y.destroy();const m=new Error("Request aborted");m.name="AbortError",i(m)};if(typeof t.addEventListener==="function"){const m=t;m.addEventListener("abort",u,{once:!0}),y.once("close",()=>m.removeEventListener("abort",u))}else t.onabort=u}const p=h.agent;if(typeof p==="object"&&"keepAlive"in p)de(y,{keepAlive:p.keepAlive,keepAliveMsecs:p.keepAliveMsecs});s=J(y,e,this.config.requestTimeout).catch((u)=>{return clearTimeout(r),o(u)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((r)=>{return{...r,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}import{Writable as rt} from"stream";class V extends rt{constructor(){super(...arguments);this.bufferedBytes=[]}_write(e,t,r){this.bufferedBytes.push(e),r()}}async function ot(e){const t=[],r=e.getReader();let n=!1,o=0;while(!n){const{done:i,value:d}=await r.read();if(d)t.push(d),o+=d.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of t)s.set(i,c),c+=i.length;return s}var ye=(e)=>{if(nt(e))return ot(e);return new Promise((t,r)=>{const n=new V;e.pipe(n),e.on("error",(o)=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){const o=new Uint8Array(Buffer.concat(this.bufferedBytes));t(o)})})},nt=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;var rn="***SensitiveInformation***";var on=(e,t)=>{for(let r of Object.keys(e)){const n=e[r],o=async function(c,i,d){const l=new n(c);if(typeof i==="function")this.send(l,i);else if(typeof d==="function"){if(typeof i!=="object")throw new Error(`Expected http options but got ${typeof i}`);this.send(l,i||{},d)}else return this.send(l,i)},s=(r[0].toLowerCase()+r.slice(1)).replace(/Command$/,"");t.prototype[s]=o}};class ge extends Error{constructor(e){super(e.message);Object.setPrototypeOf(this,ge.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}var we=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,o])=>{if(e[n]==null||e[n]==="")e[n]=o});const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};class st{trace(){}debug(){}info(){}warn(){}error(){}}var xe=(e)=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";import{Buffer as X} from"buffer";var I=(e,t=0,r=e.byteLength-t)=>{if(!xe(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return X.from(e,t,r)},_=(e,t)=>{if(typeof e!=="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?X.from(e,t):X.from(e)};var it=/^[A-Za-z0-9+/]*={0,2}$/,D=(e)=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!it.exec(e))throw new TypeError("Invalid base64 string.");const t=_(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};var k=(e)=>{const t=_(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};var wn=(e)=>{if(typeof e==="string")return k(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(e)};var B=(e)=>{if(typeof e==="string")return e;if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return I(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};var H=(e)=>{let t;if(typeof e==="string")t=k(e);else t=e;if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return I(t.buffer,t.byteOffset,t.byteLength).toString("base64")};function be(e,t="utf-8"){if(t==="base64")return H(e);return B(e)}function Ee(e,t){if(t==="base64")return T.mutate(D(e));return T.mutate(k(e))}class T extends Uint8Array{static fromString(e,t="utf-8"){switch(typeof e){case"string":return Ee(e,t);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,T.prototype),e}transformToString(e="utf-8"){return be(this,e)}}import{Readable as ct} from"stream";var Bn=(e,t)=>{const{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:c}=t,i=r!==void 0&&o!==void 0&&s!==void 0&&c!==void 0,d=i?c(o,e):void 0,l=new ct({read:()=>{}});return e.on("data",(w)=>{const a=n(w)||0;l.push(`${a.toString(16)}\r\n`),l.push(w),l.push("\r\n")}),e.on("end",async()=>{if(l.push("0\r\n"),i){const w=r(await d);l.push(`${s}:${w}\r\n`),l.push("\r\n")}l.push(null)}),l};import{Readable as Q} from"stream";import{TextDecoder as dt} from"util";async function at(e){const t=await ut(e),r=D(t);return new Uint8Array(r)}async function ft(e){const t=[],r=e.getReader();let n=!1,o=0;while(!n){const{done:i,value:d}=await r.read();if(d)t.push(d),o+=d.length;n=i}const s=new Uint8Array(o);let c=0;for(let i of t)s.set(i,c),c+=i.length;return s}var ut=function(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const o=n.result??"",s=o.indexOf(","),c=s>-1?s+1:o.length;t(o.substring(c))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})},Te=(e)=>{if(typeof Blob==="function"&&e instanceof Blob)return at(e);return ft(e)};function Gn(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(n in Z)t[r/2]=Z[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function Ce(e){let t="";for(let r=0;r<e.byteLength;r++)t+=Se[e[r]];return t}var Se={},Z={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1)t=`0${t}`;Se[e]=t,Z[t]=e}var $=(e)=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);var $e="The stream has already been transformed.",Ie=(e)=>{if(!Ae(e)&&!$(e)){const o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let t=!1;const r=async()=>{if(t)throw new Error($e);return t=!0,await Te(e)},n=(o)=>{if(typeof o.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 o.stream()};return Object.assign(e,{transformToByteArray:r,transformToString:async(o)=>{const s=await r();if(o==="base64")return H(s);else if(o==="hex")return Ce(s);else if(o===void 0||o==="utf8"||o==="utf-8")return B(s);else if(typeof TextDecoder==="function")return new TextDecoder(o).decode(s);else throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error($e);if(t=!0,Ae(e))return n(e);else if($(e))return e;else throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},Ae=(e)=>typeof Blob==="function"&&e instanceof Blob;var ke="The stream has already been transformed.",ho=(e)=>{if(!(e instanceof Q))try{return Ie(e)}catch(n){const o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let t=!1;const r=async()=>{if(t)throw new Error(ke);return t=!0,await ye(e)};return Object.assign(e,{transformToByteArray:r,transformToString:async(n)=>{const o=await r();if(n===void 0||Buffer.isEncoding(n))return I(o.buffer,o.byteOffset,o.byteLength).toString(n);else return new dt(n).decode(o)},transformToWebStream:()=>{if(t)throw new Error(ke);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof Q.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 t=!0,Q.toWeb(e)}})};import{PassThrough as Me} from"stream";async function Ue(e){if(typeof e.stream==="function")e=e.stream();return e.tee()}async function xo(e){if($(e))return Ue(e);const t=new Me,r=new Me;return e.pipe(t),e.pipe(r),[t,r]}import{Writable as lt} from"stream";async function Pe(e,t){let r=0;const n=[],o=e.getReader();let s=!1;while(!s){const{done:d,value:l}=await o.read();if(l)n.push(l),r+=l?.byteLength??0;if(r>=t)break;s=d}o.releaseLock();const c=new Uint8Array(Math.min(t,r));let i=0;for(let d of n){if(d.byteLength>c.byteLength-i){c.set(d.subarray(0,c.byteLength-i),i);break}else c.set(d,i);i+=d.length}return c}var $o=(e,t)=>{if($(e))return Pe(e,t);return new Promise((r,n)=>{const o=new Re;o.limit=t,e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){const s=new Uint8Array(Buffer.concat(this.buffers));r(s)})})};class Re extends lt{constructor(){super(...arguments);this.buffers=[],this.limit=Infinity,this.bytesBuffered=0}_write(e,t,r){if(this.buffers.push(e),this.bytesBuffered+=e.byteLength??0,this.bytesBuffered>=this.limit){const n=this.bytesBuffered-this.limit,o=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=o.subarray(0,o.byteLength-n),this.emit("finish")}r()}}var Oo=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return T.mutate(e);if(!e)return T.mutate(new Uint8Array);const r=t.streamCollector(e);return T.mutate(await r)};var _o=(e)=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};var ht=(e)=>{if(e===null||e===void 0)return;if(typeof e==="string"){const t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e))He.warn(Be(`Expected number but observed string: ${e}`));return t}}if(typeof e==="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)},pt=Math.ceil(340282346638528860000000000000000000000),Ne=(e)=>{const t=ht(e);if(t!==void 0&&!Number.isNaN(t)&&t!==Infinity&&t!==(-Infinity)){if(Math.abs(t)>pt)throw new TypeError(`Expected 32-bit float, got ${e}`)}return t},G=(e)=>{if(e===null||e===void 0)return;if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};var Fe=(e)=>K(e,32),Oe=(e)=>K(e,16),Le=(e)=>K(e,8),K=(e,t)=>{const r=G(e);if(r!==void 0&&mt(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},mt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},Do=(e,t)=>{if(e===null||e===void 0){if(t)throw new TypeError(`Expected a non-null value for ${t}`);throw new TypeError("Expected a non-null value")}return e},Bo=(e)=>{if(e===null||e===void 0)return;if(typeof e==="object"&&!Array.isArray(e))return e;const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},Ho=(e)=>{if(e===null||e===void 0)return;if(typeof e==="string")return e;if(["boolean","number","bigint"].includes(typeof e))return He.warn(Be(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};var _e=(e)=>{if(typeof e=="string")return Ne(F(e));return Ne(e)},yt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,F=(e)=>{const t=e.match(yt);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)};var vo=(e)=>{if(typeof e==="string")return G(F(e));return G(e)};var zo=(e)=>{if(typeof e==="string")return Fe(F(e));return Fe(e)},U=(e)=>{if(typeof e==="string")return Oe(F(e));return Oe(e)},De=(e)=>{if(typeof e==="string")return Le(F(e));return Le(e)},Be=(e)=>{return String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((t)=>!t.includes("stackTraceWarning")).join("\n")},He={warn:console.warn};function Jo(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),c=e.getUTCMinutes(),i=e.getUTCSeconds(),d=o<10?`0${o}`:`${o}`,l=s<10?`0${s}`:`${s}`,w=c<10?`0${c}`:`${c}`,a=i<10?`0${i}`:`${i}`;return`${gt[n]}, ${d} ${te[r]} ${t} ${l}:${w}:${a} GMT`}var gt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),Yo=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=wt.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,d,l]=t,w=U(M(n)),a=b(o,"month",1,12),f=b(s,"day",1,31);return O(w,a,f,{hours:c,minutes:i,seconds:d,fractionalMilliseconds:l})},xt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Vo=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=xt.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[r,n,o,s,c,i,d,l,w]=t,a=U(M(n)),f=b(o,"month",1,12),h=b(s,"day",1,31),g=O(a,f,h,{hours:c,minutes:i,seconds:d,fractionalMilliseconds:l});if(w.toUpperCase()!="Z")g.setTime(g.getTime()-Mt(w));return g},bt=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$/),Et=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$/),Tt=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})$/),Xo=(e)=>{if(e===null||e===void 0)return;if(typeof e!=="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=bt.exec(e);if(t){const[r,n,o,s,c,i,d,l]=t;return O(U(M(s)),ee(o),b(n,"day",1,31),{hours:c,minutes:i,seconds:d,fractionalMilliseconds:l})}if(t=Et.exec(e),t){const[r,n,o,s,c,i,d,l]=t;return $t(O(St(s),ee(o),b(n,"day",1,31),{hours:c,minutes:i,seconds:d,fractionalMilliseconds:l}))}if(t=Tt.exec(e),t){const[r,n,o,s,c,i,d,l]=t;return O(U(M(l)),ee(n),b(o.trimLeft(),"day",1,31),{hours:s,minutes:c,seconds:i,fractionalMilliseconds:d})}throw new TypeError("Invalid RFC-7231 date-time value")};var O=(e,t,r,n)=>{const o=t-1;return It(e,o,r),new Date(Date.UTC(e,o,r,b(n.hours,"hour",0,23),b(n.minutes,"minute",0,59),b(n.seconds,"seconds",0,60),Ut(n.fractionalMilliseconds)))},St=(e)=>{const t=(new Date()).getUTCFullYear(),r=Math.floor(t/100)*100+U(M(e));if(r<t)return r+100;return r},Ct=1576800000000,$t=(e)=>{if(e.getTime()-(new Date()).getTime()>Ct)return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()));return e},ee=(e)=>{const t=te.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},At=[31,28,31,30,31,30,31,31,30,31,30,31],It=(e,t,r)=>{let n=At[t];if(t===1&&kt(e))n=29;if(r>n)throw new TypeError(`Invalid day for ${te[t]} in ${e}: ${r}`)},kt=(e)=>{return e%4===0&&(e%100!==0||e%400===0)},b=(e,t,r,n)=>{const o=De(M(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},Ut=(e)=>{if(e===null||e===void 0)return 0;return _e("0."+e)*1000},Mt=(e)=>{const t=e[0];let r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1000},M=(e)=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0")t++;if(t===0)return e;return e.slice(t)};var Pt=({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{const o=Rt(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,c=new r({name:t?.code||t?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw we(c,t)},Go=(e)=>{return({output:t,parsedBody:r,errorCode:n})=>{Pt({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})}},Rt=(e)=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});var es=(e)=>{switch(e){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{}}};var ve=!1,rs=(e)=>{if(e&&!ve&&parseInt(e.substring(1,e.indexOf(".")))<16)ve=!0};var re=z(q(),1);var ze=(e)=>{const t=[];for(let r in re.AlgorithmId){const n=re.AlgorithmId[r];if(e[n]===void 0)continue;t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}return{_checksumAlgorithms:t,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},qe=(e)=>{const t={};return e.checksumAlgorithms().forEach((r)=>{t[r.algorithmId()]=r.checksumConstructor()}),t};var We=(e)=>{let t=e.retryStrategy;return{setRetryStrategy(r){t=r},retryStrategy(){return t}}},je=(e)=>{const t={};return t.retryStrategy=e.retryStrategy(),t};var as=(e)=>{return{...ze(e),...We(e)}};var fs=(e)=>{return{...qe(e),...je(e)}};function Nt(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}var ne=function(){const e=Object.getPrototypeOf(this).constructor,r=new(Function.bind.apply(String,[null,...arguments]));return Object.setPrototypeOf(r,e.prototype),r};ne.prototype=Object.create(String.prototype,{constructor:{value:ne,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(ne,String);function Ft(e,t,r){let n,o,s;if(typeof t==="undefined"&&typeof r==="undefined")n={},s=e;else if(n=e,typeof t==="function")return o=t,s=r,Ot(n,o,s);else s=t;for(let c of Object.keys(s)){if(!Array.isArray(s[c])){n[c]=s[c];continue}Je(n,null,s,c)}return n}var gs=(e,t)=>{const r={};for(let n in t)Je(r,e,t,n);return r},Ot=(e,t,r)=>{return Ft(e,Object.entries(r).reduce((n,[o,s])=>{if(Array.isArray(s))n[o]=s;else if(typeof s==="function")n[o]=[t,s()];else n[o]=[t,s];return n},{}))},Je=(e,t,r,n)=>{if(t!==null){let c=r[n];if(typeof c==="function")c=[,c];const[i=Lt,d=_t,l=n]=c;if(typeof i==="function"&&i(t[l])||typeof i!=="function"&&!!i)e[n]=d(t[l]);return}let[o,s]=r[n];if(typeof s==="function"){let c;const i=o===void 0&&(c=s())!=null,d=typeof o==="function"&&!!o(void 0)||typeof o!=="function"&&!!o;if(i)e[n]=c;else if(d)e[n]=s()}else{const c=o===void 0&&s!=null,i=typeof o==="function"&&!!o(s)||typeof o!=="function"&&!!o;if(c||i)e[n]=s}},Lt=(e)=>e!=null,_t=(e)=>e;var Es=(e)=>e.toISOString().replace(".000Z","Z");var Ye=(e)=>{if(e==null)return{};if(Array.isArray(e))return e.filter((t)=>t!=null).map(Ye);if(typeof e==="object"){const t={};for(let r of Object.keys(e)){if(e[r]==null)continue;t[r]=Ye(e[r])}return t}return e};export{Jt as F,Yt as G,W as H,R as I,st as J,Ve as K,xe as L,I as M,_ as N,D as O,k as P,wn as Q,B as R,H as S,Bn as T,N as U,Y as V,ye as W,Gn as X,Ce as Y,ho as Z,xo as _,$o as $,Oo as aa,ce as ba,rn as ca,on as da,_o as ea,G as fa,Fe as ga,Do as ha,Bo as ia,Ho as ja,vo as ka,zo as la,Jo as ma,Yo as na,Vo as oa,Xo as pa,ge as qa,we as ra,Go as sa,es as ta,rs as ua,as as va,fs as wa,Nt as xa,Ft as ya,gs as za,Es as Aa,Ye as Ba};
|