diff --git a/.cargo/audit.toml b/.cargo/audit.toml index 26afb724..d971b765 100644 --- a/.cargo/audit.toml +++ b/.cargo/audit.toml @@ -3,4 +3,5 @@ [advisories] # Ignore the following advisory IDs. # Reported vulnerabilities relate to test-tube which is only used for testing. -ignore = ["RUSTSEC-2024-0003", "RUSTSEC-2024-0006", "RUSTSEC-2024-0019", "RUSTSEC-2024-0332", "RUSTSEC-2024-0336"] \ No newline at end of file +# RUSTSEC-2024-0344 - no newer dependency fixing the issue in cosmwasm +ignore = ["RUSTSEC-2024-0003", "RUSTSEC-2024-0006", "RUSTSEC-2024-0019", "RUSTSEC-2024-0332", "RUSTSEC-2024-0336", "RUSTSEC-2024-0344"] \ No newline at end of file diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml index 462f97f9..234704de 100644 --- a/.github/workflows/scripts.yml +++ b/.github/workflows/scripts.yml @@ -58,7 +58,3 @@ jobs: - name: Check build run: yarn build - - - name: Check react health example builds - working-directory: ./scripts/health/example-react - run: yarn install && yarn build diff --git a/Cargo.lock b/Cargo.lock index 3027a5ae..da247d31 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,9 +39,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.80" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "apollo-cw-asset" @@ -49,6 +49,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "423502406a307052f6877030f48b5fb4e9fb338fc5e7c8ca1064210def52876b" dependencies = [ + "astroport 2.9.0", "cosmwasm-std", "cw-storage-plus 1.2.0", "cw20 1.1.2", @@ -122,7 +123,7 @@ version = "3.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c001a7f97db88ffe6fc6cca97bbdbfe926e55599184921ff7e72cd47559440de" dependencies = [ - "astroport-circular-buffer", + "astroport-circular-buffer 0.1.0", "cosmwasm-schema", "cosmwasm-std", "cw-asset", @@ -134,6 +135,25 @@ dependencies = [ "uint", ] +[[package]] +name = "astroport" +version = "5.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c4af74ada17a13fe7b75d0d529367eb5dcb15e06fd7e744892191856eedc742" +dependencies = [ + "astroport-circular-buffer 0.2.0", + "cosmos-sdk-proto 0.19.0", + "cosmwasm-schema", + "cosmwasm-std", + "cw-asset", + "cw-storage-plus 1.2.0", + "cw-utils 1.0.3", + "cw20 1.1.2", + "itertools 0.12.1", + "prost 0.11.9", + "uint", +] + [[package]] name = "astroport-circular-buffer" version = "0.1.0" @@ -146,6 +166,18 @@ dependencies = [ "thiserror", ] +[[package]] +name = "astroport-circular-buffer" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31c7369d3c4126804f861620db2221c15b5fa7b7718f12180e265b087c933fb6" +dependencies = [ + "cosmwasm-schema", + "cosmwasm-std", + "cw-storage-plus 0.15.1", + "thiserror", +] + [[package]] name = "astroport-factory" version = "1.5.1" @@ -456,6 +488,12 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445" +[[package]] +name = "bech32" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d" + [[package]] name = "bindgen" version = "0.69.4" @@ -716,15 +754,26 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" +[[package]] +name = "cosmos-sdk-proto" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73c9d2043a9e617b0d602fbc0a0ecd621568edbf3a9774890a6d562389bd8e1c" +dependencies = [ + "prost 0.11.9", + "prost-types 0.11.9", + "tendermint-proto 0.32.2", +] + [[package]] name = "cosmos-sdk-proto" version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32560304ab4c365791fd307282f76637213d8083c1a98490c35159cd67852237" dependencies = [ - "prost 0.12.3", + "prost 0.12.6", "prost-types 0.12.3", - "tendermint-proto", + "tendermint-proto 0.34.1", ] [[package]] @@ -734,7 +783,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47126f5364df9387b9d8559dcef62e99010e1d4098f39eb3f7ee4b5c254e40ea" dependencies = [ "bip32", - "cosmos-sdk-proto", + "cosmos-sdk-proto 0.20.0", "ecdsa 0.16.8", "eyre", "k256 0.13.1", @@ -802,7 +851,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78c1556156fdf892a55cced6115968b961eaaadd6f724a2c2cb7d1e168e32dd3" dependencies = [ "base64 0.21.7", - "bech32", + "bech32 0.9.1", "bnum", "cosmwasm-crypto", "cosmwasm-derive", @@ -974,7 +1023,7 @@ dependencies = [ "osmosis-std 0.22.0", "osmosis-test-tube", "paste", - "prost 0.12.3", + "prost 0.12.6", "regex", "serde", "strum 0.24.1", @@ -989,13 +1038,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67fff029689ae89127cf6d7655809a68d712f3edbdb9686c70b018ba438b26ca" dependencies = [ "anyhow", - "bech32", + "bech32 0.9.1", "cosmwasm-std", "cw-storage-plus 1.2.0", "cw-utils 1.0.3", "derivative", "itertools 0.12.1", - "prost 0.12.3", + "prost 0.12.6", "schemars", "serde", "sha2 0.10.8", @@ -1959,6 +2008,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.9" @@ -2081,6 +2139,7 @@ dependencies = [ "mars-owner 2.0.0", "mars-rover", "mars-types", + "proptest", "serde_json", "thiserror", ] @@ -2089,7 +2148,7 @@ dependencies = [ name = "mars-address-provider" version = "2.0.0" dependencies = [ - "bech32", + "bech32 0.11.0", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 1.2.0", @@ -2116,10 +2175,11 @@ dependencies = [ "cw2 1.1.2", "cw721 0.18.0", "cw721-base 0.18.0", - "itertools 0.12.1", + "itertools 0.13.0", "mars-account-nft", "mars-address-provider", "mars-liquidation", + "mars-mock-astroport-incentives", "mars-mock-incentives", "mars-mock-oracle", "mars-mock-red-bank", @@ -2128,8 +2188,10 @@ dependencies = [ "mars-params", "mars-rover-health", "mars-swapper-mock", + "mars-testing", "mars-types", "mars-utils 2.0.0", + "mars-vault", "mars-zapper-mock", "test-case", "thiserror", @@ -2158,8 +2220,11 @@ dependencies = [ name = "mars-incentives" version = "2.0.0" dependencies = [ + "astroport 5.2.0", "cosmwasm-schema", "cosmwasm-std", + "cw-it", + "cw-paginate", "cw-storage-plus 1.2.0", "cw2 1.1.2", "mars-owner 2.0.0", @@ -2178,6 +2243,7 @@ name = "mars-integration-tests" version = "2.0.0" dependencies = [ "anyhow", + "astroport 5.2.0", "cosmwasm-std", "cw-it", "cw-multi-test", @@ -2202,10 +2268,8 @@ dependencies = [ name = "mars-interest-rate" version = "2.0.0" dependencies = [ - "cosmwasm-schema", "cosmwasm-std", "mars-types", - "mars-utils 2.0.0", ] [[package]] @@ -2219,9 +2283,10 @@ dependencies = [ ] [[package]] -name = "mars-mock-credit-manager" +name = "mars-mock-astroport-incentives" version = "2.0.0" dependencies = [ + "astroport 5.2.0", "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 1.2.0", @@ -2231,7 +2296,7 @@ dependencies = [ ] [[package]] -name = "mars-mock-incentives" +name = "mars-mock-credit-manager" version = "2.0.0" dependencies = [ "cosmwasm-schema", @@ -2240,6 +2305,16 @@ dependencies = [ "mars-types", ] +[[package]] +name = "mars-mock-incentives" +version = "2.0.0" +dependencies = [ + "cosmwasm-std", + "cw-paginate", + "cw-storage-plus 1.2.0", + "mars-types", +] + [[package]] name = "mars-mock-oracle" version = "2.0.0" @@ -2254,7 +2329,6 @@ dependencies = [ name = "mars-mock-pyth" version = "2.0.0" dependencies = [ - "cosmwasm-schema", "cosmwasm-std", "pyth-sdk-cw", ] @@ -2339,6 +2413,7 @@ name = "mars-oracle-wasm" version = "2.0.0" dependencies = [ "astroport 2.9.0", + "astroport 5.2.0", "cosmwasm-schema", "cosmwasm-std", "cw-it", @@ -2361,7 +2436,7 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "osmosis-std 0.22.0", - "prost 0.12.3", + "prost 0.12.6", "serde", ] @@ -2396,6 +2471,7 @@ name = "mars-params" version = "2.0.1" dependencies = [ "anyhow", + "astroport 5.2.0", "cosmwasm-schema", "cosmwasm-std", "cw-multi-test", @@ -2482,6 +2558,7 @@ dependencies = [ "cosmwasm-std", "cw2 1.1.2", "mars-rewards-collector-base", + "mars-testing", "mars-types", "neutron-sdk", ] @@ -2543,7 +2620,6 @@ dependencies = [ "mars-params", "mars-rover-health-computer", "mars-types", - "thiserror", ] [[package]] @@ -2553,11 +2629,9 @@ dependencies = [ "console_error_panic_hook", "cosmwasm-schema", "cosmwasm-std", - "cw-vault-standard 0.4.0", "mars-types", "proptest", "schemars", - "serde", "serde_json", "tsify", "wasm-bindgen", @@ -2570,6 +2644,7 @@ version = "2.0.0" dependencies = [ "anyhow", "astroport 2.9.0", + "astroport 5.2.0", "cosmwasm-schema", "cosmwasm-std", "cw-it", @@ -2632,33 +2707,51 @@ version = "2.0.0" dependencies = [ "anyhow", "astroport 2.9.0", + "astroport 5.2.0", "cosmwasm-schema", "cosmwasm-std", "cw-it", "cw-multi-test", + "cw-paginate", + "cw-utils 1.0.3", + "cw-vault-standard 0.4.0", + "cw721 0.18.0", + "cw721-base 0.18.0", "ica-oracle", + "mars-account-nft", "mars-address-provider", + "mars-credit-manager", "mars-incentives", + "mars-mock-astroport-incentives", + "mars-mock-incentives", + "mars-mock-oracle", "mars-mock-pyth", + "mars-mock-red-bank", + "mars-mock-vault", "mars-oracle-osmosis", "mars-oracle-wasm", - "mars-osmosis", "mars-owner 2.0.0", "mars-params", "mars-red-bank", "mars-rewards-collector-osmosis", + "mars-rover-health", "mars-swapper-astroport", + "mars-swapper-mock", "mars-types", + "mars-vault", + "mars-zapper-mock", "osmosis-std 0.22.0", - "prost 0.12.3", + "prost 0.12.6", "pyth-sdk-cw", + "regex", + "schemars", + "serde", ] [[package]] name = "mars-types" version = "2.0.0" dependencies = [ - "astroport 2.9.0", "cosmwasm-schema", "cosmwasm-std", "cw-paginate", @@ -2667,14 +2760,10 @@ dependencies = [ "cw-vault-standard 0.4.0", "cw721 0.18.0", "cw721-base 0.18.0", - "mars-osmosis", "mars-owner 2.0.0", "mars-utils 2.0.0", - "osmosis-std 0.22.0", - "schemars", - "serde", "serde-json-wasm 1.0.1", - "strum 0.26.1", + "strum 0.26.2", "thiserror", "tsify", "wasm-bindgen", @@ -2709,6 +2798,48 @@ dependencies = [ "thiserror", ] +[[package]] +name = "mars-vault" +version = "2.0.0" +dependencies = [ + "anyhow", + "cosmwasm-schema", + "cosmwasm-std", + "cw-multi-test", + "cw-paginate", + "cw-storage-plus 1.2.0", + "cw-utils 1.0.3", + "cw-vault-standard 0.4.0", + "cw2 1.1.2", + "mars-mock-oracle", + "mars-owner 2.0.0", + "mars-testing", + "mars-types", + "mars-utils 2.0.0", + "osmosis-std 0.22.0", + "test-case", + "thiserror", +] + +[[package]] +name = "mars-zapper-astroport" +version = "2.0.0" +dependencies = [ + "anyhow", + "apollo-cw-asset", + "apollo-utils", + "astroport 5.2.0", + "cosmwasm-std", + "cw-dex", + "cw-it", + "cw2 1.1.2", + "mars-oracle-wasm", + "mars-testing", + "mars-types", + "mars-zapper-base", + "test-case", +] + [[package]] name = "mars-zapper-base" version = "2.0.0" @@ -2790,22 +2921,23 @@ dependencies = [ [[package]] name = "neutron-sdk" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46f60e477bd71007d9ff78ae020ec1c6b3b47798578af6151429434d86472efc" +checksum = "26fb513aae0c82b3185228e96664d8312e79c3aa763f6ebdc70cf4b8d513d533" dependencies = [ - "bech32", - "cosmos-sdk-proto", + "bech32 0.9.1", + "cosmos-sdk-proto 0.20.0", "cosmwasm-schema", "cosmwasm-std", - "prost 0.12.3", + "prost 0.12.6", "prost-types 0.12.3", "protobuf 3.3.0", "schemars", "serde", "serde-json-wasm 1.0.1", + "serde_json", "speedate", - "tendermint-proto", + "tendermint-proto 0.34.1", "thiserror", ] @@ -2921,7 +3053,7 @@ dependencies = [ "chrono", "cosmwasm-std", "osmosis-std-derive 0.20.1", - "prost 0.12.3", + "prost 0.12.6", "prost-types 0.12.3", "schemars", "serde", @@ -2965,7 +3097,7 @@ dependencies = [ "cosmrs", "cosmwasm-std", "osmosis-std 0.22.0", - "prost 0.12.3", + "prost 0.12.6", "serde", "serde_json", "test-tube", @@ -3214,12 +3346,12 @@ dependencies = [ [[package]] name = "prost" -version = "0.12.3" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "146c289cda302b98a28d40c8b3b90498d6e526dd24ac2ecea73e4e491685b94a" +checksum = "deb1435c188b76130da55f17a466d252ff7b1418b2ad3e037d127b94e3411f29" dependencies = [ "bytes", - "prost-derive 0.12.3", + "prost-derive 0.12.6", ] [[package]] @@ -3250,12 +3382,12 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.12.3" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb6c9a1dd1def8e2124d17e83a20af56f1570d6c2d2bd9e266ccb768df3840e" +checksum = "81bddcdb20abf9501610992b6759a4c888aef7d1a7247ef75e2404275ac24af1" dependencies = [ "anyhow", - "itertools 0.11.0", + "itertools 0.12.1", "proc-macro2", "quote", "syn 2.0.50", @@ -3276,7 +3408,7 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "193898f59edcf43c26227dcd4c8427f00d99d61e95dcde58dabd49fa291d470e" dependencies = [ - "prost 0.12.3", + "prost 0.12.6", ] [[package]] @@ -3404,9 +3536,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.0" +version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d119d7c7ca818f8a53c300863d4f87566aac09943aef5b355bb83969dae75d87" +checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" dependencies = [ "aho-corasick", "memchr", @@ -3416,9 +3548,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.1" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "465c6fc0621e4abc4187a2bda0937bfd4f722c2730b29562e19689ea796c9a4b" +checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" dependencies = [ "aho-corasick", "memchr", @@ -3427,9 +3559,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.0" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3cbb081b9784b07cceb8824c8583f86db4814d172ab043f3c23f7dc600bf83d" +checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" [[package]] name = "reqwest" @@ -3650,9 +3782,9 @@ dependencies = [ [[package]] name = "schemars" -version = "0.8.16" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45a28f4c49489add4ce10783f7911893516f15afe45d015608d41faca6bc4d29" +checksum = "09c024468a378b7e36765cd36702b7a90cc3cba11654f6685c8f233408e89e92" dependencies = [ "dyn-clone", "schemars_derive", @@ -3662,14 +3794,14 @@ dependencies = [ [[package]] name = "schemars_derive" -version = "0.8.16" +version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c767fd6fa65d9ccf9cf026122c1b555f2ef9a4f0cea69da4d7dbc3e258d30967" +checksum = "b1eee588578aff73f856ab961cd2f79e36bc45d7ded33a7562adba4667aecc0e" dependencies = [ "proc-macro2", "quote", - "serde_derive_internals 0.26.0", - "syn 1.0.109", + "serde_derive_internals 0.29.1", + "syn 2.0.50", ] [[package]] @@ -3741,9 +3873,9 @@ checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" [[package]] name = "serde" -version = "1.0.197" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" +checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" dependencies = [ "serde_derive", ] @@ -3786,9 +3918,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.197" +version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" +checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ "proc-macro2", "quote", @@ -3797,20 +3929,20 @@ dependencies = [ [[package]] name = "serde_derive_internals" -version = "0.26.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85bf8229e7920a9f636479437026331ce11aa132b4dde37d121944a44d6e5f3c" +checksum = "e578a843d40b4189a4d66bba51d7684f57da5bd7c304c64e14bd63efbef49509" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.50", ] [[package]] name = "serde_derive_internals" -version = "0.28.0" +version = "0.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e578a843d40b4189a4d66bba51d7684f57da5bd7c304c64e14bd63efbef49509" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", @@ -3819,9 +3951,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.114" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" +checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ "itoa", "ryu", @@ -4013,9 +4145,9 @@ dependencies = [ [[package]] name = "strum" -version = "0.26.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "723b93e8addf9aa965ebe2d11da6d7540fa2283fcea14b3371ff055f7ba13f5f" +checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29" dependencies = [ "strum_macros 0.26.1", ] @@ -4157,7 +4289,7 @@ dependencies = [ "k256 0.13.1", "num-traits", "once_cell", - "prost 0.12.3", + "prost 0.12.6", "prost-types 0.12.3", "ripemd", "serde", @@ -4168,7 +4300,7 @@ dependencies = [ "signature 2.1.0", "subtle", "subtle-encoding", - "tendermint-proto", + "tendermint-proto 0.34.1", "time", "zeroize", ] @@ -4187,6 +4319,24 @@ dependencies = [ "url", ] +[[package]] +name = "tendermint-proto" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0cec054567d16d85e8c3f6a3139963d1a66d9d3051ed545d31562550e9bcc3d" +dependencies = [ + "bytes", + "flex-error", + "num-derive", + "num-traits", + "prost 0.11.9", + "prost-types 0.11.9", + "serde", + "serde_bytes", + "subtle-encoding", + "time", +] + [[package]] name = "tendermint-proto" version = "0.34.1" @@ -4197,7 +4347,7 @@ dependencies = [ "flex-error", "num-derive", "num-traits", - "prost 0.12.3", + "prost 0.12.6", "prost-types 0.12.3", "serde", "serde_bytes", @@ -4228,7 +4378,7 @@ dependencies = [ "subtle-encoding", "tendermint", "tendermint-config", - "tendermint-proto", + "tendermint-proto 0.34.1", "thiserror", "time", "tokio", @@ -4283,7 +4433,7 @@ dependencies = [ "cosmrs", "cosmwasm-std", "osmosis-std 0.22.0", - "prost 0.12.3", + "prost 0.12.6", "serde", "serde_json", "thiserror", @@ -4291,18 +4441,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.57" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" +checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.57" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" +checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", @@ -4575,9 +4725,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f" +checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -4585,9 +4735,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b" +checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", @@ -4612,9 +4762,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed" +checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4622,9 +4772,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" +checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", @@ -4635,9 +4785,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.91" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838" +checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "web-sys" diff --git a/Cargo.toml b/Cargo.toml index cbea13e4..dd38d81f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,8 +13,10 @@ members = [ "contracts/rewards-collector/*", "contracts/swapper/*", "contracts/v2-zapper/*", + "contracts/vault", # mock contracts + "contracts/mock-astroport-incentives", "contracts/mock-credit-manager", "contracts/mock-health", "contracts/mock-incentives", @@ -41,6 +43,8 @@ authors = [ "Gabe R. ", "Larry Engineer ", "Piotr B. ", + "Bob v.d. H. ", + "Mark Watney ", "Spike Spiegel ", "Brianna M. ", "Ahmad Kaouk", @@ -54,11 +58,14 @@ documentation = "https://docs.marsprotocol.io/" keywords = ["mars", "cosmos", "cosmwasm"] [workspace.dependencies] -anyhow = "1.0.80" +anyhow = "1.0.86" +apollo-cw-asset = { version = "0.1.2", features = ["astroport"] } +apollo-utils = "0.1.2" astroport = "2.8.0" -bech32 = "0.9.1" -cosmwasm-schema = "1.5.4" -cosmwasm-std = "1.5.4" +astroport-v5 = { package = "astroport", version = "5.2.0" } +bech32 = "0.11.0" +cosmwasm-schema = "1.5.5" +cosmwasm-std = "1.5.5" cw2 = "1.1.2" cw721 = { git = "https://github.com/CosmWasm/cw-nfts/", branch = "main" } cw721-base = { git = "https://github.com/CosmWasm/cw-nfts/", branch = "main", features = ["library"] } @@ -68,24 +75,25 @@ cw-storage-plus = "1.2.0" cw-utils = "1.0.3" cw-vault-standard = { version = "0.4.0", features = ["lockup", "force-unlock"] } ica-oracle = { git = "https://github.com/Stride-Labs/ica-oracle", rev = "2fdf76f", features = ["library"] } -itertools = "0.12.1" +itertools = "0.13.0" mars-owner = { version = "2.0.0", features = ["emergency-owner"] } -neutron-sdk = "0.8.0" +neutron-sdk = "0.10.0" osmosis-std = "0.22.0" -prost = { version = "0.12.3", default-features = false } +prost = { version = "0.12.6", default-features = false } pyth-sdk-cw = "1.2.0" -schemars = "0.8.16" -serde = { version = "1.0.197", default-features = false } -serde_json = "1.0.114" +regex = "1.10.4" +schemars = "0.8.21" +serde = { version = "1.0.203", default-features = false } +serde_json = "1.0.117" serde-json-wasm = "1.0.1" -serde-wasm-bindgen = "0.6.4" -strum = "0.26.1" -thiserror = "1.0.57" +serde-wasm-bindgen = "0.6.5" +strum = "0.26.2" +thiserror = "1.0.61" tsify = "0.4.5" -wasm-bindgen = "0.2.91" +wasm-bindgen = "0.2.92" # dev-dependencies -cw-multi-test = "0.20.0" +cw-multi-test = { version = "0.20.0", features = ["cosmwasm_1_1"] } cw-it = "0.3.0" osmosis-test-tube = "22.1.0" proptest = "1.4.0" @@ -106,6 +114,7 @@ mars-utils = { path = "./packages/utils" } # contracts mars-account-nft = { path = "./contracts/account-nft" } mars-address-provider = { path = "./contracts/address-provider" } +mars-credit-manager = { path = "./contracts/credit-manager" } mars-incentives = { path = "./contracts/incentives" } mars-mock-pyth = { path = "./contracts/mock-pyth" } mars-oracle-base = { path = "./contracts/oracle/base" } @@ -120,17 +129,19 @@ mars-rover-health = { path = "./contracts/health" } mars-swapper-astroport = { path = "./contracts/swapper/astroport" } mars-swapper-base = { path = "./contracts/swapper/base" } mars-swapper-osmosis = { path = "./contracts/swapper/osmosis" } +mars-vault = { path = "./contracts/vault" } mars-zapper-base = { path = "./contracts/v2-zapper/base" } # mocks -mars-mock-credit-manager = { path = "./contracts/mock-credit-manager" } -mars-mock-incentives = { path = "./contracts/mock-incentives" } -mars-mock-oracle = { path = "./contracts/mock-oracle" } -mars-mock-red-bank = { path = "./contracts/mock-red-bank" } -mars-mock-vault = { path = "./contracts/mock-vault" } -mars-mock-rover-health = { path = "./contracts/mock-health" } -mars-swapper-mock = { path = "./contracts/swapper/mock" } -mars-zapper-mock = { path = "./contracts/v2-zapper/mock" } +mars-mock-astroport-incentives = { path = "./contracts/mock-astroport-incentives" } +mars-mock-credit-manager = { path = "./contracts/mock-credit-manager" } +mars-mock-incentives = { path = "./contracts/mock-incentives" } +mars-mock-oracle = { path = "./contracts/mock-oracle" } +mars-mock-red-bank = { path = "./contracts/mock-red-bank" } +mars-mock-vault = { path = "./contracts/mock-vault" } +mars-mock-rover-health = { path = "./contracts/mock-health" } +mars-swapper-mock = { path = "./contracts/swapper/mock" } +mars-zapper-mock = { path = "./contracts/v2-zapper/mock" } [profile.release] codegen-units = 1 diff --git a/Makefile.toml b/Makefile.toml index 0d31d43f..3fbe949b 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -10,10 +10,10 @@ default_to_workspace = false # Directory with wasm files used by integration tests (another directory can be used instead, for example 'artifacts' from rust-optimizer) ARTIFACTS_DIR_PATH = "target/wasm32-unknown-unknown/release" # If you bump this version, verify RUST_VERSION correctness -RUST_OPTIMIZER_VERSION = "0.15.0" -# Use rust version from rust-optimizer Dockerfile (see https://github.com/CosmWasm/rust-optimizer/blob/v0.15.0/Dockerfile#L1) +RUST_OPTIMIZER_VERSION = "0.15.1" +# Use rust version from rust-optimizer Dockerfile (see https://github.com/CosmWasm/optimizer/blob/v0.15.1/Dockerfile#L1) # to be sure that we compile / test against the same version -RUST_VERSION = "1.73.0" +RUST_VERSION = "1.75.0" [tasks.install-stable] script = ''' @@ -61,12 +61,12 @@ args = ["test", "--locked"] [tasks.unit-test] toolchain = "${RUST_VERSION}" command = "cargo" -args = ["test", "--locked", "--workspace", "--exclude", "mars-integration-tests", "--exclude", "mars-swapper-astroport", "--exclude", "mars-oracle-wasm", "--exclude", "mars-swapper-osmosis"] +args = ["test", "--locked", "--workspace", "--exclude", "mars-integration-tests", "--exclude", "mars-swapper-astroport", "--exclude", "mars-oracle-wasm", "--exclude", "mars-swapper-osmosis", "--exclude", "mars-zapper-osmosis"] [tasks.integration-test] toolchain = "${RUST_VERSION}" command = "cargo" -args = ["test", "--locked", "-p", "mars-integration-tests", "-p", "mars-swapper-astroport", "-p", "mars-oracle-wasm", "-p", "mars-swapper-osmosis", "--test", "*"] +args = ["test", "--locked", "-p", "mars-integration-tests", "-p", "mars-swapper-astroport", "-p", "mars-oracle-wasm", "-p", "mars-swapper-osmosis", "-p", "mars-zapper-osmosis", "--test", "*"] [tasks.fmt] toolchain = "nightly" @@ -96,13 +96,13 @@ alias = "coverage-grcov-lcov" [tasks.all-actions] dependencies = [ - "install-stable", - "install-nightly", - "fmt", - "clippy", - "build", - "test", - "audit", - "generate-all-schemas", - "rust-optimizer", + "install-stable", + "install-nightly", + "fmt", + "clippy", + "build", + "test", + "audit", + "generate-all-schemas", + "rust-optimizer", ] diff --git a/audit.txt b/audit.txt new file mode 100644 index 00000000..cf3870cd --- /dev/null +++ b/audit.txt @@ -0,0 +1,1445 @@ +[cargo-make] INFO - cargo make 0.37.9 +[cargo-make] INFO - Calling cargo metadata to extract project info +[cargo-make] INFO - Cargo metadata done +[cargo-make] INFO - Build File: Makefile.toml +[cargo-make] INFO - Task: audit +[cargo-make] INFO - Profile: development +[cargo-make] INFO - Running Task: legacy-migration +[cargo-make] INFO - Execute Command: "rustup" "run" "1.75.0" "cargo" "audit" + Fetching advisory database from `https://github.com/RustSec/advisory-db.git` + Loaded 629 security advisories (from /Users/piobab/.cargo/advisory-db) + Updating crates.io index + Scanning Cargo.lock for vulnerabilities (446 crate dependencies) +Crate: curve25519-dalek +Version: 3.2.0 +Title: Timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub` +Date: 2024-06-18 +ID: RUSTSEC-2024-0344 +URL: https://rustsec.org/advisories/RUSTSEC-2024-0344 +Solution: Upgrade to >=4.1.3 +Dependency tree: +curve25519-dalek 3.2.0 +└── ed25519-zebra 3.1.0 + └── cosmwasm-crypto 1.5.5 + └── cosmwasm-std 1.5.5 + ├── test-tube 0.5.0 + │ ├── osmosis-test-tube 22.1.0 + │ │ ├── mars-zapper-osmosis 2.0.0 + │ │ ├── mars-integration-tests 2.0.0 + │ │ └── cw-it 0.3.0 + │ │ ├── mars-zapper-astroport 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ │ ├── mars-zapper-astroport 2.0.0 + │ │ │ ├── mars-vault 2.0.0 + │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ └── mars-credit-manager 2.0.3 + │ │ │ │ └── mars-testing 2.0.0 + │ │ │ ├── mars-swapper-osmosis 2.0.3 + │ │ │ │ └── mars-integration-tests 2.0.0 + │ │ │ ├── mars-swapper-astroport 2.0.0 + │ │ │ │ └── mars-testing 2.0.0 + │ │ │ ├── mars-rewards-collector-osmosis 2.0.1 + │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ └── mars-integration-tests 2.0.0 + │ │ │ ├── mars-rewards-collector-neutron 2.0.0 + │ │ │ ├── mars-red-bank 2.0.1 + │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ ├── mars-integration-tests 2.0.0 + │ │ │ │ └── mars-incentives 2.0.0 + │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ └── mars-integration-tests 2.0.0 + │ │ │ ├── mars-params 2.0.1 + │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ ├── mars-rover-health 2.0.0 + │ │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ │ └── mars-credit-manager 2.0.3 + │ │ │ │ ├── mars-integration-tests 2.0.0 + │ │ │ │ └── mars-credit-manager 2.0.3 + │ │ │ ├── mars-oracle-wasm 2.0.0 + │ │ │ │ ├── mars-zapper-astroport 2.0.0 + │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ └── mars-swapper-astroport 2.0.0 + │ │ │ ├── mars-oracle-osmosis 2.0.1 + │ │ │ │ ├── mars-testing 2.0.0 + │ │ │ │ └── mars-integration-tests 2.0.0 + │ │ │ ├── mars-integration-tests 2.0.0 + │ │ │ ├── mars-incentives 2.0.0 + │ │ │ ├── mars-health 2.0.0 + │ │ │ │ ├── mars-red-bank 2.0.1 + │ │ │ │ └── mars-liquidation 1.0.0 + │ │ │ │ ├── mars-red-bank 2.0.1 + │ │ │ │ └── mars-credit-manager 2.0.3 + │ │ │ ├── mars-credit-manager 2.0.3 + │ │ │ └── mars-address-provider 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-swapper-osmosis 2.0.3 + │ │ ├── mars-swapper-astroport 2.0.0 + │ │ ├── mars-oracle-wasm 2.0.0 + │ │ ├── mars-integration-tests 2.0.0 + │ │ └── mars-incentives 2.0.0 + │ └── cw-it 0.3.0 + ├── pyth-sdk-cw 1.2.0 + │ ├── mars-testing 2.0.0 + │ ├── mars-oracle-wasm 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ ├── mars-oracle-base 2.0.0 + │ │ ├── mars-oracle-wasm 2.0.0 + │ │ ├── mars-oracle-osmosis 2.0.1 + │ │ └── mars-integration-tests 2.0.0 + │ └── mars-mock-pyth 2.0.0 + │ └── mars-testing 2.0.0 + ├── osmosis-test-tube 22.1.0 + ├── osmosis-std 0.22.0 + │ ├── test-tube 0.5.0 + │ ├── osmosis-test-tube 22.1.0 + │ ├── mars-zapper-osmosis 2.0.0 + │ ├── mars-vault 2.0.0 + │ ├── mars-testing 2.0.0 + │ ├── mars-swapper-osmosis 2.0.3 + │ ├── mars-rewards-collector-osmosis 2.0.1 + │ ├── mars-osmosis 2.0.0 + │ │ ├── mars-swapper-osmosis 2.0.3 + │ │ ├── mars-rewards-collector-osmosis 2.0.1 + │ │ ├── mars-oracle-osmosis 2.0.1 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ ├── mars-integration-tests 2.0.0 + │ ├── mars-incentives 2.0.0 + │ ├── cw-it 0.3.0 + │ └── apollo-cw-multi-test 0.18.0 + │ └── cw-it 0.3.0 + ├── osmosis-std 0.16.2 + │ └── cw-dex 0.3.1 + │ ├── mars-zapper-osmosis 2.0.0 + │ ├── mars-zapper-base 2.0.0 + │ │ ├── mars-zapper-osmosis 2.0.0 + │ │ └── mars-zapper-astroport 2.0.0 + │ └── mars-zapper-astroport 2.0.0 + ├── neutron-sdk 0.10.0 + │ └── mars-rewards-collector-neutron 2.0.0 + ├── mars-zapper-osmosis 2.0.0 + ├── mars-zapper-mock 2.0.0 + │ ├── mars-testing 2.0.0 + │ └── mars-credit-manager 2.0.3 + ├── mars-zapper-base 2.0.0 + ├── mars-zapper-astroport 2.0.0 + ├── mars-vault 2.0.0 + ├── mars-utils 2.0.0 + │ ├── mars-types 2.0.0 + │ │ ├── mars-zapper-osmosis 2.0.0 + │ │ ├── mars-zapper-mock 2.0.0 + │ │ ├── mars-zapper-base 2.0.0 + │ │ ├── mars-zapper-astroport 2.0.0 + │ │ ├── mars-vault 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ ├── mars-swapper-osmosis 2.0.3 + │ │ ├── mars-swapper-mock 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-swapper-base 2.0.0 + │ │ │ ├── mars-swapper-osmosis 2.0.3 + │ │ │ └── mars-swapper-astroport 2.0.0 + │ │ ├── mars-swapper-astroport 2.0.0 + │ │ ├── mars-rover-health-computer 2.0.0 + │ │ │ └── mars-rover-health 2.0.0 + │ │ ├── mars-rover-health 2.0.0 + │ │ ├── mars-rewards-collector-osmosis 2.0.1 + │ │ ├── mars-rewards-collector-neutron 2.0.0 + │ │ ├── mars-rewards-collector-base 2.0.0 + │ │ │ ├── mars-rewards-collector-osmosis 2.0.1 + │ │ │ └── mars-rewards-collector-neutron 2.0.0 + │ │ ├── mars-red-bank 2.0.1 + │ │ ├── mars-params 2.0.1 + │ │ ├── mars-oracle-wasm 2.0.0 + │ │ ├── mars-oracle-osmosis 2.0.1 + │ │ ├── mars-oracle-base 2.0.0 + │ │ ├── mars-mock-vault 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ ├── mars-rover-health 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-mock-rover-health 2.0.0 + │ │ │ └── mars-account-nft 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-mock-red-bank 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-mock-oracle 2.0.0 + │ │ │ ├── mars-vault 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ ├── mars-rover-health 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-mock-incentives 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-mock-credit-manager 2.0.0 + │ │ │ ├── mars-rover-health 2.0.0 + │ │ │ └── mars-account-nft 2.0.0 + │ │ ├── mars-mock-astroport-incentives 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-liquidation 1.0.0 + │ │ ├── mars-interest-rate 2.0.0 + │ │ │ ├── mars-red-bank 2.0.1 + │ │ │ └── mars-params 2.0.1 + │ │ ├── mars-integration-tests 2.0.0 + │ │ ├── mars-incentives 2.0.0 + │ │ ├── mars-health 2.0.0 + │ │ ├── mars-credit-manager 2.0.3 + │ │ ├── mars-address-provider 2.0.0 + │ │ └── mars-account-nft 2.0.0 + │ ├── mars-rewards-collector-osmosis 2.0.1 + │ ├── mars-rewards-collector-base 2.0.0 + │ ├── mars-red-bank 2.0.1 + │ ├── mars-params 2.0.1 + │ ├── mars-oracle-osmosis 2.0.1 + │ ├── mars-oracle-base 2.0.0 + │ ├── mars-integration-tests 2.0.0 + │ ├── mars-incentives 2.0.0 + │ └── mars-credit-manager 2.0.3 + ├── mars-utils 1.0.0 + ├── mars-utils 1.0.0 + │ └── mars-red-bank-types 1.0.0 + │ └── mars-rover 1.0.0 + │ └── mars-account-nft 2.0.0 + ├── mars-types 2.0.0 + ├── mars-testing 2.0.0 + ├── mars-swapper-osmosis 2.0.3 + ├── mars-swapper-mock 2.0.0 + ├── mars-swapper-base 2.0.0 + ├── mars-swapper-astroport 2.0.0 + ├── mars-rover-health-computer 2.0.0 + ├── mars-rover-health 2.0.0 + ├── mars-rover 1.0.0 + ├── mars-rewards-collector-osmosis 2.0.1 + ├── mars-rewards-collector-neutron 2.0.0 + ├── mars-rewards-collector-base 2.0.0 + ├── mars-red-bank-types 1.0.0 + ├── mars-red-bank-types 1.0.0 + ├── mars-red-bank 2.0.1 + ├── mars-params 2.0.1 + ├── mars-owner 2.0.0 + │ ├── mars-vault 2.0.0 + │ ├── mars-types 2.0.0 + │ ├── mars-testing 2.0.0 + │ ├── mars-swapper-osmosis 2.0.3 + │ ├── mars-swapper-base 2.0.0 + │ ├── mars-rover-health 2.0.0 + │ ├── mars-rewards-collector-osmosis 2.0.1 + │ ├── mars-rewards-collector-base 2.0.0 + │ ├── mars-red-bank 2.0.1 + │ ├── mars-params 2.0.1 + │ ├── mars-oracle-wasm 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ ├── mars-oracle-base 2.0.0 + │ ├── mars-incentives 2.0.0 + │ ├── mars-credit-manager 2.0.3 + │ ├── mars-address-provider 2.0.0 + │ └── mars-account-nft 2.0.0 + ├── mars-owner 1.2.0 + │ ├── mars-rover 1.0.0 + │ ├── mars-red-bank-types 1.0.0 + │ └── mars-red-bank-types 1.0.0 + ├── mars-osmosis 2.0.0 + ├── mars-oracle-wasm 2.0.0 + ├── mars-oracle-osmosis 2.0.1 + ├── mars-oracle-base 2.0.0 + ├── mars-mock-vault 2.0.0 + ├── mars-mock-rover-health 2.0.0 + ├── mars-mock-red-bank 2.0.0 + ├── mars-mock-pyth 2.0.0 + ├── mars-mock-oracle 2.0.0 + ├── mars-mock-incentives 2.0.0 + ├── mars-mock-credit-manager 2.0.0 + ├── mars-mock-astroport-incentives 2.0.0 + ├── mars-liquidation 1.0.0 + ├── mars-interest-rate 2.0.0 + ├── mars-integration-tests 2.0.0 + ├── mars-incentives 2.0.0 + ├── mars-health 2.0.0 + ├── mars-health 1.0.0 + │ └── mars-rover 1.0.0 + ├── mars-credit-manager 2.0.3 + ├── mars-address-provider 2.0.0 + ├── mars-account-nft 2.0.0 + ├── ica-oracle 1.0.0 + │ ├── mars-testing 2.0.0 + │ ├── mars-oracle-wasm 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ ├── mars-oracle-base 2.0.0 + │ └── mars-integration-tests 2.0.0 + ├── cw721-base 0.18.0 + │ ├── mars-types 2.0.0 + │ ├── mars-testing 2.0.0 + │ ├── mars-credit-manager 2.0.3 + │ └── mars-account-nft 2.0.0 + ├── cw721-base 0.16.0 + │ ├── mars-rover 1.0.0 + │ ├── mars-account-nft 2.0.0 + │ └── cw721-base 0.18.0 + ├── cw721 0.18.0 + │ ├── mars-types 2.0.0 + │ ├── mars-testing 2.0.0 + │ ├── mars-credit-manager 2.0.3 + │ ├── mars-account-nft 2.0.0 + │ └── cw721-base 0.18.0 + ├── cw721 0.16.0 + │ ├── mars-rover 1.0.0 + │ └── cw721-base 0.16.0 + ├── cw3 1.1.1 + │ └── astroport 3.11.1 + │ ├── cw-it 0.3.0 + │ └── astroport-incentives 1.0.0 + │ └── cw-it 0.3.0 + ├── cw20-base 0.15.1 + │ ├── astroport-token 1.1.1 + │ │ └── cw-it 0.3.0 + │ └── astroport-liquidity-manager 1.0.3-astroport-v2 + │ └── cw-it 0.3.0 + ├── cw20 1.1.2 + │ ├── cw3 1.1.1 + │ ├── cw-dex 0.3.1 + │ ├── cw-asset 3.1.1 + │ │ ├── astroport 5.0.0-rc.1-tokenfactory + │ │ │ ├── mars-zapper-astroport 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ ├── mars-swapper-astroport 2.0.0 + │ │ │ ├── mars-oracle-wasm 2.0.0 + │ │ │ ├── mars-mock-astroport-incentives 2.0.0 + │ │ │ ├── mars-integration-tests 2.0.0 + │ │ │ └── mars-incentives 2.0.0 + │ │ └── astroport 3.11.1 + │ ├── astroport-incentives 1.0.0 + │ ├── astroport 5.0.0-rc.1-tokenfactory + │ ├── apollo-utils 0.1.2 + │ │ ├── mars-zapper-astroport 2.0.0 + │ │ └── cw-dex 0.3.1 + │ └── apollo-cw-asset 0.1.2 + │ ├── mars-zapper-astroport 2.0.0 + │ ├── cw-dex 0.3.1 + │ └── apollo-utils 0.1.2 + ├── cw20 0.15.1 + │ ├── cw20-base 0.15.1 + │ ├── cw-it 0.3.0 + │ ├── astroport-vesting 1.3.1 + │ │ └── cw-it 0.3.0 + │ ├── astroport-token 1.1.1 + │ ├── astroport-staking 1.1.0 + │ │ └── cw-it 0.3.0 + │ ├── astroport-router 1.1.1 + │ │ └── cw-it 0.3.0 + │ ├── astroport-pair-stable 2.1.3 + │ │ ├── cw-it 0.3.0 + │ │ └── astroport-liquidity-manager 1.0.3-astroport-v2 + │ ├── astroport-pair-concentrated 1.2.7 + │ │ └── cw-it 0.3.0 + │ ├── astroport-pair 1.3.2 + │ │ ├── cw-it 0.3.0 + │ │ └── astroport-liquidity-manager 1.0.3-astroport-v2 + │ ├── astroport-maker 1.3.1 + │ │ └── cw-it 0.3.0 + │ ├── astroport-liquidity-manager 1.0.3-astroport-v2 + │ ├── astroport-governance 1.2.0 + │ │ ├── astroport-generator 2.3.0 + │ │ │ └── cw-it 0.3.0 + │ │ └── astro-satellite-package 0.1.0 + │ │ └── astroport-maker 1.3.1 + │ ├── astroport-generator 2.3.0 + │ ├── astroport 3.11.1 + │ └── astroport 2.9.0 + │ ├── mars-testing 2.0.0 + │ ├── mars-swapper-astroport 2.0.0 + │ ├── mars-oracle-wasm 2.0.0 + │ ├── cw-it 0.3.0 + │ ├── astroport-whitelist 1.0.1 + │ │ └── cw-it 0.3.0 + │ ├── astroport-vesting 1.3.1 + │ ├── astroport-token 1.1.1 + │ ├── astroport-staking 1.1.0 + │ ├── astroport-router 1.1.1 + │ ├── astroport-pair-stable 2.1.3 + │ ├── astroport-pair-concentrated 1.2.7 + │ ├── astroport-pair 1.3.2 + │ ├── astroport-native-coin-registry 1.0.1 + │ │ └── cw-it 0.3.0 + │ ├── astroport-maker 1.3.1 + │ ├── astroport-liquidity-manager 1.0.3-astroport-v2 + │ ├── astroport-governance 1.2.0 + │ ├── astroport-generator 2.3.0 + │ ├── astroport-factory 1.5.1 + │ │ ├── cw-it 0.3.0 + │ │ ├── astroport-pair-concentrated 1.2.7 + │ │ └── astroport-liquidity-manager 1.0.3-astroport-v2 + │ └── apollo-cw-asset 0.1.2 + ├── cw2 1.1.2 + │ ├── mars-zapper-osmosis 2.0.0 + │ ├── mars-zapper-base 2.0.0 + │ ├── mars-zapper-astroport 2.0.0 + │ ├── mars-vault 2.0.0 + │ ├── mars-swapper-osmosis 2.0.3 + │ ├── mars-swapper-base 2.0.0 + │ ├── mars-swapper-astroport 2.0.0 + │ ├── mars-rover-health 2.0.0 + │ ├── mars-rewards-collector-osmosis 2.0.1 + │ ├── mars-rewards-collector-neutron 2.0.0 + │ ├── mars-rewards-collector-base 2.0.0 + │ ├── mars-red-bank 2.0.1 + │ ├── mars-params 2.0.1 + │ ├── mars-oracle-wasm 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ ├── mars-oracle-base 2.0.0 + │ ├── mars-incentives 2.0.0 + │ ├── mars-credit-manager 2.0.3 + │ ├── mars-address-provider 2.0.0 + │ ├── mars-account-nft 2.0.0 + │ ├── ica-oracle 1.0.0 + │ ├── cw721-base 0.18.0 + │ ├── cw-utils 1.0.3 + │ │ ├── mars-zapper-osmosis 2.0.0 + │ │ ├── mars-zapper-mock 2.0.0 + │ │ ├── mars-zapper-base 2.0.0 + │ │ ├── mars-vault 2.0.0 + │ │ ├── mars-types 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ ├── mars-rover-health 2.0.0 + │ │ ├── mars-rover 1.0.0 + │ │ ├── mars-red-bank 2.0.1 + │ │ ├── mars-mock-vault 2.0.0 + │ │ ├── mars-mock-red-bank 2.0.0 + │ │ ├── mars-mock-astroport-incentives 2.0.0 + │ │ ├── mars-credit-manager 2.0.3 + │ │ ├── cw721-base 0.18.0 + │ │ ├── cw721 0.18.0 + │ │ ├── cw3 1.1.1 + │ │ ├── cw20 1.1.2 + │ │ ├── cw-vault-standard 0.4.0 + │ │ │ ├── mars-vault 2.0.0 + │ │ │ ├── mars-types 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ ├── mars-rover-health 2.0.0 + │ │ │ ├── mars-mock-vault 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── cw-vault-standard 0.2.0 + │ │ │ └── mars-rover 1.0.0 + │ │ ├── cw-ownable 0.5.1 + │ │ │ └── cw721-base 0.18.0 + │ │ ├── cw-multi-test 0.20.0 + │ │ │ ├── mars-vault 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ ├── mars-swapper-mock 2.0.0 + │ │ │ ├── mars-rover-health 2.0.0 + │ │ │ ├── mars-red-bank 2.0.1 + │ │ │ ├── mars-params 2.0.1 + │ │ │ ├── mars-integration-tests 2.0.0 + │ │ │ ├── mars-credit-manager 2.0.3 + │ │ │ └── mars-account-nft 2.0.0 + │ │ ├── cw-dex 0.3.1 + │ │ ├── astroport-pair-stable 2.1.3 + │ │ ├── astroport-incentives 1.0.0 + │ │ ├── astroport 5.0.0-rc.1-tokenfactory + │ │ ├── astroport 3.11.1 + │ │ └── apollo-cw-multi-test 0.18.0 + │ └── astroport-incentives 1.0.0 + ├── cw2 0.16.0 + │ ├── cw721-base 0.16.0 + │ └── cw-utils 0.16.0 + │ ├── cw721-base 0.16.0 + │ └── cw721 0.16.0 + ├── cw2 0.15.1 + │ ├── cw20-base 0.15.1 + │ ├── cw1-whitelist 0.15.1 + │ │ ├── astroport-whitelist 1.0.1 + │ │ └── astroport-generator 2.3.0 + │ ├── cw-utils 0.15.1 + │ │ ├── cw20-base 0.15.1 + │ │ ├── cw20 0.15.1 + │ │ ├── cw1-whitelist 0.15.1 + │ │ ├── astroport-vesting 1.3.1 + │ │ ├── astroport-pair-concentrated 1.2.7 + │ │ └── astroport 2.9.0 + │ ├── astroport-whitelist 1.0.1 + │ ├── astroport-vesting 1.3.1 + │ ├── astroport-token 1.1.1 + │ ├── astroport-staking 1.1.0 + │ ├── astroport-router 1.1.1 + │ ├── astroport-pair-stable 2.1.3 + │ ├── astroport-pair-concentrated 1.2.7 + │ ├── astroport-pair 1.3.2 + │ ├── astroport-native-coin-registry 1.0.1 + │ ├── astroport-maker 1.3.1 + │ ├── astroport-generator 2.3.0 + │ └── astroport-factory 1.5.1 + ├── cw1-whitelist 0.15.1 + ├── cw1 0.15.1 + │ └── cw1-whitelist 0.15.1 + ├── cw-vault-standard 0.4.0 + ├── cw-vault-standard 0.2.0 + ├── cw-utils 1.0.3 + ├── cw-utils 0.16.0 + ├── cw-utils 0.15.1 + ├── cw-storage-plus 1.2.0 + │ ├── mars-zapper-mock 2.0.0 + │ ├── mars-vault 2.0.0 + │ ├── mars-utils 2.0.0 + │ ├── mars-types 2.0.0 + │ ├── mars-swapper-osmosis 2.0.3 + │ ├── mars-swapper-base 2.0.0 + │ ├── mars-rover-health 2.0.0 + │ ├── mars-rover 1.0.0 + │ ├── mars-rewards-collector-osmosis 2.0.1 + │ ├── mars-rewards-collector-base 2.0.0 + │ ├── mars-red-bank 2.0.1 + │ ├── mars-params 2.0.1 + │ ├── mars-owner 2.0.0 + │ ├── mars-owner 1.2.0 + │ ├── mars-oracle-wasm 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ ├── mars-oracle-base 2.0.0 + │ ├── mars-mock-vault 2.0.0 + │ ├── mars-mock-rover-health 2.0.0 + │ ├── mars-mock-red-bank 2.0.0 + │ ├── mars-mock-oracle 2.0.0 + │ ├── mars-mock-incentives 2.0.0 + │ ├── mars-mock-credit-manager 2.0.0 + │ ├── mars-mock-astroport-incentives 2.0.0 + │ ├── mars-incentives 2.0.0 + │ ├── mars-credit-manager 2.0.3 + │ ├── mars-address-provider 2.0.0 + │ ├── mars-account-nft 2.0.0 + │ ├── ica-oracle 1.0.0 + │ ├── cw721-base 0.18.0 + │ ├── cw2 1.1.2 + │ ├── cw-paginate 0.2.2 + │ │ ├── mars-vault 2.0.0 + │ │ ├── mars-types 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ ├── mars-swapper-base 2.0.0 + │ │ ├── mars-red-bank 2.0.1 + │ │ ├── mars-params 2.0.1 + │ │ ├── mars-mock-red-bank 2.0.0 + │ │ ├── mars-mock-incentives 2.0.0 + │ │ ├── mars-incentives 2.0.0 + │ │ └── mars-credit-manager 2.0.3 + │ ├── cw-ownable 0.5.1 + │ ├── cw-multi-test 0.20.0 + │ ├── cw-dex 0.3.1 + │ ├── cw-asset 3.1.1 + │ ├── astroport-liquidity-manager 1.0.3-astroport-v2 + │ ├── astroport 5.0.0-rc.1-tokenfactory + │ ├── apollo-cw-multi-test 0.18.0 + │ └── apollo-cw-asset 0.1.2 + ├── cw-storage-plus 0.16.0 + │ ├── cw721-base 0.16.0 + │ └── cw2 0.16.0 + ├── cw-storage-plus 0.15.1 + │ ├── cw20-base 0.15.1 + │ ├── cw2 0.15.1 + │ ├── cw1-whitelist 0.15.1 + │ ├── astroport-vesting 1.3.1 + │ ├── astroport-staking 1.1.0 + │ ├── astroport-router 1.1.1 + │ ├── astroport-pair-stable 2.1.3 + │ ├── astroport-pair-concentrated 1.2.7 + │ ├── astroport-pair 1.3.2 + │ ├── astroport-native-coin-registry 1.0.1 + │ ├── astroport-maker 1.3.1 + │ ├── astroport-incentives 1.0.0 + │ ├── astroport-governance 1.2.0 + │ ├── astroport-generator 2.3.0 + │ ├── astroport-factory 1.5.1 + │ ├── astroport-circular-buffer 0.2.0 + │ │ └── astroport 5.0.0-rc.1-tokenfactory + │ ├── astroport-circular-buffer 0.1.0 + │ │ └── astroport 3.11.1 + │ ├── astroport 3.11.1 + │ └── astroport 2.9.0 + ├── cw-paginate 0.2.2 + ├── cw-ownable 0.5.1 + ├── cw-multi-test 0.20.0 + ├── cw-it 0.3.0 + ├── cw-dex 0.3.1 + ├── cw-asset 3.1.1 + ├── cw-address-like 1.0.4 + │ ├── cw-ownable 0.5.1 + │ └── cw-asset 3.1.1 + ├── cosmwasm-storage 1.4.1 + │ └── astroport-native-coin-registry 1.0.1 + ├── astroport-whitelist 1.0.1 + ├── astroport-vesting 1.3.1 + ├── astroport-token 1.1.1 + ├── astroport-staking 1.1.0 + ├── astroport-router 1.1.1 + ├── astroport-pair-stable 2.1.3 + ├── astroport-pair-concentrated 1.2.7 + ├── astroport-pair 1.3.2 + ├── astroport-native-coin-registry 1.0.1 + ├── astroport-maker 1.3.1 + ├── astroport-liquidity-manager 1.0.3-astroport-v2 + ├── astroport-incentives 1.0.0 + ├── astroport-governance 1.2.0 + ├── astroport-generator 2.3.0 + ├── astroport-factory 1.5.1 + ├── astroport-circular-buffer 0.2.0 + ├── astroport-circular-buffer 0.1.0 + ├── astroport 5.0.0-rc.1-tokenfactory + ├── astroport 3.11.1 + ├── astroport 2.9.0 + ├── astro-satellite-package 0.1.0 + ├── apollo-utils 0.1.2 + ├── apollo-cw-multi-test 0.18.0 + └── apollo-cw-asset 0.1.2 + +Crate: yaml-rust +Version: 0.4.5 +Warning: unmaintained +Title: yaml-rust is unmaintained. +Date: 2024-03-20 +ID: RUSTSEC-2024-0320 +URL: https://rustsec.org/advisories/RUSTSEC-2024-0320 +Dependency tree: +yaml-rust 0.4.5 +└── config 0.13.3 + └── cw-it 0.3.0 + ├── mars-zapper-astroport 2.0.0 + ├── mars-testing 2.0.0 + │ ├── mars-zapper-astroport 2.0.0 + │ ├── mars-vault 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-credit-manager 2.0.3 + │ │ └── mars-testing 2.0.0 + │ ├── mars-swapper-osmosis 2.0.3 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-swapper-astroport 2.0.0 + │ │ └── mars-testing 2.0.0 + │ ├── mars-rewards-collector-osmosis 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-rewards-collector-neutron 2.0.0 + │ ├── mars-red-bank 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ ├── mars-integration-tests 2.0.0 + │ │ └── mars-incentives 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-params 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ ├── mars-rover-health 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-integration-tests 2.0.0 + │ │ └── mars-credit-manager 2.0.3 + │ ├── mars-oracle-wasm 2.0.0 + │ │ ├── mars-zapper-astroport 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-swapper-astroport 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-integration-tests 2.0.0 + │ ├── mars-incentives 2.0.0 + │ ├── mars-health 2.0.0 + │ │ ├── mars-red-bank 2.0.1 + │ │ └── mars-liquidation 1.0.0 + │ │ ├── mars-red-bank 2.0.1 + │ │ └── mars-credit-manager 2.0.3 + │ ├── mars-credit-manager 2.0.3 + │ └── mars-address-provider 2.0.0 + │ ├── mars-testing 2.0.0 + │ └── mars-credit-manager 2.0.3 + ├── mars-swapper-osmosis 2.0.3 + ├── mars-swapper-astroport 2.0.0 + ├── mars-oracle-wasm 2.0.0 + ├── mars-integration-tests 2.0.0 + └── mars-incentives 2.0.0 + +Crate: borsh +Version: 0.9.3 +Warning: unsound +Title: Parsing borsh messages with ZST which are not-copy/clone is unsound +Date: 2023-04-12 +ID: RUSTSEC-2023-0033 +URL: https://rustsec.org/advisories/RUSTSEC-2023-0033 +Dependency tree: +borsh 0.9.3 +└── pyth-sdk 0.7.0 + └── pyth-sdk-cw 1.2.0 + ├── mars-testing 2.0.0 + │ ├── mars-zapper-astroport 2.0.0 + │ ├── mars-vault 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-credit-manager 2.0.3 + │ │ └── mars-testing 2.0.0 + │ ├── mars-swapper-osmosis 2.0.3 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-swapper-astroport 2.0.0 + │ │ └── mars-testing 2.0.0 + │ ├── mars-rewards-collector-osmosis 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-rewards-collector-neutron 2.0.0 + │ ├── mars-red-bank 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ ├── mars-integration-tests 2.0.0 + │ │ └── mars-incentives 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-params 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ ├── mars-rover-health 2.0.0 + │ │ │ ├── mars-testing 2.0.0 + │ │ │ └── mars-credit-manager 2.0.3 + │ │ ├── mars-integration-tests 2.0.0 + │ │ └── mars-credit-manager 2.0.3 + │ ├── mars-oracle-wasm 2.0.0 + │ │ ├── mars-zapper-astroport 2.0.0 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-swapper-astroport 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ │ ├── mars-testing 2.0.0 + │ │ └── mars-integration-tests 2.0.0 + │ ├── mars-integration-tests 2.0.0 + │ ├── mars-incentives 2.0.0 + │ ├── mars-health 2.0.0 + │ │ ├── mars-red-bank 2.0.1 + │ │ └── mars-liquidation 1.0.0 + │ │ ├── mars-red-bank 2.0.1 + │ │ └── mars-credit-manager 2.0.3 + │ ├── mars-credit-manager 2.0.3 + │ └── mars-address-provider 2.0.0 + │ ├── mars-testing 2.0.0 + │ └── mars-credit-manager 2.0.3 + ├── mars-oracle-wasm 2.0.0 + ├── mars-oracle-osmosis 2.0.1 + ├── mars-oracle-base 2.0.0 + │ ├── mars-oracle-wasm 2.0.0 + │ ├── mars-oracle-osmosis 2.0.1 + │ └── mars-integration-tests 2.0.0 + └── mars-mock-pyth 2.0.0 + └── mars-testing 2.0.0 + +Crate: ahash +Version: 0.7.6 +Warning: yanked +Dependency tree: +ahash 0.7.6 +├── hashbrown 0.12.3 +│ ├── ordered-multimap 0.4.3 +│ │ └── rust-ini 0.18.0 +│ │ └── config 0.13.3 +│ │ └── cw-it 0.3.0 +│ │ ├── mars-zapper-astroport 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ │ ├── mars-zapper-astroport 2.0.0 +│ │ │ ├── mars-vault 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ │ └── mars-testing 2.0.0 +│ │ │ ├── mars-swapper-osmosis 2.0.3 +│ │ │ │ └── mars-integration-tests 2.0.0 +│ │ │ ├── mars-swapper-astroport 2.0.0 +│ │ │ │ └── mars-testing 2.0.0 +│ │ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-integration-tests 2.0.0 +│ │ │ ├── mars-rewards-collector-neutron 2.0.0 +│ │ │ ├── mars-red-bank 2.0.1 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ │ └── mars-incentives 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-integration-tests 2.0.0 +│ │ │ ├── mars-params 2.0.1 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ ├── mars-rover-health 2.0.0 +│ │ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-oracle-wasm 2.0.0 +│ │ │ │ ├── mars-zapper-astroport 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-swapper-astroport 2.0.0 +│ │ │ ├── mars-oracle-osmosis 2.0.1 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-integration-tests 2.0.0 +│ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ ├── mars-incentives 2.0.0 +│ │ │ ├── mars-health 2.0.0 +│ │ │ │ ├── mars-red-bank 2.0.1 +│ │ │ │ └── mars-liquidation 1.0.0 +│ │ │ │ ├── mars-red-bank 2.0.1 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-credit-manager 2.0.3 +│ │ │ └── mars-address-provider 2.0.0 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ └── mars-credit-manager 2.0.3 +│ │ ├── mars-swapper-osmosis 2.0.3 +│ │ ├── mars-swapper-astroport 2.0.0 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── mars-integration-tests 2.0.0 +│ │ └── mars-incentives 2.0.0 +│ ├── indexmap 1.9.3 +│ │ └── h2 0.3.21 +│ │ ├── reqwest 0.11.24 +│ │ │ └── tendermint-rpc 0.34.1 +│ │ │ └── cosmrs 0.15.0 +│ │ │ ├── test-tube 0.5.0 +│ │ │ │ ├── osmosis-test-tube 22.1.0 +│ │ │ │ │ ├── mars-zapper-osmosis 2.0.0 +│ │ │ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ │ │ └── cw-it 0.3.0 +│ │ │ │ └── cw-it 0.3.0 +│ │ │ ├── osmosis-test-tube 22.1.0 +│ │ │ └── cw-it 0.3.0 +│ │ └── hyper 0.14.27 +│ │ ├── reqwest 0.11.24 +│ │ └── hyper-rustls 0.24.2 +│ │ └── reqwest 0.11.24 +│ └── ed25519-zebra 3.1.0 +│ └── cosmwasm-crypto 1.5.5 +│ └── cosmwasm-std 1.5.5 +│ ├── test-tube 0.5.0 +│ ├── pyth-sdk-cw 1.2.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ ├── mars-oracle-base 2.0.0 +│ │ │ ├── mars-oracle-wasm 2.0.0 +│ │ │ ├── mars-oracle-osmosis 2.0.1 +│ │ │ └── mars-integration-tests 2.0.0 +│ │ └── mars-mock-pyth 2.0.0 +│ │ └── mars-testing 2.0.0 +│ ├── osmosis-test-tube 22.1.0 +│ ├── osmosis-std 0.22.0 +│ │ ├── test-tube 0.5.0 +│ │ ├── osmosis-test-tube 22.1.0 +│ │ ├── mars-zapper-osmosis 2.0.0 +│ │ ├── mars-vault 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-swapper-osmosis 2.0.3 +│ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ ├── mars-osmosis 2.0.0 +│ │ │ ├── mars-swapper-osmosis 2.0.3 +│ │ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ │ ├── mars-oracle-osmosis 2.0.1 +│ │ │ └── mars-integration-tests 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ ├── mars-integration-tests 2.0.0 +│ │ ├── mars-incentives 2.0.0 +│ │ ├── cw-it 0.3.0 +│ │ └── apollo-cw-multi-test 0.18.0 +│ │ └── cw-it 0.3.0 +│ ├── osmosis-std 0.16.2 +│ │ └── cw-dex 0.3.1 +│ │ ├── mars-zapper-osmosis 2.0.0 +│ │ ├── mars-zapper-base 2.0.0 +│ │ │ ├── mars-zapper-osmosis 2.0.0 +│ │ │ └── mars-zapper-astroport 2.0.0 +│ │ └── mars-zapper-astroport 2.0.0 +│ ├── neutron-sdk 0.10.0 +│ │ └── mars-rewards-collector-neutron 2.0.0 +│ ├── mars-zapper-osmosis 2.0.0 +│ ├── mars-zapper-mock 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-zapper-base 2.0.0 +│ ├── mars-zapper-astroport 2.0.0 +│ ├── mars-vault 2.0.0 +│ ├── mars-utils 2.0.0 +│ │ ├── mars-types 2.0.0 +│ │ │ ├── mars-zapper-osmosis 2.0.0 +│ │ │ ├── mars-zapper-mock 2.0.0 +│ │ │ ├── mars-zapper-base 2.0.0 +│ │ │ ├── mars-zapper-astroport 2.0.0 +│ │ │ ├── mars-vault 2.0.0 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ ├── mars-swapper-osmosis 2.0.3 +│ │ │ ├── mars-swapper-mock 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-swapper-base 2.0.0 +│ │ │ │ ├── mars-swapper-osmosis 2.0.3 +│ │ │ │ └── mars-swapper-astroport 2.0.0 +│ │ │ ├── mars-swapper-astroport 2.0.0 +│ │ │ ├── mars-rover-health-computer 2.0.0 +│ │ │ │ └── mars-rover-health 2.0.0 +│ │ │ ├── mars-rover-health 2.0.0 +│ │ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ │ ├── mars-rewards-collector-neutron 2.0.0 +│ │ │ ├── mars-rewards-collector-base 2.0.0 +│ │ │ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ │ │ └── mars-rewards-collector-neutron 2.0.0 +│ │ │ ├── mars-red-bank 2.0.1 +│ │ │ ├── mars-params 2.0.1 +│ │ │ ├── mars-oracle-wasm 2.0.0 +│ │ │ ├── mars-oracle-osmosis 2.0.1 +│ │ │ ├── mars-oracle-base 2.0.0 +│ │ │ ├── mars-mock-vault 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ ├── mars-rover-health 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-mock-rover-health 2.0.0 +│ │ │ │ └── mars-account-nft 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-mock-red-bank 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-mock-oracle 2.0.0 +│ │ │ │ ├── mars-vault 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ ├── mars-rover-health 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-mock-incentives 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-mock-credit-manager 2.0.0 +│ │ │ │ ├── mars-rover-health 2.0.0 +│ │ │ │ └── mars-account-nft 2.0.0 +│ │ │ ├── mars-mock-astroport-incentives 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── mars-liquidation 1.0.0 +│ │ │ ├── mars-interest-rate 2.0.0 +│ │ │ │ ├── mars-red-bank 2.0.1 +│ │ │ │ └── mars-params 2.0.1 +│ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ ├── mars-incentives 2.0.0 +│ │ │ ├── mars-health 2.0.0 +│ │ │ ├── mars-credit-manager 2.0.3 +│ │ │ ├── mars-address-provider 2.0.0 +│ │ │ └── mars-account-nft 2.0.0 +│ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ ├── mars-rewards-collector-base 2.0.0 +│ │ ├── mars-red-bank 2.0.1 +│ │ ├── mars-params 2.0.1 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ ├── mars-oracle-base 2.0.0 +│ │ ├── mars-integration-tests 2.0.0 +│ │ ├── mars-incentives 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-utils 1.0.0 +│ ├── mars-utils 1.0.0 +│ │ └── mars-red-bank-types 1.0.0 +│ │ └── mars-rover 1.0.0 +│ │ └── mars-account-nft 2.0.0 +│ ├── mars-types 2.0.0 +│ ├── mars-testing 2.0.0 +│ ├── mars-swapper-osmosis 2.0.3 +│ ├── mars-swapper-mock 2.0.0 +│ ├── mars-swapper-base 2.0.0 +│ ├── mars-swapper-astroport 2.0.0 +│ ├── mars-rover-health-computer 2.0.0 +│ ├── mars-rover-health 2.0.0 +│ ├── mars-rover 1.0.0 +│ ├── mars-rewards-collector-osmosis 2.0.1 +│ ├── mars-rewards-collector-neutron 2.0.0 +│ ├── mars-rewards-collector-base 2.0.0 +│ ├── mars-red-bank-types 1.0.0 +│ ├── mars-red-bank-types 1.0.0 +│ ├── mars-red-bank 2.0.1 +│ ├── mars-params 2.0.1 +│ ├── mars-owner 2.0.0 +│ │ ├── mars-vault 2.0.0 +│ │ ├── mars-types 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-swapper-osmosis 2.0.3 +│ │ ├── mars-swapper-base 2.0.0 +│ │ ├── mars-rover-health 2.0.0 +│ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ ├── mars-rewards-collector-base 2.0.0 +│ │ ├── mars-red-bank 2.0.1 +│ │ ├── mars-params 2.0.1 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ ├── mars-oracle-base 2.0.0 +│ │ ├── mars-incentives 2.0.0 +│ │ ├── mars-credit-manager 2.0.3 +│ │ ├── mars-address-provider 2.0.0 +│ │ └── mars-account-nft 2.0.0 +│ ├── mars-owner 1.2.0 +│ │ ├── mars-rover 1.0.0 +│ │ ├── mars-red-bank-types 1.0.0 +│ │ └── mars-red-bank-types 1.0.0 +│ ├── mars-osmosis 2.0.0 +│ ├── mars-oracle-wasm 2.0.0 +│ ├── mars-oracle-osmosis 2.0.1 +│ ├── mars-oracle-base 2.0.0 +│ ├── mars-mock-vault 2.0.0 +│ ├── mars-mock-rover-health 2.0.0 +│ ├── mars-mock-red-bank 2.0.0 +│ ├── mars-mock-pyth 2.0.0 +│ ├── mars-mock-oracle 2.0.0 +│ ├── mars-mock-incentives 2.0.0 +│ ├── mars-mock-credit-manager 2.0.0 +│ ├── mars-mock-astroport-incentives 2.0.0 +│ ├── mars-liquidation 1.0.0 +│ ├── mars-interest-rate 2.0.0 +│ ├── mars-integration-tests 2.0.0 +│ ├── mars-incentives 2.0.0 +│ ├── mars-health 2.0.0 +│ ├── mars-health 1.0.0 +│ │ └── mars-rover 1.0.0 +│ ├── mars-credit-manager 2.0.3 +│ ├── mars-address-provider 2.0.0 +│ ├── mars-account-nft 2.0.0 +│ ├── ica-oracle 1.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ ├── mars-oracle-base 2.0.0 +│ │ └── mars-integration-tests 2.0.0 +│ ├── cw721-base 0.18.0 +│ │ ├── mars-types 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-credit-manager 2.0.3 +│ │ └── mars-account-nft 2.0.0 +│ ├── cw721-base 0.16.0 +│ │ ├── mars-rover 1.0.0 +│ │ ├── mars-account-nft 2.0.0 +│ │ └── cw721-base 0.18.0 +│ ├── cw721 0.18.0 +│ │ ├── mars-types 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-credit-manager 2.0.3 +│ │ ├── mars-account-nft 2.0.0 +│ │ └── cw721-base 0.18.0 +│ ├── cw721 0.16.0 +│ │ ├── mars-rover 1.0.0 +│ │ └── cw721-base 0.16.0 +│ ├── cw3 1.1.1 +│ │ └── astroport 3.11.1 +│ │ ├── cw-it 0.3.0 +│ │ └── astroport-incentives 1.0.0 +│ │ └── cw-it 0.3.0 +│ ├── cw20-base 0.15.1 +│ │ ├── astroport-token 1.1.1 +│ │ │ └── cw-it 0.3.0 +│ │ └── astroport-liquidity-manager 1.0.3-astroport-v2 +│ │ └── cw-it 0.3.0 +│ ├── cw20 1.1.2 +│ │ ├── cw3 1.1.1 +│ │ ├── cw-dex 0.3.1 +│ │ ├── cw-asset 3.1.1 +│ │ │ ├── astroport 5.0.0-rc.1-tokenfactory +│ │ │ │ ├── mars-zapper-astroport 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ ├── mars-swapper-astroport 2.0.0 +│ │ │ │ ├── mars-oracle-wasm 2.0.0 +│ │ │ │ ├── mars-mock-astroport-incentives 2.0.0 +│ │ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ │ └── mars-incentives 2.0.0 +│ │ │ └── astroport 3.11.1 +│ │ ├── astroport-incentives 1.0.0 +│ │ ├── astroport 5.0.0-rc.1-tokenfactory +│ │ ├── apollo-utils 0.1.2 +│ │ │ ├── mars-zapper-astroport 2.0.0 +│ │ │ └── cw-dex 0.3.1 +│ │ └── apollo-cw-asset 0.1.2 +│ │ ├── mars-zapper-astroport 2.0.0 +│ │ ├── cw-dex 0.3.1 +│ │ └── apollo-utils 0.1.2 +│ ├── cw20 0.15.1 +│ │ ├── cw20-base 0.15.1 +│ │ ├── cw-it 0.3.0 +│ │ ├── astroport-vesting 1.3.1 +│ │ │ └── cw-it 0.3.0 +│ │ ├── astroport-token 1.1.1 +│ │ ├── astroport-staking 1.1.0 +│ │ │ └── cw-it 0.3.0 +│ │ ├── astroport-router 1.1.1 +│ │ │ └── cw-it 0.3.0 +│ │ ├── astroport-pair-stable 2.1.3 +│ │ │ ├── cw-it 0.3.0 +│ │ │ └── astroport-liquidity-manager 1.0.3-astroport-v2 +│ │ ├── astroport-pair-concentrated 1.2.7 +│ │ │ └── cw-it 0.3.0 +│ │ ├── astroport-pair 1.3.2 +│ │ │ ├── cw-it 0.3.0 +│ │ │ └── astroport-liquidity-manager 1.0.3-astroport-v2 +│ │ ├── astroport-maker 1.3.1 +│ │ │ └── cw-it 0.3.0 +│ │ ├── astroport-liquidity-manager 1.0.3-astroport-v2 +│ │ ├── astroport-governance 1.2.0 +│ │ │ ├── astroport-generator 2.3.0 +│ │ │ │ └── cw-it 0.3.0 +│ │ │ └── astro-satellite-package 0.1.0 +│ │ │ └── astroport-maker 1.3.1 +│ │ ├── astroport-generator 2.3.0 +│ │ ├── astroport 3.11.1 +│ │ └── astroport 2.9.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-swapper-astroport 2.0.0 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── cw-it 0.3.0 +│ │ ├── astroport-whitelist 1.0.1 +│ │ │ └── cw-it 0.3.0 +│ │ ├── astroport-vesting 1.3.1 +│ │ ├── astroport-token 1.1.1 +│ │ ├── astroport-staking 1.1.0 +│ │ ├── astroport-router 1.1.1 +│ │ ├── astroport-pair-stable 2.1.3 +│ │ ├── astroport-pair-concentrated 1.2.7 +│ │ ├── astroport-pair 1.3.2 +│ │ ├── astroport-native-coin-registry 1.0.1 +│ │ │ └── cw-it 0.3.0 +│ │ ├── astroport-maker 1.3.1 +│ │ ├── astroport-liquidity-manager 1.0.3-astroport-v2 +│ │ ├── astroport-governance 1.2.0 +│ │ ├── astroport-generator 2.3.0 +│ │ ├── astroport-factory 1.5.1 +│ │ │ ├── cw-it 0.3.0 +│ │ │ ├── astroport-pair-concentrated 1.2.7 +│ │ │ └── astroport-liquidity-manager 1.0.3-astroport-v2 +│ │ └── apollo-cw-asset 0.1.2 +│ ├── cw2 1.1.2 +│ │ ├── mars-zapper-osmosis 2.0.0 +│ │ ├── mars-zapper-base 2.0.0 +│ │ ├── mars-zapper-astroport 2.0.0 +│ │ ├── mars-vault 2.0.0 +│ │ ├── mars-swapper-osmosis 2.0.3 +│ │ ├── mars-swapper-base 2.0.0 +│ │ ├── mars-swapper-astroport 2.0.0 +│ │ ├── mars-rover-health 2.0.0 +│ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ ├── mars-rewards-collector-neutron 2.0.0 +│ │ ├── mars-rewards-collector-base 2.0.0 +│ │ ├── mars-red-bank 2.0.1 +│ │ ├── mars-params 2.0.1 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ ├── mars-oracle-base 2.0.0 +│ │ ├── mars-incentives 2.0.0 +│ │ ├── mars-credit-manager 2.0.3 +│ │ ├── mars-address-provider 2.0.0 +│ │ ├── mars-account-nft 2.0.0 +│ │ ├── ica-oracle 1.0.0 +│ │ ├── cw721-base 0.18.0 +│ │ ├── cw-utils 1.0.3 +│ │ │ ├── mars-zapper-osmosis 2.0.0 +│ │ │ ├── mars-zapper-mock 2.0.0 +│ │ │ ├── mars-zapper-base 2.0.0 +│ │ │ ├── mars-vault 2.0.0 +│ │ │ ├── mars-types 2.0.0 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ ├── mars-rover-health 2.0.0 +│ │ │ ├── mars-rover 1.0.0 +│ │ │ ├── mars-red-bank 2.0.1 +│ │ │ ├── mars-mock-vault 2.0.0 +│ │ │ ├── mars-mock-red-bank 2.0.0 +│ │ │ ├── mars-mock-astroport-incentives 2.0.0 +│ │ │ ├── mars-credit-manager 2.0.3 +│ │ │ ├── cw721-base 0.18.0 +│ │ │ ├── cw721 0.18.0 +│ │ │ ├── cw3 1.1.1 +│ │ │ ├── cw20 1.1.2 +│ │ │ ├── cw-vault-standard 0.4.0 +│ │ │ │ ├── mars-vault 2.0.0 +│ │ │ │ ├── mars-types 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ ├── mars-rover-health 2.0.0 +│ │ │ │ ├── mars-mock-vault 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ ├── cw-vault-standard 0.2.0 +│ │ │ │ └── mars-rover 1.0.0 +│ │ │ ├── cw-ownable 0.5.1 +│ │ │ │ └── cw721-base 0.18.0 +│ │ │ ├── cw-multi-test 0.20.0 +│ │ │ │ ├── mars-vault 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ ├── mars-swapper-mock 2.0.0 +│ │ │ │ ├── mars-rover-health 2.0.0 +│ │ │ │ ├── mars-red-bank 2.0.1 +│ │ │ │ ├── mars-params 2.0.1 +│ │ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ │ ├── mars-credit-manager 2.0.3 +│ │ │ │ └── mars-account-nft 2.0.0 +│ │ │ ├── cw-dex 0.3.1 +│ │ │ ├── astroport-pair-stable 2.1.3 +│ │ │ ├── astroport-incentives 1.0.0 +│ │ │ ├── astroport 5.0.0-rc.1-tokenfactory +│ │ │ ├── astroport 3.11.1 +│ │ │ └── apollo-cw-multi-test 0.18.0 +│ │ └── astroport-incentives 1.0.0 +│ ├── cw2 0.16.0 +│ │ ├── cw721-base 0.16.0 +│ │ └── cw-utils 0.16.0 +│ │ ├── cw721-base 0.16.0 +│ │ └── cw721 0.16.0 +│ ├── cw2 0.15.1 +│ │ ├── cw20-base 0.15.1 +│ │ ├── cw1-whitelist 0.15.1 +│ │ │ ├── astroport-whitelist 1.0.1 +│ │ │ └── astroport-generator 2.3.0 +│ │ ├── cw-utils 0.15.1 +│ │ │ ├── cw20-base 0.15.1 +│ │ │ ├── cw20 0.15.1 +│ │ │ ├── cw1-whitelist 0.15.1 +│ │ │ ├── astroport-vesting 1.3.1 +│ │ │ ├── astroport-pair-concentrated 1.2.7 +│ │ │ └── astroport 2.9.0 +│ │ ├── astroport-whitelist 1.0.1 +│ │ ├── astroport-vesting 1.3.1 +│ │ ├── astroport-token 1.1.1 +│ │ ├── astroport-staking 1.1.0 +│ │ ├── astroport-router 1.1.1 +│ │ ├── astroport-pair-stable 2.1.3 +│ │ ├── astroport-pair-concentrated 1.2.7 +│ │ ├── astroport-pair 1.3.2 +│ │ ├── astroport-native-coin-registry 1.0.1 +│ │ ├── astroport-maker 1.3.1 +│ │ ├── astroport-generator 2.3.0 +│ │ └── astroport-factory 1.5.1 +│ ├── cw1-whitelist 0.15.1 +│ ├── cw1 0.15.1 +│ │ └── cw1-whitelist 0.15.1 +│ ├── cw-vault-standard 0.4.0 +│ ├── cw-vault-standard 0.2.0 +│ ├── cw-utils 1.0.3 +│ ├── cw-utils 0.16.0 +│ ├── cw-utils 0.15.1 +│ ├── cw-storage-plus 1.2.0 +│ │ ├── mars-zapper-mock 2.0.0 +│ │ ├── mars-vault 2.0.0 +│ │ ├── mars-utils 2.0.0 +│ │ ├── mars-types 2.0.0 +│ │ ├── mars-swapper-osmosis 2.0.3 +│ │ ├── mars-swapper-base 2.0.0 +│ │ ├── mars-rover-health 2.0.0 +│ │ ├── mars-rover 1.0.0 +│ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ ├── mars-rewards-collector-base 2.0.0 +│ │ ├── mars-red-bank 2.0.1 +│ │ ├── mars-params 2.0.1 +│ │ ├── mars-owner 2.0.0 +│ │ ├── mars-owner 1.2.0 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ ├── mars-oracle-base 2.0.0 +│ │ ├── mars-mock-vault 2.0.0 +│ │ ├── mars-mock-rover-health 2.0.0 +│ │ ├── mars-mock-red-bank 2.0.0 +│ │ ├── mars-mock-oracle 2.0.0 +│ │ ├── mars-mock-incentives 2.0.0 +│ │ ├── mars-mock-credit-manager 2.0.0 +│ │ ├── mars-mock-astroport-incentives 2.0.0 +│ │ ├── mars-incentives 2.0.0 +│ │ ├── mars-credit-manager 2.0.3 +│ │ ├── mars-address-provider 2.0.0 +│ │ ├── mars-account-nft 2.0.0 +│ │ ├── ica-oracle 1.0.0 +│ │ ├── cw721-base 0.18.0 +│ │ ├── cw2 1.1.2 +│ │ ├── cw-paginate 0.2.2 +│ │ │ ├── mars-vault 2.0.0 +│ │ │ ├── mars-types 2.0.0 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ ├── mars-swapper-base 2.0.0 +│ │ │ ├── mars-red-bank 2.0.1 +│ │ │ ├── mars-params 2.0.1 +│ │ │ ├── mars-mock-red-bank 2.0.0 +│ │ │ ├── mars-mock-incentives 2.0.0 +│ │ │ ├── mars-incentives 2.0.0 +│ │ │ └── mars-credit-manager 2.0.3 +│ │ ├── cw-ownable 0.5.1 +│ │ ├── cw-multi-test 0.20.0 +│ │ ├── cw-dex 0.3.1 +│ │ ├── cw-asset 3.1.1 +│ │ ├── astroport-liquidity-manager 1.0.3-astroport-v2 +│ │ ├── astroport 5.0.0-rc.1-tokenfactory +│ │ ├── apollo-cw-multi-test 0.18.0 +│ │ └── apollo-cw-asset 0.1.2 +│ ├── cw-storage-plus 0.16.0 +│ │ ├── cw721-base 0.16.0 +│ │ └── cw2 0.16.0 +│ ├── cw-storage-plus 0.15.1 +│ │ ├── cw20-base 0.15.1 +│ │ ├── cw2 0.15.1 +│ │ ├── cw1-whitelist 0.15.1 +│ │ ├── astroport-vesting 1.3.1 +│ │ ├── astroport-staking 1.1.0 +│ │ ├── astroport-router 1.1.1 +│ │ ├── astroport-pair-stable 2.1.3 +│ │ ├── astroport-pair-concentrated 1.2.7 +│ │ ├── astroport-pair 1.3.2 +│ │ ├── astroport-native-coin-registry 1.0.1 +│ │ ├── astroport-maker 1.3.1 +│ │ ├── astroport-incentives 1.0.0 +│ │ ├── astroport-governance 1.2.0 +│ │ ├── astroport-generator 2.3.0 +│ │ ├── astroport-factory 1.5.1 +│ │ ├── astroport-circular-buffer 0.2.0 +│ │ │ └── astroport 5.0.0-rc.1-tokenfactory +│ │ ├── astroport-circular-buffer 0.1.0 +│ │ │ └── astroport 3.11.1 +│ │ ├── astroport 3.11.1 +│ │ └── astroport 2.9.0 +│ ├── cw-paginate 0.2.2 +│ ├── cw-ownable 0.5.1 +│ ├── cw-multi-test 0.20.0 +│ ├── cw-it 0.3.0 +│ ├── cw-dex 0.3.1 +│ ├── cw-asset 3.1.1 +│ ├── cw-address-like 1.0.4 +│ │ ├── cw-ownable 0.5.1 +│ │ └── cw-asset 3.1.1 +│ ├── cosmwasm-storage 1.4.1 +│ │ └── astroport-native-coin-registry 1.0.1 +│ ├── astroport-whitelist 1.0.1 +│ ├── astroport-vesting 1.3.1 +│ ├── astroport-token 1.1.1 +│ ├── astroport-staking 1.1.0 +│ ├── astroport-router 1.1.1 +│ ├── astroport-pair-stable 2.1.3 +│ ├── astroport-pair-concentrated 1.2.7 +│ ├── astroport-pair 1.3.2 +│ ├── astroport-native-coin-registry 1.0.1 +│ ├── astroport-maker 1.3.1 +│ ├── astroport-liquidity-manager 1.0.3-astroport-v2 +│ ├── astroport-incentives 1.0.0 +│ ├── astroport-governance 1.2.0 +│ ├── astroport-generator 2.3.0 +│ ├── astroport-factory 1.5.1 +│ ├── astroport-circular-buffer 0.2.0 +│ ├── astroport-circular-buffer 0.1.0 +│ ├── astroport 5.0.0-rc.1-tokenfactory +│ ├── astroport 3.11.1 +│ ├── astroport 2.9.0 +│ ├── astro-satellite-package 0.1.0 +│ ├── apollo-utils 0.1.2 +│ ├── apollo-cw-multi-test 0.18.0 +│ └── apollo-cw-asset 0.1.2 +└── hashbrown 0.11.2 + └── borsh 0.9.3 + └── pyth-sdk 0.7.0 + └── pyth-sdk-cw 1.2.0 + +Crate: cw-vault-standard +Version: 0.4.0 +Warning: yanked +Dependency tree: +cw-vault-standard 0.4.0 +├── mars-vault 2.0.0 +│ ├── mars-testing 2.0.0 +│ │ ├── mars-zapper-astroport 2.0.0 +│ │ ├── mars-vault 2.0.0 +│ │ ├── mars-swapper-osmosis 2.0.3 +│ │ │ └── mars-integration-tests 2.0.0 +│ │ ├── mars-swapper-astroport 2.0.0 +│ │ │ └── mars-testing 2.0.0 +│ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ └── mars-integration-tests 2.0.0 +│ │ ├── mars-rewards-collector-neutron 2.0.0 +│ │ ├── mars-red-bank 2.0.1 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ └── mars-incentives 2.0.0 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ └── mars-integration-tests 2.0.0 +│ │ ├── mars-params 2.0.1 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ ├── mars-rover-health 2.0.0 +│ │ │ │ ├── mars-testing 2.0.0 +│ │ │ │ └── mars-credit-manager 2.0.3 +│ │ │ │ └── mars-testing 2.0.0 +│ │ │ ├── mars-integration-tests 2.0.0 +│ │ │ └── mars-credit-manager 2.0.3 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ │ ├── mars-zapper-astroport 2.0.0 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ └── mars-swapper-astroport 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ │ ├── mars-testing 2.0.0 +│ │ │ └── mars-integration-tests 2.0.0 +│ │ ├── mars-integration-tests 2.0.0 +│ │ ├── mars-incentives 2.0.0 +│ │ ├── mars-health 2.0.0 +│ │ │ ├── mars-red-bank 2.0.1 +│ │ │ └── mars-liquidation 1.0.0 +│ │ │ ├── mars-red-bank 2.0.1 +│ │ │ └── mars-credit-manager 2.0.3 +│ │ ├── mars-credit-manager 2.0.3 +│ │ └── mars-address-provider 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ └── mars-credit-manager 2.0.3 +├── mars-types 2.0.0 +│ ├── mars-zapper-osmosis 2.0.0 +│ ├── mars-zapper-mock 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-zapper-base 2.0.0 +│ │ ├── mars-zapper-osmosis 2.0.0 +│ │ └── mars-zapper-astroport 2.0.0 +│ ├── mars-zapper-astroport 2.0.0 +│ ├── mars-vault 2.0.0 +│ ├── mars-testing 2.0.0 +│ ├── mars-swapper-osmosis 2.0.3 +│ ├── mars-swapper-mock 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-swapper-base 2.0.0 +│ │ ├── mars-swapper-osmosis 2.0.3 +│ │ └── mars-swapper-astroport 2.0.0 +│ ├── mars-swapper-astroport 2.0.0 +│ ├── mars-rover-health-computer 2.0.0 +│ │ └── mars-rover-health 2.0.0 +│ ├── mars-rover-health 2.0.0 +│ ├── mars-rewards-collector-osmosis 2.0.1 +│ ├── mars-rewards-collector-neutron 2.0.0 +│ ├── mars-rewards-collector-base 2.0.0 +│ │ ├── mars-rewards-collector-osmosis 2.0.1 +│ │ └── mars-rewards-collector-neutron 2.0.0 +│ ├── mars-red-bank 2.0.1 +│ ├── mars-params 2.0.1 +│ ├── mars-oracle-wasm 2.0.0 +│ ├── mars-oracle-osmosis 2.0.1 +│ ├── mars-oracle-base 2.0.0 +│ │ ├── mars-oracle-wasm 2.0.0 +│ │ ├── mars-oracle-osmosis 2.0.1 +│ │ └── mars-integration-tests 2.0.0 +│ ├── mars-mock-vault 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-rover-health 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-mock-rover-health 2.0.0 +│ │ └── mars-account-nft 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-mock-red-bank 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-mock-oracle 2.0.0 +│ │ ├── mars-vault 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ ├── mars-rover-health 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-mock-incentives 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-mock-credit-manager 2.0.0 +│ │ ├── mars-rover-health 2.0.0 +│ │ └── mars-account-nft 2.0.0 +│ ├── mars-mock-astroport-incentives 2.0.0 +│ │ ├── mars-testing 2.0.0 +│ │ └── mars-credit-manager 2.0.3 +│ ├── mars-liquidation 1.0.0 +│ ├── mars-interest-rate 2.0.0 +│ │ ├── mars-red-bank 2.0.1 +│ │ └── mars-params 2.0.1 +│ ├── mars-integration-tests 2.0.0 +│ ├── mars-incentives 2.0.0 +│ ├── mars-health 2.0.0 +│ ├── mars-credit-manager 2.0.3 +│ ├── mars-address-provider 2.0.0 +│ └── mars-account-nft 2.0.0 +├── mars-testing 2.0.0 +├── mars-rover-health 2.0.0 +├── mars-mock-vault 2.0.0 +└── mars-credit-manager 2.0.3 + +warning: 4 allowed warnings found +[cargo-make] ERROR - Error while executing command, exit code: 1 +[cargo-make] WARN - Build Failed. diff --git a/contracts/account-nft/Cargo.toml b/contracts/account-nft/Cargo.toml index 5cea3282..fb4e9ef1 100644 --- a/contracts/account-nft/Cargo.toml +++ b/contracts/account-nft/Cargo.toml @@ -36,4 +36,5 @@ cw-multi-test = { workspace = true } mars-mock-credit-manager = { workspace = true } mars-mock-rover-health = { workspace = true } mars-owner = { workspace = true } +proptest = { workspace = true } serde_json = { workspace = true } diff --git a/contracts/account-nft/src/contract.rs b/contracts/account-nft/src/contract.rs index 2426c508..b77d4b46 100644 --- a/contracts/account-nft/src/contract.rs +++ b/contracts/account-nft/src/contract.rs @@ -61,7 +61,8 @@ pub fn execute( match msg { ExecuteMsg::Mint { user, - } => mint(deps, info, &user), + token_id, + } => mint(deps, info, &user, token_id), ExecuteMsg::UpdateConfig { updates, } => update_config(deps, info, updates), diff --git a/contracts/account-nft/src/error.rs b/contracts/account-nft/src/error.rs index 34c1df77..ad9f2075 100644 --- a/contracts/account-nft/src/error.rs +++ b/contracts/account-nft/src/error.rs @@ -26,4 +26,9 @@ pub enum ContractError { #[error("{0}")] Version(#[from] cw2::VersionError), + + #[error("Invalid token_id: {reason}")] + InvalidTokenId { + reason: String, + }, } diff --git a/contracts/account-nft/src/execute.rs b/contracts/account-nft/src/execute.rs index b9d35726..16aece0c 100644 --- a/contracts/account-nft/src/execute.rs +++ b/contracts/account-nft/src/execute.rs @@ -18,14 +18,26 @@ use crate::{ error::ContractError::{ self, BaseError, BurnNotAllowed, CreditManagerContractNotSet, HealthContractNotSet, }, + helpers::validate_token_id, state::{CONFIG, NEXT_ID}, }; -pub fn mint(deps: DepsMut, info: MessageInfo, user: &str) -> Result { - let next_id = NEXT_ID.load(deps.storage)?; - NEXT_ID.save(deps.storage, &(next_id + 1))?; +pub fn mint( + deps: DepsMut, + info: MessageInfo, + user: &str, + token_id: Option, +) -> Result { + let next_id = if let Some(ti) = token_id { + validate_token_id(&ti)?; + ti + } else { + let next_id = NEXT_ID.load(deps.storage)?; + NEXT_ID.save(deps.storage, &(next_id + 1))?; + next_id.to_string() + }; Parent::default() - .mint(deps, info, next_id.to_string(), user.to_string(), None, Empty {}) + .mint(deps, info, next_id, user.to_string(), None, Empty {}) .map_err(Into::into) } diff --git a/contracts/account-nft/src/helpers.rs b/contracts/account-nft/src/helpers.rs new file mode 100644 index 00000000..93052e25 --- /dev/null +++ b/contracts/account-nft/src/helpers.rs @@ -0,0 +1,37 @@ +use crate::error::ContractError; + +/// token_id follows Twitter username/handle rules: +/// - must be more than 4 characters long and can be up to 15 characters or less, +/// - can contain only letters, numbers, and underscores — no spaces are allowed. +/// We won't to overlap with automatic generation of token_id (via `next_id` variable), so we add +/// additional rule to ensure uniqueness of token_id: +/// - should contain at least one letter. +pub fn validate_token_id(token_id: &str) -> Result<(), ContractError> { + if token_id.len() < 4 || token_id.len() > 15 { + return Err(ContractError::InvalidTokenId { + reason: "token_id length should be between 4 and 15 chars".to_string(), + }); + } + + let mut contains_letter = false; + let chars = token_id.chars(); + for c in chars { + if !(c.is_ascii_alphanumeric() || c == '_') { + return Err(ContractError::InvalidTokenId { + reason: "token_id can contain only letters, numbers, and underscores".to_string(), + }); + } + + if c.is_alphabetic() { + contains_letter = true; + } + } + + if !contains_letter { + return Err(ContractError::InvalidTokenId { + reason: "token_id should contain at least one letter".to_string(), + }); + } + + Ok(()) +} diff --git a/contracts/account-nft/src/lib.rs b/contracts/account-nft/src/lib.rs index 0c2c364c..c3abd1f8 100644 --- a/contracts/account-nft/src/lib.rs +++ b/contracts/account-nft/src/lib.rs @@ -1,6 +1,7 @@ pub mod contract; pub mod error; pub mod execute; +mod helpers; pub mod migrations; pub mod query; pub mod state; diff --git a/contracts/account-nft/tests/tests/helpers/mock_env.rs b/contracts/account-nft/tests/tests/helpers/mock_env.rs index 57554eb4..c7fb5337 100644 --- a/contracts/account-nft/tests/tests/helpers/mock_env.rs +++ b/contracts/account-nft/tests/tests/helpers/mock_env.rs @@ -122,11 +122,20 @@ impl MockEnv { } pub fn mint(&mut self, token_owner: &Addr) -> AnyResult { + self.mint_with_custom_token_id(token_owner, None) + } + + pub fn mint_with_custom_token_id( + &mut self, + token_owner: &Addr, + token_id: Option, + ) -> AnyResult { let res = self.app.execute_contract( self.minter.clone(), self.nft_contract.clone(), &ExecuteMsg::Mint { user: token_owner.into(), + token_id, }, &[], )?; diff --git a/contracts/account-nft/tests/tests/test_mint.rs b/contracts/account-nft/tests/tests/test_mint.rs index ca068b0c..9e0cc9c7 100644 --- a/contracts/account-nft/tests/tests/test_mint.rs +++ b/contracts/account-nft/tests/tests/test_mint.rs @@ -7,6 +7,7 @@ use mars_types::{ account_nft::{ExecuteMsg, QueryMsg::OwnerOf}, health::AccountKind, }; +use proptest::prelude::*; use super::helpers::{below_max_for_burn, MockEnv}; @@ -70,6 +71,7 @@ fn only_minter_can_mint() { mock.nft_contract.clone(), &ExecuteMsg::Mint { user: bad_guy.into(), + token_id: None, }, &[], ); @@ -104,3 +106,78 @@ fn normal_base_cw721_actions_can_still_be_taken() { .unwrap(); assert_eq!(res.owner, rover_user_b.to_string()) } + +#[test] +fn invalid_custom_token_id_length() { + let mut mock = MockEnv::new().build().unwrap(); + mock.assert_next_id("1"); + + let user = Addr::unchecked("user_abc"); + + let res = mock.mint_with_custom_token_id(&user, Some("abc".to_string())); + let err: ContractError = res.unwrap_err().downcast().unwrap(); + assert_eq!( + err, + ContractError::InvalidTokenId { + reason: "token_id length should be between 4 and 15 chars".to_string() + } + ); + mock.assert_next_id("1"); + + let res = mock.mint_with_custom_token_id(&user, Some("abcdefghijklmnop".to_string())); + let err: ContractError = res.unwrap_err().downcast().unwrap(); + assert_eq!( + err, + ContractError::InvalidTokenId { + reason: "token_id length should be between 4 and 15 chars".to_string() + } + ); + mock.assert_next_id("1"); +} + +#[test] +fn custom_token_id_can_not_be_same_as_automatically_generated() { + let mut mock = MockEnv::new().build().unwrap(); + mock.assert_next_id("1"); + + let user = Addr::unchecked("user_abc"); + + let res = mock.mint_with_custom_token_id(&user, Some("12345".to_string())); + let err: ContractError = res.unwrap_err().downcast().unwrap(); + assert_eq!( + err, + ContractError::InvalidTokenId { + reason: "token_id should contain at least one letter".to_string() + } + ); + mock.assert_next_id("1"); +} + +proptest! { + #[test] + fn invalid_custom_token_id_characters(token_id in "[!@#$%^&*()-+]{4,15}") { + let mut mock = MockEnv::new().build().unwrap(); + mock.assert_next_id("1"); + + let user = Addr::unchecked("user_abc"); + let res = mock.mint_with_custom_token_id(&user, Some(token_id)); + let err: ContractError = res.unwrap_err().downcast().unwrap(); + prop_assert_eq!(err, ContractError::InvalidTokenId { reason: "token_id can contain only letters, numbers, and underscores".to_string() }); + mock.assert_next_id("1"); + } + + /// The regex pattern ensures that the string: + /// - starts with three characters (letters, digits, or underscores), + /// - contains at least one letter, + /// - can have up to 11 additional characters (letters, digits, or underscores) to fulfill the length requirement. + #[test] + fn valid_custom_token_id(token_id in "[a-zA-Z0-9_]{3}[a-zA-Z][a-zA-Z0-9_]{0,11}") { + let mut mock = MockEnv::new().build().unwrap(); + mock.assert_next_id("1"); + + let user = Addr::unchecked("user_abc"); + let saved_token_id = mock.mint_with_custom_token_id(&user, Some(token_id.clone())).unwrap(); + assert_eq!(saved_token_id, token_id); + mock.assert_next_id("1"); + } +} diff --git a/contracts/address-provider/src/migrations/v2_0_0.rs b/contracts/address-provider/src/migrations/v2_0_0.rs index 53f6dab0..84fa9745 100644 --- a/contracts/address-provider/src/migrations/v2_0_0.rs +++ b/contracts/address-provider/src/migrations/v2_0_0.rs @@ -1,55 +1,17 @@ use cosmwasm_std::{DepsMut, Response}; use cw2::{assert_contract_version, set_contract_version}; -use mars_owner::OwnerInit; use crate::{ contract::{CONTRACT_NAME, CONTRACT_VERSION}, error::ContractError, - state::OWNER, }; -const FROM_VERSION: &str = "1.0.0"; - -pub mod v1_state { - use cosmwasm_schema::cw_serde; - use cosmwasm_std::Addr; - use cw_storage_plus::Item; - - pub const OWNER: Item = Item::new("owner"); - - #[cw_serde] - pub enum OwnerState { - B(OwnerSetNoneProposed), - } - - #[cw_serde] - pub struct OwnerSetNoneProposed { - pub owner: Addr, - } - - pub fn current_owner(state: OwnerState) -> Addr { - match state { - OwnerState::B(b) => b.owner, - } - } -} +const FROM_VERSION: &str = "1.2.0"; pub fn migrate(deps: DepsMut) -> Result { // make sure we're migrating the correct contract and from the correct version assert_contract_version(deps.storage, &format!("crates.io:{CONTRACT_NAME}"), FROM_VERSION)?; - // Owner package updated, re-initializing - let old_owner_state = v1_state::OWNER.load(deps.storage)?; - let old_owner = v1_state::current_owner(old_owner_state); - v1_state::OWNER.remove(deps.storage); - OWNER.initialize( - deps.storage, - deps.api, - OwnerInit::SetInitialOwner { - owner: old_owner.to_string(), - }, - )?; - set_contract_version(deps.storage, format!("crates.io:{CONTRACT_NAME}"), CONTRACT_VERSION)?; Ok(Response::new() diff --git a/contracts/address-provider/tests/tests/test_migration_v2.rs b/contracts/address-provider/tests/tests/test_migration_v2.rs index 178326b9..bf7faa1a 100644 --- a/contracts/address-provider/tests/tests/test_migration_v2.rs +++ b/contracts/address-provider/tests/tests/test_migration_v2.rs @@ -1,17 +1,12 @@ -use cosmwasm_std::{attr, testing::mock_env, Addr, Empty, Event}; +use cosmwasm_std::{attr, testing::mock_env, Empty, Event}; use cw2::{ContractVersion, VersionError}; -use mars_address_provider::{ - contract::migrate, - error::ContractError, - migrations::v2_0_0::v1_state::{self, OwnerSetNoneProposed}, - state::OWNER, -}; +use mars_address_provider::{contract::migrate, error::ContractError}; use mars_testing::mock_dependencies; #[test] fn wrong_contract_name() { let mut deps = mock_dependencies(&[]); - cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.0.0").unwrap(); + cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.2.0").unwrap(); let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); @@ -35,7 +30,7 @@ fn wrong_contract_version() { assert_eq!( err, ContractError::Version(VersionError::WrongVersion { - expected: "1.0.0".to_string(), + expected: "1.2.0".to_string(), found: "4.1.0".to_string() }) ); @@ -44,17 +39,7 @@ fn wrong_contract_version() { #[test] fn successful_migration() { let mut deps = mock_dependencies(&[]); - cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-address-provider", "1.0.0") - .unwrap(); - - let old_owner = "spiderman_246"; - v1_state::OWNER - .save( - deps.as_mut().storage, - &v1_state::OwnerState::B(OwnerSetNoneProposed { - owner: Addr::unchecked(old_owner), - }), - ) + cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-address-provider", "1.2.0") .unwrap(); let res = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap(); @@ -64,7 +49,7 @@ fn successful_migration() { assert!(res.data.is_none()); assert_eq!( res.attributes, - vec![attr("action", "migrate"), attr("from_version", "1.0.0"), attr("to_version", "2.0.0")] + vec![attr("action", "migrate"), attr("from_version", "1.2.0"), attr("to_version", "2.0.0")] ); let new_contract_version = ContractVersion { @@ -72,11 +57,4 @@ fn successful_migration() { version: "2.0.0".to_string(), }; assert_eq!(cw2::get_contract_version(deps.as_ref().storage).unwrap(), new_contract_version); - - let o = OWNER.query(deps.as_ref().storage).unwrap(); - assert_eq!(old_owner.to_string(), o.owner.unwrap()); - assert!(o.proposed.is_none()); - assert!(o.initialized); - assert!(!o.abolished); - assert!(o.emergency_owner.is_none()); } diff --git a/contracts/credit-manager/Cargo.toml b/contracts/credit-manager/Cargo.toml index 6865538a..f1a768f5 100644 --- a/contracts/credit-manager/Cargo.toml +++ b/contracts/credit-manager/Cargo.toml @@ -32,20 +32,23 @@ mars-liquidation = { workspace = true } mars-owner = { workspace = true } mars-types = { workspace = true } mars-utils = { workspace = true } +mars-vault = { workspace = true } thiserror = { workspace = true } [dev-dependencies] -anyhow = { workspace = true } -cw-multi-test = { workspace = true } -itertools = { workspace = true } -mars-account-nft = { workspace = true } -mars-address-provider = { workspace = true } -mars-mock-incentives = { workspace = true } -mars-mock-oracle = { workspace = true } -mars-mock-red-bank = { workspace = true } -mars-mock-vault = { workspace = true } -mars-params = { workspace = true } -mars-rover-health = { workspace = true } -mars-swapper-mock = { workspace = true } -mars-zapper-mock = { workspace = true } -test-case = { workspace = true } +anyhow = { workspace = true } +cw-multi-test = { workspace = true } +itertools = { workspace = true } +mars-account-nft = { workspace = true } +mars-address-provider = { workspace = true } +mars-mock-astroport-incentives = { workspace = true } +mars-mock-incentives = { workspace = true } +mars-mock-oracle = { workspace = true } +mars-mock-red-bank = { workspace = true } +mars-mock-vault = { workspace = true } +mars-params = { workspace = true } +mars-rover-health = { workspace = true } +mars-swapper-mock = { workspace = true } +mars-testing = { workspace = true } +mars-zapper-mock = { workspace = true } +test-case = { workspace = true } diff --git a/contracts/credit-manager/src/claim_astro_lp_rewards.rs b/contracts/credit-manager/src/claim_astro_lp_rewards.rs new file mode 100644 index 00000000..9e1efcd7 --- /dev/null +++ b/contracts/credit-manager/src/claim_astro_lp_rewards.rs @@ -0,0 +1,35 @@ +use cosmwasm_std::{DepsMut, Response}; +use mars_types::traits::Stringify; + +use crate::{ + error::{ContractError, ContractResult}, + state::INCENTIVES, + utils::increment_coin_balance, +}; + +pub fn claim_lp_rewards( + deps: DepsMut, + account_id: &str, + lp_denom: &str, +) -> ContractResult { + let incentives = INCENTIVES.load(deps.storage)?; + + // Query rewards user is receiving, update balance + let rewards = incentives.query_staked_astro_lp_rewards(&deps.querier, account_id, lp_denom)?; + if rewards.is_empty() { + return Err(ContractError::NoAmount); + } + + for reward in rewards.iter() { + increment_coin_balance(deps.storage, account_id, reward)?; + } + + let claim_rewards_msg = incentives.claim_staked_astro_lp_rewards_msg(account_id, lp_denom)?; + let res = Response::new() + .add_message(claim_rewards_msg) + .add_attribute("action", "claim_astro_lp_rewards") + .add_attribute("account_id", account_id) + .add_attribute("rewards", rewards.as_slice().to_string()); + + Ok(res) +} diff --git a/contracts/credit-manager/src/claim_rewards.rs b/contracts/credit-manager/src/claim_rewards.rs index fce2d1a1..6249b584 100644 --- a/contracts/credit-manager/src/claim_rewards.rs +++ b/contracts/credit-manager/src/claim_rewards.rs @@ -1,24 +1,13 @@ -use cosmwasm_std::{ - to_json_binary, Addr, BankMsg, Coin, CosmosMsg, DepsMut, Env, QuerierWrapper, Response, - StdResult, WasmMsg, -}; -use mars_types::{ - credit_manager::{CallbackMsg, ExecuteMsg}, - traits::Denoms, -}; +use cosmwasm_std::{DepsMut, Response}; +use mars_types::traits::Stringify; use crate::{ error::{ContractError, ContractResult}, state::INCENTIVES, - update_coin_balances::query_balance, + utils::increment_coin_balance, }; -pub fn claim_rewards( - deps: DepsMut, - env: Env, - account_id: &str, - recipient: Addr, -) -> ContractResult { +pub fn claim_rewards(deps: DepsMut, account_id: &str) -> ContractResult { let incentives = INCENTIVES.load(deps.storage)?; let unclaimed_rewards = incentives.query_unclaimed_rewards(&deps.querier, account_id)?; @@ -26,77 +15,13 @@ pub fn claim_rewards( return Err(ContractError::NoAmount); } - // Incentive denom may not be listed in params contract. - // When rewards are claimed to the account, they are considered deposits (collateral). - // If the account requires HF check, health contract won't be able to find - // incentive denom params (such as MaxLTV) for HF calculation and the TX will be rejected. - // To address this issue we withdraw all claimed rewards to the recipient address. - let msg = send_rewards_msg( - &deps.querier, - &env.contract.address, - account_id, - recipient.clone(), - unclaimed_rewards.to_denoms(), - )?; + for reward in unclaimed_rewards.iter() { + increment_coin_balance(deps.storage, account_id, reward)?; + } Ok(Response::new() .add_message(incentives.claim_rewards_msg(account_id)?) - .add_message(msg) .add_attribute("action", "claim_rewards") .add_attribute("account_id", account_id) - .add_attribute("recipient", recipient.to_string())) -} - -fn send_rewards_msg( - querier: &QuerierWrapper, - credit_manager_addr: &Addr, - account_id: &str, - recipient: Addr, - denoms: Vec<&str>, -) -> StdResult { - let coins = denoms - .iter() - .map(|denom| query_balance(querier, credit_manager_addr, denom)) - .collect::>>()?; - Ok(CosmosMsg::Wasm(WasmMsg::Execute { - contract_addr: credit_manager_addr.to_string(), - funds: vec![], - msg: to_json_binary(&ExecuteMsg::Callback(CallbackMsg::SendRewardsToAddr { - account_id: account_id.to_string(), - previous_balances: coins, - recipient, - }))?, - })) -} - -pub fn send_rewards( - deps: DepsMut, - credit_manager_addr: &Addr, - account_id: &str, - recipient: Addr, - previous_balances: Vec, -) -> ContractResult { - let coins = previous_balances - .into_iter() - .map(|coin| { - let current_balance = query_balance(&deps.querier, credit_manager_addr, &coin.denom)?; - let amount_to_withdraw = current_balance.amount.checked_sub(coin.amount)?; - Ok(Coin { - denom: coin.denom, - amount: amount_to_withdraw, - }) - }) - .collect::>>()?; - - // send coin to recipient - let transfer_msg = CosmosMsg::Bank(BankMsg::Send { - to_address: recipient.to_string(), - amount: coins, - }); - - Ok(Response::new() - .add_message(transfer_msg) - .add_attribute("action", "callback/send_rewards") - .add_attribute("account_id", account_id) - .add_attribute("recipient", recipient.to_string())) + .add_attribute("rewards", unclaimed_rewards.as_slice().to_string())) } diff --git a/contracts/credit-manager/src/contract.rs b/contracts/credit-manager/src/contract.rs index f0b00900..ae4f1800 100644 --- a/contracts/credit-manager/src/contract.rs +++ b/contracts/credit-manager/src/contract.rs @@ -15,8 +15,8 @@ use crate::{ query::{ query_accounts, query_all_coin_balances, query_all_debt_shares, query_all_total_debt_shares, query_all_vault_positions, query_all_vault_utilizations, - query_config, query_positions, query_total_debt_shares, query_vault_position_value, - query_vault_utilization, + query_config, query_positions, query_total_debt_shares, query_vault_bindings, + query_vault_position_value, query_vault_utilization, }, repay::repay_from_wallet, update_config::{update_config, update_nft_config, update_owner}, @@ -42,13 +42,19 @@ pub fn instantiate( #[cfg_attr(not(feature = "library"), entry_point)] pub fn execute( - deps: DepsMut, + mut deps: DepsMut, env: Env, info: MessageInfo, msg: ExecuteMsg, ) -> ContractResult { match msg { - ExecuteMsg::CreateCreditAccount(kind) => create_credit_account(deps, info.sender, kind), + ExecuteMsg::CreateCreditAccount(kind) => { + create_credit_account(&mut deps, info.sender, kind, None).map(|res| res.1) + } + ExecuteMsg::CreateCreditAccountV2 { + kind, + account_id, + } => create_credit_account(&mut deps, info.sender, kind, account_id).map(|res| res.1), ExecuteMsg::UpdateConfig { updates, } => update_config(deps, env, info, updates), @@ -60,8 +66,9 @@ pub fn execute( ExecuteMsg::Callback(callback) => execute_callback(deps, info, env, callback), ExecuteMsg::UpdateCreditAccount { account_id, + account_kind, actions, - } => dispatch_actions(deps, env, info, &account_id, actions), + } => dispatch_actions(deps, env, info, account_id, account_kind, actions), ExecuteMsg::RepayFromWallet { account_id, } => repay_from_wallet(deps, env, info, account_id), @@ -125,6 +132,10 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> ContractResult { QueryMsg::VaultPositionValue { vault_position, } => to_json_binary(&query_vault_position_value(deps, vault_position)?), + QueryMsg::VaultBindings { + start_after, + limit, + } => to_json_binary(&query_vault_bindings(deps, start_after, limit)?), }; res.map_err(Into::into) } diff --git a/contracts/credit-manager/src/deposit.rs b/contracts/credit-manager/src/deposit.rs index 803fe124..54d663a1 100644 --- a/contracts/credit-manager/src/deposit.rs +++ b/contracts/credit-manager/src/deposit.rs @@ -1,12 +1,12 @@ -use std::collections::BTreeSet; +use std::collections::BTreeMap; -use cosmwasm_std::{Coin, Coins, Deps, DepsMut, Response}; +use cosmwasm_std::{Coin, Coins, Deps, DepsMut, Response, Uint128}; use mars_types::params::TotalDepositResponse; use crate::{ error::{ContractError, ContractResult}, state::PARAMS, - utils::{assert_coin_is_whitelisted, increment_coin_balance}, + utils::increment_coin_balance, }; pub fn deposit( @@ -16,8 +16,6 @@ pub fn deposit( coin: &Coin, received_coins: &mut Coins, ) -> ContractResult { - assert_coin_is_whitelisted(deps, &coin.denom)?; - if coin.amount.is_zero() { return Ok(response); } @@ -50,18 +48,37 @@ fn assert_sent_fund(expected: &Coin, received_coins: &Coins) -> ContractResult<( /// Given a list of denoms, assert that the total deposited amount of each denom /// across Red Bank and Rover does not exceed its deposit cap recorded in the /// params contract. -pub fn assert_deposit_caps(deps: Deps, denoms: BTreeSet) -> ContractResult { +pub fn assert_deposit_caps( + deps: Deps, + denom_deposits: BTreeMap>, +) -> ContractResult { let params = PARAMS.load(deps.storage)?; let mut response = Response::new().add_attribute("action", "callback/assert_deposit_caps"); - for denom in denoms { + for (denom, deposited_opt) in denom_deposits { + // Asset is not found (not whitelisted) and it doesn't count towards the cap and Health Factor + let params_opt = params.query_asset_params(&deps.querier, &denom)?; + if params_opt.is_none() { + continue; + } + let TotalDepositResponse { denom, amount, cap, } = params.query_total_deposit(&deps.querier, &denom)?; + // - If there is None in the map, it means that the deposit cap should be enforced. It is related to the Deposit action. + // - If there is Some in the map, it means that the deposit amount should be compared (value before and after the TX). + // It is related to the SwapExactIn and ProvideLiquidity actions. + if let Some(deposited) = deposited_opt { + // amount is lower than or equal to the previous deposit amount so it is fine + if amount <= deposited { + continue; + } + } + if amount > cap { return Err(ContractError::AboveAssetDepositCap { new_value: Coin { @@ -80,3 +97,61 @@ pub fn assert_deposit_caps(deps: Deps, denoms: BTreeSet) -> ContractResu Ok(response) } + +/// Update the total deposit amount for the asset in the denom_deposits map +/// The function either resets the deposit amount to None for Deposit actions +/// or updates the deposit amount based on the received coins and existing parameters. +pub fn update_or_reset_denom_deposits( + deps: Deps, + denom_deposits: &mut BTreeMap>, + denom: &str, + received_coins: &Coins, + deposit_action: bool, +) -> ContractResult<()> { + // Overwrite the previous amount for Deposit action. + // It means that we don't compare deposits before and after the TX. + // + // Strictly enforce the deposit cap to prevent any increase in total value. + // Even if we use the funds for operations within the account (such as liquidation), + // and withdraw them at the end (resulting in zero net inflow), temporary funds + // could still be used for malicious actions. + if deposit_action { + denom_deposits.insert(denom.to_string(), None); + + return Ok(()); + } + + // Check if the denomination is already in the list. + // This ensures that a Deposit action (which does not have an associated amount) + // is not overwritten by a subsequent Swap or ProvideLiquidity action. + // By confirming the existence of the denomination in the list, we maintain + // the integrity of the original Deposit action. + if denom_deposits.contains_key(denom) { + return Ok(()); + } + + // Load the params + let params = PARAMS.load(deps.storage)?; + + // Asset is not found (not whitelisted) and it doesn't count towards the cap and Health Factor + let params_opt = params.query_asset_params(&deps.querier, denom)?; + if params_opt.is_none() { + return Ok(()); + } + + // Check total deposit amount for the asset + let total_deposit_amt = params.query_total_deposit(&deps.querier, denom)?.amount; + + // Check if the asset was sent in the TX + let received_amt = received_coins.amount_of(denom); + + // Total deposit amount is the sum of all deposits for the asset across Red Bank and Rover. + // If the asset was sent in the TX, the Credit Manager balance already includes the deposited amount + // so we need to subtract it from the total deposit amount to see previous state. + let new_total_deposit_amt = total_deposit_amt.checked_sub(received_amt).unwrap_or_default(); + + // Update the total deposit amount for the asset + denom_deposits.insert(denom.to_string(), Some(new_total_deposit_amt)); + + Ok(()) +} diff --git a/contracts/credit-manager/src/error.rs b/contracts/credit-manager/src/error.rs index 9c79a18e..0091300f 100644 --- a/contracts/credit-manager/src/error.rs +++ b/contracts/credit-manager/src/error.rs @@ -90,6 +90,12 @@ pub enum ContractError { reason: String, }, + #[error("Insufficient funds. Requested {requested:?}, available {available:?}")] + InsufficientFunds { + requested: Uint128, + available: Uint128, + }, + #[error("{reason:?}")] InvalidConfig { reason: String, @@ -110,6 +116,9 @@ pub enum ContractError { #[error("Nothing lent to reclaim")] NoneLent, + #[error("No Astro LP available")] + NoAstroLp, + #[error( "{account_id:?} is not a liquidatable credit account. Health factor: {lqdt_health_factor:?}." )] @@ -189,4 +198,7 @@ pub enum ContractError { #[error("Debt cannot be represented by zero debt shares")] ZeroDebtShares, + + #[error("{0} asset params not found")] + AssetParamsNotFound(String), } diff --git a/contracts/credit-manager/src/execute.rs b/contracts/credit-manager/src/execute.rs index 56544bca..8e0dd5be 100644 --- a/contracts/credit-manager/src/execute.rs +++ b/contracts/credit-manager/src/execute.rs @@ -1,7 +1,8 @@ -use std::collections::BTreeSet; +use std::collections::BTreeMap; use cosmwasm_std::{ - to_json_binary, Addr, Coins, CosmosMsg, DepsMut, Env, MessageInfo, Response, StdResult, WasmMsg, + to_json_binary, Addr, Coins, CosmosMsg, DepsMut, Env, MessageInfo, Response, StdResult, + Uint128, WasmMsg, }; use mars_types::{ account_nft::ExecuteMsg as NftExecuteMsg, @@ -9,23 +10,28 @@ use mars_types::{ health::AccountKind, oracle::ActionKind, }; +use mars_vault::msg::{ExecuteMsg, ExtensionExecuteMsg}; use crate::{ borrow::borrow, - claim_rewards::{claim_rewards, send_rewards}, - deposit::{assert_deposit_caps, deposit}, + claim_astro_lp_rewards::claim_lp_rewards, + claim_rewards::claim_rewards, + deposit::{assert_deposit_caps, deposit, update_or_reset_denom_deposits}, error::{ContractError, ContractResult}, health::{assert_max_ltv, query_health_state}, hls::assert_hls_rules, lend::lend, liquidate::assert_not_self_liquidation, + liquidate_astro_lp::liquidate_astro_lp, liquidate_deposit::liquidate_deposit, liquidate_lend::liquidate_lend, reclaim::reclaim, refund::refund_coin_balances, repay::{repay, repay_for_recipient}, - state::{ACCOUNT_KINDS, ACCOUNT_NFT, REENTRANCY_GUARD}, + stake_astro_lp::stake_lp, + state::{ACCOUNT_KINDS, ACCOUNT_NFT, REENTRANCY_GUARD, VAULTS}, swap::swap_exact_in, + unstake_astro_lp::unstake_lp, update_coin_balances::{update_coin_balance, update_coin_balance_after_vault_liquidation}, utils::{assert_is_token_owner, get_account_kind}, vault::{ @@ -37,40 +43,91 @@ use crate::{ }; pub fn create_credit_account( - deps: DepsMut, + deps: &mut DepsMut, user: Addr, kind: AccountKind, -) -> ContractResult { + account_id: Option, +) -> ContractResult<(String, Response)> { let account_nft = ACCOUNT_NFT.load(deps.storage)?; - let next_id = account_nft.query_next_id(&deps.querier)?; - ACCOUNT_KINDS.save(deps.storage, &next_id, &kind)?; + let next_id = if let Some(ai) = account_id.clone() { + ai + } else { + account_nft.query_next_id(&deps.querier)? + }; + let mut msgs = vec![]; let nft_mint_msg = CosmosMsg::Wasm(WasmMsg::Execute { contract_addr: account_nft.address().into(), funds: vec![], msg: to_json_binary(&NftExecuteMsg::Mint { user: user.to_string(), + token_id: account_id, })?, }); + msgs.push(nft_mint_msg); + + if let AccountKind::FundManager { + vault_addr, + } = &kind + { + let vault = deps.api.addr_validate(vault_addr)?; + + VAULTS.save(deps.storage, &next_id, &vault)?; + + let bind_msg = CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: vault.into(), + funds: vec![], + msg: to_json_binary(&ExecuteMsg::VaultExtension( + ExtensionExecuteMsg::BindCreditManagerAccount { + account_id: next_id.clone(), + }, + ))?, + }); + msgs.push(bind_msg); + } - Ok(Response::new() - .add_message(nft_mint_msg) + ACCOUNT_KINDS.save(deps.storage, &next_id, &kind)?; + + let response = Response::new() + .add_messages(msgs) .add_attribute("action", "create_credit_account") - .add_attribute("kind", kind.to_string())) + .add_attribute("kind", kind.to_string()) + .add_attribute("account_id", next_id.clone()); + + Ok((next_id, response)) } pub fn dispatch_actions( mut deps: DepsMut, env: Env, info: MessageInfo, - account_id: &str, + account_id: Option, + account_kind: Option, actions: Vec, ) -> ContractResult { - assert_is_token_owner(&deps, &info.sender, account_id)?; + let mut response = Response::new(); + + let account_id = match account_id { + Some(acc_id) => { + validate_account(&deps, &info, &acc_id, &actions)?; + acc_id + } + None => { + let (acc_id, res) = create_credit_account( + &mut deps, + info.sender.clone(), + account_kind.unwrap_or(AccountKind::Default), + None, + )?; + response = res; + acc_id + } + }; + let account_id = &account_id; + REENTRANCY_GUARD.try_lock(deps.storage)?; - let mut response = Response::new(); let mut callbacks: Vec = vec![]; let mut received_coins = Coins::try_from(info.funds)?; @@ -95,17 +152,15 @@ pub fn dispatch_actions( None }; - // We use a Set to record all denoms whose deposited amount may go up as the + // We use a Map to record all denoms whose deposited amount may go up as the // result of any action. We invoke the AssertDepositCaps callback in the end // to make sure that none of the deposit cap is exceeded. // - // Additionally, we use a BTreeSet (instead of a Vec or HashSet) to ensure - // uniqueness and determininism. - // // There are a few actions that may result in an asset's deposit amount // going up: // - Deposit: we check the deposited denom // - SwapExactIn: we check the output denom + // - ProvideLiquidity: we check the LP token denom // - ClaimRewards: we don't check here; the reward amount is likely small so // won't have much impact; this is also difficult to handle given that now // we have multi-rewards @@ -115,20 +170,36 @@ pub fn dispatch_actions( // Note that Borrow/Lend/Reclaim does not impact total deposit amount, // because they simply move assets between Red Bank and Rover. We don't // check these actions. - let mut denoms_for_cap_check = BTreeSet::new(); + // If there is None in the map, it means that the deposit cap should be enforced, + // otherwise it should compare deposit amount before and after the TX. + let mut denoms_for_cap_check: BTreeMap> = BTreeMap::new(); for action in actions { match action { Action::Deposit(coin) => { response = deposit(&mut deps, response, account_id, &coin, &mut received_coins)?; - // check the deposit cap of the deposited denom - denoms_for_cap_check.insert(coin.denom); + // add the denom to the map to check the deposit cap in the end of the TX + update_or_reset_denom_deposits( + deps.as_ref(), + &mut denoms_for_cap_check, + &coin.denom, + &received_coins, + true, + )?; } Action::Withdraw(coin) => callbacks.push(CallbackMsg::Withdraw { account_id: account_id.to_string(), coin, recipient: info.sender.clone(), }), + Action::WithdrawToWallet { + coin, + recipient, + } => callbacks.push(CallbackMsg::Withdraw { + account_id: account_id.to_string(), + coin, + recipient: deps.api.addr_validate(&recipient)?, + }), Action::Borrow(coin) => callbacks.push(CallbackMsg::Borrow { account_id: account_id.to_string(), coin, @@ -160,7 +231,6 @@ pub fn dispatch_actions( }), Action::ClaimRewards {} => callbacks.push(CallbackMsg::ClaimRewards { account_id: account_id.to_string(), - recipient: info.sender.clone(), }), Action::EnterVault { vault, @@ -199,22 +269,36 @@ pub fn dispatch_actions( position_type, }, }), + LiquidateRequest::StakedAstroLp(lp_denom) => { + callbacks.push(CallbackMsg::Liquidate { + liquidator_account_id: account_id.to_string(), + liquidatee_account_id: liquidatee_account_id.to_string(), + debt_coin, + request: LiquidateRequest::StakedAstroLp(lp_denom), + }) + } }, Action::SwapExactIn { coin_in, denom_out, - slippage, + min_receive, route, } => { callbacks.push(CallbackMsg::SwapExactIn { account_id: account_id.to_string(), coin_in, denom_out: denom_out.clone(), - slippage, + min_receive, route, }); - // check the deposit cap of the swap output denom - denoms_for_cap_check.insert(denom_out); + // add the output denom to the map to check the deposit cap in the end of the TX + update_or_reset_denom_deposits( + deps.as_ref(), + &mut denoms_for_cap_check, + &denom_out, + &received_coins, + false, + )?; } Action::ExitVault { vault, @@ -244,12 +328,23 @@ pub fn dispatch_actions( coins_in, lp_token_out, slippage, - } => callbacks.push(CallbackMsg::ProvideLiquidity { - account_id: account_id.to_string(), - lp_token_out, - coins_in, - slippage, - }), + } => { + callbacks.push(CallbackMsg::ProvideLiquidity { + account_id: account_id.to_string(), + lp_token_out: lp_token_out.clone(), + coins_in, + slippage, + }); + + // add the LP output denom to the map to check the deposit cap in the end of the TX + update_or_reset_denom_deposits( + deps.as_ref(), + &mut denoms_for_cap_check, + &lp_token_out, + &received_coins, + false, + )?; + } Action::WithdrawLiquidity { lp_token, slippage, @@ -258,6 +353,24 @@ pub fn dispatch_actions( lp_token, slippage, }), + Action::StakeAstroLp { + lp_token, + } => callbacks.push(CallbackMsg::StakeAstroLp { + account_id: account_id.to_string(), + lp_token, + }), + Action::UnstakeAstroLp { + lp_token, + } => callbacks.push(CallbackMsg::UnstakeAstroLp { + account_id: account_id.to_string(), + lp_token, + }), + Action::ClaimAstroLpRewards { + lp_denom, + } => callbacks.push(CallbackMsg::ClaimAstroLpRewards { + account_id: account_id.to_string(), + lp_denom, + }), Action::RefundAllCoinBalances {} => { callbacks.push(CallbackMsg::RefundAllCoinBalances { account_id: account_id.to_string(), @@ -312,6 +425,51 @@ pub fn dispatch_actions( .add_attribute("account_id", account_id.to_string())) } +fn validate_account( + deps: &DepsMut, + info: &MessageInfo, + acc_id: &String, + actions: &[Action], +) -> Result<(), ContractError> { + let kind = get_account_kind(deps.storage, acc_id)?; + match kind { + // Fund manager wallet can interact with the account managing the vault funds. + // This wallet can't deposit/withdraw from the account directly. + AccountKind::FundManager { + vault_addr, + } if info.sender != vault_addr => { + assert_is_token_owner(deps, &info.sender, acc_id)?; + + let actions_not_allowed = actions.iter().any(|action| { + matches!( + action, + Action::Deposit(..) + | Action::Withdraw(..) + | Action::RefundAllCoinBalances {} + | Action::WithdrawToWallet { .. } + ) + }); + if actions_not_allowed { + return Err(ContractError::Unauthorized { + user: acc_id.to_string(), + action: "deposit, withdraw, refund_all_coin_balances, withdraw_to_wallet" + .to_string(), + }); + } + } + // Fund manager vault can interact with the account managed by the fund manager wallet. + // This vault can use the account without any restrictions. + AccountKind::FundManager { + .. + } => {} + AccountKind::Default | AccountKind::HighLeveredStrategy => { + assert_is_token_owner(deps, &info.sender, acc_id)? + } + } + + Ok(()) +} + pub fn execute_callback( deps: DepsMut, info: MessageInfo, @@ -350,8 +508,7 @@ pub fn execute_callback( } => reclaim(deps, &account_id, &coin), CallbackMsg::ClaimRewards { account_id, - recipient, - } => claim_rewards(deps, env, &account_id, recipient), + } => claim_rewards(deps, &account_id), CallbackMsg::AssertMaxLTV { account_id, prev_health_state, @@ -411,15 +568,23 @@ pub fn execute_callback( request_vault, position_type, ), + LiquidateRequest::StakedAstroLp(request_coin_denom) => liquidate_astro_lp( + deps, + env, + &liquidator_account_id, + &liquidatee_account_id, + debt_coin, + &request_coin_denom, + ), } } CallbackMsg::SwapExactIn { account_id, coin_in, denom_out, - slippage, + min_receive, route, - } => swap_exact_in(deps, env, &account_id, &coin_in, &denom_out, slippage, route), + } => swap_exact_in(deps, env, &account_id, &coin_in, &denom_out, min_receive, route), CallbackMsg::UpdateCoinBalance { account_id, previous_balance, @@ -472,10 +637,17 @@ pub fn execute_callback( REENTRANCY_GUARD.try_unlock(deps.storage)?; Ok(Response::new().add_attribute("action", "remove_reentrancy_guard")) } - CallbackMsg::SendRewardsToAddr { + CallbackMsg::StakeAstroLp { account_id, - previous_balances, - recipient, - } => send_rewards(deps, &env.contract.address, &account_id, recipient, previous_balances), + lp_token, + } => stake_lp(deps, &account_id, lp_token), + CallbackMsg::UnstakeAstroLp { + account_id, + lp_token, + } => unstake_lp(deps, &account_id, lp_token), + CallbackMsg::ClaimAstroLpRewards { + account_id, + lp_denom, + } => claim_lp_rewards(deps, &account_id, &lp_denom), } } diff --git a/contracts/credit-manager/src/hls.rs b/contracts/credit-manager/src/hls.rs index 65246464..dd74b3bf 100644 --- a/contracts/credit-manager/src/hls.rs +++ b/contracts/credit-manager/src/hls.rs @@ -1,5 +1,5 @@ use cosmwasm_std::{Deps, Response}; -use mars_types::{health::AccountKind, params::HlsAssetType}; +use mars_types::{credit_manager::Positions, health::AccountKind, params::HlsAssetType}; use crate::{ error::{ContractError, ContractResult}, @@ -9,16 +9,28 @@ use crate::{ pub fn assert_hls_rules(deps: Deps, account_id: &str) -> ContractResult { // Rule #1 - There can only be 0 or 1 debt denom in the account - let positions = query_positions(deps, account_id)?; + let Positions { + // destruct Positions so whenever we add new positions we don't forget to add them here + account_id, + account_kind: _, + deposits: _, + debts, + lends, + vaults, + staked_astro_lps, + } = query_positions(deps, account_id)?; - if positions.debts.len() > 1 { + if debts.len() > 1 { return Err(ContractError::HLS { reason: "Account has more than one debt denom".to_string(), }); } - if let Some(debt) = positions.debts.first() { - let params = PARAMS.load(deps.storage)?.query_asset_params(&deps.querier, &debt.denom)?; + if let Some(debt) = debts.first() { + let params = PARAMS + .load(deps.storage)? + .query_asset_params(&deps.querier, &debt.denom)? + .ok_or(ContractError::AssetParamsNotFound(debt.denom.to_string()))?; // Rule #2: Debt denom must have HLS params set in the Mars-Param contract let Some(hls) = params.credit_manager.hls else { @@ -27,59 +39,61 @@ pub fn assert_hls_rules(deps: Deps, account_id: &str) -> ContractResult &deposit.denom == denom, + } => &lend.denom == denom, _ => false, }) .ok_or_else(|| ContractError::HLS { reason: format!( - "{} deposit is not a correlated asset to debt {}", - deposit.denom, debt.denom + "{} lend is not a correlated asset to debt {}", + lend.denom, debt.denom ), })?; } - // === Lends === - for lend in positions.lends.iter() { + // === Vault positions === + for v in vaults.iter() { hls.correlations .iter() .find(|h| match h { - HlsAssetType::Coin { - denom, - } => &lend.denom == denom, + HlsAssetType::Vault { + addr, + } => v.vault.address == addr, _ => false, }) .ok_or_else(|| ContractError::HLS { reason: format!( - "{} lend is not a correlated asset to debt {}", - lend.denom, debt.denom + "{} vault is not a correlated asset to debt {}", + v.vault.address, debt.denom ), })?; } - // === Vault positions === - for v in positions.vaults.iter() { + // === Staked Astro LP positions === + for staked_astro_lp in staked_astro_lps.iter() { hls.correlations .iter() .find(|h| match h { - HlsAssetType::Vault { - addr, - } => v.vault.address == addr, + HlsAssetType::Coin { + denom, + } => &staked_astro_lp.denom == denom, _ => false, }) .ok_or_else(|| ContractError::HLS { reason: format!( - "{} vault is not a correlated asset to debt {}", - v.vault.address, debt.denom + "{} staked astro lp is not a correlated asset to debt {}", + staked_astro_lp.denom, debt.denom ), })?; } diff --git a/contracts/credit-manager/src/lend.rs b/contracts/credit-manager/src/lend.rs index d087655b..c1ef32af 100644 --- a/contracts/credit-manager/src/lend.rs +++ b/contracts/credit-manager/src/lend.rs @@ -2,7 +2,7 @@ use cosmwasm_std::{Coin, Deps, DepsMut, Response, Uint128}; use mars_types::credit_manager::ActionCoin; use crate::{ - error::{ContractError, ContractResult}, + error::ContractResult, state::{COIN_BALANCES, RED_BANK}, utils::{assert_coin_is_whitelisted, decrement_coin_balance}, }; @@ -15,29 +15,29 @@ pub fn lend(mut deps: DepsMut, account_id: &str, coin: &ActionCoin) -> ContractR amount: get_lend_amount(deps.as_ref(), account_id, coin)?, }; - decrement_coin_balance(deps.storage, account_id, &amount_to_lend)?; + // Don't error if there is zero amount to lend - just return an empty response + let mut res = Response::new(); + if !amount_to_lend.amount.is_zero() { + decrement_coin_balance(deps.storage, account_id, &amount_to_lend)?; - let red_bank_lend_msg = RED_BANK.load(deps.storage)?.lend_msg(&amount_to_lend, account_id)?; + let red_bank_lend_msg = + RED_BANK.load(deps.storage)?.lend_msg(&amount_to_lend, account_id)?; - Ok(Response::new() - .add_message(red_bank_lend_msg) + res = res.add_message(red_bank_lend_msg); + } + + Ok(res .add_attribute("action", "lend") .add_attribute("account_id", account_id) .add_attribute("coin_lent", &amount_to_lend.denom)) } -/// Queries balance to ensure passing EXACT is not too high. -/// Also asserts the amount is greater than zero. +/// Queries balance to ensure passing EXACT is not too high fn get_lend_amount(deps: Deps, account_id: &str, coin: &ActionCoin) -> ContractResult { let amount_to_lend = if let Some(amount) = coin.amount.value() { amount } else { COIN_BALANCES.may_load(deps.storage, (account_id, &coin.denom))?.unwrap_or(Uint128::zero()) }; - - if amount_to_lend.is_zero() { - Err(ContractError::NoAmount) - } else { - Ok(amount_to_lend) - } + Ok(amount_to_lend) } diff --git a/contracts/credit-manager/src/lib.rs b/contracts/credit-manager/src/lib.rs index fe6be5fe..323948a4 100644 --- a/contracts/credit-manager/src/lib.rs +++ b/contracts/credit-manager/src/lib.rs @@ -1,4 +1,5 @@ pub mod borrow; +pub mod claim_astro_lp_rewards; pub mod claim_rewards; pub mod contract; pub mod deposit; @@ -9,6 +10,7 @@ pub mod hls; pub mod instantiate; pub mod lend; pub mod liquidate; +pub mod liquidate_astro_lp; pub mod liquidate_deposit; pub mod liquidate_lend; pub mod migrations; @@ -16,8 +18,10 @@ pub mod query; pub mod reclaim; pub mod refund; pub mod repay; +pub mod stake_astro_lp; pub mod state; pub mod swap; +pub mod unstake_astro_lp; pub mod update_coin_balances; pub mod update_config; pub mod utils; diff --git a/contracts/credit-manager/src/liquidate.rs b/contracts/credit-manager/src/liquidate.rs index 498b93f6..9c3c20b2 100644 --- a/contracts/credit-manager/src/liquidate.rs +++ b/contracts/credit-manager/src/liquidate.rs @@ -39,7 +39,9 @@ pub fn calculate_liquidation( let params = PARAMS.load(deps.storage)?; let target_health_factor = params.query_target_health_factor(&deps.querier)?; - let request_coin_params = params.query_asset_params(&deps.querier, request_coin)?; + let request_coin_params = params + .query_asset_params(&deps.querier, request_coin)? + .ok_or(ContractError::AssetParamsNotFound(request_coin.to_string()))?; let oracle = ORACLE.load(deps.storage)?; let debt_coin_price = diff --git a/contracts/credit-manager/src/liquidate_astro_lp.rs b/contracts/credit-manager/src/liquidate_astro_lp.rs new file mode 100644 index 00000000..fce60c01 --- /dev/null +++ b/contracts/credit-manager/src/liquidate_astro_lp.rs @@ -0,0 +1,78 @@ +use cosmwasm_std::{Coin, DepsMut, Env, Response}; + +use crate::{ + error::{ContractError::NoAstroLp, ContractResult}, + liquidate::calculate_liquidation, + liquidate_deposit::repay_debt, + state::{INCENTIVES, REWARDS_COLLECTOR}, + utils::increment_coin_balance, +}; + +pub fn liquidate_astro_lp( + deps: DepsMut, + env: Env, + liquidator_account_id: &str, + liquidatee_account_id: &str, + debt_coin: Coin, + request_coin_denom: &str, +) -> ContractResult { + let incentives = INCENTIVES.load(deps.storage)?; + + // Check how much LP coins is available for withdraw (can be withdrawn from Astro) + let lp_position = incentives.query_staked_astro_lp_position( + &deps.querier, + liquidatee_account_id, + request_coin_denom, + )?; + let total_lp_amount = lp_position.lp_coin.amount; + + if total_lp_amount.is_zero() { + return Err(NoAstroLp); + } + + let (debt, liquidator_request, liquidatee_request) = calculate_liquidation( + &deps, + liquidatee_account_id, + &debt_coin, + request_coin_denom, + total_lp_amount, + )?; + + // Rewards are not accounted for in the liquidation calculation (health computer includes + // only staked astro lps in HF calculation). + // Rewards could increase the HF (they increase deposit balance - collateral), but the impact + // is minimal and additional complexity is not worth it. + // We only update liquidatee's balance with rewards. + for reward in lp_position.rewards.iter() { + increment_coin_balance(deps.storage, liquidatee_account_id, reward)?; + } + + // Liquidator pays down debt on behalf of liquidatee + let repay_msg = + repay_debt(deps.storage, &env, liquidator_account_id, liquidatee_account_id, &debt)?; + + // Liquidatee's LP coin withdrawn from Astro + let withdraw_from_liquidatee_msg = + incentives.unstake_astro_lp_msg(liquidatee_account_id, &liquidatee_request)?; + + // Liquidator gets portion of withdrawn LP coin + increment_coin_balance(deps.storage, liquidator_account_id, &liquidator_request)?; + + // Transfer protocol fee to rewards-collector account + let rewards_collector_account = REWARDS_COLLECTOR.load(deps.storage)?.account_id; + let protocol_fee_coin = Coin { + denom: request_coin_denom.to_string(), + amount: liquidatee_request.amount.checked_sub(liquidator_request.amount)?, + }; + increment_coin_balance(deps.storage, &rewards_collector_account, &protocol_fee_coin)?; + + Ok(Response::new() + .add_message(repay_msg) + .add_message(withdraw_from_liquidatee_msg) + .add_attribute("action", "liquidate_astro_lp") + .add_attribute("account_id", liquidator_account_id) + .add_attribute("liquidatee_account_id", liquidatee_account_id) + .add_attribute("coin_debt_repaid", debt.to_string()) + .add_attribute("coin_liquidated", liquidatee_request.to_string()) + .add_attribute("protocol_fee_coin", protocol_fee_coin.to_string())) +} diff --git a/contracts/credit-manager/src/query.rs b/contracts/credit-manager/src/query.rs index 990ad2fb..3a2bd97d 100644 --- a/contracts/credit-manager/src/query.rs +++ b/contracts/credit-manager/src/query.rs @@ -1,11 +1,11 @@ use cosmwasm_std::{Coin, Deps, Env, Order, StdResult}; -use cw_paginate::{paginate_map, PaginationResponse}; +use cw_paginate::{paginate_map, paginate_map_query, PaginationResponse, DEFAULT_LIMIT, MAX_LIMIT}; use cw_storage_plus::Bound; use mars_types::{ adapters::vault::{Vault, VaultBase, VaultPosition, VaultPositionValue, VaultUnchecked}, credit_manager::{ Account, CoinBalanceResponseItem, ConfigResponse, DebtAmount, DebtShares, Positions, - SharesResponseItem, VaultPositionResponseItem, VaultUtilizationResponse, + SharesResponseItem, VaultBinding, VaultPositionResponseItem, VaultUtilizationResponse, }, health::AccountKind, oracle::ActionKind, @@ -16,7 +16,7 @@ use crate::{ state::{ ACCOUNT_KINDS, ACCOUNT_NFT, COIN_BALANCES, DEBT_SHARES, HEALTH_CONTRACT, INCENTIVES, MAX_SLIPPAGE, MAX_UNLOCKING_POSITIONS, ORACLE, OWNER, PARAMS, RED_BANK, REWARDS_COLLECTOR, - SWAPPER, TOTAL_DEBT_SHARES, VAULT_POSITIONS, ZAPPER, + SWAPPER, TOTAL_DEBT_SHARES, VAULTS, VAULT_POSITIONS, ZAPPER, }, utils::debt_shares_to_amount, vault::vault_utilization_in_deposit_cap_denom, @@ -65,10 +65,14 @@ pub fn query_config(deps: Deps) -> ContractResult { pub fn query_positions(deps: Deps, account_id: &str) -> ContractResult { Ok(Positions { account_id: account_id.to_string(), + account_kind: ACCOUNT_KINDS.load(deps.storage, account_id).unwrap_or(AccountKind::Default), deposits: query_coin_balances(deps, account_id)?, debts: query_debt_amounts(deps, account_id)?, lends: RED_BANK.load(deps.storage)?.query_all_lent(&deps.querier, account_id)?, vaults: query_vault_positions(deps, account_id)?, + staked_astro_lps: INCENTIVES + .load(deps.storage)? + .query_all_staked_astro_lp_coins(&deps.querier, account_id)?, }) } @@ -259,3 +263,19 @@ pub fn query_vault_position_value( let oracle = ORACLE.load(deps.storage)?; vault_position.query_values(&deps.querier, &oracle, ActionKind::Default) } + +pub fn query_vault_bindings( + deps: Deps, + start_after: Option, + limit: Option, +) -> ContractResult> { + let start = start_after.map(|acc_id| Bound::ExclusiveRaw(acc_id.into_bytes())); + let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT); + + paginate_map_query(&VAULTS, deps.storage, start, Some(limit), |account_id, vault_addr| { + Ok(VaultBinding { + account_id, + vault_address: vault_addr.to_string(), + }) + }) +} diff --git a/contracts/credit-manager/src/stake_astro_lp.rs b/contracts/credit-manager/src/stake_astro_lp.rs new file mode 100644 index 00000000..92067749 --- /dev/null +++ b/contracts/credit-manager/src/stake_astro_lp.rs @@ -0,0 +1,54 @@ +use cosmwasm_std::{coin, DepsMut, Response}; +use mars_types::{ + credit_manager::{ActionAmount, ActionCoin}, + traits::Stringify, +}; + +use crate::{ + error::{ContractError, ContractResult}, + state::{COIN_BALANCES, INCENTIVES}, + utils::{decrement_coin_balance, increment_coin_balance}, +}; + +pub fn stake_lp(deps: DepsMut, account_id: &str, lp_coin: ActionCoin) -> ContractResult { + let incentives = INCENTIVES.load(deps.storage)?; + + // Query rewards user is receiving to update their balances + let rewards = incentives.query_staked_astro_lp_rewards( + &deps.querier, + account_id, + lp_coin.denom.as_str(), + )?; + + let coin_balance = + COIN_BALANCES.may_load(deps.storage, (account_id, &lp_coin.denom))?.unwrap_or_default(); + let new_amount = match lp_coin.amount { + ActionAmount::Exact(amt) => amt, + ActionAmount::AccountBalance => coin_balance, + }; + + if new_amount.is_zero() { + return Err(ContractError::NoAmount); + }; + + let updated_coin = coin(new_amount.u128(), lp_coin.denom.as_str()); + + decrement_coin_balance(deps.storage, account_id, &updated_coin)?; + + for reward in rewards.iter() { + increment_coin_balance(deps.storage, account_id, reward)?; + } + + // stake msg + let stake_msg = incentives.stake_astro_lp_msg(account_id, updated_coin)?; + let mut res = Response::new() + .add_message(stake_msg) + .add_attribute("action", "stake_astro_lp") + .add_attribute("account_id", account_id); + + if !rewards.is_empty() { + res = res.add_attribute("rewards", rewards.as_slice().to_string()); + } + + Ok(res) +} diff --git a/contracts/credit-manager/src/state.rs b/contracts/credit-manager/src/state.rs index cbe7fd94..7931494b 100644 --- a/contracts/credit-manager/src/state.rs +++ b/contracts/credit-manager/src/state.rs @@ -43,3 +43,6 @@ pub const VAULT_REQUEST_TEMP_STORAGE: Item = // (account id, addr) for rewards-collector contract pub const REWARDS_COLLECTOR: Item = Item::new("rewards_collector"); + +// (account id, vault addr) bindings between account and vault +pub const VAULTS: Map<&str, Addr> = Map::new("vaults"); diff --git a/contracts/credit-manager/src/swap.rs b/contracts/credit-manager/src/swap.rs index a80c14eb..af8b2f69 100644 --- a/contracts/credit-manager/src/swap.rs +++ b/contracts/credit-manager/src/swap.rs @@ -1,4 +1,4 @@ -use cosmwasm_std::{Coin, Decimal, DepsMut, Env, Response, Uint128}; +use cosmwasm_std::{Coin, DepsMut, Env, Response, Uint128}; use mars_types::{ credit_manager::{ActionAmount, ActionCoin, ChangeExpected}, swapper::SwapperRoute, @@ -7,24 +7,18 @@ use mars_types::{ use crate::{ error::{ContractError, ContractResult}, state::{COIN_BALANCES, SWAPPER}, - utils::{ - assert_coin_is_whitelisted, assert_slippage, decrement_coin_balance, update_balance_msg, - }, + utils::{decrement_coin_balance, update_balance_msg}, }; pub fn swap_exact_in( - mut deps: DepsMut, + deps: DepsMut, env: Env, account_id: &str, coin_in: &ActionCoin, denom_out: &str, - slippage: Decimal, + min_receive: Uint128, route: Option, ) -> ContractResult { - assert_slippage(deps.storage, slippage)?; - - assert_coin_is_whitelisted(&mut deps, denom_out)?; - let coin_in_to_trade = Coin { denom: coin_in.denom.clone(), amount: match coin_in.amount { @@ -53,7 +47,7 @@ pub fn swap_exact_in( let swapper = SWAPPER.load(deps.storage)?; Ok(Response::new() - .add_message(swapper.swap_exact_in_msg(&coin_in_to_trade, denom_out, slippage, route)?) + .add_message(swapper.swap_exact_in_msg(&coin_in_to_trade, denom_out, min_receive, route)?) .add_message(update_coin_balance_msg) .add_attribute("action", "swapper") .add_attribute("account_id", account_id) diff --git a/contracts/credit-manager/src/unstake_astro_lp.rs b/contracts/credit-manager/src/unstake_astro_lp.rs new file mode 100644 index 00000000..be6a584f --- /dev/null +++ b/contracts/credit-manager/src/unstake_astro_lp.rs @@ -0,0 +1,63 @@ +use cosmwasm_std::{coin, DepsMut, Response}; +use mars_types::{ + credit_manager::{ActionAmount, ActionCoin}, + traits::Stringify, +}; + +use crate::{ + error::{ContractError, ContractResult}, + state::INCENTIVES, + utils::increment_coin_balance, +}; + +pub fn unstake_lp( + deps: DepsMut, + account_id: &str, + lp_coin: ActionCoin, +) -> ContractResult { + let incentives = INCENTIVES.load(deps.storage)?; + + // Query rewards user is receiving, update balance + let lp_position = incentives.query_staked_astro_lp_position( + &deps.querier, + account_id, + lp_coin.denom.as_str(), + )?; + + for reward in lp_position.rewards.iter() { + increment_coin_balance(deps.storage, account_id, reward)?; + } + + let amount_to_unstake = match lp_coin.amount { + ActionAmount::Exact(amt) => { + if lp_position.lp_coin.amount.lt(&amt) { + return Err(ContractError::InsufficientFunds { + requested: amt, + available: lp_position.lp_coin.amount, + }); + } else { + amt + } + } + ActionAmount::AccountBalance => lp_position.lp_coin.amount, + }; + + let updated_coin = coin(amount_to_unstake.u128(), lp_coin.denom.as_str()); + + increment_coin_balance(deps.storage, account_id, &updated_coin)?; + + // unstake msg + let unstake_msg = incentives.unstake_astro_lp_msg(account_id, &updated_coin)?; + + let mut res = Response::new() + .add_message(unstake_msg) + .add_attribute("action", "unstake_astro_lp") + .add_attribute("account_id", account_id) + .add_attribute("lp_unstaked", updated_coin.to_string()); + + if !lp_position.rewards.is_empty() { + res = res.add_attribute("rewards", lp_position.rewards.as_slice().to_string()); + } + + Ok(res) +} diff --git a/contracts/credit-manager/src/update_config.rs b/contracts/credit-manager/src/update_config.rs index 1626cd11..08501f2a 100644 --- a/contracts/credit-manager/src/update_config.rs +++ b/contracts/credit-manager/src/update_config.rs @@ -19,7 +19,7 @@ use crate::{ }; pub fn update_config( - deps: DepsMut, + mut deps: DepsMut, env: Env, info: MessageInfo, updates: ConfigUpdates, @@ -109,7 +109,8 @@ pub fn update_config( }, )?; - let res = create_credit_account(deps, rewards_collector_addr, AccountKind::Default)?; + let (_, res) = + create_credit_account(&mut deps, rewards_collector_addr, AccountKind::Default, None)?; response = response .add_submessages(res.messages) diff --git a/contracts/credit-manager/src/utils.rs b/contracts/credit-manager/src/utils.rs index 2486e65a..f605f6c4 100644 --- a/contracts/credit-manager/src/utils.rs +++ b/contracts/credit-manager/src/utils.rs @@ -1,11 +1,9 @@ use std::{collections::HashSet, hash::Hash}; use cosmwasm_std::{ - to_json_binary, Addr, Coin, CosmosMsg, Decimal, Deps, DepsMut, Empty, QuerierWrapper, - StdResult, Storage, Uint128, WasmMsg, + to_json_binary, Addr, Coin, CosmosMsg, Decimal, Deps, DepsMut, QuerierWrapper, StdResult, + Storage, Uint128, WasmMsg, }; -use cw721::OwnerOfResponse; -use cw721_base::QueryMsg; use mars_types::{ credit_manager::{CallbackMsg, ChangeExpected, ExecuteMsg}, health::AccountKind, @@ -52,21 +50,13 @@ pub fn assert_slippage(storage: &dyn Storage, slippage: Decimal) -> ContractResu } pub fn query_nft_token_owner(deps: Deps, account_id: &str) -> ContractResult { - let contract_addr = ACCOUNT_NFT.load(deps.storage)?; - let res: OwnerOfResponse = deps.querier.query_wasm_smart( - contract_addr.address(), - &QueryMsg::::OwnerOf { - token_id: account_id.to_string(), - include_expired: None, - }, - )?; - Ok(res.owner) + Ok(ACCOUNT_NFT.load(deps.storage)?.query_nft_token_owner(&deps.querier, account_id)?) } pub fn assert_coin_is_whitelisted(deps: &mut DepsMut, denom: &str) -> ContractResult<()> { let params = PARAMS.load(deps.storage)?; match params.query_asset_params(&deps.querier, denom) { - Ok(p) if p.credit_manager.whitelisted => Ok(()), + Ok(Some(p)) if p.credit_manager.whitelisted => Ok(()), _ => Err(ContractError::NotWhitelisted(denom.to_string())), } } diff --git a/contracts/credit-manager/tests/tests/mod.rs b/contracts/credit-manager/tests/tests/mod.rs index 6c8d6af7..72ac5ff1 100644 --- a/contracts/credit-manager/tests/tests/mod.rs +++ b/contracts/credit-manager/tests/tests/mod.rs @@ -1,6 +1,7 @@ -mod helpers; +pub use mars_testing::multitest::helpers; mod test_borrow; +mod test_claim_astro_lp_rewards; mod test_claim_rewards; mod test_coin_balances; mod test_create_credit_account; @@ -12,6 +13,7 @@ mod test_enumerate_coin_balances; mod test_enumerate_debt_shares; mod test_enumerate_total_debt_shares; mod test_enumerate_vault_positions; +mod test_fund_manager_accounts; mod test_health; mod test_hls_accounts; mod test_instantiate; @@ -19,6 +21,7 @@ mod test_lend; mod test_liquidate_deposit; mod test_liquidate_guard; mod test_liquidate_lend; +mod test_liquidate_staked_astro_lp; mod test_liquidate_vault; mod test_liquidation_pricing; mod test_migration_v2; @@ -29,9 +32,12 @@ mod test_refund_balances; mod test_repay; mod test_repay_for_recipient; mod test_repay_from_wallet; +mod test_stake_astro_lp; mod test_swap; +mod test_unstake_astro_lp; mod test_update_admin; mod test_update_config; +mod test_update_credit_account_with_new_acc; mod test_update_nft_config; mod test_utilization_query; mod test_utilizations_all_query; diff --git a/contracts/credit-manager/tests/tests/test_borrow.rs b/contracts/credit-manager/tests/tests/test_borrow.rs index c8a48c1a..78e0dba6 100644 --- a/contracts/credit-manager/tests/tests/test_borrow.rs +++ b/contracts/credit-manager/tests/tests/test_borrow.rs @@ -5,7 +5,8 @@ use mars_credit_manager::{borrow::DEFAULT_DEBT_SHARES_PER_COIN_BORROWED, error:: use mars_types::credit_manager::Action::{Borrow, Deposit}; use super::helpers::{ - assert_err, blacklisted_coin, uosmo_info, AccountToFund, MockEnv, DEFAULT_RED_BANK_COIN_BALANCE, + assert_err, blacklisted_coin_info, uosmo_info, AccountToFund, MockEnv, + DEFAULT_RED_BANK_COIN_BALANCE, }; #[test] @@ -35,7 +36,7 @@ fn only_token_owner_can_borrow() { #[test] fn can_only_borrow_what_is_whitelisted() { - let blacklisted_coin = blacklisted_coin(); + let blacklisted_coin = blacklisted_coin_info(); let user = Addr::unchecked("user"); let mut mock = MockEnv::new().set_params(&[blacklisted_coin.clone()]).build().unwrap(); diff --git a/contracts/credit-manager/tests/tests/test_claim_astro_lp_rewards.rs b/contracts/credit-manager/tests/tests/test_claim_astro_lp_rewards.rs new file mode 100644 index 00000000..7449949c --- /dev/null +++ b/contracts/credit-manager/tests/tests/test_claim_astro_lp_rewards.rs @@ -0,0 +1,135 @@ +use cosmwasm_std::{Addr, Coin, Uint128}; +use mars_credit_manager::error::ContractError; +use mars_testing::multitest::helpers::{assert_err, coin_info}; +use mars_types::credit_manager::Action; + +use super::helpers::{uosmo_info, MockEnv}; + +#[test] +fn claiming_rewards_when_there_are_none() { + let mut mock = MockEnv::new().build().unwrap(); + + let user = Addr::unchecked("user"); + let account_id = mock.create_credit_account(&user).unwrap(); + let lp_denom = "factory12345"; + + let unclaimed = mock.query_staked_astro_lp_rewards(&account_id, lp_denom); + assert!(unclaimed.is_empty()); + + let res = mock.update_credit_account( + &account_id, + &user, + vec![Action::ClaimAstroLpRewards { + lp_denom: lp_denom.to_string(), + }], + &[], + ); + assert_err(res, ContractError::NoAmount); +} + +#[test] +fn claiming_a_single_reward() { + let coin_info = uosmo_info(); + let mut mock = MockEnv::new().build().unwrap(); + + let user = Addr::unchecked("user"); + let account_id = mock.create_credit_account(&user).unwrap(); + let lp_denom = "factory12345"; + let reward = Coin { + denom: coin_info.denom.clone(), + amount: Uint128::new(1000000), + }; + + let unclaimed = mock.query_staked_astro_lp_rewards(&account_id, lp_denom); + assert!(unclaimed.is_empty()); + + mock.add_astro_incentive_reward(&account_id, lp_denom, reward.clone()); + + let unclaimed = mock.query_staked_astro_lp_rewards(&account_id, lp_denom); + assert_eq!(unclaimed.len(), 1); + + // Check account id deposit balance + let positions = mock.query_positions(&account_id); + assert_eq!(positions.deposits.len(), 0); + + mock.update_credit_account( + &account_id, + &user, + vec![Action::ClaimAstroLpRewards { + lp_denom: lp_denom.to_string(), + }], + &[], + ) + .unwrap(); + + // Check account id deposit balance + let positions = mock.query_positions(&account_id); + assert_eq!(positions.deposits.len(), 1); + assert_eq!(positions.deposits[0].denom, reward.denom.clone()); + assert_eq!(positions.deposits[0].amount, reward.amount); + + let coin = mock.query_balance(&mock.rover, &reward.denom); + assert_eq!(coin.amount, reward.amount); +} + +#[test] +fn claiming_multiple_rewards() { + let osmo_info = uosmo_info(); + let atom_info = coin_info("atom"); + let mut mock = MockEnv::new().build().unwrap(); + + let user = Addr::unchecked("user"); + let account_id = mock.create_credit_account(&user).unwrap(); + let lp_denom = "factory12345"; + + let reward_1 = Coin { + denom: osmo_info.denom.clone(), + amount: Uint128::new(1000000), + }; + + let reward_2 = Coin { + denom: atom_info.denom.clone(), + amount: Uint128::new(1000000), + }; + + let unclaimed = mock.query_staked_astro_lp_rewards(&account_id, lp_denom); + assert!(unclaimed.is_empty()); + + mock.add_astro_incentive_reward(&account_id, lp_denom, reward_1.clone()); + mock.add_astro_incentive_reward(&account_id, lp_denom, reward_2.clone()); + + let unclaimed = mock.query_staked_astro_lp_rewards(&account_id, lp_denom); + assert_eq!(unclaimed.len(), 2); + + // Check account id deposit balance + let positions = mock.query_positions(&account_id); + assert_eq!(positions.deposits.len(), 0); + + mock.update_credit_account( + &account_id, + &user, + vec![Action::ClaimAstroLpRewards { + lp_denom: lp_denom.to_string(), + }], + &[], + ) + .unwrap(); + + // Check account id deposit balance + let positions = mock.query_positions(&account_id); + assert_eq!(positions.deposits.len(), 2); + assert_eq!(positions.deposits[1].denom, reward_1.denom.clone()); + assert_eq!(positions.deposits[1].amount, reward_1.amount); + assert_eq!(positions.deposits[0].denom, reward_2.denom.clone()); + assert_eq!(positions.deposits[0].amount, reward_2.amount); + + // Check contract has assets + let reward_balance_1 = mock.query_balance(&mock.rover, &reward_1.denom); + assert_eq!(reward_balance_1.amount, reward_1.amount); + let reward_balance_2 = mock.query_balance(&mock.rover, &reward_2.denom); + assert_eq!(reward_balance_2.amount, reward_2.amount); + + // Assert no LP coins in the contract + let lp_coin = mock.query_balance(&mock.rover, lp_denom); + assert!(lp_coin.amount.is_zero()); +} diff --git a/contracts/credit-manager/tests/tests/test_claim_rewards.rs b/contracts/credit-manager/tests/tests/test_claim_rewards.rs index a3a4caad..a0e6b08f 100644 --- a/contracts/credit-manager/tests/tests/test_claim_rewards.rs +++ b/contracts/credit-manager/tests/tests/test_claim_rewards.rs @@ -43,14 +43,17 @@ fn claiming_a_single_reward() { // Check account id deposit balance let positions = mock.query_positions(&account_id); - assert_eq!(positions.deposits.len(), 0); + assert_eq!(positions.deposits.len(), 1); + let reward_coin = get_coin(&coin_info.denom, &positions.deposits); + assert_eq!(reward_coin.amount, Uint128::new(123)); - // Ensure money is in user's wallet + // Ensure money is in Credit Manager let balance = mock.query_balance(&mock.rover, &coin_info.denom); - assert_eq!(balance.amount, Uint128::zero()); + assert_eq!(balance.amount, Uint128::new(123)); + // Ensure no money is in user's wallet let balance = mock.query_balance(&user, &coin_info.denom); - assert_eq!(balance.amount, Uint128::new(123)); + assert_eq!(balance.amount, Uint128::zero()); } #[test] @@ -78,26 +81,29 @@ fn claiming_multiple_rewards() { // Check account id deposit balance let positions = mock.query_positions(&account_id); - assert_eq!(positions.deposits.len(), 0); - - // Ensure money is in user's wallet + assert_eq!(positions.deposits.len(), 3); + let osmo_reward = get_coin(&osmo_info.denom, &positions.deposits); + assert_eq!(osmo_reward.amount, Uint128::new(123)); + let atom_reward = get_coin(&atom_info.denom, &positions.deposits); + assert_eq!(atom_reward.amount, Uint128::new(555)); + let jake_reward = get_coin(&jake_info.denom, &positions.deposits); + assert_eq!(jake_reward.amount, Uint128::new(12)); + + // Ensure money is in Credit Manager let osmo_balance = mock.query_balance(&mock.rover, &osmo_info.denom); - assert_eq!(osmo_balance.amount, Uint128::zero()); - + assert_eq!(osmo_balance.amount, Uint128::new(123)); let atom_balance = mock.query_balance(&mock.rover, &atom_info.denom); - assert_eq!(atom_balance.amount, Uint128::zero()); - + assert_eq!(atom_balance.amount, Uint128::new(555)); let jake_balance = mock.query_balance(&mock.rover, &jake_info.denom); - assert_eq!(jake_balance.amount, Uint128::zero()); + assert_eq!(jake_balance.amount, Uint128::new(12)); + // Ensure no money is in user's wallet let osmo_balance = mock.query_balance(&user, &osmo_info.denom); - assert_eq!(osmo_balance.amount, Uint128::new(123)); - + assert_eq!(osmo_balance.amount, Uint128::zero()); let atom_balance = mock.query_balance(&user, &atom_info.denom); - assert_eq!(atom_balance.amount, Uint128::new(555)); - + assert_eq!(atom_balance.amount, Uint128::zero()); let jake_balance = mock.query_balance(&user, &jake_info.denom); - assert_eq!(jake_balance.amount, Uint128::new(12)); + assert_eq!(jake_balance.amount, Uint128::zero()); } #[test] @@ -159,19 +165,25 @@ fn claiming_by_hls_account() { // Check account id deposit balance let positions = mock.query_positions(&account_id); - assert_eq!(positions.deposits.len(), 2); + assert_eq!(positions.deposits.len(), 4); let lp_token_coin = get_coin(&lp_token.denom, &positions.deposits); assert_eq!(lp_token_coin.amount, Uint128::new(lp_deposit_amount)); let atom_coin = get_coin(&atom_info.denom, &positions.deposits); assert_eq!(atom_coin.amount, Uint128::new(atom_borrow_amount)); + let osmo_reward = get_coin(&osmo_info.denom, &positions.deposits); + assert_eq!(osmo_reward.amount, Uint128::new(123)); + let jake_reward = get_coin(&jake_info.denom, &positions.deposits); + assert_eq!(jake_reward.amount, Uint128::new(12)); - // Ensure money is in user's wallet + // Ensure money is in Credit Manager let osmo_balance = mock.query_balance(&mock.rover, &osmo_info.denom); - assert_eq!(osmo_balance.amount, Uint128::zero()); + assert_eq!(osmo_balance.amount, Uint128::new(123)); let jake_balance = mock.query_balance(&mock.rover, &jake_info.denom); - assert_eq!(jake_balance.amount, Uint128::zero()); + assert_eq!(jake_balance.amount, Uint128::new(12)); + + // Ensure no money is in user's wallet let osmo_balance = mock.query_balance(&user, &osmo_info.denom); - assert_eq!(osmo_balance.amount, Uint128::new(123)); + assert_eq!(osmo_balance.amount, Uint128::zero()); let jake_balance = mock.query_balance(&user, &jake_info.denom); - assert_eq!(jake_balance.amount, Uint128::new(12)); + assert_eq!(jake_balance.amount, Uint128::zero()); } diff --git a/contracts/credit-manager/tests/tests/test_create_credit_account.rs b/contracts/credit-manager/tests/tests/test_create_credit_account.rs index a28d6507..47352c4e 100644 --- a/contracts/credit-manager/tests/tests/test_create_credit_account.rs +++ b/contracts/credit-manager/tests/tests/test_create_credit_account.rs @@ -1,8 +1,11 @@ -use cosmwasm_std::{Addr, Empty}; +use cosmwasm_std::{coin, Addr, Empty}; use cw721::OwnerOfResponse; use cw721_base::QueryMsg as NftQueryMsg; +use mars_types::health::AccountKind; +use test_case::test_case; use super::helpers::MockEnv; +use crate::tests::helpers::{deploy_managed_vault, AccountToFund}; #[test] fn create_credit_account_fails_without_nft_contract_set() { @@ -51,3 +54,93 @@ fn create_credit_account_success() { assert_eq!(user, owner_res.owner) } + +#[test] +fn after_create_returns_account_kind() { + let user1 = Addr::unchecked("user1"); + let user2 = Addr::unchecked("user2"); + let mut mock = MockEnv::new().build().unwrap(); + let account_id_1 = mock.create_credit_account(&user1).unwrap(); + let account_id_2 = mock.create_hls_account(&user2); + + let position_1 = mock.query_positions(&account_id_1); + let position_2 = mock.query_positions(&account_id_2); + + assert_eq!(position_1.account_kind, AccountKind::Default); + assert_eq!(position_2.account_kind, AccountKind::HighLeveredStrategy); +} + +#[test_case("Mars_default", AccountKind::Default; "create Default account")] +#[test_case("Mars_HLS", AccountKind::HighLeveredStrategy; "create HLS account")] +fn create_credit_account_v2(custom_account_id: &str, account_kind: AccountKind) { + let mut mock = MockEnv::new().build().unwrap(); + + // Double checking ownership by querying NFT account-nft for correct owner + let config = mock.query_config(); + + let user = Addr::unchecked("user_123"); + let account_id = mock + .create_credit_account_v2(&user, account_kind.clone(), Some(custom_account_id.to_string())) + .unwrap(); + assert_eq!(account_id, custom_account_id.to_string()); + + let owner_res: OwnerOfResponse = mock + .app + .wrap() + .query_wasm_smart( + config.account_nft.clone().unwrap(), + &NftQueryMsg::::OwnerOf { + token_id: account_id.clone(), + include_expired: None, + }, + ) + .unwrap(); + + assert_eq!(user, owner_res.owner); + let position = mock.query_positions(&account_id); + assert_eq!(position.account_kind, account_kind); +} + +#[test] +fn create_fund_manager_credit_account_v2() { + let custom_account_id = "Mars_Vault"; + let user = Addr::unchecked("user_123"); + + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + + // Double checking ownership by querying NFT account-nft for correct owner + let config = mock.query_config(); + + let credit_manager = mock.rover.clone(); + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &user, &credit_manager); + + let account_kind = AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }; + let account_id = mock + .create_credit_account_v2(&user, account_kind.clone(), Some(custom_account_id.to_string())) + .unwrap(); + assert_eq!(account_id, custom_account_id.to_string()); + + let owner_res: OwnerOfResponse = mock + .app + .wrap() + .query_wasm_smart( + config.account_nft.clone().unwrap(), + &NftQueryMsg::::OwnerOf { + token_id: account_id.clone(), + include_expired: None, + }, + ) + .unwrap(); + + assert_eq!(user, owner_res.owner); + let position = mock.query_positions(&account_id); + assert_eq!(position.account_kind, account_kind); +} diff --git a/contracts/credit-manager/tests/tests/test_deposit.rs b/contracts/credit-manager/tests/tests/test_deposit.rs index 7fd423a3..c0c0ba5b 100644 --- a/contracts/credit-manager/tests/tests/test_deposit.rs +++ b/contracts/credit-manager/tests/tests/test_deposit.rs @@ -1,11 +1,9 @@ use cosmwasm_std::{coin, coins, Addr, Coin, Coins, Uint128}; -use mars_credit_manager::error::ContractError::{ - ExtraFundsReceived, FundsMismatch, NotTokenOwner, NotWhitelisted, -}; +use mars_credit_manager::error::ContractError::{ExtraFundsReceived, FundsMismatch, NotTokenOwner}; use mars_types::credit_manager::{Action, Positions}; use super::helpers::{ - assert_err, blacklisted_coin, uatom_info, ujake_info, uosmo_info, AccountToFund, CoinInfo, + assert_err, blacklisted_coin_info, uatom_info, ujake_info, uosmo_info, AccountToFund, CoinInfo, MockEnv, }; @@ -115,42 +113,52 @@ fn deposit_but_not_enough_funds() { } #[test] -fn can_only_deposit_allowed_assets() { - let blacklisted_coin = blacklisted_coin(); - let not_listed_coin = ujake_info().to_coin(234); +fn can_deposit_not_whitelisted_assets() { + let blacklisted_coin_info = blacklisted_coin_info(); + let not_listed_coin_info = ujake_info(); + let blacklisted_coin = blacklisted_coin_info.to_coin(300); + let not_listed_coin = not_listed_coin_info.to_coin(250); let user = Addr::unchecked("user"); let mut mock = MockEnv::new() - .set_params(&[blacklisted_coin.clone()]) + .set_params(&[blacklisted_coin_info.clone()]) .fund_account(AccountToFund { addr: user.clone(), funds: vec![ - coin(300, blacklisted_coin.denom.clone()), - coin(300, not_listed_coin.denom.clone()), + coin(300, blacklisted_coin_info.denom.clone()), + coin(300, not_listed_coin_info.denom.clone()), ], }) .build() .unwrap(); let account_id = mock.create_credit_account(&user).unwrap(); - let res = mock.update_credit_account( + mock.update_credit_account( &account_id, &user, vec![Action::Deposit(not_listed_coin.clone())], - &[coin(250, not_listed_coin.denom.clone())], - ); - assert_err(res, NotWhitelisted(not_listed_coin.denom)); + &[not_listed_coin.clone()], + ) + .unwrap(); - let res = mock.update_credit_account( + mock.update_credit_account( &account_id, &user, - vec![Action::Deposit(blacklisted_coin.to_coin(250))], - &[coin(250, blacklisted_coin.denom.clone())], - ); - assert_err(res, NotWhitelisted(blacklisted_coin.denom)); + vec![Action::Deposit(blacklisted_coin.clone())], + &[blacklisted_coin.clone()], + ) + .unwrap(); let res = mock.query_positions(&account_id); - assert_eq!(res.deposits.len(), 0); + assert_eq!(res.deposits.len(), 2); + assert_present(&res, &blacklisted_coin_info, blacklisted_coin.amount); + assert_present(&res, ¬_listed_coin_info, not_listed_coin.amount); + + let coin = mock.query_balance(&mock.rover, &blacklisted_coin.denom); + assert_eq!(coin.amount, blacklisted_coin.amount); + + let coin = mock.query_balance(&mock.rover, ¬_listed_coin.denom); + assert_eq!(coin.amount, not_listed_coin.amount); } #[test] diff --git a/contracts/credit-manager/tests/tests/test_deposit_cap.rs b/contracts/credit-manager/tests/tests/test_deposit_cap.rs index 4163fc45..446dc5e4 100644 --- a/contracts/credit-manager/tests/tests/test_deposit_cap.rs +++ b/contracts/credit-manager/tests/tests/test_deposit_cap.rs @@ -1,7 +1,8 @@ use std::collections::HashMap; -use cosmwasm_std::{Addr, Coin, Coins, Decimal, StdResult, Uint128}; +use cosmwasm_std::{coin, Addr, Coin, Coins, Decimal, StdResult, Uint128}; use mars_credit_manager::error::ContractError; +use mars_testing::multitest::helpers::{coin_info, ASTRO_LP_DENOM}; use mars_types::{ credit_manager::{Action, ActionAmount, ActionCoin}, params::{AssetParams, AssetParamsUpdate}, @@ -9,9 +10,10 @@ use mars_types::{ }; use test_case::test_case; -use super::helpers::{uatom_info, uosmo_info, AccountToFund, MockEnv}; +use super::helpers::{AccountToFund, MockEnv}; #[test_case( + vec![], [].into(), vec![ Action::Deposit(Coin { @@ -27,6 +29,7 @@ use super::helpers::{uatom_info, uosmo_info, AccountToFund, MockEnv}; "no deposit cap" )] #[test_case( + vec![], [("uatom", 100)].into(), vec![ Action::Deposit(Coin { @@ -42,6 +45,25 @@ use super::helpers::{uatom_info, uosmo_info, AccountToFund, MockEnv}; "deposit cap exceeded" )] #[test_case( + // initial balance, deposit cap already exceeded by another user + vec![coin(101, "uatom")], + [("uatom", 100)].into(), + vec![ + Action::Deposit(Coin { + denom: "uatom".into(), + amount: Uint128::new(9), + }), + Action::Deposit(Coin { + denom: "uosmo".into(), + amount: Uint128::new(456), + }), + Action::RefundAllCoinBalances {} + ], + false; + "deposit cap exceeded even with refunding" +)] +#[test_case( + vec![], [("uatom", 100)].into(), vec![ // this first action exceeds deposit cap... @@ -57,7 +79,7 @@ use super::helpers::{uatom_info, uosmo_info, AccountToFund, MockEnv}; amount: ActionAmount::AccountBalance, }, denom_out: "uosmo".into(), - slippage: Decimal::percent(5), + min_receive: Uint128::zero(), route: Some(SwapperRoute::Osmo(OsmoRoute{swaps: vec![ OsmoSwap { pool_id: 101, @@ -70,6 +92,7 @@ use super::helpers::{uatom_info, uosmo_info, AccountToFund, MockEnv}; "a deposit action causes cap to be exceeded but a follow up swap action saves it" )] #[test_case( + vec![], // in our specific test setup, 123 uatom swaps to 1337 uosmo // we set the cap to 1000 uosmo which should be exceeded [("uatom", 200), ("uosmo", 1000)].into(), @@ -84,7 +107,7 @@ use super::helpers::{uatom_info, uosmo_info, AccountToFund, MockEnv}; amount: ActionAmount::AccountBalance, }, denom_out: "uosmo".into(), - slippage: Decimal::percent(5), + min_receive: Uint128::zero(), route: Some(SwapperRoute::Osmo(OsmoRoute{swaps: vec![ OsmoSwap { pool_id: 101, @@ -96,12 +119,135 @@ use super::helpers::{uatom_info, uosmo_info, AccountToFund, MockEnv}; false; "a deposit action is below cap but a follow up swap action exceeds the cap" )] +#[test_case( + // initial balance, deposit cap already exceeded by another user + vec![coin(100, "uosmo")], + // in our specific test setup, 123 uatom swaps to 1337 uosmo + // we set the cap to 0 uosmo which should be exceeded + [("uatom", 200), ("uosmo", 0)].into(), + vec![ + Action::Deposit(Coin { + denom: "uatom".into(), + amount: Uint128::new(123), + }), + Action::SwapExactIn { + coin_in: ActionCoin { + denom: "uatom".into(), + amount: ActionAmount::AccountBalance, + }, + denom_out: "uosmo".into(), + min_receive: Uint128::zero(), + route: Some(SwapperRoute::Osmo(OsmoRoute{swaps: vec![ + OsmoSwap { + pool_id: 101, + to: "uosmo".into(), + } + ]})) + }, + Action::RefundAllCoinBalances {} + ], + true; + "a deposit action is below cap but a follow up swap action try to exceed the cap, refunding saves it" +)] +#[test_case( + // initial balance, deposit cap already exceeded by another user + vec![coin(101, "uosmo")], + // in our specific test setup, 123 uatom swaps to 1337 uosmo + // we set the cap to 100 uosmo which should be exceeded + [("uatom", 200), ("uosmo", 100)].into(), + vec![ + Action::Deposit(Coin { + denom: "uatom".into(), + amount: Uint128::new(123), + }), + Action::Deposit(Coin { + denom: "uosmo".into(), + amount: Uint128::new(10), + }), + Action::SwapExactIn { + coin_in: ActionCoin { + denom: "uatom".into(), + amount: ActionAmount::AccountBalance, + }, + denom_out: "uosmo".into(), + min_receive: Uint128::zero(), + route: Some(SwapperRoute::Osmo(OsmoRoute{swaps: vec![ + OsmoSwap { + pool_id: 101, + to: "uosmo".into(), + } + ]})) + }, + Action::RefundAllCoinBalances {} + ], + false; + // Deposit action is more important than Swap / ProvideLiquidity actions for the same asset. + // It means that if Deposit action set a denom to be checked for deposit cap, then all other actions + // for this denom can't save it by comparing deposits before and after the TX. + "a deposit action is above cap, swapping to deposited coin and refunding cannot save it" +)] +#[test_case( + vec![], + [("uosmo", 1000), ("ujake", 1000), (ASTRO_LP_DENOM, 1000)].into(), + vec![ + Action::Deposit(Coin { + denom: "uosmo".into(), + amount: Uint128::new(101), + }), + Action::Deposit(Coin { + denom: "ujake".into(), + amount: Uint128::new(456), + }), + Action::ProvideLiquidity { coins_in: vec![ + ActionCoin { + denom: "uosmo".into(), + amount: ActionAmount::AccountBalance, + }, + ActionCoin { + denom: "ujake".into(), + amount: ActionAmount::AccountBalance, + }], + lp_token_out: ASTRO_LP_DENOM.to_string(), slippage: Decimal::percent(5) } + ], + false; + "LP deposit cap exceeded" +)] +#[test_case( + // initial balance, deposit cap already exceeded by another user + vec![coin(1001, ASTRO_LP_DENOM)], + [("uosmo", 1000), ("ujake", 1000), (ASTRO_LP_DENOM, 1000)].into(), + vec![ + Action::Deposit(Coin { + denom: "uosmo".into(), + amount: Uint128::new(101), + }), + Action::Deposit(Coin { + denom: "ujake".into(), + amount: Uint128::new(456), + }), + Action::ProvideLiquidity { coins_in: vec![ + ActionCoin { + denom: "uosmo".into(), + amount: ActionAmount::AccountBalance, + }, + ActionCoin { + denom: "ujake".into(), + amount: ActionAmount::AccountBalance, + }], + lp_token_out: ASTRO_LP_DENOM.to_string(), slippage: Decimal::percent(5) }, + Action::RefundAllCoinBalances {} + ], + true; + "LP deposit cap when refunding saves it" +)] fn asserting_deposit_cap( + init_deposits: Vec, deposit_caps: HashMap<&'static str, u128>, actions: Vec, exp_ok: bool, ) { let user = Addr::unchecked("user"); + let another_user = Addr::unchecked("another_user"); // compute how much coins need to be sent to the contract in order to update // the credit account @@ -116,15 +262,43 @@ fn asserting_deposit_cap( .unwrap() .to_vec(); + let mut params = vec![]; + for denom in deposit_caps.keys() { + params.push(coin_info(denom)); + } + // set up mock environment - let mut mock = MockEnv::new() - .set_params(&[uosmo_info(), uatom_info()]) - .fund_account(AccountToFund { - addr: user.clone(), - funds: send_funds.clone(), - }) - .build() - .unwrap(); + let mut mock_builder = MockEnv::new().set_params(¶ms).fund_account(AccountToFund { + addr: user.clone(), + funds: send_funds.clone(), + }); + + if !init_deposits.is_empty() { + // fund the user with some base deposits + mock_builder = mock_builder.fund_account(AccountToFund { + addr: another_user.clone(), + funds: init_deposits.clone(), + }); + } + + let mut mock = mock_builder.build().unwrap(); + + // prepare base state of the account + if !init_deposits.is_empty() { + let account_id = mock.create_credit_account(&another_user).unwrap(); + for coin in init_deposits { + mock.update_credit_account( + &account_id, + &another_user, + vec![Action::Deposit(coin.clone())], + &[coin], + ) + .unwrap(); + } + } + + // register an account + let account_id = mock.create_credit_account(&user).unwrap(); // set deposit caps for uosmo and uatom // the `uosmo_info` and `uatom_info` functions set the cap to Uint128::MAX, @@ -138,9 +312,6 @@ fn asserting_deposit_cap( }); } - // register an account - let account_id = mock.create_credit_account(&user).unwrap(); - // attempt to execute the actions let result = mock.update_credit_account(&account_id, &user, actions, &send_funds); @@ -148,6 +319,7 @@ fn asserting_deposit_cap( assert!(result.is_ok()); } else { let err: ContractError = result.unwrap_err().downcast().unwrap(); + println!("err: {:?}", err); // if errors, we make sure the error is the AboveAssetDepositCap error // and not any other error assert!(matches!(err, ContractError::AboveAssetDepositCap { .. })); diff --git a/contracts/credit-manager/tests/tests/test_fund_manager_accounts.rs b/contracts/credit-manager/tests/tests/test_fund_manager_accounts.rs new file mode 100644 index 00000000..3606d45d --- /dev/null +++ b/contracts/credit-manager/tests/tests/test_fund_manager_accounts.rs @@ -0,0 +1,422 @@ +use cosmwasm_std::{coin, coins, Addr, Coin, Uint128}; +use cw_multi_test::{BankSudo, SudoMsg}; +use cw_paginate::{Metadata, PaginationResponse}; +use mars_credit_manager::error::ContractError; +use mars_types::{ + credit_manager::{Action, ActionAmount, ActionCoin, VaultBinding}, + health::AccountKind, +}; + +use super::helpers::{assert_err, deploy_managed_vault, uosmo_info, AccountToFund, MockEnv}; + +#[test] +fn fund_manager_wallet_cannot_deposit_and_withdraw() { + let coin_info = uosmo_info(); + + let fund_manager_wallet = Addr::unchecked("fund_manager_wallet"); + let mut mock = MockEnv::new() + .set_params(&[coin_info.clone()]) + .fund_account(AccountToFund { + addr: fund_manager_wallet.clone(), + funds: vec![coin(1_000_000_000, "untrn"), coin(300, coin_info.denom.clone())], + }) + .build() + .unwrap(); + + let credit_manager = mock.rover.clone(); + let managed_vault_addr = + deploy_managed_vault(&mut mock.app, &fund_manager_wallet, &credit_manager); + + let account_id = mock + .create_credit_account_v2( + &fund_manager_wallet, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // deposit not allowed + let deposit_amount = Uint128::new(234); + let res = mock.update_credit_account( + &account_id, + &fund_manager_wallet, + vec![Action::Deposit(coin_info.to_coin(deposit_amount.u128()))], + &[Coin::new(deposit_amount.into(), coin_info.denom.clone())], + ); + assert_err( + res, + ContractError::Unauthorized { + user: account_id.to_string(), + action: "deposit, withdraw, refund_all_coin_balances, withdraw_to_wallet".to_string(), + }, + ); + + // withdraw not allowed + let res = mock.update_credit_account( + &account_id, + &fund_manager_wallet, + vec![Action::Withdraw(ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + })], + &[], + ); + assert_err( + res, + ContractError::Unauthorized { + user: account_id.to_string(), + action: "deposit, withdraw, refund_all_coin_balances, withdraw_to_wallet".to_string(), + }, + ); + + // refund_all_coin_balances not allowed + let res = mock.update_credit_account( + &account_id, + &fund_manager_wallet, + vec![Action::RefundAllCoinBalances {}], + &[], + ); + assert_err( + res, + ContractError::Unauthorized { + user: account_id.to_string(), + action: "deposit, withdraw, refund_all_coin_balances, withdraw_to_wallet".to_string(), + }, + ); + + // withdraw_to_wallet not allowed + let res = mock.update_credit_account( + &account_id, + &fund_manager_wallet, + vec![Action::WithdrawToWallet { + coin: ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + }, + recipient: "wallet".to_string(), + }], + &[], + ); + assert_err( + res, + ContractError::Unauthorized { + user: account_id.to_string(), + action: "deposit, withdraw, refund_all_coin_balances, withdraw_to_wallet".to_string(), + }, + ); + + // combination of above msgs not allowed + let res = mock.update_credit_account( + &account_id, + &fund_manager_wallet, + vec![ + Action::Deposit(coin_info.to_coin(deposit_amount.u128())), + Action::Withdraw(ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + }), + Action::RefundAllCoinBalances {}, + Action::WithdrawToWallet { + coin: ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + }, + recipient: "wallet".to_string(), + }, + ], + &[Coin::new(deposit_amount.into(), coin_info.denom.clone())], + ); + assert_err( + res, + ContractError::Unauthorized { + user: account_id.to_string(), + action: "deposit, withdraw, refund_all_coin_balances, withdraw_to_wallet".to_string(), + }, + ); + + // not allowed action composed with allowed action + let deposit_amount = Uint128::new(234); + let res = mock.update_credit_account( + &account_id, + &fund_manager_wallet, + vec![ + Action::Deposit(coin_info.to_coin(deposit_amount.u128())), + Action::Lend(ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + }), + ], + &[Coin::new(deposit_amount.into(), coin_info.denom.clone())], + ); + assert_err( + res, + ContractError::Unauthorized { + user: account_id.to_string(), + action: "deposit, withdraw, refund_all_coin_balances, withdraw_to_wallet".to_string(), + }, + ); +} + +#[test] +fn addr_not_connected_to_fund_manager_acc_does_not_work() { + let coin_info = uosmo_info(); + + let random_addr = Addr::unchecked("random_addr"); + let fund_manager_wallet = Addr::unchecked("fund_manager_wallet"); + let funded_amt = Uint128::new(10000); + let mut mock = MockEnv::new() + .set_params(&[coin_info.clone()]) + .fund_account(AccountToFund { + addr: random_addr.clone(), + funds: vec![coin(funded_amt.u128(), coin_info.denom.clone())], + }) + .fund_account(AccountToFund { + addr: fund_manager_wallet.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + + let credit_manager = mock.rover.clone(); + let managed_vault_addr = + deploy_managed_vault(&mut mock.app, &fund_manager_wallet, &credit_manager); + + let account_id = mock + .create_credit_account_v2( + &fund_manager_wallet, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // try to deposit from different addr + let deposit_amount = Uint128::new(234); + let res = mock.update_credit_account( + &account_id, + &random_addr, + vec![Action::Deposit(coin_info.to_coin(deposit_amount.u128()))], + &[Coin::new(deposit_amount.into(), coin_info.denom.clone())], + ); + assert_err( + res, + ContractError::NotTokenOwner { + user: random_addr.to_string(), + account_id: account_id.to_string(), + }, + ); +} + +#[test] +fn fund_manager_wallet_can_work_on_behalf_of_vault() { + let coin_info = uosmo_info(); + + let fund_manager_wallet = Addr::unchecked("fund_manager_wallet"); + let funded_amt = Uint128::new(10000); + let mut mock = MockEnv::new() + .set_params(&[coin_info.clone()]) + .fund_account(AccountToFund { + addr: fund_manager_wallet.clone(), + funds: vec![ + coin(1_000_000_000, "untrn"), + coin(funded_amt.u128(), coin_info.denom.clone()), + ], + }) + .build() + .unwrap(); + + let credit_manager = mock.rover.clone(); + let managed_vault_addr = + deploy_managed_vault(&mut mock.app, &fund_manager_wallet, &credit_manager); + mock.app + .sudo(SudoMsg::Bank(BankSudo::Mint { + to_address: managed_vault_addr.to_string(), + amount: coins(funded_amt.u128(), coin_info.denom.clone()), + })) + .unwrap(); + + let account_id = mock + .create_credit_account_v2( + &fund_manager_wallet, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // deposit from vault to fund manager account + let deposit_amount = Uint128::new(234); + mock.update_credit_account( + &account_id, + &managed_vault_addr, + vec![Action::Deposit(coin_info.to_coin(deposit_amount.u128()))], + &[Coin::new(deposit_amount.into(), coin_info.denom.clone())], + ) + .unwrap(); + + let res = mock.query_positions(&account_id); + let assets_res = res.deposits.first().unwrap(); + assert_eq!(res.deposits.len(), 1); + assert_eq!(assets_res.amount, deposit_amount); + assert_eq!(assets_res.denom, coin_info.denom); + + let coin = mock.query_balance(&fund_manager_wallet, &coin_info.denom); + assert_eq!(coin.amount, funded_amt); + let coin = mock.query_balance(&managed_vault_addr, &coin_info.denom); + assert_eq!(coin.amount, funded_amt - deposit_amount); + let coin = mock.query_balance(&mock.rover, &coin_info.denom); + assert_eq!(coin.amount, deposit_amount); + + // execute lend from fund manager wallet + mock.update_credit_account( + &account_id, + &fund_manager_wallet, + vec![Action::Lend(ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + })], + &[], + ) + .unwrap(); + + let res = mock.query_positions(&account_id); + let lent_res = res.lends.first().unwrap(); + assert_eq!(res.lends.len(), 1); + assert_eq!(lent_res.denom, coin_info.denom); + let lent_amount = deposit_amount + Uint128::one(); // simulated yield + assert_eq!(lent_res.amount, lent_amount); + + let coin = mock.query_balance(&mock.rover, &coin_info.denom); + assert_eq!(coin.amount, Uint128::zero()); + + // vault unlend and withdraw + mock.update_credit_account( + &account_id, + &managed_vault_addr, + vec![ + Action::Reclaim(ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + }), + Action::Withdraw(ActionCoin { + denom: coin_info.denom.clone(), + amount: ActionAmount::AccountBalance, + }), + ], + &[], + ) + .unwrap(); + + let res = mock.query_positions(&account_id); + assert!(res.deposits.is_empty()); + assert!(res.lends.is_empty()); + + let coin = mock.query_balance(&fund_manager_wallet, &coin_info.denom); + assert_eq!(coin.amount, funded_amt); + let coin = mock.query_balance(&managed_vault_addr, &coin_info.denom); + assert_eq!(coin.amount, funded_amt + Uint128::one()); // simulated yield + let coin = mock.query_balance(&mock.rover, &coin_info.denom); + assert_eq!(coin.amount, Uint128::zero()); +} + +#[test] +fn vault_bindings() { + let fund_manager_wallet = Addr::unchecked("fund_manager_wallet"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager_wallet.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + + let credit_manager = mock.rover.clone(); + + let vault_addr_1 = deploy_managed_vault(&mut mock.app, &fund_manager_wallet, &credit_manager); + let fund_acc_id_1 = mock + .create_credit_account_v2( + &fund_manager_wallet, + AccountKind::FundManager { + vault_addr: vault_addr_1.to_string(), + }, + None, + ) + .unwrap(); + + let res = mock.query_vault_bindings(None, None).unwrap(); + assert_eq!( + res, + PaginationResponse { + data: vec![VaultBinding { + account_id: fund_acc_id_1.clone(), + vault_address: vault_addr_1.to_string() + }], + metadata: Metadata { + has_more: false + } + } + ); + + let vault_addr_2 = deploy_managed_vault(&mut mock.app, &fund_manager_wallet, &credit_manager); + let fund_acc_id_2 = mock + .create_credit_account_v2( + &fund_manager_wallet, + AccountKind::FundManager { + vault_addr: vault_addr_2.to_string(), + }, + None, + ) + .unwrap(); + let vault_addr_3 = deploy_managed_vault(&mut mock.app, &fund_manager_wallet, &credit_manager); + let fund_acc_id_3 = mock + .create_credit_account_v2( + &fund_manager_wallet, + AccountKind::FundManager { + vault_addr: vault_addr_3.to_string(), + }, + None, + ) + .unwrap(); + + let res = mock.query_vault_bindings(None, None).unwrap(); + assert_eq!( + res, + PaginationResponse { + data: vec![ + VaultBinding { + account_id: fund_acc_id_1.clone(), + vault_address: vault_addr_1.to_string() + }, + VaultBinding { + account_id: fund_acc_id_2.clone(), + vault_address: vault_addr_2.to_string() + }, + VaultBinding { + account_id: fund_acc_id_3, + vault_address: vault_addr_3.to_string() + } + ], + metadata: Metadata { + has_more: false + } + } + ); + + let res = mock.query_vault_bindings(Some(fund_acc_id_1), Some(1)).unwrap(); + assert_eq!( + res, + PaginationResponse { + data: vec![VaultBinding { + account_id: fund_acc_id_2, + vault_address: vault_addr_2.to_string() + }], + metadata: Metadata { + has_more: true + } + } + ); +} diff --git a/contracts/credit-manager/tests/tests/test_hls_accounts.rs b/contracts/credit-manager/tests/tests/test_hls_accounts.rs index 961ecbdc..f163368e 100644 --- a/contracts/credit-manager/tests/tests/test_hls_accounts.rs +++ b/contracts/credit-manager/tests/tests/test_hls_accounts.rs @@ -1,7 +1,8 @@ use cosmwasm_std::{coins, Addr, Decimal, Uint128}; use mars_credit_manager::error::ContractError; +use mars_testing::multitest::helpers::coin_info; use mars_types::{ - credit_manager::Action::{Borrow, Deposit, EnterVault, Lend}, + credit_manager::Action::{Borrow, Deposit, EnterVault, Lend, StakeAstroLp}, health::{AccountKind, HealthValuesResponse}, oracle::ActionKind, params::{AssetParamsUpdate::AddOrUpdate, HlsAssetType}, @@ -126,14 +127,25 @@ fn wrong_correlations_does_not_qualify() { let jake_info = ujake_info(); let lp_token = lp_token_info(); let leverage_vault = unlocked_vault_info(); + let staked_astro_lp = coin_info("factory12345"); let user = Addr::unchecked("user"); let mut mock = MockEnv::new() - .set_params(&[atom_info.clone(), jake_info.clone(), lp_token.clone()]) + .set_params(&[ + atom_info.clone(), + jake_info.clone(), + lp_token.clone(), + staked_astro_lp.clone(), + ]) .vault_configs(&[leverage_vault.clone()]) .fund_account(AccountToFund { addr: user.clone(), - funds: vec![jake_info.to_coin(300), atom_info.to_coin(300), lp_token.to_coin(300)], + funds: vec![ + jake_info.to_coin(300), + atom_info.to_coin(300), + lp_token.to_coin(300), + staked_astro_lp.to_coin(300), + ], }) .build() .unwrap(); @@ -151,89 +163,134 @@ fn wrong_correlations_does_not_qualify() { assert_err( res, - ContractError::HLS { - reason: format!( - "{} deposit is not a correlated asset to debt {}", - jake_info.denom, atom_info.denom - ), + ContractError::AboveMaxLTV { + account_id: account_id.clone(), + max_ltv_health_factor: "0".to_string(), }, ); - // Case #2 - Some collateral assets are not in correlations list + // Case #2 - Lend asset types are checked let res = mock.update_credit_account( &account_id, &user, vec![ - Deposit(jake_info.to_coin(300)), + Lend(jake_info.to_action_coin(50)), + Deposit(jake_info.to_coin(50)), Deposit(atom_info.to_coin(300)), Borrow(atom_info.to_coin(1)), ], - &[jake_info.to_coin(300), atom_info.to_coin(300)], + &[atom_info.to_coin(300), jake_info.to_coin(50)], ); assert_err( res, ContractError::HLS { reason: format!( - "{} deposit is not a correlated asset to debt {}", + "{} lend is not a correlated asset to debt {}", jake_info.denom, atom_info.denom ), }, ); - // Case #3 - Lend asset types are checked + // Case #3 - Vault asset types are checked + let vault = mock.get_vault(&leverage_vault); let res = mock.update_credit_account( &account_id, &user, vec![ - Lend(jake_info.to_action_coin(50)), - Deposit(jake_info.to_coin(50)), - Deposit(atom_info.to_coin(300)), + Deposit(lp_token.to_coin(300)), + EnterVault { + vault: vault.clone(), + coin: lp_token.to_action_coin(23), + }, Borrow(atom_info.to_coin(1)), ], - &[atom_info.to_coin(300), jake_info.to_coin(50)], + &[lp_token.to_coin(300)], ); assert_err( res, ContractError::HLS { reason: format!( - "{} lend is not a correlated asset to debt {}", - jake_info.denom, atom_info.denom + "{} vault is not a correlated asset to debt {}", + vault.address, atom_info.denom ), }, ); - // Case #4 - Vault asset types are checked + // Case #4 - Staked Astro LP asset types are checked - let vault = mock.get_vault(&leverage_vault); let res = mock.update_credit_account( &account_id, &user, vec![ - Deposit(lp_token.to_coin(300)), - EnterVault { - vault: vault.clone(), - coin: lp_token.to_action_coin(23), + Deposit(staked_astro_lp.to_coin(300)), + StakeAstroLp { + lp_token: staked_astro_lp.to_action_coin(300), }, Borrow(atom_info.to_coin(1)), ], - &[lp_token.to_coin(300)], + &[staked_astro_lp.to_coin(300)], ); assert_err( res, ContractError::HLS { reason: format!( - "{} vault is not a correlated asset to debt {}", - vault.address, atom_info.denom + "{} staked astro lp is not a correlated asset to debt {}", + staked_astro_lp.denom, atom_info.denom ), }, ); } +#[test] +fn not_correlated_assets_do_not_infuence_hf() { + let atom_info = uatom_info(); + let jake_info = ujake_info(); + let lp_token = lp_token_info(); + let leverage_vault = unlocked_vault_info(); + + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .set_params(&[atom_info.clone(), jake_info.clone(), lp_token.clone()]) + .vault_configs(&[leverage_vault.clone()]) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![jake_info.to_coin(300), atom_info.to_coin(300), lp_token.to_coin(300)], + }) + .build() + .unwrap(); + + let account_id = mock.create_hls_account(&user); + + mock.update_credit_account( + &account_id, + &user, + vec![Deposit(lp_token.to_coin(300)), Borrow(atom_info.to_coin(1))], + &[lp_token.to_coin(300)], + ) + .unwrap(); + let health_before = + mock.query_health(&account_id, AccountKind::HighLeveredStrategy, ActionKind::Default); + + // Deposited asset is not correlated to debt asset + mock.update_credit_account( + &account_id, + &user, + vec![Deposit(jake_info.to_coin(300))], + &[jake_info.to_coin(300)], + ) + .unwrap(); + + // Health factor should not change + let health = + mock.query_health(&account_id, AccountKind::HighLeveredStrategy, ActionKind::Default); + assert_eq!(health_before, health); +} + #[test] fn successful_with_asset_correlations() { let atom_info = uatom_info(); diff --git a/contracts/credit-manager/tests/tests/test_lend.rs b/contracts/credit-manager/tests/tests/test_lend.rs index 1c6918fe..1652f63b 100644 --- a/contracts/credit-manager/tests/tests/test_lend.rs +++ b/contracts/credit-manager/tests/tests/test_lend.rs @@ -2,13 +2,16 @@ use std::ops::Add; use cosmwasm_std::{coin, coins, Addr, Coin, OverflowError, OverflowOperation, Uint128}; use mars_credit_manager::error::ContractError; -use mars_types::credit_manager::{ - Action::{Deposit, Lend}, - ActionAmount, ActionCoin, +use mars_types::{ + credit_manager::{ + Action::{Deposit, Lend}, + ActionAmount, ActionCoin, Positions, + }, + health::AccountKind, }; use super::helpers::{ - assert_err, blacklisted_coin, coin_info, uosmo_info, AccountToFund, MockEnv, + assert_err, blacklisted_coin_info, coin_info, uosmo_info, AccountToFund, MockEnv, DEFAULT_RED_BANK_COIN_BALANCE, }; @@ -38,7 +41,7 @@ fn only_token_owner_can_lend() { #[test] fn can_only_lend_what_is_whitelisted() { - let coin_info = blacklisted_coin(); + let coin_info = blacklisted_coin_info(); let user = Addr::unchecked("user"); let mut mock = MockEnv::new().set_params(&[coin_info.clone()]).build().unwrap(); let account_id = mock.create_credit_account(&user).unwrap(); @@ -54,20 +57,28 @@ fn can_only_lend_what_is_whitelisted() { } #[test] -fn lending_zero_raises() { +fn lending_zero_has_no_effect() { let coin_info = uosmo_info(); let user = Addr::unchecked("user"); let mut mock = MockEnv::new().set_params(&[coin_info.clone()]).build().unwrap(); let account_id = mock.create_credit_account(&user).unwrap(); - let res = mock.update_credit_account( - &account_id, - &user, - vec![Lend(coin_info.to_action_coin(0))], - &[], - ); + mock.update_credit_account(&account_id, &user, vec![Lend(coin_info.to_action_coin(0))], &[]) + .unwrap(); - assert_err(res, ContractError::NoAmount) + let position = mock.query_positions(&account_id); + assert_eq!( + position, + Positions { + account_id, + account_kind: AccountKind::Default, + deposits: vec![], + debts: vec![], + lends: vec![], + vaults: vec![], + staked_astro_lps: vec![] + } + ); } #[test] @@ -104,7 +115,7 @@ fn raises_when_not_enough_assets_to_lend() { } #[test] -fn raises_when_attempting_to_lend_account_balance_with_no_funds() { +fn attempting_to_lend_account_balance_with_no_funds() { let coin_info = uosmo_info(); let user_a = Addr::unchecked("user_a"); @@ -127,7 +138,7 @@ fn raises_when_attempting_to_lend_account_balance_with_no_funds() { let red_bank_collateral = mock.query_red_bank_collateral(&account_id_a, &coin_info.denom); assert_eq!(red_bank_collateral.amount, Uint128::zero()); - let res = mock.update_credit_account( + mock.update_credit_account( &account_id_a, &user_a, vec![Lend(ActionCoin { @@ -135,9 +146,22 @@ fn raises_when_attempting_to_lend_account_balance_with_no_funds() { amount: ActionAmount::AccountBalance, })], &[], - ); + ) + .unwrap(); - assert_err(res, ContractError::NoAmount) + let position = mock.query_positions(&account_id_a); + assert_eq!( + position, + Positions { + account_id: account_id_a, + account_kind: AccountKind::Default, + deposits: vec![], + debts: vec![], + lends: vec![], + vaults: vec![], + staked_astro_lps: vec![] + } + ); } #[test] diff --git a/contracts/credit-manager/tests/tests/test_liquidate_staked_astro_lp.rs b/contracts/credit-manager/tests/tests/test_liquidate_staked_astro_lp.rs new file mode 100644 index 00000000..302b4786 --- /dev/null +++ b/contracts/credit-manager/tests/tests/test_liquidate_staked_astro_lp.rs @@ -0,0 +1,288 @@ +use cosmwasm_std::{coin, coins, Addr, Decimal, Uint128}; +use mars_credit_manager::error::{ContractError, ContractError::NotLiquidatable}; +use mars_mock_oracle::msg::CoinPrice; +use mars_testing::multitest::helpers::coin_info; +use mars_types::{ + credit_manager::{ + Action::{Borrow, Deposit, Liquidate, StakeAstroLp}, + LiquidateRequest, + }, + health::AccountKind, + oracle::ActionKind, +}; + +use super::helpers::{ + assert_err, get_coin, get_debt, uatom_info, ujake_info, uosmo_info, AccountToFund, MockEnv, +}; + +#[test] +fn staked_lp_positions_contribute_to_health() { + let uatom_info = uatom_info(); + let uosmo_info = uosmo_info(); + let lp_info = coin_info("factory12345"); + + let liquidatee = Addr::unchecked("liquidatee"); + let mut mock = MockEnv::new() + .set_params(&[uatom_info.clone(), uosmo_info.clone(), lp_info.clone()]) + .fund_account(AccountToFund { + addr: liquidatee.clone(), + funds: vec![uatom_info.to_coin(500), uosmo_info.to_coin(500), lp_info.to_coin(200)], + }) + .build() + .unwrap(); + + let liquidatee_account_id = mock.create_credit_account(&liquidatee).unwrap(); + + mock.update_credit_account( + &liquidatee_account_id, + &liquidatee, + vec![ + Deposit(uatom_info.to_coin(100)), + Deposit(lp_info.to_coin(50)), + Borrow(uosmo_info.to_coin(40)), + ], + &[uatom_info.to_coin(100), lp_info.to_coin(50)], + ) + .unwrap(); + + let health_1 = + mock.query_health(&liquidatee_account_id, AccountKind::Default, ActionKind::Liquidation); + assert!(!health_1.liquidatable); + // 100 uatom * 1 + 50 lp * 0.25 + 40 uosmo * 0.25 = 100 + 12.5 + 10 = 122.5 ~ 122 + assert_eq!(health_1.total_collateral_value, Uint128::new(122u128)); + + mock.update_credit_account( + &liquidatee_account_id, + &liquidatee, + vec![StakeAstroLp { + lp_token: lp_info.to_action_coin(50), + }], + &[], + ) + .unwrap(); + + // Collateral should be the same after staking + let health_2 = + mock.query_health(&liquidatee_account_id, AccountKind::Default, ActionKind::Liquidation); + assert!(!health_2.liquidatable); + assert_eq!(health_1.total_collateral_value, health_2.total_collateral_value); + assert_eq!(health_1.max_ltv_adjusted_collateral, health_2.max_ltv_adjusted_collateral); + assert_eq!( + health_1.liquidation_threshold_adjusted_collateral, + health_2.liquidation_threshold_adjusted_collateral + ); + + let liquidator = Addr::unchecked("liquidator"); + let liquidator_account_id = mock.create_credit_account(&liquidator).unwrap(); + + let res = mock.update_credit_account( + &liquidator_account_id, + &liquidator, + vec![Liquidate { + liquidatee_account_id: liquidatee_account_id.clone(), + debt_coin: uosmo_info.to_coin(10), + request: LiquidateRequest::StakedAstroLp(lp_info.denom), + }], + &[], + ); + + assert_err( + res, + NotLiquidatable { + account_id: liquidatee_account_id, + lqdt_health_factor: "9.636363636363636363".to_string(), + }, + ) +} + +#[test] +fn liquidatee_does_not_have_requested_staked_lp_coin() { + let lp_info = coin_info("factory12345"); + let uosmo_info = uosmo_info(); + let ujake_info = ujake_info(); + + let liquidatee = Addr::unchecked("liquidatee"); + let liquidator = Addr::unchecked("liquidator"); + + let mut mock = MockEnv::new() + .set_params(&[lp_info.clone(), uosmo_info.clone(), ujake_info.clone()]) + .fund_account(AccountToFund { + addr: liquidatee.clone(), + funds: vec![lp_info.to_coin(500)], + }) + .fund_account(AccountToFund { + addr: liquidator.clone(), + funds: vec![uosmo_info.to_coin(500)], + }) + .build() + .unwrap(); + + let liquidatee_account_id = mock.create_credit_account(&liquidatee).unwrap(); + + mock.update_credit_account( + &liquidatee_account_id, + &liquidatee, + vec![ + Deposit(lp_info.to_coin(100)), + StakeAstroLp { + lp_token: lp_info.to_action_coin(100), + }, + Borrow(uosmo_info.to_coin(100)), + ], + &[lp_info.to_coin(100)], + ) + .unwrap(); + + mock.price_change(CoinPrice { + pricing: ActionKind::Liquidation, + denom: uosmo_info.denom.clone(), + price: Decimal::from_atomics(20u128, 0).unwrap(), + }); + + let health = + mock.query_health(&liquidatee_account_id, AccountKind::Default, ActionKind::Liquidation); + assert!(health.liquidatable); + + let liquidator_account_id = mock.create_credit_account(&liquidator).unwrap(); + + let res = mock.update_credit_account( + &liquidator_account_id, + &liquidator, + vec![ + Deposit(uosmo_info.to_coin(10)), + Liquidate { + liquidatee_account_id: liquidatee_account_id.clone(), + debt_coin: uosmo_info.to_coin(10), + request: LiquidateRequest::StakedAstroLp(ujake_info.denom), + }, + ], + &[uosmo_info.to_coin(10)], + ); + + assert_err(res, ContractError::NoAstroLp); +} + +/// Liquidation numbers based on `lent_position_partially_liquidated` in spreadsheed. Only difference is that +/// the liquidator is liquidating the staked LP token instead of the lend asset. +#[test] +fn staked_lp_position_partially_liquidated() { + // uosmo is used as LP token + let uosmo_info = uosmo_info(); + let uatom_info = uatom_info(); + + let liquidator = Addr::unchecked("liquidator"); + let liquidatee = Addr::unchecked("liquidatee"); + + let mut mock = MockEnv::new() + .target_health_factor(Decimal::from_atomics(12u128, 1).unwrap()) + .set_params(&[uosmo_info.clone(), uatom_info.clone()]) + .fund_account(AccountToFund { + addr: liquidatee.clone(), + funds: coins(2000, uosmo_info.denom.clone()), + }) + .fund_account(AccountToFund { + addr: liquidator.clone(), + funds: coins(2000, uatom_info.denom.clone()), + }) + .build() + .unwrap(); + + let liquidatee_account_id = mock.create_credit_account(&liquidatee).unwrap(); + + mock.update_credit_account( + &liquidatee_account_id, + &liquidatee, + vec![ + Deposit(uosmo_info.to_coin(1050)), + Borrow(uatom_info.to_coin(1000)), + StakeAstroLp { + lp_token: uosmo_info.to_action_coin(450), + }, + ], + &[uosmo_info.to_coin(1050)], + ) + .unwrap(); + + // Add rewards + let astro_reward = coin(54, "uastro"); + let atom_reward = coin(4, "uatom"); + mock.add_astro_incentive_reward( + &liquidatee_account_id, + &uosmo_info.denom, + astro_reward.clone(), + ); + mock.add_astro_incentive_reward(&liquidatee_account_id, &uosmo_info.denom, atom_reward.clone()); + + mock.price_change(CoinPrice { + pricing: ActionKind::Liquidation, + denom: uatom_info.denom.clone(), + price: Decimal::from_atomics(22u128, 1).unwrap(), + }); + + let health = + mock.query_health(&liquidatee_account_id, AccountKind::Default, ActionKind::Liquidation); + assert!(health.liquidatable); + assert_eq!(health.total_collateral_value, Uint128::new(2462u128)); + assert_eq!(health.total_debt_value, Uint128::new(2203u128)); + + let liquidator_account_id = mock.create_credit_account(&liquidator).unwrap(); + + mock.update_credit_account( + &liquidator_account_id, + &liquidator, + vec![ + Deposit(uatom_info.to_coin(45)), + Liquidate { + liquidatee_account_id: liquidatee_account_id.clone(), + debt_coin: uatom_info.to_coin(45), + request: LiquidateRequest::StakedAstroLp(uosmo_info.denom), + }, + ], + &[uatom_info.to_coin(45)], + ) + .unwrap(); + + // Assert liquidatee's new position + let position = mock.query_positions(&liquidatee_account_id); + assert_eq!(position.deposits.len(), 3); + let osmo_balance = get_coin("uosmo", &position.deposits); + assert_eq!(osmo_balance.amount, Uint128::new(600)); + let atom_balance = get_coin("uatom", &position.deposits); + assert_eq!(atom_balance.amount, Uint128::new(1000) + atom_reward.amount); + let astro_balance = get_coin(&astro_reward.denom, &position.deposits); + assert_eq!(astro_balance.amount, astro_reward.amount); + + assert_eq!(position.debts.len(), 1); + let atom_debt = get_debt("uatom", &position.debts); + assert_eq!(atom_debt.amount, Uint128::new(956)); + + assert_eq!(position.staked_astro_lps.len(), 1); + let osmo_staked_lp = get_coin("uosmo", &position.staked_astro_lps); + assert_eq!(osmo_staked_lp.amount, Uint128::new(46)); + + assert_eq!(position.lends.len(), 0); + + // Assert liquidator's new position + let position = mock.query_positions(&liquidator_account_id); + assert_eq!(position.staked_astro_lps.len(), 0); + assert_eq!(position.lends.len(), 0); + assert_eq!(position.debts.len(), 0); + assert_eq!(position.deposits.len(), 1); + let osmo_deposited = get_coin("uosmo", &position.deposits); + assert_eq!(osmo_deposited.amount, Uint128::new(400)); + + // Assert rewards-collector's new position + let rewards_collector_acc_id = mock.query_rewards_collector_account(); + let position = mock.query_positions(&rewards_collector_acc_id); + assert_eq!(position.deposits.len(), 1); + let rc_osmo_deposited = get_coin("uosmo", &position.deposits); + assert_eq!(rc_osmo_deposited.amount, Uint128::new(4)); + assert_eq!(position.lends.len(), 0); + assert_eq!(position.staked_astro_lps.len(), 0); + assert_eq!(position.debts.len(), 0); + + // Liq HF should improve + let account_kind = mock.query_account_kind(&liquidatee_account_id); + let health = mock.query_health(&liquidatee_account_id, account_kind, ActionKind::Liquidation); + assert!(!health.liquidatable); +} diff --git a/contracts/credit-manager/tests/tests/test_liquidate_vault.rs b/contracts/credit-manager/tests/tests/test_liquidate_vault.rs index 4ea83d5a..2c57a137 100644 --- a/contracts/credit-manager/tests/tests/test_liquidate_vault.rs +++ b/contracts/credit-manager/tests/tests/test_liquidate_vault.rs @@ -68,7 +68,7 @@ fn liquidatee_must_have_the_request_vault_position() { assert_err( res, ContractError::Std(NotFound { - kind: "type: mars_types::adapters::vault::amount::VaultPositionAmount; key: [00, 0F, 76, 61, 75, 6C, 74, 5F, 70, 6F, 73, 69, 74, 69, 6F, 6E, 73, 00, 01, 32, 63, 6F, 6E, 74, 72, 61, 63, 74, 31, 30]".to_string(), + kind: "type: mars_types::adapters::vault::amount::VaultPositionAmount; key: [00, 0F, 76, 61, 75, 6C, 74, 5F, 70, 6F, 73, 69, 74, 69, 6F, 6E, 73, 00, 01, 32, 63, 6F, 6E, 74, 72, 61, 63, 74, 31, 31]".to_string(), }), ) } diff --git a/contracts/credit-manager/tests/tests/test_stake_astro_lp.rs b/contracts/credit-manager/tests/tests/test_stake_astro_lp.rs new file mode 100644 index 00000000..ad1d2b59 --- /dev/null +++ b/contracts/credit-manager/tests/tests/test_stake_astro_lp.rs @@ -0,0 +1,120 @@ +use cosmwasm_std::{coins, Addr, Coin, Uint128}; +use mars_credit_manager::error::ContractError; +use mars_testing::multitest::helpers::AccountToFund; +use mars_types::credit_manager::{Action, ActionAmount, ActionCoin}; + +use super::helpers::MockEnv; + +#[test] +fn stake_claims_rewards() { + let user = Addr::unchecked("user"); + let lp_denom = "factory12345"; + + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: user.clone(), + funds: coins(200, lp_denom), + }) + .build() + .unwrap(); + + let account_id: String = mock.create_credit_account(&user).unwrap(); + + // Query staked LP, verify is 0 + let staked_lp_response = mock.query_staked_lp_position(&account_id, lp_denom); + assert!(staked_lp_response.lp_coin.amount.is_zero()); + + let lp_coin = Coin { + denom: lp_denom.to_string(), + amount: Uint128::new(200), + }; + + // should fail when trying to stake 0 amount + let err: ContractError = mock + .update_credit_account( + &account_id, + &user, + vec![ + Action::Deposit(lp_coin.clone()), + Action::StakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::Exact(Uint128::new(0)), + }, + }, + ], + &[lp_coin.clone()], + ) + .unwrap_err() + .downcast() + .unwrap(); + + assert_eq!(err, ContractError::NoAmount); + + // stake + mock.update_credit_account( + &account_id, + &user, + vec![ + Action::Deposit(lp_coin.clone()), + Action::StakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::Exact(Uint128::new(100)), + }, + }, + ], + &[lp_coin.clone()], + ) + .unwrap(); + + // Add rewards + let reward = Coin { + denom: "uastro".to_string(), + amount: Uint128::new(10000000), + }; + + mock.add_astro_incentive_reward(&account_id, lp_denom, reward.clone()); + + let unclaimed = mock.query_staked_astro_lp_rewards(&account_id, lp_denom); + assert_eq!(unclaimed.len(), 1); + + let positions = mock.query_positions(&account_id); + assert_eq!(positions.staked_astro_lps.len(), 1); + // 100 staked LP, 100 unstaked lp + assert_eq!(positions.staked_astro_lps[0].denom, lp_coin.denom); + assert_eq!(positions.staked_astro_lps[0].amount, Uint128::new(100)); + assert_eq!(positions.deposits.len(), 1); + assert_eq!(positions.deposits[0].denom, lp_coin.denom); + assert_eq!(positions.deposits[0].amount, Uint128::new(100)); + + // Assert correct lp balance in contract + let lp_coin = mock.query_balance(&mock.rover, lp_denom); + assert_eq!(positions.deposits[0].amount, lp_coin.amount); + + // stake again + mock.update_credit_account( + &account_id, + &user, + vec![Action::StakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::AccountBalance, + }, + }], + &[], + ) + .unwrap(); + + let positions = mock.query_positions(&account_id); + assert_eq!(positions.staked_astro_lps.len(), 1); + assert_eq!(positions.staked_astro_lps[0].denom, lp_denom); + assert_eq!(positions.staked_astro_lps[0].amount, Uint128::new(200)); + assert_eq!(positions.deposits.len(), 1); + assert_eq!(positions.deposits[0].denom, reward.denom); + assert_eq!(positions.deposits[0].amount, reward.amount); + + // Assert correct lp balance in contract + let lp_coin = mock.query_balance(&mock.rover, lp_denom); + assert!(lp_coin.amount.is_zero()); +} diff --git a/contracts/credit-manager/tests/tests/test_swap.rs b/contracts/credit-manager/tests/tests/test_swap.rs index 0a617da1..c319c201 100644 --- a/contracts/credit-manager/tests/tests/test_swap.rs +++ b/contracts/credit-manager/tests/tests/test_swap.rs @@ -1,6 +1,4 @@ -use std::str::FromStr; - -use cosmwasm_std::{coins, Addr, Coin, Decimal, OverflowError, OverflowOperation::Sub, Uint128}; +use cosmwasm_std::{coins, Addr, Coin, OverflowError, OverflowOperation::Sub, Uint128}; use mars_credit_manager::error::ContractError; use mars_swapper_mock::contract::MOCK_SWAP_RESULT; use mars_types::{ @@ -11,9 +9,7 @@ use mars_types::{ swapper::{OsmoRoute, OsmoSwap, SwapperRoute}, }; -use super::helpers::{ - assert_err, blacklisted_coin, uatom_info, uosmo_info, AccountToFund, MockEnv, -}; +use super::helpers::{assert_err, uatom_info, uosmo_info, AccountToFund, MockEnv}; #[test] fn only_token_owner_can_swap_for_account() { @@ -31,7 +27,7 @@ fn only_token_owner_can_swap_for_account() { amount: ActionAmount::Exact(Uint128::new(12)), }, denom_out: "osmo".to_string(), - slippage: Decimal::from_atomics(6u128, 1).unwrap(), + min_receive: Uint128::zero(), route: Some(SwapperRoute::Osmo(OsmoRoute { swaps: vec![OsmoSwap { pool_id: 101, @@ -52,31 +48,59 @@ fn only_token_owner_can_swap_for_account() { } #[test] -fn denom_out_must_be_whitelisted() { - let blacklisted_coin = blacklisted_coin(); +fn denom_out_does_not_have_to_be_whitelisted() { + let atom_info = uatom_info(); + let another_coin = uosmo_info(); let user = Addr::unchecked("user"); - let mut mock = MockEnv::new().set_params(&[blacklisted_coin.clone()]).build().unwrap(); - let account_id = mock.create_credit_account(&user).unwrap(); + let mut mock = MockEnv::new() + .set_params(&[atom_info.clone()]) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![Coin::new(10_000u128, atom_info.denom.clone())], + }) + .build() + .unwrap(); - let res = mock.update_credit_account( + let route = SwapperRoute::Osmo(OsmoRoute { + swaps: vec![OsmoSwap { + pool_id: 102, + to: another_coin.denom.clone(), + }], + }); + let res = + mock.query_swap_estimate(&atom_info.to_coin(10_000), &another_coin.denom, route.clone()); + assert_eq!(res.amount, MOCK_SWAP_RESULT); + + let account_id = mock.create_credit_account(&user).unwrap(); + mock.update_credit_account( &account_id, &user, - vec![SwapExactIn { - coin_in: blacklisted_coin.to_action_coin(10_000), - denom_out: "ujake".to_string(), - slippage: Decimal::from_atomics(6u128, 1).unwrap(), - route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: 101, - to: "ujake".to_string(), - }], - })), - }], - &[], - ); + vec![ + Deposit(atom_info.to_coin(10_000)), + SwapExactIn { + coin_in: atom_info.to_action_coin(10_000), + denom_out: another_coin.denom.clone(), + min_receive: Uint128::zero(), + route: Some(route), + }, + ], + &[atom_info.to_coin(10_000)], + ) + .unwrap(); - assert_err(res, ContractError::NotWhitelisted("ujake".to_string())) + // assert rover balance + let atom_balance = mock.query_balance(&mock.rover, &atom_info.denom).amount; + let osmo_balance = mock.query_balance(&mock.rover, &another_coin.denom).amount; + assert_eq!(atom_balance, Uint128::zero()); + assert_eq!(osmo_balance, MOCK_SWAP_RESULT); + + // assert account position + let position = mock.query_positions(&account_id); + assert_eq!(position.deposits.len(), 1); + let coin = position.deposits.first().unwrap(); + assert_eq!(coin.denom, another_coin.denom); + assert_eq!(coin.amount, MOCK_SWAP_RESULT); } #[test] @@ -95,7 +119,7 @@ fn no_amount_sent() { vec![SwapExactIn { coin_in: osmo_info.to_action_coin(0), denom_out: atom_info.denom.clone(), - slippage: Decimal::from_atomics(6u128, 1).unwrap(), + min_receive: Uint128::zero(), route: Some(SwapperRoute::Osmo(OsmoRoute { swaps: vec![OsmoSwap { pool_id: 101, @@ -125,7 +149,7 @@ fn user_has_zero_balance_for_swap_req() { vec![SwapExactIn { coin_in: osmo_info.to_action_coin(10_000), denom_out: atom_info.denom.clone(), - slippage: Decimal::from_atomics(6u128, 1).unwrap(), + min_receive: Uint128::zero(), route: Some(SwapperRoute::Osmo(OsmoRoute { swaps: vec![OsmoSwap { pool_id: 101, @@ -147,44 +171,42 @@ fn user_has_zero_balance_for_swap_req() { } #[test] -fn slippage_too_high() { +fn min_receive_not_reached() { let osmo_info = uosmo_info(); let atom_info = uatom_info(); let user = Addr::unchecked("user"); - let max_slippage = Decimal::percent(50); let mut mock = MockEnv::new() .set_params(&[osmo_info.clone(), atom_info.clone()]) - .max_slippage(max_slippage) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![Coin::new(10_000u128, osmo_info.denom.clone())], + }) .build() .unwrap(); let account_id = mock.create_credit_account(&user).unwrap(); - let slippage = max_slippage + Decimal::from_str("0.000001").unwrap(); - let res = mock.update_credit_account( + let swap_amt = Uint128::new(10_000); + mock.update_credit_account( &account_id, &user, - vec![SwapExactIn { - coin_in: osmo_info.to_action_coin(10_000), - denom_out: atom_info.denom.clone(), - slippage, - route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: 101, - to: atom_info.denom, - }], - })), - }], - &[], - ); - - assert_err( - res, - ContractError::SlippageExceeded { - slippage, - max_slippage, - }, + vec![ + Deposit(osmo_info.to_coin(swap_amt.u128())), + SwapExactIn { + coin_in: osmo_info.to_action_coin(swap_amt.u128()), + denom_out: atom_info.denom.clone(), + min_receive: swap_amt + Uint128::one(), // min receive is 1 more than actual + route: Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![OsmoSwap { + pool_id: 101, + to: atom_info.denom.clone(), + }], + })), + }, + ], + &[osmo_info.to_coin(swap_amt.u128())], ) + .unwrap_err(); } #[test] @@ -211,7 +233,7 @@ fn user_does_not_have_enough_balance_for_swap_req() { SwapExactIn { coin_in: osmo_info.to_action_coin(10_000), denom_out: atom_info.denom.clone(), - slippage: Decimal::from_atomics(6u128, 1).unwrap(), + min_receive: Uint128::zero(), route: Some(SwapperRoute::Osmo(OsmoRoute { swaps: vec![OsmoSwap { pool_id: 101, @@ -266,7 +288,7 @@ fn swap_success_with_specified_amount() { SwapExactIn { coin_in: atom_info.to_action_coin(10_000), denom_out: osmo_info.denom.clone(), - slippage: Decimal::from_atomics(6u128, 1).unwrap(), + min_receive: MOCK_SWAP_RESULT - Uint128::one(), route: Some(route), }, ], @@ -320,7 +342,7 @@ fn swap_success_with_amount_none() { SwapExactIn { coin_in: atom_info.to_action_coin_full_balance(), denom_out: osmo_info.denom.clone(), - slippage: Decimal::from_atomics(6u128, 1).unwrap(), + min_receive: MOCK_SWAP_RESULT - Uint128::one(), route: Some(route), }, ], diff --git a/contracts/credit-manager/tests/tests/test_unstake_astro_lp.rs b/contracts/credit-manager/tests/tests/test_unstake_astro_lp.rs new file mode 100644 index 00000000..b0d5fcc5 --- /dev/null +++ b/contracts/credit-manager/tests/tests/test_unstake_astro_lp.rs @@ -0,0 +1,199 @@ +use cosmwasm_std::{coin, coins, Addr, Coin, Uint128}; +use mars_credit_manager::error::ContractError; +use mars_testing::multitest::helpers::{assert_err, uosmo_info, AccountToFund}; +use mars_types::credit_manager::{Action, ActionAmount, ActionCoin}; + +use super::helpers::MockEnv; + +#[test] +fn unstake_fails_if_no_lp_staked() { + let mut mock = MockEnv::new().build().unwrap(); + + let user = Addr::unchecked("user"); + let account_id: String = mock.create_credit_account(&user).unwrap(); + let lp_denom = "factory12345"; + + // Query staked LP, verify is 0 + let staked_lp = mock.query_staked_lp_position(&account_id, lp_denom); + assert!(staked_lp.lp_coin.amount.is_zero()); + + // Unstake + let res = mock.update_credit_account( + &account_id, + &user, + vec![Action::UnstakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::Exact(Uint128::new(100)), + }, + }], + &[], + ); + assert_err( + res, + ContractError::InsufficientFunds { + requested: Uint128::new(100u128), + available: Uint128::zero(), + }, + ); +} + +#[test] +fn unstake() { + let user = Addr::unchecked("user"); + let lp_denom = "factory12345"; + + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: user.clone(), + funds: coins(200, lp_denom), + }) + .build() + .unwrap(); + + let account_id: String = mock.create_credit_account(&user).unwrap(); + + // Query staked LP, verify is 0 + let staked_lp_response = mock.query_staked_lp_position(&account_id, lp_denom); + + assert!(staked_lp_response.lp_coin.amount.is_zero()); + + let lp_coin = Coin { + denom: lp_denom.to_string(), + amount: Uint128::new(200), + }; + + // stake + mock.update_credit_account( + &account_id, + &user, + vec![ + Action::Deposit(lp_coin.clone()), + Action::StakeAstroLp { + lp_token: ActionCoin::from(&lp_coin.clone()), + }, + ], + &[lp_coin.clone()], + ) + .unwrap(); + + // Unstake 50% + mock.update_credit_account( + &account_id, + &user, + vec![Action::UnstakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::Exact(Uint128::new(50)), + }, + }], + &[], + ) + .unwrap(); + + let positions = mock.query_positions(&account_id); + assert_eq!(positions.staked_astro_lps.len(), 1); + assert_eq!(positions.staked_astro_lps[0].denom, lp_denom.to_string()); + assert_eq!(positions.staked_astro_lps[0].amount, Uint128::new(150)); + assert_eq!(positions.deposits[0].denom, lp_denom.to_string()); + assert_eq!(positions.deposits[0].amount, Uint128::new(50)); + + // Assert correct lp balance in contract + let cm_lp_coin = mock.query_balance(&mock.rover, lp_denom); + assert_eq!(positions.deposits[0].denom, cm_lp_coin.denom); + assert_eq!(positions.deposits[0].amount, cm_lp_coin.amount); + + // Entire remaining amount + mock.update_credit_account( + &account_id, + &user, + vec![Action::UnstakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::AccountBalance, + }, + }], + &[], + ) + .unwrap(); + + let positions = mock.query_positions(&account_id); + assert_eq!(positions.staked_astro_lps.len(), 0); + assert_eq!(positions.deposits.len(), 1); + assert_eq!(positions.deposits[0].denom, lp_denom.to_string()); + assert_eq!(positions.deposits[0].amount, Uint128::new(200)); + + // Assert correct lp balance in contract + let cm_lp_coin = mock.query_balance(&mock.rover, lp_denom); + assert_eq!(cm_lp_coin.amount, lp_coin.amount); +} + +#[test] +fn unstake_claims_rewards() { + let user = Addr::unchecked("user"); + let lp_denom = "factory12345"; + let coin_info = uosmo_info(); + + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: user.clone(), + funds: coins(100, lp_denom), + }) + .build() + .unwrap(); + + let user = Addr::unchecked("user"); + let account_id = mock.create_credit_account(&user).unwrap(); + let lp_amount = Uint128::new(100); + + let reward = coin(1000000u128, coin_info.denom.clone()); + let lp_coin = coin(lp_amount.u128(), lp_denom.to_string()); + + // stake + mock.update_credit_account( + &account_id, + &user, + vec![ + Action::Deposit(lp_coin.clone()), + Action::StakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::AccountBalance, + }, + }, + ], + &[lp_coin], + ) + .unwrap(); + + // add rewards + mock.add_astro_incentive_reward(&account_id, lp_denom, reward.clone()); + + // Unstake 50% + mock.update_credit_account( + &account_id, + &user, + vec![Action::UnstakeAstroLp { + lp_token: ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::Exact(Uint128::new(50)), + }, + }], + &[], + ) + .unwrap(); + + let positions = mock.query_positions(&account_id); + assert_eq!(positions.staked_astro_lps.len(), 1); + assert_eq!(positions.staked_astro_lps[0].denom, lp_denom.to_string()); + assert_eq!(positions.staked_astro_lps[0].amount, Uint128::new(50)); + assert_eq!(positions.deposits.len(), 2); + assert_eq!(positions.deposits[0].denom, lp_denom.to_string()); + assert_eq!(positions.deposits[0].amount, Uint128::new(50)); + assert_eq!(positions.deposits[1].denom, coin_info.denom); + assert_eq!(positions.deposits[1].amount, reward.amount); + + // Assert correct lp balance in contract + let lp_coin = mock.query_balance(&mock.rover, lp_denom); + assert_eq!(positions.deposits[0].amount, lp_coin.amount); +} diff --git a/contracts/credit-manager/tests/tests/test_update_config.rs b/contracts/credit-manager/tests/tests/test_update_config.rs index 515cf82e..cabd900e 100644 --- a/contracts/credit-manager/tests/tests/test_update_config.rs +++ b/contracts/credit-manager/tests/tests/test_update_config.rs @@ -1,7 +1,8 @@ use cosmwasm_std::{Addr, Decimal, Empty, Uint128}; -use cw_multi_test::{BasicApp, Executor}; +use cw_multi_test::Executor; use mars_credit_manager::error::ContractError; use mars_mock_oracle::msg::{CoinPrice, InstantiateMsg as OracleInstantiateMsg}; +use mars_testing::multitest::modules::token_factory::CustomApp; use mars_types::{ adapters::{ health::HealthContractUnchecked, incentives::IncentivesUnchecked, oracle::OracleUnchecked, @@ -216,7 +217,7 @@ fn update_config_does_nothing_when_nothing_is_passed() { assert_eq!(new_config.health_contract, original_config.health_contract); } -fn deploy_new_oracle(app: &mut BasicApp) -> OracleUnchecked { +fn deploy_new_oracle(app: &mut CustomApp) -> OracleUnchecked { let contract_code_id = app.store_code(mock_oracle_contract()); let addr = app .instantiate_contract( @@ -244,7 +245,7 @@ fn deploy_new_oracle(app: &mut BasicApp) -> OracleUnchecked { OracleUnchecked::new(addr.to_string()) } -fn deploy_new_red_bank(app: &mut BasicApp) -> RedBankUnchecked { +fn deploy_new_red_bank(app: &mut CustomApp) -> RedBankUnchecked { let contract_code_id = app.store_code(mock_red_bank_contract()); let addr = app .instantiate_contract( diff --git a/contracts/credit-manager/tests/tests/test_update_credit_account_with_new_acc.rs b/contracts/credit-manager/tests/tests/test_update_credit_account_with_new_acc.rs new file mode 100644 index 00000000..66078c72 --- /dev/null +++ b/contracts/credit-manager/tests/tests/test_update_credit_account_with_new_acc.rs @@ -0,0 +1,165 @@ +use cosmwasm_std::{coins, Addr, Coin, Empty, Uint128}; +use cw721::OwnerOfResponse; +use cw721_base::QueryMsg as NftQueryMsg; +use mars_types::{credit_manager::Action, health::AccountKind}; + +use super::helpers::MockEnv; +use crate::tests::helpers::{uosmo_info, AccountToFund}; + +#[test] +fn update_credit_account_fails_without_nft_contract_set() { + let mut mock = MockEnv::new().no_nft_contract().build().unwrap(); + let user = Addr::unchecked("user"); + let res = mock.update_credit_account_with_new_acc(None, None, &user, vec![], &[]); + + if res.is_ok() { + panic!("Should have thrown error due to nft contract not yet set"); + } +} + +#[test] +fn update_credit_account_fails_without_nft_contract_owner() { + let mut mock = MockEnv::new().no_nft_contract_minter().build().unwrap(); + + let user = Addr::unchecked("user"); + let res = mock.update_credit_account_with_new_acc(None, None, &user, vec![], &[]); + + if res.is_ok() { + panic!("Should have thrown error due to nft contract not proposing a new owner yet"); + } +} + +#[test] +fn update_credit_account_with_new_default_account_created() { + let mut mock = MockEnv::new().build().unwrap(); + + let user = Addr::unchecked("user_123"); + let response = mock + .update_credit_account_with_new_acc(None, Some(AccountKind::Default), &user, vec![], &[]) + .unwrap(); + let account_id = mock.get_account_id(response); + + // Double checking ownership by querying NFT account-nft for correct owner + let config = mock.query_config(); + + let owner_res: OwnerOfResponse = mock + .app + .wrap() + .query_wasm_smart( + config.account_nft.unwrap(), + &NftQueryMsg::::OwnerOf { + token_id: account_id.clone(), + include_expired: None, + }, + ) + .unwrap(); + assert_eq!(user, owner_res.owner); + + let acc_kind = mock.query_account_kind(&account_id); + assert_eq!(acc_kind, AccountKind::Default); +} + +#[test] +fn update_credit_account_with_new_hls_account_created() { + let mut mock = MockEnv::new().build().unwrap(); + + let user = Addr::unchecked("user_123"); + let response = mock + .update_credit_account_with_new_acc( + None, + Some(AccountKind::HighLeveredStrategy), + &user, + vec![], + &[], + ) + .unwrap(); + let account_id = mock.get_account_id(response); + + // Double checking ownership by querying NFT account-nft for correct owner + let config = mock.query_config(); + + let owner_res: OwnerOfResponse = mock + .app + .wrap() + .query_wasm_smart( + config.account_nft.unwrap(), + &NftQueryMsg::::OwnerOf { + token_id: account_id.clone(), + include_expired: None, + }, + ) + .unwrap(); + assert_eq!(user, owner_res.owner); + + let acc_kind = mock.query_account_kind(&account_id); + assert_eq!(acc_kind, AccountKind::HighLeveredStrategy); +} + +#[test] +fn update_credit_account_with_existing_account_and_extra_kind_provided() { + let mut mock = MockEnv::new().build().unwrap(); + + let user = Addr::unchecked("user_123"); + let account_id = mock.create_credit_account(&user).unwrap(); + + let user_accs = mock.query_accounts(user.as_str(), None, None); + assert_eq!(user_accs.len(), 1); + + let acc_kind = mock.query_account_kind(&account_id); + assert_eq!(acc_kind, AccountKind::Default); + + // update the account with a new kind + let _response = mock + .update_credit_account_with_new_acc( + Some(account_id.clone()), + Some(AccountKind::HighLeveredStrategy), + &user, + vec![], + &[], + ) + .unwrap(); + + // should have only one account + let user_accs = mock.query_accounts(user.as_str(), None, None); + assert_eq!(user_accs.len(), 1); + + // account kind shouldn't be changed + let acc_kind = mock.query_account_kind(&account_id); + assert_eq!(acc_kind, AccountKind::Default); +} + +#[test] +fn deposit_straight_to_new_account() { + let coin_info = uosmo_info(); + + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .set_params(&[coin_info.clone()]) + .fund_account(AccountToFund { + addr: user.clone(), + funds: coins(300, coin_info.denom.clone()), + }) + .build() + .unwrap(); + + let deposit_amount = Uint128::new(234); + let response = mock + .update_credit_account_with_new_acc( + None, + None, + &user, + vec![Action::Deposit(coin_info.to_coin(deposit_amount.u128()))], + &[Coin::new(deposit_amount.into(), coin_info.denom.clone())], + ) + .unwrap(); + let account_id = mock.get_account_id(response); + + let res = mock.query_positions(&account_id); + let assets_res = res.deposits.first().unwrap(); + assert_eq!(res.deposits.len(), 1); + assert_eq!(assets_res.amount, deposit_amount); + assert_eq!(assets_res.denom, coin_info.denom); + + let coin = mock.query_balance(&mock.rover, &coin_info.denom); + assert_eq!(coin.amount, deposit_amount) +} diff --git a/contracts/health/Cargo.toml b/contracts/health/Cargo.toml index 045b4073..9b9579d8 100644 --- a/contracts/health/Cargo.toml +++ b/contracts/health/Cargo.toml @@ -26,7 +26,6 @@ cw-storage-plus = { workspace = true } mars-owner = { workspace = true } mars-rover-health-computer = { workspace = true } mars-types = { workspace = true } -thiserror = { workspace = true } [dev-dependencies] anyhow = { workspace = true } diff --git a/contracts/health/src/compute.rs b/contracts/health/src/compute.rs index b6a2dae2..9a956e69 100644 --- a/contracts/health/src/compute.rs +++ b/contracts/health/src/compute.rs @@ -33,6 +33,7 @@ pub fn compute_health( }) .collect::>>()?; let vault_base_token_denoms = vault_infos.values().map(|v| &v.base_token).collect::>(); + let staked_lp_denoms = positions.staked_astro_lps.iter().map(|d| &d.denom).collect::>(); // Collect prices + asset let mut denoms_data: DenomsData = Default::default(); @@ -41,11 +42,16 @@ pub fn compute_health( .chain(debt_denoms) .chain(lend_denoms) .chain(vault_base_token_denoms) + .chain(staked_lp_denoms) .try_for_each(|denom| -> StdResult<()> { - let price = q.oracle.query_price(&deps.querier, denom, action.clone())?.price; - denoms_data.prices.insert(denom.clone(), price); - let params = q.params.query_asset_params(&deps.querier, denom)?; - denoms_data.params.insert(denom.clone(), params); + let params_opt = q.params.query_asset_params(&deps.querier, denom)?; + // If the asset is not supported, we skip it (both params and price) + if let Some(params) = params_opt { + denoms_data.params.insert(denom.clone(), params); + + let price = q.oracle.query_price(&deps.querier, denom, action.clone())?.price; + denoms_data.prices.insert(denom.clone(), price); + } Ok(()) })?; diff --git a/contracts/health/tests/tests/test_health_state.rs b/contracts/health/tests/tests/test_health_state.rs index 9ab78954..7692d09f 100644 --- a/contracts/health/tests/tests/test_health_state.rs +++ b/contracts/health/tests/tests/test_health_state.rs @@ -17,6 +17,7 @@ fn zero_debts_results_in_healthy_state() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![Coin { denom: "xyz".to_string(), amount: Uint128::one(), @@ -24,6 +25,7 @@ fn zero_debts_results_in_healthy_state() { debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, ); @@ -48,6 +50,7 @@ fn computing_health_when_healthy() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![Coin { denom: umars.to_string(), amount: Uint128::new(100), @@ -59,6 +62,7 @@ fn computing_health_when_healthy() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, ); @@ -82,6 +86,7 @@ fn computing_health_when_unhealthy() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![Coin { denom: umars.to_string(), amount: Uint128::new(100), @@ -93,6 +98,7 @@ fn computing_health_when_unhealthy() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, ); diff --git a/contracts/health/tests/tests/test_health_values.rs b/contracts/health/tests/tests/test_health_values.rs index dfa02307..5b4576dc 100644 --- a/contracts/health/tests/tests/test_health_values.rs +++ b/contracts/health/tests/tests/test_health_values.rs @@ -16,6 +16,7 @@ use mars_types::{ }; use super::helpers::MockEnv; +use crate::tests::helpers::default_asset_params; #[test] fn raises_when_credit_manager_not_set() { @@ -52,10 +53,12 @@ fn computes_correct_position_with_zero_assets() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, ); @@ -85,6 +88,7 @@ fn adds_vault_base_denoms_to_oracle_and_red_bank() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![], debts: vec![], lends: vec![], @@ -101,6 +105,7 @@ fn adds_vault_base_denoms_to_oracle_and_red_bank() { }]), }), }], + staked_astro_lps: vec![], }, ); @@ -208,6 +213,7 @@ fn whitelisted_coins_work() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![Coin { denom: umars.to_string(), amount: deposit_amount, @@ -215,6 +221,7 @@ fn whitelisted_coins_work() { debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, ); @@ -264,6 +271,7 @@ fn vault_whitelist_affects_max_ltv() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![], debts: vec![], lends: vec![], @@ -271,6 +279,7 @@ fn vault_whitelist_affects_max_ltv() { vault: vault.clone(), amount: VaultPositionAmount::Unlocked(VaultAmount::new(vault_token_amount)), }], + staked_astro_lps: vec![], }, ); @@ -336,3 +345,60 @@ fn vault_whitelist_affects_max_ltv() { mock.query_health_values(account_id, AccountKind::Default, ActionKind::Default).unwrap(); assert_eq!(health.max_ltv_adjusted_collateral, Uint128::zero()); } + +#[test] +fn not_whitelisted_coins_work() { + let mut mock = MockEnv::new().build().unwrap(); + + let umars = "umars"; + let urandom = "urandom"; + + mock.set_price(umars, Decimal::one(), ActionKind::Default); + let umars_ap = default_asset_params(umars); + mock.update_asset_params(AddOrUpdate { + params: umars_ap.clone(), + }); + + let umars_deposit_amount = Uint128::new(30); + let urandom_deposit_amount = Uint128::new(1200); + + let account_id = "123"; + mock.set_positions_response( + account_id, + &Positions { + account_id: account_id.to_string(), + account_kind: AccountKind::Default, + deposits: vec![ + Coin { + denom: umars.to_string(), + amount: umars_deposit_amount, + }, + Coin { + denom: urandom.to_string(), + amount: urandom_deposit_amount, + }, + ], + debts: vec![], + lends: vec![], + vaults: vec![], + staked_astro_lps: vec![], + }, + ); + + let health = + mock.query_health_values(account_id, AccountKind::Default, ActionKind::Default).unwrap(); + assert_eq!(health.total_debt_value, Uint128::zero()); + assert_eq!(health.total_collateral_value, umars_deposit_amount); // price of 1 + assert_eq!( + health.max_ltv_adjusted_collateral, + umars_deposit_amount.checked_mul_floor(umars_ap.max_loan_to_value).unwrap() + ); + assert_eq!( + health.liquidation_threshold_adjusted_collateral, + umars_deposit_amount.checked_mul_floor(umars_ap.liquidation_threshold).unwrap() + ); + assert_eq!(health.max_ltv_health_factor, None); + assert_eq!(health.liquidation_health_factor, None); + assert!(!health.liquidatable); + assert!(!health.above_max_ltv); +} diff --git a/contracts/health/tests/tests/test_hls.rs b/contracts/health/tests/tests/test_hls.rs index b76f3123..fbbd87e2 100644 --- a/contracts/health/tests/tests/test_hls.rs +++ b/contracts/health/tests/tests/test_hls.rs @@ -28,6 +28,7 @@ fn hls_account_kind_passed_along() { let positions = Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![], debts: vec![DebtAmount { denom: debt_token.to_string(), @@ -39,6 +40,7 @@ fn hls_account_kind_passed_along() { vault: vault.clone(), amount: VaultPositionAmount::Unlocked(VaultAmount::new(vault_token_amount)), }], + staked_astro_lps: vec![], }; mock.set_positions_response(account_id, &positions); mock.set_price(debt_token, Decimal::one(), ActionKind::Default); diff --git a/contracts/health/tests/tests/test_liquidation_pricing.rs b/contracts/health/tests/tests/test_liquidation_pricing.rs index 45aedfc9..e59c71f4 100644 --- a/contracts/health/tests/tests/test_liquidation_pricing.rs +++ b/contracts/health/tests/tests/test_liquidation_pricing.rs @@ -55,6 +55,7 @@ fn uses_liquidation_pricing() { account_id, &Positions { account_id: account_id.to_string(), + account_kind: AccountKind::Default, deposits: vec![Coin { denom: umars.to_string(), amount: Uint128::new(30), @@ -66,6 +67,7 @@ fn uses_liquidation_pricing() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, ); diff --git a/contracts/incentives/Cargo.toml b/contracts/incentives/Cargo.toml index 2300bac4..a3d19ce7 100644 --- a/contracts/incentives/Cargo.toml +++ b/contracts/incentives/Cargo.toml @@ -20,9 +20,11 @@ backtraces = ["cosmwasm-std/backtraces", "mars-testing/backtraces", "mars-utils/ library = [] [dependencies] +astroport-v5 = { workspace = true } cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } cw2 = { workspace = true } +cw-paginate = { workspace = true } cw-storage-plus = { workspace = true } mars-owner = { workspace = true } mars-types = { workspace = true } @@ -37,3 +39,6 @@ mars-testing = { workspace = true } osmosis-std = { workspace = true } mars-red-bank = { workspace = true } test-case = { workspace = true } + +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +cw-it = { workspace = true, features = ["multi-test"] } \ No newline at end of file diff --git a/contracts/incentives/README.md b/contracts/incentives/README.md index 7e75b3b4..3478f23c 100644 --- a/contracts/incentives/README.md +++ b/contracts/incentives/README.md @@ -1,6 +1,31 @@ # Mars Incentives -A smart contract that manages MARS incentives for depositors. +A smart contract that manages both MARS incentives for redbank deposits, and Astroport LP incentives for staked LP positions + +## Astroport + +Astroport requires users to 'stake' their Lp positions in the Astroport incentives +contract in order to accrue externally added incentives for that LP position. + +Mars facilitates the ability for a credit account to stake into this contract via the Mars incentives contract, in order +to accrue these additional rewards whilst using that lp position as collateral in +that credit account. + +The Mars Incentives contract pools all LP positions together in one staked position in Astroport, managing the accounting for each individual user internally. + +Rewards are also pooled, and are distributed to the user based on their LP share amount since their last claim. +Because of this, we must claim rewards for a user each time they update their staked LP balance + +This functionality is exposed through the stake, unstake, and claim actions via credit manager + +### Stake +![stake](files/stake.png) + +### Unstake +![unstake](files/unstake.png) + +### Claim Rewards +![claim rewards](files/claim.png) ## License diff --git a/contracts/incentives/files/claim.png b/contracts/incentives/files/claim.png new file mode 100644 index 00000000..f6cea1f3 Binary files /dev/null and b/contracts/incentives/files/claim.png differ diff --git a/contracts/incentives/files/stake.png b/contracts/incentives/files/stake.png new file mode 100644 index 00000000..afeed3fc Binary files /dev/null and b/contracts/incentives/files/stake.png differ diff --git a/contracts/incentives/files/unstake.png b/contracts/incentives/files/unstake.png new file mode 100644 index 00000000..a6993985 Binary files /dev/null and b/contracts/incentives/files/unstake.png differ diff --git a/contracts/incentives/src/astro_incentives.rs b/contracts/incentives/src/astro_incentives.rs new file mode 100644 index 00000000..58f41744 --- /dev/null +++ b/contracts/incentives/src/astro_incentives.rs @@ -0,0 +1,388 @@ +use std::collections::HashMap; + +use astroport_v5::incentives::ExecuteMsg; +use cosmwasm_std::{ + ensure_eq, to_json_binary, BankMsg, Coin, CosmosMsg, Decimal, DepsMut, Env, Event, MessageInfo, + Order::Ascending, Response, StdResult, Storage, Uint128, WasmMsg, +}; +use mars_types::{ + address_provider::{helpers::query_contract_addrs, MarsAddressType}, + credit_manager::{ActionAmount, ActionCoin}, + error::MarsError, + incentives::LpModification, +}; + +use crate::{ + helpers::{ + calculate_rewards_for_staked_astro_lp_position, claim_rewards_msg, + compute_updated_astro_incentive_states, MaybeMutStorage, + }, + query::query_unclaimed_astro_lp_rewards, + state::{ASTRO_INCENTIVE_STATES, ASTRO_TOTAL_LP_DEPOSITS, ASTRO_USER_LP_DEPOSITS, CONFIG}, + ContractError::{self, NoStakedLp}, +}; + +/// Fetches all pending rewards from all users LP in astroport, and updates the lp incentive states +fn claim_global_staked_lp_rewards( + deps: &mut DepsMut, + astroport_incentives_addr: &str, + mars_incentives_addr: &str, + lp_denom: &str, +) -> Result { + let pending_rewards: Vec = query_unclaimed_astro_lp_rewards( + deps.as_ref(), + mars_incentives_addr, + astroport_incentives_addr, + lp_denom, + )?; + + let res = update_incentive_states_for_lp_denom(deps.storage, lp_denom, pending_rewards)?; + + Ok(res + .add_event(Event::new("mars/incentives/claimed_astro_incentive_rewards")) + .add_message(claim_rewards_msg(astroport_incentives_addr, lp_denom)?)) +} + +pub fn execute_unstake_lp( + deps: DepsMut, + env: Env, + info: MessageInfo, + account_id: String, + lp_coin: ActionCoin, +) -> Result { + let config = CONFIG.load(deps.storage)?; + let addresses = query_contract_addrs( + deps.as_ref(), + &config.address_provider, + vec![MarsAddressType::AstroportIncentives, MarsAddressType::CreditManager], + )?; + + let astroport_incentives_addr = &addresses[&MarsAddressType::AstroportIncentives]; + let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; + + ensure_eq!(info.sender, credit_manager_addr, ContractError::Mars(MarsError::Unauthorized {})); + + let amount = match lp_coin.amount { + ActionAmount::Exact(amount) => amount, + ActionAmount::AccountBalance => ASTRO_USER_LP_DEPOSITS + .may_load(deps.storage, (&account_id, &lp_coin.denom))? + .unwrap_or(Uint128::zero()), + }; + + if amount.is_zero() { + return Err(NoStakedLp { + account_id: account_id.clone(), + denom: lp_coin.denom.clone(), + }); + } + + let lp_coin_checked = Coin { + denom: lp_coin.denom, + amount, + }; + + update_user_lp_position( + deps, + &account_id, + lp_coin_checked, + astroport_incentives_addr.as_ref(), + env.contract.address.as_str(), + credit_manager_addr.as_ref(), + LpModification::Withdraw, + ) +} + +pub fn execute_stake_lp( + deps: DepsMut, + env: Env, + info: MessageInfo, + account_id: String, + lp_coin: Coin, +) -> Result { + let config = CONFIG.load(deps.storage)?; + + let addresses = query_contract_addrs( + deps.as_ref(), + &config.address_provider, + vec![MarsAddressType::AstroportIncentives, MarsAddressType::CreditManager], + )?; + + let astroport_incentives_addr = &addresses[&MarsAddressType::AstroportIncentives]; + let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; + + ensure_eq!(info.sender, credit_manager_addr, ContractError::Mars(MarsError::Unauthorized {})); + + update_user_lp_position( + deps, + &account_id, + lp_coin, + astroport_incentives_addr.as_str(), + env.contract.address.as_str(), + credit_manager_addr.as_str(), + LpModification::Deposit, + ) +} + +fn update_user_lp_position( + mut deps: DepsMut, + account_id: &str, + lp_coin: Coin, + astroport_incentives_addr: &str, + mars_incentives_addr: &str, + credit_manager_addr: &str, + modification: LpModification, +) -> Result { + // Astroport raises an error if there is no existing position and we query rewards. + // Therefore, we check first to ensure we don't fail first time somebody stakes + // https://github.com/astroport-fi/astroport-core/blob/main/contracts/tokenomics/incentives/src/state.rs#L539 + let total_staked_lp_amount = + ASTRO_TOTAL_LP_DEPOSITS.may_load(deps.storage, &lp_coin.denom)?.unwrap_or(Uint128::zero()); + + // Claim all rewards from astroport before any modification + let mut res = if !total_staked_lp_amount.is_zero() { + let staked_lp_amount = ASTRO_USER_LP_DEPOSITS + .may_load(deps.storage, (&account_id, &lp_coin.denom))? + .unwrap_or(Uint128::zero()); + claim_rewards_for_staked_lp_position( + &mut deps, + astroport_incentives_addr, + mars_incentives_addr, + credit_manager_addr, + account_id, + &lp_coin.denom, + staked_lp_amount, + )? + } else { + Response::new() + }; + + res = match modification { + // Deposit stakes lp coin in astroport incentives + LpModification::Deposit => { + // Update our accounting + increment_staked_lp(deps.storage, account_id, &lp_coin)?; + + // stake in astroport incentives + res.add_message(CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: astroport_incentives_addr.to_string(), + funds: vec![lp_coin], + msg: to_json_binary(&ExecuteMsg::Deposit { + recipient: Some(mars_incentives_addr.to_string()), + })?, + })) + } + + LpModification::Withdraw => { + // Update our lp amount accounting + decrement_staked_lp(deps.storage, account_id, &lp_coin)?; + + // Add two messages + // - unstake from astroport incentives (lp_amount) + // - send to credit manager (lp_amount) + res.add_messages([ + // Withdraw from astroport lp staking + CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: astroport_incentives_addr.to_string(), + msg: to_json_binary(&ExecuteMsg::Withdraw { + lp_token: lp_coin.denom.clone(), + amount: lp_coin.amount, + })?, + funds: vec![], + }), + // Send lp_coins to credit manager + CosmosMsg::Bank(BankMsg::Send { + to_address: credit_manager_addr.to_string(), + amount: vec![lp_coin], + }), + ]) + } + }; + + let modification_event = Event::new("mars/incentives/update_user_lp_position") + .add_attribute("action", modification) + .add_attribute("account_id", account_id.to_string()); + + Ok(res.add_event(modification_event)) +} + +fn increment_staked_lp( + store: &mut dyn Storage, + account_id: &str, + lp_coin: &Coin, +) -> Result<(), ContractError> { + // Update user staked lp state + ASTRO_USER_LP_DEPOSITS.update( + store, + (&account_id, &lp_coin.denom), + |existing| -> StdResult<_> { + Ok(existing.unwrap_or_default().checked_add(lp_coin.amount)?) + }, + )?; + + // Update total staked lp state + ASTRO_TOTAL_LP_DEPOSITS.update(store, &lp_coin.denom, |existing| -> StdResult<_> { + Ok(existing.unwrap_or_default().checked_add(lp_coin.amount)?) + })?; + + Ok(()) +} + +fn decrement_staked_lp( + store: &mut dyn Storage, + account_id: &str, + lp_coin: &Coin, +) -> Result<(), ContractError> { + // Update user staked lp state + ASTRO_USER_LP_DEPOSITS.update( + store, + (&account_id, &lp_coin.denom), + |existing| -> StdResult<_> { + Ok(existing + .ok_or(ContractError::NoStakedLp { + account_id: account_id.to_string(), + denom: lp_coin.denom.clone(), + })? + .checked_sub(lp_coin.amount)?) + }, + )?; + + // Update total staked lp state + ASTRO_TOTAL_LP_DEPOSITS.update(store, &lp_coin.denom, |existing| -> StdResult<_> { + Ok(existing + .ok_or(ContractError::NoDeposits { + denom: lp_coin.denom.clone(), + })? + .checked_sub(lp_coin.amount)?) + })?; + + Ok(()) +} + +fn update_incentive_states_for_lp_denom( + storage: &mut dyn Storage, + lp_denom: &str, + pending_rewards: Vec, +) -> Result { + // Update our global indexes for each reward. We only accept native tokens, cw20 will be ignored + let updated_incentives: HashMap = + compute_updated_astro_incentive_states(storage, pending_rewards, lp_denom)?; + + for (incentive_denom, updated_incentive) in updated_incentives.iter() { + // Store latest state + ASTRO_INCENTIVE_STATES.save(storage, (&lp_denom, incentive_denom), updated_incentive)?; + } + + Ok(Response::new()) +} + +pub fn execute_claim_rewards_for_staked_lp_position( + mut deps: DepsMut, + env: Env, + info: MessageInfo, + account_id: &str, + lp_denom: &str, +) -> Result { + let config = CONFIG.load(deps.storage)?; + + let addresses = query_contract_addrs( + deps.as_ref(), + &config.address_provider, + vec![MarsAddressType::AstroportIncentives, MarsAddressType::CreditManager], + )?; + let astroport_incentives_addr = &addresses[&MarsAddressType::AstroportIncentives]; + let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; + + // To prevent configuration errors, we fetch address from current contract instead of address_provider + let mars_incentives_addr = env.contract.address.to_string(); + ensure_eq!(info.sender, credit_manager_addr, ContractError::Mars(MarsError::Unauthorized {})); + + let staked_lp_amount = ASTRO_USER_LP_DEPOSITS + .may_load(deps.storage, (&account_id, &lp_denom))? + .ok_or(NoStakedLp { + account_id: account_id.to_string(), + denom: lp_denom.to_string(), + })?; + + claim_rewards_for_staked_lp_position( + &mut deps, + astroport_incentives_addr.as_str(), + &mars_incentives_addr, + credit_manager_addr.as_str(), + account_id, + lp_denom, + staked_lp_amount, + ) +} + +/// Claims astroport rewards for a user. +/// +/// Response returned includes msg to send rewards to credit manager +fn claim_rewards_for_staked_lp_position( + deps: &mut DepsMut, + astroport_incentives_addr: &str, + mars_incentives_addr: &str, + credit_manager_addr: &str, + account_id: &str, + lp_denom: &str, + staked_lp_amount: Uint128, +) -> Result { + let mut res = claim_global_staked_lp_rewards( + deps, + astroport_incentives_addr, + mars_incentives_addr, + lp_denom, + )?; + + let mut event = Event::new("mars/incentives/claimed_lp_rewards") + .add_attribute("account_id", account_id.to_string()); + + let user_claimable_rewards = calculate_claimable_rewards( + &mut deps.branch().storage.into(), + account_id, + lp_denom, + staked_lp_amount, + )?; + + for coin in &user_claimable_rewards { + event = event + .add_attribute("denom", coin.denom.to_string()) + .add_attribute("amount", coin.amount.to_string()); + } + res = if !user_claimable_rewards.is_empty() { + // Send the claimed rewards to the credit manager + let send_rewards_to_cm_msg = CosmosMsg::Bank(BankMsg::Send { + to_address: credit_manager_addr.to_string(), + amount: user_claimable_rewards, + }); + + res.add_message(send_rewards_to_cm_msg) + } else { + res + }; + + Ok(res.add_event(event)) +} + +fn calculate_claimable_rewards( + storage: &mut MaybeMutStorage, + account_id: &str, + lp_denom: &str, + staked_lp_amount: Uint128, +) -> Result, ContractError> { + let lp_coin = Coin { + amount: staked_lp_amount, + denom: lp_denom.to_string(), + }; + + let lp_incentive_states: HashMap = ASTRO_INCENTIVE_STATES + .prefix(lp_denom) + .range(storage.to_storage(), None, None, Ascending) + .collect::>>()?; + + calculate_rewards_for_staked_astro_lp_position( + storage, + account_id, + &lp_coin, + lp_incentive_states, + ) +} diff --git a/contracts/incentives/src/config.rs b/contracts/incentives/src/config.rs new file mode 100644 index 00000000..3c8b3ef4 --- /dev/null +++ b/contracts/incentives/src/config.rs @@ -0,0 +1,153 @@ +use cosmwasm_std::{DepsMut, Env, Event, MessageInfo, Order, Response, StdResult}; +use mars_owner::OwnerUpdate; +use mars_types::incentives::WhitelistEntry; +use mars_utils::helpers::{option_string_to_addr, validate_native_denom}; + +use crate::{ + helpers, + helpers::update_incentive_index, + state::{CONFIG, EMISSIONS, INCENTIVE_STATES, OWNER, WHITELIST, WHITELIST_COUNT}, + ContractError, +}; + +pub fn execute_update_config( + deps: DepsMut, + _env: Env, + info: MessageInfo, + address_provider: Option, + max_whitelisted_denoms: Option, +) -> Result { + OWNER.assert_owner(deps.storage, &info.sender)?; + + let mut config = CONFIG.load(deps.storage)?; + + config.address_provider = + option_string_to_addr(deps.api, address_provider, config.address_provider)?; + + if let Some(max_whitelisted_denoms) = max_whitelisted_denoms { + config.max_whitelisted_denoms = max_whitelisted_denoms; + } + + CONFIG.save(deps.storage, &config)?; + + let response = Response::new().add_attribute("action", "update_config"); + + Ok(response) +} + +pub fn update_owner( + deps: DepsMut, + info: MessageInfo, + update: OwnerUpdate, +) -> Result { + Ok(OWNER.update(deps, info, update)?) +} + +pub fn execute_update_whitelist( + mut deps: DepsMut, + env: Env, + info: MessageInfo, + add_denoms: Vec, + remove_denoms: Vec, +) -> Result { + OWNER.assert_owner(deps.storage, &info.sender)?; + + let config = CONFIG.load(deps.storage)?; + + // Add add_denoms and remove_denoms to a set to check for duplicates + let denoms = add_denoms.iter().map(|entry| &entry.denom).chain(remove_denoms.iter()); + let mut denoms_set = std::collections::HashSet::new(); + for denom in denoms { + if !denoms_set.insert(denom) { + return Err(ContractError::DuplicateDenom { + denom: denom.clone(), + }); + } + } + + let prev_whitelist_count = WHITELIST_COUNT.may_load(deps.storage)?.unwrap_or_default(); + let mut whitelist_count = prev_whitelist_count; + + for denom in remove_denoms.iter() { + // If denom is not on the whitelist, we can't remove it + if !WHITELIST.has(deps.storage, denom) { + return Err(ContractError::NotWhitelisted { + denom: denom.clone(), + }); + } + + whitelist_count -= 1; + + // Before removing from whitelist we must handle ongoing incentives, + // i.e. update the incentive index, and remove any emissions. + // So we first get all keys by in the INCENTIVE_STATES Map and then filter out the ones + // that match the incentive denom we are removing. + // This could be done more efficiently if we could prefix by incentive_denom, but + // the map key is (collateral_denom, incentive_denom) so we can't, without introducing + // another map, or using IndexedMap. + let keys = INCENTIVE_STATES + .keys(deps.storage, None, None, Order::Ascending) + .filter(|res| { + res.as_ref().map_or_else(|_| false, |(_, incentive_denom)| incentive_denom == denom) + }) + .collect::>>()?; + for (collateral_denom, incentive_denom) in keys { + let total_collateral = helpers::query_red_bank_total_collateral( + deps.as_ref(), + &config.address_provider, + &collateral_denom, + )?; + update_incentive_index( + &mut deps.branch().storage.into(), + &collateral_denom, + &incentive_denom, + total_collateral, + env.block.time.seconds(), + )?; + + // Remove any incentive emissions + let emissions = EMISSIONS + .prefix((&collateral_denom, &incentive_denom)) + .range(deps.storage, None, None, Order::Ascending) + .collect::>>()?; + for (start_time, _) in emissions { + EMISSIONS.remove(deps.storage, (&collateral_denom, &incentive_denom, start_time)); + } + } + + // Finally remove the incentive denom from the whitelist + WHITELIST.remove(deps.storage, denom); + } + + for entry in add_denoms.iter() { + let WhitelistEntry { + denom, + min_emission_rate, + } = entry; + // If the denom is not already whitelisted, increase the counter and check that we are not + // exceeding the max whitelist limit. If the denom is already whitelisted, we don't need + // to change the counter and instead just update the min_emission. + if !WHITELIST.has(deps.storage, denom) { + whitelist_count += 1; + if whitelist_count > config.max_whitelisted_denoms { + return Err(ContractError::MaxWhitelistLimitReached { + max_whitelist_limit: config.max_whitelisted_denoms, + }); + } + } + + validate_native_denom(denom)?; + WHITELIST.save(deps.storage, denom, min_emission_rate)?; + } + + // Set the new whitelist count, if it has changed + if whitelist_count != prev_whitelist_count { + WHITELIST_COUNT.save(deps.storage, &whitelist_count)?; + } + + let mut event = Event::new("mars/incentives/update_whitelist"); + event = event.add_attribute("add_denoms", format!("{:?}", add_denoms)); + event = event.add_attribute("remove_denoms", format!("{:?}", remove_denoms)); + + Ok(Response::default().add_event(event)) +} diff --git a/contracts/incentives/src/contract.rs b/contracts/incentives/src/contract.rs index 927e6a32..84a2dd4d 100644 --- a/contracts/incentives/src/contract.rs +++ b/contracts/incentives/src/contract.rs @@ -1,34 +1,17 @@ #[cfg(not(feature = "library"))] use cosmwasm_std::entry_point; use cosmwasm_std::{ - attr, to_json_binary, Addr, BankMsg, Binary, Coin, Coins, Decimal, Deps, DepsMut, Env, Event, - MessageInfo, Order, Response, StdError, StdResult, Uint128, + to_json_binary, Binary, Deps, DepsMut, Empty, Env, MessageInfo, Response, StdResult, }; use cw2::set_contract_version; -use cw_storage_plus::Bound; -use mars_owner::{OwnerInit::SetInitialOwner, OwnerUpdate}; -use mars_types::{ - address_provider::{self, MarsAddressType}, - error::MarsError, - incentives::{ - ActiveEmission, Config, ConfigResponse, EmissionResponse, ExecuteMsg, IncentiveState, - IncentiveStateResponse, InstantiateMsg, MigrateMsg, QueryMsg, WhitelistEntry, - }, - keys::{UserId, UserIdKey}, -}; -use mars_utils::helpers::{option_string_to_addr, validate_native_denom}; +use mars_owner::OwnerInit::SetInitialOwner; +use mars_types::incentives::{Config, ExecuteMsg, InstantiateMsg, QueryMsg}; use crate::{ + astro_incentives, config, error::ContractError, - helpers::{ - self, compute_user_accrued_rewards, compute_user_unclaimed_rewards, update_incentive_index, - }, - migrations, - state::{ - self, CONFIG, DEFAULT_LIMIT, EMISSIONS, EPOCH_DURATION, INCENTIVE_STATES, MAX_LIMIT, - MIGRATION_GUARD, OWNER, USER_ASSET_INDICES, USER_UNCLAIMED_REWARDS, WHITELIST, - WHITELIST_COUNT, - }, + mars_incentives, migrations, query, + state::{CONFIG, EPOCH_DURATION, MIGRATION_GUARD, OWNER}, }; pub const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME"); @@ -60,7 +43,6 @@ pub fn instantiate( let config = Config { address_provider: deps.api.addr_validate(&msg.address_provider)?, max_whitelisted_denoms: msg.max_whitelisted_denoms, - mars_denom: msg.mars_denom, }; CONFIG.save(deps.storage, &config)?; @@ -88,14 +70,14 @@ pub fn execute( ExecuteMsg::UpdateWhitelist { add_denoms, remove_denoms, - } => execute_update_whitelist(deps, env, info, add_denoms, remove_denoms), + } => config::execute_update_whitelist(deps, env, info, add_denoms, remove_denoms), ExecuteMsg::SetAssetIncentive { collateral_denom, incentive_denom, emission_per_second, start_time, duration, - } => execute_set_asset_incentive( + } => mars_incentives::execute_set_asset_incentive( deps, env, info, @@ -113,7 +95,7 @@ pub fn execute( total_amount_scaled_before, } => { MIGRATION_GUARD.assert_unlocked(deps.storage)?; - execute_balance_change( + mars_incentives::execute_balance_change( deps, env, info, @@ -124,6 +106,16 @@ pub fn execute( total_amount_scaled_before, ) } + ExecuteMsg::ClaimStakedAstroLpRewards { + account_id, + lp_denom, + } => astro_incentives::execute_claim_rewards_for_staked_lp_position( + deps, + env, + info, + &account_id, + &lp_denom, + ), ExecuteMsg::ClaimRewards { account_id, start_after_collateral_denom, @@ -131,7 +123,7 @@ pub fn execute( limit, } => { MIGRATION_GUARD.assert_unlocked(deps.storage)?; - execute_claim_rewards( + mars_incentives::execute_claim_rewards( deps, env, info, @@ -141,427 +133,56 @@ pub fn execute( limit, ) } + ExecuteMsg::StakeAstroLp { + account_id, + lp_coin, + } => astro_incentives::execute_stake_lp(deps, env, info, account_id, lp_coin), + ExecuteMsg::UnstakeAstroLp { + account_id, + lp_coin, + } => astro_incentives::execute_unstake_lp(deps, env, info, account_id, lp_coin), ExecuteMsg::UpdateConfig { address_provider, max_whitelisted_denoms, - } => Ok(execute_update_config(deps, env, info, address_provider, max_whitelisted_denoms)?), - ExecuteMsg::UpdateOwner(update) => update_owner(deps, info, update), + } => Ok(config::execute_update_config( + deps, + env, + info, + address_provider, + max_whitelisted_denoms, + )?), + ExecuteMsg::UpdateOwner(update) => config::update_owner(deps, info, update), ExecuteMsg::Migrate(msg) => migrations::v2_0_0::execute_migration(deps, info, msg), } } -pub fn execute_update_whitelist( - mut deps: DepsMut, - env: Env, - info: MessageInfo, - add_denoms: Vec, - remove_denoms: Vec, -) -> Result { - OWNER.assert_owner(deps.storage, &info.sender)?; - - let config = CONFIG.load(deps.storage)?; - - // Add add_denoms and remove_denoms to a set to check for duplicates - let denoms = add_denoms.iter().map(|entry| &entry.denom).chain(remove_denoms.iter()); - let mut denoms_set = std::collections::HashSet::new(); - for denom in denoms { - if !denoms_set.insert(denom) { - return Err(ContractError::DuplicateDenom { - denom: denom.clone(), - }); - } - } - - let prev_whitelist_count = WHITELIST_COUNT.may_load(deps.storage)?.unwrap_or_default(); - let mut whitelist_count = prev_whitelist_count; - - for denom in remove_denoms.iter() { - // If denom is not on the whitelist, we can't remove it - if !WHITELIST.has(deps.storage, denom) { - return Err(ContractError::NotWhitelisted { - denom: denom.clone(), - }); - } - - whitelist_count -= 1; - - // Before removing from whitelist we must handle ongoing incentives, - // i.e. update the incentive index, and remove any emissions. - // So we first get all keys by in the INCENTIVE_STATES Map and then filter out the ones - // that match the incentive denom we are removing. - // This could be done more efficiently if we could prefix by incentive_denom, but - // the map key is (collateral_denom, incentive_denom) so we can't, without introducing - // another map, or using IndexedMap. - let keys = INCENTIVE_STATES - .keys(deps.storage, None, None, Order::Ascending) - .filter(|res| { - res.as_ref().map_or_else(|_| false, |(_, incentive_denom)| incentive_denom == denom) - }) - .collect::>>()?; - for (collateral_denom, incentive_denom) in keys { - let total_collateral = helpers::query_red_bank_total_collateral( - deps.as_ref(), - &config.address_provider, - &collateral_denom, - )?; - update_incentive_index( - &mut deps.branch().storage.into(), - &collateral_denom, - &incentive_denom, - total_collateral, - env.block.time.seconds(), - )?; - - // Remove any incentive emissions - let emissions = EMISSIONS - .prefix((&collateral_denom, &incentive_denom)) - .range(deps.storage, None, None, Order::Ascending) - .collect::>>()?; - for (start_time, _) in emissions { - EMISSIONS.remove(deps.storage, (&collateral_denom, &incentive_denom, start_time)); - } - } - - // Finally remove the incentive denom from the whitelist - WHITELIST.remove(deps.storage, denom); - } - - for entry in add_denoms.iter() { - let WhitelistEntry { - denom, - min_emission_rate, - } = entry; - // If the denom is not already whitelisted, increase the counter and check that we are not - // exceeding the max whitelist limit. If the denom is already whitelisted, we don't need - // to change the counter and instead just update the min_emission. - if !WHITELIST.has(deps.storage, denom) { - whitelist_count += 1; - if whitelist_count > config.max_whitelisted_denoms { - return Err(ContractError::MaxWhitelistLimitReached { - max_whitelist_limit: config.max_whitelisted_denoms, - }); - } - } - - validate_native_denom(denom)?; - WHITELIST.save(deps.storage, denom, min_emission_rate)?; - } - - // Set the new whitelist count, if it has changed - if whitelist_count != prev_whitelist_count { - WHITELIST_COUNT.save(deps.storage, &whitelist_count)?; - } - - let mut event = Event::new("mars/incentives/update_whitelist"); - event = event.add_attribute("add_denoms", format!("{:?}", add_denoms)); - event = event.add_attribute("remove_denoms", format!("{:?}", remove_denoms)); - - Ok(Response::default().add_event(event)) -} - -pub fn execute_set_asset_incentive( - mut deps: DepsMut, - env: Env, - info: MessageInfo, - collateral_denom: String, - incentive_denom: String, - emission_per_second: Uint128, - start_time: u64, - duration: u64, -) -> Result { - validate_native_denom(&collateral_denom)?; - validate_native_denom(&incentive_denom)?; - - // Check that the incentive denom is whitelisted - if !WHITELIST.key(&incentive_denom).has(deps.storage) { - return Err(ContractError::NotWhitelisted { - denom: incentive_denom, - }); - } - - let config = CONFIG.load(deps.storage)?; - let epoch_duration = EPOCH_DURATION.load(deps.storage)?; - let current_time = env.block.time.seconds(); - - // Validate incentive schedule - helpers::validate_incentive_schedule( - deps.storage, - &info, - epoch_duration, - current_time, - &collateral_denom, - &incentive_denom, - emission_per_second, - start_time, - duration, - )?; - - // Update current incentive index - let total_collateral = helpers::query_red_bank_total_collateral( - deps.as_ref(), - &config.address_provider, - &collateral_denom, - )?; - update_incentive_index( - &mut deps.branch().storage.into(), - &collateral_denom, - &incentive_denom, - total_collateral, - current_time, - )?; - - // To simplify the logic and prevent too much gas usage, we split the new schedule into separate - // schedules that are exactly one epoch long. This way we can easily merge them with existing - // schedules. - // Loop over each epoch duration of the new schedule and merge into any existing schedules - let mut epoch_start_time = start_time; - while epoch_start_time < start_time + duration { - // Check if an schedule exists for the current epoch. If it does, merge the new schedule - // with the existing schedule. Else add a new schedule. - let key = (collateral_denom.as_str(), incentive_denom.as_str(), epoch_start_time); - let existing_schedule = EMISSIONS.may_load(deps.storage, key)?; - if let Some(existing_schedule) = existing_schedule { - EMISSIONS.save(deps.storage, key, &(existing_schedule + emission_per_second))?; - } else { - EMISSIONS.save(deps.storage, key, &emission_per_second)?; - } - - epoch_start_time += epoch_duration; - } - - // Set up the incentive state if it doesn't exist - INCENTIVE_STATES.update(deps.storage, (&collateral_denom, &incentive_denom), |old| { - Ok::<_, StdError>(old.unwrap_or_else(|| IncentiveState { - index: Decimal::zero(), - last_updated: current_time, - })) - })?; - - let response = Response::new().add_attributes(vec![ - attr("action", "set_asset_incentive"), - attr("collateral_denom", collateral_denom), - attr("incentive_denom", incentive_denom), - attr("emission_per_second", emission_per_second), - attr("start_time", start_time.to_string()), - attr("duration", duration.to_string()), - ]); - Ok(response) -} - -pub fn execute_balance_change( - mut deps: DepsMut, - env: Env, - info: MessageInfo, - user_addr: Addr, - account_id: Option, - collateral_denom: String, - user_amount_scaled_before: Uint128, - total_amount_scaled_before: Uint128, -) -> Result { - // this method can only be invoked by the Red Bank contract - let red_bank_addr = query_red_bank_address(deps.as_ref())?; - if info.sender != red_bank_addr { - return Err(MarsError::Unauthorized {}.into()); - } - - let acc_id = account_id.clone().unwrap_or("".to_string()); - - let user_id = UserId::credit_manager(user_addr.clone(), acc_id.clone()); - let user_id_key: UserIdKey = user_id.try_into()?; - - let base_event = Event::new("mars/incentives/balance_change") - .add_attribute("action", "balance_change") - .add_attribute("denom", collateral_denom.clone()) - .add_attribute("user", user_addr.to_string()); - let base_event = if account_id.is_some() { - base_event.add_attribute("account_id", &acc_id) - } else { - base_event - }; - let mut events = vec![base_event]; - - let incentive_states = INCENTIVE_STATES - .prefix(&collateral_denom) - .range(deps.storage, None, None, Order::Ascending) - .collect::>>()?; - - for (incentive_denom, _) in incentive_states { - let incentive_state = update_incentive_index( - &mut deps.branch().storage.into(), - &collateral_denom, - &incentive_denom, - total_amount_scaled_before, - env.block.time.seconds(), - )?; - - // Check if user has accumulated uncomputed rewards (which means index is not up to date) - let user_asset_index_key = - USER_ASSET_INDICES.key((&user_id_key.clone(), &collateral_denom, &incentive_denom)); - - let user_asset_index = - user_asset_index_key.may_load(deps.storage)?.unwrap_or_else(Decimal::zero); - - let mut accrued_rewards = Uint128::zero(); - - if user_asset_index != incentive_state.index { - // Compute user accrued rewards and update state - accrued_rewards = compute_user_accrued_rewards( - user_amount_scaled_before, - user_asset_index, - incentive_state.index, - )?; - - // Store user accrued rewards as unclaimed - if !accrued_rewards.is_zero() { - state::increase_unclaimed_rewards( - deps.storage, - &user_addr, - &acc_id, - &collateral_denom, - &incentive_denom, - accrued_rewards, - )?; - } - - user_asset_index_key.save(deps.storage, &incentive_state.index)?; - } - - events.push( - Event::new("mars/incentives/balance_change/reward_accrued") - .add_attribute("incentive_denom", incentive_denom) - .add_attribute("rewards_accrued", accrued_rewards) - .add_attribute("asset_index", incentive_state.index.to_string()), - ); - } - - Ok(Response::new().add_events(events)) -} - -pub fn execute_claim_rewards( - mut deps: DepsMut, - env: Env, - info: MessageInfo, - account_id: Option, - start_after_collateral_denom: Option, - start_after_incentive_denom: Option, - limit: Option, -) -> Result { - let user_addr = info.sender; - let acc_id = account_id.clone().unwrap_or("".to_string()); - let user_id = UserId::credit_manager(user_addr.clone(), acc_id.clone()); - let user_id_key: UserIdKey = user_id.try_into()?; - - let red_bank_addr = query_red_bank_address(deps.as_ref())?; - - let mut response = Response::new(); - let base_event = Event::new("mars/incentives/claim_rewards") - .add_attribute("action", "claim_rewards") - .add_attribute("user", user_addr.to_string()); - let base_event = if account_id.is_some() { - base_event.add_attribute("account_id", &acc_id) - } else { - base_event - }; - response = response.add_event(base_event); - - let asset_incentives = state::paginate_incentive_states( - deps.storage, - start_after_collateral_denom, - start_after_incentive_denom, - limit, - )?; - - let mut total_unclaimed_rewards = Coins::default(); - - for ((collateral_denom, incentive_denom), _) in asset_incentives { - let querier = deps.querier; - let unclaimed_rewards = compute_user_unclaimed_rewards( - &mut deps.branch().storage.into(), - &querier, - &env.block, - &red_bank_addr, - &user_addr, - &account_id, - &collateral_denom, - &incentive_denom, - )?; - - // clear unclaimed rewards - USER_UNCLAIMED_REWARDS.save( - deps.storage, - (&user_id_key, &collateral_denom, &incentive_denom), - &Uint128::zero(), - )?; - - total_unclaimed_rewards.add(Coin { - denom: incentive_denom, - amount: unclaimed_rewards, - })?; - } - - if !total_unclaimed_rewards.is_empty() { - response = response - .add_event( - Event::new("mars/incentives/claim_rewards/claimed_rewards") - .add_attribute("coins", total_unclaimed_rewards.to_string()), - ) - .add_message(BankMsg::Send { - to_address: user_addr.into(), - amount: total_unclaimed_rewards.into(), - }); - } - - Ok(response) -} - -pub fn execute_update_config( - deps: DepsMut, - _env: Env, - info: MessageInfo, - address_provider: Option, - max_whitelisted_denoms: Option, -) -> Result { - OWNER.assert_owner(deps.storage, &info.sender)?; - - let mut config = CONFIG.load(deps.storage)?; - - config.address_provider = - option_string_to_addr(deps.api, address_provider, config.address_provider)?; - - if let Some(max_whitelisted_denoms) = max_whitelisted_denoms { - config.max_whitelisted_denoms = max_whitelisted_denoms; - } - - CONFIG.save(deps.storage, &config)?; - - let response = Response::new().add_attribute("action", "update_config"); - - Ok(response) -} - -fn update_owner( - deps: DepsMut, - info: MessageInfo, - update: OwnerUpdate, -) -> Result { - Ok(OWNER.update(deps, info, update)?) -} - // QUERIES #[cfg_attr(not(feature = "library"), entry_point)] pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { match msg { - QueryMsg::Config {} => to_json_binary(&query_config(deps)?), + QueryMsg::StakedAstroLpRewards { + account_id, + lp_denom, + } => to_json_binary(&query::query_staked_astro_lp_rewards_for_denom( + deps, + &env, + &account_id, + &lp_denom, + )?), + + QueryMsg::Config {} => to_json_binary(&query::query_config(deps)?), QueryMsg::IncentiveState { collateral_denom, incentive_denom, - } => to_json_binary(&query_incentive_state(deps, collateral_denom, incentive_denom)?), + } => { + to_json_binary(&query::query_incentive_state(deps, collateral_denom, incentive_denom)?) + } QueryMsg::IncentiveStates { start_after_collateral_denom, start_after_incentive_denom, limit, - } => to_json_binary(&query_incentive_states( + } => to_json_binary(&query::query_incentive_states( deps, start_after_collateral_denom, start_after_incentive_denom, @@ -573,7 +194,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { start_after_collateral_denom, start_after_incentive_denom, limit, - } => to_json_binary(&query_user_unclaimed_rewards( + } => to_json_binary(&query::query_user_unclaimed_rewards( deps, env, user, @@ -582,18 +203,23 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { start_after_incentive_denom, limit, )?), - QueryMsg::Whitelist {} => to_json_binary(&query_whitelist(deps)?), + QueryMsg::Whitelist {} => to_json_binary(&query::query_whitelist(deps)?), QueryMsg::Emission { collateral_denom, incentive_denom, timestamp, - } => to_json_binary(&query_emission(deps, &collateral_denom, &incentive_denom, timestamp)?), + } => to_json_binary(&query::query_emission( + deps, + &collateral_denom, + &incentive_denom, + timestamp, + )?), QueryMsg::Emissions { collateral_denom, incentive_denom, start_after_timestamp, limit, - } => to_json_binary(&query_emissions( + } => to_json_binary(&query::query_emissions( deps, collateral_denom, incentive_denom, @@ -602,185 +228,30 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { )?), QueryMsg::ActiveEmissions { collateral_denom, - } => to_json_binary(&query_active_emissions(deps, env, &collateral_denom)?), - } -} - -pub fn query_active_emissions( - deps: Deps, - env: Env, - collateral_denom: &str, -) -> StdResult> { - Ok(INCENTIVE_STATES - .prefix(collateral_denom) - .keys(deps.storage, None, None, Order::Ascending) - .map(|incentive_denom| { - let incentive_denom = incentive_denom?; - let emission = - query_emission(deps, collateral_denom, &incentive_denom, env.block.time.seconds())?; - - Ok::((incentive_denom, emission).into()) - }) - .collect::>>()? - .into_iter() - .filter(|emission| emission.emission_rate != Uint128::zero()) - .collect()) -} - -pub fn query_config(deps: Deps) -> StdResult { - let owner_state = OWNER.query(deps.storage)?; - let config = CONFIG.load(deps.storage)?; - Ok(ConfigResponse { - owner: owner_state.owner, - proposed_new_owner: owner_state.proposed, - address_provider: config.address_provider, - max_whitelisted_denoms: config.max_whitelisted_denoms, - epoch_duration: EPOCH_DURATION.load(deps.storage)?, - whitelist_count: WHITELIST_COUNT.may_load(deps.storage)?.unwrap_or_default(), - }) -} - -pub fn query_incentive_state( - deps: Deps, - collateral_denom: String, - incentive_denom: String, -) -> StdResult { - let incentive_state = - INCENTIVE_STATES.load(deps.storage, (&collateral_denom, &incentive_denom))?; - Ok(IncentiveStateResponse::from(collateral_denom, incentive_denom, incentive_state)) -} - -pub fn query_incentive_states( - deps: Deps, - start_after_collateral_denom: Option, - start_after_incentive_denom: Option, - limit: Option, -) -> StdResult> { - let incentive_states = state::paginate_incentive_states( - deps.storage, - start_after_collateral_denom, - start_after_incentive_denom, - limit, - )?; - - incentive_states - .into_iter() - .map(|((collateral_denom, incentive_denom), ai)| { - Ok(IncentiveStateResponse::from(collateral_denom, incentive_denom, ai)) - }) - .collect() -} - -pub fn query_user_unclaimed_rewards( - deps: Deps, - env: Env, - user: String, - account_id: Option, - start_after_collateral_denom: Option, - start_after_incentive_denom: Option, - limit: Option, -) -> Result, ContractError> { - let user_addr = deps.api.addr_validate(&user)?; - - let red_bank_addr = query_red_bank_address(deps)?; - - let incentive_states = state::paginate_incentive_states( - deps.storage, - start_after_collateral_denom, - start_after_incentive_denom, - limit, - )?; - - let mut total_unclaimed_rewards = Coins::default(); - - for ((collateral_denom, incentive_denom), _) in incentive_states { - let unclaimed_rewards = compute_user_unclaimed_rewards( - &mut deps.storage.into(), - &deps.querier, - &env.block, - &red_bank_addr, - &user_addr, - &account_id, - &collateral_denom, - &incentive_denom, - )?; - - total_unclaimed_rewards.add(Coin { - denom: incentive_denom, - amount: unclaimed_rewards, - })?; + } => to_json_binary(&query::query_active_emissions(deps, env, &collateral_denom)?), + QueryMsg::StakedAstroLpPositions { + account_id, + start_after, + limit, + } => to_json_binary(&query::query_staked_astro_lp_positions( + deps, + env, + account_id, + start_after, + limit, + )?), + QueryMsg::StakedAstroLpPosition { + account_id, + lp_denom, + } => { + to_json_binary(&query::query_staked_astro_lp_position(deps, env, account_id, lp_denom)?) + } } - - Ok(total_unclaimed_rewards.into()) -} - -fn query_red_bank_address(deps: Deps) -> StdResult { - let config = CONFIG.load(deps.storage)?; - address_provider::helpers::query_contract_addr( - deps, - &config.address_provider, - MarsAddressType::RedBank, - ) -} - -fn query_whitelist(deps: Deps) -> StdResult> { - let whitelist: Vec = WHITELIST - .range(deps.storage, None, None, Order::Ascending) - .map(|res| { - let (denom, min_emission_rate) = res?; - Ok(WhitelistEntry { - denom, - min_emission_rate, - }) - }) - .collect::>()?; - Ok(whitelist) -} - -pub fn query_emission( - deps: Deps, - collateral_denom: &str, - incentive_denom: &str, - timestamp: u64, -) -> StdResult { - let epoch_duration = EPOCH_DURATION.load(deps.storage)?; - let emission = EMISSIONS - .prefix((collateral_denom, incentive_denom)) - .range( - deps.storage, - Some(Bound::inclusive(timestamp.saturating_sub(epoch_duration - 1))), - Some(Bound::inclusive(timestamp)), - Order::Ascending, - ) - .next() - .transpose()? - .map(|(_, emission)| emission) - .unwrap_or_default(); - - Ok(emission) -} - -pub fn query_emissions( - deps: Deps, - collateral_denom: String, - incentive_denom: String, - start_after_timestamp: Option, - limit: Option, -) -> StdResult> { - let min = start_after_timestamp.map(Bound::exclusive); - let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT) as usize; - let emissions = EMISSIONS - .prefix((&collateral_denom, &incentive_denom)) - .range(deps.storage, min, None, Order::Ascending) - .take(limit) - .collect::>>()?; - - Ok(emissions.into_iter().map(|x| x.into()).collect()) } /// MIGRATION #[cfg_attr(not(feature = "library"), entry_point)] -pub fn migrate(deps: DepsMut, env: Env, msg: MigrateMsg) -> Result { +pub fn migrate(deps: DepsMut, env: Env, msg: Empty) -> Result { migrations::v2_0_0::migrate(deps, env, msg) } diff --git a/contracts/incentives/src/error.rs b/contracts/incentives/src/error.rs index daabb8db..a93d0887 100644 --- a/contracts/incentives/src/error.rs +++ b/contracts/incentives/src/error.rs @@ -72,6 +72,17 @@ pub enum ContractError { #[error("{0}")] Guard(#[from] GuardError), + + #[error("Account id {account_id} has no staked LP position for denom: {denom}")] + NoStakedLp { + account_id: String, + denom: String, + }, + + #[error("No deposits for {denom} exist")] + NoDeposits { + denom: String, + }, } impl From for StdError { diff --git a/contracts/incentives/src/helpers.rs b/contracts/incentives/src/helpers.rs index 42efd1c6..39b30141 100644 --- a/contracts/incentives/src/helpers.rs +++ b/contracts/incentives/src/helpers.rs @@ -1,8 +1,13 @@ -use std::cmp::{max, min}; +use std::{ + cmp::{max, min}, + collections::HashMap, +}; +use astroport_v5::incentives::ExecuteMsg; use cosmwasm_std::{ - coin, Addr, BlockInfo, Decimal, Deps, MessageInfo, Order, OverflowError, OverflowOperation, - QuerierWrapper, StdError, StdResult, Storage, Uint128, + coin, to_json_binary, Addr, BlockInfo, Coin, CosmosMsg, Decimal, Deps, MessageInfo, Order, + OverflowError, OverflowOperation, QuerierWrapper, StdError, StdResult, Storage, Uint128, + WasmMsg, }; use cw_storage_plus::Bound; use mars_types::{ @@ -14,7 +19,8 @@ use mars_types::{ use crate::{ state::{ - EMISSIONS, EPOCH_DURATION, INCENTIVE_STATES, USER_ASSET_INDICES, USER_UNCLAIMED_REWARDS, + ASTRO_INCENTIVE_STATES, ASTRO_TOTAL_LP_DEPOSITS, EMISSIONS, EPOCH_DURATION, + INCENTIVE_STATES, USER_ASSET_INDICES, USER_ASTRO_INCENTIVE_STATES, USER_UNCLAIMED_REWARDS, WHITELIST, }, ContractError, @@ -210,6 +216,88 @@ pub fn update_incentive_index( Ok(incentive_state) } +/// Compute the incentive states for the lp based on the rewards given +pub fn compute_updated_astro_incentive_states( + storage: &dyn Storage, + pending_rewards: Vec, + lp_denom: &str, +) -> Result, ContractError> { + let mut updated_incentives: HashMap = HashMap::new(); + let total_lp_amount = ASTRO_TOTAL_LP_DEPOSITS.may_load(storage, lp_denom)?.unwrap_or_default(); + + for reward in pending_rewards { + let reward_denom = reward.denom; + + // We want to use our already updated index if it exists in memory. + // This allows us to combine multiple rewards of the same denom. + let previous_index = updated_incentives + .get(&reward_denom) + .copied() + // Otherwise we load from storage + .or_else(|| { + ASTRO_INCENTIVE_STATES.may_load(storage, (&lp_denom, &reward_denom)).ok()? + }) + .unwrap_or(Decimal::zero()); + + let updated_incentive = + compute_astro_incentive_index(&previous_index, reward.amount, total_lp_amount)?; + + updated_incentives.insert(reward_denom, updated_incentive); + } + + Ok(updated_incentives) +} + +pub fn calculate_rewards_for_staked_astro_lp_position( + mut storage: &mut MaybeMutStorage, + account_id: &str, + lp_coin: &Coin, + incentive_states: HashMap, +) -> Result, ContractError> { + let mut payables = vec![]; + for (reward_denom, incentive_index) in incentive_states.iter() { + let user_incentive_index = USER_ASTRO_INCENTIVE_STATES + .may_load(storage.to_storage(), (account_id, &lp_coin.denom, reward_denom))? + .unwrap_or(Decimal::zero()); + + // Don't claim if already claimed + if user_incentive_index != incentive_index && !lp_coin.amount.is_zero() { + let rewards = compute_user_accrued_rewards( + lp_coin.amount, + user_incentive_index, + *incentive_index, + )?; + + // Add rewards to payments + payables.push(Coin { + denom: reward_denom.to_string(), + amount: rewards, + }) + } + + // Update user incentive index + if let MaybeMutStorage::Mutable(storage) = &mut storage { + // Set user incentive to latest, as we claim every action + USER_ASTRO_INCENTIVE_STATES.save( + *storage, + (&account_id, &lp_coin.denom, reward_denom), + incentive_index, + )?; + } + } + + Ok(payables) +} + +pub fn compute_astro_incentive_index( + previous_index: &Decimal, + claimed_rewards_amount: Uint128, + total_lp_amount: Uint128, +) -> StdResult { + let new_index = previous_index + Decimal::from_ratio(claimed_rewards_amount, total_lp_amount); + Ok(new_index) +} + /// Computes the new incentive index for a given collateral denom and incentive denom tuple pub fn compute_incentive_index( previous_index: Decimal, @@ -325,3 +413,16 @@ pub fn compute_user_unclaimed_rewards( Ok(unclaimed_rewards) } + +pub fn claim_rewards_msg( + astroport_incentives_addr: &str, + lp_denom: &str, +) -> Result { + Ok(CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: astroport_incentives_addr.to_string(), + funds: vec![], + msg: to_json_binary(&ExecuteMsg::ClaimRewards { + lp_tokens: vec![lp_denom.to_string()], + })?, + })) +} diff --git a/contracts/incentives/src/lib.rs b/contracts/incentives/src/lib.rs index 88d83aea..c2825f0f 100644 --- a/contracts/incentives/src/lib.rs +++ b/contracts/incentives/src/lib.rs @@ -1,7 +1,11 @@ +pub mod astro_incentives; +pub mod config; pub mod contract; mod error; pub mod helpers; +pub mod mars_incentives; pub mod migrations; +pub mod query; pub mod state; pub use error::ContractError; diff --git a/contracts/incentives/src/mars_incentives.rs b/contracts/incentives/src/mars_incentives.rs new file mode 100644 index 00000000..a787c815 --- /dev/null +++ b/contracts/incentives/src/mars_incentives.rs @@ -0,0 +1,279 @@ +use cosmwasm_std::{ + attr, Addr, BankMsg, Coin, Coins, Decimal, DepsMut, Env, Event, MessageInfo, Order, Response, + StdError, StdResult, Uint128, +}; +use mars_types::{ + error::MarsError, + incentives::IncentiveState, + keys::{UserId, UserIdKey}, +}; +use mars_utils::helpers::validate_native_denom; + +use crate::{ + helpers, + helpers::{ + compute_user_accrued_rewards, compute_user_unclaimed_rewards, update_incentive_index, + }, + query::query_red_bank_address, + state, + state::{ + CONFIG, EMISSIONS, EPOCH_DURATION, INCENTIVE_STATES, USER_ASSET_INDICES, + USER_UNCLAIMED_REWARDS, WHITELIST, + }, + ContractError, +}; + +pub fn execute_claim_rewards( + mut deps: DepsMut, + env: Env, + info: MessageInfo, + account_id: Option, + start_after_collateral_denom: Option, + start_after_incentive_denom: Option, + limit: Option, +) -> Result { + let user_addr = info.sender; + let acc_id = account_id.clone().unwrap_or("".to_string()); + let user_id = UserId::credit_manager(user_addr.clone(), acc_id.clone()); + let user_id_key: UserIdKey = user_id.try_into()?; + + let red_bank_addr = query_red_bank_address(deps.as_ref())?; + + let mut response = Response::new(); + let base_event = Event::new("mars/incentives/claim_rewards") + .add_attribute("action", "claim_rewards") + .add_attribute("user", user_addr.to_string()); + let base_event = if account_id.is_some() { + base_event.add_attribute("account_id", &acc_id) + } else { + base_event + }; + response = response.add_event(base_event); + + let asset_incentives = state::paginate_incentive_states( + deps.storage, + start_after_collateral_denom, + start_after_incentive_denom, + limit, + )?; + + let mut total_unclaimed_rewards = Coins::default(); + + for ((collateral_denom, incentive_denom), _) in asset_incentives { + let querier = deps.querier; + let unclaimed_rewards = compute_user_unclaimed_rewards( + &mut deps.branch().storage.into(), + &querier, + &env.block, + &red_bank_addr, + &user_addr, + &account_id, + &collateral_denom, + &incentive_denom, + )?; + + // clear unclaimed rewards + USER_UNCLAIMED_REWARDS.save( + deps.storage, + (&user_id_key, &collateral_denom, &incentive_denom), + &Uint128::zero(), + )?; + + total_unclaimed_rewards.add(Coin { + denom: incentive_denom, + amount: unclaimed_rewards, + })?; + } + + if !total_unclaimed_rewards.is_empty() { + response = response + .add_event( + Event::new("mars/incentives/claim_rewards/claimed_rewards") + .add_attribute("coins", total_unclaimed_rewards.to_string()), + ) + .add_message(BankMsg::Send { + to_address: user_addr.into(), + amount: total_unclaimed_rewards.into(), + }); + } + + Ok(response) +} + +pub fn execute_set_asset_incentive( + mut deps: DepsMut, + env: Env, + info: MessageInfo, + collateral_denom: String, + incentive_denom: String, + emission_per_second: Uint128, + start_time: u64, + duration: u64, +) -> Result { + validate_native_denom(&collateral_denom)?; + validate_native_denom(&incentive_denom)?; + + // Check that the incentive denom is whitelisted + if !WHITELIST.key(&incentive_denom).has(deps.storage) { + return Err(ContractError::NotWhitelisted { + denom: incentive_denom, + }); + } + + let config = CONFIG.load(deps.storage)?; + let epoch_duration = EPOCH_DURATION.load(deps.storage)?; + let current_time = env.block.time.seconds(); + + // Validate incentive schedule + helpers::validate_incentive_schedule( + deps.storage, + &info, + epoch_duration, + current_time, + &collateral_denom, + &incentive_denom, + emission_per_second, + start_time, + duration, + )?; + + // Update current incentive index + let total_collateral = helpers::query_red_bank_total_collateral( + deps.as_ref(), + &config.address_provider, + &collateral_denom, + )?; + update_incentive_index( + &mut deps.branch().storage.into(), + &collateral_denom, + &incentive_denom, + total_collateral, + current_time, + )?; + + // To simplify the logic and prevent too much gas usage, we split the new schedule into separate + // schedules that are exactly one epoch long. This way we can easily merge them with existing + // schedules. + // Loop over each epoch duration of the new schedule and merge into any existing schedules + let mut epoch_start_time = start_time; + while epoch_start_time < start_time + duration { + // Check if an schedule exists for the current epoch. If it does, merge the new schedule + // with the existing schedule. Else add a new schedule. + let key = (collateral_denom.as_str(), incentive_denom.as_str(), epoch_start_time); + let existing_schedule = EMISSIONS.may_load(deps.storage, key)?; + if let Some(existing_schedule) = existing_schedule { + EMISSIONS.save(deps.storage, key, &(existing_schedule + emission_per_second))?; + } else { + EMISSIONS.save(deps.storage, key, &emission_per_second)?; + } + + epoch_start_time += epoch_duration; + } + + // Set up the incentive state if it doesn't exist + INCENTIVE_STATES.update(deps.storage, (&collateral_denom, &incentive_denom), |old| { + Ok::<_, StdError>(old.unwrap_or_else(|| IncentiveState { + index: Decimal::zero(), + last_updated: current_time, + })) + })?; + + let response = Response::new().add_attributes(vec![ + attr("action", "set_asset_incentive"), + attr("collateral_denom", collateral_denom), + attr("incentive_denom", incentive_denom), + attr("emission_per_second", emission_per_second), + attr("start_time", start_time.to_string()), + attr("duration", duration.to_string()), + ]); + Ok(response) +} + +pub fn execute_balance_change( + mut deps: DepsMut, + env: Env, + info: MessageInfo, + user_addr: Addr, + account_id: Option, + collateral_denom: String, + user_amount_scaled_before: Uint128, + total_amount_scaled_before: Uint128, +) -> Result { + // this method can only be invoked by the Red Bank contract + let red_bank_addr = query_red_bank_address(deps.as_ref())?; + if info.sender != red_bank_addr { + return Err(MarsError::Unauthorized {}.into()); + } + + let acc_id = account_id.clone().unwrap_or("".to_string()); + + let user_id = UserId::credit_manager(user_addr.clone(), acc_id.clone()); + let user_id_key: UserIdKey = user_id.try_into()?; + + let base_event = Event::new("mars/incentives/balance_change") + .add_attribute("action", "balance_change") + .add_attribute("denom", collateral_denom.clone()) + .add_attribute("user", user_addr.to_string()); + let base_event = if account_id.is_some() { + base_event.add_attribute("account_id", &acc_id) + } else { + base_event + }; + let mut events = vec![base_event]; + + let incentive_states = INCENTIVE_STATES + .prefix(&collateral_denom) + .range(deps.storage, None, None, Order::Ascending) + .collect::>>()?; + + for (incentive_denom, _) in incentive_states { + let incentive_state = update_incentive_index( + &mut deps.branch().storage.into(), + &collateral_denom, + &incentive_denom, + total_amount_scaled_before, + env.block.time.seconds(), + )?; + + // Check if user has accumulated uncomputed rewards (which means index is not up to date) + let user_asset_index_key = + USER_ASSET_INDICES.key((&user_id_key.clone(), &collateral_denom, &incentive_denom)); + + let user_asset_index = + user_asset_index_key.may_load(deps.storage)?.unwrap_or_else(Decimal::zero); + + let mut accrued_rewards = Uint128::zero(); + + if user_asset_index != incentive_state.index { + // Compute user accrued rewards and update state + accrued_rewards = compute_user_accrued_rewards( + user_amount_scaled_before, + user_asset_index, + incentive_state.index, + )?; + + // Store user accrued rewards as unclaimed + if !accrued_rewards.is_zero() { + state::increase_unclaimed_rewards( + deps.storage, + &user_addr, + &acc_id, + &collateral_denom, + &incentive_denom, + accrued_rewards, + )?; + } + + user_asset_index_key.save(deps.storage, &incentive_state.index)?; + } + + events.push( + Event::new("mars/incentives/balance_change/reward_accrued") + .add_attribute("incentive_denom", incentive_denom) + .add_attribute("rewards_accrued", accrued_rewards) + .add_attribute("asset_index", incentive_state.index.to_string()), + ); + } + + Ok(Response::new().add_events(events)) +} diff --git a/contracts/incentives/src/migrations/v2_0_0.rs b/contracts/incentives/src/migrations/v2_0_0.rs index 5f4ff8e5..015d1802 100644 --- a/contracts/incentives/src/migrations/v2_0_0.rs +++ b/contracts/incentives/src/migrations/v2_0_0.rs @@ -1,139 +1,29 @@ -use std::collections::HashMap; - -use cosmwasm_std::{Addr, DepsMut, Env, MessageInfo, Order, Response, StdResult, Uint128}; +use cosmwasm_std::{Addr, DepsMut, Empty, Env, MessageInfo, Order, Response, StdResult}; use cw2::{assert_contract_version, set_contract_version}; use cw_storage_plus::Bound; -use mars_owner::OwnerInit; use mars_types::{ - address_provider::{helpers, MarsAddressType}, - incentives::{Config, IncentiveState, MigrateMsg, MigrateV1ToV2}, + incentives::MigrateV1ToV2, keys::{UserId, UserIdKey}, - red_bank::{Market, QueryMsg, UserCollateralResponse}, }; use crate::{ - contract::{CONTRACT_NAME, CONTRACT_VERSION, MIN_EPOCH_DURATION}, + contract::{CONTRACT_NAME, CONTRACT_VERSION}, error::ContractError, - state::{ - CONFIG, EPOCH_DURATION, INCENTIVE_STATES, MIGRATION_GUARD, OWNER, USER_ASSET_INDICES, - USER_UNCLAIMED_REWARDS, WHITELIST, WHITELIST_COUNT, - }, + state::{MIGRATION_GUARD, OWNER, USER_ASSET_INDICES, USER_UNCLAIMED_REWARDS}, }; -const FROM_VERSION: &str = "1.0.0"; +const FROM_VERSION: &str = "1.2.0"; pub mod v1_state { - use cosmwasm_schema::cw_serde; use cosmwasm_std::{Addr, Decimal, Uint128}; - use cw_storage_plus::{Item, Map}; - use mars_red_bank_types_old::incentives::{AssetIncentive, Config}; - - pub const OWNER: Item = Item::new("owner"); - pub const CONFIG: Item = Item::new("config"); - - pub const ASSET_INCENTIVES: Map<&str, AssetIncentive> = Map::new("incentives"); - pub const USER_ASSET_INDICES: Map<(&Addr, &str), Decimal> = Map::new("indices"); - pub const USER_UNCLAIMED_REWARDS: Map<&Addr, Uint128> = Map::new("unclaimed_rewards"); - pub const USER_UNCLAIMED_REWARDS_BACKUP: Map<&Addr, Uint128> = Map::new("ur_backup"); - - #[cw_serde] - pub enum OwnerState { - B(OwnerSetNoneProposed), - } - - #[cw_serde] - pub struct OwnerSetNoneProposed { - pub owner: Addr, - } - - pub fn current_owner(state: OwnerState) -> Addr { - match state { - OwnerState::B(b) => b.owner, - } - } - - // Copy of helpers from v1.0.0 tag: - // https://github.com/mars-protocol/red-bank/blob/v1.0.0/contracts/incentives/src/helpers.rs - // Included as dependency coudn't generate proper schema for mars-incentive, even with specified - // version. - pub mod helpers { - use std::cmp::{max, min}; - - use cosmwasm_std::{ - Decimal, OverflowError, OverflowOperation, StdError, StdResult, Uint128, - }; - use mars_red_bank_types_old::incentives::AssetIncentive; - - /// Updates asset incentive index and last updated timestamp by computing - /// how many rewards were accrued since last time updated given incentive's - /// emission per second. - /// Total supply is the total (liquidity) token supply during the period being computed. - /// Note that this method does not commit updates to state as that should be executed by the - /// caller - pub fn update_asset_incentive_index( - asset_incentive: &mut AssetIncentive, - total_amount_scaled: Uint128, - current_block_time: u64, - ) -> StdResult<()> { - let end_time_sec = asset_incentive.start_time + asset_incentive.duration; - if (current_block_time != asset_incentive.last_updated) - && current_block_time > asset_incentive.start_time - && asset_incentive.last_updated < end_time_sec - && !total_amount_scaled.is_zero() - && !asset_incentive.emission_per_second.is_zero() - { - let time_start = max(asset_incentive.start_time, asset_incentive.last_updated); - let time_end = min(current_block_time, end_time_sec); - asset_incentive.index = compute_asset_incentive_index( - asset_incentive.index, - asset_incentive.emission_per_second, - total_amount_scaled, - time_start, - time_end, - )?; - } - asset_incentive.last_updated = current_block_time; - Ok(()) - } + use cw_storage_plus::Map; - pub fn compute_asset_incentive_index( - previous_index: Decimal, - emission_per_second: Uint128, - total_amount_scaled: Uint128, - time_start: u64, - time_end: u64, - ) -> StdResult { - if time_start > time_end { - return Err(StdError::overflow(OverflowError::new( - OverflowOperation::Sub, - time_start, - time_end, - ))); - } - let seconds_elapsed = time_end - time_start; - let emission_for_elapsed_seconds = - emission_per_second.checked_mul(Uint128::from(seconds_elapsed))?; - let new_index = previous_index - + Decimal::from_ratio(emission_for_elapsed_seconds, total_amount_scaled); - Ok(new_index) - } - - /// Computes user accrued rewards using the difference between asset_incentive index and - /// user current index - /// asset_incentives index should be up to date. - pub fn compute_user_accrued_rewards( - user_amount_scaled: Uint128, - user_asset_index: Decimal, - asset_incentive_index: Decimal, - ) -> StdResult { - let result = (user_amount_scaled * asset_incentive_index) - .checked_sub(user_amount_scaled * user_asset_index)?; - Ok(result) - } - } + pub const USER_ASSET_INDICES: Map<(&Addr, &str, &str), Decimal> = Map::new("indices"); + pub const USER_UNCLAIMED_REWARDS: Map<(&Addr, &str, &str), Uint128> = + Map::new("unclaimed_rewards"); } -pub fn migrate(mut deps: DepsMut, env: Env, msg: MigrateMsg) -> Result { +pub fn migrate(mut deps: DepsMut, _env: Env, _msg: Empty) -> Result { // Lock incentives to prevent any operations during migration. // Unlock is executed after full migration in `migrate_users_indexes_and_rewards`. MIGRATION_GUARD.try_lock(deps.storage)?; @@ -141,43 +31,7 @@ pub fn migrate(mut deps: DepsMut, env: Env, msg: MigrateMsg) -> Result Result Result<(), ContractError> { - let current_block_time = env.block.time.seconds(); - - let config = CONFIG.load(deps.storage)?; - - let red_bank_addr = helpers::query_contract_addr( - deps.as_ref(), - &config.address_provider, - MarsAddressType::RedBank, - )?; - - let mut asset_incentives = v1_state::ASSET_INCENTIVES +fn migrate_assets_indexes(deps: &mut DepsMut) -> Result<(), ContractError> { + let asset_incentives = v1_state::USER_UNCLAIMED_REWARDS .range(deps.storage, None, None, Order::Ascending) - .collect::>>()?; - - for (denom, asset_incentive) in asset_incentives.iter_mut() { - let market: Market = deps.querier.query_wasm_smart( - red_bank_addr.clone(), - &QueryMsg::Market { - denom: denom.clone(), - }, - )?; - - v1_state::helpers::update_asset_incentive_index( - asset_incentive, - market.collateral_total_scaled, - current_block_time, - )?; + .collect::>>()?; - // Update incentive state for collateral and incentive denom (Mars) - INCENTIVE_STATES.save( + for ((user_addr, col_denom, incentive_denom), asset_incentive) in asset_incentives.into_iter() { + let user_id = UserId::credit_manager(user_addr, "".to_string()); + let user_id_key: UserIdKey = user_id.try_into()?; + USER_UNCLAIMED_REWARDS.save( deps.storage, - (denom, mars_denom), - &IncentiveState { - index: asset_incentive.index, - last_updated: current_block_time, - }, + (&user_id_key, &col_denom, &incentive_denom), + &asset_incentive, )?; } @@ -252,7 +77,7 @@ pub fn execute_migration( } fn migrate_users_indexes_and_rewards( - mut deps: DepsMut, + deps: DepsMut, limit: usize, ) -> Result { // Only allow to migrate users indexes and rewards if guard is locked via `migrate` entrypoint @@ -260,16 +85,17 @@ fn migrate_users_indexes_and_rewards( // convert last key from v2 to v1 let uai_last_key = USER_ASSET_INDICES.last(deps.storage)?.map(|kv| kv.0); - let uai_last_key = if let Some((user_id_key, col_denom, _incentive_denom)) = uai_last_key { + let uai_last_key = if let Some((user_id_key, col_denom, incentive_denom)) = uai_last_key { let user_id: UserId = user_id_key.try_into()?; - Some((user_id.addr, col_denom)) + Some((user_id.addr, col_denom, incentive_denom)) } else { None }; // last key from new user asset indeces is first key (excluded) for v1 during pagination - let start_after = - uai_last_key.as_ref().map(|(addr, denom)| Bound::exclusive((addr, denom.as_str()))); + let start_after = uai_last_key.as_ref().map(|(addr, col_denom, incentive_denom)| { + Bound::exclusive((addr, col_denom.as_str(), incentive_denom.as_str())) + }); let mut v1_uai = v1_state::USER_ASSET_INDICES .range(deps.storage, start_after, None, Order::Ascending) .take(limit + 1) @@ -280,72 +106,14 @@ fn migrate_users_indexes_and_rewards( v1_uai.pop(); // Remove the extra item used for checking if there are more items } - let config = CONFIG.load(deps.storage)?; - let red_bank_addr = helpers::query_contract_addr( - deps.as_ref(), - &config.address_provider, - MarsAddressType::RedBank, - )?; - - let asset_incentives = INCENTIVE_STATES - .range(deps.storage, None, None, Order::Ascending) - .map(|kv| { - let kv = kv?; - let (denom, _mars_denom) = kv.0; - let incentive_state = kv.1; - Ok((denom, incentive_state)) - }) - .collect::>>()?; - // save user asset indexes and unclaimed rewards - for ((user, denom), user_asset_index) in v1_uai.into_iter() { - let collateral: UserCollateralResponse = deps.querier.query_wasm_smart( - red_bank_addr.clone(), - &QueryMsg::UserCollateral { - user: user.to_string(), - account_id: None, - denom: denom.clone(), - }, - )?; - - // Get asset incentive for a denom. It should be available but just in case we don't unwrap - let denom_idx = asset_incentives.get(&denom); - let Some(asset_incentive) = denom_idx else { - continue; - }; - - // Since we didn't track unclaimed rewards per collateral denom in v1 we add them - // to the user unclaimed rewards for the first user collateral denom. - let mut unclaimed_rewards = read_and_backup_unclaimed_rewards(&mut deps, &user)?; - - if user_asset_index != asset_incentive.index { - // Compute user accrued rewards - let asset_accrued_rewards = v1_state::helpers::compute_user_accrued_rewards( - collateral.amount_scaled, - user_asset_index, - asset_incentive.index, - )?; - - unclaimed_rewards += asset_accrued_rewards; - } - - let user_id = UserId::credit_manager(user.clone(), "".to_string()); + for ((user_addr, col_denom, incentive_denom), user_asset_index) in v1_uai.into_iter() { + let user_id = UserId::credit_manager(user_addr, "".to_string()); let user_id_key: UserIdKey = user_id.try_into()?; - - if !unclaimed_rewards.is_zero() { - // Update user unclaimed rewards - USER_UNCLAIMED_REWARDS.save( - deps.storage, - (&user_id_key, &denom, &config.mars_denom), - &unclaimed_rewards, - )?; - } - - // Update user asset index USER_ASSET_INDICES.save( deps.storage, - (&user_id_key, &denom, &config.mars_denom), - &asset_incentive.index, + (&user_id_key, &col_denom, &incentive_denom), + &user_asset_index, )?; } @@ -369,32 +137,17 @@ fn migrate_users_indexes_and_rewards( .add_attribute("has_more", has_more.to_string())) } -fn read_and_backup_unclaimed_rewards( - deps: &mut DepsMut<'_>, - user: &Addr, -) -> Result { - let unclaimed_rewards_opt = v1_state::USER_UNCLAIMED_REWARDS.may_load(deps.storage, user)?; - if let Some(unclaimed_rewards) = unclaimed_rewards_opt { - // Make a backup of unclaimed rewards. - // This way we can restore unclaimed rewards for a user in case of migration failure. - v1_state::USER_UNCLAIMED_REWARDS_BACKUP.save(deps.storage, user, &unclaimed_rewards)?; - - // Remove unclaimed rewards from v1 state because we want to add them only once to v2 state. - v1_state::USER_UNCLAIMED_REWARDS.remove(deps.storage, user); - } - Ok(unclaimed_rewards_opt.unwrap_or_default()) -} - -fn key_to_str(key: Option<(Addr, String)>) -> String { - key.map(|(addr, denom)| format!("{}-{}", addr, denom)).unwrap_or("none".to_string()) +fn key_to_str(key: Option<(Addr, String, String)>) -> String { + key.map(|(addr, col_denom, incentive_denom)| { + format!("{}-{}-{}", addr, col_denom, incentive_denom) + }) + .unwrap_or("none".to_string()) } fn clear_v1_state(deps: DepsMut) -> Result { // It is safe to clear v1 state only after full migration (guard is unlocked) MIGRATION_GUARD.assert_unlocked(deps.storage)?; - v1_state::ASSET_INCENTIVES.clear(deps.storage); v1_state::USER_ASSET_INDICES.clear(deps.storage); v1_state::USER_UNCLAIMED_REWARDS.clear(deps.storage); - v1_state::USER_UNCLAIMED_REWARDS_BACKUP.clear(deps.storage); Ok(Response::new().add_attribute("action", "clear_v1_state")) } diff --git a/contracts/incentives/src/query.rs b/contracts/incentives/src/query.rs new file mode 100644 index 00000000..bea95056 --- /dev/null +++ b/contracts/incentives/src/query.rs @@ -0,0 +1,414 @@ +use std::collections::HashMap; + +use astroport_v5::asset::Asset; +use cosmwasm_std::{ + Addr, Coin, Coins, Decimal, Deps, Env, Order, Order::Ascending, StdResult, Uint128, +}; +use cw_paginate::paginate_prefix_query; +use cw_storage_plus::Bound; +use mars_types::{ + address_provider::{self, MarsAddressType}, + incentives::{ + ActiveEmission, ConfigResponse, EmissionResponse, IncentiveStateResponse, + PaginatedLpRewardsResponse, PaginatedStakedLpResponse, StakedLpPositionResponse, + WhitelistEntry, + }, +}; + +use crate::{ + helpers::{ + calculate_rewards_for_staked_astro_lp_position, compute_updated_astro_incentive_states, + compute_user_unclaimed_rewards, + }, + state::{ + self, ASTRO_INCENTIVE_STATES, ASTRO_USER_LP_DEPOSITS, CONFIG, DEFAULT_LIMIT, EMISSIONS, + EPOCH_DURATION, INCENTIVE_STATES, MAX_LIMIT, OWNER, WHITELIST, WHITELIST_COUNT, + }, + ContractError, +}; + +pub fn query_active_emissions( + deps: Deps, + env: Env, + collateral_denom: &str, +) -> StdResult> { + Ok(INCENTIVE_STATES + .prefix(collateral_denom) + .keys(deps.storage, None, None, Order::Ascending) + .map(|incentive_denom| { + let incentive_denom = incentive_denom?; + let emission = + query_emission(deps, collateral_denom, &incentive_denom, env.block.time.seconds())?; + + Ok::((incentive_denom, emission).into()) + }) + .collect::>>()? + .into_iter() + .filter(|emission| emission.emission_rate != Uint128::zero()) + .collect()) +} + +pub fn query_config(deps: Deps) -> StdResult { + let owner_state = OWNER.query(deps.storage)?; + let config = CONFIG.load(deps.storage)?; + Ok(ConfigResponse { + owner: owner_state.owner, + proposed_new_owner: owner_state.proposed, + address_provider: config.address_provider, + max_whitelisted_denoms: config.max_whitelisted_denoms, + epoch_duration: EPOCH_DURATION.load(deps.storage)?, + whitelist_count: WHITELIST_COUNT.may_load(deps.storage)?.unwrap_or_default(), + }) +} + +pub fn query_incentive_state( + deps: Deps, + collateral_denom: String, + incentive_denom: String, +) -> StdResult { + let incentive_state = + INCENTIVE_STATES.load(deps.storage, (&collateral_denom, &incentive_denom))?; + Ok(IncentiveStateResponse::from(collateral_denom, incentive_denom, incentive_state)) +} + +pub fn query_incentive_states( + deps: Deps, + start_after_collateral_denom: Option, + start_after_incentive_denom: Option, + limit: Option, +) -> StdResult> { + let incentive_states = state::paginate_incentive_states( + deps.storage, + start_after_collateral_denom, + start_after_incentive_denom, + limit, + )?; + + incentive_states + .into_iter() + .map(|((collateral_denom, incentive_denom), ai)| { + Ok(IncentiveStateResponse::from(collateral_denom, incentive_denom, ai)) + }) + .collect() +} + +pub fn query_unclaimed_astro_lp_rewards( + deps: Deps, + mars_incentives_addr: &str, + astroport_incentives_addr: &str, + lp_denom: &str, +) -> Result, ContractError> { + let result: Vec = deps.querier.query_wasm_smart( + astroport_incentives_addr, + &astroport_v5::incentives::QueryMsg::PendingRewards { + lp_token: lp_denom.to_string(), + user: mars_incentives_addr.to_string(), + }, + )?; + + let native_coins = result + .into_iter() + .filter_map(|x| x.try_into().ok()) // filter out non native coins + .collect(); + Ok(native_coins) +} + +pub fn query_staked_astro_lp_rewards_for_user( + deps: Deps, + env: &Env, + astroport_incentives_addr: &Addr, + account_id: &str, + maybe_start_after_lp_denom: Option<&str>, + limit: Option, +) -> Result { + let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT); + let start = match maybe_start_after_lp_denom { + Some(start_after_lp_denom) => { + let start = Bound::exclusive(start_after_lp_denom); + Some(start) + } + None => None, + }; + + paginate_prefix_query( + &ASTRO_USER_LP_DEPOSITS, + deps.storage, + account_id, + start, + Some(limit), + |denom, amount| { + let lp_coin = Coin { + denom, + amount, + }; + let rewards = query_staked_astro_lp_rewards_for_coin( + deps, + env, + astroport_incentives_addr, + account_id, + &lp_coin, + )?; + + Ok((lp_coin.denom, rewards)) + }, + ) +} + +pub fn query_staked_astro_lp_rewards_for_denom( + deps: Deps, + env: &Env, + account_id: &str, + lp_denom: &str, +) -> Result, ContractError> { + let lp_amount = + ASTRO_USER_LP_DEPOSITS.may_load(deps.storage, (&account_id, lp_denom))?.unwrap_or_default(); + + let lp_coin = Coin { + denom: lp_denom.to_string(), + amount: lp_amount, + }; + + let astroport_incentives_addr = address_provider::helpers::query_contract_addr( + deps, + &CONFIG.load(deps.storage)?.address_provider, + MarsAddressType::AstroportIncentives, + )?; + + query_staked_astro_lp_rewards_for_coin( + deps, + env, + &astroport_incentives_addr, + account_id, + &lp_coin, + ) +} + +pub fn query_staked_astro_lp_rewards_for_coin( + deps: Deps, + env: &Env, + astroport_incentives_addr: &Addr, + account_id: &str, + lp_coin: &Coin, +) -> Result, ContractError> { + let lp_denom = &lp_coin.denom; + let pending_rewards: Vec = query_unclaimed_astro_lp_rewards( + deps, + env.contract.address.as_ref(), + astroport_incentives_addr.as_ref(), + lp_denom, + ) + .unwrap_or_default(); + + // Update our global indexes for each reward. We only accept native tokens, + // cw20 will just be swallowed by contract + let incentives_to_update = + compute_updated_astro_incentive_states(deps.storage, pending_rewards, lp_denom)?; + + let mut incentive_states: HashMap = ASTRO_INCENTIVE_STATES + .prefix(lp_denom) + .range(deps.storage, None, None, Ascending) + .collect::>>()?; + + // Update our incentive states with the newly updated incentive states to ensure we are up to date. + incentive_states.extend(incentives_to_update); + + let reward_coins = calculate_rewards_for_staked_astro_lp_position( + &mut deps.storage.into(), + account_id, + lp_coin, + incentive_states, + )?; + + Ok(reward_coins) +} + +pub fn query_user_unclaimed_rewards( + deps: Deps, + env: Env, + user: String, + account_id: Option, + start_after_collateral_denom: Option, + start_after_incentive_denom: Option, + limit: Option, +) -> Result, ContractError> { + let user_addr = deps.api.addr_validate(&user)?; + let red_bank_addr = query_red_bank_address(deps)?; + + let incentive_states = state::paginate_incentive_states( + deps.storage, + start_after_collateral_denom, + start_after_incentive_denom, + limit, + )?; + + let mut total_unclaimed_rewards = Coins::default(); + + for ((collateral_denom, incentive_denom), _) in incentive_states { + let unclaimed_rewards = compute_user_unclaimed_rewards( + &mut deps.storage.into(), + &deps.querier, + &env.block, + &red_bank_addr, + &user_addr, + &account_id, + &collateral_denom, + &incentive_denom, + )?; + + total_unclaimed_rewards.add(Coin { + denom: incentive_denom, + amount: unclaimed_rewards, + })?; + } + + Ok(total_unclaimed_rewards.into()) +} + +pub fn query_red_bank_address(deps: Deps) -> StdResult { + let config = CONFIG.load(deps.storage)?; + address_provider::helpers::query_contract_addr( + deps, + &config.address_provider, + MarsAddressType::RedBank, + ) +} + +pub fn query_whitelist(deps: Deps) -> StdResult> { + let whitelist: Vec = WHITELIST + .range(deps.storage, None, None, Order::Ascending) + .map(|res| { + let (denom, min_emission_rate) = res?; + Ok(WhitelistEntry { + denom, + min_emission_rate, + }) + }) + .collect::>()?; + Ok(whitelist) +} + +pub fn query_emission( + deps: Deps, + collateral_denom: &str, + incentive_denom: &str, + timestamp: u64, +) -> StdResult { + let epoch_duration = EPOCH_DURATION.load(deps.storage)?; + let emission = EMISSIONS + .prefix((collateral_denom, incentive_denom)) + .range( + deps.storage, + Some(Bound::inclusive(timestamp.saturating_sub(epoch_duration - 1))), + Some(Bound::inclusive(timestamp)), + Order::Ascending, + ) + .next() + .transpose()? + .map(|(_, emission)| emission) + .unwrap_or_default(); + + Ok(emission) +} + +pub fn query_emissions( + deps: Deps, + collateral_denom: String, + incentive_denom: String, + start_after_timestamp: Option, + limit: Option, +) -> StdResult> { + let min = start_after_timestamp.map(Bound::exclusive); + let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT) as usize; + let emissions = EMISSIONS + .prefix((&collateral_denom, &incentive_denom)) + .range(deps.storage, min, None, Order::Ascending) + .take(limit) + .collect::>>()?; + + Ok(emissions.into_iter().map(|x| x.into()).collect()) +} + +pub fn query_staked_astro_lp_position( + deps: Deps, + env: Env, + account_id: String, + denom: String, +) -> StdResult { + let config = CONFIG.load(deps.storage)?; + let astroport_incentive_addr = address_provider::helpers::query_contract_addr( + deps, + &config.address_provider, + MarsAddressType::AstroportIncentives, + )?; + + let amount = ASTRO_USER_LP_DEPOSITS.may_load(deps.storage, (&account_id, &denom))?.ok_or( + ContractError::NoStakedLp { + account_id: account_id.clone(), + denom: denom.clone(), + }, + )?; + + let lp_coin = Coin { + denom, + amount, + }; + + let rewards = query_staked_astro_lp_rewards_for_coin( + deps, + &env, + &astroport_incentive_addr, + &account_id, + &lp_coin, + )?; + + let result = StakedLpPositionResponse { + lp_coin, + rewards, + }; + + Ok(result) +} + +pub fn query_staked_astro_lp_positions( + deps: Deps, + env: Env, + account_id: String, + start_after_denom: Option, + limit: Option, +) -> Result { + let config = CONFIG.load(deps.storage)?; + let astroport_incentive_addr = address_provider::helpers::query_contract_addr( + deps, + &config.address_provider, + MarsAddressType::AstroportIncentives, + )?; + + let start = start_after_denom.as_ref().map(|denom| Bound::exclusive(denom.as_str())); + let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT); + + paginate_prefix_query( + &ASTRO_USER_LP_DEPOSITS, + deps.storage, + &account_id, + start, + Some(limit), + |denom, amount| { + let lp_coin = Coin { + denom, + amount, + }; + let rewards = query_staked_astro_lp_rewards_for_coin( + deps, + &env, + &astroport_incentive_addr, + &account_id, + &lp_coin, + )?; + + Ok(StakedLpPositionResponse { + lp_coin, + rewards, + }) + }, + ) +} diff --git a/contracts/incentives/src/state.rs b/contracts/incentives/src/state.rs index 8a82a189..86f5c8fa 100644 --- a/contracts/incentives/src/state.rs +++ b/contracts/incentives/src/state.rs @@ -31,6 +31,17 @@ pub const WHITELIST_COUNT: Item = Item::new("whitelist_count"); /// denom. The key is (collateral denom, incentive denom). pub const INCENTIVE_STATES: Map<(&str, &str), IncentiveState> = Map::new("incentive_states"); +/// A map containing the global incentive index for a given lp token +/// The key is (lp token denom, incentive denom). +pub const ASTRO_INCENTIVE_STATES: Map<(&str, &str), Decimal> = + Map::new("astroport_incentive_states"); + +/// A map containing the individual incentive index for each unique user +/// Note - this may contain many denoms for one user +/// The key is (account_id, lp_token_denom, reward_denom) +pub const USER_ASTRO_INCENTIVE_STATES: Map<(&str, &str, &str), Decimal> = + Map::new("user_astroport_incentive_states"); + /// A map containing emission speeds (incentive tokens per second) for a given collateral and /// incentive denom. The key is (collateral denom, incentive denom, schedule start time). pub const EMISSIONS: Map<(&str, &str, u64), Uint128> = Map::new("emissions"); @@ -53,6 +64,14 @@ pub const DEFAULT_LIMIT: u32 = 5; /// The maximum limit for pagination pub const MAX_LIMIT: u32 = 10; +/// User LP positions staked in the astroport incentives contract. Returns amount +/// The key is (account_id, lp_denom) +pub const ASTRO_USER_LP_DEPOSITS: Map<(&str, &str), Uint128> = Map::new("lp_deposits"); + +/// Total LP deposits in the astroport incentives contract. Returns amount +/// The key is lp_denom +pub const ASTRO_TOTAL_LP_DEPOSITS: Map<&str, Uint128> = Map::new("total_lp_deposits"); + /// Helper function to update unclaimed rewards for a given user, collateral denom and incentive /// denom. Adds `accrued_rewards` to the existing amount. pub fn increase_unclaimed_rewards( diff --git a/contracts/incentives/tests/tests/helpers/mod.rs b/contracts/incentives/tests/tests/helpers/mod.rs index c06f0d4a..cc9d70b2 100644 --- a/contracts/incentives/tests/tests/helpers/mod.rs +++ b/contracts/incentives/tests/tests/helpers/mod.rs @@ -22,7 +22,6 @@ pub fn th_setup_with_env(env: Env) -> OwnedDeps, + lp_denom: &str, + mars_incentives_contract: &str, + rewards: Vec, +) { + deps.querier.set_unclaimed_astroport_lp_rewards(lp_denom, mars_incentives_contract, rewards); +} +fn deposit_for_user( + deps: DepsMut, + env: Env, + sender: &str, + account_id: String, + lp_coin: Coin, +) -> Result { + let info = mock_info(sender, &[lp_coin.clone()]); + let msg = ExecuteMsg::StakeAstroLp { + account_id, + lp_coin, + }; + + execute(deps, env, info, msg) +} + +fn claim_for_user( + deps: DepsMut, + env: Env, + sender: &str, + account_id: String, + lp_denom: String, +) -> Result { + let info = mock_info(sender, &[]); + let msg = ExecuteMsg::ClaimStakedAstroLpRewards { + account_id, + lp_denom, + }; + + execute(deps, env, info, msg) +} + +fn unstake_for_user( + deps: DepsMut, + env: Env, + sender: &str, + account_id: String, + lp_coin: ActionCoin, +) -> Result { + let info = mock_info(sender, &[]); + let msg = ExecuteMsg::UnstakeAstroLp { + account_id, + lp_coin, + }; + + execute(deps, env, info, msg) +} + +fn assert_user_rewards( + deps: Deps, + env: Env, + astroport_incentives_addr: Addr, + user_id: &str, + lp_coin: Coin, + rewards: Vec, +) { + let actual_rewards = query::query_staked_astro_lp_rewards_for_coin( + deps, + &env, + &astroport_incentives_addr, + user_id, + &lp_coin, + ) + .unwrap(); + assert_eq_vec(rewards, actual_rewards); +} + +#[test] +fn lp_lifecycle() { + // SETUP + let env = mock_env(); + let mut deps: OwnedDeps = th_setup(); + + // users + let user_a_id = "1"; + let user_b_id = "2"; + + let credit_manager = Addr::unchecked("credit_manager"); + let astroport_incentives_addr = Addr::unchecked("astroport_incentives"); + deps.querier.set_astroport_incentives_address(astroport_incentives_addr.clone()); + + let lp_denom = "uusd/ubtc"; + let unclaimed_rewards = vec![Asset::native("ibc/reward_1", 100u128)]; + + let default_lp_coin = Coin { + denom: lp_denom.to_string(), + amount: Uint128::new(100u128), + }; + + // State: + // - LP in incentives = 0 + // - Rewards available = 0 + assert_eq!(ASTRO_TOTAL_LP_DEPOSITS.may_load(&deps.storage, lp_denom).unwrap(), None); + let rewards = query::query_unclaimed_astro_lp_rewards( + deps.as_ref(), + env.contract.address.as_ref(), + astroport_incentives_addr.as_ref(), + lp_denom, + ) + .unwrap(); + + assert!(rewards.is_empty()); + let mars_incentives_contract = &env.contract.address.to_string(); + + // Deposit for user a + deposit_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_a_id.to_string(), + Coin::new(100u128, lp_denom), + ) + .unwrap(); + + // State: + // - LP in incentives = 100 + // - Rewards available = 0 + assert_eq!( + ASTRO_TOTAL_LP_DEPOSITS.may_load(&deps.storage, lp_denom).unwrap(), + Some(Uint128::new(100u128)) + ); + + set_pending_astro_rewards( + &mut deps, + lp_denom, + mars_incentives_contract, + unclaimed_rewards.clone(), + ); + + // State: + // - LP in incentives = 100 + // - Rewards available for user_1 = 100 + + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_a_id, + default_lp_coin.clone(), + unclaimed_rewards.iter().map(|asset| asset.as_coin().unwrap()).collect(), + ); + + // deposit new user + deposit_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_b_id.to_string(), + Coin::new(100u128, lp_denom), + ) + .unwrap(); + + set_pending_astro_rewards( + &mut deps, + lp_denom, + mars_incentives_contract, + // Clear pending rewards + vec![], + ); + + // State: + // - LP in incentives = 200 + // - Rewards available for user_1 = 100 + // - Rewards available for user_2 = 0 + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_a_id, + default_lp_coin.clone(), + unclaimed_rewards.iter().map(|asset| asset.as_coin().unwrap()).collect(), + ); + // User b + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_b_id, + default_lp_coin.clone(), + vec![], + ); + + set_pending_astro_rewards( + &mut deps, + lp_denom, + mars_incentives_contract, + // Clear pending rewards + unclaimed_rewards.clone(), + ); + // State: + // - LP in incentives = 200 + // - Rewards available for user_1 = 150 + // - Rewards available for user_2 = 50 + + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_a_id, + default_lp_coin.clone(), + vec![Coin { + denom: "ibc/reward_1".to_string(), + amount: Uint128::new(150u128), + }], + ); + + // User b + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_b_id, + default_lp_coin.clone(), + vec![Coin { + denom: "ibc/reward_1".to_string(), + amount: Uint128::new(50u128), + }], + ); + + // claim rewards, set as null + claim_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_a_id.to_string(), + lp_denom.to_string(), + ) + .unwrap(); + + set_pending_astro_rewards( + &mut deps, + lp_denom, + mars_incentives_contract, + // Clear pending rewards + vec![], + ); + + // State: + // - LP in incentives = 200 + // - Rewards available for user_1 = 0 + // - Rewards available for user_2 = 50 + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_a_id, + default_lp_coin.clone(), + vec![], + ); + + // User b + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_b_id, + default_lp_coin.clone(), + vec![Coin { + denom: "ibc/reward_1".to_string(), + amount: Uint128::new(50u128), + }], + ); + + // Add new unclaimed reward + set_pending_astro_rewards( + &mut deps, + lp_denom, + mars_incentives_contract, + unclaimed_rewards.clone(), + ); + + // State: + // - LP in incentives = 200 + // - Rewards available for user_1 = 50 + // - Rewards available for user_2 = 100 + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_a_id, + default_lp_coin.clone(), + vec![Coin { + denom: "ibc/reward_1".to_string(), + amount: Uint128::new(50u128), + }], + ); + + // User b + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_b_id, + default_lp_coin.clone(), + vec![Coin { + denom: "ibc/reward_1".to_string(), + amount: Uint128::new(100u128), + }], + ); + + // test double stake + deposit_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_b_id.to_string(), + default_lp_coin.clone(), + ) + .unwrap(); + + set_pending_astro_rewards( + &mut deps, + lp_denom, + mars_incentives_contract, + // Clear pending rewards + vec![], + ); + + // State: + // - LP in incentives = 300 (user_a 100, user_b 200) + // - Rewards available for user_1 = 50 + // - Rewards available for user_2 = 0 + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_a_id, + default_lp_coin.clone(), + vec![Coin { + denom: "ibc/reward_1".to_string(), + amount: Uint128::new(50u128), + }], + ); + + // User b + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_b_id, + default_lp_coin.clone(), + vec![], + ); + + unstake_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_a_id.to_string(), + ActionCoin { + denom: lp_denom.to_string(), + amount: ActionAmount::AccountBalance, + }, + ) + .unwrap(); + + // State: + // - LP in incentives = 300 (user_a 100, user_b 200) + // - Rewards available for user_1 = 0 + // - Rewards available for user_2 = 0 + assert_user_rewards( + deps.as_ref(), + env.clone(), + astroport_incentives_addr.clone(), + user_a_id, + default_lp_coin.clone(), + vec![], + ); +} + +#[test] +fn assert_only_credit_manager() { + // SETUP + let env = mock_env(); + let mut deps: OwnedDeps = th_setup(); + + // users + let user_a_id = "1"; + + let astroport_incentives_addr = Addr::unchecked("astroport_incentives"); + deps.querier.set_astroport_incentives_address(astroport_incentives_addr.clone()); + + let lp_denom = "uusd/ubtc"; + + deposit_for_user( + deps.as_mut(), + env.clone(), + "not_credit_manager", + user_a_id.to_string(), + Coin::new(100u128, lp_denom), + ) + .expect_err("Unauthorized"); + + claim_for_user( + deps.as_mut(), + env.clone(), + "not_credit_manager", + user_a_id.to_string(), + lp_denom.to_string(), + ) + .expect_err("Unauthorized"); + + unstake_for_user( + deps.as_mut(), + env.clone(), + "not_credit_manager", + user_a_id.to_string(), + ActionCoin { + denom: lp_denom.to_string(), + amount: mars_types::credit_manager::ActionAmount::Exact(Uint128::new(100u128)), + }, + ) + .expect_err("Unauthorized"); +} + +#[test] +fn lp_states_update_correctly() { + // SETUP + let env = mock_env(); + let mut deps: OwnedDeps = th_setup(); + + // Users + let user_a_id = "1"; + let user_b_id = "2"; + + let credit_manager = Addr::unchecked("credit_manager"); + let astroport_incentives_addr = Addr::unchecked("astroport_incentives"); + deps.querier.set_astroport_incentives_address(astroport_incentives_addr.clone()); + + let lp_denom = "uusd/ubtc"; + + // State: + // - LP in incentives = 0 + // - Rewards available = 0 + assert_eq!(ASTRO_TOTAL_LP_DEPOSITS.may_load(&deps.storage, lp_denom).unwrap(), None); + + deposit_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_a_id.to_string(), + Coin::new(100u128, lp_denom), + ) + .unwrap(); + + deposit_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_b_id.to_string(), + Coin::new(200u128, lp_denom), + ) + .unwrap(); + + // LP in incentives = 300 + // User a = 100 + // User b = 200 + assert_eq!( + ASTRO_TOTAL_LP_DEPOSITS.load(&deps.storage, lp_denom).unwrap(), + Uint128::new(300u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_a_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(100u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_b_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(200u128) + ); + + unstake_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_a_id.to_string(), + ActionCoin { + denom: lp_denom.to_string(), + amount: Exact(Uint128::new(50u128)), + }, + ) + .unwrap(); + + // LP in incentives = 250 + // User a = 50 + // User b = 200 + assert_eq!( + ASTRO_TOTAL_LP_DEPOSITS.load(&deps.storage, lp_denom).unwrap(), + Uint128::new(250u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_a_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(50u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_b_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(200u128) + ); + + unstake_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_b_id.to_string(), + ActionCoin { + denom: lp_denom.to_string(), + amount: mars_types::credit_manager::ActionAmount::AccountBalance, + }, + ) + .unwrap(); + + // LP in incentives = 50 + // User a = 50 + // User b = 0 + assert_eq!( + ASTRO_TOTAL_LP_DEPOSITS.load(&deps.storage, lp_denom).unwrap(), + Uint128::new(50u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_a_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(50u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_b_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(0u128) + ); + + deposit_for_user( + deps.as_mut(), + env.clone(), + credit_manager.as_str(), + user_b_id.to_string(), + Coin::new(50u128, lp_denom), + ) + .unwrap(); + + // LP in incentives = 100 + // User a = 50 + // User b = 50 + assert_eq!( + ASTRO_TOTAL_LP_DEPOSITS.load(&deps.storage, lp_denom).unwrap(), + Uint128::new(100u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_a_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(50u128) + ); + assert_eq!( + query::query_staked_astro_lp_position( + deps.as_ref(), + env.clone(), + user_b_id.to_string(), + lp_denom.to_string() + ) + .unwrap() + .lp_coin + .amount, + Uint128::new(50u128) + ); +} diff --git a/contracts/incentives/tests/tests/test_claim_rewards.rs b/contracts/incentives/tests/tests/test_claim_rewards.rs index b65b42aa..49452ed6 100644 --- a/contracts/incentives/tests/tests/test_claim_rewards.rs +++ b/contracts/incentives/tests/tests/test_claim_rewards.rs @@ -4,8 +4,9 @@ use cosmwasm_std::{ Addr, BankMsg, CosmosMsg, Decimal, SubMsg, Timestamp, Uint128, }; use mars_incentives::{ - contract::{execute, query_user_unclaimed_rewards}, + contract::execute, helpers::{compute_incentive_index, compute_user_accrued_rewards}, + query, state::{EMISSIONS, INCENTIVE_STATES, USER_ASSET_INDICES, USER_UNCLAIMED_REWARDS}, }; use mars_testing::MockEnvParams; @@ -21,7 +22,11 @@ use super::helpers::{th_setup, ths_setup_with_epoch_duration}; fn execute_claim_rewards() { // SETUP let env = mock_env(); - let mut deps = ths_setup_with_epoch_duration(env, 604800); + let mut deps: cosmwasm_std::OwnedDeps< + cosmwasm_std::MemoryStorage, + cosmwasm_std::testing::MockApi, + mars_testing::MarsMockQuerier, + > = ths_setup_with_epoch_duration(env, 604800); let user_addr = Addr::unchecked("user"); let previous_unclaimed_rewards = Uint128::new(50_000); @@ -199,7 +204,7 @@ fn execute_claim_rewards() { block_time: Timestamp::from_seconds(time_contract_call - 10_000), ..Default::default() }); - let rewards_query_before = query_user_unclaimed_rewards( + let rewards_query_before = query::query_user_unclaimed_rewards( deps.as_ref(), env_before, String::from("user"), @@ -213,7 +218,7 @@ fn execute_claim_rewards() { assert!(rewards_query_before[0].amount < expected_accrued_rewards); // query before execution gives expected rewards - let rewards_query = query_user_unclaimed_rewards( + let rewards_query = query::query_user_unclaimed_rewards( deps.as_ref(), env.clone(), String::from("user"), @@ -232,7 +237,7 @@ fn execute_claim_rewards() { // NOTE: the query should return an empty array, instead of a non-empty array // with a zero-amount coin! the latter is considered an invalid coins array // and will result in error. - let rewards_query_after = query_user_unclaimed_rewards( + let rewards_query_after = query::query_user_unclaimed_rewards( deps.as_ref(), env, String::from("user"), diff --git a/contracts/incentives/tests/tests/test_indices_usage.rs b/contracts/incentives/tests/tests/test_indices_usage.rs index 0d44f41d..92470b10 100644 --- a/contracts/incentives/tests/tests/test_indices_usage.rs +++ b/contracts/incentives/tests/tests/test_indices_usage.rs @@ -18,7 +18,6 @@ fn store_config_with_epoch_duration(storage: &mut dyn Storage, epoch_duration: u &Config { address_provider: Addr::unchecked(""), max_whitelisted_denoms: 10, - mars_denom: "umars".to_string(), }, ) .unwrap(); diff --git a/contracts/incentives/tests/tests/test_migration_v2.rs b/contracts/incentives/tests/tests/test_migration_v2.rs index bc4eafa8..17b93d1e 100644 --- a/contracts/incentives/tests/tests/test_migration_v2.rs +++ b/contracts/incentives/tests/tests/test_migration_v2.rs @@ -1,42 +1,30 @@ -use std::collections::HashMap; +use std::{collections::HashMap, str::FromStr}; use cosmwasm_std::{ attr, testing::{mock_env, mock_info}, - Addr, Decimal, Event, Order, StdResult, Timestamp, Uint128, + Addr, Decimal, Empty, Event, Order, StdResult, Uint128, }; use cw2::{ContractVersion, VersionError}; use mars_incentives::{ contract::{execute, migrate}, - migrations::v2_0_0::v1_state::{self, OwnerSetNoneProposed}, - state::{ - CONFIG, INCENTIVE_STATES, MIGRATION_GUARD, OWNER, USER_ASSET_INDICES, - USER_UNCLAIMED_REWARDS, WHITELIST, WHITELIST_COUNT, - }, + migrations::v2_0_0::v1_state, + state::{MIGRATION_GUARD, OWNER, USER_ASSET_INDICES, USER_UNCLAIMED_REWARDS}, ContractError, }; -use mars_testing::{mock_dependencies, MockEnvParams}; +use mars_testing::mock_dependencies; use mars_types::{ - incentives::{Config, ExecuteMsg, IncentiveState, MigrateMsg, MigrateV1ToV2}, + incentives::{ExecuteMsg, MigrateV1ToV2}, keys::{UserId, UserIdKey}, - red_bank::{Market, UserCollateralResponse}, }; use mars_utils::error::GuardError; #[test] fn wrong_contract_name() { let mut deps = mock_dependencies(&[]); - cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.0.0").unwrap(); + cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.2.0").unwrap(); - let err = migrate( - deps.as_mut(), - mock_env(), - MigrateMsg { - epoch_duration: 604800, - max_whitelisted_denoms: 10, - }, - ) - .unwrap_err(); + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); assert_eq!( err, @@ -52,20 +40,12 @@ fn wrong_contract_version() { let mut deps = mock_dependencies(&[]); cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-incentives", "4.1.0").unwrap(); - let err = migrate( - deps.as_mut(), - mock_env(), - MigrateMsg { - epoch_duration: 604800, - max_whitelisted_denoms: 10, - }, - ) - .unwrap_err(); + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); assert_eq!( err, ContractError::Version(VersionError::WrongVersion { - expected: "1.0.0".to_string(), + expected: "1.2.0".to_string(), found: "4.1.0".to_string() }) ); @@ -74,145 +54,105 @@ fn wrong_contract_version() { #[test] fn full_migration() { let mut deps = mock_dependencies(&[]); - cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-incentives", "1.0.0").unwrap(); + cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-incentives", "1.2.0").unwrap(); let old_owner = "spiderman_246"; - v1_state::OWNER - .save( - deps.as_mut().storage, - &v1_state::OwnerState::B(OwnerSetNoneProposed { - owner: Addr::unchecked(old_owner), - }), + let deps_muted = deps.as_mut(); + OWNER + .initialize( + deps_muted.storage, + deps_muted.api, + mars_owner::OwnerInit::SetInitialOwner { + owner: old_owner.to_string(), + }, ) .unwrap(); - let mars_denom = "umars"; - let old_config = mars_red_bank_types_old::incentives::Config { - address_provider: Addr::unchecked("address_provider"), - mars_denom: mars_denom.to_string(), - }; - v1_state::CONFIG.save(deps.as_mut().storage, &old_config).unwrap(); - let atom_denom = "uatom"; let usdc_denom = "uusdc"; let osmo_denom = "uosmo"; - let incentive_start_time = 500_000u64; - let duration = 864_000u64; // 10 days - let migration_time = incentive_start_time + duration + 100u64; - - // The incentive will have to be recalculated for the entire duration - let atom_incentive = mars_red_bank_types_old::incentives::AssetIncentive { - emission_per_second: Uint128::new(100), - start_time: incentive_start_time, - duration, - index: Decimal::one(), - last_updated: incentive_start_time, - }; - v1_state::ASSET_INCENTIVES.save(deps.as_mut().storage, atom_denom, &atom_incentive).unwrap(); - - // The incentive will have to be recalculated for the part of the duration - let usdc_incentive = mars_red_bank_types_old::incentives::AssetIncentive { - emission_per_second: Uint128::new(50), - start_time: incentive_start_time, - duration, - index: Decimal::from_ratio(12u128, 10u128), - last_updated: incentive_start_time + 86400u64, // + 1 day - }; - v1_state::ASSET_INCENTIVES.save(deps.as_mut().storage, usdc_denom, &usdc_incentive).unwrap(); - - // The incentive won't be recalculated because it finished before migration time - let osmo_incentive = mars_red_bank_types_old::incentives::AssetIncentive { - emission_per_second: Uint128::new(50), - start_time: incentive_start_time, - duration, - index: Decimal::from_ratio(15u128, 10u128), - last_updated: migration_time - 10u64, - }; - v1_state::ASSET_INCENTIVES.save(deps.as_mut().storage, osmo_denom, &osmo_incentive).unwrap(); + let mars_incentive_denom = "umars"; + let astro_incentive_denom = "uastro"; // Set user asset indices for all incentive assets let user_1 = Addr::unchecked("user_1"); let user_1_atom_idx_old = Decimal::one(); v1_state::USER_ASSET_INDICES - .save(deps.as_mut().storage, (&user_1, atom_denom), &user_1_atom_idx_old) + .save( + deps.as_mut().storage, + (&user_1, atom_denom, mars_incentive_denom), + &user_1_atom_idx_old, + ) .unwrap(); - let user_1_usdc_idx_old = Decimal::one(); + let user_1_usdc_idx_old = Decimal::from_str("2.2356").unwrap(); v1_state::USER_ASSET_INDICES - .save(deps.as_mut().storage, (&user_1, usdc_denom), &user_1_usdc_idx_old) + .save( + deps.as_mut().storage, + (&user_1, usdc_denom, mars_incentive_denom), + &user_1_usdc_idx_old, + ) .unwrap(); - let user_1_osmo_idx_old = Decimal::one(); + let user_1_osmo_idx_old = Decimal::from_str("33.25").unwrap(); v1_state::USER_ASSET_INDICES - .save(deps.as_mut().storage, (&user_1, osmo_denom), &user_1_osmo_idx_old) + .save( + deps.as_mut().storage, + (&user_1, osmo_denom, astro_incentive_denom), + &user_1_osmo_idx_old, + ) .unwrap(); // Set user asset indices only for osmo. Index is up to date with asset incentive index. No rewards accured. let user_2 = Addr::unchecked("user_2"); - let user_2_osmo_idx_old = osmo_incentive.index; + let user_2_osmo_idx_old = Decimal::from_str("1.2356").unwrap(); v1_state::USER_ASSET_INDICES - .save(deps.as_mut().storage, (&user_2, osmo_denom), &user_2_osmo_idx_old) + .save( + deps.as_mut().storage, + (&user_2, osmo_denom, astro_incentive_denom), + &user_2_osmo_idx_old, + ) .unwrap(); // Set user asset indices only for atom let user_3 = Addr::unchecked("user_3"); let user_3_atom_idx_old = Decimal::one(); v1_state::USER_ASSET_INDICES - .save(deps.as_mut().storage, (&user_3, atom_denom), &user_3_atom_idx_old) + .save( + deps.as_mut().storage, + (&user_3, atom_denom, mars_incentive_denom), + &user_3_atom_idx_old, + ) .unwrap(); - // Set unclaimed rewards only for user_1. - // user_2 doesn't accrue any new rewards because osmo incentive finished before migration time. - // user_3 not set in order to check if new state creation works for him. - let user_1_unclaimed_rewards = Uint128::new(1000); + // Set unclaimed rewards for user_2 + let user_2_usdc_mars_unclaimed_rewards = Uint128::new(500); v1_state::USER_UNCLAIMED_REWARDS - .save(deps.as_mut().storage, &user_1, &user_1_unclaimed_rewards) + .save( + deps.as_mut().storage, + (&user_2, usdc_denom, mars_incentive_denom), + &user_2_usdc_mars_unclaimed_rewards, + ) + .unwrap(); + let user_2_atom_mars_unclaimed_rewards = Uint128::new(12345); + v1_state::USER_UNCLAIMED_REWARDS + .save( + deps.as_mut().storage, + (&user_2, atom_denom, mars_incentive_denom), + &user_2_atom_mars_unclaimed_rewards, + ) .unwrap(); - // Setup markets - let atom_collateral_total_scaled = Uint128::new(100_000_000); - deps.querier.set_redbank_market(create_market(atom_denom, atom_collateral_total_scaled)); - let usdc_collateral_total_scaled = Uint128::new(1_250_000_000); - deps.querier.set_redbank_market(create_market(usdc_denom, usdc_collateral_total_scaled)); - let osmo_collateral_total_scaled = Uint128::new(520_000_000); - deps.querier.set_redbank_market(create_market(osmo_denom, osmo_collateral_total_scaled)); - - // Setup atom collaterals. Sum of all positions should be equal to atom_collateral_total_scaled. - let user_1_atom_amount_scaled = Uint128::zero(); // Setting zero to check if user_1 index is updated correctly - deps.querier.set_red_bank_user_collateral( - &user_1, - create_user_collateral(atom_denom, user_1_atom_amount_scaled), - ); - let user_3_atom_amount_scaled = atom_collateral_total_scaled; - deps.querier.set_red_bank_user_collateral( - &user_3, - create_user_collateral(atom_denom, user_3_atom_amount_scaled), - ); - - // Setup usdc collaterals. Sum of all positions should be equal to usdc_collateral_total_scaled - let user_1_usdc_amount_scaled = usdc_collateral_total_scaled; - deps.querier.set_red_bank_user_collateral( - &user_1, - create_user_collateral(usdc_denom, user_1_usdc_amount_scaled), - ); - - // Setup osmo collaterals. Sum of all positions should be equal to osmo_collateral_total_scaled - let user_1_osmo_amount_scaled = Uint128::new(120_000_000); - deps.querier.set_red_bank_user_collateral( - &user_1, - create_user_collateral(osmo_denom, user_1_osmo_amount_scaled), - ); - let user_2_osmo_amount_scaled = Uint128::new(400_000_000); - deps.querier.set_red_bank_user_collateral( - &user_2, - create_user_collateral(osmo_denom, user_2_osmo_amount_scaled), - ); - - let env = mars_testing::mock_env(MockEnvParams { - block_time: Timestamp::from_seconds(migration_time), - ..Default::default() - }); + // Set unclaimed rewards for user_1 + let user_1_osmo_astro_unclaimed_rewards = Uint128::new(1000); + v1_state::USER_UNCLAIMED_REWARDS + .save( + deps.as_mut().storage, + (&user_1, osmo_denom, astro_incentive_denom), + &user_1_osmo_astro_unclaimed_rewards, + ) + .unwrap(); - // can't migrate users indexes and rewards if guard is inactive + // can't migrate users indexes if guard is inactive let err = execute( deps.as_mut(), mock_env(), @@ -224,24 +164,14 @@ fn full_migration() { .unwrap_err(); assert_eq!(err, ContractError::Guard(GuardError::Inactive {})); - let epoch_duration = 604800; - let max_whitelisted_denoms = 12; - let res = migrate( - deps.as_mut(), - env, - MigrateMsg { - epoch_duration, - max_whitelisted_denoms, - }, - ) - .unwrap(); + let res = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap(); assert_eq!(res.messages, vec![]); assert_eq!(res.events, vec![] as Vec); assert!(res.data.is_none()); assert_eq!( res.attributes, - vec![attr("action", "migrate"), attr("from_version", "1.0.0"), attr("to_version", "2.0.0")] + vec![attr("action", "migrate"), attr("from_version", "1.2.0"), attr("to_version", "2.0.0")] ); let new_contract_version = ContractVersion { @@ -250,85 +180,30 @@ fn full_migration() { }; assert_eq!(cw2::get_contract_version(deps.as_ref().storage).unwrap(), new_contract_version); - let o = OWNER.query(deps.as_ref().storage).unwrap(); - assert_eq!(old_owner.to_string(), o.owner.unwrap()); - assert!(o.proposed.is_none()); - assert!(o.initialized); - assert!(!o.abolished); - assert!(o.emergency_owner.is_none()); - - let new_config = CONFIG.load(deps.as_ref().storage).unwrap(); - assert_eq!( - new_config, - Config { - address_provider: old_config.address_provider, - max_whitelisted_denoms, - mars_denom: old_config.mars_denom - } - ); - - let whitelist_count = WHITELIST_COUNT.load(deps.as_ref().storage).unwrap(); - assert_eq!(whitelist_count, 1); - let whitelist = WHITELIST + // Check if user unclaimed rewards are migrated correctly + let user_unclaimed_rewards = USER_UNCLAIMED_REWARDS .range(deps.as_ref().storage, None, None, Order::Ascending) .collect::>>() .unwrap(); - assert_eq!(whitelist.len(), 1); - assert_eq!(whitelist.get("umars").unwrap(), &Uint128::one()); - - // Update asset incentive indices and check if indices changed - let mut new_atom_incentive = atom_incentive.clone(); - v1_state::helpers::update_asset_incentive_index( - &mut new_atom_incentive, - atom_collateral_total_scaled, - migration_time, - ) - .unwrap(); - assert_ne!(atom_incentive.index, new_atom_incentive.index); - let mut new_usdc_incentive = usdc_incentive.clone(); - v1_state::helpers::update_asset_incentive_index( - &mut new_usdc_incentive, - usdc_collateral_total_scaled, - migration_time, - ) - .unwrap(); - assert_ne!(usdc_incentive.index, new_usdc_incentive.index); - let mut new_osmo_incentive = osmo_incentive.clone(); - v1_state::helpers::update_asset_incentive_index( - &mut new_osmo_incentive, - osmo_collateral_total_scaled, - migration_time, - ) - .unwrap(); - assert_eq!(osmo_incentive.index, new_osmo_incentive.index); // should be equal because last_updated is after incentive end time + assert_eq!(user_unclaimed_rewards.len(), 3); - // Check if incentive states are updated correctly - let incentive_states = INCENTIVE_STATES - .range(deps.as_ref().storage, None, None, Order::Ascending) - .collect::>>() + let user_id = UserId::credit_manager(user_1, "".to_string()); + let user_1_id_key: UserIdKey = user_id.try_into().unwrap(); + let user_1_osmo_astro_rewards_migrated = *user_unclaimed_rewards + .get(&(user_1_id_key.clone(), osmo_denom.to_string(), astro_incentive_denom.to_string())) .unwrap(); - assert_eq!(incentive_states.len(), 3); - assert_eq!( - incentive_states.get(&(atom_denom.to_string(), mars_denom.to_string())).unwrap(), - &IncentiveState { - index: new_atom_incentive.index, - last_updated: migration_time - } - ); - assert_eq!( - incentive_states.get(&(usdc_denom.to_string(), mars_denom.to_string())).unwrap(), - &IncentiveState { - index: new_usdc_incentive.index, - last_updated: migration_time - } - ); - assert_eq!( - incentive_states.get(&(osmo_denom.to_string(), mars_denom.to_string())).unwrap(), - &IncentiveState { - index: new_osmo_incentive.index, - last_updated: migration_time - } - ); + assert_eq!(user_1_osmo_astro_rewards_migrated, user_1_osmo_astro_unclaimed_rewards); + + let user_id = UserId::credit_manager(user_2, "".to_string()); + let user_2_id_key: UserIdKey = user_id.try_into().unwrap(); + let user_2_atom_mars_rewards_migrated = *user_unclaimed_rewards + .get(&(user_2_id_key.clone(), atom_denom.to_string(), mars_incentive_denom.to_string())) + .unwrap(); + assert_eq!(user_2_atom_mars_rewards_migrated, user_2_atom_mars_unclaimed_rewards); + let user_2_usdc_mars_rewards_migrated = *user_unclaimed_rewards + .get(&(user_2_id_key.clone(), usdc_denom.to_string(), mars_incentive_denom.to_string())) + .unwrap(); + assert_eq!(user_2_usdc_mars_rewards_migrated, user_2_usdc_mars_unclaimed_rewards); // check if guard is active for user actions let err = execute( @@ -414,7 +289,7 @@ fn full_migration() { vec![ attr("action", "migrate_users_indexes_and_rewards"), attr("result", "in_progress"), - attr("start_after", "user_1-uosmo"), + attr("start_after", "user_1-uosmo-uastro"), attr("limit", "2"), attr("has_more", "true"), ] @@ -434,17 +309,15 @@ fn full_migration() { vec![ attr("action", "migrate_users_indexes_and_rewards"), attr("result", "done"), - attr("start_after", "user_2-uosmo"), + attr("start_after", "user_2-uosmo-uastro"), attr("limit", "2"), attr("has_more", "false"), ] ); // check v1 state after full migration - assert!(!v1_state::ASSET_INCENTIVES.is_empty(&deps.storage)); assert!(!v1_state::USER_ASSET_INDICES.is_empty(&deps.storage)); - assert!(v1_state::USER_UNCLAIMED_REWARDS.is_empty(&deps.storage)); - assert!(!v1_state::USER_UNCLAIMED_REWARDS_BACKUP.is_empty(&deps.storage)); + assert!(!v1_state::USER_UNCLAIMED_REWARDS.is_empty(&deps.storage)); // Check if user asset indices are updated correctly let user_asset_indices = USER_ASSET_INDICES @@ -453,109 +326,45 @@ fn full_migration() { .unwrap(); assert_eq!(user_asset_indices.len(), 5); - let user_id = UserId::credit_manager(user_1, "".to_string()); - let user_1_id_key: UserIdKey = user_id.try_into().unwrap(); assert_eq!( user_asset_indices - .get(&(user_1_id_key.clone(), atom_denom.to_string(), mars_denom.to_string())) + .get(&(user_1_id_key.clone(), atom_denom.to_string(), mars_incentive_denom.to_string())) .unwrap(), - new_atom_incentive.index + user_1_atom_idx_old ); assert_eq!( user_asset_indices - .get(&(user_1_id_key.clone(), usdc_denom.to_string(), mars_denom.to_string())) + .get(&(user_1_id_key.clone(), usdc_denom.to_string(), mars_incentive_denom.to_string())) .unwrap(), - new_usdc_incentive.index + user_1_usdc_idx_old ); assert_eq!( user_asset_indices - .get(&(user_1_id_key.clone(), osmo_denom.to_string(), mars_denom.to_string())) + .get(&( + user_1_id_key.clone(), + osmo_denom.to_string(), + astro_incentive_denom.to_string() + )) .unwrap(), - new_osmo_incentive.index + user_1_osmo_idx_old ); - let user_id = UserId::credit_manager(user_2, "".to_string()); - let user_2_id_key: UserIdKey = user_id.try_into().unwrap(); assert_eq!( user_asset_indices - .get(&(user_2_id_key, osmo_denom.to_string(), mars_denom.to_string())) + .get(&(user_2_id_key, osmo_denom.to_string(), astro_incentive_denom.to_string())) .unwrap(), - new_osmo_incentive.index + user_2_osmo_idx_old ); let user_id = UserId::credit_manager(user_3, "".to_string()); let user_3_id_key: UserIdKey = user_id.try_into().unwrap(); assert_eq!( user_asset_indices - .get(&(user_3_id_key.clone(), atom_denom.to_string(), mars_denom.to_string())) + .get(&(user_3_id_key.clone(), atom_denom.to_string(), mars_incentive_denom.to_string())) .unwrap(), - new_atom_incentive.index + user_3_atom_idx_old ); - // Check if user unclaimed rewards backup is created correctly - let user_unclaimed_rewards_backup = v1_state::USER_UNCLAIMED_REWARDS_BACKUP - .range(deps.as_ref().storage, None, None, Order::Ascending) - .collect::>>() - .unwrap(); - assert_eq!(user_unclaimed_rewards_backup.len(), 1); - - // Check if user unclaimed rewards are migrated correctly - let user_unclaimed_rewards = USER_UNCLAIMED_REWARDS - .range(deps.as_ref().storage, None, None, Order::Ascending) - .collect::>>() - .unwrap(); - assert_eq!(user_unclaimed_rewards.len(), 4); - - let user_1_atom_rewards = v1_state::helpers::compute_user_accrued_rewards( - user_1_atom_amount_scaled, - user_1_atom_idx_old, - new_atom_incentive.index, - ) - .unwrap(); - let user_1_atom_rewards_migrated = *user_unclaimed_rewards - .get(&(user_1_id_key.clone(), atom_denom.to_string(), mars_denom.to_string())) - .unwrap(); - assert_eq!(user_1_atom_rewards_migrated, user_1_unclaimed_rewards + user_1_atom_rewards); - let user_1_usdc_rewards = v1_state::helpers::compute_user_accrued_rewards( - user_1_usdc_amount_scaled, - user_1_usdc_idx_old, - new_usdc_incentive.index, - ) - .unwrap(); - let user_1_usdc_rewards_migrated = *user_unclaimed_rewards - .get(&(user_1_id_key.clone(), usdc_denom.to_string(), mars_denom.to_string())) - .unwrap(); - assert_eq!(user_1_usdc_rewards_migrated, user_1_usdc_rewards); - let user_1_osmo_rewards = v1_state::helpers::compute_user_accrued_rewards( - user_1_osmo_amount_scaled, - user_1_osmo_idx_old, - new_osmo_incentive.index, - ) - .unwrap(); - let user_1_osmo_rewards_migrated = *user_unclaimed_rewards - .get(&(user_1_id_key, osmo_denom.to_string(), mars_denom.to_string())) - .unwrap(); - assert_eq!(user_1_osmo_rewards_migrated, user_1_osmo_rewards); - - let user_2_osmo_rewards = v1_state::helpers::compute_user_accrued_rewards( - user_2_osmo_amount_scaled, - user_2_osmo_idx_old, - new_osmo_incentive.index, - ) - .unwrap(); - assert_eq!(user_2_osmo_rewards, Uint128::zero()); - - let user_3_atom_rewards = v1_state::helpers::compute_user_accrued_rewards( - user_3_atom_amount_scaled, - user_3_atom_idx_old, - new_atom_incentive.index, - ) - .unwrap(); - let user_3_atom_rewards_migrated = *user_unclaimed_rewards - .get(&(user_3_id_key, atom_denom.to_string(), mars_denom.to_string())) - .unwrap(); - assert_eq!(user_3_atom_rewards_migrated, user_3_atom_rewards); - // Clear old V1 state execute( deps.as_mut(), @@ -566,28 +375,9 @@ fn full_migration() { .unwrap(); // check v1 state after clearing - assert!(v1_state::ASSET_INCENTIVES.is_empty(&deps.storage)); assert!(v1_state::USER_ASSET_INDICES.is_empty(&deps.storage)); assert!(v1_state::USER_UNCLAIMED_REWARDS.is_empty(&deps.storage)); - assert!(v1_state::USER_UNCLAIMED_REWARDS_BACKUP.is_empty(&deps.storage)); // guard should be unlocked after migration assert!(MIGRATION_GUARD.assert_unlocked(&deps.storage).is_ok()); } - -fn create_market(denom: &str, scaled_amt: Uint128) -> Market { - Market { - denom: denom.to_string(), - collateral_total_scaled: scaled_amt, - ..Default::default() - } -} - -fn create_user_collateral(denom: &str, scaled_amt: Uint128) -> UserCollateralResponse { - UserCollateralResponse { - denom: denom.to_string(), - amount_scaled: scaled_amt, - amount: Uint128::zero(), // doesn't matter for this test - enabled: true, - } -} diff --git a/contracts/incentives/tests/tests/test_quering.rs b/contracts/incentives/tests/tests/test_quering.rs index 2f1b20d7..74cc3243 100644 --- a/contracts/incentives/tests/tests/test_quering.rs +++ b/contracts/incentives/tests/tests/test_quering.rs @@ -1,8 +1,13 @@ -use cosmwasm_std::{Decimal, Timestamp, Uint128}; -use mars_incentives::state::{EMISSIONS, INCENTIVE_STATES}; +use astroport_v5::asset::Asset; +use cosmwasm_std::{Addr, Coin, Decimal, Timestamp, Uint128}; +use mars_incentives::state::{ + ASTRO_INCENTIVE_STATES, ASTRO_TOTAL_LP_DEPOSITS, ASTRO_USER_LP_DEPOSITS, EMISSIONS, + INCENTIVE_STATES, +}; use mars_testing::{mock_env, MockEnvParams}; use mars_types::incentives::{ - ActiveEmission, EmissionResponse, IncentiveState, IncentiveStateResponse, QueryMsg, + ActiveEmission, EmissionResponse, IncentiveState, IncentiveStateResponse, + PaginatedStakedLpResponse, QueryMsg, StakedLpPositionResponse, }; use test_case::test_case; @@ -309,3 +314,95 @@ fn query_active_emissions(query_at_time: u64) -> Vec<(String, Uint128)> { .map(|x| (x.denom, x.emission_rate)) .collect() } + +#[test] +fn query_staked_lp_positions_with_pagination() { + let mut deps = th_setup(); + + let astroport_incentives_addr = Addr::unchecked("astroport_incentives"); + deps.querier.set_astroport_incentives_address(astroport_incentives_addr.clone()); + + let mut count = 0; + let account_id = "1".to_string(); + + // save 50 different deposits + while count < 50 { + count += 1; + ASTRO_USER_LP_DEPOSITS + .save(deps.as_mut().storage, (&account_id, &count.to_string()), &Uint128::new(count)) + .unwrap(); + } + + let page_1: PaginatedStakedLpResponse = th_query( + deps.as_ref(), + QueryMsg::StakedAstroLpPositions { + account_id: account_id.clone(), + start_after: None, + limit: Some(51), + }, + ); + + // ensure we cap to 10 + assert_eq!(page_1.data.len(), 10); + + let page_2: PaginatedStakedLpResponse = th_query( + deps.as_ref(), + QueryMsg::StakedAstroLpPositions { + account_id: account_id.clone(), + start_after: page_1.data.last().map(|x| x.lp_coin.denom.clone()), + limit: None, + }, + ); + + // Default length should be 5. + assert_eq!(page_2.data.len(), 5); + + // Pages are sorted alphabetically (1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20) + assert_eq!(page_2.data.first().map(|x| x.lp_coin.denom.clone()), Some("19".to_string())); +} + +#[test] +fn query_staked_astro_lp_position() { + let env = mock_env(MockEnvParams { + block_time: Timestamp::from_seconds(1), + ..Default::default() + }); + let mut deps = th_setup(); + let account_id = "1".to_string(); + let lp_denom = "uastro".to_string(); + let reward_denom = "uusdc".to_string(); + let reward_amount = Uint128::new(100u128); + let reward_coin = Coin { + denom: reward_denom.clone(), + amount: reward_amount, + }; + + let astroport_incentives_addr = Addr::unchecked("astroport_incentives"); + deps.querier.set_astroport_incentives_address(astroport_incentives_addr.clone()); + deps.querier.set_unclaimed_astroport_lp_rewards( + &lp_denom, + env.contract.address.as_ref(), + vec![Asset::from(reward_coin.clone())], + ); + ASTRO_TOTAL_LP_DEPOSITS.save(deps.as_mut().storage, &lp_denom, &Uint128::new(100u128)).unwrap(); + ASTRO_USER_LP_DEPOSITS + .save(deps.as_mut().storage, (&account_id, &lp_denom), &Uint128::new(100u128)) + .unwrap(); + ASTRO_INCENTIVE_STATES + .save(deps.as_mut().storage, (&lp_denom, &reward_denom), &Decimal::zero()) + .unwrap(); + + let res: StakedLpPositionResponse = th_query( + deps.as_ref(), + QueryMsg::StakedAstroLpPosition { + account_id: account_id.clone(), + lp_denom: lp_denom.clone(), + }, + ); + + assert_eq!(res.lp_coin.denom, "uastro".to_string()); + assert_eq!(res.lp_coin.amount, Uint128::new(100u128)); + assert_eq!(res.rewards[0].amount, reward_coin.amount); + assert_eq!(res.rewards[0].denom, reward_coin.denom); + assert_eq!(res.rewards.len(), 1); +} diff --git a/contracts/incentives/tests/tests/test_whitelist.rs b/contracts/incentives/tests/tests/test_whitelist.rs index cff86668..d652ecba 100644 --- a/contracts/incentives/tests/tests/test_whitelist.rs +++ b/contracts/incentives/tests/tests/test_whitelist.rs @@ -4,7 +4,8 @@ use cosmwasm_std::{ Addr, Coin, Timestamp, Uint128, }; use mars_incentives::{ - contract::{execute, execute_balance_change}, + contract::execute, + mars_incentives::execute_balance_change, state::{EMISSIONS, WHITELIST_COUNT}, ContractError, }; diff --git a/contracts/mock-astroport-incentives/Cargo.toml b/contracts/mock-astroport-incentives/Cargo.toml new file mode 100644 index 00000000..37a55aae --- /dev/null +++ b/contracts/mock-astroport-incentives/Cargo.toml @@ -0,0 +1,28 @@ +[package] +name = "mars-mock-astroport-incentives" +version = { workspace = true } +authors = { workspace = true } +license = { workspace = true } +edition = { workspace = true } +repository = { workspace = true } +homepage = { workspace = true } +documentation = { workspace = true } +keywords = { workspace = true } + +[lib] +crate-type = ["cdylib", "rlib"] + +[features] +# for quicker tests, cargo test --lib +# for more explicit tests, cargo test --features=backtraces +backtraces = ["cosmwasm-std/backtraces"] +library = [] + +[dependencies] +astroport-v5 = { workspace = true } +cosmwasm-schema = { workspace = true } +cosmwasm-std = { workspace = true } +cw-storage-plus = { workspace = true } +cw-utils = { workspace = true } +mars-types = { workspace = true } +thiserror = { workspace = true } \ No newline at end of file diff --git a/contracts/mock-astroport-incentives/src/contract.rs b/contracts/mock-astroport-incentives/src/contract.rs new file mode 100644 index 00000000..9127cf22 --- /dev/null +++ b/contracts/mock-astroport-incentives/src/contract.rs @@ -0,0 +1,56 @@ +use astroport_v5::incentives::{ExecuteMsg, QueryMsg}; +#[cfg(not(feature = "library"))] +use cosmwasm_std::entry_point; +use cosmwasm_std::{ + to_json_binary, Binary, Deps, DepsMut, Empty, Env, MessageInfo, Response, StdResult, +}; + +use crate::{ + execute::{claim_rewards, deposit, incentivise, withdraw}, + query::{query_deposit, query_rewards}, +}; +#[entry_point] +pub fn instantiate( + _deps: DepsMut, + _env: Env, + _info: MessageInfo, + _msg: Empty, +) -> StdResult { + Ok(Response::default()) +} + +#[cfg_attr(not(feature = "library"), entry_point)] +pub fn execute(deps: DepsMut, env: Env, info: MessageInfo, msg: ExecuteMsg) -> StdResult { + match msg { + ExecuteMsg::Deposit { + recipient: _, + } => deposit(deps, env, info), + ExecuteMsg::Withdraw { + lp_token, + amount, + } => withdraw(deps, env, info, lp_token, amount), + ExecuteMsg::ClaimRewards { + lp_tokens, + } => claim_rewards(deps, env, info, lp_tokens), + ExecuteMsg::Incentivize { + lp_token, + schedule, + } => incentivise(deps, env, lp_token, schedule), + _ => unimplemented!("Msg not supported! : {:?}", msg), + } +} + +#[entry_point] +pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { + match msg { + QueryMsg::PendingRewards { + lp_token, + user, + } => to_json_binary(&query_rewards(deps, env, user, lp_token)?), + QueryMsg::Deposit { + lp_token, + user, + } => to_json_binary(&query_deposit(deps, user, lp_token)?), + _ => panic!("Unsupported query!"), + } +} diff --git a/contracts/mock-astroport-incentives/src/execute.rs b/contracts/mock-astroport-incentives/src/execute.rs new file mode 100644 index 00000000..b426d0fc --- /dev/null +++ b/contracts/mock-astroport-incentives/src/execute.rs @@ -0,0 +1,110 @@ +use astroport_v5::{ + asset::AssetInfo, + incentives::{IncentivesSchedule, InputSchedule}, +}; +use cosmwasm_std::{Coin, DepsMut, Env, MessageInfo, Response, StdError, StdResult, Uint128}; + +use crate::{ + query::query_rewards, + state::{ASTRO_LP_INCENTIVE_DEPOSITS, INCENTIVE_SCHEDULES}, +}; + +pub fn incentivise( + deps: DepsMut, + env: Env, + lp_token: String, + schedule: InputSchedule, +) -> StdResult { + let incentives_schedule = IncentivesSchedule::from_input(&env, &schedule)?; + + let reward_denom = match &incentives_schedule.reward_info { + AssetInfo::NativeToken { + denom, + } => denom.to_string(), + _ => unimplemented!("mock does not support cw20 assets!"), + }; + + // Store the incentive schedule in the state + INCENTIVE_SCHEDULES.save(deps.storage, (&lp_token, &reward_denom), &incentives_schedule)?; + + Ok(Response::new()) +} + +// We just use this as a blank to consume the deposit message. This mock assumes only the incentives contract +// will ever deposit / withdraw / interact +pub fn deposit(deps: DepsMut, _: Env, info: MessageInfo) -> StdResult { + let sender = info.sender.to_string(); + let coins = info.funds; + + for coin in coins { + let lp_token = coin.denom.clone(); + ASTRO_LP_INCENTIVE_DEPOSITS.update(deps.storage, (&sender, &lp_token), |value_opt| { + value_opt + .unwrap_or_else(Uint128::zero) + .checked_add(coin.amount) + .map_err(|_| StdError::generic_err("overflow")) + })?; + } + + Ok(Response::new()) +} + +pub fn withdraw( + deps: DepsMut, + _: Env, + info: MessageInfo, + lp_token: String, + amount: Uint128, +) -> StdResult { + let sender = info.sender.to_string(); + + // Send the rewards to the user + let withdraw_lp_msg = cosmwasm_std::CosmosMsg::Bank(cosmwasm_std::BankMsg::Send { + to_address: info.sender.to_string(), + amount: vec![Coin { + amount, + denom: lp_token.clone(), + }], + }); + + ASTRO_LP_INCENTIVE_DEPOSITS.update(deps.storage, (&sender, &lp_token), |value_opt| { + value_opt + .unwrap_or_else(Uint128::zero) + .checked_sub(amount) + .map_err(|_| StdError::generic_err("overflow")) + })?; + + Ok(Response::new().add_message(withdraw_lp_msg)) +} + +pub fn claim_rewards( + deps: DepsMut, + env: Env, + info: MessageInfo, + lp_tokens: Vec, +) -> StdResult { + let rewards = lp_tokens + .iter() + .map(|lp_token: &String| { + query_rewards(deps.as_ref(), env.clone(), info.sender.to_string(), lp_token.to_string()) + .unwrap() + }) + .fold(vec![], |mut acc, item| { + acc.extend(item); + acc + }); + + let response = Response::new(); + + if rewards.is_empty() { + return Ok(response); + } + + // Send the rewards to the user + let reward_msg = cosmwasm_std::CosmosMsg::Bank(cosmwasm_std::BankMsg::Send { + to_address: info.sender.to_string(), + amount: rewards.into_iter().map(|asset| asset.as_coin().unwrap()).collect(), + }); + + Ok(response.add_message(reward_msg)) +} diff --git a/contracts/mock-astroport-incentives/src/lib.rs b/contracts/mock-astroport-incentives/src/lib.rs new file mode 100644 index 00000000..b3684924 --- /dev/null +++ b/contracts/mock-astroport-incentives/src/lib.rs @@ -0,0 +1,4 @@ +pub mod contract; +pub mod execute; +pub mod query; +pub mod state; diff --git a/contracts/mock-astroport-incentives/src/query.rs b/contracts/mock-astroport-incentives/src/query.rs new file mode 100644 index 00000000..4473930b --- /dev/null +++ b/contracts/mock-astroport-incentives/src/query.rs @@ -0,0 +1,45 @@ +use std::str::FromStr; + +use astroport_v5::asset::Asset; +use cosmwasm_std::{Coin, Decimal256, Deps, Env, StdResult, Uint128}; + +use crate::state::{ASTRO_LP_INCENTIVE_DEPOSITS, INCENTIVE_SCHEDULES}; + +pub fn query_rewards( + deps: Deps, + _: Env, + sender: String, + lp_token: String, +) -> StdResult> { + let deposits = ASTRO_LP_INCENTIVE_DEPOSITS.may_load(deps.storage, (&sender, &lp_token))?; + match deposits { + Some(_) => Ok(INCENTIVE_SCHEDULES + .prefix(&lp_token) + .range(deps.storage, None, None, cosmwasm_std::Order::Ascending) + .map( + |item: Result< + (String, astroport_v5::incentives::IncentivesSchedule), + cosmwasm_std::StdError, + >| { + let (reward_denom, schedule) = item.unwrap(); + // Note - this gives all rewards to the claimer, but in reality we would need to calculate the rewards for each user. + let amount = + schedule.rps.checked_mul(Decimal256::from_str("5000").unwrap()).unwrap(); + Coin { + amount: Uint128::try_from(amount.to_uint_floor()).unwrap(), + denom: reward_denom, + } + .into() + }, + ) + .collect()), + + None => Err(cosmwasm_std::StdError::NotFound { + kind: "position not found".to_string(), + }), + } +} + +pub fn query_deposit(deps: Deps, user: String, lp_token: String) -> StdResult { + Ok(ASTRO_LP_INCENTIVE_DEPOSITS.may_load(deps.storage, (&user, &lp_token))?.unwrap_or_default()) +} diff --git a/contracts/mock-astroport-incentives/src/state.rs b/contracts/mock-astroport-incentives/src/state.rs new file mode 100644 index 00000000..86c01bd3 --- /dev/null +++ b/contracts/mock-astroport-incentives/src/state.rs @@ -0,0 +1,9 @@ +use astroport_v5::incentives::IncentivesSchedule; +use cosmwasm_std::Uint128; +use cw_storage_plus::Map; + +// Storage for our mock incentive schedules. Key is lp_denom, reward_asset_denom +pub const INCENTIVE_SCHEDULES: Map<(&str, &str), IncentivesSchedule> = + Map::new("astro_incentive_schedules"); +pub const ASTRO_LP_INCENTIVE_DEPOSITS: Map<(&str, &str), Uint128> = + Map::new("astro_incentive_lp_deposits"); diff --git a/contracts/mock-credit-manager/Cargo.toml b/contracts/mock-credit-manager/Cargo.toml index 9c0d5dfc..d29f6dc3 100644 --- a/contracts/mock-credit-manager/Cargo.toml +++ b/contracts/mock-credit-manager/Cargo.toml @@ -22,6 +22,4 @@ library = [] cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } cw-storage-plus = { workspace = true } -cw-utils = { workspace = true } mars-types = { workspace = true } -thiserror = { workspace = true } diff --git a/contracts/mock-incentives/Cargo.toml b/contracts/mock-incentives/Cargo.toml index 987e8a64..ad1f3186 100644 --- a/contracts/mock-incentives/Cargo.toml +++ b/contracts/mock-incentives/Cargo.toml @@ -19,7 +19,7 @@ backtraces = ["cosmwasm-std/backtraces"] library = [] [dependencies] -cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } +cw-paginate = { workspace = true } cw-storage-plus = { workspace = true } mars-types = { workspace = true } diff --git a/contracts/mock-incentives/src/contract.rs b/contracts/mock-incentives/src/contract.rs index f066b16e..82d9b416 100644 --- a/contracts/mock-incentives/src/contract.rs +++ b/contracts/mock-incentives/src/contract.rs @@ -1,13 +1,16 @@ #[cfg(not(feature = "library"))] use cosmwasm_std::entry_point; use cosmwasm_std::{ - to_json_binary, Binary, Deps, DepsMut, Empty, Env, MessageInfo, Response, StdResult, + to_json_binary, Binary, Coin, Deps, DepsMut, Empty, Env, MessageInfo, Response, StdResult, }; use mars_types::incentives; use crate::{ - execute::{balance_change, claim_rewards}, - query::query_unclaimed_rewards, + execute::{ + balance_change, claim_astro_lp_rewards, claim_rewards, set_incentive_rewards, + stake_astro_lp, unstake_astro_lp, + }, + query::{self, query_unclaimed_rewards}, }; #[cfg_attr(not(feature = "library"), entry_point)] @@ -32,6 +35,10 @@ pub fn execute( account_id, .. } => claim_rewards(deps, info, account_id), + incentives::ExecuteMsg::ClaimStakedAstroLpRewards { + account_id, + lp_denom, + } => claim_astro_lp_rewards(deps, info, account_id, lp_denom), incentives::ExecuteMsg::BalanceChange { user_addr, account_id, @@ -39,6 +46,36 @@ pub fn execute( user_amount_scaled_before, .. } => balance_change(deps, info, user_addr, account_id, denom, user_amount_scaled_before), + incentives::ExecuteMsg::SetAssetIncentive { + collateral_denom, + incentive_denom, + emission_per_second, + start_time, + .. + } => set_incentive_rewards( + deps, + info, + collateral_denom, + incentive_denom, + emission_per_second, + start_time, + ), + incentives::ExecuteMsg::StakeAstroLp { + account_id, + lp_coin, + } => stake_astro_lp(deps, info, account_id, lp_coin), + incentives::ExecuteMsg::UnstakeAstroLp { + account_id, + lp_coin, + } => unstake_astro_lp( + deps, + info, + account_id, + Coin { + denom: lp_coin.denom, + amount: lp_coin.amount.value().unwrap(), + }, + ), _ => unimplemented!("Msg not supported!"), } } @@ -51,6 +88,28 @@ pub fn query(deps: Deps, _env: Env, msg: incentives::QueryMsg) -> StdResult to_json_binary(&query_unclaimed_rewards(deps, &user, &account_id)?), + incentives::QueryMsg::StakedAstroLpRewards { + account_id, + lp_denom, + .. + } => to_json_binary(&query::query_staked_astro_lp_rewards_for_user( + deps, account_id, lp_denom, + )?), + incentives::QueryMsg::StakedAstroLpPosition { + account_id, + lp_denom, + .. + } => to_json_binary(&query::query_staked_lp_astro_lp_position(deps, account_id, lp_denom)?), + incentives::QueryMsg::StakedAstroLpPositions { + account_id, + start_after, + limit, + } => to_json_binary(&query::query_all_staked_lp_positions_for_account( + deps, + account_id, + start_after, + limit, + )?), _ => unimplemented!("Query not supported!"), } } diff --git a/contracts/mock-incentives/src/execute.rs b/contracts/mock-incentives/src/execute.rs index 350112dd..f0338812 100644 --- a/contracts/mock-incentives/src/execute.rs +++ b/contracts/mock-incentives/src/execute.rs @@ -2,7 +2,30 @@ use cosmwasm_std::{ Addr, BankMsg, Coin, CosmosMsg, DepsMut, MessageInfo, Response, StdResult, Uint128, }; -use crate::{query::query_unclaimed_rewards, state::UNCLAIMED_REWARDS}; +use crate::{ + query::{ + query_staked_astro_lp_amount, query_staked_astro_lp_rewards_for_user, + query_unclaimed_rewards, + }, + state::{PENDING_ASTRO_REWARDS, STAKED_ASTRO_LP_POSITIONS, UNCLAIMED_REWARDS}, +}; + +pub fn claim_astro_lp_rewards( + deps: DepsMut, + info: MessageInfo, + account_id: String, + lp_denom: String, +) -> StdResult { + let pending_astro_rewards: Vec = + query_staked_astro_lp_rewards_for_user(deps.as_ref(), account_id.clone(), lp_denom)?; + + let transfer_msg = CosmosMsg::Bank(BankMsg::Send { + to_address: info.sender.to_string(), + amount: pending_astro_rewards, + }); + + Ok(Response::new().add_message(transfer_msg)) +} pub fn claim_rewards( deps: DepsMut, @@ -46,3 +69,79 @@ pub fn balance_change( Ok(Response::new()) } + +/// Privileged sudo message for setting incentive rewards for astroport LP's +pub fn set_incentive_rewards( + deps: DepsMut, + _: MessageInfo, + collateral_denom: String, + incentive_denom: String, + emission_per_second: Uint128, + start_time: u64, +) -> StdResult { + // Rename variables to match the desired usage + let account_id = start_time.to_string(); + let lp_denom = collateral_denom; + let incentive_amount = emission_per_second; + + let mut pending_astro_rewards: Vec = query_staked_astro_lp_rewards_for_user( + deps.as_ref(), + account_id.clone(), + lp_denom.clone(), + )?; + + pending_astro_rewards.push(Coin { + denom: incentive_denom, + amount: incentive_amount, + }); + + PENDING_ASTRO_REWARDS.save(deps.storage, (account_id, lp_denom), &pending_astro_rewards)?; + + Ok(Response::new()) +} + +pub fn stake_astro_lp( + deps: DepsMut, + _: MessageInfo, + account_id: String, + lp_coin: Coin, +) -> StdResult { + let staked_coin = + query_staked_astro_lp_amount(deps.as_ref(), account_id.clone(), lp_coin.denom.clone())?; + + let new_amount = staked_coin.amount.checked_add(lp_coin.amount)?; + + STAKED_ASTRO_LP_POSITIONS.save(deps.storage, (account_id, lp_coin.denom), &new_amount)?; + + Ok(Response::new()) +} + +pub fn unstake_astro_lp( + deps: DepsMut, + info: MessageInfo, + account_id: String, + lp_coin: Coin, +) -> StdResult { + let staked_coin = + query_staked_astro_lp_amount(deps.as_ref(), account_id.clone(), lp_coin.denom.clone())?; + + let new_amount = staked_coin.amount.checked_sub(lp_coin.amount)?; + + if new_amount.is_zero() { + STAKED_ASTRO_LP_POSITIONS.remove(deps.storage, (account_id, lp_coin.denom.clone())); + } else { + STAKED_ASTRO_LP_POSITIONS.save( + deps.storage, + (account_id, lp_coin.denom.clone()), + &new_amount, + )?; + } + + // Mock env responsible for seeding contract with coins + let transfer_msg = CosmosMsg::Bank(BankMsg::Send { + to_address: info.sender.to_string(), + amount: vec![lp_coin], + }); + + Ok(Response::new().add_message(transfer_msg)) +} diff --git a/contracts/mock-incentives/src/query.rs b/contracts/mock-incentives/src/query.rs index 422e6877..c9ab0d1b 100644 --- a/contracts/mock-incentives/src/query.rs +++ b/contracts/mock-incentives/src/query.rs @@ -1,6 +1,11 @@ use cosmwasm_std::{Coin, Deps, StdResult}; +use cw_paginate::paginate_prefix_query; +use cw_storage_plus::Bound; +use mars_types::incentives::{PaginatedStakedLpResponse, StakedLpPositionResponse}; -use crate::state::UNCLAIMED_REWARDS; +use crate::state::{ + DEFAULT_LIMIT, MAX_LIMIT, PENDING_ASTRO_REWARDS, STAKED_ASTRO_LP_POSITIONS, UNCLAIMED_REWARDS, +}; pub fn query_unclaimed_rewards( deps: Deps, @@ -12,3 +17,73 @@ pub fn query_unclaimed_rewards( .may_load(deps.storage, (user_addr, account_id.clone().unwrap_or_default()))? .unwrap_or_default()) } + +pub fn query_staked_astro_lp_rewards_for_user( + deps: Deps, + account_id: String, + lp_denom: String, +) -> StdResult> { + Ok(PENDING_ASTRO_REWARDS.may_load(deps.storage, (account_id, lp_denom))?.unwrap_or_default()) +} + +pub fn query_staked_lp_astro_lp_position( + deps: Deps, + account_id: String, + lp_denom: String, +) -> StdResult { + let staked_coin = query_staked_astro_lp_amount(deps, account_id.clone(), lp_denom.clone())?; + let rewards = query_staked_astro_lp_rewards_for_user(deps, account_id, lp_denom)?; + + Ok(StakedLpPositionResponse { + lp_coin: staked_coin, + rewards, + }) +} + +pub fn query_all_staked_lp_positions_for_account( + deps: Deps, + account_id: String, + start_after: Option, + limit: Option, +) -> StdResult { + let start = start_after.as_ref().map(|denom| Bound::exclusive(denom.as_str())); + let limit: u32 = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT); + + paginate_prefix_query( + &STAKED_ASTRO_LP_POSITIONS, + deps.storage, + account_id.clone(), + start, + Some(limit), + |denom, amount| { + let lp_coin = Coin { + denom, + amount, + }; + let rewards = query_staked_astro_lp_rewards_for_user( + deps, + account_id.clone(), + lp_coin.denom.clone(), + )?; + + Ok(StakedLpPositionResponse { + lp_coin, + rewards, + }) + }, + ) +} + +pub fn query_staked_astro_lp_amount( + deps: Deps, + account_id: String, + lp_denom: String, +) -> StdResult { + let staked_amount = crate::state::STAKED_ASTRO_LP_POSITIONS + .may_load(deps.storage, (account_id, lp_denom.clone()))? + .unwrap_or_default(); + Ok(Coin { + denom: lp_denom, + amount: staked_amount, + }) +} diff --git a/contracts/mock-incentives/src/state.rs b/contracts/mock-incentives/src/state.rs index 7c6c2b94..895a67a3 100644 --- a/contracts/mock-incentives/src/state.rs +++ b/contracts/mock-incentives/src/state.rs @@ -1,5 +1,15 @@ -use cosmwasm_std::{Addr, Coin}; +use cosmwasm_std::{Addr, Coin, Uint128}; use cw_storage_plus::Map; +pub const DEFAULT_LIMIT: u32 = 10; +pub const MAX_LIMIT: u32 = 30; // Map<(Addr, CmAccountId), Unclaimed Coins> pub const UNCLAIMED_REWARDS: Map<(Addr, String), Vec> = Map::new("unclaimed_rewards"); + +// Map<(account_id, lp_denom), PendingRewards> +pub const PENDING_ASTRO_REWARDS: Map<(String, String), Vec> = + Map::new("pending_astro_rewards"); + +// Map<(account_id, lp_denom), staked amount> +pub const STAKED_ASTRO_LP_POSITIONS: Map<(String, String), Uint128> = + Map::new("staked_astro_lp_positions"); diff --git a/contracts/mock-pyth/Cargo.toml b/contracts/mock-pyth/Cargo.toml index 1d79f10f..e4fad3d7 100644 --- a/contracts/mock-pyth/Cargo.toml +++ b/contracts/mock-pyth/Cargo.toml @@ -21,6 +21,5 @@ backtraces = ["cosmwasm-std/backtraces"] library = [] [dependencies] -cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } pyth-sdk-cw = { workspace = true } diff --git a/contracts/mock-vault/src/deposit.rs b/contracts/mock-vault/src/deposit.rs index 294e4d5a..7451a36e 100644 --- a/contracts/mock-vault/src/deposit.rs +++ b/contracts/mock-vault/src/deposit.rs @@ -81,7 +81,8 @@ fn steal_user_funds( contract_addr: info.sender.to_string(), funds: vec![], msg: to_json_binary(&UpdateCreditAccount { - account_id: vault_credit_account, // Tests will require creating this credit account owned by vault + account_id: Some(vault_credit_account), // Tests will require creating this credit account owned by vault + account_kind: None, // Depositing user funds it was sent as its own actions: vec![Deposit(info.funds.first().unwrap().clone())], })?, diff --git a/contracts/oracle/base/src/error.rs b/contracts/oracle/base/src/error.rs index 06cf2c50..87d0452d 100644 --- a/contracts/oracle/base/src/error.rs +++ b/contracts/oracle/base/src/error.rs @@ -1,6 +1,6 @@ use cosmwasm_std::{ - CheckedFromRatioError, CheckedMultiplyRatioError, ConversionOverflowError, - DecimalRangeExceeded, DivideByZeroError, OverflowError, StdError, + CheckedFromRatioError, CheckedMultiplyFractionError, CheckedMultiplyRatioError, + ConversionOverflowError, DecimalRangeExceeded, DivideByZeroError, OverflowError, StdError, }; use mars_owner::OwnerError; use mars_utils::error::ValidationError; @@ -29,6 +29,9 @@ pub enum ContractError { #[error("{0}")] CheckedMultiplyRatio(#[from] CheckedMultiplyRatioError), + #[error("{0}")] + CheckedMultiplyFraction(#[from] CheckedMultiplyFractionError), + #[error("{0}")] CheckedFromRatio(#[from] CheckedFromRatioError), @@ -71,6 +74,9 @@ pub enum ContractError { #[error("Snapshots have the same cumulative price. This should never happen.")] InvalidCumulativePrice {}, + + #[error("Missing astroport pool params")] + MissingAstroportPoolParams {}, } pub type ContractResult = Result; diff --git a/contracts/oracle/base/src/lib.rs b/contracts/oracle/base/src/lib.rs index edb19eb3..327646fb 100644 --- a/contracts/oracle/base/src/lib.rs +++ b/contracts/oracle/base/src/lib.rs @@ -2,6 +2,7 @@ mod contract; mod error; mod traits; +pub mod lp_pricing; pub mod pyth; pub mod redemption_rate; diff --git a/contracts/oracle/base/src/lp_pricing.rs b/contracts/oracle/base/src/lp_pricing.rs new file mode 100644 index 00000000..7eb6a7d2 --- /dev/null +++ b/contracts/oracle/base/src/lp_pricing.rs @@ -0,0 +1,47 @@ +use cosmwasm_std::{Coin, Decimal, Decimal256, Deps, Empty, Env, Isqrt, Uint128, Uint256}; +use cw_storage_plus::Map; +use mars_types::oracle::{ActionKind, Config}; + +use crate::{ContractResult, PriceSourceChecked}; + +/// The calculation of the value of liquidity token, see: https://blog.alphafinance.io/fair-lp-token-pricing/. +/// This formulation avoids a potential sandwich attack that distorts asset prices by a flashloan. +/// +/// NOTE: Price sources must exist for both assets in the pool. +#[allow(clippy::too_many_arguments)] +pub fn query_xyk_lp_price>( + deps: &Deps, + env: &Env, + config: &Config, + price_sources: &Map<&str, P>, + kind: ActionKind, + coin0: Coin, + coin1: Coin, + total_shares: Uint128, +) -> ContractResult { + let coin0_price = price_sources.load(deps.storage, &coin0.denom)?.query_price( + deps, + env, + &coin0.denom, + config, + price_sources, + kind.clone(), + )?; + let coin1_price = price_sources.load(deps.storage, &coin1.denom)?.query_price( + deps, + env, + &coin1.denom, + config, + price_sources, + kind, + )?; + + let coin0_value = Uint256::from_uint128(coin0.amount) * Decimal256::from(coin0_price); + let coin1_value = Uint256::from_uint128(coin1.amount) * Decimal256::from(coin1_price); + + // We need to use Uint256, because Uint128 * Uint128 may overflow the 128-bit limit + let pool_value_u256 = Uint256::from(2u8) * (coin0_value * coin1_value).isqrt(); + let pool_value_u128 = Uint128::try_from(pool_value_u256)?; + + Ok(Decimal::from_ratio(pool_value_u128, total_shares)) +} diff --git a/contracts/oracle/osmosis/src/price_source.rs b/contracts/oracle/osmosis/src/price_source.rs index 6fd3911e..ca357f5c 100644 --- a/contracts/oracle/osmosis/src/price_source.rs +++ b/contracts/oracle/osmosis/src/price_source.rs @@ -1,11 +1,10 @@ use std::{cmp::min, fmt}; use cosmwasm_schema::cw_serde; -use cosmwasm_std::{ - Addr, Decimal, Decimal256, Deps, Empty, Env, Isqrt, QuerierWrapper, StdResult, Uint128, Uint256, -}; +use cosmwasm_std::{Addr, Decimal, Deps, Empty, Env, QuerierWrapper, StdResult}; use cw_storage_plus::Map; use mars_oracle_base::{ + lp_pricing, redemption_rate::{assert_rr_not_too_old, query_redemption_rate, RedemptionRate}, ContractError::{self, InvalidPrice}, ContractResult, PriceSourceChecked, PriceSourceUnchecked, @@ -585,10 +584,6 @@ impl OsmosisPriceSourceChecked { Ok(()) } - /// The calculation of the value of liquidity token, see: https://blog.alphafinance.io/fair-lp-token-pricing/. - /// This formulation avoids a potential sandwich attack that distorts asset prices by a flashloan. - /// - /// NOTE: Price sources must exist for both assets in the pool. fn query_xyk_liquidity_token_price( deps: &Deps, env: &Env, @@ -623,34 +618,18 @@ impl OsmosisPriceSourceChecked { let coin0 = Pool::unwrap_coin(&pool.pool_assets[0].token)?; let coin1 = Pool::unwrap_coin(&pool.pool_assets[1].token)?; + let total_shares = Pool::unwrap_coin(&pool.total_shares)?.amount; - let coin0_price = price_sources.load(deps.storage, &coin0.denom)?.query_price( - deps, - env, - &coin0.denom, - config, - price_sources, - kind.clone(), - )?; - let coin1_price = price_sources.load(deps.storage, &coin1.denom)?.query_price( + lp_pricing::query_xyk_lp_price( deps, env, - &coin1.denom, config, price_sources, kind, - )?; - - let coin0_value = Uint256::from_uint128(coin0.amount) * Decimal256::from(coin0_price); - let coin1_value = Uint256::from_uint128(coin1.amount) * Decimal256::from(coin1_price); - - // We need to use Uint256, because Uint128 * Uint128 may overflow the 128-bit limit - let pool_value_u256 = Uint256::from(2u8) * (coin0_value * coin1_value).isqrt(); - let pool_value_u128 = Uint128::try_from(pool_value_u256)?; - - let total_shares = Pool::unwrap_coin(&pool.total_shares)?.amount; - - Ok(Decimal::from_ratio(pool_value_u128, total_shares)) + coin0, + coin1, + total_shares, + ) } /// Staked asset price quoted in OSMO. diff --git a/contracts/oracle/wasm/Cargo.toml b/contracts/oracle/wasm/Cargo.toml index 764a9af4..f137afd4 100644 --- a/contracts/oracle/wasm/Cargo.toml +++ b/contracts/oracle/wasm/Cargo.toml @@ -21,7 +21,7 @@ library = [] osmosis-test-app = ["cw-it/osmosis-test-tube", "mars-testing/osmosis-test-tube"] [dependencies] -astroport = { workspace = true } +astroport-v5 = { workspace = true } cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } cw2 = { workspace = true } @@ -31,6 +31,8 @@ mars-types = { workspace = true } pyth-sdk-cw = { workspace = true } [dev-dependencies] +# TODO: use only astroport-v5 once cw-it depends on new astroport +astroport = { workspace = true } cosmwasm-schema = { workspace = true } cw-it = { workspace = true, features = ["astroport", "astroport-multi-test"] } ica-oracle = { workspace = true } diff --git a/contracts/oracle/wasm/src/contract.rs b/contracts/oracle/wasm/src/contract.rs index ae042f12..9033a09b 100644 --- a/contracts/oracle/wasm/src/contract.rs +++ b/contracts/oracle/wasm/src/contract.rs @@ -28,7 +28,7 @@ pub mod entry { use mars_types::oracle::{ExecuteMsg, InstantiateMsg, QueryMsg}; use super::*; - use crate::{state::ASTROPORT_FACTORY, WasmPriceSourceUnchecked}; + use crate::{migrations, state::ASTROPORT_FACTORY, WasmPriceSourceUnchecked}; #[entry_point] pub fn instantiate( @@ -81,7 +81,7 @@ pub mod entry { } #[entry_point] - pub fn migrate(_deps: DepsMut, _env: Env, _msg: Empty) -> ContractResult { - Ok(Response::default()) + pub fn migrate(deps: DepsMut, _env: Env, _msg: Empty) -> ContractResult { + migrations::v2_0_0::migrate(deps) } } diff --git a/contracts/oracle/wasm/src/helpers.rs b/contracts/oracle/wasm/src/helpers.rs index ef6fdd5c..7c03d912 100644 --- a/contracts/oracle/wasm/src/helpers.rs +++ b/contracts/oracle/wasm/src/helpers.rs @@ -1,12 +1,14 @@ use std::cmp::Ordering; -use astroport::{ +use astroport_v5::{ asset::{Asset, AssetInfo, PairInfo}, - pair::{CumulativePricesResponse, QueryMsg as PairQueryMsg}, + factory::PairType, + pair::{ConfigResponse, CumulativePricesResponse, PoolResponse, QueryMsg as PairQueryMsg}, + pair_concentrated::QueryMsg as ConcentratedPairQueryMsg, }; use cosmwasm_std::{ - to_json_binary, Addr, Decimal, Deps, Env, QuerierWrapper, QueryRequest, StdResult, Uint128, - WasmQuery, + ensure_eq, to_json_binary, Addr, Decimal, Decimal256, Deps, Env, QuerierWrapper, QueryRequest, + StdResult, Uint128, WasmQuery, }; use cw_storage_plus::Map; use mars_oracle_base::{ContractError, ContractResult, PriceSourceChecked}; @@ -22,6 +24,35 @@ pub fn query_astroport_pair_info( querier.query_wasm_smart(pair_contract, &PairQueryMsg::Pair {}) } +/// Queries the pair contract for the pool info. +pub fn query_astroport_pool( + querier: &QuerierWrapper, + pair_contract: impl Into, +) -> StdResult { + querier.query_wasm_smart(pair_contract, &PairQueryMsg::Pool {}) +} + +pub fn query_astroport_config( + querier: &QuerierWrapper, + pair_contract: impl Into, +) -> StdResult { + querier.query_wasm_smart(pair_contract, &PairQueryMsg::Config {}) +} + +pub fn query_astroport_pcl_curve_invariant( + querier: &QuerierWrapper, + pair_contract: impl Into, +) -> StdResult { + querier.query_wasm_smart(pair_contract, &ConcentratedPairQueryMsg::ComputeD {}) +} + +pub fn query_astroport_ss_curve_invariant( + querier: &QuerierWrapper, + pair_contract: impl Into, +) -> StdResult { + querier.query_wasm_smart(pair_contract, &PairQueryMsg::QueryComputeD {}) +} + /// Helper function to create an Astroport native token AssetInfo. pub fn astro_native_info(denom: &str) -> AssetInfo { AssetInfo::NativeToken { @@ -115,7 +146,7 @@ pub fn query_token_precision( astroport_factory: &Addr, denom: &str, ) -> ContractResult { - Ok(astroport::querier::query_token_precision( + Ok(astroport_v5::querier::query_token_precision( querier, &AssetInfo::NativeToken { denom: denom.to_string(), @@ -207,3 +238,43 @@ pub fn adjust_precision( .checked_div(Uint128::new(10_u128.pow((current_precision - new_precision) as u32)))?, }) } + +pub fn validate_astroport_lp_pool_for_type( + deps: &Deps, + pair_address: &Addr, + price_sources: &Map<&str, WasmPriceSourceChecked>, + pair_type: PairType, +) -> ContractResult<()> { + let pair_info = query_astroport_pair_info(&deps.querier, pair_address)?; + ensure_eq!( + pair_info.pair_type, + pair_type, + ContractError::InvalidPriceSource { + reason: format!( + "expecting pair {} to be {} pool; found {}", + pair_address, pair_type, pair_info.pair_type + ), + } + ); + + let pair_denoms = get_astroport_pair_denoms(&pair_info)?; + if pair_denoms.len() != 2 { + return Err(ContractError::InvalidPriceSource { + reason: format!( + "expecting pair {} to contain exactly two coins; found {}", + pair_address, + pair_denoms.len() + ), + }); + } + + for denom in pair_denoms.iter() { + if !price_sources.has(deps.storage, denom) { + return Err(ContractError::InvalidPriceSource { + reason: format!("missing price source for {}", denom), + }); + } + } + + Ok(()) +} diff --git a/contracts/oracle/wasm/src/lib.rs b/contracts/oracle/wasm/src/lib.rs index 41d79013..19184370 100644 --- a/contracts/oracle/wasm/src/lib.rs +++ b/contracts/oracle/wasm/src/lib.rs @@ -1,6 +1,8 @@ mod astroport_twap; pub mod contract; -mod helpers; +pub mod helpers; +pub mod lp_pricing; +pub mod migrations; mod price_source; mod state; diff --git a/contracts/oracle/wasm/src/lp_pricing.rs b/contracts/oracle/wasm/src/lp_pricing.rs new file mode 100644 index 00000000..68596a0c --- /dev/null +++ b/contracts/oracle/wasm/src/lp_pricing.rs @@ -0,0 +1,187 @@ +use std::{ + cmp::{max, min}, + str::FromStr, +}; + +use cosmwasm_std::{Coin, Decimal, Decimal256, Deps, Empty, Env, Uint128}; +use cw_storage_plus::Map; +use mars_oracle_base::{ContractResult, PriceSourceChecked}; +use mars_types::oracle::{ActionKind, Config}; + +use crate::{helpers::query_token_precision, state::ASTROPORT_FACTORY}; + +#[allow(clippy::too_many_arguments)] +pub fn query_pcl_lp_price>( + deps: &Deps, + env: &Env, + config: &Config, + price_sources: &Map<&str, P>, + kind: ActionKind, + coin0: Coin, + coin1: Coin, + total_shares: Uint128, + price_scale: Decimal, + curve_invariant: Decimal256, +) -> ContractResult { + let coin0_price = price_sources.load(deps.storage, &coin0.denom)?.query_price( + deps, + env, + &coin0.denom, + config, + price_sources, + kind.clone(), + )?; + + let coin1_price = price_sources.load(deps.storage, &coin1.denom)?.query_price( + deps, + env, + &coin1.denom, + config, + price_sources, + kind, + )?; + + let astroport_factory = ASTROPORT_FACTORY.load(deps.storage)?; + let coin0_decimals = query_token_precision(&deps.querier, &astroport_factory, &coin0.denom)?; + let coin1_decimals = query_token_precision(&deps.querier, &astroport_factory, &coin1.denom)?; + + compute_pcl_lp_price( + coin0_price, + coin1_price, + coin0_decimals, + coin1_decimals, + total_shares, + price_scale, + curve_invariant, + ) +} + +pub fn compute_pcl_lp_price( + coin0_price: Decimal, + coin1_price: Decimal, + coin0_decimals: u8, + coin1_decimals: u8, + total_shares: Uint128, + price_scale: Decimal, + curve_invariant: Decimal256, +) -> ContractResult { + // xcp represents the virtual value of the pool + // xcp = curve_invariant / (2 * sqrt(price_scale)) + let xcp = curve_invariant.checked_div( + Decimal256::from(price_scale).sqrt().checked_mul(Decimal256::from_str("2")?)?, + )?; + + // Virtual price represents the theoretic price of one share. This virtual price is used as input + // for the Curve V2 model to determine the modelled lp price. + // virtual_price = xcp / total_shares + let virtual_price = xcp.checked_div(Decimal256::from_ratio(total_shares, 1u128))?; + + // The curve_invariant is calculated with amounts scaled by Astroport, e.g. 1e18 ueth is stored as 1 eth. + // So we need to scale the prices accordingly, so that they represent the price of 1 whole unit. + let coin0_price_scaled = + Decimal256::from(coin0_price) * Decimal256::from_str("10")?.pow(coin0_decimals as u32); + let coin1_price_scaled = + Decimal256::from(coin1_price) * Decimal256::from_str("10")?.pow(coin1_decimals as u32); + + // LP price according to the model + // lp_price_model = 2 * virtual_price * sqrt(coin0_price * coin1_price) + let lp_price_model_256 = Decimal256::from_str("2")? + .checked_mul(virtual_price)? + .checked_mul(coin0_price_scaled.checked_mul(coin1_price_scaled)?.sqrt())?; + let lp_price_model = Decimal::try_from(lp_price_model_256)?; + + Ok(lp_price_model) +} + +#[allow(clippy::too_many_arguments)] +pub fn query_stable_swap_lp_price>( + deps: &Deps, + env: &Env, + config: &Config, + price_sources: &Map<&str, P>, + kind: ActionKind, + coin0: Coin, + coin1: Coin, + total_shares: Uint128, + curve_invariant: Uint128, +) -> ContractResult { + let coin0_price = price_sources.load(deps.storage, &coin0.denom)?.query_price( + deps, + env, + &coin0.denom, + config, + price_sources, + kind.clone(), + )?; + + let coin1_price = price_sources.load(deps.storage, &coin1.denom)?.query_price( + deps, + env, + &coin1.denom, + config, + price_sources, + kind, + )?; + + let astroport_factory = ASTROPORT_FACTORY.load(deps.storage)?; + let coin0_decimals = query_token_precision(&deps.querier, &astroport_factory, &coin0.denom)?; + let coin1_decimals = query_token_precision(&deps.querier, &astroport_factory, &coin1.denom)?; + + compute_ss_lp_price( + coin0_price, + coin1_price, + coin0_decimals, + coin1_decimals, + total_shares, + curve_invariant, + ) +} + +pub fn compute_ss_lp_price( + coin0_price: Decimal, + coin1_price: Decimal, + coin0_decimals: u8, + coin1_decimals: u8, + total_shares: Uint128, + curve_invariant: Uint128, +) -> ContractResult { + // StableSwap pool lp price calculation: + // virtual_price = curve_invariant / total_shares + // lp_price = virtual_price * min(coin0_price, coin1_price) + let virtual_price = Decimal::checked_from_ratio(curve_invariant, total_shares)?; + + // The curve_invariant takes on the precision of the asset with the greatest precision. + // https://github.dev/astroport-fi/astroport-core/blob/a0a71af801be3f72c64b81f798e1b0805cf0f594/contracts/pair_stable/src/contract.rs#L91 + // E.g. a stable pool with asset1_decimals = 6 and asset2_decimals = 18 will have a + // curve_invariant with 18 decimals. + let greatest_precision = max(coin0_decimals, coin1_decimals); + + // 1 BTC = 65 000 USD + // + // We have to provide prices for the whole unit: + // 10^8 ubtc = 65 * 10^9 uusd + // 1 ubtc = 65 * 10^9 / 10^8 uusd + // 1 ubtc = 650 uusd + // If we multiply by BTC decimals: + // 1 BTC = 650 * 10^8 uusd + // 1 BTC = 65 * 10^9 uusd + let coin0_price_scaled = + Decimal256::from(coin0_price) * Decimal256::from_str("10")?.pow(coin0_decimals as u32); + let coin1_price_scaled = + Decimal256::from(coin1_price) * Decimal256::from_str("10")?.pow(coin1_decimals as u32); + + let lp_price_256_scaled = + Decimal256::from(virtual_price).checked_mul(min(coin0_price_scaled, coin1_price_scaled))?; + + // https://github.dev/astroport-fi/astroport-core/blob/a0a71af801be3f72c64b81f798e1b0805cf0f594/packages/astroport/src/asset.rs#L836 + // + // The price needs to be adjusted with the greatest_precision to denominate correctly in + // uusd per share. Since the prices are already scaled to accompany the asset precisions, + // we can ignore the `self.decimals()` (in the linked Astroport code) of the calculation and + // just divide by the greatest precision. + let lp_price_256 = lp_price_256_scaled + .checked_div(Decimal256::from_str("10")?.pow(greatest_precision as u32))?; + let lp_price = Decimal::try_from(lp_price_256)?; + + Ok(lp_price) +} diff --git a/contracts/oracle/wasm/src/migrations/mod.rs b/contracts/oracle/wasm/src/migrations/mod.rs new file mode 100644 index 00000000..7592b6f1 --- /dev/null +++ b/contracts/oracle/wasm/src/migrations/mod.rs @@ -0,0 +1 @@ +pub mod v2_0_0; diff --git a/contracts/red-bank/src/migrations/v2_0_1.rs b/contracts/oracle/wasm/src/migrations/v2_0_0.rs similarity index 82% rename from contracts/red-bank/src/migrations/v2_0_1.rs rename to contracts/oracle/wasm/src/migrations/v2_0_0.rs index 777b1e36..74387cf6 100644 --- a/contracts/red-bank/src/migrations/v2_0_1.rs +++ b/contracts/oracle/wasm/src/migrations/v2_0_0.rs @@ -1,12 +1,10 @@ use cosmwasm_std::{DepsMut, Response}; use cw2::{assert_contract_version, set_contract_version}; +use mars_oracle_base::ContractError; -use crate::{ - contract::{CONTRACT_NAME, CONTRACT_VERSION}, - error::ContractError, -}; +use crate::contract::{CONTRACT_NAME, CONTRACT_VERSION}; -const FROM_VERSION: &str = "2.0.0"; +const FROM_VERSION: &str = "1.3.0"; pub fn migrate(deps: DepsMut) -> Result { // make sure we're migrating the correct contract and from the correct version diff --git a/contracts/oracle/wasm/src/price_source.rs b/contracts/oracle/wasm/src/price_source.rs index 149a7d4c..9cd247b6 100644 --- a/contracts/oracle/wasm/src/price_source.rs +++ b/contracts/oracle/wasm/src/price_source.rs @@ -3,11 +3,15 @@ use std::{ fmt, }; -use astroport::{asset::PairInfo, factory::PairType, pair::TWAP_PRECISION, querier::simulate}; +use astroport_v5::{ + asset::PairInfo, factory::PairType, pair::TWAP_PRECISION, + pair_concentrated::ConcentratedPoolParams, querier::simulate, +}; use cosmwasm_schema::cw_serde; -use cosmwasm_std::{Addr, Decimal, Deps, Empty, Env, Uint128}; +use cosmwasm_std::{from_json, Addr, Decimal, Deps, Empty, Env, Uint128}; use cw_storage_plus::Map; use mars_oracle_base::{ + lp_pricing, redemption_rate::{assert_rr_not_too_old, query_redemption_rate, RedemptionRate}, ContractError, ContractResult, PriceSourceChecked, PriceSourceUnchecked, }; @@ -17,10 +21,13 @@ use pyth_sdk_cw::PriceIdentifier; use crate::{ helpers::{ adjust_precision, astro_native_asset, get_astroport_pair_denoms, - get_other_astroport_pair_denom, normalize_price, period_diff, - query_astroport_cumulative_price, query_astroport_pair_info, query_token_precision, - validate_astroport_pair_price_source, + get_other_astroport_pair_denom, normalize_price, period_diff, query_astroport_config, + query_astroport_cumulative_price, query_astroport_pair_info, + query_astroport_pcl_curve_invariant, query_astroport_pool, + query_astroport_ss_curve_invariant, query_token_precision, + validate_astroport_lp_pool_for_type, validate_astroport_pair_price_source, }, + lp_pricing::{query_pcl_lp_price, query_stable_swap_lp_price}, state::{ASTROPORT_FACTORY, ASTROPORT_TWAP_SNAPSHOTS}, }; @@ -115,6 +122,19 @@ pub enum WasmPriceSource { /// Params to query redemption rate redemption_rate: RedemptionRate, }, + /// Astroport LP token (of an XYK pool) price quoted in uusd + XykLiquidityToken { + /// Address of the Astroport pair + pair_address: A, + }, + PclLiquidityToken { + /// Address of the Astroport pair + pair_address: A, + }, + SsLiquidityToken { + /// Address of the Astroport pair + pair_address: A, + }, } #[cw_serde] @@ -170,6 +190,9 @@ impl fmt::Display for WasmPriceSourceChecked { } = redemption_rate; format!("lsd:{transitive_denom}:{pair_address}:{window_size}:{tolerance}:{contract_addr}:{max_staleness}") }, + WasmPriceSource::XykLiquidityToken { pair_address } => format!("xyk_liquidity_token:{pair_address}"), + WasmPriceSource::PclLiquidityToken { pair_address } => format!("pcl_liquidity_token:{pair_address}"), + WasmPriceSource::SsLiquidityToken { pair_address } => format!("stable_swap_liquidity_token:{pair_address}"), }; write!(f, "{label}") } @@ -311,6 +334,51 @@ impl PriceSourceUnchecked for WasmPriceSourceUnch }, }) } + WasmPriceSource::XykLiquidityToken { + pair_address, + } => { + let pair_address = deps.api.addr_validate(&pair_address)?; + validate_astroport_lp_pool_for_type( + deps, + &pair_address, + price_sources, + PairType::Xyk {}, + )?; + + Ok(WasmPriceSourceChecked::XykLiquidityToken { + pair_address, + }) + } + WasmPriceSource::PclLiquidityToken { + pair_address, + } => { + let pair_address = deps.api.addr_validate(&pair_address)?; + validate_astroport_lp_pool_for_type( + deps, + &pair_address, + price_sources, + PairType::Custom("concentrated".to_string()), + )?; + + Ok(WasmPriceSourceChecked::PclLiquidityToken { + pair_address, + }) + } + WasmPriceSource::SsLiquidityToken { + pair_address, + } => { + let pair_address = deps.api.addr_validate(&pair_address)?; + validate_astroport_lp_pool_for_type( + deps, + &pair_address, + price_sources, + PairType::Stable {}, + )?; + + Ok(WasmPriceSourceChecked::SsLiquidityToken { + pair_address, + }) + } } } } @@ -392,6 +460,31 @@ impl PriceSourceChecked for WasmPriceSourceChecked { price_sources, kind, ), + WasmPriceSource::XykLiquidityToken { + pair_address, + } => query_xyk_liquidity_token_price( + deps, + env, + config, + price_sources, + pair_address, + kind, + ), + WasmPriceSource::PclLiquidityToken { + pair_address, + } => query_pcl_liquidity_token_price( + deps, + env, + config, + price_sources, + pair_address, + kind, + ), + WasmPriceSource::SsLiquidityToken { + pair_address, + } => { + query_ss_liquidity_token_price(deps, env, config, price_sources, pair_address, kind) + } } } } @@ -643,6 +736,95 @@ fn query_lsd_price( min_price.checked_mul(transitive_price).map_err(Into::into) } +fn query_xyk_liquidity_token_price( + deps: &Deps, + env: &Env, + config: &Config, + price_sources: &Map<&str, WasmPriceSourceChecked>, + pair_address: &Addr, + kind: ActionKind, +) -> ContractResult { + // XYK pool asserted during price source creation + let pool = query_astroport_pool(&deps.querier, pair_address)?; + + let coin0 = pool.assets[0].as_coin()?; + let coin1 = pool.assets[1].as_coin()?; + + lp_pricing::query_xyk_lp_price( + deps, + env, + config, + price_sources, + kind, + coin0, + coin1, + pool.total_share, + ) +} + +fn query_pcl_liquidity_token_price( + deps: &Deps, + env: &Env, + config: &Config, + price_sources: &Map<&str, WasmPriceSourceChecked>, + pair_address: &Addr, + kind: ActionKind, +) -> ContractResult { + // PCL pool asserted during price source creation + let pool = query_astroport_pool(&deps.querier, pair_address)?; + let coin0 = pool.assets[0].as_coin()?; + let coin1 = pool.assets[1].as_coin()?; + + let pool_config = query_astroport_config(&deps.querier, pair_address)?; + let pool_params = match pool_config.params { + Some(params) => from_json::(params)?, + None => return Err(ContractError::MissingAstroportPoolParams {}), + }; + + let curve_invariant = query_astroport_pcl_curve_invariant(&deps.querier, pair_address)?; + + query_pcl_lp_price( + deps, + env, + config, + price_sources, + kind, + coin0, + coin1, + pool.total_share, + pool_params.price_scale, + curve_invariant, + ) +} + +fn query_ss_liquidity_token_price( + deps: &Deps, + env: &Env, + config: &Config, + price_sources: &Map<&str, WasmPriceSourceChecked>, + pair_address: &Addr, + kind: ActionKind, +) -> ContractResult { + // StableSwap pool asserted during price source creation + let pool = query_astroport_pool(&deps.querier, pair_address)?; + let coin0 = pool.assets[0].as_coin()?; + let coin1 = pool.assets[1].as_coin()?; + + let curve_invariant = query_astroport_ss_curve_invariant(&deps.querier, pair_address)?; + + query_stable_swap_lp_price( + deps, + env, + config, + price_sources, + kind, + coin0, + coin1, + pool.total_share, + curve_invariant, + ) +} + #[cfg(test)] mod tests { use std::str::FromStr; diff --git a/contracts/oracle/wasm/tests/files/PCL pricing test cases.xlsx b/contracts/oracle/wasm/tests/files/PCL pricing test cases.xlsx new file mode 100644 index 00000000..fb00712d Binary files /dev/null and b/contracts/oracle/wasm/tests/files/PCL pricing test cases.xlsx differ diff --git a/contracts/oracle/wasm/tests/files/SS pricing test cases.xlsx b/contracts/oracle/wasm/tests/files/SS pricing test cases.xlsx new file mode 100644 index 00000000..be86278c Binary files /dev/null and b/contracts/oracle/wasm/tests/files/SS pricing test cases.xlsx differ diff --git a/contracts/oracle/wasm/tests/tests/mod.rs b/contracts/oracle/wasm/tests/tests/mod.rs index 2d330337..3c9d1074 100644 --- a/contracts/oracle/wasm/tests/tests/mod.rs +++ b/contracts/oracle/wasm/tests/tests/mod.rs @@ -1,6 +1,6 @@ mod helpers; mod prop_tests; -mod test_migrate; +mod test_migration_v2; mod test_price_source; mod test_update_admin; diff --git a/contracts/oracle/wasm/tests/tests/test_migrate.rs b/contracts/oracle/wasm/tests/tests/test_migrate.rs deleted file mode 100644 index df4149cd..00000000 --- a/contracts/oracle/wasm/tests/tests/test_migrate.rs +++ /dev/null @@ -1,36 +0,0 @@ -use std::collections::HashMap; - -use cosmwasm_std::{to_json_binary, CosmosMsg, Empty, WasmMsg}; -use cw_it::{ - osmosis_std::types::cosmwasm::wasm::v1::MsgMigrateContractResponse, test_tube::Runner, - traits::CwItRunner, -}; -use mars_oracle_wasm::contract::CONTRACT_NAME; -use mars_testing::{ - test_runner::get_test_runner, - wasm_oracle::{get_contracts, get_wasm_oracle_contract, WasmOracleTestRobot}, -}; - -#[test] -fn test_migrate_wasm_oracle() { - let owned_runner = get_test_runner(); - let runner = owned_runner.as_ref(); - let admin = &runner.init_default_account().unwrap(); - let robot = WasmOracleTestRobot::new(&runner, get_contracts(&runner), admin, None); - - let contract = get_wasm_oracle_contract(&runner); - let contract_map = HashMap::from([(CONTRACT_NAME.to_string(), contract)]); - let code_ids = cw_it::helpers::upload_wasm_files(&runner, admin, contract_map).unwrap(); - let new_code_id = code_ids[CONTRACT_NAME]; - - runner - .execute_cosmos_msgs::( - &[CosmosMsg::Wasm(WasmMsg::Migrate { - contract_addr: robot.mars_oracle_contract_addr, - new_code_id, - msg: to_json_binary(&Empty {}).unwrap(), - })], - admin, - ) - .unwrap(); -} diff --git a/contracts/oracle/wasm/tests/tests/test_migration_v2.rs b/contracts/oracle/wasm/tests/tests/test_migration_v2.rs new file mode 100644 index 00000000..324e5c7a --- /dev/null +++ b/contracts/oracle/wasm/tests/tests/test_migration_v2.rs @@ -0,0 +1,61 @@ +use cosmwasm_std::{attr, testing::mock_env, Empty, Event}; +use cw2::{ContractVersion, VersionError}; +use mars_oracle_base::ContractError; +use mars_oracle_wasm::contract::entry::migrate; +use mars_testing::mock_dependencies; + +#[test] +fn wrong_contract_name() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.3.0").unwrap(); + + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); + + assert_eq!( + err, + ContractError::Version(VersionError::WrongContract { + expected: "crates.io:mars-oracle-wasm".to_string(), + found: "contract_xyz".to_string() + }) + ); +} + +#[test] +fn wrong_contract_version() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-oracle-wasm", "4.1.0") + .unwrap(); + + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); + + assert_eq!( + err, + ContractError::Version(VersionError::WrongVersion { + expected: "1.3.0".to_string(), + found: "4.1.0".to_string() + }) + ); +} + +#[test] +fn successful_migration() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-oracle-wasm", "1.3.0") + .unwrap(); + + let res = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap(); + + assert_eq!(res.messages, vec![]); + assert_eq!(res.events, vec![] as Vec); + assert!(res.data.is_none()); + assert_eq!( + res.attributes, + vec![attr("action", "migrate"), attr("from_version", "1.3.0"), attr("to_version", "2.0.0")] + ); + + let new_contract_version = ContractVersion { + contract: "crates.io:mars-oracle-wasm".to_string(), + version: "2.0.0".to_string(), + }; + assert_eq!(cw2::get_contract_version(deps.as_ref().storage).unwrap(), new_contract_version); +} diff --git a/contracts/oracle/wasm/tests/tests/test_price_source.rs b/contracts/oracle/wasm/tests/tests/test_price_source.rs index 1c69de9d..a93f3dec 100644 --- a/contracts/oracle/wasm/tests/tests/test_price_source.rs +++ b/contracts/oracle/wasm/tests/tests/test_price_source.rs @@ -1,10 +1,10 @@ use std::str::FromStr; -use astroport::factory::PairType; +use astroport::{factory::PairType, pair_concentrated::ConcentratedPoolParams}; use cosmwasm_std::{ coin, from_json, testing::{mock_dependencies, mock_env}, - Addr, Decimal, Empty, Uint128, + Addr, Decimal, Decimal256, Empty, Isqrt, Uint128, Uint256, }; use cw_it::{ astroport::{ @@ -28,6 +28,7 @@ const ONE: Decimal = Decimal::one(); const TWO: Decimal = Decimal::new(Uint128::new(2_000_000_000_000_000_000u128)); const DEFAULT_LIQ: [u128; 2] = [10000000000000000000000u128, 1000000000000000000000u128]; +use mars_oracle_wasm::lp_pricing::{compute_pcl_lp_price, compute_ss_lp_price}; use mars_testing::{ mock_env_at_block_time, mock_info, test_runner::get_test_runner, @@ -118,6 +119,19 @@ fn display_lsd_price_source() { assert_eq!(ps.to_string(), "lsd:other_denom:astro_addr:101:16:redemption_addr:1234") } +#[test] +fn display_lp_token_price_source() { + let ps = WasmPriceSourceChecked::XykLiquidityToken { + pair_address: Addr::unchecked( + "neutron1e22zh5p8meddxjclevuhjmfj69jxfsa8uu3jvht72rv9d8lkhves6t8veq", + ), + }; + assert_eq!( + ps.to_string(), + "xyk_liquidity_token:neutron1e22zh5p8meddxjclevuhjmfj69jxfsa8uu3jvht72rv9d8lkhves6t8veq" + ) +} + #[test] fn validate_fixed_price_source() { let ps = WasmPriceSource::Fixed { @@ -909,3 +923,255 @@ pub fn validate_and_query_lsd_price_source( .assert_redemption_rate(primary_ibc_denom, rr_value) .assert_price_almost_equal(primary_ibc_denom, expected_price, Decimal::percent(1)); } + +#[test_case(PairType::Xyk {}, &["uatom","untrn"], Some(Decimal::from_str("8.86506356").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [1171210862745u128, 12117922358503u128], &[6,6]; "XYK, 6:6 decimals")] +#[test_case(PairType::Xyk {}, &["untrn","ueth"], Some(Decimal::from_str("0.85676231").unwrap()), Some(Decimal::from_str("0.000000003192778061").unwrap()), [291397962796u128, 65345494060528260316u128], &[6,18]; "XYK, 6:18 decimals")] +#[test_case(PairType::Xyk {}, &["ueth","udydx"], Some(Decimal::from_str("0.000000003195385").unwrap()), Some(Decimal::from_str("0.00000000000238175").unwrap()), DEFAULT_LIQ, &[18,18]; "XYK, 18:18 decimals")] +#[test_case(PairType::Stable { }, &["utia","ustia"], Some(Decimal::one()), Some(Decimal::one()), DEFAULT_LIQ, &[6,6] => panics "Invalid price source: expecting pair contract14 to be xyk pool; found stable"; "XYK required, found StableSwap")] +#[test_case(PairType::Custom("concentrated".to_string()), &["utia","ustia"], Some(Decimal::one()), Some(Decimal::one()), [145692686804, 175998046105], &[6,6] => panics "Invalid price source: expecting pair contract14 to be xyk pool; found custom-concentrated"; "XYK required, found PCL")] +#[test_case(PairType::Xyk {}, &["uatom","untrn"], None, None, DEFAULT_LIQ, &[6,6] => panics "Invalid price source: missing price source for uatom"; "XYK, missing price source for both assets")] +#[test_case(PairType::Xyk {}, &["uatom","untrn"], None, Some(Decimal::one()), DEFAULT_LIQ, &[6,6] => panics "Invalid price source: missing price source for uatom"; "XYK, missing price source for first asset")] +#[test_case(PairType::Xyk {}, &["uatom","untrn"], Some(Decimal::one()), None, DEFAULT_LIQ, &[6,6] => panics "Invalid price source: missing price source for untrn"; "XYK, missing price source for second asset")] +pub fn test_validate_and_query_astroport_xyk_lp_price_source( + pair_type: PairType, + pair_denoms: &[&str; 2], + primary_asset_price: Option, + other_asset_price: Option, + initial_liq: [u128; 2], + decimals: &[u8; 2], +) { + let primary_denom = pair_denoms[0]; + let other_denom = pair_denoms[1]; + let lp_denom = format!("pair:{}-{}", pair_denoms[0], pair_denoms[1]); + + let owned_runner = get_test_runner(); + let runner = owned_runner.as_ref(); + let admin = &runner + .init_account(&[ + coin(DEFAULT_COIN_AMOUNT, primary_denom), + coin(DEFAULT_COIN_AMOUNT, other_denom), + ]) + .unwrap(); + let robot = WasmOracleTestRobot::new(&runner, get_contracts(&runner), admin, Some("uusd")); + + let (pair_address, _lp_token_addr) = robot.create_astroport_pair( + pair_type.clone(), + &[native_info(primary_denom), native_info(other_denom)], + astro_init_params(&pair_type), + admin, + Some(&initial_liq), + Some(decimals), + ); + + let pool = robot.query_pool(&pair_address); + let coin0 = pool.assets[0].to_coin().unwrap(); + let coin1 = pool.assets[1].to_coin().unwrap(); + let mut coin0_value = Uint256::zero(); + let mut coin1_value = Uint256::zero(); + + let mut other_assets_price_sources = vec![]; + if let Some(price) = primary_asset_price { + other_assets_price_sources.push((primary_denom, fixed_source(price))); + + coin0_value = Uint256::from_uint128(coin0.amount) * Decimal256::from(price); + } + if let Some(price) = other_asset_price { + other_assets_price_sources.push((other_denom, fixed_source(price))); + + coin1_value = Uint256::from_uint128(coin1.amount) * Decimal256::from(price); + } + + // Calculate expected price + let pool_value_u256 = Uint256::from(2u8) * (coin0_value * coin1_value).isqrt(); + let pool_value_u128 = Uint128::try_from(pool_value_u256).unwrap(); + let expected_price = Decimal::from_ratio(pool_value_u128, pool.total_share); + + let price_source = WasmPriceSourceUnchecked::XykLiquidityToken { + pair_address: pair_address.clone(), + }; + + // Set price sources and assert that the price is as expected + robot + .set_price_sources(other_assets_price_sources, admin) + .set_price_source(&lp_denom, price_source.clone(), admin) + .assert_price_source(&lp_denom, price_source) + .assert_price_almost_equal(&lp_denom, expected_price, Decimal::percent(1)); +} + +#[test_case(PairType::Custom("concentrated".to_string()), &["uatom","untrn"], Some(Decimal::from_str("8.86506356").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [1171210862745u128, 12117922358503u128], &[6,6], Some(Decimal::from_str("5.88585833583172000").unwrap()); "PCL, 6:6 decimals")] +#[test_case(PairType::Custom("concentrated".to_string()), &["uatom","untrn"], Some(Decimal::from_str("821123123435412349.73564").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [923752936745723845u128, 12117922358503u128], &[6,6], Some(Decimal::from_str("1791319358").unwrap()); "PCL, [6, 6] decimals Uint128 overflow)")] +#[test_case(PairType::Custom("concentrated".to_string()), &["uatom","untrn"], Some(Decimal::from_str("0.000000000585").unwrap()), Some(Decimal::from_str("0.0000000097696221").unwrap()), [34567u128, 67891u128], &[6,6], Some(Decimal::from_str("0.00000000478137514").unwrap()); "PCL, [6, 6] decimals, rounding small numbers)")] +#[test_case(PairType::Custom("concentrated".to_string()), &["udydx","untrn"], Some(Decimal::from_str("3000").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [92347562936745723845u128, 12117922358503u128], &[18,6], Some(Decimal::from_str("108275327").unwrap()); "PCL, [18, 6] decimals")] +#[test_case(PairType::Custom("concentrated".to_string()), &["udydx","ueth"], Some(Decimal::from_str("0.000000000002095907").unwrap()), Some(Decimal::from_str("0.000000003705405005").unwrap()), [230049283723446123784938u128, 134273643746123784938u128], &[18,18], Some(Decimal::from_str("176.25191391713600000").unwrap()); "PCL, [18, 18] decimals")] +#[test_case(PairType::Xyk{}, &["uatom","untrn"], Some(Decimal::from_str("8.86506356").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [1171210862745u128, 12117922358503u128], &[6,6], None => panics "Invalid price source: expecting pair contract14 to be custom-concentrated pool; found xyk"; "PCL required, found XYK")] +#[test_case(PairType::Stable{}, &["uatom","untrn"], Some(Decimal::from_str("8.86506356").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [1171210862745u128, 12117922358503u128], &[6,6], None => panics "Invalid price source: expecting pair contract14 to be custom-concentrated pool; found stable"; "PCL required, found Stable")] +#[test_case(PairType::Custom("concentrated".to_string()), &["uatom","untrn"], None, None, [1171210862745u128, 1171210862745u128], &[6,6], None => panics "Invalid price source: missing price source for uatom"; "PCL, missing price source for both assets")] +#[test_case(PairType::Custom("concentrated".to_string()), &["uatom","untrn"], None, Some(Decimal::one()), [1171210862745u128, 1171210862745u128], &[6,6], None => panics "Invalid price source: missing price source for uatom"; "PCL, missing price source for first asset")] +#[test_case(PairType::Custom("concentrated".to_string()), &["uatom","untrn"], Some(Decimal::one()), None, [1171210862745u128, 1171210862745u128], &[6,6], None => panics "Invalid price source: missing price source for untrn"; "PCL, missing price source for second asset")] +pub fn test_validate_and_query_astroport_pcl_lp_price_source( + pair_type: PairType, + pair_denoms: &[&str; 2], + coin0_price: Option, + coin1_price: Option, + initial_liq: [u128; 2], + decimals: &[u8; 2], + expected_lp_price: Option, +) { + let primary_denom = pair_denoms[0]; + let secondary_denom = pair_denoms[1]; + let lp_denom = format!("pair:{}-{}", pair_denoms[0], pair_denoms[1]); + + let owned_runner = get_test_runner(); + let runner = owned_runner.as_ref(); + let admin = &runner + .init_account(&[ + coin(DEFAULT_COIN_AMOUNT, primary_denom), + coin(DEFAULT_COIN_AMOUNT, secondary_denom), + ]) + .unwrap(); + + let robot = WasmOracleTestRobot::new(&runner, get_contracts(&runner), admin, Some("uusd")); + + let (pair_address, _lp_token_addr) = robot.create_astroport_pair( + pair_type.clone(), + &[native_info(primary_denom), native_info(secondary_denom)], + astro_init_params(&pair_type), + admin, + Some(&initial_liq), + Some(decimals), + ); + + let mut other_assets_price_sources = vec![]; + if let Some(price) = coin0_price { + other_assets_price_sources.push((primary_denom, fixed_source(price))); + } + if let Some(price) = coin1_price { + other_assets_price_sources.push((secondary_denom, fixed_source(price))); + } + + let price_source = WasmPriceSourceUnchecked::PclLiquidityToken { + pair_address: pair_address.clone(), + }; + + // Validate the price sources + robot + .set_price_sources(other_assets_price_sources.clone(), admin) + .set_price_source(&lp_denom, price_source.clone(), admin) + .assert_price_source(&lp_denom, price_source.clone()); + + let pool = robot.query_pool(&pair_address); + let curve_invariant = robot.query_pcl_curve_invariant(&pair_address); + let pool_config = robot.query_astroport_config(&pair_address); + + let pool_params = from_json::(pool_config.params.unwrap()).unwrap(); + + let mut lp_token_price = Decimal::zero(); + + // Prices have been validated before, so both are defined + if let (Some(price0), Some(price1)) = (coin0_price, coin1_price) { + lp_token_price = compute_pcl_lp_price( + price0, + price1, + decimals[0], + decimals[1], + pool.total_share, + pool_params.price_scale, + curve_invariant, + ) + .unwrap(); + }; + + // Validate the queried price with the expected price + robot.assert_price(&lp_denom, lp_token_price); + + if let Some(expected_lp_price) = expected_lp_price { + robot.assert_prices_almost_equal(lp_token_price, expected_lp_price, Decimal::percent(1)); + } +} + +#[test_case(PairType::Stable{}, &["uusdc","uusdt"], Some(Decimal::from_str("0.9999").unwrap()), Some(Decimal::from_str("1.00001").unwrap()), [10912049231u128, 11242686517u128], &[6,6], Some(Decimal::from_str("1.00155249644").unwrap()); "SS, 6:6 decimals")] +#[test_case(PairType::Stable{}, &["uatom","untrn"], Some(Decimal::from_str("821123123432349.73564").unwrap()), Some(Decimal::from_str("721123123432349.73564").unwrap()), [923752936745723845u128, 12117922358503u128], &[6,6], Some(Decimal::from_str("721123123432349.0000000000000000").unwrap()); "SS, [6, 6] decimals Uint128 overflow)")] +#[test_case(PairType::Stable{}, &["uatom","untrn"], Some(Decimal::from_str("0.000000000585").unwrap()), Some(Decimal::from_str("0.0000000097696221").unwrap()), [34567u128, 67891u128], &[6,6], Some(Decimal::from_str("0.0000000005850000").unwrap()); "PCL, [6, 6] decimals, rounding small numbers)")] +#[test_case(PairType::Stable{}, &["uneth","ueth"], Some(Decimal::from_str("3605.405005").unwrap()), Some(Decimal::from_str("0.00000000370540501").unwrap()), [1909955u128, 1715278424796108660u128], &[6,18], Some(Decimal::from_str("0.0000000036054050").unwrap()); "PCL, [6, 18] decimals")] +#[test_case(PairType::Stable{}, &["usteth","ueth"], Some(Decimal::from_str("0.00000000370240501").unwrap()), Some(Decimal::from_str("0.00000000370540501").unwrap()), [1909955195744952147u128, 1715278424796108660u128], &[18,18], Some(Decimal::from_str("0.0000000037024050").unwrap()); "SS, [18, 18] decimals")] +#[test_case(PairType::Xyk{}, &["uatom","untrn"], Some(Decimal::from_str("8.86506356").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [1171210862745u128, 12117922358503u128], &[6,6], None => panics "Invalid price source: expecting pair contract14 to be stable pool; found xyk"; "SS required, found XYK")] +#[test_case(PairType::Custom("concentrated".to_string()), &["uatom","untrn"], Some(Decimal::from_str("8.86506356").unwrap()), Some(Decimal::from_str("0.97696221").unwrap()), [1171210862745u128, 12117922358503u128], &[6,6], None => panics "Invalid price source: expecting pair contract14 to be stable pool; found custom-concentrated"; "SS required, found PCL")] +#[test_case(PairType::Stable{}, &["uatom","untrn"], None, None, [1171210862745u128, 1171210862745u128], &[6,6], None => panics "Invalid price source: missing price source for uatom"; "SS, missing price source for both assets")] +#[test_case(PairType::Stable{}, &["uatom","untrn"], None, Some(Decimal::one()), [1171210862745u128, 1171210862745u128], &[6,6], None => panics "Invalid price source: missing price source for uatom"; "SS, missing price source for first asset")] +#[test_case(PairType::Stable{}, &["uatom","untrn"], Some(Decimal::one()), None, [1171210862745u128, 1171210862745u128], &[6,6], None => panics "Invalid price source: missing price source for untrn"; "SS, missing price source for second asset")] +pub fn test_validate_and_query_astroport_ss_lp_price_source( + pair_type: PairType, + pair_denoms: &[&str; 2], + coin0_price: Option, + coin1_price: Option, + initial_liq: [u128; 2], + decimals: &[u8; 2], + expected_price: Option, +) { + let primary_denom = pair_denoms[0]; + let secondary_denom = pair_denoms[1]; + let lp_denom = format!("pair:{}-{}", pair_denoms[0], pair_denoms[1]); + + let owned_runner = get_test_runner(); + let runner = owned_runner.as_ref(); + let admin = &runner + .init_account(&[ + coin(DEFAULT_COIN_AMOUNT, primary_denom), + coin(DEFAULT_COIN_AMOUNT, secondary_denom), + ]) + .unwrap(); + + let robot = WasmOracleTestRobot::new(&runner, get_contracts(&runner), admin, Some("uusd")); + + let (pair_address, _lp_token_addr) = robot.create_astroport_pair( + pair_type.clone(), + &[native_info(primary_denom), native_info(secondary_denom)], + astro_init_params(&pair_type), + admin, + Some(&initial_liq), + Some(decimals), + ); + + let mut other_assets_price_sources = vec![]; + if let Some(price) = coin0_price { + other_assets_price_sources.push((primary_denom, fixed_source(price))); + } + if let Some(price) = coin1_price { + other_assets_price_sources.push((secondary_denom, fixed_source(price))); + } + + let price_source = WasmPriceSourceUnchecked::SsLiquidityToken { + pair_address: pair_address.clone(), + }; + + // Validate the price sources + robot + .set_price_sources(other_assets_price_sources.clone(), admin) + .set_price_source(&lp_denom, price_source.clone(), admin) + .assert_price_source(&lp_denom, price_source.clone()); + + let pool = robot.query_pool(&pair_address); + let curve_invariant = robot.query_ss_curve_invariant(&pair_address); + + let mut lp_token_price = Decimal::zero(); + + // Prices have been validated before, so both are defined + if let (Some(price0), Some(price1)) = (coin0_price, coin1_price) { + lp_token_price = compute_ss_lp_price( + price0, + price1, + decimals[0], + decimals[1], + pool.total_share, + curve_invariant, + ) + .unwrap(); + }; + + // Validate the queried price with the expected price + robot.assert_price(&lp_denom, lp_token_price); + + if let Some(expected_price) = expected_price { + robot.assert_prices_almost_equal(lp_token_price, expected_price, Decimal::percent(1)); + } +} diff --git a/contracts/params/Cargo.toml b/contracts/params/Cargo.toml index dd9c6c26..8e7a0a59 100644 --- a/contracts/params/Cargo.toml +++ b/contracts/params/Cargo.toml @@ -21,6 +21,7 @@ backtraces = ["cosmwasm-std/backtraces"] library = [] [dependencies] +astroport-v5 = { workspace = true } cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } cw2 = { workspace = true } diff --git a/contracts/params/src/contract.rs b/contracts/params/src/contract.rs index 62683fbd..17ac650c 100644 --- a/contracts/params/src/contract.rs +++ b/contracts/params/src/contract.rs @@ -17,8 +17,8 @@ use crate::{ }, migrations, query::{ - query_all_asset_params, query_all_vault_configs, query_all_vault_configs_v2, query_config, - query_total_deposit, query_vault_config, + query_all_asset_params, query_all_total_deposits_v2, query_all_vault_configs, + query_all_vault_configs_v2, query_config, query_total_deposit, query_vault_config, }, state::{ADDRESS_PROVIDER, ASSET_PARAMS, OWNER, TARGET_HEALTH_FACTOR}, }; @@ -91,7 +91,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> ContractResult { QueryMsg::Config {} => to_json_binary(&query_config(deps)?), QueryMsg::AssetParams { denom, - } => to_json_binary(&ASSET_PARAMS.load(deps.storage, &denom)?), + } => to_json_binary(&ASSET_PARAMS.may_load(deps.storage, &denom)?), QueryMsg::AllAssetParams { start_after, limit, @@ -113,6 +113,10 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> ContractResult { QueryMsg::TotalDeposit { denom, } => to_json_binary(&query_total_deposit(deps, &env, denom)?), + QueryMsg::AllTotalDepositsV2 { + start_after, + limit, + } => to_json_binary(&query_all_total_deposits_v2(deps, start_after, limit)?), }; res.map_err(Into::into) } diff --git a/contracts/params/src/query.rs b/contracts/params/src/query.rs index d0d9e280..8618ad4f 100644 --- a/contracts/params/src/query.rs +++ b/contracts/params/src/query.rs @@ -3,13 +3,13 @@ use cw_paginate::{paginate_map_query, PaginationResponse}; use cw_storage_plus::Bound; use mars_interest_rate::get_underlying_liquidity_amount; use mars_types::{ - address_provider::{self, MarsAddressType}, + address_provider::{self, helpers::query_contract_addrs, MarsAddressType}, params::{AssetParams, ConfigResponse, TotalDepositResponse, VaultConfig}, - red_bank::{self, Market}, + red_bank::{self, Market, MarketV2Response}, }; use crate::{ - error::ContractError, + error::{ContractError, ContractResult}, state::{ADDRESS_PROVIDER, ASSET_PARAMS, VAULT_CONFIGS}, }; @@ -115,10 +115,17 @@ pub fn query_total_deposit( let addresses = address_provider::helpers::query_contract_addrs( deps, &address_provider_addr, - vec![MarsAddressType::RedBank, MarsAddressType::CreditManager], + vec![ + MarsAddressType::RedBank, + MarsAddressType::CreditManager, + MarsAddressType::Incentives, + MarsAddressType::AstroportIncentives, + ], )?; let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; let red_bank_addr = &addresses[&MarsAddressType::RedBank]; + let incentives_addr = &addresses[&MarsAddressType::Incentives]; + let astro_incentives_addr = &addresses[&MarsAddressType::AstroportIncentives]; // amount of this asset deposited into Red Bank // if the market doesn't exist on RB, we default to zero @@ -145,8 +152,12 @@ pub fn query_total_deposit( // note that this way, we don't include LP tokens or vault positions let cm_deposit = deps.querier.query_balance(credit_manager_addr, &denom)?.amount; + // amount of LP token deposited into Astroport incentives contract + let astro_deposit = + query_astro_incentives_deposit(deps, &denom, incentives_addr, astro_incentives_addr)?; + // total deposited amount - let amount = rb_deposit.checked_add(cm_deposit)?; + let amount = rb_deposit.checked_add(cm_deposit)?.checked_add(astro_deposit)?; // additionally, we include the deposit cap in the response let asset_params = ASSET_PARAMS.load(deps.storage, &denom)?; @@ -157,3 +168,95 @@ pub fn query_total_deposit( cap: asset_params.deposit_cap, }) } + +pub fn query_all_total_deposits_v2( + deps: Deps, + start_after: Option, + limit: Option, +) -> ContractResult> { + let address_provider_addr = ADDRESS_PROVIDER.load(deps.storage)?; + let addresses = query_contract_addrs( + deps, + &address_provider_addr, + vec![ + MarsAddressType::RedBank, + MarsAddressType::CreditManager, + MarsAddressType::Incentives, + MarsAddressType::AstroportIncentives, + ], + )?; + let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; + let red_bank_addr = &addresses[&MarsAddressType::RedBank]; + let incentives_addr = &addresses[&MarsAddressType::Incentives]; + let astro_incentives_addr = &addresses[&MarsAddressType::AstroportIncentives]; + + let rb_deposits = deps.querier.query_wasm_smart::>( + red_bank_addr, + &red_bank::QueryMsg::MarketsV2 { + start_after, + limit, + }, + )?; + + // amount of this asset deposited into Credit Manager + // this is simply the coin balance of the CM contract + // note that this way, we don't include LP tokens or vault positions + let cm_deposits = deps.querier.query_all_balances(credit_manager_addr)?; + + let total_deposits: Vec = rb_deposits + .data + .iter() + .map(|market| { + let denom = market.market.denom.clone(); + let cm_deposit = cm_deposits + .iter() + .find(|coin| coin.denom == denom) + .map(|coin| coin.amount) + .unwrap_or_else(Uint128::zero); + let astro_deposit = query_astro_incentives_deposit( + deps, + &denom, + incentives_addr, + astro_incentives_addr, + )?; + let amount = market + .collateral_total_amount + .checked_add(cm_deposit)? + .checked_add(astro_deposit)?; + let asset_params = ASSET_PARAMS.load(deps.storage, &denom)?; + Ok(TotalDepositResponse { + denom, + amount, + cap: asset_params.deposit_cap, + }) + }) + .collect::>>()?; + + Ok(PaginationResponse { + data: total_deposits, + metadata: rb_deposits.metadata, + }) +} + +fn query_astro_incentives_deposit( + deps: Deps, + denom: &str, + incentives_addr: &Addr, + astro_incentives_addr: &Addr, +) -> StdResult { + // Astro LP token denom structure: `factory/[pair_addr]/astroport/share` + let parts: Vec<&str> = denom.split('/').collect(); + if parts.len() == 4 && parts[0] == "factory" && parts[2] == "astroport" && parts[3] == "share" { + // The deposit amount is the amount of the LP token deposited by Mars incentives contract + // on behalf of Credit Manager user in the Astroport incentives contract. + deps.querier.query_wasm_smart::( + astro_incentives_addr, + &astroport_v5::incentives::QueryMsg::Deposit { + lp_token: denom.to_string(), + user: incentives_addr.to_string(), + }, + ) + } else { + Ok(Uint128::zero()) + } +} diff --git a/contracts/params/tests/tests/mod.rs b/contracts/params/tests/tests/mod.rs index 82d708e1..7882abe2 100644 --- a/contracts/params/tests/tests/mod.rs +++ b/contracts/params/tests/tests/mod.rs @@ -1,5 +1,6 @@ mod helpers; +mod test_all_total_deposits_v2; mod test_asset_validation; mod test_deposit_cap; mod test_emergency_powers; diff --git a/contracts/params/tests/tests/test_all_total_deposits_v2.rs b/contracts/params/tests/tests/test_all_total_deposits_v2.rs new file mode 100644 index 00000000..85237420 --- /dev/null +++ b/contracts/params/tests/tests/test_all_total_deposits_v2.rs @@ -0,0 +1,59 @@ +use cosmwasm_std::{coin, Addr, Uint128}; +use mars_testing::integration::{ + helpers::{osmo_asset_params, usdc_asset_params}, + mock_env::MockEnvBuilder, +}; +use mars_types::params::TotalDepositResponse; + +#[test] +fn should_return_total_deposits() { + let owner = Addr::unchecked("owner"); + let mut mock_env = MockEnvBuilder::new(None, owner).build(); + + let red_bank = mock_env.red_bank.clone(); + let params = mock_env.params.clone(); + + let funded_amount = Uint128::new(10_000_000_000); + let rb_osmo_amount = Uint128::new(2_345_678_900); + let rb_usdc_amount = Uint128::new(1_234_567_890); + + let provider = Addr::unchecked("provider"); + let credit_manager = mock_env.credit_manager.clone(); + + let osmo_denom = "uosmo"; + let uusdc_denom = "uusdc"; + + let (market_params, asset_params) = osmo_asset_params(); + red_bank.init_asset(&mut mock_env, &asset_params.denom, market_params); + params.init_params(&mut mock_env, asset_params); + let (market_params, asset_params) = usdc_asset_params(); + red_bank.init_asset(&mut mock_env, &asset_params.denom, market_params); + params.init_params(&mut mock_env, asset_params); + + mock_env.fund_accounts(&[&provider], funded_amount.u128(), &[osmo_denom, uusdc_denom]); + + mock_env.fund_accounts(&[&credit_manager], funded_amount.u128(), &[uusdc_denom]); + + red_bank.deposit(&mut mock_env, &provider, coin(rb_osmo_amount.u128(), osmo_denom)).unwrap(); + red_bank.deposit(&mut mock_env, &provider, coin(rb_usdc_amount.u128(), uusdc_denom)).unwrap(); + + let res = params.all_total_deposits_v2(&mut mock_env, None, None); + + assert_eq!( + res.data, + vec![ + TotalDepositResponse { + denom: osmo_denom.to_string(), + amount: rb_osmo_amount, + cap: Uint128::MAX + }, + TotalDepositResponse { + denom: uusdc_denom.to_string(), + amount: funded_amount.checked_add(rb_usdc_amount).unwrap(), + cap: Uint128::MAX + } + ] + ); + + assert!(!res.metadata.has_more); +} diff --git a/contracts/params/tests/tests/test_deposit_cap.rs b/contracts/params/tests/tests/test_deposit_cap.rs index 976a1f7d..ea51c6c4 100644 --- a/contracts/params/tests/tests/test_deposit_cap.rs +++ b/contracts/params/tests/tests/test_deposit_cap.rs @@ -17,6 +17,8 @@ use super::helpers::default_asset_params; const CREDIT_MANAGER: &str = "credit_manager"; const MOCK_DENOM: &str = "utoken"; +const LP_DENOM: &str = + "factory/neutron1sf456kx85dz0wfjs4sx0s80dyzmc360pfc0rdzactxt8xrse9ykqsdpy2y/astroport/share"; const TIMESTAMP: u64 = 1690573960; #[test_case( @@ -33,6 +35,7 @@ const TIMESTAMP: u64 = 1690573960; amount: Uint128::zero(), uncollateralized: true, }, + Uint128::zero(), Uint128::zero(); "zero liquidity, zero debt, zero balance" )] @@ -50,35 +53,62 @@ const TIMESTAMP: u64 = 1690573960; amount: Uint128::new(459180188271), uncollateralized: true, }, - Uint128::new(1751191642); + Uint128::new(1751191642), + Uint128::zero(); "real data queried from mainnet" )] -fn querying_total_deposit(rb_market: Market, rb_debt: UserDebtResponse, cm_balance: Uint128) { +#[test_case( + Market { + denom: LP_DENOM.into(), + collateral_total_scaled: Uint128::new(6023580722925709342), + liquidity_index: Decimal::from_str("1.010435027113017045").unwrap(), + indexes_last_updated: 1690573862, + ..Default::default() + }, + UserDebtResponse { + denom: LP_DENOM.into(), + amount_scaled: Uint128::new(442125932248737808), + amount: Uint128::new(459180188271), + uncollateralized: true, + }, + Uint128::new(1751191642), + Uint128::new(1234560000); + "real data queried from mainnet with astroport deposit" +)] +fn querying_total_deposit( + rb_market: Market, + rb_debt: UserDebtResponse, + cm_balance: Uint128, + astroport_deposit: Uint128, +) { let mut deps = mock_dependencies(&[]); let env = mock_env_at_block_time(TIMESTAMP); - let params_unchecked = default_asset_params(MOCK_DENOM); + let denom = rb_market.denom.clone(); + + let params_unchecked = default_asset_params(&denom); let params = params_unchecked.check(deps.as_ref().api).unwrap(); // setup deps.querier.set_redbank_market(rb_market.clone()); deps.querier.set_red_bank_user_debt(CREDIT_MANAGER, rb_debt); - deps.querier.update_balances(CREDIT_MANAGER, coins(cm_balance.u128(), MOCK_DENOM)); + deps.querier.update_balances(CREDIT_MANAGER, coins(cm_balance.u128(), &denom)); + deps.querier.set_astroport_deposit("incentives", &denom, astroport_deposit); ADDRESS_PROVIDER.save(deps.as_mut().storage, &Addr::unchecked("address_provider")).unwrap(); - ASSET_PARAMS.save(deps.as_mut().storage, MOCK_DENOM, ¶ms).unwrap(); + ASSET_PARAMS.save(deps.as_mut().storage, &denom, ¶ms).unwrap(); // compute the correct, expected total deposit let rb_deposit = get_underlying_liquidity_amount(rb_market.collateral_total_scaled, &rb_market, TIMESTAMP) .unwrap(); - let exp_total_deposit = rb_deposit + cm_balance; + let exp_total_deposit = rb_deposit + cm_balance + astroport_deposit; // query total deposit - let res = query_total_deposit(deps.as_ref(), &env, MOCK_DENOM.into()).unwrap(); + let res = query_total_deposit(deps.as_ref(), &env, denom.clone()).unwrap(); assert_eq!( res, TotalDepositResponse { - denom: MOCK_DENOM.into(), + denom, amount: exp_total_deposit, cap: params.deposit_cap, } diff --git a/contracts/params/tests/tests/test_query_all_vault_configs_v2.rs b/contracts/params/tests/tests/test_query_all_vault_configs_v2.rs index 29fb028e..c6573643 100644 --- a/contracts/params/tests/tests/test_query_all_vault_configs_v2.rs +++ b/contracts/params/tests/tests/test_query_all_vault_configs_v2.rs @@ -26,7 +26,7 @@ fn validate_address_correctly() { let vault_configs = mock.query_all_vault_configs_v2(None, Some(1)); - assert_eq!(vault_configs.data.get(0).unwrap().addr, Addr::unchecked("vault_1")); + assert_eq!(vault_configs.data.first().unwrap().addr, Addr::unchecked("vault_1")); assert_eq!(vault_configs.data.len(), 1) } @@ -53,7 +53,7 @@ fn allows_setting_limit() { let vault_configs = mock.query_all_vault_configs_v2(None, Some(1)); - assert_eq!(vault_configs.data.get(0).unwrap().addr, Addr::unchecked("vault_1")); + assert_eq!(vault_configs.data.first().unwrap().addr, Addr::unchecked("vault_1")); assert_eq!(vault_configs.data.len(), 1); } @@ -81,5 +81,5 @@ fn start_after_skips_first() { let vault_configs = mock.query_all_vault_configs_v2(Some("vault_1".to_string()), None); assert_eq!(vault_configs.data.len(), 1); - assert_eq!(vault_configs.data.get(0).unwrap().addr, Addr::unchecked("vault_2")); + assert_eq!(vault_configs.data.first().unwrap().addr, Addr::unchecked("vault_2")); } diff --git a/contracts/red-bank/src/borrow.rs b/contracts/red-bank/src/borrow.rs index 831c058b..919cec08 100644 --- a/contracts/red-bank/src/borrow.rs +++ b/contracts/red-bank/src/borrow.rs @@ -35,12 +35,14 @@ pub fn borrow( MarsAddressType::Incentives, MarsAddressType::RewardsCollector, MarsAddressType::Params, + MarsAddressType::CreditManager, ], )?; let rewards_collector_addr = &addresses[&MarsAddressType::RewardsCollector]; let incentives_addr = &addresses[&MarsAddressType::Incentives]; let oracle_addr = &addresses[&MarsAddressType::Oracle]; let params_addr = &addresses[&MarsAddressType::Params]; + let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; let asset_params = query_asset_params(&deps.querier, params_addr, &denom)?; @@ -72,11 +74,9 @@ pub fn borrow( }); } - let uncollateralized_loan_limit = borrower.uncollateralized_loan_limit(deps.storage, &denom)?; - // Check if user can borrow specified amount let mut uncollateralized_debt = false; - if uncollateralized_loan_limit.is_zero() { + if info.sender != credit_manager_addr { if !assert_below_max_ltv_after_borrow( &deps.as_ref(), &env, @@ -90,22 +90,7 @@ pub fn borrow( return Err(ContractError::BorrowAmountExceedsGivenCollateral {}); } } else { - // Uncollateralized loan: check borrow amount plus debt does not exceed uncollateralized loan limit uncollateralized_debt = true; - - let debt_amount_scaled = borrower.debt_amount_scaled(deps.storage, &denom)?; - - let asset_market = MARKETS.load(deps.storage, &denom)?; - let debt_amount = get_underlying_debt_amount( - debt_amount_scaled, - &asset_market, - env.block.time.seconds(), - )?; - - let debt_after_borrow = debt_amount.checked_add(borrow_amount)?; - if debt_after_borrow > uncollateralized_loan_limit { - return Err(ContractError::BorrowAmountExceedsUncollateralizedLoanLimit {}); - } } let mut response = Response::new(); diff --git a/contracts/red-bank/src/contract.rs b/contracts/red-bank/src/contract.rs index 56afb5e4..8d89886c 100644 --- a/contracts/red-bank/src/contract.rs +++ b/contracts/red-bank/src/contract.rs @@ -1,11 +1,11 @@ use cosmwasm_std::{ - entry_point, to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, + entry_point, to_json_binary, Binary, Deps, DepsMut, Empty, Env, MessageInfo, Response, }; -use mars_types::red_bank::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg}; +use mars_types::red_bank::{ExecuteMsg, InstantiateMsg, QueryMsg}; use crate::{ asset, borrow, collateral, config, deposit, error::ContractError, instantiate, liquidate, - migrations, query, repay, state::MIGRATION_GUARD, uncollateralized_loan, withdraw, + migrations, query, repay, state::MIGRATION_GUARD, withdraw, }; pub const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME"); @@ -41,16 +41,6 @@ pub fn execute( denom, params, } => asset::update_asset(deps, env, info, denom, params), - ExecuteMsg::UpdateUncollateralizedLoanLimit { - user, - denom, - new_limit, - } => { - let user_addr = deps.api.addr_validate(&user)?; - uncollateralized_loan::update_uncollateralized_loan_limit( - deps, info, user_addr, denom, new_limit, - ) - } ExecuteMsg::Deposit { account_id, on_behalf_of, @@ -144,30 +134,17 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result to_json_binary(&query::query_market(deps, denom)?), + QueryMsg::MarketV2 { + denom, + } => to_json_binary(&query::query_market_v2(deps, env, denom)?), QueryMsg::Markets { start_after, limit, } => to_json_binary(&query::query_markets(deps, start_after, limit)?), - QueryMsg::UncollateralizedLoanLimit { - user, - denom, - } => { - let user_addr = deps.api.addr_validate(&user)?; - to_json_binary(&query::query_uncollateralized_loan_limit(deps, user_addr, denom)?) - } - QueryMsg::UncollateralizedLoanLimits { - user, + QueryMsg::MarketsV2 { start_after, limit, - } => { - let user_addr = deps.api.addr_validate(&user)?; - to_json_binary(&query::query_uncollateralized_loan_limits( - deps, - user_addr, - start_after, - limit, - )?) - } + } => to_json_binary(&query::query_markets_v2(deps, env, start_after, limit)?), QueryMsg::UserDebt { user, denom, @@ -271,9 +248,6 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result Result { - match msg { - MigrateMsg::V1_0_0ToV2_0_0 {} => migrations::v2_0_0::migrate(deps), - MigrateMsg::V2_0_0ToV2_0_1 {} => migrations::v2_0_1::migrate(deps), - } +pub fn migrate(deps: DepsMut, _env: Env, _msg: Empty) -> Result { + migrations::v2_0_0::migrate(deps) } diff --git a/contracts/red-bank/src/error.rs b/contracts/red-bank/src/error.rs index 31a9d7ac..f316272d 100644 --- a/contracts/red-bank/src/error.rs +++ b/contracts/red-bank/src/error.rs @@ -89,9 +89,6 @@ pub enum ContractError { #[error("Borrow amount exceeds maximum allowed given current collateral value")] BorrowAmountExceedsGivenCollateral {}, - #[error("Borrow amount exceeds uncollateralized loan limit given existing debt")] - BorrowAmountExceedsUncollateralizedLoanLimit {}, - #[error("Cannot repay 0 debt")] CannotRepayZeroDebt {}, @@ -101,9 +98,6 @@ pub enum ContractError { #[error("User cannot issue liquidation of own account")] CannotLiquidateSelf {}, - #[error("User has a positive uncollateralized loan limit and thus cannot be liquidated")] - CannotLiquidateWhenPositiveUncollateralizedLoanLimit {}, - #[error("User can't be liquidated for asset {denom:?} not being used as collateral")] CannotLiquidateWhenCollateralUnset { denom: String, @@ -149,18 +143,15 @@ pub enum ContractError { #[error("User's health factor can't be less than 1 after disabling collateral")] InvalidHealthFactorAfterDisablingCollateral {}, - #[error("Cannot update uncollateralized loan limit because user has collateralized debt")] - UserHasCollateralizedDebt {}, - - #[error("Cannot update uncollateralized loan limit because user has uncollateralized debt")] - UserHasUncollateralizedDebt {}, - - #[error("Cannot repay uncollateralized loan on behalf of another user")] - CannotRepayUncollateralizedLoanOnBehalfOf {}, - #[error("{0}")] Version(#[from] cw2::VersionError), #[error("{0}")] Guard(#[from] GuardError), + + #[error("Cannot repay on behalf of credit manager")] + CannotRepayOnBehalfOfCreditManager {}, + + #[error("Cannot liquidate credit manager (use credit-manager contract liquidate function)")] + CannotLiquidateCreditManager {}, } diff --git a/contracts/red-bank/src/lib.rs b/contracts/red-bank/src/lib.rs index 8b0ab673..b75f844c 100644 --- a/contracts/red-bank/src/lib.rs +++ b/contracts/red-bank/src/lib.rs @@ -14,7 +14,6 @@ pub mod migrations; pub mod query; pub mod repay; pub mod state; -pub mod uncollateralized_loan; pub mod user; pub mod withdraw; diff --git a/contracts/red-bank/src/liquidate.rs b/contracts/red-bank/src/liquidate.rs index de2e8684..06b81b2f 100644 --- a/contracts/red-bank/src/liquidate.rs +++ b/contracts/red-bank/src/liquidate.rs @@ -38,6 +38,25 @@ pub fn liquidate( let recipient_addr = option_string_to_addr(deps.api, recipient, info.sender.clone())?; let recipient = User(&recipient_addr); + let config = CONFIG.load(deps.storage)?; + + let addresses = address_provider::helpers::query_contract_addrs( + deps.as_ref(), + &config.address_provider, + vec![ + MarsAddressType::Oracle, + MarsAddressType::Incentives, + MarsAddressType::RewardsCollector, + MarsAddressType::Params, + MarsAddressType::CreditManager, + ], + )?; + let rewards_collector_addr = &addresses[&MarsAddressType::RewardsCollector]; + let incentives_addr = &addresses[&MarsAddressType::Incentives]; + let oracle_addr = &addresses[&MarsAddressType::Oracle]; + let params_addr = &addresses[&MarsAddressType::Params]; + let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; + // 1. Validate liquidation // User cannot liquidate themselves @@ -45,10 +64,9 @@ pub fn liquidate( return Err(ContractError::CannotLiquidateSelf {}); } - // If user (contract) has a positive uncollateralized limit then the user - // cannot be liquidated - if !liquidatee.uncollateralized_loan_limit(deps.storage, &debt_denom)?.is_zero() { - return Err(ContractError::CannotLiquidateWhenPositiveUncollateralizedLoanLimit {}); + // Cannot liquidate credit manager users. They have own liquidation logic in credit-manager contract. + if liquidatee_addr == credit_manager_addr { + return Err(ContractError::CannotLiquidateCreditManager {}); }; let user_id = UserId::credit_manager(liquidatee_addr.clone(), "".to_string()); @@ -73,23 +91,6 @@ pub fn liquidate( let collateral_market = MARKETS.load(deps.storage, &collateral_denom)?; // 2. Compute health factor - let config = CONFIG.load(deps.storage)?; - - let addresses = address_provider::helpers::query_contract_addrs( - deps.as_ref(), - &config.address_provider, - vec![ - MarsAddressType::Oracle, - MarsAddressType::Incentives, - MarsAddressType::RewardsCollector, - MarsAddressType::Params, - ], - )?; - let rewards_collector_addr = &addresses[&MarsAddressType::RewardsCollector]; - let incentives_addr = &addresses[&MarsAddressType::Incentives]; - let oracle_addr = &addresses[&MarsAddressType::Oracle]; - let params_addr = &addresses[&MarsAddressType::Params]; - let (health, assets_positions) = get_health_and_positions( &deps.as_ref(), &env, diff --git a/contracts/red-bank/src/migrations/mod.rs b/contracts/red-bank/src/migrations/mod.rs index 24a4db4a..7592b6f1 100644 --- a/contracts/red-bank/src/migrations/mod.rs +++ b/contracts/red-bank/src/migrations/mod.rs @@ -1,2 +1 @@ pub mod v2_0_0; -pub mod v2_0_1; diff --git a/contracts/red-bank/src/migrations/v2_0_0.rs b/contracts/red-bank/src/migrations/v2_0_0.rs index f396ed17..a839f2fb 100644 --- a/contracts/red-bank/src/migrations/v2_0_0.rs +++ b/contracts/red-bank/src/migrations/v2_0_0.rs @@ -1,7 +1,6 @@ use cosmwasm_std::{Addr, DepsMut, MessageInfo, Order, Response, StdResult}; use cw2::{assert_contract_version, set_contract_version}; use cw_storage_plus::Bound; -use mars_owner::OwnerInit; use mars_types::{ keys::{UserId, UserIdKey}, red_bank::{Config, Market, MigrateV1ToV2}, @@ -13,7 +12,7 @@ use crate::{ state::{COLLATERALS, CONFIG, MARKETS, MIGRATION_GUARD, OWNER}, }; -const FROM_VERSION: &str = "1.0.0"; +const FROM_VERSION: &str = "1.2.1"; pub mod v1_state { use cosmwasm_schema::cw_serde; @@ -21,27 +20,10 @@ pub mod v1_state { use cw_storage_plus::{Item, Map}; use mars_types::red_bank::{Collateral, InterestRateModel}; - pub const OWNER: Item = Item::new("owner"); pub const CONFIG: Item = Item::new("config"); pub const MARKETS: Map<&str, Market> = Map::new("markets"); pub const COLLATERALS: Map<(&Addr, &str), Collateral> = Map::new("collaterals"); - #[cw_serde] - pub enum OwnerState { - B(OwnerSetNoneProposed), - } - - #[cw_serde] - pub struct OwnerSetNoneProposed { - pub owner: Addr, - } - - pub fn current_owner(state: OwnerState) -> Addr { - match state { - OwnerState::B(b) => b.owner, - } - } - #[cw_serde] pub struct Config { pub address_provider: Addr, @@ -77,18 +59,6 @@ pub fn migrate(deps: DepsMut) -> Result { // make sure we're migrating the correct contract and from the correct version assert_contract_version(deps.storage, &format!("crates.io:{CONTRACT_NAME}"), FROM_VERSION)?; - // Owner package updated, re-initializing - let old_owner_state = v1_state::OWNER.load(deps.storage)?; - let old_owner = v1_state::current_owner(old_owner_state); - v1_state::OWNER.remove(deps.storage); - OWNER.initialize( - deps.storage, - deps.api, - OwnerInit::SetInitialOwner { - owner: old_owner.to_string(), - }, - )?; - // Config package updated, re-initializing let old_config = v1_state::CONFIG.load(deps.storage)?; v1_state::CONFIG.remove(deps.storage); diff --git a/contracts/red-bank/src/query.rs b/contracts/red-bank/src/query.rs index b37a251b..2ff5411e 100644 --- a/contracts/red-bank/src/query.rs +++ b/contracts/red-bank/src/query.rs @@ -1,5 +1,5 @@ -use cosmwasm_std::{Addr, BlockInfo, Deps, Env, Order, StdResult, Uint128}; -use cw_paginate::paginate_prefix_query; +use cosmwasm_std::{Addr, BlockInfo, Decimal, Deps, Env, Order, StdResult, Uint128}; +use cw_paginate::{paginate_map_query, paginate_prefix_query, PaginationResponse}; use cw_storage_plus::Bound; use mars_interest_rate::{ get_scaled_debt_amount, get_scaled_liquidity_amount, get_underlying_debt_amount, @@ -9,16 +9,16 @@ use mars_types::{ address_provider::{self, MarsAddressType}, keys::{UserId, UserIdKey}, red_bank::{ - Collateral, ConfigResponse, Debt, Market, PaginatedUserCollateralResponse, - UncollateralizedLoanLimitResponse, UserCollateralResponse, UserDebtResponse, + Collateral, ConfigResponse, Debt, Market, MarketV2Response, + PaginatedUserCollateralResponse, UserCollateralResponse, UserDebtResponse, UserHealthStatus, UserPositionResponse, }, }; use crate::{ - error::ContractError, + error::{ContractError, ContractResult}, health, - state::{COLLATERALS, CONFIG, DEBTS, MARKETS, OWNER, UNCOLLATERALIZED_LOAN_LIMITS}, + state::{COLLATERALS, CONFIG, DEBTS, MARKETS, OWNER}, }; const DEFAULT_LIMIT: u32 = 10; @@ -38,6 +38,30 @@ pub fn query_market(deps: Deps, denom: String) -> StdResult> { MARKETS.may_load(deps.storage, &denom) } +pub fn query_market_v2(deps: Deps, env: Env, denom: String) -> StdResult { + let block_time = env.block.time.seconds(); + let market = MARKETS.load(deps.storage, &denom)?; + + let collateral_total_amount = + get_underlying_liquidity_amount(market.collateral_total_scaled, &market, block_time)?; + + let debt_total_amount = + get_underlying_debt_amount(market.debt_total_scaled, &market, block_time)?; + + let utilization_rate = if !collateral_total_amount.is_zero() { + Decimal::from_ratio(debt_total_amount, collateral_total_amount) + } else { + Decimal::zero() + }; + + Ok(MarketV2Response { + collateral_total_amount, + debt_total_amount, + utilization_rate, + market, + }) +} + pub fn query_markets( deps: Deps, start_after: Option, @@ -56,39 +80,35 @@ pub fn query_markets( .collect() } -pub fn query_uncollateralized_loan_limit( - deps: Deps, - user_addr: Addr, - denom: String, -) -> StdResult { - let limit = UNCOLLATERALIZED_LOAN_LIMITS.may_load(deps.storage, (&user_addr, &denom))?; - Ok(UncollateralizedLoanLimitResponse { - denom, - limit: limit.unwrap_or_else(Uint128::zero), - }) -} - -pub fn query_uncollateralized_loan_limits( +pub fn query_markets_v2( deps: Deps, - user_addr: Addr, + env: Env, start_after: Option, limit: Option, -) -> StdResult> { +) -> ContractResult> { + let block_time = env.block.time.seconds(); let start = start_after.map(|denom| Bound::ExclusiveRaw(denom.into_bytes())); - let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT) as usize; + let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT); - UNCOLLATERALIZED_LOAN_LIMITS - .prefix(&user_addr) - .range(deps.storage, start, None, Order::Ascending) - .take(limit) - .map(|item| { - let (denom, limit) = item?; - Ok(UncollateralizedLoanLimitResponse { - denom, - limit, - }) + paginate_map_query(&MARKETS, deps.storage, start, Some(limit), |_denom, market| { + let collateral_total_amount = + get_underlying_liquidity_amount(market.collateral_total_scaled, &market, block_time)?; + let debt_total_amount = + get_underlying_debt_amount(market.debt_total_scaled, &market, block_time)?; + + let utilization_rate = if !collateral_total_amount.is_zero() { + Decimal::from_ratio(debt_total_amount, collateral_total_amount) + } else { + Decimal::zero() + }; + + Ok(MarketV2Response { + debt_total_amount, + collateral_total_amount, + utilization_rate, + market, }) - .collect() + }) } pub fn query_user_debt( @@ -185,7 +205,8 @@ pub fn query_user_collaterals( start_after: Option, limit: Option, ) -> Result, ContractError> { - let res_v2 = query_user_collaterals_v2(deps, block, user_addr, account_id, start_after, limit)?; + let res_v2: PaginationResponse = + query_user_collaterals_v2(deps, block, user_addr, account_id, start_after, limit)?; Ok(res_v2.data) } @@ -204,7 +225,7 @@ pub fn query_user_collaterals_v2( let acc_id = account_id.unwrap_or("".to_string()); - let user_id = UserId::credit_manager(user_addr, acc_id); + let user_id: UserId = UserId::credit_manager(user_addr, acc_id); let user_id_key: UserIdKey = user_id.try_into()?; paginate_prefix_query( diff --git a/contracts/red-bank/src/repay.rs b/contracts/red-bank/src/repay.rs index e831ab6f..e08eafe1 100644 --- a/contracts/red-bank/src/repay.rs +++ b/contracts/red-bank/src/repay.rs @@ -1,6 +1,6 @@ use cosmwasm_std::{Addr, DepsMut, Env, MessageInfo, Response, Uint128}; use mars_interest_rate::{get_scaled_debt_amount, get_underlying_debt_amount}; -use mars_types::{address_provider, address_provider::MarsAddressType}; +use mars_types::address_provider::{self, MarsAddressType}; use mars_utils::helpers::build_send_asset_msg; use crate::{ @@ -18,33 +18,38 @@ pub fn repay( denom: String, repay_amount: Uint128, ) -> Result { - let user_addr: Addr; - let user = if let Some(address) = on_behalf_of { - user_addr = deps.api.addr_validate(&address)?; - let user = User(&user_addr); - // Uncollateralized loans should not have 'on behalf of' because it creates accounting complexity for them - if !user.uncollateralized_loan_limit(deps.storage, &denom)?.is_zero() { - return Err(ContractError::CannotRepayUncollateralizedLoanOnBehalfOf {}); - } - user - } else { - User(&info.sender) - }; - - // Check new debt - let debt = DEBTS - .may_load(deps.storage, (user.address(), &denom))? - .ok_or(ContractError::CannotRepayZeroDebt {})?; - let config = CONFIG.load(deps.storage)?; let addresses = address_provider::helpers::query_contract_addrs( deps.as_ref(), &config.address_provider, - vec![MarsAddressType::Incentives, MarsAddressType::RewardsCollector], + vec![ + MarsAddressType::Incentives, + MarsAddressType::RewardsCollector, + MarsAddressType::CreditManager, + ], )?; let rewards_collector_addr = &addresses[&MarsAddressType::RewardsCollector]; let incentives_addr = &addresses[&MarsAddressType::Incentives]; + let credit_manager_addr = &addresses[&MarsAddressType::CreditManager]; + + let user_addr: Addr; + let user = match on_behalf_of.as_ref() { + // Cannot repay on behalf of credit-manager users. It creates accounting complexity for them. + Some(address) if address == credit_manager_addr.as_str() => { + return Err(ContractError::CannotRepayOnBehalfOfCreditManager {}); + } + Some(address) => { + user_addr = deps.api.addr_validate(address)?; + User(&user_addr) + } + None => User(&info.sender), + }; + + // Check new debt + let debt = DEBTS + .may_load(deps.storage, (user.address(), &denom))? + .ok_or(ContractError::CannotRepayZeroDebt {})?; let mut market = MARKETS.load(deps.storage, &denom)?; diff --git a/contracts/red-bank/src/state.rs b/contracts/red-bank/src/state.rs index 8554919f..21a48f4a 100644 --- a/contracts/red-bank/src/state.rs +++ b/contracts/red-bank/src/state.rs @@ -1,4 +1,4 @@ -use cosmwasm_std::{Addr, Uint128}; +use cosmwasm_std::Addr; use cw_storage_plus::{Item, Map}; use mars_owner::Owner; use mars_types::{ @@ -12,7 +12,6 @@ pub const CONFIG: Item> = Item::new("config"); pub const MARKETS: Map<&str, Market> = Map::new("markets"); pub const COLLATERALS: Map<(&UserIdKey, &str), Collateral> = Map::new("colls"); pub const DEBTS: Map<(&Addr, &str), Debt> = Map::new("debts"); -pub const UNCOLLATERALIZED_LOAN_LIMITS: Map<(&Addr, &str), Uint128> = Map::new("limits"); /// Used to mark the contract as locked during migrations pub const MIGRATION_GUARD: Guard = Guard::new("guard"); diff --git a/contracts/red-bank/src/uncollateralized_loan.rs b/contracts/red-bank/src/uncollateralized_loan.rs deleted file mode 100644 index 175bfa8b..00000000 --- a/contracts/red-bank/src/uncollateralized_loan.rs +++ /dev/null @@ -1,51 +0,0 @@ -use cosmwasm_std::{Addr, DepsMut, MessageInfo, Response, StdResult, Uint128}; -use mars_types::red_bank::Debt; - -use crate::{ - error::ContractError, - state::{DEBTS, OWNER, UNCOLLATERALIZED_LOAN_LIMITS}, -}; - -/// Update uncollateralized loan limit by a given amount in base asset -pub fn update_uncollateralized_loan_limit( - deps: DepsMut, - info: MessageInfo, - user_addr: Addr, - denom: String, - new_limit: Uint128, -) -> Result { - OWNER.assert_owner(deps.storage, &info.sender)?; - - // Check that the user has no collateralized debt - let current_limit = UNCOLLATERALIZED_LOAN_LIMITS - .may_load(deps.storage, (&user_addr, &denom))? - .unwrap_or_else(Uint128::zero); - let current_debt = DEBTS - .may_load(deps.storage, (&user_addr, &denom))? - .map(|debt| debt.amount_scaled) - .unwrap_or_else(Uint128::zero); - if current_limit.is_zero() && !current_debt.is_zero() { - return Err(ContractError::UserHasCollateralizedDebt {}); - } - if !current_limit.is_zero() && new_limit.is_zero() && !current_debt.is_zero() { - return Err(ContractError::UserHasUncollateralizedDebt {}); - } - - UNCOLLATERALIZED_LOAN_LIMITS.save(deps.storage, (&user_addr, &denom), &new_limit)?; - - DEBTS.update(deps.storage, (&user_addr, &denom), |debt_opt: Option| -> StdResult<_> { - let mut debt = debt_opt.unwrap_or(Debt { - amount_scaled: Uint128::zero(), - uncollateralized: false, - }); - // if limit == 0 then uncollateralized = false, otherwise uncollateralized = true - debt.uncollateralized = !new_limit.is_zero(); - Ok(debt) - })?; - - Ok(Response::new() - .add_attribute("action", "update_uncollateralized_loan_limit") - .add_attribute("user", user_addr) - .add_attribute("denom", denom) - .add_attribute("new_allowance", new_limit)) -} diff --git a/contracts/red-bank/src/user.rs b/contracts/red-bank/src/user.rs index a54cd28c..d925cfe1 100644 --- a/contracts/red-bank/src/user.rs +++ b/contracts/red-bank/src/user.rs @@ -7,7 +7,7 @@ use mars_types::{ red_bank::{Collateral, Debt, Market}, }; -use crate::state::{COLLATERALS, DEBTS, UNCOLLATERALIZED_LOAN_LIMITS}; +use crate::state::{COLLATERALS, DEBTS}; /// A helper class providing an intuitive API for managing user positions in the contract store. /// @@ -74,19 +74,6 @@ impl<'a> User<'a> { Ok(amount_scaled) } - /// Load the user's uncollateralized loan limit. Return zero if the user has not been given an - /// uncollateralized loan limit. - pub fn uncollateralized_loan_limit( - &self, - store: &dyn Storage, - denom: &str, - ) -> StdResult { - let limit = UNCOLLATERALIZED_LOAN_LIMITS - .may_load(store, (self.0, denom))? - .unwrap_or_else(Uint128::zero); - Ok(limit) - } - /// Return `true` if the user is borrowing a non-zero amount in _any_ asset; return `false` if /// the user is not borrowing any asset. /// diff --git a/contracts/red-bank/tests/tests/helpers/mod.rs b/contracts/red-bank/tests/tests/helpers/mod.rs index 2fe3b067..84d3c5fe 100644 --- a/contracts/red-bank/tests/tests/helpers/mod.rs +++ b/contracts/red-bank/tests/tests/helpers/mod.rs @@ -1,6 +1,6 @@ #![allow(dead_code)] -use std::{collections::HashMap, fmt::Display, str::FromStr}; +use std::{collections::HashMap, fmt::Display}; use anyhow::Result as AnyResult; use cosmwasm_schema::serde; @@ -24,9 +24,8 @@ use mars_types::{ keys::{UserId, UserIdKey}, params::{AssetParams, CmSettings, LiquidationBonus, RedBankSettings}, red_bank::{ - Collateral, CreateOrUpdateConfig, Debt, InitOrUpdateAssetParams, InstantiateMsg, - InterestRateModel, Market, QueryMsg, UserCollateralResponse, UserDebtResponse, - UserHealthStatus, UserPositionResponse, + Collateral, CreateOrUpdateConfig, Debt, InstantiateMsg, Market, QueryMsg, + UserCollateralResponse, UserDebtResponse, UserHealthStatus, UserPositionResponse, }, }; @@ -396,49 +395,3 @@ pub fn assert_err_with_str(res: AnyResult, expected: impl Display) } } } - -pub fn osmo_asset_params() -> (InitOrUpdateAssetParams, AssetParams) { - default_asset_params_with("uosmo", Decimal::percent(70), Decimal::percent(78)) -} - -pub fn usdc_asset_params() -> (InitOrUpdateAssetParams, AssetParams) { - default_asset_params_with("uusdc", Decimal::percent(90), Decimal::percent(96)) -} - -pub fn default_asset_params_with( - denom: &str, - max_loan_to_value: Decimal, - liquidation_threshold: Decimal, -) -> (InitOrUpdateAssetParams, AssetParams) { - let market_params = InitOrUpdateAssetParams { - reserve_factor: Some(Decimal::percent(20)), - interest_rate_model: Some(InterestRateModel { - optimal_utilization_rate: Decimal::percent(10), - base: Decimal::percent(30), - slope_1: Decimal::percent(25), - slope_2: Decimal::percent(30), - }), - }; - let asset_params = AssetParams { - denom: denom.to_string(), - credit_manager: CmSettings { - whitelisted: false, - hls: None, - }, - red_bank: RedBankSettings { - deposit_enabled: true, - borrow_enabled: true, - }, - max_loan_to_value, - liquidation_threshold, - liquidation_bonus: LiquidationBonus { - starting_lb: Decimal::percent(1), - slope: Decimal::from_str("2.0").unwrap(), - min_lb: Decimal::percent(2), - max_lb: Decimal::percent(10), - }, - protocol_liquidation_fee: Decimal::percent(2), - deposit_cap: Uint128::MAX, - }; - (market_params, asset_params) -} diff --git a/contracts/red-bank/tests/tests/mod.rs b/contracts/red-bank/tests/tests/mod.rs index 871897b0..a8db681b 100644 --- a/contracts/red-bank/tests/tests/mod.rs +++ b/contracts/red-bank/tests/tests/mod.rs @@ -6,6 +6,7 @@ mod test_credit_accounts; mod test_deposit; mod test_health; mod test_inflated_collateral; +mod test_liquidate; mod test_migration_v2; mod test_misc; mod test_payment; diff --git a/contracts/red-bank/tests/tests/test_borrow.rs b/contracts/red-bank/tests/tests/test_borrow.rs index 9a78dafe..ac0bc88c 100644 --- a/contracts/red-bank/tests/tests/test_borrow.rs +++ b/contracts/red-bank/tests/tests/test_borrow.rs @@ -9,10 +9,11 @@ use mars_interest_rate::{ use mars_red_bank::{ contract::execute, error::ContractError, - state::{DEBTS, MARKETS, UNCOLLATERALIZED_LOAN_LIMITS}, + state::{DEBTS, MARKETS}, }; use mars_testing::{mock_env, mock_env_at_block_time, MockEnvParams}; use mars_types::{ + address_provider::MarsAddressType, params::{AssetParams, CmSettings, RedBankSettings}, red_bank::{ExecuteMsg, Market}, }; @@ -681,15 +682,11 @@ fn repay_with_refund_on_behalf_of() { } #[test] -fn repay_uncollateralized_loan_on_behalf_of() { +fn repay_on_behalf_of_credit_manager() { let mut deps = th_setup(&[]); let repayer_addr = Addr::unchecked("repayer"); - let another_user_addr = Addr::unchecked("another_user"); - - UNCOLLATERALIZED_LOAN_LIMITS - .save(deps.as_mut().storage, (&another_user_addr, "somecoin"), &Uint128::new(1000u128)) - .unwrap(); + let another_user_addr = Addr::unchecked(MarsAddressType::CreditManager.to_string()); let env = mock_env(MockEnvParams::default()); let info = cosmwasm_std::testing::mock_info(repayer_addr.as_str(), &[coin(110000, "somecoin")]); @@ -697,7 +694,7 @@ fn repay_uncollateralized_loan_on_behalf_of() { on_behalf_of: Some(another_user_addr.to_string()), }; let error_res = execute(deps.as_mut(), env, info, msg).unwrap_err(); - assert_eq!(error_res, ContractError::CannotRepayUncollateralizedLoanOnBehalfOf {}); + assert_eq!(error_res, ContractError::CannotRepayOnBehalfOfCreditManager {}); } #[test] diff --git a/contracts/red-bank/tests/tests/test_credit_accounts.rs b/contracts/red-bank/tests/tests/test_credit_accounts.rs index cf2fce54..168fb448 100644 --- a/contracts/red-bank/tests/tests/test_credit_accounts.rs +++ b/contracts/red-bank/tests/tests/test_credit_accounts.rs @@ -1,11 +1,10 @@ -use cosmwasm_std::{coin, Addr, Decimal, Uint128}; -use mars_red_bank::error::ContractError; -use mars_testing::integration::mock_env::MockEnvBuilder; +use cosmwasm_std::{coin, Addr, Decimal}; +use mars_testing::integration::{ + helpers::{osmo_asset_params, usdc_asset_params}, + mock_env::MockEnvBuilder, +}; use mars_types::red_bank::UserHealthStatus; -use super::helpers::assert_err; -use crate::tests::helpers::{osmo_asset_params, usdc_asset_params}; - #[test] fn deposit_and_withdraw_for_credit_account_works() { let owner = Addr::unchecked("owner"); @@ -49,21 +48,6 @@ fn deposit_and_withdraw_for_credit_account_works() { ) .unwrap(); - // credit manager try to borrow if no credit line set - let error_res = red_bank.borrow(&mut mock_env, &credit_manager, "uusdc", 100000000); - assert_err(error_res, ContractError::BorrowAmountExceedsGivenCollateral {}); - - // update credit line for credit manager - red_bank - .update_uncollateralized_loan_limit( - &mut mock_env, - &owner, - &credit_manager, - "uusdc", - Uint128::MAX, - ) - .unwrap(); - // credit manager should be able to borrow let cm_usdc_borrow_amt = 100000000u128; red_bank.borrow(&mut mock_env, &credit_manager, "uusdc", cm_usdc_borrow_amt).unwrap(); diff --git a/contracts/red-bank/tests/tests/test_liquidate.rs b/contracts/red-bank/tests/tests/test_liquidate.rs index 88d01bf0..9bc1c1f0 100644 --- a/contracts/red-bank/tests/tests/test_liquidate.rs +++ b/contracts/red-bank/tests/tests/test_liquidate.rs @@ -3,7 +3,7 @@ use std::{collections::HashMap, str::FromStr}; use cosmwasm_std::{ attr, coin, testing::{mock_dependencies, mock_env, mock_info}, - to_binary, Addr, Decimal, SubMsg, Uint128, WasmMsg, + to_json_binary, Addr, Decimal, SubMsg, Uint128, WasmMsg, }; use cw_utils::PaymentError; use mars_red_bank::{contract::execute, error::ContractError}; @@ -32,16 +32,39 @@ use super::helpers::{ #[test] fn cannot_self_liquidate() { - let mut deps = mock_dependencies(); - let env = mock_env(); - let info = mock_info("liquidator", &[coin(100, "somecoin")]); - let msg = ExecuteMsg::Liquidate { - user: "liquidator".to_string(), - collateral_denom: "collateral".to_string(), - recipient: None, - }; - let error_res = execute(deps.as_mut(), env, info, msg).unwrap_err(); - assert_eq!(error_res, ContractError::CannotLiquidateSelf {}); + let mut mock_env = MockEnvBuilder::new(None, Addr::unchecked("owner")).build(); + + let red_bank = mock_env.red_bank.clone(); + + let (_, _, _, liquidator) = setup_env(&mut mock_env); + + let error_res = red_bank.liquidate( + &mut mock_env, + &liquidator, + &liquidator, + "ujake", + &[coin(1000, "uusdc")], + ); + assert_err(error_res, ContractError::CannotLiquidateSelf {}); +} + +#[test] +fn cannot_liquidate_credit_manager() { + let mut mock_env = MockEnvBuilder::new(None, Addr::unchecked("owner")).build(); + + let red_bank = mock_env.red_bank.clone(); + let credit_manager = mock_env.credit_manager.clone(); + + let (_, _, _, liquidator) = setup_env(&mut mock_env); + + let error_res = red_bank.liquidate( + &mut mock_env, + &liquidator, + &credit_manager, + "ujake", + &[coin(1000, "uusdc")], + ); + assert_err(error_res, ContractError::CannotLiquidateCreditManager {}); } #[test] @@ -804,68 +827,6 @@ fn mdr_negative() { assert!(liq_threshold_hf < prev_liq_threshold_hf); } -#[test] -fn liquidate_uncollateralized_loan() { - let owner = Addr::unchecked("owner"); - let mut mock_env = MockEnvBuilder::new(None, owner.clone()).build(); - - // setup oracle and red-bank - let oracle = mock_env.oracle.clone(); - oracle.set_price_source_fixed(&mut mock_env, "uatom", Decimal::from_ratio(14u128, 1u128)); - oracle.set_price_source_fixed(&mut mock_env, "uusdc", Decimal::one()); - let red_bank = mock_env.red_bank.clone(); - let params = mock_env.params.clone(); - let (market_params, asset_params) = - default_asset_params_with("uusdc", Decimal::percent(70), Decimal::percent(78)); - red_bank.init_asset(&mut mock_env, "uusdc", market_params); - params.init_params(&mut mock_env, asset_params); - let (market_params, asset_params) = - default_asset_params_with("uatom", Decimal::percent(70), Decimal::percent(78)); - red_bank.init_asset(&mut mock_env, "uatom", market_params); - params.init_params(&mut mock_env, asset_params); - - // fund provider account with usdc - let provider = Addr::unchecked("provider"); - let funded_usdc = 1_000_000_000_000u128; - mock_env.fund_account(&provider, &[coin(1_000_000_000_000u128, "uusdc")]); - - // fund provider account with usdc - let liquidator = Addr::unchecked("liquidator"); - mock_env.fund_account(&liquidator, &[coin(1_000_000_000_000u128, "uusdc")]); - - // deposits usdc to redbank - red_bank.deposit(&mut mock_env, &provider, coin(funded_usdc, "uusdc")).unwrap(); - - let borrower = Addr::unchecked("borrower"); - - // set uncollateralized loan limit for borrower - red_bank - .update_uncollateralized_loan_limit( - &mut mock_env, - &owner, - &borrower, - "uusdc", - Uint128::from(10_000_000_000u128), - ) - .unwrap(); - - // borrower borrows usdc - let borrow_amount = 98_000_000u128; - red_bank.borrow(&mut mock_env, &borrower, "uusdc", borrow_amount).unwrap(); - let balance = mock_env.query_balance(&borrower, "uusdc").unwrap(); - assert_eq!(balance.amount.u128(), borrow_amount); - - // try to liquidate, should fail because there are no collateralized loans - let error_res = red_bank.liquidate( - &mut mock_env, - &liquidator, - &borrower, - "uatom", - &[coin(borrow_amount, "uusdc")], - ); - assert_err(error_res, ContractError::CannotLiquidateWhenPositiveUncollateralizedLoanLimit {}); -} - #[test] fn response_verification() { let provider = Addr::unchecked("provider"); // provides collateral to be borrowed by others @@ -1167,7 +1128,7 @@ fn expected_messages( vec![ SubMsg::new(WasmMsg::Execute { contract_addr: MarsAddressType::Incentives.to_string(), - msg: to_binary(&incentives::ExecuteMsg::BalanceChange { + msg: to_json_binary(&incentives::ExecuteMsg::BalanceChange { user_addr: user_addr.clone(), account_id: None, denom: collateral_market.denom.clone(), @@ -1179,7 +1140,7 @@ fn expected_messages( }), SubMsg::new(WasmMsg::Execute { contract_addr: MarsAddressType::Incentives.to_string(), - msg: to_binary(&incentives::ExecuteMsg::BalanceChange { + msg: to_json_binary(&incentives::ExecuteMsg::BalanceChange { user_addr: recipient_addr.clone(), account_id: None, denom: collateral_market.denom.clone(), @@ -1191,7 +1152,7 @@ fn expected_messages( }), SubMsg::new(WasmMsg::Execute { contract_addr: MarsAddressType::Incentives.to_string(), - msg: to_binary(&incentives::ExecuteMsg::BalanceChange { + msg: to_json_binary(&incentives::ExecuteMsg::BalanceChange { user_addr: Addr::unchecked(MarsAddressType::RewardsCollector.to_string()), account_id: None, denom: collateral_market.denom.clone(), @@ -1203,7 +1164,7 @@ fn expected_messages( }), SubMsg::new(WasmMsg::Execute { contract_addr: MarsAddressType::Incentives.to_string(), - msg: to_binary(&incentives::ExecuteMsg::BalanceChange { + msg: to_json_binary(&incentives::ExecuteMsg::BalanceChange { user_addr: Addr::unchecked(MarsAddressType::RewardsCollector.to_string()), account_id: None, denom: debt_market.denom.clone(), diff --git a/contracts/red-bank/tests/tests/test_migration_v2.rs b/contracts/red-bank/tests/tests/test_migration_v2.rs index d6639a3f..96f0f676 100644 --- a/contracts/red-bank/tests/tests/test_migration_v2.rs +++ b/contracts/red-bank/tests/tests/test_migration_v2.rs @@ -3,28 +3,28 @@ use std::{collections::HashMap, str::FromStr}; use cosmwasm_std::{ attr, testing::{mock_env, mock_info}, - Addr, Decimal, Event, Order, StdResult, Uint128, + Addr, Decimal, Empty, Event, Order, StdResult, Uint128, }; use cw2::{ContractVersion, VersionError}; use mars_red_bank::{ contract::{execute, migrate}, error::ContractError, - migrations::v2_0_0::v1_state::{self, OwnerSetNoneProposed}, + migrations::v2_0_0::v1_state, state::{COLLATERALS, CONFIG, MARKETS, MIGRATION_GUARD, OWNER}, }; use mars_testing::mock_dependencies; use mars_types::{ keys::{UserId, UserIdKey}, - red_bank::{Collateral, ExecuteMsg, InterestRateModel, Market, MigrateMsg, MigrateV1ToV2}, + red_bank::{Collateral, ExecuteMsg, InterestRateModel, Market, MigrateV1ToV2}, }; use mars_utils::error::GuardError; #[test] fn wrong_contract_name() { let mut deps = mock_dependencies(&[]); - cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.0.0").unwrap(); + cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.2.1").unwrap(); - let err = migrate(deps.as_mut(), mock_env(), MigrateMsg::V1_0_0ToV2_0_0 {}).unwrap_err(); + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); assert_eq!( err, @@ -40,12 +40,12 @@ fn wrong_contract_version() { let mut deps = mock_dependencies(&[]); cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-red-bank", "4.1.0").unwrap(); - let err = migrate(deps.as_mut(), mock_env(), MigrateMsg::V1_0_0ToV2_0_0 {}).unwrap_err(); + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); assert_eq!( err, ContractError::Version(VersionError::WrongVersion { - expected: "1.0.0".to_string(), + expected: "1.2.1".to_string(), found: "4.1.0".to_string() }) ); @@ -54,15 +54,17 @@ fn wrong_contract_version() { #[test] fn full_migration() { let mut deps = mock_dependencies(&[]); - cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-red-bank", "1.0.0").unwrap(); + cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-red-bank", "1.2.1").unwrap(); let old_owner = "spiderman_246"; - v1_state::OWNER - .save( - deps.as_mut().storage, - &v1_state::OwnerState::B(OwnerSetNoneProposed { - owner: Addr::unchecked(old_owner), - }), + let deps_muted = deps.as_mut(); + OWNER + .initialize( + deps_muted.storage, + deps_muted.api, + mars_owner::OwnerInit::SetInitialOwner { + owner: old_owner.to_string(), + }, ) .unwrap(); @@ -101,14 +103,14 @@ fn full_migration() { .save(deps.as_mut().storage, (&Addr::unchecked("user_2"), "uatom"), &user_2_atom_collateral) .unwrap(); - let res = migrate(deps.as_mut(), mock_env(), MigrateMsg::V1_0_0ToV2_0_0 {}).unwrap(); + let res = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap(); assert_eq!(res.messages, vec![]); assert_eq!(res.events, vec![] as Vec); assert!(res.data.is_none()); assert_eq!( res.attributes, - vec![attr("action", "migrate"), attr("from_version", "1.0.0"), attr("to_version", "2.0.1")] + vec![attr("action", "migrate"), attr("from_version", "1.2.1"), attr("to_version", "2.0.1")] ); let new_contract_version = ContractVersion { @@ -117,13 +119,6 @@ fn full_migration() { }; assert_eq!(cw2::get_contract_version(deps.as_ref().storage).unwrap(), new_contract_version); - let o = OWNER.query(deps.as_ref().storage).unwrap(); - assert_eq!(old_owner.to_string(), o.owner.unwrap()); - assert!(o.proposed.is_none()); - assert!(o.initialized); - assert!(!o.abolished); - assert!(o.emergency_owner.is_none()); - let config = CONFIG.load(&deps.storage).unwrap(); assert_eq!(v1_config.address_provider, config.address_provider); @@ -381,25 +376,3 @@ fn compare_markers(old_market: &v1_state::Market, market: &Market) -> bool { && old_market.collateral_total_scaled == market.collateral_total_scaled && old_market.debt_total_scaled == market.debt_total_scaled } - -#[test] -fn successful_migration_to_v2_0_1() { - let mut deps = mock_dependencies(&[]); - cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-red-bank", "2.0.0").unwrap(); - - let res = migrate(deps.as_mut(), mock_env(), MigrateMsg::V2_0_0ToV2_0_1 {}).unwrap(); - - assert_eq!(res.messages, vec![]); - assert_eq!(res.events, vec![] as Vec); - assert!(res.data.is_none()); - assert_eq!( - res.attributes, - vec![attr("action", "migrate"), attr("from_version", "2.0.0"), attr("to_version", "2.0.1")] - ); - - let new_contract_version = ContractVersion { - contract: "crates.io:mars-red-bank".to_string(), - version: "2.0.1".to_string(), - }; - assert_eq!(cw2::get_contract_version(deps.as_ref().storage).unwrap(), new_contract_version); -} diff --git a/contracts/red-bank/tests/tests/test_misc.rs b/contracts/red-bank/tests/tests/test_misc.rs index 0c0c697f..e8d0f2ba 100644 --- a/contracts/red-bank/tests/tests/test_misc.rs +++ b/contracts/red-bank/tests/tests/test_misc.rs @@ -1,204 +1,20 @@ -use cosmwasm_std::{ - attr, coin, coins, testing::mock_info, Addr, BankMsg, CosmosMsg, Decimal, SubMsg, Uint128, -}; +use cosmwasm_std::{testing::mock_info, Addr, Decimal, Uint128}; use mars_interest_rate::{ - compute_scaled_amount, compute_underlying_amount, get_scaled_debt_amount, - get_updated_liquidity_index, ScalingOperation, SCALING_FACTOR, -}; -use mars_owner::OwnerError::NotOwner; -use mars_red_bank::{ - contract::execute, - error::ContractError, - health, - state::{DEBTS, MARKETS, UNCOLLATERALIZED_LOAN_LIMITS}, + compute_underlying_amount, get_scaled_debt_amount, get_updated_liquidity_index, + ScalingOperation, SCALING_FACTOR, }; -use mars_testing::{mock_env, mock_env_at_block_time, MockEnvParams}; +use mars_red_bank::{contract::execute, error::ContractError, health, state::DEBTS}; +use mars_testing::{mock_env, MockEnvParams}; use mars_types::{ params::AssetParams, red_bank::{Debt, ExecuteMsg, Market}, }; use super::helpers::{ - has_collateral_enabled, has_collateral_position, has_debt_position, set_collateral, set_debt, - th_build_interests_updated_event, th_default_asset_params, th_get_expected_indices_and_rates, - th_init_market, th_setup, TestUtilizationDeltaInfo, + has_collateral_enabled, has_collateral_position, set_collateral, th_default_asset_params, + th_init_market, th_setup, }; -#[test] -fn uncollateralized_loan_limits() { - let available_liquidity = Uint128::from(2000000000u128); - let mut deps = th_setup(&[coin(available_liquidity.into(), "somecoin")]); - - let mock_market = Market { - borrow_index: Decimal::from_ratio(12u128, 10u128), - liquidity_index: Decimal::from_ratio(8u128, 10u128), - borrow_rate: Decimal::from_ratio(20u128, 100u128), - liquidity_rate: Decimal::from_ratio(10u128, 100u128), - reserve_factor: Decimal::from_ratio(1u128, 10u128), - collateral_total_scaled: Uint128::new(1_000_000_000_000u128), - debt_total_scaled: Uint128::zero(), - indexes_last_updated: 10000000, - ..Default::default() - }; - - // should get index 0 - let market_initial = th_init_market(deps.as_mut(), "somecoin", &mock_market); - deps.querier.set_redbank_params("somecoin", th_default_asset_params()); - - let mut block_time = mock_market.indexes_last_updated + 10000u64; - let initial_uncollateralized_loan_limit = Uint128::from(2400_u128); - - // Check that borrowers with uncollateralized debt cannot get an uncollateralized loan limit - let existing_borrower_addr = Addr::unchecked("existing_borrower"); - set_debt(deps.as_mut(), &existing_borrower_addr, "somecoin", 123u128, false); - - let update_limit_msg = ExecuteMsg::UpdateUncollateralizedLoanLimit { - denom: "somecoin".to_string(), - user: existing_borrower_addr.to_string(), - new_limit: initial_uncollateralized_loan_limit, - }; - let update_limit_env = mock_env_at_block_time(block_time); - let info = mock_info("owner", &[]); - let err = execute(deps.as_mut(), update_limit_env.clone(), info, update_limit_msg).unwrap_err(); - assert_eq!(err, ContractError::UserHasCollateralizedDebt {}); - - // Update uncollateralized loan limit for users without collateralized loans - let borrower_addr = Addr::unchecked("borrower"); - - let update_limit_msg = ExecuteMsg::UpdateUncollateralizedLoanLimit { - denom: "somecoin".to_string(), - user: borrower_addr.to_string(), - new_limit: initial_uncollateralized_loan_limit, - }; - - // update limit as unauthorized user, should fail - let info = mock_info("random", &[]); - let error_res = - execute(deps.as_mut(), update_limit_env.clone(), info, update_limit_msg.clone()) - .unwrap_err(); - assert_eq!(error_res, ContractError::Owner(NotOwner {})); - - // Update borrower limit as owner - let info = mock_info("owner", &[]); - execute(deps.as_mut(), update_limit_env, info, update_limit_msg).unwrap(); - - // check user's limit has been updated to the appropriate amount - let limit = - UNCOLLATERALIZED_LOAN_LIMITS.load(&deps.storage, (&borrower_addr, "somecoin")).unwrap(); - assert_eq!(limit, initial_uncollateralized_loan_limit); - - // check user's uncollateralized debt flag is true (limit > 0) - let debt = DEBTS.load(&deps.storage, (&borrower_addr, "somecoin")).unwrap(); - assert!(debt.uncollateralized); - - // Borrow asset - block_time += 1000_u64; - let initial_borrow_amount = initial_uncollateralized_loan_limit.multiply_ratio(1_u64, 2_u64); - let borrow_msg = ExecuteMsg::Borrow { - denom: "somecoin".to_string(), - amount: initial_borrow_amount, - recipient: None, - }; - let borrow_env = mock_env_at_block_time(block_time); - let info = mock_info("borrower", &[]); - let res = execute(deps.as_mut(), borrow_env, info, borrow_msg).unwrap(); - - let expected_params = th_get_expected_indices_and_rates( - &market_initial, - block_time, - TestUtilizationDeltaInfo { - less_liquidity: initial_borrow_amount, - more_debt: initial_borrow_amount, - ..Default::default() - }, - ); - - let market = MARKETS.load(deps.as_ref().storage, "somecoin").unwrap(); - let expected_borrow_amount_scaled = - get_scaled_debt_amount(initial_borrow_amount, &market, block_time).unwrap(); - - assert_eq!( - res.messages, - vec![SubMsg::new(CosmosMsg::Bank(BankMsg::Send { - to_address: borrower_addr.to_string(), - amount: coins(initial_borrow_amount.u128(), "somecoin") - }))] - ); - - assert_eq!( - res.attributes, - vec![ - attr("action", "borrow"), - attr("sender", "borrower"), - attr("recipient", "borrower"), - attr("denom", "somecoin"), - attr("amount", initial_borrow_amount), - attr("amount_scaled", expected_borrow_amount_scaled), - ] - ); - assert_eq!(res.events, vec![th_build_interests_updated_event("somecoin", &expected_params)]); - - // Check debt - assert!(has_debt_position(deps.as_ref(), &borrower_addr, "somecoin")); - - let debt = DEBTS.load(&deps.storage, (&borrower_addr, "somecoin")).unwrap(); - - let expected_debt_scaled_after_borrow = compute_scaled_amount( - initial_borrow_amount, - expected_params.borrow_index, - ScalingOperation::Ceil, - ) - .unwrap(); - - assert_eq!(expected_debt_scaled_after_borrow, debt.amount_scaled); - - // Borrow an amount less than initial limit but exceeding current limit - let remaining_limit = initial_uncollateralized_loan_limit - initial_borrow_amount; - let exceeding_limit = remaining_limit + Uint128::from(100_u64); - - block_time += 1000_u64; - let borrow_msg = ExecuteMsg::Borrow { - denom: "somecoin".to_string(), - amount: exceeding_limit, - recipient: None, - }; - let borrow_env = mock_env_at_block_time(block_time); - let info = mock_info("borrower", &[]); - let error_res = execute(deps.as_mut(), borrow_env, info, borrow_msg).unwrap_err(); - assert_eq!(error_res, ContractError::BorrowAmountExceedsUncollateralizedLoanLimit {}); - - // Borrow a valid amount given uncollateralized loan limit - block_time += 1000_u64; - let borrow_msg = ExecuteMsg::Borrow { - denom: "somecoin".to_string(), - amount: remaining_limit - Uint128::from(20_u128), - recipient: None, - }; - let borrow_env = mock_env_at_block_time(block_time); - let info = mock_info("borrower", &[]); - execute(deps.as_mut(), borrow_env, info, borrow_msg).unwrap(); - - // Set limit to zero - let update_allowance_msg = ExecuteMsg::UpdateUncollateralizedLoanLimit { - user: borrower_addr.to_string(), - denom: "somecoin".to_string(), - new_limit: Uint128::zero(), - }; - let allowance_env = mock_env_at_block_time(block_time); - let info = mock_info("owner", &[]); - let res_err = execute(deps.as_mut(), allowance_env, info, update_allowance_msg).unwrap_err(); - assert_eq!(res_err, ContractError::UserHasUncollateralizedDebt {}); - - // check user's allowance is different than zero - let allowance = - UNCOLLATERALIZED_LOAN_LIMITS.load(&deps.storage, (&borrower_addr, "somecoin")).unwrap(); - assert!(!allowance.is_zero()); - - // check user's uncollateralized debt flag is true (limit > 0) - let debt = DEBTS.load(&deps.storage, (&borrower_addr, "somecoin")).unwrap(); - assert!(debt.uncollateralized); -} - #[test] fn update_asset_collateral() { let mut deps = th_setup(&[]); diff --git a/contracts/red-bank/tests/tests/test_query.rs b/contracts/red-bank/tests/tests/test_query.rs index c853cd37..2cbf1037 100644 --- a/contracts/red-bank/tests/tests/test_query.rs +++ b/contracts/red-bank/tests/tests/test_query.rs @@ -1,12 +1,18 @@ use cosmwasm_std::{testing::mock_env, Addr, Decimal, Uint128}; -use mars_interest_rate::{get_scaled_debt_amount, get_underlying_debt_amount, SCALING_FACTOR}; +use cw_paginate::{Metadata, PaginationResponse}; +use mars_interest_rate::{ + get_scaled_debt_amount, get_underlying_debt_amount, get_underlying_liquidity_amount, + SCALING_FACTOR, +}; use mars_red_bank::{ query::{query_user_collaterals, query_user_collaterals_v2, query_user_debt, query_user_debts}, state::DEBTS, }; -use mars_types::red_bank::{Debt, Market, UserCollateralResponse, UserDebtResponse}; +use mars_types::red_bank::{ + Debt, Market, MarketV2Response, QueryMsg, UserCollateralResponse, UserDebtResponse, +}; -use super::helpers::{set_collateral, th_init_market, th_setup}; +use super::helpers::{set_collateral, th_init_market, th_query, th_setup}; #[test] fn query_collateral() { @@ -62,7 +68,7 @@ fn query_collateral() { amount_scaled: amount_2 * SCALING_FACTOR, amount: amount_2, enabled: true, - } + }, ] ); } @@ -306,3 +312,137 @@ fn query_user_asset_debt() { ); } } + +#[test] +fn query_single_market_v2() { + let mut deps = th_setup(&[]); + let env = mock_env(); + let market = th_init_market( + deps.as_mut(), + "uosmo", + &Market { + borrow_index: Decimal::from_atomics(11u128, 2).unwrap(), + borrow_rate: Decimal::from_atomics(123u128, 2).unwrap(), + debt_total_scaled: Uint128::new(500000u128), + liquidity_rate: Decimal::from_atomics(22u128, 2).unwrap(), + liquidity_index: Decimal::from_atomics(456u128, 2).unwrap(), + collateral_total_scaled: Uint128::new(1000000u128), + ..Default::default() + }, + ); + + let market_response: MarketV2Response = th_query( + deps.as_ref(), + QueryMsg::MarketV2 { + denom: market.denom.clone(), + }, + ); + + let debt_total_amount = + get_underlying_debt_amount(market.debt_total_scaled, &market, env.block.time.seconds()) + .unwrap(); + let collateral_total_amount = get_underlying_liquidity_amount( + market.collateral_total_scaled, + &market, + env.block.time.seconds(), + ) + .unwrap(); + let utilization_rate = Decimal::from_ratio(debt_total_amount, collateral_total_amount); + + assert_eq!( + market_response, + MarketV2Response { + debt_total_amount, + collateral_total_amount, + utilization_rate, + market, + } + ); +} + +#[test] +fn query_all_markets_v2() { + let mut deps = th_setup(&[]); + let env = mock_env(); + let market_1 = th_init_market( + deps.as_mut(), + "uosmo", + &Market { + borrow_index: Decimal::from_atomics(11u128, 2).unwrap(), + borrow_rate: Decimal::from_atomics(102u128, 2).unwrap(), + debt_total_scaled: Uint128::new(500000u128), + liquidity_rate: Decimal::from_atomics(66u128, 2).unwrap(), + liquidity_index: Decimal::from_atomics(101u128, 2).unwrap(), + collateral_total_scaled: Uint128::new(1000000u128), + ..Default::default() + }, + ); + + let market_2 = th_init_market( + deps.as_mut(), + "atom", + &Market { + borrow_index: Decimal::from_atomics(22u128, 2).unwrap(), + borrow_rate: Decimal::from_atomics(103u128, 2).unwrap(), + debt_total_scaled: Uint128::new(1000000u128), + liquidity_rate: Decimal::from_atomics(77u128, 2).unwrap(), + liquidity_index: Decimal::from_atomics(104u128, 2).unwrap(), + collateral_total_scaled: Uint128::new(1500000u128), + ..Default::default() + }, + ); + + let markets_response: PaginationResponse = th_query( + deps.as_ref(), + QueryMsg::MarketsV2 { + start_after: None, + limit: None, + }, + ); + + let debt_total_amount_1 = + get_underlying_debt_amount(market_1.debt_total_scaled, &market_1, env.block.time.seconds()) + .unwrap(); + let collateral_total_amount_1 = get_underlying_liquidity_amount( + market_1.collateral_total_scaled, + &market_1, + env.block.time.seconds(), + ) + .unwrap(); + let utilization_rate_1 = Decimal::from_ratio(debt_total_amount_1, collateral_total_amount_1); + let debt_total_amount_2 = + get_underlying_debt_amount(market_2.debt_total_scaled, &market_2, env.block.time.seconds()) + .unwrap(); + let collateral_total_amount_2 = get_underlying_liquidity_amount( + market_2.collateral_total_scaled, + &market_2, + env.block.time.seconds(), + ) + .unwrap(); + let utilization_rate_2 = Decimal::from_ratio(debt_total_amount_2, collateral_total_amount_2); + + let data = vec![ + MarketV2Response { + debt_total_amount: debt_total_amount_2, + collateral_total_amount: collateral_total_amount_2, + utilization_rate: utilization_rate_2, + market: market_2, + }, + MarketV2Response { + debt_total_amount: debt_total_amount_1, + collateral_total_amount: collateral_total_amount_1, + utilization_rate: utilization_rate_1, + market: market_1, + }, + ]; + + assert_eq!( + markets_response, + PaginationResponse { + data, + metadata: Metadata { + has_more: false, + }, + } + ); +} diff --git a/contracts/red-bank/tests/tests/test_withdraw.rs b/contracts/red-bank/tests/tests/test_withdraw.rs index ed5bf8b8..5d3623bc 100644 --- a/contracts/red-bank/tests/tests/test_withdraw.rs +++ b/contracts/red-bank/tests/tests/test_withdraw.rs @@ -15,7 +15,11 @@ use mars_red_bank::{ state::{COLLATERALS, DEBTS, MARKETS}, }; use mars_testing::{ - integration::mock_env::MockEnvBuilder, mock_env_at_block_time, MarsMockQuerier, + integration::{ + helpers::{osmo_asset_params, usdc_asset_params}, + mock_env::MockEnvBuilder, + }, + mock_env_at_block_time, MarsMockQuerier, }; use mars_types::{ address_provider::MarsAddressType, @@ -30,7 +34,7 @@ use super::helpers::{ has_collateral_position, set_collateral, th_build_interests_updated_event, th_default_asset_params, th_get_expected_indices_and_rates, th_setup, TestUtilizationDeltaInfo, }; -use crate::tests::helpers::{assert_err_with_str, osmo_asset_params, usdc_asset_params}; +use crate::tests::helpers::assert_err_with_str; struct TestSuite { deps: OwnedDeps, @@ -817,17 +821,6 @@ fn withdraw_for_credit_manager_works_during_liquidation() { ) .unwrap(); - // update credit line for credit manager - red_bank - .update_uncollateralized_loan_limit( - &mut mock_env, - &owner, - &credit_manager, - "uusdc", - Uint128::MAX, - ) - .unwrap(); - // credit manager should be able to borrow let cm_usdc_borrow_amt = 100000000u128; red_bank.borrow(&mut mock_env, &credit_manager, "uusdc", cm_usdc_borrow_amt).unwrap(); diff --git a/contracts/rewards-collector/base/src/contract.rs b/contracts/rewards-collector/base/src/contract.rs index 172b3ed3..04a8f4df 100644 --- a/contracts/rewards-collector/base/src/contract.rs +++ b/contracts/rewards-collector/base/src/contract.rs @@ -100,7 +100,18 @@ where amount, safety_fund_route, fee_collector_route, - } => self.swap_asset(deps, env, denom, amount, safety_fund_route, fee_collector_route), + safety_fund_min_receive, + fee_collector_min_receive, + } => self.swap_asset( + deps, + env, + denom, + amount, + safety_fund_route, + fee_collector_route, + safety_fund_min_receive, + fee_collector_min_receive, + ), ExecuteMsg::ClaimIncentiveRewards { start_after_collateral_denom, start_after_incentive_denom, @@ -227,7 +238,8 @@ where let withdraw_from_cm_msg = CosmosMsg::Wasm(WasmMsg::Execute { contract_addr: cm_addr.to_string(), msg: to_json_binary(&credit_manager::ExecuteMsg::UpdateCreditAccount { - account_id: account_id.clone(), + account_id: Some(account_id.clone()), + account_kind: None, actions, })?, funds: vec![], @@ -278,6 +290,8 @@ where amount: Option, safety_fund_route: Option, fee_collector_route: Option, + safety_fund_min_receive: Option, + fee_collector_min_receive: Option, ) -> ContractResult> { let cfg = self.config.load(deps.storage)?; @@ -308,7 +322,7 @@ where &mars_types::swapper::ExecuteMsg::::SwapExactIn { coin_in: coin_in_safety_fund.clone(), denom_out: cfg.safety_fund_denom, - slippage: cfg.slippage_tolerance, + min_receive: safety_fund_min_receive.ok_or(ContractError::InvalidMinReceive {reason: "required to pass 'safety_fund_min_receive' when swapped to safety fund denom".to_string()})?, route: safety_fund_route, }, )?, @@ -326,7 +340,7 @@ where &mars_types::swapper::ExecuteMsg::::SwapExactIn { coin_in: coin_in_fee_collector.clone(), denom_out: cfg.fee_collector_denom, - slippage: cfg.slippage_tolerance, + min_receive: fee_collector_min_receive.ok_or(ContractError::InvalidMinReceive {reason: "required to pass 'fee_collector_min_receive' when swapped to fee collector denom".to_string()})?, route: fee_collector_route, }, )?, @@ -339,8 +353,7 @@ where .add_attribute("action", "swap_asset") .add_attribute("denom", denom) .add_attribute("amount_safety_fund", amount_safety_fund) - .add_attribute("amount_fee_collector", amount_fee_collector) - .add_attribute("slippage_tolerance", cfg.slippage_tolerance.to_string())) + .add_attribute("amount_fee_collector", amount_fee_collector)) } pub fn distribute_rewards( diff --git a/contracts/rewards-collector/base/src/error.rs b/contracts/rewards-collector/base/src/error.rs index 9c0acad1..89c7ae6e 100644 --- a/contracts/rewards-collector/base/src/error.rs +++ b/contracts/rewards-collector/base/src/error.rs @@ -40,6 +40,11 @@ pub enum ContractError { reason: String, }, + #[error("Invalid min receive: {reason}")] + InvalidMinReceive { + reason: String, + }, + #[error("Invalid actions. Only Withdraw and WithdrawLiquidity is possible to pass for CreditManager")] InvalidActionsForCreditManager {}, diff --git a/contracts/rewards-collector/neutron/Cargo.toml b/contracts/rewards-collector/neutron/Cargo.toml index 1e47c092..7279acac 100644 --- a/contracts/rewards-collector/neutron/Cargo.toml +++ b/contracts/rewards-collector/neutron/Cargo.toml @@ -24,3 +24,6 @@ cw2 = { workspace = true } mars-rewards-collector-base = { workspace = true } mars-types = { workspace = true } neutron-sdk = { workspace = true } + +[dev-dependencies] +mars-testing = { workspace = true } diff --git a/contracts/rewards-collector/neutron/src/lib.rs b/contracts/rewards-collector/neutron/src/lib.rs index e1e33165..0c418ab3 100644 --- a/contracts/rewards-collector/neutron/src/lib.rs +++ b/contracts/rewards-collector/neutron/src/lib.rs @@ -1,5 +1,3 @@ -mod migrations; - use std::vec; use cosmwasm_std::{coin, Coin, CosmosMsg, Env, StdError}; @@ -11,6 +9,8 @@ use neutron_sdk::{ sudo::msg::RequestPacketTimeoutHeight, }; +pub mod migrations; + pub struct NeutronIbcMsgFactory {} impl IbcTransferMsg for NeutronIbcMsgFactory { diff --git a/contracts/rewards-collector/neutron/tests/all_tests.rs b/contracts/rewards-collector/neutron/tests/all_tests.rs new file mode 100644 index 00000000..14f00389 --- /dev/null +++ b/contracts/rewards-collector/neutron/tests/all_tests.rs @@ -0,0 +1 @@ +mod tests; diff --git a/contracts/rewards-collector/neutron/tests/tests/mod.rs b/contracts/rewards-collector/neutron/tests/tests/mod.rs new file mode 100644 index 00000000..c6a4f2bc --- /dev/null +++ b/contracts/rewards-collector/neutron/tests/tests/mod.rs @@ -0,0 +1 @@ +mod test_migration_v2; diff --git a/contracts/rewards-collector/neutron/tests/tests/test_migration_v2.rs b/contracts/rewards-collector/neutron/tests/tests/test_migration_v2.rs new file mode 100644 index 00000000..bbb56f2c --- /dev/null +++ b/contracts/rewards-collector/neutron/tests/tests/test_migration_v2.rs @@ -0,0 +1,70 @@ +use cosmwasm_std::{attr, testing::mock_env, Event}; +use cw2::{ContractVersion, VersionError}; +use mars_rewards_collector_base::ContractError; +use mars_rewards_collector_neutron::entry::migrate; +use mars_testing::mock_dependencies; +use mars_types::rewards_collector::NeutronMigrateMsg; + +#[test] +fn wrong_contract_name() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.2.0").unwrap(); + + let err = migrate(deps.as_mut(), mock_env(), NeutronMigrateMsg::V1_2_0ToV2_0_2 {}).unwrap_err(); + + assert_eq!( + err, + ContractError::Version(VersionError::WrongContract { + expected: "crates.io:mars-rewards-collector-neutron".to_string(), + found: "contract_xyz".to_string() + }) + ); +} + +#[test] +fn wrong_contract_version() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version( + deps.as_mut().storage, + "crates.io:mars-rewards-collector-neutron", + "4.1.0", + ) + .unwrap(); + + let err = migrate(deps.as_mut(), mock_env(), NeutronMigrateMsg::V1_2_0ToV2_0_2 {}).unwrap_err(); + + assert_eq!( + err, + ContractError::Version(VersionError::WrongVersion { + expected: "1.2.0".to_string(), + found: "4.1.0".to_string() + }) + ); +} + +#[test] +fn successful_migration() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version( + deps.as_mut().storage, + "crates.io:mars-rewards-collector-neutron", + "1.2.0", + ) + .unwrap(); + + let res = migrate(deps.as_mut(), mock_env(), NeutronMigrateMsg::V1_2_0ToV2_0_2 {}).unwrap(); + + assert_eq!(res.messages, vec![]); + assert_eq!(res.events, vec![] as Vec); + assert!(res.data.is_none()); + assert_eq!( + res.attributes, + vec![attr("action", "migrate"), attr("from_version", "1.2.0"), attr("to_version", "2.0.2")] + ); + + let new_contract_version = ContractVersion { + contract: "crates.io:mars-rewards-collector-neutron".to_string(), + version: "2.0.2".to_string(), + }; + assert_eq!(cw2::get_contract_version(deps.as_ref().storage).unwrap(), new_contract_version); +} diff --git a/contracts/rewards-collector/osmosis/tests/tests/test_swap.rs b/contracts/rewards-collector/osmosis/tests/tests/test_swap.rs index 4bee5e2a..c6cfe529 100644 --- a/contracts/rewards-collector/osmosis/tests/tests/test_swap.rs +++ b/contracts/rewards-collector/osmosis/tests/tests/test_swap.rs @@ -9,7 +9,7 @@ use mars_types::{ }; use osmosis_std::types::osmosis::twap::v1beta1::ArithmeticTwapToNowResponse; -use super::{helpers, helpers::mock_instantiate_msg}; +use super::helpers; #[test] fn swapping_asset() { @@ -67,6 +67,8 @@ fn swapping_asset() { to: cfg.fee_collector_denom.to_string(), }], })), + safety_fund_min_receive: Some(Uint128::new(1822)), + fee_collector_min_receive: Some(Uint128::new(4458)), }, ) .unwrap(); @@ -78,7 +80,7 @@ fn swapping_asset() { msg: to_json_binary(&swapper::ExecuteMsg::::SwapExactIn { coin_in: coin(safety_fund_input.u128(), "uatom"), denom_out: cfg.safety_fund_denom.to_string(), - slippage: cfg.slippage_tolerance, + min_receive: Uint128::new(1822), route: Some(SwapperRoute::Osmo(OsmoRoute { swaps: vec![OsmoSwap { pool_id: 12, @@ -97,7 +99,7 @@ fn swapping_asset() { msg: to_json_binary(&swapper::ExecuteMsg::::SwapExactIn { coin_in: coin(fee_collector_input.u128(), "uatom"), denom_out: cfg.fee_collector_denom.to_string(), - slippage: cfg.slippage_tolerance, + min_receive: Uint128::new(4458), route: Some(SwapperRoute::Osmo(OsmoRoute { swaps: vec![OsmoSwap { pool_id: 69, @@ -170,6 +172,8 @@ fn skipping_swap_if_denom_matches() { to: "umars".to_string(), }], })), + safety_fund_min_receive: Some(Uint128::new(1822)), + fee_collector_min_receive: Some(Uint128::new(4458)), }, ) .unwrap(); @@ -194,7 +198,7 @@ fn skipping_swap_if_denom_matches() { msg: to_json_binary(&swapper::ExecuteMsg::::SwapExactIn { coin_in: coin(926u128, "uusdc"), denom_out: "umars".to_string(), - slippage: mock_instantiate_msg().slippage_tolerance, + min_receive: Uint128::new(4458), route: Some(SwapperRoute::Osmo(OsmoRoute { swaps: vec![OsmoSwap { pool_id: 69, diff --git a/contracts/rewards-collector/osmosis/tests/tests/test_withdraw.rs b/contracts/rewards-collector/osmosis/tests/tests/test_withdraw.rs index cb0a91a8..5112a431 100644 --- a/contracts/rewards-collector/osmosis/tests/tests/test_withdraw.rs +++ b/contracts/rewards-collector/osmosis/tests/tests/test_withdraw.rs @@ -121,7 +121,8 @@ fn withdrawing_from_cm_successfully() { SubMsg::new(CosmosMsg::Wasm(WasmMsg::Execute { contract_addr: "credit_manager".to_string(), msg: to_json_binary(&credit_manager::ExecuteMsg::UpdateCreditAccount { - account_id, + account_id: Some(account_id), + account_kind: None, actions }) .unwrap(), diff --git a/contracts/swapper/astroport/Cargo.toml b/contracts/swapper/astroport/Cargo.toml index 6e7e43f4..dcde8812 100644 --- a/contracts/swapper/astroport/Cargo.toml +++ b/contracts/swapper/astroport/Cargo.toml @@ -22,7 +22,7 @@ library = [] osmosis-test-tube = ["cw-it/osmosis-test-tube", "mars-testing/osmosis-test-tube"] [dependencies] -astroport = { workspace = true } +astroport-v5 = { workspace = true } cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } cw2 = { workspace = true } @@ -30,6 +30,8 @@ mars-swapper-base = { workspace = true } mars-types = { workspace = true } [dev-dependencies] +# TODO: use only astroport-v5 once cw-it depends on new astroport +astroport = { workspace = true } anyhow = { workspace = true } cw-it = { workspace = true, features = ["astroport", "astroport-multi-test"] } mars-oracle-wasm = { workspace = true } diff --git a/contracts/swapper/astroport/src/contract.rs b/contracts/swapper/astroport/src/contract.rs index c1ed2555..b9ab70fc 100644 --- a/contracts/swapper/astroport/src/contract.rs +++ b/contracts/swapper/astroport/src/contract.rs @@ -1,15 +1,15 @@ use cosmwasm_std::{entry_point, Binary, Deps, DepsMut, Empty, Env, MessageInfo, Response}; use cw2::set_contract_version; -use mars_swapper_base::{ContractResult, SwapBase}; +use mars_swapper_base::{ContractError, ContractResult, SwapBase}; use mars_types::swapper::{ExecuteMsg, InstantiateMsg, QueryMsg}; -use crate::{config::AstroportConfig, route::AstroportRoute}; +use crate::{config::AstroportConfig, migrations, route::AstroportRoute}; /// The Astroport swapper contract inherits logic from the base swapper contract pub type AstroportSwap<'a> = SwapBase<'a, Empty, Empty, AstroportRoute, AstroportConfig>; -const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME"); -const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION"); +pub const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME"); +pub const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION"); #[cfg_attr(not(feature = "library"), entry_point)] pub fn instantiate( @@ -36,3 +36,8 @@ pub fn execute( pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> ContractResult { AstroportSwap::default().query(deps, env, msg) } + +#[cfg_attr(not(feature = "library"), entry_point)] +pub fn migrate(deps: DepsMut, _env: Env, _msg: Empty) -> Result { + migrations::v2_0_0::migrate(deps) +} diff --git a/contracts/swapper/astroport/src/lib.rs b/contracts/swapper/astroport/src/lib.rs index 8f91e420..47435d38 100644 --- a/contracts/swapper/astroport/src/lib.rs +++ b/contracts/swapper/astroport/src/lib.rs @@ -1,4 +1,5 @@ pub mod config; pub mod contract; pub mod helpers; +pub mod migrations; pub mod route; diff --git a/contracts/swapper/astroport/src/migrations/mod.rs b/contracts/swapper/astroport/src/migrations/mod.rs new file mode 100644 index 00000000..7592b6f1 --- /dev/null +++ b/contracts/swapper/astroport/src/migrations/mod.rs @@ -0,0 +1 @@ +pub mod v2_0_0; diff --git a/contracts/swapper/astroport/src/migrations/v2_0_0.rs b/contracts/swapper/astroport/src/migrations/v2_0_0.rs new file mode 100644 index 00000000..3dbff64c --- /dev/null +++ b/contracts/swapper/astroport/src/migrations/v2_0_0.rs @@ -0,0 +1,19 @@ +use cosmwasm_std::{DepsMut, Response}; +use cw2::{assert_contract_version, set_contract_version}; +use mars_swapper_base::ContractError; + +use crate::contract::{CONTRACT_NAME, CONTRACT_VERSION}; + +const FROM_VERSION: &str = "1.2.0"; + +pub fn migrate(deps: DepsMut) -> Result { + // make sure we're migrating the correct contract and from the correct version + assert_contract_version(deps.storage, &format!("crates.io:{CONTRACT_NAME}"), FROM_VERSION)?; + + set_contract_version(deps.storage, format!("crates.io:{CONTRACT_NAME}"), CONTRACT_VERSION)?; + + Ok(Response::new() + .add_attribute("action", "migrate") + .add_attribute("from_version", FROM_VERSION) + .add_attribute("to_version", CONTRACT_VERSION)) +} diff --git a/contracts/swapper/astroport/src/route.rs b/contracts/swapper/astroport/src/route.rs index 14b6308e..ed1c5a56 100644 --- a/contracts/swapper/astroport/src/route.rs +++ b/contracts/swapper/astroport/src/route.rs @@ -1,6 +1,6 @@ use std::{fmt, str::FromStr}; -use astroport::{asset::AssetInfo, pair::MAX_ALLOWED_SLIPPAGE, router::SwapOperation}; +use astroport_v5::{asset::AssetInfo, pair::MAX_ALLOWED_SLIPPAGE, router::SwapOperation}; use cosmwasm_schema::cw_serde; use cosmwasm_std::{ to_json_binary, Coin, CosmosMsg, Decimal, Empty, Env, QuerierWrapper, QueryRequest, StdError, @@ -196,10 +196,10 @@ impl Route for AstroportRoute { /// Build a CosmosMsg that swaps given an input denom and amount fn build_exact_in_swap_msg( &self, - querier: &QuerierWrapper, + _querier: &QuerierWrapper, _env: &Env, coin_in: &Coin, - slippage: Decimal, + min_receive: Uint128, ) -> ContractResult { let steps = &self.operations; @@ -207,15 +207,11 @@ impl Route for AstroportRoute { reason: "the route must contain at least one step".to_string(), })?; - // Calculate the minimum amount of output tokens to receive - let out_amount = self.estimate_out_amount(querier, coin_in)?; - let minimum_receive = Some((Decimal::one() - slippage) * out_amount); - let swap_msg: CosmosMsg = WasmMsg::Execute { contract_addr: self.router.clone(), - msg: to_json_binary(&astroport::router::ExecuteMsg::ExecuteSwapOperations { + msg: to_json_binary(&astroport_v5::router::ExecuteMsg::ExecuteSwapOperations { operations: self.operations.clone(), - minimum_receive, + minimum_receive: Some(min_receive), to: None, // If we set max_spread to None, Astroport will unwrap it as 0.5%, so instead we // set it to the max allowed since we control slippage via minimum_receive instead. diff --git a/contracts/swapper/astroport/tests/tests/mod.rs b/contracts/swapper/astroport/tests/tests/mod.rs index 79e484a5..db8c6648 100644 --- a/contracts/swapper/astroport/tests/tests/mod.rs +++ b/contracts/swapper/astroport/tests/tests/mod.rs @@ -1,4 +1,5 @@ mod test_config; +mod test_migration_v2; mod test_queries; mod test_routes; mod test_swap; diff --git a/contracts/swapper/astroport/tests/tests/test_migration_v2.rs b/contracts/swapper/astroport/tests/tests/test_migration_v2.rs new file mode 100644 index 00000000..b26c4889 --- /dev/null +++ b/contracts/swapper/astroport/tests/tests/test_migration_v2.rs @@ -0,0 +1,61 @@ +use cosmwasm_std::{attr, testing::mock_env, Empty, Event}; +use cw2::{ContractVersion, VersionError}; +use mars_swapper_astroport::contract::migrate; +use mars_swapper_base::ContractError; +use mars_testing::mock_dependencies; + +#[test] +fn wrong_contract_name() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version(deps.as_mut().storage, "contract_xyz", "1.2.0").unwrap(); + + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); + + assert_eq!( + err, + ContractError::Version(VersionError::WrongContract { + expected: "crates.io:mars-swapper-astroport".to_string(), + found: "contract_xyz".to_string() + }) + ); +} + +#[test] +fn wrong_contract_version() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-swapper-astroport", "4.1.0") + .unwrap(); + + let err = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap_err(); + + assert_eq!( + err, + ContractError::Version(VersionError::WrongVersion { + expected: "1.2.0".to_string(), + found: "4.1.0".to_string() + }) + ); +} + +#[test] +fn successful_migration() { + let mut deps = mock_dependencies(&[]); + cw2::set_contract_version(deps.as_mut().storage, "crates.io:mars-swapper-astroport", "1.2.0") + .unwrap(); + + let res = migrate(deps.as_mut(), mock_env(), Empty {}).unwrap(); + + assert_eq!(res.messages, vec![]); + assert_eq!(res.events, vec![] as Vec); + assert!(res.data.is_none()); + assert_eq!( + res.attributes, + vec![attr("action", "migrate"), attr("from_version", "1.2.0"), attr("to_version", "2.0.0")] + ); + + let new_contract_version = ContractVersion { + contract: "crates.io:mars-swapper-astroport".to_string(), + version: "2.0.0".to_string(), + }; + assert_eq!(cw2::get_contract_version(deps.as_ref().storage).unwrap(), new_contract_version); +} diff --git a/contracts/swapper/astroport/tests/tests/test_routes.rs b/contracts/swapper/astroport/tests/tests/test_routes.rs index 03da80c0..02dfabc2 100644 --- a/contracts/swapper/astroport/tests/tests/test_routes.rs +++ b/contracts/swapper/astroport/tests/tests/test_routes.rs @@ -1,4 +1,4 @@ -use astroport::{asset::AssetInfo, router::SwapOperation}; +use astroport_v5::{asset::AssetInfo, router::SwapOperation}; use cosmwasm_std::coin; use cw_it::{astroport::robot::AstroportTestRobot, robot::TestRobot, traits::CwItRunner}; use mars_swapper_astroport::route::AstroportRoute; diff --git a/contracts/swapper/astroport/tests/tests/test_swap.rs b/contracts/swapper/astroport/tests/tests/test_swap.rs index 8d7e2d62..2f3ebb92 100644 --- a/contracts/swapper/astroport/tests/tests/test_swap.rs +++ b/contracts/swapper/astroport/tests/tests/test_swap.rs @@ -57,8 +57,6 @@ const DEFAULT_LIQ: [u128; 2] = [10000000000000000u128, 10000000000000000u128]; #[test_case(PoolType::Stable { amp: 10u64 }, "uatom", &[100000000000,10000000000000], &[6,8], Decimal::percent(10), false; "stable 6:8 decimals, even adjusted pool")] #[test_case(PoolType::Stable { amp: 10u64 }, "uatom", &[1000000000000,100000000000], &[7,6], Decimal::percent(10), false; "stable 8:6 decimals, even adjusted pool")] #[test_case(PoolType::Stable { amp: 10u64 }, "uatom", &[100000000000,100000000000000000000000], &[6,18], Decimal::percent(5), false; "stable 6:18 decimals, even adjusted pool")] -#[test_case(PoolType::Xyk {}, "uatom", &DEFAULT_LIQ, &[6,6], Decimal::percent(11), false => panics ; "xyk max slippage exceeded")] -#[test_case(PoolType::Stable { amp: 10u64 }, "uatom", &DEFAULT_LIQ, &[6,6], Decimal::percent(11), false => panics ; "stable max slippage exceeded")] fn swap( pool_type: PoolType, denom_out: &str, @@ -149,13 +147,14 @@ fn swap( println!("Estimated amount: {}", estimated_amount); + let min_receive = estimated_amount * (Decimal::one() - slippage); let balance = robot - .swap(coin_in, denom_out, slippage, &alice, route) + .swap(coin_in, denom_out, min_receive, &alice, route) .query_native_token_balance(alice.address(), denom_out); let received_amount = balance - initial_balance; println!("Received amount: {}", received_amount); - assert!((received_amount) >= slippage * estimated_amount); + assert!(received_amount >= min_receive); } diff --git a/contracts/swapper/base/src/contract.rs b/contracts/swapper/base/src/contract.rs index 7fd8aa77..69948246 100644 --- a/contracts/swapper/base/src/contract.rs +++ b/contracts/swapper/base/src/contract.rs @@ -1,8 +1,8 @@ use std::marker::PhantomData; use cosmwasm_std::{ - to_json_binary, Addr, BankMsg, Binary, Coin, CosmosMsg, CustomMsg, CustomQuery, Decimal, Deps, - DepsMut, Env, MessageInfo, Response, WasmMsg, + to_json_binary, Addr, BankMsg, Binary, Coin, CosmosMsg, CustomMsg, CustomQuery, Deps, DepsMut, + Env, MessageInfo, Response, Uint128, WasmMsg, }; use cw_paginate::paginate_map; use cw_storage_plus::{Bound, Item, Map}; @@ -14,9 +14,6 @@ use mars_types::swapper::{ use crate::{Config, ContractError, ContractResult, Route}; -// Max allowed slippage percentage for swap -const MAX_SLIPPAGE_PERCENTAGE: u64 = 10; - pub struct SwapBase<'a, Q, M, R, C> where Q: CustomQuery, @@ -92,9 +89,9 @@ where ExecuteMsg::SwapExactIn { coin_in, denom_out, - slippage, + min_receive, route, - } => self.swap_exact_in(deps, env, info, coin_in, denom_out, slippage, route), + } => self.swap_exact_in(deps, env, info, coin_in, denom_out, min_receive, route), ExecuteMsg::TransferResult { recipient, denom_in, @@ -188,17 +185,9 @@ where info: MessageInfo, coin_in: Coin, denom_out: String, - slippage: Decimal, + min_receive: Uint128, route: Option, ) -> ContractResult> { - let max_slippage = Decimal::percent(MAX_SLIPPAGE_PERCENTAGE); - if slippage > max_slippage { - return Err(ContractError::MaxSlippageExceeded { - max_slippage, - slippage, - }); - } - // if route is not provided, use the default route from state let route = match route { Some(route) => { @@ -215,7 +204,7 @@ where })?, }; - let swap_msg = route.build_exact_in_swap_msg(&deps.querier, &env, &coin_in, slippage)?; + let swap_msg = route.build_exact_in_swap_msg(&deps.querier, &env, &coin_in, min_receive)?; // Check balance of result of swapper and send back result to sender let transfer_msg = CosmosMsg::Wasm(WasmMsg::Execute { @@ -235,7 +224,7 @@ where .add_attribute("denom_in", coin_in.denom) .add_attribute("amount_in", coin_in.amount) .add_attribute("denom_out", denom_out) - .add_attribute("slippage", slippage.to_string())) + .add_attribute("min_receive", min_receive.to_string())) } fn transfer_result( diff --git a/contracts/swapper/base/src/error.rs b/contracts/swapper/base/src/error.rs index 89cc45fd..b424b18d 100644 --- a/contracts/swapper/base/src/error.rs +++ b/contracts/swapper/base/src/error.rs @@ -1,5 +1,5 @@ use cosmwasm_std::{ - CheckedFromRatioError, CheckedMultiplyFractionError, CheckedMultiplyRatioError, Decimal, + CheckedFromRatioError, CheckedMultiplyFractionError, CheckedMultiplyRatioError, DecimalRangeExceeded, OverflowError, StdError, }; use mars_owner::OwnerError; @@ -51,12 +51,6 @@ pub enum ContractError { to: String, }, - #[error("Max slippage of {max_slippage} exceeded. Slippage is {slippage}")] - MaxSlippageExceeded { - max_slippage: Decimal, - slippage: Decimal, - }, - #[error("{0}")] Version(#[from] cw2::VersionError), } diff --git a/contracts/swapper/base/src/traits.rs b/contracts/swapper/base/src/traits.rs index a96b2729..a7cd57c3 100644 --- a/contracts/swapper/base/src/traits.rs +++ b/contracts/swapper/base/src/traits.rs @@ -1,6 +1,6 @@ use std::fmt::{Debug, Display}; -use cosmwasm_std::{Api, Coin, CosmosMsg, CustomMsg, CustomQuery, Decimal, Env, QuerierWrapper}; +use cosmwasm_std::{Api, Coin, CosmosMsg, CustomMsg, CustomQuery, Env, QuerierWrapper, Uint128}; use mars_types::swapper::{EstimateExactInSwapResponse, SwapperRoute}; use schemars::JsonSchema; use serde::{de::DeserializeOwned, Serialize}; @@ -30,7 +30,7 @@ where querier: &QuerierWrapper, env: &Env, coin_in: &Coin, - slippage: Decimal, + min_receive: Uint128, ) -> ContractResult>; /// Query to get the estimate result of a swap diff --git a/contracts/swapper/mock/src/contract.rs b/contracts/swapper/mock/src/contract.rs index be7cb6d2..7bc29a41 100644 --- a/contracts/swapper/mock/src/contract.rs +++ b/contracts/swapper/mock/src/contract.rs @@ -1,5 +1,5 @@ use cosmwasm_std::{ - coins, to_json_binary, BankMsg, Binary, Coin, CosmosMsg, Decimal, Deps, DepsMut, Empty, Env, + coins, to_json_binary, BankMsg, Binary, Coin, CosmosMsg, Deps, DepsMut, Empty, Env, MessageInfo, Response, StdError, StdResult, Uint128, }; use mars_types::swapper::{ @@ -36,9 +36,9 @@ pub fn execute( ExecuteMsg::SwapExactIn { coin_in, denom_out, - slippage, + min_receive, route, - } => swap_exact_in(deps, env, info, coin_in, denom_out, slippage, route), + } => swap_exact_in(deps, env, info, coin_in, denom_out, min_receive, route), ExecuteMsg::UpdateConfig { .. } => unimplemented!("not implemented"), @@ -78,7 +78,7 @@ pub fn swap_exact_in( info: MessageInfo, coin_in: Coin, denom_out: String, - _slippage: Decimal, + min_receive: Uint128, _route: Option, ) -> StdResult { let denom_in_balance = deps.querier.query_balance(env.contract.address, coin_in.denom)?; @@ -86,15 +86,21 @@ pub fn swap_exact_in( return Err(StdError::generic_err("Did not send funds")); } - if denom_out != "uosmo" { - return Err(StdError::generic_err("Mock swapper can only have uosmo as denom out")); + let transfer_amt = if denom_out == "uosmo" { + MOCK_SWAP_RESULT + } else { + coin_in.amount + }; + + if transfer_amt < min_receive { + return Err(StdError::generic_err("Min amount not reached")); } // This is dependent on the mock env to pre-fund this contract with uosmo coins // simulating a swap has taken place let transfer_msg = CosmosMsg::Bank(BankMsg::Send { to_address: info.sender.to_string(), - amount: coins(MOCK_SWAP_RESULT.u128(), denom_out), + amount: coins(transfer_amt.u128(), denom_out), }); Ok(Response::new().add_attribute("action", "transfer_result").add_message(transfer_msg)) diff --git a/contracts/swapper/osmosis/src/route.rs b/contracts/swapper/osmosis/src/route.rs index 586b6903..3d9f7b69 100644 --- a/contracts/swapper/osmosis/src/route.rs +++ b/contracts/swapper/osmosis/src/route.rs @@ -1,7 +1,7 @@ use std::fmt; use cosmwasm_schema::cw_serde; -use cosmwasm_std::{coin, BlockInfo, CosmosMsg, Decimal, Empty, Env, QuerierWrapper, Uint128}; +use cosmwasm_std::{coin, BlockInfo, CosmosMsg, Empty, Env, QuerierWrapper, Uint128}; use mars_osmosis::helpers::{query_arithmetic_twap_price, query_pool, CommonPoolData, Pool}; use mars_swapper_base::{ContractError, ContractResult, Route}; use mars_types::swapper::{EstimateExactInSwapResponse, SwapperRoute}; @@ -134,10 +134,10 @@ impl Route for OsmosisRoute { /// Build a CosmosMsg that swaps given an input denom and amount fn build_exact_in_swap_msg( &self, - querier: &QuerierWrapper, + _querier: &QuerierWrapper, env: &Env, coin_in: &cosmwasm_std::Coin, - slippage: Decimal, + min_receive: Uint128, ) -> ContractResult { let steps = &self.0; @@ -145,9 +145,6 @@ impl Route for OsmosisRoute { reason: "the route must contain at least one step".to_string(), })?; - let out_amount = query_out_amount(querier, &env.block, coin_in, steps)?; - let min_out_amount = (Decimal::one() - slippage) * out_amount; - let routes: Vec<_> = steps .iter() .map(|step| OsmosisSwapAmountInRoute { @@ -163,7 +160,7 @@ impl Route for OsmosisRoute { denom: coin_in.denom.clone(), amount: coin_in.amount.to_string(), }), - token_out_min_amount: min_out_amount.to_string(), + token_out_min_amount: min_receive.to_string(), } .into(); Ok(swap_msg) diff --git a/contracts/swapper/osmosis/tests/tests/test_swap.rs b/contracts/swapper/osmosis/tests/tests/test_swap.rs index db9289a3..222fd3fb 100644 --- a/contracts/swapper/osmosis/tests/tests/test_swap.rs +++ b/contracts/swapper/osmosis/tests/tests/test_swap.rs @@ -8,7 +8,9 @@ use mars_swapper_osmosis::{ config::OsmosisConfig, route::{OsmosisRoute, SwapAmountInRoute}, }; -use mars_types::swapper::{ExecuteMsg, OsmoRoute, OsmoSwap, SwapperRoute}; +use mars_types::swapper::{ + EstimateExactInSwapResponse, ExecuteMsg, OsmoRoute, OsmoSwap, QueryMsg, SwapperRoute, +}; use super::helpers::{ assert_err, instantiate_contract, query_balance, swap_to_create_twap_records, @@ -47,47 +49,6 @@ fn transfer_callback_only_internal() { ); } -#[test] -fn max_slippage_exeeded() { - let app = OsmosisTestApp::new(); - let wasm = Wasm::new(&app); - - let accs = app - .init_accounts(&[coin(1_000_000_000_000, "uosmo"), coin(1_000_000_000_000, "umars")], 2) - .unwrap(); - let owner = &accs[0]; - let other_guy = &accs[1]; - - let contract_addr = instantiate_contract(&wasm, owner); - - let res_err = wasm - .execute( - &contract_addr, - &ExecuteMsg::::SwapExactIn { - coin_in: coin(1_000_000, "umars"), - denom_out: "uosmo".to_string(), - slippage: Decimal::percent(11), - route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: 1, - to: "uosmo".to_string(), - }], - })), - }, - &[coin(1_000_000, "umars")], - other_guy, - ) - .unwrap_err(); - - assert_err( - res_err, - ContractError::MaxSlippageExceeded { - max_slippage: Decimal::percent(10), - slippage: Decimal::percent(11), - }, - ); -} - #[test] fn swap_exact_in_slippage_too_high() { let app = OsmosisTestApp::new(); @@ -116,6 +77,25 @@ fn swap_exact_in_slippage_too_high() { swap_to_create_twap_records(&app, &signer, pool_mars_osmo, coin(10u128, "umars"), "uosmo"); + let route = Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![OsmoSwap { + pool_id: pool_mars_osmo, + to: "uosmo".to_string(), + }], + })); + + let res: EstimateExactInSwapResponse = wasm + .query( + &contract_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(1_000_000, "umars"), + denom_out: "uosmo".to_string(), + route: route.clone(), + }, + ) + .unwrap(); + let min_receive = res.amount * (Decimal::one() - Decimal::percent(5)); + // whale does a huge trade let res_err = wasm .execute( @@ -123,13 +103,8 @@ fn swap_exact_in_slippage_too_high() { &ExecuteMsg::::SwapExactIn { coin_in: coin(1_000_000, "umars"), denom_out: "uosmo".to_string(), - slippage: Decimal::percent(5), - route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: pool_mars_osmo, - to: "uosmo".to_string(), - }], - })), + min_receive, + route, }, &[coin(1_000_000, "umars")], &whale, @@ -195,12 +170,24 @@ fn swap_exact_in_success_with_saved_route() { assert_eq!(osmo_balance, user_osmo_starting_amount); assert_eq!(mars_balance, 10_000); + let res: EstimateExactInSwapResponse = wasm + .query( + &contract_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(10_000, "umars"), + denom_out: "uosmo".to_string(), + route: None, + }, + ) + .unwrap(); + let min_receive = res.amount * (Decimal::one() - Decimal::percent(6)); + wasm.execute( &contract_addr, &ExecuteMsg::::SwapExactIn { coin_in: coin(10_000, "umars"), denom_out: "uosmo".to_string(), - slippage: Decimal::percent(6), + min_receive, route: None, }, &[coin(10_000, "umars")], @@ -257,18 +244,32 @@ fn swap_exact_in_success_with_provided_route() { assert_eq!(osmo_balance, user_osmo_starting_amount); assert_eq!(mars_balance, 10_000); + let route = Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![OsmoSwap { + pool_id: pool_mars_osmo, + to: "uosmo".to_string(), + }], + })); + + let res: EstimateExactInSwapResponse = wasm + .query( + &contract_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(10_000, "umars"), + denom_out: "uosmo".to_string(), + route: route.clone(), + }, + ) + .unwrap(); + let min_receive = res.amount * (Decimal::one() - Decimal::percent(6)); + wasm.execute( &contract_addr, &ExecuteMsg::::SwapExactIn { coin_in: coin(10_000, "umars"), denom_out: "uosmo".to_string(), - slippage: Decimal::percent(6), - route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: pool_mars_osmo, - to: "uosmo".to_string(), - }], - })), + min_receive, + route, }, &[coin(10_000, "umars")], &user, @@ -350,18 +351,32 @@ fn swap_exact_in_success_with_provided_route_when_saved_route_exists() { assert_eq!(osmo_balance, user_osmo_starting_amount); assert_eq!(mars_balance, 20_000); + let route = Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![OsmoSwap { + pool_id: pool_mars_osmo_provided, + to: "uosmo".to_string(), + }], + })); + + let res: EstimateExactInSwapResponse = wasm + .query( + &contract_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(10_000, "umars"), + denom_out: "uosmo".to_string(), + route: route.clone(), + }, + ) + .unwrap(); + let min_receive = res.amount * (Decimal::one() - Decimal::percent(6)); + wasm.execute( &contract_addr, &ExecuteMsg::::SwapExactIn { coin_in: coin(10_000, "umars"), denom_out: "uosmo".to_string(), - slippage: Decimal::percent(6), - route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: pool_mars_osmo_provided, - to: "uosmo".to_string(), - }], - })), + min_receive, + route, }, &[coin(10_000, "umars")], &user, @@ -380,6 +395,18 @@ fn swap_exact_in_success_with_provided_route_when_saved_route_exists() { assert_eq!(osmo_balance, 0); assert_eq!(mars_balance, 0); + let res: EstimateExactInSwapResponse = wasm + .query( + &contract_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(10_000, "umars"), + denom_out: "uosmo".to_string(), + route: None, + }, + ) + .unwrap(); + let min_receive = res.amount * (Decimal::one() - Decimal::percent(6)); + // Confirm that previous swap with provided routes uses correct route (pools). // Check if we swap with saved route we get different amount of tokens. wasm.execute( @@ -387,7 +414,7 @@ fn swap_exact_in_success_with_provided_route_when_saved_route_exists() { &ExecuteMsg::::SwapExactIn { coin_in: coin(10_000, "umars"), denom_out: "uosmo".to_string(), - slippage: Decimal::percent(6), + min_receive, route: None, }, &[coin(10_000, "umars")], diff --git a/contracts/v2-zapper/astroport/Cargo.toml b/contracts/v2-zapper/astroport/Cargo.toml new file mode 100644 index 00000000..f52785ef --- /dev/null +++ b/contracts/v2-zapper/astroport/Cargo.toml @@ -0,0 +1,36 @@ +[package] +name = "mars-zapper-astroport" +version = { workspace = true } +authors = { workspace = true } +license = { workspace = true } +edition = { workspace = true } +repository = { workspace = true } +homepage = { workspace = true } +documentation = { workspace = true } +keywords = { workspace = true } + +[lib] +crate-type = ["cdylib", "rlib"] + +[features] +# for quicker tests, cargo test --lib +# for more explicit tests, cargo test --features=backtraces +backtraces = ["cosmwasm-std/backtraces"] +library = [] + +[dependencies] +apollo-cw-asset = { workspace = true } +apollo-utils = { workspace = true } +astroport-v5 = { workspace = true } +cosmwasm-std = { workspace = true } +cw2 = { workspace = true } +cw-dex = { workspace = true } +mars-types = { workspace = true } +mars-zapper-base = { workspace = true } + +[dev-dependencies] +anyhow = { workspace = true } +cw-it = { workspace = true, features = ["astroport", "astroport-multi-test"] } +mars-oracle-wasm = { workspace = true } +mars-testing = { workspace = true, features = ["astroport"] } +test-case = { workspace = true } diff --git a/contracts/v2-zapper/astroport/src/contract.rs b/contracts/v2-zapper/astroport/src/contract.rs new file mode 100644 index 00000000..b65da870 --- /dev/null +++ b/contracts/v2-zapper/astroport/src/contract.rs @@ -0,0 +1,38 @@ +use cosmwasm_std::{entry_point, Binary, Deps, DepsMut, Env, MessageInfo, Response, StdResult}; +use cw2::set_contract_version; +use mars_types::zapper::{ExecuteMsg, InstantiateMsg, QueryMsg}; +use mars_zapper_base::{ContractError, ZapperBase}; + +use crate::lp_pool::AstroportLpPool; + +/// The Astroport zapper contract inherits logic from the base zapper contract +pub type AstroportZapper = ZapperBase; + +pub const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME"); +pub const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION"); + +#[cfg_attr(not(feature = "library"), entry_point)] +pub fn instantiate( + deps: DepsMut, + _env: Env, + _info: MessageInfo, + msg: InstantiateMsg, +) -> Result { + set_contract_version(deps.storage, format!("crates.io:{CONTRACT_NAME}"), CONTRACT_VERSION)?; + AstroportZapper::default().instantiate(deps, msg) +} + +#[cfg_attr(not(feature = "library"), entry_point)] +pub fn execute( + deps: DepsMut, + env: Env, + info: MessageInfo, + msg: ExecuteMsg, +) -> Result { + AstroportZapper::default().execute(deps, env, info, msg) +} + +#[cfg_attr(not(feature = "library"), entry_point)] +pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> StdResult { + AstroportZapper::default().query(deps, env, msg) +} diff --git a/contracts/v2-zapper/astroport/src/lib.rs b/contracts/v2-zapper/astroport/src/lib.rs new file mode 100644 index 00000000..d2b15554 --- /dev/null +++ b/contracts/v2-zapper/astroport/src/lib.rs @@ -0,0 +1,2 @@ +pub mod contract; +pub mod lp_pool; diff --git a/contracts/v2-zapper/astroport/src/lp_pool.rs b/contracts/v2-zapper/astroport/src/lp_pool.rs new file mode 100644 index 00000000..65d725e6 --- /dev/null +++ b/contracts/v2-zapper/astroport/src/lp_pool.rs @@ -0,0 +1,292 @@ +use std::str::FromStr; + +use apollo_cw_asset::{Asset, AssetInfo, AssetInfoBase, AssetList}; +use apollo_utils::assets::assert_only_native_coins; +use astroport_v5::{ + asset::{Asset as AstroAsset, AssetInfo as AstroAssetInfo, PairInfo}, + factory::PairType, + pair::{PoolResponse, QueryMsg as PairQueryMsg, MAX_ALLOWED_SLIPPAGE}, +}; +use cosmwasm_std::{ + to_json_binary, Addr, Coin, CosmosMsg, Decimal, Deps, Env, Event, QuerierWrapper, QueryRequest, + Response, StdError, StdResult, Uint128, WasmMsg, WasmQuery, +}; +use cw_dex::{traits::Pool, CwDexError}; +use mars_zapper_base::LpPool; + +impl LpPool for AstroportLpPool { + fn get_pool_for_lp_token( + deps: Deps, + lp_token_denom: &str, + ) -> Result, CwDexError> { + let pair_addr = extract_pair_address(&deps, lp_token_denom)?; + Ok(Self::new(deps, pair_addr).map(|p| { + let as_trait: Box = Box::new(p); + as_trait + })?) + } +} + +/// LP token denom structure: `factory/[pair_addr]/astroport/share` +fn extract_pair_address(deps: &Deps, lp_token_denom: &str) -> Result { + let parts: Vec<&str> = lp_token_denom.split('/').collect(); + if parts.len() == 4 && parts[0] == "factory" && parts[2] == "astroport" && parts[3] == "share" { + Ok(deps.api.addr_validate(parts[1])?) + } else { + Err(CwDexError::Std(StdError::generic_err("No pair address found in LP token denom"))) + } +} + +/// Represents an AMM pool on Astroport +pub struct AstroportLpPool { + /// The address of the associated pair contract + pub pair_addr: Addr, + /// The LP token denom + pub lp_token: String, + /// The assets of the pool + pub pool_assets: Vec, + /// The type of pool represented: Constant product (*Xyk*) or *Stableswap* + pub pair_type: PairType, +} + +impl AstroportLpPool { + /// Creates a new instance of `AstroportPool` + /// + /// Arguments: + /// - `pair_addr`: The address of the pair contract associated with the pool + pub fn new(deps: Deps, pair_addr: Addr) -> StdResult { + let pair_info = + deps.querier.query_wasm_smart::(pair_addr.clone(), &PairQueryMsg::Pair {})?; + + // Validate pair type. We only support XYK, stable swap, and PCL pools + match &pair_info.pair_type { + PairType::Custom(t) => match t.as_str() { + "concentrated" => Ok(()), + "astroport-pair-xyk-sale-tax" => Ok(()), + _ => Err(StdError::generic_err("Custom pair type is not supported")), + }, + _ => Ok(()), + }?; + + Ok(Self { + pair_addr, + lp_token: pair_info.liquidity_token, + pool_assets: pair_info.asset_infos, + pair_type: pair_info.pair_type, + }) + } + + /// Returns the matching pool given a LP token. + /// + /// Arguments: + /// - `lp_token`: Said LP token + /// - `pair_addr`: The address of the pair contract associated with the pool + pub fn get_pool_for_lp_token( + deps: Deps, + lp_token: &AstroAssetInfo, + pair_addr: Addr, + ) -> Result { + match lp_token { + AstroAssetInfo::NativeToken { + denom: _, + } => { + let pool = AstroportLpPool::new(deps, pair_addr)?; + Ok(pool) + } + AstroAssetInfo::Token { + contract_addr: _, + } => Err(CwDexError::NotLpToken {}), + } + } + + /// Returns the total supply of the associated LP token + pub fn query_lp_token_supply(&self, querier: &QuerierWrapper) -> StdResult { + let coin = querier.query_supply(self.lp_token.clone())?; + Ok(coin.amount) + } + + /// Queries the pair contract for the current pool state + pub fn query_pool_info(&self, querier: &QuerierWrapper) -> StdResult { + querier.query::(&QueryRequest::Wasm(WasmQuery::Smart { + contract_addr: self.pair_addr.to_string(), + msg: to_json_binary(&PairQueryMsg::Pool {})?, + })) + } +} + +impl Pool for AstroportLpPool { + fn provide_liquidity( + &self, + _deps: Deps, + _env: &Env, + assets: AssetList, + min_out: Uint128, + ) -> Result { + // all assets are native + let mut coins = assert_only_native_coins(&assets)?; + + // sort coins + coins.sort_by(|a, b| a.denom.to_string().cmp(&b.denom)); + + let astro_assets: Vec = coins.iter().map(|c| c.into()).collect(); + + // Create the provide liquidity message + let provide_liquidity_msg = CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: self.pair_addr.to_string(), + msg: to_json_binary(&astroport_v5::pair::ExecuteMsg::ProvideLiquidity { + assets: astro_assets, + slippage_tolerance: Some(Decimal::from_str(MAX_ALLOWED_SLIPPAGE)?), + auto_stake: Some(false), + receiver: None, + min_lp_to_receive: Some(min_out), + })?, + funds: coins, + }); + + let event = Event::new("provide_liquidity") + .add_attribute("pair_addr", &self.pair_addr) + .add_attribute("assets", format!("{:?}", assets)); + + Ok(Response::new().add_message(provide_liquidity_msg).add_event(event)) + } + + fn withdraw_liquidity( + &self, + _deps: Deps, + _env: &Env, + asset: Asset, + min_out: AssetList, + ) -> Result { + if let AssetInfoBase::Native(denom) = &asset.info { + let min_out_coins = assert_only_native_coins(&min_out)?; + let astro_assets: Vec = min_out_coins.iter().map(|c| c.into()).collect(); + + let withdraw_liquidity = CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: self.pair_addr.to_string(), + msg: to_json_binary(&astroport_v5::pair::ExecuteMsg::WithdrawLiquidity { + // This field is currently not used... + assets: vec![], + min_assets_to_receive: Some(astro_assets), + })?, + funds: vec![Coin::new(asset.amount.u128(), denom)], + }); + + let event = Event::new("withdraw_liquidity") + .add_attribute("pair_addr", &self.pair_addr) + .add_attribute("asset", format!("{:?}", asset)) + .add_attribute("token_amount", asset.amount); + + Ok(Response::new().add_message(withdraw_liquidity).add_event(event)) + } else { + Err(CwDexError::InvalidInAsset { + a: asset, + }) + } + } + + fn swap( + &self, + _deps: Deps, + _env: &Env, + _offer_asset: Asset, + _ask_asset_info: AssetInfo, + _min_out: Uint128, + ) -> Result { + unimplemented!("use cw-dex dependency instead") + } + + fn get_pool_liquidity(&self, deps: Deps) -> Result { + let resp = self.query_pool_info(&deps.querier)?; + Ok(from_astro_to_apollo_assets(&resp.assets)) + } + + fn simulate_provide_liquidity( + &self, + deps: Deps, + _env: &Env, + assets: AssetList, + ) -> Result { + let coins = assert_only_native_coins(&assets)?; + let astro_assets: Vec = coins.iter().map(|c| c.into()).collect(); + + let amount: Uint128 = deps.querier.query_wasm_smart( + self.pair_addr.to_string(), + &astroport_v5::pair::QueryMsg::SimulateProvide { + assets: astro_assets, + slippage_tolerance: Some(Decimal::from_str(MAX_ALLOWED_SLIPPAGE)?), + }, + )?; + + let lp_token = Asset { + info: AssetInfo::Native(self.lp_token.clone()), + amount, + }; + + Ok(lp_token) + } + + fn simulate_withdraw_liquidity( + &self, + deps: Deps, + lp_token: &Asset, + ) -> Result { + let assets: Vec = deps.querier.query_wasm_smart( + self.pair_addr.to_string(), + &astroport_v5::pair::QueryMsg::SimulateWithdraw { + lp_amount: lp_token.amount, + }, + )?; + + Ok(from_astro_to_apollo_assets(&assets)) + } + + fn simulate_swap( + &self, + _deps: Deps, + _offer_asset: Asset, + _ask_asset_info: AssetInfo, + ) -> StdResult { + unimplemented!("use cw-dex dependency instead") + } + + fn lp_token(&self) -> AssetInfo { + AssetInfoBase::Native(self.lp_token.clone()) + } + + fn pool_assets(&self, _deps: Deps) -> StdResult> { + Ok(from_astro_to_apollo_assets_info(&self.pool_assets)) + } +} + +fn from_astro_to_apollo_assets(assets: &Vec) -> AssetList { + let mut asset_list = AssetList::default(); + for a in assets { + // Add can fail only if we have duplicated assets. + // Save to unwrap because assets are not duplicated (error should never happen). + asset_list + .add(&Asset { + info: from_astro_to_apollo_asset_info(a.info.clone()), + amount: a.amount, + }) + .unwrap(); + } + + asset_list +} + +fn from_astro_to_apollo_assets_info(assets: &[AstroAssetInfo]) -> Vec { + assets.iter().map(|a| from_astro_to_apollo_asset_info(a.clone())).collect() +} + +/// Converts Astro to Apollo `AssetInfo`. Apollo crates have coverters from Astro to Apollo but we use +/// different astroport version so we can't use them directly. +fn from_astro_to_apollo_asset_info(asset_info: AstroAssetInfo) -> AssetInfo { + match asset_info { + AstroAssetInfo::NativeToken { + denom, + } => AssetInfo::Native(denom), + AstroAssetInfo::Token { + contract_addr, + } => AssetInfo::Cw20(contract_addr), + } +} diff --git a/contracts/vault/Cargo.toml b/contracts/vault/Cargo.toml new file mode 100644 index 00000000..873d90b5 --- /dev/null +++ b/contracts/vault/Cargo.toml @@ -0,0 +1,41 @@ +[package] +name = "mars-vault" +version = { workspace = true } +authors = { workspace = true } +license = { workspace = true } +edition = { workspace = true } +repository = { workspace = true } +homepage = { workspace = true } +documentation = { workspace = true } +keywords = { workspace = true } + +[lib] +crate-type = ["cdylib", "rlib"] +doctest = false + +[features] +# for quicker tests, cargo test --lib +# for more explicit tests, cargo test --features=backtraces +backtraces = ["cosmwasm-std/backtraces"] +library = [] + +[dependencies] +cosmwasm-schema = { workspace = true } +cosmwasm-std = { workspace = true, features = ["cosmwasm_1_1"] } +cw2 = { workspace = true } +cw-storage-plus = { workspace = true } +cw-utils = { workspace = true } +cw-paginate = { workspace = true } +cw-vault-standard = { workspace = true } +mars-owner = { workspace = true } +mars-types = { workspace = true } +mars-utils = { workspace = true } +thiserror = { workspace = true } +osmosis-std = { workspace = true } + +[dev-dependencies] +anyhow = { workspace = true } +cw-multi-test = { workspace = true, features = ["cosmwasm_1_1"] } +mars-mock-oracle = { workspace = true } +mars-testing = { workspace = true } +test-case = { workspace = true } diff --git a/contracts/vault/examples/schema.rs b/contracts/vault/examples/schema.rs new file mode 100644 index 00000000..ed42487e --- /dev/null +++ b/contracts/vault/examples/schema.rs @@ -0,0 +1,10 @@ +use cosmwasm_schema::write_api; +use mars_vault::msg::{ExecuteMsg, InstantiateMsg, QueryMsg}; + +fn main() { + write_api! { + instantiate: InstantiateMsg, + execute: ExecuteMsg, + query: QueryMsg, + } +} diff --git a/contracts/vault/src/contract.rs b/contracts/vault/src/contract.rs new file mode 100644 index 00000000..944f885b --- /dev/null +++ b/contracts/vault/src/contract.rs @@ -0,0 +1,114 @@ +use cosmwasm_std::{ + entry_point, to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Response, +}; +use cw_vault_standard::{VaultInfoResponse, VaultStandardInfoResponse}; + +use crate::{ + error::ContractResult, + execute::{ + bind_credit_manager_account, deposit, redeem, total_base_tokens_in_account, unlock, + withdraw_performance_fee, + }, + instantiate::init, + msg::{ExecuteMsg, ExtensionExecuteMsg, ExtensionQueryMsg, InstantiateMsg, QueryMsg}, + query::{ + convert_to_base_tokens, convert_to_vault_tokens, query_all_unlocks, query_user_unlocks, + query_vault_info, + }, + state::{BASE_TOKEN, PERFORMANCE_FEE_STATE, VAULT_TOKEN}, +}; + +pub const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME"); +pub const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION"); + +const VAULT_STANDARD_VERSION: u16 = 1; + +#[entry_point] +pub fn instantiate( + deps: DepsMut, + env: Env, + info: MessageInfo, + msg: InstantiateMsg, +) -> ContractResult { + // initialize contract version info + cw2::set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?; + + init(deps, env, info, msg) +} + +#[entry_point] +pub fn execute( + deps: DepsMut, + env: Env, + info: MessageInfo, + msg: ExecuteMsg, +) -> ContractResult { + match msg { + ExecuteMsg::Deposit { + amount: _, // don't care about amount, use funds data + recipient, + } => deposit(deps, env, &info, recipient), + ExecuteMsg::Redeem { + recipient, + amount: _, // don't care about amount, use funds data + } => redeem(deps, env, &info, recipient), + ExecuteMsg::VaultExtension(msg) => match msg { + ExtensionExecuteMsg::BindCreditManagerAccount { + account_id, + } => bind_credit_manager_account(deps, &info, account_id), + ExtensionExecuteMsg::Unlock { + amount, + } => unlock(deps, env, &info, amount), + ExtensionExecuteMsg::WithdrawPerformanceFee { + new_performance_fee_config, + } => withdraw_performance_fee(deps, env, &info, new_performance_fee_config), + }, + } +} + +#[entry_point] +pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> ContractResult { + match msg { + QueryMsg::VaultStandardInfo {} => to_json_binary(&VaultStandardInfoResponse { + version: VAULT_STANDARD_VERSION, + extensions: vec![], + }), + QueryMsg::Info {} => to_json_binary(&VaultInfoResponse { + base_token: BASE_TOKEN.load(deps.storage)?, + vault_token: VAULT_TOKEN.load(deps.storage)?.to_string(), + }), + QueryMsg::PreviewDeposit { + amount, + } => to_json_binary(&convert_to_vault_tokens(deps, amount)?), + QueryMsg::PreviewRedeem { + amount, + } => to_json_binary(&convert_to_base_tokens(deps, amount)?), + QueryMsg::TotalAssets {} => to_json_binary(&total_base_tokens_in_account(deps)?), + QueryMsg::TotalVaultTokenSupply {} => { + to_json_binary(&VAULT_TOKEN.load(deps.storage)?.query_total_supply(deps)?) + } + QueryMsg::ConvertToShares { + amount, + } => to_json_binary(&convert_to_vault_tokens(deps, amount)?), + QueryMsg::ConvertToAssets { + amount, + } => to_json_binary(&convert_to_base_tokens(deps, amount)?), + QueryMsg::VaultExtension(msg) => match msg { + ExtensionQueryMsg::VaultInfo {} => to_json_binary(&query_vault_info(deps)?), + ExtensionQueryMsg::UserUnlocks { + user_address, + } => { + let user_addr = deps.api.addr_validate(&user_address)?; + to_json_binary(&query_user_unlocks(deps, user_addr)?) + } + ExtensionQueryMsg::AllUnlocks { + start_after, + limit, + } => to_json_binary(&query_all_unlocks(deps, start_after, limit)?), + ExtensionQueryMsg::PerformanceFeeState {} => { + to_json_binary(&PERFORMANCE_FEE_STATE.load(deps.storage)?) + } + }, + } + .map_err(Into::into) +} diff --git a/contracts/vault/src/error.rs b/contracts/vault/src/error.rs new file mode 100644 index 00000000..630b6d56 --- /dev/null +++ b/contracts/vault/src/error.rs @@ -0,0 +1,92 @@ +use cosmwasm_std::{ + CheckedFromRatioError, CheckedMultiplyFractionError, CheckedMultiplyRatioError, Decimal, + DecimalRangeExceeded, DivideByZeroError, OverflowError, StdError, +}; +use cw_utils::PaymentError; +use mars_owner::OwnerError; +use mars_utils::error::ValidationError; + +#[derive(Debug, PartialEq, thiserror::Error)] +pub enum ContractError { + #[error(transparent)] + Std(#[from] StdError), + + #[error(transparent)] + Overflow(#[from] OverflowError), + + #[error(transparent)] + CheckedFromRatio(#[from] CheckedFromRatioError), + + #[error(transparent)] + CheckedMultiplyRatio(#[from] CheckedMultiplyRatioError), + + #[error(transparent)] + CheckedMultiplyFraction(#[from] CheckedMultiplyFractionError), + + #[error(transparent)] + DecimalRangeExceeded(#[from] DecimalRangeExceeded), + + #[error(transparent)] + DivideByZeroError(#[from] DivideByZeroError), + + #[error(transparent)] + Owner(#[from] OwnerError), + + #[error(transparent)] + Payment(#[from] PaymentError), + + #[error(transparent)] + Validation(#[from] ValidationError), + + #[error("{0}")] + Generic(String), + + #[error("Caller is not the Credit Manager contract")] + NotCreditManager {}, + + #[error("Vault account not found")] + VaultAccountNotFound {}, + + #[error("Vault account exists. Only one binding allowed between Credit Manager and Vault contracts.")] + VaultAccountExists {}, + + #[error("{reason:?}")] + InvalidAmount { + reason: String, + }, + + #[error("Unlocked positions not found")] + UnlockedPositionsNotFound {}, + + #[error("{user:?} is not the owner of {account_id:?}")] + NotTokenOwner { + user: String, + account_id: String, + }, + + #[error("Invalid performance fee, expected less than {expected:?}, got {actual:?}")] + InvalidPerformanceFee { + expected: Decimal, + actual: Decimal, + }, + + #[error("Zero performance fee")] + ZeroPerformanceFee {}, + + #[error("Withdrawal interval not passed")] + WithdrawalIntervalNotPassed {}, + + #[error("Invalid cooldown period, expected value greater than 0")] + ZeroCooldownPeriod, + + #[error("Contract owner not set")] + NoOwner {}, +} + +pub type ContractResult = Result; + +impl From<&str> for ContractError { + fn from(val: &str) -> Self { + ContractError::Generic(val.into()) + } +} diff --git a/contracts/vault/src/execute.rs b/contracts/vault/src/execute.rs new file mode 100644 index 00000000..85aa8bce --- /dev/null +++ b/contracts/vault/src/execute.rs @@ -0,0 +1,490 @@ +use std::cmp::min; + +use cosmwasm_std::{ + attr, ensure_eq, to_json_binary, BankMsg, Coin, CosmosMsg, Deps, DepsMut, Env, Event, + MessageInfo, Order, Response, StdError, StdResult, Uint128, WasmMsg, +}; +use mars_types::{ + adapters::{account_nft::AccountNftBase, health::HealthContractBase, oracle::OracleBase}, + credit_manager::{self, Action, ActionAmount, ActionCoin, ConfigResponse, Positions, QueryMsg}, + health::AccountKind, + oracle::ActionKind, +}; + +use crate::{ + error::ContractError, + msg::UnlockState, + performance_fee::PerformanceFeeConfig, + state::{ + BASE_TOKEN, COOLDOWN_PERIOD, CREDIT_MANAGER, OWNER, PERFORMANCE_FEE_CONFIG, + PERFORMANCE_FEE_STATE, UNLOCKS, VAULT_ACC_ID, VAULT_TOKEN, + }, + vault_token::{calculate_base_tokens, calculate_vault_tokens}, +}; + +pub fn bind_credit_manager_account( + deps: DepsMut, + info: &MessageInfo, + account_id: String, +) -> Result { + let credit_manager = CREDIT_MANAGER.load(deps.storage)?; + ensure_eq!(info.sender, credit_manager, ContractError::NotCreditManager {}); + + // only one binding allowed + let vault_acc_id = VAULT_ACC_ID.may_load(deps.storage)?; + if vault_acc_id.is_some() { + return Err(ContractError::VaultAccountExists {}); + } + + // check if contract owner is the owner of account id + let owner = OWNER.current(deps.storage)?.ok_or(ContractError::NoOwner {})?; + assert_account_ownership(deps.as_ref(), &credit_manager, &account_id, owner.as_str())?; + + VAULT_ACC_ID.save(deps.storage, &account_id)?; + + let event = Event::new("bind_credit_manager_account") + .add_attributes(vec![attr("account_id", account_id)]); + Ok(Response::new().add_event(event)) +} + +pub fn deposit( + deps: DepsMut, + env: Env, + info: &MessageInfo, + recipient: Option, +) -> Result { + let cm_addr = CREDIT_MANAGER.load(deps.storage)?; + let Some(vault_acc_id) = VAULT_ACC_ID.may_load(deps.storage)? else { + // bind credit manager account first + return Err(ContractError::VaultAccountNotFound {}); + }; + + // unwrap recipient or use caller's address + let vault_token_recipient = + recipient.map_or(Ok(info.sender.clone()), |r| deps.api.addr_validate(&r))?; + + // load state + let base_token = BASE_TOKEN.load(deps.storage)?.to_string(); + let vault_token = VAULT_TOKEN.load(deps.storage)?; + + // check that only the expected base token was sent + let amount = cw_utils::must_pay(info, &base_token)?; + + // calculate vault tokens + let total_base_tokens = total_base_tokens_in_account(deps.as_ref())?; + let vault_token_supply = vault_token.query_total_supply(deps.as_ref())?; + + let mut performance_fee_state = PERFORMANCE_FEE_STATE.load(deps.storage)?; + let performance_fee_config = PERFORMANCE_FEE_CONFIG.load(deps.storage)?; + performance_fee_state.update_fee_and_pnl( + env.block.time.seconds(), + total_base_tokens, + &performance_fee_config, + )?; + performance_fee_state.update_base_tokens_after_deposit(total_base_tokens, amount)?; + PERFORMANCE_FEE_STATE.save(deps.storage, &performance_fee_state)?; + let total_base_tokens_without_fee = + total_base_tokens.checked_sub(performance_fee_state.accumulated_fee)?; + + let vault_tokens = + calculate_vault_tokens(amount, total_base_tokens_without_fee, vault_token_supply)?; + + let coin_deposited = Coin { + denom: base_token, + amount, + }; + + let deposit_to_cm = CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: cm_addr.to_string(), + msg: to_json_binary(&credit_manager::ExecuteMsg::UpdateCreditAccount { + account_id: Some(vault_acc_id.clone()), + account_kind: None, + actions: vec![Action::Deposit(coin_deposited.clone())], + })?, + funds: vec![coin_deposited], + }); + + let event = Event::new("deposit").add_attributes(vec![ + attr("action", "mint_vault_tokens"), + attr("recipient", vault_token_recipient.to_string()), + attr("vault_tokens_minted", vault_tokens), + ]); + + Ok(vault_token + .mint(deps, &env, &vault_token_recipient, vault_tokens)? + .add_message(deposit_to_cm) + .add_event(event)) +} + +pub fn unlock( + deps: DepsMut, + env: Env, + info: &MessageInfo, + amount: Uint128, +) -> Result { + if VAULT_ACC_ID.may_load(deps.storage)?.is_none() { + // bind credit manager account first + return Err(ContractError::VaultAccountNotFound {}); + }; + + // cannot unlock zero vault tokens + if amount.is_zero() { + return Err(ContractError::InvalidAmount { + reason: "provided zero vault tokens".to_string(), + }); + } + + // load state + let vault_token = VAULT_TOKEN.load(deps.storage)?; + + // Cannot unlock more than total vault token supply. + let vault_token_supply = vault_token.query_total_supply(deps.as_ref())?; + if amount > vault_token_supply { + return Err(ContractError::InvalidAmount { + reason: "amount exceeds total vault token supply".to_string(), + }); + } + + // add new unlock request + let current_time = env.block.time.seconds(); + let cooldown_period = COOLDOWN_PERIOD.load(deps.storage)?; + let cooldown_end = current_time + cooldown_period; + UNLOCKS.save( + deps.storage, + (info.sender.as_str(), current_time), + &UnlockState { + created_at: current_time, + cooldown_end, + vault_tokens: amount, + }, + )?; + + Ok(Response::new() + .add_attribute("action", "unlock") + .add_attribute("vault_tokens_unlocked", amount) + .add_attribute("created_at", current_time.to_string()) + .add_attribute("cooldown_end", cooldown_end.to_string())) +} + +pub fn redeem( + deps: DepsMut, + env: Env, + info: &MessageInfo, + recipient: Option, +) -> Result { + let Some(vault_acc_id) = VAULT_ACC_ID.may_load(deps.storage)? else { + // bind credit manager account first + return Err(ContractError::VaultAccountNotFound {}); + }; + + // unwrap recipient or use caller's address + let recipient = recipient.map_or(Ok(info.sender.clone()), |x| deps.api.addr_validate(&x))?; + + // load state + let base_token = BASE_TOKEN.load(deps.storage)?; + let vault_token = VAULT_TOKEN.load(deps.storage)?; + + // check that only the expected vault token was sent + let mut vault_tokens = cw_utils::must_pay(info, &vault_token.to_string())?; + + let unlocks = UNLOCKS + .prefix(recipient.as_str()) + .range(deps.storage, None, None, Order::Ascending) + .map(|item| { + let (_created_at, unlock) = item?; + Ok(unlock) + }) + .collect::>>()?; + + // find all unlocked positions + let current_time = env.block.time.seconds(); + let (unlocked, _unlocking): (Vec<_>, Vec<_>) = + unlocks.into_iter().partition(|us| us.cooldown_end <= current_time); + + // cannot withdraw when there is zero unlocked positions + if unlocked.is_empty() { + return Err(ContractError::UnlockedPositionsNotFound {}); + } + + // remove unlocked positions + for unlock in &unlocked { + UNLOCKS.remove(deps.storage, (recipient.as_str(), unlock.created_at)); + } + + // compute the total vault tokens to be withdrawn + let total_unlocked_vault_tokens = + unlocked.into_iter().map(|us| us.vault_tokens).sum::(); + + // check that the the provided vault tokens is equal or greater than total unlocked vault tokens + if vault_tokens < total_unlocked_vault_tokens { + return Err(ContractError::InvalidAmount { + reason: "provided vault tokens is less than total unlocked amount".to_string(), + }); + } + + let refund_vault_tokens = vault_tokens - total_unlocked_vault_tokens; + vault_tokens = min(vault_tokens, total_unlocked_vault_tokens); + + let total_base_tokens = total_base_tokens_in_account(deps.as_ref())?; + + let mut performance_fee_state = PERFORMANCE_FEE_STATE.load(deps.storage)?; + let performance_fee_config = PERFORMANCE_FEE_CONFIG.load(deps.storage)?; + performance_fee_state.update_fee_and_pnl( + env.block.time.seconds(), + total_base_tokens, + &performance_fee_config, + )?; + + let total_base_tokens_without_fee = + total_base_tokens.checked_sub(performance_fee_state.accumulated_fee)?; + + // calculate base tokens based on the given amount of vault tokens + let vault_token_supply = vault_token.query_total_supply(deps.as_ref())?; + let base_tokens_to_redeem = + calculate_base_tokens(vault_tokens, total_base_tokens_without_fee, vault_token_supply)?; + + performance_fee_state + .update_base_tokens_after_redeem(total_base_tokens, base_tokens_to_redeem)?; + + PERFORMANCE_FEE_STATE.save(deps.storage, &performance_fee_state)?; + + let withdraw_from_cm = prepare_credit_manager_msg( + deps.as_ref(), + base_token, + base_tokens_to_redeem, + recipient.to_string(), + vault_acc_id, + )?; + + let mut response = vault_token.burn(deps, &env, vault_tokens)?.add_message(withdraw_from_cm); + + let mut event = Event::new("redeem").add_attributes(vec![ + attr("action", "burn_vault_tokens"), + attr("recipient", recipient.clone()), + attr("vault_tokens_burned", vault_tokens), + attr("base_tokens_redeemed", base_tokens_to_redeem), + ]); + + if !refund_vault_tokens.is_zero() { + let transfer_msg = CosmosMsg::Bank(BankMsg::Send { + to_address: info.sender.to_string(), + amount: vec![Coin { + denom: vault_token.to_string(), + amount: refund_vault_tokens, + }], + }); + response = response.add_message(transfer_msg); + event = event.add_attribute("vault_tokens_refunded", refund_vault_tokens); + } + + Ok(response.add_event(event)) +} + +fn prepare_credit_manager_msg( + deps: Deps, + base_token: String, + withdraw_amt: Uint128, + withdraw_recipient: String, + vault_acc_id: String, +) -> Result { + let cm_addr = CREDIT_MANAGER.load(deps.storage)?; + + let mut actions = prepare_lend_and_borrow_actions( + deps, + base_token.clone(), + withdraw_amt, + cm_addr.clone(), + vault_acc_id.clone(), + )?; + actions.push(Action::WithdrawToWallet { + coin: ActionCoin { + denom: base_token, + amount: ActionAmount::Exact(withdraw_amt), + }, + recipient: withdraw_recipient.to_string(), + }); + let withdraw_from_cm = CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: cm_addr.to_string(), + msg: to_json_binary(&credit_manager::ExecuteMsg::UpdateCreditAccount { + account_id: Some(vault_acc_id.clone()), + account_kind: None, + actions, + })?, + funds: vec![], + }); + Ok(withdraw_from_cm) +} + +/// Prepare lend and borrow actions to redeem the desired base token balance. +/// If there is enough base token deposited, no actions are needed. +/// If there is not enough base token deposited, it will try to reclaim the lent base token first. +/// If there is still not enough base token deposited, it will borrow the remaining amount. +fn prepare_lend_and_borrow_actions( + deps: Deps, + base_token: String, + withraw_amount: Uint128, + cm_addr: String, + vault_acc_id: String, +) -> Result, ContractError> { + let positions: Positions = deps.querier.query_wasm_smart( + cm_addr, + &QueryMsg::Positions { + account_id: vault_acc_id, + }, + )?; + let base_token_deposit = positions + .deposits + .iter() + .filter(|d| d.denom == base_token) + .map(|d| d.amount) + .sum::(); + + if withraw_amount <= base_token_deposit { + return Ok(vec![]); + } + + let base_token_lend = + positions.lends.iter().filter(|d| d.denom == base_token).map(|d| d.amount).sum::(); + + let mut actions = vec![]; + + let mut left_amount_to_withdraw = withraw_amount - base_token_deposit; + if !base_token_lend.is_zero() { + if left_amount_to_withdraw <= base_token_lend { + actions.push(Action::Reclaim(ActionCoin { + denom: base_token.clone(), + amount: credit_manager::ActionAmount::Exact(left_amount_to_withdraw), + })); + + return Ok(actions); + } else { + // reclaim all lent base token + actions.push(Action::Reclaim(ActionCoin { + denom: base_token.clone(), + amount: credit_manager::ActionAmount::Exact(base_token_lend), + })); + + left_amount_to_withdraw -= base_token_lend + } + } + + actions.push(Action::Borrow(Coin { + denom: base_token.clone(), + amount: left_amount_to_withdraw, + })); + + Ok(actions) +} + +pub fn total_base_tokens_in_account(deps: Deps) -> Result { + let cm_addr = CREDIT_MANAGER.load(deps.storage)?; + let vault_acc_id = VAULT_ACC_ID.load(deps.storage)?; + + let cm_acc_kind: AccountKind = deps.querier.query_wasm_smart( + cm_addr.clone(), + &QueryMsg::AccountKind { + account_id: vault_acc_id.clone(), + }, + )?; + + let base_token = BASE_TOKEN.load(deps.storage)?; + + let config: ConfigResponse = deps.querier.query_wasm_smart(cm_addr, &QueryMsg::Config {})?; + + let health = HealthContractBase::new(deps.api.addr_validate(&config.health_contract)?); + let health_values = health.query_health_values( + &deps.querier, + &vault_acc_id, + cm_acc_kind, + ActionKind::Default, + )?; + let net_value = + health_values.total_collateral_value.checked_sub(health_values.total_debt_value)?; + + let oracle = OracleBase::new(deps.api.addr_validate(&config.oracle)?); + let base_token_price = + oracle.query_price(&deps.querier, &base_token, ActionKind::Default)?.price; + + let base_token_in_account = net_value.checked_div_floor(base_token_price)?; + Ok(base_token_in_account) +} + +pub fn withdraw_performance_fee( + deps: DepsMut, + env: Env, + info: &MessageInfo, + new_performance_fee_config: Option, +) -> Result { + let Some(vault_acc_id) = VAULT_ACC_ID.may_load(deps.storage)? else { + // bind credit manager account first + return Err(ContractError::VaultAccountNotFound {}); + }; + + let cm_addr = CREDIT_MANAGER.load(deps.storage)?; + assert_account_ownership(deps.as_ref(), &cm_addr, &vault_acc_id, info.sender.as_str())?; + let vault_acc_owner_addr = info.sender.to_string(); + + let total_base_tokens = total_base_tokens_in_account(deps.as_ref())?; + + let mut performance_fee_state = PERFORMANCE_FEE_STATE.load(deps.storage)?; + let performance_fee_config = PERFORMANCE_FEE_CONFIG.load(deps.storage)?; + performance_fee_state.update_fee_and_pnl( + env.block.time.seconds(), + total_base_tokens, + &performance_fee_config, + )?; + let accumulated_performace_fee = performance_fee_state.accumulated_fee; + performance_fee_state.reset_state_by_manager( + env.block.time.seconds(), + total_base_tokens, + &performance_fee_config, + )?; + + PERFORMANCE_FEE_STATE.save(deps.storage, &performance_fee_state)?; + + // update performance fee config if new config is provided + if let Some(new_config) = new_performance_fee_config { + new_config.validate()?; + PERFORMANCE_FEE_CONFIG.save(deps.storage, &new_config)?; + } + + let event = Event::new("withdraw_performance_fee").add_attributes(vec![ + attr("recipient", vault_acc_owner_addr.clone()), + attr("amount", accumulated_performace_fee), + ]); + + let base_token = BASE_TOKEN.load(deps.storage)?; + + let withdraw_from_cm = prepare_credit_manager_msg( + deps.as_ref(), + base_token, + accumulated_performace_fee, + vault_acc_owner_addr, + vault_acc_id, + )?; + + Ok(Response::new().add_message(withdraw_from_cm).add_event(event)) +} + +fn assert_account_ownership( + deps: Deps, + cm_addr: &str, + acc_id: &str, + user_addr: &str, +) -> Result<(), ContractError> { + let config: ConfigResponse = deps.querier.query_wasm_smart(cm_addr, &QueryMsg::Config {})?; + let Some(acc_nft) = config.account_nft else { + return Err(ContractError::Std(StdError::generic_err( + "Account NFT contract address is not set in Credit Manager".to_string(), + ))); + }; + let acc_nft = AccountNftBase::new(deps.api.addr_validate(&acc_nft)?); + let acc_owner_addr = acc_nft.query_nft_token_owner(&deps.querier, acc_id)?; + if acc_owner_addr != user_addr { + return Err(ContractError::NotTokenOwner { + user: user_addr.to_string(), + account_id: acc_id.to_string(), + }); + } + Ok(()) +} diff --git a/contracts/vault/src/instantiate.rs b/contracts/vault/src/instantiate.rs new file mode 100644 index 00000000..9e747552 --- /dev/null +++ b/contracts/vault/src/instantiate.rs @@ -0,0 +1,66 @@ +use cosmwasm_std::{DepsMut, Env, MessageInfo, Response}; +use mars_owner::OwnerInit; +use mars_utils::helpers::validate_native_denom; + +use crate::{ + error::{ContractError, ContractResult}, + msg::InstantiateMsg, + performance_fee::PerformanceFeeState, + state::{ + BASE_TOKEN, COOLDOWN_PERIOD, CREDIT_MANAGER, DESCRIPTION, OWNER, PERFORMANCE_FEE_CONFIG, + PERFORMANCE_FEE_STATE, SUBTITLE, TITLE, VAULT_TOKEN, + }, + token_factory::TokenFactoryDenom, +}; + +pub fn init( + deps: DepsMut, + env: Env, + info: MessageInfo, + msg: InstantiateMsg, +) -> ContractResult { + // initialize contract ownership info + OWNER.initialize( + deps.storage, + deps.api, + OwnerInit::SetInitialOwner { + owner: info.sender.into(), + }, + )?; + + // save credit manager address + let credit_manager = deps.api.addr_validate(&msg.credit_manager)?; + CREDIT_MANAGER.save(deps.storage, &credit_manager.to_string())?; + + // update contract metadata + if let Some(title) = msg.title { + TITLE.save(deps.storage, &title)?; + } + if let Some(subtitle) = msg.subtitle { + SUBTITLE.save(deps.storage, &subtitle)?; + } + if let Some(desc) = msg.description { + DESCRIPTION.save(deps.storage, &desc)?; + } + + if msg.cooldown_period == 0 { + return Err(ContractError::ZeroCooldownPeriod {}); + } + + COOLDOWN_PERIOD.save(deps.storage, &msg.cooldown_period)?; + + // initialize performance fee state + msg.performance_fee_config.validate()?; + PERFORMANCE_FEE_CONFIG.save(deps.storage, &msg.performance_fee_config)?; + PERFORMANCE_FEE_STATE.save(deps.storage, &PerformanceFeeState::default())?; + + // initialize vault token + let vault_token = + TokenFactoryDenom::new(env.contract.address.to_string(), msg.vault_token_subdenom); + VAULT_TOKEN.save(deps.storage, &vault_token)?; + + validate_native_denom(&msg.base_token)?; + BASE_TOKEN.save(deps.storage, &msg.base_token)?; + + Ok(vault_token.instantiate()?) +} diff --git a/contracts/vault/src/lib.rs b/contracts/vault/src/lib.rs new file mode 100644 index 00000000..71da8847 --- /dev/null +++ b/contracts/vault/src/lib.rs @@ -0,0 +1,11 @@ +#[cfg(not(feature = "library"))] +pub mod contract; +pub mod error; +pub mod execute; +pub mod instantiate; +pub mod msg; +pub mod performance_fee; +pub mod query; +pub mod state; +pub mod token_factory; +pub mod vault_token; diff --git a/contracts/vault/src/msg.rs b/contracts/vault/src/msg.rs new file mode 100644 index 00000000..03f30d54 --- /dev/null +++ b/contracts/vault/src/msg.rs @@ -0,0 +1,120 @@ +use cosmwasm_schema::cw_serde; +use cosmwasm_std::Uint128; +use cw_vault_standard::{VaultStandardExecuteMsg, VaultStandardQueryMsg}; + +use crate::performance_fee::PerformanceFeeConfig; + +pub type ExecuteMsg = VaultStandardExecuteMsg; + +pub type QueryMsg = VaultStandardQueryMsg; + +#[cw_serde] +pub struct InstantiateMsg { + /// The base token denom that will be used for the native vault token, e.g. uusdc. + pub base_token: String, + /// The subdenom that will be used for the native vault token, e.g. + /// the denom of the vault token will be: + /// "factory/{vault_contract}/{vault_token_subdenom}". + pub vault_token_subdenom: String, + + /// Optional metadata + pub title: Option, + pub subtitle: Option, + pub description: Option, + + /// Credit Manager contract address + pub credit_manager: String, + + /// Stakers need to wait a cooldown period before being able to withdraw USDC from the vault. + /// Value defined in seconds. + pub cooldown_period: u64, + + /// Performance fee configuration + pub performance_fee_config: PerformanceFeeConfig, +} + +#[cw_serde] +pub enum ExtensionExecuteMsg { + /// Bind Credit Manager account id to the vault + BindCreditManagerAccount { + account_id: String, + }, + + /// Unlock liquidity from the vault. This will inform Fund Manager about requested funds. + /// The unlocked tokens will have to wait a cooldown period before they can be withdrawn. + Unlock { + /// The amount of vault tokens to unlock + amount: Uint128, + }, + + /// Withdraw performance fee from the vault. + /// This can only be done by the Fund Manager once a certain period (definied by `performance_fee_interval` parameter). + WithdrawPerformanceFee { + /// New performance fee config to set. It will be used for future calculations. + new_performance_fee_config: Option, + }, +} + +#[cw_serde] +pub enum ExtensionQueryMsg { + VaultInfo {}, + + UserUnlocks { + /// The address of the user to query + user_address: String, + }, + + AllUnlocks { + // (user address, created_at) + start_after: Option<(String, u64)>, + limit: Option, + }, + + PerformanceFeeState {}, +} + +#[cw_serde] +pub struct VaultInfoResponseExt { + /// The token that is accepted for deposits, withdrawals and used for + /// accounting in the vault. The denom is a native token + pub base_token: String, + /// Vault token denom + pub vault_token: String, + + /// Optional metadata + pub title: Option, + pub subtitle: Option, + pub description: Option, + + /// Credit Manager contract address + pub credit_manager: String, + + /// Vault account id + pub vault_account_id: Option, + + /// Stakers need to wait a cooldown period before being able to withdraw USDC from the vault. + /// Value defined in seconds. + pub cooldown_period: u64, + + /// Performance fee configuration + pub performance_fee_config: PerformanceFeeConfig, +} + +/// Unlock state for a single user +#[cw_serde] +#[derive(Default)] +pub struct UnlockState { + pub created_at: u64, + pub cooldown_end: u64, + pub vault_tokens: Uint128, +} + +#[cw_serde] +#[derive(Default)] +pub struct VaultUnlock { + pub user_address: String, + pub created_at: u64, + pub cooldown_end: u64, + pub vault_tokens: Uint128, + pub base_tokens: Uint128, +} diff --git a/contracts/vault/src/performance_fee.rs b/contracts/vault/src/performance_fee.rs new file mode 100644 index 00000000..7c7edb66 --- /dev/null +++ b/contracts/vault/src/performance_fee.rs @@ -0,0 +1,148 @@ +use cosmwasm_schema::cw_serde; +use cosmwasm_std::{Decimal, Int128, Int256, StdResult, Uint128}; + +use crate::error::ContractError; + +/// The number of seconds in an hour. Used for calculating the performance fee which is applied hourly. +const ONE_HOUR_IN_SEC: u64 = 3600u64; + +/// The maximum performance fee per 1h that can be set (equal to 0.0046287042457349%). +/// It is equivalent to 50% per year. +const MAX_PERFORMANCE_FEE_RATE: Decimal = Decimal::raw(46287042457349); + +#[cw_serde] +#[derive(Default)] +pub struct PerformanceFeeConfig { + /// The percentage of the performance fee that will be charged on the profits + pub fee_rate: Decimal, + + /// The interval in seconds at which the performance fee can be withdrawn by the manager + pub withdrawal_interval: u64, +} + +impl PerformanceFeeConfig { + pub fn validate(&self) -> Result<(), ContractError> { + if self.fee_rate > MAX_PERFORMANCE_FEE_RATE { + return Err(ContractError::InvalidPerformanceFee { + expected: MAX_PERFORMANCE_FEE_RATE, + actual: self.fee_rate, + }); + } + + Ok(()) + } +} + +#[cw_serde] +pub struct PerformanceFeeState { + /// The timestamp (sec) of the last fee withdrawal + pub last_withdrawal: u64, + + /// The total amount of base tokens in the vault account in Credit Manager + pub base_tokens_amt: Uint128, + + /// The accumulated profit and loss since the last fee withdrawal + pub accumulated_pnl: Int128, + + /// The total fees that have been accumulated since the last fee withdrawal + pub accumulated_fee: Uint128, +} + +impl Default for PerformanceFeeState { + fn default() -> Self { + Self { + last_withdrawal: u64::MAX, + base_tokens_amt: Uint128::zero(), + accumulated_pnl: Int128::zero(), + accumulated_fee: Uint128::zero(), + } + } +} + +impl PerformanceFeeState { + pub fn update_fee_and_pnl( + &mut self, + current_time: u64, + total_base_tokens: Uint128, + config: &PerformanceFeeConfig, + ) -> StdResult<()> { + // initial state, first time update by deposit + if self.last_withdrawal == u64::MAX { + self.last_withdrawal = current_time; + return Ok(()); + } + + let accumulated_pnl_i256 = Int256::from(self.accumulated_pnl) + + (Int256::from(total_base_tokens) - Int256::from(self.base_tokens_amt)); + // should be safe to convert to i128, the value should be in the range of i128 + let accumulated_pnl_i128: Int128 = accumulated_pnl_i256.try_into()?; + + // calculate the accumulated fee only if pnl is positive + let accumulated_fee = if accumulated_pnl_i128 > Int128::zero() { + let rate = self.calculate_time_based_performance_fee(current_time, config)?; + accumulated_pnl_i128.unsigned_abs() * rate + } else { + Uint128::zero() + }; + + self.accumulated_pnl = accumulated_pnl_i128; + self.accumulated_fee = accumulated_fee; + + Ok(()) + } + + fn calculate_time_based_performance_fee( + &self, + current_time: u64, + config: &PerformanceFeeConfig, + ) -> StdResult { + let time_diff_in_sec = current_time - self.last_withdrawal; + let time_diff_in_hours = time_diff_in_sec / ONE_HOUR_IN_SEC; + Ok(config.fee_rate.checked_mul(Decimal::from_ratio(time_diff_in_hours, 1u128))?) + } + + pub fn update_base_tokens_after_deposit( + &mut self, + total_base_tokens: Uint128, + deposit_amt: Uint128, + ) -> StdResult<()> { + let updated_liquidity = total_base_tokens + deposit_amt; + self.base_tokens_amt = updated_liquidity; + Ok(()) + } + + pub fn update_base_tokens_after_redeem( + &mut self, + total_base_tokens: Uint128, + withdraw_amt: Uint128, + ) -> StdResult<()> { + let updated_liquidity = total_base_tokens - withdraw_amt; + self.base_tokens_amt = updated_liquidity; + Ok(()) + } + + pub fn reset_state_by_manager( + &mut self, + current_time: u64, + total_base_tokens: Uint128, + config: &PerformanceFeeConfig, + ) -> Result<(), ContractError> { + if self.accumulated_fee.is_zero() { + return Err(ContractError::ZeroPerformanceFee {}); + } + + let time_diff = current_time - self.last_withdrawal; + if time_diff < config.withdrawal_interval { + return Err(ContractError::WithdrawalIntervalNotPassed {}); + } + + let updated_liquidity = total_base_tokens - self.accumulated_fee; + + self.last_withdrawal = current_time; + self.accumulated_pnl = Int128::zero(); + self.accumulated_fee = Uint128::zero(); + self.base_tokens_amt = updated_liquidity; + + Ok(()) + } +} diff --git a/contracts/vault/src/query.rs b/contracts/vault/src/query.rs new file mode 100644 index 00000000..9d124336 --- /dev/null +++ b/contracts/vault/src/query.rs @@ -0,0 +1,94 @@ +use cosmwasm_std::{Addr, Deps, Order, Uint128}; +use cw_paginate::{paginate_map_query, PaginationResponse, DEFAULT_LIMIT, MAX_LIMIT}; +use cw_storage_plus::Bound; + +use crate::{ + error::ContractResult, + execute::total_base_tokens_in_account, + msg::{VaultInfoResponseExt, VaultUnlock}, + state::{ + BASE_TOKEN, COOLDOWN_PERIOD, CREDIT_MANAGER, DESCRIPTION, PERFORMANCE_FEE_CONFIG, SUBTITLE, + TITLE, UNLOCKS, VAULT_ACC_ID, VAULT_TOKEN, + }, + vault_token::{calculate_base_tokens, calculate_vault_tokens}, +}; + +pub fn query_vault_info(deps: Deps) -> ContractResult { + Ok(VaultInfoResponseExt { + base_token: BASE_TOKEN.load(deps.storage)?, + vault_token: VAULT_TOKEN.load(deps.storage)?.to_string(), + title: TITLE.may_load(deps.storage)?, + subtitle: SUBTITLE.may_load(deps.storage)?, + description: DESCRIPTION.may_load(deps.storage)?, + credit_manager: CREDIT_MANAGER.load(deps.storage)?, + vault_account_id: VAULT_ACC_ID.may_load(deps.storage)?, + cooldown_period: COOLDOWN_PERIOD.load(deps.storage)?, + performance_fee_config: PERFORMANCE_FEE_CONFIG.load(deps.storage)?, + }) +} + +pub fn query_user_unlocks(deps: Deps, user_addr: Addr) -> ContractResult> { + let vault_token_supply = VAULT_TOKEN.load(deps.storage)?.query_total_supply(deps)?; + let total_base_tokens = total_base_tokens_in_account(deps)?; + + UNLOCKS + .prefix(user_addr.as_str()) + .range(deps.storage, None, None, Order::Ascending) + .map(|item| { + let (_created_at, unlock) = item?; + let base_tokens = + calculate_base_tokens(unlock.vault_tokens, total_base_tokens, vault_token_supply)?; + Ok(VaultUnlock { + user_address: user_addr.to_string(), + created_at: unlock.created_at, + cooldown_end: unlock.cooldown_end, + vault_tokens: unlock.vault_tokens, + base_tokens, + }) + }) + .collect() +} + +pub fn query_all_unlocks( + deps: Deps, + start_after: Option<(String, u64)>, + limit: Option, +) -> ContractResult> { + let start = start_after + .as_ref() + .map(|(user_addr, created_at)| Bound::exclusive((user_addr.as_str(), *created_at))); + let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT); + + let vault_token_supply = VAULT_TOKEN.load(deps.storage)?.query_total_supply(deps)?; + let total_base_tokens = total_base_tokens_in_account(deps)?; + + paginate_map_query( + &UNLOCKS, + deps.storage, + start, + Some(limit), + |(user_addr, _created_at), unlock| { + let base_tokens = + calculate_base_tokens(unlock.vault_tokens, total_base_tokens, vault_token_supply)?; + Ok(VaultUnlock { + user_address: user_addr, + created_at: unlock.created_at, + cooldown_end: unlock.cooldown_end, + vault_tokens: unlock.vault_tokens, + base_tokens, + }) + }, + ) +} + +pub fn convert_to_vault_tokens(deps: Deps, amount: Uint128) -> ContractResult { + let vault_token_supply = VAULT_TOKEN.load(deps.storage)?.query_total_supply(deps)?; + let total_base_tokens = total_base_tokens_in_account(deps)?; + Ok(calculate_vault_tokens(amount, total_base_tokens, vault_token_supply)?) +} + +pub fn convert_to_base_tokens(deps: Deps, amount: Uint128) -> ContractResult { + let vault_token_supply = VAULT_TOKEN.load(deps.storage)?.query_total_supply(deps)?; + let total_base_tokens = total_base_tokens_in_account(deps)?; + Ok(calculate_base_tokens(amount, total_base_tokens, vault_token_supply)?) +} diff --git a/contracts/vault/src/state.rs b/contracts/vault/src/state.rs new file mode 100644 index 00000000..baef146b --- /dev/null +++ b/contracts/vault/src/state.rs @@ -0,0 +1,29 @@ +use cw_storage_plus::{Item, Map}; +use mars_owner::Owner; + +use crate::{ + msg::UnlockState, + performance_fee::{PerformanceFeeConfig, PerformanceFeeState}, + token_factory::TokenFactoryDenom, +}; + +pub const OWNER: Owner = Owner::new("owner"); + +/// The vault token implementation for this vault +pub const VAULT_TOKEN: Item = Item::new("vault_token"); + +/// The token that is depositable to the vault +pub const BASE_TOKEN: Item = Item::new("base_token"); + +pub const CREDIT_MANAGER: Item = Item::new("cm_addr"); +pub const VAULT_ACC_ID: Item = Item::new("vault_acc_id"); + +pub const TITLE: Item = Item::new("title"); +pub const SUBTITLE: Item = Item::new("subtitle"); +pub const DESCRIPTION: Item = Item::new("desc"); + +pub const COOLDOWN_PERIOD: Item = Item::new("cooldown_period"); +pub const UNLOCKS: Map<(&str, u64), UnlockState> = Map::new("unlocks"); + +pub const PERFORMANCE_FEE_CONFIG: Item = Item::new("performance_fee_config"); +pub const PERFORMANCE_FEE_STATE: Item = Item::new("performance_fee_state"); diff --git a/contracts/vault/src/token_factory.rs b/contracts/vault/src/token_factory.rs new file mode 100644 index 00000000..c724d0d1 --- /dev/null +++ b/contracts/vault/src/token_factory.rs @@ -0,0 +1,105 @@ +use std::fmt::Display; + +use cosmwasm_schema::cw_serde; +use cosmwasm_std::{ + attr, Addr, CosmosMsg, Deps, DepsMut, Env, Event, Response, StdResult, Uint128, +}; +use osmosis_std::types::{ + cosmos::base::v1beta1::Coin as CoinMsg, + osmosis::tokenfactory::v1beta1::{MsgBurn, MsgCreateDenom, MsgMint}, +}; + +#[cw_serde] +/// Representation of a native token created using the Token Factory. +/// The denom of the token will be `factory/{owner}/{subdenom}`. +pub struct TokenFactoryDenom { + /// Creator and owner of the denom. Only this address can mint and burn + /// tokens. + pub owner: String, + /// The subdenom of the token. All tokens created using the token factory + /// have the format `factory/{owner}/{subdenom}`. + pub subdenom: String, +} + +impl TokenFactoryDenom { + pub const fn new(owner: String, subdenom: String) -> Self { + Self { + owner, + subdenom, + } + } + + pub fn instantiate(&self) -> StdResult { + let init_msg: CosmosMsg = MsgCreateDenom { + sender: self.owner.clone(), + subdenom: self.subdenom.clone(), + } + .into(); + + let init_event = + Event::new("vault_token/instantiate").add_attribute("denom", self.to_string()); + + Ok(Response::new().add_message(init_msg).add_event(init_event)) + } + + pub fn mint( + &self, + _deps: DepsMut, + env: &Env, + recipient: &Addr, + amount: Uint128, + ) -> StdResult { + let mint_msg: CosmosMsg = MsgMint { + amount: Some(CoinMsg { + denom: self.to_string(), + amount: amount.to_string(), + }), + sender: env.contract.address.to_string(), + mint_to_address: recipient.to_string(), + } + .into(); + + let event = Event::new("vault_token/mint").add_attributes(vec![ + attr("denom", self.to_string()), + attr("amount", amount.to_string()), + attr("recipient", recipient.to_string()), + ]); + + Ok(Response::new().add_message(mint_msg).add_event(event)) + } + + pub fn burn(&self, _deps: DepsMut, env: &Env, amount: Uint128) -> StdResult { + let burn_msg: CosmosMsg = MsgBurn { + amount: Some(CoinMsg { + denom: self.to_string(), + amount: amount.to_string(), + }), + sender: env.contract.address.to_string(), + burn_from_address: env.contract.address.to_string(), + } + .into(); + + let event = Event::new("vault_token/burn").add_attributes(vec![ + attr("denom", self.to_string()), + attr("amount", amount.to_string()), + ]); + + Ok(Response::new().add_message(burn_msg).add_event(event)) + } + + pub fn query_balance>(&self, deps: Deps, address: A) -> StdResult { + Ok(deps.querier.query_balance(address, self.to_string())?.amount) + } + + pub fn query_total_supply(&self, deps: Deps) -> StdResult { + Ok(deps.querier.query_supply(self.to_string())?.amount) + } +} + +impl Display for TokenFactoryDenom { + /// Returns the full denom of the token, in the format + /// `factory/{owner}/{subdenom}`. + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "factory/{}/{}", self.owner, self.subdenom) + } +} diff --git a/contracts/vault/src/vault_token.rs b/contracts/vault/src/vault_token.rs new file mode 100644 index 00000000..3a67088a --- /dev/null +++ b/contracts/vault/src/vault_token.rs @@ -0,0 +1,31 @@ +use cosmwasm_std::{StdError, Uint128}; + +pub const DEFAULT_VAULT_TOKENS_PER_STAKED_BASE_TOKEN: Uint128 = Uint128::new(1_000_000); + +pub fn calculate_vault_tokens( + base_tokens: Uint128, + total_base_tokens: Uint128, + vault_token_supply: Uint128, +) -> Result { + let vault_tokens = if total_base_tokens.is_zero() { + base_tokens.checked_mul(DEFAULT_VAULT_TOKENS_PER_STAKED_BASE_TOKEN)? + } else { + vault_token_supply.multiply_ratio(base_tokens, total_base_tokens) + }; + + Ok(vault_tokens) +} + +pub fn calculate_base_tokens( + vault_tokens: Uint128, + total_base_tokens: Uint128, + vault_token_supply: Uint128, +) -> Result { + let base_tokens = if vault_token_supply.is_zero() { + vault_tokens.checked_div(DEFAULT_VAULT_TOKENS_PER_STAKED_BASE_TOKEN)? + } else { + total_base_tokens.multiply_ratio(vault_tokens, vault_token_supply) + }; + + Ok(base_tokens) +} diff --git a/contracts/vault/tests/all_tests.rs b/contracts/vault/tests/all_tests.rs new file mode 100644 index 00000000..14f00389 --- /dev/null +++ b/contracts/vault/tests/all_tests.rs @@ -0,0 +1 @@ +mod tests; diff --git a/contracts/vault/tests/files/Mars - 3rd party Vault - Performance Fee - test cases v1.0.xlsx b/contracts/vault/tests/files/Mars - 3rd party Vault - Performance Fee - test cases v1.0.xlsx new file mode 100644 index 00000000..42b79ff9 Binary files /dev/null and b/contracts/vault/tests/files/Mars - 3rd party Vault - Performance Fee - test cases v1.0.xlsx differ diff --git a/contracts/vault/tests/tests/mod.rs b/contracts/vault/tests/tests/mod.rs new file mode 100644 index 00000000..3e7a3f81 --- /dev/null +++ b/contracts/vault/tests/tests/mod.rs @@ -0,0 +1,10 @@ +use mars_testing::multitest::helpers; + +mod vault_helpers; + +mod test_binding; +mod test_deposit; +mod test_instantiate; +mod test_performance_fee; +mod test_redeem; +mod test_unlock; diff --git a/contracts/vault/tests/tests/test_binding.rs b/contracts/vault/tests/tests/test_binding.rs new file mode 100644 index 00000000..7c5bcd00 --- /dev/null +++ b/contracts/vault/tests/tests/test_binding.rs @@ -0,0 +1,128 @@ +use cosmwasm_std::{coin, Addr, Decimal}; +use mars_types::health::AccountKind; +use mars_vault::{ + error::ContractError, msg::VaultInfoResponseExt, performance_fee::PerformanceFeeConfig, +}; + +use super::{ + helpers::{AccountToFund, MockEnv}, + vault_helpers::{assert_vault_err, execute_bind_credit_manager_account}, +}; +use crate::tests::{helpers::deploy_managed_vault, vault_helpers::query_vault_info}; + +#[test] +fn only_credit_manager_can_bind_account() { + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let res = execute_bind_credit_manager_account( + &mut mock, + &Addr::unchecked("anyone"), + &managed_vault_addr, + "2024", + ); + assert_vault_err(res, ContractError::NotCreditManager {}); + + let vault_acc_id = mock + .create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + assert_eq!( + vault_info_res, + VaultInfoResponseExt { + base_token: "uusdc".to_string(), + vault_token: format!("factory/{}/vault", managed_vault_addr), + title: None, + subtitle: None, + description: None, + credit_manager: credit_manager.to_string(), + vault_account_id: Some(vault_acc_id), + cooldown_period: 60, + performance_fee_config: PerformanceFeeConfig { + fee_rate: Decimal::zero(), + withdrawal_interval: 0 + } + } + ) +} + +#[test] +fn only_one_binding_allowed() { + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let random_existing_acc_id = + mock.create_credit_account_v2(&fund_manager, AccountKind::Default, None).unwrap(); + let res = execute_bind_credit_manager_account( + &mut mock, + &credit_manager, + &managed_vault_addr, + &random_existing_acc_id, + ); + assert_vault_err(res, ContractError::VaultAccountExists {}); +} + +#[test] +fn account_owner_can_not_be_different_than_contract_owner() { + let random_wallet = Addr::unchecked("random-wallet"); + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let random_existing_acc_id = + mock.create_credit_account_v2(&random_wallet, AccountKind::Default, None).unwrap(); + let res = execute_bind_credit_manager_account( + &mut mock, + &credit_manager, + &managed_vault_addr, + &random_existing_acc_id, + ); + assert_vault_err( + res, + ContractError::NotTokenOwner { + user: fund_manager.to_string(), + account_id: random_existing_acc_id, + }, + ); +} diff --git a/contracts/vault/tests/tests/test_deposit.rs b/contracts/vault/tests/tests/test_deposit.rs new file mode 100644 index 00000000..6a53b9b3 --- /dev/null +++ b/contracts/vault/tests/tests/test_deposit.rs @@ -0,0 +1,168 @@ +use cosmwasm_std::{coin, Addr, Uint128}; +use cw_utils::PaymentError; +use mars_types::health::AccountKind; +use mars_vault::error::ContractError; + +use super::{ + helpers::{AccountToFund, MockEnv}, + vault_helpers::{assert_vault_err, execute_deposit}, +}; +use crate::tests::{helpers::deploy_managed_vault, vault_helpers::query_vault_info}; + +#[test] +fn deposit_invalid_funds() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "untrn"), coin(1_000_000_000, "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let res = execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[], + ); + assert_vault_err(res, ContractError::Payment(PaymentError::NoFunds {})); + + let res = execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(1_001, "untrn"), coin(1_002, "uusdc")], + ); + assert_vault_err(res, ContractError::Payment(PaymentError::MultipleDenoms {})); + + let res = execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(1_001, "untrn")], + ); + assert_vault_err(res, ContractError::Payment(PaymentError::MissingDenom("uusdc".to_string()))); +} + +#[test] +fn deposit_if_credit_manager_account_not_binded() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let deposited_amt = Uint128::new(123_000_000); + let res = execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ); + assert_vault_err(res, ContractError::VaultAccountNotFound {}); +} + +#[test] +fn deposit_succeded() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(1_000_000_000); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + let vault_token = vault_info_res.vault_token; + + // there shouldn't be any vault tokens + let vault_token_balance = mock.query_balance(&managed_vault_addr, &vault_token).amount; + assert!(vault_token_balance.is_zero()); + let vault_token_balance = mock.query_balance(&user, &vault_token).amount; + assert!(vault_token_balance.is_zero()); + + let account_id = mock + .create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let deposited_amt = Uint128::new(123_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + // check base token balance after deposit + let user_base_token_balance = mock.query_balance(&user, "uusdc").amount; + assert_eq!(user_base_token_balance, user_funded_amt - deposited_amt); + + // there should be vault tokens for the user now + let vault_token_balance = mock.query_balance(&managed_vault_addr, &vault_token).amount; + assert!(vault_token_balance.is_zero()); + let user_vault_token_balance = mock.query_balance(&user, &vault_token).amount; + assert!(!user_vault_token_balance.is_zero()); + assert_eq!(user_vault_token_balance, deposited_amt * Uint128::new(1_000_000)); + + // there should be a deposit in Fund Manager's account + let res = mock.query_positions(&account_id); + assert_eq!(res.deposits.len(), 1); + let assets_res = res.deposits.first().unwrap(); + assert_eq!(assets_res.amount, deposited_amt); + assert_eq!(assets_res.denom, "uusdc".to_string()); +} diff --git a/contracts/vault/tests/tests/test_instantiate.rs b/contracts/vault/tests/tests/test_instantiate.rs new file mode 100644 index 00000000..13dca05e --- /dev/null +++ b/contracts/vault/tests/tests/test_instantiate.rs @@ -0,0 +1,237 @@ +use std::str::FromStr; + +use anyhow::Result as AnyResult; +use cosmwasm_std::{coin, Addr, Decimal}; +use cw_multi_test::Executor; +use mars_utils::error::ValidationError; +use mars_vault::{ + error::ContractError, + msg::{InstantiateMsg, VaultInfoResponseExt}, + performance_fee::PerformanceFeeConfig, +}; + +use super::helpers::{mock_managed_vault_contract, AccountToFund, MockEnv}; +use crate::tests::{helpers::deploy_managed_vault, vault_helpers::query_vault_info}; + +#[test] +fn instantiate_with_empty_metadata() { + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + assert_eq!( + vault_info_res, + VaultInfoResponseExt { + base_token: "uusdc".to_string(), + vault_token: format!("factory/{}/vault", managed_vault_addr), + title: None, + subtitle: None, + description: None, + credit_manager: credit_manager.to_string(), + vault_account_id: None, + cooldown_period: 60, + performance_fee_config: PerformanceFeeConfig { + fee_rate: Decimal::zero(), + withdrawal_interval: 0 + } + } + ) +} + +#[test] +fn instantiate_with_metadata() { + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let contract_code_id = mock.app.store_code(mock_managed_vault_contract()); + let managed_vault_addr = mock + .app + .instantiate_contract( + contract_code_id, + fund_manager, + &InstantiateMsg { + base_token: "uusdc".to_string(), + vault_token_subdenom: "fund".to_string(), + title: Some("random TITLE".to_string()), + subtitle: Some("random subTITLE".to_string()), + description: Some("The vault manages others money !!!".to_string()), + credit_manager: credit_manager.to_string(), + cooldown_period: 8521, + performance_fee_config: PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.000046287042457349").unwrap(), + withdrawal_interval: 1563, + }, + }, + &[coin(10_000_000, "untrn")], // Token Factory fee for minting new denom. Configured in the Token Factory module in `mars-testing` package. + "mock-managed-vault", + None, + ) + .unwrap(); + + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + assert_eq!( + vault_info_res, + VaultInfoResponseExt { + base_token: "uusdc".to_string(), + vault_token: format!("factory/{}/fund", managed_vault_addr), + title: Some("random TITLE".to_string()), + subtitle: Some("random subTITLE".to_string()), + description: Some("The vault manages others money !!!".to_string()), + credit_manager: credit_manager.to_string(), + vault_account_id: None, + cooldown_period: 8521, + performance_fee_config: PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.000046287042457349").unwrap(), + withdrawal_interval: 1563, + } + } + ) +} + +#[test] +fn cannot_instantiate_with_invalid_performance_fee() { + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let contract_code_id = mock.app.store_code(mock_managed_vault_contract()); + let res = mock.app.instantiate_contract( + contract_code_id, + fund_manager, + &InstantiateMsg { + base_token: "uusdc".to_string(), + vault_token_subdenom: "fund".to_string(), + title: None, + subtitle: None, + description: None, + credit_manager: credit_manager.to_string(), + cooldown_period: 8521, + performance_fee_config: PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.000046287042457350").unwrap(), + withdrawal_interval: 1563, + }, + }, + &[coin(10_000_000, "untrn")], // Token Factory fee for minting new denom. Configured in the Token Factory module in `mars-testing` package. + "mock-managed-vault", + None, + ); + + assert_vault_err( + res, + ContractError::InvalidPerformanceFee { + expected: Decimal::from_str("0.000046287042457349").unwrap(), + actual: Decimal::from_str("0.000046287042457350").unwrap(), + }, + ); +} + +#[test] +fn cannot_instantiate_with_zero_cooldown_period() { + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let contract_code_id = mock.app.store_code(mock_managed_vault_contract()); + let res = mock.app.instantiate_contract( + contract_code_id, + fund_manager, + &InstantiateMsg { + base_token: "uusdc".to_string(), + vault_token_subdenom: "fund".to_string(), + title: None, + subtitle: None, + description: None, + credit_manager: credit_manager.to_string(), + cooldown_period: 0, + performance_fee_config: PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.000046287042457350").unwrap(), + withdrawal_interval: 1563, + }, + }, + &[coin(10_000_000, "untrn")], // Token Factory fee for minting new denom. Configured in the Token Factory module in `mars-testing` package. + "mock-managed-vault", + None, + ); + + assert_vault_err(res, ContractError::ZeroCooldownPeriod {}); +} + +#[test] +fn cannot_instantiate_with_invalid_base_denom() { + let fund_manager = Addr::unchecked("fund-manager"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let contract_code_id = mock.app.store_code(mock_managed_vault_contract()); + let res = mock.app.instantiate_contract( + contract_code_id, + fund_manager, + &InstantiateMsg { + base_token: "!*jadfaefc".to_string(), + vault_token_subdenom: "fund".to_string(), + title: None, + subtitle: None, + description: None, + credit_manager: credit_manager.to_string(), + cooldown_period: 24, + performance_fee_config: PerformanceFeeConfig { + fee_rate: Decimal::zero(), + withdrawal_interval: 0, + }, + }, + &[coin(10_000_000, "untrn")], // Token Factory fee for minting new denom. Configured in the Token Factory module in `mars-testing` package. + "mock-managed-vault", + None, + ); + + assert_vault_err( + res, + ContractError::Validation(ValidationError::InvalidDenom { + reason: "First character is not ASCII alphabetic".to_string(), + }), + ); +} + +fn assert_vault_err(res: AnyResult, err: ContractError) { + match res { + Ok(_) => panic!("Result was not an error"), + Err(generic_err) => { + let contract_err: ContractError = generic_err.downcast().unwrap(); + assert_eq!(contract_err, err); + } + } +} diff --git a/contracts/vault/tests/tests/test_performance_fee.rs b/contracts/vault/tests/tests/test_performance_fee.rs new file mode 100644 index 00000000..1b585aee --- /dev/null +++ b/contracts/vault/tests/tests/test_performance_fee.rs @@ -0,0 +1,555 @@ +use std::str::FromStr; + +use cosmwasm_std::{coin, Addr, Decimal, Int128, Uint128}; +use cw_multi_test::{BankSudo, SudoMsg}; +use mars_mock_oracle::msg::CoinPrice; +use mars_testing::multitest::helpers::{ + coin_info, deploy_managed_vault_with_performance_fee, uatom_info, CoinInfo, +}; +use mars_types::{credit_manager::Action, health::AccountKind, oracle::ActionKind}; +use mars_vault::{ + error::ContractError, + performance_fee::{PerformanceFeeConfig, PerformanceFeeState}, +}; + +use super::{ + helpers::{AccountToFund, MockEnv}, + vault_helpers::{assert_vault_err, execute_withdraw_performance_fee}, +}; +use crate::tests::{ + helpers::deploy_managed_vault, + vault_helpers::{ + execute_deposit, execute_redeem, execute_unlock, query_performance_fee, query_vault_info, + }, +}; + +#[test] +fn deposit_if_credit_manager_account_not_binded() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let res = execute_withdraw_performance_fee(&mut mock, &user, &managed_vault_addr, None); + assert_vault_err(res, ContractError::VaultAccountNotFound {}); +} + +#[test] +fn unauthorized_performance_fee_withdraw() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(1_000_000_000); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let vault_acc_id = mock + .create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // vault user can't withdraw performance fee + let res = execute_withdraw_performance_fee(&mut mock, &user, &managed_vault_addr, None); + assert_vault_err( + res, + ContractError::NotTokenOwner { + user: user.to_string(), + account_id: vault_acc_id.clone(), + }, + ); + + // random user can't withdraw performance fee + let random_user = Addr::unchecked("random-user"); + let res = execute_withdraw_performance_fee(&mut mock, &random_user, &managed_vault_addr, None); + assert_vault_err( + res, + ContractError::NotTokenOwner { + user: random_user.to_string(), + account_id: vault_acc_id, + }, + ); +} + +#[test] +fn cannot_withdraw_zero_performance_fee() { + let uusdc_info = coin_info("uusdc"); + let uatom_info = uatom_info(); + + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(100_000_000_000); + let mut mock = MockEnv::new() + .set_params(&[uusdc_info.clone(), uatom_info.clone()]) + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault_with_performance_fee( + &mut mock.app, + &fund_manager, + &credit_manager, + 1, + PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.0000208").unwrap(), + withdrawal_interval: 60, + }, + ); + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let res = execute_withdraw_performance_fee(&mut mock, &fund_manager, &managed_vault_addr, None); + assert_vault_err(res, ContractError::ZeroPerformanceFee {}); +} + +#[test] +fn cannot_withdraw_if_withdrawal_interval_not_passed() { + let uusdc_info = coin_info("uusdc"); + let uatom_info = uatom_info(); + + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(100_000_000_000); + let mut mock = MockEnv::new() + .set_params(&[uusdc_info.clone(), uatom_info.clone()]) + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let performance_fee_interval = 7200u64; // 2 hours + let managed_vault_addr = deploy_managed_vault_with_performance_fee( + &mut mock.app, + &fund_manager, + &credit_manager, + 1, + PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.0000208").unwrap(), + withdrawal_interval: performance_fee_interval, + }, + ); + + let fund_acc_id = mock + .create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // simulate base token price = 1 USD + mock.price_change(CoinPrice { + pricing: ActionKind::Default, + denom: uusdc_info.denom.clone(), + price: Decimal::one(), + }); + + let deposited_amt = Uint128::new(100_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + // swap USDC to ATOM to tune PnL value based on different ATOM price + swap_usdc_to_atom(&mut mock, &fund_acc_id, &fund_manager, &uusdc_info, &uatom_info); + + let pnl = calculate_pnl(&mut mock, &fund_acc_id, Decimal::from_str("1.25").unwrap()); + assert_eq!(pnl, Uint128::new(120_000_000)); + + // check performance fee fund manager wallet balance + let base_token_balance = mock.query_balance(&fund_manager, &uusdc_info.denom.clone()).amount; + assert!(base_token_balance.is_zero()); + + // move by interval - 1 + mock.increment_by_time(performance_fee_interval - 1); + + let res = execute_withdraw_performance_fee(&mut mock, &fund_manager, &managed_vault_addr, None); + assert_vault_err(res, ContractError::WithdrawalIntervalNotPassed {}); + + // move by another 1 second + mock.increment_by_time(1); + + // try to pass invalid performance fee config + let res = execute_withdraw_performance_fee( + &mut mock, + &fund_manager, + &managed_vault_addr, + Some(PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.000046287042457350").unwrap(), + withdrawal_interval: 1563, + }), + ); + assert_vault_err( + res, + ContractError::InvalidPerformanceFee { + expected: Decimal::from_str("0.000046287042457349").unwrap(), + actual: Decimal::from_str("0.000046287042457350").unwrap(), + }, + ); + + execute_withdraw_performance_fee(&mut mock, &fund_manager, &managed_vault_addr, None).unwrap(); + + let base_token_balance = mock.query_balance(&fund_manager, &uusdc_info.denom.clone()).amount; + assert_eq!(base_token_balance, Uint128::new(832)); +} + +/// Scenarios based on spreadsheet: +/// ../files/Mars - 3rd party Vault - Performance Fee - test cases v1.0.xlsx +#[test] +fn performance_fee_correctly_accumulated() { + let uusdc_info = coin_info("uusdc"); + let uatom_info = uatom_info(); + + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(100_000_000_000); + let mut mock = MockEnv::new() + .set_params(&[uusdc_info.clone(), uatom_info.clone()]) + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault_with_performance_fee( + &mut mock.app, + &fund_manager, + &credit_manager, + 1, + PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.0000208").unwrap(), + withdrawal_interval: 60, + }, + ); + + let fund_acc_id = mock + .create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // simulate base token price = 1 USD + mock.price_change(CoinPrice { + pricing: ActionKind::Default, + denom: uusdc_info.denom.clone(), + price: Decimal::one(), + }); + + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + let vault_token = vault_info_res.vault_token; + + // there shouldn't be any base tokens in Fund Manager wallet + let base_token_balance = mock.query_balance(&fund_manager, &uusdc_info.denom.clone()).amount; + assert!(base_token_balance.is_zero()); + + // -- FIRST ACTION -- + + let first_deposit_time = mock.query_block_time(); + let deposited_amt = Uint128::new(100_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + let performance_fee = query_performance_fee(&mock, &managed_vault_addr); + assert_eq!( + performance_fee, + PerformanceFeeState { + last_withdrawal: first_deposit_time, + base_tokens_amt: deposited_amt, + accumulated_pnl: Int128::zero(), + accumulated_fee: Uint128::zero() + } + ); + + // swap USDC to ATOM to tune PnL value based on different ATOM price + swap_usdc_to_atom(&mut mock, &fund_acc_id, &fund_manager, &uusdc_info, &uatom_info); + + // -- SECOND ACTION -- + + // move by 97 hours and 20 minutes + // fee is applier per 1 hour so 20 minutes should be ignored during fee calculation + mock.increment_by_time(97 * 60 * 60 + 20 * 60); + + let pnl = calculate_pnl(&mut mock, &fund_acc_id, Decimal::from_str("1.25").unwrap()); + assert_eq!(pnl, Uint128::new(120_000_000)); + + let deposited_amt = Uint128::new(20_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + let performance_fee = query_performance_fee(&mock, &managed_vault_addr); + assert_eq!( + performance_fee, + PerformanceFeeState { + last_withdrawal: first_deposit_time, + base_tokens_amt: Uint128::new(140000000), + accumulated_pnl: Int128::new(20000000), + accumulated_fee: Uint128::new(40352) + } + ); + + // -- THIRD ACTION -- + + // move by 72 hours reduced by 20 min (applied in previous step) + mock.increment_by_time(72 * 60 * 60 - 20 * 60); + + let pnl = calculate_pnl(&mut mock, &fund_acc_id, Decimal::from_str("0.25").unwrap()); + assert_eq!(pnl, Uint128::new(60_000_000)); + + let deposited_amt = Uint128::new(15_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + let performance_fee = query_performance_fee(&mock, &managed_vault_addr); + assert_eq!( + performance_fee, + PerformanceFeeState { + last_withdrawal: first_deposit_time, + base_tokens_amt: Uint128::new(75000000), + accumulated_pnl: Int128::new(-60000000), + accumulated_fee: Uint128::zero() + } + ); + + // -- FOURTH ACTION -- + + let unlock_vault_tokens = Uint128::new(10_000_000_000_000); + execute_unlock(&mut mock, &user, &managed_vault_addr, unlock_vault_tokens, &[]).unwrap(); + + // move by 144 hours + mock.increment_by_time(144 * 60 * 60); + + // we have 55_000_000 uusdc + 80_000_000 uatom + // we want to have pnl = 450_000_000 uusdc so uatom has to be worth 450_000_000 - 55_000_000 = 395_000_000 + // so the price of uatom has to be 395_000_000 / 80_000_000 = 4.9375 + let pnl = calculate_pnl(&mut mock, &fund_acc_id, Decimal::from_str("4.9375").unwrap()); + assert_eq!(pnl, Uint128::new(450_000_000)); + + execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(unlock_vault_tokens.u128(), vault_token.clone())], + ) + .unwrap(); + + let performance_fee = query_performance_fee(&mock, &managed_vault_addr); + assert_eq!( + performance_fee, + PerformanceFeeState { + last_withdrawal: first_deposit_time, + base_tokens_amt: Uint128::new(419284958), + accumulated_pnl: Int128::new(315000000), + accumulated_fee: Uint128::new(2050776) + } + ); + + // -- FIFTH ACTION -- + + // move by 744 hours + mock.increment_by_time(744 * 60 * 60); + + let pnl = calculate_pnl(&mut mock, &fund_acc_id, Decimal::from_str("10").unwrap()); + assert_eq!(pnl, Uint128::new(824284958)); + + execute_withdraw_performance_fee( + &mut mock, + &fund_manager, + &managed_vault_addr, + Some(PerformanceFeeConfig { + fee_rate: Decimal::from_str("0.0000408").unwrap(), + withdrawal_interval: 60, + }), + ) + .unwrap(); + + let fee_withdraw_time = mock.query_block_time(); + let performance_fee = query_performance_fee(&mock, &managed_vault_addr); + assert_eq!( + performance_fee, + PerformanceFeeState { + last_withdrawal: fee_withdraw_time, + base_tokens_amt: Uint128::new(808455326), + accumulated_pnl: Int128::zero(), + accumulated_fee: Uint128::zero() + } + ); + + let base_token_balance = mock.query_balance(&fund_manager, &uusdc_info.denom.clone()).amount; + assert_eq!(base_token_balance, Uint128::new(15829632)); + + // -- SIXTH ACTION -- + + // move by 48 hours + mock.increment_by_time(48 * 60 * 60); + + let pnl = calculate_pnl(&mut mock, &fund_acc_id, Decimal::from_str("10.5").unwrap()); + assert_eq!(pnl, Uint128::new(848455326)); + + let deposited_amt = Uint128::new(55_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + // new performance fee percentage should be used + let performance_fee = query_performance_fee(&mock, &managed_vault_addr); + assert_eq!( + performance_fee, + PerformanceFeeState { + last_withdrawal: fee_withdraw_time, + base_tokens_amt: Uint128::new(903455326), + accumulated_pnl: Int128::new(40000000), + accumulated_fee: Uint128::new(78336) + } + ); +} + +fn swap_usdc_to_atom( + mock: &mut MockEnv, + fund_acc_id: &str, + fund_manager: &Addr, + uusdc_info: &CoinInfo, + uatom_info: &CoinInfo, +) { + let swap_amt = Uint128::new(80_000_000); + let cm_config = mock.query_config(); + mock.app + .sudo(SudoMsg::Bank(BankSudo::Mint { + to_address: cm_config.swapper, + amount: vec![coin(swap_amt.u128(), uatom_info.denom.clone())], + })) + .unwrap(); + let estimate_res = mock.query_swap_estimate_with_optional_route( + &uusdc_info.to_coin(swap_amt.u128()), + &uatom_info.denom, + None, + ); + let min_receive = + estimate_res.amount * (Decimal::one() - Decimal::from_atomics(6u128, 1).unwrap()); + mock.update_credit_account( + fund_acc_id, + fund_manager, + vec![Action::SwapExactIn { + coin_in: uusdc_info.to_action_coin(swap_amt.u128()), + denom_out: uatom_info.denom.clone(), + min_receive, + route: None, + }], + &[], + ) + .unwrap(); +} + +fn calculate_pnl(mock: &mut MockEnv, fund_acc_id: &str, new_atom_price: Decimal) -> Uint128 { + mock.price_change(CoinPrice { + pricing: ActionKind::Default, + denom: "uatom".to_string(), + price: new_atom_price, + }); + + let res = mock.query_positions(fund_acc_id); + assert_eq!(res.deposits.len(), 2); + + let mut pnl = Uint128::zero(); + for deposit in res.deposits.iter() { + let price = mock.query_price(&deposit.denom).price; + let value = deposit.amount * price; + pnl += value; + } + + pnl +} diff --git a/contracts/vault/tests/tests/test_redeem.rs b/contracts/vault/tests/tests/test_redeem.rs new file mode 100644 index 00000000..29669368 --- /dev/null +++ b/contracts/vault/tests/tests/test_redeem.rs @@ -0,0 +1,512 @@ +use cosmwasm_std::{coin, Addr, Decimal, Uint128}; +use cw_utils::PaymentError; +use mars_mock_oracle::msg::CoinPrice; +use mars_testing::multitest::helpers::{uosmo_info, CoinInfo}; +use mars_types::{ + credit_manager::{Action, ActionAmount, ActionCoin}, + health::AccountKind, + oracle::ActionKind, + params::LiquidationBonus, +}; +use mars_vault::error::ContractError; +use test_case::test_case; + +use super::{ + helpers::{AccountToFund, MockEnv}, + vault_helpers::{assert_vault_err, execute_deposit, execute_redeem, execute_unlock}, +}; +use crate::tests::{ + helpers::deploy_managed_vault, + vault_helpers::{query_convert_to_assets, query_convert_to_shares, query_vault_info}, +}; + +#[test] +fn redeem_invalid_funds() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "untrn"), coin(1_000_000_000, "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let res = execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[], + ); + assert_vault_err(res, ContractError::Payment(PaymentError::NoFunds {})); + + let res = execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(1_001, "untrn"), coin(1_002, "uusdc")], + ); + assert_vault_err(res, ContractError::Payment(PaymentError::MultipleDenoms {})); + + let res = execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(1_001, "untrn")], + ); + assert_vault_err( + res, + ContractError::Payment(PaymentError::MissingDenom("factory/contract11/vault".to_string())), + ); +} + +#[test] +fn redeem_if_credit_manager_account_not_binded() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "vault")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let deposited_amt = Uint128::new(123_000_000); + let res = execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "vault")], + ); + assert_vault_err(res, ContractError::VaultAccountNotFound {}); +} + +#[test] +fn redeem_if_unlocked_positions_not_found() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(1_000_000_000); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + let vault_token = vault_info_res.vault_token; + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // deposit to get vault tokens + let deposited_amt = Uint128::new(123_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + let res = execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(10u128, vault_token.clone())], + ); + assert_vault_err(res, ContractError::UnlockedPositionsNotFound {}); +} + +#[test] +fn redeem_invalid_unlocked_amount() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(1_000_000_000); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + let vault_token = vault_info_res.vault_token; + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let deposited_amt = Uint128::new(12_400_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + let user_vault_token_balance = mock.query_balance(&user, &vault_token).amount; + let first_unlock = user_vault_token_balance.multiply_ratio(1u128, 4u128); + let second_unlock = user_vault_token_balance.multiply_ratio(1u128, 4u128); + + execute_unlock(&mut mock, &user, &managed_vault_addr, first_unlock, &[]).unwrap(); + + // move time forward to create new unlock entry + mock.increment_by_time(5); + + execute_unlock(&mut mock, &user, &managed_vault_addr, second_unlock, &[]).unwrap(); + + // try to redeem when cooldown period hasn't passed yet + let res = execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(10u128, vault_token.clone())], + ); + assert_vault_err(res, mars_vault::error::ContractError::UnlockedPositionsNotFound {}); + + // move time forward to pass cooldown period + mock.increment_by_time(vault_info_res.cooldown_period + 1); + + let vault_tokens = first_unlock + second_unlock - Uint128::one(); + let res = execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(vault_tokens.u128(), vault_token.clone())], + ); + assert_vault_err( + res, + ContractError::InvalidAmount { + reason: "provided vault tokens is less than total unlocked amount".to_string(), + }, + ); +} + +#[test] +fn redeem_with_refund() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let user_funded_amt = Uint128::new(1_000_000_000); + let mut mock = MockEnv::new() + .set_params(&[uusdc_info()]) + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + let vault_token = vault_info_res.vault_token; + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let deposited_amt = Uint128::new(12_400_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + let user_vault_token_balance_before = mock.query_balance(&user, &vault_token).amount; + let unlock = user_vault_token_balance_before.multiply_ratio(1u128, 4u128); + + execute_unlock(&mut mock, &user, &managed_vault_addr, unlock, &[]).unwrap(); + + // move time forward to pass cooldown period + mock.increment_by_time(vault_info_res.cooldown_period + 1); + + let refund_amt = Uint128::new(123); + + let vault_tokens = unlock + refund_amt; + execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(vault_tokens.u128(), vault_token.clone())], + ) + .unwrap(); + + let contract_vault_token_balance = mock.query_balance(&managed_vault_addr, &vault_token).amount; + assert!(contract_vault_token_balance.is_zero()); + + // vault tokens should be refunded + let user_vault_token_balance = mock.query_balance(&user, &vault_token).amount; + assert_eq!(user_vault_token_balance, user_vault_token_balance_before - unlock); +} + +/// There are rounding errors when converting back and forth between base tokens and vault tokens so there could be a difference of 1 base token. +/// Also, there could be yield simulated for lend and debt - +1 to lend and -1 to debt. +#[test_case(2_000_000_000, 0, 2_000_000_000, 1, 0, 0; "redeem from deposit if no lend, dust left")] +#[test_case(2_000_000_000, 0, 2_000_000_001, 0, 0, 0; "redeem from deposit if no lend")] +#[test_case(2_000_000_000, 1_000_000_000, 500_000_000, 1_500_000_001, 1_000_000_001, 0; "redeem from deposit if lend available")] +#[test_case(2_000_000_000, 1_000_000_000, 2_200_000_000, 0, 800_000_002, 0; "redeem from deposit and lend")] +#[test_case(2_000_000_000, 1_000_000_000, 3_200_000_000, 0, 0, 199_999_999; "redeem from deposit, lend and debt")] +#[test_case(5_000_000_000, 2_000_000_000, 7_800_000_000, 0, 0, 0 => panics "Actions resulted in exceeding maximum allowed loan-to-value."; "redeem more than HF limit")] +fn redeem_succeded( + deposit_amt: u128, + lend_amt: u128, + requested_base_tokens: u128, + expected_deposit_amt: u128, + expected_lend_amt: u128, + expected_debt_amt: u128, +) { + let swap_amt = deposit_amt; + + let uusdc_info = uusdc_info(); + let uosmo_info = uosmo_info(); + + let liquidity_provider = Addr::unchecked("liquidity-provider"); + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let liquidity_provided_amt = Uint128::new(1_000_000_000_000); + let user_funded_amt = Uint128::new(100_000_000_000); + let mut mock = MockEnv::new() + .set_params(&[uusdc_info.clone(), uosmo_info.clone()]) + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(user_funded_amt.u128(), "uusdc")], + }) + .fund_account(AccountToFund { + addr: liquidity_provider.clone(), + funds: vec![coin(liquidity_provided_amt.u128(), "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + // provide liquidity into red bank + let account_id = mock.create_credit_account(&liquidity_provider).unwrap(); + let liquidity_coin = coin(liquidity_provided_amt.u128(), "uusdc"); + mock.update_credit_account( + &account_id, + &liquidity_provider, + vec![ + Action::Deposit(liquidity_coin.clone()), + Action::Lend(ActionCoin { + denom: "uusdc".to_string(), + amount: ActionAmount::AccountBalance, + }), + ], + &[liquidity_coin], + ) + .unwrap(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + let vault_info_res = query_vault_info(&mock, &managed_vault_addr); + let vault_token = vault_info_res.vault_token; + + let fund_acc_id = mock + .create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let mut fund_acc_amt = deposit_amt; + + let mut actions = vec![]; + if lend_amt != 0 { + actions.push(Action::Lend(uusdc_info.to_action_coin(lend_amt))); + fund_acc_amt += lend_amt; + } + let estimate_res = mock.query_swap_estimate_with_optional_route( + &uusdc_info.to_coin(swap_amt), + &uosmo_info.denom, + None, + ); + let min_receive = + estimate_res.amount * (Decimal::one() - Decimal::from_atomics(6u128, 1).unwrap()); + actions.push(Action::SwapExactIn { + coin_in: uusdc_info.to_action_coin(swap_amt), + denom_out: uosmo_info.denom.clone(), + min_receive, + route: None, + }); + fund_acc_amt += swap_amt; + + let fund_acc_amt = Uint128::new(fund_acc_amt); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(fund_acc_amt.u128(), "uusdc")], + ) + .unwrap(); + + // check base token balance after deposit + let user_base_token_balance_after_deposit = mock.query_balance(&user, "uusdc").amount; + + mock.update_credit_account(&fund_acc_id, &fund_manager, actions, &[]).unwrap(); + // Half of uusdc is swapped to uosmo (amount = MOCK_SWAP_RESULT from mocked swapper). + // Let's update the price of uosmo to be worth more than original uusdc amount. + mock.price_change(CoinPrice { + pricing: ActionKind::Default, + denom: uosmo_info.denom, + price: Decimal::from_atomics(1_000_000u128, 0).unwrap(), + }); + + // unlock vault tokens + let user_vault_token_balance = mock.query_balance(&user, &vault_token).amount; + let requested_base_tokens = Uint128::new(requested_base_tokens); + let unlock_vault_tokens = + query_convert_to_shares(&mock, &managed_vault_addr, requested_base_tokens); + execute_unlock(&mut mock, &user, &managed_vault_addr, unlock_vault_tokens, &[]).unwrap(); + + // recalculate the amount of base tokens to be redeemed + let unlock_base_tokens = + query_convert_to_assets(&mock, &managed_vault_addr, unlock_vault_tokens); + assert_eq!(unlock_base_tokens, requested_base_tokens - Uint128::one()); // rounding issue when doing back and forth conversion + + // move time forward to pass cooldown period + mock.increment_by_time(vault_info_res.cooldown_period + 1); + + execute_redeem( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(unlock_vault_tokens.u128(), vault_token.clone())], + ) + .unwrap(); + + // there shouldn't be any vault tokens after redeem + let vault_token_balance = mock.query_balance(&managed_vault_addr, &vault_token).amount; + assert!(vault_token_balance.is_zero()); + let vault_token_balance = mock.query_balance(&user, &vault_token).amount; + assert_eq!(vault_token_balance, user_vault_token_balance - unlock_vault_tokens); + + // check base token balance after redeem + let user_base_token_balance = mock.query_balance(&user, "uusdc").amount; + assert_eq!(user_base_token_balance, user_base_token_balance_after_deposit + unlock_base_tokens); + + // check Fund Manager's account after redeem + let res = mock.query_positions(&fund_acc_id); + let pos_deposit = + res.deposits.iter().find(|d| d.denom == "uusdc").map(|d| d.amount).unwrap_or_default(); + assert_eq!(pos_deposit.u128(), expected_deposit_amt); + let pos_lend = + res.lends.iter().find(|d| d.denom == "uusdc").map(|d| d.amount).unwrap_or_default(); + assert_eq!(pos_lend.u128(), expected_lend_amt); + let pos_debt = + res.debts.iter().find(|d| d.denom == "uusdc").map(|d| d.amount).unwrap_or_default(); + assert_eq!(pos_debt.u128(), expected_debt_amt); + + assert!(res.vaults.is_empty()); +} + +pub fn uusdc_info() -> CoinInfo { + CoinInfo { + denom: "uusdc".to_string(), + price: Decimal::from_atomics(102u128, 2).unwrap(), + max_ltv: Decimal::from_atomics(7u128, 1).unwrap(), + liquidation_threshold: Decimal::from_atomics(78u128, 2).unwrap(), + liquidation_bonus: LiquidationBonus { + starting_lb: Decimal::percent(1u64), + slope: Decimal::from_atomics(2u128, 0).unwrap(), + min_lb: Decimal::percent(2u64), + max_lb: Decimal::percent(10u64), + }, + protocol_liquidation_fee: Decimal::percent(2u64), + whitelisted: true, + hls: None, + } +} diff --git a/contracts/vault/tests/tests/test_unlock.rs b/contracts/vault/tests/tests/test_unlock.rs new file mode 100644 index 00000000..1eca3dbe --- /dev/null +++ b/contracts/vault/tests/tests/test_unlock.rs @@ -0,0 +1,190 @@ +use cosmwasm_std::{coin, Addr, Uint128}; +use mars_types::health::AccountKind; +use mars_vault::{error::ContractError, msg::VaultUnlock}; + +use super::{ + helpers::{AccountToFund, MockEnv}, + vault_helpers::{ + assert_vault_err, execute_deposit, execute_unlock, query_total_vault_token_supply, + query_user_unlocks, + }, +}; +use crate::tests::{ + helpers::deploy_managed_vault, + vault_helpers::{query_all_unlocks, query_convert_to_assets}, +}; + +#[test] +fn unlock_if_credit_manager_account_not_binded() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + let res = execute_unlock(&mut mock, &user, &managed_vault_addr, Uint128::one(), &[]); + assert_vault_err(res, ContractError::VaultAccountNotFound {}); +} + +#[test] +fn unlock_invalid_amount() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + // unlock zero vault tokens + let res = execute_unlock(&mut mock, &user, &managed_vault_addr, Uint128::zero(), &[]); + assert_vault_err( + res, + ContractError::InvalidAmount { + reason: "provided zero vault tokens".to_string(), + }, + ); + + let deposited_amt = Uint128::new(123_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + // unlock more than total vault tokens supply + let total_vault_supply = query_total_vault_token_supply(&mock, &managed_vault_addr); + let res = execute_unlock( + &mut mock, + &user, + &managed_vault_addr, + total_vault_supply + Uint128::one(), + &[], + ); + assert_vault_err( + res, + ContractError::InvalidAmount { + reason: "amount exceeds total vault token supply".to_string(), + }, + ); +} + +#[test] +fn unlock_succeded() { + let fund_manager = Addr::unchecked("fund-manager"); + let user = Addr::unchecked("user"); + let mut mock = MockEnv::new() + .fund_account(AccountToFund { + addr: fund_manager.clone(), + funds: vec![coin(1_000_000_000, "untrn")], + }) + .fund_account(AccountToFund { + addr: user.clone(), + funds: vec![coin(1_000_000_000, "uusdc")], + }) + .build() + .unwrap(); + let credit_manager = mock.rover.clone(); + + let managed_vault_addr = deploy_managed_vault(&mut mock.app, &fund_manager, &credit_manager); + + mock.create_credit_account_v2( + &fund_manager, + AccountKind::FundManager { + vault_addr: managed_vault_addr.to_string(), + }, + None, + ) + .unwrap(); + + let deposited_amt = Uint128::new(123_000_000); + execute_deposit( + &mut mock, + &user, + &managed_vault_addr, + Uint128::zero(), // we don't care about the amount, we are using the funds + None, + &[coin(deposited_amt.u128(), "uusdc")], + ) + .unwrap(); + + let total_vault_supply = query_total_vault_token_supply(&mock, &managed_vault_addr); + + // first unlock + let first_block_time = mock.query_block_time(); + let first_unlock_amt = total_vault_supply.multiply_ratio(1u128, 4u128); // unlock 1/4 + let first_base_tokens = query_convert_to_assets(&mock, &managed_vault_addr, first_unlock_amt); + execute_unlock(&mut mock, &user, &managed_vault_addr, first_unlock_amt, &[]).unwrap(); + + mock.increment_by_time(250); // 250 seconds + + // second unlock + let second_block_time = mock.query_block_time(); + let second_unlock_amt = total_vault_supply.multiply_ratio(2u128, 4u128); // unlock 2/4 + let second_base_tokens = query_convert_to_assets(&mock, &managed_vault_addr, first_unlock_amt); + execute_unlock(&mut mock, &user, &managed_vault_addr, second_unlock_amt, &[]).unwrap(); + + let user_unlocks = query_user_unlocks(&mock, &managed_vault_addr, &user); + assert_eq!( + user_unlocks.clone(), + vec![ + VaultUnlock { + user_address: user.to_string(), + created_at: first_block_time, + cooldown_end: first_block_time + 60, + vault_tokens: first_unlock_amt, + base_tokens: first_base_tokens + }, + VaultUnlock { + user_address: user.to_string(), + created_at: second_block_time, + cooldown_end: second_block_time + 60, + vault_tokens: second_unlock_amt, + base_tokens: second_base_tokens + } + ] + ); + + let all_unlocks = query_all_unlocks(&mock, &managed_vault_addr, None, None); + assert!(!all_unlocks.metadata.has_more); + assert_eq!(user_unlocks.clone(), all_unlocks.data); + + let all_unlocks = query_all_unlocks( + &mock, + &managed_vault_addr, + Some((user.to_string(), first_block_time)), + None, + ); + assert!(!all_unlocks.metadata.has_more); + assert_eq!(all_unlocks.data.len(), 1); + assert_eq!(user_unlocks[1..], all_unlocks.data); // only the second unlock +} diff --git a/contracts/vault/tests/tests/vault_helpers.rs b/contracts/vault/tests/tests/vault_helpers.rs new file mode 100644 index 00000000..4130a38f --- /dev/null +++ b/contracts/vault/tests/tests/vault_helpers.rs @@ -0,0 +1,198 @@ +use anyhow::Result as AnyResult; +use cosmwasm_std::{Addr, Coin, Uint128}; +use cw_multi_test::{AppResponse, Executor}; +use cw_paginate::PaginationResponse; +use mars_vault::{ + msg::{ + ExecuteMsg, ExtensionExecuteMsg, ExtensionQueryMsg, QueryMsg, VaultInfoResponseExt, + VaultUnlock, + }, + performance_fee::{PerformanceFeeConfig, PerformanceFeeState}, +}; + +use super::helpers::MockEnv; + +pub fn execute_bind_credit_manager_account( + mock_env: &mut MockEnv, + sender: &Addr, + vault: &Addr, + account_id: &str, +) -> AnyResult { + mock_env.app.execute_contract( + sender.clone(), + vault.clone(), + &ExecuteMsg::VaultExtension(ExtensionExecuteMsg::BindCreditManagerAccount { + account_id: account_id.to_string(), + }), + &[], + ) +} + +pub fn execute_deposit( + mock_env: &mut MockEnv, + sender: &Addr, + vault: &Addr, + amount: Uint128, + recipient: Option, + funds: &[Coin], +) -> AnyResult { + mock_env.app.execute_contract( + sender.clone(), + vault.clone(), + &ExecuteMsg::Deposit { + amount, + recipient, + }, + funds, + ) +} + +pub fn execute_redeem( + mock_env: &mut MockEnv, + sender: &Addr, + vault: &Addr, + amount: Uint128, + recipient: Option, + funds: &[Coin], +) -> AnyResult { + mock_env.app.execute_contract( + sender.clone(), + vault.clone(), + &ExecuteMsg::Redeem { + amount, + recipient, + }, + funds, + ) +} + +pub fn execute_unlock( + mock_env: &mut MockEnv, + sender: &Addr, + vault: &Addr, + amount: Uint128, + funds: &[Coin], +) -> AnyResult { + mock_env.app.execute_contract( + sender.clone(), + vault.clone(), + &ExecuteMsg::VaultExtension(ExtensionExecuteMsg::Unlock { + amount, + }), + funds, + ) +} + +pub fn execute_withdraw_performance_fee( + mock_env: &mut MockEnv, + sender: &Addr, + vault: &Addr, + new_performance_fee_config: Option, +) -> AnyResult { + mock_env.app.execute_contract( + sender.clone(), + vault.clone(), + &ExecuteMsg::VaultExtension(ExtensionExecuteMsg::WithdrawPerformanceFee { + new_performance_fee_config, + }), + &[], + ) +} + +pub fn query_vault_info(mock_env: &MockEnv, vault: &Addr) -> VaultInfoResponseExt { + mock_env + .app + .wrap() + .query_wasm_smart( + vault.to_string(), + &QueryMsg::VaultExtension(ExtensionQueryMsg::VaultInfo {}), + ) + .unwrap() +} + +pub fn query_total_vault_token_supply(mock_env: &MockEnv, vault: &Addr) -> Uint128 { + mock_env + .app + .wrap() + .query_wasm_smart(vault.to_string(), &QueryMsg::TotalVaultTokenSupply {}) + .unwrap() +} + +pub fn query_user_unlocks(mock_env: &MockEnv, vault: &Addr, user_addr: &Addr) -> Vec { + mock_env + .app + .wrap() + .query_wasm_smart( + vault.to_string(), + &QueryMsg::VaultExtension(ExtensionQueryMsg::UserUnlocks { + user_address: user_addr.to_string(), + }), + ) + .unwrap() +} + +pub fn query_all_unlocks( + mock_env: &MockEnv, + vault: &Addr, + start_after: Option<(String, u64)>, + limit: Option, +) -> PaginationResponse { + mock_env + .app + .wrap() + .query_wasm_smart( + vault.to_string(), + &QueryMsg::VaultExtension(ExtensionQueryMsg::AllUnlocks { + start_after, + limit, + }), + ) + .unwrap() +} + +pub fn query_convert_to_assets(mock_env: &MockEnv, vault: &Addr, vault_tokens: Uint128) -> Uint128 { + mock_env + .app + .wrap() + .query_wasm_smart( + vault.to_string(), + &QueryMsg::ConvertToAssets { + amount: vault_tokens, + }, + ) + .unwrap() +} + +pub fn query_convert_to_shares(mock_env: &MockEnv, vault: &Addr, base_tokens: Uint128) -> Uint128 { + mock_env + .app + .wrap() + .query_wasm_smart( + vault.to_string(), + &QueryMsg::ConvertToShares { + amount: base_tokens, + }, + ) + .unwrap() +} + +pub fn query_performance_fee(mock_env: &MockEnv, vault: &Addr) -> PerformanceFeeState { + mock_env + .app + .wrap() + .query_wasm_smart( + vault.to_string(), + &QueryMsg::VaultExtension(ExtensionQueryMsg::PerformanceFeeState {}), + ) + .unwrap() +} + +pub fn assert_vault_err(res: AnyResult, err: mars_vault::error::ContractError) { + match res { + Ok(_) => panic!("Result was not an error"), + Err(generic_err) => { + let contract_err: mars_vault::error::ContractError = generic_err.downcast().unwrap(); + assert_eq!(contract_err, err); + } + } +} diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml index 58332a01..3358607c 100755 --- a/integration-tests/Cargo.toml +++ b/integration-tests/Cargo.toml @@ -18,6 +18,7 @@ backtraces = ["cosmwasm-std/backtraces"] [dev-dependencies] anyhow = { workspace = true } +astroport-v5 = { workspace = true } cosmwasm-std = { workspace = true } cw-it = { workspace = true, features = ["osmosis-test-tube"] } cw-multi-test = { workspace = true } diff --git a/integration-tests/tests/test_astro_lp_incentives.rs b/integration-tests/tests/test_astro_lp_incentives.rs new file mode 100644 index 00000000..9c9dd69c --- /dev/null +++ b/integration-tests/tests/test_astro_lp_incentives.rs @@ -0,0 +1,205 @@ +use astroport_v5::{ + asset::{Asset, AssetInfo}, + incentives::InputSchedule, +}; +use cosmwasm_std::{coin, Addr, Coin, Uint128}; +use mars_testing::integration::mock_env::MockEnvBuilder; + +use crate::helpers::default_asset_params; +mod helpers; + +#[test] +fn can_be_first_staker() { + let owner = Addr::unchecked("owner"); + let mut mock_env = MockEnvBuilder::new(None, owner).build(); + + // Contracts + let params = mock_env.params.clone(); + let incentives = mock_env.incentives.clone(); + let credit_manager = mock_env.credit_manager.clone(); + + // Params + let lp_denom = "factory12345"; + let lp_coin = coin(1_000_000_000, lp_denom.to_string()); + + // Set asset params for lp token + let (_, asset_params) = default_asset_params(lp_denom); + params.init_params(&mut mock_env, asset_params); + + // Fund accounts + let funded_amt = 10_000_000_000u128; + mock_env.fund_account(&credit_manager, &[coin(funded_amt, lp_denom)]); + + incentives.stake_astro_lp(&mut mock_env, &credit_manager, "1".to_string(), lp_coin.clone()); + + let astro_lp_balance = + mock_env.query_balance(&mock_env.astro_incentives.contract_addr, lp_denom).unwrap(); + assert_eq!(astro_lp_balance, lp_coin) +} + +// User A stakes lp in astro and claims rewards +#[test] +fn claim_rewards() { + let owner = Addr::unchecked("owner"); + let mut mock_env = MockEnvBuilder::new(None, owner).build(); + + // Contracts + let params = mock_env.params.clone(); + let astro_incentives = mock_env.astro_incentives.clone(); + let incentives = mock_env.incentives.clone(); + let credit_manager = mock_env.credit_manager.clone(); + + // Params + let lp_denom = "factory12345"; + let reward_denom = "uusd"; + let lp_coin = Coin { + denom: lp_denom.to_string(), + amount: Uint128::new(1_000_000_000), + }; + let reward_asset = Asset { + info: AssetInfo::NativeToken { + denom: reward_denom.to_string(), + }, + amount: Uint128::new(10_000_000_000), + }; + + // Set asset params for lp token + let (_, asset_params) = default_asset_params(lp_denom); + params.init_params(&mut mock_env, asset_params); + + // Fund accounts + let funded_amt = 10_000_000_000u128; + mock_env.fund_account(&mock_env.owner.clone(), &[coin(funded_amt, reward_denom)]); + mock_env.fund_account(&credit_manager, &[coin(funded_amt, lp_denom)]); + + // set up our astroport incentives + let incentives_for_astro = &InputSchedule { + reward: reward_asset.clone(), + duration_periods: 1, + }; + + let rewards = vec![Coin::try_from(reward_asset.clone()).unwrap()]; + astro_incentives.set_incentive_schedule(&mut mock_env, lp_denom, incentives_for_astro, rewards); + + incentives.stake_astro_lp(&mut mock_env, &credit_manager, "1".to_string(), lp_coin); + // increase blocks? + mock_env.increment_by_blocks(1); + + let lp_rewards: Vec = + incentives.query_unclaimed_astroport_rewards(&mock_env, "1".to_string(), lp_denom).unwrap(); + + assert_eq!(lp_rewards.len(), 1); + let balance = mock_env.query_balance(&credit_manager, reward_denom).unwrap(); + assert_eq!(balance, coin(0, reward_denom)); + // claim rewards + incentives + .claim_astro_rewards(&mut mock_env, &credit_manager, "1".to_string(), lp_denom) + .unwrap(); + + // Ensure that balance of credit manager is updated with rewards paid + let balance = mock_env.query_balance(&credit_manager, reward_denom).unwrap(); + assert_eq!(balance, lp_rewards[0]); +} + +#[test] +fn claim_rewards_without_active_schedule() { + let owner = Addr::unchecked("owner"); + let mut mock_env = MockEnvBuilder::new(None, owner).build(); + + // Contracts + let params = mock_env.params.clone(); + let incentives = mock_env.incentives.clone(); + let credit_manager = mock_env.credit_manager.clone(); + + // Params + let lp_denom = "factory12345"; + + let lp_coin = Coin { + denom: lp_denom.to_string(), + amount: Uint128::new(1_000_000_000), + }; + + // Set asset params for lp token + let (_, asset_params) = default_asset_params(lp_denom); + params.init_params(&mut mock_env, asset_params); + + // Fund accounts + let funded_amt = 1_000_000_000u128; + mock_env.fund_account(&credit_manager, &[coin(funded_amt, lp_denom)]); + + incentives.stake_astro_lp(&mut mock_env, &credit_manager, "1".to_string(), lp_coin); + + mock_env.increment_by_blocks(1); + + // claim rewards + incentives + .claim_astro_rewards(&mut mock_env, &credit_manager, "1".to_string(), lp_denom) + .unwrap(); + let lp_balance = mock_env.query_balance(&mock_env.credit_manager, lp_denom).unwrap(); + assert_eq!(lp_balance.amount, Uint128::new(0)); +} + +#[test] +fn unstake_claims_rewards() { + let owner = Addr::unchecked("owner"); + let mut mock_env = MockEnvBuilder::new(None, owner).build(); + + // Contracts + let params = mock_env.params.clone(); + let astro_incentives = mock_env.astro_incentives.clone(); + let incentives = mock_env.incentives.clone(); + let credit_manager = mock_env.credit_manager.clone(); + + let funded_amt = 2_000_000_000u128; + + // Params + let lp_denom = "factory12345"; + let reward_denom = "uusd"; + + let lp_coin = Coin { + denom: lp_denom.to_string(), + amount: Uint128::new(funded_amt), + }; + + let reward_asset = Asset { + info: AssetInfo::NativeToken { + denom: reward_denom.to_string(), + }, + amount: Uint128::new(funded_amt), + }; + + // Set asset params for lp token + let (_, asset_params) = default_asset_params(lp_denom); + params.init_params(&mut mock_env, asset_params); + + // Fund accounts + mock_env.fund_account(&mock_env.owner.clone(), &[coin(funded_amt, reward_denom)]); + mock_env.fund_account(&credit_manager, &[coin(funded_amt, lp_denom)]); + + // set up our astroport incentives + let incentives_for_astro = &InputSchedule { + reward: reward_asset.clone(), + duration_periods: 1, + }; + + let rewards = vec![Coin::try_from(reward_asset.clone()).unwrap()]; + astro_incentives.set_incentive_schedule(&mut mock_env, lp_denom, incentives_for_astro, rewards); + + incentives.stake_astro_lp(&mut mock_env, &credit_manager, "1".to_string(), lp_coin.clone()); + + mock_env.increment_by_blocks(1); + + let lp_rewards: Vec = + incentives.query_unclaimed_astroport_rewards(&mock_env, "1".to_string(), lp_denom).unwrap(); + + incentives.unstake_astro_lp(&mut mock_env, &credit_manager, "1".to_string(), lp_coin.clone()); + + // Ensure that balance of credit manager is updated with rewards paid + let reward_balance = mock_env.query_balance(&credit_manager, reward_denom).unwrap(); + assert_eq!(reward_balance, lp_rewards[0]); + assert_eq!(lp_rewards.len(), 1); + + // Ensure our lp balance is incremented in credit manager + let lp_balance = mock_env.query_balance(&credit_manager, lp_denom).unwrap(); + assert_eq!(lp_balance, lp_coin); +} diff --git a/integration-tests/tests/test_oracles.rs b/integration-tests/tests/test_oracles.rs index f626f19f..6ef3fffc 100644 --- a/integration-tests/tests/test_oracles.rs +++ b/integration-tests/tests/test_oracles.rs @@ -1268,7 +1268,6 @@ fn setup_redbank(wasm: &Wasm, signer: &SigningAccount) -> (Strin address_provider: addr_provider_addr.clone(), epoch_duration: 604800, // 1 week in seconds max_whitelisted_denoms: 10, - mars_denom: "umars".to_string(), }, ); @@ -1367,6 +1366,18 @@ fn setup_redbank(wasm: &Wasm, signer: &SigningAccount) -> (Strin ) .unwrap(); + // We can simulate Astroport incentives contract deposits with own params address (we don't check deposit caps for Astroport incentives contract so it's safe to use params address here) + wasm.execute( + &addr_provider_addr, + &SetAddress { + address_type: MarsAddressType::AstroportIncentives, + address: params_addr.clone(), + }, + &[], + signer, + ) + .unwrap(); + let (market_params, asset_params) = default_asset_params("uosmo"); wasm.execute( diff --git a/integration-tests/tests/test_rewards_collector.rs b/integration-tests/tests/test_rewards_collector.rs index 4c3f4efe..c1ddf633 100644 --- a/integration-tests/tests/test_rewards_collector.rs +++ b/integration-tests/tests/test_rewards_collector.rs @@ -1,10 +1,10 @@ -use cosmwasm_std::{coin, Decimal}; +use cosmwasm_std::{coin, Decimal, Uint128}; use mars_types::{ address_provider::{ ExecuteMsg as ExecuteMsgAddr, InstantiateMsg as InstantiateAddr, MarsAddressType, }, rewards_collector::{ExecuteMsg, InstantiateMsg as InstantiateRewards, UpdateConfig}, - swapper::{OsmoRoute, OsmoSwap, SwapperRoute}, + swapper::{EstimateExactInSwapResponse, OsmoRoute, OsmoSwap, QueryMsg, SwapperRoute}, }; use osmosis_test_tube::{Account, Gamm, Module, OsmosisTestApp, Wasm}; @@ -54,6 +54,7 @@ fn swapping_rewards() { let safety_fund_denom = "uusdc"; let fee_collector_denom = "umars"; + let safety_tax_rate = Decimal::percent(25); let rewards_addr = instantiate_contract( &wasm, signer, @@ -61,7 +62,7 @@ fn swapping_rewards() { &InstantiateRewards { owner: signer.address(), address_provider: addr_provider_addr.clone(), - safety_tax_rate: Decimal::percent(25), + safety_tax_rate, safety_fund_denom: safety_fund_denom.to_string(), fee_collector_denom: fee_collector_denom.to_string(), channel_id: "channel-1".to_string(), @@ -86,7 +87,7 @@ fn swapping_rewards() { &addr_provider_addr, &mars_types::address_provider::ExecuteMsg::SetAddress { address_type: MarsAddressType::Swapper, - address: swapper_addr, + address: swapper_addr.clone(), }, &[], signer, @@ -152,6 +153,45 @@ fn swapping_rewards() { let fee_collector_denom_balance = bank.query_balance(&rewards_addr, fee_collector_denom); assert_eq!(fee_collector_denom_balance, 0u128); + let safety_fund_amt_swap = Uint128::new(osmo_balance) * safety_tax_rate; + let fee_collector_amt_swap = Uint128::new(osmo_balance) - safety_fund_amt_swap; + + let safety_fund_route = Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![OsmoSwap { + pool_id: pool_usdc_osmo, + to: safety_fund_denom.to_string(), + }], + })); + let safety_fund_estimate: EstimateExactInSwapResponse = wasm + .query( + &swapper_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(safety_fund_amt_swap.u128(), "uosmo"), + denom_out: safety_fund_denom.to_string(), + route: safety_fund_route.clone(), + }, + ) + .unwrap(); + let safety_fund_min_receive = safety_fund_estimate.amount * Decimal::percent(99); + + let fee_collector_route = Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![OsmoSwap { + pool_id: pool_mars_osmo, + to: fee_collector_denom.to_string(), + }], + })); + let fee_collector_estimate: EstimateExactInSwapResponse = wasm + .query( + &swapper_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(fee_collector_amt_swap.u128(), "uosmo"), + denom_out: fee_collector_denom.to_string(), + route: fee_collector_route.clone(), + }, + ) + .unwrap(); + let fee_collector_min_receive = fee_collector_estimate.amount * Decimal::percent(99); + // swap osmo println!("swap osmo"); wasm.execute( @@ -159,24 +199,67 @@ fn swapping_rewards() { &ExecuteMsg::SwapAsset { denom: "uosmo".to_string(), amount: None, - safety_fund_route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: pool_usdc_osmo, - to: safety_fund_denom.to_string(), - }], - })), - fee_collector_route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![OsmoSwap { - pool_id: pool_mars_osmo, - to: fee_collector_denom.to_string(), - }], - })), + safety_fund_route, + fee_collector_route, + safety_fund_min_receive: Some(safety_fund_min_receive), + fee_collector_min_receive: Some(fee_collector_min_receive), }, &[], signer, ) .unwrap(); + let safety_fund_amt_swap = Uint128::new(atom_balance) * safety_tax_rate; + let fee_collector_amt_swap = Uint128::new(atom_balance) - safety_fund_amt_swap; + + let safety_fund_route = Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![ + OsmoSwap { + pool_id: pool_atom_osmo, + to: "uosmo".to_string(), + }, + OsmoSwap { + pool_id: pool_usdc_osmo, + to: safety_fund_denom.to_string(), + }, + ], + })); + let safety_fund_estimate: EstimateExactInSwapResponse = wasm + .query( + &swapper_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(safety_fund_amt_swap.u128(), "uatom"), + denom_out: safety_fund_denom.to_string(), + route: safety_fund_route.clone(), + }, + ) + .unwrap(); + let safety_fund_min_receive = safety_fund_estimate.amount * Decimal::percent(99); + + let fee_collector_route = Some(SwapperRoute::Osmo(OsmoRoute { + swaps: vec![ + OsmoSwap { + pool_id: pool_atom_osmo, + to: "uosmo".to_string(), + }, + OsmoSwap { + pool_id: pool_mars_osmo, + to: fee_collector_denom.to_string(), + }, + ], + })); + let fee_collector_estimate: EstimateExactInSwapResponse = wasm + .query( + &swapper_addr, + &QueryMsg::EstimateExactInSwap { + coin_in: coin(fee_collector_amt_swap.u128(), "uatom"), + denom_out: fee_collector_denom.to_string(), + route: fee_collector_route.clone(), + }, + ) + .unwrap(); + let fee_collector_min_receive = fee_collector_estimate.amount * Decimal::percent(99); + // swap atom println!("second swap"); wasm.execute( @@ -184,30 +267,10 @@ fn swapping_rewards() { &ExecuteMsg::SwapAsset { denom: "uatom".to_string(), amount: None, - safety_fund_route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![ - OsmoSwap { - pool_id: pool_atom_osmo, - to: "uosmo".to_string(), - }, - OsmoSwap { - pool_id: pool_usdc_osmo, - to: safety_fund_denom.to_string(), - }, - ], - })), - fee_collector_route: Some(SwapperRoute::Osmo(OsmoRoute { - swaps: vec![ - OsmoSwap { - pool_id: pool_atom_osmo, - to: "uosmo".to_string(), - }, - OsmoSwap { - pool_id: pool_mars_osmo, - to: fee_collector_denom.to_string(), - }, - ], - })), + safety_fund_route, + fee_collector_route, + safety_fund_min_receive: Some(safety_fund_min_receive), + fee_collector_min_receive: Some(fee_collector_min_receive), }, &[], signer, diff --git a/integration-tests/tests/test_rover_flow.rs b/integration-tests/tests/test_rover_flow.rs index 4935e287..5ed52b45 100644 --- a/integration-tests/tests/test_rover_flow.rs +++ b/integration-tests/tests/test_rover_flow.rs @@ -1,9 +1,8 @@ -use cosmwasm_std::{coin, Addr, Decimal, Uint128}; -use mars_red_bank::error::ContractError; +use cosmwasm_std::{coin, Addr, Decimal}; use mars_testing::integration::mock_env::MockEnvBuilder; use mars_types::red_bank::UserHealthStatus; -use crate::helpers::{assert_red_bank_err, default_asset_params}; +use crate::helpers::default_asset_params; mod helpers; @@ -29,72 +28,28 @@ fn rover_flow() { red_bank.init_asset(&mut mock_env, "uatom", market_params); params.init_params(&mut mock_env, asset_params); - let rover = Addr::unchecked("rover"); + let rover = mock_env.credit_manager.clone(); - // deposit more than credit line - let rover_uusdc_limit = 1_000_000_000_000u128; - let uusdc_deposited = rover_uusdc_limit + 100_000u128; + // deposit more than borrowed + let uusdc_borrowed = 1_000_000_000_000u128; + let uusdc_deposited = uusdc_borrowed + 100_000u128; mock_env.fund_account(&owner, &[coin(uusdc_deposited, "uusdc")]); red_bank.deposit(&mut mock_env, &owner, coin(uusdc_deposited, "uusdc")).unwrap(); - // set credit line for rover - red_bank - .update_uncollateralized_loan_limit( - &mut mock_env, - &owner, - &rover, - "uusdc", - Uint128::from(rover_uusdc_limit), - ) - .unwrap(); - - // rover can't borrow above the credit line - let res_err = red_bank.borrow(&mut mock_env, &rover, "uusdc", rover_uusdc_limit + 1u128); - assert_red_bank_err(res_err, ContractError::BorrowAmountExceedsUncollateralizedLoanLimit {}); - - // rover borrows the entire line of credit + // rover borrows more than deposited let balance = mock_env.query_balance(&rover, "uusdc").unwrap(); assert_eq!(balance.amount.u128(), 0u128); - red_bank.borrow(&mut mock_env, &rover, "uusdc", rover_uusdc_limit).unwrap(); + red_bank.borrow(&mut mock_env, &rover, "uusdc", uusdc_borrowed).unwrap(); let balance = mock_env.query_balance(&rover, "uusdc").unwrap(); - assert_eq!(balance.amount.u128(), rover_uusdc_limit); + assert_eq!(balance.amount.u128(), uusdc_borrowed); let debt = red_bank.query_user_debt(&mut mock_env, &rover, "uusdc"); assert!(debt.uncollateralized); - assert_eq!(debt.amount.u128(), rover_uusdc_limit); - - // should be possible to update the credit line to less than current debt - let half_rover_uusdc_limit = rover_uusdc_limit / 2u128; - red_bank - .update_uncollateralized_loan_limit( - &mut mock_env, - &owner, - &rover, - "uusdc", - Uint128::from(half_rover_uusdc_limit), - ) - .unwrap(); - - // can't borrow above the credit line - let res_err = red_bank.borrow(&mut mock_env, &rover, "uusdc", 1u128); - assert_red_bank_err(res_err, ContractError::BorrowAmountExceedsUncollateralizedLoanLimit {}); + assert_eq!(debt.amount.u128(), uusdc_borrowed); // rover should be healthy (NotBorrowing because uncollateralized debt is not included in HF calculation) let position = red_bank.query_user_position(&mut mock_env, &rover); assert_eq!(position.health_status, UserHealthStatus::NotBorrowing); - // can't remove credit line for rover (rover has an outstanding debt) - let res_err = red_bank.update_uncollateralized_loan_limit( - &mut mock_env, - &owner, - &rover, - "uusdc", - Uint128::zero(), - ); - assert_red_bank_err(res_err, ContractError::UserHasUncollateralizedDebt {}); - let debt = red_bank.query_user_debt(&mut mock_env, &rover, "uusdc"); - assert!(debt.uncollateralized); - assert_eq!(debt.amount.u128(), rover_uusdc_limit); - // rover deposits some atom let deposited_atom = 15_000_000_000u128; mock_env.fund_account(&rover, &[coin(deposited_atom, "uatom")]); @@ -105,29 +60,14 @@ fn rover_flow() { assert_eq!(collateral.amount.u128(), deposited_atom); // rover repay full debt - red_bank.repay(&mut mock_env, &rover, coin(rover_uusdc_limit, "uusdc")).unwrap(); + red_bank.repay(&mut mock_env, &rover, coin(uusdc_borrowed, "uusdc")).unwrap(); let debt = red_bank.query_user_debt(&mut mock_env, &rover, "uusdc"); assert!(!debt.uncollateralized); assert_eq!(debt.amount.u128(), 0u128); - // remove credit line for rover - red_bank - .update_uncollateralized_loan_limit(&mut mock_env, &owner, &rover, "uusdc", Uint128::zero()) - .unwrap(); - // after debt repayment rover is able to borrow (using deposited collateral) red_bank.borrow(&mut mock_env, &rover, "uusdc", 1u128).unwrap(); let debt = red_bank.query_user_debt(&mut mock_env, &rover, "uusdc"); - assert!(!debt.uncollateralized); + assert!(debt.uncollateralized); assert_eq!(debt.amount.u128(), 1u128); - - // can't increase credit line for rover (rover has an outstanding debt - collateralized debt) - let res_err = red_bank.update_uncollateralized_loan_limit( - &mut mock_env, - &owner, - &rover, - "uusdc", - Uint128::from(rover_uusdc_limit), - ); - assert_red_bank_err(res_err, ContractError::UserHasCollateralizedDebt {}); } diff --git a/packages/health-computer/Cargo.toml b/packages/health-computer/Cargo.toml index 2537d938..eae15001 100644 --- a/packages/health-computer/Cargo.toml +++ b/packages/health-computer/Cargo.toml @@ -18,10 +18,8 @@ javascript = ["tsify", "wasm-bindgen", "mars-types/javascript"] [dependencies] cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } -cw-vault-standard = { workspace = true } mars-types = { workspace = true } schemars = { workspace = true } -serde = { workspace = true } serde_json = { workspace = true } tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } diff --git a/packages/health-computer/src/health_computer.rs b/packages/health-computer/src/health_computer.rs index 48d7745e..4af0262b 100644 --- a/packages/health-computer/src/health_computer.rs +++ b/packages/health-computer/src/health_computer.rs @@ -12,7 +12,7 @@ use mars_types::{ }, HealthResult, LiquidationPriceKind, SwapKind, }, - params::{AssetParams, CmSettings, VaultConfig}, + params::{AssetParams, CmSettings, HlsAssetType, VaultConfig}, }; #[cfg(feature = "javascript")] use tsify::Tsify; @@ -107,6 +107,9 @@ impl HealthComputer { let withdraw_denom_max_ltv = match self.kind { AccountKind::Default => params.max_loan_to_value, + AccountKind::FundManager { + .. + } => params.max_loan_to_value, AccountKind::HighLeveredStrategy => { params .credit_manager @@ -278,6 +281,9 @@ impl HealthComputer { let borrow_denom_max_ltv = match self.kind { AccountKind::Default => params.max_loan_to_value, + AccountKind::FundManager { + .. + } => params.max_loan_to_value, AccountKind::HighLeveredStrategy => { params .credit_manager @@ -348,6 +354,9 @@ impl HealthComputer { let checked_vault_max_ltv = if *whitelisted { match self.kind { AccountKind::Default => *max_loan_to_value, + AccountKind::FundManager { + .. + } => *max_loan_to_value, AccountKind::HighLeveredStrategy => { hls.as_ref() .ok_or(MissingHLSParams(addr.to_string()))? @@ -485,20 +494,24 @@ impl HealthComputer { let deposits = self.coins_value(&self.positions.deposits)?; let lends = self.coins_value(&self.positions.lends)?; let vaults = self.vaults_value()?; + let staked_lp = self.coins_value(&self.positions.staked_astro_lps)?; Ok(CollateralValue { total_collateral_value: deposits .total_collateral_value .checked_add(vaults.total_collateral_value)? - .checked_add(lends.total_collateral_value)?, + .checked_add(lends.total_collateral_value)? + .checked_add(staked_lp.total_collateral_value)?, max_ltv_adjusted_collateral: deposits .max_ltv_adjusted_collateral .checked_add(vaults.max_ltv_adjusted_collateral)? - .checked_add(lends.max_ltv_adjusted_collateral)?, + .checked_add(lends.max_ltv_adjusted_collateral)? + .checked_add(staked_lp.max_ltv_adjusted_collateral)?, liquidation_threshold_adjusted_collateral: deposits .liquidation_threshold_adjusted_collateral .checked_add(vaults.liquidation_threshold_adjusted_collateral)? - .checked_add(lends.liquidation_threshold_adjusted_collateral)?, + .checked_add(lends.liquidation_threshold_adjusted_collateral)? + .checked_add(staked_lp.liquidation_threshold_adjusted_collateral)?, }) } @@ -508,12 +521,7 @@ impl HealthComputer { let mut liquidation_threshold_adjusted_collateral = Uint128::zero(); for c in coins { - let coin_price = - self.denoms_data.prices.get(&c.denom).ok_or(MissingPrice(c.denom.clone()))?; - let coin_value = c.amount.checked_mul_floor(*coin_price)?; - total_collateral_value = total_collateral_value.checked_add(coin_value)?; - - let AssetParams { + let Some(AssetParams { credit_manager: CmSettings { hls, @@ -521,7 +529,15 @@ impl HealthComputer { }, liquidation_threshold, .. - } = self.denoms_data.params.get(&c.denom).ok_or(MissingParams(c.denom.clone()))?; + }) = self.coin_contribution_to_collateral(c)? + else { + continue; + }; + + let coin_price = + self.denoms_data.prices.get(&c.denom).ok_or(MissingPrice(c.denom.clone()))?; + let coin_value = c.amount.checked_mul_floor(*coin_price)?; + total_collateral_value = total_collateral_value.checked_add(coin_value)?; let checked_max_ltv = self.get_coin_max_ltv(&c.denom)?; @@ -531,6 +547,9 @@ impl HealthComputer { let checked_liquidation_threshold = match self.kind { AccountKind::Default => *liquidation_threshold, + AccountKind::FundManager { + .. + } => *liquidation_threshold, AccountKind::HighLeveredStrategy => { hls.as_ref().ok_or(MissingHLSParams(c.denom.clone()))?.liquidation_threshold } @@ -546,6 +565,55 @@ impl HealthComputer { }) } + fn coin_contribution_to_collateral(&self, coin: &Coin) -> HealthResult> { + let Some(asset_params) = self.denoms_data.params.get(&coin.denom) else { + // If the coin is not found (whitelisted), it is not considered for collateral + return Ok(None); + }; + + match self.kind { + AccountKind::HighLeveredStrategy => { + // HLS should have 0 or 1 debt denom in the account. If there are more than 1 we can safely calculate the collateral value + // because the rule will be checked in the Credit Manager contract and won't allow more than 1 debt denom in the account. + if !self.positions.debts.is_empty() { + let mut correlations = vec![]; + for debt in self.positions.debts.iter() { + let debt_params = self + .denoms_data + .params + .get(&debt.denom) + .ok_or(MissingParams(debt.denom.clone()))?; + let debt_hls = debt_params + .credit_manager + .hls + .as_ref() + .ok_or(MissingHLSParams(debt.denom.clone()))?; + + // collect all the correlations of the debts + correlations.extend(&debt_hls.correlations); + } + + // If the collateral is not correlated with any of the debts, skip it. + // It doesn't contribute to the collateral value. + if !correlations.contains(&&HlsAssetType::Coin { + denom: coin.denom.clone(), + }) { + return Ok(None); + } + } else if asset_params.credit_manager.hls.is_none() { + // Only collateral with hls params can be used in an HLS account and can contribute to the collateral value + return Ok(None); + } + } + AccountKind::Default => {} + AccountKind::FundManager { + .. + } => {} + } + + Ok(Some(asset_params)) + } + fn vaults_value(&self) -> HealthResult { let mut total_collateral_value = Uint128::zero(); let mut max_ltv_adjusted_collateral = Uint128::zero(); @@ -584,6 +652,9 @@ impl HealthComputer { let checked_vault_max_ltv = if *whitelisted && base_params.credit_manager.whitelisted { match self.kind { AccountKind::Default => *max_loan_to_value, + AccountKind::FundManager { + .. + } => *max_loan_to_value, AccountKind::HighLeveredStrategy => { hls.as_ref().ok_or(MissingHLSParams(addr.to_string()))?.max_loan_to_value } @@ -600,6 +671,9 @@ impl HealthComputer { let checked_liquidation_threshold = match self.kind { AccountKind::Default => *liquidation_threshold, + AccountKind::FundManager { + .. + } => *liquidation_threshold, AccountKind::HighLeveredStrategy => { hls.as_ref().ok_or(MissingHLSParams(addr.to_string()))?.liquidation_threshold } @@ -642,6 +716,9 @@ impl HealthComputer { match self.kind { AccountKind::Default => Ok(params.max_loan_to_value), + AccountKind::FundManager { + .. + } => Ok(params.max_loan_to_value), AccountKind::HighLeveredStrategy => Ok(params .credit_manager .hls diff --git a/packages/health-computer/tests/tests/helpers/mock_coin_info.rs b/packages/health-computer/tests/tests/helpers/mock_coin_info.rs index 01db06fe..2d1da6fe 100644 --- a/packages/health-computer/tests/tests/helpers/mock_coin_info.rs +++ b/packages/health-computer/tests/tests/helpers/mock_coin_info.rs @@ -120,9 +120,15 @@ pub fn ustars_info() -> CoinInfo { hls: Some(HlsParams { max_loan_to_value: Decimal::from_str("0.75").unwrap(), liquidation_threshold: Decimal::from_str("0.8").unwrap(), - correlations: vec![HlsAssetType::Coin { - denom: "stStars".to_string(), - }], + correlations: vec![ + HlsAssetType::Coin { + denom: "stStars".to_string(), + }, + HlsAssetType::Coin { + // can be also deposited for HLS + denom: "ustars".to_string(), + }, + ], }), }, red_bank: RedBankSettings { diff --git a/packages/health-computer/tests/tests/helpers/prop_test_runner_borrow.rs b/packages/health-computer/tests/tests/helpers/prop_test_runner_borrow.rs index d1cfca78..7d05cdb1 100644 --- a/packages/health-computer/tests/tests/helpers/prop_test_runner_borrow.rs +++ b/packages/health-computer/tests/tests/helpers/prop_test_runner_borrow.rs @@ -3,7 +3,7 @@ use mars_rover_health_computer::HealthComputer; use mars_types::{ adapters::vault::{CoinValue, VaultPositionValue}, credit_manager::DebtAmount, - health::BorrowTarget, + health::{AccountKind, BorrowTarget}, }; use proptest::{ strategy::Strategy, @@ -78,6 +78,11 @@ fn add_borrow( ) -> StdResult { let mut new_h = h.clone(); + // HLS can have only 0 or 1 debt + if h.kind == AccountKind::HighLeveredStrategy { + new_h.positions.debts.clear(); + } + new_h.positions.debts.push(DebtAmount { denom: denom.to_string(), shares: amount * Uint128::new(1000), diff --git a/packages/health-computer/tests/tests/helpers/prop_test_strategies.rs b/packages/health-computer/tests/tests/helpers/prop_test_strategies.rs index c44efbb3..ef6bcf86 100644 --- a/packages/health-computer/tests/tests/helpers/prop_test_strategies.rs +++ b/packages/health-computer/tests/tests/helpers/prop_test_strategies.rs @@ -9,7 +9,10 @@ use mars_types::{ }, credit_manager::{DebtAmount, Positions}, health::AccountKind, - params::{AssetParams, CmSettings, HlsParams, LiquidationBonus, RedBankSettings, VaultConfig}, + params::{ + AssetParams, CmSettings, HlsAssetType, HlsParams, LiquidationBonus, RedBankSettings, + VaultConfig, + }, }; use proptest::{ collection::vec, @@ -18,7 +21,13 @@ use proptest::{ }; fn random_account_kind() -> impl Strategy { - prop_oneof![Just(AccountKind::Default), Just(AccountKind::HighLeveredStrategy)] + prop_oneof![ + Just(AccountKind::Default), + Just(AccountKind::HighLeveredStrategy), + Just(AccountKind::FundManager { + vault_addr: "vault_addr".to_string() + }) + ] } fn random_denom() -> impl Strategy { @@ -206,6 +215,23 @@ fn random_coins(denoms_data: DenomsData) -> impl Strategy> { ) } +fn random_astro_lp_coins(denoms_data: DenomsData) -> impl Strategy> { + let denoms = denoms_data.params.keys().cloned().collect::>(); + let denoms_len = denoms.len(); + vec( + (0..denoms_len, 1..=10000000).prop_map(move |(index, amount)| { + let denom = denoms.get(index).unwrap().clone(); + let amount = Uint128::new(amount as u128); + + Coin { + denom: format!("factory/{}/astroport/share", denom), + amount, + } + }), + 0..denoms_len, + ) +} + fn random_debts(denoms_data: DenomsData) -> impl Strategy> { let denoms = denoms_data.params.keys().cloned().collect::>(); let denoms_len = denoms.len(); @@ -260,25 +286,59 @@ fn random_vault_positions(vd: VaultsData) -> impl Strategy impl Strategy { - (random_param_maps()).prop_flat_map(|(denoms_data, vaults_data)| { + (random_param_maps()).prop_flat_map(|(mut denoms_data, mut vaults_data)| { + update_hls_correlations(&mut denoms_data, &mut vaults_data); + ( random_account_kind(), random_coins(denoms_data.clone()), random_debts(denoms_data.clone()), random_coins(denoms_data.clone()), random_vault_positions(vaults_data.clone()), + random_astro_lp_coins(denoms_data.clone()), ) - .prop_map(move |(kind, deposits, debts, lends, vaults)| HealthComputer { - kind, - positions: Positions { - account_id: "123".to_string(), - deposits, - debts, - lends, - vaults, - }, - denoms_data: denoms_data.clone(), - vaults_data: vaults_data.clone(), + .prop_map(move |(kind, deposits, debts, lends, vaults, staked_astro_lps)| { + HealthComputer { + kind: kind.clone(), + positions: Positions { + account_id: "123".to_string(), + account_kind: kind, + deposits, + debts, + lends, + vaults, + staked_astro_lps, + }, + denoms_data: denoms_data.clone(), + vaults_data: vaults_data.clone(), + } }) }) } + +fn update_hls_correlations(denoms_data: &mut DenomsData, vaults_data: &mut VaultsData) { + // Add correlations to the denoms and vaults. This is necessary for the HealthComputer to be able to compute the health for HLS accounts. + let denoms = denoms_data + .params + .keys() + .map(|denom| HlsAssetType::Coin { + denom: denom.clone(), + }) + .collect::>>(); + let vaults = vaults_data + .vault_configs + .keys() + .map(|addr| HlsAssetType::Vault { + addr: addr.clone(), + }) + .collect::>>(); + let correlations = denoms.into_iter().chain(vaults).collect::>>(); + + for (_, params) in denoms_data.params.iter_mut() { + params.credit_manager.hls.as_mut().unwrap().correlations = correlations.clone(); + } + + for (_, config) in vaults_data.vault_configs.iter_mut() { + config.hls.as_mut().unwrap().correlations = correlations.clone(); + } +} diff --git a/packages/health-computer/tests/tests/test_health_scenarios.rs b/packages/health-computer/tests/tests/test_health_scenarios.rs index a221dcf9..9b21ef45 100644 --- a/packages/health-computer/tests/tests/test_health_scenarios.rs +++ b/packages/health-computer/tests/tests/test_health_scenarios.rs @@ -38,6 +38,8 @@ fn only_assets_with_no_debts() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![Coin { denom: umars.denom.clone(), amount: deposit_amount, @@ -45,6 +47,7 @@ fn only_assets_with_no_debts() { debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -99,6 +102,8 @@ fn terra_ragnarok() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![Coin { denom: uluna.denom.clone(), amount: deposit_amount, @@ -110,6 +115,7 @@ fn terra_ragnarok() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data: vaults_data.clone(), @@ -158,6 +164,8 @@ fn terra_ragnarok() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![Coin { denom: uluna.denom.clone(), amount: deposit_amount, @@ -169,6 +177,7 @@ fn terra_ragnarok() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -219,6 +228,8 @@ fn ltv_and_lqdt_adjusted_values() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![ Coin { denom: ustars.denom.clone(), @@ -236,6 +247,7 @@ fn ltv_and_lqdt_adjusted_values() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -328,6 +340,8 @@ fn debt_value() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![ Coin { denom: ustars.denom.clone(), @@ -356,6 +370,7 @@ fn debt_value() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -450,6 +465,8 @@ fn above_max_ltv_below_liq_threshold() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![DebtAmount { denom: udai.denom, @@ -458,6 +475,7 @@ fn above_max_ltv_below_liq_threshold() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -505,6 +523,8 @@ fn liquidatable() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -520,6 +540,7 @@ fn liquidatable() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -569,6 +590,8 @@ fn rover_whitelist_influences_max_ltv() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -584,6 +607,7 @@ fn rover_whitelist_influences_max_ltv() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -657,6 +681,8 @@ fn unlocked_vault() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -675,6 +701,7 @@ fn unlocked_vault() { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::new(5264))), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -748,6 +775,8 @@ fn locked_vault() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -769,6 +798,7 @@ fn locked_vault() { unlocking: UnlockingPositions::new(vec![]), }), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -842,6 +872,8 @@ fn locked_vault_with_unlocking_positions() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -872,6 +904,7 @@ fn locked_vault_with_unlocking_positions() { ]), }), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -945,6 +978,8 @@ fn vault_is_not_whitelisted() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -963,6 +998,7 @@ fn vault_is_not_whitelisted() { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::new(5264))), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -1042,6 +1078,8 @@ fn vault_base_token_is_not_whitelisted() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -1072,6 +1110,7 @@ fn vault_base_token_is_not_whitelisted() { ]), }), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -1122,6 +1161,8 @@ fn lent_coins_used_as_collateral() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(23, &udai.denom)], debts: vec![DebtAmount { denom: udai.denom.clone(), @@ -1130,6 +1171,7 @@ fn lent_coins_used_as_collateral() { }], lends: vec![coin(10, udai.denom), coin(2, uluna.denom)], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -1182,6 +1224,8 @@ fn allowed_lent_coins_influence_max_ltv() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(23, &udai.denom)], debts: vec![DebtAmount { denom: udai.denom.clone(), @@ -1190,6 +1234,7 @@ fn allowed_lent_coins_influence_max_ltv() { }], lends: vec![coin(10, udai.denom), coin(2, uluna.denom)], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_hls.rs b/packages/health-computer/tests/tests/test_hls.rs index 8b8432d5..9da405e9 100644 --- a/packages/health-computer/tests/tests/test_hls.rs +++ b/packages/health-computer/tests/tests/test_hls.rs @@ -11,7 +11,7 @@ use mars_types::{ params::{HlsParams, VaultConfig}, }; -use super::helpers::{udai_info, ustars_info}; +use super::helpers::ustars_info; #[test] fn hls_deposit() { @@ -32,6 +32,8 @@ fn hls_deposit() { kind: AccountKind::HighLeveredStrategy, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::HighLeveredStrategy, + deposits: vec![Coin { denom: ustars.denom.clone(), amount: deposit_amount, @@ -39,6 +41,7 @@ fn hls_deposit() { debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -69,17 +72,10 @@ fn hls_deposit() { #[test] fn hls_vault() { let ustars = ustars_info(); - let udai = udai_info(); let denoms_data = DenomsData { - prices: HashMap::from([ - (ustars.denom.clone(), ustars.price), - (udai.denom.clone(), udai.price), - ]), - params: HashMap::from([ - (ustars.denom.clone(), ustars.params.clone()), - (udai.denom.clone(), udai.params.clone()), - ]), + prices: HashMap::from([(ustars.denom.clone(), ustars.price)]), + params: HashMap::from([(ustars.denom.clone(), ustars.params.clone())]), }; let vault = Vault::new(Addr::unchecked("vault_addr_123".to_string())); @@ -121,24 +117,19 @@ fn hls_vault() { kind: AccountKind::HighLeveredStrategy, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::HighLeveredStrategy, deposits: vec![coin(1200, &ustars.denom)], - debts: vec![ - DebtAmount { - denom: udai.denom, - shares: Default::default(), - amount: Uint128::new(3100), - }, - DebtAmount { - denom: ustars.denom, - shares: Default::default(), - amount: Uint128::new(200), - }, - ], + debts: vec![DebtAmount { + denom: ustars.denom, + shares: Default::default(), + amount: Uint128::new(200), + }], lends: vec![], vaults: vec![VaultPosition { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::new(5264))), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -148,14 +139,14 @@ fn hls_vault() { assert_eq!(health.total_collateral_value, Uint128::new(6318574763758)); assert_eq!(health.max_ltv_adjusted_collateral, Uint128::new(4738931072818)); assert_eq!(health.liquidation_threshold_adjusted_collateral, Uint128::new(5054859811006)); - assert_eq!(health.total_debt_value, Uint128::new(1053095794055)); + assert_eq!(health.total_debt_value, Uint128::new(1053095793083)); assert_eq!( health.max_ltv_health_factor, - Some(Decimal::from_str("4.499999999592154861").unwrap()) + Some(Decimal::from_str("4.500000003745623167").unwrap()) ); assert_eq!( health.liquidation_health_factor, - Some(Decimal::from_str("4.799999999565091796").unwrap()) + Some(Decimal::from_str("4.800000003995457989").unwrap()) ); assert!(!health.is_above_max_ltv()); assert!(!health.is_liquidatable()); @@ -181,6 +172,7 @@ fn hls_on_blacklisted_asset() { kind: AccountKind::HighLeveredStrategy, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::HighLeveredStrategy, deposits: vec![Coin { denom: ustars.denom.clone(), amount: deposit_amount, @@ -188,6 +180,7 @@ fn hls_on_blacklisted_asset() { debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -213,17 +206,10 @@ fn hls_on_blacklisted_asset() { #[test] fn hls_on_blacklisted_vault() { let ustars = ustars_info(); - let udai = udai_info(); let denoms_data = DenomsData { - prices: HashMap::from([ - (ustars.denom.clone(), ustars.price), - (udai.denom.clone(), udai.price), - ]), - params: HashMap::from([ - (ustars.denom.clone(), ustars.params.clone()), - (udai.denom.clone(), udai.params.clone()), - ]), + prices: HashMap::from([(ustars.denom.clone(), ustars.price)]), + params: HashMap::from([(ustars.denom.clone(), ustars.params.clone())]), }; let vault = Vault::new(Addr::unchecked("vault_addr_123".to_string())); @@ -265,24 +251,19 @@ fn hls_on_blacklisted_vault() { kind: AccountKind::HighLeveredStrategy, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::HighLeveredStrategy, deposits: vec![coin(1200, &ustars.denom)], - debts: vec![ - DebtAmount { - denom: udai.denom, - shares: Default::default(), - amount: Uint128::new(3100), - }, - DebtAmount { - denom: ustars.denom, - shares: Default::default(), - amount: Uint128::new(200), - }, - ], + debts: vec![DebtAmount { + denom: ustars.denom, + shares: Default::default(), + amount: Uint128::new(200), + }], lends: vec![], vaults: vec![VaultPosition { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::new(5264))), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -292,14 +273,14 @@ fn hls_on_blacklisted_vault() { assert_eq!(health.total_collateral_value, Uint128::new(6318574763758)); assert_eq!(health.max_ltv_adjusted_collateral, Uint128::new(4738931068870)); assert_eq!(health.liquidation_threshold_adjusted_collateral, Uint128::new(5054859811006)); - assert_eq!(health.total_debt_value, Uint128::new(1053095794055)); + assert_eq!(health.total_debt_value, Uint128::new(1053095793083)); assert_eq!( health.max_ltv_health_factor, - Some(Decimal::from_str("4.499999995843208163").unwrap()) + Some(Decimal::from_str("4.499999999996676465").unwrap()) ); assert_eq!( health.liquidation_health_factor, - Some(Decimal::from_str("4.799999999565091796").unwrap()) + Some(Decimal::from_str("4.800000003995457989").unwrap()) ); assert!(!health.is_above_max_ltv()); assert!(!health.is_liquidatable()); diff --git a/packages/health-computer/tests/tests/test_input_validation.rs b/packages/health-computer/tests/tests/test_input_validation.rs index 0d693cd0..917a147c 100644 --- a/packages/health-computer/tests/tests/test_input_validation.rs +++ b/packages/health-computer/tests/tests/test_input_validation.rs @@ -35,6 +35,8 @@ fn missing_price_data() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -50,6 +52,7 @@ fn missing_price_data() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -81,6 +84,8 @@ fn missing_params() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -96,13 +101,33 @@ fn missing_params() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, }; - let err: HealthError = h.compute_health().unwrap_err(); - assert_eq!(err, HealthError::MissingParams(umars.denom)) + // If asset params is missing for a denom (in params contract), both price and params will be missing in denoms_data. + // For purpose of this test, we set the price for umars, but not the params. + let res = h.compute_health().unwrap(); + // mars is not counted in the collateral because it has no params + let expected_ltv_collateral = Uint128::new(33) + .checked_mul_floor(udai.price) + .unwrap() + .checked_mul_floor(udai.params.max_loan_to_value) + .unwrap(); + assert_eq!(res.max_ltv_adjusted_collateral, expected_ltv_collateral); + let expected_liq_collateral = Uint128::new(33) + .checked_mul_floor(udai.price) + .unwrap() + .checked_mul_floor(udai.params.liquidation_threshold) + .unwrap(); + assert_eq!(res.liquidation_threshold_adjusted_collateral, expected_liq_collateral); + let udai_debt = Uint128::new(3100).checked_mul_ceil(udai.price).unwrap(); + // mars is counted in the debt because it has a price + let umars_debt = Uint128::new(200).checked_mul_ceil(umars.price).unwrap(); + let expected_debt = udai_debt + umars_debt; + assert_eq!(res.total_debt_value, expected_debt); } #[test] @@ -147,6 +172,8 @@ fn missing_market_data_for_vault_base_token() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![], debts: vec![], lends: vec![], @@ -154,6 +181,7 @@ fn missing_market_data_for_vault_base_token() { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::one())), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -191,6 +219,8 @@ fn missing_vault_value() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![], debts: vec![], lends: vec![], @@ -198,6 +228,7 @@ fn missing_vault_value() { vault: vault.clone(), amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::one())), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -239,6 +270,8 @@ fn missing_vault_config() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![], debts: vec![], lends: vec![], @@ -246,6 +279,7 @@ fn missing_vault_config() { vault: vault.clone(), amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::one())), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -273,6 +307,8 @@ fn missing_hls_params() { kind: AccountKind::HighLeveredStrategy, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::HighLeveredStrategy, + deposits: vec![coin(1200, &umars.denom)], debts: vec![DebtAmount { denom: umars.denom.clone(), @@ -281,6 +317,7 @@ fn missing_hls_params() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_max_borrow_deposit.rs b/packages/health-computer/tests/tests/test_max_borrow_deposit.rs index ef121dcf..ccc4fbf2 100644 --- a/packages/health-computer/tests/tests/test_max_borrow_deposit.rs +++ b/packages/health-computer/tests/tests/test_max_borrow_deposit.rs @@ -27,10 +27,13 @@ fn max_borrow_deposit_offset_good() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &udai.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -59,10 +62,13 @@ fn max_borrow_deposit_offset_margin_of_error() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_max_borrow_validation.rs b/packages/health-computer/tests/tests/test_max_borrow_validation.rs index 08e5dc76..16c2aac2 100644 --- a/packages/health-computer/tests/tests/test_max_borrow_validation.rs +++ b/packages/health-computer/tests/tests/test_max_borrow_validation.rs @@ -35,6 +35,7 @@ fn missing_borrow_denom_price_data() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -50,6 +51,7 @@ fn missing_borrow_denom_price_data() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -82,6 +84,7 @@ fn missing_borrow_denom_params() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -97,6 +100,7 @@ fn missing_borrow_denom_params() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -132,6 +136,7 @@ fn cannot_borrow_when_unhealthy() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -147,6 +152,7 @@ fn cannot_borrow_when_unhealthy() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -160,17 +166,10 @@ fn cannot_borrow_when_unhealthy() { #[test] fn hls_influences_max_borrow() { let ustars = ustars_info(); - let udai = udai_info(); let denoms_data = DenomsData { - prices: HashMap::from([ - (ustars.denom.clone(), ustars.price), - (udai.denom.clone(), udai.price), - ]), - params: HashMap::from([ - (ustars.denom.clone(), ustars.params.clone()), - (udai.denom.clone(), udai.params.clone()), - ]), + prices: HashMap::from([(ustars.denom.clone(), ustars.price)]), + params: HashMap::from([(ustars.denom.clone(), ustars.params.clone())]), }; let vault = Vault::new(Addr::unchecked("vault_addr_123".to_string())); @@ -212,24 +211,20 @@ fn hls_influences_max_borrow() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &ustars.denom)], - debts: vec![ - DebtAmount { - denom: udai.denom, - shares: Default::default(), - amount: Uint128::new(3100), - }, - DebtAmount { - denom: ustars.denom.clone(), - shares: Default::default(), - amount: Uint128::new(800), - }, - ], + debts: vec![DebtAmount { + denom: ustars.denom.clone(), + shares: Default::default(), + amount: Uint128::new(800), + }], lends: vec![], vaults: vec![VaultPosition { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::new(5264))), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_max_borrow_vault.rs b/packages/health-computer/tests/tests/test_max_borrow_vault.rs index 4bfe9d89..55807f3f 100644 --- a/packages/health-computer/tests/tests/test_max_borrow_vault.rs +++ b/packages/health-computer/tests/tests/test_max_borrow_vault.rs @@ -31,10 +31,12 @@ fn max_borrow_vault_offset_good() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &udai.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -74,10 +76,13 @@ fn max_borrow_vault_offset_margin_of_error() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_max_borrow_wallet.rs b/packages/health-computer/tests/tests/test_max_borrow_wallet.rs index 88d8403a..303effa5 100644 --- a/packages/health-computer/tests/tests/test_max_borrow_wallet.rs +++ b/packages/health-computer/tests/tests/test_max_borrow_wallet.rs @@ -27,10 +27,12 @@ fn max_borrow_wallet_offset_good() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &udai.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -59,10 +61,12 @@ fn max_borrow_wallet_offset_margin_of_error() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &umars.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_max_swap.rs b/packages/health-computer/tests/tests/test_max_swap.rs index 901bb97f..9fe57da8 100644 --- a/packages/health-computer/tests/tests/test_max_swap.rs +++ b/packages/health-computer/tests/tests/test_max_swap.rs @@ -34,10 +34,13 @@ fn max_swap_default() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &udai.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -74,10 +77,13 @@ fn max_swap_margin() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(5000, &udai.denom), coin(500, &umars.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_max_swap_validation.rs b/packages/health-computer/tests/tests/test_max_swap_validation.rs index 0a366c64..36f24270 100644 --- a/packages/health-computer/tests/tests/test_max_swap_validation.rs +++ b/packages/health-computer/tests/tests/test_max_swap_validation.rs @@ -35,6 +35,8 @@ fn missing_price_data() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -50,6 +52,7 @@ fn missing_price_data() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -83,6 +86,8 @@ fn missing_params() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -98,15 +103,16 @@ fn missing_params() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, }; - let err: HealthError = h + let res = h .max_swap_amount_estimate(&umars.denom, &udai.denom, &SwapKind::Default, Decimal::zero()) - .unwrap_err(); - assert_eq!(err, HealthError::MissingParams(umars.denom)); + .unwrap(); + assert_eq!(res, Uint128::zero()); } #[test] @@ -127,10 +133,13 @@ fn deposit_not_present() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -167,6 +176,8 @@ fn zero_when_unhealthy() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -182,6 +193,7 @@ fn zero_when_unhealthy() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -221,10 +233,13 @@ fn no_debts() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(deposit_amount.u128(), &ustars.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -262,6 +277,8 @@ fn should_allow_max_swap() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(deposit_amount.u128(), &udai.denom)], debts: vec![DebtAmount { denom: udai.denom.clone(), @@ -270,6 +287,7 @@ fn should_allow_max_swap() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -337,24 +355,20 @@ fn hls_with_max_withdraw() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &ustars.denom)], - debts: vec![ - DebtAmount { - denom: uatom.denom.clone(), - shares: Default::default(), - amount: Uint128::new(3100), - }, - DebtAmount { - denom: ustars.denom.clone(), - shares: Default::default(), - amount: Uint128::new(800), - }, - ], + debts: vec![DebtAmount { + denom: ustars.denom.clone(), + shares: Default::default(), + amount: Uint128::new(800), + }], lends: vec![], vaults: vec![VaultPosition { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::new(5264))), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/health-computer/tests/tests/test_max_withdraw.rs b/packages/health-computer/tests/tests/test_max_withdraw.rs index 8b22595c..9635dc6a 100644 --- a/packages/health-computer/tests/tests/test_max_withdraw.rs +++ b/packages/health-computer/tests/tests/test_max_withdraw.rs @@ -35,6 +35,8 @@ fn missing_price_data() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -50,6 +52,7 @@ fn missing_price_data() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -81,6 +84,8 @@ fn missing_params() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -96,6 +101,7 @@ fn missing_params() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -121,10 +127,13 @@ fn deposit_not_present() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -163,6 +172,8 @@ fn blacklisted_assets_should_be_able_be_fully_withdrawn() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(total_deposit.u128(), &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -178,6 +189,7 @@ fn blacklisted_assets_should_be_able_be_fully_withdrawn() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -216,6 +228,8 @@ fn zero_when_unhealthy() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(1200, &umars.denom), coin(33, &udai.denom)], debts: vec![ DebtAmount { @@ -231,6 +245,7 @@ fn zero_when_unhealthy() { ], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -261,10 +276,13 @@ fn no_debts() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, + deposits: vec![coin(deposit_amount.u128(), &ustars.denom)], debts: vec![], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -300,6 +318,7 @@ fn should_allow_max_withdraw() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &umars.denom), coin(deposit_amount.u128(), &udai.denom)], debts: vec![DebtAmount { denom: udai.denom.clone(), @@ -308,6 +327,7 @@ fn should_allow_max_withdraw() { }], lends: vec![], vaults: vec![], + staked_astro_lps: vec![], }, denoms_data, vaults_data, @@ -321,17 +341,10 @@ fn should_allow_max_withdraw() { #[test] fn hls_with_max_withdraw() { let ustars = ustars_info(); - let udai = udai_info(); let denoms_data = DenomsData { - prices: HashMap::from([ - (ustars.denom.clone(), ustars.price), - (udai.denom.clone(), udai.price), - ]), - params: HashMap::from([ - (ustars.denom.clone(), ustars.params.clone()), - (udai.denom.clone(), udai.params.clone()), - ]), + prices: HashMap::from([(ustars.denom.clone(), ustars.price)]), + params: HashMap::from([(ustars.denom.clone(), ustars.params.clone())]), }; let vault = Vault::new(Addr::unchecked("vault_addr_123".to_string())); @@ -373,24 +386,19 @@ fn hls_with_max_withdraw() { kind: AccountKind::Default, positions: Positions { account_id: "123".to_string(), + account_kind: AccountKind::Default, deposits: vec![coin(1200, &ustars.denom)], - debts: vec![ - DebtAmount { - denom: udai.denom, - shares: Default::default(), - amount: Uint128::new(3100), - }, - DebtAmount { - denom: ustars.denom.clone(), - shares: Default::default(), - amount: Uint128::new(800), - }, - ], + debts: vec![DebtAmount { + denom: ustars.denom.clone(), + shares: Default::default(), + amount: Uint128::new(800), + }], lends: vec![], vaults: vec![VaultPosition { vault, amount: VaultPositionAmount::Unlocked(VaultAmount::new(Uint128::new(5264))), }], + staked_astro_lps: vec![], }, denoms_data, vaults_data, diff --git a/packages/interest-rate/Cargo.toml b/packages/interest-rate/Cargo.toml index 564ab818..41a5aaf0 100644 --- a/packages/interest-rate/Cargo.toml +++ b/packages/interest-rate/Cargo.toml @@ -19,7 +19,5 @@ doctest = false backtraces = ["cosmwasm-std/backtraces"] [dependencies] -cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } -mars-utils = { workspace = true } mars-types = { workspace = true } diff --git a/packages/testing/Cargo.toml b/packages/testing/Cargo.toml index 355f458e..34b0610d 100644 --- a/packages/testing/Cargo.toml +++ b/packages/testing/Cargo.toml @@ -22,24 +22,43 @@ osmosis-test-tube = ["cw-it/osmosis-test-tube"] [dependencies] anyhow = { workspace = true } astroport = { workspace = true, optional = true } +astroport-v5 = { workspace = true } cosmwasm-std = { workspace = true } cosmwasm-schema = { workspace = true } +cw721 = { workspace = true } +cw721-base = { workspace = true } +cw-utils = { workspace = true } +cw-paginate = { workspace = true } +cw-vault-standard = { workspace = true } ica-oracle = { workspace = true } osmosis-std = { workspace = true } +mars-account-nft = { workspace = true } mars-address-provider = { workspace = true } +mars-credit-manager = { workspace = true } mars-incentives = { workspace = true } +mars-mock-astroport-incentives = { workspace = true } +mars-mock-incentives = { workspace = true } +mars-mock-oracle = { workspace = true } mars-mock-pyth = { workspace = true } +mars-mock-red-bank = { workspace = true } +mars-mock-vault = { workspace = true } mars-oracle-osmosis = { workspace = true } mars-oracle-wasm = { workspace = true } -mars-osmosis = { workspace = true } mars-owner = { workspace = true } mars-params = { workspace = true } mars-red-bank = { workspace = true } mars-rewards-collector-osmosis = { workspace = true } +mars-rover-health = { workspace = true } mars-swapper-astroport = { workspace = true } +mars-swapper-mock = { workspace = true } mars-types = { workspace = true } +mars-vault = { workspace = true } +mars-zapper-mock = { workspace = true } prost = { workspace = true } pyth-sdk-cw = { workspace = true } +regex = { workspace = true } +schemars = { workspace = true } +serde = { workspace = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] cw-it = { workspace = true, features = ["multi-test"] } diff --git a/packages/testing/src/astroport_incentives_querier.rs b/packages/testing/src/astroport_incentives_querier.rs new file mode 100644 index 00000000..d969950b --- /dev/null +++ b/packages/testing/src/astroport_incentives_querier.rs @@ -0,0 +1,50 @@ +use std::collections::HashMap; + +use astroport_v5::{asset::Asset, incentives::QueryMsg}; +use cosmwasm_std::{to_json_binary, Addr, Binary, ContractResult, QuerierResult, Uint128}; + +pub struct AstroportIncentivesQuerier { + /// Holds mock rewards, key is (user, lp_token_denom) + pub unclaimed_rewards: HashMap<(String, String), Vec>, + pub deposits: HashMap<(String, String), Uint128>, + pub incentives_addr: Addr, +} + +impl Default for AstroportIncentivesQuerier { + fn default() -> Self { + AstroportIncentivesQuerier { + incentives_addr: Addr::unchecked("astroport_incentives"), + unclaimed_rewards: HashMap::new(), + deposits: HashMap::new(), + } + } +} + +impl AstroportIncentivesQuerier { + pub fn handle_query(&self, contract_addr: &Addr, query: QueryMsg) -> QuerierResult { + if contract_addr != self.incentives_addr { + panic!( + "[mock]: made an astroport incentives query but astroport incentive contract address is incorrect, was: {}, should be {}", + contract_addr, + self.incentives_addr, + ); + } + + let ret: ContractResult = match query { + QueryMsg::Deposit { + lp_token, + user, + } => to_json_binary(self.deposits.get(&(user, lp_token)).unwrap_or(&Uint128::zero())) + .into(), + QueryMsg::PendingRewards { + lp_token, + user, + } => to_json_binary(&self.unclaimed_rewards.get(&(user, lp_token)).unwrap_or(&vec![])) + .into(), + + _ => Err("[mock]: query not supported").into(), + }; + + Ok(ret).into() + } +} diff --git a/packages/testing/src/astroport_swapper.rs b/packages/testing/src/astroport_swapper.rs index 4c7fd024..7bfa865e 100644 --- a/packages/testing/src/astroport_swapper.rs +++ b/packages/testing/src/astroport_swapper.rs @@ -1,5 +1,5 @@ -use astroport::router::SwapOperation; -use cosmwasm_std::{Coin, Decimal, Uint128}; +use astroport_v5::router::SwapOperation; +use cosmwasm_std::{Coin, Uint128}; #[cfg(feature = "osmosis-test-tube")] use cw_it::Artifact; use cw_it::{ @@ -181,12 +181,12 @@ impl<'a> AstroportSwapperRobot<'a> { &self, coin_in: Coin, denom_out: impl Into, - slippage: Decimal, + min_receive: Uint128, signer: &SigningAccount, route: SwapperRoute, ) -> &Self { println!("swapping {}", coin_in); - self.swap_res(coin_in, denom_out, slippage, signer, route).unwrap(); + self.swap_res(coin_in, denom_out, min_receive, signer, route).unwrap(); self } @@ -194,7 +194,7 @@ impl<'a> AstroportSwapperRobot<'a> { &self, coin_in: Coin, denom_out: impl Into, - slippage: Decimal, + min_receive: Uint128, signer: &SigningAccount, route: SwapperRoute, ) -> RunnerExecuteResult { @@ -204,7 +204,7 @@ impl<'a> AstroportSwapperRobot<'a> { &mars_types::swapper::ExecuteMsg::::SwapExactIn { coin_in: coin_in.clone(), denom_out: denom_out.into(), - slippage, + min_receive, route: Some(route), }, &[coin_in], diff --git a/packages/testing/src/integration/helpers.rs b/packages/testing/src/integration/helpers.rs new file mode 100644 index 00000000..6e720708 --- /dev/null +++ b/packages/testing/src/integration/helpers.rs @@ -0,0 +1,53 @@ +use std::str::FromStr; + +use cosmwasm_std::{Decimal, Uint128}; +use mars_types::{ + params::{AssetParams, CmSettings, LiquidationBonus, RedBankSettings}, + red_bank::{InitOrUpdateAssetParams, InterestRateModel}, +}; + +pub fn osmo_asset_params() -> (InitOrUpdateAssetParams, AssetParams) { + default_asset_params_with("uosmo", Decimal::percent(70), Decimal::percent(78)) +} + +pub fn usdc_asset_params() -> (InitOrUpdateAssetParams, AssetParams) { + default_asset_params_with("uusdc", Decimal::percent(90), Decimal::percent(96)) +} + +pub fn default_asset_params_with( + denom: &str, + max_loan_to_value: Decimal, + liquidation_threshold: Decimal, +) -> (InitOrUpdateAssetParams, AssetParams) { + let market_params = InitOrUpdateAssetParams { + reserve_factor: Some(Decimal::percent(20)), + interest_rate_model: Some(InterestRateModel { + optimal_utilization_rate: Decimal::percent(10), + base: Decimal::percent(30), + slope_1: Decimal::percent(25), + slope_2: Decimal::percent(30), + }), + }; + let asset_params = AssetParams { + denom: denom.to_string(), + credit_manager: CmSettings { + whitelisted: false, + hls: None, + }, + red_bank: RedBankSettings { + deposit_enabled: true, + borrow_enabled: true, + }, + max_loan_to_value, + liquidation_threshold, + liquidation_bonus: LiquidationBonus { + starting_lb: Decimal::percent(1), + slope: Decimal::from_str("2.0").unwrap(), + min_lb: Decimal::percent(2), + max_lb: Decimal::percent(10), + }, + protocol_liquidation_fee: Decimal::percent(2), + deposit_cap: Uint128::MAX, + }; + (market_params, asset_params) +} diff --git a/packages/testing/src/integration/mock_contracts.rs b/packages/testing/src/integration/mock_contracts.rs index 826fb98a..e766e881 100644 --- a/packages/testing/src/integration/mock_contracts.rs +++ b/packages/testing/src/integration/mock_contracts.rs @@ -14,6 +14,15 @@ pub fn mock_address_provider_contract() -> Box> { Box::new(contract) } +pub fn mock_astroport_incentives() -> Box> { + let contract = ContractWrapper::new( + mars_mock_astroport_incentives::contract::execute, + mars_mock_astroport_incentives::contract::instantiate, + mars_mock_astroport_incentives::contract::query, + ); + Box::new(contract) +} + pub fn mock_incentives_contract() -> Box> { let contract = ContractWrapper::new( mars_incentives::contract::execute, diff --git a/packages/testing/src/integration/mock_env.rs b/packages/testing/src/integration/mock_env.rs index 3ac2aae9..47b8cae0 100644 --- a/packages/testing/src/integration/mock_env.rs +++ b/packages/testing/src/integration/mock_env.rs @@ -3,27 +3,30 @@ use std::{collections::HashMap, default::Default, mem::take, str::FromStr}; use anyhow::Result as AnyResult; +use astroport_v5::incentives::InputSchedule; use cosmwasm_std::{coin, Addr, Coin, Decimal, Empty, StdResult, Uint128}; use cw_multi_test::{App, AppResponse, BankSudo, BasicApp, Executor, SudoMsg}; +use cw_paginate::PaginationResponse; use mars_oracle_osmosis::OsmosisPriceSourceUnchecked; use mars_types::{ address_provider::{self, MarsAddressType}, + credit_manager::ActionCoin, incentives, oracle::{ self, ActionKind::{Default as ActionDefault, Liquidation}, PriceResponse, }, - params::{AssetParams, AssetParamsUpdate}, + params::{AssetParams, AssetParamsUpdate, TotalDepositResponse}, red_bank::{ - self, CreateOrUpdateConfig, InitOrUpdateAssetParams, Market, - UncollateralizedLoanLimitResponse, UserCollateralResponse, UserDebtResponse, - UserPositionResponse, + self, CreateOrUpdateConfig, InitOrUpdateAssetParams, Market, MarketV2Response, + UserCollateralResponse, UserDebtResponse, UserPositionResponse, }, rewards_collector, }; use pyth_sdk_cw::PriceIdentifier; +use super::mock_contracts::mock_astroport_incentives; use crate::integration::mock_contracts::{ mock_address_provider_contract, mock_incentives_contract, mock_oracle_osmosis_contract, mock_params_osmosis_contract, mock_pyth_contract, mock_red_bank_contract, @@ -34,6 +37,7 @@ pub struct MockEnv { pub app: App, pub owner: Addr, pub address_provider: AddressProvider, + pub astro_incentives: AstroIncentives, pub incentives: Incentives, pub oracle: Oracle, pub red_bank: RedBank, @@ -48,6 +52,11 @@ pub struct AddressProvider { pub contract_addr: Addr, } +#[derive(Clone)] +pub struct AstroIncentives { + pub contract_addr: Addr, +} + #[derive(Clone)] pub struct Incentives { pub contract_addr: Addr, @@ -116,6 +125,28 @@ impl MockEnv { } } +impl AstroIncentives { + pub fn set_incentive_schedule( + &self, + env: &mut MockEnv, + lp_denom: &str, + incentive_schedule: &InputSchedule, + funds: Vec, + ) { + env.app + .execute_contract( + env.owner.clone(), + self.contract_addr.clone(), + &astroport_v5::incentives::ExecuteMsg::Incentivize { + lp_token: lp_denom.to_string(), + schedule: incentive_schedule.clone(), + }, + &funds, + ) + .unwrap(); + } +} + impl Incentives { pub fn whitelist_incentive_denoms(&self, env: &mut MockEnv, incentive_denoms: &[(&str, u128)]) { env.app @@ -206,6 +237,64 @@ impl Incentives { ) } + pub fn claim_astro_rewards( + &self, + env: &mut MockEnv, + sender: &Addr, + account_id: String, + lp_denom: &str, + ) -> AnyResult { + env.app.execute_contract( + sender.clone(), + self.contract_addr.clone(), + &incentives::ExecuteMsg::ClaimStakedAstroLpRewards { + account_id, + lp_denom: lp_denom.to_string(), + }, + &[], + ) + } + + pub fn stake_astro_lp( + &self, + env: &mut MockEnv, + sender: &Addr, + account_id: String, + lp_coin: Coin, + ) { + env.app + .execute_contract( + sender.clone(), + self.contract_addr.clone(), + &incentives::ExecuteMsg::StakeAstroLp { + account_id, + lp_coin: lp_coin.clone(), + }, + &[lp_coin], + ) + .unwrap(); + } + + pub fn unstake_astro_lp( + &self, + env: &mut MockEnv, + sender: &Addr, + account_id: String, + lp_coin: Coin, + ) { + env.app + .execute_contract( + sender.clone(), + self.contract_addr.clone(), + &incentives::ExecuteMsg::UnstakeAstroLp { + account_id, + lp_coin: ActionCoin::from(&lp_coin.clone()), + }, + &[], + ) + .unwrap(); + } + pub fn query_unclaimed_rewards(&self, env: &mut MockEnv, user: &Addr) -> StdResult> { self.query_unclaimed_rewards_with_acc_id(env, user, None) } @@ -227,6 +316,21 @@ impl Incentives { }, ) } + + pub fn query_unclaimed_astroport_rewards( + &self, + env: &MockEnv, + account_id: String, + lp_denom: &str, + ) -> StdResult> { + env.app.wrap().query_wasm_smart( + self.contract_addr.clone(), + &incentives::QueryMsg::StakedAstroLpRewards { + account_id, + lp_denom: lp_denom.to_string(), + }, + ) + } } impl Oracle { @@ -463,26 +567,6 @@ impl RedBank { ) } - pub fn update_uncollateralized_loan_limit( - &self, - env: &mut MockEnv, - sender: &Addr, - user: &Addr, - denom: &str, - new_limit: Uint128, - ) -> AnyResult { - env.app.execute_contract( - sender.clone(), - self.contract_addr.clone(), - &red_bank::ExecuteMsg::UpdateUncollateralizedLoanLimit { - user: user.to_string(), - denom: denom.to_string(), - new_limit, - }, - &[], - ) - } - pub fn query_market(&self, env: &mut MockEnv, denom: &str) -> Market { env.app .wrap() @@ -495,6 +579,18 @@ impl RedBank { .unwrap() } + pub fn query_market_v2(&self, env: &mut MockEnv, denom: &str) -> MarketV2Response { + env.app + .wrap() + .query_wasm_smart( + self.contract_addr.clone(), + &red_bank::QueryMsg::MarketV2 { + denom: denom.to_string(), + }, + ) + .unwrap() + } + pub fn query_markets(&self, env: &mut MockEnv) -> HashMap { let res: Vec = env .app @@ -649,24 +745,6 @@ impl RedBank { ) .unwrap() } - - pub fn query_uncollateralized_loan_limit( - &self, - env: &mut MockEnv, - user: &Addr, - denom: &str, - ) -> UncollateralizedLoanLimitResponse { - env.app - .wrap() - .query_wasm_smart( - self.contract_addr.clone(), - &red_bank::QueryMsg::UncollateralizedLoanLimit { - user: user.to_string(), - denom: denom.to_string(), - }, - ) - .unwrap() - } } impl RewardsCollector { @@ -725,6 +803,24 @@ impl Params { ) .unwrap() } + + pub fn all_total_deposits_v2( + &self, + env: &mut MockEnv, + start_after: Option, + limit: Option, + ) -> PaginationResponse { + env.app + .wrap() + .query_wasm_smart( + self.contract_addr.clone(), + &mars_types::params::QueryMsg::AllTotalDepositsV2 { + start_after, + limit, + }, + ) + .unwrap() + } } pub struct MockEnvBuilder { @@ -824,6 +920,7 @@ impl MockEnvBuilder { let rewards_collector_addr = self.deploy_rewards_collector_osmosis(&address_provider_addr); let params_addr = self.deploy_params_osmosis(&address_provider_addr); let pyth_addr = self.deploy_mock_pyth(); + let astroport_incentives_addr = self.deploy_mock_astroport_incentives(); self.update_address_provider( &address_provider_addr, @@ -848,6 +945,11 @@ impl MockEnvBuilder { MarsAddressType::CreditManager, &cm_addr, ); + self.update_address_provider( + &address_provider_addr, + MarsAddressType::AstroportIncentives, + &astroport_incentives_addr, + ); MockEnv { app: take(&mut self.app), @@ -855,6 +957,9 @@ impl MockEnvBuilder { address_provider: AddressProvider { contract_addr: address_provider_addr, }, + astro_incentives: AstroIncentives { + contract_addr: astroport_incentives_addr, + }, incentives: Incentives { contract_addr: incentives_addr, }, @@ -905,7 +1010,6 @@ impl MockEnvBuilder { address_provider: address_provider_addr.to_string(), epoch_duration: 604800, max_whitelisted_denoms: 10, - mars_denom: "umars".to_string(), }, &[], "incentives", @@ -1005,6 +1109,21 @@ impl MockEnvBuilder { .unwrap() } + pub fn deploy_mock_astroport_incentives(&mut self) -> Addr { + let code_id = self.app.store_code(mock_astroport_incentives()); + + self.app + .instantiate_contract( + code_id, + self.owner.clone(), + &Empty {}, + &[], + "mock-astroport-incentives", + None, + ) + .unwrap() + } + fn update_address_provider( &mut self, address_provider_addr: &Addr, diff --git a/packages/testing/src/integration/mod.rs b/packages/testing/src/integration/mod.rs index 28c3000e..ad1ddb6c 100644 --- a/packages/testing/src/integration/mod.rs +++ b/packages/testing/src/integration/mod.rs @@ -1,2 +1,3 @@ +pub mod helpers; pub mod mock_contracts; pub mod mock_env; diff --git a/packages/testing/src/lib.rs b/packages/testing/src/lib.rs index 18fc1b2d..1996c8f5 100644 --- a/packages/testing/src/lib.rs +++ b/packages/testing/src/lib.rs @@ -2,6 +2,7 @@ extern crate core; +pub mod astroport_incentives_querier; #[cfg(feature = "astroport")] pub mod astroport_swapper; mod cosmwasm_pool_querier; @@ -11,6 +12,7 @@ mod incentives_querier; mod mars_mock_querier; mod mock_address_provider; mod mocks; +pub mod multitest; mod oracle_querier; mod osmosis_querier; mod params_querier; diff --git a/packages/testing/src/mars_mock_querier.rs b/packages/testing/src/mars_mock_querier.rs index 0226ccbf..89890ba4 100644 --- a/packages/testing/src/mars_mock_querier.rs +++ b/packages/testing/src/mars_mock_querier.rs @@ -1,3 +1,4 @@ +use astroport_v5::asset::Asset; use cosmwasm_std::{ from_json, testing::{MockQuerier, MOCK_CONTRACT_ADDR}, @@ -16,6 +17,7 @@ use osmosis_std::types::osmosis::{ use pyth_sdk_cw::{PriceFeedResponse, PriceIdentifier}; use crate::{ + astroport_incentives_querier::AstroportIncentivesQuerier, cosmwasm_pool_querier::CosmWasmPoolQuerier, incentives_querier::IncentivesQuerier, mock_address_provider, @@ -31,6 +33,7 @@ pub struct MarsMockQuerier { base: MockQuerier, oracle_querier: OracleQuerier, incentives_querier: IncentivesQuerier, + astroport_incentives_querier: AstroportIncentivesQuerier, osmosis_querier: OsmosisQuerier, pyth_querier: PythQuerier, redbank_querier: RedBankQuerier, @@ -61,6 +64,7 @@ impl MarsMockQuerier { base, oracle_querier: OracleQuerier::default(), incentives_querier: IncentivesQuerier::default(), + astroport_incentives_querier: AstroportIncentivesQuerier::default(), osmosis_querier: OsmosisQuerier::default(), pyth_querier: PythQuerier::default(), redbank_querier: RedBankQuerier::default(), @@ -88,6 +92,10 @@ impl MarsMockQuerier { self.incentives_querier.incentives_addr = address; } + pub fn set_astroport_incentives_address(&mut self, addr: Addr) { + self.astroport_incentives_querier.incentives_addr = addr; + } + pub fn set_unclaimed_rewards( &mut self, user_address: String, @@ -100,6 +108,24 @@ impl MarsMockQuerier { ); } + pub fn set_astroport_deposit(&mut self, user: &str, lp_denom: &str, deposit: Uint128) { + self.astroport_incentives_querier + .deposits + .insert((user.to_string(), lp_denom.to_string()), deposit); + } + + pub fn set_unclaimed_astroport_lp_rewards( + &mut self, + lp_denom: &str, + // We will only every use the incentives contract as the user addr + account_id: &str, + reward_assets: Vec, + ) { + self.astroport_incentives_querier + .unclaimed_rewards + .insert((account_id.to_string(), lp_denom.to_string()), reward_assets); + } + pub fn set_query_pool_response(&mut self, pool_id: u64, pool_response: PoolResponse) { self.osmosis_querier.pools.insert(pool_id, pool_response); } @@ -215,7 +241,6 @@ impl MarsMockQuerier { msg, }) => { let contract_addr = Addr::unchecked(contract_addr); - // Address Provider Queries let parse_address_provider_query: StdResult = from_json(msg); @@ -238,6 +263,15 @@ impl MarsMockQuerier { return self.incentives_querier.handle_query(&contract_addr, incentives_query); } + // Astroport Incentive Queries + if let Ok(astroport_incentives_query) = + from_json::(msg) + { + return self + .astroport_incentives_querier + .handle_query(&contract_addr, astroport_incentives_query); + } + // Pyth Queries if let Ok(pyth_query) = from_json::(msg) { return self.pyth_querier.handle_query(&contract_addr, pyth_query); @@ -265,6 +299,7 @@ impl MarsMockQuerier { // CosmWasm pool Queries if let Ok(cw_pool_query) = from_json::(msg) { + println!("query: {:?}", cw_pool_query); return self.cosmwasm_pool_queries.handle_query(cw_pool_query); } diff --git a/contracts/credit-manager/tests/tests/helpers/assertions.rs b/packages/testing/src/multitest/helpers/assertions.rs similarity index 100% rename from contracts/credit-manager/tests/tests/helpers/assertions.rs rename to packages/testing/src/multitest/helpers/assertions.rs diff --git a/contracts/credit-manager/tests/tests/helpers/builders.rs b/packages/testing/src/multitest/helpers/builders.rs similarity index 100% rename from contracts/credit-manager/tests/tests/helpers/builders.rs rename to packages/testing/src/multitest/helpers/builders.rs diff --git a/contracts/credit-manager/tests/tests/helpers/contracts.rs b/packages/testing/src/multitest/helpers/contracts.rs similarity index 84% rename from contracts/credit-manager/tests/tests/helpers/contracts.rs rename to packages/testing/src/multitest/helpers/contracts.rs index dedd765d..e519cfc6 100644 --- a/contracts/credit-manager/tests/tests/helpers/contracts.rs +++ b/packages/testing/src/multitest/helpers/contracts.rs @@ -100,3 +100,21 @@ pub fn mock_params_contract() -> Box> { ); Box::new(contract) } + +pub fn mock_astro_incentives_contract() -> Box> { + let contract = ContractWrapper::new( + mars_mock_astroport_incentives::contract::execute, + mars_mock_astroport_incentives::contract::instantiate, + mars_mock_astroport_incentives::contract::query, + ); + Box::new(contract) +} + +pub fn mock_managed_vault_contract() -> Box> { + let contract = ContractWrapper::new( + mars_vault::contract::execute, + mars_vault::contract::instantiate, + mars_vault::contract::query, + ); + Box::new(contract) +} diff --git a/contracts/credit-manager/tests/tests/helpers/mock_entity_info.rs b/packages/testing/src/multitest/helpers/mock_entity_info.rs similarity index 97% rename from contracts/credit-manager/tests/tests/helpers/mock_entity_info.rs rename to packages/testing/src/multitest/helpers/mock_entity_info.rs index 1327534c..22a656c1 100644 --- a/contracts/credit-manager/tests/tests/helpers/mock_entity_info.rs +++ b/packages/testing/src/multitest/helpers/mock_entity_info.rs @@ -6,6 +6,9 @@ use mars_types::params::{HlsAssetType, HlsParamsUnchecked, LiquidationBonus}; use super::{CoinInfo, VaultTestInfo}; +pub const ASTRO_LP_DENOM: &str = + "factory/neutron1sf456kx85dz0wfjs4sx0s80dyzmc360pfc0rdzactxt8xrse9ykqsdpy2y/astroport/share"; + pub fn coin_info(denom: &str) -> CoinInfo { CoinInfo { denom: denom.to_string(), @@ -96,7 +99,7 @@ pub fn ujake_info() -> CoinInfo { } } -pub fn blacklisted_coin() -> CoinInfo { +pub fn blacklisted_coin_info() -> CoinInfo { CoinInfo { denom: "uluna".to_string(), price: Decimal::from_str("0.01").unwrap(), diff --git a/contracts/credit-manager/tests/tests/helpers/mock_env.rs b/packages/testing/src/multitest/helpers/mock_env.rs similarity index 79% rename from contracts/credit-manager/tests/tests/helpers/mock_env.rs rename to packages/testing/src/multitest/helpers/mock_env.rs index 599a14aa..ae0a7ae6 100644 --- a/contracts/credit-manager/tests/tests/helpers/mock_env.rs +++ b/packages/testing/src/multitest/helpers/mock_env.rs @@ -1,10 +1,12 @@ -use std::{default::Default, mem::take, str::FromStr}; +use std::{default::Default, str::FromStr}; use anyhow::Result as AnyResult; -use cosmwasm_std::{coins, testing::MockApi, Addr, Coin, Decimal, Empty, StdResult, Uint128}; +use cosmwasm_std::{ + coin, coins, testing::MockApi, Addr, Coin, Decimal, Empty, StdResult, Timestamp, Uint128, +}; use cw721::TokensResponse; use cw721_base::{Action::TransferOwnership, Ownership}; -use cw_multi_test::{App, AppResponse, BankSudo, BasicApp, Executor, SudoMsg}; +use cw_multi_test::{no_init, AppResponse, BankSudo, BasicAppBuilder, Executor, SudoMsg}; use cw_paginate::PaginationResponse; use cw_vault_standard::{ extensions::lockup::{LockupQueryMsg, UnlockingPosition}, @@ -36,19 +38,23 @@ use mars_types::{ address_provider::{self, MarsAddressType}, credit_manager::{ Account, Action, CallbackMsg, CoinBalanceResponseItem, ConfigResponse, ConfigUpdates, - DebtShares, ExecuteMsg, InstantiateMsg, Positions, QueryMsg, - QueryMsg::{EstimateProvideLiquidity, VaultPositionValue}, - SharesResponseItem, VaultPositionResponseItem, VaultUtilizationResponse, + DebtShares, ExecuteMsg, InstantiateMsg, Positions, + QueryMsg::{self, EstimateProvideLiquidity, VaultPositionValue}, + SharesResponseItem, VaultBinding, VaultPositionResponseItem, VaultUtilizationResponse, }, health::{ AccountKind, ExecuteMsg::UpdateConfig, HealthValuesResponse, InstantiateMsg as HealthInstantiateMsg, QueryMsg::HealthValues, }, - incentives::{ExecuteMsg::BalanceChange, QueryMsg::UserUnclaimedRewards}, - oracle::ActionKind, + incentives::{ + ExecuteMsg::{BalanceChange, SetAssetIncentive}, + QueryMsg::{StakedAstroLpPosition, StakedAstroLpRewards, UserUnclaimedRewards}, + StakedLpPositionResponse, + }, + oracle::{ActionKind, PriceResponse, QueryMsg::Price as OraclePrice}, params::{ - AssetParams, AssetParamsUpdate, - AssetParamsUpdate::AddOrUpdate, + AssetParams, + AssetParamsUpdate::{self, AddOrUpdate}, ExecuteMsg::{UpdateAssetParams, UpdateVaultConfig}, InstantiateMsg as ParamsInstantiateMsg, QueryMsg as ParamsQueryMsg, VaultConfig, VaultConfigUnchecked, VaultConfigUpdate, @@ -63,19 +69,24 @@ use mars_types::{ QueryMsg::EstimateExactInSwap, SwapperRoute, }, }; +use mars_vault::{ + msg::InstantiateMsg as ManagedVaultInstantiateMsg, performance_fee::PerformanceFeeConfig, +}; use mars_zapper_mock::msg::{InstantiateMsg as ZapperInstantiateMsg, LpConfig}; use super::{ - lp_token_info, mock_account_nft_contract, mock_address_provider_contract, mock_health_contract, - mock_incentives_contract, mock_oracle_contract, mock_params_contract, mock_red_bank_contract, - mock_rover_contract, mock_swapper_contract, mock_v2_zapper_contract, mock_vault_contract, - AccountToFund, CoinInfo, VaultTestInfo, + lp_token_info, mock_account_nft_contract, mock_address_provider_contract, + mock_astro_incentives_contract, mock_health_contract, mock_incentives_contract, + mock_managed_vault_contract, mock_oracle_contract, mock_params_contract, + mock_red_bank_contract, mock_rover_contract, mock_swapper_contract, mock_v2_zapper_contract, + mock_vault_contract, AccountToFund, CoinInfo, VaultTestInfo, ASTRO_LP_DENOM, }; +use crate::multitest::modules::token_factory::{CustomApp, TokenFactory}; pub const DEFAULT_RED_BANK_COIN_BALANCE: Uint128 = Uint128::new(1_000_000); pub struct MockEnv { - pub app: BasicApp, + pub app: CustomApp, pub rover: Addr, pub mars_oracle: Addr, pub health_contract: HealthContract, @@ -84,7 +95,7 @@ pub struct MockEnv { } pub struct MockEnvBuilder { - pub app: BasicApp, + pub app: CustomApp, pub owner: Option, pub emergency_owner: Option, pub vault_configs: Option>, @@ -107,8 +118,11 @@ pub struct MockEnvBuilder { #[allow(clippy::new_ret_no_self)] impl MockEnv { pub fn new() -> MockEnvBuilder { + let tf_default = TokenFactory::default(); + let app = BasicAppBuilder::new().with_stargate(tf_default).build(no_init); + MockEnvBuilder { - app: App::default(), + app, owner: None, emergency_owner: None, vault_configs: None, @@ -129,6 +143,32 @@ impl MockEnv { } } + pub fn increment_by_blocks(&mut self, num_of_blocks: u64) { + self.app.update_block(|block| { + block.height += num_of_blocks; + // assume block time = 6 sec + block.time = block.time.plus_seconds(num_of_blocks * 6); + }) + } + + pub fn increment_by_time(&mut self, seconds: u64) { + self.app.update_block(|block| { + block.height += seconds / 6; + // assume block time = 6 sec + block.time = block.time.plus_seconds(seconds); + }) + } + + pub fn set_block_time(&mut self, seconds: u64) { + self.app.update_block(|block| { + block.time = Timestamp::from_seconds(seconds); + }) + } + + pub fn query_block_time(&self) -> u64 { + self.app.block_info().time.seconds() + } + //-------------------------------------------------------------------------------------------------- // Execute Msgs //-------------------------------------------------------------------------------------------------- @@ -139,12 +179,30 @@ impl MockEnv { sender: &Addr, actions: Vec, send_funds: &[Coin], + ) -> AnyResult { + self.update_credit_account_with_new_acc( + Some(account_id.to_string()), + None, + sender, + actions, + send_funds, + ) + } + + pub fn update_credit_account_with_new_acc( + &mut self, + account_id: Option, + account_kind: Option, + sender: &Addr, + actions: Vec, + send_funds: &[Coin], ) -> AnyResult { self.app.execute_contract( sender.clone(), self.rover.clone(), &ExecuteMsg::UpdateCreditAccount { - account_id: account_id.to_string(), + account_id, + account_kind, actions, }, send_funds, @@ -266,7 +324,25 @@ impl MockEnv { Ok(self.get_account_id(res)) } - fn get_account_id(&mut self, res: AppResponse) -> String { + pub fn create_credit_account_v2( + &mut self, + sender: &Addr, + kind: AccountKind, + account_id: Option, + ) -> AnyResult { + let res = self.app.execute_contract( + sender.clone(), + self.rover.clone(), + &ExecuteMsg::CreateCreditAccountV2 { + kind, + account_id, + }, + &[], + )?; + Ok(self.get_account_id(res)) + } + + pub fn get_account_id(&mut self, res: AppResponse) -> String { let attr: Vec<&String> = res .events .iter() @@ -348,6 +424,34 @@ impl MockEnv { .unwrap(); } + pub fn add_astro_incentive_reward(&mut self, account_id: &str, lp_denom: &str, coin: Coin) { + // This is a bit of a hack to set up astroport lp rewards in our mock contract, using the existing API. + self.app + .execute_contract( + self.rover.clone(), + self.incentives.addr.clone(), + &SetAssetIncentive { + collateral_denom: lp_denom.to_string(), + incentive_denom: coin.denom.clone(), + // Emision per second is used for amount + emission_per_second: coin.amount, + // Start time is used for account_id. The account id is parsed as a u64 + start_time: account_id.parse().unwrap(), + duration: Default::default(), + }, + &[], + ) + .unwrap(); + + // Mint token for incentives contract so it can be claimed + self.app + .sudo(SudoMsg::Bank(BankSudo::Mint { + to_address: self.incentives.addr.to_string(), + amount: vec![coin], + })) + .unwrap(); + } + //-------------------------------------------------------------------------------------------------- // Queries //-------------------------------------------------------------------------------------------------- @@ -383,6 +487,23 @@ impl MockEnv { .unwrap() } + pub fn query_unclaimed_astroport_rewards_for_lp( + &self, + account_id: &str, + lp_denom: &str, + ) -> Vec { + self.app + .wrap() + .query_wasm_smart( + self.incentives.clone().addr, + &StakedAstroLpRewards { + account_id: account_id.to_string(), + lp_denom: lp_denom.to_string(), + }, + ) + .unwrap() + } + pub fn query_unclaimed_rewards(&self, account_id: &str) -> Vec { self.app .wrap() @@ -399,6 +520,36 @@ impl MockEnv { .unwrap() } + pub fn query_staked_astro_lp_rewards(&self, account_id: &str, lp_denom: &str) -> Vec { + self.app + .wrap() + .query_wasm_smart( + self.incentives.clone().addr, + &StakedAstroLpRewards { + account_id: account_id.to_string(), + lp_denom: lp_denom.to_string(), + }, + ) + .unwrap() + } + + pub fn query_staked_lp_position( + &self, + account_id: &str, + lp_denom: &str, + ) -> StakedLpPositionResponse { + self.app + .wrap() + .query_wasm_smart( + self.incentives.clone().addr, + &StakedAstroLpPosition { + account_id: account_id.to_string(), + lp_denom: lp_denom.to_string(), + }, + ) + .unwrap() + } + pub fn query_balance(&self, addr: &Addr, denom: &str) -> Coin { self.app.wrap().query_balance(addr.clone(), denom).unwrap() } @@ -700,6 +851,15 @@ impl MockEnv { coin_in: &Coin, denom_out: &str, route: SwapperRoute, + ) -> EstimateExactInSwapResponse { + self.query_swap_estimate_with_optional_route(coin_in, denom_out, Some(route)) + } + + pub fn query_swap_estimate_with_optional_route( + &self, + coin_in: &Coin, + denom_out: &str, + route: Option, ) -> EstimateExactInSwapResponse { let config = self.query_config(); self.app @@ -709,7 +869,7 @@ impl MockEnv { &EstimateExactInSwap { coin_in: coin_in.clone(), denom_out: denom_out.to_string(), - route: Some(route), + route, }, ) .unwrap() @@ -740,10 +900,37 @@ impl MockEnv { }, ) } + + pub fn query_price(&self, denom: &str) -> PriceResponse { + self.app + .wrap() + .query_wasm_smart( + self.mars_oracle.clone(), + &OraclePrice { + kind: None, + denom: denom.to_string(), + }, + ) + .unwrap() + } + + pub fn query_vault_bindings( + &self, + start_after: Option, + limit: Option, + ) -> StdResult> { + self.app.wrap().query_wasm_smart( + self.rover.clone(), + &QueryMsg::VaultBindings { + start_after, + limit, + }, + ) + } } impl MockEnvBuilder { - pub fn build(&mut self) -> AnyResult { + pub fn build(mut self) -> AnyResult { let rover = self.get_rover()?; self.set_emergency_owner(&rover); @@ -751,7 +938,7 @@ impl MockEnvBuilder { let incentives = Incentives::new(Addr::unchecked(self.get_incentives().address()), rover.clone()); - let params = self.get_params_contract(); + let params: mars_types::adapters::params::ParamsBase = self.get_params_contract(); self.add_params_to_contract(); let health_contract = self.get_health_contract(); @@ -774,7 +961,7 @@ impl MockEnvBuilder { self.deploy_vaults(); Ok(MockEnv { - app: take(&mut self.app), + app: self.app, rover, mars_oracle: mars_oracle.address().clone(), health_contract, @@ -912,6 +1099,8 @@ impl MockEnvBuilder { let health_contract = self.get_health_contract().into(); let params = self.get_params_contract().into(); + self.deploy_astroport_incentives(); + let addr = self .app .instantiate_contract( @@ -1167,9 +1356,30 @@ impl MockEnvBuilder { ) .unwrap(); + self.set_address(MarsAddressType::Incentives, addr.clone()); + IncentivesUnchecked::new(addr.to_string()) } + pub fn deploy_astroport_incentives(&mut self) -> Addr { + let code_id = self.app.store_code(mock_astro_incentives_contract()); + let addr = self + .app + .instantiate_contract( + code_id, + Addr::unchecked("astroport_incentives_owner"), + &Empty {}, + &[], + "mock-astroport-incentives", + None, + ) + .unwrap(); + + self.set_address(MarsAddressType::AstroportIncentives, addr.clone()); + + addr + } + fn deploy_vault(&mut self, vault: &VaultTestInfo) -> Addr { let code_id = self.app.store_code(mock_vault_contract()); let oracle = self.get_oracle().into(); @@ -1248,10 +1458,16 @@ impl MockEnvBuilder { Addr::unchecked("zapper-instantiator"), &ZapperInstantiateMsg { oracle: oracle.clone(), - lp_configs: vec![LpConfig { - lp_token_denom: lp_token.denom.to_string(), - lp_pair_denoms: ("uatom".to_string(), "uosmo".to_string()), - }], + lp_configs: vec![ + LpConfig { + lp_token_denom: lp_token.denom.to_string(), + lp_pair_denoms: ("uatom".to_string(), "uosmo".to_string()), + }, + LpConfig { + lp_token_denom: ASTRO_LP_DENOM.to_string(), + lp_pair_denoms: ("ujake".to_string(), "uosmo".to_string()), + }, + ], }, &[], "mock-vault", @@ -1261,7 +1477,7 @@ impl MockEnvBuilder { self.app .sudo(SudoMsg::Bank(BankSudo::Mint { to_address: addr.to_string(), - amount: coins(10_000_000, lp_token.denom), + amount: vec![coin(10_000_000, lp_token.denom), coin(10_000_000, ASTRO_LP_DENOM)], })) .unwrap(); Ok(ZapperBase::new(addr)) @@ -1306,77 +1522,77 @@ impl MockEnvBuilder { // Setter functions //-------------------------------------------------------------------------------------------------- - pub fn fund_account(&mut self, account: AccountToFund) -> &mut Self { + pub fn fund_account(mut self, account: AccountToFund) -> Self { self.accounts_to_fund.push(account); self } - pub fn owner(&mut self, owner: &str) -> &mut Self { + pub fn owner(mut self, owner: &str) -> Self { self.owner = Some(Addr::unchecked(owner)); self } - pub fn vault_configs(&mut self, vault_configs: &[VaultTestInfo]) -> &mut Self { + pub fn vault_configs(mut self, vault_configs: &[VaultTestInfo]) -> Self { self.vault_configs = Some(vault_configs.to_vec()); self } - pub fn set_params(&mut self, coins: &[CoinInfo]) -> &mut Self { + pub fn set_params(mut self, coins: &[CoinInfo]) -> Self { self.coin_params = Some(coins.to_vec()); self } - pub fn params_contract(&mut self, params: &str) -> &mut Self { + pub fn params_contract(mut self, params: &str) -> Self { self.params = Some(Params::new(Addr::unchecked(params))); self } - pub fn health_contract(&mut self, health: &str) -> &mut Self { + pub fn health_contract(mut self, health: &str) -> Self { self.health_contract = Some(HealthContract::new(Addr::unchecked(health))); self } - pub fn red_bank(&mut self, red_bank: &str) -> &mut Self { + pub fn red_bank(mut self, red_bank: &str) -> Self { self.red_bank = Some(RedBankUnchecked::new(red_bank.to_string())); self } - pub fn oracle(&mut self, addr: &str) -> &mut Self { + pub fn oracle(mut self, addr: &str) -> Self { self.oracle = Some(OracleBase::new(Addr::unchecked(addr))); self } - pub fn params(&mut self, addr: &str) -> &mut Self { + pub fn params(mut self, addr: &str) -> Self { self.params = Some(Params::new(Addr::unchecked(addr))); self } - pub fn no_nft_contract(&mut self) -> &mut Self { + pub fn no_nft_contract(mut self) -> Self { self.deploy_nft_contract = false; self } - pub fn no_nft_contract_minter(&mut self) -> &mut Self { + pub fn no_nft_contract_minter(mut self) -> Self { self.set_nft_contract_minter = false; self } - pub fn target_health_factor(&mut self, thf: Decimal) -> &mut Self { + pub fn target_health_factor(mut self, thf: Decimal) -> Self { self.target_health_factor = Some(thf); self } - pub fn max_unlocking_positions(&mut self, max: u128) -> &mut Self { + pub fn max_unlocking_positions(mut self, max: u128) -> Self { self.max_unlocking_positions = Some(Uint128::new(max)); self } - pub fn max_slippage(&mut self, max: Decimal) -> &mut Self { + pub fn max_slippage(mut self, max: Decimal) -> Self { self.max_slippage = Some(max); self } - pub fn evil_vault(&mut self, credit_account: &str) -> &mut Self { + pub fn evil_vault(mut self, credit_account: &str) -> Self { self.evil_vault = Some(credit_account.to_string()); self } @@ -1386,7 +1602,7 @@ impl MockEnvBuilder { // Shared utils between MockBuilder & MockEnv //-------------------------------------------------------------------------------------------------- -fn deploy_nft_contract(app: &mut App, minter: &Addr) -> Addr { +fn deploy_nft_contract(app: &mut CustomApp, minter: &Addr) -> Addr { let nft_contract_code_id = app.store_code(mock_account_nft_contract()); app.instantiate_contract( nft_contract_code_id, @@ -1406,10 +1622,56 @@ fn deploy_nft_contract(app: &mut App, minter: &Addr) -> Addr { .unwrap() } -fn propose_new_nft_minter(app: &mut App, nft_contract: Addr, old_minter: &Addr, new_minter: &Addr) { +fn propose_new_nft_minter( + app: &mut CustomApp, + nft_contract: Addr, + old_minter: &Addr, + new_minter: &Addr, +) { let proposal_msg: NftExecuteMsg = NftExecuteMsg::UpdateOwnership(TransferOwnership { new_owner: new_minter.into(), expiry: None, }); app.execute_contract(old_minter.clone(), nft_contract, &proposal_msg, &[]).unwrap(); } + +pub fn deploy_managed_vault(app: &mut CustomApp, sender: &Addr, credit_manager: &Addr) -> Addr { + deploy_managed_vault_with_performance_fee( + app, + sender, + credit_manager, + 60, + PerformanceFeeConfig { + fee_rate: Decimal::zero(), + withdrawal_interval: 0, + }, + ) +} + +pub fn deploy_managed_vault_with_performance_fee( + app: &mut CustomApp, + sender: &Addr, + credit_manager: &Addr, + cooldown_period: u64, + pf_config: PerformanceFeeConfig, +) -> Addr { + let contract_code_id = app.store_code(mock_managed_vault_contract()); + app.instantiate_contract( + contract_code_id, + sender.clone(), + &ManagedVaultInstantiateMsg { + base_token: "uusdc".to_string(), + vault_token_subdenom: "vault".to_string(), + title: None, + subtitle: None, + description: None, + credit_manager: credit_manager.to_string(), + cooldown_period, + performance_fee_config: pf_config, + }, + &[coin(10_000_000, "untrn")], // Token Factory fee for minting new denom. Configured in the Token Factory module in `mars-testing` package. + "mock-managed-vault", + None, + ) + .unwrap() +} diff --git a/contracts/credit-manager/tests/tests/helpers/mod.rs b/packages/testing/src/multitest/helpers/mod.rs similarity index 100% rename from contracts/credit-manager/tests/tests/helpers/mod.rs rename to packages/testing/src/multitest/helpers/mod.rs diff --git a/contracts/credit-manager/tests/tests/helpers/types.rs b/packages/testing/src/multitest/helpers/types.rs similarity index 100% rename from contracts/credit-manager/tests/tests/helpers/types.rs rename to packages/testing/src/multitest/helpers/types.rs diff --git a/contracts/credit-manager/tests/tests/helpers/utils.rs b/packages/testing/src/multitest/helpers/utils.rs similarity index 100% rename from contracts/credit-manager/tests/tests/helpers/utils.rs rename to packages/testing/src/multitest/helpers/utils.rs diff --git a/packages/testing/src/multitest/mod.rs b/packages/testing/src/multitest/mod.rs new file mode 100644 index 00000000..c6afef24 --- /dev/null +++ b/packages/testing/src/multitest/mod.rs @@ -0,0 +1,2 @@ +pub mod helpers; +pub mod modules; diff --git a/packages/testing/src/multitest/modules/mod.rs b/packages/testing/src/multitest/modules/mod.rs new file mode 100644 index 00000000..f92ff31b --- /dev/null +++ b/packages/testing/src/multitest/modules/mod.rs @@ -0,0 +1 @@ +pub mod token_factory; diff --git a/packages/testing/src/multitest/modules/token_factory.rs b/packages/testing/src/multitest/modules/token_factory.rs new file mode 100644 index 00000000..58fb1388 --- /dev/null +++ b/packages/testing/src/multitest/modules/token_factory.rs @@ -0,0 +1,318 @@ +/// Modified based on the original file from the cw-it repository: +/// https://github.com/apollodao/cw-it/blob/master/src/multi_test/modules/token_factory.rs +/// It uses different functions input arguments types and newer versions of the dependencies. +use std::{fmt::Debug, str::FromStr}; + +use anyhow::{bail, Result as AnyResult}; +use cosmwasm_std::{ + from_json, testing::MockApi, Addr, Api, BankMsg, BankQuery, Binary, BlockInfo, Coin, + CustomQuery, Empty, Event, GovMsg, IbcMsg, IbcQuery, MemoryStorage, Querier, QueryRequest, + Storage, SupplyResponse, Uint128, +}; +use cw_multi_test::{ + App, AppResponse, BankKeeper, BankSudo, CosmosRouter, DistributionKeeper, FailingModule, + StakeKeeper, Stargate, WasmKeeper, +}; +use osmosis_std::types::osmosis::tokenfactory::v1beta1::{ + MsgBurn, MsgBurnResponse, MsgCreateDenom, MsgCreateDenomResponse, MsgMint, MsgMintResponse, +}; +use regex::Regex; +use schemars::JsonSchema; +use serde::de::DeserializeOwned; + +pub type CustomApp = App< + BankKeeper, + MockApi, + MemoryStorage, + FailingModule, + WasmKeeper, + StakeKeeper, + DistributionKeeper, + FailingModule, + FailingModule, + TokenFactory, +>; + +impl Stargate for TokenFactory { + fn execute( + &self, + api: &dyn Api, + storage: &mut dyn Storage, + router: &dyn CosmosRouter, + block: &BlockInfo, + sender: Addr, + type_url: String, + msg: Binary, + ) -> AnyResult + where + ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, + QueryC: CustomQuery + DeserializeOwned + 'static, + { + match type_url.as_str() { + MsgCreateDenom::TYPE_URL => self.create_denom(api, storage, router, block, sender, msg), + MsgMint::TYPE_URL => self.mint(api, storage, router, block, sender, msg), + MsgBurn::TYPE_URL => self.burn(api, storage, router, block, sender, msg), + _ => bail!("Unknown message type {}", type_url), + } + } + + fn query( + &self, + _api: &dyn Api, + _storage: &dyn Storage, + _querier: &dyn Querier, + _block: &BlockInfo, + _path: String, + _data: Binary, + ) -> AnyResult { + bail!("stargate query called") + } +} + +#[derive(Clone)] +pub struct TokenFactory { + pub module_denom_prefix: String, + pub max_subdenom_len: usize, + pub max_hrp_len: usize, + pub max_creator_len: usize, + pub denom_creation_fee: String, +} + +impl TokenFactory { + /// Creates a new TokenFactory instance with the given parameters. + pub fn new( + prefix: &str, + max_subdenom_len: usize, + max_hrp_len: usize, + max_creator_len: usize, + denom_creation_fee: &str, + ) -> Self { + Self { + module_denom_prefix: prefix.to_string(), + max_subdenom_len, + max_hrp_len, + max_creator_len, + denom_creation_fee: denom_creation_fee.to_string(), + } + } +} + +impl Default for TokenFactory { + fn default() -> Self { + Self::new("factory", 32, 16, 59 + 16, "10000000untrn") + } +} + +impl TokenFactory { + fn create_denom( + &self, + api: &dyn Api, + storage: &mut dyn Storage, + router: &dyn CosmosRouter, + block: &BlockInfo, + sender: Addr, + msg: Binary, + ) -> anyhow::Result + where + ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, + QueryC: CustomQuery + DeserializeOwned + 'static, + { + let msg: MsgCreateDenom = msg.try_into()?; + + // Validate subdenom length + if msg.subdenom.len() > self.max_subdenom_len { + bail!("Subdenom length is too long, max length is {}", self.max_subdenom_len); + } + // Validate creator length + if msg.sender.len() > self.max_creator_len { + bail!("Creator length is too long, max length is {}", self.max_creator_len); + } + // Validate creator address not contains '/' + if msg.sender.contains('/') { + bail!("Invalid creator address, creator address cannot contains '/'"); + } + // Validate sender is the creator + if msg.sender != sender { + bail!("Invalid creator address, creator address must be the same as the sender"); + } + + let denom = format!("{}/{}/{}", self.module_denom_prefix, msg.sender, msg.subdenom); + + println!("denom: {}", denom); + + // Query supply of denom + let request = QueryRequest::Bank(BankQuery::Supply { + denom: denom.clone(), + }); + let raw = router.query(api, storage, block, request)?; + let supply: SupplyResponse = from_json(raw)?; + println!("supply: {:?}", supply); + println!("supply.amount.amount.is_zero: {:?}", supply.amount.amount.is_zero()); + if !supply.amount.amount.is_zero() { + println!("bailing"); + bail!("Subdenom already exists"); + } + + // Charge denom creation fee + let fee = coin_from_sdk_string(&self.denom_creation_fee)?; + let fee_msg = BankMsg::Burn { + amount: vec![fee], + }; + router.execute(api, storage, block, sender, fee_msg.into())?; + + let create_denom_response = MsgCreateDenomResponse { + new_token_denom: denom.clone(), + }; + + let mut res = AppResponse::default(); + res.events.push( + Event::new("create_denom") + .add_attribute("creator", msg.sender) + .add_attribute("new_token_denom", denom), + ); + res.data = Some(create_denom_response.into()); + + Ok(res) + } + + pub fn mint( + &self, + api: &dyn Api, + storage: &mut dyn Storage, + router: &dyn CosmosRouter, + block: &BlockInfo, + sender: Addr, + msg: Binary, + ) -> anyhow::Result + where + ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, + QueryC: CustomQuery + DeserializeOwned + 'static, + { + let msg: MsgMint = msg.try_into()?; + + let denom = msg.amount.clone().unwrap().denom; + println!("Mint denom: {}", denom); + + // Validate sender + let parts = denom.split('/').collect::>(); + if parts[1] != sender { + bail!("Unauthorized mint. Not the creator of the denom."); + } + if sender != msg.sender { + bail!("Invalid sender. Sender in msg must be same as sender of transaction."); + } + + // Validate denom + if parts.len() != 3 && parts[0] != self.module_denom_prefix { + bail!("Invalid denom"); + } + + let amount = Uint128::from_str(&msg.amount.unwrap().amount)?; + if amount.is_zero() { + bail!("Invalid zero amount"); + } + + // Mint through BankKeeper sudo method + let mint_msg = BankSudo::Mint { + to_address: msg.mint_to_address.clone(), + amount: vec![Coin { + denom: denom.clone(), + amount, + }], + }; + router.sudo(api, storage, block, mint_msg.into())?; + + let mut res = AppResponse::default(); + let data = MsgMintResponse {}; + res.data = Some(data.into()); + res.events.push( + Event::new("tf_mint") + .add_attribute("mint_to_address", msg.mint_to_address.to_string()) + .add_attribute("amount", amount.to_string()), + ); + Ok(res) + } + + pub fn burn( + &self, + api: &dyn Api, + storage: &mut dyn Storage, + router: &dyn CosmosRouter, + block: &BlockInfo, + sender: Addr, + msg: Binary, + ) -> anyhow::Result + where + ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, + QueryC: CustomQuery + DeserializeOwned + 'static, + { + let msg: MsgBurn = msg.try_into()?; + + // Validate sender + let denom = msg.amount.clone().unwrap().denom; + let parts = denom.split('/').collect::>(); + if parts[1] != sender { + bail!("Unauthorized burn. Not the creator of the denom."); + } + if sender != msg.sender { + bail!("Invalid sender. Sender in msg must be same as sender of transaction."); + } + + // Validate denom + if parts.len() != 3 && parts[0] != self.module_denom_prefix { + bail!("Invalid denom"); + } + + let amount = Uint128::from_str(&msg.amount.unwrap().amount)?; + if amount.is_zero() { + bail!("Invalid zero amount"); + } + + // Burn through BankKeeper + let burn_msg = BankMsg::Burn { + amount: vec![Coin { + denom: denom.clone(), + amount, + }], + }; + router.execute(api, storage, block, sender.clone(), burn_msg.into())?; + + let mut res = AppResponse::default(); + let data = MsgBurnResponse {}; + res.data = Some(data.into()); + + res.events.push( + Event::new("tf_burn") + .add_attribute("burn_from_address", sender.to_string()) + .add_attribute("amount", amount.to_string()), + ); + + Ok(res) + } +} + +fn coin_from_sdk_string(sdk_string: &str) -> anyhow::Result { + let denom_re = Regex::new(r"^[0-9]+[a-z]+$")?; + let ibc_re = Regex::new(r"^[0-9]+(ibc|IBC)/[0-9A-F]{64}$")?; + let factory_re = Regex::new(r"^[0-9]+factory/[0-9a-z]+/[0-9a-zA-Z]+$")?; + + if !(denom_re.is_match(sdk_string) + || ibc_re.is_match(sdk_string) + || factory_re.is_match(sdk_string)) + { + bail!("Invalid sdk string"); + } + + // Parse amount + let re = Regex::new(r"[0-9]+")?; + let amount = re.find(sdk_string).unwrap().as_str(); + let amount = Uint128::from_str(amount)?; + + // The denom is the rest of the string + let denom = sdk_string[amount.to_string().len()..].to_string(); + + Ok(Coin { + denom, + amount, + }) +} diff --git a/packages/testing/src/wasm_oracle.rs b/packages/testing/src/wasm_oracle.rs index e0093ec5..e6055b8d 100644 --- a/packages/testing/src/wasm_oracle.rs +++ b/packages/testing/src/wasm_oracle.rs @@ -1,9 +1,11 @@ use std::str::FromStr; use astroport::{ - factory::PairType, pair::StablePoolParams, pair_concentrated::ConcentratedPoolParams, + factory::PairType, + pair::{QueryMsg, StablePoolParams}, + pair_concentrated::{ConcentratedPoolParams, QueryMsg as ConcentratedPairQueryMsg}, }; -use cosmwasm_std::{to_json_binary, Binary, Decimal, Empty, Uint128}; +use cosmwasm_std::{to_json_binary, Binary, Decimal, Decimal256, Empty, Uint128}; #[cfg(feature = "osmosis-test-tube")] use cw_it::Artifact; use cw_it::{ @@ -227,13 +229,21 @@ impl<'a> WasmOracleTestRobot<'a> { tolerance: Decimal, ) -> &Self { let price = self.query_price(denom); - println!("price: {:?}", price); - println!("expected_price: {:?}", expected_price); assert_almost_equal(price.price, expected_price, tolerance); assert_eq!(price.denom, denom); self } + pub fn assert_prices_almost_equal( + &self, + price0: Decimal, + price1: Decimal, + tolerance: Decimal, + ) -> &Self { + assert_almost_equal(price0, price1, tolerance); + self + } + pub fn assert_price_source( &self, denom: &str, @@ -345,6 +355,18 @@ impl<'a> WasmOracleTestRobot<'a> { assert_eq!(rr.redemption_rate, expected_value); self } + + pub fn query_pcl_curve_invariant(&self, pair_addr: &str) -> Decimal256 { + self.wasm().query(pair_addr, &ConcentratedPairQueryMsg::ComputeD {}).unwrap() + } + + pub fn query_ss_curve_invariant(&self, pair_addr: &str) -> Uint128 { + self.wasm().query(pair_addr, &QueryMsg::QueryComputeD {}).unwrap() + } + + pub fn query_astroport_config(&self, pair_addr: &str) -> astroport::pair::ConfigResponse { + self.wasm().query(pair_addr, &ConcentratedPairQueryMsg::Config {}).unwrap() + } } impl<'a> TestRobot<'a, TestRunner<'a>> for WasmOracleTestRobot<'a> { diff --git a/packages/types/Cargo.toml b/packages/types/Cargo.toml index cc70307a..d291fda6 100644 --- a/packages/types/Cargo.toml +++ b/packages/types/Cargo.toml @@ -20,7 +20,6 @@ backtraces = ["cosmwasm-std/backtraces"] javascript = ["tsify", "wasm-bindgen"] [dependencies] -astroport = { workspace = true } cosmwasm-schema = { workspace = true } cosmwasm-std = { workspace = true } cw721 = { workspace = true } @@ -29,12 +28,8 @@ cw-paginate = { workspace = true } cw-storage-plus = { workspace = true } cw-utils = { workspace = true } cw-vault-standard = { workspace = true } -mars-osmosis = { workspace = true } mars-owner = { workspace = true } mars-utils = { workspace = true } -osmosis-std = { workspace = true } -schemars = { workspace = true } -serde = { workspace = true } serde-json-wasm = { workspace = true } strum = { workspace = true, features = ["derive"] } thiserror = { workspace = true } diff --git a/packages/types/src/account_nft/execute.rs b/packages/types/src/account_nft/execute.rs index e1d27cf1..f34b123e 100644 --- a/packages/types/src/account_nft/execute.rs +++ b/packages/types/src/account_nft/execute.rs @@ -16,9 +16,11 @@ pub enum ExecuteMsg { UpdateConfig { updates: NftConfigUpdates, }, - /// Mint a new NFT to the specified user; can only be called by the contract minter + /// Mint a new NFT to the specified user; can only be called by the contract minter. + /// Create own token_id or use the next available one. Mint { user: String, + token_id: Option, }, /// Burn an NFT the sender has access to. Will attempt to query the Credit Manager first /// to ensure the balance is below the config set threshold. diff --git a/packages/types/src/adapters/account_nft.rs b/packages/types/src/adapters/account_nft.rs index 0b1d36b3..5528f72d 100644 --- a/packages/types/src/adapters/account_nft.rs +++ b/packages/types/src/adapters/account_nft.rs @@ -1,6 +1,6 @@ use cosmwasm_schema::cw_serde; use cosmwasm_std::{Addr, Api, QuerierWrapper, StdResult}; -use cw721::TokensResponse; +use cw721::{OwnerOfResponse, TokensResponse}; use crate::account_nft::QueryMsg; @@ -53,4 +53,19 @@ impl AccountNft { }, ) } + + pub fn query_nft_token_owner( + &self, + querier: &QuerierWrapper, + account_id: &str, + ) -> StdResult { + let res: OwnerOfResponse = querier.query_wasm_smart( + self.address().to_string(), + &QueryMsg::OwnerOf { + token_id: account_id.to_string(), + include_expired: None, + }, + )?; + Ok(res.owner) + } } diff --git a/packages/types/src/adapters/incentives.rs b/packages/types/src/adapters/incentives.rs index 43be2981..e9dcbbd4 100644 --- a/packages/types/src/adapters/incentives.rs +++ b/packages/types/src/adapters/incentives.rs @@ -3,7 +3,10 @@ use cosmwasm_std::{ to_json_binary, Addr, Api, Coin, CosmosMsg, QuerierWrapper, StdResult, WasmMsg, }; -use crate::incentives::{ExecuteMsg, QueryMsg}; +use crate::{ + credit_manager::ActionCoin, + incentives::{ExecuteMsg, PaginatedStakedLpResponse, QueryMsg, StakedLpPositionResponse}, +}; #[cw_serde] pub struct IncentivesUnchecked(String); @@ -56,6 +59,43 @@ impl Incentives { })) } + pub fn claim_staked_astro_lp_rewards_msg( + &self, + account_id: &str, + lp_denom: &str, + ) -> StdResult { + Ok(CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: self.addr.to_string(), + msg: to_json_binary(&ExecuteMsg::ClaimStakedAstroLpRewards { + account_id: account_id.to_string(), + lp_denom: lp_denom.to_string(), + })?, + funds: vec![], + })) + } + + pub fn stake_astro_lp_msg(&self, account_id: &str, lp_coin: Coin) -> StdResult { + Ok(CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: self.addr.to_string(), + msg: to_json_binary(&ExecuteMsg::StakeAstroLp { + account_id: account_id.to_string(), + lp_coin: lp_coin.clone(), + })?, + funds: vec![lp_coin], + })) + } + + pub fn unstake_astro_lp_msg(&self, account_id: &str, lp_coin: &Coin) -> StdResult { + Ok(CosmosMsg::Wasm(WasmMsg::Execute { + contract_addr: self.addr.to_string(), + msg: to_json_binary(&ExecuteMsg::UnstakeAstroLp { + account_id: account_id.to_string(), + lp_coin: ActionCoin::from(lp_coin), + })?, + funds: vec![], + })) + } + pub fn query_unclaimed_rewards( &self, querier: &QuerierWrapper, @@ -72,4 +112,75 @@ impl Incentives { }, ) } + + pub fn query_staked_astro_lp_rewards( + &self, + querier: &QuerierWrapper, + account_id: &str, + lp_denom: &str, + ) -> StdResult> { + querier.query_wasm_smart( + self.addr.to_string(), + &QueryMsg::StakedAstroLpRewards { + account_id: account_id.to_string(), + lp_denom: lp_denom.to_string(), + }, + ) + } + + pub fn query_staked_astro_lp_position( + &self, + querier: &QuerierWrapper, + account_id: &str, + lp_denom: &str, + ) -> StdResult { + querier.query_wasm_smart( + self.addr.to_string(), + &QueryMsg::StakedAstroLpPosition { + account_id: account_id.to_string(), + lp_denom: lp_denom.to_string(), + }, + ) + } + + pub fn query_staked_astro_lp_positions( + &self, + querier: &QuerierWrapper, + account_id: &str, + start_after: Option, + limit: Option, + ) -> StdResult { + querier.query_wasm_smart( + self.addr.to_string(), + &QueryMsg::StakedAstroLpPositions { + account_id: account_id.to_string(), + start_after, + limit, + }, + ) + } + + pub fn query_all_staked_astro_lp_coins( + &self, + querier: &QuerierWrapper, + account_id: &str, + ) -> StdResult> { + let mut start_after = Option::::None; + let mut has_more = true; + let mut all_coins = Vec::new(); + + while has_more { + let response = + self.query_staked_astro_lp_positions(querier, account_id, start_after, None)?; + for item in response.data { + if !item.lp_coin.amount.is_zero() { + all_coins.push(item.lp_coin); + } + } + start_after = all_coins.last().map(|item| item.denom.clone()); + has_more = response.metadata.has_more; + } + + Ok(all_coins) + } } diff --git a/packages/types/src/adapters/params.rs b/packages/types/src/adapters/params.rs index cdacb40d..8a7f85ca 100644 --- a/packages/types/src/adapters/params.rs +++ b/packages/types/src/adapters/params.rs @@ -37,7 +37,7 @@ impl Params { &self, querier: &QuerierWrapper, denom: &str, - ) -> StdResult { + ) -> StdResult> { querier.query_wasm_smart( self.address().to_string(), &QueryMsg::AssetParams { diff --git a/packages/types/src/adapters/swapper.rs b/packages/types/src/adapters/swapper.rs index 02909f7c..ea7ee4e0 100644 --- a/packages/types/src/adapters/swapper.rs +++ b/packages/types/src/adapters/swapper.rs @@ -1,6 +1,6 @@ use cosmwasm_schema::cw_serde; use cosmwasm_std::{ - to_json_binary, Addr, Api, Coin, CosmosMsg, Decimal, Empty, StdResult, WasmMsg, + to_json_binary, Addr, Api, Coin, CosmosMsg, Empty, StdResult, Uint128, WasmMsg, }; use crate::swapper::{ExecuteMsg, SwapperRoute}; @@ -39,7 +39,7 @@ impl Swapper { &self, coin_in: &Coin, denom_out: &str, - slippage: Decimal, + min_receive: Uint128, route: Option, ) -> StdResult { Ok(CosmosMsg::Wasm(WasmMsg::Execute { @@ -47,7 +47,7 @@ impl Swapper { msg: to_json_binary(&ExecuteMsg::::SwapExactIn { coin_in: coin_in.clone(), denom_out: denom_out.to_string(), - slippage, + min_receive, route, })?, funds: vec![coin_in.clone()], @@ -95,7 +95,7 @@ mod tests { let swapper = Swapper::new(Addr::unchecked("swapper")); let coin_in = Coin::new(100, "in"); let denom_out = "out"; - let slippage = Decimal::percent(1); + let min_receive = Uint128::new(123); let route = SwapperRoute::Osmo(OsmoRoute { swaps: vec![ @@ -109,8 +109,9 @@ mod tests { }, ], }); - let msg = - swapper.swap_exact_in_msg(&coin_in, denom_out, slippage, Some(route.clone())).unwrap(); + let msg = swapper + .swap_exact_in_msg(&coin_in, denom_out, min_receive, Some(route.clone())) + .unwrap(); assert_eq!( msg, CosmosMsg::Wasm(WasmMsg::Execute { @@ -118,7 +119,7 @@ mod tests { msg: to_json_binary(&ExecuteMsg::::SwapExactIn { coin_in: coin_in.clone(), denom_out: denom_out.to_string(), - slippage, + min_receive, route: Some(route) }) .unwrap(), @@ -138,8 +139,9 @@ mod tests { }, ], }); - let msg = - swapper.swap_exact_in_msg(&coin_in, denom_out, slippage, Some(route.clone())).unwrap(); + let msg = swapper + .swap_exact_in_msg(&coin_in, denom_out, min_receive, Some(route.clone())) + .unwrap(); assert_eq!( msg, CosmosMsg::Wasm(WasmMsg::Execute { @@ -147,7 +149,7 @@ mod tests { msg: to_json_binary(&ExecuteMsg::::SwapExactIn { coin_in: coin_in.clone(), denom_out: denom_out.to_string(), - slippage, + min_receive, route: Some(route) }) .unwrap(), diff --git a/packages/types/src/address_provider.rs b/packages/types/src/address_provider.rs index 6a2702e8..15d4332f 100644 --- a/packages/types/src/address_provider.rs +++ b/packages/types/src/address_provider.rs @@ -30,6 +30,8 @@ pub enum MarsAddressType { SafetyFund, /// The swapper contract on the chain Swapper, + /// Astroport incentives contract + AstroportIncentives, } impl fmt::Display for MarsAddressType { @@ -44,6 +46,7 @@ impl fmt::Display for MarsAddressType { MarsAddressType::RewardsCollector => "rewards_collector", MarsAddressType::SafetyFund => "safety_fund", MarsAddressType::Swapper => "swapper", + MarsAddressType::AstroportIncentives => "astroport_incentives", }; write!(f, "{s}") } @@ -63,6 +66,7 @@ impl FromStr for MarsAddressType { "rewards_collector" => Ok(MarsAddressType::RewardsCollector), "safety_fund" => Ok(MarsAddressType::SafetyFund), "swapper" => Ok(MarsAddressType::Swapper), + "astroport_incentives" => Ok(MarsAddressType::AstroportIncentives), _ => Err(StdError::parse_err(type_name::(), s)), } } diff --git a/packages/types/src/credit_manager/execute.rs b/packages/types/src/credit_manager/execute.rs index b6540398..2f3252a6 100644 --- a/packages/types/src/credit_manager/execute.rs +++ b/packages/types/src/credit_manager/execute.rs @@ -1,4 +1,4 @@ -use std::collections::BTreeSet; +use std::collections::BTreeMap; use cosmwasm_schema::cw_serde; use cosmwasm_std::{to_json_binary, Addr, Coin, CosmosMsg, Decimal, StdResult, Uint128, WasmMsg}; @@ -19,9 +19,15 @@ pub enum ExecuteMsg { //-------------------------------------------------------------------------------------------------- /// Mints NFT representing a credit account for user. User can have many. CreateCreditAccount(AccountKind), + /// Mints NFT representing a credit account for user with optional custom account_id creation. User can have many accounts. + CreateCreditAccountV2 { + kind: AccountKind, + account_id: Option, + }, /// Update user's position on their credit account UpdateCreditAccount { - account_id: String, + account_id: Option, + account_kind: Option, actions: Vec, }, /// Repay debt on behalf of an account, funded from wallet. Must send exactly one coin in message funds. @@ -110,6 +116,9 @@ pub enum LiquidateRequest { request_vault: T, position_type: VaultPositionType, }, + /// Pay back debt of a liquidatable credit manager account for a via liquidating an Astro LP position. + /// LP shares are transfered from the liquidatable to the liquidator. + StakedAstroLp(String), } /// The list of actions that users can perform on their positions @@ -119,6 +128,11 @@ pub enum Action { Deposit(Coin), /// Withdraw coin of specified denom and amount Withdraw(ActionCoin), + /// Withdraw coin of specified denom and amount to a wallet address + WithdrawToWallet { + coin: ActionCoin, + recipient: String, + }, /// Borrow coin of specified amount from Red Bank Borrow(Coin), /// Lend coin to the Red Bank @@ -171,7 +185,7 @@ pub enum Action { SwapExactIn { coin_in: ActionCoin, denom_out: String, - slippage: Decimal, + min_receive: Uint128, route: Option, }, /// Add Vec to liquidity pool in exchange for LP tokens. @@ -188,6 +202,18 @@ pub enum Action { lp_token: ActionCoin, slippage: Decimal, }, + /// Stake lp token in astroport incentives contract via mars incentives + StakeAstroLp { + lp_token: ActionCoin, + }, + /// Unstake lp token from astroport incentives contract via mars incentives + UnstakeAstroLp { + lp_token: ActionCoin, + }, + /// Claim accrued LP incentive rewards from astroport incentives contract via mars incentives + ClaimAstroLpRewards { + lp_denom: String, + }, /// Refunds all coin balances back to user wallet RefundAllCoinBalances {}, } @@ -233,13 +259,9 @@ pub enum CallbackMsg { account_id: String, coin: ActionCoin, }, - /// Calls incentive contract to claim all rewards and: - /// - for Default account increments account balance - /// - for HLS account withdraws claimed rewards. HLS accounts have special rules - some assets can't be in the account. - /// For simplicity we withdraw all claimed rewards. + /// Calls incentive contract to claim all rewards and increment account balance ClaimRewards { account_id: String, - recipient: Addr, }, /// Assert MaxLTV is either: /// - Healthy, if prior to actions MaxLTV health factor >= 1 or None @@ -253,7 +275,7 @@ pub enum CallbackMsg { /// Assert that the total deposit amounts of the given denoms across Red /// Bank and Rover do not exceed their respective deposit caps. AssertDepositCaps { - denoms: BTreeSet, + denoms: BTreeMap>, }, /// Adds coin to a vault strategy EnterVault { @@ -300,7 +322,7 @@ pub enum CallbackMsg { account_id: String, coin_in: ActionCoin, denom_out: String, - slippage: Decimal, + min_receive: Uint128, route: Option, }, /// Used to update the coin balance of account after an async action @@ -329,6 +351,25 @@ pub enum CallbackMsg { lp_token_out: String, slippage: Decimal, }, + /// Stake lp token in astroport incentives contract via mars incentives + StakeAstroLp { + // Account id staking the LP + account_id: String, + // Amount / denom to stake + lp_token: ActionCoin, + }, + /// Unstake lp token from astroport incentives contract via mars incentives. + UnstakeAstroLp { + // account id unstaking the LP + account_id: String, + // lp coin to unstake + lp_token: ActionCoin, + }, + /// Claim all accrued rewards for LP position in astroport incentives + ClaimAstroLpRewards { + account_id: String, + lp_denom: String, + }, /// Send LP token and withdraw corresponding reserve assets from pool. /// If `lp_token.amount: AccountBalance`, the account balance of `lp_token.denom` will be used. WithdrawLiquidity { @@ -347,13 +388,6 @@ pub enum CallbackMsg { /// At the end of the execution of dispatched actions, this callback removes the guard /// and allows subsequent dispatches. RemoveReentrancyGuard {}, - /// Send reward amounts of coin from credit manager to recipient by querying balance, claiming rewards, - /// and comparing previous balance to new balance after reward claim - send the diff to the recipient. - SendRewardsToAddr { - account_id: String, - previous_balances: Vec, - recipient: Addr, - }, } impl CallbackMsg { diff --git a/packages/types/src/credit_manager/query.rs b/packages/types/src/credit_manager/query.rs index 4853be8c..ee30f35a 100644 --- a/packages/types/src/credit_manager/query.rs +++ b/packages/types/src/credit_manager/query.rs @@ -90,6 +90,12 @@ pub enum QueryMsg { VaultPositionValue { vault_position: VaultPosition, }, + /// Enumerate all vault bindings; start_after accepts account_id + #[returns(Vec)] + VaultBindings { + start_after: Option, + limit: Option, + }, } #[cw_serde] @@ -147,10 +153,12 @@ impl Coins for Vec { #[cw_serde] pub struct Positions { pub account_id: String, + pub account_kind: AccountKind, pub deposits: Vec, pub debts: Vec, pub lends: Vec, pub vaults: Vec, + pub staked_astro_lps: Vec, } #[cw_serde] @@ -186,3 +194,9 @@ pub struct Account { pub id: String, pub kind: AccountKind, } + +#[cw_serde] +pub struct VaultBinding { + pub account_id: String, + pub vault_address: String, +} diff --git a/packages/types/src/health/account.rs b/packages/types/src/health/account.rs index 49f972aa..98ffa348 100644 --- a/packages/types/src/health/account.rs +++ b/packages/types/src/health/account.rs @@ -9,6 +9,13 @@ use tsify::Tsify; pub enum AccountKind { Default, HighLeveredStrategy, + + /// A vault that is managed by a fund manager. + /// Fund manager (wallet) is responsible for managing the vault. + /// Fund manager can't deposit and withdraw funds from the vault. + FundManager { + vault_addr: String, + }, } impl fmt::Display for AccountKind { diff --git a/packages/types/src/incentives.rs b/packages/types/src/incentives.rs index 7e100594..0b6e991f 100644 --- a/packages/types/src/incentives.rs +++ b/packages/types/src/incentives.rs @@ -1,7 +1,10 @@ use cosmwasm_schema::{cw_serde, QueryResponses}; -use cosmwasm_std::{Addr, Decimal, Uint128}; +use cosmwasm_std::{Addr, Coin, Decimal, Uint128}; +use cw_paginate::PaginationResponse; use mars_owner::OwnerUpdate; +use crate::credit_manager::ActionCoin; + /// Global configuration #[cw_serde] pub struct Config { @@ -10,8 +13,6 @@ pub struct Config { /// The maximum number of incentive denoms that can be whitelisted at any given time. This is /// a guard against accidentally whitelisting too many denoms, which could cause max gas errors. pub max_whitelisted_denoms: u8, - /// Mars Token Denom - pub mars_denom: String, } /// Incentive Metadata for a given incentive @@ -89,8 +90,6 @@ pub struct InstantiateMsg { /// The maximum number of incentive denoms that can be whitelisted at any given time. This is /// a guard against accidentally whitelisting too many denoms, which could cause max gas errors. pub max_whitelisted_denoms: u8, - /// Mars Token Denom - pub mars_denom: String, } #[cw_serde] @@ -154,6 +153,28 @@ pub enum ExecuteMsg { limit: Option, }, + ClaimStakedAstroLpRewards { + account_id: String, + lp_denom: String, + }, + + /// Stake Astroport LP tokens in astroport incentives contract to receive rewards. + StakeAstroLp { + /// User credit account Id + account_id: String, + /// AstroLp token to stake. + lp_coin: Coin, + }, + + /// Unstake Astroport LP tokens from astroport incentives contract. + /// Sends tokens back to the users credit account + UnstakeAstroLp { + /// User credit account Id + account_id: String, + /// AstroLp token to unstake. + lp_coin: ActionCoin, + }, + /// Update contract config (only callable by owner) UpdateConfig { /// The address provider contract address @@ -184,6 +205,15 @@ pub enum MigrateV1ToV2 { #[cw_serde] #[derive(QueryResponses)] pub enum QueryMsg { + /// Query account staked LP rewards + #[returns(PaginatedLpRewardsResponse)] + StakedAstroLpRewards { + /// The id of the account who owns the LP + account_id: String, + /// Denom of LP that is accruing rewards + lp_denom: String, + }, + /// Query all active incentive emissions for a collateral denom #[returns(Vec)] ActiveEmissions { @@ -246,6 +276,27 @@ pub enum QueryMsg { limit: Option, }, + /// Enumerate a users LP positions with pagination + #[returns(PaginatedStakedLpResponse)] + StakedAstroLpPositions { + /// The id of the account who owns the LP + account_id: String, + /// Start pagination after this lp denom, if used. + start_after: Option, + /// The maximum number of results to return. If not set, 5 is used. If larger than 10, + /// 10 is used. + limit: Option, + }, + + /// Get specific details on a users LP Position + #[returns(StakedLpPositionResponse)] + StakedAstroLpPosition { + /// The id of the account who owns the LP + account_id: String, + /// The denom of the LP position + lp_denom: String, + }, + /// Query user current unclaimed rewards #[returns(Vec)] UserUnclaimedRewards { @@ -269,16 +320,6 @@ pub enum QueryMsg { Whitelist {}, } -#[cw_serde] -pub struct MigrateMsg { - /// The amount of time in seconds for each incentive epoch. This is the minimum amount of time - /// that an incentive can last, and each incentive must be a multiple of this duration. - pub epoch_duration: u64, - /// The maximum number of incentive denoms that can be whitelisted at any given time. This is - /// a guard against accidentally whitelisting too many denoms, which could cause max gas errors. - pub max_whitelisted_denoms: u8, -} - #[cw_serde] pub struct EmissionResponse { /// The unix timestamp in seconds at which the emission epoch starts @@ -331,3 +372,26 @@ pub struct ConfigResponse { /// The count of the number of whitelisted incentive denoms pub whitelist_count: u8, } + +#[cw_serde] +pub struct StakedLpPositionResponse { + pub lp_coin: Coin, + pub rewards: Vec, +} + +pub type PaginatedStakedLpResponse = PaginationResponse; +pub type PaginatedLpRewardsResponse = PaginationResponse<(String, Vec)>; +#[cw_serde] +pub enum LpModification { + Deposit, + Withdraw, +} + +impl From for String { + fn from(lp_modification: LpModification) -> Self { + match lp_modification { + LpModification::Deposit => "Deposit".to_string(), + LpModification::Withdraw => "Withdraw".to_string(), + } + } +} diff --git a/packages/types/src/params/msg.rs b/packages/types/src/params/msg.rs index 02df16e6..897a06fc 100644 --- a/packages/types/src/params/msg.rs +++ b/packages/types/src/params/msg.rs @@ -35,7 +35,7 @@ pub enum QueryMsg { #[returns(super::msg::ConfigResponse)] Config {}, - #[returns(super::asset::AssetParams)] + #[returns(Option)] AssetParams { denom: String, }, @@ -73,6 +73,14 @@ pub enum QueryMsg { TotalDeposit { denom: String, }, + + /// Compute the total amount deposited for paginated assets across Red Bank + /// and Credit Manager. + #[returns(cw_paginate::PaginationResponse)] + AllTotalDepositsV2 { + start_after: Option, + limit: Option, + }, } #[cw_serde] diff --git a/packages/types/src/red_bank/msg.rs b/packages/types/src/red_bank/msg.rs index be8ba0aa..b33c970f 100644 --- a/packages/types/src/red_bank/msg.rs +++ b/packages/types/src/red_bank/msg.rs @@ -38,19 +38,6 @@ pub enum ExecuteMsg { params: InitOrUpdateAssetParams, }, - /// Update uncollateralized loan limit for a given user and asset. - /// Overrides previous value if any. A limit of zero means no - /// uncollateralized limit and the debt in that asset needs to be - /// collateralized (only owner can call) - UpdateUncollateralizedLoanLimit { - /// Address that receives the credit - user: String, - /// Asset the user receives the credit in - denom: String, - /// Limit for the uncolateralize loan. - new_limit: Uint128, - }, - /// Deposit native coins. Deposited coins must be sent in the transaction /// this call is made Deposit { @@ -157,6 +144,12 @@ pub enum QueryMsg { denom: String, }, + /// Get asset market with underlying collateral and debt amount + #[returns(crate::red_bank::MarketV2Response)] + MarketV2 { + denom: String, + }, + /// Enumerate markets with pagination #[returns(Vec)] Markets { @@ -164,17 +157,9 @@ pub enum QueryMsg { limit: Option, }, - /// Get uncollateralized limit for given user and asset - #[returns(crate::red_bank::UncollateralizedLoanLimitResponse)] - UncollateralizedLoanLimit { - user: String, - denom: String, - }, - - /// Get all uncollateralized limits for a given user - #[returns(Vec)] - UncollateralizedLoanLimits { - user: String, + /// Enumerate marketsV2 with pagination + #[returns(cw_paginate::PaginationResponse)] + MarketsV2 { start_after: Option, limit: Option, }, @@ -268,9 +253,3 @@ pub enum QueryMsg { amount_scaled: Uint128, }, } - -#[cw_serde] -pub enum MigrateMsg { - V1_0_0ToV2_0_0 {}, - V2_0_0ToV2_0_1 {}, -} diff --git a/packages/types/src/red_bank/types.rs b/packages/types/src/red_bank/types.rs index b434a52d..099b262b 100644 --- a/packages/types/src/red_bank/types.rs +++ b/packages/types/src/red_bank/types.rs @@ -2,6 +2,8 @@ use cosmwasm_schema::cw_serde; use cosmwasm_std::{Decimal, Uint128}; use cw_paginate::PaginationResponse; +use crate::red_bank::Market; + /// Global configuration #[cw_serde] pub struct Config { @@ -65,14 +67,6 @@ pub struct ConfigResponse { pub address_provider: String, } -#[cw_serde] -pub struct UncollateralizedLoanLimitResponse { - /// Asset denom - pub denom: String, - /// Uncollateralized loan limit in this asset - pub limit: Uint128, -} - #[cw_serde] pub struct UserDebtResponse { /// Asset denom @@ -112,3 +106,13 @@ pub struct UserPositionResponse { pub weighted_liquidation_threshold_collateral: Uint128, pub health_status: UserHealthStatus, } + +#[cw_serde] +pub struct MarketV2Response { + pub collateral_total_amount: Uint128, + pub debt_total_amount: Uint128, + pub utilization_rate: Decimal, + + #[serde(flatten)] + pub market: Market, +} diff --git a/packages/types/src/rewards_collector.rs b/packages/types/src/rewards_collector.rs index 205c95c6..d3d51d07 100644 --- a/packages/types/src/rewards_collector.rs +++ b/packages/types/src/rewards_collector.rs @@ -152,6 +152,8 @@ pub enum ExecuteMsg { amount: Option, safety_fund_route: Option, fee_collector_route: Option, + safety_fund_min_receive: Option, + fee_collector_min_receive: Option, }, /// Claim rewards in incentives contract. diff --git a/packages/types/src/swapper.rs b/packages/types/src/swapper.rs index c71eefef..2daff316 100644 --- a/packages/types/src/swapper.rs +++ b/packages/types/src/swapper.rs @@ -1,5 +1,5 @@ use cosmwasm_schema::{cw_serde, QueryResponses}; -use cosmwasm_std::{Addr, Coin, Decimal, Uint128}; +use cosmwasm_std::{Addr, Coin, Uint128}; use mars_owner::OwnerUpdate; #[cw_serde] @@ -56,11 +56,11 @@ pub enum ExecuteMsg { denom_out: String, route: Route, }, - /// Perform a swapper with an exact-in amount. Requires slippage allowance %. + /// Perform a swapper with an exact-in amount SwapExactIn { coin_in: Coin, denom_out: String, - slippage: Decimal, + min_receive: Uint128, route: Option, }, /// Send swapper results back to swapper. Also refunds extra if sent more than needed. Internal use only. diff --git a/schema.Makefile.toml b/schema.Makefile.toml index 644b7368..e9d3825a 100644 --- a/schema.Makefile.toml +++ b/schema.Makefile.toml @@ -27,6 +27,7 @@ fn main() -> std::io::Result<()> { "mars-oracle-osmosis", "mars-oracle-wasm", "mars-zapper-base", + "mars-vault", ]; for contract in contracts { diff --git a/schemas/mars-account-nft/mars-account-nft.json b/schemas/mars-account-nft/mars-account-nft.json index 094802fe..b5f831a6 100644 --- a/schemas/mars-account-nft/mars-account-nft.json +++ b/schemas/mars-account-nft/mars-account-nft.json @@ -83,7 +83,7 @@ "additionalProperties": false }, { - "description": "Mint a new NFT to the specified user; can only be called by the contract minter", + "description": "Mint a new NFT to the specified user; can only be called by the contract minter. Create own token_id or use the next available one.", "type": "object", "required": [ "mint" @@ -95,6 +95,12 @@ "user" ], "properties": { + "token_id": { + "type": [ + "string", + "null" + ] + }, "user": { "type": "string" } diff --git a/schemas/mars-address-provider/mars-address-provider.json b/schemas/mars-address-provider/mars-address-provider.json index a8ce16fd..9cf4cd37 100644 --- a/schemas/mars-address-provider/mars-address-provider.json +++ b/schemas/mars-address-provider/mars-address-provider.json @@ -108,6 +108,13 @@ "enum": [ "swapper" ] + }, + { + "description": "Astroport incentives contract", + "type": "string", + "enum": [ + "astroport_incentives" + ] } ] }, @@ -312,6 +319,13 @@ "enum": [ "swapper" ] + }, + { + "description": "Astroport incentives contract", + "type": "string", + "enum": [ + "astroport_incentives" + ] } ] } @@ -384,6 +398,13 @@ "enum": [ "swapper" ] + }, + { + "description": "Astroport incentives contract", + "type": "string", + "enum": [ + "astroport_incentives" + ] } ] } @@ -459,6 +480,13 @@ "enum": [ "swapper" ] + }, + { + "description": "Astroport incentives contract", + "type": "string", + "enum": [ + "astroport_incentives" + ] } ] } @@ -534,6 +562,13 @@ "enum": [ "swapper" ] + }, + { + "description": "Astroport incentives contract", + "type": "string", + "enum": [ + "astroport_incentives" + ] } ] } diff --git a/schemas/mars-credit-manager/mars-credit-manager.json b/schemas/mars-credit-manager/mars-credit-manager.json index 7c17cac7..a8980cdb 100644 --- a/schemas/mars-credit-manager/mars-credit-manager.json +++ b/schemas/mars-credit-manager/mars-credit-manager.json @@ -146,6 +146,34 @@ }, "additionalProperties": false }, + { + "description": "Mints NFT representing a credit account for user with optional custom account_id creation. User can have many accounts.", + "type": "object", + "required": [ + "create_credit_account_v2" + ], + "properties": { + "create_credit_account_v2": { + "type": "object", + "required": [ + "kind" + ], + "properties": { + "account_id": { + "type": [ + "string", + "null" + ] + }, + "kind": { + "$ref": "#/definitions/AccountKind" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Update user's position on their credit account", "type": "object", @@ -156,12 +184,24 @@ "update_credit_account": { "type": "object", "required": [ - "account_id", "actions" ], "properties": { "account_id": { - "type": "string" + "type": [ + "string", + "null" + ] + }, + "account_kind": { + "anyOf": [ + { + "$ref": "#/definitions/AccountKind" + }, + { + "type": "null" + } + ] }, "actions": { "type": "array", @@ -284,10 +324,36 @@ ], "definitions": { "AccountKind": { - "type": "string", - "enum": [ - "default", - "high_levered_strategy" + "oneOf": [ + { + "type": "string", + "enum": [ + "default", + "high_levered_strategy" + ] + }, + { + "description": "A vault that is managed by a fund manager. Fund manager (wallet) is responsible for managing the vault. Fund manager can't deposit and withdraw funds from the vault.", + "type": "object", + "required": [ + "fund_manager" + ], + "properties": { + "fund_manager": { + "type": "object", + "required": [ + "vault_addr" + ], + "properties": { + "vault_addr": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } ] }, "AccountNftBase_for_String": { @@ -322,6 +388,32 @@ }, "additionalProperties": false }, + { + "description": "Withdraw coin of specified denom and amount to a wallet address", + "type": "object", + "required": [ + "withdraw_to_wallet" + ], + "properties": { + "withdraw_to_wallet": { + "type": "object", + "required": [ + "coin", + "recipient" + ], + "properties": { + "coin": { + "$ref": "#/definitions/ActionCoin" + }, + "recipient": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Borrow coin of specified amount from Red Bank", "type": "object", @@ -562,7 +654,7 @@ "required": [ "coin_in", "denom_out", - "slippage" + "min_receive" ], "properties": { "coin_in": { @@ -571,6 +663,9 @@ "denom_out": { "type": "string" }, + "min_receive": { + "$ref": "#/definitions/Uint128" + }, "route": { "anyOf": [ { @@ -580,9 +675,6 @@ "type": "null" } ] - }, - "slippage": { - "$ref": "#/definitions/Decimal" } }, "additionalProperties": false @@ -649,6 +741,72 @@ }, "additionalProperties": false }, + { + "description": "Stake lp token in astroport incentives contract via mars incentives", + "type": "object", + "required": [ + "stake_astro_lp" + ], + "properties": { + "stake_astro_lp": { + "type": "object", + "required": [ + "lp_token" + ], + "properties": { + "lp_token": { + "$ref": "#/definitions/ActionCoin" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Unstake lp token from astroport incentives contract via mars incentives", + "type": "object", + "required": [ + "unstake_astro_lp" + ], + "properties": { + "unstake_astro_lp": { + "type": "object", + "required": [ + "lp_token" + ], + "properties": { + "lp_token": { + "$ref": "#/definitions/ActionCoin" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Claim accrued LP incentive rewards from astroport incentives contract via mars incentives", + "type": "object", + "required": [ + "claim_astro_lp_rewards" + ], + "properties": { + "claim_astro_lp_rewards": { + "type": "object", + "required": [ + "lp_denom" + ], + "properties": { + "lp_denom": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Refunds all coin balances back to user wallet", "type": "object", @@ -960,7 +1118,7 @@ "additionalProperties": false }, { - "description": "Calls incentive contract to claim all rewards and: - for Default account increments account balance - for HLS account withdraws claimed rewards. HLS accounts have special rules - some assets can't be in the account. For simplicity we withdraw all claimed rewards.", + "description": "Calls incentive contract to claim all rewards and increment account balance", "type": "object", "required": [ "claim_rewards" @@ -969,15 +1127,11 @@ "claim_rewards": { "type": "object", "required": [ - "account_id", - "recipient" + "account_id" ], "properties": { "account_id": { "type": "string" - }, - "recipient": { - "$ref": "#/definitions/Addr" } }, "additionalProperties": false @@ -1025,11 +1179,17 @@ ], "properties": { "denoms": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true + "type": "object", + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/definitions/Uint128" + }, + { + "type": "null" + } + ] + } } }, "additionalProperties": false @@ -1242,7 +1402,7 @@ "account_id", "coin_in", "denom_out", - "slippage" + "min_receive" ], "properties": { "account_id": { @@ -1254,6 +1414,9 @@ "denom_out": { "type": "string" }, + "min_receive": { + "$ref": "#/definitions/Uint128" + }, "route": { "anyOf": [ { @@ -1263,9 +1426,6 @@ "type": "null" } ] - }, - "slippage": { - "$ref": "#/definitions/Decimal" } }, "additionalProperties": false @@ -1393,18 +1553,17 @@ "additionalProperties": false }, { - "description": "Send LP token and withdraw corresponding reserve assets from pool. If `lp_token.amount: AccountBalance`, the account balance of `lp_token.denom` will be used.", + "description": "Stake lp token in astroport incentives contract via mars incentives", "type": "object", "required": [ - "withdraw_liquidity" + "stake_astro_lp" ], "properties": { - "withdraw_liquidity": { + "stake_astro_lp": { "type": "object", "required": [ "account_id", - "lp_token", - "slippage" + "lp_token" ], "properties": { "account_id": { @@ -1412,9 +1571,32 @@ }, "lp_token": { "$ref": "#/definitions/ActionCoin" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Unstake lp token from astroport incentives contract via mars incentives.", + "type": "object", + "required": [ + "unstake_astro_lp" + ], + "properties": { + "unstake_astro_lp": { + "type": "object", + "required": [ + "account_id", + "lp_token" + ], + "properties": { + "account_id": { + "type": "string" }, - "slippage": { - "$ref": "#/definitions/Decimal" + "lp_token": { + "$ref": "#/definitions/ActionCoin" } }, "additionalProperties": false @@ -1423,20 +1605,24 @@ "additionalProperties": false }, { - "description": "Refunds all coin balances back to user wallet", + "description": "Claim all accrued rewards for LP position in astroport incentives", "type": "object", "required": [ - "refund_all_coin_balances" + "claim_astro_lp_rewards" ], "properties": { - "refund_all_coin_balances": { + "claim_astro_lp_rewards": { "type": "object", "required": [ - "account_id" + "account_id", + "lp_denom" ], "properties": { "account_id": { "type": "string" + }, + "lp_denom": { + "type": "string" } }, "additionalProperties": false @@ -1445,20 +1631,28 @@ "additionalProperties": false }, { - "description": "Ensures that HLS accounts abide by specific rules", + "description": "Send LP token and withdraw corresponding reserve assets from pool. If `lp_token.amount: AccountBalance`, the account balance of `lp_token.denom` will be used.", "type": "object", "required": [ - "assert_hls_rules" + "withdraw_liquidity" ], "properties": { - "assert_hls_rules": { + "withdraw_liquidity": { "type": "object", "required": [ - "account_id" + "account_id", + "lp_token", + "slippage" ], "properties": { "account_id": { "type": "string" + }, + "lp_token": { + "$ref": "#/definitions/ActionCoin" + }, + "slippage": { + "$ref": "#/definitions/Decimal" } }, "additionalProperties": false @@ -1467,51 +1661,62 @@ "additionalProperties": false }, { - "description": "At the end of the execution of dispatched actions, this callback removes the guard and allows subsequent dispatches.", + "description": "Refunds all coin balances back to user wallet", "type": "object", "required": [ - "remove_reentrancy_guard" + "refund_all_coin_balances" ], "properties": { - "remove_reentrancy_guard": { + "refund_all_coin_balances": { "type": "object", + "required": [ + "account_id" + ], + "properties": { + "account_id": { + "type": "string" + } + }, "additionalProperties": false } }, "additionalProperties": false }, { - "description": "Send reward amounts of coin from credit manager to recipient by querying balance, claiming rewards, and comparing previous balance to new balance after reward claim - send the diff to the recipient.", + "description": "Ensures that HLS accounts abide by specific rules", "type": "object", "required": [ - "send_rewards_to_addr" + "assert_hls_rules" ], "properties": { - "send_rewards_to_addr": { + "assert_hls_rules": { "type": "object", "required": [ - "account_id", - "previous_balances", - "recipient" + "account_id" ], "properties": { "account_id": { "type": "string" - }, - "previous_balances": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } - }, - "recipient": { - "$ref": "#/definitions/Addr" } }, "additionalProperties": false } }, "additionalProperties": false + }, + { + "description": "At the end of the execution of dispatched actions, this callback removes the guard and allows subsequent dispatches.", + "type": "object", + "required": [ + "remove_reentrancy_guard" + ], + "properties": { + "remove_reentrancy_guard": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false } ] }, @@ -1782,6 +1987,19 @@ } }, "additionalProperties": false + }, + { + "description": "Pay back debt of a liquidatable credit manager account for a via liquidating an Astro LP position. LP shares are transfered from the liquidatable to the liquidator.", + "type": "object", + "required": [ + "staked_astro_lp" + ], + "properties": { + "staked_astro_lp": { + "type": "string" + } + }, + "additionalProperties": false } ] }, @@ -1838,6 +2056,19 @@ } }, "additionalProperties": false + }, + { + "description": "Pay back debt of a liquidatable credit manager account for a via liquidating an Astro LP position. LP shares are transfered from the liquidatable to the liquidator.", + "type": "object", + "required": [ + "staked_astro_lp" + ], + "properties": { + "staked_astro_lp": { + "type": "string" + } + }, + "additionalProperties": false } ] }, @@ -2454,6 +2685,36 @@ } }, "additionalProperties": false + }, + { + "description": "Enumerate all vault bindings; start_after accepts account_id", + "type": "object", + "required": [ + "vault_bindings" + ], + "properties": { + "vault_bindings": { + "type": "object", + "properties": { + "limit": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "start_after": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ], "definitions": { @@ -2605,10 +2866,36 @@ "account_kind": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "AccountKind", - "type": "string", - "enum": [ - "default", - "high_levered_strategy" + "oneOf": [ + { + "type": "string", + "enum": [ + "default", + "high_levered_strategy" + ] + }, + { + "description": "A vault that is managed by a fund manager. Fund manager (wallet) is responsible for managing the vault. Fund manager can't deposit and withdraw funds from the vault.", + "type": "object", + "required": [ + "fund_manager" + ], + "properties": { + "fund_manager": { + "type": "object", + "required": [ + "vault_addr" + ], + "properties": { + "vault_addr": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } ] }, "accounts": { @@ -2636,10 +2923,36 @@ "additionalProperties": false }, "AccountKind": { - "type": "string", - "enum": [ - "default", - "high_levered_strategy" + "oneOf": [ + { + "type": "string", + "enum": [ + "default", + "high_levered_strategy" + ] + }, + { + "description": "A vault that is managed by a fund manager. Fund manager (wallet) is responsible for managing the vault. Fund manager can't deposit and withdraw funds from the vault.", + "type": "object", + "required": [ + "fund_manager" + ], + "properties": { + "fund_manager": { + "type": "object", + "required": [ + "vault_addr" + ], + "properties": { + "vault_addr": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } ] } } @@ -3146,15 +3459,20 @@ "type": "object", "required": [ "account_id", + "account_kind", "debts", "deposits", "lends", + "staked_astro_lps", "vaults" ], "properties": { "account_id": { "type": "string" }, + "account_kind": { + "$ref": "#/definitions/AccountKind" + }, "debts": { "type": "array", "items": { @@ -3173,6 +3491,12 @@ "$ref": "#/definitions/Coin" } }, + "staked_astro_lps": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "vaults": { "type": "array", "items": { @@ -3182,6 +3506,39 @@ }, "additionalProperties": false, "definitions": { + "AccountKind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "default", + "high_levered_strategy" + ] + }, + { + "description": "A vault that is managed by a fund manager. Fund manager (wallet) is responsible for managing the vault. Fund manager can't deposit and withdraw funds from the vault.", + "type": "object", + "required": [ + "fund_manager" + ], + "properties": { + "fund_manager": { + "type": "object", + "required": [ + "vault_addr" + ], + "properties": { + "vault_addr": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + ] + }, "Addr": { "description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.", "type": "string" @@ -3366,6 +3723,32 @@ } } }, + "vault_bindings": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Array_of_VaultBinding", + "type": "array", + "items": { + "$ref": "#/definitions/VaultBinding" + }, + "definitions": { + "VaultBinding": { + "type": "object", + "required": [ + "account_id", + "vault_address" + ], + "properties": { + "account_id": { + "type": "string" + }, + "vault_address": { + "type": "string" + } + }, + "additionalProperties": false + } + } + }, "vault_position_value": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "VaultPositionValue", diff --git a/schemas/mars-incentives/mars-incentives.json b/schemas/mars-incentives/mars-incentives.json index 8339b4f4..009c5e83 100644 --- a/schemas/mars-incentives/mars-incentives.json +++ b/schemas/mars-incentives/mars-incentives.json @@ -9,7 +9,6 @@ "required": [ "address_provider", "epoch_duration", - "mars_denom", "max_whitelisted_denoms", "owner" ], @@ -24,10 +23,6 @@ "format": "uint64", "minimum": 0.0 }, - "mars_denom": { - "description": "Mars Token Denom", - "type": "string" - }, "max_whitelisted_denoms": { "description": "The maximum number of incentive denoms that can be whitelisted at any given time. This is a guard against accidentally whitelisting too many denoms, which could cause max gas errors.", "type": "integer", @@ -233,6 +228,95 @@ }, "additionalProperties": false }, + { + "type": "object", + "required": [ + "claim_staked_astro_lp_rewards" + ], + "properties": { + "claim_staked_astro_lp_rewards": { + "type": "object", + "required": [ + "account_id", + "lp_denom" + ], + "properties": { + "account_id": { + "type": "string" + }, + "lp_denom": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Stake Astroport LP tokens in astroport incentives contract to receive rewards.", + "type": "object", + "required": [ + "stake_astro_lp" + ], + "properties": { + "stake_astro_lp": { + "type": "object", + "required": [ + "account_id", + "lp_coin" + ], + "properties": { + "account_id": { + "description": "User credit account Id", + "type": "string" + }, + "lp_coin": { + "description": "AstroLp token to stake.", + "allOf": [ + { + "$ref": "#/definitions/Coin" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Unstake Astroport LP tokens from astroport incentives contract. Sends tokens back to the users credit account", + "type": "object", + "required": [ + "unstake_astro_lp" + ], + "properties": { + "unstake_astro_lp": { + "type": "object", + "required": [ + "account_id", + "lp_coin" + ], + "properties": { + "account_id": { + "description": "User credit account Id", + "type": "string" + }, + "lp_coin": { + "description": "AstroLp token to unstake.", + "allOf": [ + { + "$ref": "#/definitions/ActionCoin" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Update contract config (only callable by owner)", "type": "object", @@ -292,10 +376,63 @@ } ], "definitions": { + "ActionAmount": { + "oneOf": [ + { + "type": "string", + "enum": [ + "account_balance" + ] + }, + { + "type": "object", + "required": [ + "exact" + ], + "properties": { + "exact": { + "$ref": "#/definitions/Uint128" + } + }, + "additionalProperties": false + } + ] + }, + "ActionCoin": { + "type": "object", + "required": [ + "amount", + "denom" + ], + "properties": { + "amount": { + "$ref": "#/definitions/ActionAmount" + }, + "denom": { + "type": "string" + } + }, + "additionalProperties": false + }, "Addr": { "description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.", "type": "string" }, + "Coin": { + "type": "object", + "required": [ + "amount", + "denom" + ], + "properties": { + "amount": { + "$ref": "#/definitions/Uint128" + }, + "denom": { + "type": "string" + } + } + }, "MigrateV1ToV2": { "description": "Migrate from V1 to V2, only owner can call", "oneOf": [ @@ -447,6 +584,34 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg", "oneOf": [ + { + "description": "Query account staked LP rewards", + "type": "object", + "required": [ + "staked_astro_lp_rewards" + ], + "properties": { + "staked_astro_lp_rewards": { + "type": "object", + "required": [ + "account_id", + "lp_denom" + ], + "properties": { + "account_id": { + "description": "The id of the account who owns the LP", + "type": "string" + }, + "lp_denom": { + "description": "Denom of LP that is accruing rewards", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Query all active incentive emissions for a collateral denom", "type": "object", @@ -632,6 +797,73 @@ }, "additionalProperties": false }, + { + "description": "Enumerate a users LP positions with pagination", + "type": "object", + "required": [ + "staked_astro_lp_positions" + ], + "properties": { + "staked_astro_lp_positions": { + "type": "object", + "required": [ + "account_id" + ], + "properties": { + "account_id": { + "description": "The id of the account who owns the LP", + "type": "string" + }, + "limit": { + "description": "The maximum number of results to return. If not set, 5 is used. If larger than 10, 10 is used.", + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "start_after": { + "description": "Start pagination after this lp denom, if used.", + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Get specific details on a users LP Position", + "type": "object", + "required": [ + "staked_astro_lp_position" + ], + "properties": { + "staked_astro_lp_position": { + "type": "object", + "required": [ + "account_id", + "lp_denom" + ], + "properties": { + "account_id": { + "description": "The id of the account who owns the LP", + "type": "string" + }, + "lp_denom": { + "description": "The denom of the LP position", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Query user current unclaimed rewards", "type": "object", @@ -937,6 +1169,188 @@ } } }, + "staked_astro_lp_position": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "StakedLpPositionResponse", + "type": "object", + "required": [ + "lp_coin", + "rewards" + ], + "properties": { + "lp_coin": { + "$ref": "#/definitions/Coin" + }, + "rewards": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + } + }, + "additionalProperties": false, + "definitions": { + "Coin": { + "type": "object", + "required": [ + "amount", + "denom" + ], + "properties": { + "amount": { + "$ref": "#/definitions/Uint128" + }, + "denom": { + "type": "string" + } + } + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + } + } + }, + "staked_astro_lp_positions": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "PaginationResponse_for_StakedLpPositionResponse", + "type": "object", + "required": [ + "data", + "metadata" + ], + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/StakedLpPositionResponse" + } + }, + "metadata": { + "$ref": "#/definitions/Metadata" + } + }, + "additionalProperties": false, + "definitions": { + "Coin": { + "type": "object", + "required": [ + "amount", + "denom" + ], + "properties": { + "amount": { + "$ref": "#/definitions/Uint128" + }, + "denom": { + "type": "string" + } + } + }, + "Metadata": { + "type": "object", + "required": [ + "has_more" + ], + "properties": { + "has_more": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "StakedLpPositionResponse": { + "type": "object", + "required": [ + "lp_coin", + "rewards" + ], + "properties": { + "lp_coin": { + "$ref": "#/definitions/Coin" + }, + "rewards": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + } + }, + "additionalProperties": false + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + } + } + }, + "staked_astro_lp_rewards": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "PaginationResponse_for_Tuple_of_String_and_Array_of_Coin", + "type": "object", + "required": [ + "data", + "metadata" + ], + "properties": { + "data": { + "type": "array", + "items": { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + } + ], + "maxItems": 2, + "minItems": 2 + } + }, + "metadata": { + "$ref": "#/definitions/Metadata" + } + }, + "additionalProperties": false, + "definitions": { + "Coin": { + "type": "object", + "required": [ + "amount", + "denom" + ], + "properties": { + "amount": { + "$ref": "#/definitions/Uint128" + }, + "denom": { + "type": "string" + } + } + }, + "Metadata": { + "type": "object", + "required": [ + "has_more" + ], + "properties": { + "has_more": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + } + } + }, "user_unclaimed_rewards": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Array_of_Coin", diff --git a/schemas/mars-oracle-wasm/mars-oracle-wasm.json b/schemas/mars-oracle-wasm/mars-oracle-wasm.json index 210d4331..95a51ff5 100644 --- a/schemas/mars-oracle-wasm/mars-oracle-wasm.json +++ b/schemas/mars-oracle-wasm/mars-oracle-wasm.json @@ -495,6 +495,73 @@ } }, "additionalProperties": false + }, + { + "description": "Astroport LP token (of an XYK pool) price quoted in uusd", + "type": "object", + "required": [ + "xyk_liquidity_token" + ], + "properties": { + "xyk_liquidity_token": { + "type": "object", + "required": [ + "pair_address" + ], + "properties": { + "pair_address": { + "description": "Address of the Astroport pair", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "pcl_liquidity_token" + ], + "properties": { + "pcl_liquidity_token": { + "type": "object", + "required": [ + "pair_address" + ], + "properties": { + "pair_address": { + "description": "Address of the Astroport pair", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "ss_liquidity_token" + ], + "properties": { + "ss_liquidity_token": { + "type": "object", + "required": [ + "pair_address" + ], + "properties": { + "pair_address": { + "description": "Address of the Astroport pair", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ] } diff --git a/schemas/mars-params/mars-params.json b/schemas/mars-params/mars-params.json index c1935973..542b2db6 100644 --- a/schemas/mars-params/mars-params.json +++ b/schemas/mars-params/mars-params.json @@ -784,6 +784,36 @@ } }, "additionalProperties": false + }, + { + "description": "Compute the total amount deposited for paginated assets across Red Bank and Credit Manager.", + "type": "object", + "required": [ + "all_total_deposits_v2" + ], + "properties": { + "all_total_deposits_v2": { + "type": "object", + "properties": { + "limit": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "start_after": { + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ] }, @@ -1005,6 +1035,65 @@ } } }, + "all_total_deposits_v2": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "PaginationResponse_for_TotalDepositResponse", + "type": "object", + "required": [ + "data", + "metadata" + ], + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/TotalDepositResponse" + } + }, + "metadata": { + "$ref": "#/definitions/Metadata" + } + }, + "additionalProperties": false, + "definitions": { + "Metadata": { + "type": "object", + "required": [ + "has_more" + ], + "properties": { + "has_more": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "TotalDepositResponse": { + "type": "object", + "required": [ + "amount", + "cap", + "denom" + ], + "properties": { + "amount": { + "$ref": "#/definitions/Uint128" + }, + "cap": { + "$ref": "#/definitions/Uint128" + }, + "denom": { + "type": "string" + } + }, + "additionalProperties": false + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + } + } + }, "all_vault_configs": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Array_of_VaultConfigBase_for_Addr", @@ -1322,50 +1411,60 @@ }, "asset_params": { "$schema": "http://json-schema.org/draft-07/schema#", - "title": "AssetParamsBase_for_Addr", - "type": "object", - "required": [ - "credit_manager", - "denom", - "deposit_cap", - "liquidation_bonus", - "liquidation_threshold", - "max_loan_to_value", - "protocol_liquidation_fee", - "red_bank" - ], - "properties": { - "credit_manager": { - "$ref": "#/definitions/CmSettings_for_Addr" - }, - "denom": { - "type": "string" - }, - "deposit_cap": { - "$ref": "#/definitions/Uint128" - }, - "liquidation_bonus": { - "$ref": "#/definitions/LiquidationBonus" - }, - "liquidation_threshold": { - "$ref": "#/definitions/Decimal" - }, - "max_loan_to_value": { - "$ref": "#/definitions/Decimal" + "title": "Nullable_AssetParamsBase_for_Addr", + "anyOf": [ + { + "$ref": "#/definitions/AssetParamsBase_for_Addr" }, - "protocol_liquidation_fee": { - "$ref": "#/definitions/Decimal" - }, - "red_bank": { - "$ref": "#/definitions/RedBankSettings" + { + "type": "null" } - }, - "additionalProperties": false, + ], "definitions": { "Addr": { "description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.", "type": "string" }, + "AssetParamsBase_for_Addr": { + "type": "object", + "required": [ + "credit_manager", + "denom", + "deposit_cap", + "liquidation_bonus", + "liquidation_threshold", + "max_loan_to_value", + "protocol_liquidation_fee", + "red_bank" + ], + "properties": { + "credit_manager": { + "$ref": "#/definitions/CmSettings_for_Addr" + }, + "denom": { + "type": "string" + }, + "deposit_cap": { + "$ref": "#/definitions/Uint128" + }, + "liquidation_bonus": { + "$ref": "#/definitions/LiquidationBonus" + }, + "liquidation_threshold": { + "$ref": "#/definitions/Decimal" + }, + "max_loan_to_value": { + "$ref": "#/definitions/Decimal" + }, + "protocol_liquidation_fee": { + "$ref": "#/definitions/Decimal" + }, + "red_bank": { + "$ref": "#/definitions/RedBankSettings" + } + }, + "additionalProperties": false + }, "CmSettings_for_Addr": { "type": "object", "required": [ diff --git a/schemas/mars-red-bank/mars-red-bank.json b/schemas/mars-red-bank/mars-red-bank.json index 97faad45..d3518ced 100644 --- a/schemas/mars-red-bank/mars-red-bank.json +++ b/schemas/mars-red-bank/mars-red-bank.json @@ -143,43 +143,6 @@ }, "additionalProperties": false }, - { - "description": "Update uncollateralized loan limit for a given user and asset. Overrides previous value if any. A limit of zero means no uncollateralized limit and the debt in that asset needs to be collateralized (only owner can call)", - "type": "object", - "required": [ - "update_uncollateralized_loan_limit" - ], - "properties": { - "update_uncollateralized_loan_limit": { - "type": "object", - "required": [ - "denom", - "new_limit", - "user" - ], - "properties": { - "denom": { - "description": "Asset the user receives the credit in", - "type": "string" - }, - "new_limit": { - "description": "Limit for the uncolateralize loan.", - "allOf": [ - { - "$ref": "#/definitions/Uint128" - } - ] - }, - "user": { - "description": "Address that receives the credit", - "type": "string" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, { "description": "Deposit native coins. Deposited coins must be sent in the transaction this call is made", "type": "object", @@ -656,6 +619,28 @@ }, "additionalProperties": false }, + { + "description": "Get asset market with underlying collateral and debt amount", + "type": "object", + "required": [ + "market_v2" + ], + "properties": { + "market_v2": { + "type": "object", + "required": [ + "denom" + ], + "properties": { + "denom": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Enumerate markets with pagination", "type": "object", @@ -687,43 +672,14 @@ "additionalProperties": false }, { - "description": "Get uncollateralized limit for given user and asset", + "description": "Enumerate marketsV2 with pagination", "type": "object", "required": [ - "uncollateralized_loan_limit" + "markets_v2" ], "properties": { - "uncollateralized_loan_limit": { + "markets_v2": { "type": "object", - "required": [ - "denom", - "user" - ], - "properties": { - "denom": { - "type": "string" - }, - "user": { - "type": "string" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false - }, - { - "description": "Get all uncollateralized limits for a given user", - "type": "object", - "required": [ - "uncollateralized_loan_limits" - ], - "properties": { - "uncollateralized_loan_limits": { - "type": "object", - "required": [ - "user" - ], "properties": { "limit": { "type": [ @@ -738,9 +694,6 @@ "string", "null" ] - }, - "user": { - "type": "string" } }, "additionalProperties": false @@ -1274,6 +1227,166 @@ } } }, + "market_v2": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "MarketV2Response", + "type": "object", + "required": [ + "borrow_index", + "borrow_rate", + "collateral_total_amount", + "collateral_total_scaled", + "debt_total_amount", + "debt_total_scaled", + "denom", + "indexes_last_updated", + "interest_rate_model", + "liquidity_index", + "liquidity_rate", + "reserve_factor", + "utilization_rate" + ], + "properties": { + "borrow_index": { + "description": "Borrow index (Used to compute borrow interest)", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "borrow_rate": { + "description": "Rate charged to borrowers", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "collateral_total_amount": { + "$ref": "#/definitions/Uint128" + }, + "collateral_total_scaled": { + "description": "Total collateral scaled for the market's currency", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + }, + "debt_total_amount": { + "$ref": "#/definitions/Uint128" + }, + "debt_total_scaled": { + "description": "Total debt scaled for the market's currency", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + }, + "denom": { + "description": "Denom of the asset", + "type": "string" + }, + "indexes_last_updated": { + "description": "Timestamp (seconds) where indexes and where last updated", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "interest_rate_model": { + "description": "model (params + internal state) that defines how interest rate behaves", + "allOf": [ + { + "$ref": "#/definitions/InterestRateModel" + } + ] + }, + "liquidity_index": { + "description": "Liquidity index (Used to compute deposit interest)", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "liquidity_rate": { + "description": "Rate paid to depositors", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "reserve_factor": { + "description": "Portion of the borrow rate that is kept as protocol rewards", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "utilization_rate": { + "$ref": "#/definitions/Decimal" + } + }, + "additionalProperties": false, + "definitions": { + "Decimal": { + "description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)", + "type": "string" + }, + "InterestRateModel": { + "type": "object", + "required": [ + "base", + "optimal_utilization_rate", + "slope_1", + "slope_2" + ], + "properties": { + "base": { + "description": "Base rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "optimal_utilization_rate": { + "description": "Optimal utilization rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "slope_1": { + "description": "Slope parameter for interest rate model function when utilization_rate <= optimal_utilization_rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "slope_2": { + "description": "Slope parameter for interest rate model function when utilization_rate > optimal_utilization_rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + } + }, + "additionalProperties": false + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + } + } + }, "markets": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Array_of_Market", @@ -1428,84 +1541,209 @@ } } }, - "scaled_debt_amount": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Uint128", - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", - "type": "string" - }, - "scaled_liquidity_amount": { + "markets_v2": { "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Uint128", - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", - "type": "string" - }, - "uncollateralized_loan_limit": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "UncollateralizedLoanLimitResponse", + "title": "PaginationResponse_for_MarketV2Response", "type": "object", "required": [ - "denom", - "limit" + "data", + "metadata" ], "properties": { - "denom": { - "description": "Asset denom", - "type": "string" + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/MarketV2Response" + } }, - "limit": { - "description": "Uncollateralized loan limit in this asset", - "allOf": [ - { - "$ref": "#/definitions/Uint128" - } - ] + "metadata": { + "$ref": "#/definitions/Metadata" } }, "additionalProperties": false, "definitions": { - "Uint128": { - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", - "type": "string" - } - } - }, - "uncollateralized_loan_limits": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Array_of_UncollateralizedLoanLimitResponse", - "type": "array", - "items": { - "$ref": "#/definitions/UncollateralizedLoanLimitResponse" - }, - "definitions": { - "Uint128": { - "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "Decimal": { + "description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)", "type": "string" }, - "UncollateralizedLoanLimitResponse": { + "InterestRateModel": { "type": "object", "required": [ + "base", + "optimal_utilization_rate", + "slope_1", + "slope_2" + ], + "properties": { + "base": { + "description": "Base rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "optimal_utilization_rate": { + "description": "Optimal utilization rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "slope_1": { + "description": "Slope parameter for interest rate model function when utilization_rate <= optimal_utilization_rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "slope_2": { + "description": "Slope parameter for interest rate model function when utilization_rate > optimal_utilization_rate", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + } + }, + "additionalProperties": false + }, + "MarketV2Response": { + "type": "object", + "required": [ + "borrow_index", + "borrow_rate", + "collateral_total_amount", + "collateral_total_scaled", + "debt_total_amount", + "debt_total_scaled", "denom", - "limit" + "indexes_last_updated", + "interest_rate_model", + "liquidity_index", + "liquidity_rate", + "reserve_factor", + "utilization_rate" ], "properties": { + "borrow_index": { + "description": "Borrow index (Used to compute borrow interest)", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "borrow_rate": { + "description": "Rate charged to borrowers", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "collateral_total_amount": { + "$ref": "#/definitions/Uint128" + }, + "collateral_total_scaled": { + "description": "Total collateral scaled for the market's currency", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + }, + "debt_total_amount": { + "$ref": "#/definitions/Uint128" + }, + "debt_total_scaled": { + "description": "Total debt scaled for the market's currency", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + }, "denom": { - "description": "Asset denom", + "description": "Denom of the asset", "type": "string" }, - "limit": { - "description": "Uncollateralized loan limit in this asset", + "indexes_last_updated": { + "description": "Timestamp (seconds) where indexes and where last updated", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "interest_rate_model": { + "description": "model (params + internal state) that defines how interest rate behaves", "allOf": [ { - "$ref": "#/definitions/Uint128" + "$ref": "#/definitions/InterestRateModel" + } + ] + }, + "liquidity_index": { + "description": "Liquidity index (Used to compute deposit interest)", + "allOf": [ + { + "$ref": "#/definitions/Decimal" } ] + }, + "liquidity_rate": { + "description": "Rate paid to depositors", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "reserve_factor": { + "description": "Portion of the borrow rate that is kept as protocol rewards", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "utilization_rate": { + "$ref": "#/definitions/Decimal" } }, "additionalProperties": false + }, + "Metadata": { + "type": "object", + "required": [ + "has_more" + ], + "properties": { + "has_more": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" } } }, + "scaled_debt_amount": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, + "scaled_liquidity_amount": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, "underlying_debt_amount": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Uint128", diff --git a/schemas/mars-rewards-collector-base/mars-rewards-collector-base.json b/schemas/mars-rewards-collector-base/mars-rewards-collector-base.json index 4a3987a0..f97aea11 100644 --- a/schemas/mars-rewards-collector-base/mars-rewards-collector-base.json +++ b/schemas/mars-rewards-collector-base/mars-rewards-collector-base.json @@ -282,6 +282,16 @@ "denom": { "type": "string" }, + "fee_collector_min_receive": { + "anyOf": [ + { + "$ref": "#/definitions/Uint128" + }, + { + "type": "null" + } + ] + }, "fee_collector_route": { "anyOf": [ { @@ -292,6 +302,16 @@ } ] }, + "safety_fund_min_receive": { + "anyOf": [ + { + "$ref": "#/definitions/Uint128" + }, + { + "type": "null" + } + ] + }, "safety_fund_route": { "anyOf": [ { @@ -378,6 +398,32 @@ }, "additionalProperties": false }, + { + "description": "Withdraw coin of specified denom and amount to a wallet address", + "type": "object", + "required": [ + "withdraw_to_wallet" + ], + "properties": { + "withdraw_to_wallet": { + "type": "object", + "required": [ + "coin", + "recipient" + ], + "properties": { + "coin": { + "$ref": "#/definitions/ActionCoin" + }, + "recipient": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Borrow coin of specified amount from Red Bank", "type": "object", @@ -618,7 +664,7 @@ "required": [ "coin_in", "denom_out", - "slippage" + "min_receive" ], "properties": { "coin_in": { @@ -627,6 +673,9 @@ "denom_out": { "type": "string" }, + "min_receive": { + "$ref": "#/definitions/Uint128" + }, "route": { "anyOf": [ { @@ -636,9 +685,6 @@ "type": "null" } ] - }, - "slippage": { - "$ref": "#/definitions/Decimal" } }, "additionalProperties": false @@ -705,6 +751,72 @@ }, "additionalProperties": false }, + { + "description": "Stake lp token in astroport incentives contract via mars incentives", + "type": "object", + "required": [ + "stake_astro_lp" + ], + "properties": { + "stake_astro_lp": { + "type": "object", + "required": [ + "lp_token" + ], + "properties": { + "lp_token": { + "$ref": "#/definitions/ActionCoin" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Unstake lp token from astroport incentives contract via mars incentives", + "type": "object", + "required": [ + "unstake_astro_lp" + ], + "properties": { + "unstake_astro_lp": { + "type": "object", + "required": [ + "lp_token" + ], + "properties": { + "lp_token": { + "$ref": "#/definitions/ActionCoin" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Claim accrued LP incentive rewards from astroport incentives contract via mars incentives", + "type": "object", + "required": [ + "claim_astro_lp_rewards" + ], + "properties": { + "claim_astro_lp_rewards": { + "type": "object", + "required": [ + "lp_denom" + ], + "properties": { + "lp_denom": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, { "description": "Refunds all coin balances back to user wallet", "type": "object", @@ -865,6 +977,19 @@ } }, "additionalProperties": false + }, + { + "description": "Pay back debt of a liquidatable credit manager account for a via liquidating an Astro LP position. LP shares are transfered from the liquidatable to the liquidator.", + "type": "object", + "required": [ + "staked_astro_lp" + ], + "properties": { + "staked_astro_lp": { + "type": "string" + } + }, + "additionalProperties": false } ] }, diff --git a/schemas/mars-rover-health-computer/mars-rover-health-computer.json b/schemas/mars-rover-health-computer/mars-rover-health-computer.json index 22bd8c73..9d17ba6a 100644 --- a/schemas/mars-rover-health-computer/mars-rover-health-computer.json +++ b/schemas/mars-rover-health-computer/mars-rover-health-computer.json @@ -26,10 +26,36 @@ "additionalProperties": false, "definitions": { "AccountKind": { - "type": "string", - "enum": [ - "default", - "high_levered_strategy" + "oneOf": [ + { + "type": "string", + "enum": [ + "default", + "high_levered_strategy" + ] + }, + { + "description": "A vault that is managed by a fund manager. Fund manager (wallet) is responsible for managing the vault. Fund manager can't deposit and withdraw funds from the vault.", + "type": "object", + "required": [ + "fund_manager" + ], + "properties": { + "fund_manager": { + "type": "object", + "required": [ + "vault_addr" + ], + "properties": { + "vault_addr": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } ] }, "Addr": { @@ -325,15 +351,20 @@ "type": "object", "required": [ "account_id", + "account_kind", "debts", "deposits", "lends", + "staked_astro_lps", "vaults" ], "properties": { "account_id": { "type": "string" }, + "account_kind": { + "$ref": "#/definitions/AccountKind" + }, "debts": { "type": "array", "items": { @@ -352,6 +383,12 @@ "$ref": "#/definitions/Coin" } }, + "staked_astro_lps": { + "type": "array", + "items": { + "$ref": "#/definitions/Coin" + } + }, "vaults": { "type": "array", "items": { diff --git a/schemas/mars-rover-health/mars-rover-health.json b/schemas/mars-rover-health/mars-rover-health.json index 6bf5c727..1cc084dc 100644 --- a/schemas/mars-rover-health/mars-rover-health.json +++ b/schemas/mars-rover-health/mars-rover-health.json @@ -223,10 +223,36 @@ ], "definitions": { "AccountKind": { - "type": "string", - "enum": [ - "default", - "high_levered_strategy" + "oneOf": [ + { + "type": "string", + "enum": [ + "default", + "high_levered_strategy" + ] + }, + { + "description": "A vault that is managed by a fund manager. Fund manager (wallet) is responsible for managing the vault. Fund manager can't deposit and withdraw funds from the vault.", + "type": "object", + "required": [ + "fund_manager" + ], + "properties": { + "fund_manager": { + "type": "object", + "required": [ + "vault_addr" + ], + "properties": { + "vault_addr": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } ] }, "ActionKind": { diff --git a/schemas/mars-swapper-astroport/mars-swapper-astroport.json b/schemas/mars-swapper-astroport/mars-swapper-astroport.json index db9e84dd..49c7a784 100644 --- a/schemas/mars-swapper-astroport/mars-swapper-astroport.json +++ b/schemas/mars-swapper-astroport/mars-swapper-astroport.json @@ -65,7 +65,7 @@ "additionalProperties": false }, { - "description": "Perform a swapper with an exact-in amount. Requires slippage allowance %.", + "description": "Perform a swapper with an exact-in amount", "type": "object", "required": [ "swap_exact_in" @@ -76,7 +76,7 @@ "required": [ "coin_in", "denom_out", - "slippage" + "min_receive" ], "properties": { "coin_in": { @@ -85,6 +85,9 @@ "denom_out": { "type": "string" }, + "min_receive": { + "$ref": "#/definitions/Uint128" + }, "route": { "anyOf": [ { @@ -94,9 +97,6 @@ "type": "null" } ] - }, - "slippage": { - "$ref": "#/definitions/Decimal" } }, "additionalProperties": false @@ -313,10 +313,6 @@ } } }, - "Decimal": { - "description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)", - "type": "string" - }, "OsmoRoute": { "type": "object", "required": [ diff --git a/schemas/mars-swapper-base/mars-swapper-base.json b/schemas/mars-swapper-base/mars-swapper-base.json index 4f4d89f0..a51e30a8 100644 --- a/schemas/mars-swapper-base/mars-swapper-base.json +++ b/schemas/mars-swapper-base/mars-swapper-base.json @@ -65,7 +65,7 @@ "additionalProperties": false }, { - "description": "Perform a swapper with an exact-in amount. Requires slippage allowance %.", + "description": "Perform a swapper with an exact-in amount", "type": "object", "required": [ "swap_exact_in" @@ -76,7 +76,7 @@ "required": [ "coin_in", "denom_out", - "slippage" + "min_receive" ], "properties": { "coin_in": { @@ -85,6 +85,9 @@ "denom_out": { "type": "string" }, + "min_receive": { + "$ref": "#/definitions/Uint128" + }, "route": { "anyOf": [ { @@ -94,9 +97,6 @@ "type": "null" } ] - }, - "slippage": { - "$ref": "#/definitions/Decimal" } }, "additionalProperties": false @@ -210,10 +210,6 @@ } } }, - "Decimal": { - "description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)", - "type": "string" - }, "Empty": { "description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)", "type": "object" diff --git a/schemas/mars-swapper-osmosis/mars-swapper-osmosis.json b/schemas/mars-swapper-osmosis/mars-swapper-osmosis.json index 5b960d65..20ec7b40 100644 --- a/schemas/mars-swapper-osmosis/mars-swapper-osmosis.json +++ b/schemas/mars-swapper-osmosis/mars-swapper-osmosis.json @@ -65,7 +65,7 @@ "additionalProperties": false }, { - "description": "Perform a swapper with an exact-in amount. Requires slippage allowance %.", + "description": "Perform a swapper with an exact-in amount", "type": "object", "required": [ "swap_exact_in" @@ -76,7 +76,7 @@ "required": [ "coin_in", "denom_out", - "slippage" + "min_receive" ], "properties": { "coin_in": { @@ -85,6 +85,9 @@ "denom_out": { "type": "string" }, + "min_receive": { + "$ref": "#/definitions/Uint128" + }, "route": { "anyOf": [ { @@ -94,9 +97,6 @@ "type": "null" } ] - }, - "slippage": { - "$ref": "#/definitions/Decimal" } }, "additionalProperties": false @@ -210,10 +210,6 @@ } } }, - "Decimal": { - "description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)", - "type": "string" - }, "OsmoRoute": { "type": "object", "required": [ diff --git a/schemas/mars-vault/mars-vault.json b/schemas/mars-vault/mars-vault.json new file mode 100644 index 00000000..8ed0850f --- /dev/null +++ b/schemas/mars-vault/mars-vault.json @@ -0,0 +1,673 @@ +{ + "contract_name": "mars-vault", + "contract_version": "2.0.0", + "idl_version": "1.0.0", + "instantiate": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "InstantiateMsg", + "type": "object", + "required": [ + "base_token", + "cooldown_period", + "credit_manager", + "performance_fee_config", + "vault_token_subdenom" + ], + "properties": { + "base_token": { + "description": "The base token denom that will be used for the native vault token, e.g. uusdc.", + "type": "string" + }, + "cooldown_period": { + "description": "Stakers need to wait a cooldown period before being able to withdraw USDC from the vault. Value defined in seconds.", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + }, + "credit_manager": { + "description": "Credit Manager contract address", + "type": "string" + }, + "description": { + "type": [ + "string", + "null" + ] + }, + "performance_fee_config": { + "description": "Performance fee configuration", + "allOf": [ + { + "$ref": "#/definitions/PerformanceFeeConfig" + } + ] + }, + "subtitle": { + "type": [ + "string", + "null" + ] + }, + "title": { + "description": "Optional metadata", + "type": [ + "string", + "null" + ] + }, + "vault_token_subdenom": { + "description": "The subdenom that will be used for the native vault token, e.g. the denom of the vault token will be: \"factory/{vault_contract}/{vault_token_subdenom}\".", + "type": "string" + } + }, + "additionalProperties": false, + "definitions": { + "Decimal": { + "description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)", + "type": "string" + }, + "PerformanceFeeConfig": { + "type": "object", + "required": [ + "fee_rate", + "withdrawal_interval" + ], + "properties": { + "fee_rate": { + "description": "The percentage of the performance fee that will be charged on the profits", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "withdrawal_interval": { + "description": "The interval in seconds at which the performance fee can be withdrawn by the manager", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + } + }, + "execute": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "ExecuteMsg", + "description": "The default ExecuteMsg variants that all vaults must implement. This enum can be extended with additional variants by defining an extension enum and then passing it as the generic argument `T` to this enum.", + "oneOf": [ + { + "description": "Called to deposit into the vault. Native assets are passed in the funds parameter.", + "type": "object", + "required": [ + "deposit" + ], + "properties": { + "deposit": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "The amount of base tokens to deposit.", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + }, + "recipient": { + "description": "The optional recipient of the vault token. If not set, the caller address will be used instead.", + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Called to redeem vault tokens and receive assets back from the vault. The native vault token must be passed in the funds parameter, unless the lockup extension is called, in which case the vault token has already been passed to ExecuteMsg::Unlock.", + "type": "object", + "required": [ + "redeem" + ], + "properties": { + "redeem": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "The amount of vault tokens sent to the contract. In the case that the vault token is a Cosmos native denom, we of course have this information in info.funds, but if the vault implements the Cw4626 API, then we need this argument. We figured it's better to have one API for both types of vaults, so we require this argument.", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + }, + "recipient": { + "description": "An optional field containing which address should receive the withdrawn base tokens. If not set, the caller address will be used instead.", + "type": [ + "string", + "null" + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Called to execute functionality of any enabled extensions.", + "type": "object", + "required": [ + "vault_extension" + ], + "properties": { + "vault_extension": { + "$ref": "#/definitions/ExtensionExecuteMsg" + } + }, + "additionalProperties": false + } + ], + "definitions": { + "Decimal": { + "description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)", + "type": "string" + }, + "ExtensionExecuteMsg": { + "oneOf": [ + { + "description": "Bind Credit Manager account id to the vault", + "type": "object", + "required": [ + "bind_credit_manager_account" + ], + "properties": { + "bind_credit_manager_account": { + "type": "object", + "required": [ + "account_id" + ], + "properties": { + "account_id": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Unlock liquidity from the vault. This will inform Fund Manager about requested funds. The unlocked tokens will have to wait a cooldown period before they can be withdrawn.", + "type": "object", + "required": [ + "unlock" + ], + "properties": { + "unlock": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "The amount of vault tokens to unlock", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Withdraw performance fee from the vault. This can only be done by the Fund Manager once a certain period (definied by `performance_fee_interval` parameter).", + "type": "object", + "required": [ + "withdraw_performance_fee" + ], + "properties": { + "withdraw_performance_fee": { + "type": "object", + "properties": { + "new_performance_fee_config": { + "description": "New performance fee config to set. It will be used for future calculations.", + "anyOf": [ + { + "$ref": "#/definitions/PerformanceFeeConfig" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + } + ] + }, + "PerformanceFeeConfig": { + "type": "object", + "required": [ + "fee_rate", + "withdrawal_interval" + ], + "properties": { + "fee_rate": { + "description": "The percentage of the performance fee that will be charged on the profits", + "allOf": [ + { + "$ref": "#/definitions/Decimal" + } + ] + }, + "withdrawal_interval": { + "description": "The interval in seconds at which the performance fee can be withdrawn by the manager", + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + }, + "additionalProperties": false + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + } + } + }, + "query": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "QueryMsg", + "description": "The default QueryMsg variants that all vaults must implement. This enum can be extended with additional variants by defining an extension enum and then passing it as the generic argument `T` to this enum.", + "oneOf": [ + { + "description": "Returns `VaultStandardInfoResponse` with information on the version of the vault standard used as well as any enabled extensions.", + "type": "object", + "required": [ + "vault_standard_info" + ], + "properties": { + "vault_standard_info": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Returns `VaultInfoResponse` representing vault requirements, lockup, & vault token denom.", + "type": "object", + "required": [ + "info" + ], + "properties": { + "info": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Returns `Uint128` amount of vault tokens that will be returned for the passed in `amount` of base tokens.\n\nAllows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given current on-chain conditions.\n\nMust return as close to and no more than the exact amount of vault tokens that would be minted in a deposit call in the same transaction. I.e. Deposit should return the same or more vault tokens as PreviewDeposit if called in the same transaction.", + "type": "object", + "required": [ + "preview_deposit" + ], + "properties": { + "preview_deposit": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "The amount of base tokens to preview depositing.", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Returns `Uint128` amount of base tokens that would be withdrawn in exchange for redeeming `amount` of vault tokens.\n\nAllows an on-chain or off-chain user to simulate the effects of their redeem at the current block, given current on-chain conditions.\n\nMust return as close to and no more than the exact amount of base tokens that would be withdrawn in a redeem call in the same transaction.", + "type": "object", + "required": [ + "preview_redeem" + ], + "properties": { + "preview_redeem": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "The amount of vault tokens to preview redeeming.", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Returns the amount of assets managed by the vault denominated in base tokens. Useful for display purposes, and does not have to confer the exact amount of base tokens.", + "type": "object", + "required": [ + "total_assets" + ], + "properties": { + "total_assets": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Returns `Uint128` total amount of vault tokens in circulation.", + "type": "object", + "required": [ + "total_vault_token_supply" + ], + "properties": { + "total_vault_token_supply": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "The amount of vault tokens that the vault would exchange for the amount of assets provided, in an ideal scenario where all the conditions are met.\n\nUseful for display purposes and does not have to confer the exact amount of vault tokens returned by the vault if the passed in assets were deposited. This calculation should not reflect the \"per-user\" price-per-share, and instead should reflect the \"average-user’s\" price-per-share, meaning what the average user should expect to see when exchanging to and from.", + "type": "object", + "required": [ + "convert_to_shares" + ], + "properties": { + "convert_to_shares": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "The amount of base tokens to convert to vault tokens.", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Returns the amount of base tokens that the Vault would exchange for the `amount` of vault tokens provided, in an ideal scenario where all the conditions are met.\n\nUseful for display purposes and does not have to confer the exact amount of assets returned by the vault if the passed in vault tokens were redeemed. This calculation should not reflect the \"per-user\" price-per-share, and instead should reflect the \"average-user’s\" price-per-share, meaning what the average user should expect to see when exchanging to and from.", + "type": "object", + "required": [ + "convert_to_assets" + ], + "properties": { + "convert_to_assets": { + "type": "object", + "required": [ + "amount" + ], + "properties": { + "amount": { + "description": "The amount of vault tokens to convert to base tokens.", + "allOf": [ + { + "$ref": "#/definitions/Uint128" + } + ] + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Handle queries of any enabled extensions.", + "type": "object", + "required": [ + "vault_extension" + ], + "properties": { + "vault_extension": { + "$ref": "#/definitions/ExtensionQueryMsg" + } + }, + "additionalProperties": false + } + ], + "definitions": { + "ExtensionQueryMsg": { + "oneOf": [ + { + "type": "object", + "required": [ + "vault_info" + ], + "properties": { + "vault_info": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "user_unlocks" + ], + "properties": { + "user_unlocks": { + "type": "object", + "required": [ + "user_address" + ], + "properties": { + "user_address": { + "description": "The address of the user to query", + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "all_unlocks" + ], + "properties": { + "all_unlocks": { + "type": "object", + "properties": { + "limit": { + "type": [ + "integer", + "null" + ], + "format": "uint32", + "minimum": 0.0 + }, + "start_after": { + "type": [ + "array", + "null" + ], + "items": [ + { + "type": "string" + }, + { + "type": "integer", + "format": "uint64", + "minimum": 0.0 + } + ], + "maxItems": 2, + "minItems": 2 + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "type": "object", + "required": [ + "performance_fee_state" + ], + "properties": { + "performance_fee_state": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false + } + ] + }, + "Uint128": { + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + } + } + }, + "migrate": null, + "sudo": null, + "responses": { + "convert_to_assets": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, + "convert_to_shares": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, + "info": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "VaultInfoResponse", + "description": "Returned by QueryMsg::Info and contains information about this vault", + "type": "object", + "required": [ + "base_token", + "vault_token" + ], + "properties": { + "base_token": { + "description": "The token that is accepted for deposits, withdrawals and used for accounting in the vault. The denom if it is a native token and the contract address if it is a cw20 token.", + "type": "string" + }, + "vault_token": { + "description": "Vault token. The denom if it is a native token and the contract address if it is a cw20 token.", + "type": "string" + } + }, + "additionalProperties": false + }, + "preview_deposit": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, + "preview_redeem": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, + "total_assets": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, + "total_vault_token_supply": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Uint128", + "description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```", + "type": "string" + }, + "vault_extension": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "Empty", + "description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)", + "type": "object" + }, + "vault_standard_info": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "VaultStandardInfoResponse", + "description": "Struct returned from QueryMsg::VaultStandardInfo with information about the used version of the vault standard and any extensions used.\n\nThis struct should be stored as an Item under the `vault_standard_info` key, so that other contracts can do a RawQuery and read it directly from storage instead of needing to do a costly SmartQuery.", + "type": "object", + "required": [ + "extensions", + "version" + ], + "properties": { + "extensions": { + "description": "A list of vault standard extensions used by the vault. E.g. [\"lockup\", \"keeper\"]", + "type": "array", + "items": { + "type": "string" + } + }, + "version": { + "description": "The version of the vault standard used. A number, e.g. 1, 2, etc.", + "type": "integer", + "format": "uint16", + "minimum": 0.0 + } + }, + "additionalProperties": false + } + } +} diff --git a/scripts/codegen-tsconfig.json b/scripts/codegen-tsconfig.json index 2f467db9..f27757e2 100644 --- a/scripts/codegen-tsconfig.json +++ b/scripts/codegen-tsconfig.json @@ -1,5 +1,5 @@ { "extends": "./tsconfig.json", "include": ["codegen"], - "exclude": ["deploy", "types", "utils", "build", "health/example-react"] + "exclude": ["deploy", "types", "utils", "build"] } diff --git a/scripts/deploy/addresses/pion-1-deployer-owner.json b/scripts/deploy/addresses/pion-1-deployer-owner.json index aa66c6ee..590d1d69 100644 --- a/scripts/deploy/addresses/pion-1-deployer-owner.json +++ b/scripts/deploy/addresses/pion-1-deployer-owner.json @@ -1,8 +1,13 @@ { - "address-provider": "neutron187fjlesys2c0z7xzhu43we4rx7tc4twnr5m6r2u7u5hpm03wvjqs0gk2lp", - "red-bank": "neutron15dn9w9vcdkpp2kfjuz4suqh2w8ajyqsgujlykm9x58hsjss5ff7qpmhlln", - "incentives": "neutron187hw8pqfhmxt4tk9star7tkjhu438k566jtgjskz4889pndp2vysh73ezh", - "oracle": "neutron1g4samkydfdyjec424ccucvjcuuls0ql8mfp2glf739mg0uqr74yqhdx9kn", - "rewards-collector": "neutron1re4v85k6kr8r7f3j4s4vrk3dvlyefc3xeg7jetv2jlpskahs5xrs8d6vw5", - "swapper": "neutron16xdh5w4dynfjrvnfuhv9h2znks94fyt4gp448jhtmjs3xd6smjvqumh9x2" + "addressProvider": "neutron1fq8rzmgn05etecpu2njdm9asqrgpgzw2cxw5lewq47n6y87ggd8qv7f2nm", + "redBank": "neutron1s2vxnxqqjtjekenqmf46467anmz4ee40xz04a0qy743cq040nu6shzfhc2", + "incentives": "neutron1sjhccp8mghedeepeshcmap677l4ytre589ucyep74jnyf4m6hyrqvy5vzd", + "oracle": "neutron1qmkkhu2v6yzhqd2g6jlkegachpmvyzrg2355h0djw2eac5cscp7q83ce3u", + "rewardsCollector": "neutron1rlmuc0xepd0l63jgnnkusskm3xp35mdq9ke3j8w60afj9lnrrztqngdw3t", + "swapper": "neutron1zqhs7txm744466zd4vf9gznp8g2m4yyd28qcymeqpn65mmrj2r4sxlednd", + "params": "neutron137u6mnz7jc7ums5a3efspz3mejas2wut5auuw8ln2pj4t9awhv6sav9ftn", + "zapper": "neutron1thppkzst9x8xj9jwqshpl00q00f0tz7ehsfdh80qsk6dmj4nwrkqe2v9g6", + "health": "neutron16dpjss982zglprngjgjzpkwt6q63326v69frsgrst9jv5d4wnr4slkukjz", + "creditManager": "neutron1psu5z8c4359mz0dpgxzqgxpzfhjgjranktglfv42v5jkt8p56e9syc9nt5", + "accountNft": "neutron1nt0e3p5u7rgukawvha0yfcwl9ytzp3qxjqs4shfkd74r77sw75rq5m0de4" } diff --git a/scripts/deploy/base/deployer.ts b/scripts/deploy/base/deployer.ts index 4442cb38..93ffcc96 100644 --- a/scripts/deploy/base/deployer.ts +++ b/scripts/deploy/base/deployer.ts @@ -1,6 +1,7 @@ import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate' import { AssetConfig, + AstroportConfig, DeploymentConfig, OracleConfig, SwapperExecuteMsg, @@ -20,7 +21,10 @@ import { ExecuteMsg as CreditManagerExecute, InstantiateMsg as RoverInstantiateMsg, } from '../../types/generated/mars-credit-manager/MarsCreditManager.types' -import { InstantiateMsg as AstroportSwapperInstantiateMsg } from '../../types/generated/mars-swapper-astroport/MarsSwapperAstroport.types' +import { + InstantiateMsg as AstroportSwapperInstantiateMsg, + AstroportConfig as SwapperAstroportConfig, +} from '../../types/generated/mars-swapper-astroport/MarsSwapperAstroport.types' import { InstantiateMsg as OsmosisSwapperInstantiateMsg } from '../../types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types' import { InstantiateMsg as ParamsInstantiateMsg } from '../../types/generated/mars-params/MarsParams.types' import { ExecuteMsg as ParamsExecuteMsg } from '../../types/generated/mars-params/MarsParams.types' @@ -282,33 +286,6 @@ export class Deployer { ) } - async grantCreditLines() { - if (this.storage.actions.grantedCreditLines) { - printGray('Credit lines already granted') - return - } - - const wallet = await getWallet(this.config.deployerMnemonic, this.config.chain.prefix) - const client = await setupClient(this.config, wallet) - const addr = await getAddress(wallet) - - for (const creditLineCoin of this.config.creditLineCoins) { - const msg = { - update_uncollateralized_loan_limit: { - user: this.storage.addresses.creditManager, - denom: creditLineCoin.denom, - new_limit: creditLineCoin.creditLine, - }, - } - printBlue( - `Granting credit line to Rover for: ${creditLineCoin.creditLine} ${creditLineCoin.denom}`, - ) - await client.execute(addr, this.storage.addresses.redBank!, msg, 'auto') - } - - this.storage.actions.grantedCreditLines = true - } - async updateCreditManagerOwner() { if (!this.config.multisigAddr) throw new Error('No multisig addresses to transfer ownership to') @@ -398,7 +375,6 @@ export class Deployer { address_provider: this.storage.addresses['addressProvider']!, epoch_duration: this.config.incentives.epochDuration, max_whitelisted_denoms: this.config.incentives.maxWhitelistedIncentiveDenoms, - mars_denom: this.config.marsDenom, } await this.instantiate('incentives', this.storage.codeIds.incentives!, msg) } @@ -532,6 +508,43 @@ export class Deployer { this.storage.actions.vaultsSet.push(vaultConfig.vault.addr) } + async updateSwapperAstroportConfig(config: AstroportConfig) { + printBlue(`Updating swapper astroport config...`) + + const swapperConfig: SwapperAstroportConfig = { + router: config.router, + factory: config.factory, + oracle: this.storage.addresses.oracle!, + } + + await this.cwClient.execute( + this.deployerAddr, + this.storage.addresses.swapper!, + { update_config: { config: swapperConfig } }, + 'auto', + ) + + printYellow(`Swapper astroport config updated.`) + } + + async setAstroportIncentivesAddress(addr: string) { + printBlue(`Updating address provider with astroport incentives...`) + + const address: AddressResponseItem = { + address: addr, + address_type: 'astroport_incentives', + } + + await this.cwClient.execute( + this.deployerAddr, + this.storage.addresses.addressProvider!, + { set_address: address }, + 'auto', + ) + + printYellow(`Address provider updated.`) + } + async setRoutes() { printBlue('Setting Swapper Routes') for (const route of this.config.swapper.routes) { @@ -837,7 +850,7 @@ export class Deployer { }, } await this.cwClient.execute(this.deployerAddr, this.storage.addresses.incentives!, msg, 'auto') - printYellow('Owner updated to Mutlisig for Incentives') + printYellow('Owner updated to Multisig for Incentives') const incentivesConfig = (await this.cwClient.queryContractSmart( this.storage.addresses.incentives!, { @@ -860,7 +873,7 @@ export class Deployer { }, } await this.cwClient.execute(this.deployerAddr, this.storage.addresses['redBank']!, msg, 'auto') - printYellow('Owner updated to Mutlisig for Red Bank') + printYellow('Owner updated to Multisig for Red Bank') const redbankConfig = (await this.cwClient.queryContractSmart( this.storage.addresses['redBank']!, { @@ -882,7 +895,7 @@ export class Deployer { }, } await this.cwClient.execute(this.deployerAddr, this.storage.addresses.oracle!, msg, 'auto') - printYellow('Owner updated to Mutlisig for Oracle') + printYellow('Owner updated to Multisig for Oracle') const oracleConfig = (await this.cwClient.queryContractSmart(this.storage.addresses.oracle!, { config: {}, })) as { proposed_new_owner: string } @@ -906,7 +919,7 @@ export class Deployer { msg, 'auto', ) - printYellow('Owner updated to Mutlisig for Rewards Collector') + printYellow('Owner updated to Multisig for Rewards Collector') const rewardsConfig = (await this.cwClient.queryContractSmart( this.storage.addresses['rewardsCollector']!, { @@ -928,7 +941,7 @@ export class Deployer { }, } await this.cwClient.execute(this.deployerAddr, this.storage.addresses.swapper!, msg, 'auto') - printYellow('Owner updated to Mutlisig for Swapper') + printYellow('Owner updated to Multisig for Swapper') const swapperConfig = (await this.cwClient.queryContractSmart(this.storage.addresses.swapper!, { owner: {}, })) as { proposed: string } @@ -947,7 +960,7 @@ export class Deployer { }, } await this.cwClient.execute(this.deployerAddr, this.storage.addresses.params!, msg, 'auto') - printYellow('Owner updated to Mutlisig for Params') + printYellow('Owner updated to Multisig for Params') const paramsConfig = (await this.cwClient.queryContractSmart(this.storage.addresses.params!, { owner: {}, })) as { proposed: string } @@ -971,7 +984,7 @@ export class Deployer { msg, 'auto', ) - printYellow('Owner updated to Mutlisig for Rewards Collector') + printYellow('Owner updated to Multisig for Rewards Collector') const addressProviderConfig = (await this.cwClient.queryContractSmart( this.storage.addresses['addressProvider']!, { diff --git a/scripts/deploy/base/index.ts b/scripts/deploy/base/index.ts index ebc32223..e446790d 100644 --- a/scripts/deploy/base/index.ts +++ b/scripts/deploy/base/index.ts @@ -15,16 +15,16 @@ export const taskRunner = async ({ config, label }: TaskRunnerProps) => { await deployer.assertDeployerBalance() // Upload contracts - await deployer.upload('redBank', 'mars_red_bank.wasm') - await deployer.upload('addressProvider', 'mars_address_provider.wasm') - await deployer.upload('incentives', 'mars_incentives.wasm') - await deployer.upload('oracle', `mars_oracle_${config.oracle.name}.wasm`) + await deployer.upload('redBank', wasmFile('mars_red_bank')) + await deployer.upload('addressProvider', wasmFile('mars_address_provider')) + await deployer.upload('incentives', wasmFile('mars_incentives')) + await deployer.upload('oracle', wasmFile(`mars_oracle_${config.oracle.name}`)) await deployer.upload( 'rewardsCollector', - `mars_rewards_collector_${config.rewardsCollector.name}.wasm`, + wasmFile(`mars_rewards_collector_${config.rewardsCollector.name}`), ) - await deployer.upload('swapper', `mars_swapper_${config.swapper.name}.wasm`) - await deployer.upload('params', `mars_params.wasm`) + await deployer.upload('swapper', wasmFile(`mars_swapper_${config.swapper.name}`)) + await deployer.upload('params', wasmFile(`mars_params`)) await deployer.upload('accountNft', wasmFile('mars_account_nft')) await deployer.upload('mockVault', wasmFile('mars_mock_vault')) await deployer.upload('zapper', wasmFile(config.zapperContractName)) @@ -51,6 +51,11 @@ export const taskRunner = async ({ config, label }: TaskRunnerProps) => { await deployer.updateAddressProvider() + if (config.swapper.name == 'astroport') { + await deployer.updateSwapperAstroportConfig(config.astroportConfig!) + await deployer.setAstroportIncentivesAddress(config.astroportConfig!.incentives!) + } + // setup for (const asset of config.assets) { await deployer.updateAssetParams(asset) @@ -64,8 +69,6 @@ export const taskRunner = async ({ config, label }: TaskRunnerProps) => { } await deployer.setRoutes() - await deployer.grantCreditLines() - // Test basic user flows if (config.runTests && config.testActions) { await deployer.executeDeposit() diff --git a/scripts/deploy/base/test-actions-credit-manager.ts b/scripts/deploy/base/test-actions-credit-manager.ts index e27f30eb..686ae426 100644 --- a/scripts/deploy/base/test-actions-credit-manager.ts +++ b/scripts/deploy/base/test-actions-credit-manager.ts @@ -146,7 +146,7 @@ export class Rover { swap_exact_in: { coin_in: { amount: { exact: amount }, denom: this.config.chain.baseDenom }, denom_out: this.actions.secondaryDenom, - slippage: this.actions.swap.slippage, + min_receive: '0', }, }, ]) diff --git a/scripts/deploy/neutron/mainnet-config.ts b/scripts/deploy/neutron/mainnet-config.ts index 86f184e1..94aa4a91 100644 --- a/scripts/deploy/neutron/mainnet-config.ts +++ b/scripts/deploy/neutron/mainnet-config.ts @@ -75,8 +75,8 @@ export const atomOracle: OracleConfig = { price_feed_id: pythAtomID, denom_decimals: 6, max_staleness: 60, - max_confidence: '0.1', // FIXME: provide correct values - max_deviation: '0.1', // FIXME: provide correct values + max_confidence: '0.1', + max_deviation: '0.15', }, }, } @@ -89,8 +89,8 @@ export const axlUSDCOracle: OracleConfig = { price_feed_id: pythUsdcID, denom_decimals: 6, max_staleness: 60, - max_confidence: '0.1', // FIXME: provide correct values - max_deviation: '0.1', // FIXME: provide correct values + max_confidence: '0.1', + max_deviation: '0.15', }, }, } diff --git a/scripts/deploy/neutron/testnet-config.ts b/scripts/deploy/neutron/testnet-config.ts index 5c88b92e..1d9e3a05 100644 --- a/scripts/deploy/neutron/testnet-config.ts +++ b/scripts/deploy/neutron/testnet-config.ts @@ -1,29 +1,36 @@ import { DeploymentConfig, AssetConfig, OracleConfig } from '../../types/config' import { NeutronIbcConfig } from '../../types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types' -const axlUsdcDenom = 'ibc/F91EA2C0A23697A1048E08C2F787E3A58AC6F706A1CD2257A504925158CFC0F3' +const nobleUsdcDenom = 'ibc/4C19E7EC06C1AB2EC2D70C6855FEB6D48E9CE174913991DA0A517D21978E7E42' const atomDenom = 'ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9' const marsDenom = 'ibc/584A4A23736884E0C198FD1EE932455A9357A492A7B94324E4A02B5628687831' +const pclLpMarsUsdcDenom = + 'factory/neutron1sf456kx85dz0wfjs4sx0s80dyzmc360pfc0rdzactxt8xrse9ykqsdpy2y/astroport/share' +const pclLpMarsDenom = 'factory/neutron1wm8jd0hrw79pfhhm9xmuq43jwz4wtukvxfgkkw/mars' +const pclLpUsdcDenom = 'factory/neutron1wm8jd0hrw79pfhhm9xmuq43jwz4wtukvxfgkkw/usdc' +const pclLpMarsUsdcPairAddr = 'neutron1sf456kx85dz0wfjs4sx0s80dyzmc360pfc0rdzactxt8xrse9ykqsdpy2y' + const protocolAdminAddr = 'neutron1ke0vqqzyymlp5esr8gjwuzh94ysnpvj8er5hm7' const marsNeutronChannelId = 'channel-97' const chainId = 'pion-1' -const rpcEndpoint = 'https://testnet-neutron-rpc.marsprotocol.io:443' +const rpcEndpoint = 'https://rpc-palvus.pion-1.ntrn.tech' // Astroport configuration const astroportFactory = 'neutron1jj0scx400pswhpjes589aujlqagxgcztw04srynmhf0f6zplzn2qqmhwj7' const astroportRouter = 'neutron12jm24l9lr9cupufqjuxpdjnnweana4h66tsx5cl800mke26td26sq7m05p' -const astroportNtrnAtomPair = 'neutron1sm23jnz4lqd88etklvwlm66a0x6mhflaqlv65wwr7nwwxa6258ks6nshpq' +const astroportIncentives = 'neutron1slxs8heecwyw0n6zmj7unj3nenrfhk2zpagfz2lt87dnevmksgwsq9adkn' // note the following three addresses are all 'mars' bech32 prefix const safetyFundAddr = 'mars1s4hgh56can3e33e0zqpnjxh0t5wdf7u3pze575' const feeCollectorAddr = 'mars17xpfvakm2amg962yls6f84z3kell8c5ldy6e7x' // Pyth configuration -const pythAddr = 'neutron1f86ct5az9qpz2hqfd5uxru02px2a3tz5zkw7hugd7acqq496dcms22ehpy' +const pythAddr = 'neutron15ldst8t80982akgr8w8ekcytejzkmfpgdkeq4xgtge48qs7435jqp87u3t' const pythAtomID = 'b00b60f88b03a6a625a8d1c048c3f66653edf217439983d037e7222c4e612819' const pythUsdcID = 'eaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a' +const pythNtrnID = 'a8e6517966a52cb1df864b2764f3629fde3f21d2b640b5c572fcd654cbccd65e' // IBC config for rewards-collector. See https://rest-palvus.pion-1.ntrn.tech/neutron-org/neutron/feerefunder/params export const neutronIbcConfig: NeutronIbcConfig = { @@ -46,10 +53,13 @@ export const neutronIbcConfig: NeutronIbcConfig = { export const ntrnOracle: OracleConfig = { denom: 'untrn', price_source: { - astroport_twap: { - window_size: 1800, // 30 minutes - tolerance: 120, // 2 minutes - pair_address: astroportNtrnAtomPair, + pyth: { + contract_addr: pythAddr, + price_feed_id: pythNtrnID, + denom_decimals: 6, + max_staleness: 300, // 5 minutes + max_confidence: '0.1', + max_deviation: '0.15', }, }, } @@ -63,13 +73,13 @@ export const atomOracle: OracleConfig = { denom_decimals: 6, max_staleness: 300, // 5 minutes max_confidence: '0.1', - max_deviation: '0.1', + max_deviation: '0.15', }, }, } -export const axlUSDCOracle: OracleConfig = { - denom: axlUsdcDenom, +export const nobleUSDCOracle: OracleConfig = { + denom: nobleUsdcDenom, price_source: { pyth: { contract_addr: pythAddr, @@ -77,7 +87,7 @@ export const axlUSDCOracle: OracleConfig = { denom_decimals: 6, max_staleness: 300, // 5 minutes max_confidence: '0.1', - max_deviation: '0.1', + max_deviation: '0.15', }, }, } @@ -91,10 +101,37 @@ export const usdOracle: OracleConfig = { }, } +export const pclLpMarsUsdcOracle: OracleConfig = { + denom: pclLpMarsUsdcDenom, + price_source: { + pcl_liquidity_token: { + pair_address: pclLpMarsUsdcPairAddr, + }, + }, +} + +export const pclLpMarsOracle: OracleConfig = { + denom: pclLpMarsDenom, + price_source: { + fixed: { + price: '0.84', + }, + }, +} + +export const pclLpUsdcOracle: OracleConfig = { + denom: pclLpUsdcDenom, + price_source: { + fixed: { + price: '1.05', + }, + }, +} + // Router configurations export const atomUsdcRoute = { denom_in: atomDenom, - denom_out: axlUsdcDenom, + denom_out: nobleUsdcDenom, route: { factory: astroportFactory, operations: [ @@ -102,7 +139,7 @@ export const atomUsdcRoute = { astro_swap: { ask_asset_info: { native_token: { - denom: axlUsdcDenom, + denom: nobleUsdcDenom, }, }, offer_asset_info: { @@ -120,7 +157,7 @@ export const atomUsdcRoute = { export const ntrnUsdcRoute = { denom_in: 'untrn', - denom_out: axlUsdcDenom, + denom_out: nobleUsdcDenom, route: { factory: astroportFactory, operations: [ @@ -128,7 +165,7 @@ export const ntrnUsdcRoute = { astro_swap: { ask_asset_info: { native_token: { - denom: axlUsdcDenom, + denom: nobleUsdcDenom, }, }, offer_asset_info: { @@ -197,7 +234,7 @@ export const ntrnMarsRoute = { } export const usdcMarsRoute = { - denom_in: axlUsdcDenom, + denom_in: nobleUsdcDenom, denom_out: marsDenom, route: { factory: astroportFactory, @@ -211,7 +248,7 @@ export const usdcMarsRoute = { }, offer_asset_info: { native_token: { - denom: axlUsdcDenom, + denom: nobleUsdcDenom, }, }, }, @@ -225,19 +262,18 @@ export const usdcMarsRoute = { // Asset configurations export const ntrnAsset: AssetConfig = { denom: 'untrn', - max_loan_to_value: '0.35', - liquidation_threshold: '0.40', + max_loan_to_value: '0.54', + liquidation_threshold: '0.55', liquidation_bonus: { - max_lb: '0.05', - min_lb: '0', - slope: '2', + max_lb: '0.2', + min_lb: '0.05', + slope: '1', starting_lb: '0', }, protocol_liquidation_fee: '0.5', - // liquidation_bonus: '0.15', symbol: 'NTRN', credit_manager: { - whitelisted: false, + whitelisted: true, }, red_bank: { borrow_enabled: true, @@ -255,19 +291,18 @@ export const ntrnAsset: AssetConfig = { export const atomAsset: AssetConfig = { denom: atomDenom, - max_loan_to_value: '0.68', - liquidation_threshold: '0.7', + max_loan_to_value: '0.74', + liquidation_threshold: '0.75', liquidation_bonus: { - max_lb: '0.05', - min_lb: '0', - slope: '2', + max_lb: '0.2', + min_lb: '0.05', + slope: '1', starting_lb: '0', }, protocol_liquidation_fee: '0.5', - // liquidation_bonus: '0.1', symbol: 'ATOM', credit_manager: { - whitelisted: false, + whitelisted: true, }, red_bank: { borrow_enabled: true, @@ -276,28 +311,114 @@ export const atomAsset: AssetConfig = { deposit_cap: '150000000000', reserve_factor: '0.1', interest_rate_model: { - optimal_utilization_rate: '0.7', + optimal_utilization_rate: '0.8', + base: '0', + slope_1: '0.14', + slope_2: '3', + }, +} + +export const nobleUSDCAsset: AssetConfig = { + denom: nobleUsdcDenom, + max_loan_to_value: '0.795', + liquidation_threshold: '0.8', + liquidation_bonus: { + max_lb: '0.2', + min_lb: '0.05', + slope: '1', + starting_lb: '0', + }, + protocol_liquidation_fee: '0.5', + symbol: 'nobleUSDC', + credit_manager: { + whitelisted: true, + }, + red_bank: { + borrow_enabled: true, + deposit_enabled: true, + }, + deposit_cap: '500000000000', + reserve_factor: '0.1', + interest_rate_model: { + optimal_utilization_rate: '0.8', base: '0', slope_1: '0.2', + slope_2: '2', + }, +} + +export const pclLpMarsUsdcAsset: AssetConfig = { + denom: pclLpMarsUsdcDenom, + max_loan_to_value: '0.35', + liquidation_threshold: '0.40', + liquidation_bonus: { + max_lb: '0.2', + min_lb: '0.05', + slope: '1', + starting_lb: '0', + }, + protocol_liquidation_fee: '0.5', + symbol: 'PCL_LP_MARS_USDC', + credit_manager: { + whitelisted: true, + }, + red_bank: { + borrow_enabled: false, + deposit_enabled: true, + }, + deposit_cap: '1000000000000000000', + reserve_factor: '0.1', + interest_rate_model: { + optimal_utilization_rate: '0.6', + base: '0', + slope_1: '0.15', slope_2: '3', }, } -export const axlUSDCAsset: AssetConfig = { - denom: axlUsdcDenom, +export const pclLpMarsAsset: AssetConfig = { + denom: pclLpMarsDenom, max_loan_to_value: '0.74', liquidation_threshold: '0.75', liquidation_bonus: { - max_lb: '0.05', - min_lb: '0', - slope: '2', + max_lb: '0.2', + min_lb: '0.05', + slope: '1', starting_lb: '0', }, protocol_liquidation_fee: '0.5', - // liquidation_bonus: '0.1', - symbol: 'axlUSDC', + symbol: 'PCL_LP_MARS', credit_manager: { - whitelisted: false, + whitelisted: true, + }, + red_bank: { + borrow_enabled: true, + deposit_enabled: true, + }, + deposit_cap: '500000000000', + reserve_factor: '0.1', + interest_rate_model: { + optimal_utilization_rate: '0.8', + base: '0', + slope_1: '0.125', + slope_2: '2', + }, +} + +export const pclLpUsdcAsset: AssetConfig = { + denom: pclLpUsdcDenom, + max_loan_to_value: '0.74', + liquidation_threshold: '0.75', + liquidation_bonus: { + max_lb: '0.2', + min_lb: '0.05', + slope: '1', + starting_lb: '0', + }, + protocol_liquidation_fee: '0.5', + symbol: 'PCL_LP_USDC', + credit_manager: { + whitelisted: true, }, red_bank: { borrow_enabled: true, @@ -323,7 +444,7 @@ export const neutronTestnetConfig: DeploymentConfig = { feeCollectorAddr: feeCollectorAddr, chain: { baseDenom: 'untrn', - defaultGasPrice: 0.01, + defaultGasPrice: 0.02, id: chainId, prefix: 'neutron', rpcEndpoint: rpcEndpoint, @@ -341,7 +462,7 @@ export const neutronTestnetConfig: DeploymentConfig = { channelId: marsNeutronChannelId, safetyFundFeeShare: '0.5', feeCollectorDenom: marsDenom, - safetyFundDenom: axlUsdcDenom, + safetyFundDenom: nobleUsdcDenom, slippageTolerance: '0.01', neutronIbcConfig: neutronIbcConfig, }, @@ -358,9 +479,29 @@ export const neutronTestnetConfig: DeploymentConfig = { maxValueForBurn: '10000', maxUnlockingPositions: '1', maxSlippage: '0.2', - zapperContractName: 'mars_zapper_osmosis', + zapperContractName: 'mars_zapper_astroport', runTests: false, - assets: [ntrnAsset, atomAsset, axlUSDCAsset], + assets: [ + ntrnAsset, + atomAsset, + nobleUSDCAsset, + pclLpMarsUsdcAsset, + pclLpMarsAsset, + pclLpUsdcAsset, + ], vaults: [], - oracleConfigs: [usdOracle, axlUSDCOracle, atomOracle, ntrnOracle], + oracleConfigs: [ + usdOracle, + nobleUSDCOracle, + atomOracle, + ntrnOracle, + pclLpMarsOracle, + pclLpUsdcOracle, + pclLpMarsUsdcOracle, + ], + astroportConfig: { + factory: astroportFactory, + router: astroportRouter, + incentives: astroportIncentives, + }, } diff --git a/scripts/health/example-react/dist/assets/index-0d6505f2.js b/scripts/health/example-react/dist/assets/index-0d6505f2.js deleted file mode 100644 index e14e51fc..00000000 --- a/scripts/health/example-react/dist/assets/index-0d6505f2.js +++ /dev/null @@ -1,146506 +0,0 @@ -;(function () { - const o = document.createElement('link').relList - if (o && o.supports && o.supports('modulepreload')) return - for (const $ of document.querySelectorAll('link[rel="modulepreload"]')) b($) - new MutationObserver(($) => { - for (const en of $) - if (en.type === 'childList') - for (const nn of en.addedNodes) nn.tagName === 'LINK' && nn.rel === 'modulepreload' && b(nn) - }).observe(document, { childList: !0, subtree: !0 }) - function _($) { - const en = {} - return ( - $.integrity && (en.integrity = $.integrity), - $.referrerpolicy && (en.referrerPolicy = $.referrerpolicy), - $.crossorigin === 'use-credentials' - ? (en.credentials = 'include') - : $.crossorigin === 'anonymous' - ? (en.credentials = 'omit') - : (en.credentials = 'same-origin'), - en - ) - } - function b($) { - if ($.ep) return - $.ep = !0 - const en = _($) - fetch($.href, en) - } -})() -var commonjsGlobal = - typeof globalThis < 'u' - ? globalThis - : typeof window < 'u' - ? window - : typeof global < 'u' - ? global - : typeof self < 'u' - ? self - : {} -function getDefaultExportFromCjs(e) { - return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e -} -function getAugmentedNamespace(e) { - if (e.__esModule) return e - var o = e.default - if (typeof o == 'function') { - var _ = function b() { - if (this instanceof b) { - var $ = [null] - $.push.apply($, arguments) - var en = Function.bind.apply(o, $) - return new en() - } - return o.apply(this, arguments) - } - _.prototype = o.prototype - } else _ = {} - return ( - Object.defineProperty(_, '__esModule', { value: !0 }), - Object.keys(e).forEach(function (b) { - var $ = Object.getOwnPropertyDescriptor(e, b) - Object.defineProperty( - _, - b, - $.get - ? $ - : { - enumerable: !0, - get: function () { - return e[b] - }, - }, - ) - }), - _ - ) -} -var jsxRuntimeExports = {}, - jsxRuntime = { - get exports() { - return jsxRuntimeExports - }, - set exports(e) { - jsxRuntimeExports = e - }, - }, - reactJsxRuntime_production_min = {}, - reactExports = {}, - react = { - get exports() { - return reactExports - }, - set exports(e) { - reactExports = e - }, - }, - react_production_min = {} -/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var l$1 = Symbol.for('react.element'), - n$1 = Symbol.for('react.portal'), - p$2 = Symbol.for('react.fragment'), - q$1 = Symbol.for('react.strict_mode'), - r$2 = Symbol.for('react.profiler'), - t = Symbol.for('react.provider'), - u = Symbol.for('react.context'), - v$1 = Symbol.for('react.forward_ref'), - w = Symbol.for('react.suspense'), - x$1 = Symbol.for('react.memo'), - y = Symbol.for('react.lazy'), - z$2 = Symbol.iterator -function A$1(e) { - return e === null || typeof e != 'object' - ? null - : ((e = (z$2 && e[z$2]) || e['@@iterator']), typeof e == 'function' ? e : null) -} -var B$1 = { - isMounted: function () { - return !1 - }, - enqueueForceUpdate: function () {}, - enqueueReplaceState: function () {}, - enqueueSetState: function () {}, - }, - C$1 = Object.assign, - D$1 = {} -function E$1(e, o, _) { - ;(this.props = e), (this.context = o), (this.refs = D$1), (this.updater = _ || B$1) -} -E$1.prototype.isReactComponent = {} -E$1.prototype.setState = function (e, o) { - if (typeof e != 'object' && typeof e != 'function' && e != null) - throw Error( - 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.', - ) - this.updater.enqueueSetState(this, e, o, 'setState') -} -E$1.prototype.forceUpdate = function (e) { - this.updater.enqueueForceUpdate(this, e, 'forceUpdate') -} -function F() {} -F.prototype = E$1.prototype -function G$1(e, o, _) { - ;(this.props = e), (this.context = o), (this.refs = D$1), (this.updater = _ || B$1) -} -var H$1 = (G$1.prototype = new F()) -H$1.constructor = G$1 -C$1(H$1, E$1.prototype) -H$1.isPureReactComponent = !0 -var I$1 = Array.isArray, - J = Object.prototype.hasOwnProperty, - K$2 = { current: null }, - L$1 = { key: !0, ref: !0, __self: !0, __source: !0 } -function M$1(e, o, _) { - var b, - $ = {}, - en = null, - nn = null - if (o != null) - for (b in (o.ref !== void 0 && (nn = o.ref), o.key !== void 0 && (en = '' + o.key), o)) - J.call(o, b) && !L$1.hasOwnProperty(b) && ($[b] = o[b]) - var sn = arguments.length - 2 - if (sn === 1) $.children = _ - else if (1 < sn) { - for (var gn = Array(sn), In = 0; In < sn; In++) gn[In] = arguments[In + 2] - $.children = gn - } - if (e && e.defaultProps) for (b in ((sn = e.defaultProps), sn)) $[b] === void 0 && ($[b] = sn[b]) - return { $$typeof: l$1, type: e, key: en, ref: nn, props: $, _owner: K$2.current } -} -function N$1(e, o) { - return { $$typeof: l$1, type: e.type, key: o, ref: e.ref, props: e.props, _owner: e._owner } -} -function O$1(e) { - return typeof e == 'object' && e !== null && e.$$typeof === l$1 -} -function escape$1(e) { - var o = { '=': '=0', ':': '=2' } - return ( - '$' + - e.replace(/[=:]/g, function (_) { - return o[_] - }) - ) -} -var P$1 = /\/+/g -function Q$1(e, o) { - return typeof e == 'object' && e !== null && e.key != null ? escape$1('' + e.key) : o.toString(36) -} -function R$1(e, o, _, b, $) { - var en = typeof e - ;(en === 'undefined' || en === 'boolean') && (e = null) - var nn = !1 - if (e === null) nn = !0 - else - switch (en) { - case 'string': - case 'number': - nn = !0 - break - case 'object': - switch (e.$$typeof) { - case l$1: - case n$1: - nn = !0 - } - } - if (nn) - return ( - (nn = e), - ($ = $(nn)), - (e = b === '' ? '.' + Q$1(nn, 0) : b), - I$1($) - ? ((_ = ''), - e != null && (_ = e.replace(P$1, '$&/') + '/'), - R$1($, o, _, '', function (In) { - return In - })) - : $ != null && - (O$1($) && - ($ = N$1( - $, - _ + - (!$.key || (nn && nn.key === $.key) ? '' : ('' + $.key).replace(P$1, '$&/') + '/') + - e, - )), - o.push($)), - 1 - ) - if (((nn = 0), (b = b === '' ? '.' : b + ':'), I$1(e))) - for (var sn = 0; sn < e.length; sn++) { - en = e[sn] - var gn = b + Q$1(en, sn) - nn += R$1(en, o, _, gn, $) - } - else if (((gn = A$1(e)), typeof gn == 'function')) - for (e = gn.call(e), sn = 0; !(en = e.next()).done; ) - (en = en.value), (gn = b + Q$1(en, sn++)), (nn += R$1(en, o, _, gn, $)) - else if (en === 'object') - throw ( - ((o = String(e)), - Error( - 'Objects are not valid as a React child (found: ' + - (o === '[object Object]' ? 'object with keys {' + Object.keys(e).join(', ') + '}' : o) + - '). If you meant to render a collection of children, use an array instead.', - )) - ) - return nn -} -function S$1(e, o, _) { - if (e == null) return e - var b = [], - $ = 0 - return ( - R$1(e, b, '', '', function (en) { - return o.call(_, en, $++) - }), - b - ) -} -function T$1(e) { - if (e._status === -1) { - var o = e._result - ;(o = o()), - o.then( - function (_) { - ;(e._status === 0 || e._status === -1) && ((e._status = 1), (e._result = _)) - }, - function (_) { - ;(e._status === 0 || e._status === -1) && ((e._status = 2), (e._result = _)) - }, - ), - e._status === -1 && ((e._status = 0), (e._result = o)) - } - if (e._status === 1) return e._result.default - throw e._result -} -var U$1 = { current: null }, - V$1 = { transition: null }, - W$1 = { ReactCurrentDispatcher: U$1, ReactCurrentBatchConfig: V$1, ReactCurrentOwner: K$2 } -react_production_min.Children = { - map: S$1, - forEach: function (e, o, _) { - S$1( - e, - function () { - o.apply(this, arguments) - }, - _, - ) - }, - count: function (e) { - var o = 0 - return ( - S$1(e, function () { - o++ - }), - o - ) - }, - toArray: function (e) { - return ( - S$1(e, function (o) { - return o - }) || [] - ) - }, - only: function (e) { - if (!O$1(e)) - throw Error('React.Children.only expected to receive a single React element child.') - return e - }, -} -react_production_min.Component = E$1 -react_production_min.Fragment = p$2 -react_production_min.Profiler = r$2 -react_production_min.PureComponent = G$1 -react_production_min.StrictMode = q$1 -react_production_min.Suspense = w -react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W$1 -react_production_min.cloneElement = function (e, o, _) { - if (e == null) - throw Error( - 'React.cloneElement(...): The argument must be a React element, but you passed ' + e + '.', - ) - var b = C$1({}, e.props), - $ = e.key, - en = e.ref, - nn = e._owner - if (o != null) { - if ( - (o.ref !== void 0 && ((en = o.ref), (nn = K$2.current)), - o.key !== void 0 && ($ = '' + o.key), - e.type && e.type.defaultProps) - ) - var sn = e.type.defaultProps - for (gn in o) - J.call(o, gn) && - !L$1.hasOwnProperty(gn) && - (b[gn] = o[gn] === void 0 && sn !== void 0 ? sn[gn] : o[gn]) - } - var gn = arguments.length - 2 - if (gn === 1) b.children = _ - else if (1 < gn) { - sn = Array(gn) - for (var In = 0; In < gn; In++) sn[In] = arguments[In + 2] - b.children = sn - } - return { $$typeof: l$1, type: e.type, key: $, ref: en, props: b, _owner: nn } -} -react_production_min.createContext = function (e) { - return ( - (e = { - $$typeof: u, - _currentValue: e, - _currentValue2: e, - _threadCount: 0, - Provider: null, - Consumer: null, - _defaultValue: null, - _globalName: null, - }), - (e.Provider = { $$typeof: t, _context: e }), - (e.Consumer = e) - ) -} -react_production_min.createElement = M$1 -react_production_min.createFactory = function (e) { - var o = M$1.bind(null, e) - return (o.type = e), o -} -react_production_min.createRef = function () { - return { current: null } -} -react_production_min.forwardRef = function (e) { - return { $$typeof: v$1, render: e } -} -react_production_min.isValidElement = O$1 -react_production_min.lazy = function (e) { - return { $$typeof: y, _payload: { _status: -1, _result: e }, _init: T$1 } -} -react_production_min.memo = function (e, o) { - return { $$typeof: x$1, type: e, compare: o === void 0 ? null : o } -} -react_production_min.startTransition = function (e) { - var o = V$1.transition - V$1.transition = {} - try { - e() - } finally { - V$1.transition = o - } -} -react_production_min.unstable_act = function () { - throw Error('act(...) is not supported in production builds of React.') -} -react_production_min.useCallback = function (e, o) { - return U$1.current.useCallback(e, o) -} -react_production_min.useContext = function (e) { - return U$1.current.useContext(e) -} -react_production_min.useDebugValue = function () {} -react_production_min.useDeferredValue = function (e) { - return U$1.current.useDeferredValue(e) -} -react_production_min.useEffect = function (e, o) { - return U$1.current.useEffect(e, o) -} -react_production_min.useId = function () { - return U$1.current.useId() -} -react_production_min.useImperativeHandle = function (e, o, _) { - return U$1.current.useImperativeHandle(e, o, _) -} -react_production_min.useInsertionEffect = function (e, o) { - return U$1.current.useInsertionEffect(e, o) -} -react_production_min.useLayoutEffect = function (e, o) { - return U$1.current.useLayoutEffect(e, o) -} -react_production_min.useMemo = function (e, o) { - return U$1.current.useMemo(e, o) -} -react_production_min.useReducer = function (e, o, _) { - return U$1.current.useReducer(e, o, _) -} -react_production_min.useRef = function (e) { - return U$1.current.useRef(e) -} -react_production_min.useState = function (e) { - return U$1.current.useState(e) -} -react_production_min.useSyncExternalStore = function (e, o, _) { - return U$1.current.useSyncExternalStore(e, o, _) -} -react_production_min.useTransition = function () { - return U$1.current.useTransition() -} -react_production_min.version = '18.2.0' -;(function (e) { - e.exports = react_production_min -})(react) -const React = getDefaultExportFromCjs(reactExports) -/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var f$2 = reactExports, - k = Symbol.for('react.element'), - l = Symbol.for('react.fragment'), - m$1 = Object.prototype.hasOwnProperty, - n = f$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, - p$1 = { key: !0, ref: !0, __self: !0, __source: !0 } -function q(e, o, _) { - var b, - $ = {}, - en = null, - nn = null - _ !== void 0 && (en = '' + _), - o.key !== void 0 && (en = '' + o.key), - o.ref !== void 0 && (nn = o.ref) - for (b in o) m$1.call(o, b) && !p$1.hasOwnProperty(b) && ($[b] = o[b]) - if (e && e.defaultProps) for (b in ((o = e.defaultProps), o)) $[b] === void 0 && ($[b] = o[b]) - return { $$typeof: k, type: e, key: en, ref: nn, props: $, _owner: n.current } -} -reactJsxRuntime_production_min.Fragment = l -reactJsxRuntime_production_min.jsx = q -reactJsxRuntime_production_min.jsxs = q -;(function (e) { - e.exports = reactJsxRuntime_production_min -})(jsxRuntime) -const jsx = jsxRuntimeExports.jsx, - jsxs = jsxRuntimeExports.jsxs -var client$1 = {}, - reactDomExports = {}, - reactDom = { - get exports() { - return reactDomExports - }, - set exports(e) { - reactDomExports = e - }, - }, - reactDom_production_min = {}, - schedulerExports = {}, - scheduler = { - get exports() { - return schedulerExports - }, - set exports(e) { - schedulerExports = e - }, - }, - scheduler_production_min = {} -/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ ;(function (e) { - function o(Ln, zn) { - var Fn = Ln.length - Ln.push(zn) - e: for (; 0 < Fn; ) { - var An = (Fn - 1) >>> 1, - Qn = Ln[An] - if (0 < $(Qn, zn)) (Ln[An] = zn), (Ln[Fn] = Qn), (Fn = An) - else break e - } - } - function _(Ln) { - return Ln.length === 0 ? null : Ln[0] - } - function b(Ln) { - if (Ln.length === 0) return null - var zn = Ln[0], - Fn = Ln.pop() - if (Fn !== zn) { - Ln[0] = Fn - e: for (var An = 0, Qn = Ln.length, Rn = Qn >>> 1; An < Rn; ) { - var Vn = 2 * (An + 1) - 1, - Wn = Ln[Vn], - ht = Vn + 1, - Wt = Ln[ht] - if (0 > $(Wn, Fn)) - ht < Qn && 0 > $(Wt, Wn) - ? ((Ln[An] = Wt), (Ln[ht] = Fn), (An = ht)) - : ((Ln[An] = Wn), (Ln[Vn] = Fn), (An = Vn)) - else if (ht < Qn && 0 > $(Wt, Fn)) (Ln[An] = Wt), (Ln[ht] = Fn), (An = ht) - else break e - } - } - return zn - } - function $(Ln, zn) { - var Fn = Ln.sortIndex - zn.sortIndex - return Fn !== 0 ? Fn : Ln.id - zn.id - } - if (typeof performance == 'object' && typeof performance.now == 'function') { - var en = performance - e.unstable_now = function () { - return en.now() - } - } else { - var nn = Date, - sn = nn.now() - e.unstable_now = function () { - return nn.now() - sn - } - } - var gn = [], - In = [], - Jn = 1, - qn = null, - Kn = 3, - an = !1, - xn = !1, - mn = !1, - Bn = typeof setTimeout == 'function' ? setTimeout : null, - kn = typeof clearTimeout == 'function' ? clearTimeout : null, - ln = typeof setImmediate < 'u' ? setImmediate : null - typeof navigator < 'u' && - navigator.scheduling !== void 0 && - navigator.scheduling.isInputPending !== void 0 && - navigator.scheduling.isInputPending.bind(navigator.scheduling) - function yn(Ln) { - for (var zn = _(In); zn !== null; ) { - if (zn.callback === null) b(In) - else if (zn.startTime <= Ln) b(In), (zn.sortIndex = zn.expirationTime), o(gn, zn) - else break - zn = _(In) - } - } - function Cn(Ln) { - if (((mn = !1), yn(Ln), !xn)) - if (_(gn) !== null) (xn = !0), fn(Tn) - else { - var zn = _(In) - zn !== null && _n(Cn, zn.startTime - Ln) - } - } - function Tn(Ln, zn) { - ;(xn = !1), mn && ((mn = !1), kn(Zn), (Zn = -1)), (an = !0) - var Fn = Kn - try { - for (yn(zn), qn = _(gn); qn !== null && (!(qn.expirationTime > zn) || (Ln && !Mn())); ) { - var An = qn.callback - if (typeof An == 'function') { - ;(qn.callback = null), (Kn = qn.priorityLevel) - var Qn = An(qn.expirationTime <= zn) - ;(zn = e.unstable_now()), - typeof Qn == 'function' ? (qn.callback = Qn) : qn === _(gn) && b(gn), - yn(zn) - } else b(gn) - qn = _(gn) - } - if (qn !== null) var Rn = !0 - else { - var Vn = _(In) - Vn !== null && _n(Cn, Vn.startTime - zn), (Rn = !1) - } - return Rn - } finally { - ;(qn = null), (Kn = Fn), (an = !1) - } - } - var Gn = !1, - Sn = null, - Zn = -1, - tn = 5, - En = -1 - function Mn() { - return !(e.unstable_now() - En < tn) - } - function Hn() { - if (Sn !== null) { - var Ln = e.unstable_now() - En = Ln - var zn = !0 - try { - zn = Sn(!0, Ln) - } finally { - zn ? un() : ((Gn = !1), (Sn = null)) - } - } else Gn = !1 - } - var un - if (typeof ln == 'function') - un = function () { - ln(Hn) - } - else if (typeof MessageChannel < 'u') { - var dn = new MessageChannel(), - Nn = dn.port2 - ;(dn.port1.onmessage = Hn), - (un = function () { - Nn.postMessage(null) - }) - } else - un = function () { - Bn(Hn, 0) - } - function fn(Ln) { - ;(Sn = Ln), Gn || ((Gn = !0), un()) - } - function _n(Ln, zn) { - Zn = Bn(function () { - Ln(e.unstable_now()) - }, zn) - } - ;(e.unstable_IdlePriority = 5), - (e.unstable_ImmediatePriority = 1), - (e.unstable_LowPriority = 4), - (e.unstable_NormalPriority = 3), - (e.unstable_Profiling = null), - (e.unstable_UserBlockingPriority = 2), - (e.unstable_cancelCallback = function (Ln) { - Ln.callback = null - }), - (e.unstable_continueExecution = function () { - xn || an || ((xn = !0), fn(Tn)) - }), - (e.unstable_forceFrameRate = function (Ln) { - 0 > Ln || 125 < Ln - ? console.error( - 'forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported', - ) - : (tn = 0 < Ln ? Math.floor(1e3 / Ln) : 5) - }), - (e.unstable_getCurrentPriorityLevel = function () { - return Kn - }), - (e.unstable_getFirstCallbackNode = function () { - return _(gn) - }), - (e.unstable_next = function (Ln) { - switch (Kn) { - case 1: - case 2: - case 3: - var zn = 3 - break - default: - zn = Kn - } - var Fn = Kn - Kn = zn - try { - return Ln() - } finally { - Kn = Fn - } - }), - (e.unstable_pauseExecution = function () {}), - (e.unstable_requestPaint = function () {}), - (e.unstable_runWithPriority = function (Ln, zn) { - switch (Ln) { - case 1: - case 2: - case 3: - case 4: - case 5: - break - default: - Ln = 3 - } - var Fn = Kn - Kn = Ln - try { - return zn() - } finally { - Kn = Fn - } - }), - (e.unstable_scheduleCallback = function (Ln, zn, Fn) { - var An = e.unstable_now() - switch ( - (typeof Fn == 'object' && Fn !== null - ? ((Fn = Fn.delay), (Fn = typeof Fn == 'number' && 0 < Fn ? An + Fn : An)) - : (Fn = An), - Ln) - ) { - case 1: - var Qn = -1 - break - case 2: - Qn = 250 - break - case 5: - Qn = 1073741823 - break - case 4: - Qn = 1e4 - break - default: - Qn = 5e3 - } - return ( - (Qn = Fn + Qn), - (Ln = { - id: Jn++, - callback: zn, - priorityLevel: Ln, - startTime: Fn, - expirationTime: Qn, - sortIndex: -1, - }), - Fn > An - ? ((Ln.sortIndex = Fn), - o(In, Ln), - _(gn) === null && - Ln === _(In) && - (mn ? (kn(Zn), (Zn = -1)) : (mn = !0), _n(Cn, Fn - An))) - : ((Ln.sortIndex = Qn), o(gn, Ln), xn || an || ((xn = !0), fn(Tn))), - Ln - ) - }), - (e.unstable_shouldYield = Mn), - (e.unstable_wrapCallback = function (Ln) { - var zn = Kn - return function () { - var Fn = Kn - Kn = zn - try { - return Ln.apply(this, arguments) - } finally { - Kn = Fn - } - } - }) -})(scheduler_production_min) -;(function (e) { - e.exports = scheduler_production_min -})(scheduler) -/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var aa = reactExports, - ca = schedulerExports -function p(e) { - for ( - var o = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, _ = 1; - _ < arguments.length; - _++ - ) - o += '&args[]=' + encodeURIComponent(arguments[_]) - return ( - 'Minified React error #' + - e + - '; visit ' + - o + - ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' - ) -} -var da = new Set(), - ea = {} -function fa(e, o) { - ha(e, o), ha(e + 'Capture', o) -} -function ha(e, o) { - for (ea[e] = o, e = 0; e < o.length; e++) da.add(o[e]) -} -var ia = !( - typeof window > 'u' || - typeof window.document > 'u' || - typeof window.document.createElement > 'u' - ), - ja = Object.prototype.hasOwnProperty, - ka = - /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, - la = {}, - ma = {} -function oa(e) { - return ja.call(ma, e) ? !0 : ja.call(la, e) ? !1 : ka.test(e) ? (ma[e] = !0) : ((la[e] = !0), !1) -} -function pa(e, o, _, b) { - if (_ !== null && _.type === 0) return !1 - switch (typeof o) { - case 'function': - case 'symbol': - return !0 - case 'boolean': - return b - ? !1 - : _ !== null - ? !_.acceptsBooleans - : ((e = e.toLowerCase().slice(0, 5)), e !== 'data-' && e !== 'aria-') - default: - return !1 - } -} -function qa(e, o, _, b) { - if (o === null || typeof o > 'u' || pa(e, o, _, b)) return !0 - if (b) return !1 - if (_ !== null) - switch (_.type) { - case 3: - return !o - case 4: - return o === !1 - case 5: - return isNaN(o) - case 6: - return isNaN(o) || 1 > o - } - return !1 -} -function v(e, o, _, b, $, en, nn) { - ;(this.acceptsBooleans = o === 2 || o === 3 || o === 4), - (this.attributeName = b), - (this.attributeNamespace = $), - (this.mustUseProperty = _), - (this.propertyName = e), - (this.type = o), - (this.sanitizeURL = en), - (this.removeEmptyString = nn) -} -var z$1 = {} -'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' - .split(' ') - .forEach(function (e) { - z$1[e] = new v(e, 0, !1, e, null, !1, !1) - }) -;[ - ['acceptCharset', 'accept-charset'], - ['className', 'class'], - ['htmlFor', 'for'], - ['httpEquiv', 'http-equiv'], -].forEach(function (e) { - var o = e[0] - z$1[o] = new v(o, 1, !1, e[1], null, !1, !1) -}) -;['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (e) { - z$1[e] = new v(e, 2, !1, e.toLowerCase(), null, !1, !1) -}) -;['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (e) { - z$1[e] = new v(e, 2, !1, e, null, !1, !1) -}) -'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' - .split(' ') - .forEach(function (e) { - z$1[e] = new v(e, 3, !1, e.toLowerCase(), null, !1, !1) - }) -;['checked', 'multiple', 'muted', 'selected'].forEach(function (e) { - z$1[e] = new v(e, 3, !0, e, null, !1, !1) -}) -;['capture', 'download'].forEach(function (e) { - z$1[e] = new v(e, 4, !1, e, null, !1, !1) -}) -;['cols', 'rows', 'size', 'span'].forEach(function (e) { - z$1[e] = new v(e, 6, !1, e, null, !1, !1) -}) -;['rowSpan', 'start'].forEach(function (e) { - z$1[e] = new v(e, 5, !1, e.toLowerCase(), null, !1, !1) -}) -var ra = /[\-:]([a-z])/g -function sa(e) { - return e[1].toUpperCase() -} -'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' - .split(' ') - .forEach(function (e) { - var o = e.replace(ra, sa) - z$1[o] = new v(o, 1, !1, e, null, !1, !1) - }) -'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type' - .split(' ') - .forEach(function (e) { - var o = e.replace(ra, sa) - z$1[o] = new v(o, 1, !1, e, 'http://www.w3.org/1999/xlink', !1, !1) - }) -;['xml:base', 'xml:lang', 'xml:space'].forEach(function (e) { - var o = e.replace(ra, sa) - z$1[o] = new v(o, 1, !1, e, 'http://www.w3.org/XML/1998/namespace', !1, !1) -}) -;['tabIndex', 'crossOrigin'].forEach(function (e) { - z$1[e] = new v(e, 1, !1, e.toLowerCase(), null, !1, !1) -}) -z$1.xlinkHref = new v('xlinkHref', 1, !1, 'xlink:href', 'http://www.w3.org/1999/xlink', !0, !1) -;['src', 'href', 'action', 'formAction'].forEach(function (e) { - z$1[e] = new v(e, 1, !1, e.toLowerCase(), null, !0, !0) -}) -function ta(e, o, _, b) { - var $ = z$1.hasOwnProperty(o) ? z$1[o] : null - ;($ !== null - ? $.type !== 0 - : b || !(2 < o.length) || (o[0] !== 'o' && o[0] !== 'O') || (o[1] !== 'n' && o[1] !== 'N')) && - (qa(o, _, $, b) && (_ = null), - b || $ === null - ? oa(o) && (_ === null ? e.removeAttribute(o) : e.setAttribute(o, '' + _)) - : $.mustUseProperty - ? (e[$.propertyName] = _ === null ? ($.type === 3 ? !1 : '') : _) - : ((o = $.attributeName), - (b = $.attributeNamespace), - _ === null - ? e.removeAttribute(o) - : (($ = $.type), - (_ = $ === 3 || ($ === 4 && _ === !0) ? '' : '' + _), - b ? e.setAttributeNS(b, o, _) : e.setAttribute(o, _)))) -} -var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, - va = Symbol.for('react.element'), - wa = Symbol.for('react.portal'), - ya = Symbol.for('react.fragment'), - za = Symbol.for('react.strict_mode'), - Aa = Symbol.for('react.profiler'), - Ba = Symbol.for('react.provider'), - Ca = Symbol.for('react.context'), - Da = Symbol.for('react.forward_ref'), - Ea = Symbol.for('react.suspense'), - Fa = Symbol.for('react.suspense_list'), - Ga = Symbol.for('react.memo'), - Ha = Symbol.for('react.lazy'), - Ia = Symbol.for('react.offscreen'), - Ja = Symbol.iterator -function Ka(e) { - return e === null || typeof e != 'object' - ? null - : ((e = (Ja && e[Ja]) || e['@@iterator']), typeof e == 'function' ? e : null) -} -var A = Object.assign, - La -function Ma(e) { - if (La === void 0) - try { - throw Error() - } catch (_) { - var o = _.stack.trim().match(/\n( *(at )?)/) - La = (o && o[1]) || '' - } - return ( - ` -` + - La + - e - ) -} -var Na = !1 -function Oa(e, o) { - if (!e || Na) return '' - Na = !0 - var _ = Error.prepareStackTrace - Error.prepareStackTrace = void 0 - try { - if (o) - if ( - ((o = function () { - throw Error() - }), - Object.defineProperty(o.prototype, 'props', { - set: function () { - throw Error() - }, - }), - typeof Reflect == 'object' && Reflect.construct) - ) { - try { - Reflect.construct(o, []) - } catch (In) { - var b = In - } - Reflect.construct(e, [], o) - } else { - try { - o.call() - } catch (In) { - b = In - } - e.call(o.prototype) - } - else { - try { - throw Error() - } catch (In) { - b = In - } - e() - } - } catch (In) { - if (In && b && typeof In.stack == 'string') { - for ( - var $ = In.stack.split(` -`), - en = b.stack.split(` -`), - nn = $.length - 1, - sn = en.length - 1; - 1 <= nn && 0 <= sn && $[nn] !== en[sn]; - - ) - sn-- - for (; 1 <= nn && 0 <= sn; nn--, sn--) - if ($[nn] !== en[sn]) { - if (nn !== 1 || sn !== 1) - do - if ((nn--, sn--, 0 > sn || $[nn] !== en[sn])) { - var gn = - ` -` + $[nn].replace(' at new ', ' at ') - return ( - e.displayName && - gn.includes('') && - (gn = gn.replace('', e.displayName)), - gn - ) - } - while (1 <= nn && 0 <= sn) - break - } - } - } finally { - ;(Na = !1), (Error.prepareStackTrace = _) - } - return (e = e ? e.displayName || e.name : '') ? Ma(e) : '' -} -function Pa(e) { - switch (e.tag) { - case 5: - return Ma(e.type) - case 16: - return Ma('Lazy') - case 13: - return Ma('Suspense') - case 19: - return Ma('SuspenseList') - case 0: - case 2: - case 15: - return (e = Oa(e.type, !1)), e - case 11: - return (e = Oa(e.type.render, !1)), e - case 1: - return (e = Oa(e.type, !0)), e - default: - return '' - } -} -function Qa(e) { - if (e == null) return null - if (typeof e == 'function') return e.displayName || e.name || null - if (typeof e == 'string') return e - switch (e) { - case ya: - return 'Fragment' - case wa: - return 'Portal' - case Aa: - return 'Profiler' - case za: - return 'StrictMode' - case Ea: - return 'Suspense' - case Fa: - return 'SuspenseList' - } - if (typeof e == 'object') - switch (e.$$typeof) { - case Ca: - return (e.displayName || 'Context') + '.Consumer' - case Ba: - return (e._context.displayName || 'Context') + '.Provider' - case Da: - var o = e.render - return ( - (e = e.displayName), - e || - ((e = o.displayName || o.name || ''), - (e = e !== '' ? 'ForwardRef(' + e + ')' : 'ForwardRef')), - e - ) - case Ga: - return (o = e.displayName || null), o !== null ? o : Qa(e.type) || 'Memo' - case Ha: - ;(o = e._payload), (e = e._init) - try { - return Qa(e(o)) - } catch {} - } - return null -} -function Ra(e) { - var o = e.type - switch (e.tag) { - case 24: - return 'Cache' - case 9: - return (o.displayName || 'Context') + '.Consumer' - case 10: - return (o._context.displayName || 'Context') + '.Provider' - case 18: - return 'DehydratedFragment' - case 11: - return ( - (e = o.render), - (e = e.displayName || e.name || ''), - o.displayName || (e !== '' ? 'ForwardRef(' + e + ')' : 'ForwardRef') - ) - case 7: - return 'Fragment' - case 5: - return o - case 4: - return 'Portal' - case 3: - return 'Root' - case 6: - return 'Text' - case 16: - return Qa(o) - case 8: - return o === za ? 'StrictMode' : 'Mode' - case 22: - return 'Offscreen' - case 12: - return 'Profiler' - case 21: - return 'Scope' - case 13: - return 'Suspense' - case 19: - return 'SuspenseList' - case 25: - return 'TracingMarker' - case 1: - case 0: - case 17: - case 2: - case 14: - case 15: - if (typeof o == 'function') return o.displayName || o.name || null - if (typeof o == 'string') return o - } - return null -} -function Sa(e) { - switch (typeof e) { - case 'boolean': - case 'number': - case 'string': - case 'undefined': - return e - case 'object': - return e - default: - return '' - } -} -function Ta(e) { - var o = e.type - return (e = e.nodeName) && e.toLowerCase() === 'input' && (o === 'checkbox' || o === 'radio') -} -function Ua(e) { - var o = Ta(e) ? 'checked' : 'value', - _ = Object.getOwnPropertyDescriptor(e.constructor.prototype, o), - b = '' + e[o] - if ( - !e.hasOwnProperty(o) && - typeof _ < 'u' && - typeof _.get == 'function' && - typeof _.set == 'function' - ) { - var $ = _.get, - en = _.set - return ( - Object.defineProperty(e, o, { - configurable: !0, - get: function () { - return $.call(this) - }, - set: function (nn) { - ;(b = '' + nn), en.call(this, nn) - }, - }), - Object.defineProperty(e, o, { enumerable: _.enumerable }), - { - getValue: function () { - return b - }, - setValue: function (nn) { - b = '' + nn - }, - stopTracking: function () { - ;(e._valueTracker = null), delete e[o] - }, - } - ) - } -} -function Va(e) { - e._valueTracker || (e._valueTracker = Ua(e)) -} -function Wa(e) { - if (!e) return !1 - var o = e._valueTracker - if (!o) return !0 - var _ = o.getValue(), - b = '' - return ( - e && (b = Ta(e) ? (e.checked ? 'true' : 'false') : e.value), - (e = b), - e !== _ ? (o.setValue(e), !0) : !1 - ) -} -function Xa(e) { - if (((e = e || (typeof document < 'u' ? document : void 0)), typeof e > 'u')) return null - try { - return e.activeElement || e.body - } catch { - return e.body - } -} -function Ya(e, o) { - var _ = o.checked - return A({}, o, { - defaultChecked: void 0, - defaultValue: void 0, - value: void 0, - checked: _ ?? e._wrapperState.initialChecked, - }) -} -function Za(e, o) { - var _ = o.defaultValue == null ? '' : o.defaultValue, - b = o.checked != null ? o.checked : o.defaultChecked - ;(_ = Sa(o.value != null ? o.value : _)), - (e._wrapperState = { - initialChecked: b, - initialValue: _, - controlled: o.type === 'checkbox' || o.type === 'radio' ? o.checked != null : o.value != null, - }) -} -function ab(e, o) { - ;(o = o.checked), o != null && ta(e, 'checked', o, !1) -} -function bb(e, o) { - ab(e, o) - var _ = Sa(o.value), - b = o.type - if (_ != null) - b === 'number' - ? ((_ === 0 && e.value === '') || e.value != _) && (e.value = '' + _) - : e.value !== '' + _ && (e.value = '' + _) - else if (b === 'submit' || b === 'reset') { - e.removeAttribute('value') - return - } - o.hasOwnProperty('value') - ? cb(e, o.type, _) - : o.hasOwnProperty('defaultValue') && cb(e, o.type, Sa(o.defaultValue)), - o.checked == null && o.defaultChecked != null && (e.defaultChecked = !!o.defaultChecked) -} -function db(e, o, _) { - if (o.hasOwnProperty('value') || o.hasOwnProperty('defaultValue')) { - var b = o.type - if (!((b !== 'submit' && b !== 'reset') || (o.value !== void 0 && o.value !== null))) return - ;(o = '' + e._wrapperState.initialValue), - _ || o === e.value || (e.value = o), - (e.defaultValue = o) - } - ;(_ = e.name), - _ !== '' && (e.name = ''), - (e.defaultChecked = !!e._wrapperState.initialChecked), - _ !== '' && (e.name = _) -} -function cb(e, o, _) { - ;(o !== 'number' || Xa(e.ownerDocument) !== e) && - (_ == null - ? (e.defaultValue = '' + e._wrapperState.initialValue) - : e.defaultValue !== '' + _ && (e.defaultValue = '' + _)) -} -var eb = Array.isArray -function fb(e, o, _, b) { - if (((e = e.options), o)) { - o = {} - for (var $ = 0; $ < _.length; $++) o['$' + _[$]] = !0 - for (_ = 0; _ < e.length; _++) - ($ = o.hasOwnProperty('$' + e[_].value)), - e[_].selected !== $ && (e[_].selected = $), - $ && b && (e[_].defaultSelected = !0) - } else { - for (_ = '' + Sa(_), o = null, $ = 0; $ < e.length; $++) { - if (e[$].value === _) { - ;(e[$].selected = !0), b && (e[$].defaultSelected = !0) - return - } - o !== null || e[$].disabled || (o = e[$]) - } - o !== null && (o.selected = !0) - } -} -function gb(e, o) { - if (o.dangerouslySetInnerHTML != null) throw Error(p(91)) - return A({}, o, { - value: void 0, - defaultValue: void 0, - children: '' + e._wrapperState.initialValue, - }) -} -function hb(e, o) { - var _ = o.value - if (_ == null) { - if (((_ = o.children), (o = o.defaultValue), _ != null)) { - if (o != null) throw Error(p(92)) - if (eb(_)) { - if (1 < _.length) throw Error(p(93)) - _ = _[0] - } - o = _ - } - o == null && (o = ''), (_ = o) - } - e._wrapperState = { initialValue: Sa(_) } -} -function ib(e, o) { - var _ = Sa(o.value), - b = Sa(o.defaultValue) - _ != null && - ((_ = '' + _), - _ !== e.value && (e.value = _), - o.defaultValue == null && e.defaultValue !== _ && (e.defaultValue = _)), - b != null && (e.defaultValue = '' + b) -} -function jb(e) { - var o = e.textContent - o === e._wrapperState.initialValue && o !== '' && o !== null && (e.value = o) -} -function kb(e) { - switch (e) { - case 'svg': - return 'http://www.w3.org/2000/svg' - case 'math': - return 'http://www.w3.org/1998/Math/MathML' - default: - return 'http://www.w3.org/1999/xhtml' - } -} -function lb(e, o) { - return e == null || e === 'http://www.w3.org/1999/xhtml' - ? kb(o) - : e === 'http://www.w3.org/2000/svg' && o === 'foreignObject' - ? 'http://www.w3.org/1999/xhtml' - : e -} -var mb, - nb = (function (e) { - return typeof MSApp < 'u' && MSApp.execUnsafeLocalFunction - ? function (o, _, b, $) { - MSApp.execUnsafeLocalFunction(function () { - return e(o, _, b, $) - }) - } - : e - })(function (e, o) { - if (e.namespaceURI !== 'http://www.w3.org/2000/svg' || 'innerHTML' in e) e.innerHTML = o - else { - for ( - mb = mb || document.createElement('div'), - mb.innerHTML = '' + o.valueOf().toString() + '', - o = mb.firstChild; - e.firstChild; - - ) - e.removeChild(e.firstChild) - for (; o.firstChild; ) e.appendChild(o.firstChild) - } - }) -function ob(e, o) { - if (o) { - var _ = e.firstChild - if (_ && _ === e.lastChild && _.nodeType === 3) { - _.nodeValue = o - return - } - } - e.textContent = o -} -var pb = { - animationIterationCount: !0, - aspectRatio: !0, - borderImageOutset: !0, - borderImageSlice: !0, - borderImageWidth: !0, - boxFlex: !0, - boxFlexGroup: !0, - boxOrdinalGroup: !0, - columnCount: !0, - columns: !0, - flex: !0, - flexGrow: !0, - flexPositive: !0, - flexShrink: !0, - flexNegative: !0, - flexOrder: !0, - gridArea: !0, - gridRow: !0, - gridRowEnd: !0, - gridRowSpan: !0, - gridRowStart: !0, - gridColumn: !0, - gridColumnEnd: !0, - gridColumnSpan: !0, - gridColumnStart: !0, - fontWeight: !0, - lineClamp: !0, - lineHeight: !0, - opacity: !0, - order: !0, - orphans: !0, - tabSize: !0, - widows: !0, - zIndex: !0, - zoom: !0, - fillOpacity: !0, - floodOpacity: !0, - stopOpacity: !0, - strokeDasharray: !0, - strokeDashoffset: !0, - strokeMiterlimit: !0, - strokeOpacity: !0, - strokeWidth: !0, - }, - qb = ['Webkit', 'ms', 'Moz', 'O'] -Object.keys(pb).forEach(function (e) { - qb.forEach(function (o) { - ;(o = o + e.charAt(0).toUpperCase() + e.substring(1)), (pb[o] = pb[e]) - }) -}) -function rb(e, o, _) { - return o == null || typeof o == 'boolean' || o === '' - ? '' - : _ || typeof o != 'number' || o === 0 || (pb.hasOwnProperty(e) && pb[e]) - ? ('' + o).trim() - : o + 'px' -} -function sb(e, o) { - e = e.style - for (var _ in o) - if (o.hasOwnProperty(_)) { - var b = _.indexOf('--') === 0, - $ = rb(_, o[_], b) - _ === 'float' && (_ = 'cssFloat'), b ? e.setProperty(_, $) : (e[_] = $) - } -} -var tb = A( - { menuitem: !0 }, - { - area: !0, - base: !0, - br: !0, - col: !0, - embed: !0, - hr: !0, - img: !0, - input: !0, - keygen: !0, - link: !0, - meta: !0, - param: !0, - source: !0, - track: !0, - wbr: !0, - }, -) -function ub(e, o) { - if (o) { - if (tb[e] && (o.children != null || o.dangerouslySetInnerHTML != null)) throw Error(p(137, e)) - if (o.dangerouslySetInnerHTML != null) { - if (o.children != null) throw Error(p(60)) - if (typeof o.dangerouslySetInnerHTML != 'object' || !('__html' in o.dangerouslySetInnerHTML)) - throw Error(p(61)) - } - if (o.style != null && typeof o.style != 'object') throw Error(p(62)) - } -} -function vb(e, o) { - if (e.indexOf('-') === -1) return typeof o.is == 'string' - switch (e) { - case 'annotation-xml': - case 'color-profile': - case 'font-face': - case 'font-face-src': - case 'font-face-uri': - case 'font-face-format': - case 'font-face-name': - case 'missing-glyph': - return !1 - default: - return !0 - } -} -var wb = null -function xb(e) { - return ( - (e = e.target || e.srcElement || window), - e.correspondingUseElement && (e = e.correspondingUseElement), - e.nodeType === 3 ? e.parentNode : e - ) -} -var yb = null, - zb = null, - Ab = null -function Bb(e) { - if ((e = Cb(e))) { - if (typeof yb != 'function') throw Error(p(280)) - var o = e.stateNode - o && ((o = Db(o)), yb(e.stateNode, e.type, o)) - } -} -function Eb(e) { - zb ? (Ab ? Ab.push(e) : (Ab = [e])) : (zb = e) -} -function Fb() { - if (zb) { - var e = zb, - o = Ab - if (((Ab = zb = null), Bb(e), o)) for (e = 0; e < o.length; e++) Bb(o[e]) - } -} -function Gb(e, o) { - return e(o) -} -function Hb() {} -var Ib = !1 -function Jb(e, o, _) { - if (Ib) return e(o, _) - Ib = !0 - try { - return Gb(e, o, _) - } finally { - ;(Ib = !1), (zb !== null || Ab !== null) && (Hb(), Fb()) - } -} -function Kb(e, o) { - var _ = e.stateNode - if (_ === null) return null - var b = Db(_) - if (b === null) return null - _ = b[o] - e: switch (o) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - case 'onMouseEnter': - ;(b = !b.disabled) || - ((e = e.type), - (b = !(e === 'button' || e === 'input' || e === 'select' || e === 'textarea'))), - (e = !b) - break e - default: - e = !1 - } - if (e) return null - if (_ && typeof _ != 'function') throw Error(p(231, o, typeof _)) - return _ -} -var Lb = !1 -if (ia) - try { - var Mb = {} - Object.defineProperty(Mb, 'passive', { - get: function () { - Lb = !0 - }, - }), - window.addEventListener('test', Mb, Mb), - window.removeEventListener('test', Mb, Mb) - } catch { - Lb = !1 - } -function Nb(e, o, _, b, $, en, nn, sn, gn) { - var In = Array.prototype.slice.call(arguments, 3) - try { - o.apply(_, In) - } catch (Jn) { - this.onError(Jn) - } -} -var Ob = !1, - Pb = null, - Qb = !1, - Rb = null, - Sb = { - onError: function (e) { - ;(Ob = !0), (Pb = e) - }, - } -function Tb(e, o, _, b, $, en, nn, sn, gn) { - ;(Ob = !1), (Pb = null), Nb.apply(Sb, arguments) -} -function Ub(e, o, _, b, $, en, nn, sn, gn) { - if ((Tb.apply(this, arguments), Ob)) { - if (Ob) { - var In = Pb - ;(Ob = !1), (Pb = null) - } else throw Error(p(198)) - Qb || ((Qb = !0), (Rb = In)) - } -} -function Vb(e) { - var o = e, - _ = e - if (e.alternate) for (; o.return; ) o = o.return - else { - e = o - do (o = e), o.flags & 4098 && (_ = o.return), (e = o.return) - while (e) - } - return o.tag === 3 ? _ : null -} -function Wb(e) { - if (e.tag === 13) { - var o = e.memoizedState - if ((o === null && ((e = e.alternate), e !== null && (o = e.memoizedState)), o !== null)) - return o.dehydrated - } - return null -} -function Xb(e) { - if (Vb(e) !== e) throw Error(p(188)) -} -function Yb(e) { - var o = e.alternate - if (!o) { - if (((o = Vb(e)), o === null)) throw Error(p(188)) - return o !== e ? null : e - } - for (var _ = e, b = o; ; ) { - var $ = _.return - if ($ === null) break - var en = $.alternate - if (en === null) { - if (((b = $.return), b !== null)) { - _ = b - continue - } - break - } - if ($.child === en.child) { - for (en = $.child; en; ) { - if (en === _) return Xb($), e - if (en === b) return Xb($), o - en = en.sibling - } - throw Error(p(188)) - } - if (_.return !== b.return) (_ = $), (b = en) - else { - for (var nn = !1, sn = $.child; sn; ) { - if (sn === _) { - ;(nn = !0), (_ = $), (b = en) - break - } - if (sn === b) { - ;(nn = !0), (b = $), (_ = en) - break - } - sn = sn.sibling - } - if (!nn) { - for (sn = en.child; sn; ) { - if (sn === _) { - ;(nn = !0), (_ = en), (b = $) - break - } - if (sn === b) { - ;(nn = !0), (b = en), (_ = $) - break - } - sn = sn.sibling - } - if (!nn) throw Error(p(189)) - } - } - if (_.alternate !== b) throw Error(p(190)) - } - if (_.tag !== 3) throw Error(p(188)) - return _.stateNode.current === _ ? e : o -} -function Zb(e) { - return (e = Yb(e)), e !== null ? $b(e) : null -} -function $b(e) { - if (e.tag === 5 || e.tag === 6) return e - for (e = e.child; e !== null; ) { - var o = $b(e) - if (o !== null) return o - e = e.sibling - } - return null -} -var ac = ca.unstable_scheduleCallback, - bc = ca.unstable_cancelCallback, - cc = ca.unstable_shouldYield, - dc = ca.unstable_requestPaint, - B = ca.unstable_now, - ec$1 = ca.unstable_getCurrentPriorityLevel, - fc = ca.unstable_ImmediatePriority, - gc = ca.unstable_UserBlockingPriority, - hc = ca.unstable_NormalPriority, - ic = ca.unstable_LowPriority, - jc = ca.unstable_IdlePriority, - kc = null, - lc = null -function mc(e) { - if (lc && typeof lc.onCommitFiberRoot == 'function') - try { - lc.onCommitFiberRoot(kc, e, void 0, (e.current.flags & 128) === 128) - } catch {} -} -var oc = Math.clz32 ? Math.clz32 : nc, - pc = Math.log, - qc = Math.LN2 -function nc(e) { - return (e >>>= 0), e === 0 ? 32 : (31 - ((pc(e) / qc) | 0)) | 0 -} -var rc = 64, - sc = 4194304 -function tc(e) { - switch (e & -e) { - case 1: - return 1 - case 2: - return 2 - case 4: - return 4 - case 8: - return 8 - case 16: - return 16 - case 32: - return 32 - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return e & 4194240 - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return e & 130023424 - case 134217728: - return 134217728 - case 268435456: - return 268435456 - case 536870912: - return 536870912 - case 1073741824: - return 1073741824 - default: - return e - } -} -function uc(e, o) { - var _ = e.pendingLanes - if (_ === 0) return 0 - var b = 0, - $ = e.suspendedLanes, - en = e.pingedLanes, - nn = _ & 268435455 - if (nn !== 0) { - var sn = nn & ~$ - sn !== 0 ? (b = tc(sn)) : ((en &= nn), en !== 0 && (b = tc(en))) - } else (nn = _ & ~$), nn !== 0 ? (b = tc(nn)) : en !== 0 && (b = tc(en)) - if (b === 0) return 0 - if ( - o !== 0 && - o !== b && - !(o & $) && - (($ = b & -b), (en = o & -o), $ >= en || ($ === 16 && (en & 4194240) !== 0)) - ) - return o - if ((b & 4 && (b |= _ & 16), (o = e.entangledLanes), o !== 0)) - for (e = e.entanglements, o &= b; 0 < o; ) - (_ = 31 - oc(o)), ($ = 1 << _), (b |= e[_]), (o &= ~$) - return b -} -function vc(e, o) { - switch (e) { - case 1: - case 2: - case 4: - return o + 250 - case 8: - case 16: - case 32: - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return o + 5e3 - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - return -1 - case 134217728: - case 268435456: - case 536870912: - case 1073741824: - return -1 - default: - return -1 - } -} -function wc(e, o) { - for ( - var _ = e.suspendedLanes, b = e.pingedLanes, $ = e.expirationTimes, en = e.pendingLanes; - 0 < en; - - ) { - var nn = 31 - oc(en), - sn = 1 << nn, - gn = $[nn] - gn === -1 ? (!(sn & _) || sn & b) && ($[nn] = vc(sn, o)) : gn <= o && (e.expiredLanes |= sn), - (en &= ~sn) - } -} -function xc(e) { - return (e = e.pendingLanes & -1073741825), e !== 0 ? e : e & 1073741824 ? 1073741824 : 0 -} -function yc() { - var e = rc - return (rc <<= 1), !(rc & 4194240) && (rc = 64), e -} -function zc(e) { - for (var o = [], _ = 0; 31 > _; _++) o.push(e) - return o -} -function Ac(e, o, _) { - ;(e.pendingLanes |= o), - o !== 536870912 && ((e.suspendedLanes = 0), (e.pingedLanes = 0)), - (e = e.eventTimes), - (o = 31 - oc(o)), - (e[o] = _) -} -function Bc(e, o) { - var _ = e.pendingLanes & ~o - ;(e.pendingLanes = o), - (e.suspendedLanes = 0), - (e.pingedLanes = 0), - (e.expiredLanes &= o), - (e.mutableReadLanes &= o), - (e.entangledLanes &= o), - (o = e.entanglements) - var b = e.eventTimes - for (e = e.expirationTimes; 0 < _; ) { - var $ = 31 - oc(_), - en = 1 << $ - ;(o[$] = 0), (b[$] = -1), (e[$] = -1), (_ &= ~en) - } -} -function Cc(e, o) { - var _ = (e.entangledLanes |= o) - for (e = e.entanglements; _; ) { - var b = 31 - oc(_), - $ = 1 << b - ;($ & o) | (e[b] & o) && (e[b] |= o), (_ &= ~$) - } -} -var C = 0 -function Dc(e) { - return (e &= -e), 1 < e ? (4 < e ? (e & 268435455 ? 16 : 536870912) : 4) : 1 -} -var Ec, - Fc, - Gc, - Hc, - Ic, - Jc = !1, - Kc = [], - Lc = null, - Mc = null, - Nc = null, - Oc = new Map(), - Pc = new Map(), - Qc = [], - Rc = - 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit'.split( - ' ', - ) -function Sc(e, o) { - switch (e) { - case 'focusin': - case 'focusout': - Lc = null - break - case 'dragenter': - case 'dragleave': - Mc = null - break - case 'mouseover': - case 'mouseout': - Nc = null - break - case 'pointerover': - case 'pointerout': - Oc.delete(o.pointerId) - break - case 'gotpointercapture': - case 'lostpointercapture': - Pc.delete(o.pointerId) - } -} -function Tc(e, o, _, b, $, en) { - return e === null || e.nativeEvent !== en - ? ((e = { - blockedOn: o, - domEventName: _, - eventSystemFlags: b, - nativeEvent: en, - targetContainers: [$], - }), - o !== null && ((o = Cb(o)), o !== null && Fc(o)), - e) - : ((e.eventSystemFlags |= b), - (o = e.targetContainers), - $ !== null && o.indexOf($) === -1 && o.push($), - e) -} -function Uc(e, o, _, b, $) { - switch (o) { - case 'focusin': - return (Lc = Tc(Lc, e, o, _, b, $)), !0 - case 'dragenter': - return (Mc = Tc(Mc, e, o, _, b, $)), !0 - case 'mouseover': - return (Nc = Tc(Nc, e, o, _, b, $)), !0 - case 'pointerover': - var en = $.pointerId - return Oc.set(en, Tc(Oc.get(en) || null, e, o, _, b, $)), !0 - case 'gotpointercapture': - return (en = $.pointerId), Pc.set(en, Tc(Pc.get(en) || null, e, o, _, b, $)), !0 - } - return !1 -} -function Vc(e) { - var o = Wc(e.target) - if (o !== null) { - var _ = Vb(o) - if (_ !== null) { - if (((o = _.tag), o === 13)) { - if (((o = Wb(_)), o !== null)) { - ;(e.blockedOn = o), - Ic(e.priority, function () { - Gc(_) - }) - return - } - } else if (o === 3 && _.stateNode.current.memoizedState.isDehydrated) { - e.blockedOn = _.tag === 3 ? _.stateNode.containerInfo : null - return - } - } - } - e.blockedOn = null -} -function Xc(e) { - if (e.blockedOn !== null) return !1 - for (var o = e.targetContainers; 0 < o.length; ) { - var _ = Yc(e.domEventName, e.eventSystemFlags, o[0], e.nativeEvent) - if (_ === null) { - _ = e.nativeEvent - var b = new _.constructor(_.type, _) - ;(wb = b), _.target.dispatchEvent(b), (wb = null) - } else return (o = Cb(_)), o !== null && Fc(o), (e.blockedOn = _), !1 - o.shift() - } - return !0 -} -function Zc(e, o, _) { - Xc(e) && _.delete(o) -} -function $c() { - ;(Jc = !1), - Lc !== null && Xc(Lc) && (Lc = null), - Mc !== null && Xc(Mc) && (Mc = null), - Nc !== null && Xc(Nc) && (Nc = null), - Oc.forEach(Zc), - Pc.forEach(Zc) -} -function ad(e, o) { - e.blockedOn === o && - ((e.blockedOn = null), - Jc || ((Jc = !0), ca.unstable_scheduleCallback(ca.unstable_NormalPriority, $c))) -} -function bd(e) { - function o($) { - return ad($, e) - } - if (0 < Kc.length) { - ad(Kc[0], e) - for (var _ = 1; _ < Kc.length; _++) { - var b = Kc[_] - b.blockedOn === e && (b.blockedOn = null) - } - } - for ( - Lc !== null && ad(Lc, e), - Mc !== null && ad(Mc, e), - Nc !== null && ad(Nc, e), - Oc.forEach(o), - Pc.forEach(o), - _ = 0; - _ < Qc.length; - _++ - ) - (b = Qc[_]), b.blockedOn === e && (b.blockedOn = null) - for (; 0 < Qc.length && ((_ = Qc[0]), _.blockedOn === null); ) - Vc(_), _.blockedOn === null && Qc.shift() -} -var cd = ua.ReactCurrentBatchConfig, - dd = !0 -function ed(e, o, _, b) { - var $ = C, - en = cd.transition - cd.transition = null - try { - ;(C = 1), fd(e, o, _, b) - } finally { - ;(C = $), (cd.transition = en) - } -} -function gd(e, o, _, b) { - var $ = C, - en = cd.transition - cd.transition = null - try { - ;(C = 4), fd(e, o, _, b) - } finally { - ;(C = $), (cd.transition = en) - } -} -function fd(e, o, _, b) { - if (dd) { - var $ = Yc(e, o, _, b) - if ($ === null) hd(e, o, b, id$1, _), Sc(e, b) - else if (Uc($, e, o, _, b)) b.stopPropagation() - else if ((Sc(e, b), o & 4 && -1 < Rc.indexOf(e))) { - for (; $ !== null; ) { - var en = Cb($) - if ( - (en !== null && Ec(en), - (en = Yc(e, o, _, b)), - en === null && hd(e, o, b, id$1, _), - en === $) - ) - break - $ = en - } - $ !== null && b.stopPropagation() - } else hd(e, o, b, null, _) - } -} -var id$1 = null -function Yc(e, o, _, b) { - if (((id$1 = null), (e = xb(b)), (e = Wc(e)), e !== null)) - if (((o = Vb(e)), o === null)) e = null - else if (((_ = o.tag), _ === 13)) { - if (((e = Wb(o)), e !== null)) return e - e = null - } else if (_ === 3) { - if (o.stateNode.current.memoizedState.isDehydrated) - return o.tag === 3 ? o.stateNode.containerInfo : null - e = null - } else o !== e && (e = null) - return (id$1 = e), null -} -function jd(e) { - switch (e) { - case 'cancel': - case 'click': - case 'close': - case 'contextmenu': - case 'copy': - case 'cut': - case 'auxclick': - case 'dblclick': - case 'dragend': - case 'dragstart': - case 'drop': - case 'focusin': - case 'focusout': - case 'input': - case 'invalid': - case 'keydown': - case 'keypress': - case 'keyup': - case 'mousedown': - case 'mouseup': - case 'paste': - case 'pause': - case 'play': - case 'pointercancel': - case 'pointerdown': - case 'pointerup': - case 'ratechange': - case 'reset': - case 'resize': - case 'seeked': - case 'submit': - case 'touchcancel': - case 'touchend': - case 'touchstart': - case 'volumechange': - case 'change': - case 'selectionchange': - case 'textInput': - case 'compositionstart': - case 'compositionend': - case 'compositionupdate': - case 'beforeblur': - case 'afterblur': - case 'beforeinput': - case 'blur': - case 'fullscreenchange': - case 'focus': - case 'hashchange': - case 'popstate': - case 'select': - case 'selectstart': - return 1 - case 'drag': - case 'dragenter': - case 'dragexit': - case 'dragleave': - case 'dragover': - case 'mousemove': - case 'mouseout': - case 'mouseover': - case 'pointermove': - case 'pointerout': - case 'pointerover': - case 'scroll': - case 'toggle': - case 'touchmove': - case 'wheel': - case 'mouseenter': - case 'mouseleave': - case 'pointerenter': - case 'pointerleave': - return 4 - case 'message': - switch (ec$1()) { - case fc: - return 1 - case gc: - return 4 - case hc: - case ic: - return 16 - case jc: - return 536870912 - default: - return 16 - } - default: - return 16 - } -} -var kd = null, - ld = null, - md = null -function nd() { - if (md) return md - var e, - o = ld, - _ = o.length, - b, - $ = 'value' in kd ? kd.value : kd.textContent, - en = $.length - for (e = 0; e < _ && o[e] === $[e]; e++); - var nn = _ - e - for (b = 1; b <= nn && o[_ - b] === $[en - b]; b++); - return (md = $.slice(e, 1 < b ? 1 - b : void 0)) -} -function od(e) { - var o = e.keyCode - return ( - 'charCode' in e ? ((e = e.charCode), e === 0 && o === 13 && (e = 13)) : (e = o), - e === 10 && (e = 13), - 32 <= e || e === 13 ? e : 0 - ) -} -function pd() { - return !0 -} -function qd() { - return !1 -} -function rd(e) { - function o(_, b, $, en, nn) { - ;(this._reactName = _), - (this._targetInst = $), - (this.type = b), - (this.nativeEvent = en), - (this.target = nn), - (this.currentTarget = null) - for (var sn in e) e.hasOwnProperty(sn) && ((_ = e[sn]), (this[sn] = _ ? _(en) : en[sn])) - return ( - (this.isDefaultPrevented = ( - en.defaultPrevented != null ? en.defaultPrevented : en.returnValue === !1 - ) - ? pd - : qd), - (this.isPropagationStopped = qd), - this - ) - } - return ( - A(o.prototype, { - preventDefault: function () { - this.defaultPrevented = !0 - var _ = this.nativeEvent - _ && - (_.preventDefault - ? _.preventDefault() - : typeof _.returnValue != 'unknown' && (_.returnValue = !1), - (this.isDefaultPrevented = pd)) - }, - stopPropagation: function () { - var _ = this.nativeEvent - _ && - (_.stopPropagation - ? _.stopPropagation() - : typeof _.cancelBubble != 'unknown' && (_.cancelBubble = !0), - (this.isPropagationStopped = pd)) - }, - persist: function () {}, - isPersistent: pd, - }), - o - ) -} -var sd = { - eventPhase: 0, - bubbles: 0, - cancelable: 0, - timeStamp: function (e) { - return e.timeStamp || Date.now() - }, - defaultPrevented: 0, - isTrusted: 0, - }, - td = rd(sd), - ud = A({}, sd, { view: 0, detail: 0 }), - vd = rd(ud), - wd, - xd, - yd, - Ad = A({}, ud, { - screenX: 0, - screenY: 0, - clientX: 0, - clientY: 0, - pageX: 0, - pageY: 0, - ctrlKey: 0, - shiftKey: 0, - altKey: 0, - metaKey: 0, - getModifierState: zd, - button: 0, - buttons: 0, - relatedTarget: function (e) { - return e.relatedTarget === void 0 - ? e.fromElement === e.srcElement - ? e.toElement - : e.fromElement - : e.relatedTarget - }, - movementX: function (e) { - return 'movementX' in e - ? e.movementX - : (e !== yd && - (yd && e.type === 'mousemove' - ? ((wd = e.screenX - yd.screenX), (xd = e.screenY - yd.screenY)) - : (xd = wd = 0), - (yd = e)), - wd) - }, - movementY: function (e) { - return 'movementY' in e ? e.movementY : xd - }, - }), - Bd = rd(Ad), - Cd = A({}, Ad, { dataTransfer: 0 }), - Dd = rd(Cd), - Ed = A({}, ud, { relatedTarget: 0 }), - Fd = rd(Ed), - Gd = A({}, sd, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), - Hd = rd(Gd), - Id$1 = A({}, sd, { - clipboardData: function (e) { - return 'clipboardData' in e ? e.clipboardData : window.clipboardData - }, - }), - Jd = rd(Id$1), - Kd = A({}, sd, { data: 0 }), - Ld = rd(Kd), - Md = { - Esc: 'Escape', - Spacebar: ' ', - Left: 'ArrowLeft', - Up: 'ArrowUp', - Right: 'ArrowRight', - Down: 'ArrowDown', - Del: 'Delete', - Win: 'OS', - Menu: 'ContextMenu', - Apps: 'ContextMenu', - Scroll: 'ScrollLock', - MozPrintableKey: 'Unidentified', - }, - Nd = { - 8: 'Backspace', - 9: 'Tab', - 12: 'Clear', - 13: 'Enter', - 16: 'Shift', - 17: 'Control', - 18: 'Alt', - 19: 'Pause', - 20: 'CapsLock', - 27: 'Escape', - 32: ' ', - 33: 'PageUp', - 34: 'PageDown', - 35: 'End', - 36: 'Home', - 37: 'ArrowLeft', - 38: 'ArrowUp', - 39: 'ArrowRight', - 40: 'ArrowDown', - 45: 'Insert', - 46: 'Delete', - 112: 'F1', - 113: 'F2', - 114: 'F3', - 115: 'F4', - 116: 'F5', - 117: 'F6', - 118: 'F7', - 119: 'F8', - 120: 'F9', - 121: 'F10', - 122: 'F11', - 123: 'F12', - 144: 'NumLock', - 145: 'ScrollLock', - 224: 'Meta', - }, - Od = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' } -function Pd(e) { - var o = this.nativeEvent - return o.getModifierState ? o.getModifierState(e) : (e = Od[e]) ? !!o[e] : !1 -} -function zd() { - return Pd -} -var Qd = A({}, ud, { - key: function (e) { - if (e.key) { - var o = Md[e.key] || e.key - if (o !== 'Unidentified') return o - } - return e.type === 'keypress' - ? ((e = od(e)), e === 13 ? 'Enter' : String.fromCharCode(e)) - : e.type === 'keydown' || e.type === 'keyup' - ? Nd[e.keyCode] || 'Unidentified' - : '' - }, - code: 0, - location: 0, - ctrlKey: 0, - shiftKey: 0, - altKey: 0, - metaKey: 0, - repeat: 0, - locale: 0, - getModifierState: zd, - charCode: function (e) { - return e.type === 'keypress' ? od(e) : 0 - }, - keyCode: function (e) { - return e.type === 'keydown' || e.type === 'keyup' ? e.keyCode : 0 - }, - which: function (e) { - return e.type === 'keypress' - ? od(e) - : e.type === 'keydown' || e.type === 'keyup' - ? e.keyCode - : 0 - }, - }), - Rd = rd(Qd), - Sd = A({}, Ad, { - pointerId: 0, - width: 0, - height: 0, - pressure: 0, - tangentialPressure: 0, - tiltX: 0, - tiltY: 0, - twist: 0, - pointerType: 0, - isPrimary: 0, - }), - Td = rd(Sd), - Ud = A({}, ud, { - touches: 0, - targetTouches: 0, - changedTouches: 0, - altKey: 0, - metaKey: 0, - ctrlKey: 0, - shiftKey: 0, - getModifierState: zd, - }), - Vd = rd(Ud), - Wd = A({}, sd, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), - Xd = rd(Wd), - Yd = A({}, Ad, { - deltaX: function (e) { - return 'deltaX' in e ? e.deltaX : 'wheelDeltaX' in e ? -e.wheelDeltaX : 0 - }, - deltaY: function (e) { - return 'deltaY' in e - ? e.deltaY - : 'wheelDeltaY' in e - ? -e.wheelDeltaY - : 'wheelDelta' in e - ? -e.wheelDelta - : 0 - }, - deltaZ: 0, - deltaMode: 0, - }), - Zd = rd(Yd), - $d = [9, 13, 27, 32], - ae = ia && 'CompositionEvent' in window, - be = null -ia && 'documentMode' in document && (be = document.documentMode) -var ce = ia && 'TextEvent' in window && !be, - de = ia && (!ae || (be && 8 < be && 11 >= be)), - ee = String.fromCharCode(32), - fe = !1 -function ge(e, o) { - switch (e) { - case 'keyup': - return $d.indexOf(o.keyCode) !== -1 - case 'keydown': - return o.keyCode !== 229 - case 'keypress': - case 'mousedown': - case 'focusout': - return !0 - default: - return !1 - } -} -function he(e) { - return (e = e.detail), typeof e == 'object' && 'data' in e ? e.data : null -} -var ie = !1 -function je(e, o) { - switch (e) { - case 'compositionend': - return he(o) - case 'keypress': - return o.which !== 32 ? null : ((fe = !0), ee) - case 'textInput': - return (e = o.data), e === ee && fe ? null : e - default: - return null - } -} -function ke(e, o) { - if (ie) - return e === 'compositionend' || (!ae && ge(e, o)) - ? ((e = nd()), (md = ld = kd = null), (ie = !1), e) - : null - switch (e) { - case 'paste': - return null - case 'keypress': - if (!(o.ctrlKey || o.altKey || o.metaKey) || (o.ctrlKey && o.altKey)) { - if (o.char && 1 < o.char.length) return o.char - if (o.which) return String.fromCharCode(o.which) - } - return null - case 'compositionend': - return de && o.locale !== 'ko' ? null : o.data - default: - return null - } -} -var le = { - color: !0, - date: !0, - datetime: !0, - 'datetime-local': !0, - email: !0, - month: !0, - number: !0, - password: !0, - range: !0, - search: !0, - tel: !0, - text: !0, - time: !0, - url: !0, - week: !0, -} -function me(e) { - var o = e && e.nodeName && e.nodeName.toLowerCase() - return o === 'input' ? !!le[e.type] : o === 'textarea' -} -function ne(e, o, _, b) { - Eb(b), - (o = oe(o, 'onChange')), - 0 < o.length && - ((_ = new td('onChange', 'change', null, _, b)), e.push({ event: _, listeners: o })) -} -var pe = null, - qe = null -function re(e) { - se(e, 0) -} -function te(e) { - var o = ue(e) - if (Wa(o)) return e -} -function ve(e, o) { - if (e === 'change') return o -} -var we = !1 -if (ia) { - var xe - if (ia) { - var ye = 'oninput' in document - if (!ye) { - var ze = document.createElement('div') - ze.setAttribute('oninput', 'return;'), (ye = typeof ze.oninput == 'function') - } - xe = ye - } else xe = !1 - we = xe && (!document.documentMode || 9 < document.documentMode) -} -function Ae() { - pe && (pe.detachEvent('onpropertychange', Be), (qe = pe = null)) -} -function Be(e) { - if (e.propertyName === 'value' && te(qe)) { - var o = [] - ne(o, qe, e, xb(e)), Jb(re, o) - } -} -function Ce(e, o, _) { - e === 'focusin' - ? (Ae(), (pe = o), (qe = _), pe.attachEvent('onpropertychange', Be)) - : e === 'focusout' && Ae() -} -function De(e) { - if (e === 'selectionchange' || e === 'keyup' || e === 'keydown') return te(qe) -} -function Ee(e, o) { - if (e === 'click') return te(o) -} -function Fe(e, o) { - if (e === 'input' || e === 'change') return te(o) -} -function Ge(e, o) { - return (e === o && (e !== 0 || 1 / e === 1 / o)) || (e !== e && o !== o) -} -var He = typeof Object.is == 'function' ? Object.is : Ge -function Ie(e, o) { - if (He(e, o)) return !0 - if (typeof e != 'object' || e === null || typeof o != 'object' || o === null) return !1 - var _ = Object.keys(e), - b = Object.keys(o) - if (_.length !== b.length) return !1 - for (b = 0; b < _.length; b++) { - var $ = _[b] - if (!ja.call(o, $) || !He(e[$], o[$])) return !1 - } - return !0 -} -function Je(e) { - for (; e && e.firstChild; ) e = e.firstChild - return e -} -function Ke(e, o) { - var _ = Je(e) - e = 0 - for (var b; _; ) { - if (_.nodeType === 3) { - if (((b = e + _.textContent.length), e <= o && b >= o)) return { node: _, offset: o - e } - e = b - } - e: { - for (; _; ) { - if (_.nextSibling) { - _ = _.nextSibling - break e - } - _ = _.parentNode - } - _ = void 0 - } - _ = Je(_) - } -} -function Le(e, o) { - return e && o - ? e === o - ? !0 - : e && e.nodeType === 3 - ? !1 - : o && o.nodeType === 3 - ? Le(e, o.parentNode) - : 'contains' in e - ? e.contains(o) - : e.compareDocumentPosition - ? !!(e.compareDocumentPosition(o) & 16) - : !1 - : !1 -} -function Me() { - for (var e = window, o = Xa(); o instanceof e.HTMLIFrameElement; ) { - try { - var _ = typeof o.contentWindow.location.href == 'string' - } catch { - _ = !1 - } - if (_) e = o.contentWindow - else break - o = Xa(e.document) - } - return o -} -function Ne(e) { - var o = e && e.nodeName && e.nodeName.toLowerCase() - return ( - o && - ((o === 'input' && - (e.type === 'text' || - e.type === 'search' || - e.type === 'tel' || - e.type === 'url' || - e.type === 'password')) || - o === 'textarea' || - e.contentEditable === 'true') - ) -} -function Oe(e) { - var o = Me(), - _ = e.focusedElem, - b = e.selectionRange - if (o !== _ && _ && _.ownerDocument && Le(_.ownerDocument.documentElement, _)) { - if (b !== null && Ne(_)) { - if (((o = b.start), (e = b.end), e === void 0 && (e = o), 'selectionStart' in _)) - (_.selectionStart = o), (_.selectionEnd = Math.min(e, _.value.length)) - else if ( - ((e = ((o = _.ownerDocument || document) && o.defaultView) || window), e.getSelection) - ) { - e = e.getSelection() - var $ = _.textContent.length, - en = Math.min(b.start, $) - ;(b = b.end === void 0 ? en : Math.min(b.end, $)), - !e.extend && en > b && (($ = b), (b = en), (en = $)), - ($ = Ke(_, en)) - var nn = Ke(_, b) - $ && - nn && - (e.rangeCount !== 1 || - e.anchorNode !== $.node || - e.anchorOffset !== $.offset || - e.focusNode !== nn.node || - e.focusOffset !== nn.offset) && - ((o = o.createRange()), - o.setStart($.node, $.offset), - e.removeAllRanges(), - en > b - ? (e.addRange(o), e.extend(nn.node, nn.offset)) - : (o.setEnd(nn.node, nn.offset), e.addRange(o))) - } - } - for (o = [], e = _; (e = e.parentNode); ) - e.nodeType === 1 && o.push({ element: e, left: e.scrollLeft, top: e.scrollTop }) - for (typeof _.focus == 'function' && _.focus(), _ = 0; _ < o.length; _++) - (e = o[_]), (e.element.scrollLeft = e.left), (e.element.scrollTop = e.top) - } -} -var Pe = ia && 'documentMode' in document && 11 >= document.documentMode, - Qe = null, - Re = null, - Se = null, - Te = !1 -function Ue(e, o, _) { - var b = _.window === _ ? _.document : _.nodeType === 9 ? _ : _.ownerDocument - Te || - Qe == null || - Qe !== Xa(b) || - ((b = Qe), - 'selectionStart' in b && Ne(b) - ? (b = { start: b.selectionStart, end: b.selectionEnd }) - : ((b = ((b.ownerDocument && b.ownerDocument.defaultView) || window).getSelection()), - (b = { - anchorNode: b.anchorNode, - anchorOffset: b.anchorOffset, - focusNode: b.focusNode, - focusOffset: b.focusOffset, - })), - (Se && Ie(Se, b)) || - ((Se = b), - (b = oe(Re, 'onSelect')), - 0 < b.length && - ((o = new td('onSelect', 'select', null, o, _)), - e.push({ event: o, listeners: b }), - (o.target = Qe)))) -} -function Ve(e, o) { - var _ = {} - return ( - (_[e.toLowerCase()] = o.toLowerCase()), - (_['Webkit' + e] = 'webkit' + o), - (_['Moz' + e] = 'moz' + o), - _ - ) -} -var We = { - animationend: Ve('Animation', 'AnimationEnd'), - animationiteration: Ve('Animation', 'AnimationIteration'), - animationstart: Ve('Animation', 'AnimationStart'), - transitionend: Ve('Transition', 'TransitionEnd'), - }, - Xe = {}, - Ye = {} -ia && - ((Ye = document.createElement('div').style), - 'AnimationEvent' in window || - (delete We.animationend.animation, - delete We.animationiteration.animation, - delete We.animationstart.animation), - 'TransitionEvent' in window || delete We.transitionend.transition) -function Ze(e) { - if (Xe[e]) return Xe[e] - if (!We[e]) return e - var o = We[e], - _ - for (_ in o) if (o.hasOwnProperty(_) && _ in Ye) return (Xe[e] = o[_]) - return e -} -var $e = Ze('animationend'), - af = Ze('animationiteration'), - bf = Ze('animationstart'), - cf = Ze('transitionend'), - df = new Map(), - ef = - 'abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel'.split( - ' ', - ) -function ff(e, o) { - df.set(e, o), fa(o, [e]) -} -for (var gf = 0; gf < ef.length; gf++) { - var hf = ef[gf], - jf = hf.toLowerCase(), - kf = hf[0].toUpperCase() + hf.slice(1) - ff(jf, 'on' + kf) -} -ff($e, 'onAnimationEnd') -ff(af, 'onAnimationIteration') -ff(bf, 'onAnimationStart') -ff('dblclick', 'onDoubleClick') -ff('focusin', 'onFocus') -ff('focusout', 'onBlur') -ff(cf, 'onTransitionEnd') -ha('onMouseEnter', ['mouseout', 'mouseover']) -ha('onMouseLeave', ['mouseout', 'mouseover']) -ha('onPointerEnter', ['pointerout', 'pointerover']) -ha('onPointerLeave', ['pointerout', 'pointerover']) -fa('onChange', 'change click focusin focusout input keydown keyup selectionchange'.split(' ')) -fa( - 'onSelect', - 'focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange'.split(' '), -) -fa('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']) -fa('onCompositionEnd', 'compositionend focusout keydown keypress keyup mousedown'.split(' ')) -fa('onCompositionStart', 'compositionstart focusout keydown keypress keyup mousedown'.split(' ')) -fa('onCompositionUpdate', 'compositionupdate focusout keydown keypress keyup mousedown'.split(' ')) -var lf = - 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting'.split( - ' ', - ), - mf = new Set('cancel close invalid load scroll toggle'.split(' ').concat(lf)) -function nf(e, o, _) { - var b = e.type || 'unknown-event' - ;(e.currentTarget = _), Ub(b, o, void 0, e), (e.currentTarget = null) -} -function se(e, o) { - o = (o & 4) !== 0 - for (var _ = 0; _ < e.length; _++) { - var b = e[_], - $ = b.event - b = b.listeners - e: { - var en = void 0 - if (o) - for (var nn = b.length - 1; 0 <= nn; nn--) { - var sn = b[nn], - gn = sn.instance, - In = sn.currentTarget - if (((sn = sn.listener), gn !== en && $.isPropagationStopped())) break e - nf($, sn, In), (en = gn) - } - else - for (nn = 0; nn < b.length; nn++) { - if ( - ((sn = b[nn]), - (gn = sn.instance), - (In = sn.currentTarget), - (sn = sn.listener), - gn !== en && $.isPropagationStopped()) - ) - break e - nf($, sn, In), (en = gn) - } - } - } - if (Qb) throw ((e = Rb), (Qb = !1), (Rb = null), e) -} -function D(e, o) { - var _ = o[of] - _ === void 0 && (_ = o[of] = new Set()) - var b = e + '__bubble' - _.has(b) || (pf(o, e, 2, !1), _.add(b)) -} -function qf(e, o, _) { - var b = 0 - o && (b |= 4), pf(_, e, b, o) -} -var rf = '_reactListening' + Math.random().toString(36).slice(2) -function sf(e) { - if (!e[rf]) { - ;(e[rf] = !0), - da.forEach(function (_) { - _ !== 'selectionchange' && (mf.has(_) || qf(_, !1, e), qf(_, !0, e)) - }) - var o = e.nodeType === 9 ? e : e.ownerDocument - o === null || o[rf] || ((o[rf] = !0), qf('selectionchange', !1, o)) - } -} -function pf(e, o, _, b) { - switch (jd(o)) { - case 1: - var $ = ed - break - case 4: - $ = gd - break - default: - $ = fd - } - ;(_ = $.bind(null, o, _, e)), - ($ = void 0), - !Lb || (o !== 'touchstart' && o !== 'touchmove' && o !== 'wheel') || ($ = !0), - b - ? $ !== void 0 - ? e.addEventListener(o, _, { capture: !0, passive: $ }) - : e.addEventListener(o, _, !0) - : $ !== void 0 - ? e.addEventListener(o, _, { passive: $ }) - : e.addEventListener(o, _, !1) -} -function hd(e, o, _, b, $) { - var en = b - if (!(o & 1) && !(o & 2) && b !== null) - e: for (;;) { - if (b === null) return - var nn = b.tag - if (nn === 3 || nn === 4) { - var sn = b.stateNode.containerInfo - if (sn === $ || (sn.nodeType === 8 && sn.parentNode === $)) break - if (nn === 4) - for (nn = b.return; nn !== null; ) { - var gn = nn.tag - if ( - (gn === 3 || gn === 4) && - ((gn = nn.stateNode.containerInfo), - gn === $ || (gn.nodeType === 8 && gn.parentNode === $)) - ) - return - nn = nn.return - } - for (; sn !== null; ) { - if (((nn = Wc(sn)), nn === null)) return - if (((gn = nn.tag), gn === 5 || gn === 6)) { - b = en = nn - continue e - } - sn = sn.parentNode - } - } - b = b.return - } - Jb(function () { - var In = en, - Jn = xb(_), - qn = [] - e: { - var Kn = df.get(e) - if (Kn !== void 0) { - var an = td, - xn = e - switch (e) { - case 'keypress': - if (od(_) === 0) break e - case 'keydown': - case 'keyup': - an = Rd - break - case 'focusin': - ;(xn = 'focus'), (an = Fd) - break - case 'focusout': - ;(xn = 'blur'), (an = Fd) - break - case 'beforeblur': - case 'afterblur': - an = Fd - break - case 'click': - if (_.button === 2) break e - case 'auxclick': - case 'dblclick': - case 'mousedown': - case 'mousemove': - case 'mouseup': - case 'mouseout': - case 'mouseover': - case 'contextmenu': - an = Bd - break - case 'drag': - case 'dragend': - case 'dragenter': - case 'dragexit': - case 'dragleave': - case 'dragover': - case 'dragstart': - case 'drop': - an = Dd - break - case 'touchcancel': - case 'touchend': - case 'touchmove': - case 'touchstart': - an = Vd - break - case $e: - case af: - case bf: - an = Hd - break - case cf: - an = Xd - break - case 'scroll': - an = vd - break - case 'wheel': - an = Zd - break - case 'copy': - case 'cut': - case 'paste': - an = Jd - break - case 'gotpointercapture': - case 'lostpointercapture': - case 'pointercancel': - case 'pointerdown': - case 'pointermove': - case 'pointerout': - case 'pointerover': - case 'pointerup': - an = Td - } - var mn = (o & 4) !== 0, - Bn = !mn && e === 'scroll', - kn = mn ? (Kn !== null ? Kn + 'Capture' : null) : Kn - mn = [] - for (var ln = In, yn; ln !== null; ) { - yn = ln - var Cn = yn.stateNode - if ( - (yn.tag === 5 && - Cn !== null && - ((yn = Cn), - kn !== null && ((Cn = Kb(ln, kn)), Cn != null && mn.push(tf(ln, Cn, yn)))), - Bn) - ) - break - ln = ln.return - } - 0 < mn.length && ((Kn = new an(Kn, xn, null, _, Jn)), qn.push({ event: Kn, listeners: mn })) - } - } - if (!(o & 7)) { - e: { - if ( - ((Kn = e === 'mouseover' || e === 'pointerover'), - (an = e === 'mouseout' || e === 'pointerout'), - Kn && _ !== wb && (xn = _.relatedTarget || _.fromElement) && (Wc(xn) || xn[uf])) - ) - break e - if ( - (an || Kn) && - ((Kn = - Jn.window === Jn - ? Jn - : (Kn = Jn.ownerDocument) - ? Kn.defaultView || Kn.parentWindow - : window), - an - ? ((xn = _.relatedTarget || _.toElement), - (an = In), - (xn = xn ? Wc(xn) : null), - xn !== null && - ((Bn = Vb(xn)), xn !== Bn || (xn.tag !== 5 && xn.tag !== 6)) && - (xn = null)) - : ((an = null), (xn = In)), - an !== xn) - ) { - if ( - ((mn = Bd), - (Cn = 'onMouseLeave'), - (kn = 'onMouseEnter'), - (ln = 'mouse'), - (e === 'pointerout' || e === 'pointerover') && - ((mn = Td), (Cn = 'onPointerLeave'), (kn = 'onPointerEnter'), (ln = 'pointer')), - (Bn = an == null ? Kn : ue(an)), - (yn = xn == null ? Kn : ue(xn)), - (Kn = new mn(Cn, ln + 'leave', an, _, Jn)), - (Kn.target = Bn), - (Kn.relatedTarget = yn), - (Cn = null), - Wc(Jn) === In && - ((mn = new mn(kn, ln + 'enter', xn, _, Jn)), - (mn.target = yn), - (mn.relatedTarget = Bn), - (Cn = mn)), - (Bn = Cn), - an && xn) - ) - n: { - for (mn = an, kn = xn, ln = 0, yn = mn; yn; yn = vf(yn)) ln++ - for (yn = 0, Cn = kn; Cn; Cn = vf(Cn)) yn++ - for (; 0 < ln - yn; ) (mn = vf(mn)), ln-- - for (; 0 < yn - ln; ) (kn = vf(kn)), yn-- - for (; ln--; ) { - if (mn === kn || (kn !== null && mn === kn.alternate)) break n - ;(mn = vf(mn)), (kn = vf(kn)) - } - mn = null - } - else mn = null - an !== null && wf(qn, Kn, an, mn, !1), - xn !== null && Bn !== null && wf(qn, Bn, xn, mn, !0) - } - } - e: { - if ( - ((Kn = In ? ue(In) : window), - (an = Kn.nodeName && Kn.nodeName.toLowerCase()), - an === 'select' || (an === 'input' && Kn.type === 'file')) - ) - var Tn = ve - else if (me(Kn)) - if (we) Tn = Fe - else { - Tn = De - var Gn = Ce - } - else - (an = Kn.nodeName) && - an.toLowerCase() === 'input' && - (Kn.type === 'checkbox' || Kn.type === 'radio') && - (Tn = Ee) - if (Tn && (Tn = Tn(e, In))) { - ne(qn, Tn, _, Jn) - break e - } - Gn && Gn(e, Kn, In), - e === 'focusout' && - (Gn = Kn._wrapperState) && - Gn.controlled && - Kn.type === 'number' && - cb(Kn, 'number', Kn.value) - } - switch (((Gn = In ? ue(In) : window), e)) { - case 'focusin': - ;(me(Gn) || Gn.contentEditable === 'true') && ((Qe = Gn), (Re = In), (Se = null)) - break - case 'focusout': - Se = Re = Qe = null - break - case 'mousedown': - Te = !0 - break - case 'contextmenu': - case 'mouseup': - case 'dragend': - ;(Te = !1), Ue(qn, _, Jn) - break - case 'selectionchange': - if (Pe) break - case 'keydown': - case 'keyup': - Ue(qn, _, Jn) - } - var Sn - if (ae) - e: { - switch (e) { - case 'compositionstart': - var Zn = 'onCompositionStart' - break e - case 'compositionend': - Zn = 'onCompositionEnd' - break e - case 'compositionupdate': - Zn = 'onCompositionUpdate' - break e - } - Zn = void 0 - } - else - ie - ? ge(e, _) && (Zn = 'onCompositionEnd') - : e === 'keydown' && _.keyCode === 229 && (Zn = 'onCompositionStart') - Zn && - (de && - _.locale !== 'ko' && - (ie || Zn !== 'onCompositionStart' - ? Zn === 'onCompositionEnd' && ie && (Sn = nd()) - : ((kd = Jn), (ld = 'value' in kd ? kd.value : kd.textContent), (ie = !0))), - (Gn = oe(In, Zn)), - 0 < Gn.length && - ((Zn = new Ld(Zn, e, null, _, Jn)), - qn.push({ event: Zn, listeners: Gn }), - Sn ? (Zn.data = Sn) : ((Sn = he(_)), Sn !== null && (Zn.data = Sn)))), - (Sn = ce ? je(e, _) : ke(e, _)) && - ((In = oe(In, 'onBeforeInput')), - 0 < In.length && - ((Jn = new Ld('onBeforeInput', 'beforeinput', null, _, Jn)), - qn.push({ event: Jn, listeners: In }), - (Jn.data = Sn))) - } - se(qn, o) - }) -} -function tf(e, o, _) { - return { instance: e, listener: o, currentTarget: _ } -} -function oe(e, o) { - for (var _ = o + 'Capture', b = []; e !== null; ) { - var $ = e, - en = $.stateNode - $.tag === 5 && - en !== null && - (($ = en), - (en = Kb(e, _)), - en != null && b.unshift(tf(e, en, $)), - (en = Kb(e, o)), - en != null && b.push(tf(e, en, $))), - (e = e.return) - } - return b -} -function vf(e) { - if (e === null) return null - do e = e.return - while (e && e.tag !== 5) - return e || null -} -function wf(e, o, _, b, $) { - for (var en = o._reactName, nn = []; _ !== null && _ !== b; ) { - var sn = _, - gn = sn.alternate, - In = sn.stateNode - if (gn !== null && gn === b) break - sn.tag === 5 && - In !== null && - ((sn = In), - $ - ? ((gn = Kb(_, en)), gn != null && nn.unshift(tf(_, gn, sn))) - : $ || ((gn = Kb(_, en)), gn != null && nn.push(tf(_, gn, sn)))), - (_ = _.return) - } - nn.length !== 0 && e.push({ event: o, listeners: nn }) -} -var xf = /\r\n?/g, - yf = /\u0000|\uFFFD/g -function zf(e) { - return (typeof e == 'string' ? e : '' + e) - .replace( - xf, - ` -`, - ) - .replace(yf, '') -} -function Af(e, o, _) { - if (((o = zf(o)), zf(e) !== o && _)) throw Error(p(425)) -} -function Bf() {} -var Cf = null, - Df = null -function Ef(e, o) { - return ( - e === 'textarea' || - e === 'noscript' || - typeof o.children == 'string' || - typeof o.children == 'number' || - (typeof o.dangerouslySetInnerHTML == 'object' && - o.dangerouslySetInnerHTML !== null && - o.dangerouslySetInnerHTML.__html != null) - ) -} -var Ff = typeof setTimeout == 'function' ? setTimeout : void 0, - Gf = typeof clearTimeout == 'function' ? clearTimeout : void 0, - Hf = typeof Promise == 'function' ? Promise : void 0, - Jf = - typeof queueMicrotask == 'function' - ? queueMicrotask - : typeof Hf < 'u' - ? function (e) { - return Hf.resolve(null).then(e).catch(If) - } - : Ff -function If(e) { - setTimeout(function () { - throw e - }) -} -function Kf(e, o) { - var _ = o, - b = 0 - do { - var $ = _.nextSibling - if ((e.removeChild(_), $ && $.nodeType === 8)) - if (((_ = $.data), _ === '/$')) { - if (b === 0) { - e.removeChild($), bd(o) - return - } - b-- - } else (_ !== '$' && _ !== '$?' && _ !== '$!') || b++ - _ = $ - } while (_) - bd(o) -} -function Lf(e) { - for (; e != null; e = e.nextSibling) { - var o = e.nodeType - if (o === 1 || o === 3) break - if (o === 8) { - if (((o = e.data), o === '$' || o === '$!' || o === '$?')) break - if (o === '/$') return null - } - } - return e -} -function Mf(e) { - e = e.previousSibling - for (var o = 0; e; ) { - if (e.nodeType === 8) { - var _ = e.data - if (_ === '$' || _ === '$!' || _ === '$?') { - if (o === 0) return e - o-- - } else _ === '/$' && o++ - } - e = e.previousSibling - } - return null -} -var Nf = Math.random().toString(36).slice(2), - Of = '__reactFiber$' + Nf, - Pf = '__reactProps$' + Nf, - uf = '__reactContainer$' + Nf, - of = '__reactEvents$' + Nf, - Qf = '__reactListeners$' + Nf, - Rf = '__reactHandles$' + Nf -function Wc(e) { - var o = e[Of] - if (o) return o - for (var _ = e.parentNode; _; ) { - if ((o = _[uf] || _[Of])) { - if (((_ = o.alternate), o.child !== null || (_ !== null && _.child !== null))) - for (e = Mf(e); e !== null; ) { - if ((_ = e[Of])) return _ - e = Mf(e) - } - return o - } - ;(e = _), (_ = e.parentNode) - } - return null -} -function Cb(e) { - return ( - (e = e[Of] || e[uf]), - !e || (e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3) ? null : e - ) -} -function ue(e) { - if (e.tag === 5 || e.tag === 6) return e.stateNode - throw Error(p(33)) -} -function Db(e) { - return e[Pf] || null -} -var Sf = [], - Tf = -1 -function Uf(e) { - return { current: e } -} -function E(e) { - 0 > Tf || ((e.current = Sf[Tf]), (Sf[Tf] = null), Tf--) -} -function G(e, o) { - Tf++, (Sf[Tf] = e.current), (e.current = o) -} -var Vf = {}, - H = Uf(Vf), - Wf = Uf(!1), - Xf = Vf -function Yf(e, o) { - var _ = e.type.contextTypes - if (!_) return Vf - var b = e.stateNode - if (b && b.__reactInternalMemoizedUnmaskedChildContext === o) - return b.__reactInternalMemoizedMaskedChildContext - var $ = {}, - en - for (en in _) $[en] = o[en] - return ( - b && - ((e = e.stateNode), - (e.__reactInternalMemoizedUnmaskedChildContext = o), - (e.__reactInternalMemoizedMaskedChildContext = $)), - $ - ) -} -function Zf(e) { - return (e = e.childContextTypes), e != null -} -function $f() { - E(Wf), E(H) -} -function ag(e, o, _) { - if (H.current !== Vf) throw Error(p(168)) - G(H, o), G(Wf, _) -} -function bg(e, o, _) { - var b = e.stateNode - if (((o = o.childContextTypes), typeof b.getChildContext != 'function')) return _ - b = b.getChildContext() - for (var $ in b) if (!($ in o)) throw Error(p(108, Ra(e) || 'Unknown', $)) - return A({}, _, b) -} -function cg(e) { - return ( - (e = ((e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext) || Vf), - (Xf = H.current), - G(H, e), - G(Wf, Wf.current), - !0 - ) -} -function dg(e, o, _) { - var b = e.stateNode - if (!b) throw Error(p(169)) - _ - ? ((e = bg(e, o, Xf)), (b.__reactInternalMemoizedMergedChildContext = e), E(Wf), E(H), G(H, e)) - : E(Wf), - G(Wf, _) -} -var eg = null, - fg = !1, - gg = !1 -function hg(e) { - eg === null ? (eg = [e]) : eg.push(e) -} -function ig(e) { - ;(fg = !0), hg(e) -} -function jg() { - if (!gg && eg !== null) { - gg = !0 - var e = 0, - o = C - try { - var _ = eg - for (C = 1; e < _.length; e++) { - var b = _[e] - do b = b(!0) - while (b !== null) - } - ;(eg = null), (fg = !1) - } catch ($) { - throw (eg !== null && (eg = eg.slice(e + 1)), ac(fc, jg), $) - } finally { - ;(C = o), (gg = !1) - } - } - return null -} -var kg = [], - lg = 0, - mg = null, - ng = 0, - og = [], - pg = 0, - qg = null, - rg = 1, - sg = '' -function tg(e, o) { - ;(kg[lg++] = ng), (kg[lg++] = mg), (mg = e), (ng = o) -} -function ug(e, o, _) { - ;(og[pg++] = rg), (og[pg++] = sg), (og[pg++] = qg), (qg = e) - var b = rg - e = sg - var $ = 32 - oc(b) - 1 - ;(b &= ~(1 << $)), (_ += 1) - var en = 32 - oc(o) + $ - if (30 < en) { - var nn = $ - ($ % 5) - ;(en = (b & ((1 << nn) - 1)).toString(32)), - (b >>= nn), - ($ -= nn), - (rg = (1 << (32 - oc(o) + $)) | (_ << $) | b), - (sg = en + e) - } else (rg = (1 << en) | (_ << $) | b), (sg = e) -} -function vg(e) { - e.return !== null && (tg(e, 1), ug(e, 1, 0)) -} -function wg(e) { - for (; e === mg; ) (mg = kg[--lg]), (kg[lg] = null), (ng = kg[--lg]), (kg[lg] = null) - for (; e === qg; ) - (qg = og[--pg]), - (og[pg] = null), - (sg = og[--pg]), - (og[pg] = null), - (rg = og[--pg]), - (og[pg] = null) -} -var xg = null, - yg = null, - I = !1, - zg = null -function Ag(e, o) { - var _ = Bg(5, null, null, 0) - ;(_.elementType = 'DELETED'), - (_.stateNode = o), - (_.return = e), - (o = e.deletions), - o === null ? ((e.deletions = [_]), (e.flags |= 16)) : o.push(_) -} -function Cg(e, o) { - switch (e.tag) { - case 5: - var _ = e.type - return ( - (o = o.nodeType !== 1 || _.toLowerCase() !== o.nodeName.toLowerCase() ? null : o), - o !== null ? ((e.stateNode = o), (xg = e), (yg = Lf(o.firstChild)), !0) : !1 - ) - case 6: - return ( - (o = e.pendingProps === '' || o.nodeType !== 3 ? null : o), - o !== null ? ((e.stateNode = o), (xg = e), (yg = null), !0) : !1 - ) - case 13: - return ( - (o = o.nodeType !== 8 ? null : o), - o !== null - ? ((_ = qg !== null ? { id: rg, overflow: sg } : null), - (e.memoizedState = { dehydrated: o, treeContext: _, retryLane: 1073741824 }), - (_ = Bg(18, null, null, 0)), - (_.stateNode = o), - (_.return = e), - (e.child = _), - (xg = e), - (yg = null), - !0) - : !1 - ) - default: - return !1 - } -} -function Dg(e) { - return (e.mode & 1) !== 0 && (e.flags & 128) === 0 -} -function Eg(e) { - if (I) { - var o = yg - if (o) { - var _ = o - if (!Cg(e, o)) { - if (Dg(e)) throw Error(p(418)) - o = Lf(_.nextSibling) - var b = xg - o && Cg(e, o) ? Ag(b, _) : ((e.flags = (e.flags & -4097) | 2), (I = !1), (xg = e)) - } - } else { - if (Dg(e)) throw Error(p(418)) - ;(e.flags = (e.flags & -4097) | 2), (I = !1), (xg = e) - } - } -} -function Fg(e) { - for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return - xg = e -} -function Gg(e) { - if (e !== xg) return !1 - if (!I) return Fg(e), (I = !0), !1 - var o - if ( - ((o = e.tag !== 3) && - !(o = e.tag !== 5) && - ((o = e.type), (o = o !== 'head' && o !== 'body' && !Ef(e.type, e.memoizedProps))), - o && (o = yg)) - ) { - if (Dg(e)) throw (Hg(), Error(p(418))) - for (; o; ) Ag(e, o), (o = Lf(o.nextSibling)) - } - if ((Fg(e), e.tag === 13)) { - if (((e = e.memoizedState), (e = e !== null ? e.dehydrated : null), !e)) throw Error(p(317)) - e: { - for (e = e.nextSibling, o = 0; e; ) { - if (e.nodeType === 8) { - var _ = e.data - if (_ === '/$') { - if (o === 0) { - yg = Lf(e.nextSibling) - break e - } - o-- - } else (_ !== '$' && _ !== '$!' && _ !== '$?') || o++ - } - e = e.nextSibling - } - yg = null - } - } else yg = xg ? Lf(e.stateNode.nextSibling) : null - return !0 -} -function Hg() { - for (var e = yg; e; ) e = Lf(e.nextSibling) -} -function Ig() { - ;(yg = xg = null), (I = !1) -} -function Jg(e) { - zg === null ? (zg = [e]) : zg.push(e) -} -var Kg = ua.ReactCurrentBatchConfig -function Lg(e, o) { - if (e && e.defaultProps) { - ;(o = A({}, o)), (e = e.defaultProps) - for (var _ in e) o[_] === void 0 && (o[_] = e[_]) - return o - } - return o -} -var Mg = Uf(null), - Ng = null, - Og = null, - Pg = null -function Qg() { - Pg = Og = Ng = null -} -function Rg(e) { - var o = Mg.current - E(Mg), (e._currentValue = o) -} -function Sg(e, o, _) { - for (; e !== null; ) { - var b = e.alternate - if ( - ((e.childLanes & o) !== o - ? ((e.childLanes |= o), b !== null && (b.childLanes |= o)) - : b !== null && (b.childLanes & o) !== o && (b.childLanes |= o), - e === _) - ) - break - e = e.return - } -} -function Tg(e, o) { - ;(Ng = e), - (Pg = Og = null), - (e = e.dependencies), - e !== null && e.firstContext !== null && (e.lanes & o && (Ug = !0), (e.firstContext = null)) -} -function Vg(e) { - var o = e._currentValue - if (Pg !== e) - if (((e = { context: e, memoizedValue: o, next: null }), Og === null)) { - if (Ng === null) throw Error(p(308)) - ;(Og = e), (Ng.dependencies = { lanes: 0, firstContext: e }) - } else Og = Og.next = e - return o -} -var Wg = null -function Xg(e) { - Wg === null ? (Wg = [e]) : Wg.push(e) -} -function Yg(e, o, _, b) { - var $ = o.interleaved - return ( - $ === null ? ((_.next = _), Xg(o)) : ((_.next = $.next), ($.next = _)), - (o.interleaved = _), - Zg(e, b) - ) -} -function Zg(e, o) { - e.lanes |= o - var _ = e.alternate - for (_ !== null && (_.lanes |= o), _ = e, e = e.return; e !== null; ) - (e.childLanes |= o), - (_ = e.alternate), - _ !== null && (_.childLanes |= o), - (_ = e), - (e = e.return) - return _.tag === 3 ? _.stateNode : null -} -var $g = !1 -function ah(e) { - e.updateQueue = { - baseState: e.memoizedState, - firstBaseUpdate: null, - lastBaseUpdate: null, - shared: { pending: null, interleaved: null, lanes: 0 }, - effects: null, - } -} -function bh(e, o) { - ;(e = e.updateQueue), - o.updateQueue === e && - (o.updateQueue = { - baseState: e.baseState, - firstBaseUpdate: e.firstBaseUpdate, - lastBaseUpdate: e.lastBaseUpdate, - shared: e.shared, - effects: e.effects, - }) -} -function ch(e, o) { - return { eventTime: e, lane: o, tag: 0, payload: null, callback: null, next: null } -} -function dh(e, o, _) { - var b = e.updateQueue - if (b === null) return null - if (((b = b.shared), K$1 & 2)) { - var $ = b.pending - return $ === null ? (o.next = o) : ((o.next = $.next), ($.next = o)), (b.pending = o), Zg(e, _) - } - return ( - ($ = b.interleaved), - $ === null ? ((o.next = o), Xg(b)) : ((o.next = $.next), ($.next = o)), - (b.interleaved = o), - Zg(e, _) - ) -} -function eh(e, o, _) { - if (((o = o.updateQueue), o !== null && ((o = o.shared), (_ & 4194240) !== 0))) { - var b = o.lanes - ;(b &= e.pendingLanes), (_ |= b), (o.lanes = _), Cc(e, _) - } -} -function fh(e, o) { - var _ = e.updateQueue, - b = e.alternate - if (b !== null && ((b = b.updateQueue), _ === b)) { - var $ = null, - en = null - if (((_ = _.firstBaseUpdate), _ !== null)) { - do { - var nn = { - eventTime: _.eventTime, - lane: _.lane, - tag: _.tag, - payload: _.payload, - callback: _.callback, - next: null, - } - en === null ? ($ = en = nn) : (en = en.next = nn), (_ = _.next) - } while (_ !== null) - en === null ? ($ = en = o) : (en = en.next = o) - } else $ = en = o - ;(_ = { - baseState: b.baseState, - firstBaseUpdate: $, - lastBaseUpdate: en, - shared: b.shared, - effects: b.effects, - }), - (e.updateQueue = _) - return - } - ;(e = _.lastBaseUpdate), - e === null ? (_.firstBaseUpdate = o) : (e.next = o), - (_.lastBaseUpdate = o) -} -function gh(e, o, _, b) { - var $ = e.updateQueue - $g = !1 - var en = $.firstBaseUpdate, - nn = $.lastBaseUpdate, - sn = $.shared.pending - if (sn !== null) { - $.shared.pending = null - var gn = sn, - In = gn.next - ;(gn.next = null), nn === null ? (en = In) : (nn.next = In), (nn = gn) - var Jn = e.alternate - Jn !== null && - ((Jn = Jn.updateQueue), - (sn = Jn.lastBaseUpdate), - sn !== nn && - (sn === null ? (Jn.firstBaseUpdate = In) : (sn.next = In), (Jn.lastBaseUpdate = gn))) - } - if (en !== null) { - var qn = $.baseState - ;(nn = 0), (Jn = In = gn = null), (sn = en) - do { - var Kn = sn.lane, - an = sn.eventTime - if ((b & Kn) === Kn) { - Jn !== null && - (Jn = Jn.next = - { - eventTime: an, - lane: 0, - tag: sn.tag, - payload: sn.payload, - callback: sn.callback, - next: null, - }) - e: { - var xn = e, - mn = sn - switch (((Kn = o), (an = _), mn.tag)) { - case 1: - if (((xn = mn.payload), typeof xn == 'function')) { - qn = xn.call(an, qn, Kn) - break e - } - qn = xn - break e - case 3: - xn.flags = (xn.flags & -65537) | 128 - case 0: - if ( - ((xn = mn.payload), - (Kn = typeof xn == 'function' ? xn.call(an, qn, Kn) : xn), - Kn == null) - ) - break e - qn = A({}, qn, Kn) - break e - case 2: - $g = !0 - } - } - sn.callback !== null && - sn.lane !== 0 && - ((e.flags |= 64), (Kn = $.effects), Kn === null ? ($.effects = [sn]) : Kn.push(sn)) - } else - (an = { - eventTime: an, - lane: Kn, - tag: sn.tag, - payload: sn.payload, - callback: sn.callback, - next: null, - }), - Jn === null ? ((In = Jn = an), (gn = qn)) : (Jn = Jn.next = an), - (nn |= Kn) - if (((sn = sn.next), sn === null)) { - if (((sn = $.shared.pending), sn === null)) break - ;(Kn = sn), - (sn = Kn.next), - (Kn.next = null), - ($.lastBaseUpdate = Kn), - ($.shared.pending = null) - } - } while (1) - if ( - (Jn === null && (gn = qn), - ($.baseState = gn), - ($.firstBaseUpdate = In), - ($.lastBaseUpdate = Jn), - (o = $.shared.interleaved), - o !== null) - ) { - $ = o - do (nn |= $.lane), ($ = $.next) - while ($ !== o) - } else en === null && ($.shared.lanes = 0) - ;(hh |= nn), (e.lanes = nn), (e.memoizedState = qn) - } -} -function ih(e, o, _) { - if (((e = o.effects), (o.effects = null), e !== null)) - for (o = 0; o < e.length; o++) { - var b = e[o], - $ = b.callback - if ($ !== null) { - if (((b.callback = null), (b = _), typeof $ != 'function')) throw Error(p(191, $)) - $.call(b) - } - } -} -var jh = new aa.Component().refs -function kh(e, o, _, b) { - ;(o = e.memoizedState), - (_ = _(b, o)), - (_ = _ == null ? o : A({}, o, _)), - (e.memoizedState = _), - e.lanes === 0 && (e.updateQueue.baseState = _) -} -var nh = { - isMounted: function (e) { - return (e = e._reactInternals) ? Vb(e) === e : !1 - }, - enqueueSetState: function (e, o, _) { - e = e._reactInternals - var b = L(), - $ = lh(e), - en = ch(b, $) - ;(en.payload = o), - _ != null && (en.callback = _), - (o = dh(e, en, $)), - o !== null && (mh(o, e, $, b), eh(o, e, $)) - }, - enqueueReplaceState: function (e, o, _) { - e = e._reactInternals - var b = L(), - $ = lh(e), - en = ch(b, $) - ;(en.tag = 1), - (en.payload = o), - _ != null && (en.callback = _), - (o = dh(e, en, $)), - o !== null && (mh(o, e, $, b), eh(o, e, $)) - }, - enqueueForceUpdate: function (e, o) { - e = e._reactInternals - var _ = L(), - b = lh(e), - $ = ch(_, b) - ;($.tag = 2), - o != null && ($.callback = o), - (o = dh(e, $, b)), - o !== null && (mh(o, e, b, _), eh(o, e, b)) - }, -} -function oh(e, o, _, b, $, en, nn) { - return ( - (e = e.stateNode), - typeof e.shouldComponentUpdate == 'function' - ? e.shouldComponentUpdate(b, en, nn) - : o.prototype && o.prototype.isPureReactComponent - ? !Ie(_, b) || !Ie($, en) - : !0 - ) -} -function ph(e, o, _) { - var b = !1, - $ = Vf, - en = o.contextType - return ( - typeof en == 'object' && en !== null - ? (en = Vg(en)) - : (($ = Zf(o) ? Xf : H.current), - (b = o.contextTypes), - (en = (b = b != null) ? Yf(e, $) : Vf)), - (o = new o(_, en)), - (e.memoizedState = o.state !== null && o.state !== void 0 ? o.state : null), - (o.updater = nh), - (e.stateNode = o), - (o._reactInternals = e), - b && - ((e = e.stateNode), - (e.__reactInternalMemoizedUnmaskedChildContext = $), - (e.__reactInternalMemoizedMaskedChildContext = en)), - o - ) -} -function qh(e, o, _, b) { - ;(e = o.state), - typeof o.componentWillReceiveProps == 'function' && o.componentWillReceiveProps(_, b), - typeof o.UNSAFE_componentWillReceiveProps == 'function' && - o.UNSAFE_componentWillReceiveProps(_, b), - o.state !== e && nh.enqueueReplaceState(o, o.state, null) -} -function rh$1(e, o, _, b) { - var $ = e.stateNode - ;($.props = _), ($.state = e.memoizedState), ($.refs = jh), ah(e) - var en = o.contextType - typeof en == 'object' && en !== null - ? ($.context = Vg(en)) - : ((en = Zf(o) ? Xf : H.current), ($.context = Yf(e, en))), - ($.state = e.memoizedState), - (en = o.getDerivedStateFromProps), - typeof en == 'function' && (kh(e, o, en, _), ($.state = e.memoizedState)), - typeof o.getDerivedStateFromProps == 'function' || - typeof $.getSnapshotBeforeUpdate == 'function' || - (typeof $.UNSAFE_componentWillMount != 'function' && - typeof $.componentWillMount != 'function') || - ((o = $.state), - typeof $.componentWillMount == 'function' && $.componentWillMount(), - typeof $.UNSAFE_componentWillMount == 'function' && $.UNSAFE_componentWillMount(), - o !== $.state && nh.enqueueReplaceState($, $.state, null), - gh(e, _, $, b), - ($.state = e.memoizedState)), - typeof $.componentDidMount == 'function' && (e.flags |= 4194308) -} -function sh$1(e, o, _) { - if (((e = _.ref), e !== null && typeof e != 'function' && typeof e != 'object')) { - if (_._owner) { - if (((_ = _._owner), _)) { - if (_.tag !== 1) throw Error(p(309)) - var b = _.stateNode - } - if (!b) throw Error(p(147, e)) - var $ = b, - en = '' + e - return o !== null && o.ref !== null && typeof o.ref == 'function' && o.ref._stringRef === en - ? o.ref - : ((o = function (nn) { - var sn = $.refs - sn === jh && (sn = $.refs = {}), nn === null ? delete sn[en] : (sn[en] = nn) - }), - (o._stringRef = en), - o) - } - if (typeof e != 'string') throw Error(p(284)) - if (!_._owner) throw Error(p(290, e)) - } - return e -} -function th(e, o) { - throw ( - ((e = Object.prototype.toString.call(o)), - Error( - p(31, e === '[object Object]' ? 'object with keys {' + Object.keys(o).join(', ') + '}' : e), - )) - ) -} -function uh(e) { - var o = e._init - return o(e._payload) -} -function vh(e) { - function o(kn, ln) { - if (e) { - var yn = kn.deletions - yn === null ? ((kn.deletions = [ln]), (kn.flags |= 16)) : yn.push(ln) - } - } - function _(kn, ln) { - if (!e) return null - for (; ln !== null; ) o(kn, ln), (ln = ln.sibling) - return null - } - function b(kn, ln) { - for (kn = new Map(); ln !== null; ) - ln.key !== null ? kn.set(ln.key, ln) : kn.set(ln.index, ln), (ln = ln.sibling) - return kn - } - function $(kn, ln) { - return (kn = wh(kn, ln)), (kn.index = 0), (kn.sibling = null), kn - } - function en(kn, ln, yn) { - return ( - (kn.index = yn), - e - ? ((yn = kn.alternate), - yn !== null - ? ((yn = yn.index), yn < ln ? ((kn.flags |= 2), ln) : yn) - : ((kn.flags |= 2), ln)) - : ((kn.flags |= 1048576), ln) - ) - } - function nn(kn) { - return e && kn.alternate === null && (kn.flags |= 2), kn - } - function sn(kn, ln, yn, Cn) { - return ln === null || ln.tag !== 6 - ? ((ln = xh(yn, kn.mode, Cn)), (ln.return = kn), ln) - : ((ln = $(ln, yn)), (ln.return = kn), ln) - } - function gn(kn, ln, yn, Cn) { - var Tn = yn.type - return Tn === ya - ? Jn(kn, ln, yn.props.children, Cn, yn.key) - : ln !== null && - (ln.elementType === Tn || - (typeof Tn == 'object' && Tn !== null && Tn.$$typeof === Ha && uh(Tn) === ln.type)) - ? ((Cn = $(ln, yn.props)), (Cn.ref = sh$1(kn, ln, yn)), (Cn.return = kn), Cn) - : ((Cn = yh(yn.type, yn.key, yn.props, null, kn.mode, Cn)), - (Cn.ref = sh$1(kn, ln, yn)), - (Cn.return = kn), - Cn) - } - function In(kn, ln, yn, Cn) { - return ln === null || - ln.tag !== 4 || - ln.stateNode.containerInfo !== yn.containerInfo || - ln.stateNode.implementation !== yn.implementation - ? ((ln = zh(yn, kn.mode, Cn)), (ln.return = kn), ln) - : ((ln = $(ln, yn.children || [])), (ln.return = kn), ln) - } - function Jn(kn, ln, yn, Cn, Tn) { - return ln === null || ln.tag !== 7 - ? ((ln = Ah(yn, kn.mode, Cn, Tn)), (ln.return = kn), ln) - : ((ln = $(ln, yn)), (ln.return = kn), ln) - } - function qn(kn, ln, yn) { - if ((typeof ln == 'string' && ln !== '') || typeof ln == 'number') - return (ln = xh('' + ln, kn.mode, yn)), (ln.return = kn), ln - if (typeof ln == 'object' && ln !== null) { - switch (ln.$$typeof) { - case va: - return ( - (yn = yh(ln.type, ln.key, ln.props, null, kn.mode, yn)), - (yn.ref = sh$1(kn, null, ln)), - (yn.return = kn), - yn - ) - case wa: - return (ln = zh(ln, kn.mode, yn)), (ln.return = kn), ln - case Ha: - var Cn = ln._init - return qn(kn, Cn(ln._payload), yn) - } - if (eb(ln) || Ka(ln)) return (ln = Ah(ln, kn.mode, yn, null)), (ln.return = kn), ln - th(kn, ln) - } - return null - } - function Kn(kn, ln, yn, Cn) { - var Tn = ln !== null ? ln.key : null - if ((typeof yn == 'string' && yn !== '') || typeof yn == 'number') - return Tn !== null ? null : sn(kn, ln, '' + yn, Cn) - if (typeof yn == 'object' && yn !== null) { - switch (yn.$$typeof) { - case va: - return yn.key === Tn ? gn(kn, ln, yn, Cn) : null - case wa: - return yn.key === Tn ? In(kn, ln, yn, Cn) : null - case Ha: - return (Tn = yn._init), Kn(kn, ln, Tn(yn._payload), Cn) - } - if (eb(yn) || Ka(yn)) return Tn !== null ? null : Jn(kn, ln, yn, Cn, null) - th(kn, yn) - } - return null - } - function an(kn, ln, yn, Cn, Tn) { - if ((typeof Cn == 'string' && Cn !== '') || typeof Cn == 'number') - return (kn = kn.get(yn) || null), sn(ln, kn, '' + Cn, Tn) - if (typeof Cn == 'object' && Cn !== null) { - switch (Cn.$$typeof) { - case va: - return (kn = kn.get(Cn.key === null ? yn : Cn.key) || null), gn(ln, kn, Cn, Tn) - case wa: - return (kn = kn.get(Cn.key === null ? yn : Cn.key) || null), In(ln, kn, Cn, Tn) - case Ha: - var Gn = Cn._init - return an(kn, ln, yn, Gn(Cn._payload), Tn) - } - if (eb(Cn) || Ka(Cn)) return (kn = kn.get(yn) || null), Jn(ln, kn, Cn, Tn, null) - th(ln, Cn) - } - return null - } - function xn(kn, ln, yn, Cn) { - for ( - var Tn = null, Gn = null, Sn = ln, Zn = (ln = 0), tn = null; - Sn !== null && Zn < yn.length; - Zn++ - ) { - Sn.index > Zn ? ((tn = Sn), (Sn = null)) : (tn = Sn.sibling) - var En = Kn(kn, Sn, yn[Zn], Cn) - if (En === null) { - Sn === null && (Sn = tn) - break - } - e && Sn && En.alternate === null && o(kn, Sn), - (ln = en(En, ln, Zn)), - Gn === null ? (Tn = En) : (Gn.sibling = En), - (Gn = En), - (Sn = tn) - } - if (Zn === yn.length) return _(kn, Sn), I && tg(kn, Zn), Tn - if (Sn === null) { - for (; Zn < yn.length; Zn++) - (Sn = qn(kn, yn[Zn], Cn)), - Sn !== null && - ((ln = en(Sn, ln, Zn)), Gn === null ? (Tn = Sn) : (Gn.sibling = Sn), (Gn = Sn)) - return I && tg(kn, Zn), Tn - } - for (Sn = b(kn, Sn); Zn < yn.length; Zn++) - (tn = an(Sn, kn, Zn, yn[Zn], Cn)), - tn !== null && - (e && tn.alternate !== null && Sn.delete(tn.key === null ? Zn : tn.key), - (ln = en(tn, ln, Zn)), - Gn === null ? (Tn = tn) : (Gn.sibling = tn), - (Gn = tn)) - return ( - e && - Sn.forEach(function (Mn) { - return o(kn, Mn) - }), - I && tg(kn, Zn), - Tn - ) - } - function mn(kn, ln, yn, Cn) { - var Tn = Ka(yn) - if (typeof Tn != 'function') throw Error(p(150)) - if (((yn = Tn.call(yn)), yn == null)) throw Error(p(151)) - for ( - var Gn = (Tn = null), Sn = ln, Zn = (ln = 0), tn = null, En = yn.next(); - Sn !== null && !En.done; - Zn++, En = yn.next() - ) { - Sn.index > Zn ? ((tn = Sn), (Sn = null)) : (tn = Sn.sibling) - var Mn = Kn(kn, Sn, En.value, Cn) - if (Mn === null) { - Sn === null && (Sn = tn) - break - } - e && Sn && Mn.alternate === null && o(kn, Sn), - (ln = en(Mn, ln, Zn)), - Gn === null ? (Tn = Mn) : (Gn.sibling = Mn), - (Gn = Mn), - (Sn = tn) - } - if (En.done) return _(kn, Sn), I && tg(kn, Zn), Tn - if (Sn === null) { - for (; !En.done; Zn++, En = yn.next()) - (En = qn(kn, En.value, Cn)), - En !== null && - ((ln = en(En, ln, Zn)), Gn === null ? (Tn = En) : (Gn.sibling = En), (Gn = En)) - return I && tg(kn, Zn), Tn - } - for (Sn = b(kn, Sn); !En.done; Zn++, En = yn.next()) - (En = an(Sn, kn, Zn, En.value, Cn)), - En !== null && - (e && En.alternate !== null && Sn.delete(En.key === null ? Zn : En.key), - (ln = en(En, ln, Zn)), - Gn === null ? (Tn = En) : (Gn.sibling = En), - (Gn = En)) - return ( - e && - Sn.forEach(function (Hn) { - return o(kn, Hn) - }), - I && tg(kn, Zn), - Tn - ) - } - function Bn(kn, ln, yn, Cn) { - if ( - (typeof yn == 'object' && - yn !== null && - yn.type === ya && - yn.key === null && - (yn = yn.props.children), - typeof yn == 'object' && yn !== null) - ) { - switch (yn.$$typeof) { - case va: - e: { - for (var Tn = yn.key, Gn = ln; Gn !== null; ) { - if (Gn.key === Tn) { - if (((Tn = yn.type), Tn === ya)) { - if (Gn.tag === 7) { - _(kn, Gn.sibling), (ln = $(Gn, yn.props.children)), (ln.return = kn), (kn = ln) - break e - } - } else if ( - Gn.elementType === Tn || - (typeof Tn == 'object' && Tn !== null && Tn.$$typeof === Ha && uh(Tn) === Gn.type) - ) { - _(kn, Gn.sibling), - (ln = $(Gn, yn.props)), - (ln.ref = sh$1(kn, Gn, yn)), - (ln.return = kn), - (kn = ln) - break e - } - _(kn, Gn) - break - } else o(kn, Gn) - Gn = Gn.sibling - } - yn.type === ya - ? ((ln = Ah(yn.props.children, kn.mode, Cn, yn.key)), (ln.return = kn), (kn = ln)) - : ((Cn = yh(yn.type, yn.key, yn.props, null, kn.mode, Cn)), - (Cn.ref = sh$1(kn, ln, yn)), - (Cn.return = kn), - (kn = Cn)) - } - return nn(kn) - case wa: - e: { - for (Gn = yn.key; ln !== null; ) { - if (ln.key === Gn) - if ( - ln.tag === 4 && - ln.stateNode.containerInfo === yn.containerInfo && - ln.stateNode.implementation === yn.implementation - ) { - _(kn, ln.sibling), (ln = $(ln, yn.children || [])), (ln.return = kn), (kn = ln) - break e - } else { - _(kn, ln) - break - } - else o(kn, ln) - ln = ln.sibling - } - ;(ln = zh(yn, kn.mode, Cn)), (ln.return = kn), (kn = ln) - } - return nn(kn) - case Ha: - return (Gn = yn._init), Bn(kn, ln, Gn(yn._payload), Cn) - } - if (eb(yn)) return xn(kn, ln, yn, Cn) - if (Ka(yn)) return mn(kn, ln, yn, Cn) - th(kn, yn) - } - return (typeof yn == 'string' && yn !== '') || typeof yn == 'number' - ? ((yn = '' + yn), - ln !== null && ln.tag === 6 - ? (_(kn, ln.sibling), (ln = $(ln, yn)), (ln.return = kn), (kn = ln)) - : (_(kn, ln), (ln = xh(yn, kn.mode, Cn)), (ln.return = kn), (kn = ln)), - nn(kn)) - : _(kn, ln) - } - return Bn -} -var Bh = vh(!0), - Ch = vh(!1), - Dh = {}, - Eh = Uf(Dh), - Fh = Uf(Dh), - Gh = Uf(Dh) -function Hh(e) { - if (e === Dh) throw Error(p(174)) - return e -} -function Ih(e, o) { - switch ((G(Gh, o), G(Fh, e), G(Eh, Dh), (e = o.nodeType), e)) { - case 9: - case 11: - o = (o = o.documentElement) ? o.namespaceURI : lb(null, '') - break - default: - ;(e = e === 8 ? o.parentNode : o), - (o = e.namespaceURI || null), - (e = e.tagName), - (o = lb(o, e)) - } - E(Eh), G(Eh, o) -} -function Jh() { - E(Eh), E(Fh), E(Gh) -} -function Kh$1(e) { - Hh(Gh.current) - var o = Hh(Eh.current), - _ = lb(o, e.type) - o !== _ && (G(Fh, e), G(Eh, _)) -} -function Lh(e) { - Fh.current === e && (E(Eh), E(Fh)) -} -var M = Uf(0) -function Mh(e) { - for (var o = e; o !== null; ) { - if (o.tag === 13) { - var _ = o.memoizedState - if (_ !== null && ((_ = _.dehydrated), _ === null || _.data === '$?' || _.data === '$!')) - return o - } else if (o.tag === 19 && o.memoizedProps.revealOrder !== void 0) { - if (o.flags & 128) return o - } else if (o.child !== null) { - ;(o.child.return = o), (o = o.child) - continue - } - if (o === e) break - for (; o.sibling === null; ) { - if (o.return === null || o.return === e) return null - o = o.return - } - ;(o.sibling.return = o.return), (o = o.sibling) - } - return null -} -var Nh = [] -function Oh() { - for (var e = 0; e < Nh.length; e++) Nh[e]._workInProgressVersionPrimary = null - Nh.length = 0 -} -var Ph = ua.ReactCurrentDispatcher, - Qh = ua.ReactCurrentBatchConfig, - Rh = 0, - N = null, - O = null, - P = null, - Sh = !1, - Th = !1, - Uh = 0, - Vh = 0 -function Q() { - throw Error(p(321)) -} -function Wh(e, o) { - if (o === null) return !1 - for (var _ = 0; _ < o.length && _ < e.length; _++) if (!He(e[_], o[_])) return !1 - return !0 -} -function Xh(e, o, _, b, $, en) { - if ( - ((Rh = en), - (N = o), - (o.memoizedState = null), - (o.updateQueue = null), - (o.lanes = 0), - (Ph.current = e === null || e.memoizedState === null ? Yh : Zh), - (e = _(b, $)), - Th) - ) { - en = 0 - do { - if (((Th = !1), (Uh = 0), 25 <= en)) throw Error(p(301)) - ;(en += 1), (P = O = null), (o.updateQueue = null), (Ph.current = $h), (e = _(b, $)) - } while (Th) - } - if ( - ((Ph.current = ai), - (o = O !== null && O.next !== null), - (Rh = 0), - (P = O = N = null), - (Sh = !1), - o) - ) - throw Error(p(300)) - return e -} -function bi() { - var e = Uh !== 0 - return (Uh = 0), e -} -function ci() { - var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null } - return P === null ? (N.memoizedState = P = e) : (P = P.next = e), P -} -function di() { - if (O === null) { - var e = N.alternate - e = e !== null ? e.memoizedState : null - } else e = O.next - var o = P === null ? N.memoizedState : P.next - if (o !== null) (P = o), (O = e) - else { - if (e === null) throw Error(p(310)) - ;(O = e), - (e = { - memoizedState: O.memoizedState, - baseState: O.baseState, - baseQueue: O.baseQueue, - queue: O.queue, - next: null, - }), - P === null ? (N.memoizedState = P = e) : (P = P.next = e) - } - return P -} -function ei(e, o) { - return typeof o == 'function' ? o(e) : o -} -function fi(e) { - var o = di(), - _ = o.queue - if (_ === null) throw Error(p(311)) - _.lastRenderedReducer = e - var b = O, - $ = b.baseQueue, - en = _.pending - if (en !== null) { - if ($ !== null) { - var nn = $.next - ;($.next = en.next), (en.next = nn) - } - ;(b.baseQueue = $ = en), (_.pending = null) - } - if ($ !== null) { - ;(en = $.next), (b = b.baseState) - var sn = (nn = null), - gn = null, - In = en - do { - var Jn = In.lane - if ((Rh & Jn) === Jn) - gn !== null && - (gn = gn.next = - { - lane: 0, - action: In.action, - hasEagerState: In.hasEagerState, - eagerState: In.eagerState, - next: null, - }), - (b = In.hasEagerState ? In.eagerState : e(b, In.action)) - else { - var qn = { - lane: Jn, - action: In.action, - hasEagerState: In.hasEagerState, - eagerState: In.eagerState, - next: null, - } - gn === null ? ((sn = gn = qn), (nn = b)) : (gn = gn.next = qn), (N.lanes |= Jn), (hh |= Jn) - } - In = In.next - } while (In !== null && In !== en) - gn === null ? (nn = b) : (gn.next = sn), - He(b, o.memoizedState) || (Ug = !0), - (o.memoizedState = b), - (o.baseState = nn), - (o.baseQueue = gn), - (_.lastRenderedState = b) - } - if (((e = _.interleaved), e !== null)) { - $ = e - do (en = $.lane), (N.lanes |= en), (hh |= en), ($ = $.next) - while ($ !== e) - } else $ === null && (_.lanes = 0) - return [o.memoizedState, _.dispatch] -} -function gi(e) { - var o = di(), - _ = o.queue - if (_ === null) throw Error(p(311)) - _.lastRenderedReducer = e - var b = _.dispatch, - $ = _.pending, - en = o.memoizedState - if ($ !== null) { - _.pending = null - var nn = ($ = $.next) - do (en = e(en, nn.action)), (nn = nn.next) - while (nn !== $) - He(en, o.memoizedState) || (Ug = !0), - (o.memoizedState = en), - o.baseQueue === null && (o.baseState = en), - (_.lastRenderedState = en) - } - return [en, b] -} -function hi() {} -function ii(e, o) { - var _ = N, - b = di(), - $ = o(), - en = !He(b.memoizedState, $) - if ( - (en && ((b.memoizedState = $), (Ug = !0)), - (b = b.queue), - ji(ki.bind(null, _, b, e), [e]), - b.getSnapshot !== o || en || (P !== null && P.memoizedState.tag & 1)) - ) { - if (((_.flags |= 2048), li(9, mi.bind(null, _, b, $, o), void 0, null), R === null)) - throw Error(p(349)) - Rh & 30 || ni(_, o, $) - } - return $ -} -function ni(e, o, _) { - ;(e.flags |= 16384), - (e = { getSnapshot: o, value: _ }), - (o = N.updateQueue), - o === null - ? ((o = { lastEffect: null, stores: null }), (N.updateQueue = o), (o.stores = [e])) - : ((_ = o.stores), _ === null ? (o.stores = [e]) : _.push(e)) -} -function mi(e, o, _, b) { - ;(o.value = _), (o.getSnapshot = b), oi(o) && pi(e) -} -function ki(e, o, _) { - return _(function () { - oi(o) && pi(e) - }) -} -function oi(e) { - var o = e.getSnapshot - e = e.value - try { - var _ = o() - return !He(e, _) - } catch { - return !0 - } -} -function pi(e) { - var o = Zg(e, 1) - o !== null && mh(o, e, 1, -1) -} -function qi(e) { - var o = ci() - return ( - typeof e == 'function' && (e = e()), - (o.memoizedState = o.baseState = e), - (e = { - pending: null, - interleaved: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: ei, - lastRenderedState: e, - }), - (o.queue = e), - (e = e.dispatch = ri.bind(null, N, e)), - [o.memoizedState, e] - ) -} -function li(e, o, _, b) { - return ( - (e = { tag: e, create: o, destroy: _, deps: b, next: null }), - (o = N.updateQueue), - o === null - ? ((o = { lastEffect: null, stores: null }), (N.updateQueue = o), (o.lastEffect = e.next = e)) - : ((_ = o.lastEffect), - _ === null - ? (o.lastEffect = e.next = e) - : ((b = _.next), (_.next = e), (e.next = b), (o.lastEffect = e))), - e - ) -} -function si() { - return di().memoizedState -} -function ti(e, o, _, b) { - var $ = ci() - ;(N.flags |= e), ($.memoizedState = li(1 | o, _, void 0, b === void 0 ? null : b)) -} -function ui(e, o, _, b) { - var $ = di() - b = b === void 0 ? null : b - var en = void 0 - if (O !== null) { - var nn = O.memoizedState - if (((en = nn.destroy), b !== null && Wh(b, nn.deps))) { - $.memoizedState = li(o, _, en, b) - return - } - } - ;(N.flags |= e), ($.memoizedState = li(1 | o, _, en, b)) -} -function vi(e, o) { - return ti(8390656, 8, e, o) -} -function ji(e, o) { - return ui(2048, 8, e, o) -} -function wi(e, o) { - return ui(4, 2, e, o) -} -function xi(e, o) { - return ui(4, 4, e, o) -} -function yi(e, o) { - if (typeof o == 'function') - return ( - (e = e()), - o(e), - function () { - o(null) - } - ) - if (o != null) - return ( - (e = e()), - (o.current = e), - function () { - o.current = null - } - ) -} -function zi(e, o, _) { - return (_ = _ != null ? _.concat([e]) : null), ui(4, 4, yi.bind(null, o, e), _) -} -function Ai() {} -function Bi(e, o) { - var _ = di() - o = o === void 0 ? null : o - var b = _.memoizedState - return b !== null && o !== null && Wh(o, b[1]) ? b[0] : ((_.memoizedState = [e, o]), e) -} -function Ci(e, o) { - var _ = di() - o = o === void 0 ? null : o - var b = _.memoizedState - return b !== null && o !== null && Wh(o, b[1]) ? b[0] : ((e = e()), (_.memoizedState = [e, o]), e) -} -function Di(e, o, _) { - return Rh & 21 - ? (He(_, o) || ((_ = yc()), (N.lanes |= _), (hh |= _), (e.baseState = !0)), o) - : (e.baseState && ((e.baseState = !1), (Ug = !0)), (e.memoizedState = _)) -} -function Ei(e, o) { - var _ = C - ;(C = _ !== 0 && 4 > _ ? _ : 4), e(!0) - var b = Qh.transition - Qh.transition = {} - try { - e(!1), o() - } finally { - ;(C = _), (Qh.transition = b) - } -} -function Fi() { - return di().memoizedState -} -function Gi(e, o, _) { - var b = lh(e) - if (((_ = { lane: b, action: _, hasEagerState: !1, eagerState: null, next: null }), Hi(e))) - Ii(o, _) - else if (((_ = Yg(e, o, _, b)), _ !== null)) { - var $ = L() - mh(_, e, b, $), Ji(_, o, b) - } -} -function ri(e, o, _) { - var b = lh(e), - $ = { lane: b, action: _, hasEagerState: !1, eagerState: null, next: null } - if (Hi(e)) Ii(o, $) - else { - var en = e.alternate - if ( - e.lanes === 0 && - (en === null || en.lanes === 0) && - ((en = o.lastRenderedReducer), en !== null) - ) - try { - var nn = o.lastRenderedState, - sn = en(nn, _) - if ((($.hasEagerState = !0), ($.eagerState = sn), He(sn, nn))) { - var gn = o.interleaved - gn === null ? (($.next = $), Xg(o)) : (($.next = gn.next), (gn.next = $)), - (o.interleaved = $) - return - } - } catch { - } finally { - } - ;(_ = Yg(e, o, $, b)), _ !== null && (($ = L()), mh(_, e, b, $), Ji(_, o, b)) - } -} -function Hi(e) { - var o = e.alternate - return e === N || (o !== null && o === N) -} -function Ii(e, o) { - Th = Sh = !0 - var _ = e.pending - _ === null ? (o.next = o) : ((o.next = _.next), (_.next = o)), (e.pending = o) -} -function Ji(e, o, _) { - if (_ & 4194240) { - var b = o.lanes - ;(b &= e.pendingLanes), (_ |= b), (o.lanes = _), Cc(e, _) - } -} -var ai = { - readContext: Vg, - useCallback: Q, - useContext: Q, - useEffect: Q, - useImperativeHandle: Q, - useInsertionEffect: Q, - useLayoutEffect: Q, - useMemo: Q, - useReducer: Q, - useRef: Q, - useState: Q, - useDebugValue: Q, - useDeferredValue: Q, - useTransition: Q, - useMutableSource: Q, - useSyncExternalStore: Q, - useId: Q, - unstable_isNewReconciler: !1, - }, - Yh = { - readContext: Vg, - useCallback: function (e, o) { - return (ci().memoizedState = [e, o === void 0 ? null : o]), e - }, - useContext: Vg, - useEffect: vi, - useImperativeHandle: function (e, o, _) { - return (_ = _ != null ? _.concat([e]) : null), ti(4194308, 4, yi.bind(null, o, e), _) - }, - useLayoutEffect: function (e, o) { - return ti(4194308, 4, e, o) - }, - useInsertionEffect: function (e, o) { - return ti(4, 2, e, o) - }, - useMemo: function (e, o) { - var _ = ci() - return (o = o === void 0 ? null : o), (e = e()), (_.memoizedState = [e, o]), e - }, - useReducer: function (e, o, _) { - var b = ci() - return ( - (o = _ !== void 0 ? _(o) : o), - (b.memoizedState = b.baseState = o), - (e = { - pending: null, - interleaved: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: e, - lastRenderedState: o, - }), - (b.queue = e), - (e = e.dispatch = Gi.bind(null, N, e)), - [b.memoizedState, e] - ) - }, - useRef: function (e) { - var o = ci() - return (e = { current: e }), (o.memoizedState = e) - }, - useState: qi, - useDebugValue: Ai, - useDeferredValue: function (e) { - return (ci().memoizedState = e) - }, - useTransition: function () { - var e = qi(!1), - o = e[0] - return (e = Ei.bind(null, e[1])), (ci().memoizedState = e), [o, e] - }, - useMutableSource: function () {}, - useSyncExternalStore: function (e, o, _) { - var b = N, - $ = ci() - if (I) { - if (_ === void 0) throw Error(p(407)) - _ = _() - } else { - if (((_ = o()), R === null)) throw Error(p(349)) - Rh & 30 || ni(b, o, _) - } - $.memoizedState = _ - var en = { value: _, getSnapshot: o } - return ( - ($.queue = en), - vi(ki.bind(null, b, en, e), [e]), - (b.flags |= 2048), - li(9, mi.bind(null, b, en, _, o), void 0, null), - _ - ) - }, - useId: function () { - var e = ci(), - o = R.identifierPrefix - if (I) { - var _ = sg, - b = rg - ;(_ = (b & ~(1 << (32 - oc(b) - 1))).toString(32) + _), - (o = ':' + o + 'R' + _), - (_ = Uh++), - 0 < _ && (o += 'H' + _.toString(32)), - (o += ':') - } else (_ = Vh++), (o = ':' + o + 'r' + _.toString(32) + ':') - return (e.memoizedState = o) - }, - unstable_isNewReconciler: !1, - }, - Zh = { - readContext: Vg, - useCallback: Bi, - useContext: Vg, - useEffect: ji, - useImperativeHandle: zi, - useInsertionEffect: wi, - useLayoutEffect: xi, - useMemo: Ci, - useReducer: fi, - useRef: si, - useState: function () { - return fi(ei) - }, - useDebugValue: Ai, - useDeferredValue: function (e) { - var o = di() - return Di(o, O.memoizedState, e) - }, - useTransition: function () { - var e = fi(ei)[0], - o = di().memoizedState - return [e, o] - }, - useMutableSource: hi, - useSyncExternalStore: ii, - useId: Fi, - unstable_isNewReconciler: !1, - }, - $h = { - readContext: Vg, - useCallback: Bi, - useContext: Vg, - useEffect: ji, - useImperativeHandle: zi, - useInsertionEffect: wi, - useLayoutEffect: xi, - useMemo: Ci, - useReducer: gi, - useRef: si, - useState: function () { - return gi(ei) - }, - useDebugValue: Ai, - useDeferredValue: function (e) { - var o = di() - return O === null ? (o.memoizedState = e) : Di(o, O.memoizedState, e) - }, - useTransition: function () { - var e = gi(ei)[0], - o = di().memoizedState - return [e, o] - }, - useMutableSource: hi, - useSyncExternalStore: ii, - useId: Fi, - unstable_isNewReconciler: !1, - } -function Ki(e, o) { - try { - var _ = '', - b = o - do (_ += Pa(b)), (b = b.return) - while (b) - var $ = _ - } catch (en) { - $ = - ` -Error generating stack: ` + - en.message + - ` -` + - en.stack - } - return { value: e, source: o, stack: $, digest: null } -} -function Li(e, o, _) { - return { value: e, source: null, stack: _ ?? null, digest: o ?? null } -} -function Mi(e, o) { - try { - console.error(o.value) - } catch (_) { - setTimeout(function () { - throw _ - }) - } -} -var Ni = typeof WeakMap == 'function' ? WeakMap : Map -function Oi(e, o, _) { - ;(_ = ch(-1, _)), (_.tag = 3), (_.payload = { element: null }) - var b = o.value - return ( - (_.callback = function () { - Pi$1 || ((Pi$1 = !0), (Qi = b)), Mi(e, o) - }), - _ - ) -} -function Ri(e, o, _) { - ;(_ = ch(-1, _)), (_.tag = 3) - var b = e.type.getDerivedStateFromError - if (typeof b == 'function') { - var $ = o.value - ;(_.payload = function () { - return b($) - }), - (_.callback = function () { - Mi(e, o) - }) - } - var en = e.stateNode - return ( - en !== null && - typeof en.componentDidCatch == 'function' && - (_.callback = function () { - Mi(e, o), typeof b != 'function' && (Si === null ? (Si = new Set([this])) : Si.add(this)) - var nn = o.stack - this.componentDidCatch(o.value, { componentStack: nn !== null ? nn : '' }) - }), - _ - ) -} -function Ti(e, o, _) { - var b = e.pingCache - if (b === null) { - b = e.pingCache = new Ni() - var $ = new Set() - b.set(o, $) - } else ($ = b.get(o)), $ === void 0 && (($ = new Set()), b.set(o, $)) - $.has(_) || ($.add(_), (e = Ui.bind(null, e, o, _)), o.then(e, e)) -} -function Vi(e) { - do { - var o - if ( - ((o = e.tag === 13) && ((o = e.memoizedState), (o = o !== null ? o.dehydrated !== null : !0)), - o) - ) - return e - e = e.return - } while (e !== null) - return null -} -function Wi(e, o, _, b, $) { - return e.mode & 1 - ? ((e.flags |= 65536), (e.lanes = $), e) - : (e === o - ? (e.flags |= 65536) - : ((e.flags |= 128), - (_.flags |= 131072), - (_.flags &= -52805), - _.tag === 1 && - (_.alternate === null ? (_.tag = 17) : ((o = ch(-1, 1)), (o.tag = 2), dh(_, o, 1))), - (_.lanes |= 1)), - e) -} -var Xi = ua.ReactCurrentOwner, - Ug = !1 -function Yi(e, o, _, b) { - o.child = e === null ? Ch(o, null, _, b) : Bh(o, e.child, _, b) -} -function Zi(e, o, _, b, $) { - _ = _.render - var en = o.ref - return ( - Tg(o, $), - (b = Xh(e, o, _, b, en, $)), - (_ = bi()), - e !== null && !Ug - ? ((o.updateQueue = e.updateQueue), (o.flags &= -2053), (e.lanes &= ~$), $i(e, o, $)) - : (I && _ && vg(o), (o.flags |= 1), Yi(e, o, b, $), o.child) - ) -} -function aj(e, o, _, b, $) { - if (e === null) { - var en = _.type - return typeof en == 'function' && - !bj(en) && - en.defaultProps === void 0 && - _.compare === null && - _.defaultProps === void 0 - ? ((o.tag = 15), (o.type = en), cj(e, o, en, b, $)) - : ((e = yh(_.type, null, b, o, o.mode, $)), (e.ref = o.ref), (e.return = o), (o.child = e)) - } - if (((en = e.child), !(e.lanes & $))) { - var nn = en.memoizedProps - if (((_ = _.compare), (_ = _ !== null ? _ : Ie), _(nn, b) && e.ref === o.ref)) - return $i(e, o, $) - } - return (o.flags |= 1), (e = wh(en, b)), (e.ref = o.ref), (e.return = o), (o.child = e) -} -function cj(e, o, _, b, $) { - if (e !== null) { - var en = e.memoizedProps - if (Ie(en, b) && e.ref === o.ref) - if (((Ug = !1), (o.pendingProps = b = en), (e.lanes & $) !== 0)) e.flags & 131072 && (Ug = !0) - else return (o.lanes = e.lanes), $i(e, o, $) - } - return dj(e, o, _, b, $) -} -function ej(e, o, _) { - var b = o.pendingProps, - $ = b.children, - en = e !== null ? e.memoizedState : null - if (b.mode === 'hidden') - if (!(o.mode & 1)) - (o.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), G(fj, gj), (gj |= _) - else { - if (!(_ & 1073741824)) - return ( - (e = en !== null ? en.baseLanes | _ : _), - (o.lanes = o.childLanes = 1073741824), - (o.memoizedState = { baseLanes: e, cachePool: null, transitions: null }), - (o.updateQueue = null), - G(fj, gj), - (gj |= e), - null - ) - ;(o.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), - (b = en !== null ? en.baseLanes : _), - G(fj, gj), - (gj |= b) - } - else - en !== null ? ((b = en.baseLanes | _), (o.memoizedState = null)) : (b = _), G(fj, gj), (gj |= b) - return Yi(e, o, $, _), o.child -} -function hj(e, o) { - var _ = o.ref - ;((e === null && _ !== null) || (e !== null && e.ref !== _)) && - ((o.flags |= 512), (o.flags |= 2097152)) -} -function dj(e, o, _, b, $) { - var en = Zf(_) ? Xf : H.current - return ( - (en = Yf(o, en)), - Tg(o, $), - (_ = Xh(e, o, _, b, en, $)), - (b = bi()), - e !== null && !Ug - ? ((o.updateQueue = e.updateQueue), (o.flags &= -2053), (e.lanes &= ~$), $i(e, o, $)) - : (I && b && vg(o), (o.flags |= 1), Yi(e, o, _, $), o.child) - ) -} -function ij(e, o, _, b, $) { - if (Zf(_)) { - var en = !0 - cg(o) - } else en = !1 - if ((Tg(o, $), o.stateNode === null)) jj(e, o), ph(o, _, b), rh$1(o, _, b, $), (b = !0) - else if (e === null) { - var nn = o.stateNode, - sn = o.memoizedProps - nn.props = sn - var gn = nn.context, - In = _.contextType - typeof In == 'object' && In !== null - ? (In = Vg(In)) - : ((In = Zf(_) ? Xf : H.current), (In = Yf(o, In))) - var Jn = _.getDerivedStateFromProps, - qn = typeof Jn == 'function' || typeof nn.getSnapshotBeforeUpdate == 'function' - qn || - (typeof nn.UNSAFE_componentWillReceiveProps != 'function' && - typeof nn.componentWillReceiveProps != 'function') || - ((sn !== b || gn !== In) && qh(o, nn, b, In)), - ($g = !1) - var Kn = o.memoizedState - ;(nn.state = Kn), - gh(o, b, nn, $), - (gn = o.memoizedState), - sn !== b || Kn !== gn || Wf.current || $g - ? (typeof Jn == 'function' && (kh(o, _, Jn, b), (gn = o.memoizedState)), - (sn = $g || oh(o, _, sn, b, Kn, gn, In)) - ? (qn || - (typeof nn.UNSAFE_componentWillMount != 'function' && - typeof nn.componentWillMount != 'function') || - (typeof nn.componentWillMount == 'function' && nn.componentWillMount(), - typeof nn.UNSAFE_componentWillMount == 'function' && - nn.UNSAFE_componentWillMount()), - typeof nn.componentDidMount == 'function' && (o.flags |= 4194308)) - : (typeof nn.componentDidMount == 'function' && (o.flags |= 4194308), - (o.memoizedProps = b), - (o.memoizedState = gn)), - (nn.props = b), - (nn.state = gn), - (nn.context = In), - (b = sn)) - : (typeof nn.componentDidMount == 'function' && (o.flags |= 4194308), (b = !1)) - } else { - ;(nn = o.stateNode), - bh(e, o), - (sn = o.memoizedProps), - (In = o.type === o.elementType ? sn : Lg(o.type, sn)), - (nn.props = In), - (qn = o.pendingProps), - (Kn = nn.context), - (gn = _.contextType), - typeof gn == 'object' && gn !== null - ? (gn = Vg(gn)) - : ((gn = Zf(_) ? Xf : H.current), (gn = Yf(o, gn))) - var an = _.getDerivedStateFromProps - ;(Jn = typeof an == 'function' || typeof nn.getSnapshotBeforeUpdate == 'function') || - (typeof nn.UNSAFE_componentWillReceiveProps != 'function' && - typeof nn.componentWillReceiveProps != 'function') || - ((sn !== qn || Kn !== gn) && qh(o, nn, b, gn)), - ($g = !1), - (Kn = o.memoizedState), - (nn.state = Kn), - gh(o, b, nn, $) - var xn = o.memoizedState - sn !== qn || Kn !== xn || Wf.current || $g - ? (typeof an == 'function' && (kh(o, _, an, b), (xn = o.memoizedState)), - (In = $g || oh(o, _, In, b, Kn, xn, gn) || !1) - ? (Jn || - (typeof nn.UNSAFE_componentWillUpdate != 'function' && - typeof nn.componentWillUpdate != 'function') || - (typeof nn.componentWillUpdate == 'function' && nn.componentWillUpdate(b, xn, gn), - typeof nn.UNSAFE_componentWillUpdate == 'function' && - nn.UNSAFE_componentWillUpdate(b, xn, gn)), - typeof nn.componentDidUpdate == 'function' && (o.flags |= 4), - typeof nn.getSnapshotBeforeUpdate == 'function' && (o.flags |= 1024)) - : (typeof nn.componentDidUpdate != 'function' || - (sn === e.memoizedProps && Kn === e.memoizedState) || - (o.flags |= 4), - typeof nn.getSnapshotBeforeUpdate != 'function' || - (sn === e.memoizedProps && Kn === e.memoizedState) || - (o.flags |= 1024), - (o.memoizedProps = b), - (o.memoizedState = xn)), - (nn.props = b), - (nn.state = xn), - (nn.context = gn), - (b = In)) - : (typeof nn.componentDidUpdate != 'function' || - (sn === e.memoizedProps && Kn === e.memoizedState) || - (o.flags |= 4), - typeof nn.getSnapshotBeforeUpdate != 'function' || - (sn === e.memoizedProps && Kn === e.memoizedState) || - (o.flags |= 1024), - (b = !1)) - } - return kj(e, o, _, b, en, $) -} -function kj(e, o, _, b, $, en) { - hj(e, o) - var nn = (o.flags & 128) !== 0 - if (!b && !nn) return $ && dg(o, _, !1), $i(e, o, en) - ;(b = o.stateNode), (Xi.current = o) - var sn = nn && typeof _.getDerivedStateFromError != 'function' ? null : b.render() - return ( - (o.flags |= 1), - e !== null && nn - ? ((o.child = Bh(o, e.child, null, en)), (o.child = Bh(o, null, sn, en))) - : Yi(e, o, sn, en), - (o.memoizedState = b.state), - $ && dg(o, _, !0), - o.child - ) -} -function lj(e) { - var o = e.stateNode - o.pendingContext - ? ag(e, o.pendingContext, o.pendingContext !== o.context) - : o.context && ag(e, o.context, !1), - Ih(e, o.containerInfo) -} -function mj(e, o, _, b, $) { - return Ig(), Jg($), (o.flags |= 256), Yi(e, o, _, b), o.child -} -var nj = { dehydrated: null, treeContext: null, retryLane: 0 } -function oj(e) { - return { baseLanes: e, cachePool: null, transitions: null } -} -function pj(e, o, _) { - var b = o.pendingProps, - $ = M.current, - en = !1, - nn = (o.flags & 128) !== 0, - sn - if ( - ((sn = nn) || (sn = e !== null && e.memoizedState === null ? !1 : ($ & 2) !== 0), - sn ? ((en = !0), (o.flags &= -129)) : (e === null || e.memoizedState !== null) && ($ |= 1), - G(M, $ & 1), - e === null) - ) - return ( - Eg(o), - (e = o.memoizedState), - e !== null && ((e = e.dehydrated), e !== null) - ? (o.mode & 1 ? (e.data === '$!' ? (o.lanes = 8) : (o.lanes = 1073741824)) : (o.lanes = 1), - null) - : ((nn = b.children), - (e = b.fallback), - en - ? ((b = o.mode), - (en = o.child), - (nn = { mode: 'hidden', children: nn }), - !(b & 1) && en !== null - ? ((en.childLanes = 0), (en.pendingProps = nn)) - : (en = qj(nn, b, 0, null)), - (e = Ah(e, b, _, null)), - (en.return = o), - (e.return = o), - (en.sibling = e), - (o.child = en), - (o.child.memoizedState = oj(_)), - (o.memoizedState = nj), - e) - : rj(o, nn)) - ) - if ((($ = e.memoizedState), $ !== null && ((sn = $.dehydrated), sn !== null))) - return sj(e, o, nn, b, sn, $, _) - if (en) { - ;(en = b.fallback), (nn = o.mode), ($ = e.child), (sn = $.sibling) - var gn = { mode: 'hidden', children: b.children } - return ( - !(nn & 1) && o.child !== $ - ? ((b = o.child), (b.childLanes = 0), (b.pendingProps = gn), (o.deletions = null)) - : ((b = wh($, gn)), (b.subtreeFlags = $.subtreeFlags & 14680064)), - sn !== null ? (en = wh(sn, en)) : ((en = Ah(en, nn, _, null)), (en.flags |= 2)), - (en.return = o), - (b.return = o), - (b.sibling = en), - (o.child = b), - (b = en), - (en = o.child), - (nn = e.child.memoizedState), - (nn = - nn === null - ? oj(_) - : { baseLanes: nn.baseLanes | _, cachePool: null, transitions: nn.transitions }), - (en.memoizedState = nn), - (en.childLanes = e.childLanes & ~_), - (o.memoizedState = nj), - b - ) - } - return ( - (en = e.child), - (e = en.sibling), - (b = wh(en, { mode: 'visible', children: b.children })), - !(o.mode & 1) && (b.lanes = _), - (b.return = o), - (b.sibling = null), - e !== null && - ((_ = o.deletions), _ === null ? ((o.deletions = [e]), (o.flags |= 16)) : _.push(e)), - (o.child = b), - (o.memoizedState = null), - b - ) -} -function rj(e, o) { - return (o = qj({ mode: 'visible', children: o }, e.mode, 0, null)), (o.return = e), (e.child = o) -} -function tj(e, o, _, b) { - return ( - b !== null && Jg(b), - Bh(o, e.child, null, _), - (e = rj(o, o.pendingProps.children)), - (e.flags |= 2), - (o.memoizedState = null), - e - ) -} -function sj(e, o, _, b, $, en, nn) { - if (_) - return o.flags & 256 - ? ((o.flags &= -257), (b = Li(Error(p(422)))), tj(e, o, nn, b)) - : o.memoizedState !== null - ? ((o.child = e.child), (o.flags |= 128), null) - : ((en = b.fallback), - ($ = o.mode), - (b = qj({ mode: 'visible', children: b.children }, $, 0, null)), - (en = Ah(en, $, nn, null)), - (en.flags |= 2), - (b.return = o), - (en.return = o), - (b.sibling = en), - (o.child = b), - o.mode & 1 && Bh(o, e.child, null, nn), - (o.child.memoizedState = oj(nn)), - (o.memoizedState = nj), - en) - if (!(o.mode & 1)) return tj(e, o, nn, null) - if ($.data === '$!') { - if (((b = $.nextSibling && $.nextSibling.dataset), b)) var sn = b.dgst - return (b = sn), (en = Error(p(419))), (b = Li(en, b, void 0)), tj(e, o, nn, b) - } - if (((sn = (nn & e.childLanes) !== 0), Ug || sn)) { - if (((b = R), b !== null)) { - switch (nn & -nn) { - case 4: - $ = 2 - break - case 16: - $ = 8 - break - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - case 67108864: - $ = 32 - break - case 536870912: - $ = 268435456 - break - default: - $ = 0 - } - ;($ = $ & (b.suspendedLanes | nn) ? 0 : $), - $ !== 0 && $ !== en.retryLane && ((en.retryLane = $), Zg(e, $), mh(b, e, $, -1)) - } - return uj(), (b = Li(Error(p(421)))), tj(e, o, nn, b) - } - return $.data === '$?' - ? ((o.flags |= 128), (o.child = e.child), (o = vj.bind(null, e)), ($._reactRetry = o), null) - : ((e = en.treeContext), - (yg = Lf($.nextSibling)), - (xg = o), - (I = !0), - (zg = null), - e !== null && - ((og[pg++] = rg), - (og[pg++] = sg), - (og[pg++] = qg), - (rg = e.id), - (sg = e.overflow), - (qg = o)), - (o = rj(o, b.children)), - (o.flags |= 4096), - o) -} -function wj(e, o, _) { - e.lanes |= o - var b = e.alternate - b !== null && (b.lanes |= o), Sg(e.return, o, _) -} -function xj(e, o, _, b, $) { - var en = e.memoizedState - en === null - ? (e.memoizedState = { - isBackwards: o, - rendering: null, - renderingStartTime: 0, - last: b, - tail: _, - tailMode: $, - }) - : ((en.isBackwards = o), - (en.rendering = null), - (en.renderingStartTime = 0), - (en.last = b), - (en.tail = _), - (en.tailMode = $)) -} -function yj(e, o, _) { - var b = o.pendingProps, - $ = b.revealOrder, - en = b.tail - if ((Yi(e, o, b.children, _), (b = M.current), b & 2)) (b = (b & 1) | 2), (o.flags |= 128) - else { - if (e !== null && e.flags & 128) - e: for (e = o.child; e !== null; ) { - if (e.tag === 13) e.memoizedState !== null && wj(e, _, o) - else if (e.tag === 19) wj(e, _, o) - else if (e.child !== null) { - ;(e.child.return = e), (e = e.child) - continue - } - if (e === o) break e - for (; e.sibling === null; ) { - if (e.return === null || e.return === o) break e - e = e.return - } - ;(e.sibling.return = e.return), (e = e.sibling) - } - b &= 1 - } - if ((G(M, b), !(o.mode & 1))) o.memoizedState = null - else - switch ($) { - case 'forwards': - for (_ = o.child, $ = null; _ !== null; ) - (e = _.alternate), e !== null && Mh(e) === null && ($ = _), (_ = _.sibling) - ;(_ = $), - _ === null ? (($ = o.child), (o.child = null)) : (($ = _.sibling), (_.sibling = null)), - xj(o, !1, $, _, en) - break - case 'backwards': - for (_ = null, $ = o.child, o.child = null; $ !== null; ) { - if (((e = $.alternate), e !== null && Mh(e) === null)) { - o.child = $ - break - } - ;(e = $.sibling), ($.sibling = _), (_ = $), ($ = e) - } - xj(o, !0, _, null, en) - break - case 'together': - xj(o, !1, null, null, void 0) - break - default: - o.memoizedState = null - } - return o.child -} -function jj(e, o) { - !(o.mode & 1) && e !== null && ((e.alternate = null), (o.alternate = null), (o.flags |= 2)) -} -function $i(e, o, _) { - if ((e !== null && (o.dependencies = e.dependencies), (hh |= o.lanes), !(_ & o.childLanes))) - return null - if (e !== null && o.child !== e.child) throw Error(p(153)) - if (o.child !== null) { - for (e = o.child, _ = wh(e, e.pendingProps), o.child = _, _.return = o; e.sibling !== null; ) - (e = e.sibling), (_ = _.sibling = wh(e, e.pendingProps)), (_.return = o) - _.sibling = null - } - return o.child -} -function zj(e, o, _) { - switch (o.tag) { - case 3: - lj(o), Ig() - break - case 5: - Kh$1(o) - break - case 1: - Zf(o.type) && cg(o) - break - case 4: - Ih(o, o.stateNode.containerInfo) - break - case 10: - var b = o.type._context, - $ = o.memoizedProps.value - G(Mg, b._currentValue), (b._currentValue = $) - break - case 13: - if (((b = o.memoizedState), b !== null)) - return b.dehydrated !== null - ? (G(M, M.current & 1), (o.flags |= 128), null) - : _ & o.child.childLanes - ? pj(e, o, _) - : (G(M, M.current & 1), (e = $i(e, o, _)), e !== null ? e.sibling : null) - G(M, M.current & 1) - break - case 19: - if (((b = (_ & o.childLanes) !== 0), e.flags & 128)) { - if (b) return yj(e, o, _) - o.flags |= 128 - } - if ( - (($ = o.memoizedState), - $ !== null && (($.rendering = null), ($.tail = null), ($.lastEffect = null)), - G(M, M.current), - b) - ) - break - return null - case 22: - case 23: - return (o.lanes = 0), ej(e, o, _) - } - return $i(e, o, _) -} -var Aj, Bj, Cj, Dj -Aj = function (e, o) { - for (var _ = o.child; _ !== null; ) { - if (_.tag === 5 || _.tag === 6) e.appendChild(_.stateNode) - else if (_.tag !== 4 && _.child !== null) { - ;(_.child.return = _), (_ = _.child) - continue - } - if (_ === o) break - for (; _.sibling === null; ) { - if (_.return === null || _.return === o) return - _ = _.return - } - ;(_.sibling.return = _.return), (_ = _.sibling) - } -} -Bj = function () {} -Cj = function (e, o, _, b) { - var $ = e.memoizedProps - if ($ !== b) { - ;(e = o.stateNode), Hh(Eh.current) - var en = null - switch (_) { - case 'input': - ;($ = Ya(e, $)), (b = Ya(e, b)), (en = []) - break - case 'select': - ;($ = A({}, $, { value: void 0 })), (b = A({}, b, { value: void 0 })), (en = []) - break - case 'textarea': - ;($ = gb(e, $)), (b = gb(e, b)), (en = []) - break - default: - typeof $.onClick != 'function' && typeof b.onClick == 'function' && (e.onclick = Bf) - } - ub(_, b) - var nn - _ = null - for (In in $) - if (!b.hasOwnProperty(In) && $.hasOwnProperty(In) && $[In] != null) - if (In === 'style') { - var sn = $[In] - for (nn in sn) sn.hasOwnProperty(nn) && (_ || (_ = {}), (_[nn] = '')) - } else - In !== 'dangerouslySetInnerHTML' && - In !== 'children' && - In !== 'suppressContentEditableWarning' && - In !== 'suppressHydrationWarning' && - In !== 'autoFocus' && - (ea.hasOwnProperty(In) ? en || (en = []) : (en = en || []).push(In, null)) - for (In in b) { - var gn = b[In] - if (((sn = $?.[In]), b.hasOwnProperty(In) && gn !== sn && (gn != null || sn != null))) - if (In === 'style') - if (sn) { - for (nn in sn) - !sn.hasOwnProperty(nn) || - (gn && gn.hasOwnProperty(nn)) || - (_ || (_ = {}), (_[nn] = '')) - for (nn in gn) - gn.hasOwnProperty(nn) && sn[nn] !== gn[nn] && (_ || (_ = {}), (_[nn] = gn[nn])) - } else _ || (en || (en = []), en.push(In, _)), (_ = gn) - else - In === 'dangerouslySetInnerHTML' - ? ((gn = gn ? gn.__html : void 0), - (sn = sn ? sn.__html : void 0), - gn != null && sn !== gn && (en = en || []).push(In, gn)) - : In === 'children' - ? (typeof gn != 'string' && typeof gn != 'number') || (en = en || []).push(In, '' + gn) - : In !== 'suppressContentEditableWarning' && - In !== 'suppressHydrationWarning' && - (ea.hasOwnProperty(In) - ? (gn != null && In === 'onScroll' && D('scroll', e), en || sn === gn || (en = [])) - : (en = en || []).push(In, gn)) - } - _ && (en = en || []).push('style', _) - var In = en - ;(o.updateQueue = In) && (o.flags |= 4) - } -} -Dj = function (e, o, _, b) { - _ !== b && (o.flags |= 4) -} -function Ej(e, o) { - if (!I) - switch (e.tailMode) { - case 'hidden': - o = e.tail - for (var _ = null; o !== null; ) o.alternate !== null && (_ = o), (o = o.sibling) - _ === null ? (e.tail = null) : (_.sibling = null) - break - case 'collapsed': - _ = e.tail - for (var b = null; _ !== null; ) _.alternate !== null && (b = _), (_ = _.sibling) - b === null - ? o || e.tail === null - ? (e.tail = null) - : (e.tail.sibling = null) - : (b.sibling = null) - } -} -function S(e) { - var o = e.alternate !== null && e.alternate.child === e.child, - _ = 0, - b = 0 - if (o) - for (var $ = e.child; $ !== null; ) - (_ |= $.lanes | $.childLanes), - (b |= $.subtreeFlags & 14680064), - (b |= $.flags & 14680064), - ($.return = e), - ($ = $.sibling) - else - for ($ = e.child; $ !== null; ) - (_ |= $.lanes | $.childLanes), - (b |= $.subtreeFlags), - (b |= $.flags), - ($.return = e), - ($ = $.sibling) - return (e.subtreeFlags |= b), (e.childLanes = _), o -} -function Fj(e, o, _) { - var b = o.pendingProps - switch ((wg(o), o.tag)) { - case 2: - case 16: - case 15: - case 0: - case 11: - case 7: - case 8: - case 12: - case 9: - case 14: - return S(o), null - case 1: - return Zf(o.type) && $f(), S(o), null - case 3: - return ( - (b = o.stateNode), - Jh(), - E(Wf), - E(H), - Oh(), - b.pendingContext && ((b.context = b.pendingContext), (b.pendingContext = null)), - (e === null || e.child === null) && - (Gg(o) - ? (o.flags |= 4) - : e === null || - (e.memoizedState.isDehydrated && !(o.flags & 256)) || - ((o.flags |= 1024), zg !== null && (Gj(zg), (zg = null)))), - Bj(e, o), - S(o), - null - ) - case 5: - Lh(o) - var $ = Hh(Gh.current) - if (((_ = o.type), e !== null && o.stateNode != null)) - Cj(e, o, _, b, $), e.ref !== o.ref && ((o.flags |= 512), (o.flags |= 2097152)) - else { - if (!b) { - if (o.stateNode === null) throw Error(p(166)) - return S(o), null - } - if (((e = Hh(Eh.current)), Gg(o))) { - ;(b = o.stateNode), (_ = o.type) - var en = o.memoizedProps - switch (((b[Of] = o), (b[Pf] = en), (e = (o.mode & 1) !== 0), _)) { - case 'dialog': - D('cancel', b), D('close', b) - break - case 'iframe': - case 'object': - case 'embed': - D('load', b) - break - case 'video': - case 'audio': - for ($ = 0; $ < lf.length; $++) D(lf[$], b) - break - case 'source': - D('error', b) - break - case 'img': - case 'image': - case 'link': - D('error', b), D('load', b) - break - case 'details': - D('toggle', b) - break - case 'input': - Za(b, en), D('invalid', b) - break - case 'select': - ;(b._wrapperState = { wasMultiple: !!en.multiple }), D('invalid', b) - break - case 'textarea': - hb(b, en), D('invalid', b) - } - ub(_, en), ($ = null) - for (var nn in en) - if (en.hasOwnProperty(nn)) { - var sn = en[nn] - nn === 'children' - ? typeof sn == 'string' - ? b.textContent !== sn && - (en.suppressHydrationWarning !== !0 && Af(b.textContent, sn, e), - ($ = ['children', sn])) - : typeof sn == 'number' && - b.textContent !== '' + sn && - (en.suppressHydrationWarning !== !0 && Af(b.textContent, sn, e), - ($ = ['children', '' + sn])) - : ea.hasOwnProperty(nn) && sn != null && nn === 'onScroll' && D('scroll', b) - } - switch (_) { - case 'input': - Va(b), db(b, en, !0) - break - case 'textarea': - Va(b), jb(b) - break - case 'select': - case 'option': - break - default: - typeof en.onClick == 'function' && (b.onclick = Bf) - } - ;(b = $), (o.updateQueue = b), b !== null && (o.flags |= 4) - } else { - ;(nn = $.nodeType === 9 ? $ : $.ownerDocument), - e === 'http://www.w3.org/1999/xhtml' && (e = kb(_)), - e === 'http://www.w3.org/1999/xhtml' - ? _ === 'script' - ? ((e = nn.createElement('div')), - (e.innerHTML = ''), - (e = e.removeChild(e.firstChild))) - : typeof b.is == 'string' - ? (e = nn.createElement(_, { is: b.is })) - : ((e = nn.createElement(_)), - _ === 'select' && - ((nn = e), b.multiple ? (nn.multiple = !0) : b.size && (nn.size = b.size))) - : (e = nn.createElementNS(e, _)), - (e[Of] = o), - (e[Pf] = b), - Aj(e, o, !1, !1), - (o.stateNode = e) - e: { - switch (((nn = vb(_, b)), _)) { - case 'dialog': - D('cancel', e), D('close', e), ($ = b) - break - case 'iframe': - case 'object': - case 'embed': - D('load', e), ($ = b) - break - case 'video': - case 'audio': - for ($ = 0; $ < lf.length; $++) D(lf[$], e) - $ = b - break - case 'source': - D('error', e), ($ = b) - break - case 'img': - case 'image': - case 'link': - D('error', e), D('load', e), ($ = b) - break - case 'details': - D('toggle', e), ($ = b) - break - case 'input': - Za(e, b), ($ = Ya(e, b)), D('invalid', e) - break - case 'option': - $ = b - break - case 'select': - ;(e._wrapperState = { wasMultiple: !!b.multiple }), - ($ = A({}, b, { value: void 0 })), - D('invalid', e) - break - case 'textarea': - hb(e, b), ($ = gb(e, b)), D('invalid', e) - break - default: - $ = b - } - ub(_, $), (sn = $) - for (en in sn) - if (sn.hasOwnProperty(en)) { - var gn = sn[en] - en === 'style' - ? sb(e, gn) - : en === 'dangerouslySetInnerHTML' - ? ((gn = gn ? gn.__html : void 0), gn != null && nb(e, gn)) - : en === 'children' - ? typeof gn == 'string' - ? (_ !== 'textarea' || gn !== '') && ob(e, gn) - : typeof gn == 'number' && ob(e, '' + gn) - : en !== 'suppressContentEditableWarning' && - en !== 'suppressHydrationWarning' && - en !== 'autoFocus' && - (ea.hasOwnProperty(en) - ? gn != null && en === 'onScroll' && D('scroll', e) - : gn != null && ta(e, en, gn, nn)) - } - switch (_) { - case 'input': - Va(e), db(e, b, !1) - break - case 'textarea': - Va(e), jb(e) - break - case 'option': - b.value != null && e.setAttribute('value', '' + Sa(b.value)) - break - case 'select': - ;(e.multiple = !!b.multiple), - (en = b.value), - en != null - ? fb(e, !!b.multiple, en, !1) - : b.defaultValue != null && fb(e, !!b.multiple, b.defaultValue, !0) - break - default: - typeof $.onClick == 'function' && (e.onclick = Bf) - } - switch (_) { - case 'button': - case 'input': - case 'select': - case 'textarea': - b = !!b.autoFocus - break e - case 'img': - b = !0 - break e - default: - b = !1 - } - } - b && (o.flags |= 4) - } - o.ref !== null && ((o.flags |= 512), (o.flags |= 2097152)) - } - return S(o), null - case 6: - if (e && o.stateNode != null) Dj(e, o, e.memoizedProps, b) - else { - if (typeof b != 'string' && o.stateNode === null) throw Error(p(166)) - if (((_ = Hh(Gh.current)), Hh(Eh.current), Gg(o))) { - if ( - ((b = o.stateNode), - (_ = o.memoizedProps), - (b[Of] = o), - (en = b.nodeValue !== _) && ((e = xg), e !== null)) - ) - switch (e.tag) { - case 3: - Af(b.nodeValue, _, (e.mode & 1) !== 0) - break - case 5: - e.memoizedProps.suppressHydrationWarning !== !0 && - Af(b.nodeValue, _, (e.mode & 1) !== 0) - } - en && (o.flags |= 4) - } else - (b = (_.nodeType === 9 ? _ : _.ownerDocument).createTextNode(b)), - (b[Of] = o), - (o.stateNode = b) - } - return S(o), null - case 13: - if ( - (E(M), - (b = o.memoizedState), - e === null || (e.memoizedState !== null && e.memoizedState.dehydrated !== null)) - ) { - if (I && yg !== null && o.mode & 1 && !(o.flags & 128)) - Hg(), Ig(), (o.flags |= 98560), (en = !1) - else if (((en = Gg(o)), b !== null && b.dehydrated !== null)) { - if (e === null) { - if (!en) throw Error(p(318)) - if (((en = o.memoizedState), (en = en !== null ? en.dehydrated : null), !en)) - throw Error(p(317)) - en[Of] = o - } else Ig(), !(o.flags & 128) && (o.memoizedState = null), (o.flags |= 4) - S(o), (en = !1) - } else zg !== null && (Gj(zg), (zg = null)), (en = !0) - if (!en) return o.flags & 65536 ? o : null - } - return o.flags & 128 - ? ((o.lanes = _), o) - : ((b = b !== null), - b !== (e !== null && e.memoizedState !== null) && - b && - ((o.child.flags |= 8192), - o.mode & 1 && (e === null || M.current & 1 ? T === 0 && (T = 3) : uj())), - o.updateQueue !== null && (o.flags |= 4), - S(o), - null) - case 4: - return Jh(), Bj(e, o), e === null && sf(o.stateNode.containerInfo), S(o), null - case 10: - return Rg(o.type._context), S(o), null - case 17: - return Zf(o.type) && $f(), S(o), null - case 19: - if ((E(M), (en = o.memoizedState), en === null)) return S(o), null - if (((b = (o.flags & 128) !== 0), (nn = en.rendering), nn === null)) - if (b) Ej(en, !1) - else { - if (T !== 0 || (e !== null && e.flags & 128)) - for (e = o.child; e !== null; ) { - if (((nn = Mh(e)), nn !== null)) { - for ( - o.flags |= 128, - Ej(en, !1), - b = nn.updateQueue, - b !== null && ((o.updateQueue = b), (o.flags |= 4)), - o.subtreeFlags = 0, - b = _, - _ = o.child; - _ !== null; - - ) - (en = _), - (e = b), - (en.flags &= 14680066), - (nn = en.alternate), - nn === null - ? ((en.childLanes = 0), - (en.lanes = e), - (en.child = null), - (en.subtreeFlags = 0), - (en.memoizedProps = null), - (en.memoizedState = null), - (en.updateQueue = null), - (en.dependencies = null), - (en.stateNode = null)) - : ((en.childLanes = nn.childLanes), - (en.lanes = nn.lanes), - (en.child = nn.child), - (en.subtreeFlags = 0), - (en.deletions = null), - (en.memoizedProps = nn.memoizedProps), - (en.memoizedState = nn.memoizedState), - (en.updateQueue = nn.updateQueue), - (en.type = nn.type), - (e = nn.dependencies), - (en.dependencies = - e === null ? null : { lanes: e.lanes, firstContext: e.firstContext })), - (_ = _.sibling) - return G(M, (M.current & 1) | 2), o.child - } - e = e.sibling - } - en.tail !== null && - B() > Hj && - ((o.flags |= 128), (b = !0), Ej(en, !1), (o.lanes = 4194304)) - } - else { - if (!b) - if (((e = Mh(nn)), e !== null)) { - if ( - ((o.flags |= 128), - (b = !0), - (_ = e.updateQueue), - _ !== null && ((o.updateQueue = _), (o.flags |= 4)), - Ej(en, !0), - en.tail === null && en.tailMode === 'hidden' && !nn.alternate && !I) - ) - return S(o), null - } else - 2 * B() - en.renderingStartTime > Hj && - _ !== 1073741824 && - ((o.flags |= 128), (b = !0), Ej(en, !1), (o.lanes = 4194304)) - en.isBackwards - ? ((nn.sibling = o.child), (o.child = nn)) - : ((_ = en.last), _ !== null ? (_.sibling = nn) : (o.child = nn), (en.last = nn)) - } - return en.tail !== null - ? ((o = en.tail), - (en.rendering = o), - (en.tail = o.sibling), - (en.renderingStartTime = B()), - (o.sibling = null), - (_ = M.current), - G(M, b ? (_ & 1) | 2 : _ & 1), - o) - : (S(o), null) - case 22: - case 23: - return ( - Ij(), - (b = o.memoizedState !== null), - e !== null && (e.memoizedState !== null) !== b && (o.flags |= 8192), - b && o.mode & 1 ? gj & 1073741824 && (S(o), o.subtreeFlags & 6 && (o.flags |= 8192)) : S(o), - null - ) - case 24: - return null - case 25: - return null - } - throw Error(p(156, o.tag)) -} -function Jj(e, o) { - switch ((wg(o), o.tag)) { - case 1: - return ( - Zf(o.type) && $f(), (e = o.flags), e & 65536 ? ((o.flags = (e & -65537) | 128), o) : null - ) - case 3: - return ( - Jh(), - E(Wf), - E(H), - Oh(), - (e = o.flags), - e & 65536 && !(e & 128) ? ((o.flags = (e & -65537) | 128), o) : null - ) - case 5: - return Lh(o), null - case 13: - if ((E(M), (e = o.memoizedState), e !== null && e.dehydrated !== null)) { - if (o.alternate === null) throw Error(p(340)) - Ig() - } - return (e = o.flags), e & 65536 ? ((o.flags = (e & -65537) | 128), o) : null - case 19: - return E(M), null - case 4: - return Jh(), null - case 10: - return Rg(o.type._context), null - case 22: - case 23: - return Ij(), null - case 24: - return null - default: - return null - } -} -var Kj = !1, - U = !1, - Lj = typeof WeakSet == 'function' ? WeakSet : Set, - V = null -function Mj(e, o) { - var _ = e.ref - if (_ !== null) - if (typeof _ == 'function') - try { - _(null) - } catch (b) { - W(e, o, b) - } - else _.current = null -} -function Nj(e, o, _) { - try { - _() - } catch (b) { - W(e, o, b) - } -} -var Oj = !1 -function Pj(e, o) { - if (((Cf = dd), (e = Me()), Ne(e))) { - if ('selectionStart' in e) var _ = { start: e.selectionStart, end: e.selectionEnd } - else - e: { - _ = ((_ = e.ownerDocument) && _.defaultView) || window - var b = _.getSelection && _.getSelection() - if (b && b.rangeCount !== 0) { - _ = b.anchorNode - var $ = b.anchorOffset, - en = b.focusNode - b = b.focusOffset - try { - _.nodeType, en.nodeType - } catch { - _ = null - break e - } - var nn = 0, - sn = -1, - gn = -1, - In = 0, - Jn = 0, - qn = e, - Kn = null - n: for (;;) { - for ( - var an; - qn !== _ || ($ !== 0 && qn.nodeType !== 3) || (sn = nn + $), - qn !== en || (b !== 0 && qn.nodeType !== 3) || (gn = nn + b), - qn.nodeType === 3 && (nn += qn.nodeValue.length), - (an = qn.firstChild) !== null; - - ) - (Kn = qn), (qn = an) - for (;;) { - if (qn === e) break n - if ( - (Kn === _ && ++In === $ && (sn = nn), - Kn === en && ++Jn === b && (gn = nn), - (an = qn.nextSibling) !== null) - ) - break - ;(qn = Kn), (Kn = qn.parentNode) - } - qn = an - } - _ = sn === -1 || gn === -1 ? null : { start: sn, end: gn } - } else _ = null - } - _ = _ || { start: 0, end: 0 } - } else _ = null - for (Df = { focusedElem: e, selectionRange: _ }, dd = !1, V = o; V !== null; ) - if (((o = V), (e = o.child), (o.subtreeFlags & 1028) !== 0 && e !== null)) - (e.return = o), (V = e) - else - for (; V !== null; ) { - o = V - try { - var xn = o.alternate - if (o.flags & 1024) - switch (o.tag) { - case 0: - case 11: - case 15: - break - case 1: - if (xn !== null) { - var mn = xn.memoizedProps, - Bn = xn.memoizedState, - kn = o.stateNode, - ln = kn.getSnapshotBeforeUpdate( - o.elementType === o.type ? mn : Lg(o.type, mn), - Bn, - ) - kn.__reactInternalSnapshotBeforeUpdate = ln - } - break - case 3: - var yn = o.stateNode.containerInfo - yn.nodeType === 1 - ? (yn.textContent = '') - : yn.nodeType === 9 && yn.documentElement && yn.removeChild(yn.documentElement) - break - case 5: - case 6: - case 4: - case 17: - break - default: - throw Error(p(163)) - } - } catch (Cn) { - W(o, o.return, Cn) - } - if (((e = o.sibling), e !== null)) { - ;(e.return = o.return), (V = e) - break - } - V = o.return - } - return (xn = Oj), (Oj = !1), xn -} -function Qj(e, o, _) { - var b = o.updateQueue - if (((b = b !== null ? b.lastEffect : null), b !== null)) { - var $ = (b = b.next) - do { - if (($.tag & e) === e) { - var en = $.destroy - ;($.destroy = void 0), en !== void 0 && Nj(o, _, en) - } - $ = $.next - } while ($ !== b) - } -} -function Rj(e, o) { - if (((o = o.updateQueue), (o = o !== null ? o.lastEffect : null), o !== null)) { - var _ = (o = o.next) - do { - if ((_.tag & e) === e) { - var b = _.create - _.destroy = b() - } - _ = _.next - } while (_ !== o) - } -} -function Sj(e) { - var o = e.ref - if (o !== null) { - var _ = e.stateNode - switch (e.tag) { - case 5: - e = _ - break - default: - e = _ - } - typeof o == 'function' ? o(e) : (o.current = e) - } -} -function Tj(e) { - var o = e.alternate - o !== null && ((e.alternate = null), Tj(o)), - (e.child = null), - (e.deletions = null), - (e.sibling = null), - e.tag === 5 && - ((o = e.stateNode), - o !== null && (delete o[Of], delete o[Pf], delete o[of], delete o[Qf], delete o[Rf])), - (e.stateNode = null), - (e.return = null), - (e.dependencies = null), - (e.memoizedProps = null), - (e.memoizedState = null), - (e.pendingProps = null), - (e.stateNode = null), - (e.updateQueue = null) -} -function Uj(e) { - return e.tag === 5 || e.tag === 3 || e.tag === 4 -} -function Vj(e) { - e: for (;;) { - for (; e.sibling === null; ) { - if (e.return === null || Uj(e.return)) return null - e = e.return - } - for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18; ) { - if (e.flags & 2 || e.child === null || e.tag === 4) continue e - ;(e.child.return = e), (e = e.child) - } - if (!(e.flags & 2)) return e.stateNode - } -} -function Wj(e, o, _) { - var b = e.tag - if (b === 5 || b === 6) - (e = e.stateNode), - o - ? _.nodeType === 8 - ? _.parentNode.insertBefore(e, o) - : _.insertBefore(e, o) - : (_.nodeType === 8 - ? ((o = _.parentNode), o.insertBefore(e, _)) - : ((o = _), o.appendChild(e)), - (_ = _._reactRootContainer), - _ != null || o.onclick !== null || (o.onclick = Bf)) - else if (b !== 4 && ((e = e.child), e !== null)) - for (Wj(e, o, _), e = e.sibling; e !== null; ) Wj(e, o, _), (e = e.sibling) -} -function Xj(e, o, _) { - var b = e.tag - if (b === 5 || b === 6) (e = e.stateNode), o ? _.insertBefore(e, o) : _.appendChild(e) - else if (b !== 4 && ((e = e.child), e !== null)) - for (Xj(e, o, _), e = e.sibling; e !== null; ) Xj(e, o, _), (e = e.sibling) -} -var X = null, - Yj = !1 -function Zj(e, o, _) { - for (_ = _.child; _ !== null; ) ak(e, o, _), (_ = _.sibling) -} -function ak(e, o, _) { - if (lc && typeof lc.onCommitFiberUnmount == 'function') - try { - lc.onCommitFiberUnmount(kc, _) - } catch {} - switch (_.tag) { - case 5: - U || Mj(_, o) - case 6: - var b = X, - $ = Yj - ;(X = null), - Zj(e, o, _), - (X = b), - (Yj = $), - X !== null && - (Yj - ? ((e = X), - (_ = _.stateNode), - e.nodeType === 8 ? e.parentNode.removeChild(_) : e.removeChild(_)) - : X.removeChild(_.stateNode)) - break - case 18: - X !== null && - (Yj - ? ((e = X), - (_ = _.stateNode), - e.nodeType === 8 ? Kf(e.parentNode, _) : e.nodeType === 1 && Kf(e, _), - bd(e)) - : Kf(X, _.stateNode)) - break - case 4: - ;(b = X), ($ = Yj), (X = _.stateNode.containerInfo), (Yj = !0), Zj(e, o, _), (X = b), (Yj = $) - break - case 0: - case 11: - case 14: - case 15: - if (!U && ((b = _.updateQueue), b !== null && ((b = b.lastEffect), b !== null))) { - $ = b = b.next - do { - var en = $, - nn = en.destroy - ;(en = en.tag), nn !== void 0 && (en & 2 || en & 4) && Nj(_, o, nn), ($ = $.next) - } while ($ !== b) - } - Zj(e, o, _) - break - case 1: - if (!U && (Mj(_, o), (b = _.stateNode), typeof b.componentWillUnmount == 'function')) - try { - ;(b.props = _.memoizedProps), (b.state = _.memoizedState), b.componentWillUnmount() - } catch (sn) { - W(_, o, sn) - } - Zj(e, o, _) - break - case 21: - Zj(e, o, _) - break - case 22: - _.mode & 1 ? ((U = (b = U) || _.memoizedState !== null), Zj(e, o, _), (U = b)) : Zj(e, o, _) - break - default: - Zj(e, o, _) - } -} -function bk(e) { - var o = e.updateQueue - if (o !== null) { - e.updateQueue = null - var _ = e.stateNode - _ === null && (_ = e.stateNode = new Lj()), - o.forEach(function (b) { - var $ = ck.bind(null, e, b) - _.has(b) || (_.add(b), b.then($, $)) - }) - } -} -function dk(e, o) { - var _ = o.deletions - if (_ !== null) - for (var b = 0; b < _.length; b++) { - var $ = _[b] - try { - var en = e, - nn = o, - sn = nn - e: for (; sn !== null; ) { - switch (sn.tag) { - case 5: - ;(X = sn.stateNode), (Yj = !1) - break e - case 3: - ;(X = sn.stateNode.containerInfo), (Yj = !0) - break e - case 4: - ;(X = sn.stateNode.containerInfo), (Yj = !0) - break e - } - sn = sn.return - } - if (X === null) throw Error(p(160)) - ak(en, nn, $), (X = null), (Yj = !1) - var gn = $.alternate - gn !== null && (gn.return = null), ($.return = null) - } catch (In) { - W($, o, In) - } - } - if (o.subtreeFlags & 12854) for (o = o.child; o !== null; ) ek(o, e), (o = o.sibling) -} -function ek(e, o) { - var _ = e.alternate, - b = e.flags - switch (e.tag) { - case 0: - case 11: - case 14: - case 15: - if ((dk(o, e), fk(e), b & 4)) { - try { - Qj(3, e, e.return), Rj(3, e) - } catch (mn) { - W(e, e.return, mn) - } - try { - Qj(5, e, e.return) - } catch (mn) { - W(e, e.return, mn) - } - } - break - case 1: - dk(o, e), fk(e), b & 512 && _ !== null && Mj(_, _.return) - break - case 5: - if ((dk(o, e), fk(e), b & 512 && _ !== null && Mj(_, _.return), e.flags & 32)) { - var $ = e.stateNode - try { - ob($, '') - } catch (mn) { - W(e, e.return, mn) - } - } - if (b & 4 && (($ = e.stateNode), $ != null)) { - var en = e.memoizedProps, - nn = _ !== null ? _.memoizedProps : en, - sn = e.type, - gn = e.updateQueue - if (((e.updateQueue = null), gn !== null)) - try { - sn === 'input' && en.type === 'radio' && en.name != null && ab($, en), vb(sn, nn) - var In = vb(sn, en) - for (nn = 0; nn < gn.length; nn += 2) { - var Jn = gn[nn], - qn = gn[nn + 1] - Jn === 'style' - ? sb($, qn) - : Jn === 'dangerouslySetInnerHTML' - ? nb($, qn) - : Jn === 'children' - ? ob($, qn) - : ta($, Jn, qn, In) - } - switch (sn) { - case 'input': - bb($, en) - break - case 'textarea': - ib($, en) - break - case 'select': - var Kn = $._wrapperState.wasMultiple - $._wrapperState.wasMultiple = !!en.multiple - var an = en.value - an != null - ? fb($, !!en.multiple, an, !1) - : Kn !== !!en.multiple && - (en.defaultValue != null - ? fb($, !!en.multiple, en.defaultValue, !0) - : fb($, !!en.multiple, en.multiple ? [] : '', !1)) - } - $[Pf] = en - } catch (mn) { - W(e, e.return, mn) - } - } - break - case 6: - if ((dk(o, e), fk(e), b & 4)) { - if (e.stateNode === null) throw Error(p(162)) - ;($ = e.stateNode), (en = e.memoizedProps) - try { - $.nodeValue = en - } catch (mn) { - W(e, e.return, mn) - } - } - break - case 3: - if ((dk(o, e), fk(e), b & 4 && _ !== null && _.memoizedState.isDehydrated)) - try { - bd(o.containerInfo) - } catch (mn) { - W(e, e.return, mn) - } - break - case 4: - dk(o, e), fk(e) - break - case 13: - dk(o, e), - fk(e), - ($ = e.child), - $.flags & 8192 && - ((en = $.memoizedState !== null), - ($.stateNode.isHidden = en), - !en || ($.alternate !== null && $.alternate.memoizedState !== null) || (gk = B())), - b & 4 && bk(e) - break - case 22: - if ( - ((Jn = _ !== null && _.memoizedState !== null), - e.mode & 1 ? ((U = (In = U) || Jn), dk(o, e), (U = In)) : dk(o, e), - fk(e), - b & 8192) - ) { - if (((In = e.memoizedState !== null), (e.stateNode.isHidden = In) && !Jn && e.mode & 1)) - for (V = e, Jn = e.child; Jn !== null; ) { - for (qn = V = Jn; V !== null; ) { - switch (((Kn = V), (an = Kn.child), Kn.tag)) { - case 0: - case 11: - case 14: - case 15: - Qj(4, Kn, Kn.return) - break - case 1: - Mj(Kn, Kn.return) - var xn = Kn.stateNode - if (typeof xn.componentWillUnmount == 'function') { - ;(b = Kn), (_ = Kn.return) - try { - ;(o = b), - (xn.props = o.memoizedProps), - (xn.state = o.memoizedState), - xn.componentWillUnmount() - } catch (mn) { - W(b, _, mn) - } - } - break - case 5: - Mj(Kn, Kn.return) - break - case 22: - if (Kn.memoizedState !== null) { - hk(qn) - continue - } - } - an !== null ? ((an.return = Kn), (V = an)) : hk(qn) - } - Jn = Jn.sibling - } - e: for (Jn = null, qn = e; ; ) { - if (qn.tag === 5) { - if (Jn === null) { - Jn = qn - try { - ;($ = qn.stateNode), - In - ? ((en = $.style), - typeof en.setProperty == 'function' - ? en.setProperty('display', 'none', 'important') - : (en.display = 'none')) - : ((sn = qn.stateNode), - (gn = qn.memoizedProps.style), - (nn = gn != null && gn.hasOwnProperty('display') ? gn.display : null), - (sn.style.display = rb('display', nn))) - } catch (mn) { - W(e, e.return, mn) - } - } - } else if (qn.tag === 6) { - if (Jn === null) - try { - qn.stateNode.nodeValue = In ? '' : qn.memoizedProps - } catch (mn) { - W(e, e.return, mn) - } - } else if ( - ((qn.tag !== 22 && qn.tag !== 23) || qn.memoizedState === null || qn === e) && - qn.child !== null - ) { - ;(qn.child.return = qn), (qn = qn.child) - continue - } - if (qn === e) break e - for (; qn.sibling === null; ) { - if (qn.return === null || qn.return === e) break e - Jn === qn && (Jn = null), (qn = qn.return) - } - Jn === qn && (Jn = null), (qn.sibling.return = qn.return), (qn = qn.sibling) - } - } - break - case 19: - dk(o, e), fk(e), b & 4 && bk(e) - break - case 21: - break - default: - dk(o, e), fk(e) - } -} -function fk(e) { - var o = e.flags - if (o & 2) { - try { - e: { - for (var _ = e.return; _ !== null; ) { - if (Uj(_)) { - var b = _ - break e - } - _ = _.return - } - throw Error(p(160)) - } - switch (b.tag) { - case 5: - var $ = b.stateNode - b.flags & 32 && (ob($, ''), (b.flags &= -33)) - var en = Vj(e) - Xj(e, en, $) - break - case 3: - case 4: - var nn = b.stateNode.containerInfo, - sn = Vj(e) - Wj(e, sn, nn) - break - default: - throw Error(p(161)) - } - } catch (gn) { - W(e, e.return, gn) - } - e.flags &= -3 - } - o & 4096 && (e.flags &= -4097) -} -function ik(e, o, _) { - ;(V = e), jk(e) -} -function jk(e, o, _) { - for (var b = (e.mode & 1) !== 0; V !== null; ) { - var $ = V, - en = $.child - if ($.tag === 22 && b) { - var nn = $.memoizedState !== null || Kj - if (!nn) { - var sn = $.alternate, - gn = (sn !== null && sn.memoizedState !== null) || U - sn = Kj - var In = U - if (((Kj = nn), (U = gn) && !In)) - for (V = $; V !== null; ) - (nn = V), - (gn = nn.child), - nn.tag === 22 && nn.memoizedState !== null - ? kk($) - : gn !== null - ? ((gn.return = nn), (V = gn)) - : kk($) - for (; en !== null; ) (V = en), jk(en), (en = en.sibling) - ;(V = $), (Kj = sn), (U = In) - } - lk(e) - } else $.subtreeFlags & 8772 && en !== null ? ((en.return = $), (V = en)) : lk(e) - } -} -function lk(e) { - for (; V !== null; ) { - var o = V - if (o.flags & 8772) { - var _ = o.alternate - try { - if (o.flags & 8772) - switch (o.tag) { - case 0: - case 11: - case 15: - U || Rj(5, o) - break - case 1: - var b = o.stateNode - if (o.flags & 4 && !U) - if (_ === null) b.componentDidMount() - else { - var $ = o.elementType === o.type ? _.memoizedProps : Lg(o.type, _.memoizedProps) - b.componentDidUpdate($, _.memoizedState, b.__reactInternalSnapshotBeforeUpdate) - } - var en = o.updateQueue - en !== null && ih(o, en, b) - break - case 3: - var nn = o.updateQueue - if (nn !== null) { - if (((_ = null), o.child !== null)) - switch (o.child.tag) { - case 5: - _ = o.child.stateNode - break - case 1: - _ = o.child.stateNode - } - ih(o, nn, _) - } - break - case 5: - var sn = o.stateNode - if (_ === null && o.flags & 4) { - _ = sn - var gn = o.memoizedProps - switch (o.type) { - case 'button': - case 'input': - case 'select': - case 'textarea': - gn.autoFocus && _.focus() - break - case 'img': - gn.src && (_.src = gn.src) - } - } - break - case 6: - break - case 4: - break - case 12: - break - case 13: - if (o.memoizedState === null) { - var In = o.alternate - if (In !== null) { - var Jn = In.memoizedState - if (Jn !== null) { - var qn = Jn.dehydrated - qn !== null && bd(qn) - } - } - } - break - case 19: - case 17: - case 21: - case 22: - case 23: - case 25: - break - default: - throw Error(p(163)) - } - U || (o.flags & 512 && Sj(o)) - } catch (Kn) { - W(o, o.return, Kn) - } - } - if (o === e) { - V = null - break - } - if (((_ = o.sibling), _ !== null)) { - ;(_.return = o.return), (V = _) - break - } - V = o.return - } -} -function hk(e) { - for (; V !== null; ) { - var o = V - if (o === e) { - V = null - break - } - var _ = o.sibling - if (_ !== null) { - ;(_.return = o.return), (V = _) - break - } - V = o.return - } -} -function kk(e) { - for (; V !== null; ) { - var o = V - try { - switch (o.tag) { - case 0: - case 11: - case 15: - var _ = o.return - try { - Rj(4, o) - } catch (gn) { - W(o, _, gn) - } - break - case 1: - var b = o.stateNode - if (typeof b.componentDidMount == 'function') { - var $ = o.return - try { - b.componentDidMount() - } catch (gn) { - W(o, $, gn) - } - } - var en = o.return - try { - Sj(o) - } catch (gn) { - W(o, en, gn) - } - break - case 5: - var nn = o.return - try { - Sj(o) - } catch (gn) { - W(o, nn, gn) - } - } - } catch (gn) { - W(o, o.return, gn) - } - if (o === e) { - V = null - break - } - var sn = o.sibling - if (sn !== null) { - ;(sn.return = o.return), (V = sn) - break - } - V = o.return - } -} -var mk = Math.ceil, - nk = ua.ReactCurrentDispatcher, - ok = ua.ReactCurrentOwner, - pk = ua.ReactCurrentBatchConfig, - K$1 = 0, - R = null, - Y = null, - Z = 0, - gj = 0, - fj = Uf(0), - T = 0, - qk = null, - hh = 0, - rk = 0, - sk = 0, - tk = null, - uk = null, - gk = 0, - Hj = 1 / 0, - vk = null, - Pi$1 = !1, - Qi = null, - Si = null, - wk = !1, - xk = null, - yk = 0, - zk = 0, - Ak = null, - Bk = -1, - Ck = 0 -function L() { - return K$1 & 6 ? B() : Bk !== -1 ? Bk : (Bk = B()) -} -function lh(e) { - return e.mode & 1 - ? K$1 & 2 && Z !== 0 - ? Z & -Z - : Kg.transition !== null - ? (Ck === 0 && (Ck = yc()), Ck) - : ((e = C), e !== 0 || ((e = window.event), (e = e === void 0 ? 16 : jd(e.type))), e) - : 1 -} -function mh(e, o, _, b) { - if (50 < zk) throw ((zk = 0), (Ak = null), Error(p(185))) - Ac(e, _, b), - (!(K$1 & 2) || e !== R) && - (e === R && (!(K$1 & 2) && (rk |= _), T === 4 && Dk(e, Z)), - Ek(e, b), - _ === 1 && K$1 === 0 && !(o.mode & 1) && ((Hj = B() + 500), fg && jg())) -} -function Ek(e, o) { - var _ = e.callbackNode - wc(e, o) - var b = uc(e, e === R ? Z : 0) - if (b === 0) _ !== null && bc(_), (e.callbackNode = null), (e.callbackPriority = 0) - else if (((o = b & -b), e.callbackPriority !== o)) { - if ((_ != null && bc(_), o === 1)) - e.tag === 0 ? ig(Fk.bind(null, e)) : hg(Fk.bind(null, e)), - Jf(function () { - !(K$1 & 6) && jg() - }), - (_ = null) - else { - switch (Dc(b)) { - case 1: - _ = fc - break - case 4: - _ = gc - break - case 16: - _ = hc - break - case 536870912: - _ = jc - break - default: - _ = hc - } - _ = Gk(_, Hk.bind(null, e)) - } - ;(e.callbackPriority = o), (e.callbackNode = _) - } -} -function Hk(e, o) { - if (((Bk = -1), (Ck = 0), K$1 & 6)) throw Error(p(327)) - var _ = e.callbackNode - if (Ik() && e.callbackNode !== _) return null - var b = uc(e, e === R ? Z : 0) - if (b === 0) return null - if (b & 30 || b & e.expiredLanes || o) o = Jk(e, b) - else { - o = b - var $ = K$1 - K$1 |= 2 - var en = Kk() - ;(R !== e || Z !== o) && ((vk = null), (Hj = B() + 500), Lk(e, o)) - do - try { - Mk() - break - } catch (sn) { - Nk(e, sn) - } - while (1) - Qg(), (nk.current = en), (K$1 = $), Y !== null ? (o = 0) : ((R = null), (Z = 0), (o = T)) - } - if (o !== 0) { - if ((o === 2 && (($ = xc(e)), $ !== 0 && ((b = $), (o = Ok(e, $)))), o === 1)) - throw ((_ = qk), Lk(e, 0), Dk(e, b), Ek(e, B()), _) - if (o === 6) Dk(e, b) - else { - if ( - (($ = e.current.alternate), - !(b & 30) && - !Pk($) && - ((o = Jk(e, b)), - o === 2 && ((en = xc(e)), en !== 0 && ((b = en), (o = Ok(e, en)))), - o === 1)) - ) - throw ((_ = qk), Lk(e, 0), Dk(e, b), Ek(e, B()), _) - switch (((e.finishedWork = $), (e.finishedLanes = b), o)) { - case 0: - case 1: - throw Error(p(345)) - case 2: - Qk(e, uk, vk) - break - case 3: - if ((Dk(e, b), (b & 130023424) === b && ((o = gk + 500 - B()), 10 < o))) { - if (uc(e, 0) !== 0) break - if ((($ = e.suspendedLanes), ($ & b) !== b)) { - L(), (e.pingedLanes |= e.suspendedLanes & $) - break - } - e.timeoutHandle = Ff(Qk.bind(null, e, uk, vk), o) - break - } - Qk(e, uk, vk) - break - case 4: - if ((Dk(e, b), (b & 4194240) === b)) break - for (o = e.eventTimes, $ = -1; 0 < b; ) { - var nn = 31 - oc(b) - ;(en = 1 << nn), (nn = o[nn]), nn > $ && ($ = nn), (b &= ~en) - } - if ( - ((b = $), - (b = B() - b), - (b = - (120 > b - ? 120 - : 480 > b - ? 480 - : 1080 > b - ? 1080 - : 1920 > b - ? 1920 - : 3e3 > b - ? 3e3 - : 4320 > b - ? 4320 - : 1960 * mk(b / 1960)) - b), - 10 < b) - ) { - e.timeoutHandle = Ff(Qk.bind(null, e, uk, vk), b) - break - } - Qk(e, uk, vk) - break - case 5: - Qk(e, uk, vk) - break - default: - throw Error(p(329)) - } - } - } - return Ek(e, B()), e.callbackNode === _ ? Hk.bind(null, e) : null -} -function Ok(e, o) { - var _ = tk - return ( - e.current.memoizedState.isDehydrated && (Lk(e, o).flags |= 256), - (e = Jk(e, o)), - e !== 2 && ((o = uk), (uk = _), o !== null && Gj(o)), - e - ) -} -function Gj(e) { - uk === null ? (uk = e) : uk.push.apply(uk, e) -} -function Pk(e) { - for (var o = e; ; ) { - if (o.flags & 16384) { - var _ = o.updateQueue - if (_ !== null && ((_ = _.stores), _ !== null)) - for (var b = 0; b < _.length; b++) { - var $ = _[b], - en = $.getSnapshot - $ = $.value - try { - if (!He(en(), $)) return !1 - } catch { - return !1 - } - } - } - if (((_ = o.child), o.subtreeFlags & 16384 && _ !== null)) (_.return = o), (o = _) - else { - if (o === e) break - for (; o.sibling === null; ) { - if (o.return === null || o.return === e) return !0 - o = o.return - } - ;(o.sibling.return = o.return), (o = o.sibling) - } - } - return !0 -} -function Dk(e, o) { - for ( - o &= ~sk, o &= ~rk, e.suspendedLanes |= o, e.pingedLanes &= ~o, e = e.expirationTimes; - 0 < o; - - ) { - var _ = 31 - oc(o), - b = 1 << _ - ;(e[_] = -1), (o &= ~b) - } -} -function Fk(e) { - if (K$1 & 6) throw Error(p(327)) - Ik() - var o = uc(e, 0) - if (!(o & 1)) return Ek(e, B()), null - var _ = Jk(e, o) - if (e.tag !== 0 && _ === 2) { - var b = xc(e) - b !== 0 && ((o = b), (_ = Ok(e, b))) - } - if (_ === 1) throw ((_ = qk), Lk(e, 0), Dk(e, o), Ek(e, B()), _) - if (_ === 6) throw Error(p(345)) - return ( - (e.finishedWork = e.current.alternate), (e.finishedLanes = o), Qk(e, uk, vk), Ek(e, B()), null - ) -} -function Rk(e, o) { - var _ = K$1 - K$1 |= 1 - try { - return e(o) - } finally { - ;(K$1 = _), K$1 === 0 && ((Hj = B() + 500), fg && jg()) - } -} -function Sk(e) { - xk !== null && xk.tag === 0 && !(K$1 & 6) && Ik() - var o = K$1 - K$1 |= 1 - var _ = pk.transition, - b = C - try { - if (((pk.transition = null), (C = 1), e)) return e() - } finally { - ;(C = b), (pk.transition = _), (K$1 = o), !(K$1 & 6) && jg() - } -} -function Ij() { - ;(gj = fj.current), E(fj) -} -function Lk(e, o) { - ;(e.finishedWork = null), (e.finishedLanes = 0) - var _ = e.timeoutHandle - if ((_ !== -1 && ((e.timeoutHandle = -1), Gf(_)), Y !== null)) - for (_ = Y.return; _ !== null; ) { - var b = _ - switch ((wg(b), b.tag)) { - case 1: - ;(b = b.type.childContextTypes), b != null && $f() - break - case 3: - Jh(), E(Wf), E(H), Oh() - break - case 5: - Lh(b) - break - case 4: - Jh() - break - case 13: - E(M) - break - case 19: - E(M) - break - case 10: - Rg(b.type._context) - break - case 22: - case 23: - Ij() - } - _ = _.return - } - if ( - ((R = e), - (Y = e = wh(e.current, null)), - (Z = gj = o), - (T = 0), - (qk = null), - (sk = rk = hh = 0), - (uk = tk = null), - Wg !== null) - ) { - for (o = 0; o < Wg.length; o++) - if (((_ = Wg[o]), (b = _.interleaved), b !== null)) { - _.interleaved = null - var $ = b.next, - en = _.pending - if (en !== null) { - var nn = en.next - ;(en.next = $), (b.next = nn) - } - _.pending = b - } - Wg = null - } - return e -} -function Nk(e, o) { - do { - var _ = Y - try { - if ((Qg(), (Ph.current = ai), Sh)) { - for (var b = N.memoizedState; b !== null; ) { - var $ = b.queue - $ !== null && ($.pending = null), (b = b.next) - } - Sh = !1 - } - if ( - ((Rh = 0), - (P = O = N = null), - (Th = !1), - (Uh = 0), - (ok.current = null), - _ === null || _.return === null) - ) { - ;(T = 1), (qk = o), (Y = null) - break - } - e: { - var en = e, - nn = _.return, - sn = _, - gn = o - if ( - ((o = Z), - (sn.flags |= 32768), - gn !== null && typeof gn == 'object' && typeof gn.then == 'function') - ) { - var In = gn, - Jn = sn, - qn = Jn.tag - if (!(Jn.mode & 1) && (qn === 0 || qn === 11 || qn === 15)) { - var Kn = Jn.alternate - Kn - ? ((Jn.updateQueue = Kn.updateQueue), - (Jn.memoizedState = Kn.memoizedState), - (Jn.lanes = Kn.lanes)) - : ((Jn.updateQueue = null), (Jn.memoizedState = null)) - } - var an = Vi(nn) - if (an !== null) { - ;(an.flags &= -257), - Wi(an, nn, sn, en, o), - an.mode & 1 && Ti(en, In, o), - (o = an), - (gn = In) - var xn = o.updateQueue - if (xn === null) { - var mn = new Set() - mn.add(gn), (o.updateQueue = mn) - } else xn.add(gn) - break e - } else { - if (!(o & 1)) { - Ti(en, In, o), uj() - break e - } - gn = Error(p(426)) - } - } else if (I && sn.mode & 1) { - var Bn = Vi(nn) - if (Bn !== null) { - !(Bn.flags & 65536) && (Bn.flags |= 256), Wi(Bn, nn, sn, en, o), Jg(Ki(gn, sn)) - break e - } - } - ;(en = gn = Ki(gn, sn)), - T !== 4 && (T = 2), - tk === null ? (tk = [en]) : tk.push(en), - (en = nn) - do { - switch (en.tag) { - case 3: - ;(en.flags |= 65536), (o &= -o), (en.lanes |= o) - var kn = Oi(en, gn, o) - fh(en, kn) - break e - case 1: - sn = gn - var ln = en.type, - yn = en.stateNode - if ( - !(en.flags & 128) && - (typeof ln.getDerivedStateFromError == 'function' || - (yn !== null && - typeof yn.componentDidCatch == 'function' && - (Si === null || !Si.has(yn)))) - ) { - ;(en.flags |= 65536), (o &= -o), (en.lanes |= o) - var Cn = Ri(en, sn, o) - fh(en, Cn) - break e - } - } - en = en.return - } while (en !== null) - } - Tk(_) - } catch (Tn) { - ;(o = Tn), Y === _ && _ !== null && (Y = _ = _.return) - continue - } - break - } while (1) -} -function Kk() { - var e = nk.current - return (nk.current = ai), e === null ? ai : e -} -function uj() { - ;(T === 0 || T === 3 || T === 2) && (T = 4), - R === null || (!(hh & 268435455) && !(rk & 268435455)) || Dk(R, Z) -} -function Jk(e, o) { - var _ = K$1 - K$1 |= 2 - var b = Kk() - ;(R !== e || Z !== o) && ((vk = null), Lk(e, o)) - do - try { - Uk() - break - } catch ($) { - Nk(e, $) - } - while (1) - if ((Qg(), (K$1 = _), (nk.current = b), Y !== null)) throw Error(p(261)) - return (R = null), (Z = 0), T -} -function Uk() { - for (; Y !== null; ) Vk(Y) -} -function Mk() { - for (; Y !== null && !cc(); ) Vk(Y) -} -function Vk(e) { - var o = Wk(e.alternate, e, gj) - ;(e.memoizedProps = e.pendingProps), o === null ? Tk(e) : (Y = o), (ok.current = null) -} -function Tk(e) { - var o = e - do { - var _ = o.alternate - if (((e = o.return), o.flags & 32768)) { - if (((_ = Jj(_, o)), _ !== null)) { - ;(_.flags &= 32767), (Y = _) - return - } - if (e !== null) (e.flags |= 32768), (e.subtreeFlags = 0), (e.deletions = null) - else { - ;(T = 6), (Y = null) - return - } - } else if (((_ = Fj(_, o, gj)), _ !== null)) { - Y = _ - return - } - if (((o = o.sibling), o !== null)) { - Y = o - return - } - Y = o = e - } while (o !== null) - T === 0 && (T = 5) -} -function Qk(e, o, _) { - var b = C, - $ = pk.transition - try { - ;(pk.transition = null), (C = 1), Xk(e, o, _, b) - } finally { - ;(pk.transition = $), (C = b) - } - return null -} -function Xk(e, o, _, b) { - do Ik() - while (xk !== null) - if (K$1 & 6) throw Error(p(327)) - _ = e.finishedWork - var $ = e.finishedLanes - if (_ === null) return null - if (((e.finishedWork = null), (e.finishedLanes = 0), _ === e.current)) throw Error(p(177)) - ;(e.callbackNode = null), (e.callbackPriority = 0) - var en = _.lanes | _.childLanes - if ( - (Bc(e, en), - e === R && ((Y = R = null), (Z = 0)), - (!(_.subtreeFlags & 2064) && !(_.flags & 2064)) || - wk || - ((wk = !0), - Gk(hc, function () { - return Ik(), null - })), - (en = (_.flags & 15990) !== 0), - _.subtreeFlags & 15990 || en) - ) { - ;(en = pk.transition), (pk.transition = null) - var nn = C - C = 1 - var sn = K$1 - ;(K$1 |= 4), - (ok.current = null), - Pj(e, _), - ek(_, e), - Oe(Df), - (dd = !!Cf), - (Df = Cf = null), - (e.current = _), - ik(_), - dc(), - (K$1 = sn), - (C = nn), - (pk.transition = en) - } else e.current = _ - if ( - (wk && ((wk = !1), (xk = e), (yk = $)), - (en = e.pendingLanes), - en === 0 && (Si = null), - mc(_.stateNode), - Ek(e, B()), - o !== null) - ) - for (b = e.onRecoverableError, _ = 0; _ < o.length; _++) - ($ = o[_]), b($.value, { componentStack: $.stack, digest: $.digest }) - if (Pi$1) throw ((Pi$1 = !1), (e = Qi), (Qi = null), e) - return ( - yk & 1 && e.tag !== 0 && Ik(), - (en = e.pendingLanes), - en & 1 ? (e === Ak ? zk++ : ((zk = 0), (Ak = e))) : (zk = 0), - jg(), - null - ) -} -function Ik() { - if (xk !== null) { - var e = Dc(yk), - o = pk.transition, - _ = C - try { - if (((pk.transition = null), (C = 16 > e ? 16 : e), xk === null)) var b = !1 - else { - if (((e = xk), (xk = null), (yk = 0), K$1 & 6)) throw Error(p(331)) - var $ = K$1 - for (K$1 |= 4, V = e.current; V !== null; ) { - var en = V, - nn = en.child - if (V.flags & 16) { - var sn = en.deletions - if (sn !== null) { - for (var gn = 0; gn < sn.length; gn++) { - var In = sn[gn] - for (V = In; V !== null; ) { - var Jn = V - switch (Jn.tag) { - case 0: - case 11: - case 15: - Qj(8, Jn, en) - } - var qn = Jn.child - if (qn !== null) (qn.return = Jn), (V = qn) - else - for (; V !== null; ) { - Jn = V - var Kn = Jn.sibling, - an = Jn.return - if ((Tj(Jn), Jn === In)) { - V = null - break - } - if (Kn !== null) { - ;(Kn.return = an), (V = Kn) - break - } - V = an - } - } - } - var xn = en.alternate - if (xn !== null) { - var mn = xn.child - if (mn !== null) { - xn.child = null - do { - var Bn = mn.sibling - ;(mn.sibling = null), (mn = Bn) - } while (mn !== null) - } - } - V = en - } - } - if (en.subtreeFlags & 2064 && nn !== null) (nn.return = en), (V = nn) - else - e: for (; V !== null; ) { - if (((en = V), en.flags & 2048)) - switch (en.tag) { - case 0: - case 11: - case 15: - Qj(9, en, en.return) - } - var kn = en.sibling - if (kn !== null) { - ;(kn.return = en.return), (V = kn) - break e - } - V = en.return - } - } - var ln = e.current - for (V = ln; V !== null; ) { - nn = V - var yn = nn.child - if (nn.subtreeFlags & 2064 && yn !== null) (yn.return = nn), (V = yn) - else - e: for (nn = ln; V !== null; ) { - if (((sn = V), sn.flags & 2048)) - try { - switch (sn.tag) { - case 0: - case 11: - case 15: - Rj(9, sn) - } - } catch (Tn) { - W(sn, sn.return, Tn) - } - if (sn === nn) { - V = null - break e - } - var Cn = sn.sibling - if (Cn !== null) { - ;(Cn.return = sn.return), (V = Cn) - break e - } - V = sn.return - } - } - if (((K$1 = $), jg(), lc && typeof lc.onPostCommitFiberRoot == 'function')) - try { - lc.onPostCommitFiberRoot(kc, e) - } catch {} - b = !0 - } - return b - } finally { - ;(C = _), (pk.transition = o) - } - } - return !1 -} -function Yk(e, o, _) { - ;(o = Ki(_, o)), - (o = Oi(e, o, 1)), - (e = dh(e, o, 1)), - (o = L()), - e !== null && (Ac(e, 1, o), Ek(e, o)) -} -function W(e, o, _) { - if (e.tag === 3) Yk(e, e, _) - else - for (; o !== null; ) { - if (o.tag === 3) { - Yk(o, e, _) - break - } else if (o.tag === 1) { - var b = o.stateNode - if ( - typeof o.type.getDerivedStateFromError == 'function' || - (typeof b.componentDidCatch == 'function' && (Si === null || !Si.has(b))) - ) { - ;(e = Ki(_, e)), - (e = Ri(o, e, 1)), - (o = dh(o, e, 1)), - (e = L()), - o !== null && (Ac(o, 1, e), Ek(o, e)) - break - } - } - o = o.return - } -} -function Ui(e, o, _) { - var b = e.pingCache - b !== null && b.delete(o), - (o = L()), - (e.pingedLanes |= e.suspendedLanes & _), - R === e && - (Z & _) === _ && - (T === 4 || (T === 3 && (Z & 130023424) === Z && 500 > B() - gk) ? Lk(e, 0) : (sk |= _)), - Ek(e, o) -} -function Zk(e, o) { - o === 0 && (e.mode & 1 ? ((o = sc), (sc <<= 1), !(sc & 130023424) && (sc = 4194304)) : (o = 1)) - var _ = L() - ;(e = Zg(e, o)), e !== null && (Ac(e, o, _), Ek(e, _)) -} -function vj(e) { - var o = e.memoizedState, - _ = 0 - o !== null && (_ = o.retryLane), Zk(e, _) -} -function ck(e, o) { - var _ = 0 - switch (e.tag) { - case 13: - var b = e.stateNode, - $ = e.memoizedState - $ !== null && (_ = $.retryLane) - break - case 19: - b = e.stateNode - break - default: - throw Error(p(314)) - } - b !== null && b.delete(o), Zk(e, _) -} -var Wk -Wk = function (e, o, _) { - if (e !== null) - if (e.memoizedProps !== o.pendingProps || Wf.current) Ug = !0 - else { - if (!(e.lanes & _) && !(o.flags & 128)) return (Ug = !1), zj(e, o, _) - Ug = !!(e.flags & 131072) - } - else (Ug = !1), I && o.flags & 1048576 && ug(o, ng, o.index) - switch (((o.lanes = 0), o.tag)) { - case 2: - var b = o.type - jj(e, o), (e = o.pendingProps) - var $ = Yf(o, H.current) - Tg(o, _), ($ = Xh(null, o, b, e, $, _)) - var en = bi() - return ( - (o.flags |= 1), - typeof $ == 'object' && $ !== null && typeof $.render == 'function' && $.$$typeof === void 0 - ? ((o.tag = 1), - (o.memoizedState = null), - (o.updateQueue = null), - Zf(b) ? ((en = !0), cg(o)) : (en = !1), - (o.memoizedState = $.state !== null && $.state !== void 0 ? $.state : null), - ah(o), - ($.updater = nh), - (o.stateNode = $), - ($._reactInternals = o), - rh$1(o, b, e, _), - (o = kj(null, o, b, !0, en, _))) - : ((o.tag = 0), I && en && vg(o), Yi(null, o, $, _), (o = o.child)), - o - ) - case 16: - b = o.elementType - e: { - switch ( - (jj(e, o), - (e = o.pendingProps), - ($ = b._init), - (b = $(b._payload)), - (o.type = b), - ($ = o.tag = $k(b)), - (e = Lg(b, e)), - $) - ) { - case 0: - o = dj(null, o, b, e, _) - break e - case 1: - o = ij(null, o, b, e, _) - break e - case 11: - o = Zi(null, o, b, e, _) - break e - case 14: - o = aj(null, o, b, Lg(b.type, e), _) - break e - } - throw Error(p(306, b, '')) - } - return o - case 0: - return ( - (b = o.type), - ($ = o.pendingProps), - ($ = o.elementType === b ? $ : Lg(b, $)), - dj(e, o, b, $, _) - ) - case 1: - return ( - (b = o.type), - ($ = o.pendingProps), - ($ = o.elementType === b ? $ : Lg(b, $)), - ij(e, o, b, $, _) - ) - case 3: - e: { - if ((lj(o), e === null)) throw Error(p(387)) - ;(b = o.pendingProps), (en = o.memoizedState), ($ = en.element), bh(e, o), gh(o, b, null, _) - var nn = o.memoizedState - if (((b = nn.element), en.isDehydrated)) - if ( - ((en = { - element: b, - isDehydrated: !1, - cache: nn.cache, - pendingSuspenseBoundaries: nn.pendingSuspenseBoundaries, - transitions: nn.transitions, - }), - (o.updateQueue.baseState = en), - (o.memoizedState = en), - o.flags & 256) - ) { - ;($ = Ki(Error(p(423)), o)), (o = mj(e, o, b, _, $)) - break e - } else if (b !== $) { - ;($ = Ki(Error(p(424)), o)), (o = mj(e, o, b, _, $)) - break e - } else - for ( - yg = Lf(o.stateNode.containerInfo.firstChild), - xg = o, - I = !0, - zg = null, - _ = Ch(o, null, b, _), - o.child = _; - _; - - ) - (_.flags = (_.flags & -3) | 4096), (_ = _.sibling) - else { - if ((Ig(), b === $)) { - o = $i(e, o, _) - break e - } - Yi(e, o, b, _) - } - o = o.child - } - return o - case 5: - return ( - Kh$1(o), - e === null && Eg(o), - (b = o.type), - ($ = o.pendingProps), - (en = e !== null ? e.memoizedProps : null), - (nn = $.children), - Ef(b, $) ? (nn = null) : en !== null && Ef(b, en) && (o.flags |= 32), - hj(e, o), - Yi(e, o, nn, _), - o.child - ) - case 6: - return e === null && Eg(o), null - case 13: - return pj(e, o, _) - case 4: - return ( - Ih(o, o.stateNode.containerInfo), - (b = o.pendingProps), - e === null ? (o.child = Bh(o, null, b, _)) : Yi(e, o, b, _), - o.child - ) - case 11: - return ( - (b = o.type), - ($ = o.pendingProps), - ($ = o.elementType === b ? $ : Lg(b, $)), - Zi(e, o, b, $, _) - ) - case 7: - return Yi(e, o, o.pendingProps, _), o.child - case 8: - return Yi(e, o, o.pendingProps.children, _), o.child - case 12: - return Yi(e, o, o.pendingProps.children, _), o.child - case 10: - e: { - if ( - ((b = o.type._context), - ($ = o.pendingProps), - (en = o.memoizedProps), - (nn = $.value), - G(Mg, b._currentValue), - (b._currentValue = nn), - en !== null) - ) - if (He(en.value, nn)) { - if (en.children === $.children && !Wf.current) { - o = $i(e, o, _) - break e - } - } else - for (en = o.child, en !== null && (en.return = o); en !== null; ) { - var sn = en.dependencies - if (sn !== null) { - nn = en.child - for (var gn = sn.firstContext; gn !== null; ) { - if (gn.context === b) { - if (en.tag === 1) { - ;(gn = ch(-1, _ & -_)), (gn.tag = 2) - var In = en.updateQueue - if (In !== null) { - In = In.shared - var Jn = In.pending - Jn === null ? (gn.next = gn) : ((gn.next = Jn.next), (Jn.next = gn)), - (In.pending = gn) - } - } - ;(en.lanes |= _), - (gn = en.alternate), - gn !== null && (gn.lanes |= _), - Sg(en.return, _, o), - (sn.lanes |= _) - break - } - gn = gn.next - } - } else if (en.tag === 10) nn = en.type === o.type ? null : en.child - else if (en.tag === 18) { - if (((nn = en.return), nn === null)) throw Error(p(341)) - ;(nn.lanes |= _), - (sn = nn.alternate), - sn !== null && (sn.lanes |= _), - Sg(nn, _, o), - (nn = en.sibling) - } else nn = en.child - if (nn !== null) nn.return = en - else - for (nn = en; nn !== null; ) { - if (nn === o) { - nn = null - break - } - if (((en = nn.sibling), en !== null)) { - ;(en.return = nn.return), (nn = en) - break - } - nn = nn.return - } - en = nn - } - Yi(e, o, $.children, _), (o = o.child) - } - return o - case 9: - return ( - ($ = o.type), - (b = o.pendingProps.children), - Tg(o, _), - ($ = Vg($)), - (b = b($)), - (o.flags |= 1), - Yi(e, o, b, _), - o.child - ) - case 14: - return (b = o.type), ($ = Lg(b, o.pendingProps)), ($ = Lg(b.type, $)), aj(e, o, b, $, _) - case 15: - return cj(e, o, o.type, o.pendingProps, _) - case 17: - return ( - (b = o.type), - ($ = o.pendingProps), - ($ = o.elementType === b ? $ : Lg(b, $)), - jj(e, o), - (o.tag = 1), - Zf(b) ? ((e = !0), cg(o)) : (e = !1), - Tg(o, _), - ph(o, b, $), - rh$1(o, b, $, _), - kj(null, o, b, !0, e, _) - ) - case 19: - return yj(e, o, _) - case 22: - return ej(e, o, _) - } - throw Error(p(156, o.tag)) -} -function Gk(e, o) { - return ac(e, o) -} -function al(e, o, _, b) { - ;(this.tag = e), - (this.key = _), - (this.sibling = - this.child = - this.return = - this.stateNode = - this.type = - this.elementType = - null), - (this.index = 0), - (this.ref = null), - (this.pendingProps = o), - (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), - (this.mode = b), - (this.subtreeFlags = this.flags = 0), - (this.deletions = null), - (this.childLanes = this.lanes = 0), - (this.alternate = null) -} -function Bg(e, o, _, b) { - return new al(e, o, _, b) -} -function bj(e) { - return (e = e.prototype), !(!e || !e.isReactComponent) -} -function $k(e) { - if (typeof e == 'function') return bj(e) ? 1 : 0 - if (e != null) { - if (((e = e.$$typeof), e === Da)) return 11 - if (e === Ga) return 14 - } - return 2 -} -function wh(e, o) { - var _ = e.alternate - return ( - _ === null - ? ((_ = Bg(e.tag, o, e.key, e.mode)), - (_.elementType = e.elementType), - (_.type = e.type), - (_.stateNode = e.stateNode), - (_.alternate = e), - (e.alternate = _)) - : ((_.pendingProps = o), - (_.type = e.type), - (_.flags = 0), - (_.subtreeFlags = 0), - (_.deletions = null)), - (_.flags = e.flags & 14680064), - (_.childLanes = e.childLanes), - (_.lanes = e.lanes), - (_.child = e.child), - (_.memoizedProps = e.memoizedProps), - (_.memoizedState = e.memoizedState), - (_.updateQueue = e.updateQueue), - (o = e.dependencies), - (_.dependencies = o === null ? null : { lanes: o.lanes, firstContext: o.firstContext }), - (_.sibling = e.sibling), - (_.index = e.index), - (_.ref = e.ref), - _ - ) -} -function yh(e, o, _, b, $, en) { - var nn = 2 - if (((b = e), typeof e == 'function')) bj(e) && (nn = 1) - else if (typeof e == 'string') nn = 5 - else - e: switch (e) { - case ya: - return Ah(_.children, $, en, o) - case za: - ;(nn = 8), ($ |= 8) - break - case Aa: - return (e = Bg(12, _, o, $ | 2)), (e.elementType = Aa), (e.lanes = en), e - case Ea: - return (e = Bg(13, _, o, $)), (e.elementType = Ea), (e.lanes = en), e - case Fa: - return (e = Bg(19, _, o, $)), (e.elementType = Fa), (e.lanes = en), e - case Ia: - return qj(_, $, en, o) - default: - if (typeof e == 'object' && e !== null) - switch (e.$$typeof) { - case Ba: - nn = 10 - break e - case Ca: - nn = 9 - break e - case Da: - nn = 11 - break e - case Ga: - nn = 14 - break e - case Ha: - ;(nn = 16), (b = null) - break e - } - throw Error(p(130, e == null ? e : typeof e, '')) - } - return (o = Bg(nn, _, o, $)), (o.elementType = e), (o.type = b), (o.lanes = en), o -} -function Ah(e, o, _, b) { - return (e = Bg(7, e, b, o)), (e.lanes = _), e -} -function qj(e, o, _, b) { - return ( - (e = Bg(22, e, b, o)), (e.elementType = Ia), (e.lanes = _), (e.stateNode = { isHidden: !1 }), e - ) -} -function xh(e, o, _) { - return (e = Bg(6, e, null, o)), (e.lanes = _), e -} -function zh(e, o, _) { - return ( - (o = Bg(4, e.children !== null ? e.children : [], e.key, o)), - (o.lanes = _), - (o.stateNode = { - containerInfo: e.containerInfo, - pendingChildren: null, - implementation: e.implementation, - }), - o - ) -} -function bl(e, o, _, b, $) { - ;(this.tag = o), - (this.containerInfo = e), - (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), - (this.timeoutHandle = -1), - (this.callbackNode = this.pendingContext = this.context = null), - (this.callbackPriority = 0), - (this.eventTimes = zc(0)), - (this.expirationTimes = zc(-1)), - (this.entangledLanes = - this.finishedLanes = - this.mutableReadLanes = - this.expiredLanes = - this.pingedLanes = - this.suspendedLanes = - this.pendingLanes = - 0), - (this.entanglements = zc(0)), - (this.identifierPrefix = b), - (this.onRecoverableError = $), - (this.mutableSourceEagerHydrationData = null) -} -function cl(e, o, _, b, $, en, nn, sn, gn) { - return ( - (e = new bl(e, o, _, sn, gn)), - o === 1 ? ((o = 1), en === !0 && (o |= 8)) : (o = 0), - (en = Bg(3, null, null, o)), - (e.current = en), - (en.stateNode = e), - (en.memoizedState = { - element: b, - isDehydrated: _, - cache: null, - transitions: null, - pendingSuspenseBoundaries: null, - }), - ah(en), - e - ) -} -function dl(e, o, _) { - var b = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null - return { - $$typeof: wa, - key: b == null ? null : '' + b, - children: e, - containerInfo: o, - implementation: _, - } -} -function el(e) { - if (!e) return Vf - e = e._reactInternals - e: { - if (Vb(e) !== e || e.tag !== 1) throw Error(p(170)) - var o = e - do { - switch (o.tag) { - case 3: - o = o.stateNode.context - break e - case 1: - if (Zf(o.type)) { - o = o.stateNode.__reactInternalMemoizedMergedChildContext - break e - } - } - o = o.return - } while (o !== null) - throw Error(p(171)) - } - if (e.tag === 1) { - var _ = e.type - if (Zf(_)) return bg(e, _, o) - } - return o -} -function fl(e, o, _, b, $, en, nn, sn, gn) { - return ( - (e = cl(_, b, !0, e, $, en, nn, sn, gn)), - (e.context = el(null)), - (_ = e.current), - (b = L()), - ($ = lh(_)), - (en = ch(b, $)), - (en.callback = o ?? null), - dh(_, en, $), - (e.current.lanes = $), - Ac(e, $, b), - Ek(e, b), - e - ) -} -function gl(e, o, _, b) { - var $ = o.current, - en = L(), - nn = lh($) - return ( - (_ = el(_)), - o.context === null ? (o.context = _) : (o.pendingContext = _), - (o = ch(en, nn)), - (o.payload = { element: e }), - (b = b === void 0 ? null : b), - b !== null && (o.callback = b), - (e = dh($, o, nn)), - e !== null && (mh(e, $, nn, en), eh(e, $, nn)), - nn - ) -} -function hl(e) { - if (((e = e.current), !e.child)) return null - switch (e.child.tag) { - case 5: - return e.child.stateNode - default: - return e.child.stateNode - } -} -function il(e, o) { - if (((e = e.memoizedState), e !== null && e.dehydrated !== null)) { - var _ = e.retryLane - e.retryLane = _ !== 0 && _ < o ? _ : o - } -} -function jl(e, o) { - il(e, o), (e = e.alternate) && il(e, o) -} -function kl() { - return null -} -var ll = - typeof reportError == 'function' - ? reportError - : function (e) { - console.error(e) - } -function ml(e) { - this._internalRoot = e -} -nl.prototype.render = ml.prototype.render = function (e) { - var o = this._internalRoot - if (o === null) throw Error(p(409)) - gl(e, o, null, null) -} -nl.prototype.unmount = ml.prototype.unmount = function () { - var e = this._internalRoot - if (e !== null) { - this._internalRoot = null - var o = e.containerInfo - Sk(function () { - gl(null, e, null, null) - }), - (o[uf] = null) - } -} -function nl(e) { - this._internalRoot = e -} -nl.prototype.unstable_scheduleHydration = function (e) { - if (e) { - var o = Hc() - e = { blockedOn: null, target: e, priority: o } - for (var _ = 0; _ < Qc.length && o !== 0 && o < Qc[_].priority; _++); - Qc.splice(_, 0, e), _ === 0 && Vc(e) - } -} -function ol(e) { - return !(!e || (e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11)) -} -function pl(e) { - return !( - !e || - (e.nodeType !== 1 && - e.nodeType !== 9 && - e.nodeType !== 11 && - (e.nodeType !== 8 || e.nodeValue !== ' react-mount-point-unstable ')) - ) -} -function ql() {} -function rl(e, o, _, b, $) { - if ($) { - if (typeof b == 'function') { - var en = b - b = function () { - var In = hl(nn) - en.call(In) - } - } - var nn = fl(o, b, e, 0, null, !1, !1, '', ql) - return ( - (e._reactRootContainer = nn), - (e[uf] = nn.current), - sf(e.nodeType === 8 ? e.parentNode : e), - Sk(), - nn - ) - } - for (; ($ = e.lastChild); ) e.removeChild($) - if (typeof b == 'function') { - var sn = b - b = function () { - var In = hl(gn) - sn.call(In) - } - } - var gn = cl(e, 0, !1, null, null, !1, !1, '', ql) - return ( - (e._reactRootContainer = gn), - (e[uf] = gn.current), - sf(e.nodeType === 8 ? e.parentNode : e), - Sk(function () { - gl(o, gn, _, b) - }), - gn - ) -} -function sl(e, o, _, b, $) { - var en = _._reactRootContainer - if (en) { - var nn = en - if (typeof $ == 'function') { - var sn = $ - $ = function () { - var gn = hl(nn) - sn.call(gn) - } - } - gl(o, nn, e, $) - } else nn = rl(_, o, e, $, b) - return hl(nn) -} -Ec = function (e) { - switch (e.tag) { - case 3: - var o = e.stateNode - if (o.current.memoizedState.isDehydrated) { - var _ = tc(o.pendingLanes) - _ !== 0 && (Cc(o, _ | 1), Ek(o, B()), !(K$1 & 6) && ((Hj = B() + 500), jg())) - } - break - case 13: - Sk(function () { - var b = Zg(e, 1) - if (b !== null) { - var $ = L() - mh(b, e, 1, $) - } - }), - jl(e, 1) - } -} -Fc = function (e) { - if (e.tag === 13) { - var o = Zg(e, 134217728) - if (o !== null) { - var _ = L() - mh(o, e, 134217728, _) - } - jl(e, 134217728) - } -} -Gc = function (e) { - if (e.tag === 13) { - var o = lh(e), - _ = Zg(e, o) - if (_ !== null) { - var b = L() - mh(_, e, o, b) - } - jl(e, o) - } -} -Hc = function () { - return C -} -Ic = function (e, o) { - var _ = C - try { - return (C = e), o() - } finally { - C = _ - } -} -yb = function (e, o, _) { - switch (o) { - case 'input': - if ((bb(e, _), (o = _.name), _.type === 'radio' && o != null)) { - for (_ = e; _.parentNode; ) _ = _.parentNode - for ( - _ = _.querySelectorAll('input[name=' + JSON.stringify('' + o) + '][type="radio"]'), o = 0; - o < _.length; - o++ - ) { - var b = _[o] - if (b !== e && b.form === e.form) { - var $ = Db(b) - if (!$) throw Error(p(90)) - Wa(b), bb(b, $) - } - } - } - break - case 'textarea': - ib(e, _) - break - case 'select': - ;(o = _.value), o != null && fb(e, !!_.multiple, o, !1) - } -} -Gb = Rk -Hb = Sk -var tl = { usingClientEntryPoint: !1, Events: [Cb, ue, Db, Eb, Fb, Rk] }, - ul = { - findFiberByHostInstance: Wc, - bundleType: 0, - version: '18.2.0', - rendererPackageName: 'react-dom', - }, - vl = { - bundleType: ul.bundleType, - version: ul.version, - rendererPackageName: ul.rendererPackageName, - rendererConfig: ul.rendererConfig, - overrideHookState: null, - overrideHookStateDeletePath: null, - overrideHookStateRenamePath: null, - overrideProps: null, - overridePropsDeletePath: null, - overridePropsRenamePath: null, - setErrorHandler: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: ua.ReactCurrentDispatcher, - findHostInstanceByFiber: function (e) { - return (e = Zb(e)), e === null ? null : e.stateNode - }, - findFiberByHostInstance: ul.findFiberByHostInstance || kl, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null, - reconcilerVersion: '18.2.0-next-9e3b772b8-20220608', - } -if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < 'u') { - var wl = __REACT_DEVTOOLS_GLOBAL_HOOK__ - if (!wl.isDisabled && wl.supportsFiber) - try { - ;(kc = wl.inject(vl)), (lc = wl) - } catch {} -} -reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = tl -reactDom_production_min.createPortal = function (e, o) { - var _ = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null - if (!ol(o)) throw Error(p(200)) - return dl(e, o, null, _) -} -reactDom_production_min.createRoot = function (e, o) { - if (!ol(e)) throw Error(p(299)) - var _ = !1, - b = '', - $ = ll - return ( - o != null && - (o.unstable_strictMode === !0 && (_ = !0), - o.identifierPrefix !== void 0 && (b = o.identifierPrefix), - o.onRecoverableError !== void 0 && ($ = o.onRecoverableError)), - (o = cl(e, 1, !1, null, null, _, !1, b, $)), - (e[uf] = o.current), - sf(e.nodeType === 8 ? e.parentNode : e), - new ml(o) - ) -} -reactDom_production_min.findDOMNode = function (e) { - if (e == null) return null - if (e.nodeType === 1) return e - var o = e._reactInternals - if (o === void 0) - throw typeof e.render == 'function' - ? Error(p(188)) - : ((e = Object.keys(e).join(',')), Error(p(268, e))) - return (e = Zb(o)), (e = e === null ? null : e.stateNode), e -} -reactDom_production_min.flushSync = function (e) { - return Sk(e) -} -reactDom_production_min.hydrate = function (e, o, _) { - if (!pl(o)) throw Error(p(200)) - return sl(null, e, o, !0, _) -} -reactDom_production_min.hydrateRoot = function (e, o, _) { - if (!ol(e)) throw Error(p(405)) - var b = (_ != null && _.hydratedSources) || null, - $ = !1, - en = '', - nn = ll - if ( - (_ != null && - (_.unstable_strictMode === !0 && ($ = !0), - _.identifierPrefix !== void 0 && (en = _.identifierPrefix), - _.onRecoverableError !== void 0 && (nn = _.onRecoverableError)), - (o = fl(o, null, e, 1, _ ?? null, $, !1, en, nn)), - (e[uf] = o.current), - sf(e), - b) - ) - for (e = 0; e < b.length; e++) - (_ = b[e]), - ($ = _._getVersion), - ($ = $(_._source)), - o.mutableSourceEagerHydrationData == null - ? (o.mutableSourceEagerHydrationData = [_, $]) - : o.mutableSourceEagerHydrationData.push(_, $) - return new nl(o) -} -reactDom_production_min.render = function (e, o, _) { - if (!pl(o)) throw Error(p(200)) - return sl(null, e, o, !1, _) -} -reactDom_production_min.unmountComponentAtNode = function (e) { - if (!pl(e)) throw Error(p(40)) - return e._reactRootContainer - ? (Sk(function () { - sl(null, null, e, !1, function () { - ;(e._reactRootContainer = null), (e[uf] = null) - }) - }), - !0) - : !1 -} -reactDom_production_min.unstable_batchedUpdates = Rk -reactDom_production_min.unstable_renderSubtreeIntoContainer = function (e, o, _, b) { - if (!pl(_)) throw Error(p(200)) - if (e == null || e._reactInternals === void 0) throw Error(p(38)) - return sl(e, o, _, !1, b) -} -reactDom_production_min.version = '18.2.0-next-9e3b772b8-20220608' -;(function (e) { - function o() { - if ( - !( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > 'u' || - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != 'function' - ) - ) - try { - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o) - } catch (_) { - console.error(_) - } - } - o(), (e.exports = reactDom_production_min) -})(reactDom) -const ReactDOM = getDefaultExportFromCjs(reactDomExports) -var m = reactDomExports -;(client$1.createRoot = m.createRoot), (client$1.hydrateRoot = m.hydrateRoot) -const oracle = 'osmo1mhznfr60vjdp2gejhyv2gax9nvyyzhd3z0qcwseyetkfustjauzqycsy2g', - creditManager = 'osmo1f2m24wktq0sw3c0lexlg7fv4kngwyttvzws3a3r3al9ld2s2pvds87jqvf', - params$1 = 'osmo1aye5qcer5n52crrkaf35jprsad2807q6kg3eeeu7k79h4slxfausfqhc9y' -function _setPrototypeOf(e, o) { - return ( - (_setPrototypeOf = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function (b, $) { - return (b.__proto__ = $), b - }), - _setPrototypeOf(e, o) - ) -} -function _inheritsLoose(e, o) { - ;(e.prototype = Object.create(o.prototype)), (e.prototype.constructor = e), _setPrototypeOf(e, o) -} -var Subscribable = (function () { - function e() { - this.listeners = [] - } - var o = e.prototype - return ( - (o.subscribe = function (b) { - var $ = this, - en = b || function () {} - return ( - this.listeners.push(en), - this.onSubscribe(), - function () { - ;($.listeners = $.listeners.filter(function (nn) { - return nn !== en - })), - $.onUnsubscribe() - } - ) - }), - (o.hasListeners = function () { - return this.listeners.length > 0 - }), - (o.onSubscribe = function () {}), - (o.onUnsubscribe = function () {}), - e - ) -})() -function _extends() { - return ( - (_extends = Object.assign - ? Object.assign.bind() - : function (e) { - for (var o = 1; o < arguments.length; o++) { - var _ = arguments[o] - for (var b in _) Object.prototype.hasOwnProperty.call(_, b) && (e[b] = _[b]) - } - return e - }), - _extends.apply(this, arguments) - ) -} -var isServer = typeof window > 'u' -function noop$2() {} -function functionalUpdate(e, o) { - return typeof e == 'function' ? e(o) : e -} -function isValidTimeout(e) { - return typeof e == 'number' && e >= 0 && e !== 1 / 0 -} -function ensureQueryKeyArray(e) { - return Array.isArray(e) ? e : [e] -} -function timeUntilStale(e, o) { - return Math.max(e + (o || 0) - Date.now(), 0) -} -function parseQueryArgs(e, o, _) { - return isQueryKey(e) - ? typeof o == 'function' - ? _extends({}, _, { queryKey: e, queryFn: o }) - : _extends({}, o, { queryKey: e }) - : e -} -function parseFilterArgs(e, o, _) { - return isQueryKey(e) ? [_extends({}, o, { queryKey: e }), _] : [e || {}, o] -} -function mapQueryStatusFilter(e, o) { - if ((e === !0 && o === !0) || (e == null && o == null)) return 'all' - if (e === !1 && o === !1) return 'none' - var _ = e ?? !o - return _ ? 'active' : 'inactive' -} -function matchQuery(e, o) { - var _ = e.active, - b = e.exact, - $ = e.fetching, - en = e.inactive, - nn = e.predicate, - sn = e.queryKey, - gn = e.stale - if (isQueryKey(sn)) { - if (b) { - if (o.queryHash !== hashQueryKeyByOptions(sn, o.options)) return !1 - } else if (!partialMatchKey(o.queryKey, sn)) return !1 - } - var In = mapQueryStatusFilter(_, en) - if (In === 'none') return !1 - if (In !== 'all') { - var Jn = o.isActive() - if ((In === 'active' && !Jn) || (In === 'inactive' && Jn)) return !1 - } - return !( - (typeof gn == 'boolean' && o.isStale() !== gn) || - (typeof $ == 'boolean' && o.isFetching() !== $) || - (nn && !nn(o)) - ) -} -function matchMutation(e, o) { - var _ = e.exact, - b = e.fetching, - $ = e.predicate, - en = e.mutationKey - if (isQueryKey(en)) { - if (!o.options.mutationKey) return !1 - if (_) { - if (hashQueryKey(o.options.mutationKey) !== hashQueryKey(en)) return !1 - } else if (!partialMatchKey(o.options.mutationKey, en)) return !1 - } - return !((typeof b == 'boolean' && (o.state.status === 'loading') !== b) || ($ && !$(o))) -} -function hashQueryKeyByOptions(e, o) { - var _ = o?.queryKeyHashFn || hashQueryKey - return _(e) -} -function hashQueryKey(e) { - var o = ensureQueryKeyArray(e) - return stableValueHash(o) -} -function stableValueHash(e) { - return JSON.stringify(e, function (o, _) { - return isPlainObject$1(_) - ? Object.keys(_) - .sort() - .reduce(function (b, $) { - return (b[$] = _[$]), b - }, {}) - : _ - }) -} -function partialMatchKey(e, o) { - return partialDeepEqual(ensureQueryKeyArray(e), ensureQueryKeyArray(o)) -} -function partialDeepEqual(e, o) { - return e === o - ? !0 - : typeof e != typeof o - ? !1 - : e && o && typeof e == 'object' && typeof o == 'object' - ? !Object.keys(o).some(function (_) { - return !partialDeepEqual(e[_], o[_]) - }) - : !1 -} -function replaceEqualDeep(e, o) { - if (e === o) return e - var _ = Array.isArray(e) && Array.isArray(o) - if (_ || (isPlainObject$1(e) && isPlainObject$1(o))) { - for ( - var b = _ ? e.length : Object.keys(e).length, - $ = _ ? o : Object.keys(o), - en = $.length, - nn = _ ? [] : {}, - sn = 0, - gn = 0; - gn < en; - gn++ - ) { - var In = _ ? gn : $[gn] - ;(nn[In] = replaceEqualDeep(e[In], o[In])), nn[In] === e[In] && sn++ - } - return b === en && sn === b ? e : nn - } - return o -} -function shallowEqualObjects(e, o) { - if ((e && !o) || (o && !e)) return !1 - for (var _ in e) if (e[_] !== o[_]) return !1 - return !0 -} -function isPlainObject$1(e) { - if (!hasObjectPrototype(e)) return !1 - var o = e.constructor - if (typeof o > 'u') return !0 - var _ = o.prototype - return !(!hasObjectPrototype(_) || !_.hasOwnProperty('isPrototypeOf')) -} -function hasObjectPrototype(e) { - return Object.prototype.toString.call(e) === '[object Object]' -} -function isQueryKey(e) { - return typeof e == 'string' || Array.isArray(e) -} -function sleep$2(e) { - return new Promise(function (o) { - setTimeout(o, e) - }) -} -function scheduleMicrotask(e) { - Promise.resolve() - .then(e) - .catch(function (o) { - return setTimeout(function () { - throw o - }) - }) -} -function getAbortController() { - if (typeof AbortController == 'function') return new AbortController() -} -var FocusManager = (function (e) { - _inheritsLoose(o, e) - function o() { - var b - return ( - (b = e.call(this) || this), - (b.setup = function ($) { - var en - if (!isServer && (en = window) != null && en.addEventListener) { - var nn = function () { - return $() - } - return ( - window.addEventListener('visibilitychange', nn, !1), - window.addEventListener('focus', nn, !1), - function () { - window.removeEventListener('visibilitychange', nn), - window.removeEventListener('focus', nn) - } - ) - } - }), - b - ) - } - var _ = o.prototype - return ( - (_.onSubscribe = function () { - this.cleanup || this.setEventListener(this.setup) - }), - (_.onUnsubscribe = function () { - if (!this.hasListeners()) { - var $ - ;($ = this.cleanup) == null || $.call(this), (this.cleanup = void 0) - } - }), - (_.setEventListener = function ($) { - var en, - nn = this - ;(this.setup = $), - (en = this.cleanup) == null || en.call(this), - (this.cleanup = $(function (sn) { - typeof sn == 'boolean' ? nn.setFocused(sn) : nn.onFocus() - })) - }), - (_.setFocused = function ($) { - ;(this.focused = $), $ && this.onFocus() - }), - (_.onFocus = function () { - this.listeners.forEach(function ($) { - $() - }) - }), - (_.isFocused = function () { - return typeof this.focused == 'boolean' - ? this.focused - : typeof document > 'u' - ? !0 - : [void 0, 'visible', 'prerender'].includes(document.visibilityState) - }), - o - ) - })(Subscribable), - focusManager = new FocusManager(), - OnlineManager = (function (e) { - _inheritsLoose(o, e) - function o() { - var b - return ( - (b = e.call(this) || this), - (b.setup = function ($) { - var en - if (!isServer && (en = window) != null && en.addEventListener) { - var nn = function () { - return $() - } - return ( - window.addEventListener('online', nn, !1), - window.addEventListener('offline', nn, !1), - function () { - window.removeEventListener('online', nn), window.removeEventListener('offline', nn) - } - ) - } - }), - b - ) - } - var _ = o.prototype - return ( - (_.onSubscribe = function () { - this.cleanup || this.setEventListener(this.setup) - }), - (_.onUnsubscribe = function () { - if (!this.hasListeners()) { - var $ - ;($ = this.cleanup) == null || $.call(this), (this.cleanup = void 0) - } - }), - (_.setEventListener = function ($) { - var en, - nn = this - ;(this.setup = $), - (en = this.cleanup) == null || en.call(this), - (this.cleanup = $(function (sn) { - typeof sn == 'boolean' ? nn.setOnline(sn) : nn.onOnline() - })) - }), - (_.setOnline = function ($) { - ;(this.online = $), $ && this.onOnline() - }), - (_.onOnline = function () { - this.listeners.forEach(function ($) { - $() - }) - }), - (_.isOnline = function () { - return typeof this.online == 'boolean' - ? this.online - : typeof navigator > 'u' || typeof navigator.onLine > 'u' - ? !0 - : navigator.onLine - }), - o - ) - })(Subscribable), - onlineManager = new OnlineManager() -function defaultRetryDelay(e) { - return Math.min(1e3 * Math.pow(2, e), 3e4) -} -function isCancelable(e) { - return typeof e?.cancel == 'function' -} -var CancelledError = function (o) { - ;(this.revert = o?.revert), (this.silent = o?.silent) -} -function isCancelledError(e) { - return e instanceof CancelledError -} -var Retryer = function (o) { - var _ = this, - b = !1, - $, - en, - nn, - sn - ;(this.abort = o.abort), - (this.cancel = function (Kn) { - return $?.(Kn) - }), - (this.cancelRetry = function () { - b = !0 - }), - (this.continueRetry = function () { - b = !1 - }), - (this.continue = function () { - return en?.() - }), - (this.failureCount = 0), - (this.isPaused = !1), - (this.isResolved = !1), - (this.isTransportCancelable = !1), - (this.promise = new Promise(function (Kn, an) { - ;(nn = Kn), (sn = an) - })) - var gn = function (an) { - _.isResolved || - ((_.isResolved = !0), o.onSuccess == null || o.onSuccess(an), en?.(), nn(an)) - }, - In = function (an) { - _.isResolved || ((_.isResolved = !0), o.onError == null || o.onError(an), en?.(), sn(an)) - }, - Jn = function () { - return new Promise(function (an) { - ;(en = an), (_.isPaused = !0), o.onPause == null || o.onPause() - }).then(function () { - ;(en = void 0), (_.isPaused = !1), o.onContinue == null || o.onContinue() - }) - }, - qn = function Kn() { - if (!_.isResolved) { - var an - try { - an = o.fn() - } catch (xn) { - an = Promise.reject(xn) - } - ;($ = function (mn) { - if ( - !_.isResolved && - (In(new CancelledError(mn)), _.abort == null || _.abort(), isCancelable(an)) - ) - try { - an.cancel() - } catch {} - }), - (_.isTransportCancelable = isCancelable(an)), - Promise.resolve(an) - .then(gn) - .catch(function (xn) { - var mn, Bn - if (!_.isResolved) { - var kn = (mn = o.retry) != null ? mn : 3, - ln = (Bn = o.retryDelay) != null ? Bn : defaultRetryDelay, - yn = typeof ln == 'function' ? ln(_.failureCount, xn) : ln, - Cn = - kn === !0 || - (typeof kn == 'number' && _.failureCount < kn) || - (typeof kn == 'function' && kn(_.failureCount, xn)) - if (b || !Cn) { - In(xn) - return - } - _.failureCount++, - o.onFail == null || o.onFail(_.failureCount, xn), - sleep$2(yn) - .then(function () { - if (!focusManager.isFocused() || !onlineManager.isOnline()) return Jn() - }) - .then(function () { - b ? In(xn) : Kn() - }) - } - }) - } - } - qn() - }, - NotifyManager = (function () { - function e() { - ;(this.queue = []), - (this.transactions = 0), - (this.notifyFn = function (_) { - _() - }), - (this.batchNotifyFn = function (_) { - _() - }) - } - var o = e.prototype - return ( - (o.batch = function (b) { - var $ - this.transactions++ - try { - $ = b() - } finally { - this.transactions--, this.transactions || this.flush() - } - return $ - }), - (o.schedule = function (b) { - var $ = this - this.transactions - ? this.queue.push(b) - : scheduleMicrotask(function () { - $.notifyFn(b) - }) - }), - (o.batchCalls = function (b) { - var $ = this - return function () { - for (var en = arguments.length, nn = new Array(en), sn = 0; sn < en; sn++) - nn[sn] = arguments[sn] - $.schedule(function () { - b.apply(void 0, nn) - }) - } - }), - (o.flush = function () { - var b = this, - $ = this.queue - ;(this.queue = []), - $.length && - scheduleMicrotask(function () { - b.batchNotifyFn(function () { - $.forEach(function (en) { - b.notifyFn(en) - }) - }) - }) - }), - (o.setNotifyFunction = function (b) { - this.notifyFn = b - }), - (o.setBatchNotifyFunction = function (b) { - this.batchNotifyFn = b - }), - e - ) - })(), - notifyManager = new NotifyManager(), - logger$1 = console -function getLogger() { - return logger$1 -} -function setLogger(e) { - logger$1 = e -} -var Query = (function () { - function e(_) { - ;(this.abortSignalConsumed = !1), - (this.hadObservers = !1), - (this.defaultOptions = _.defaultOptions), - this.setOptions(_.options), - (this.observers = []), - (this.cache = _.cache), - (this.queryKey = _.queryKey), - (this.queryHash = _.queryHash), - (this.initialState = _.state || this.getDefaultState(this.options)), - (this.state = this.initialState), - (this.meta = _.meta), - this.scheduleGc() - } - var o = e.prototype - return ( - (o.setOptions = function (b) { - var $ - ;(this.options = _extends({}, this.defaultOptions, b)), - (this.meta = b?.meta), - (this.cacheTime = Math.max( - this.cacheTime || 0, - ($ = this.options.cacheTime) != null ? $ : 5 * 60 * 1e3, - )) - }), - (o.setDefaultOptions = function (b) { - this.defaultOptions = b - }), - (o.scheduleGc = function () { - var b = this - this.clearGcTimeout(), - isValidTimeout(this.cacheTime) && - (this.gcTimeout = setTimeout(function () { - b.optionalRemove() - }, this.cacheTime)) - }), - (o.clearGcTimeout = function () { - this.gcTimeout && (clearTimeout(this.gcTimeout), (this.gcTimeout = void 0)) - }), - (o.optionalRemove = function () { - this.observers.length || - (this.state.isFetching ? this.hadObservers && this.scheduleGc() : this.cache.remove(this)) - }), - (o.setData = function (b, $) { - var en, - nn, - sn = this.state.data, - gn = functionalUpdate(b, sn) - return ( - (en = (nn = this.options).isDataEqual) != null && en.call(nn, sn, gn) - ? (gn = sn) - : this.options.structuralSharing !== !1 && (gn = replaceEqualDeep(sn, gn)), - this.dispatch({ data: gn, type: 'success', dataUpdatedAt: $?.updatedAt }), - gn - ) - }), - (o.setState = function (b, $) { - this.dispatch({ type: 'setState', state: b, setStateOptions: $ }) - }), - (o.cancel = function (b) { - var $, - en = this.promise - return ( - ($ = this.retryer) == null || $.cancel(b), - en ? en.then(noop$2).catch(noop$2) : Promise.resolve() - ) - }), - (o.destroy = function () { - this.clearGcTimeout(), this.cancel({ silent: !0 }) - }), - (o.reset = function () { - this.destroy(), this.setState(this.initialState) - }), - (o.isActive = function () { - return this.observers.some(function (b) { - return b.options.enabled !== !1 - }) - }), - (o.isFetching = function () { - return this.state.isFetching - }), - (o.isStale = function () { - return ( - this.state.isInvalidated || - !this.state.dataUpdatedAt || - this.observers.some(function (b) { - return b.getCurrentResult().isStale - }) - ) - }), - (o.isStaleByTime = function (b) { - return ( - b === void 0 && (b = 0), - this.state.isInvalidated || - !this.state.dataUpdatedAt || - !timeUntilStale(this.state.dataUpdatedAt, b) - ) - }), - (o.onFocus = function () { - var b, - $ = this.observers.find(function (en) { - return en.shouldFetchOnWindowFocus() - }) - $ && $.refetch(), (b = this.retryer) == null || b.continue() - }), - (o.onOnline = function () { - var b, - $ = this.observers.find(function (en) { - return en.shouldFetchOnReconnect() - }) - $ && $.refetch(), (b = this.retryer) == null || b.continue() - }), - (o.addObserver = function (b) { - this.observers.indexOf(b) === -1 && - (this.observers.push(b), - (this.hadObservers = !0), - this.clearGcTimeout(), - this.cache.notify({ type: 'observerAdded', query: this, observer: b })) - }), - (o.removeObserver = function (b) { - this.observers.indexOf(b) !== -1 && - ((this.observers = this.observers.filter(function ($) { - return $ !== b - })), - this.observers.length || - (this.retryer && - (this.retryer.isTransportCancelable || this.abortSignalConsumed - ? this.retryer.cancel({ revert: !0 }) - : this.retryer.cancelRetry()), - this.cacheTime ? this.scheduleGc() : this.cache.remove(this)), - this.cache.notify({ type: 'observerRemoved', query: this, observer: b })) - }), - (o.getObserversCount = function () { - return this.observers.length - }), - (o.invalidate = function () { - this.state.isInvalidated || this.dispatch({ type: 'invalidate' }) - }), - (o.fetch = function (b, $) { - var en = this, - nn, - sn, - gn - if (this.state.isFetching) { - if (this.state.dataUpdatedAt && $?.cancelRefetch) this.cancel({ silent: !0 }) - else if (this.promise) { - var In - return (In = this.retryer) == null || In.continueRetry(), this.promise - } - } - if ((b && this.setOptions(b), !this.options.queryFn)) { - var Jn = this.observers.find(function (ln) { - return ln.options.queryFn - }) - Jn && this.setOptions(Jn.options) - } - var qn = ensureQueryKeyArray(this.queryKey), - Kn = getAbortController(), - an = { queryKey: qn, pageParam: void 0, meta: this.meta } - Object.defineProperty(an, 'signal', { - enumerable: !0, - get: function () { - if (Kn) return (en.abortSignalConsumed = !0), Kn.signal - }, - }) - var xn = function () { - return en.options.queryFn - ? ((en.abortSignalConsumed = !1), en.options.queryFn(an)) - : Promise.reject('Missing queryFn') - }, - mn = { - fetchOptions: $, - options: this.options, - queryKey: qn, - state: this.state, - fetchFn: xn, - meta: this.meta, - } - if ((nn = this.options.behavior) != null && nn.onFetch) { - var Bn - ;(Bn = this.options.behavior) == null || Bn.onFetch(mn) - } - if ( - ((this.revertState = this.state), - !this.state.isFetching || - this.state.fetchMeta !== ((sn = mn.fetchOptions) == null ? void 0 : sn.meta)) - ) { - var kn - this.dispatch({ type: 'fetch', meta: (kn = mn.fetchOptions) == null ? void 0 : kn.meta }) - } - return ( - (this.retryer = new Retryer({ - fn: mn.fetchFn, - abort: Kn == null || (gn = Kn.abort) == null ? void 0 : gn.bind(Kn), - onSuccess: function (yn) { - en.setData(yn), - en.cache.config.onSuccess == null || en.cache.config.onSuccess(yn, en), - en.cacheTime === 0 && en.optionalRemove() - }, - onError: function (yn) { - ;(isCancelledError(yn) && yn.silent) || en.dispatch({ type: 'error', error: yn }), - isCancelledError(yn) || - (en.cache.config.onError == null || en.cache.config.onError(yn, en), - getLogger().error(yn)), - en.cacheTime === 0 && en.optionalRemove() - }, - onFail: function () { - en.dispatch({ type: 'failed' }) - }, - onPause: function () { - en.dispatch({ type: 'pause' }) - }, - onContinue: function () { - en.dispatch({ type: 'continue' }) - }, - retry: mn.options.retry, - retryDelay: mn.options.retryDelay, - })), - (this.promise = this.retryer.promise), - this.promise - ) - }), - (o.dispatch = function (b) { - var $ = this - ;(this.state = this.reducer(this.state, b)), - notifyManager.batch(function () { - $.observers.forEach(function (en) { - en.onQueryUpdate(b) - }), - $.cache.notify({ query: $, type: 'queryUpdated', action: b }) - }) - }), - (o.getDefaultState = function (b) { - var $ = typeof b.initialData == 'function' ? b.initialData() : b.initialData, - en = typeof b.initialData < 'u', - nn = en - ? typeof b.initialDataUpdatedAt == 'function' - ? b.initialDataUpdatedAt() - : b.initialDataUpdatedAt - : 0, - sn = typeof $ < 'u' - return { - data: $, - dataUpdateCount: 0, - dataUpdatedAt: sn ? nn ?? Date.now() : 0, - error: null, - errorUpdateCount: 0, - errorUpdatedAt: 0, - fetchFailureCount: 0, - fetchMeta: null, - isFetching: !1, - isInvalidated: !1, - isPaused: !1, - status: sn ? 'success' : 'idle', - } - }), - (o.reducer = function (b, $) { - var en, nn - switch ($.type) { - case 'failed': - return _extends({}, b, { fetchFailureCount: b.fetchFailureCount + 1 }) - case 'pause': - return _extends({}, b, { isPaused: !0 }) - case 'continue': - return _extends({}, b, { isPaused: !1 }) - case 'fetch': - return _extends( - {}, - b, - { - fetchFailureCount: 0, - fetchMeta: (en = $.meta) != null ? en : null, - isFetching: !0, - isPaused: !1, - }, - !b.dataUpdatedAt && { error: null, status: 'loading' }, - ) - case 'success': - return _extends({}, b, { - data: $.data, - dataUpdateCount: b.dataUpdateCount + 1, - dataUpdatedAt: (nn = $.dataUpdatedAt) != null ? nn : Date.now(), - error: null, - fetchFailureCount: 0, - isFetching: !1, - isInvalidated: !1, - isPaused: !1, - status: 'success', - }) - case 'error': - var sn = $.error - return isCancelledError(sn) && sn.revert && this.revertState - ? _extends({}, this.revertState) - : _extends({}, b, { - error: sn, - errorUpdateCount: b.errorUpdateCount + 1, - errorUpdatedAt: Date.now(), - fetchFailureCount: b.fetchFailureCount + 1, - isFetching: !1, - isPaused: !1, - status: 'error', - }) - case 'invalidate': - return _extends({}, b, { isInvalidated: !0 }) - case 'setState': - return _extends({}, b, $.state) - default: - return b - } - }), - e - ) - })(), - QueryCache = (function (e) { - _inheritsLoose(o, e) - function o(b) { - var $ - return ( - ($ = e.call(this) || this), ($.config = b || {}), ($.queries = []), ($.queriesMap = {}), $ - ) - } - var _ = o.prototype - return ( - (_.build = function ($, en, nn) { - var sn, - gn = en.queryKey, - In = (sn = en.queryHash) != null ? sn : hashQueryKeyByOptions(gn, en), - Jn = this.get(In) - return ( - Jn || - ((Jn = new Query({ - cache: this, - queryKey: gn, - queryHash: In, - options: $.defaultQueryOptions(en), - state: nn, - defaultOptions: $.getQueryDefaults(gn), - meta: en.meta, - })), - this.add(Jn)), - Jn - ) - }), - (_.add = function ($) { - this.queriesMap[$.queryHash] || - ((this.queriesMap[$.queryHash] = $), - this.queries.push($), - this.notify({ type: 'queryAdded', query: $ })) - }), - (_.remove = function ($) { - var en = this.queriesMap[$.queryHash] - en && - ($.destroy(), - (this.queries = this.queries.filter(function (nn) { - return nn !== $ - })), - en === $ && delete this.queriesMap[$.queryHash], - this.notify({ type: 'queryRemoved', query: $ })) - }), - (_.clear = function () { - var $ = this - notifyManager.batch(function () { - $.queries.forEach(function (en) { - $.remove(en) - }) - }) - }), - (_.get = function ($) { - return this.queriesMap[$] - }), - (_.getAll = function () { - return this.queries - }), - (_.find = function ($, en) { - var nn = parseFilterArgs($, en), - sn = nn[0] - return ( - typeof sn.exact > 'u' && (sn.exact = !0), - this.queries.find(function (gn) { - return matchQuery(sn, gn) - }) - ) - }), - (_.findAll = function ($, en) { - var nn = parseFilterArgs($, en), - sn = nn[0] - return Object.keys(sn).length > 0 - ? this.queries.filter(function (gn) { - return matchQuery(sn, gn) - }) - : this.queries - }), - (_.notify = function ($) { - var en = this - notifyManager.batch(function () { - en.listeners.forEach(function (nn) { - nn($) - }) - }) - }), - (_.onFocus = function () { - var $ = this - notifyManager.batch(function () { - $.queries.forEach(function (en) { - en.onFocus() - }) - }) - }), - (_.onOnline = function () { - var $ = this - notifyManager.batch(function () { - $.queries.forEach(function (en) { - en.onOnline() - }) - }) - }), - o - ) - })(Subscribable), - Mutation = (function () { - function e(_) { - ;(this.options = _extends({}, _.defaultOptions, _.options)), - (this.mutationId = _.mutationId), - (this.mutationCache = _.mutationCache), - (this.observers = []), - (this.state = _.state || getDefaultState()), - (this.meta = _.meta) - } - var o = e.prototype - return ( - (o.setState = function (b) { - this.dispatch({ type: 'setState', state: b }) - }), - (o.addObserver = function (b) { - this.observers.indexOf(b) === -1 && this.observers.push(b) - }), - (o.removeObserver = function (b) { - this.observers = this.observers.filter(function ($) { - return $ !== b - }) - }), - (o.cancel = function () { - return this.retryer - ? (this.retryer.cancel(), this.retryer.promise.then(noop$2).catch(noop$2)) - : Promise.resolve() - }), - (o.continue = function () { - return this.retryer ? (this.retryer.continue(), this.retryer.promise) : this.execute() - }), - (o.execute = function () { - var b = this, - $, - en = this.state.status === 'loading', - nn = Promise.resolve() - return ( - en || - (this.dispatch({ type: 'loading', variables: this.options.variables }), - (nn = nn - .then(function () { - b.mutationCache.config.onMutate == null || - b.mutationCache.config.onMutate(b.state.variables, b) - }) - .then(function () { - return b.options.onMutate == null ? void 0 : b.options.onMutate(b.state.variables) - }) - .then(function (sn) { - sn !== b.state.context && - b.dispatch({ type: 'loading', context: sn, variables: b.state.variables }) - }))), - nn - .then(function () { - return b.executeMutation() - }) - .then(function (sn) { - ;($ = sn), - b.mutationCache.config.onSuccess == null || - b.mutationCache.config.onSuccess($, b.state.variables, b.state.context, b) - }) - .then(function () { - return b.options.onSuccess == null - ? void 0 - : b.options.onSuccess($, b.state.variables, b.state.context) - }) - .then(function () { - return b.options.onSettled == null - ? void 0 - : b.options.onSettled($, null, b.state.variables, b.state.context) - }) - .then(function () { - return b.dispatch({ type: 'success', data: $ }), $ - }) - .catch(function (sn) { - return ( - b.mutationCache.config.onError == null || - b.mutationCache.config.onError(sn, b.state.variables, b.state.context, b), - getLogger().error(sn), - Promise.resolve() - .then(function () { - return b.options.onError == null - ? void 0 - : b.options.onError(sn, b.state.variables, b.state.context) - }) - .then(function () { - return b.options.onSettled == null - ? void 0 - : b.options.onSettled(void 0, sn, b.state.variables, b.state.context) - }) - .then(function () { - throw (b.dispatch({ type: 'error', error: sn }), sn) - }) - ) - }) - ) - }), - (o.executeMutation = function () { - var b = this, - $ - return ( - (this.retryer = new Retryer({ - fn: function () { - return b.options.mutationFn - ? b.options.mutationFn(b.state.variables) - : Promise.reject('No mutationFn found') - }, - onFail: function () { - b.dispatch({ type: 'failed' }) - }, - onPause: function () { - b.dispatch({ type: 'pause' }) - }, - onContinue: function () { - b.dispatch({ type: 'continue' }) - }, - retry: ($ = this.options.retry) != null ? $ : 0, - retryDelay: this.options.retryDelay, - })), - this.retryer.promise - ) - }), - (o.dispatch = function (b) { - var $ = this - ;(this.state = reducer$1(this.state, b)), - notifyManager.batch(function () { - $.observers.forEach(function (en) { - en.onMutationUpdate(b) - }), - $.mutationCache.notify($) - }) - }), - e - ) - })() -function getDefaultState() { - return { - context: void 0, - data: void 0, - error: null, - failureCount: 0, - isPaused: !1, - status: 'idle', - variables: void 0, - } -} -function reducer$1(e, o) { - switch (o.type) { - case 'failed': - return _extends({}, e, { failureCount: e.failureCount + 1 }) - case 'pause': - return _extends({}, e, { isPaused: !0 }) - case 'continue': - return _extends({}, e, { isPaused: !1 }) - case 'loading': - return _extends({}, e, { - context: o.context, - data: void 0, - error: null, - isPaused: !1, - status: 'loading', - variables: o.variables, - }) - case 'success': - return _extends({}, e, { data: o.data, error: null, status: 'success', isPaused: !1 }) - case 'error': - return _extends({}, e, { - data: void 0, - error: o.error, - failureCount: e.failureCount + 1, - isPaused: !1, - status: 'error', - }) - case 'setState': - return _extends({}, e, o.state) - default: - return e - } -} -var MutationCache = (function (e) { - _inheritsLoose(o, e) - function o(b) { - var $ - return ( - ($ = e.call(this) || this), ($.config = b || {}), ($.mutations = []), ($.mutationId = 0), $ - ) - } - var _ = o.prototype - return ( - (_.build = function ($, en, nn) { - var sn = new Mutation({ - mutationCache: this, - mutationId: ++this.mutationId, - options: $.defaultMutationOptions(en), - state: nn, - defaultOptions: en.mutationKey ? $.getMutationDefaults(en.mutationKey) : void 0, - meta: en.meta, - }) - return this.add(sn), sn - }), - (_.add = function ($) { - this.mutations.push($), this.notify($) - }), - (_.remove = function ($) { - ;(this.mutations = this.mutations.filter(function (en) { - return en !== $ - })), - $.cancel(), - this.notify($) - }), - (_.clear = function () { - var $ = this - notifyManager.batch(function () { - $.mutations.forEach(function (en) { - $.remove(en) - }) - }) - }), - (_.getAll = function () { - return this.mutations - }), - (_.find = function ($) { - return ( - typeof $.exact > 'u' && ($.exact = !0), - this.mutations.find(function (en) { - return matchMutation($, en) - }) - ) - }), - (_.findAll = function ($) { - return this.mutations.filter(function (en) { - return matchMutation($, en) - }) - }), - (_.notify = function ($) { - var en = this - notifyManager.batch(function () { - en.listeners.forEach(function (nn) { - nn($) - }) - }) - }), - (_.onFocus = function () { - this.resumePausedMutations() - }), - (_.onOnline = function () { - this.resumePausedMutations() - }), - (_.resumePausedMutations = function () { - var $ = this.mutations.filter(function (en) { - return en.state.isPaused - }) - return notifyManager.batch(function () { - return $.reduce(function (en, nn) { - return en.then(function () { - return nn.continue().catch(noop$2) - }) - }, Promise.resolve()) - }) - }), - o - ) -})(Subscribable) -function infiniteQueryBehavior() { - return { - onFetch: function (o) { - o.fetchFn = function () { - var _, - b, - $, - en, - nn, - sn, - gn = (_ = o.fetchOptions) == null || (b = _.meta) == null ? void 0 : b.refetchPage, - In = ($ = o.fetchOptions) == null || (en = $.meta) == null ? void 0 : en.fetchMore, - Jn = In?.pageParam, - qn = In?.direction === 'forward', - Kn = In?.direction === 'backward', - an = ((nn = o.state.data) == null ? void 0 : nn.pages) || [], - xn = ((sn = o.state.data) == null ? void 0 : sn.pageParams) || [], - mn = getAbortController(), - Bn = mn?.signal, - kn = xn, - ln = !1, - yn = - o.options.queryFn || - function () { - return Promise.reject('Missing queryFn') - }, - Cn = function (dn, Nn, fn, _n) { - return ( - (kn = _n ? [Nn].concat(kn) : [].concat(kn, [Nn])), - _n ? [fn].concat(dn) : [].concat(dn, [fn]) - ) - }, - Tn = function (dn, Nn, fn, _n) { - if (ln) return Promise.reject('Cancelled') - if (typeof fn > 'u' && !Nn && dn.length) return Promise.resolve(dn) - var Ln = { queryKey: o.queryKey, signal: Bn, pageParam: fn, meta: o.meta }, - zn = yn(Ln), - Fn = Promise.resolve(zn).then(function (Qn) { - return Cn(dn, fn, Qn, _n) - }) - if (isCancelable(zn)) { - var An = Fn - An.cancel = zn.cancel - } - return Fn - }, - Gn - if (!an.length) Gn = Tn([]) - else if (qn) { - var Sn = typeof Jn < 'u', - Zn = Sn ? Jn : getNextPageParam(o.options, an) - Gn = Tn(an, Sn, Zn) - } else if (Kn) { - var tn = typeof Jn < 'u', - En = tn ? Jn : getPreviousPageParam(o.options, an) - Gn = Tn(an, tn, En, !0) - } else - (function () { - kn = [] - var un = typeof o.options.getNextPageParam > 'u', - dn = gn && an[0] ? gn(an[0], 0, an) : !0 - Gn = dn ? Tn([], un, xn[0]) : Promise.resolve(Cn([], xn[0], an[0])) - for ( - var Nn = function (Ln) { - Gn = Gn.then(function (zn) { - var Fn = gn && an[Ln] ? gn(an[Ln], Ln, an) : !0 - if (Fn) { - var An = un ? xn[Ln] : getNextPageParam(o.options, zn) - return Tn(zn, un, An) - } - return Promise.resolve(Cn(zn, xn[Ln], an[Ln])) - }) - }, - fn = 1; - fn < an.length; - fn++ - ) - Nn(fn) - })() - var Mn = Gn.then(function (un) { - return { pages: un, pageParams: kn } - }), - Hn = Mn - return ( - (Hn.cancel = function () { - ;(ln = !0), mn?.abort(), isCancelable(Gn) && Gn.cancel() - }), - Mn - ) - } - }, - } -} -function getNextPageParam(e, o) { - return e.getNextPageParam == null ? void 0 : e.getNextPageParam(o[o.length - 1], o) -} -function getPreviousPageParam(e, o) { - return e.getPreviousPageParam == null ? void 0 : e.getPreviousPageParam(o[0], o) -} -var QueryClient$1 = (function () { - function e(_) { - _ === void 0 && (_ = {}), - (this.queryCache = _.queryCache || new QueryCache()), - (this.mutationCache = _.mutationCache || new MutationCache()), - (this.defaultOptions = _.defaultOptions || {}), - (this.queryDefaults = []), - (this.mutationDefaults = []) - } - var o = e.prototype - return ( - (o.mount = function () { - var b = this - ;(this.unsubscribeFocus = focusManager.subscribe(function () { - focusManager.isFocused() && - onlineManager.isOnline() && - (b.mutationCache.onFocus(), b.queryCache.onFocus()) - })), - (this.unsubscribeOnline = onlineManager.subscribe(function () { - focusManager.isFocused() && - onlineManager.isOnline() && - (b.mutationCache.onOnline(), b.queryCache.onOnline()) - })) - }), - (o.unmount = function () { - var b, $ - ;(b = this.unsubscribeFocus) == null || b.call(this), - ($ = this.unsubscribeOnline) == null || $.call(this) - }), - (o.isFetching = function (b, $) { - var en = parseFilterArgs(b, $), - nn = en[0] - return (nn.fetching = !0), this.queryCache.findAll(nn).length - }), - (o.isMutating = function (b) { - return this.mutationCache.findAll(_extends({}, b, { fetching: !0 })).length - }), - (o.getQueryData = function (b, $) { - var en - return (en = this.queryCache.find(b, $)) == null ? void 0 : en.state.data - }), - (o.getQueriesData = function (b) { - return this.getQueryCache() - .findAll(b) - .map(function ($) { - var en = $.queryKey, - nn = $.state, - sn = nn.data - return [en, sn] - }) - }), - (o.setQueryData = function (b, $, en) { - var nn = parseQueryArgs(b), - sn = this.defaultQueryOptions(nn) - return this.queryCache.build(this, sn).setData($, en) - }), - (o.setQueriesData = function (b, $, en) { - var nn = this - return notifyManager.batch(function () { - return nn - .getQueryCache() - .findAll(b) - .map(function (sn) { - var gn = sn.queryKey - return [gn, nn.setQueryData(gn, $, en)] - }) - }) - }), - (o.getQueryState = function (b, $) { - var en - return (en = this.queryCache.find(b, $)) == null ? void 0 : en.state - }), - (o.removeQueries = function (b, $) { - var en = parseFilterArgs(b, $), - nn = en[0], - sn = this.queryCache - notifyManager.batch(function () { - sn.findAll(nn).forEach(function (gn) { - sn.remove(gn) - }) - }) - }), - (o.resetQueries = function (b, $, en) { - var nn = this, - sn = parseFilterArgs(b, $, en), - gn = sn[0], - In = sn[1], - Jn = this.queryCache, - qn = _extends({}, gn, { active: !0 }) - return notifyManager.batch(function () { - return ( - Jn.findAll(gn).forEach(function (Kn) { - Kn.reset() - }), - nn.refetchQueries(qn, In) - ) - }) - }), - (o.cancelQueries = function (b, $, en) { - var nn = this, - sn = parseFilterArgs(b, $, en), - gn = sn[0], - In = sn[1], - Jn = In === void 0 ? {} : In - typeof Jn.revert > 'u' && (Jn.revert = !0) - var qn = notifyManager.batch(function () { - return nn.queryCache.findAll(gn).map(function (Kn) { - return Kn.cancel(Jn) - }) - }) - return Promise.all(qn).then(noop$2).catch(noop$2) - }), - (o.invalidateQueries = function (b, $, en) { - var nn, - sn, - gn, - In = this, - Jn = parseFilterArgs(b, $, en), - qn = Jn[0], - Kn = Jn[1], - an = _extends({}, qn, { - active: (nn = (sn = qn.refetchActive) != null ? sn : qn.active) != null ? nn : !0, - inactive: (gn = qn.refetchInactive) != null ? gn : !1, - }) - return notifyManager.batch(function () { - return ( - In.queryCache.findAll(qn).forEach(function (xn) { - xn.invalidate() - }), - In.refetchQueries(an, Kn) - ) - }) - }), - (o.refetchQueries = function (b, $, en) { - var nn = this, - sn = parseFilterArgs(b, $, en), - gn = sn[0], - In = sn[1], - Jn = notifyManager.batch(function () { - return nn.queryCache.findAll(gn).map(function (Kn) { - return Kn.fetch(void 0, _extends({}, In, { meta: { refetchPage: gn?.refetchPage } })) - }) - }), - qn = Promise.all(Jn).then(noop$2) - return In?.throwOnError || (qn = qn.catch(noop$2)), qn - }), - (o.fetchQuery = function (b, $, en) { - var nn = parseQueryArgs(b, $, en), - sn = this.defaultQueryOptions(nn) - typeof sn.retry > 'u' && (sn.retry = !1) - var gn = this.queryCache.build(this, sn) - return gn.isStaleByTime(sn.staleTime) ? gn.fetch(sn) : Promise.resolve(gn.state.data) - }), - (o.prefetchQuery = function (b, $, en) { - return this.fetchQuery(b, $, en).then(noop$2).catch(noop$2) - }), - (o.fetchInfiniteQuery = function (b, $, en) { - var nn = parseQueryArgs(b, $, en) - return (nn.behavior = infiniteQueryBehavior()), this.fetchQuery(nn) - }), - (o.prefetchInfiniteQuery = function (b, $, en) { - return this.fetchInfiniteQuery(b, $, en).then(noop$2).catch(noop$2) - }), - (o.cancelMutations = function () { - var b = this, - $ = notifyManager.batch(function () { - return b.mutationCache.getAll().map(function (en) { - return en.cancel() - }) - }) - return Promise.all($).then(noop$2).catch(noop$2) - }), - (o.resumePausedMutations = function () { - return this.getMutationCache().resumePausedMutations() - }), - (o.executeMutation = function (b) { - return this.mutationCache.build(this, b).execute() - }), - (o.getQueryCache = function () { - return this.queryCache - }), - (o.getMutationCache = function () { - return this.mutationCache - }), - (o.getDefaultOptions = function () { - return this.defaultOptions - }), - (o.setDefaultOptions = function (b) { - this.defaultOptions = b - }), - (o.setQueryDefaults = function (b, $) { - var en = this.queryDefaults.find(function (nn) { - return hashQueryKey(b) === hashQueryKey(nn.queryKey) - }) - en ? (en.defaultOptions = $) : this.queryDefaults.push({ queryKey: b, defaultOptions: $ }) - }), - (o.getQueryDefaults = function (b) { - var $ - return b - ? ($ = this.queryDefaults.find(function (en) { - return partialMatchKey(b, en.queryKey) - })) == null - ? void 0 - : $.defaultOptions - : void 0 - }), - (o.setMutationDefaults = function (b, $) { - var en = this.mutationDefaults.find(function (nn) { - return hashQueryKey(b) === hashQueryKey(nn.mutationKey) - }) - en - ? (en.defaultOptions = $) - : this.mutationDefaults.push({ mutationKey: b, defaultOptions: $ }) - }), - (o.getMutationDefaults = function (b) { - var $ - return b - ? ($ = this.mutationDefaults.find(function (en) { - return partialMatchKey(b, en.mutationKey) - })) == null - ? void 0 - : $.defaultOptions - : void 0 - }), - (o.defaultQueryOptions = function (b) { - if (b?._defaulted) return b - var $ = _extends({}, this.defaultOptions.queries, this.getQueryDefaults(b?.queryKey), b, { - _defaulted: !0, - }) - return !$.queryHash && $.queryKey && ($.queryHash = hashQueryKeyByOptions($.queryKey, $)), $ - }), - (o.defaultQueryObserverOptions = function (b) { - return this.defaultQueryOptions(b) - }), - (o.defaultMutationOptions = function (b) { - return b?._defaulted - ? b - : _extends( - {}, - this.defaultOptions.mutations, - this.getMutationDefaults(b?.mutationKey), - b, - { _defaulted: !0 }, - ) - }), - (o.clear = function () { - this.queryCache.clear(), this.mutationCache.clear() - }), - e - ) - })(), - QueryObserver = (function (e) { - _inheritsLoose(o, e) - function o(b, $) { - var en - return ( - (en = e.call(this) || this), - (en.client = b), - (en.options = $), - (en.trackedProps = []), - (en.selectError = null), - en.bindMethods(), - en.setOptions($), - en - ) - } - var _ = o.prototype - return ( - (_.bindMethods = function () { - ;(this.remove = this.remove.bind(this)), (this.refetch = this.refetch.bind(this)) - }), - (_.onSubscribe = function () { - this.listeners.length === 1 && - (this.currentQuery.addObserver(this), - shouldFetchOnMount(this.currentQuery, this.options) && this.executeFetch(), - this.updateTimers()) - }), - (_.onUnsubscribe = function () { - this.listeners.length || this.destroy() - }), - (_.shouldFetchOnReconnect = function () { - return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnReconnect) - }), - (_.shouldFetchOnWindowFocus = function () { - return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnWindowFocus) - }), - (_.destroy = function () { - ;(this.listeners = []), this.clearTimers(), this.currentQuery.removeObserver(this) - }), - (_.setOptions = function ($, en) { - var nn = this.options, - sn = this.currentQuery - if ( - ((this.options = this.client.defaultQueryObserverOptions($)), - typeof this.options.enabled < 'u' && typeof this.options.enabled != 'boolean') - ) - throw new Error('Expected enabled to be a boolean') - this.options.queryKey || (this.options.queryKey = nn.queryKey), this.updateQuery() - var gn = this.hasListeners() - gn && shouldFetchOptionally(this.currentQuery, sn, this.options, nn) && this.executeFetch(), - this.updateResult(en), - gn && - (this.currentQuery !== sn || - this.options.enabled !== nn.enabled || - this.options.staleTime !== nn.staleTime) && - this.updateStaleTimeout() - var In = this.computeRefetchInterval() - gn && - (this.currentQuery !== sn || - this.options.enabled !== nn.enabled || - In !== this.currentRefetchInterval) && - this.updateRefetchInterval(In) - }), - (_.getOptimisticResult = function ($) { - var en = this.client.defaultQueryObserverOptions($), - nn = this.client.getQueryCache().build(this.client, en) - return this.createResult(nn, en) - }), - (_.getCurrentResult = function () { - return this.currentResult - }), - (_.trackResult = function ($, en) { - var nn = this, - sn = {}, - gn = function (Jn) { - nn.trackedProps.includes(Jn) || nn.trackedProps.push(Jn) - } - return ( - Object.keys($).forEach(function (In) { - Object.defineProperty(sn, In, { - configurable: !1, - enumerable: !0, - get: function () { - return gn(In), $[In] - }, - }) - }), - (en.useErrorBoundary || en.suspense) && gn('error'), - sn - ) - }), - (_.getNextResult = function ($) { - var en = this - return new Promise(function (nn, sn) { - var gn = en.subscribe(function (In) { - In.isFetching || (gn(), In.isError && $?.throwOnError ? sn(In.error) : nn(In)) - }) - }) - }), - (_.getCurrentQuery = function () { - return this.currentQuery - }), - (_.remove = function () { - this.client.getQueryCache().remove(this.currentQuery) - }), - (_.refetch = function ($) { - return this.fetch(_extends({}, $, { meta: { refetchPage: $?.refetchPage } })) - }), - (_.fetchOptimistic = function ($) { - var en = this, - nn = this.client.defaultQueryObserverOptions($), - sn = this.client.getQueryCache().build(this.client, nn) - return sn.fetch().then(function () { - return en.createResult(sn, nn) - }) - }), - (_.fetch = function ($) { - var en = this - return this.executeFetch($).then(function () { - return en.updateResult(), en.currentResult - }) - }), - (_.executeFetch = function ($) { - this.updateQuery() - var en = this.currentQuery.fetch(this.options, $) - return $?.throwOnError || (en = en.catch(noop$2)), en - }), - (_.updateStaleTimeout = function () { - var $ = this - if ( - (this.clearStaleTimeout(), - !(isServer || this.currentResult.isStale || !isValidTimeout(this.options.staleTime))) - ) { - var en = timeUntilStale(this.currentResult.dataUpdatedAt, this.options.staleTime), - nn = en + 1 - this.staleTimeoutId = setTimeout(function () { - $.currentResult.isStale || $.updateResult() - }, nn) - } - }), - (_.computeRefetchInterval = function () { - var $ - return typeof this.options.refetchInterval == 'function' - ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) - : ($ = this.options.refetchInterval) != null - ? $ - : !1 - }), - (_.updateRefetchInterval = function ($) { - var en = this - this.clearRefetchInterval(), - (this.currentRefetchInterval = $), - !( - isServer || - this.options.enabled === !1 || - !isValidTimeout(this.currentRefetchInterval) || - this.currentRefetchInterval === 0 - ) && - (this.refetchIntervalId = setInterval(function () { - ;(en.options.refetchIntervalInBackground || focusManager.isFocused()) && - en.executeFetch() - }, this.currentRefetchInterval)) - }), - (_.updateTimers = function () { - this.updateStaleTimeout(), this.updateRefetchInterval(this.computeRefetchInterval()) - }), - (_.clearTimers = function () { - this.clearStaleTimeout(), this.clearRefetchInterval() - }), - (_.clearStaleTimeout = function () { - this.staleTimeoutId && (clearTimeout(this.staleTimeoutId), (this.staleTimeoutId = void 0)) - }), - (_.clearRefetchInterval = function () { - this.refetchIntervalId && - (clearInterval(this.refetchIntervalId), (this.refetchIntervalId = void 0)) - }), - (_.createResult = function ($, en) { - var nn = this.currentQuery, - sn = this.options, - gn = this.currentResult, - In = this.currentResultState, - Jn = this.currentResultOptions, - qn = $ !== nn, - Kn = qn ? $.state : this.currentQueryInitialState, - an = qn ? this.currentResult : this.previousQueryResult, - xn = $.state, - mn = xn.dataUpdatedAt, - Bn = xn.error, - kn = xn.errorUpdatedAt, - ln = xn.isFetching, - yn = xn.status, - Cn = !1, - Tn = !1, - Gn - if (en.optimisticResults) { - var Sn = this.hasListeners(), - Zn = !Sn && shouldFetchOnMount($, en), - tn = Sn && shouldFetchOptionally($, nn, en, sn) - ;(Zn || tn) && ((ln = !0), mn || (yn = 'loading')) - } - if (en.keepPreviousData && !xn.dataUpdateCount && an?.isSuccess && yn !== 'error') - (Gn = an.data), (mn = an.dataUpdatedAt), (yn = an.status), (Cn = !0) - else if (en.select && typeof xn.data < 'u') - if (gn && xn.data === In?.data && en.select === this.selectFn) Gn = this.selectResult - else - try { - ;(this.selectFn = en.select), - (Gn = en.select(xn.data)), - en.structuralSharing !== !1 && (Gn = replaceEqualDeep(gn?.data, Gn)), - (this.selectResult = Gn), - (this.selectError = null) - } catch (Hn) { - getLogger().error(Hn), (this.selectError = Hn) - } - else Gn = xn.data - if ( - typeof en.placeholderData < 'u' && - typeof Gn > 'u' && - (yn === 'loading' || yn === 'idle') - ) { - var En - if (gn?.isPlaceholderData && en.placeholderData === Jn?.placeholderData) En = gn.data - else if ( - ((En = - typeof en.placeholderData == 'function' ? en.placeholderData() : en.placeholderData), - en.select && typeof En < 'u') - ) - try { - ;(En = en.select(En)), - en.structuralSharing !== !1 && (En = replaceEqualDeep(gn?.data, En)), - (this.selectError = null) - } catch (Hn) { - getLogger().error(Hn), (this.selectError = Hn) - } - typeof En < 'u' && ((yn = 'success'), (Gn = En), (Tn = !0)) - } - this.selectError && - ((Bn = this.selectError), (Gn = this.selectResult), (kn = Date.now()), (yn = 'error')) - var Mn = { - status: yn, - isLoading: yn === 'loading', - isSuccess: yn === 'success', - isError: yn === 'error', - isIdle: yn === 'idle', - data: Gn, - dataUpdatedAt: mn, - error: Bn, - errorUpdatedAt: kn, - failureCount: xn.fetchFailureCount, - errorUpdateCount: xn.errorUpdateCount, - isFetched: xn.dataUpdateCount > 0 || xn.errorUpdateCount > 0, - isFetchedAfterMount: - xn.dataUpdateCount > Kn.dataUpdateCount || xn.errorUpdateCount > Kn.errorUpdateCount, - isFetching: ln, - isRefetching: ln && yn !== 'loading', - isLoadingError: yn === 'error' && xn.dataUpdatedAt === 0, - isPlaceholderData: Tn, - isPreviousData: Cn, - isRefetchError: yn === 'error' && xn.dataUpdatedAt !== 0, - isStale: isStale($, en), - refetch: this.refetch, - remove: this.remove, - } - return Mn - }), - (_.shouldNotifyListeners = function ($, en) { - if (!en) return !0 - var nn = this.options, - sn = nn.notifyOnChangeProps, - gn = nn.notifyOnChangePropsExclusions - if ((!sn && !gn) || (sn === 'tracked' && !this.trackedProps.length)) return !0 - var In = sn === 'tracked' ? this.trackedProps : sn - return Object.keys($).some(function (Jn) { - var qn = Jn, - Kn = $[qn] !== en[qn], - an = In?.some(function (mn) { - return mn === Jn - }), - xn = gn?.some(function (mn) { - return mn === Jn - }) - return Kn && !xn && (!In || an) - }) - }), - (_.updateResult = function ($) { - var en = this.currentResult - if ( - ((this.currentResult = this.createResult(this.currentQuery, this.options)), - (this.currentResultState = this.currentQuery.state), - (this.currentResultOptions = this.options), - !shallowEqualObjects(this.currentResult, en)) - ) { - var nn = { cache: !0 } - $?.listeners !== !1 && - this.shouldNotifyListeners(this.currentResult, en) && - (nn.listeners = !0), - this.notify(_extends({}, nn, $)) - } - }), - (_.updateQuery = function () { - var $ = this.client.getQueryCache().build(this.client, this.options) - if ($ !== this.currentQuery) { - var en = this.currentQuery - ;(this.currentQuery = $), - (this.currentQueryInitialState = $.state), - (this.previousQueryResult = this.currentResult), - this.hasListeners() && (en?.removeObserver(this), $.addObserver(this)) - } - }), - (_.onQueryUpdate = function ($) { - var en = {} - $.type === 'success' - ? (en.onSuccess = !0) - : $.type === 'error' && !isCancelledError($.error) && (en.onError = !0), - this.updateResult(en), - this.hasListeners() && this.updateTimers() - }), - (_.notify = function ($) { - var en = this - notifyManager.batch(function () { - $.onSuccess - ? (en.options.onSuccess == null || en.options.onSuccess(en.currentResult.data), - en.options.onSettled == null || en.options.onSettled(en.currentResult.data, null)) - : $.onError && - (en.options.onError == null || en.options.onError(en.currentResult.error), - en.options.onSettled == null || en.options.onSettled(void 0, en.currentResult.error)), - $.listeners && - en.listeners.forEach(function (nn) { - nn(en.currentResult) - }), - $.cache && - en.client - .getQueryCache() - .notify({ query: en.currentQuery, type: 'observerResultsUpdated' }) - }) - }), - o - ) - })(Subscribable) -function shouldLoadOnMount(e, o) { - return ( - o.enabled !== !1 && - !e.state.dataUpdatedAt && - !(e.state.status === 'error' && o.retryOnMount === !1) - ) -} -function shouldFetchOnMount(e, o) { - return ( - shouldLoadOnMount(e, o) || (e.state.dataUpdatedAt > 0 && shouldFetchOn(e, o, o.refetchOnMount)) - ) -} -function shouldFetchOn(e, o, _) { - if (o.enabled !== !1) { - var b = typeof _ == 'function' ? _(e) : _ - return b === 'always' || (b !== !1 && isStale(e, o)) - } - return !1 -} -function shouldFetchOptionally(e, o, _, b) { - return ( - _.enabled !== !1 && - (e !== o || b.enabled === !1) && - (!_.suspense || e.state.status !== 'error') && - isStale(e, _) - ) -} -function isStale(e, o) { - return e.isStaleByTime(o.staleTime) -} -var unstable_batchedUpdates = ReactDOM.unstable_batchedUpdates -notifyManager.setBatchNotifyFunction(unstable_batchedUpdates) -var logger = console -setLogger(logger) -var defaultContext = React.createContext(void 0), - QueryClientSharingContext = React.createContext(!1) -function getQueryClientContext(e) { - return e && typeof window < 'u' - ? (window.ReactQueryClientContext || (window.ReactQueryClientContext = defaultContext), - window.ReactQueryClientContext) - : defaultContext -} -var useQueryClient = function () { - var o = React.useContext(getQueryClientContext(React.useContext(QueryClientSharingContext))) - if (!o) throw new Error('No QueryClient set, use QueryClientProvider to set one') - return o - }, - QueryClientProvider = function (o) { - var _ = o.client, - b = o.contextSharing, - $ = b === void 0 ? !1 : b, - en = o.children - React.useEffect( - function () { - return ( - _.mount(), - function () { - _.unmount() - } - ) - }, - [_], - ) - var nn = getQueryClientContext($) - return React.createElement( - QueryClientSharingContext.Provider, - { value: $ }, - React.createElement(nn.Provider, { value: _ }, en), - ) - } -function createValue() { - var e = !1 - return { - clearReset: function () { - e = !1 - }, - reset: function () { - e = !0 - }, - isReset: function () { - return e - }, - } -} -var QueryErrorResetBoundaryContext = React.createContext(createValue()), - useQueryErrorResetBoundary = function () { - return React.useContext(QueryErrorResetBoundaryContext) - } -function shouldThrowError(e, o, _) { - return typeof o == 'function' ? o.apply(void 0, _) : typeof o == 'boolean' ? o : !!e -} -function useBaseQuery(e, o) { - var _ = React.useRef(!1), - b = React.useState(0), - $ = b[1], - en = useQueryClient(), - nn = useQueryErrorResetBoundary(), - sn = en.defaultQueryObserverOptions(e) - ;(sn.optimisticResults = !0), - sn.onError && (sn.onError = notifyManager.batchCalls(sn.onError)), - sn.onSuccess && (sn.onSuccess = notifyManager.batchCalls(sn.onSuccess)), - sn.onSettled && (sn.onSettled = notifyManager.batchCalls(sn.onSettled)), - sn.suspense && - (typeof sn.staleTime != 'number' && (sn.staleTime = 1e3), - sn.cacheTime === 0 && (sn.cacheTime = 1)), - (sn.suspense || sn.useErrorBoundary) && (nn.isReset() || (sn.retryOnMount = !1)) - var gn = React.useState(function () { - return new o(en, sn) - }), - In = gn[0], - Jn = In.getOptimisticResult(sn) - if ( - (React.useEffect( - function () { - ;(_.current = !0), nn.clearReset() - var qn = In.subscribe( - notifyManager.batchCalls(function () { - _.current && - $(function (Kn) { - return Kn + 1 - }) - }), - ) - return ( - In.updateResult(), - function () { - ;(_.current = !1), qn() - } - ) - }, - [nn, In], - ), - React.useEffect( - function () { - In.setOptions(sn, { listeners: !1 }) - }, - [sn, In], - ), - sn.suspense && Jn.isLoading) - ) - throw In.fetchOptimistic(sn) - .then(function (qn) { - var Kn = qn.data - sn.onSuccess == null || sn.onSuccess(Kn), sn.onSettled == null || sn.onSettled(Kn, null) - }) - .catch(function (qn) { - nn.clearReset(), - sn.onError == null || sn.onError(qn), - sn.onSettled == null || sn.onSettled(void 0, qn) - }) - if ( - Jn.isError && - !nn.isReset() && - !Jn.isFetching && - shouldThrowError(sn.suspense, sn.useErrorBoundary, [Jn.error, In.getCurrentQuery()]) - ) - throw Jn.error - return sn.notifyOnChangeProps === 'tracked' && (Jn = In.trackResult(Jn, sn)), Jn -} -function useQuery(e, o, _) { - var b = parseQueryArgs(e, o, _) - return useBaseQuery(b, QueryObserver) -} -let wasm$4 -const heap = new Array(128).fill(void 0) -heap.push(void 0, null, !0, !1) -function getObject(e) { - return heap[e] -} -let heap_next = heap.length -function addHeapObject(e) { - heap_next === heap.length && heap.push(heap.length + 1) - const o = heap_next - return (heap_next = heap[o]), (heap[o] = e), o -} -function dropObject(e) { - e < 132 || ((heap[e] = heap_next), (heap_next = e)) -} -function takeObject(e) { - const o = getObject(e) - return dropObject(e), o -} -let WASM_VECTOR_LEN = 0, - cachedUint8Memory0 = null -function getUint8Memory0() { - return ( - (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) && - (cachedUint8Memory0 = new Uint8Array(wasm$4.memory.buffer)), - cachedUint8Memory0 - ) -} -const cachedTextEncoder = - typeof TextEncoder < 'u' - ? new TextEncoder('utf-8') - : { - encode: () => { - throw Error('TextEncoder not available') - }, - }, - encodeString$2 = - typeof cachedTextEncoder.encodeInto == 'function' - ? function (e, o) { - return cachedTextEncoder.encodeInto(e, o) - } - : function (e, o) { - const _ = cachedTextEncoder.encode(e) - return o.set(_), { read: e.length, written: _.length } - } -function passStringToWasm0(e, o, _) { - if (_ === void 0) { - const sn = cachedTextEncoder.encode(e), - gn = o(sn.length, 1) >>> 0 - return ( - getUint8Memory0() - .subarray(gn, gn + sn.length) - .set(sn), - (WASM_VECTOR_LEN = sn.length), - gn - ) - } - let b = e.length, - $ = o(b, 1) >>> 0 - const en = getUint8Memory0() - let nn = 0 - for (; nn < b; nn++) { - const sn = e.charCodeAt(nn) - if (sn > 127) break - en[$ + nn] = sn - } - if (nn !== b) { - nn !== 0 && (e = e.slice(nn)), ($ = _($, b, (b = nn + e.length * 3), 1) >>> 0) - const sn = getUint8Memory0().subarray($ + nn, $ + b), - gn = encodeString$2(e, sn) - nn += gn.written - } - return (WASM_VECTOR_LEN = nn), $ -} -function isLikeNone(e) { - return e == null -} -let cachedInt32Memory0 = null -function getInt32Memory0() { - return ( - (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) && - (cachedInt32Memory0 = new Int32Array(wasm$4.memory.buffer)), - cachedInt32Memory0 - ) -} -const cachedTextDecoder = - typeof TextDecoder < 'u' - ? new TextDecoder('utf-8', { ignoreBOM: !0, fatal: !0 }) - : { - decode: () => { - throw Error('TextDecoder not available') - }, - } -typeof TextDecoder < 'u' && cachedTextDecoder.decode() -function getStringFromWasm0(e, o) { - return (e = e >>> 0), cachedTextDecoder.decode(getUint8Memory0().subarray(e, e + o)) -} -function compute_health_js(e) { - const o = wasm$4.compute_health_js(addHeapObject(e)) - return takeObject(o) -} -function max_withdraw_estimate_js(e, o) { - let _, b - try { - const nn = wasm$4.__wbindgen_add_to_stack_pointer(-16), - sn = passStringToWasm0(o, wasm$4.__wbindgen_malloc, wasm$4.__wbindgen_realloc), - gn = WASM_VECTOR_LEN - wasm$4.max_withdraw_estimate_js(nn, addHeapObject(e), sn, gn) - var $ = getInt32Memory0()[nn / 4 + 0], - en = getInt32Memory0()[nn / 4 + 1] - return (_ = $), (b = en), getStringFromWasm0($, en) - } finally { - wasm$4.__wbindgen_add_to_stack_pointer(16), wasm$4.__wbindgen_free(_, b, 1) - } -} -function max_borrow_estimate_js(e, o, _) { - let b, $ - try { - const sn = wasm$4.__wbindgen_add_to_stack_pointer(-16), - gn = passStringToWasm0(o, wasm$4.__wbindgen_malloc, wasm$4.__wbindgen_realloc), - In = WASM_VECTOR_LEN - wasm$4.max_borrow_estimate_js(sn, addHeapObject(e), gn, In, addHeapObject(_)) - var en = getInt32Memory0()[sn / 4 + 0], - nn = getInt32Memory0()[sn / 4 + 1] - return (b = en), ($ = nn), getStringFromWasm0(en, nn) - } finally { - wasm$4.__wbindgen_add_to_stack_pointer(16), wasm$4.__wbindgen_free(b, $, 1) - } -} -function handleError(e, o) { - try { - return e.apply(this, o) - } catch (_) { - wasm$4.__wbindgen_exn_store(addHeapObject(_)) - } -} -async function __wbg_load(e, o) { - if (typeof Response == 'function' && e instanceof Response) { - if (typeof WebAssembly.instantiateStreaming == 'function') - try { - return await WebAssembly.instantiateStreaming(e, o) - } catch (b) { - if (e.headers.get('Content-Type') != 'application/wasm') - console.warn( - '`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n', - b, - ) - else throw b - } - const _ = await e.arrayBuffer() - return await WebAssembly.instantiate(_, o) - } else { - const _ = await WebAssembly.instantiate(e, o) - return _ instanceof WebAssembly.Instance ? { instance: _, module: e } : _ - } -} -function __wbg_get_imports() { - const e = {} - return ( - (e.wbg = {}), - (e.wbg.__wbindgen_object_clone_ref = function (o) { - const _ = getObject(o) - return addHeapObject(_) - }), - (e.wbg.__wbindgen_is_undefined = function (o) { - return getObject(o) === void 0 - }), - (e.wbg.__wbindgen_object_drop_ref = function (o) { - takeObject(o) - }), - (e.wbg.__wbindgen_string_get = function (o, _) { - const b = getObject(_), - $ = typeof b == 'string' ? b : void 0 - var en = isLikeNone($) - ? 0 - : passStringToWasm0($, wasm$4.__wbindgen_malloc, wasm$4.__wbindgen_realloc), - nn = WASM_VECTOR_LEN - ;(getInt32Memory0()[o / 4 + 1] = nn), (getInt32Memory0()[o / 4 + 0] = en) - }), - (e.wbg.__wbg_parse_670c19d4e984792e = function () { - return handleError(function (o, _) { - const b = JSON.parse(getStringFromWasm0(o, _)) - return addHeapObject(b) - }, arguments) - }), - (e.wbg.__wbg_stringify_e25465938f3f611f = function () { - return handleError(function (o) { - const _ = JSON.stringify(getObject(o)) - return addHeapObject(_) - }, arguments) - }), - (e.wbg.__wbindgen_throw = function (o, _) { - throw new Error(getStringFromWasm0(o, _)) - }), - e - ) -} -function __wbg_finalize_init(e, o) { - return ( - (wasm$4 = e.exports), - (__wbg_init.__wbindgen_wasm_module = o), - (cachedInt32Memory0 = null), - (cachedUint8Memory0 = null), - wasm$4 - ) -} -async function __wbg_init(e) { - if (wasm$4 !== void 0) return wasm$4 - typeof e > 'u' && (e = new URL('/assets/index_bg-f709bbb4.wasm', self.location)) - const o = __wbg_get_imports() - ;(typeof e == 'string' || - (typeof Request == 'function' && e instanceof Request) || - (typeof URL == 'function' && e instanceof URL)) && - (e = fetch(e)) - const { instance: _, module: b } = await __wbg_load(await e, o) - return __wbg_finalize_init(_, b) -} -class MarsCreditManagerQueryClient { - constructor(o, _) { - ;(this.accountKind = async ({ accountId: b }) => - this.client.queryContractSmart(this.contractAddress, { account_kind: { account_id: b } })), - (this.accounts = async ({ limit: b, owner: $, startAfter: en }) => - this.client.queryContractSmart(this.contractAddress, { - accounts: { limit: b, owner: $, start_after: en }, - })), - (this.config = async () => - this.client.queryContractSmart(this.contractAddress, { config: {} })), - (this.vaultUtilization = async ({ vault: b }) => - this.client.queryContractSmart(this.contractAddress, { vault_utilization: { vault: b } })), - (this.positions = async ({ accountId: b }) => - this.client.queryContractSmart(this.contractAddress, { positions: { account_id: b } })), - (this.allCoinBalances = async ({ limit: b, startAfter: $ }) => - this.client.queryContractSmart(this.contractAddress, { - all_coin_balances: { limit: b, start_after: $ }, - })), - (this.allDebtShares = async ({ limit: b, startAfter: $ }) => - this.client.queryContractSmart(this.contractAddress, { - all_debt_shares: { limit: b, start_after: $ }, - })), - (this.totalDebtShares = async () => - this.client.queryContractSmart(this.contractAddress, { total_debt_shares: {} })), - (this.allTotalDebtShares = async ({ limit: b, startAfter: $ }) => - this.client.queryContractSmart(this.contractAddress, { - all_total_debt_shares: { limit: b, start_after: $ }, - })), - (this.allVaultPositions = async ({ limit: b, startAfter: $ }) => - this.client.queryContractSmart(this.contractAddress, { - all_vault_positions: { limit: b, start_after: $ }, - })), - (this.estimateProvideLiquidity = async ({ coinsIn: b, lpTokenOut: $ }) => - this.client.queryContractSmart(this.contractAddress, { - estimate_provide_liquidity: { coins_in: b, lp_token_out: $ }, - })), - (this.estimateWithdrawLiquidity = async ({ lpToken: b }) => - this.client.queryContractSmart(this.contractAddress, { - estimate_withdraw_liquidity: { lp_token: b }, - })), - (this.vaultPositionValue = async ({ vaultPosition: b }) => - this.client.queryContractSmart(this.contractAddress, { - vault_position_value: { vault_position: b }, - })), - (this.client = o), - (this.contractAddress = _), - (this.accountKind = this.accountKind.bind(this)), - (this.accounts = this.accounts.bind(this)), - (this.config = this.config.bind(this)), - (this.vaultUtilization = this.vaultUtilization.bind(this)), - (this.positions = this.positions.bind(this)), - (this.allCoinBalances = this.allCoinBalances.bind(this)), - (this.allDebtShares = this.allDebtShares.bind(this)), - (this.totalDebtShares = this.totalDebtShares.bind(this)), - (this.allTotalDebtShares = this.allTotalDebtShares.bind(this)), - (this.allVaultPositions = this.allVaultPositions.bind(this)), - (this.estimateProvideLiquidity = this.estimateProvideLiquidity.bind(this)), - (this.estimateWithdrawLiquidity = this.estimateWithdrawLiquidity.bind(this)), - (this.vaultPositionValue = this.vaultPositionValue.bind(this)) - } -} -var cosmwasmclient = {}, - build$b = {}, - ascii = {} -Object.defineProperty(ascii, '__esModule', { value: !0 }) -ascii.fromAscii = ascii.toAscii = void 0 -function toAscii(e) { - const o = (_) => - _.split('').map((b) => { - const $ = b.charCodeAt(0) - if ($ < 32 || $ > 126) - throw new Error('Cannot encode character that is out of printable ASCII range: ' + $) - return $ - }) - return Uint8Array.from(o(e)) -} -ascii.toAscii = toAscii -function fromAscii(e) { - return ((_) => - _.map((b) => { - if (b < 32 || b > 126) - throw new Error('Cannot decode character that is out of printable ASCII range: ' + b) - return String.fromCharCode(b) - }))(Array.from(e)).join('') -} -ascii.fromAscii = fromAscii -var base64$2 = {}, - base64Js = {} -base64Js.byteLength = byteLength -base64Js.toByteArray = toByteArray -base64Js.fromByteArray = fromByteArray -var lookup = [], - revLookup = [], - Arr = typeof Uint8Array < 'u' ? Uint8Array : Array, - code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' -for (var i = 0, len = code.length; i < len; ++i) - (lookup[i] = code[i]), (revLookup[code.charCodeAt(i)] = i) -revLookup['-'.charCodeAt(0)] = 62 -revLookup['_'.charCodeAt(0)] = 63 -function getLens(e) { - var o = e.length - if (o % 4 > 0) throw new Error('Invalid string. Length must be a multiple of 4') - var _ = e.indexOf('=') - _ === -1 && (_ = o) - var b = _ === o ? 0 : 4 - (_ % 4) - return [_, b] -} -function byteLength(e) { - var o = getLens(e), - _ = o[0], - b = o[1] - return ((_ + b) * 3) / 4 - b -} -function _byteLength(e, o, _) { - return ((o + _) * 3) / 4 - _ -} -function toByteArray(e) { - var o, - _ = getLens(e), - b = _[0], - $ = _[1], - en = new Arr(_byteLength(e, b, $)), - nn = 0, - sn = $ > 0 ? b - 4 : b, - gn - for (gn = 0; gn < sn; gn += 4) - (o = - (revLookup[e.charCodeAt(gn)] << 18) | - (revLookup[e.charCodeAt(gn + 1)] << 12) | - (revLookup[e.charCodeAt(gn + 2)] << 6) | - revLookup[e.charCodeAt(gn + 3)]), - (en[nn++] = (o >> 16) & 255), - (en[nn++] = (o >> 8) & 255), - (en[nn++] = o & 255) - return ( - $ === 2 && - ((o = (revLookup[e.charCodeAt(gn)] << 2) | (revLookup[e.charCodeAt(gn + 1)] >> 4)), - (en[nn++] = o & 255)), - $ === 1 && - ((o = - (revLookup[e.charCodeAt(gn)] << 10) | - (revLookup[e.charCodeAt(gn + 1)] << 4) | - (revLookup[e.charCodeAt(gn + 2)] >> 2)), - (en[nn++] = (o >> 8) & 255), - (en[nn++] = o & 255)), - en - ) -} -function tripletToBase64(e) { - return lookup[(e >> 18) & 63] + lookup[(e >> 12) & 63] + lookup[(e >> 6) & 63] + lookup[e & 63] -} -function encodeChunk(e, o, _) { - for (var b, $ = [], en = o; en < _; en += 3) - (b = ((e[en] << 16) & 16711680) + ((e[en + 1] << 8) & 65280) + (e[en + 2] & 255)), - $.push(tripletToBase64(b)) - return $.join('') -} -function fromByteArray(e) { - for (var o, _ = e.length, b = _ % 3, $ = [], en = 16383, nn = 0, sn = _ - b; nn < sn; nn += en) - $.push(encodeChunk(e, nn, nn + en > sn ? sn : nn + en)) - return ( - b === 1 - ? ((o = e[_ - 1]), $.push(lookup[o >> 2] + lookup[(o << 4) & 63] + '==')) - : b === 2 && - ((o = (e[_ - 2] << 8) + e[_ - 1]), - $.push(lookup[o >> 10] + lookup[(o >> 4) & 63] + lookup[(o << 2) & 63] + '=')), - $.join('') - ) -} -var __createBinding$o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$o = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$o = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$o(o, e, _) - return __setModuleDefault$o(o, e), o - } -Object.defineProperty(base64$2, '__esModule', { value: !0 }) -base64$2.fromBase64 = base64$2.toBase64 = void 0 -const base64js = __importStar$o(base64Js) -function toBase64(e) { - return base64js.fromByteArray(e) -} -base64$2.toBase64 = toBase64 -function fromBase64(e) { - if (!e.match(/^[a-zA-Z0-9+/]*={0,2}$/)) throw new Error('Invalid base64 string format') - return base64js.toByteArray(e) -} -base64$2.fromBase64 = fromBase64 -var bech32$2 = {}, - ALPHABET = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l', - ALPHABET_MAP = {} -for (var z = 0; z < ALPHABET.length; z++) { - var x = ALPHABET.charAt(z) - if (ALPHABET_MAP[x] !== void 0) throw new TypeError(x + ' is ambiguous') - ALPHABET_MAP[x] = z -} -function polymodStep(e) { - var o = e >> 25 - return ( - ((e & 33554431) << 5) ^ - (-((o >> 0) & 1) & 996825010) ^ - (-((o >> 1) & 1) & 642813549) ^ - (-((o >> 2) & 1) & 513874426) ^ - (-((o >> 3) & 1) & 1027748829) ^ - (-((o >> 4) & 1) & 705979059) - ) -} -function prefixChk(e) { - for (var o = 1, _ = 0; _ < e.length; ++_) { - var b = e.charCodeAt(_) - if (b < 33 || b > 126) return 'Invalid prefix (' + e + ')' - o = polymodStep(o) ^ (b >> 5) - } - for (o = polymodStep(o), _ = 0; _ < e.length; ++_) { - var $ = e.charCodeAt(_) - o = polymodStep(o) ^ ($ & 31) - } - return o -} -function encode$1(e, o, _) { - if (((_ = _ || 90), e.length + 7 + o.length > _)) throw new TypeError('Exceeds length limit') - e = e.toLowerCase() - var b = prefixChk(e) - if (typeof b == 'string') throw new Error(b) - for (var $ = e + '1', en = 0; en < o.length; ++en) { - var nn = o[en] - if (nn >> 5) throw new Error('Non 5-bit word') - ;(b = polymodStep(b) ^ nn), ($ += ALPHABET.charAt(nn)) - } - for (en = 0; en < 6; ++en) b = polymodStep(b) - for (b ^= 1, en = 0; en < 6; ++en) { - var sn = (b >> ((5 - en) * 5)) & 31 - $ += ALPHABET.charAt(sn) - } - return $ -} -function __decode(e, o) { - if (((o = o || 90), e.length < 8)) return e + ' too short' - if (e.length > o) return 'Exceeds length limit' - var _ = e.toLowerCase(), - b = e.toUpperCase() - if (e !== _ && e !== b) return 'Mixed-case string ' + e - e = _ - var $ = e.lastIndexOf('1') - if ($ === -1) return 'No separator character for ' + e - if ($ === 0) return 'Missing prefix for ' + e - var en = e.slice(0, $), - nn = e.slice($ + 1) - if (nn.length < 6) return 'Data too short' - var sn = prefixChk(en) - if (typeof sn == 'string') return sn - for (var gn = [], In = 0; In < nn.length; ++In) { - var Jn = nn.charAt(In), - qn = ALPHABET_MAP[Jn] - if (qn === void 0) return 'Unknown character ' + Jn - ;(sn = polymodStep(sn) ^ qn), !(In + 6 >= nn.length) && gn.push(qn) - } - return sn !== 1 ? 'Invalid checksum for ' + e : { prefix: en, words: gn } -} -function decodeUnsafe() { - var e = __decode.apply(null, arguments) - if (typeof e == 'object') return e -} -function decode$1(e) { - var o = __decode.apply(null, arguments) - if (typeof o == 'object') return o - throw new Error(o) -} -function convert(e, o, _, b) { - for (var $ = 0, en = 0, nn = (1 << _) - 1, sn = [], gn = 0; gn < e.length; ++gn) - for ($ = ($ << o) | e[gn], en += o; en >= _; ) (en -= _), sn.push(($ >> en) & nn) - if (b) en > 0 && sn.push(($ << (_ - en)) & nn) - else { - if (en >= o) return 'Excess padding' - if (($ << (_ - en)) & nn) return 'Non-zero padding' - } - return sn -} -function toWordsUnsafe(e) { - var o = convert(e, 8, 5, !0) - if (Array.isArray(o)) return o -} -function toWords(e) { - var o = convert(e, 8, 5, !0) - if (Array.isArray(o)) return o - throw new Error(o) -} -function fromWordsUnsafe(e) { - var o = convert(e, 5, 8, !1) - if (Array.isArray(o)) return o -} -function fromWords(e) { - var o = convert(e, 5, 8, !1) - if (Array.isArray(o)) return o - throw new Error(o) -} -var bech32$1 = { - decodeUnsafe, - decode: decode$1, - encode: encode$1, - toWordsUnsafe, - toWords, - fromWordsUnsafe, - fromWords, - }, - __createBinding$n = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$n = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$n = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$n(o, e, _) - return __setModuleDefault$n(o, e), o - } -Object.defineProperty(bech32$2, '__esModule', { value: !0 }) -bech32$2.normalizeBech32 = bech32$2.fromBech32 = bech32$2.toBech32 = void 0 -const bech32 = __importStar$n(bech32$1) -function toBech32(e, o, _) { - return bech32.encode(e, bech32.toWords(o), _) -} -bech32$2.toBech32 = toBech32 -function fromBech32(e, o = 1 / 0) { - const _ = bech32.decode(e, o) - return { prefix: _.prefix, data: new Uint8Array(bech32.fromWords(_.words)) } -} -bech32$2.fromBech32 = fromBech32 -function normalizeBech32(e) { - const { prefix: o, data: _ } = fromBech32(e) - return toBech32(o, _) -} -bech32$2.normalizeBech32 = normalizeBech32 -var hex = {} -Object.defineProperty(hex, '__esModule', { value: !0 }) -hex.fromHex = hex.toHex = void 0 -function toHex$1(e) { - let o = '' - for (const _ of e) o += ('0' + _.toString(16)).slice(-2) - return o -} -hex.toHex = toHex$1 -function fromHex(e) { - if (e.length % 2 !== 0) throw new Error('hex string length must be a multiple of 2') - const o = new Uint8Array(e.length / 2) - for (let _ = 0; _ < o.length; _++) { - const b = 2 * _, - $ = e.slice(b, b + 2) - if (!$.match(/[0-9a-f]{2}/i)) throw new Error('hex string contains invalid characters') - o[_] = parseInt($, 16) - } - return o -} -hex.fromHex = fromHex -var rfc3339 = {} -Object.defineProperty(rfc3339, '__esModule', { value: !0 }) -rfc3339.toRfc3339 = rfc3339.fromRfc3339 = void 0 -const rfc3339Matcher = - /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/ -function padded(e, o = 2) { - return e.toString().padStart(o, '0') -} -function fromRfc3339(e) { - const o = rfc3339Matcher.exec(e) - if (!o) throw new Error('Date string is not in RFC3339 format') - const _ = +o[1], - b = +o[2], - $ = +o[3], - en = +o[4], - nn = +o[5], - sn = +o[6], - gn = o[7] ? Math.floor(+o[7] * 1e3) : 0 - let In, Jn, qn - o[8] === 'Z' - ? ((In = 1), (Jn = 0), (qn = 0)) - : ((In = o[8].substring(0, 1) === '-' ? -1 : 1), - (Jn = +o[8].substring(1, 3)), - (qn = +o[8].substring(4, 6))) - const Kn = In * (Jn * 60 + qn) * 60, - an = Date.UTC(_, b - 1, $, en, nn, sn, gn) - Kn * 1e3 - return new Date(an) -} -rfc3339.fromRfc3339 = fromRfc3339 -function toRfc3339(e) { - const o = e.getUTCFullYear(), - _ = padded(e.getUTCMonth() + 1), - b = padded(e.getUTCDate()), - $ = padded(e.getUTCHours()), - en = padded(e.getUTCMinutes()), - nn = padded(e.getUTCSeconds()), - sn = padded(e.getUTCMilliseconds(), 3) - return `${o}-${_}-${b}T${$}:${en}:${nn}.${sn}Z` -} -rfc3339.toRfc3339 = toRfc3339 -var utf8$3 = {} -Object.defineProperty(utf8$3, '__esModule', { value: !0 }) -utf8$3.fromUtf8 = utf8$3.toUtf8 = void 0 -function toUtf8(e) { - return new TextEncoder().encode(e) -} -utf8$3.toUtf8 = toUtf8 -function fromUtf8(e, o = !1) { - const _ = !o - return new TextDecoder('utf-8', { fatal: _ }).decode(e) -} -utf8$3.fromUtf8 = fromUtf8 -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.toUtf8 = - e.fromUtf8 = - e.toRfc3339 = - e.fromRfc3339 = - e.toHex = - e.fromHex = - e.toBech32 = - e.normalizeBech32 = - e.fromBech32 = - e.toBase64 = - e.fromBase64 = - e.toAscii = - e.fromAscii = - void 0) - var o = ascii - Object.defineProperty(e, 'fromAscii', { - enumerable: !0, - get: function () { - return o.fromAscii - }, - }), - Object.defineProperty(e, 'toAscii', { - enumerable: !0, - get: function () { - return o.toAscii - }, - }) - var _ = base64$2 - Object.defineProperty(e, 'fromBase64', { - enumerable: !0, - get: function () { - return _.fromBase64 - }, - }), - Object.defineProperty(e, 'toBase64', { - enumerable: !0, - get: function () { - return _.toBase64 - }, - }) - var b = bech32$2 - Object.defineProperty(e, 'fromBech32', { - enumerable: !0, - get: function () { - return b.fromBech32 - }, - }), - Object.defineProperty(e, 'normalizeBech32', { - enumerable: !0, - get: function () { - return b.normalizeBech32 - }, - }), - Object.defineProperty(e, 'toBech32', { - enumerable: !0, - get: function () { - return b.toBech32 - }, - }) - var $ = hex - Object.defineProperty(e, 'fromHex', { - enumerable: !0, - get: function () { - return $.fromHex - }, - }), - Object.defineProperty(e, 'toHex', { - enumerable: !0, - get: function () { - return $.toHex - }, - }) - var en = rfc3339 - Object.defineProperty(e, 'fromRfc3339', { - enumerable: !0, - get: function () { - return en.fromRfc3339 - }, - }), - Object.defineProperty(e, 'toRfc3339', { - enumerable: !0, - get: function () { - return en.toRfc3339 - }, - }) - var nn = utf8$3 - Object.defineProperty(e, 'fromUtf8', { - enumerable: !0, - get: function () { - return nn.fromUtf8 - }, - }), - Object.defineProperty(e, 'toUtf8', { - enumerable: !0, - get: function () { - return nn.toUtf8 - }, - }) -})(build$b) -var build$a = {}, - decimal = {}, - bnExports$1 = {}, - bn$1 = { - get exports() { - return bnExports$1 - }, - set exports(e) { - bnExports$1 = e - }, - } -const __viteBrowserExternal = {}, - __viteBrowserExternal$1 = Object.freeze( - Object.defineProperty({ __proto__: null, default: __viteBrowserExternal }, Symbol.toStringTag, { - value: 'Module', - }), - ), - require$$0$2 = getAugmentedNamespace(__viteBrowserExternal$1) -;(function (e) { - ;(function (o, _) { - function b(un, dn) { - if (!un) throw new Error(dn || 'Assertion failed') - } - function $(un, dn) { - un.super_ = dn - var Nn = function () {} - ;(Nn.prototype = dn.prototype), (un.prototype = new Nn()), (un.prototype.constructor = un) - } - function en(un, dn, Nn) { - if (en.isBN(un)) return un - ;(this.negative = 0), - (this.words = null), - (this.length = 0), - (this.red = null), - un !== null && - ((dn === 'le' || dn === 'be') && ((Nn = dn), (dn = 10)), - this._init(un || 0, dn || 10, Nn || 'be')) - } - typeof o == 'object' ? (o.exports = en) : (_.BN = en), (en.BN = en), (en.wordSize = 26) - var nn - try { - typeof window < 'u' && typeof window.Buffer < 'u' - ? (nn = window.Buffer) - : (nn = require$$0$2.Buffer) - } catch {} - ;(en.isBN = function (dn) { - return dn instanceof en - ? !0 - : dn !== null && - typeof dn == 'object' && - dn.constructor.wordSize === en.wordSize && - Array.isArray(dn.words) - }), - (en.max = function (dn, Nn) { - return dn.cmp(Nn) > 0 ? dn : Nn - }), - (en.min = function (dn, Nn) { - return dn.cmp(Nn) < 0 ? dn : Nn - }), - (en.prototype._init = function (dn, Nn, fn) { - if (typeof dn == 'number') return this._initNumber(dn, Nn, fn) - if (typeof dn == 'object') return this._initArray(dn, Nn, fn) - Nn === 'hex' && (Nn = 16), - b(Nn === (Nn | 0) && Nn >= 2 && Nn <= 36), - (dn = dn.toString().replace(/\s+/g, '')) - var _n = 0 - dn[0] === '-' && (_n++, (this.negative = 1)), - _n < dn.length && - (Nn === 16 - ? this._parseHex(dn, _n, fn) - : (this._parseBase(dn, Nn, _n), - fn === 'le' && this._initArray(this.toArray(), Nn, fn))) - }), - (en.prototype._initNumber = function (dn, Nn, fn) { - dn < 0 && ((this.negative = 1), (dn = -dn)), - dn < 67108864 - ? ((this.words = [dn & 67108863]), (this.length = 1)) - : dn < 4503599627370496 - ? ((this.words = [dn & 67108863, (dn / 67108864) & 67108863]), (this.length = 2)) - : (b(dn < 9007199254740992), - (this.words = [dn & 67108863, (dn / 67108864) & 67108863, 1]), - (this.length = 3)), - fn === 'le' && this._initArray(this.toArray(), Nn, fn) - }), - (en.prototype._initArray = function (dn, Nn, fn) { - if ((b(typeof dn.length == 'number'), dn.length <= 0)) - return (this.words = [0]), (this.length = 1), this - ;(this.length = Math.ceil(dn.length / 3)), (this.words = new Array(this.length)) - for (var _n = 0; _n < this.length; _n++) this.words[_n] = 0 - var Ln, - zn, - Fn = 0 - if (fn === 'be') - for (_n = dn.length - 1, Ln = 0; _n >= 0; _n -= 3) - (zn = dn[_n] | (dn[_n - 1] << 8) | (dn[_n - 2] << 16)), - (this.words[Ln] |= (zn << Fn) & 67108863), - (this.words[Ln + 1] = (zn >>> (26 - Fn)) & 67108863), - (Fn += 24), - Fn >= 26 && ((Fn -= 26), Ln++) - else if (fn === 'le') - for (_n = 0, Ln = 0; _n < dn.length; _n += 3) - (zn = dn[_n] | (dn[_n + 1] << 8) | (dn[_n + 2] << 16)), - (this.words[Ln] |= (zn << Fn) & 67108863), - (this.words[Ln + 1] = (zn >>> (26 - Fn)) & 67108863), - (Fn += 24), - Fn >= 26 && ((Fn -= 26), Ln++) - return this._strip() - }) - function sn(un, dn) { - var Nn = un.charCodeAt(dn) - if (Nn >= 48 && Nn <= 57) return Nn - 48 - if (Nn >= 65 && Nn <= 70) return Nn - 55 - if (Nn >= 97 && Nn <= 102) return Nn - 87 - b(!1, 'Invalid character in ' + un) - } - function gn(un, dn, Nn) { - var fn = sn(un, Nn) - return Nn - 1 >= dn && (fn |= sn(un, Nn - 1) << 4), fn - } - en.prototype._parseHex = function (dn, Nn, fn) { - ;(this.length = Math.ceil((dn.length - Nn) / 6)), (this.words = new Array(this.length)) - for (var _n = 0; _n < this.length; _n++) this.words[_n] = 0 - var Ln = 0, - zn = 0, - Fn - if (fn === 'be') - for (_n = dn.length - 1; _n >= Nn; _n -= 2) - (Fn = gn(dn, Nn, _n) << Ln), - (this.words[zn] |= Fn & 67108863), - Ln >= 18 ? ((Ln -= 18), (zn += 1), (this.words[zn] |= Fn >>> 26)) : (Ln += 8) - else { - var An = dn.length - Nn - for (_n = An % 2 === 0 ? Nn + 1 : Nn; _n < dn.length; _n += 2) - (Fn = gn(dn, Nn, _n) << Ln), - (this.words[zn] |= Fn & 67108863), - Ln >= 18 ? ((Ln -= 18), (zn += 1), (this.words[zn] |= Fn >>> 26)) : (Ln += 8) - } - this._strip() - } - function In(un, dn, Nn, fn) { - for (var _n = 0, Ln = 0, zn = Math.min(un.length, Nn), Fn = dn; Fn < zn; Fn++) { - var An = un.charCodeAt(Fn) - 48 - ;(_n *= fn), - An >= 49 ? (Ln = An - 49 + 10) : An >= 17 ? (Ln = An - 17 + 10) : (Ln = An), - b(An >= 0 && Ln < fn, 'Invalid character'), - (_n += Ln) - } - return _n - } - ;(en.prototype._parseBase = function (dn, Nn, fn) { - ;(this.words = [0]), (this.length = 1) - for (var _n = 0, Ln = 1; Ln <= 67108863; Ln *= Nn) _n++ - _n--, (Ln = (Ln / Nn) | 0) - for ( - var zn = dn.length - fn, Fn = zn % _n, An = Math.min(zn, zn - Fn) + fn, Qn = 0, Rn = fn; - Rn < An; - Rn += _n - ) - (Qn = In(dn, Rn, Rn + _n, Nn)), - this.imuln(Ln), - this.words[0] + Qn < 67108864 ? (this.words[0] += Qn) : this._iaddn(Qn) - if (Fn !== 0) { - var Vn = 1 - for (Qn = In(dn, Rn, dn.length, Nn), Rn = 0; Rn < Fn; Rn++) Vn *= Nn - this.imuln(Vn), this.words[0] + Qn < 67108864 ? (this.words[0] += Qn) : this._iaddn(Qn) - } - this._strip() - }), - (en.prototype.copy = function (dn) { - dn.words = new Array(this.length) - for (var Nn = 0; Nn < this.length; Nn++) dn.words[Nn] = this.words[Nn] - ;(dn.length = this.length), (dn.negative = this.negative), (dn.red = this.red) - }) - function Jn(un, dn) { - ;(un.words = dn.words), - (un.length = dn.length), - (un.negative = dn.negative), - (un.red = dn.red) - } - if ( - ((en.prototype._move = function (dn) { - Jn(dn, this) - }), - (en.prototype.clone = function () { - var dn = new en(null) - return this.copy(dn), dn - }), - (en.prototype._expand = function (dn) { - for (; this.length < dn; ) this.words[this.length++] = 0 - return this - }), - (en.prototype._strip = function () { - for (; this.length > 1 && this.words[this.length - 1] === 0; ) this.length-- - return this._normSign() - }), - (en.prototype._normSign = function () { - return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this - }), - typeof Symbol < 'u' && typeof Symbol.for == 'function') - ) - try { - en.prototype[Symbol.for('nodejs.util.inspect.custom')] = qn - } catch { - en.prototype.inspect = qn - } - else en.prototype.inspect = qn - function qn() { - return (this.red ? '' - } - var Kn = [ - '', - '0', - '00', - '000', - '0000', - '00000', - '000000', - '0000000', - '00000000', - '000000000', - '0000000000', - '00000000000', - '000000000000', - '0000000000000', - '00000000000000', - '000000000000000', - '0000000000000000', - '00000000000000000', - '000000000000000000', - '0000000000000000000', - '00000000000000000000', - '000000000000000000000', - '0000000000000000000000', - '00000000000000000000000', - '000000000000000000000000', - '0000000000000000000000000', - ], - an = [ - 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, - ], - xn = [ - 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, - 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, - 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, - 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176, - ] - ;(en.prototype.toString = function (dn, Nn) { - ;(dn = dn || 10), (Nn = Nn | 0 || 1) - var fn - if (dn === 16 || dn === 'hex') { - fn = '' - for (var _n = 0, Ln = 0, zn = 0; zn < this.length; zn++) { - var Fn = this.words[zn], - An = (((Fn << _n) | Ln) & 16777215).toString(16) - ;(Ln = (Fn >>> (24 - _n)) & 16777215), - (_n += 2), - _n >= 26 && ((_n -= 26), zn--), - Ln !== 0 || zn !== this.length - 1 ? (fn = Kn[6 - An.length] + An + fn) : (fn = An + fn) - } - for (Ln !== 0 && (fn = Ln.toString(16) + fn); fn.length % Nn !== 0; ) fn = '0' + fn - return this.negative !== 0 && (fn = '-' + fn), fn - } - if (dn === (dn | 0) && dn >= 2 && dn <= 36) { - var Qn = an[dn], - Rn = xn[dn] - fn = '' - var Vn = this.clone() - for (Vn.negative = 0; !Vn.isZero(); ) { - var Wn = Vn.modrn(Rn).toString(dn) - ;(Vn = Vn.idivn(Rn)), Vn.isZero() ? (fn = Wn + fn) : (fn = Kn[Qn - Wn.length] + Wn + fn) - } - for (this.isZero() && (fn = '0' + fn); fn.length % Nn !== 0; ) fn = '0' + fn - return this.negative !== 0 && (fn = '-' + fn), fn - } - b(!1, 'Base should be between 2 and 36') - }), - (en.prototype.toNumber = function () { - var dn = this.words[0] - return ( - this.length === 2 - ? (dn += this.words[1] * 67108864) - : this.length === 3 && this.words[2] === 1 - ? (dn += 4503599627370496 + this.words[1] * 67108864) - : this.length > 2 && b(!1, 'Number can only safely store up to 53 bits'), - this.negative !== 0 ? -dn : dn - ) - }), - (en.prototype.toJSON = function () { - return this.toString(16, 2) - }), - nn && - (en.prototype.toBuffer = function (dn, Nn) { - return this.toArrayLike(nn, dn, Nn) - }), - (en.prototype.toArray = function (dn, Nn) { - return this.toArrayLike(Array, dn, Nn) - }) - var mn = function (dn, Nn) { - return dn.allocUnsafe ? dn.allocUnsafe(Nn) : new dn(Nn) - } - ;(en.prototype.toArrayLike = function (dn, Nn, fn) { - this._strip() - var _n = this.byteLength(), - Ln = fn || Math.max(1, _n) - b(_n <= Ln, 'byte array longer than desired length'), b(Ln > 0, 'Requested array length <= 0') - var zn = mn(dn, Ln), - Fn = Nn === 'le' ? 'LE' : 'BE' - return this['_toArrayLike' + Fn](zn, _n), zn - }), - (en.prototype._toArrayLikeLE = function (dn, Nn) { - for (var fn = 0, _n = 0, Ln = 0, zn = 0; Ln < this.length; Ln++) { - var Fn = (this.words[Ln] << zn) | _n - ;(dn[fn++] = Fn & 255), - fn < dn.length && (dn[fn++] = (Fn >> 8) & 255), - fn < dn.length && (dn[fn++] = (Fn >> 16) & 255), - zn === 6 - ? (fn < dn.length && (dn[fn++] = (Fn >> 24) & 255), (_n = 0), (zn = 0)) - : ((_n = Fn >>> 24), (zn += 2)) - } - if (fn < dn.length) for (dn[fn++] = _n; fn < dn.length; ) dn[fn++] = 0 - }), - (en.prototype._toArrayLikeBE = function (dn, Nn) { - for (var fn = dn.length - 1, _n = 0, Ln = 0, zn = 0; Ln < this.length; Ln++) { - var Fn = (this.words[Ln] << zn) | _n - ;(dn[fn--] = Fn & 255), - fn >= 0 && (dn[fn--] = (Fn >> 8) & 255), - fn >= 0 && (dn[fn--] = (Fn >> 16) & 255), - zn === 6 - ? (fn >= 0 && (dn[fn--] = (Fn >> 24) & 255), (_n = 0), (zn = 0)) - : ((_n = Fn >>> 24), (zn += 2)) - } - if (fn >= 0) for (dn[fn--] = _n; fn >= 0; ) dn[fn--] = 0 - }), - Math.clz32 - ? (en.prototype._countBits = function (dn) { - return 32 - Math.clz32(dn) - }) - : (en.prototype._countBits = function (dn) { - var Nn = dn, - fn = 0 - return ( - Nn >= 4096 && ((fn += 13), (Nn >>>= 13)), - Nn >= 64 && ((fn += 7), (Nn >>>= 7)), - Nn >= 8 && ((fn += 4), (Nn >>>= 4)), - Nn >= 2 && ((fn += 2), (Nn >>>= 2)), - fn + Nn - ) - }), - (en.prototype._zeroBits = function (dn) { - if (dn === 0) return 26 - var Nn = dn, - fn = 0 - return ( - Nn & 8191 || ((fn += 13), (Nn >>>= 13)), - Nn & 127 || ((fn += 7), (Nn >>>= 7)), - Nn & 15 || ((fn += 4), (Nn >>>= 4)), - Nn & 3 || ((fn += 2), (Nn >>>= 2)), - Nn & 1 || fn++, - fn - ) - }), - (en.prototype.bitLength = function () { - var dn = this.words[this.length - 1], - Nn = this._countBits(dn) - return (this.length - 1) * 26 + Nn - }) - function Bn(un) { - for (var dn = new Array(un.bitLength()), Nn = 0; Nn < dn.length; Nn++) { - var fn = (Nn / 26) | 0, - _n = Nn % 26 - dn[Nn] = (un.words[fn] >>> _n) & 1 - } - return dn - } - ;(en.prototype.zeroBits = function () { - if (this.isZero()) return 0 - for (var dn = 0, Nn = 0; Nn < this.length; Nn++) { - var fn = this._zeroBits(this.words[Nn]) - if (((dn += fn), fn !== 26)) break - } - return dn - }), - (en.prototype.byteLength = function () { - return Math.ceil(this.bitLength() / 8) - }), - (en.prototype.toTwos = function (dn) { - return this.negative !== 0 ? this.abs().inotn(dn).iaddn(1) : this.clone() - }), - (en.prototype.fromTwos = function (dn) { - return this.testn(dn - 1) ? this.notn(dn).iaddn(1).ineg() : this.clone() - }), - (en.prototype.isNeg = function () { - return this.negative !== 0 - }), - (en.prototype.neg = function () { - return this.clone().ineg() - }), - (en.prototype.ineg = function () { - return this.isZero() || (this.negative ^= 1), this - }), - (en.prototype.iuor = function (dn) { - for (; this.length < dn.length; ) this.words[this.length++] = 0 - for (var Nn = 0; Nn < dn.length; Nn++) this.words[Nn] = this.words[Nn] | dn.words[Nn] - return this._strip() - }), - (en.prototype.ior = function (dn) { - return b((this.negative | dn.negative) === 0), this.iuor(dn) - }), - (en.prototype.or = function (dn) { - return this.length > dn.length ? this.clone().ior(dn) : dn.clone().ior(this) - }), - (en.prototype.uor = function (dn) { - return this.length > dn.length ? this.clone().iuor(dn) : dn.clone().iuor(this) - }), - (en.prototype.iuand = function (dn) { - var Nn - this.length > dn.length ? (Nn = dn) : (Nn = this) - for (var fn = 0; fn < Nn.length; fn++) this.words[fn] = this.words[fn] & dn.words[fn] - return (this.length = Nn.length), this._strip() - }), - (en.prototype.iand = function (dn) { - return b((this.negative | dn.negative) === 0), this.iuand(dn) - }), - (en.prototype.and = function (dn) { - return this.length > dn.length ? this.clone().iand(dn) : dn.clone().iand(this) - }), - (en.prototype.uand = function (dn) { - return this.length > dn.length ? this.clone().iuand(dn) : dn.clone().iuand(this) - }), - (en.prototype.iuxor = function (dn) { - var Nn, fn - this.length > dn.length ? ((Nn = this), (fn = dn)) : ((Nn = dn), (fn = this)) - for (var _n = 0; _n < fn.length; _n++) this.words[_n] = Nn.words[_n] ^ fn.words[_n] - if (this !== Nn) for (; _n < Nn.length; _n++) this.words[_n] = Nn.words[_n] - return (this.length = Nn.length), this._strip() - }), - (en.prototype.ixor = function (dn) { - return b((this.negative | dn.negative) === 0), this.iuxor(dn) - }), - (en.prototype.xor = function (dn) { - return this.length > dn.length ? this.clone().ixor(dn) : dn.clone().ixor(this) - }), - (en.prototype.uxor = function (dn) { - return this.length > dn.length ? this.clone().iuxor(dn) : dn.clone().iuxor(this) - }), - (en.prototype.inotn = function (dn) { - b(typeof dn == 'number' && dn >= 0) - var Nn = Math.ceil(dn / 26) | 0, - fn = dn % 26 - this._expand(Nn), fn > 0 && Nn-- - for (var _n = 0; _n < Nn; _n++) this.words[_n] = ~this.words[_n] & 67108863 - return fn > 0 && (this.words[_n] = ~this.words[_n] & (67108863 >> (26 - fn))), this._strip() - }), - (en.prototype.notn = function (dn) { - return this.clone().inotn(dn) - }), - (en.prototype.setn = function (dn, Nn) { - b(typeof dn == 'number' && dn >= 0) - var fn = (dn / 26) | 0, - _n = dn % 26 - return ( - this._expand(fn + 1), - Nn - ? (this.words[fn] = this.words[fn] | (1 << _n)) - : (this.words[fn] = this.words[fn] & ~(1 << _n)), - this._strip() - ) - }), - (en.prototype.iadd = function (dn) { - var Nn - if (this.negative !== 0 && dn.negative === 0) - return (this.negative = 0), (Nn = this.isub(dn)), (this.negative ^= 1), this._normSign() - if (this.negative === 0 && dn.negative !== 0) - return (dn.negative = 0), (Nn = this.isub(dn)), (dn.negative = 1), Nn._normSign() - var fn, _n - this.length > dn.length ? ((fn = this), (_n = dn)) : ((fn = dn), (_n = this)) - for (var Ln = 0, zn = 0; zn < _n.length; zn++) - (Nn = (fn.words[zn] | 0) + (_n.words[zn] | 0) + Ln), - (this.words[zn] = Nn & 67108863), - (Ln = Nn >>> 26) - for (; Ln !== 0 && zn < fn.length; zn++) - (Nn = (fn.words[zn] | 0) + Ln), (this.words[zn] = Nn & 67108863), (Ln = Nn >>> 26) - if (((this.length = fn.length), Ln !== 0)) (this.words[this.length] = Ln), this.length++ - else if (fn !== this) for (; zn < fn.length; zn++) this.words[zn] = fn.words[zn] - return this - }), - (en.prototype.add = function (dn) { - var Nn - return dn.negative !== 0 && this.negative === 0 - ? ((dn.negative = 0), (Nn = this.sub(dn)), (dn.negative ^= 1), Nn) - : dn.negative === 0 && this.negative !== 0 - ? ((this.negative = 0), (Nn = dn.sub(this)), (this.negative = 1), Nn) - : this.length > dn.length - ? this.clone().iadd(dn) - : dn.clone().iadd(this) - }), - (en.prototype.isub = function (dn) { - if (dn.negative !== 0) { - dn.negative = 0 - var Nn = this.iadd(dn) - return (dn.negative = 1), Nn._normSign() - } else if (this.negative !== 0) - return (this.negative = 0), this.iadd(dn), (this.negative = 1), this._normSign() - var fn = this.cmp(dn) - if (fn === 0) return (this.negative = 0), (this.length = 1), (this.words[0] = 0), this - var _n, Ln - fn > 0 ? ((_n = this), (Ln = dn)) : ((_n = dn), (Ln = this)) - for (var zn = 0, Fn = 0; Fn < Ln.length; Fn++) - (Nn = (_n.words[Fn] | 0) - (Ln.words[Fn] | 0) + zn), - (zn = Nn >> 26), - (this.words[Fn] = Nn & 67108863) - for (; zn !== 0 && Fn < _n.length; Fn++) - (Nn = (_n.words[Fn] | 0) + zn), (zn = Nn >> 26), (this.words[Fn] = Nn & 67108863) - if (zn === 0 && Fn < _n.length && _n !== this) - for (; Fn < _n.length; Fn++) this.words[Fn] = _n.words[Fn] - return ( - (this.length = Math.max(this.length, Fn)), - _n !== this && (this.negative = 1), - this._strip() - ) - }), - (en.prototype.sub = function (dn) { - return this.clone().isub(dn) - }) - function kn(un, dn, Nn) { - Nn.negative = dn.negative ^ un.negative - var fn = (un.length + dn.length) | 0 - ;(Nn.length = fn), (fn = (fn - 1) | 0) - var _n = un.words[0] | 0, - Ln = dn.words[0] | 0, - zn = _n * Ln, - Fn = zn & 67108863, - An = (zn / 67108864) | 0 - Nn.words[0] = Fn - for (var Qn = 1; Qn < fn; Qn++) { - for ( - var Rn = An >>> 26, - Vn = An & 67108863, - Wn = Math.min(Qn, dn.length - 1), - ht = Math.max(0, Qn - un.length + 1); - ht <= Wn; - ht++ - ) { - var Wt = (Qn - ht) | 0 - ;(_n = un.words[Wt] | 0), - (Ln = dn.words[ht] | 0), - (zn = _n * Ln + Vn), - (Rn += (zn / 67108864) | 0), - (Vn = zn & 67108863) - } - ;(Nn.words[Qn] = Vn | 0), (An = Rn | 0) - } - return An !== 0 ? (Nn.words[Qn] = An | 0) : Nn.length--, Nn._strip() - } - var ln = function (dn, Nn, fn) { - var _n = dn.words, - Ln = Nn.words, - zn = fn.words, - Fn = 0, - An, - Qn, - Rn, - Vn = _n[0] | 0, - Wn = Vn & 8191, - ht = Vn >>> 13, - Wt = _n[1] | 0, - zt = Wt & 8191, - mr = Wt >>> 13, - Uo = _n[2] | 0, - Vo = Uo & 8191, - ko = Uo >>> 13, - na = _n[3] | 0, - Yo = na & 8191, - vo = na >>> 13, - Wo = _n[4] | 0, - ba = Wo & 8191, - Co = Wo >>> 13, - Ko = _n[5] | 0, - xa = Ko & 8191, - bo = Ko >>> 13, - br = _n[6] | 0, - Fr = br & 8191, - $r = br >>> 13, - cr = _n[7] | 0, - ir = cr & 8191, - vn = cr >>> 13, - gr = _n[8] | 0, - Mr = gr & 8191, - Or = gr >>> 13, - _i = _n[9] | 0, - eo = _i & 8191, - no = _i >>> 13, - Oo = Ln[0] | 0, - So = Oo & 8191, - lo = Oo >>> 13, - Pn = Ln[1] | 0, - Xn = Pn & 8191, - dt = Pn >>> 13, - Ir = Ln[2] | 0, - Lt = Ir & 8191, - ur = Ir >>> 13, - ho = Ln[3] | 0, - xo = ho & 8191, - yo = ho >>> 13, - ga = Ln[4] | 0, - Zo = ga & 8191, - _o = ga >>> 13, - zo = Ln[5] | 0, - $a = zo & 8191, - No = zo >>> 13, - us = Ln[6] | 0, - rs = us & 8191, - Ro = us >>> 13, - is = Ln[7] | 0, - ns = is & 8191, - Bo = is >>> 13, - ts = Ln[8] | 0, - Kt = ts & 8191, - Vt = ts >>> 13, - Mt = Ln[9] | 0, - $t = Mt & 8191, - qt = Mt >>> 13 - ;(fn.negative = dn.negative ^ Nn.negative), - (fn.length = 19), - (An = Math.imul(Wn, So)), - (Qn = Math.imul(Wn, lo)), - (Qn = (Qn + Math.imul(ht, So)) | 0), - (Rn = Math.imul(ht, lo)) - var pr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (pr >>> 26)) | 0), - (pr &= 67108863), - (An = Math.imul(zt, So)), - (Qn = Math.imul(zt, lo)), - (Qn = (Qn + Math.imul(mr, So)) | 0), - (Rn = Math.imul(mr, lo)), - (An = (An + Math.imul(Wn, Xn)) | 0), - (Qn = (Qn + Math.imul(Wn, dt)) | 0), - (Qn = (Qn + Math.imul(ht, Xn)) | 0), - (Rn = (Rn + Math.imul(ht, dt)) | 0) - var Rr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Rr >>> 26)) | 0), - (Rr &= 67108863), - (An = Math.imul(Vo, So)), - (Qn = Math.imul(Vo, lo)), - (Qn = (Qn + Math.imul(ko, So)) | 0), - (Rn = Math.imul(ko, lo)), - (An = (An + Math.imul(zt, Xn)) | 0), - (Qn = (Qn + Math.imul(zt, dt)) | 0), - (Qn = (Qn + Math.imul(mr, Xn)) | 0), - (Rn = (Rn + Math.imul(mr, dt)) | 0), - (An = (An + Math.imul(Wn, Lt)) | 0), - (Qn = (Qn + Math.imul(Wn, ur)) | 0), - (Qn = (Qn + Math.imul(ht, Lt)) | 0), - (Rn = (Rn + Math.imul(ht, ur)) | 0) - var Sr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Sr >>> 26)) | 0), - (Sr &= 67108863), - (An = Math.imul(Yo, So)), - (Qn = Math.imul(Yo, lo)), - (Qn = (Qn + Math.imul(vo, So)) | 0), - (Rn = Math.imul(vo, lo)), - (An = (An + Math.imul(Vo, Xn)) | 0), - (Qn = (Qn + Math.imul(Vo, dt)) | 0), - (Qn = (Qn + Math.imul(ko, Xn)) | 0), - (Rn = (Rn + Math.imul(ko, dt)) | 0), - (An = (An + Math.imul(zt, Lt)) | 0), - (Qn = (Qn + Math.imul(zt, ur)) | 0), - (Qn = (Qn + Math.imul(mr, Lt)) | 0), - (Rn = (Rn + Math.imul(mr, ur)) | 0), - (An = (An + Math.imul(Wn, xo)) | 0), - (Qn = (Qn + Math.imul(Wn, yo)) | 0), - (Qn = (Qn + Math.imul(ht, xo)) | 0), - (Rn = (Rn + Math.imul(ht, yo)) | 0) - var lr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (lr >>> 26)) | 0), - (lr &= 67108863), - (An = Math.imul(ba, So)), - (Qn = Math.imul(ba, lo)), - (Qn = (Qn + Math.imul(Co, So)) | 0), - (Rn = Math.imul(Co, lo)), - (An = (An + Math.imul(Yo, Xn)) | 0), - (Qn = (Qn + Math.imul(Yo, dt)) | 0), - (Qn = (Qn + Math.imul(vo, Xn)) | 0), - (Rn = (Rn + Math.imul(vo, dt)) | 0), - (An = (An + Math.imul(Vo, Lt)) | 0), - (Qn = (Qn + Math.imul(Vo, ur)) | 0), - (Qn = (Qn + Math.imul(ko, Lt)) | 0), - (Rn = (Rn + Math.imul(ko, ur)) | 0), - (An = (An + Math.imul(zt, xo)) | 0), - (Qn = (Qn + Math.imul(zt, yo)) | 0), - (Qn = (Qn + Math.imul(mr, xo)) | 0), - (Rn = (Rn + Math.imul(mr, yo)) | 0), - (An = (An + Math.imul(Wn, Zo)) | 0), - (Qn = (Qn + Math.imul(Wn, _o)) | 0), - (Qn = (Qn + Math.imul(ht, Zo)) | 0), - (Rn = (Rn + Math.imul(ht, _o)) | 0) - var Jr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Jr >>> 26)) | 0), - (Jr &= 67108863), - (An = Math.imul(xa, So)), - (Qn = Math.imul(xa, lo)), - (Qn = (Qn + Math.imul(bo, So)) | 0), - (Rn = Math.imul(bo, lo)), - (An = (An + Math.imul(ba, Xn)) | 0), - (Qn = (Qn + Math.imul(ba, dt)) | 0), - (Qn = (Qn + Math.imul(Co, Xn)) | 0), - (Rn = (Rn + Math.imul(Co, dt)) | 0), - (An = (An + Math.imul(Yo, Lt)) | 0), - (Qn = (Qn + Math.imul(Yo, ur)) | 0), - (Qn = (Qn + Math.imul(vo, Lt)) | 0), - (Rn = (Rn + Math.imul(vo, ur)) | 0), - (An = (An + Math.imul(Vo, xo)) | 0), - (Qn = (Qn + Math.imul(Vo, yo)) | 0), - (Qn = (Qn + Math.imul(ko, xo)) | 0), - (Rn = (Rn + Math.imul(ko, yo)) | 0), - (An = (An + Math.imul(zt, Zo)) | 0), - (Qn = (Qn + Math.imul(zt, _o)) | 0), - (Qn = (Qn + Math.imul(mr, Zo)) | 0), - (Rn = (Rn + Math.imul(mr, _o)) | 0), - (An = (An + Math.imul(Wn, $a)) | 0), - (Qn = (Qn + Math.imul(Wn, No)) | 0), - (Qn = (Qn + Math.imul(ht, $a)) | 0), - (Rn = (Rn + Math.imul(ht, No)) | 0) - var co = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (co >>> 26)) | 0), - (co &= 67108863), - (An = Math.imul(Fr, So)), - (Qn = Math.imul(Fr, lo)), - (Qn = (Qn + Math.imul($r, So)) | 0), - (Rn = Math.imul($r, lo)), - (An = (An + Math.imul(xa, Xn)) | 0), - (Qn = (Qn + Math.imul(xa, dt)) | 0), - (Qn = (Qn + Math.imul(bo, Xn)) | 0), - (Rn = (Rn + Math.imul(bo, dt)) | 0), - (An = (An + Math.imul(ba, Lt)) | 0), - (Qn = (Qn + Math.imul(ba, ur)) | 0), - (Qn = (Qn + Math.imul(Co, Lt)) | 0), - (Rn = (Rn + Math.imul(Co, ur)) | 0), - (An = (An + Math.imul(Yo, xo)) | 0), - (Qn = (Qn + Math.imul(Yo, yo)) | 0), - (Qn = (Qn + Math.imul(vo, xo)) | 0), - (Rn = (Rn + Math.imul(vo, yo)) | 0), - (An = (An + Math.imul(Vo, Zo)) | 0), - (Qn = (Qn + Math.imul(Vo, _o)) | 0), - (Qn = (Qn + Math.imul(ko, Zo)) | 0), - (Rn = (Rn + Math.imul(ko, _o)) | 0), - (An = (An + Math.imul(zt, $a)) | 0), - (Qn = (Qn + Math.imul(zt, No)) | 0), - (Qn = (Qn + Math.imul(mr, $a)) | 0), - (Rn = (Rn + Math.imul(mr, No)) | 0), - (An = (An + Math.imul(Wn, rs)) | 0), - (Qn = (Qn + Math.imul(Wn, Ro)) | 0), - (Qn = (Qn + Math.imul(ht, rs)) | 0), - (Rn = (Rn + Math.imul(ht, Ro)) | 0) - var Po = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Po >>> 26)) | 0), - (Po &= 67108863), - (An = Math.imul(ir, So)), - (Qn = Math.imul(ir, lo)), - (Qn = (Qn + Math.imul(vn, So)) | 0), - (Rn = Math.imul(vn, lo)), - (An = (An + Math.imul(Fr, Xn)) | 0), - (Qn = (Qn + Math.imul(Fr, dt)) | 0), - (Qn = (Qn + Math.imul($r, Xn)) | 0), - (Rn = (Rn + Math.imul($r, dt)) | 0), - (An = (An + Math.imul(xa, Lt)) | 0), - (Qn = (Qn + Math.imul(xa, ur)) | 0), - (Qn = (Qn + Math.imul(bo, Lt)) | 0), - (Rn = (Rn + Math.imul(bo, ur)) | 0), - (An = (An + Math.imul(ba, xo)) | 0), - (Qn = (Qn + Math.imul(ba, yo)) | 0), - (Qn = (Qn + Math.imul(Co, xo)) | 0), - (Rn = (Rn + Math.imul(Co, yo)) | 0), - (An = (An + Math.imul(Yo, Zo)) | 0), - (Qn = (Qn + Math.imul(Yo, _o)) | 0), - (Qn = (Qn + Math.imul(vo, Zo)) | 0), - (Rn = (Rn + Math.imul(vo, _o)) | 0), - (An = (An + Math.imul(Vo, $a)) | 0), - (Qn = (Qn + Math.imul(Vo, No)) | 0), - (Qn = (Qn + Math.imul(ko, $a)) | 0), - (Rn = (Rn + Math.imul(ko, No)) | 0), - (An = (An + Math.imul(zt, rs)) | 0), - (Qn = (Qn + Math.imul(zt, Ro)) | 0), - (Qn = (Qn + Math.imul(mr, rs)) | 0), - (Rn = (Rn + Math.imul(mr, Ro)) | 0), - (An = (An + Math.imul(Wn, ns)) | 0), - (Qn = (Qn + Math.imul(Wn, Bo)) | 0), - (Qn = (Qn + Math.imul(ht, ns)) | 0), - (Rn = (Rn + Math.imul(ht, Bo)) | 0) - var Ho = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Ho >>> 26)) | 0), - (Ho &= 67108863), - (An = Math.imul(Mr, So)), - (Qn = Math.imul(Mr, lo)), - (Qn = (Qn + Math.imul(Or, So)) | 0), - (Rn = Math.imul(Or, lo)), - (An = (An + Math.imul(ir, Xn)) | 0), - (Qn = (Qn + Math.imul(ir, dt)) | 0), - (Qn = (Qn + Math.imul(vn, Xn)) | 0), - (Rn = (Rn + Math.imul(vn, dt)) | 0), - (An = (An + Math.imul(Fr, Lt)) | 0), - (Qn = (Qn + Math.imul(Fr, ur)) | 0), - (Qn = (Qn + Math.imul($r, Lt)) | 0), - (Rn = (Rn + Math.imul($r, ur)) | 0), - (An = (An + Math.imul(xa, xo)) | 0), - (Qn = (Qn + Math.imul(xa, yo)) | 0), - (Qn = (Qn + Math.imul(bo, xo)) | 0), - (Rn = (Rn + Math.imul(bo, yo)) | 0), - (An = (An + Math.imul(ba, Zo)) | 0), - (Qn = (Qn + Math.imul(ba, _o)) | 0), - (Qn = (Qn + Math.imul(Co, Zo)) | 0), - (Rn = (Rn + Math.imul(Co, _o)) | 0), - (An = (An + Math.imul(Yo, $a)) | 0), - (Qn = (Qn + Math.imul(Yo, No)) | 0), - (Qn = (Qn + Math.imul(vo, $a)) | 0), - (Rn = (Rn + Math.imul(vo, No)) | 0), - (An = (An + Math.imul(Vo, rs)) | 0), - (Qn = (Qn + Math.imul(Vo, Ro)) | 0), - (Qn = (Qn + Math.imul(ko, rs)) | 0), - (Rn = (Rn + Math.imul(ko, Ro)) | 0), - (An = (An + Math.imul(zt, ns)) | 0), - (Qn = (Qn + Math.imul(zt, Bo)) | 0), - (Qn = (Qn + Math.imul(mr, ns)) | 0), - (Rn = (Rn + Math.imul(mr, Bo)) | 0), - (An = (An + Math.imul(Wn, Kt)) | 0), - (Qn = (Qn + Math.imul(Wn, Vt)) | 0), - (Qn = (Qn + Math.imul(ht, Kt)) | 0), - (Rn = (Rn + Math.imul(ht, Vt)) | 0) - var Xo = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Xo >>> 26)) | 0), - (Xo &= 67108863), - (An = Math.imul(eo, So)), - (Qn = Math.imul(eo, lo)), - (Qn = (Qn + Math.imul(no, So)) | 0), - (Rn = Math.imul(no, lo)), - (An = (An + Math.imul(Mr, Xn)) | 0), - (Qn = (Qn + Math.imul(Mr, dt)) | 0), - (Qn = (Qn + Math.imul(Or, Xn)) | 0), - (Rn = (Rn + Math.imul(Or, dt)) | 0), - (An = (An + Math.imul(ir, Lt)) | 0), - (Qn = (Qn + Math.imul(ir, ur)) | 0), - (Qn = (Qn + Math.imul(vn, Lt)) | 0), - (Rn = (Rn + Math.imul(vn, ur)) | 0), - (An = (An + Math.imul(Fr, xo)) | 0), - (Qn = (Qn + Math.imul(Fr, yo)) | 0), - (Qn = (Qn + Math.imul($r, xo)) | 0), - (Rn = (Rn + Math.imul($r, yo)) | 0), - (An = (An + Math.imul(xa, Zo)) | 0), - (Qn = (Qn + Math.imul(xa, _o)) | 0), - (Qn = (Qn + Math.imul(bo, Zo)) | 0), - (Rn = (Rn + Math.imul(bo, _o)) | 0), - (An = (An + Math.imul(ba, $a)) | 0), - (Qn = (Qn + Math.imul(ba, No)) | 0), - (Qn = (Qn + Math.imul(Co, $a)) | 0), - (Rn = (Rn + Math.imul(Co, No)) | 0), - (An = (An + Math.imul(Yo, rs)) | 0), - (Qn = (Qn + Math.imul(Yo, Ro)) | 0), - (Qn = (Qn + Math.imul(vo, rs)) | 0), - (Rn = (Rn + Math.imul(vo, Ro)) | 0), - (An = (An + Math.imul(Vo, ns)) | 0), - (Qn = (Qn + Math.imul(Vo, Bo)) | 0), - (Qn = (Qn + Math.imul(ko, ns)) | 0), - (Rn = (Rn + Math.imul(ko, Bo)) | 0), - (An = (An + Math.imul(zt, Kt)) | 0), - (Qn = (Qn + Math.imul(zt, Vt)) | 0), - (Qn = (Qn + Math.imul(mr, Kt)) | 0), - (Rn = (Rn + Math.imul(mr, Vt)) | 0), - (An = (An + Math.imul(Wn, $t)) | 0), - (Qn = (Qn + Math.imul(Wn, qt)) | 0), - (Qn = (Qn + Math.imul(ht, $t)) | 0), - (Rn = (Rn + Math.imul(ht, qt)) | 0) - var Mo = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Mo >>> 26)) | 0), - (Mo &= 67108863), - (An = Math.imul(eo, Xn)), - (Qn = Math.imul(eo, dt)), - (Qn = (Qn + Math.imul(no, Xn)) | 0), - (Rn = Math.imul(no, dt)), - (An = (An + Math.imul(Mr, Lt)) | 0), - (Qn = (Qn + Math.imul(Mr, ur)) | 0), - (Qn = (Qn + Math.imul(Or, Lt)) | 0), - (Rn = (Rn + Math.imul(Or, ur)) | 0), - (An = (An + Math.imul(ir, xo)) | 0), - (Qn = (Qn + Math.imul(ir, yo)) | 0), - (Qn = (Qn + Math.imul(vn, xo)) | 0), - (Rn = (Rn + Math.imul(vn, yo)) | 0), - (An = (An + Math.imul(Fr, Zo)) | 0), - (Qn = (Qn + Math.imul(Fr, _o)) | 0), - (Qn = (Qn + Math.imul($r, Zo)) | 0), - (Rn = (Rn + Math.imul($r, _o)) | 0), - (An = (An + Math.imul(xa, $a)) | 0), - (Qn = (Qn + Math.imul(xa, No)) | 0), - (Qn = (Qn + Math.imul(bo, $a)) | 0), - (Rn = (Rn + Math.imul(bo, No)) | 0), - (An = (An + Math.imul(ba, rs)) | 0), - (Qn = (Qn + Math.imul(ba, Ro)) | 0), - (Qn = (Qn + Math.imul(Co, rs)) | 0), - (Rn = (Rn + Math.imul(Co, Ro)) | 0), - (An = (An + Math.imul(Yo, ns)) | 0), - (Qn = (Qn + Math.imul(Yo, Bo)) | 0), - (Qn = (Qn + Math.imul(vo, ns)) | 0), - (Rn = (Rn + Math.imul(vo, Bo)) | 0), - (An = (An + Math.imul(Vo, Kt)) | 0), - (Qn = (Qn + Math.imul(Vo, Vt)) | 0), - (Qn = (Qn + Math.imul(ko, Kt)) | 0), - (Rn = (Rn + Math.imul(ko, Vt)) | 0), - (An = (An + Math.imul(zt, $t)) | 0), - (Qn = (Qn + Math.imul(zt, qt)) | 0), - (Qn = (Qn + Math.imul(mr, $t)) | 0), - (Rn = (Rn + Math.imul(mr, qt)) | 0) - var vr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (vr >>> 26)) | 0), - (vr &= 67108863), - (An = Math.imul(eo, Lt)), - (Qn = Math.imul(eo, ur)), - (Qn = (Qn + Math.imul(no, Lt)) | 0), - (Rn = Math.imul(no, ur)), - (An = (An + Math.imul(Mr, xo)) | 0), - (Qn = (Qn + Math.imul(Mr, yo)) | 0), - (Qn = (Qn + Math.imul(Or, xo)) | 0), - (Rn = (Rn + Math.imul(Or, yo)) | 0), - (An = (An + Math.imul(ir, Zo)) | 0), - (Qn = (Qn + Math.imul(ir, _o)) | 0), - (Qn = (Qn + Math.imul(vn, Zo)) | 0), - (Rn = (Rn + Math.imul(vn, _o)) | 0), - (An = (An + Math.imul(Fr, $a)) | 0), - (Qn = (Qn + Math.imul(Fr, No)) | 0), - (Qn = (Qn + Math.imul($r, $a)) | 0), - (Rn = (Rn + Math.imul($r, No)) | 0), - (An = (An + Math.imul(xa, rs)) | 0), - (Qn = (Qn + Math.imul(xa, Ro)) | 0), - (Qn = (Qn + Math.imul(bo, rs)) | 0), - (Rn = (Rn + Math.imul(bo, Ro)) | 0), - (An = (An + Math.imul(ba, ns)) | 0), - (Qn = (Qn + Math.imul(ba, Bo)) | 0), - (Qn = (Qn + Math.imul(Co, ns)) | 0), - (Rn = (Rn + Math.imul(Co, Bo)) | 0), - (An = (An + Math.imul(Yo, Kt)) | 0), - (Qn = (Qn + Math.imul(Yo, Vt)) | 0), - (Qn = (Qn + Math.imul(vo, Kt)) | 0), - (Rn = (Rn + Math.imul(vo, Vt)) | 0), - (An = (An + Math.imul(Vo, $t)) | 0), - (Qn = (Qn + Math.imul(Vo, qt)) | 0), - (Qn = (Qn + Math.imul(ko, $t)) | 0), - (Rn = (Rn + Math.imul(ko, qt)) | 0) - var Wr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Wr >>> 26)) | 0), - (Wr &= 67108863), - (An = Math.imul(eo, xo)), - (Qn = Math.imul(eo, yo)), - (Qn = (Qn + Math.imul(no, xo)) | 0), - (Rn = Math.imul(no, yo)), - (An = (An + Math.imul(Mr, Zo)) | 0), - (Qn = (Qn + Math.imul(Mr, _o)) | 0), - (Qn = (Qn + Math.imul(Or, Zo)) | 0), - (Rn = (Rn + Math.imul(Or, _o)) | 0), - (An = (An + Math.imul(ir, $a)) | 0), - (Qn = (Qn + Math.imul(ir, No)) | 0), - (Qn = (Qn + Math.imul(vn, $a)) | 0), - (Rn = (Rn + Math.imul(vn, No)) | 0), - (An = (An + Math.imul(Fr, rs)) | 0), - (Qn = (Qn + Math.imul(Fr, Ro)) | 0), - (Qn = (Qn + Math.imul($r, rs)) | 0), - (Rn = (Rn + Math.imul($r, Ro)) | 0), - (An = (An + Math.imul(xa, ns)) | 0), - (Qn = (Qn + Math.imul(xa, Bo)) | 0), - (Qn = (Qn + Math.imul(bo, ns)) | 0), - (Rn = (Rn + Math.imul(bo, Bo)) | 0), - (An = (An + Math.imul(ba, Kt)) | 0), - (Qn = (Qn + Math.imul(ba, Vt)) | 0), - (Qn = (Qn + Math.imul(Co, Kt)) | 0), - (Rn = (Rn + Math.imul(Co, Vt)) | 0), - (An = (An + Math.imul(Yo, $t)) | 0), - (Qn = (Qn + Math.imul(Yo, qt)) | 0), - (Qn = (Qn + Math.imul(vo, $t)) | 0), - (Rn = (Rn + Math.imul(vo, qt)) | 0) - var qr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (qr >>> 26)) | 0), - (qr &= 67108863), - (An = Math.imul(eo, Zo)), - (Qn = Math.imul(eo, _o)), - (Qn = (Qn + Math.imul(no, Zo)) | 0), - (Rn = Math.imul(no, _o)), - (An = (An + Math.imul(Mr, $a)) | 0), - (Qn = (Qn + Math.imul(Mr, No)) | 0), - (Qn = (Qn + Math.imul(Or, $a)) | 0), - (Rn = (Rn + Math.imul(Or, No)) | 0), - (An = (An + Math.imul(ir, rs)) | 0), - (Qn = (Qn + Math.imul(ir, Ro)) | 0), - (Qn = (Qn + Math.imul(vn, rs)) | 0), - (Rn = (Rn + Math.imul(vn, Ro)) | 0), - (An = (An + Math.imul(Fr, ns)) | 0), - (Qn = (Qn + Math.imul(Fr, Bo)) | 0), - (Qn = (Qn + Math.imul($r, ns)) | 0), - (Rn = (Rn + Math.imul($r, Bo)) | 0), - (An = (An + Math.imul(xa, Kt)) | 0), - (Qn = (Qn + Math.imul(xa, Vt)) | 0), - (Qn = (Qn + Math.imul(bo, Kt)) | 0), - (Rn = (Rn + Math.imul(bo, Vt)) | 0), - (An = (An + Math.imul(ba, $t)) | 0), - (Qn = (Qn + Math.imul(ba, qt)) | 0), - (Qn = (Qn + Math.imul(Co, $t)) | 0), - (Rn = (Rn + Math.imul(Co, qt)) | 0) - var Xr = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Xr >>> 26)) | 0), - (Xr &= 67108863), - (An = Math.imul(eo, $a)), - (Qn = Math.imul(eo, No)), - (Qn = (Qn + Math.imul(no, $a)) | 0), - (Rn = Math.imul(no, No)), - (An = (An + Math.imul(Mr, rs)) | 0), - (Qn = (Qn + Math.imul(Mr, Ro)) | 0), - (Qn = (Qn + Math.imul(Or, rs)) | 0), - (Rn = (Rn + Math.imul(Or, Ro)) | 0), - (An = (An + Math.imul(ir, ns)) | 0), - (Qn = (Qn + Math.imul(ir, Bo)) | 0), - (Qn = (Qn + Math.imul(vn, ns)) | 0), - (Rn = (Rn + Math.imul(vn, Bo)) | 0), - (An = (An + Math.imul(Fr, Kt)) | 0), - (Qn = (Qn + Math.imul(Fr, Vt)) | 0), - (Qn = (Qn + Math.imul($r, Kt)) | 0), - (Rn = (Rn + Math.imul($r, Vt)) | 0), - (An = (An + Math.imul(xa, $t)) | 0), - (Qn = (Qn + Math.imul(xa, qt)) | 0), - (Qn = (Qn + Math.imul(bo, $t)) | 0), - (Rn = (Rn + Math.imul(bo, qt)) | 0) - var Ao = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (Ao >>> 26)) | 0), - (Ao &= 67108863), - (An = Math.imul(eo, rs)), - (Qn = Math.imul(eo, Ro)), - (Qn = (Qn + Math.imul(no, rs)) | 0), - (Rn = Math.imul(no, Ro)), - (An = (An + Math.imul(Mr, ns)) | 0), - (Qn = (Qn + Math.imul(Mr, Bo)) | 0), - (Qn = (Qn + Math.imul(Or, ns)) | 0), - (Rn = (Rn + Math.imul(Or, Bo)) | 0), - (An = (An + Math.imul(ir, Kt)) | 0), - (Qn = (Qn + Math.imul(ir, Vt)) | 0), - (Qn = (Qn + Math.imul(vn, Kt)) | 0), - (Rn = (Rn + Math.imul(vn, Vt)) | 0), - (An = (An + Math.imul(Fr, $t)) | 0), - (Qn = (Qn + Math.imul(Fr, qt)) | 0), - (Qn = (Qn + Math.imul($r, $t)) | 0), - (Rn = (Rn + Math.imul($r, qt)) | 0) - var fo = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (fo >>> 26)) | 0), - (fo &= 67108863), - (An = Math.imul(eo, ns)), - (Qn = Math.imul(eo, Bo)), - (Qn = (Qn + Math.imul(no, ns)) | 0), - (Rn = Math.imul(no, Bo)), - (An = (An + Math.imul(Mr, Kt)) | 0), - (Qn = (Qn + Math.imul(Mr, Vt)) | 0), - (Qn = (Qn + Math.imul(Or, Kt)) | 0), - (Rn = (Rn + Math.imul(Or, Vt)) | 0), - (An = (An + Math.imul(ir, $t)) | 0), - (Qn = (Qn + Math.imul(ir, qt)) | 0), - (Qn = (Qn + Math.imul(vn, $t)) | 0), - (Rn = (Rn + Math.imul(vn, qt)) | 0) - var wo = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (wo >>> 26)) | 0), - (wo &= 67108863), - (An = Math.imul(eo, Kt)), - (Qn = Math.imul(eo, Vt)), - (Qn = (Qn + Math.imul(no, Kt)) | 0), - (Rn = Math.imul(no, Vt)), - (An = (An + Math.imul(Mr, $t)) | 0), - (Qn = (Qn + Math.imul(Mr, qt)) | 0), - (Qn = (Qn + Math.imul(Or, $t)) | 0), - (Rn = (Rn + Math.imul(Or, qt)) | 0) - var so = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - ;(Fn = (((Rn + (Qn >>> 13)) | 0) + (so >>> 26)) | 0), - (so &= 67108863), - (An = Math.imul(eo, $t)), - (Qn = Math.imul(eo, qt)), - (Qn = (Qn + Math.imul(no, $t)) | 0), - (Rn = Math.imul(no, qt)) - var jo = (((Fn + An) | 0) + ((Qn & 8191) << 13)) | 0 - return ( - (Fn = (((Rn + (Qn >>> 13)) | 0) + (jo >>> 26)) | 0), - (jo &= 67108863), - (zn[0] = pr), - (zn[1] = Rr), - (zn[2] = Sr), - (zn[3] = lr), - (zn[4] = Jr), - (zn[5] = co), - (zn[6] = Po), - (zn[7] = Ho), - (zn[8] = Xo), - (zn[9] = Mo), - (zn[10] = vr), - (zn[11] = Wr), - (zn[12] = qr), - (zn[13] = Xr), - (zn[14] = Ao), - (zn[15] = fo), - (zn[16] = wo), - (zn[17] = so), - (zn[18] = jo), - Fn !== 0 && ((zn[19] = Fn), fn.length++), - fn - ) - } - Math.imul || (ln = kn) - function yn(un, dn, Nn) { - ;(Nn.negative = dn.negative ^ un.negative), (Nn.length = un.length + dn.length) - for (var fn = 0, _n = 0, Ln = 0; Ln < Nn.length - 1; Ln++) { - var zn = _n - _n = 0 - for ( - var Fn = fn & 67108863, - An = Math.min(Ln, dn.length - 1), - Qn = Math.max(0, Ln - un.length + 1); - Qn <= An; - Qn++ - ) { - var Rn = Ln - Qn, - Vn = un.words[Rn] | 0, - Wn = dn.words[Qn] | 0, - ht = Vn * Wn, - Wt = ht & 67108863 - ;(zn = (zn + ((ht / 67108864) | 0)) | 0), - (Wt = (Wt + Fn) | 0), - (Fn = Wt & 67108863), - (zn = (zn + (Wt >>> 26)) | 0), - (_n += zn >>> 26), - (zn &= 67108863) - } - ;(Nn.words[Ln] = Fn), (fn = zn), (zn = _n) - } - return fn !== 0 ? (Nn.words[Ln] = fn) : Nn.length--, Nn._strip() - } - function Cn(un, dn, Nn) { - return yn(un, dn, Nn) - } - ;(en.prototype.mulTo = function (dn, Nn) { - var fn, - _n = this.length + dn.length - return ( - this.length === 10 && dn.length === 10 - ? (fn = ln(this, dn, Nn)) - : _n < 63 - ? (fn = kn(this, dn, Nn)) - : _n < 1024 - ? (fn = yn(this, dn, Nn)) - : (fn = Cn(this, dn, Nn)), - fn - ) - }), - (en.prototype.mul = function (dn) { - var Nn = new en(null) - return (Nn.words = new Array(this.length + dn.length)), this.mulTo(dn, Nn) - }), - (en.prototype.mulf = function (dn) { - var Nn = new en(null) - return (Nn.words = new Array(this.length + dn.length)), Cn(this, dn, Nn) - }), - (en.prototype.imul = function (dn) { - return this.clone().mulTo(dn, this) - }), - (en.prototype.imuln = function (dn) { - var Nn = dn < 0 - Nn && (dn = -dn), b(typeof dn == 'number'), b(dn < 67108864) - for (var fn = 0, _n = 0; _n < this.length; _n++) { - var Ln = (this.words[_n] | 0) * dn, - zn = (Ln & 67108863) + (fn & 67108863) - ;(fn >>= 26), - (fn += (Ln / 67108864) | 0), - (fn += zn >>> 26), - (this.words[_n] = zn & 67108863) - } - return fn !== 0 && ((this.words[_n] = fn), this.length++), Nn ? this.ineg() : this - }), - (en.prototype.muln = function (dn) { - return this.clone().imuln(dn) - }), - (en.prototype.sqr = function () { - return this.mul(this) - }), - (en.prototype.isqr = function () { - return this.imul(this.clone()) - }), - (en.prototype.pow = function (dn) { - var Nn = Bn(dn) - if (Nn.length === 0) return new en(1) - for (var fn = this, _n = 0; _n < Nn.length && Nn[_n] === 0; _n++, fn = fn.sqr()); - if (++_n < Nn.length) - for (var Ln = fn.sqr(); _n < Nn.length; _n++, Ln = Ln.sqr()) - Nn[_n] !== 0 && (fn = fn.mul(Ln)) - return fn - }), - (en.prototype.iushln = function (dn) { - b(typeof dn == 'number' && dn >= 0) - var Nn = dn % 26, - fn = (dn - Nn) / 26, - _n = (67108863 >>> (26 - Nn)) << (26 - Nn), - Ln - if (Nn !== 0) { - var zn = 0 - for (Ln = 0; Ln < this.length; Ln++) { - var Fn = this.words[Ln] & _n, - An = ((this.words[Ln] | 0) - Fn) << Nn - ;(this.words[Ln] = An | zn), (zn = Fn >>> (26 - Nn)) - } - zn && ((this.words[Ln] = zn), this.length++) - } - if (fn !== 0) { - for (Ln = this.length - 1; Ln >= 0; Ln--) this.words[Ln + fn] = this.words[Ln] - for (Ln = 0; Ln < fn; Ln++) this.words[Ln] = 0 - this.length += fn - } - return this._strip() - }), - (en.prototype.ishln = function (dn) { - return b(this.negative === 0), this.iushln(dn) - }), - (en.prototype.iushrn = function (dn, Nn, fn) { - b(typeof dn == 'number' && dn >= 0) - var _n - Nn ? (_n = (Nn - (Nn % 26)) / 26) : (_n = 0) - var Ln = dn % 26, - zn = Math.min((dn - Ln) / 26, this.length), - Fn = 67108863 ^ ((67108863 >>> Ln) << Ln), - An = fn - if (((_n -= zn), (_n = Math.max(0, _n)), An)) { - for (var Qn = 0; Qn < zn; Qn++) An.words[Qn] = this.words[Qn] - An.length = zn - } - if (zn !== 0) - if (this.length > zn) - for (this.length -= zn, Qn = 0; Qn < this.length; Qn++) - this.words[Qn] = this.words[Qn + zn] - else (this.words[0] = 0), (this.length = 1) - var Rn = 0 - for (Qn = this.length - 1; Qn >= 0 && (Rn !== 0 || Qn >= _n); Qn--) { - var Vn = this.words[Qn] | 0 - ;(this.words[Qn] = (Rn << (26 - Ln)) | (Vn >>> Ln)), (Rn = Vn & Fn) - } - return ( - An && Rn !== 0 && (An.words[An.length++] = Rn), - this.length === 0 && ((this.words[0] = 0), (this.length = 1)), - this._strip() - ) - }), - (en.prototype.ishrn = function (dn, Nn, fn) { - return b(this.negative === 0), this.iushrn(dn, Nn, fn) - }), - (en.prototype.shln = function (dn) { - return this.clone().ishln(dn) - }), - (en.prototype.ushln = function (dn) { - return this.clone().iushln(dn) - }), - (en.prototype.shrn = function (dn) { - return this.clone().ishrn(dn) - }), - (en.prototype.ushrn = function (dn) { - return this.clone().iushrn(dn) - }), - (en.prototype.testn = function (dn) { - b(typeof dn == 'number' && dn >= 0) - var Nn = dn % 26, - fn = (dn - Nn) / 26, - _n = 1 << Nn - if (this.length <= fn) return !1 - var Ln = this.words[fn] - return !!(Ln & _n) - }), - (en.prototype.imaskn = function (dn) { - b(typeof dn == 'number' && dn >= 0) - var Nn = dn % 26, - fn = (dn - Nn) / 26 - if ((b(this.negative === 0, 'imaskn works only with positive numbers'), this.length <= fn)) - return this - if ((Nn !== 0 && fn++, (this.length = Math.min(fn, this.length)), Nn !== 0)) { - var _n = 67108863 ^ ((67108863 >>> Nn) << Nn) - this.words[this.length - 1] &= _n - } - return this._strip() - }), - (en.prototype.maskn = function (dn) { - return this.clone().imaskn(dn) - }), - (en.prototype.iaddn = function (dn) { - return ( - b(typeof dn == 'number'), - b(dn < 67108864), - dn < 0 - ? this.isubn(-dn) - : this.negative !== 0 - ? this.length === 1 && (this.words[0] | 0) <= dn - ? ((this.words[0] = dn - (this.words[0] | 0)), (this.negative = 0), this) - : ((this.negative = 0), this.isubn(dn), (this.negative = 1), this) - : this._iaddn(dn) - ) - }), - (en.prototype._iaddn = function (dn) { - this.words[0] += dn - for (var Nn = 0; Nn < this.length && this.words[Nn] >= 67108864; Nn++) - (this.words[Nn] -= 67108864), - Nn === this.length - 1 ? (this.words[Nn + 1] = 1) : this.words[Nn + 1]++ - return (this.length = Math.max(this.length, Nn + 1)), this - }), - (en.prototype.isubn = function (dn) { - if ((b(typeof dn == 'number'), b(dn < 67108864), dn < 0)) return this.iaddn(-dn) - if (this.negative !== 0) - return (this.negative = 0), this.iaddn(dn), (this.negative = 1), this - if (((this.words[0] -= dn), this.length === 1 && this.words[0] < 0)) - (this.words[0] = -this.words[0]), (this.negative = 1) - else - for (var Nn = 0; Nn < this.length && this.words[Nn] < 0; Nn++) - (this.words[Nn] += 67108864), (this.words[Nn + 1] -= 1) - return this._strip() - }), - (en.prototype.addn = function (dn) { - return this.clone().iaddn(dn) - }), - (en.prototype.subn = function (dn) { - return this.clone().isubn(dn) - }), - (en.prototype.iabs = function () { - return (this.negative = 0), this - }), - (en.prototype.abs = function () { - return this.clone().iabs() - }), - (en.prototype._ishlnsubmul = function (dn, Nn, fn) { - var _n = dn.length + fn, - Ln - this._expand(_n) - var zn, - Fn = 0 - for (Ln = 0; Ln < dn.length; Ln++) { - zn = (this.words[Ln + fn] | 0) + Fn - var An = (dn.words[Ln] | 0) * Nn - ;(zn -= An & 67108863), - (Fn = (zn >> 26) - ((An / 67108864) | 0)), - (this.words[Ln + fn] = zn & 67108863) - } - for (; Ln < this.length - fn; Ln++) - (zn = (this.words[Ln + fn] | 0) + Fn), - (Fn = zn >> 26), - (this.words[Ln + fn] = zn & 67108863) - if (Fn === 0) return this._strip() - for (b(Fn === -1), Fn = 0, Ln = 0; Ln < this.length; Ln++) - (zn = -(this.words[Ln] | 0) + Fn), (Fn = zn >> 26), (this.words[Ln] = zn & 67108863) - return (this.negative = 1), this._strip() - }), - (en.prototype._wordDiv = function (dn, Nn) { - var fn = this.length - dn.length, - _n = this.clone(), - Ln = dn, - zn = Ln.words[Ln.length - 1] | 0, - Fn = this._countBits(zn) - ;(fn = 26 - Fn), - fn !== 0 && ((Ln = Ln.ushln(fn)), _n.iushln(fn), (zn = Ln.words[Ln.length - 1] | 0)) - var An = _n.length - Ln.length, - Qn - if (Nn !== 'mod') { - ;(Qn = new en(null)), (Qn.length = An + 1), (Qn.words = new Array(Qn.length)) - for (var Rn = 0; Rn < Qn.length; Rn++) Qn.words[Rn] = 0 - } - var Vn = _n.clone()._ishlnsubmul(Ln, 1, An) - Vn.negative === 0 && ((_n = Vn), Qn && (Qn.words[An] = 1)) - for (var Wn = An - 1; Wn >= 0; Wn--) { - var ht = (_n.words[Ln.length + Wn] | 0) * 67108864 + (_n.words[Ln.length + Wn - 1] | 0) - for ( - ht = Math.min((ht / zn) | 0, 67108863), _n._ishlnsubmul(Ln, ht, Wn); - _n.negative !== 0; - - ) - ht--, (_n.negative = 0), _n._ishlnsubmul(Ln, 1, Wn), _n.isZero() || (_n.negative ^= 1) - Qn && (Qn.words[Wn] = ht) - } - return ( - Qn && Qn._strip(), - _n._strip(), - Nn !== 'div' && fn !== 0 && _n.iushrn(fn), - { div: Qn || null, mod: _n } - ) - }), - (en.prototype.divmod = function (dn, Nn, fn) { - if ((b(!dn.isZero()), this.isZero())) return { div: new en(0), mod: new en(0) } - var _n, Ln, zn - return this.negative !== 0 && dn.negative === 0 - ? ((zn = this.neg().divmod(dn, Nn)), - Nn !== 'mod' && (_n = zn.div.neg()), - Nn !== 'div' && ((Ln = zn.mod.neg()), fn && Ln.negative !== 0 && Ln.iadd(dn)), - { div: _n, mod: Ln }) - : this.negative === 0 && dn.negative !== 0 - ? ((zn = this.divmod(dn.neg(), Nn)), - Nn !== 'mod' && (_n = zn.div.neg()), - { div: _n, mod: zn.mod }) - : this.negative & dn.negative - ? ((zn = this.neg().divmod(dn.neg(), Nn)), - Nn !== 'div' && ((Ln = zn.mod.neg()), fn && Ln.negative !== 0 && Ln.isub(dn)), - { div: zn.div, mod: Ln }) - : dn.length > this.length || this.cmp(dn) < 0 - ? { div: new en(0), mod: this } - : dn.length === 1 - ? Nn === 'div' - ? { div: this.divn(dn.words[0]), mod: null } - : Nn === 'mod' - ? { div: null, mod: new en(this.modrn(dn.words[0])) } - : { div: this.divn(dn.words[0]), mod: new en(this.modrn(dn.words[0])) } - : this._wordDiv(dn, Nn) - }), - (en.prototype.div = function (dn) { - return this.divmod(dn, 'div', !1).div - }), - (en.prototype.mod = function (dn) { - return this.divmod(dn, 'mod', !1).mod - }), - (en.prototype.umod = function (dn) { - return this.divmod(dn, 'mod', !0).mod - }), - (en.prototype.divRound = function (dn) { - var Nn = this.divmod(dn) - if (Nn.mod.isZero()) return Nn.div - var fn = Nn.div.negative !== 0 ? Nn.mod.isub(dn) : Nn.mod, - _n = dn.ushrn(1), - Ln = dn.andln(1), - zn = fn.cmp(_n) - return zn < 0 || (Ln === 1 && zn === 0) - ? Nn.div - : Nn.div.negative !== 0 - ? Nn.div.isubn(1) - : Nn.div.iaddn(1) - }), - (en.prototype.modrn = function (dn) { - var Nn = dn < 0 - Nn && (dn = -dn), b(dn <= 67108863) - for (var fn = (1 << 26) % dn, _n = 0, Ln = this.length - 1; Ln >= 0; Ln--) - _n = (fn * _n + (this.words[Ln] | 0)) % dn - return Nn ? -_n : _n - }), - (en.prototype.modn = function (dn) { - return this.modrn(dn) - }), - (en.prototype.idivn = function (dn) { - var Nn = dn < 0 - Nn && (dn = -dn), b(dn <= 67108863) - for (var fn = 0, _n = this.length - 1; _n >= 0; _n--) { - var Ln = (this.words[_n] | 0) + fn * 67108864 - ;(this.words[_n] = (Ln / dn) | 0), (fn = Ln % dn) - } - return this._strip(), Nn ? this.ineg() : this - }), - (en.prototype.divn = function (dn) { - return this.clone().idivn(dn) - }), - (en.prototype.egcd = function (dn) { - b(dn.negative === 0), b(!dn.isZero()) - var Nn = this, - fn = dn.clone() - Nn.negative !== 0 ? (Nn = Nn.umod(dn)) : (Nn = Nn.clone()) - for ( - var _n = new en(1), Ln = new en(0), zn = new en(0), Fn = new en(1), An = 0; - Nn.isEven() && fn.isEven(); - - ) - Nn.iushrn(1), fn.iushrn(1), ++An - for (var Qn = fn.clone(), Rn = Nn.clone(); !Nn.isZero(); ) { - for (var Vn = 0, Wn = 1; !(Nn.words[0] & Wn) && Vn < 26; ++Vn, Wn <<= 1); - if (Vn > 0) - for (Nn.iushrn(Vn); Vn-- > 0; ) - (_n.isOdd() || Ln.isOdd()) && (_n.iadd(Qn), Ln.isub(Rn)), _n.iushrn(1), Ln.iushrn(1) - for (var ht = 0, Wt = 1; !(fn.words[0] & Wt) && ht < 26; ++ht, Wt <<= 1); - if (ht > 0) - for (fn.iushrn(ht); ht-- > 0; ) - (zn.isOdd() || Fn.isOdd()) && (zn.iadd(Qn), Fn.isub(Rn)), zn.iushrn(1), Fn.iushrn(1) - Nn.cmp(fn) >= 0 - ? (Nn.isub(fn), _n.isub(zn), Ln.isub(Fn)) - : (fn.isub(Nn), zn.isub(_n), Fn.isub(Ln)) - } - return { a: zn, b: Fn, gcd: fn.iushln(An) } - }), - (en.prototype._invmp = function (dn) { - b(dn.negative === 0), b(!dn.isZero()) - var Nn = this, - fn = dn.clone() - Nn.negative !== 0 ? (Nn = Nn.umod(dn)) : (Nn = Nn.clone()) - for ( - var _n = new en(1), Ln = new en(0), zn = fn.clone(); - Nn.cmpn(1) > 0 && fn.cmpn(1) > 0; - - ) { - for (var Fn = 0, An = 1; !(Nn.words[0] & An) && Fn < 26; ++Fn, An <<= 1); - if (Fn > 0) for (Nn.iushrn(Fn); Fn-- > 0; ) _n.isOdd() && _n.iadd(zn), _n.iushrn(1) - for (var Qn = 0, Rn = 1; !(fn.words[0] & Rn) && Qn < 26; ++Qn, Rn <<= 1); - if (Qn > 0) for (fn.iushrn(Qn); Qn-- > 0; ) Ln.isOdd() && Ln.iadd(zn), Ln.iushrn(1) - Nn.cmp(fn) >= 0 ? (Nn.isub(fn), _n.isub(Ln)) : (fn.isub(Nn), Ln.isub(_n)) - } - var Vn - return Nn.cmpn(1) === 0 ? (Vn = _n) : (Vn = Ln), Vn.cmpn(0) < 0 && Vn.iadd(dn), Vn - }), - (en.prototype.gcd = function (dn) { - if (this.isZero()) return dn.abs() - if (dn.isZero()) return this.abs() - var Nn = this.clone(), - fn = dn.clone() - ;(Nn.negative = 0), (fn.negative = 0) - for (var _n = 0; Nn.isEven() && fn.isEven(); _n++) Nn.iushrn(1), fn.iushrn(1) - do { - for (; Nn.isEven(); ) Nn.iushrn(1) - for (; fn.isEven(); ) fn.iushrn(1) - var Ln = Nn.cmp(fn) - if (Ln < 0) { - var zn = Nn - ;(Nn = fn), (fn = zn) - } else if (Ln === 0 || fn.cmpn(1) === 0) break - Nn.isub(fn) - } while (!0) - return fn.iushln(_n) - }), - (en.prototype.invm = function (dn) { - return this.egcd(dn).a.umod(dn) - }), - (en.prototype.isEven = function () { - return (this.words[0] & 1) === 0 - }), - (en.prototype.isOdd = function () { - return (this.words[0] & 1) === 1 - }), - (en.prototype.andln = function (dn) { - return this.words[0] & dn - }), - (en.prototype.bincn = function (dn) { - b(typeof dn == 'number') - var Nn = dn % 26, - fn = (dn - Nn) / 26, - _n = 1 << Nn - if (this.length <= fn) return this._expand(fn + 1), (this.words[fn] |= _n), this - for (var Ln = _n, zn = fn; Ln !== 0 && zn < this.length; zn++) { - var Fn = this.words[zn] | 0 - ;(Fn += Ln), (Ln = Fn >>> 26), (Fn &= 67108863), (this.words[zn] = Fn) - } - return Ln !== 0 && ((this.words[zn] = Ln), this.length++), this - }), - (en.prototype.isZero = function () { - return this.length === 1 && this.words[0] === 0 - }), - (en.prototype.cmpn = function (dn) { - var Nn = dn < 0 - if (this.negative !== 0 && !Nn) return -1 - if (this.negative === 0 && Nn) return 1 - this._strip() - var fn - if (this.length > 1) fn = 1 - else { - Nn && (dn = -dn), b(dn <= 67108863, 'Number is too big') - var _n = this.words[0] | 0 - fn = _n === dn ? 0 : _n < dn ? -1 : 1 - } - return this.negative !== 0 ? -fn | 0 : fn - }), - (en.prototype.cmp = function (dn) { - if (this.negative !== 0 && dn.negative === 0) return -1 - if (this.negative === 0 && dn.negative !== 0) return 1 - var Nn = this.ucmp(dn) - return this.negative !== 0 ? -Nn | 0 : Nn - }), - (en.prototype.ucmp = function (dn) { - if (this.length > dn.length) return 1 - if (this.length < dn.length) return -1 - for (var Nn = 0, fn = this.length - 1; fn >= 0; fn--) { - var _n = this.words[fn] | 0, - Ln = dn.words[fn] | 0 - if (_n !== Ln) { - _n < Ln ? (Nn = -1) : _n > Ln && (Nn = 1) - break - } - } - return Nn - }), - (en.prototype.gtn = function (dn) { - return this.cmpn(dn) === 1 - }), - (en.prototype.gt = function (dn) { - return this.cmp(dn) === 1 - }), - (en.prototype.gten = function (dn) { - return this.cmpn(dn) >= 0 - }), - (en.prototype.gte = function (dn) { - return this.cmp(dn) >= 0 - }), - (en.prototype.ltn = function (dn) { - return this.cmpn(dn) === -1 - }), - (en.prototype.lt = function (dn) { - return this.cmp(dn) === -1 - }), - (en.prototype.lten = function (dn) { - return this.cmpn(dn) <= 0 - }), - (en.prototype.lte = function (dn) { - return this.cmp(dn) <= 0 - }), - (en.prototype.eqn = function (dn) { - return this.cmpn(dn) === 0 - }), - (en.prototype.eq = function (dn) { - return this.cmp(dn) === 0 - }), - (en.red = function (dn) { - return new Mn(dn) - }), - (en.prototype.toRed = function (dn) { - return ( - b(!this.red, 'Already a number in reduction context'), - b(this.negative === 0, 'red works only with positives'), - dn.convertTo(this)._forceRed(dn) - ) - }), - (en.prototype.fromRed = function () { - return ( - b(this.red, 'fromRed works only with numbers in reduction context'), - this.red.convertFrom(this) - ) - }), - (en.prototype._forceRed = function (dn) { - return (this.red = dn), this - }), - (en.prototype.forceRed = function (dn) { - return b(!this.red, 'Already a number in reduction context'), this._forceRed(dn) - }), - (en.prototype.redAdd = function (dn) { - return b(this.red, 'redAdd works only with red numbers'), this.red.add(this, dn) - }), - (en.prototype.redIAdd = function (dn) { - return b(this.red, 'redIAdd works only with red numbers'), this.red.iadd(this, dn) - }), - (en.prototype.redSub = function (dn) { - return b(this.red, 'redSub works only with red numbers'), this.red.sub(this, dn) - }), - (en.prototype.redISub = function (dn) { - return b(this.red, 'redISub works only with red numbers'), this.red.isub(this, dn) - }), - (en.prototype.redShl = function (dn) { - return b(this.red, 'redShl works only with red numbers'), this.red.shl(this, dn) - }), - (en.prototype.redMul = function (dn) { - return ( - b(this.red, 'redMul works only with red numbers'), - this.red._verify2(this, dn), - this.red.mul(this, dn) - ) - }), - (en.prototype.redIMul = function (dn) { - return ( - b(this.red, 'redMul works only with red numbers'), - this.red._verify2(this, dn), - this.red.imul(this, dn) - ) - }), - (en.prototype.redSqr = function () { - return ( - b(this.red, 'redSqr works only with red numbers'), - this.red._verify1(this), - this.red.sqr(this) - ) - }), - (en.prototype.redISqr = function () { - return ( - b(this.red, 'redISqr works only with red numbers'), - this.red._verify1(this), - this.red.isqr(this) - ) - }), - (en.prototype.redSqrt = function () { - return ( - b(this.red, 'redSqrt works only with red numbers'), - this.red._verify1(this), - this.red.sqrt(this) - ) - }), - (en.prototype.redInvm = function () { - return ( - b(this.red, 'redInvm works only with red numbers'), - this.red._verify1(this), - this.red.invm(this) - ) - }), - (en.prototype.redNeg = function () { - return ( - b(this.red, 'redNeg works only with red numbers'), - this.red._verify1(this), - this.red.neg(this) - ) - }), - (en.prototype.redPow = function (dn) { - return ( - b(this.red && !dn.red, 'redPow(normalNum)'), - this.red._verify1(this), - this.red.pow(this, dn) - ) - }) - var Tn = { k256: null, p224: null, p192: null, p25519: null } - function Gn(un, dn) { - ;(this.name = un), - (this.p = new en(dn, 16)), - (this.n = this.p.bitLength()), - (this.k = new en(1).iushln(this.n).isub(this.p)), - (this.tmp = this._tmp()) - } - ;(Gn.prototype._tmp = function () { - var dn = new en(null) - return (dn.words = new Array(Math.ceil(this.n / 13))), dn - }), - (Gn.prototype.ireduce = function (dn) { - var Nn = dn, - fn - do - this.split(Nn, this.tmp), - (Nn = this.imulK(Nn)), - (Nn = Nn.iadd(this.tmp)), - (fn = Nn.bitLength()) - while (fn > this.n) - var _n = fn < this.n ? -1 : Nn.ucmp(this.p) - return ( - _n === 0 - ? ((Nn.words[0] = 0), (Nn.length = 1)) - : _n > 0 - ? Nn.isub(this.p) - : Nn.strip !== void 0 - ? Nn.strip() - : Nn._strip(), - Nn - ) - }), - (Gn.prototype.split = function (dn, Nn) { - dn.iushrn(this.n, 0, Nn) - }), - (Gn.prototype.imulK = function (dn) { - return dn.imul(this.k) - }) - function Sn() { - Gn.call( - this, - 'k256', - 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f', - ) - } - $(Sn, Gn), - (Sn.prototype.split = function (dn, Nn) { - for (var fn = 4194303, _n = Math.min(dn.length, 9), Ln = 0; Ln < _n; Ln++) - Nn.words[Ln] = dn.words[Ln] - if (((Nn.length = _n), dn.length <= 9)) { - ;(dn.words[0] = 0), (dn.length = 1) - return - } - var zn = dn.words[9] - for (Nn.words[Nn.length++] = zn & fn, Ln = 10; Ln < dn.length; Ln++) { - var Fn = dn.words[Ln] | 0 - ;(dn.words[Ln - 10] = ((Fn & fn) << 4) | (zn >>> 22)), (zn = Fn) - } - ;(zn >>>= 22), - (dn.words[Ln - 10] = zn), - zn === 0 && dn.length > 10 ? (dn.length -= 10) : (dn.length -= 9) - }), - (Sn.prototype.imulK = function (dn) { - ;(dn.words[dn.length] = 0), (dn.words[dn.length + 1] = 0), (dn.length += 2) - for (var Nn = 0, fn = 0; fn < dn.length; fn++) { - var _n = dn.words[fn] | 0 - ;(Nn += _n * 977), (dn.words[fn] = Nn & 67108863), (Nn = _n * 64 + ((Nn / 67108864) | 0)) - } - return ( - dn.words[dn.length - 1] === 0 && - (dn.length--, dn.words[dn.length - 1] === 0 && dn.length--), - dn - ) - }) - function Zn() { - Gn.call(this, 'p224', 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001') - } - $(Zn, Gn) - function tn() { - Gn.call(this, 'p192', 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff') - } - $(tn, Gn) - function En() { - Gn.call(this, '25519', '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed') - } - $(En, Gn), - (En.prototype.imulK = function (dn) { - for (var Nn = 0, fn = 0; fn < dn.length; fn++) { - var _n = (dn.words[fn] | 0) * 19 + Nn, - Ln = _n & 67108863 - ;(_n >>>= 26), (dn.words[fn] = Ln), (Nn = _n) - } - return Nn !== 0 && (dn.words[dn.length++] = Nn), dn - }), - (en._prime = function (dn) { - if (Tn[dn]) return Tn[dn] - var Nn - if (dn === 'k256') Nn = new Sn() - else if (dn === 'p224') Nn = new Zn() - else if (dn === 'p192') Nn = new tn() - else if (dn === 'p25519') Nn = new En() - else throw new Error('Unknown prime ' + dn) - return (Tn[dn] = Nn), Nn - }) - function Mn(un) { - if (typeof un == 'string') { - var dn = en._prime(un) - ;(this.m = dn.p), (this.prime = dn) - } else b(un.gtn(1), 'modulus must be greater than 1'), (this.m = un), (this.prime = null) - } - ;(Mn.prototype._verify1 = function (dn) { - b(dn.negative === 0, 'red works only with positives'), - b(dn.red, 'red works only with red numbers') - }), - (Mn.prototype._verify2 = function (dn, Nn) { - b((dn.negative | Nn.negative) === 0, 'red works only with positives'), - b(dn.red && dn.red === Nn.red, 'red works only with red numbers') - }), - (Mn.prototype.imod = function (dn) { - return this.prime - ? this.prime.ireduce(dn)._forceRed(this) - : (Jn(dn, dn.umod(this.m)._forceRed(this)), dn) - }), - (Mn.prototype.neg = function (dn) { - return dn.isZero() ? dn.clone() : this.m.sub(dn)._forceRed(this) - }), - (Mn.prototype.add = function (dn, Nn) { - this._verify2(dn, Nn) - var fn = dn.add(Nn) - return fn.cmp(this.m) >= 0 && fn.isub(this.m), fn._forceRed(this) - }), - (Mn.prototype.iadd = function (dn, Nn) { - this._verify2(dn, Nn) - var fn = dn.iadd(Nn) - return fn.cmp(this.m) >= 0 && fn.isub(this.m), fn - }), - (Mn.prototype.sub = function (dn, Nn) { - this._verify2(dn, Nn) - var fn = dn.sub(Nn) - return fn.cmpn(0) < 0 && fn.iadd(this.m), fn._forceRed(this) - }), - (Mn.prototype.isub = function (dn, Nn) { - this._verify2(dn, Nn) - var fn = dn.isub(Nn) - return fn.cmpn(0) < 0 && fn.iadd(this.m), fn - }), - (Mn.prototype.shl = function (dn, Nn) { - return this._verify1(dn), this.imod(dn.ushln(Nn)) - }), - (Mn.prototype.imul = function (dn, Nn) { - return this._verify2(dn, Nn), this.imod(dn.imul(Nn)) - }), - (Mn.prototype.mul = function (dn, Nn) { - return this._verify2(dn, Nn), this.imod(dn.mul(Nn)) - }), - (Mn.prototype.isqr = function (dn) { - return this.imul(dn, dn.clone()) - }), - (Mn.prototype.sqr = function (dn) { - return this.mul(dn, dn) - }), - (Mn.prototype.sqrt = function (dn) { - if (dn.isZero()) return dn.clone() - var Nn = this.m.andln(3) - if ((b(Nn % 2 === 1), Nn === 3)) { - var fn = this.m.add(new en(1)).iushrn(2) - return this.pow(dn, fn) - } - for (var _n = this.m.subn(1), Ln = 0; !_n.isZero() && _n.andln(1) === 0; ) - Ln++, _n.iushrn(1) - b(!_n.isZero()) - var zn = new en(1).toRed(this), - Fn = zn.redNeg(), - An = this.m.subn(1).iushrn(1), - Qn = this.m.bitLength() - for (Qn = new en(2 * Qn * Qn).toRed(this); this.pow(Qn, An).cmp(Fn) !== 0; ) Qn.redIAdd(Fn) - for ( - var Rn = this.pow(Qn, _n), - Vn = this.pow(dn, _n.addn(1).iushrn(1)), - Wn = this.pow(dn, _n), - ht = Ln; - Wn.cmp(zn) !== 0; - - ) { - for (var Wt = Wn, zt = 0; Wt.cmp(zn) !== 0; zt++) Wt = Wt.redSqr() - b(zt < ht) - var mr = this.pow(Rn, new en(1).iushln(ht - zt - 1)) - ;(Vn = Vn.redMul(mr)), (Rn = mr.redSqr()), (Wn = Wn.redMul(Rn)), (ht = zt) - } - return Vn - }), - (Mn.prototype.invm = function (dn) { - var Nn = dn._invmp(this.m) - return Nn.negative !== 0 ? ((Nn.negative = 0), this.imod(Nn).redNeg()) : this.imod(Nn) - }), - (Mn.prototype.pow = function (dn, Nn) { - if (Nn.isZero()) return new en(1).toRed(this) - if (Nn.cmpn(1) === 0) return dn.clone() - var fn = 4, - _n = new Array(1 << fn) - ;(_n[0] = new en(1).toRed(this)), (_n[1] = dn) - for (var Ln = 2; Ln < _n.length; Ln++) _n[Ln] = this.mul(_n[Ln - 1], dn) - var zn = _n[0], - Fn = 0, - An = 0, - Qn = Nn.bitLength() % 26 - for (Qn === 0 && (Qn = 26), Ln = Nn.length - 1; Ln >= 0; Ln--) { - for (var Rn = Nn.words[Ln], Vn = Qn - 1; Vn >= 0; Vn--) { - var Wn = (Rn >> Vn) & 1 - if ((zn !== _n[0] && (zn = this.sqr(zn)), Wn === 0 && Fn === 0)) { - An = 0 - continue - } - ;(Fn <<= 1), - (Fn |= Wn), - An++, - !(An !== fn && (Ln !== 0 || Vn !== 0)) && - ((zn = this.mul(zn, _n[Fn])), (An = 0), (Fn = 0)) - } - Qn = 26 - } - return zn - }), - (Mn.prototype.convertTo = function (dn) { - var Nn = dn.umod(this.m) - return Nn === dn ? Nn.clone() : Nn - }), - (Mn.prototype.convertFrom = function (dn) { - var Nn = dn.clone() - return (Nn.red = null), Nn - }), - (en.mont = function (dn) { - return new Hn(dn) - }) - function Hn(un) { - Mn.call(this, un), - (this.shift = this.m.bitLength()), - this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), - (this.r = new en(1).iushln(this.shift)), - (this.r2 = this.imod(this.r.sqr())), - (this.rinv = this.r._invmp(this.m)), - (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), - (this.minv = this.minv.umod(this.r)), - (this.minv = this.r.sub(this.minv)) - } - $(Hn, Mn), - (Hn.prototype.convertTo = function (dn) { - return this.imod(dn.ushln(this.shift)) - }), - (Hn.prototype.convertFrom = function (dn) { - var Nn = this.imod(dn.mul(this.rinv)) - return (Nn.red = null), Nn - }), - (Hn.prototype.imul = function (dn, Nn) { - if (dn.isZero() || Nn.isZero()) return (dn.words[0] = 0), (dn.length = 1), dn - var fn = dn.imul(Nn), - _n = fn.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), - Ln = fn.isub(_n).iushrn(this.shift), - zn = Ln - return ( - Ln.cmp(this.m) >= 0 ? (zn = Ln.isub(this.m)) : Ln.cmpn(0) < 0 && (zn = Ln.iadd(this.m)), - zn._forceRed(this) - ) - }), - (Hn.prototype.mul = function (dn, Nn) { - if (dn.isZero() || Nn.isZero()) return new en(0)._forceRed(this) - var fn = dn.mul(Nn), - _n = fn.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), - Ln = fn.isub(_n).iushrn(this.shift), - zn = Ln - return ( - Ln.cmp(this.m) >= 0 ? (zn = Ln.isub(this.m)) : Ln.cmpn(0) < 0 && (zn = Ln.iadd(this.m)), - zn._forceRed(this) - ) - }), - (Hn.prototype.invm = function (dn) { - var Nn = this.imod(dn._invmp(this.m).mul(this.r2)) - return Nn._forceRed(this) - }) - })(e, commonjsGlobal) -})(bn$1) -var __importDefault$i = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(decimal, '__esModule', { value: !0 }) -decimal.Decimal = void 0 -const bn_js_1$2 = __importDefault$i(bnExports$1), - maxFractionalDigits = 100 -class Decimal { - static fromUserInput(o, _) { - Decimal.verifyFractionalDigits(_) - const b = o.match(/[^0-9.]/) - if (b) throw new Error(`Invalid character at position ${b.index + 1}`) - let $, en - if (o === '') ($ = '0'), (en = '') - else if (o.search(/\./) === -1) ($ = o), (en = '') - else { - const sn = o.split('.') - switch (sn.length) { - case 0: - case 1: - throw new Error('Fewer than two elements in split result. This must not happen here.') - case 2: - if (!sn[1]) throw new Error('Fractional part missing') - ;($ = sn[0]), (en = sn[1].replace(/0+$/, '')) - break - default: - throw new Error('More than one separator found') - } - } - if (en.length > _) throw new Error('Got more fractional digits than supported') - const nn = `${$}${en.padEnd(_, '0')}` - return new Decimal(nn, _) - } - static fromAtomics(o, _) { - return Decimal.verifyFractionalDigits(_), new Decimal(o, _) - } - static zero(o) { - return Decimal.verifyFractionalDigits(o), new Decimal('0', o) - } - static one(o) { - return Decimal.verifyFractionalDigits(o), new Decimal('1' + '0'.repeat(o), o) - } - static verifyFractionalDigits(o) { - if (!Number.isInteger(o)) throw new Error('Fractional digits is not an integer') - if (o < 0) throw new Error('Fractional digits must not be negative') - if (o > maxFractionalDigits) - throw new Error(`Fractional digits must not exceed ${maxFractionalDigits}`) - } - static compare(o, _) { - if (o.fractionalDigits !== _.fractionalDigits) throw new Error('Fractional digits do not match') - return o.data.atomics.cmp(new bn_js_1$2.default(_.atomics)) - } - get atomics() { - return this.data.atomics.toString() - } - get fractionalDigits() { - return this.data.fractionalDigits - } - constructor(o, _) { - if (!o.match(/^[0-9]+$/)) - throw new Error( - 'Invalid string format. Only non-negative integers in decimal representation supported.', - ) - this.data = { atomics: new bn_js_1$2.default(o), fractionalDigits: _ } - } - clone() { - return new Decimal(this.atomics, this.fractionalDigits) - } - floor() { - const o = new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)), - _ = this.data.atomics.div(o) - return this.data.atomics.mod(o).isZero() - ? this.clone() - : Decimal.fromAtomics(_.mul(o).toString(), this.fractionalDigits) - } - ceil() { - const o = new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)), - _ = this.data.atomics.div(o) - return this.data.atomics.mod(o).isZero() - ? this.clone() - : Decimal.fromAtomics(_.addn(1).mul(o).toString(), this.fractionalDigits) - } - toString() { - const o = new bn_js_1$2.default(10).pow(new bn_js_1$2.default(this.data.fractionalDigits)), - _ = this.data.atomics.div(o), - b = this.data.atomics.mod(o) - if (b.isZero()) return _.toString() - { - const en = b.toString().padStart(this.data.fractionalDigits, '0').replace(/0+$/, '') - return `${_.toString()}.${en}` - } - } - toFloatApproximation() { - const o = Number(this.toString()) - if (Number.isNaN(o)) throw new Error('Conversion to number failed') - return o - } - plus(o) { - if (this.fractionalDigits !== o.fractionalDigits) - throw new Error('Fractional digits do not match') - const _ = this.data.atomics.add(new bn_js_1$2.default(o.atomics)) - return new Decimal(_.toString(), this.fractionalDigits) - } - minus(o) { - if (this.fractionalDigits !== o.fractionalDigits) - throw new Error('Fractional digits do not match') - const _ = this.data.atomics.sub(new bn_js_1$2.default(o.atomics)) - if (_.ltn(0)) throw new Error('Difference must not be negative') - return new Decimal(_.toString(), this.fractionalDigits) - } - multiply(o) { - const _ = this.data.atomics.mul(new bn_js_1$2.default(o.toString())) - return new Decimal(_.toString(), this.fractionalDigits) - } - equals(o) { - return Decimal.compare(this, o) === 0 - } - isLessThan(o) { - return Decimal.compare(this, o) < 0 - } - isLessThanOrEqual(o) { - return Decimal.compare(this, o) <= 0 - } - isGreaterThan(o) { - return Decimal.compare(this, o) > 0 - } - isGreaterThanOrEqual(o) { - return Decimal.compare(this, o) >= 0 - } -} -decimal.Decimal = Decimal -var integers = {}, - __importDefault$h = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(integers, '__esModule', { value: !0 }) -integers.Uint64 = integers.Uint53 = integers.Int53 = integers.Uint32 = void 0 -const bn_js_1$1 = __importDefault$h(bnExports$1), - uint64MaxValue = new bn_js_1$1.default('18446744073709551615', 10, 'be') -class Uint32 { - static fromBigEndianBytes(o) { - return Uint32.fromBytes(o) - } - static fromBytes(o, _ = 'be') { - if (o.length !== 4) throw new Error('Invalid input length. Expected 4 bytes.') - for (let $ = 0; $ < o.length; ++$) - if (!Number.isInteger(o[$]) || o[$] > 255 || o[$] < 0) - throw new Error('Invalid value in byte. Found: ' + o[$]) - const b = _ === 'be' ? o : Array.from(o).reverse() - return new Uint32(b[0] * 2 ** 24 + b[1] * 2 ** 16 + b[2] * 2 ** 8 + b[3]) - } - static fromString(o) { - if (!o.match(/^[0-9]+$/)) throw new Error('Invalid string format') - return new Uint32(Number.parseInt(o, 10)) - } - constructor(o) { - if (Number.isNaN(o)) throw new Error('Input is not a number') - if (!Number.isInteger(o)) throw new Error('Input is not an integer') - if (o < 0 || o > 4294967295) throw new Error('Input not in uint32 range: ' + o.toString()) - this.data = o - } - toBytesBigEndian() { - return new Uint8Array([ - Math.floor(this.data / 2 ** 24) & 255, - Math.floor(this.data / 2 ** 16) & 255, - Math.floor(this.data / 2 ** 8) & 255, - Math.floor(this.data / 2 ** 0) & 255, - ]) - } - toBytesLittleEndian() { - return new Uint8Array([ - Math.floor(this.data / 2 ** 0) & 255, - Math.floor(this.data / 2 ** 8) & 255, - Math.floor(this.data / 2 ** 16) & 255, - Math.floor(this.data / 2 ** 24) & 255, - ]) - } - toNumber() { - return this.data - } - toBigInt() { - return BigInt(this.toNumber()) - } - toString() { - return this.data.toString() - } -} -integers.Uint32 = Uint32 -class Int53 { - static fromString(o) { - if (!o.match(/^-?[0-9]+$/)) throw new Error('Invalid string format') - return new Int53(Number.parseInt(o, 10)) - } - constructor(o) { - if (Number.isNaN(o)) throw new Error('Input is not a number') - if (!Number.isInteger(o)) throw new Error('Input is not an integer') - if (o < Number.MIN_SAFE_INTEGER || o > Number.MAX_SAFE_INTEGER) - throw new Error('Input not in int53 range: ' + o.toString()) - this.data = o - } - toNumber() { - return this.data - } - toBigInt() { - return BigInt(this.toNumber()) - } - toString() { - return this.data.toString() - } -} -integers.Int53 = Int53 -class Uint53 { - static fromString(o) { - const _ = Int53.fromString(o) - return new Uint53(_.toNumber()) - } - constructor(o) { - const _ = new Int53(o) - if (_.toNumber() < 0) throw new Error('Input is negative') - this.data = _ - } - toNumber() { - return this.data.toNumber() - } - toBigInt() { - return BigInt(this.toNumber()) - } - toString() { - return this.data.toString() - } -} -integers.Uint53 = Uint53 -class Uint64 { - static fromBytesBigEndian(o) { - return Uint64.fromBytes(o) - } - static fromBytes(o, _ = 'be') { - if (o.length !== 8) throw new Error('Invalid input length. Expected 8 bytes.') - for (let $ = 0; $ < o.length; ++$) - if (!Number.isInteger(o[$]) || o[$] > 255 || o[$] < 0) - throw new Error('Invalid value in byte. Found: ' + o[$]) - const b = _ === 'be' ? Array.from(o) : Array.from(o).reverse() - return new Uint64(new bn_js_1$1.default(b)) - } - static fromString(o) { - if (!o.match(/^[0-9]+$/)) throw new Error('Invalid string format') - return new Uint64(new bn_js_1$1.default(o, 10, 'be')) - } - static fromNumber(o) { - if (Number.isNaN(o)) throw new Error('Input is not a number') - if (!Number.isInteger(o)) throw new Error('Input is not an integer') - let _ - try { - _ = new bn_js_1$1.default(o) - } catch { - throw new Error('Input is not a safe integer') - } - return new Uint64(_) - } - constructor(o) { - if (o.isNeg()) throw new Error('Input is negative') - if (o.gt(uint64MaxValue)) throw new Error('Input exceeds uint64 range') - this.data = o - } - toBytesBigEndian() { - return Uint8Array.from(this.data.toArray('be', 8)) - } - toBytesLittleEndian() { - return Uint8Array.from(this.data.toArray('le', 8)) - } - toString() { - return this.data.toString(10) - } - toBigInt() { - return BigInt(this.toString()) - } - toNumber() { - return this.data.toNumber() - } -} -integers.Uint64 = Uint64 -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Uint64 = e.Uint53 = e.Uint32 = e.Int53 = e.Decimal = void 0) - var o = decimal - Object.defineProperty(e, 'Decimal', { - enumerable: !0, - get: function () { - return o.Decimal - }, - }) - var _ = integers - Object.defineProperty(e, 'Int53', { - enumerable: !0, - get: function () { - return _.Int53 - }, - }), - Object.defineProperty(e, 'Uint32', { - enumerable: !0, - get: function () { - return _.Uint32 - }, - }), - Object.defineProperty(e, 'Uint53', { - enumerable: !0, - get: function () { - return _.Uint53 - }, - }), - Object.defineProperty(e, 'Uint64', { - enumerable: !0, - get: function () { - return _.Uint64 - }, - }) -})(build$a) -var build$9 = {}, - accounts = {}, - build$8 = {}, - coins$2 = {} -Object.defineProperty(coins$2, '__esModule', { value: !0 }) -coins$2.parseCoins = void 0 -function parseCoins$1(e) { - return e - .replace(/\s/g, '') - .split(',') - .filter(Boolean) - .map((o) => { - const _ = o.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/) - if (!_) throw new Error('Got an invalid coin string') - return { amount: _[1].replace(/^0+/, '') || '0', denom: _[2] } - }) -} -coins$2.parseCoins = parseCoins$1 -var decode = {}, - tx$e = {}, - any = {}, - minimalExports = {}, - minimal$1 = { - get exports() { - return minimalExports - }, - set exports(e) { - minimalExports = e - }, - }, - indexMinimal = {}, - minimal = {}, - aspromise = asPromise -function asPromise(e, o) { - for (var _ = new Array(arguments.length - 1), b = 0, $ = 2, en = !0; $ < arguments.length; ) - _[b++] = arguments[$++] - return new Promise(function (sn, gn) { - _[b] = function (Jn) { - if (en) - if (((en = !1), Jn)) gn(Jn) - else { - for (var qn = new Array(arguments.length - 1), Kn = 0; Kn < qn.length; ) - qn[Kn++] = arguments[Kn] - sn.apply(null, qn) - } - } - try { - e.apply(o || null, _) - } catch (In) { - en && ((en = !1), gn(In)) - } - }) -} -var base64$1 = {} -;(function (e) { - var o = e - o.length = function (sn) { - var gn = sn.length - if (!gn) return 0 - for (var In = 0; --gn % 4 > 1 && sn.charAt(gn) === '='; ) ++In - return Math.ceil(sn.length * 3) / 4 - In - } - for (var _ = new Array(64), b = new Array(123), $ = 0; $ < 64; ) - b[(_[$] = $ < 26 ? $ + 65 : $ < 52 ? $ + 71 : $ < 62 ? $ - 4 : ($ - 59) | 43)] = $++ - o.encode = function (sn, gn, In) { - for (var Jn = null, qn = [], Kn = 0, an = 0, xn; gn < In; ) { - var mn = sn[gn++] - switch (an) { - case 0: - ;(qn[Kn++] = _[mn >> 2]), (xn = (mn & 3) << 4), (an = 1) - break - case 1: - ;(qn[Kn++] = _[xn | (mn >> 4)]), (xn = (mn & 15) << 2), (an = 2) - break - case 2: - ;(qn[Kn++] = _[xn | (mn >> 6)]), (qn[Kn++] = _[mn & 63]), (an = 0) - break - } - Kn > 8191 && ((Jn || (Jn = [])).push(String.fromCharCode.apply(String, qn)), (Kn = 0)) - } - return ( - an && ((qn[Kn++] = _[xn]), (qn[Kn++] = 61), an === 1 && (qn[Kn++] = 61)), - Jn - ? (Kn && Jn.push(String.fromCharCode.apply(String, qn.slice(0, Kn))), Jn.join('')) - : String.fromCharCode.apply(String, qn.slice(0, Kn)) - ) - } - var en = 'invalid encoding' - ;(o.decode = function (sn, gn, In) { - for (var Jn = In, qn = 0, Kn, an = 0; an < sn.length; ) { - var xn = sn.charCodeAt(an++) - if (xn === 61 && qn > 1) break - if ((xn = b[xn]) === void 0) throw Error(en) - switch (qn) { - case 0: - ;(Kn = xn), (qn = 1) - break - case 1: - ;(gn[In++] = (Kn << 2) | ((xn & 48) >> 4)), (Kn = xn), (qn = 2) - break - case 2: - ;(gn[In++] = ((Kn & 15) << 4) | ((xn & 60) >> 2)), (Kn = xn), (qn = 3) - break - case 3: - ;(gn[In++] = ((Kn & 3) << 6) | xn), (qn = 0) - break - } - } - if (qn === 1) throw Error(en) - return In - Jn - }), - (o.test = function (sn) { - return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(sn) - }) -})(base64$1) -var eventemitter = EventEmitter -function EventEmitter() { - this._listeners = {} -} -EventEmitter.prototype.on = function (o, _, b) { - return (this._listeners[o] || (this._listeners[o] = [])).push({ fn: _, ctx: b || this }), this -} -EventEmitter.prototype.off = function (o, _) { - if (o === void 0) this._listeners = {} - else if (_ === void 0) this._listeners[o] = [] - else for (var b = this._listeners[o], $ = 0; $ < b.length; ) b[$].fn === _ ? b.splice($, 1) : ++$ - return this -} -EventEmitter.prototype.emit = function (o) { - var _ = this._listeners[o] - if (_) { - for (var b = [], $ = 1; $ < arguments.length; ) b.push(arguments[$++]) - for ($ = 0; $ < _.length; ) _[$].fn.apply(_[$++].ctx, b) - } - return this -} -var float = factory(factory) -function factory(e) { - return ( - typeof Float32Array < 'u' - ? (function () { - var o = new Float32Array([-0]), - _ = new Uint8Array(o.buffer), - b = _[3] === 128 - function $(gn, In, Jn) { - ;(o[0] = gn), - (In[Jn] = _[0]), - (In[Jn + 1] = _[1]), - (In[Jn + 2] = _[2]), - (In[Jn + 3] = _[3]) - } - function en(gn, In, Jn) { - ;(o[0] = gn), - (In[Jn] = _[3]), - (In[Jn + 1] = _[2]), - (In[Jn + 2] = _[1]), - (In[Jn + 3] = _[0]) - } - ;(e.writeFloatLE = b ? $ : en), (e.writeFloatBE = b ? en : $) - function nn(gn, In) { - return ( - (_[0] = gn[In]), (_[1] = gn[In + 1]), (_[2] = gn[In + 2]), (_[3] = gn[In + 3]), o[0] - ) - } - function sn(gn, In) { - return ( - (_[3] = gn[In]), (_[2] = gn[In + 1]), (_[1] = gn[In + 2]), (_[0] = gn[In + 3]), o[0] - ) - } - ;(e.readFloatLE = b ? nn : sn), (e.readFloatBE = b ? sn : nn) - })() - : (function () { - function o(b, $, en, nn) { - var sn = $ < 0 ? 1 : 0 - if ((sn && ($ = -$), $ === 0)) b(1 / $ > 0 ? 0 : 2147483648, en, nn) - else if (isNaN($)) b(2143289344, en, nn) - else if ($ > 34028234663852886e22) b(((sn << 31) | 2139095040) >>> 0, en, nn) - else if ($ < 11754943508222875e-54) - b(((sn << 31) | Math.round($ / 1401298464324817e-60)) >>> 0, en, nn) - else { - var gn = Math.floor(Math.log($) / Math.LN2), - In = Math.round($ * Math.pow(2, -gn) * 8388608) & 8388607 - b(((sn << 31) | ((gn + 127) << 23) | In) >>> 0, en, nn) - } - } - ;(e.writeFloatLE = o.bind(null, writeUintLE)), - (e.writeFloatBE = o.bind(null, writeUintBE)) - function _(b, $, en) { - var nn = b($, en), - sn = (nn >> 31) * 2 + 1, - gn = (nn >>> 23) & 255, - In = nn & 8388607 - return gn === 255 - ? In - ? NaN - : sn * (1 / 0) - : gn === 0 - ? sn * 1401298464324817e-60 * In - : sn * Math.pow(2, gn - 150) * (In + 8388608) - } - ;(e.readFloatLE = _.bind(null, readUintLE)), (e.readFloatBE = _.bind(null, readUintBE)) - })(), - typeof Float64Array < 'u' - ? (function () { - var o = new Float64Array([-0]), - _ = new Uint8Array(o.buffer), - b = _[7] === 128 - function $(gn, In, Jn) { - ;(o[0] = gn), - (In[Jn] = _[0]), - (In[Jn + 1] = _[1]), - (In[Jn + 2] = _[2]), - (In[Jn + 3] = _[3]), - (In[Jn + 4] = _[4]), - (In[Jn + 5] = _[5]), - (In[Jn + 6] = _[6]), - (In[Jn + 7] = _[7]) - } - function en(gn, In, Jn) { - ;(o[0] = gn), - (In[Jn] = _[7]), - (In[Jn + 1] = _[6]), - (In[Jn + 2] = _[5]), - (In[Jn + 3] = _[4]), - (In[Jn + 4] = _[3]), - (In[Jn + 5] = _[2]), - (In[Jn + 6] = _[1]), - (In[Jn + 7] = _[0]) - } - ;(e.writeDoubleLE = b ? $ : en), (e.writeDoubleBE = b ? en : $) - function nn(gn, In) { - return ( - (_[0] = gn[In]), - (_[1] = gn[In + 1]), - (_[2] = gn[In + 2]), - (_[3] = gn[In + 3]), - (_[4] = gn[In + 4]), - (_[5] = gn[In + 5]), - (_[6] = gn[In + 6]), - (_[7] = gn[In + 7]), - o[0] - ) - } - function sn(gn, In) { - return ( - (_[7] = gn[In]), - (_[6] = gn[In + 1]), - (_[5] = gn[In + 2]), - (_[4] = gn[In + 3]), - (_[3] = gn[In + 4]), - (_[2] = gn[In + 5]), - (_[1] = gn[In + 6]), - (_[0] = gn[In + 7]), - o[0] - ) - } - ;(e.readDoubleLE = b ? nn : sn), (e.readDoubleBE = b ? sn : nn) - })() - : (function () { - function o(b, $, en, nn, sn, gn) { - var In = nn < 0 ? 1 : 0 - if ((In && (nn = -nn), nn === 0)) - b(0, sn, gn + $), b(1 / nn > 0 ? 0 : 2147483648, sn, gn + en) - else if (isNaN(nn)) b(0, sn, gn + $), b(2146959360, sn, gn + en) - else if (nn > 17976931348623157e292) - b(0, sn, gn + $), b(((In << 31) | 2146435072) >>> 0, sn, gn + en) - else { - var Jn - if (nn < 22250738585072014e-324) - (Jn = nn / 5e-324), - b(Jn >>> 0, sn, gn + $), - b(((In << 31) | (Jn / 4294967296)) >>> 0, sn, gn + en) - else { - var qn = Math.floor(Math.log(nn) / Math.LN2) - qn === 1024 && (qn = 1023), - (Jn = nn * Math.pow(2, -qn)), - b((Jn * 4503599627370496) >>> 0, sn, gn + $), - b( - ((In << 31) | ((qn + 1023) << 20) | ((Jn * 1048576) & 1048575)) >>> 0, - sn, - gn + en, - ) - } - } - } - ;(e.writeDoubleLE = o.bind(null, writeUintLE, 0, 4)), - (e.writeDoubleBE = o.bind(null, writeUintBE, 4, 0)) - function _(b, $, en, nn, sn) { - var gn = b(nn, sn + $), - In = b(nn, sn + en), - Jn = (In >> 31) * 2 + 1, - qn = (In >>> 20) & 2047, - Kn = 4294967296 * (In & 1048575) + gn - return qn === 2047 - ? Kn - ? NaN - : Jn * (1 / 0) - : qn === 0 - ? Jn * 5e-324 * Kn - : Jn * Math.pow(2, qn - 1075) * (Kn + 4503599627370496) - } - ;(e.readDoubleLE = _.bind(null, readUintLE, 0, 4)), - (e.readDoubleBE = _.bind(null, readUintBE, 4, 0)) - })(), - e - ) -} -function writeUintLE(e, o, _) { - ;(o[_] = e & 255), - (o[_ + 1] = (e >>> 8) & 255), - (o[_ + 2] = (e >>> 16) & 255), - (o[_ + 3] = e >>> 24) -} -function writeUintBE(e, o, _) { - ;(o[_] = e >>> 24), - (o[_ + 1] = (e >>> 16) & 255), - (o[_ + 2] = (e >>> 8) & 255), - (o[_ + 3] = e & 255) -} -function readUintLE(e, o) { - return (e[o] | (e[o + 1] << 8) | (e[o + 2] << 16) | (e[o + 3] << 24)) >>> 0 -} -function readUintBE(e, o) { - return ((e[o] << 24) | (e[o + 1] << 16) | (e[o + 2] << 8) | e[o + 3]) >>> 0 -} -var inquire_1 = inquire -function inquire(moduleName) { - try { - var mod = eval('quire'.replace(/^/, 're'))(moduleName) - if (mod && (mod.length || Object.keys(mod).length)) return mod - } catch (e) {} - return null -} -var utf8$2 = {} -;(function (e) { - var o = e - ;(o.length = function (b) { - for (var $ = 0, en = 0, nn = 0; nn < b.length; ++nn) - (en = b.charCodeAt(nn)), - en < 128 - ? ($ += 1) - : en < 2048 - ? ($ += 2) - : (en & 64512) === 55296 && (b.charCodeAt(nn + 1) & 64512) === 56320 - ? (++nn, ($ += 4)) - : ($ += 3) - return $ - }), - (o.read = function (b, $, en) { - var nn = en - $ - if (nn < 1) return '' - for (var sn = null, gn = [], In = 0, Jn; $ < en; ) - (Jn = b[$++]), - Jn < 128 - ? (gn[In++] = Jn) - : Jn > 191 && Jn < 224 - ? (gn[In++] = ((Jn & 31) << 6) | (b[$++] & 63)) - : Jn > 239 && Jn < 365 - ? ((Jn = - (((Jn & 7) << 18) | ((b[$++] & 63) << 12) | ((b[$++] & 63) << 6) | (b[$++] & 63)) - - 65536), - (gn[In++] = 55296 + (Jn >> 10)), - (gn[In++] = 56320 + (Jn & 1023))) - : (gn[In++] = ((Jn & 15) << 12) | ((b[$++] & 63) << 6) | (b[$++] & 63)), - In > 8191 && ((sn || (sn = [])).push(String.fromCharCode.apply(String, gn)), (In = 0)) - return sn - ? (In && sn.push(String.fromCharCode.apply(String, gn.slice(0, In))), sn.join('')) - : String.fromCharCode.apply(String, gn.slice(0, In)) - }), - (o.write = function (b, $, en) { - for (var nn = en, sn, gn, In = 0; In < b.length; ++In) - (sn = b.charCodeAt(In)), - sn < 128 - ? ($[en++] = sn) - : sn < 2048 - ? (($[en++] = (sn >> 6) | 192), ($[en++] = (sn & 63) | 128)) - : (sn & 64512) === 55296 && ((gn = b.charCodeAt(In + 1)) & 64512) === 56320 - ? ((sn = 65536 + ((sn & 1023) << 10) + (gn & 1023)), - ++In, - ($[en++] = (sn >> 18) | 240), - ($[en++] = ((sn >> 12) & 63) | 128), - ($[en++] = ((sn >> 6) & 63) | 128), - ($[en++] = (sn & 63) | 128)) - : (($[en++] = (sn >> 12) | 224), - ($[en++] = ((sn >> 6) & 63) | 128), - ($[en++] = (sn & 63) | 128)) - return en - nn - }) -})(utf8$2) -var pool_1 = pool -function pool(e, o, _) { - var b = _ || 8192, - $ = b >>> 1, - en = null, - nn = b - return function (gn) { - if (gn < 1 || gn > $) return e(gn) - nn + gn > b && ((en = e(b)), (nn = 0)) - var In = o.call(en, nn, (nn += gn)) - return nn & 7 && (nn = (nn | 7) + 1), In - } -} -var longbits, hasRequiredLongbits -function requireLongbits() { - if (hasRequiredLongbits) return longbits - ;(hasRequiredLongbits = 1), (longbits = o) - var e = requireMinimal() - function o(en, nn) { - ;(this.lo = en >>> 0), (this.hi = nn >>> 0) - } - var _ = (o.zero = new o(0, 0)) - ;(_.toNumber = function () { - return 0 - }), - (_.zzEncode = _.zzDecode = - function () { - return this - }), - (_.length = function () { - return 1 - }) - var b = (o.zeroHash = '\0\0\0\0\0\0\0\0') - ;(o.fromNumber = function (nn) { - if (nn === 0) return _ - var sn = nn < 0 - sn && (nn = -nn) - var gn = nn >>> 0, - In = ((nn - gn) / 4294967296) >>> 0 - return ( - sn && - ((In = ~In >>> 0), - (gn = ~gn >>> 0), - ++gn > 4294967295 && ((gn = 0), ++In > 4294967295 && (In = 0))), - new o(gn, In) - ) - }), - (o.from = function (nn) { - if (typeof nn == 'number') return o.fromNumber(nn) - if (e.isString(nn)) - if (e.Long) nn = e.Long.fromString(nn) - else return o.fromNumber(parseInt(nn, 10)) - return nn.low || nn.high ? new o(nn.low >>> 0, nn.high >>> 0) : _ - }), - (o.prototype.toNumber = function (nn) { - if (!nn && this.hi >>> 31) { - var sn = (~this.lo + 1) >>> 0, - gn = ~this.hi >>> 0 - return sn || (gn = (gn + 1) >>> 0), -(sn + gn * 4294967296) - } - return this.lo + this.hi * 4294967296 - }), - (o.prototype.toLong = function (nn) { - return e.Long - ? new e.Long(this.lo | 0, this.hi | 0, Boolean(nn)) - : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(nn) } - }) - var $ = String.prototype.charCodeAt - return ( - (o.fromHash = function (nn) { - return nn === b - ? _ - : new o( - ($.call(nn, 0) | - ($.call(nn, 1) << 8) | - ($.call(nn, 2) << 16) | - ($.call(nn, 3) << 24)) >>> - 0, - ($.call(nn, 4) | - ($.call(nn, 5) << 8) | - ($.call(nn, 6) << 16) | - ($.call(nn, 7) << 24)) >>> - 0, - ) - }), - (o.prototype.toHash = function () { - return String.fromCharCode( - this.lo & 255, - (this.lo >>> 8) & 255, - (this.lo >>> 16) & 255, - this.lo >>> 24, - this.hi & 255, - (this.hi >>> 8) & 255, - (this.hi >>> 16) & 255, - this.hi >>> 24, - ) - }), - (o.prototype.zzEncode = function () { - var nn = this.hi >> 31 - return ( - (this.hi = (((this.hi << 1) | (this.lo >>> 31)) ^ nn) >>> 0), - (this.lo = ((this.lo << 1) ^ nn) >>> 0), - this - ) - }), - (o.prototype.zzDecode = function () { - var nn = -(this.lo & 1) - return ( - (this.lo = (((this.lo >>> 1) | (this.hi << 31)) ^ nn) >>> 0), - (this.hi = ((this.hi >>> 1) ^ nn) >>> 0), - this - ) - }), - (o.prototype.length = function () { - var nn = this.lo, - sn = ((this.lo >>> 28) | (this.hi << 4)) >>> 0, - gn = this.hi >>> 24 - return gn === 0 - ? sn === 0 - ? nn < 16384 - ? nn < 128 - ? 1 - : 2 - : nn < 2097152 - ? 3 - : 4 - : sn < 16384 - ? sn < 128 - ? 5 - : 6 - : sn < 2097152 - ? 7 - : 8 - : gn < 128 - ? 9 - : 10 - }), - longbits - ) -} -var hasRequiredMinimal -function requireMinimal() { - return ( - hasRequiredMinimal || - ((hasRequiredMinimal = 1), - (function (e) { - var o = e - ;(o.asPromise = aspromise), - (o.base64 = base64$1), - (o.EventEmitter = eventemitter), - (o.float = float), - (o.inquire = inquire_1), - (o.utf8 = utf8$2), - (o.pool = pool_1), - (o.LongBits = requireLongbits()), - (o.isNode = Boolean( - typeof commonjsGlobal < 'u' && - commonjsGlobal && - commonjsGlobal.process && - commonjsGlobal.process.versions && - commonjsGlobal.process.versions.node, - )), - (o.global = - (o.isNode && commonjsGlobal) || - (typeof window < 'u' && window) || - (typeof self < 'u' && self) || - commonjsGlobal), - (o.emptyArray = Object.freeze ? Object.freeze([]) : []), - (o.emptyObject = Object.freeze ? Object.freeze({}) : {}), - (o.isInteger = - Number.isInteger || - function (en) { - return typeof en == 'number' && isFinite(en) && Math.floor(en) === en - }), - (o.isString = function (en) { - return typeof en == 'string' || en instanceof String - }), - (o.isObject = function (en) { - return en && typeof en == 'object' - }), - (o.isset = o.isSet = - function (en, nn) { - var sn = en[nn] - return sn != null && en.hasOwnProperty(nn) - ? typeof sn != 'object' || - (Array.isArray(sn) ? sn.length : Object.keys(sn).length) > 0 - : !1 - }), - (o.Buffer = (function () { - try { - var $ = o.inquire('buffer').Buffer - return $.prototype.utf8Write ? $ : null - } catch { - return null - } - })()), - (o._Buffer_from = null), - (o._Buffer_allocUnsafe = null), - (o.newBuffer = function (en) { - return typeof en == 'number' - ? o.Buffer - ? o._Buffer_allocUnsafe(en) - : new o.Array(en) - : o.Buffer - ? o._Buffer_from(en) - : typeof Uint8Array > 'u' - ? en - : new Uint8Array(en) - }), - (o.Array = typeof Uint8Array < 'u' ? Uint8Array : Array), - (o.Long = - (o.global.dcodeIO && o.global.dcodeIO.Long) || o.global.Long || o.inquire('long')), - (o.key2Re = /^true|false|0|1$/), - (o.key32Re = /^-?(?:0|[1-9][0-9]*)$/), - (o.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/), - (o.longToHash = function (en) { - return en ? o.LongBits.from(en).toHash() : o.LongBits.zeroHash - }), - (o.longFromHash = function (en, nn) { - var sn = o.LongBits.fromHash(en) - return o.Long ? o.Long.fromBits(sn.lo, sn.hi, nn) : sn.toNumber(Boolean(nn)) - }) - function _($, en, nn) { - for (var sn = Object.keys(en), gn = 0; gn < sn.length; ++gn) - ($[sn[gn]] === void 0 || !nn) && ($[sn[gn]] = en[sn[gn]]) - return $ - } - ;(o.merge = _), - (o.lcFirst = function (en) { - return en.charAt(0).toLowerCase() + en.substring(1) - }) - function b($) { - function en(nn, sn) { - if (!(this instanceof en)) return new en(nn, sn) - Object.defineProperty(this, 'message', { - get: function () { - return nn - }, - }), - Error.captureStackTrace - ? Error.captureStackTrace(this, en) - : Object.defineProperty(this, 'stack', { value: new Error().stack || '' }), - sn && _(this, sn) - } - return ( - ((en.prototype = Object.create(Error.prototype)).constructor = en), - Object.defineProperty(en.prototype, 'name', { - get: function () { - return $ - }, - }), - (en.prototype.toString = function () { - return this.name + ': ' + this.message - }), - en - ) - } - ;(o.newError = b), - (o.ProtocolError = b('ProtocolError')), - (o.oneOfGetter = function (en) { - for (var nn = {}, sn = 0; sn < en.length; ++sn) nn[en[sn]] = 1 - return function () { - for (var gn = Object.keys(this), In = gn.length - 1; In > -1; --In) - if (nn[gn[In]] === 1 && this[gn[In]] !== void 0 && this[gn[In]] !== null) - return gn[In] - } - }), - (o.oneOfSetter = function (en) { - return function (nn) { - for (var sn = 0; sn < en.length; ++sn) en[sn] !== nn && delete this[en[sn]] - } - }), - (o.toJSONOptions = { longs: String, enums: String, bytes: String, json: !0 }), - (o._configure = function () { - var $ = o.Buffer - if (!$) { - o._Buffer_from = o._Buffer_allocUnsafe = null - return - } - ;(o._Buffer_from = - ($.from !== Uint8Array.from && $.from) || - function (nn, sn) { - return new $(nn, sn) - }), - (o._Buffer_allocUnsafe = - $.allocUnsafe || - function (nn) { - return new $(nn) - }) - }) - })(minimal)), - minimal - ) -} -var writer = Writer$1, - util$4 = requireMinimal(), - BufferWriter$1, - LongBits$1 = util$4.LongBits, - base64 = util$4.base64, - utf8$1 = util$4.utf8 -function Op(e, o, _) { - ;(this.fn = e), (this.len = o), (this.next = void 0), (this.val = _) -} -function noop$1() {} -function State(e) { - ;(this.head = e.head), (this.tail = e.tail), (this.len = e.len), (this.next = e.states) -} -function Writer$1() { - ;(this.len = 0), (this.head = new Op(noop$1, 0, 0)), (this.tail = this.head), (this.states = null) -} -var create$1 = function e() { - return util$4.Buffer - ? function () { - return (Writer$1.create = function () { - return new BufferWriter$1() - })() - } - : function () { - return new Writer$1() - } -} -Writer$1.create = create$1() -Writer$1.alloc = function e(o) { - return new util$4.Array(o) -} -util$4.Array !== Array && - (Writer$1.alloc = util$4.pool(Writer$1.alloc, util$4.Array.prototype.subarray)) -Writer$1.prototype._push = function e(o, _, b) { - return (this.tail = this.tail.next = new Op(o, _, b)), (this.len += _), this -} -function writeByte(e, o, _) { - o[_] = e & 255 -} -function writeVarint32(e, o, _) { - for (; e > 127; ) (o[_++] = (e & 127) | 128), (e >>>= 7) - o[_] = e -} -function VarintOp(e, o) { - ;(this.len = e), (this.next = void 0), (this.val = o) -} -VarintOp.prototype = Object.create(Op.prototype) -VarintOp.prototype.fn = writeVarint32 -Writer$1.prototype.uint32 = function e(o) { - return ( - (this.len += (this.tail = this.tail.next = - new VarintOp( - (o = o >>> 0) < 128 ? 1 : o < 16384 ? 2 : o < 2097152 ? 3 : o < 268435456 ? 4 : 5, - o, - )).len), - this - ) -} -Writer$1.prototype.int32 = function e(o) { - return o < 0 ? this._push(writeVarint64, 10, LongBits$1.fromNumber(o)) : this.uint32(o) -} -Writer$1.prototype.sint32 = function e(o) { - return this.uint32(((o << 1) ^ (o >> 31)) >>> 0) -} -function writeVarint64(e, o, _) { - for (; e.hi; ) - (o[_++] = (e.lo & 127) | 128), (e.lo = ((e.lo >>> 7) | (e.hi << 25)) >>> 0), (e.hi >>>= 7) - for (; e.lo > 127; ) (o[_++] = (e.lo & 127) | 128), (e.lo = e.lo >>> 7) - o[_++] = e.lo -} -Writer$1.prototype.uint64 = function e(o) { - var _ = LongBits$1.from(o) - return this._push(writeVarint64, _.length(), _) -} -Writer$1.prototype.int64 = Writer$1.prototype.uint64 -Writer$1.prototype.sint64 = function e(o) { - var _ = LongBits$1.from(o).zzEncode() - return this._push(writeVarint64, _.length(), _) -} -Writer$1.prototype.bool = function e(o) { - return this._push(writeByte, 1, o ? 1 : 0) -} -function writeFixed32(e, o, _) { - ;(o[_] = e & 255), - (o[_ + 1] = (e >>> 8) & 255), - (o[_ + 2] = (e >>> 16) & 255), - (o[_ + 3] = e >>> 24) -} -Writer$1.prototype.fixed32 = function e(o) { - return this._push(writeFixed32, 4, o >>> 0) -} -Writer$1.prototype.sfixed32 = Writer$1.prototype.fixed32 -Writer$1.prototype.fixed64 = function e(o) { - var _ = LongBits$1.from(o) - return this._push(writeFixed32, 4, _.lo)._push(writeFixed32, 4, _.hi) -} -Writer$1.prototype.sfixed64 = Writer$1.prototype.fixed64 -Writer$1.prototype.float = function e(o) { - return this._push(util$4.float.writeFloatLE, 4, o) -} -Writer$1.prototype.double = function e(o) { - return this._push(util$4.float.writeDoubleLE, 8, o) -} -var writeBytes = util$4.Array.prototype.set - ? function e(o, _, b) { - _.set(o, b) - } - : function e(o, _, b) { - for (var $ = 0; $ < o.length; ++$) _[b + $] = o[$] - } -Writer$1.prototype.bytes = function e(o) { - var _ = o.length >>> 0 - if (!_) return this._push(writeByte, 1, 0) - if (util$4.isString(o)) { - var b = Writer$1.alloc((_ = base64.length(o))) - base64.decode(o, b, 0), (o = b) - } - return this.uint32(_)._push(writeBytes, _, o) -} -Writer$1.prototype.string = function e(o) { - var _ = utf8$1.length(o) - return _ ? this.uint32(_)._push(utf8$1.write, _, o) : this._push(writeByte, 1, 0) -} -Writer$1.prototype.fork = function e() { - return ( - (this.states = new State(this)), - (this.head = this.tail = new Op(noop$1, 0, 0)), - (this.len = 0), - this - ) -} -Writer$1.prototype.reset = function e() { - return ( - this.states - ? ((this.head = this.states.head), - (this.tail = this.states.tail), - (this.len = this.states.len), - (this.states = this.states.next)) - : ((this.head = this.tail = new Op(noop$1, 0, 0)), (this.len = 0)), - this - ) -} -Writer$1.prototype.ldelim = function e() { - var o = this.head, - _ = this.tail, - b = this.len - return ( - this.reset().uint32(b), b && ((this.tail.next = o.next), (this.tail = _), (this.len += b)), this - ) -} -Writer$1.prototype.finish = function e() { - for (var o = this.head.next, _ = this.constructor.alloc(this.len), b = 0; o; ) - o.fn(o.val, _, b), (b += o.len), (o = o.next) - return _ -} -Writer$1._configure = function (e) { - ;(BufferWriter$1 = e), (Writer$1.create = create$1()), BufferWriter$1._configure() -} -var writer_buffer = BufferWriter, - Writer = writer -;(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter -var util$3 = requireMinimal() -function BufferWriter() { - Writer.call(this) -} -BufferWriter._configure = function () { - ;(BufferWriter.alloc = util$3._Buffer_allocUnsafe), - (BufferWriter.writeBytesBuffer = - util$3.Buffer && - util$3.Buffer.prototype instanceof Uint8Array && - util$3.Buffer.prototype.set.name === 'set' - ? function (o, _, b) { - _.set(o, b) - } - : function (o, _, b) { - if (o.copy) o.copy(_, b, 0, o.length) - else for (var $ = 0; $ < o.length; ) _[b++] = o[$++] - }) -} -BufferWriter.prototype.bytes = function e(o) { - util$3.isString(o) && (o = util$3._Buffer_from(o, 'base64')) - var _ = o.length >>> 0 - return this.uint32(_), _ && this._push(BufferWriter.writeBytesBuffer, _, o), this -} -function writeStringBuffer(e, o, _) { - e.length < 40 ? util$3.utf8.write(e, o, _) : o.utf8Write ? o.utf8Write(e, _) : o.write(e, _) -} -BufferWriter.prototype.string = function e(o) { - var _ = util$3.Buffer.byteLength(o) - return this.uint32(_), _ && this._push(writeStringBuffer, _, o), this -} -BufferWriter._configure() -var reader = Reader$1, - util$2 = requireMinimal(), - BufferReader$1, - LongBits = util$2.LongBits, - utf8 = util$2.utf8 -function indexOutOfRange(e, o) { - return RangeError('index out of range: ' + e.pos + ' + ' + (o || 1) + ' > ' + e.len) -} -function Reader$1(e) { - ;(this.buf = e), (this.pos = 0), (this.len = e.length) -} -var create_array = - typeof Uint8Array < 'u' - ? function e(o) { - if (o instanceof Uint8Array || Array.isArray(o)) return new Reader$1(o) - throw Error('illegal buffer') - } - : function e(o) { - if (Array.isArray(o)) return new Reader$1(o) - throw Error('illegal buffer') - }, - create = function e() { - return util$2.Buffer - ? function (_) { - return (Reader$1.create = function ($) { - return util$2.Buffer.isBuffer($) ? new BufferReader$1($) : create_array($) - })(_) - } - : create_array - } -Reader$1.create = create() -Reader$1.prototype._slice = util$2.Array.prototype.subarray || util$2.Array.prototype.slice -Reader$1.prototype.uint32 = (function e() { - var o = 4294967295 - return function () { - if ( - ((o = (this.buf[this.pos] & 127) >>> 0), - this.buf[this.pos++] < 128 || - ((o = (o | ((this.buf[this.pos] & 127) << 7)) >>> 0), this.buf[this.pos++] < 128) || - ((o = (o | ((this.buf[this.pos] & 127) << 14)) >>> 0), this.buf[this.pos++] < 128) || - ((o = (o | ((this.buf[this.pos] & 127) << 21)) >>> 0), this.buf[this.pos++] < 128) || - ((o = (o | ((this.buf[this.pos] & 15) << 28)) >>> 0), this.buf[this.pos++] < 128)) - ) - return o - if ((this.pos += 5) > this.len) throw ((this.pos = this.len), indexOutOfRange(this, 10)) - return o - } -})() -Reader$1.prototype.int32 = function e() { - return this.uint32() | 0 -} -Reader$1.prototype.sint32 = function e() { - var o = this.uint32() - return ((o >>> 1) ^ -(o & 1)) | 0 -} -function readLongVarint() { - var e = new LongBits(0, 0), - o = 0 - if (this.len - this.pos > 4) { - for (; o < 4; ++o) - if ( - ((e.lo = (e.lo | ((this.buf[this.pos] & 127) << (o * 7))) >>> 0), - this.buf[this.pos++] < 128) - ) - return e - if ( - ((e.lo = (e.lo | ((this.buf[this.pos] & 127) << 28)) >>> 0), - (e.hi = (e.hi | ((this.buf[this.pos] & 127) >> 4)) >>> 0), - this.buf[this.pos++] < 128) - ) - return e - o = 0 - } else { - for (; o < 3; ++o) { - if (this.pos >= this.len) throw indexOutOfRange(this) - if ( - ((e.lo = (e.lo | ((this.buf[this.pos] & 127) << (o * 7))) >>> 0), - this.buf[this.pos++] < 128) - ) - return e - } - return (e.lo = (e.lo | ((this.buf[this.pos++] & 127) << (o * 7))) >>> 0), e - } - if (this.len - this.pos > 4) { - for (; o < 5; ++o) - if ( - ((e.hi = (e.hi | ((this.buf[this.pos] & 127) << (o * 7 + 3))) >>> 0), - this.buf[this.pos++] < 128) - ) - return e - } else - for (; o < 5; ++o) { - if (this.pos >= this.len) throw indexOutOfRange(this) - if ( - ((e.hi = (e.hi | ((this.buf[this.pos] & 127) << (o * 7 + 3))) >>> 0), - this.buf[this.pos++] < 128) - ) - return e - } - throw Error('invalid varint encoding') -} -Reader$1.prototype.bool = function e() { - return this.uint32() !== 0 -} -function readFixed32_end(e, o) { - return (e[o - 4] | (e[o - 3] << 8) | (e[o - 2] << 16) | (e[o - 1] << 24)) >>> 0 -} -Reader$1.prototype.fixed32 = function e() { - if (this.pos + 4 > this.len) throw indexOutOfRange(this, 4) - return readFixed32_end(this.buf, (this.pos += 4)) -} -Reader$1.prototype.sfixed32 = function e() { - if (this.pos + 4 > this.len) throw indexOutOfRange(this, 4) - return readFixed32_end(this.buf, (this.pos += 4)) | 0 -} -function readFixed64() { - if (this.pos + 8 > this.len) throw indexOutOfRange(this, 8) - return new LongBits( - readFixed32_end(this.buf, (this.pos += 4)), - readFixed32_end(this.buf, (this.pos += 4)), - ) -} -Reader$1.prototype.float = function e() { - if (this.pos + 4 > this.len) throw indexOutOfRange(this, 4) - var o = util$2.float.readFloatLE(this.buf, this.pos) - return (this.pos += 4), o -} -Reader$1.prototype.double = function e() { - if (this.pos + 8 > this.len) throw indexOutOfRange(this, 4) - var o = util$2.float.readDoubleLE(this.buf, this.pos) - return (this.pos += 8), o -} -Reader$1.prototype.bytes = function e() { - var o = this.uint32(), - _ = this.pos, - b = this.pos + o - if (b > this.len) throw indexOutOfRange(this, o) - return ( - (this.pos += o), - Array.isArray(this.buf) - ? this.buf.slice(_, b) - : _ === b - ? new this.buf.constructor(0) - : this._slice.call(this.buf, _, b) - ) -} -Reader$1.prototype.string = function e() { - var o = this.bytes() - return utf8.read(o, 0, o.length) -} -Reader$1.prototype.skip = function e(o) { - if (typeof o == 'number') { - if (this.pos + o > this.len) throw indexOutOfRange(this, o) - this.pos += o - } else - do if (this.pos >= this.len) throw indexOutOfRange(this) - while (this.buf[this.pos++] & 128) - return this -} -Reader$1.prototype.skipType = function (e) { - switch (e) { - case 0: - this.skip() - break - case 1: - this.skip(8) - break - case 2: - this.skip(this.uint32()) - break - case 3: - for (; (e = this.uint32() & 7) !== 4; ) this.skipType(e) - break - case 5: - this.skip(4) - break - default: - throw Error('invalid wire type ' + e + ' at offset ' + this.pos) - } - return this -} -Reader$1._configure = function (e) { - ;(BufferReader$1 = e), (Reader$1.create = create()), BufferReader$1._configure() - var o = util$2.Long ? 'toLong' : 'toNumber' - util$2.merge(Reader$1.prototype, { - int64: function () { - return readLongVarint.call(this)[o](!1) - }, - uint64: function () { - return readLongVarint.call(this)[o](!0) - }, - sint64: function () { - return readLongVarint.call(this).zzDecode()[o](!1) - }, - fixed64: function () { - return readFixed64.call(this)[o](!0) - }, - sfixed64: function () { - return readFixed64.call(this)[o](!1) - }, - }) -} -var reader_buffer = BufferReader, - Reader = reader -;(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader -var util$1 = requireMinimal() -function BufferReader(e) { - Reader.call(this, e) -} -BufferReader._configure = function () { - util$1.Buffer && (BufferReader.prototype._slice = util$1.Buffer.prototype.slice) -} -BufferReader.prototype.string = function e() { - var o = this.uint32() - return this.buf.utf8Slice - ? this.buf.utf8Slice(this.pos, (this.pos = Math.min(this.pos + o, this.len))) - : this.buf.toString('utf-8', this.pos, (this.pos = Math.min(this.pos + o, this.len))) -} -BufferReader._configure() -var rpc = {}, - service$1 = Service, - util = requireMinimal() -;(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service -function Service(e, o, _) { - if (typeof e != 'function') throw TypeError('rpcImpl must be a function') - util.EventEmitter.call(this), - (this.rpcImpl = e), - (this.requestDelimited = Boolean(o)), - (this.responseDelimited = Boolean(_)) -} -Service.prototype.rpcCall = function e(o, _, b, $, en) { - if (!$) throw TypeError('request must be specified') - var nn = this - if (!en) return util.asPromise(e, nn, o, _, b, $) - if (!nn.rpcImpl) { - setTimeout(function () { - en(Error('already ended')) - }, 0) - return - } - try { - return nn.rpcImpl( - o, - _[nn.requestDelimited ? 'encodeDelimited' : 'encode']($).finish(), - function (gn, In) { - if (gn) return nn.emit('error', gn, o), en(gn) - if (In === null) { - nn.end(!0) - return - } - if (!(In instanceof b)) - try { - In = b[nn.responseDelimited ? 'decodeDelimited' : 'decode'](In) - } catch (Jn) { - return nn.emit('error', Jn, o), en(Jn) - } - return nn.emit('data', In, o), en(null, In) - }, - ) - } catch (sn) { - nn.emit('error', sn, o), - setTimeout(function () { - en(sn) - }, 0) - return - } -} -Service.prototype.end = function e(o) { - return ( - this.rpcImpl && - (o || this.rpcImpl(null, null, null), (this.rpcImpl = null), this.emit('end').off()), - this - ) -} -;(function (e) { - var o = e - o.Service = service$1 -})(rpc) -var roots = {} -;(function (e) { - var o = e - ;(o.build = 'minimal'), - (o.Writer = writer), - (o.BufferWriter = writer_buffer), - (o.Reader = reader), - (o.BufferReader = reader_buffer), - (o.util = requireMinimal()), - (o.rpc = rpc), - (o.roots = roots), - (o.configure = _) - function _() { - o.util._configure(), o.Writer._configure(o.BufferWriter), o.Reader._configure(o.BufferReader) - } - _() -})(indexMinimal) -;(function (e) { - e.exports = indexMinimal -})(minimal$1) -var helpers = {}, - long$3 = Long$3, - wasm$3 = null -try { - wasm$3 = new WebAssembly.Instance( - new WebAssembly.Module( - new Uint8Array([ - 0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, - 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, - 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, - 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, - 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, - 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, - 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, - ]), - ), - {}, - ).exports -} catch (e) {} -function Long$3(e, o, _) { - ;(this.low = e | 0), (this.high = o | 0), (this.unsigned = !!_) -} -Long$3.prototype.__isLong__ -Object.defineProperty(Long$3.prototype, '__isLong__', { value: !0 }) -function isLong$3(e) { - return (e && e.__isLong__) === !0 -} -Long$3.isLong = isLong$3 -var INT_CACHE$3 = {}, - UINT_CACHE$3 = {} -function fromInt$3(e, o) { - var _, b, $ - return o - ? ((e >>>= 0), - ($ = 0 <= e && e < 256) && ((b = UINT_CACHE$3[e]), b) - ? b - : ((_ = fromBits$3(e, (e | 0) < 0 ? -1 : 0, !0)), $ && (UINT_CACHE$3[e] = _), _)) - : ((e |= 0), - ($ = -128 <= e && e < 128) && ((b = INT_CACHE$3[e]), b) - ? b - : ((_ = fromBits$3(e, e < 0 ? -1 : 0, !1)), $ && (INT_CACHE$3[e] = _), _)) -} -Long$3.fromInt = fromInt$3 -function fromNumber$3(e, o) { - if (isNaN(e)) return o ? UZERO$3 : ZERO$3 - if (o) { - if (e < 0) return UZERO$3 - if (e >= TWO_PWR_64_DBL$3) return MAX_UNSIGNED_VALUE$3 - } else { - if (e <= -TWO_PWR_63_DBL$3) return MIN_VALUE$3 - if (e + 1 >= TWO_PWR_63_DBL$3) return MAX_VALUE$3 - } - return e < 0 - ? fromNumber$3(-e, o).neg() - : fromBits$3(e % TWO_PWR_32_DBL$3 | 0, (e / TWO_PWR_32_DBL$3) | 0, o) -} -Long$3.fromNumber = fromNumber$3 -function fromBits$3(e, o, _) { - return new Long$3(e, o, _) -} -Long$3.fromBits = fromBits$3 -var pow_dbl$3 = Math.pow -function fromString$3(e, o, _) { - if (e.length === 0) throw Error('empty string') - if (e === 'NaN' || e === 'Infinity' || e === '+Infinity' || e === '-Infinity') return ZERO$3 - if ((typeof o == 'number' ? ((_ = o), (o = !1)) : (o = !!o), (_ = _ || 10), _ < 2 || 36 < _)) - throw RangeError('radix') - var b - if ((b = e.indexOf('-')) > 0) throw Error('interior hyphen') - if (b === 0) return fromString$3(e.substring(1), o, _).neg() - for (var $ = fromNumber$3(pow_dbl$3(_, 8)), en = ZERO$3, nn = 0; nn < e.length; nn += 8) { - var sn = Math.min(8, e.length - nn), - gn = parseInt(e.substring(nn, nn + sn), _) - if (sn < 8) { - var In = fromNumber$3(pow_dbl$3(_, sn)) - en = en.mul(In).add(fromNumber$3(gn)) - } else (en = en.mul($)), (en = en.add(fromNumber$3(gn))) - } - return (en.unsigned = o), en -} -Long$3.fromString = fromString$3 -function fromValue$3(e, o) { - return typeof e == 'number' - ? fromNumber$3(e, o) - : typeof e == 'string' - ? fromString$3(e, o) - : fromBits$3(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) -} -Long$3.fromValue = fromValue$3 -var TWO_PWR_16_DBL$3 = 1 << 16, - TWO_PWR_24_DBL$3 = 1 << 24, - TWO_PWR_32_DBL$3 = TWO_PWR_16_DBL$3 * TWO_PWR_16_DBL$3, - TWO_PWR_64_DBL$3 = TWO_PWR_32_DBL$3 * TWO_PWR_32_DBL$3, - TWO_PWR_63_DBL$3 = TWO_PWR_64_DBL$3 / 2, - TWO_PWR_24$3 = fromInt$3(TWO_PWR_24_DBL$3), - ZERO$3 = fromInt$3(0) -Long$3.ZERO = ZERO$3 -var UZERO$3 = fromInt$3(0, !0) -Long$3.UZERO = UZERO$3 -var ONE$3 = fromInt$3(1) -Long$3.ONE = ONE$3 -var UONE$3 = fromInt$3(1, !0) -Long$3.UONE = UONE$3 -var NEG_ONE$3 = fromInt$3(-1) -Long$3.NEG_ONE = NEG_ONE$3 -var MAX_VALUE$3 = fromBits$3(-1, 2147483647, !1) -Long$3.MAX_VALUE = MAX_VALUE$3 -var MAX_UNSIGNED_VALUE$3 = fromBits$3(-1, -1, !0) -Long$3.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE$3 -var MIN_VALUE$3 = fromBits$3(0, -2147483648, !1) -Long$3.MIN_VALUE = MIN_VALUE$3 -var LongPrototype$3 = Long$3.prototype -LongPrototype$3.toInt = function e() { - return this.unsigned ? this.low >>> 0 : this.low -} -LongPrototype$3.toNumber = function e() { - return this.unsigned - ? (this.high >>> 0) * TWO_PWR_32_DBL$3 + (this.low >>> 0) - : this.high * TWO_PWR_32_DBL$3 + (this.low >>> 0) -} -LongPrototype$3.toString = function e(o) { - if (((o = o || 10), o < 2 || 36 < o)) throw RangeError('radix') - if (this.isZero()) return '0' - if (this.isNegative()) - if (this.eq(MIN_VALUE$3)) { - var _ = fromNumber$3(o), - b = this.div(_), - $ = b.mul(_).sub(this) - return b.toString(o) + $.toInt().toString(o) - } else return '-' + this.neg().toString(o) - for (var en = fromNumber$3(pow_dbl$3(o, 6), this.unsigned), nn = this, sn = ''; ; ) { - var gn = nn.div(en), - In = nn.sub(gn.mul(en)).toInt() >>> 0, - Jn = In.toString(o) - if (((nn = gn), nn.isZero())) return Jn + sn - for (; Jn.length < 6; ) Jn = '0' + Jn - sn = '' + Jn + sn - } -} -LongPrototype$3.getHighBits = function e() { - return this.high -} -LongPrototype$3.getHighBitsUnsigned = function e() { - return this.high >>> 0 -} -LongPrototype$3.getLowBits = function e() { - return this.low -} -LongPrototype$3.getLowBitsUnsigned = function e() { - return this.low >>> 0 -} -LongPrototype$3.getNumBitsAbs = function e() { - if (this.isNegative()) return this.eq(MIN_VALUE$3) ? 64 : this.neg().getNumBitsAbs() - for (var o = this.high != 0 ? this.high : this.low, _ = 31; _ > 0 && !(o & (1 << _)); _--); - return this.high != 0 ? _ + 33 : _ + 1 -} -LongPrototype$3.isZero = function e() { - return this.high === 0 && this.low === 0 -} -LongPrototype$3.eqz = LongPrototype$3.isZero -LongPrototype$3.isNegative = function e() { - return !this.unsigned && this.high < 0 -} -LongPrototype$3.isPositive = function e() { - return this.unsigned || this.high >= 0 -} -LongPrototype$3.isOdd = function e() { - return (this.low & 1) === 1 -} -LongPrototype$3.isEven = function e() { - return (this.low & 1) === 0 -} -LongPrototype$3.equals = function e(o) { - return ( - isLong$3(o) || (o = fromValue$3(o)), - this.unsigned !== o.unsigned && this.high >>> 31 === 1 && o.high >>> 31 === 1 - ? !1 - : this.high === o.high && this.low === o.low - ) -} -LongPrototype$3.eq = LongPrototype$3.equals -LongPrototype$3.notEquals = function e(o) { - return !this.eq(o) -} -LongPrototype$3.neq = LongPrototype$3.notEquals -LongPrototype$3.ne = LongPrototype$3.notEquals -LongPrototype$3.lessThan = function e(o) { - return this.comp(o) < 0 -} -LongPrototype$3.lt = LongPrototype$3.lessThan -LongPrototype$3.lessThanOrEqual = function e(o) { - return this.comp(o) <= 0 -} -LongPrototype$3.lte = LongPrototype$3.lessThanOrEqual -LongPrototype$3.le = LongPrototype$3.lessThanOrEqual -LongPrototype$3.greaterThan = function e(o) { - return this.comp(o) > 0 -} -LongPrototype$3.gt = LongPrototype$3.greaterThan -LongPrototype$3.greaterThanOrEqual = function e(o) { - return this.comp(o) >= 0 -} -LongPrototype$3.gte = LongPrototype$3.greaterThanOrEqual -LongPrototype$3.ge = LongPrototype$3.greaterThanOrEqual -LongPrototype$3.compare = function e(o) { - if ((isLong$3(o) || (o = fromValue$3(o)), this.eq(o))) return 0 - var _ = this.isNegative(), - b = o.isNegative() - return _ && !b - ? -1 - : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 -} -LongPrototype$3.comp = LongPrototype$3.compare -LongPrototype$3.negate = function e() { - return !this.unsigned && this.eq(MIN_VALUE$3) ? MIN_VALUE$3 : this.not().add(ONE$3) -} -LongPrototype$3.neg = LongPrototype$3.negate -LongPrototype$3.add = function e(o) { - isLong$3(o) || (o = fromValue$3(o)) - var _ = this.high >>> 16, - b = this.high & 65535, - $ = this.low >>> 16, - en = this.low & 65535, - nn = o.high >>> 16, - sn = o.high & 65535, - gn = o.low >>> 16, - In = o.low & 65535, - Jn = 0, - qn = 0, - Kn = 0, - an = 0 - return ( - (an += en + In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ + gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b + sn), - (Jn += qn >>> 16), - (qn &= 65535), - (Jn += _ + nn), - (Jn &= 65535), - fromBits$3((Kn << 16) | an, (Jn << 16) | qn, this.unsigned) - ) -} -LongPrototype$3.subtract = function e(o) { - return isLong$3(o) || (o = fromValue$3(o)), this.add(o.neg()) -} -LongPrototype$3.sub = LongPrototype$3.subtract -LongPrototype$3.multiply = function e(o) { - if (this.isZero()) return ZERO$3 - if ((isLong$3(o) || (o = fromValue$3(o)), wasm$3)) { - var _ = wasm$3.mul(this.low, this.high, o.low, o.high) - return fromBits$3(_, wasm$3.get_high(), this.unsigned) - } - if (o.isZero()) return ZERO$3 - if (this.eq(MIN_VALUE$3)) return o.isOdd() ? MIN_VALUE$3 : ZERO$3 - if (o.eq(MIN_VALUE$3)) return this.isOdd() ? MIN_VALUE$3 : ZERO$3 - if (this.isNegative()) return o.isNegative() ? this.neg().mul(o.neg()) : this.neg().mul(o).neg() - if (o.isNegative()) return this.mul(o.neg()).neg() - if (this.lt(TWO_PWR_24$3) && o.lt(TWO_PWR_24$3)) - return fromNumber$3(this.toNumber() * o.toNumber(), this.unsigned) - var b = this.high >>> 16, - $ = this.high & 65535, - en = this.low >>> 16, - nn = this.low & 65535, - sn = o.high >>> 16, - gn = o.high & 65535, - In = o.low >>> 16, - Jn = o.low & 65535, - qn = 0, - Kn = 0, - an = 0, - xn = 0 - return ( - (xn += nn * Jn), - (an += xn >>> 16), - (xn &= 65535), - (an += en * Jn), - (Kn += an >>> 16), - (an &= 65535), - (an += nn * In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ * Jn), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += en * In), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += nn * gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b * Jn + $ * In + en * gn + nn * sn), - (qn &= 65535), - fromBits$3((an << 16) | xn, (qn << 16) | Kn, this.unsigned) - ) -} -LongPrototype$3.mul = LongPrototype$3.multiply -LongPrototype$3.divide = function e(o) { - if ((isLong$3(o) || (o = fromValue$3(o)), o.isZero())) throw Error('division by zero') - if (wasm$3) { - if (!this.unsigned && this.high === -2147483648 && o.low === -1 && o.high === -1) return this - var _ = (this.unsigned ? wasm$3.div_u : wasm$3.div_s)(this.low, this.high, o.low, o.high) - return fromBits$3(_, wasm$3.get_high(), this.unsigned) - } - if (this.isZero()) return this.unsigned ? UZERO$3 : ZERO$3 - var b, $, en - if (this.unsigned) { - if ((o.unsigned || (o = o.toUnsigned()), o.gt(this))) return UZERO$3 - if (o.gt(this.shru(1))) return UONE$3 - en = UZERO$3 - } else { - if (this.eq(MIN_VALUE$3)) { - if (o.eq(ONE$3) || o.eq(NEG_ONE$3)) return MIN_VALUE$3 - if (o.eq(MIN_VALUE$3)) return ONE$3 - var nn = this.shr(1) - return ( - (b = nn.div(o).shl(1)), - b.eq(ZERO$3) - ? o.isNegative() - ? ONE$3 - : NEG_ONE$3 - : (($ = this.sub(o.mul(b))), (en = b.add($.div(o))), en) - ) - } else if (o.eq(MIN_VALUE$3)) return this.unsigned ? UZERO$3 : ZERO$3 - if (this.isNegative()) return o.isNegative() ? this.neg().div(o.neg()) : this.neg().div(o).neg() - if (o.isNegative()) return this.div(o.neg()).neg() - en = ZERO$3 - } - for ($ = this; $.gte(o); ) { - b = Math.max(1, Math.floor($.toNumber() / o.toNumber())) - for ( - var sn = Math.ceil(Math.log(b) / Math.LN2), - gn = sn <= 48 ? 1 : pow_dbl$3(2, sn - 48), - In = fromNumber$3(b), - Jn = In.mul(o); - Jn.isNegative() || Jn.gt($); - - ) - (b -= gn), (In = fromNumber$3(b, this.unsigned)), (Jn = In.mul(o)) - In.isZero() && (In = ONE$3), (en = en.add(In)), ($ = $.sub(Jn)) - } - return en -} -LongPrototype$3.div = LongPrototype$3.divide -LongPrototype$3.modulo = function e(o) { - if ((isLong$3(o) || (o = fromValue$3(o)), wasm$3)) { - var _ = (this.unsigned ? wasm$3.rem_u : wasm$3.rem_s)(this.low, this.high, o.low, o.high) - return fromBits$3(_, wasm$3.get_high(), this.unsigned) - } - return this.sub(this.div(o).mul(o)) -} -LongPrototype$3.mod = LongPrototype$3.modulo -LongPrototype$3.rem = LongPrototype$3.modulo -LongPrototype$3.not = function e() { - return fromBits$3(~this.low, ~this.high, this.unsigned) -} -LongPrototype$3.and = function e(o) { - return ( - isLong$3(o) || (o = fromValue$3(o)), - fromBits$3(this.low & o.low, this.high & o.high, this.unsigned) - ) -} -LongPrototype$3.or = function e(o) { - return ( - isLong$3(o) || (o = fromValue$3(o)), - fromBits$3(this.low | o.low, this.high | o.high, this.unsigned) - ) -} -LongPrototype$3.xor = function e(o) { - return ( - isLong$3(o) || (o = fromValue$3(o)), - fromBits$3(this.low ^ o.low, this.high ^ o.high, this.unsigned) - ) -} -LongPrototype$3.shiftLeft = function e(o) { - return ( - isLong$3(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits$3(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits$3(0, this.low << (o - 32), this.unsigned) - ) -} -LongPrototype$3.shl = LongPrototype$3.shiftLeft -LongPrototype$3.shiftRight = function e(o) { - return ( - isLong$3(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits$3((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits$3(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) - ) -} -LongPrototype$3.shr = LongPrototype$3.shiftRight -LongPrototype$3.shiftRightUnsigned = function e(o) { - if ((isLong$3(o) && (o = o.toInt()), (o &= 63), o === 0)) return this - var _ = this.high - if (o < 32) { - var b = this.low - return fromBits$3((b >>> o) | (_ << (32 - o)), _ >>> o, this.unsigned) - } else - return o === 32 ? fromBits$3(_, 0, this.unsigned) : fromBits$3(_ >>> (o - 32), 0, this.unsigned) -} -LongPrototype$3.shru = LongPrototype$3.shiftRightUnsigned -LongPrototype$3.shr_u = LongPrototype$3.shiftRightUnsigned -LongPrototype$3.toSigned = function e() { - return this.unsigned ? fromBits$3(this.low, this.high, !1) : this -} -LongPrototype$3.toUnsigned = function e() { - return this.unsigned ? this : fromBits$3(this.low, this.high, !0) -} -LongPrototype$3.toBytes = function e(o) { - return o ? this.toBytesLE() : this.toBytesBE() -} -LongPrototype$3.toBytesLE = function e() { - var o = this.high, - _ = this.low - return [ - _ & 255, - (_ >>> 8) & 255, - (_ >>> 16) & 255, - _ >>> 24, - o & 255, - (o >>> 8) & 255, - (o >>> 16) & 255, - o >>> 24, - ] -} -LongPrototype$3.toBytesBE = function e() { - var o = this.high, - _ = this.low - return [ - o >>> 24, - (o >>> 16) & 255, - (o >>> 8) & 255, - o & 255, - _ >>> 24, - (_ >>> 16) & 255, - (_ >>> 8) & 255, - _ & 255, - ] -} -Long$3.fromBytes = function e(o, _, b) { - return b ? Long$3.fromBytesLE(o, _) : Long$3.fromBytesBE(o, _) -} -Long$3.fromBytesLE = function e(o, _) { - return new Long$3( - o[0] | (o[1] << 8) | (o[2] << 16) | (o[3] << 24), - o[4] | (o[5] << 8) | (o[6] << 16) | (o[7] << 24), - _, - ) -} -Long$3.fromBytesBE = function e(o, _) { - return new Long$3( - (o[4] << 24) | (o[5] << 16) | (o[6] << 8) | o[7], - (o[0] << 24) | (o[1] << 16) | (o[2] << 8) | o[3], - _, - ) -} -var __createBinding$m = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$m = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$m = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$m(o, e, _) - return __setModuleDefault$m(o, e), o - }, - __importDefault$g = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(helpers, '__esModule', { value: !0 }) -helpers.fromJsonTimestamp = - helpers.fromTimestamp = - helpers.toTimestamp = - helpers.setPaginationParams = - helpers.isObject = - helpers.isSet = - helpers.fromDuration = - helpers.toDuration = - helpers.omitDefault = - helpers.base64FromBytes = - helpers.bytesFromBase64 = - helpers.Long = - void 0 -const _m0$h = __importStar$m(minimalExports), - long_1$c = __importDefault$g(long$3) -helpers.Long = long_1$c.default -_m0$h.util.Long !== long_1$c.default && ((_m0$h.util.Long = long_1$c.default), _m0$h.configure()) -var globalThis$1 = (() => { - if (typeof globalThis$1 < 'u') return globalThis$1 - if (typeof self < 'u') return self - if (typeof window < 'u') return window - if (typeof commonjsGlobal < 'u') return commonjsGlobal - throw 'Unable to locate global object' -})() -const atob$1 = - globalThis$1.atob || ((e) => globalThis$1.Buffer.from(e, 'base64').toString('binary')) -function bytesFromBase64(e) { - const o = atob$1(e), - _ = new Uint8Array(o.length) - for (let b = 0; b < o.length; ++b) _[b] = o.charCodeAt(b) - return _ -} -helpers.bytesFromBase64 = bytesFromBase64 -const btoa$1 = - globalThis$1.btoa || ((e) => globalThis$1.Buffer.from(e, 'binary').toString('base64')) -function base64FromBytes(e) { - const o = [] - return ( - e.forEach((_) => { - o.push(String.fromCharCode(_)) - }), - btoa$1(o.join('')) - ) -} -helpers.base64FromBytes = base64FromBytes -function omitDefault$1(e) { - if (typeof e == 'string') return e === '' ? void 0 : e - if (typeof e == 'number') return e === 0 ? void 0 : e - if (long_1$c.default.isLong(e)) return e.isZero() ? void 0 : e - throw new Error(`Got unsupported type ${typeof e}`) -} -helpers.omitDefault = omitDefault$1 -function toDuration(e) { - return { - seconds: long_1$c.default.fromNumber(Math.floor(parseInt(e) / 1e9)), - nanos: parseInt(e) % 1e9, - } -} -helpers.toDuration = toDuration -function fromDuration(e) { - return (parseInt(e.seconds.toString()) * 1e9 + e.nanos).toString() -} -helpers.fromDuration = fromDuration -function isSet(e) { - return e != null -} -helpers.isSet = isSet -function isObject$1(e) { - return typeof e == 'object' && e !== null -} -helpers.isObject = isObject$1 -const setPaginationParams = (e, o) => ( - o && - (typeof o?.countTotal < 'u' && (e.params['pagination.count_total'] = o.countTotal), - typeof o?.key < 'u' && (e.params['pagination.key'] = Buffer.from(o.key).toString('base64')), - typeof o?.limit < 'u' && (e.params['pagination.limit'] = o.limit.toString()), - typeof o?.offset < 'u' && (e.params['pagination.offset'] = o.offset.toString()), - typeof o?.reverse < 'u' && (e.params['pagination.reverse'] = o.reverse)), - e -) -helpers.setPaginationParams = setPaginationParams -function toTimestamp(e) { - const o = numberToLong(e.getTime() / 1e3), - _ = (e.getTime() % 1e3) * 1e6 - return { seconds: o, nanos: _ } -} -helpers.toTimestamp = toTimestamp -function fromTimestamp(e) { - let o = e.seconds.toNumber() * 1e3 - return (o += e.nanos / 1e6), new Date(o) -} -helpers.fromTimestamp = fromTimestamp -const timestampFromJSON = (e) => ({ - seconds: isSet(e.seconds) ? long_1$c.default.fromValue(e.seconds) : long_1$c.default.ZERO, - nanos: isSet(e.nanos) ? Number(e.nanos) : 0, -}) -function fromJsonTimestamp(e) { - return e instanceof Date - ? toTimestamp(e) - : typeof e == 'string' - ? toTimestamp(new Date(e)) - : timestampFromJSON(e) -} -helpers.fromJsonTimestamp = fromJsonTimestamp -function numberToLong(e) { - return long_1$c.default.fromNumber(e) -} -var __createBinding$l = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$l = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$l = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$l(o, e, _) - return __setModuleDefault$l(o, e), o - } -Object.defineProperty(any, '__esModule', { value: !0 }) -any.Any = any.protobufPackage = void 0 -const _m0$g = __importStar$l(minimalExports), - helpers_1$g = helpers -any.protobufPackage = 'google.protobuf' -function createBaseAny() { - return { typeUrl: '', value: new Uint8Array() } -} -any.Any = { - encode(e, o = _m0$g.Writer.create()) { - return ( - e.typeUrl !== '' && o.uint32(10).string(e.typeUrl), - e.value.length !== 0 && o.uint32(18).bytes(e.value), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$g.Reader ? e : new _m0$g.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseAny() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.typeUrl = _.string() - break - case 2: - $.value = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - typeUrl: (0, helpers_1$g.isSet)(e.typeUrl) ? String(e.typeUrl) : '', - value: (0, helpers_1$g.isSet)(e.value) - ? (0, helpers_1$g.bytesFromBase64)(e.value) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.typeUrl !== void 0 && (o.typeUrl = e.typeUrl), - e.value !== void 0 && - (o.value = (0, helpers_1$g.base64FromBytes)( - e.value !== void 0 ? e.value : new Uint8Array(), - )), - o - ) - }, - fromPartial(e) { - const o = createBaseAny() - return (o.typeUrl = e.typeUrl ?? ''), (o.value = e.value ?? new Uint8Array()), o - }, -} -var signing$1 = {}, - multisig$1 = {}, - __createBinding$k = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$k = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$k = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$k(o, e, _) - return __setModuleDefault$k(o, e), o - } -Object.defineProperty(multisig$1, '__esModule', { value: !0 }) -multisig$1.CompactBitArray = multisig$1.MultiSignature = multisig$1.protobufPackage = void 0 -const _m0$f = __importStar$k(minimalExports), - helpers_1$f = helpers -multisig$1.protobufPackage = 'cosmos.crypto.multisig.v1beta1' -function createBaseMultiSignature() { - return { signatures: [] } -} -multisig$1.MultiSignature = { - encode(e, o = _m0$f.Writer.create()) { - for (const _ of e.signatures) o.uint32(10).bytes(_) - return o - }, - decode(e, o) { - const _ = e instanceof _m0$f.Reader ? e : new _m0$f.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseMultiSignature() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.signatures.push(_.bytes()) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - signatures: Array.isArray(e?.signatures) - ? e.signatures.map((o) => (0, helpers_1$f.bytesFromBase64)(o)) - : [], - } - }, - toJSON(e) { - const o = {} - return ( - e.signatures - ? (o.signatures = e.signatures.map((_) => - (0, helpers_1$f.base64FromBytes)(_ !== void 0 ? _ : new Uint8Array()), - )) - : (o.signatures = []), - o - ) - }, - fromPartial(e) { - const o = createBaseMultiSignature() - return (o.signatures = e.signatures?.map((_) => _) || []), o - }, -} -function createBaseCompactBitArray() { - return { extraBitsStored: 0, elems: new Uint8Array() } -} -multisig$1.CompactBitArray = { - encode(e, o = _m0$f.Writer.create()) { - return ( - e.extraBitsStored !== 0 && o.uint32(8).uint32(e.extraBitsStored), - e.elems.length !== 0 && o.uint32(18).bytes(e.elems), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$f.Reader ? e : new _m0$f.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseCompactBitArray() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.extraBitsStored = _.uint32() - break - case 2: - $.elems = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - extraBitsStored: (0, helpers_1$f.isSet)(e.extraBitsStored) ? Number(e.extraBitsStored) : 0, - elems: (0, helpers_1$f.isSet)(e.elems) - ? (0, helpers_1$f.bytesFromBase64)(e.elems) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.extraBitsStored !== void 0 && (o.extraBitsStored = Math.round(e.extraBitsStored)), - e.elems !== void 0 && - (o.elems = (0, helpers_1$f.base64FromBytes)( - e.elems !== void 0 ? e.elems : new Uint8Array(), - )), - o - ) - }, - fromPartial(e) { - const o = createBaseCompactBitArray() - return (o.extraBitsStored = e.extraBitsStored ?? 0), (o.elems = e.elems ?? new Uint8Array()), o - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Bn, kn, ln, yn) { - yn === void 0 && (yn = ln) - var Cn = Object.getOwnPropertyDescriptor(kn, ln) - ;(!Cn || ('get' in Cn ? !kn.__esModule : Cn.writable || Cn.configurable)) && - (Cn = { - enumerable: !0, - get: function () { - return kn[ln] - }, - }), - Object.defineProperty(Bn, yn, Cn) - } - : function (Bn, kn, ln, yn) { - yn === void 0 && (yn = ln), (Bn[yn] = kn[ln]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Bn, kn) { - Object.defineProperty(Bn, 'default', { enumerable: !0, value: kn }) - } - : function (Bn, kn) { - Bn.default = kn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Bn) { - if (Bn && Bn.__esModule) return Bn - var kn = {} - if (Bn != null) - for (var ln in Bn) - ln !== 'default' && Object.prototype.hasOwnProperty.call(Bn, ln) && o(kn, Bn, ln) - return _(kn, Bn), kn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SignatureDescriptor_Data_Multi = - e.SignatureDescriptor_Data_Single = - e.SignatureDescriptor_Data = - e.SignatureDescriptor = - e.SignatureDescriptors = - e.signModeToJSON = - e.signModeFromJSON = - e.SignMode = - e.protobufPackage = - void 0) - const $ = multisig$1, - en = any, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.tx.signing.v1beta1' - var gn - ;(function (Bn) { - ;(Bn[(Bn.SIGN_MODE_UNSPECIFIED = 0)] = 'SIGN_MODE_UNSPECIFIED'), - (Bn[(Bn.SIGN_MODE_DIRECT = 1)] = 'SIGN_MODE_DIRECT'), - (Bn[(Bn.SIGN_MODE_TEXTUAL = 2)] = 'SIGN_MODE_TEXTUAL'), - (Bn[(Bn.SIGN_MODE_DIRECT_AUX = 3)] = 'SIGN_MODE_DIRECT_AUX'), - (Bn[(Bn.SIGN_MODE_LEGACY_AMINO_JSON = 127)] = 'SIGN_MODE_LEGACY_AMINO_JSON'), - (Bn[(Bn.SIGN_MODE_EIP_191 = 191)] = 'SIGN_MODE_EIP_191'), - (Bn[(Bn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((gn = e.SignMode || (e.SignMode = {}))) - function In(Bn) { - switch (Bn) { - case 0: - case 'SIGN_MODE_UNSPECIFIED': - return gn.SIGN_MODE_UNSPECIFIED - case 1: - case 'SIGN_MODE_DIRECT': - return gn.SIGN_MODE_DIRECT - case 2: - case 'SIGN_MODE_TEXTUAL': - return gn.SIGN_MODE_TEXTUAL - case 3: - case 'SIGN_MODE_DIRECT_AUX': - return gn.SIGN_MODE_DIRECT_AUX - case 127: - case 'SIGN_MODE_LEGACY_AMINO_JSON': - return gn.SIGN_MODE_LEGACY_AMINO_JSON - case 191: - case 'SIGN_MODE_EIP_191': - return gn.SIGN_MODE_EIP_191 - case -1: - case 'UNRECOGNIZED': - default: - return gn.UNRECOGNIZED - } - } - e.signModeFromJSON = In - function Jn(Bn) { - switch (Bn) { - case gn.SIGN_MODE_UNSPECIFIED: - return 'SIGN_MODE_UNSPECIFIED' - case gn.SIGN_MODE_DIRECT: - return 'SIGN_MODE_DIRECT' - case gn.SIGN_MODE_TEXTUAL: - return 'SIGN_MODE_TEXTUAL' - case gn.SIGN_MODE_DIRECT_AUX: - return 'SIGN_MODE_DIRECT_AUX' - case gn.SIGN_MODE_LEGACY_AMINO_JSON: - return 'SIGN_MODE_LEGACY_AMINO_JSON' - case gn.SIGN_MODE_EIP_191: - return 'SIGN_MODE_EIP_191' - case gn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.signModeToJSON = Jn - function qn() { - return { signatures: [] } - } - e.SignatureDescriptors = { - encode(Bn, kn = sn.Writer.create()) { - for (const ln of Bn.signatures) - e.SignatureDescriptor.encode(ln, kn.uint32(10).fork()).ldelim() - return kn - }, - decode(Bn, kn) { - const ln = Bn instanceof sn.Reader ? Bn : new sn.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = qn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.signatures.push(e.SignatureDescriptor.decode(ln, ln.uint32())) - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - signatures: Array.isArray(Bn?.signatures) - ? Bn.signatures.map((kn) => e.SignatureDescriptor.fromJSON(kn)) - : [], - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.signatures - ? (kn.signatures = Bn.signatures.map((ln) => - ln ? e.SignatureDescriptor.toJSON(ln) : void 0, - )) - : (kn.signatures = []), - kn - ) - }, - fromPartial(Bn) { - const kn = qn() - return ( - (kn.signatures = Bn.signatures?.map((ln) => e.SignatureDescriptor.fromPartial(ln)) || []), - kn - ) - }, - } - function Kn() { - return { publicKey: void 0, data: void 0, sequence: nn.Long.UZERO } - } - e.SignatureDescriptor = { - encode(Bn, kn = sn.Writer.create()) { - return ( - Bn.publicKey !== void 0 && en.Any.encode(Bn.publicKey, kn.uint32(10).fork()).ldelim(), - Bn.data !== void 0 && - e.SignatureDescriptor_Data.encode(Bn.data, kn.uint32(18).fork()).ldelim(), - Bn.sequence.isZero() || kn.uint32(24).uint64(Bn.sequence), - kn - ) - }, - decode(Bn, kn) { - const ln = Bn instanceof sn.Reader ? Bn : new sn.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = Kn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.publicKey = en.Any.decode(ln, ln.uint32()) - break - case 2: - Cn.data = e.SignatureDescriptor_Data.decode(ln, ln.uint32()) - break - case 3: - Cn.sequence = ln.uint64() - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - publicKey: (0, nn.isSet)(Bn.publicKey) ? en.Any.fromJSON(Bn.publicKey) : void 0, - data: (0, nn.isSet)(Bn.data) ? e.SignatureDescriptor_Data.fromJSON(Bn.data) : void 0, - sequence: (0, nn.isSet)(Bn.sequence) ? nn.Long.fromValue(Bn.sequence) : nn.Long.UZERO, - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.publicKey !== void 0 && - (kn.publicKey = Bn.publicKey ? en.Any.toJSON(Bn.publicKey) : void 0), - Bn.data !== void 0 && - (kn.data = Bn.data ? e.SignatureDescriptor_Data.toJSON(Bn.data) : void 0), - Bn.sequence !== void 0 && (kn.sequence = (Bn.sequence || nn.Long.UZERO).toString()), - kn - ) - }, - fromPartial(Bn) { - const kn = Kn() - return ( - (kn.publicKey = - Bn.publicKey !== void 0 && Bn.publicKey !== null - ? en.Any.fromPartial(Bn.publicKey) - : void 0), - (kn.data = - Bn.data !== void 0 && Bn.data !== null - ? e.SignatureDescriptor_Data.fromPartial(Bn.data) - : void 0), - (kn.sequence = - Bn.sequence !== void 0 && Bn.sequence !== null - ? nn.Long.fromValue(Bn.sequence) - : nn.Long.UZERO), - kn - ) - }, - } - function an() { - return { single: void 0, multi: void 0 } - } - e.SignatureDescriptor_Data = { - encode(Bn, kn = sn.Writer.create()) { - return ( - Bn.single !== void 0 && - e.SignatureDescriptor_Data_Single.encode(Bn.single, kn.uint32(10).fork()).ldelim(), - Bn.multi !== void 0 && - e.SignatureDescriptor_Data_Multi.encode(Bn.multi, kn.uint32(18).fork()).ldelim(), - kn - ) - }, - decode(Bn, kn) { - const ln = Bn instanceof sn.Reader ? Bn : new sn.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = an() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.single = e.SignatureDescriptor_Data_Single.decode(ln, ln.uint32()) - break - case 2: - Cn.multi = e.SignatureDescriptor_Data_Multi.decode(ln, ln.uint32()) - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - single: (0, nn.isSet)(Bn.single) - ? e.SignatureDescriptor_Data_Single.fromJSON(Bn.single) - : void 0, - multi: (0, nn.isSet)(Bn.multi) - ? e.SignatureDescriptor_Data_Multi.fromJSON(Bn.multi) - : void 0, - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.single !== void 0 && - (kn.single = Bn.single ? e.SignatureDescriptor_Data_Single.toJSON(Bn.single) : void 0), - Bn.multi !== void 0 && - (kn.multi = Bn.multi ? e.SignatureDescriptor_Data_Multi.toJSON(Bn.multi) : void 0), - kn - ) - }, - fromPartial(Bn) { - const kn = an() - return ( - (kn.single = - Bn.single !== void 0 && Bn.single !== null - ? e.SignatureDescriptor_Data_Single.fromPartial(Bn.single) - : void 0), - (kn.multi = - Bn.multi !== void 0 && Bn.multi !== null - ? e.SignatureDescriptor_Data_Multi.fromPartial(Bn.multi) - : void 0), - kn - ) - }, - } - function xn() { - return { mode: 0, signature: new Uint8Array() } - } - e.SignatureDescriptor_Data_Single = { - encode(Bn, kn = sn.Writer.create()) { - return ( - Bn.mode !== 0 && kn.uint32(8).int32(Bn.mode), - Bn.signature.length !== 0 && kn.uint32(18).bytes(Bn.signature), - kn - ) - }, - decode(Bn, kn) { - const ln = Bn instanceof sn.Reader ? Bn : new sn.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = xn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.mode = ln.int32() - break - case 2: - Cn.signature = ln.bytes() - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - mode: (0, nn.isSet)(Bn.mode) ? In(Bn.mode) : 0, - signature: (0, nn.isSet)(Bn.signature) - ? (0, nn.bytesFromBase64)(Bn.signature) - : new Uint8Array(), - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.mode !== void 0 && (kn.mode = Jn(Bn.mode)), - Bn.signature !== void 0 && - (kn.signature = (0, nn.base64FromBytes)( - Bn.signature !== void 0 ? Bn.signature : new Uint8Array(), - )), - kn - ) - }, - fromPartial(Bn) { - const kn = xn() - return (kn.mode = Bn.mode ?? 0), (kn.signature = Bn.signature ?? new Uint8Array()), kn - }, - } - function mn() { - return { bitarray: void 0, signatures: [] } - } - e.SignatureDescriptor_Data_Multi = { - encode(Bn, kn = sn.Writer.create()) { - Bn.bitarray !== void 0 && $.CompactBitArray.encode(Bn.bitarray, kn.uint32(10).fork()).ldelim() - for (const ln of Bn.signatures) - e.SignatureDescriptor_Data.encode(ln, kn.uint32(18).fork()).ldelim() - return kn - }, - decode(Bn, kn) { - const ln = Bn instanceof sn.Reader ? Bn : new sn.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = mn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.bitarray = $.CompactBitArray.decode(ln, ln.uint32()) - break - case 2: - Cn.signatures.push(e.SignatureDescriptor_Data.decode(ln, ln.uint32())) - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - bitarray: (0, nn.isSet)(Bn.bitarray) ? $.CompactBitArray.fromJSON(Bn.bitarray) : void 0, - signatures: Array.isArray(Bn?.signatures) - ? Bn.signatures.map((kn) => e.SignatureDescriptor_Data.fromJSON(kn)) - : [], - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.bitarray !== void 0 && - (kn.bitarray = Bn.bitarray ? $.CompactBitArray.toJSON(Bn.bitarray) : void 0), - Bn.signatures - ? (kn.signatures = Bn.signatures.map((ln) => - ln ? e.SignatureDescriptor_Data.toJSON(ln) : void 0, - )) - : (kn.signatures = []), - kn - ) - }, - fromPartial(Bn) { - const kn = mn() - return ( - (kn.bitarray = - Bn.bitarray !== void 0 && Bn.bitarray !== null - ? $.CompactBitArray.fromPartial(Bn.bitarray) - : void 0), - (kn.signatures = - Bn.signatures?.map((ln) => e.SignatureDescriptor_Data.fromPartial(ln)) || []), - kn - ) - }, - } -})(signing$1) -var coin$1 = {}, - __createBinding$j = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$j = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$j = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$j(o, e, _) - return __setModuleDefault$j(o, e), o - } -Object.defineProperty(coin$1, '__esModule', { value: !0 }) -coin$1.DecProto = coin$1.IntProto = coin$1.DecCoin = coin$1.Coin = coin$1.protobufPackage = void 0 -const _m0$e = __importStar$j(minimalExports), - helpers_1$e = helpers -coin$1.protobufPackage = 'cosmos.base.v1beta1' -function createBaseCoin() { - return { denom: '', amount: '' } -} -coin$1.Coin = { - encode(e, o = _m0$e.Writer.create()) { - return ( - e.denom !== '' && o.uint32(10).string(e.denom), - e.amount !== '' && o.uint32(18).string(e.amount), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$e.Reader ? e : new _m0$e.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseCoin() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.denom = _.string() - break - case 2: - $.amount = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - denom: (0, helpers_1$e.isSet)(e.denom) ? String(e.denom) : '', - amount: (0, helpers_1$e.isSet)(e.amount) ? String(e.amount) : '', - } - }, - toJSON(e) { - const o = {} - return ( - e.denom !== void 0 && (o.denom = e.denom), e.amount !== void 0 && (o.amount = e.amount), o - ) - }, - fromPartial(e) { - const o = createBaseCoin() - return (o.denom = e.denom ?? ''), (o.amount = e.amount ?? ''), o - }, -} -function createBaseDecCoin() { - return { denom: '', amount: '' } -} -coin$1.DecCoin = { - encode(e, o = _m0$e.Writer.create()) { - return ( - e.denom !== '' && o.uint32(10).string(e.denom), - e.amount !== '' && o.uint32(18).string(e.amount), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$e.Reader ? e : new _m0$e.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseDecCoin() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.denom = _.string() - break - case 2: - $.amount = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - denom: (0, helpers_1$e.isSet)(e.denom) ? String(e.denom) : '', - amount: (0, helpers_1$e.isSet)(e.amount) ? String(e.amount) : '', - } - }, - toJSON(e) { - const o = {} - return ( - e.denom !== void 0 && (o.denom = e.denom), e.amount !== void 0 && (o.amount = e.amount), o - ) - }, - fromPartial(e) { - const o = createBaseDecCoin() - return (o.denom = e.denom ?? ''), (o.amount = e.amount ?? ''), o - }, -} -function createBaseIntProto() { - return { int: '' } -} -coin$1.IntProto = { - encode(e, o = _m0$e.Writer.create()) { - return e.int !== '' && o.uint32(10).string(e.int), o - }, - decode(e, o) { - const _ = e instanceof _m0$e.Reader ? e : new _m0$e.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseIntProto() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.int = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { int: (0, helpers_1$e.isSet)(e.int) ? String(e.int) : '' } - }, - toJSON(e) { - const o = {} - return e.int !== void 0 && (o.int = e.int), o - }, - fromPartial(e) { - const o = createBaseIntProto() - return (o.int = e.int ?? ''), o - }, -} -function createBaseDecProto() { - return { dec: '' } -} -coin$1.DecProto = { - encode(e, o = _m0$e.Writer.create()) { - return e.dec !== '' && o.uint32(10).string(e.dec), o - }, - decode(e, o) { - const _ = e instanceof _m0$e.Reader ? e : new _m0$e.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseDecProto() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.dec = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { dec: (0, helpers_1$e.isSet)(e.dec) ? String(e.dec) : '' } - }, - toJSON(e) { - const o = {} - return e.dec !== void 0 && (o.dec = e.dec), o - }, - fromPartial(e) { - const o = createBaseDecProto() - return (o.dec = e.dec ?? ''), o - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Sn, Zn, tn, En) { - En === void 0 && (En = tn) - var Mn = Object.getOwnPropertyDescriptor(Zn, tn) - ;(!Mn || ('get' in Mn ? !Zn.__esModule : Mn.writable || Mn.configurable)) && - (Mn = { - enumerable: !0, - get: function () { - return Zn[tn] - }, - }), - Object.defineProperty(Sn, En, Mn) - } - : function (Sn, Zn, tn, En) { - En === void 0 && (En = tn), (Sn[En] = Zn[tn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Sn, Zn) { - Object.defineProperty(Sn, 'default', { enumerable: !0, value: Zn }) - } - : function (Sn, Zn) { - Sn.default = Zn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Sn) { - if (Sn && Sn.__esModule) return Sn - var Zn = {} - if (Sn != null) - for (var tn in Sn) - tn !== 'default' && Object.prototype.hasOwnProperty.call(Sn, tn) && o(Zn, Sn, tn) - return _(Zn, Sn), Zn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.AuxSignerData = - e.Tip = - e.Fee = - e.ModeInfo_Multi = - e.ModeInfo_Single = - e.ModeInfo = - e.SignerInfo = - e.AuthInfo = - e.TxBody = - e.SignDocDirectAux = - e.SignDoc = - e.TxRaw = - e.Tx = - e.protobufPackage = - void 0) - const $ = any, - en = signing$1, - nn = multisig$1, - sn = coin$1, - gn = helpers, - In = b(minimalExports) - e.protobufPackage = 'cosmos.tx.v1beta1' - function Jn() { - return { body: void 0, authInfo: void 0, signatures: [] } - } - e.Tx = { - encode(Sn, Zn = In.Writer.create()) { - Sn.body !== void 0 && e.TxBody.encode(Sn.body, Zn.uint32(10).fork()).ldelim(), - Sn.authInfo !== void 0 && e.AuthInfo.encode(Sn.authInfo, Zn.uint32(18).fork()).ldelim() - for (const tn of Sn.signatures) Zn.uint32(26).bytes(tn) - return Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Jn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.body = e.TxBody.decode(tn, tn.uint32()) - break - case 2: - Mn.authInfo = e.AuthInfo.decode(tn, tn.uint32()) - break - case 3: - Mn.signatures.push(tn.bytes()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - body: (0, gn.isSet)(Sn.body) ? e.TxBody.fromJSON(Sn.body) : void 0, - authInfo: (0, gn.isSet)(Sn.authInfo) ? e.AuthInfo.fromJSON(Sn.authInfo) : void 0, - signatures: Array.isArray(Sn?.signatures) - ? Sn.signatures.map((Zn) => (0, gn.bytesFromBase64)(Zn)) - : [], - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.body !== void 0 && (Zn.body = Sn.body ? e.TxBody.toJSON(Sn.body) : void 0), - Sn.authInfo !== void 0 && - (Zn.authInfo = Sn.authInfo ? e.AuthInfo.toJSON(Sn.authInfo) : void 0), - Sn.signatures - ? (Zn.signatures = Sn.signatures.map((tn) => - (0, gn.base64FromBytes)(tn !== void 0 ? tn : new Uint8Array()), - )) - : (Zn.signatures = []), - Zn - ) - }, - fromPartial(Sn) { - const Zn = Jn() - return ( - (Zn.body = Sn.body !== void 0 && Sn.body !== null ? e.TxBody.fromPartial(Sn.body) : void 0), - (Zn.authInfo = - Sn.authInfo !== void 0 && Sn.authInfo !== null - ? e.AuthInfo.fromPartial(Sn.authInfo) - : void 0), - (Zn.signatures = Sn.signatures?.map((tn) => tn) || []), - Zn - ) - }, - } - function qn() { - return { bodyBytes: new Uint8Array(), authInfoBytes: new Uint8Array(), signatures: [] } - } - e.TxRaw = { - encode(Sn, Zn = In.Writer.create()) { - Sn.bodyBytes.length !== 0 && Zn.uint32(10).bytes(Sn.bodyBytes), - Sn.authInfoBytes.length !== 0 && Zn.uint32(18).bytes(Sn.authInfoBytes) - for (const tn of Sn.signatures) Zn.uint32(26).bytes(tn) - return Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = qn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.bodyBytes = tn.bytes() - break - case 2: - Mn.authInfoBytes = tn.bytes() - break - case 3: - Mn.signatures.push(tn.bytes()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - bodyBytes: (0, gn.isSet)(Sn.bodyBytes) - ? (0, gn.bytesFromBase64)(Sn.bodyBytes) - : new Uint8Array(), - authInfoBytes: (0, gn.isSet)(Sn.authInfoBytes) - ? (0, gn.bytesFromBase64)(Sn.authInfoBytes) - : new Uint8Array(), - signatures: Array.isArray(Sn?.signatures) - ? Sn.signatures.map((Zn) => (0, gn.bytesFromBase64)(Zn)) - : [], - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.bodyBytes !== void 0 && - (Zn.bodyBytes = (0, gn.base64FromBytes)( - Sn.bodyBytes !== void 0 ? Sn.bodyBytes : new Uint8Array(), - )), - Sn.authInfoBytes !== void 0 && - (Zn.authInfoBytes = (0, gn.base64FromBytes)( - Sn.authInfoBytes !== void 0 ? Sn.authInfoBytes : new Uint8Array(), - )), - Sn.signatures - ? (Zn.signatures = Sn.signatures.map((tn) => - (0, gn.base64FromBytes)(tn !== void 0 ? tn : new Uint8Array()), - )) - : (Zn.signatures = []), - Zn - ) - }, - fromPartial(Sn) { - const Zn = qn() - return ( - (Zn.bodyBytes = Sn.bodyBytes ?? new Uint8Array()), - (Zn.authInfoBytes = Sn.authInfoBytes ?? new Uint8Array()), - (Zn.signatures = Sn.signatures?.map((tn) => tn) || []), - Zn - ) - }, - } - function Kn() { - return { - bodyBytes: new Uint8Array(), - authInfoBytes: new Uint8Array(), - chainId: '', - accountNumber: gn.Long.UZERO, - } - } - e.SignDoc = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.bodyBytes.length !== 0 && Zn.uint32(10).bytes(Sn.bodyBytes), - Sn.authInfoBytes.length !== 0 && Zn.uint32(18).bytes(Sn.authInfoBytes), - Sn.chainId !== '' && Zn.uint32(26).string(Sn.chainId), - Sn.accountNumber.isZero() || Zn.uint32(32).uint64(Sn.accountNumber), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Kn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.bodyBytes = tn.bytes() - break - case 2: - Mn.authInfoBytes = tn.bytes() - break - case 3: - Mn.chainId = tn.string() - break - case 4: - Mn.accountNumber = tn.uint64() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - bodyBytes: (0, gn.isSet)(Sn.bodyBytes) - ? (0, gn.bytesFromBase64)(Sn.bodyBytes) - : new Uint8Array(), - authInfoBytes: (0, gn.isSet)(Sn.authInfoBytes) - ? (0, gn.bytesFromBase64)(Sn.authInfoBytes) - : new Uint8Array(), - chainId: (0, gn.isSet)(Sn.chainId) ? String(Sn.chainId) : '', - accountNumber: (0, gn.isSet)(Sn.accountNumber) - ? gn.Long.fromValue(Sn.accountNumber) - : gn.Long.UZERO, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.bodyBytes !== void 0 && - (Zn.bodyBytes = (0, gn.base64FromBytes)( - Sn.bodyBytes !== void 0 ? Sn.bodyBytes : new Uint8Array(), - )), - Sn.authInfoBytes !== void 0 && - (Zn.authInfoBytes = (0, gn.base64FromBytes)( - Sn.authInfoBytes !== void 0 ? Sn.authInfoBytes : new Uint8Array(), - )), - Sn.chainId !== void 0 && (Zn.chainId = Sn.chainId), - Sn.accountNumber !== void 0 && - (Zn.accountNumber = (Sn.accountNumber || gn.Long.UZERO).toString()), - Zn - ) - }, - fromPartial(Sn) { - const Zn = Kn() - return ( - (Zn.bodyBytes = Sn.bodyBytes ?? new Uint8Array()), - (Zn.authInfoBytes = Sn.authInfoBytes ?? new Uint8Array()), - (Zn.chainId = Sn.chainId ?? ''), - (Zn.accountNumber = - Sn.accountNumber !== void 0 && Sn.accountNumber !== null - ? gn.Long.fromValue(Sn.accountNumber) - : gn.Long.UZERO), - Zn - ) - }, - } - function an() { - return { - bodyBytes: new Uint8Array(), - publicKey: void 0, - chainId: '', - accountNumber: gn.Long.UZERO, - sequence: gn.Long.UZERO, - tip: void 0, - } - } - e.SignDocDirectAux = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.bodyBytes.length !== 0 && Zn.uint32(10).bytes(Sn.bodyBytes), - Sn.publicKey !== void 0 && $.Any.encode(Sn.publicKey, Zn.uint32(18).fork()).ldelim(), - Sn.chainId !== '' && Zn.uint32(26).string(Sn.chainId), - Sn.accountNumber.isZero() || Zn.uint32(32).uint64(Sn.accountNumber), - Sn.sequence.isZero() || Zn.uint32(40).uint64(Sn.sequence), - Sn.tip !== void 0 && e.Tip.encode(Sn.tip, Zn.uint32(50).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = an() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.bodyBytes = tn.bytes() - break - case 2: - Mn.publicKey = $.Any.decode(tn, tn.uint32()) - break - case 3: - Mn.chainId = tn.string() - break - case 4: - Mn.accountNumber = tn.uint64() - break - case 5: - Mn.sequence = tn.uint64() - break - case 6: - Mn.tip = e.Tip.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - bodyBytes: (0, gn.isSet)(Sn.bodyBytes) - ? (0, gn.bytesFromBase64)(Sn.bodyBytes) - : new Uint8Array(), - publicKey: (0, gn.isSet)(Sn.publicKey) ? $.Any.fromJSON(Sn.publicKey) : void 0, - chainId: (0, gn.isSet)(Sn.chainId) ? String(Sn.chainId) : '', - accountNumber: (0, gn.isSet)(Sn.accountNumber) - ? gn.Long.fromValue(Sn.accountNumber) - : gn.Long.UZERO, - sequence: (0, gn.isSet)(Sn.sequence) ? gn.Long.fromValue(Sn.sequence) : gn.Long.UZERO, - tip: (0, gn.isSet)(Sn.tip) ? e.Tip.fromJSON(Sn.tip) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.bodyBytes !== void 0 && - (Zn.bodyBytes = (0, gn.base64FromBytes)( - Sn.bodyBytes !== void 0 ? Sn.bodyBytes : new Uint8Array(), - )), - Sn.publicKey !== void 0 && - (Zn.publicKey = Sn.publicKey ? $.Any.toJSON(Sn.publicKey) : void 0), - Sn.chainId !== void 0 && (Zn.chainId = Sn.chainId), - Sn.accountNumber !== void 0 && - (Zn.accountNumber = (Sn.accountNumber || gn.Long.UZERO).toString()), - Sn.sequence !== void 0 && (Zn.sequence = (Sn.sequence || gn.Long.UZERO).toString()), - Sn.tip !== void 0 && (Zn.tip = Sn.tip ? e.Tip.toJSON(Sn.tip) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = an() - return ( - (Zn.bodyBytes = Sn.bodyBytes ?? new Uint8Array()), - (Zn.publicKey = - Sn.publicKey !== void 0 && Sn.publicKey !== null - ? $.Any.fromPartial(Sn.publicKey) - : void 0), - (Zn.chainId = Sn.chainId ?? ''), - (Zn.accountNumber = - Sn.accountNumber !== void 0 && Sn.accountNumber !== null - ? gn.Long.fromValue(Sn.accountNumber) - : gn.Long.UZERO), - (Zn.sequence = - Sn.sequence !== void 0 && Sn.sequence !== null - ? gn.Long.fromValue(Sn.sequence) - : gn.Long.UZERO), - (Zn.tip = Sn.tip !== void 0 && Sn.tip !== null ? e.Tip.fromPartial(Sn.tip) : void 0), - Zn - ) - }, - } - function xn() { - return { - messages: [], - memo: '', - timeoutHeight: gn.Long.UZERO, - extensionOptions: [], - nonCriticalExtensionOptions: [], - } - } - e.TxBody = { - encode(Sn, Zn = In.Writer.create()) { - for (const tn of Sn.messages) $.Any.encode(tn, Zn.uint32(10).fork()).ldelim() - Sn.memo !== '' && Zn.uint32(18).string(Sn.memo), - Sn.timeoutHeight.isZero() || Zn.uint32(24).uint64(Sn.timeoutHeight) - for (const tn of Sn.extensionOptions) $.Any.encode(tn, Zn.uint32(8186).fork()).ldelim() - for (const tn of Sn.nonCriticalExtensionOptions) - $.Any.encode(tn, Zn.uint32(16378).fork()).ldelim() - return Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = xn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.messages.push($.Any.decode(tn, tn.uint32())) - break - case 2: - Mn.memo = tn.string() - break - case 3: - Mn.timeoutHeight = tn.uint64() - break - case 1023: - Mn.extensionOptions.push($.Any.decode(tn, tn.uint32())) - break - case 2047: - Mn.nonCriticalExtensionOptions.push($.Any.decode(tn, tn.uint32())) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - messages: Array.isArray(Sn?.messages) ? Sn.messages.map((Zn) => $.Any.fromJSON(Zn)) : [], - memo: (0, gn.isSet)(Sn.memo) ? String(Sn.memo) : '', - timeoutHeight: (0, gn.isSet)(Sn.timeoutHeight) - ? gn.Long.fromValue(Sn.timeoutHeight) - : gn.Long.UZERO, - extensionOptions: Array.isArray(Sn?.extensionOptions) - ? Sn.extensionOptions.map((Zn) => $.Any.fromJSON(Zn)) - : [], - nonCriticalExtensionOptions: Array.isArray(Sn?.nonCriticalExtensionOptions) - ? Sn.nonCriticalExtensionOptions.map((Zn) => $.Any.fromJSON(Zn)) - : [], - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.messages - ? (Zn.messages = Sn.messages.map((tn) => (tn ? $.Any.toJSON(tn) : void 0))) - : (Zn.messages = []), - Sn.memo !== void 0 && (Zn.memo = Sn.memo), - Sn.timeoutHeight !== void 0 && - (Zn.timeoutHeight = (Sn.timeoutHeight || gn.Long.UZERO).toString()), - Sn.extensionOptions - ? (Zn.extensionOptions = Sn.extensionOptions.map((tn) => - tn ? $.Any.toJSON(tn) : void 0, - )) - : (Zn.extensionOptions = []), - Sn.nonCriticalExtensionOptions - ? (Zn.nonCriticalExtensionOptions = Sn.nonCriticalExtensionOptions.map((tn) => - tn ? $.Any.toJSON(tn) : void 0, - )) - : (Zn.nonCriticalExtensionOptions = []), - Zn - ) - }, - fromPartial(Sn) { - const Zn = xn() - return ( - (Zn.messages = Sn.messages?.map((tn) => $.Any.fromPartial(tn)) || []), - (Zn.memo = Sn.memo ?? ''), - (Zn.timeoutHeight = - Sn.timeoutHeight !== void 0 && Sn.timeoutHeight !== null - ? gn.Long.fromValue(Sn.timeoutHeight) - : gn.Long.UZERO), - (Zn.extensionOptions = Sn.extensionOptions?.map((tn) => $.Any.fromPartial(tn)) || []), - (Zn.nonCriticalExtensionOptions = - Sn.nonCriticalExtensionOptions?.map((tn) => $.Any.fromPartial(tn)) || []), - Zn - ) - }, - } - function mn() { - return { signerInfos: [], fee: void 0, tip: void 0 } - } - e.AuthInfo = { - encode(Sn, Zn = In.Writer.create()) { - for (const tn of Sn.signerInfos) e.SignerInfo.encode(tn, Zn.uint32(10).fork()).ldelim() - return ( - Sn.fee !== void 0 && e.Fee.encode(Sn.fee, Zn.uint32(18).fork()).ldelim(), - Sn.tip !== void 0 && e.Tip.encode(Sn.tip, Zn.uint32(26).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = mn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.signerInfos.push(e.SignerInfo.decode(tn, tn.uint32())) - break - case 2: - Mn.fee = e.Fee.decode(tn, tn.uint32()) - break - case 3: - Mn.tip = e.Tip.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - signerInfos: Array.isArray(Sn?.signerInfos) - ? Sn.signerInfos.map((Zn) => e.SignerInfo.fromJSON(Zn)) - : [], - fee: (0, gn.isSet)(Sn.fee) ? e.Fee.fromJSON(Sn.fee) : void 0, - tip: (0, gn.isSet)(Sn.tip) ? e.Tip.fromJSON(Sn.tip) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.signerInfos - ? (Zn.signerInfos = Sn.signerInfos.map((tn) => (tn ? e.SignerInfo.toJSON(tn) : void 0))) - : (Zn.signerInfos = []), - Sn.fee !== void 0 && (Zn.fee = Sn.fee ? e.Fee.toJSON(Sn.fee) : void 0), - Sn.tip !== void 0 && (Zn.tip = Sn.tip ? e.Tip.toJSON(Sn.tip) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = mn() - return ( - (Zn.signerInfos = Sn.signerInfos?.map((tn) => e.SignerInfo.fromPartial(tn)) || []), - (Zn.fee = Sn.fee !== void 0 && Sn.fee !== null ? e.Fee.fromPartial(Sn.fee) : void 0), - (Zn.tip = Sn.tip !== void 0 && Sn.tip !== null ? e.Tip.fromPartial(Sn.tip) : void 0), - Zn - ) - }, - } - function Bn() { - return { publicKey: void 0, modeInfo: void 0, sequence: gn.Long.UZERO } - } - e.SignerInfo = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.publicKey !== void 0 && $.Any.encode(Sn.publicKey, Zn.uint32(10).fork()).ldelim(), - Sn.modeInfo !== void 0 && e.ModeInfo.encode(Sn.modeInfo, Zn.uint32(18).fork()).ldelim(), - Sn.sequence.isZero() || Zn.uint32(24).uint64(Sn.sequence), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Bn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.publicKey = $.Any.decode(tn, tn.uint32()) - break - case 2: - Mn.modeInfo = e.ModeInfo.decode(tn, tn.uint32()) - break - case 3: - Mn.sequence = tn.uint64() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - publicKey: (0, gn.isSet)(Sn.publicKey) ? $.Any.fromJSON(Sn.publicKey) : void 0, - modeInfo: (0, gn.isSet)(Sn.modeInfo) ? e.ModeInfo.fromJSON(Sn.modeInfo) : void 0, - sequence: (0, gn.isSet)(Sn.sequence) ? gn.Long.fromValue(Sn.sequence) : gn.Long.UZERO, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.publicKey !== void 0 && - (Zn.publicKey = Sn.publicKey ? $.Any.toJSON(Sn.publicKey) : void 0), - Sn.modeInfo !== void 0 && - (Zn.modeInfo = Sn.modeInfo ? e.ModeInfo.toJSON(Sn.modeInfo) : void 0), - Sn.sequence !== void 0 && (Zn.sequence = (Sn.sequence || gn.Long.UZERO).toString()), - Zn - ) - }, - fromPartial(Sn) { - const Zn = Bn() - return ( - (Zn.publicKey = - Sn.publicKey !== void 0 && Sn.publicKey !== null - ? $.Any.fromPartial(Sn.publicKey) - : void 0), - (Zn.modeInfo = - Sn.modeInfo !== void 0 && Sn.modeInfo !== null - ? e.ModeInfo.fromPartial(Sn.modeInfo) - : void 0), - (Zn.sequence = - Sn.sequence !== void 0 && Sn.sequence !== null - ? gn.Long.fromValue(Sn.sequence) - : gn.Long.UZERO), - Zn - ) - }, - } - function kn() { - return { single: void 0, multi: void 0 } - } - e.ModeInfo = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.single !== void 0 && e.ModeInfo_Single.encode(Sn.single, Zn.uint32(10).fork()).ldelim(), - Sn.multi !== void 0 && e.ModeInfo_Multi.encode(Sn.multi, Zn.uint32(18).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = kn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.single = e.ModeInfo_Single.decode(tn, tn.uint32()) - break - case 2: - Mn.multi = e.ModeInfo_Multi.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - single: (0, gn.isSet)(Sn.single) ? e.ModeInfo_Single.fromJSON(Sn.single) : void 0, - multi: (0, gn.isSet)(Sn.multi) ? e.ModeInfo_Multi.fromJSON(Sn.multi) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.single !== void 0 && - (Zn.single = Sn.single ? e.ModeInfo_Single.toJSON(Sn.single) : void 0), - Sn.multi !== void 0 && (Zn.multi = Sn.multi ? e.ModeInfo_Multi.toJSON(Sn.multi) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = kn() - return ( - (Zn.single = - Sn.single !== void 0 && Sn.single !== null - ? e.ModeInfo_Single.fromPartial(Sn.single) - : void 0), - (Zn.multi = - Sn.multi !== void 0 && Sn.multi !== null - ? e.ModeInfo_Multi.fromPartial(Sn.multi) - : void 0), - Zn - ) - }, - } - function ln() { - return { mode: 0 } - } - e.ModeInfo_Single = { - encode(Sn, Zn = In.Writer.create()) { - return Sn.mode !== 0 && Zn.uint32(8).int32(Sn.mode), Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = ln() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.mode = tn.int32() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { mode: (0, gn.isSet)(Sn.mode) ? (0, en.signModeFromJSON)(Sn.mode) : 0 } - }, - toJSON(Sn) { - const Zn = {} - return Sn.mode !== void 0 && (Zn.mode = (0, en.signModeToJSON)(Sn.mode)), Zn - }, - fromPartial(Sn) { - const Zn = ln() - return (Zn.mode = Sn.mode ?? 0), Zn - }, - } - function yn() { - return { bitarray: void 0, modeInfos: [] } - } - e.ModeInfo_Multi = { - encode(Sn, Zn = In.Writer.create()) { - Sn.bitarray !== void 0 && - nn.CompactBitArray.encode(Sn.bitarray, Zn.uint32(10).fork()).ldelim() - for (const tn of Sn.modeInfos) e.ModeInfo.encode(tn, Zn.uint32(18).fork()).ldelim() - return Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = yn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.bitarray = nn.CompactBitArray.decode(tn, tn.uint32()) - break - case 2: - Mn.modeInfos.push(e.ModeInfo.decode(tn, tn.uint32())) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - bitarray: (0, gn.isSet)(Sn.bitarray) ? nn.CompactBitArray.fromJSON(Sn.bitarray) : void 0, - modeInfos: Array.isArray(Sn?.modeInfos) - ? Sn.modeInfos.map((Zn) => e.ModeInfo.fromJSON(Zn)) - : [], - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.bitarray !== void 0 && - (Zn.bitarray = Sn.bitarray ? nn.CompactBitArray.toJSON(Sn.bitarray) : void 0), - Sn.modeInfos - ? (Zn.modeInfos = Sn.modeInfos.map((tn) => (tn ? e.ModeInfo.toJSON(tn) : void 0))) - : (Zn.modeInfos = []), - Zn - ) - }, - fromPartial(Sn) { - const Zn = yn() - return ( - (Zn.bitarray = - Sn.bitarray !== void 0 && Sn.bitarray !== null - ? nn.CompactBitArray.fromPartial(Sn.bitarray) - : void 0), - (Zn.modeInfos = Sn.modeInfos?.map((tn) => e.ModeInfo.fromPartial(tn)) || []), - Zn - ) - }, - } - function Cn() { - return { amount: [], gasLimit: gn.Long.UZERO, payer: '', granter: '' } - } - e.Fee = { - encode(Sn, Zn = In.Writer.create()) { - for (const tn of Sn.amount) sn.Coin.encode(tn, Zn.uint32(10).fork()).ldelim() - return ( - Sn.gasLimit.isZero() || Zn.uint32(16).uint64(Sn.gasLimit), - Sn.payer !== '' && Zn.uint32(26).string(Sn.payer), - Sn.granter !== '' && Zn.uint32(34).string(Sn.granter), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Cn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.amount.push(sn.Coin.decode(tn, tn.uint32())) - break - case 2: - Mn.gasLimit = tn.uint64() - break - case 3: - Mn.payer = tn.string() - break - case 4: - Mn.granter = tn.string() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - amount: Array.isArray(Sn?.amount) ? Sn.amount.map((Zn) => sn.Coin.fromJSON(Zn)) : [], - gasLimit: (0, gn.isSet)(Sn.gasLimit) ? gn.Long.fromValue(Sn.gasLimit) : gn.Long.UZERO, - payer: (0, gn.isSet)(Sn.payer) ? String(Sn.payer) : '', - granter: (0, gn.isSet)(Sn.granter) ? String(Sn.granter) : '', - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.amount - ? (Zn.amount = Sn.amount.map((tn) => (tn ? sn.Coin.toJSON(tn) : void 0))) - : (Zn.amount = []), - Sn.gasLimit !== void 0 && (Zn.gasLimit = (Sn.gasLimit || gn.Long.UZERO).toString()), - Sn.payer !== void 0 && (Zn.payer = Sn.payer), - Sn.granter !== void 0 && (Zn.granter = Sn.granter), - Zn - ) - }, - fromPartial(Sn) { - const Zn = Cn() - return ( - (Zn.amount = Sn.amount?.map((tn) => sn.Coin.fromPartial(tn)) || []), - (Zn.gasLimit = - Sn.gasLimit !== void 0 && Sn.gasLimit !== null - ? gn.Long.fromValue(Sn.gasLimit) - : gn.Long.UZERO), - (Zn.payer = Sn.payer ?? ''), - (Zn.granter = Sn.granter ?? ''), - Zn - ) - }, - } - function Tn() { - return { amount: [], tipper: '' } - } - e.Tip = { - encode(Sn, Zn = In.Writer.create()) { - for (const tn of Sn.amount) sn.Coin.encode(tn, Zn.uint32(10).fork()).ldelim() - return Sn.tipper !== '' && Zn.uint32(18).string(Sn.tipper), Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Tn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.amount.push(sn.Coin.decode(tn, tn.uint32())) - break - case 2: - Mn.tipper = tn.string() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - amount: Array.isArray(Sn?.amount) ? Sn.amount.map((Zn) => sn.Coin.fromJSON(Zn)) : [], - tipper: (0, gn.isSet)(Sn.tipper) ? String(Sn.tipper) : '', - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.amount - ? (Zn.amount = Sn.amount.map((tn) => (tn ? sn.Coin.toJSON(tn) : void 0))) - : (Zn.amount = []), - Sn.tipper !== void 0 && (Zn.tipper = Sn.tipper), - Zn - ) - }, - fromPartial(Sn) { - const Zn = Tn() - return ( - (Zn.amount = Sn.amount?.map((tn) => sn.Coin.fromPartial(tn)) || []), - (Zn.tipper = Sn.tipper ?? ''), - Zn - ) - }, - } - function Gn() { - return { address: '', signDoc: void 0, mode: 0, sig: new Uint8Array() } - } - e.AuxSignerData = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.address !== '' && Zn.uint32(10).string(Sn.address), - Sn.signDoc !== void 0 && - e.SignDocDirectAux.encode(Sn.signDoc, Zn.uint32(18).fork()).ldelim(), - Sn.mode !== 0 && Zn.uint32(24).int32(Sn.mode), - Sn.sig.length !== 0 && Zn.uint32(34).bytes(Sn.sig), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Gn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.address = tn.string() - break - case 2: - Mn.signDoc = e.SignDocDirectAux.decode(tn, tn.uint32()) - break - case 3: - Mn.mode = tn.int32() - break - case 4: - Mn.sig = tn.bytes() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - address: (0, gn.isSet)(Sn.address) ? String(Sn.address) : '', - signDoc: (0, gn.isSet)(Sn.signDoc) ? e.SignDocDirectAux.fromJSON(Sn.signDoc) : void 0, - mode: (0, gn.isSet)(Sn.mode) ? (0, en.signModeFromJSON)(Sn.mode) : 0, - sig: (0, gn.isSet)(Sn.sig) ? (0, gn.bytesFromBase64)(Sn.sig) : new Uint8Array(), - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.address !== void 0 && (Zn.address = Sn.address), - Sn.signDoc !== void 0 && - (Zn.signDoc = Sn.signDoc ? e.SignDocDirectAux.toJSON(Sn.signDoc) : void 0), - Sn.mode !== void 0 && (Zn.mode = (0, en.signModeToJSON)(Sn.mode)), - Sn.sig !== void 0 && - (Zn.sig = (0, gn.base64FromBytes)(Sn.sig !== void 0 ? Sn.sig : new Uint8Array())), - Zn - ) - }, - fromPartial(Sn) { - const Zn = Gn() - return ( - (Zn.address = Sn.address ?? ''), - (Zn.signDoc = - Sn.signDoc !== void 0 && Sn.signDoc !== null - ? e.SignDocDirectAux.fromPartial(Sn.signDoc) - : void 0), - (Zn.mode = Sn.mode ?? 0), - (Zn.sig = Sn.sig ?? new Uint8Array()), - Zn - ) - }, - } -})(tx$e) -Object.defineProperty(decode, '__esModule', { value: !0 }) -decode.decodeTxRaw = void 0 -const tx_1$f = tx$e -function decodeTxRaw(e) { - const o = tx_1$f.TxRaw.decode(e) - return { - authInfo: tx_1$f.AuthInfo.decode(o.authInfoBytes), - body: tx_1$f.TxBody.decode(o.bodyBytes), - signatures: o.signatures, - } -} -decode.decodeTxRaw = decodeTxRaw -var directsecp256k1hdwallet = {}, - build$7 = {}, - addresses$1 = {}, - build$6 = {}, - bip39 = {}, - pbkdf2$2 = {}, - build$5 = {}, - arrays = {} -Object.defineProperty(arrays, '__esModule', { value: !0 }) -arrays.arrayContentStartsWith = arrays.arrayContentEquals = void 0 -function arrayContentEquals(e, o) { - if (e.length !== o.length) return !1 - for (let _ = 0; _ < e.length; ++_) if (e[_] !== o[_]) return !1 - return !0 -} -arrays.arrayContentEquals = arrayContentEquals -function arrayContentStartsWith(e, o) { - if (e.length < o.length) return !1 - for (let _ = 0; _ < o.length; ++_) if (e[_] !== o[_]) return !1 - return !0 -} -arrays.arrayContentStartsWith = arrayContentStartsWith -var assert$i = {} -Object.defineProperty(assert$i, '__esModule', { value: !0 }) -assert$i.assertDefinedAndNotNull = assert$i.assertDefined = assert$i.assert = void 0 -function assert$h(e, o) { - if (!e) throw new Error(o || 'condition is not truthy') -} -assert$i.assert = assert$h -function assertDefined(e, o) { - if (e === void 0) throw new Error(o ?? 'value is undefined') -} -assert$i.assertDefined = assertDefined -function assertDefinedAndNotNull(e, o) { - if (e == null) throw new Error(o ?? 'value is undefined or null') -} -assert$i.assertDefinedAndNotNull = assertDefinedAndNotNull -var sleep$1 = {} -Object.defineProperty(sleep$1, '__esModule', { value: !0 }) -sleep$1.sleep = void 0 -async function sleep(e) { - return new Promise((o) => setTimeout(o, e)) -} -sleep$1.sleep = sleep -var typechecks = {} -Object.defineProperty(typechecks, '__esModule', { value: !0 }) -typechecks.isDefined = typechecks.isUint8Array = typechecks.isNonNullObject = void 0 -function isNonNullObject(e) { - return typeof e == 'object' && e !== null -} -typechecks.isNonNullObject = isNonNullObject -function isUint8Array(e) { - return !( - !isNonNullObject(e) || - Object.prototype.toString.call(e) !== '[object Uint8Array]' || - (typeof Buffer < 'u' && typeof Buffer.isBuffer < 'u' && Buffer.isBuffer(e)) - ) -} -typechecks.isUint8Array = isUint8Array -function isDefined(e) { - return e !== void 0 -} -typechecks.isDefined = isDefined -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.isUint8Array = - e.isNonNullObject = - e.isDefined = - e.sleep = - e.assertDefinedAndNotNull = - e.assertDefined = - e.assert = - e.arrayContentStartsWith = - e.arrayContentEquals = - void 0) - var o = arrays - Object.defineProperty(e, 'arrayContentEquals', { - enumerable: !0, - get: function () { - return o.arrayContentEquals - }, - }), - Object.defineProperty(e, 'arrayContentStartsWith', { - enumerable: !0, - get: function () { - return o.arrayContentStartsWith - }, - }) - var _ = assert$i - Object.defineProperty(e, 'assert', { - enumerable: !0, - get: function () { - return _.assert - }, - }), - Object.defineProperty(e, 'assertDefined', { - enumerable: !0, - get: function () { - return _.assertDefined - }, - }), - Object.defineProperty(e, 'assertDefinedAndNotNull', { - enumerable: !0, - get: function () { - return _.assertDefinedAndNotNull - }, - }) - var b = sleep$1 - Object.defineProperty(e, 'sleep', { - enumerable: !0, - get: function () { - return b.sleep - }, - }) - var $ = typechecks - Object.defineProperty(e, 'isDefined', { - enumerable: !0, - get: function () { - return $.isDefined - }, - }), - Object.defineProperty(e, 'isNonNullObject', { - enumerable: !0, - get: function () { - return $.isNonNullObject - }, - }), - Object.defineProperty(e, 'isUint8Array', { - enumerable: !0, - get: function () { - return $.isUint8Array - }, - }) -})(build$5) -var pbkdf2$1 = {}, - _assert = {} -Object.defineProperty(_assert, '__esModule', { value: !0 }) -_assert.output = - _assert.exists = - _assert.hash = - _assert.bytes = - _assert.bool = - _assert.number = - void 0 -function number(e) { - if (!Number.isSafeInteger(e) || e < 0) throw new Error(`Wrong positive integer: ${e}`) -} -_assert.number = number -function bool(e) { - if (typeof e != 'boolean') throw new Error(`Expected boolean, not ${e}`) -} -_assert.bool = bool -function bytes(e, ...o) { - if (!(e instanceof Uint8Array)) throw new Error('Expected Uint8Array') - if (o.length > 0 && !o.includes(e.length)) - throw new Error(`Expected Uint8Array of length ${o}, not of length=${e.length}`) -} -_assert.bytes = bytes -function hash$3(e) { - if (typeof e != 'function' || typeof e.create != 'function') - throw new Error('Hash should be wrapped by utils.wrapConstructor') - number(e.outputLen), number(e.blockLen) -} -_assert.hash = hash$3 -function exists(e, o = !0) { - if (e.destroyed) throw new Error('Hash instance has been destroyed') - if (o && e.finished) throw new Error('Hash#digest() has already been called') -} -_assert.exists = exists -function output(e, o) { - bytes(e) - const _ = o.outputLen - if (e.length < _) throw new Error(`digestInto() expects output buffer of length at least ${_}`) -} -_assert.output = output -const assert$g = { number, bool, bytes, hash: hash$3, exists, output } -_assert.default = assert$g -var hmac$2 = {}, - utils$z = {}, - crypto$1 = {} -Object.defineProperty(crypto$1, '__esModule', { value: !0 }) -crypto$1.crypto = void 0 -crypto$1.crypto = - typeof globalThis == 'object' && 'crypto' in globalThis ? globalThis.crypto : void 0 -;(function (e) { - /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ Object.defineProperty( - e, - '__esModule', - { value: !0 }, - ), - (e.randomBytes = - e.wrapXOFConstructorWithOpts = - e.wrapConstructorWithOpts = - e.wrapConstructor = - e.checkOpts = - e.Hash = - e.concatBytes = - e.toBytes = - e.utf8ToBytes = - e.asyncLoop = - e.nextTick = - e.hexToBytes = - e.bytesToHex = - e.isLE = - e.rotr = - e.createView = - e.u32 = - e.u8 = - void 0) - const o = crypto$1, - _ = (Gn) => Gn instanceof Uint8Array, - b = (Gn) => new Uint8Array(Gn.buffer, Gn.byteOffset, Gn.byteLength) - e.u8 = b - const $ = (Gn) => new Uint32Array(Gn.buffer, Gn.byteOffset, Math.floor(Gn.byteLength / 4)) - e.u32 = $ - const en = (Gn) => new DataView(Gn.buffer, Gn.byteOffset, Gn.byteLength) - e.createView = en - const nn = (Gn, Sn) => (Gn << (32 - Sn)) | (Gn >>> Sn) - if ( - ((e.rotr = nn), - (e.isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68), - !e.isLE) - ) - throw new Error('Non little-endian hardware is not supported') - const sn = Array.from({ length: 256 }, (Gn, Sn) => Sn.toString(16).padStart(2, '0')) - function gn(Gn) { - if (!_(Gn)) throw new Error('Uint8Array expected') - let Sn = '' - for (let Zn = 0; Zn < Gn.length; Zn++) Sn += sn[Gn[Zn]] - return Sn - } - e.bytesToHex = gn - function In(Gn) { - if (typeof Gn != 'string') throw new Error('hex string expected, got ' + typeof Gn) - const Sn = Gn.length - if (Sn % 2) throw new Error('padded hex string expected, got unpadded hex of length ' + Sn) - const Zn = new Uint8Array(Sn / 2) - for (let tn = 0; tn < Zn.length; tn++) { - const En = tn * 2, - Mn = Gn.slice(En, En + 2), - Hn = Number.parseInt(Mn, 16) - if (Number.isNaN(Hn) || Hn < 0) throw new Error('Invalid byte sequence') - Zn[tn] = Hn - } - return Zn - } - e.hexToBytes = In - const Jn = async () => {} - e.nextTick = Jn - async function qn(Gn, Sn, Zn) { - let tn = Date.now() - for (let En = 0; En < Gn; En++) { - Zn(En) - const Mn = Date.now() - tn - ;(Mn >= 0 && Mn < Sn) || (await (0, e.nextTick)(), (tn += Mn)) - } - } - e.asyncLoop = qn - function Kn(Gn) { - if (typeof Gn != 'string') throw new Error(`utf8ToBytes expected string, got ${typeof Gn}`) - return new Uint8Array(new TextEncoder().encode(Gn)) - } - e.utf8ToBytes = Kn - function an(Gn) { - if ((typeof Gn == 'string' && (Gn = Kn(Gn)), !_(Gn))) - throw new Error(`expected Uint8Array, got ${typeof Gn}`) - return Gn - } - e.toBytes = an - function xn(...Gn) { - const Sn = new Uint8Array(Gn.reduce((tn, En) => tn + En.length, 0)) - let Zn = 0 - return ( - Gn.forEach((tn) => { - if (!_(tn)) throw new Error('Uint8Array expected') - Sn.set(tn, Zn), (Zn += tn.length) - }), - Sn - ) - } - e.concatBytes = xn - class mn { - clone() { - return this._cloneInto() - } - } - e.Hash = mn - const Bn = (Gn) => - Object.prototype.toString.call(Gn) === '[object Object]' && Gn.constructor === Object - function kn(Gn, Sn) { - if (Sn !== void 0 && (typeof Sn != 'object' || !Bn(Sn))) - throw new Error('Options should be object or undefined') - return Object.assign(Gn, Sn) - } - e.checkOpts = kn - function ln(Gn) { - const Sn = (tn) => Gn().update(an(tn)).digest(), - Zn = Gn() - return (Sn.outputLen = Zn.outputLen), (Sn.blockLen = Zn.blockLen), (Sn.create = () => Gn()), Sn - } - e.wrapConstructor = ln - function yn(Gn) { - const Sn = (tn, En) => Gn(En).update(an(tn)).digest(), - Zn = Gn({}) - return ( - (Sn.outputLen = Zn.outputLen), (Sn.blockLen = Zn.blockLen), (Sn.create = (tn) => Gn(tn)), Sn - ) - } - e.wrapConstructorWithOpts = yn - function Cn(Gn) { - const Sn = (tn, En) => Gn(En).update(an(tn)).digest(), - Zn = Gn({}) - return ( - (Sn.outputLen = Zn.outputLen), (Sn.blockLen = Zn.blockLen), (Sn.create = (tn) => Gn(tn)), Sn - ) - } - e.wrapXOFConstructorWithOpts = Cn - function Tn(Gn = 32) { - if (o.crypto && typeof o.crypto.getRandomValues == 'function') - return o.crypto.getRandomValues(new Uint8Array(Gn)) - throw new Error('crypto.getRandomValues must be defined') - } - e.randomBytes = Tn -})(utils$z) -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), (e.hmac = e.HMAC = void 0) - const o = _assert, - _ = utils$z - class b extends _.Hash { - constructor(nn, sn) { - super(), (this.finished = !1), (this.destroyed = !1), o.default.hash(nn) - const gn = (0, _.toBytes)(sn) - if (((this.iHash = nn.create()), typeof this.iHash.update != 'function')) - throw new Error('Expected instance of class which extends utils.Hash') - ;(this.blockLen = this.iHash.blockLen), (this.outputLen = this.iHash.outputLen) - const In = this.blockLen, - Jn = new Uint8Array(In) - Jn.set(gn.length > In ? nn.create().update(gn).digest() : gn) - for (let qn = 0; qn < Jn.length; qn++) Jn[qn] ^= 54 - this.iHash.update(Jn), (this.oHash = nn.create()) - for (let qn = 0; qn < Jn.length; qn++) Jn[qn] ^= 106 - this.oHash.update(Jn), Jn.fill(0) - } - update(nn) { - return o.default.exists(this), this.iHash.update(nn), this - } - digestInto(nn) { - o.default.exists(this), - o.default.bytes(nn, this.outputLen), - (this.finished = !0), - this.iHash.digestInto(nn), - this.oHash.update(nn), - this.oHash.digestInto(nn), - this.destroy() - } - digest() { - const nn = new Uint8Array(this.oHash.outputLen) - return this.digestInto(nn), nn - } - _cloneInto(nn) { - nn || (nn = Object.create(Object.getPrototypeOf(this), {})) - const { - oHash: sn, - iHash: gn, - finished: In, - destroyed: Jn, - blockLen: qn, - outputLen: Kn, - } = this - return ( - (nn = nn), - (nn.finished = In), - (nn.destroyed = Jn), - (nn.blockLen = qn), - (nn.outputLen = Kn), - (nn.oHash = sn._cloneInto(nn.oHash)), - (nn.iHash = gn._cloneInto(nn.iHash)), - nn - ) - } - destroy() { - ;(this.destroyed = !0), this.oHash.destroy(), this.iHash.destroy() - } - } - e.HMAC = b - const $ = (en, nn, sn) => new b(en, nn).update(sn).digest() - ;(e.hmac = $), (e.hmac.create = (en, nn) => new b(en, nn)) -})(hmac$2) -Object.defineProperty(pbkdf2$1, '__esModule', { value: !0 }) -pbkdf2$1.pbkdf2Async = pbkdf2$1.pbkdf2 = void 0 -const _assert_js_1$2 = _assert, - hmac_js_1 = hmac$2, - utils_js_1$5 = utils$z -function pbkdf2Init(e, o, _, b) { - _assert_js_1$2.default.hash(e) - const $ = (0, utils_js_1$5.checkOpts)({ dkLen: 32, asyncTick: 10 }, b), - { c: en, dkLen: nn, asyncTick: sn } = $ - if ( - (_assert_js_1$2.default.number(en), - _assert_js_1$2.default.number(nn), - _assert_js_1$2.default.number(sn), - en < 1) - ) - throw new Error('PBKDF2: iterations (c) should be >= 1') - const gn = (0, utils_js_1$5.toBytes)(o), - In = (0, utils_js_1$5.toBytes)(_), - Jn = new Uint8Array(nn), - qn = hmac_js_1.hmac.create(e, gn), - Kn = qn._cloneInto().update(In) - return { c: en, dkLen: nn, asyncTick: sn, DK: Jn, PRF: qn, PRFSalt: Kn } -} -function pbkdf2Output(e, o, _, b, $) { - return e.destroy(), o.destroy(), b && b.destroy(), $.fill(0), _ -} -function pbkdf2(e, o, _, b) { - const { c: $, dkLen: en, DK: nn, PRF: sn, PRFSalt: gn } = pbkdf2Init(e, o, _, b) - let In - const Jn = new Uint8Array(4), - qn = (0, utils_js_1$5.createView)(Jn), - Kn = new Uint8Array(sn.outputLen) - for (let an = 1, xn = 0; xn < en; an++, xn += sn.outputLen) { - const mn = nn.subarray(xn, xn + sn.outputLen) - qn.setInt32(0, an, !1), - (In = gn._cloneInto(In)).update(Jn).digestInto(Kn), - mn.set(Kn.subarray(0, mn.length)) - for (let Bn = 1; Bn < $; Bn++) { - sn._cloneInto(In).update(Kn).digestInto(Kn) - for (let kn = 0; kn < mn.length; kn++) mn[kn] ^= Kn[kn] - } - } - return pbkdf2Output(sn, gn, nn, In, Kn) -} -pbkdf2$1.pbkdf2 = pbkdf2 -async function pbkdf2Async(e, o, _, b) { - const { c: $, dkLen: en, asyncTick: nn, DK: sn, PRF: gn, PRFSalt: In } = pbkdf2Init(e, o, _, b) - let Jn - const qn = new Uint8Array(4), - Kn = (0, utils_js_1$5.createView)(qn), - an = new Uint8Array(gn.outputLen) - for (let xn = 1, mn = 0; mn < en; xn++, mn += gn.outputLen) { - const Bn = sn.subarray(mn, mn + gn.outputLen) - Kn.setInt32(0, xn, !1), - (Jn = In._cloneInto(Jn)).update(qn).digestInto(an), - Bn.set(an.subarray(0, Bn.length)), - await (0, utils_js_1$5.asyncLoop)($ - 1, nn, (kn) => { - gn._cloneInto(Jn).update(an).digestInto(an) - for (let ln = 0; ln < Bn.length; ln++) Bn[ln] ^= an[ln] - }) - } - return pbkdf2Output(gn, In, sn, Jn, an) -} -pbkdf2$1.pbkdf2Async = pbkdf2Async -var sha512$1 = {}, - _sha2 = {} -Object.defineProperty(_sha2, '__esModule', { value: !0 }) -_sha2.SHA2 = void 0 -const _assert_js_1$1 = _assert, - utils_js_1$4 = utils$z -function setBigUint64(e, o, _, b) { - if (typeof e.setBigUint64 == 'function') return e.setBigUint64(o, _, b) - const $ = BigInt(32), - en = BigInt(4294967295), - nn = Number((_ >> $) & en), - sn = Number(_ & en), - gn = b ? 4 : 0, - In = b ? 0 : 4 - e.setUint32(o + gn, nn, b), e.setUint32(o + In, sn, b) -} -class SHA2 extends utils_js_1$4.Hash { - constructor(o, _, b, $) { - super(), - (this.blockLen = o), - (this.outputLen = _), - (this.padOffset = b), - (this.isLE = $), - (this.finished = !1), - (this.length = 0), - (this.pos = 0), - (this.destroyed = !1), - (this.buffer = new Uint8Array(o)), - (this.view = (0, utils_js_1$4.createView)(this.buffer)) - } - update(o) { - _assert_js_1$1.default.exists(this) - const { view: _, buffer: b, blockLen: $ } = this - o = (0, utils_js_1$4.toBytes)(o) - const en = o.length - for (let nn = 0; nn < en; ) { - const sn = Math.min($ - this.pos, en - nn) - if (sn === $) { - const gn = (0, utils_js_1$4.createView)(o) - for (; $ <= en - nn; nn += $) this.process(gn, nn) - continue - } - b.set(o.subarray(nn, nn + sn), this.pos), - (this.pos += sn), - (nn += sn), - this.pos === $ && (this.process(_, 0), (this.pos = 0)) - } - return (this.length += o.length), this.roundClean(), this - } - digestInto(o) { - _assert_js_1$1.default.exists(this), - _assert_js_1$1.default.output(o, this), - (this.finished = !0) - const { buffer: _, view: b, blockLen: $, isLE: en } = this - let { pos: nn } = this - ;(_[nn++] = 128), - this.buffer.subarray(nn).fill(0), - this.padOffset > $ - nn && (this.process(b, 0), (nn = 0)) - for (let qn = nn; qn < $; qn++) _[qn] = 0 - setBigUint64(b, $ - 8, BigInt(this.length * 8), en), this.process(b, 0) - const sn = (0, utils_js_1$4.createView)(o), - gn = this.outputLen - if (gn % 4) throw new Error('_sha2: outputLen should be aligned to 32bit') - const In = gn / 4, - Jn = this.get() - if (In > Jn.length) throw new Error('_sha2: outputLen bigger than state') - for (let qn = 0; qn < In; qn++) sn.setUint32(4 * qn, Jn[qn], en) - } - digest() { - const { buffer: o, outputLen: _ } = this - this.digestInto(o) - const b = o.slice(0, _) - return this.destroy(), b - } - _cloneInto(o) { - o || (o = new this.constructor()), o.set(...this.get()) - const { blockLen: _, buffer: b, length: $, finished: en, destroyed: nn, pos: sn } = this - return ( - (o.length = $), - (o.pos = sn), - (o.finished = en), - (o.destroyed = nn), - $ % _ && o.buffer.set(b), - o - ) - } -} -_sha2.SHA2 = SHA2 -var _u64 = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.add = e.toBig = e.split = e.fromBig = void 0) - const o = BigInt(2 ** 32 - 1), - _ = BigInt(32) - function b(En, Mn = !1) { - return Mn - ? { h: Number(En & o), l: Number((En >> _) & o) } - : { h: Number((En >> _) & o) | 0, l: Number(En & o) | 0 } - } - e.fromBig = b - function $(En, Mn = !1) { - let Hn = new Uint32Array(En.length), - un = new Uint32Array(En.length) - for (let dn = 0; dn < En.length; dn++) { - const { h: Nn, l: fn } = b(En[dn], Mn) - ;[Hn[dn], un[dn]] = [Nn, fn] - } - return [Hn, un] - } - e.split = $ - const en = (En, Mn) => (BigInt(En >>> 0) << _) | BigInt(Mn >>> 0) - e.toBig = en - const nn = (En, Mn, Hn) => En >>> Hn, - sn = (En, Mn, Hn) => (En << (32 - Hn)) | (Mn >>> Hn), - gn = (En, Mn, Hn) => (En >>> Hn) | (Mn << (32 - Hn)), - In = (En, Mn, Hn) => (En << (32 - Hn)) | (Mn >>> Hn), - Jn = (En, Mn, Hn) => (En << (64 - Hn)) | (Mn >>> (Hn - 32)), - qn = (En, Mn, Hn) => (En >>> (Hn - 32)) | (Mn << (64 - Hn)), - Kn = (En, Mn) => Mn, - an = (En, Mn) => En, - xn = (En, Mn, Hn) => (En << Hn) | (Mn >>> (32 - Hn)), - mn = (En, Mn, Hn) => (Mn << Hn) | (En >>> (32 - Hn)), - Bn = (En, Mn, Hn) => (Mn << (Hn - 32)) | (En >>> (64 - Hn)), - kn = (En, Mn, Hn) => (En << (Hn - 32)) | (Mn >>> (64 - Hn)) - function ln(En, Mn, Hn, un) { - const dn = (Mn >>> 0) + (un >>> 0) - return { h: (En + Hn + ((dn / 2 ** 32) | 0)) | 0, l: dn | 0 } - } - e.add = ln - const yn = (En, Mn, Hn) => (En >>> 0) + (Mn >>> 0) + (Hn >>> 0), - Cn = (En, Mn, Hn, un) => (Mn + Hn + un + ((En / 2 ** 32) | 0)) | 0, - Tn = (En, Mn, Hn, un) => (En >>> 0) + (Mn >>> 0) + (Hn >>> 0) + (un >>> 0), - Gn = (En, Mn, Hn, un, dn) => (Mn + Hn + un + dn + ((En / 2 ** 32) | 0)) | 0, - Sn = (En, Mn, Hn, un, dn) => (En >>> 0) + (Mn >>> 0) + (Hn >>> 0) + (un >>> 0) + (dn >>> 0), - Zn = (En, Mn, Hn, un, dn, Nn) => (Mn + Hn + un + dn + Nn + ((En / 2 ** 32) | 0)) | 0, - tn = { - fromBig: b, - split: $, - toBig: e.toBig, - shrSH: nn, - shrSL: sn, - rotrSH: gn, - rotrSL: In, - rotrBH: Jn, - rotrBL: qn, - rotr32H: Kn, - rotr32L: an, - rotlSH: xn, - rotlSL: mn, - rotlBH: Bn, - rotlBL: kn, - add: ln, - add3L: yn, - add3H: Cn, - add4L: Tn, - add4H: Gn, - add5H: Zn, - add5L: Sn, - } - e.default = tn -})(_u64) -Object.defineProperty(sha512$1, '__esModule', { value: !0 }) -sha512$1.sha384 = - sha512$1.sha512_256 = - sha512$1.sha512_224 = - sha512$1.sha512 = - sha512$1.SHA512 = - void 0 -const _sha2_js_1$2 = _sha2, - _u64_js_1$1 = _u64, - utils_js_1$3 = utils$z, - [SHA512_Kh, SHA512_Kl] = _u64_js_1$1.default.split( - [ - '0x428a2f98d728ae22', - '0x7137449123ef65cd', - '0xb5c0fbcfec4d3b2f', - '0xe9b5dba58189dbbc', - '0x3956c25bf348b538', - '0x59f111f1b605d019', - '0x923f82a4af194f9b', - '0xab1c5ed5da6d8118', - '0xd807aa98a3030242', - '0x12835b0145706fbe', - '0x243185be4ee4b28c', - '0x550c7dc3d5ffb4e2', - '0x72be5d74f27b896f', - '0x80deb1fe3b1696b1', - '0x9bdc06a725c71235', - '0xc19bf174cf692694', - '0xe49b69c19ef14ad2', - '0xefbe4786384f25e3', - '0x0fc19dc68b8cd5b5', - '0x240ca1cc77ac9c65', - '0x2de92c6f592b0275', - '0x4a7484aa6ea6e483', - '0x5cb0a9dcbd41fbd4', - '0x76f988da831153b5', - '0x983e5152ee66dfab', - '0xa831c66d2db43210', - '0xb00327c898fb213f', - '0xbf597fc7beef0ee4', - '0xc6e00bf33da88fc2', - '0xd5a79147930aa725', - '0x06ca6351e003826f', - '0x142929670a0e6e70', - '0x27b70a8546d22ffc', - '0x2e1b21385c26c926', - '0x4d2c6dfc5ac42aed', - '0x53380d139d95b3df', - '0x650a73548baf63de', - '0x766a0abb3c77b2a8', - '0x81c2c92e47edaee6', - '0x92722c851482353b', - '0xa2bfe8a14cf10364', - '0xa81a664bbc423001', - '0xc24b8b70d0f89791', - '0xc76c51a30654be30', - '0xd192e819d6ef5218', - '0xd69906245565a910', - '0xf40e35855771202a', - '0x106aa07032bbd1b8', - '0x19a4c116b8d2d0c8', - '0x1e376c085141ab53', - '0x2748774cdf8eeb99', - '0x34b0bcb5e19b48a8', - '0x391c0cb3c5c95a63', - '0x4ed8aa4ae3418acb', - '0x5b9cca4f7763e373', - '0x682e6ff3d6b2b8a3', - '0x748f82ee5defb2fc', - '0x78a5636f43172f60', - '0x84c87814a1f0ab72', - '0x8cc702081a6439ec', - '0x90befffa23631e28', - '0xa4506cebde82bde9', - '0xbef9a3f7b2c67915', - '0xc67178f2e372532b', - '0xca273eceea26619c', - '0xd186b8c721c0c207', - '0xeada7dd6cde0eb1e', - '0xf57d4f7fee6ed178', - '0x06f067aa72176fba', - '0x0a637dc5a2c898a6', - '0x113f9804bef90dae', - '0x1b710b35131c471b', - '0x28db77f523047d84', - '0x32caab7b40c72493', - '0x3c9ebe0a15c9bebc', - '0x431d67c49c100d4c', - '0x4cc5d4becb3e42b6', - '0x597f299cfc657e2a', - '0x5fcb6fab3ad6faec', - '0x6c44198c4a475817', - ].map((e) => BigInt(e)), - ), - SHA512_W_H = new Uint32Array(80), - SHA512_W_L = new Uint32Array(80) -let SHA512$2 = class extends _sha2_js_1$2.SHA2 { - constructor() { - super(128, 64, 16, !1), - (this.Ah = 1779033703), - (this.Al = -205731576), - (this.Bh = -1150833019), - (this.Bl = -2067093701), - (this.Ch = 1013904242), - (this.Cl = -23791573), - (this.Dh = -1521486534), - (this.Dl = 1595750129), - (this.Eh = 1359893119), - (this.El = -1377402159), - (this.Fh = -1694144372), - (this.Fl = 725511199), - (this.Gh = 528734635), - (this.Gl = -79577749), - (this.Hh = 1541459225), - (this.Hl = 327033209) - } - get() { - const { - Ah: o, - Al: _, - Bh: b, - Bl: $, - Ch: en, - Cl: nn, - Dh: sn, - Dl: gn, - Eh: In, - El: Jn, - Fh: qn, - Fl: Kn, - Gh: an, - Gl: xn, - Hh: mn, - Hl: Bn, - } = this - return [o, _, b, $, en, nn, sn, gn, In, Jn, qn, Kn, an, xn, mn, Bn] - } - set(o, _, b, $, en, nn, sn, gn, In, Jn, qn, Kn, an, xn, mn, Bn) { - ;(this.Ah = o | 0), - (this.Al = _ | 0), - (this.Bh = b | 0), - (this.Bl = $ | 0), - (this.Ch = en | 0), - (this.Cl = nn | 0), - (this.Dh = sn | 0), - (this.Dl = gn | 0), - (this.Eh = In | 0), - (this.El = Jn | 0), - (this.Fh = qn | 0), - (this.Fl = Kn | 0), - (this.Gh = an | 0), - (this.Gl = xn | 0), - (this.Hh = mn | 0), - (this.Hl = Bn | 0) - } - process(o, _) { - for (let yn = 0; yn < 16; yn++, _ += 4) - (SHA512_W_H[yn] = o.getUint32(_)), (SHA512_W_L[yn] = o.getUint32((_ += 4))) - for (let yn = 16; yn < 80; yn++) { - const Cn = SHA512_W_H[yn - 15] | 0, - Tn = SHA512_W_L[yn - 15] | 0, - Gn = - _u64_js_1$1.default.rotrSH(Cn, Tn, 1) ^ - _u64_js_1$1.default.rotrSH(Cn, Tn, 8) ^ - _u64_js_1$1.default.shrSH(Cn, Tn, 7), - Sn = - _u64_js_1$1.default.rotrSL(Cn, Tn, 1) ^ - _u64_js_1$1.default.rotrSL(Cn, Tn, 8) ^ - _u64_js_1$1.default.shrSL(Cn, Tn, 7), - Zn = SHA512_W_H[yn - 2] | 0, - tn = SHA512_W_L[yn - 2] | 0, - En = - _u64_js_1$1.default.rotrSH(Zn, tn, 19) ^ - _u64_js_1$1.default.rotrBH(Zn, tn, 61) ^ - _u64_js_1$1.default.shrSH(Zn, tn, 6), - Mn = - _u64_js_1$1.default.rotrSL(Zn, tn, 19) ^ - _u64_js_1$1.default.rotrBL(Zn, tn, 61) ^ - _u64_js_1$1.default.shrSL(Zn, tn, 6), - Hn = _u64_js_1$1.default.add4L(Sn, Mn, SHA512_W_L[yn - 7], SHA512_W_L[yn - 16]), - un = _u64_js_1$1.default.add4H(Hn, Gn, En, SHA512_W_H[yn - 7], SHA512_W_H[yn - 16]) - ;(SHA512_W_H[yn] = un | 0), (SHA512_W_L[yn] = Hn | 0) - } - let { - Ah: b, - Al: $, - Bh: en, - Bl: nn, - Ch: sn, - Cl: gn, - Dh: In, - Dl: Jn, - Eh: qn, - El: Kn, - Fh: an, - Fl: xn, - Gh: mn, - Gl: Bn, - Hh: kn, - Hl: ln, - } = this - for (let yn = 0; yn < 80; yn++) { - const Cn = - _u64_js_1$1.default.rotrSH(qn, Kn, 14) ^ - _u64_js_1$1.default.rotrSH(qn, Kn, 18) ^ - _u64_js_1$1.default.rotrBH(qn, Kn, 41), - Tn = - _u64_js_1$1.default.rotrSL(qn, Kn, 14) ^ - _u64_js_1$1.default.rotrSL(qn, Kn, 18) ^ - _u64_js_1$1.default.rotrBL(qn, Kn, 41), - Gn = (qn & an) ^ (~qn & mn), - Sn = (Kn & xn) ^ (~Kn & Bn), - Zn = _u64_js_1$1.default.add5L(ln, Tn, Sn, SHA512_Kl[yn], SHA512_W_L[yn]), - tn = _u64_js_1$1.default.add5H(Zn, kn, Cn, Gn, SHA512_Kh[yn], SHA512_W_H[yn]), - En = Zn | 0, - Mn = - _u64_js_1$1.default.rotrSH(b, $, 28) ^ - _u64_js_1$1.default.rotrBH(b, $, 34) ^ - _u64_js_1$1.default.rotrBH(b, $, 39), - Hn = - _u64_js_1$1.default.rotrSL(b, $, 28) ^ - _u64_js_1$1.default.rotrBL(b, $, 34) ^ - _u64_js_1$1.default.rotrBL(b, $, 39), - un = (b & en) ^ (b & sn) ^ (en & sn), - dn = ($ & nn) ^ ($ & gn) ^ (nn & gn) - ;(kn = mn | 0), - (ln = Bn | 0), - (mn = an | 0), - (Bn = xn | 0), - (an = qn | 0), - (xn = Kn | 0), - ({ h: qn, l: Kn } = _u64_js_1$1.default.add(In | 0, Jn | 0, tn | 0, En | 0)), - (In = sn | 0), - (Jn = gn | 0), - (sn = en | 0), - (gn = nn | 0), - (en = b | 0), - (nn = $ | 0) - const Nn = _u64_js_1$1.default.add3L(En, Hn, dn) - ;(b = _u64_js_1$1.default.add3H(Nn, tn, Mn, un)), ($ = Nn | 0) - } - ;({ h: b, l: $ } = _u64_js_1$1.default.add(this.Ah | 0, this.Al | 0, b | 0, $ | 0)), - ({ h: en, l: nn } = _u64_js_1$1.default.add(this.Bh | 0, this.Bl | 0, en | 0, nn | 0)), - ({ h: sn, l: gn } = _u64_js_1$1.default.add(this.Ch | 0, this.Cl | 0, sn | 0, gn | 0)), - ({ h: In, l: Jn } = _u64_js_1$1.default.add(this.Dh | 0, this.Dl | 0, In | 0, Jn | 0)), - ({ h: qn, l: Kn } = _u64_js_1$1.default.add(this.Eh | 0, this.El | 0, qn | 0, Kn | 0)), - ({ h: an, l: xn } = _u64_js_1$1.default.add(this.Fh | 0, this.Fl | 0, an | 0, xn | 0)), - ({ h: mn, l: Bn } = _u64_js_1$1.default.add(this.Gh | 0, this.Gl | 0, mn | 0, Bn | 0)), - ({ h: kn, l: ln } = _u64_js_1$1.default.add(this.Hh | 0, this.Hl | 0, kn | 0, ln | 0)), - this.set(b, $, en, nn, sn, gn, In, Jn, qn, Kn, an, xn, mn, Bn, kn, ln) - } - roundClean() { - SHA512_W_H.fill(0), SHA512_W_L.fill(0) - } - destroy() { - this.buffer.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) - } -} -sha512$1.SHA512 = SHA512$2 -class SHA512_224 extends SHA512$2 { - constructor() { - super(), - (this.Ah = -1942145080), - (this.Al = 424955298), - (this.Bh = 1944164710), - (this.Bl = -1982016298), - (this.Ch = 502970286), - (this.Cl = 855612546), - (this.Dh = 1738396948), - (this.Dl = 1479516111), - (this.Eh = 258812777), - (this.El = 2077511080), - (this.Fh = 2011393907), - (this.Fl = 79989058), - (this.Gh = 1067287976), - (this.Gl = 1780299464), - (this.Hh = 286451373), - (this.Hl = -1848208735), - (this.outputLen = 28) - } -} -class SHA512_256 extends SHA512$2 { - constructor() { - super(), - (this.Ah = 573645204), - (this.Al = -64227540), - (this.Bh = -1621794909), - (this.Bl = -934517566), - (this.Ch = 596883563), - (this.Cl = 1867755857), - (this.Dh = -1774684391), - (this.Dl = 1497426621), - (this.Eh = -1775747358), - (this.El = -1467023389), - (this.Fh = -1101128155), - (this.Fl = 1401305490), - (this.Gh = 721525244), - (this.Gl = 746961066), - (this.Hh = 246885852), - (this.Hl = -2117784414), - (this.outputLen = 32) - } -} -let SHA384$1 = class extends SHA512$2 { - constructor() { - super(), - (this.Ah = -876896931), - (this.Al = -1056596264), - (this.Bh = 1654270250), - (this.Bl = 914150663), - (this.Ch = -1856437926), - (this.Cl = 812702999), - (this.Dh = 355462360), - (this.Dl = -150054599), - (this.Eh = 1731405415), - (this.El = -4191439), - (this.Fh = -1900787065), - (this.Fl = 1750603025), - (this.Gh = -619958771), - (this.Gl = 1694076839), - (this.Hh = 1203062813), - (this.Hl = -1090891868), - (this.outputLen = 48) - } -} -sha512$1.sha512 = (0, utils_js_1$3.wrapConstructor)(() => new SHA512$2()) -sha512$1.sha512_224 = (0, utils_js_1$3.wrapConstructor)(() => new SHA512_224()) -sha512$1.sha512_256 = (0, utils_js_1$3.wrapConstructor)(() => new SHA512_256()) -sha512$1.sha384 = (0, utils_js_1$3.wrapConstructor)(() => new SHA384$1()) -var __createBinding$i = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$i = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$i = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$i(o, e, _) - return __setModuleDefault$i(o, e), o - } -Object.defineProperty(pbkdf2$2, '__esModule', { value: !0 }) -pbkdf2$2.pbkdf2Sha512 = - pbkdf2$2.pbkdf2Sha512Noble = - pbkdf2$2.pbkdf2Sha512NodeCrypto = - pbkdf2$2.pbkdf2Sha512Subtle = - pbkdf2$2.getSubtle = - pbkdf2$2.getNodeCrypto = - void 0 -const utils_1$j = build$5, - pbkdf2_1$1 = pbkdf2$1, - sha512_1$2 = sha512$1 -async function getNodeCrypto() { - try { - const e = await Promise.resolve().then(() => __importStar$i(require$$0$2)) - return typeof e == 'object' && Object.keys(e).length <= 1 ? void 0 : e - } catch { - return - } -} -pbkdf2$2.getNodeCrypto = getNodeCrypto -async function getSubtle() { - let e = globalThis?.crypto?.subtle - return e || (e = globalThis?.crypto?.webcrypto?.subtle), e -} -pbkdf2$2.getSubtle = getSubtle -async function pbkdf2Sha512Subtle(e, o, _, b, $) { - return ( - (0, utils_1$j.assert)(e, 'Argument subtle is falsy'), - (0, utils_1$j.assert)(typeof e == 'object', 'Argument subtle is not of type object'), - (0, utils_1$j.assert)(typeof e.importKey == 'function', 'subtle.importKey is not a function'), - (0, utils_1$j.assert)(typeof e.deriveBits == 'function', 'subtle.deriveBits is not a function'), - e - .importKey('raw', o, { name: 'PBKDF2' }, !1, ['deriveBits']) - .then((en) => - e - .deriveBits( - { name: 'PBKDF2', salt: _, iterations: b, hash: { name: 'SHA-512' } }, - en, - $ * 8, - ) - .then((nn) => new Uint8Array(nn)), - ) - ) -} -pbkdf2$2.pbkdf2Sha512Subtle = pbkdf2Sha512Subtle -async function pbkdf2Sha512NodeCrypto(e, o, _, b, $) { - return ( - (0, utils_1$j.assert)(e, 'Argument nodeCrypto is falsy'), - (0, utils_1$j.assert)(typeof e == 'object', 'Argument nodeCrypto is not of type object'), - (0, utils_1$j.assert)(typeof e.pbkdf2 == 'function', 'nodeCrypto.pbkdf2 is not a function'), - new Promise((en, nn) => { - e.pbkdf2(o, _, b, $, 'sha512', (sn, gn) => { - sn ? nn(sn) : en(Uint8Array.from(gn)) - }) - }) - ) -} -pbkdf2$2.pbkdf2Sha512NodeCrypto = pbkdf2Sha512NodeCrypto -async function pbkdf2Sha512Noble(e, o, _, b) { - return (0, pbkdf2_1$1.pbkdf2Async)(sha512_1$2.sha512, e, o, { c: _, dkLen: b }) -} -pbkdf2$2.pbkdf2Sha512Noble = pbkdf2Sha512Noble -async function pbkdf2Sha512(e, o, _, b) { - const $ = await getSubtle() - if ($) return pbkdf2Sha512Subtle($, e, o, _, b) - { - const en = await getNodeCrypto() - return en ? pbkdf2Sha512NodeCrypto(en, e, o, _, b) : pbkdf2Sha512Noble(e, o, _, b) - } -} -pbkdf2$2.pbkdf2Sha512 = pbkdf2Sha512 -var sha$1 = {}, - sha256$1 = {} -Object.defineProperty(sha256$1, '__esModule', { value: !0 }) -sha256$1.sha224 = sha256$1.sha256 = void 0 -const _sha2_js_1$1 = _sha2, - utils_js_1$2 = utils$z, - Chi = (e, o, _) => (e & o) ^ (~e & _), - Maj = (e, o, _) => (e & o) ^ (e & _) ^ (o & _), - SHA256_K = new Uint32Array([ - 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, - 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, - 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, - 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, - 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, - 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, - 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, - 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298, - ]), - IV = new Uint32Array([ - 1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225, - ]), - SHA256_W = new Uint32Array(64) -let SHA256$2 = class extends _sha2_js_1$1.SHA2 { - constructor() { - super(64, 32, 8, !1), - (this.A = IV[0] | 0), - (this.B = IV[1] | 0), - (this.C = IV[2] | 0), - (this.D = IV[3] | 0), - (this.E = IV[4] | 0), - (this.F = IV[5] | 0), - (this.G = IV[6] | 0), - (this.H = IV[7] | 0) - } - get() { - const { A: o, B: _, C: b, D: $, E: en, F: nn, G: sn, H: gn } = this - return [o, _, b, $, en, nn, sn, gn] - } - set(o, _, b, $, en, nn, sn, gn) { - ;(this.A = o | 0), - (this.B = _ | 0), - (this.C = b | 0), - (this.D = $ | 0), - (this.E = en | 0), - (this.F = nn | 0), - (this.G = sn | 0), - (this.H = gn | 0) - } - process(o, _) { - for (let qn = 0; qn < 16; qn++, _ += 4) SHA256_W[qn] = o.getUint32(_, !1) - for (let qn = 16; qn < 64; qn++) { - const Kn = SHA256_W[qn - 15], - an = SHA256_W[qn - 2], - xn = (0, utils_js_1$2.rotr)(Kn, 7) ^ (0, utils_js_1$2.rotr)(Kn, 18) ^ (Kn >>> 3), - mn = (0, utils_js_1$2.rotr)(an, 17) ^ (0, utils_js_1$2.rotr)(an, 19) ^ (an >>> 10) - SHA256_W[qn] = (mn + SHA256_W[qn - 7] + xn + SHA256_W[qn - 16]) | 0 - } - let { A: b, B: $, C: en, D: nn, E: sn, F: gn, G: In, H: Jn } = this - for (let qn = 0; qn < 64; qn++) { - const Kn = - (0, utils_js_1$2.rotr)(sn, 6) ^ - (0, utils_js_1$2.rotr)(sn, 11) ^ - (0, utils_js_1$2.rotr)(sn, 25), - an = (Jn + Kn + Chi(sn, gn, In) + SHA256_K[qn] + SHA256_W[qn]) | 0, - mn = - (((0, utils_js_1$2.rotr)(b, 2) ^ - (0, utils_js_1$2.rotr)(b, 13) ^ - (0, utils_js_1$2.rotr)(b, 22)) + - Maj(b, $, en)) | - 0 - ;(Jn = In), - (In = gn), - (gn = sn), - (sn = (nn + an) | 0), - (nn = en), - (en = $), - ($ = b), - (b = (an + mn) | 0) - } - ;(b = (b + this.A) | 0), - ($ = ($ + this.B) | 0), - (en = (en + this.C) | 0), - (nn = (nn + this.D) | 0), - (sn = (sn + this.E) | 0), - (gn = (gn + this.F) | 0), - (In = (In + this.G) | 0), - (Jn = (Jn + this.H) | 0), - this.set(b, $, en, nn, sn, gn, In, Jn) - } - roundClean() { - SHA256_W.fill(0) - } - destroy() { - this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0) - } - }, - SHA224$1 = class extends SHA256$2 { - constructor() { - super(), - (this.A = -1056596264), - (this.B = 914150663), - (this.C = 812702999), - (this.D = -150054599), - (this.E = -4191439), - (this.F = 1750603025), - (this.G = 1694076839), - (this.H = -1090891868), - (this.outputLen = 28) - } - } -sha256$1.sha256 = (0, utils_js_1$2.wrapConstructor)(() => new SHA256$2()) -sha256$1.sha224 = (0, utils_js_1$2.wrapConstructor)(() => new SHA224$1()) -var utils$y = {} -Object.defineProperty(utils$y, '__esModule', { value: !0 }) -utils$y.toRealUint8Array = void 0 -function toRealUint8Array(e) { - return e instanceof Uint8Array ? e : Uint8Array.from(e) -} -utils$y.toRealUint8Array = toRealUint8Array -Object.defineProperty(sha$1, '__esModule', { value: !0 }) -sha$1.sha512 = sha$1.Sha512 = sha$1.sha256 = sha$1.Sha256 = void 0 -const sha256_1$1 = sha256$1, - sha512_1$1 = sha512$1, - utils_1$i = utils$y -class Sha256 { - constructor(o) { - ;(this.blockSize = 512 / 8), (this.impl = sha256_1$1.sha256.create()), o && this.update(o) - } - update(o) { - return this.impl.update((0, utils_1$i.toRealUint8Array)(o)), this - } - digest() { - return this.impl.digest() - } -} -sha$1.Sha256 = Sha256 -function sha256(e) { - return new Sha256(e).digest() -} -sha$1.sha256 = sha256 -class Sha512 { - constructor(o) { - ;(this.blockSize = 1024 / 8), (this.impl = sha512_1$1.sha512.create()), o && this.update(o) - } - update(o) { - return this.impl.update((0, utils_1$i.toRealUint8Array)(o)), this - } - digest() { - return this.impl.digest() - } -} -sha$1.Sha512 = Sha512 -function sha512(e) { - return new Sha512(e).digest() -} -sha$1.sha512 = sha512 -Object.defineProperty(bip39, '__esModule', { value: !0 }) -bip39.Bip39 = bip39.EnglishMnemonic = bip39.mnemonicToEntropy = bip39.entropyToMnemonic = void 0 -const encoding_1$s = build$b, - pbkdf2_1 = pbkdf2$2, - sha_1 = sha$1, - wordlist = [ - 'abandon', - 'ability', - 'able', - 'about', - 'above', - 'absent', - 'absorb', - 'abstract', - 'absurd', - 'abuse', - 'access', - 'accident', - 'account', - 'accuse', - 'achieve', - 'acid', - 'acoustic', - 'acquire', - 'across', - 'act', - 'action', - 'actor', - 'actress', - 'actual', - 'adapt', - 'add', - 'addict', - 'address', - 'adjust', - 'admit', - 'adult', - 'advance', - 'advice', - 'aerobic', - 'affair', - 'afford', - 'afraid', - 'again', - 'age', - 'agent', - 'agree', - 'ahead', - 'aim', - 'air', - 'airport', - 'aisle', - 'alarm', - 'album', - 'alcohol', - 'alert', - 'alien', - 'all', - 'alley', - 'allow', - 'almost', - 'alone', - 'alpha', - 'already', - 'also', - 'alter', - 'always', - 'amateur', - 'amazing', - 'among', - 'amount', - 'amused', - 'analyst', - 'anchor', - 'ancient', - 'anger', - 'angle', - 'angry', - 'animal', - 'ankle', - 'announce', - 'annual', - 'another', - 'answer', - 'antenna', - 'antique', - 'anxiety', - 'any', - 'apart', - 'apology', - 'appear', - 'apple', - 'approve', - 'april', - 'arch', - 'arctic', - 'area', - 'arena', - 'argue', - 'arm', - 'armed', - 'armor', - 'army', - 'around', - 'arrange', - 'arrest', - 'arrive', - 'arrow', - 'art', - 'artefact', - 'artist', - 'artwork', - 'ask', - 'aspect', - 'assault', - 'asset', - 'assist', - 'assume', - 'asthma', - 'athlete', - 'atom', - 'attack', - 'attend', - 'attitude', - 'attract', - 'auction', - 'audit', - 'august', - 'aunt', - 'author', - 'auto', - 'autumn', - 'average', - 'avocado', - 'avoid', - 'awake', - 'aware', - 'away', - 'awesome', - 'awful', - 'awkward', - 'axis', - 'baby', - 'bachelor', - 'bacon', - 'badge', - 'bag', - 'balance', - 'balcony', - 'ball', - 'bamboo', - 'banana', - 'banner', - 'bar', - 'barely', - 'bargain', - 'barrel', - 'base', - 'basic', - 'basket', - 'battle', - 'beach', - 'bean', - 'beauty', - 'because', - 'become', - 'beef', - 'before', - 'begin', - 'behave', - 'behind', - 'believe', - 'below', - 'belt', - 'bench', - 'benefit', - 'best', - 'betray', - 'better', - 'between', - 'beyond', - 'bicycle', - 'bid', - 'bike', - 'bind', - 'biology', - 'bird', - 'birth', - 'bitter', - 'black', - 'blade', - 'blame', - 'blanket', - 'blast', - 'bleak', - 'bless', - 'blind', - 'blood', - 'blossom', - 'blouse', - 'blue', - 'blur', - 'blush', - 'board', - 'boat', - 'body', - 'boil', - 'bomb', - 'bone', - 'bonus', - 'book', - 'boost', - 'border', - 'boring', - 'borrow', - 'boss', - 'bottom', - 'bounce', - 'box', - 'boy', - 'bracket', - 'brain', - 'brand', - 'brass', - 'brave', - 'bread', - 'breeze', - 'brick', - 'bridge', - 'brief', - 'bright', - 'bring', - 'brisk', - 'broccoli', - 'broken', - 'bronze', - 'broom', - 'brother', - 'brown', - 'brush', - 'bubble', - 'buddy', - 'budget', - 'buffalo', - 'build', - 'bulb', - 'bulk', - 'bullet', - 'bundle', - 'bunker', - 'burden', - 'burger', - 'burst', - 'bus', - 'business', - 'busy', - 'butter', - 'buyer', - 'buzz', - 'cabbage', - 'cabin', - 'cable', - 'cactus', - 'cage', - 'cake', - 'call', - 'calm', - 'camera', - 'camp', - 'can', - 'canal', - 'cancel', - 'candy', - 'cannon', - 'canoe', - 'canvas', - 'canyon', - 'capable', - 'capital', - 'captain', - 'car', - 'carbon', - 'card', - 'cargo', - 'carpet', - 'carry', - 'cart', - 'case', - 'cash', - 'casino', - 'castle', - 'casual', - 'cat', - 'catalog', - 'catch', - 'category', - 'cattle', - 'caught', - 'cause', - 'caution', - 'cave', - 'ceiling', - 'celery', - 'cement', - 'census', - 'century', - 'cereal', - 'certain', - 'chair', - 'chalk', - 'champion', - 'change', - 'chaos', - 'chapter', - 'charge', - 'chase', - 'chat', - 'cheap', - 'check', - 'cheese', - 'chef', - 'cherry', - 'chest', - 'chicken', - 'chief', - 'child', - 'chimney', - 'choice', - 'choose', - 'chronic', - 'chuckle', - 'chunk', - 'churn', - 'cigar', - 'cinnamon', - 'circle', - 'citizen', - 'city', - 'civil', - 'claim', - 'clap', - 'clarify', - 'claw', - 'clay', - 'clean', - 'clerk', - 'clever', - 'click', - 'client', - 'cliff', - 'climb', - 'clinic', - 'clip', - 'clock', - 'clog', - 'close', - 'cloth', - 'cloud', - 'clown', - 'club', - 'clump', - 'cluster', - 'clutch', - 'coach', - 'coast', - 'coconut', - 'code', - 'coffee', - 'coil', - 'coin', - 'collect', - 'color', - 'column', - 'combine', - 'come', - 'comfort', - 'comic', - 'common', - 'company', - 'concert', - 'conduct', - 'confirm', - 'congress', - 'connect', - 'consider', - 'control', - 'convince', - 'cook', - 'cool', - 'copper', - 'copy', - 'coral', - 'core', - 'corn', - 'correct', - 'cost', - 'cotton', - 'couch', - 'country', - 'couple', - 'course', - 'cousin', - 'cover', - 'coyote', - 'crack', - 'cradle', - 'craft', - 'cram', - 'crane', - 'crash', - 'crater', - 'crawl', - 'crazy', - 'cream', - 'credit', - 'creek', - 'crew', - 'cricket', - 'crime', - 'crisp', - 'critic', - 'crop', - 'cross', - 'crouch', - 'crowd', - 'crucial', - 'cruel', - 'cruise', - 'crumble', - 'crunch', - 'crush', - 'cry', - 'crystal', - 'cube', - 'culture', - 'cup', - 'cupboard', - 'curious', - 'current', - 'curtain', - 'curve', - 'cushion', - 'custom', - 'cute', - 'cycle', - 'dad', - 'damage', - 'damp', - 'dance', - 'danger', - 'daring', - 'dash', - 'daughter', - 'dawn', - 'day', - 'deal', - 'debate', - 'debris', - 'decade', - 'december', - 'decide', - 'decline', - 'decorate', - 'decrease', - 'deer', - 'defense', - 'define', - 'defy', - 'degree', - 'delay', - 'deliver', - 'demand', - 'demise', - 'denial', - 'dentist', - 'deny', - 'depart', - 'depend', - 'deposit', - 'depth', - 'deputy', - 'derive', - 'describe', - 'desert', - 'design', - 'desk', - 'despair', - 'destroy', - 'detail', - 'detect', - 'develop', - 'device', - 'devote', - 'diagram', - 'dial', - 'diamond', - 'diary', - 'dice', - 'diesel', - 'diet', - 'differ', - 'digital', - 'dignity', - 'dilemma', - 'dinner', - 'dinosaur', - 'direct', - 'dirt', - 'disagree', - 'discover', - 'disease', - 'dish', - 'dismiss', - 'disorder', - 'display', - 'distance', - 'divert', - 'divide', - 'divorce', - 'dizzy', - 'doctor', - 'document', - 'dog', - 'doll', - 'dolphin', - 'domain', - 'donate', - 'donkey', - 'donor', - 'door', - 'dose', - 'double', - 'dove', - 'draft', - 'dragon', - 'drama', - 'drastic', - 'draw', - 'dream', - 'dress', - 'drift', - 'drill', - 'drink', - 'drip', - 'drive', - 'drop', - 'drum', - 'dry', - 'duck', - 'dumb', - 'dune', - 'during', - 'dust', - 'dutch', - 'duty', - 'dwarf', - 'dynamic', - 'eager', - 'eagle', - 'early', - 'earn', - 'earth', - 'easily', - 'east', - 'easy', - 'echo', - 'ecology', - 'economy', - 'edge', - 'edit', - 'educate', - 'effort', - 'egg', - 'eight', - 'either', - 'elbow', - 'elder', - 'electric', - 'elegant', - 'element', - 'elephant', - 'elevator', - 'elite', - 'else', - 'embark', - 'embody', - 'embrace', - 'emerge', - 'emotion', - 'employ', - 'empower', - 'empty', - 'enable', - 'enact', - 'end', - 'endless', - 'endorse', - 'enemy', - 'energy', - 'enforce', - 'engage', - 'engine', - 'enhance', - 'enjoy', - 'enlist', - 'enough', - 'enrich', - 'enroll', - 'ensure', - 'enter', - 'entire', - 'entry', - 'envelope', - 'episode', - 'equal', - 'equip', - 'era', - 'erase', - 'erode', - 'erosion', - 'error', - 'erupt', - 'escape', - 'essay', - 'essence', - 'estate', - 'eternal', - 'ethics', - 'evidence', - 'evil', - 'evoke', - 'evolve', - 'exact', - 'example', - 'excess', - 'exchange', - 'excite', - 'exclude', - 'excuse', - 'execute', - 'exercise', - 'exhaust', - 'exhibit', - 'exile', - 'exist', - 'exit', - 'exotic', - 'expand', - 'expect', - 'expire', - 'explain', - 'expose', - 'express', - 'extend', - 'extra', - 'eye', - 'eyebrow', - 'fabric', - 'face', - 'faculty', - 'fade', - 'faint', - 'faith', - 'fall', - 'false', - 'fame', - 'family', - 'famous', - 'fan', - 'fancy', - 'fantasy', - 'farm', - 'fashion', - 'fat', - 'fatal', - 'father', - 'fatigue', - 'fault', - 'favorite', - 'feature', - 'february', - 'federal', - 'fee', - 'feed', - 'feel', - 'female', - 'fence', - 'festival', - 'fetch', - 'fever', - 'few', - 'fiber', - 'fiction', - 'field', - 'figure', - 'file', - 'film', - 'filter', - 'final', - 'find', - 'fine', - 'finger', - 'finish', - 'fire', - 'firm', - 'first', - 'fiscal', - 'fish', - 'fit', - 'fitness', - 'fix', - 'flag', - 'flame', - 'flash', - 'flat', - 'flavor', - 'flee', - 'flight', - 'flip', - 'float', - 'flock', - 'floor', - 'flower', - 'fluid', - 'flush', - 'fly', - 'foam', - 'focus', - 'fog', - 'foil', - 'fold', - 'follow', - 'food', - 'foot', - 'force', - 'forest', - 'forget', - 'fork', - 'fortune', - 'forum', - 'forward', - 'fossil', - 'foster', - 'found', - 'fox', - 'fragile', - 'frame', - 'frequent', - 'fresh', - 'friend', - 'fringe', - 'frog', - 'front', - 'frost', - 'frown', - 'frozen', - 'fruit', - 'fuel', - 'fun', - 'funny', - 'furnace', - 'fury', - 'future', - 'gadget', - 'gain', - 'galaxy', - 'gallery', - 'game', - 'gap', - 'garage', - 'garbage', - 'garden', - 'garlic', - 'garment', - 'gas', - 'gasp', - 'gate', - 'gather', - 'gauge', - 'gaze', - 'general', - 'genius', - 'genre', - 'gentle', - 'genuine', - 'gesture', - 'ghost', - 'giant', - 'gift', - 'giggle', - 'ginger', - 'giraffe', - 'girl', - 'give', - 'glad', - 'glance', - 'glare', - 'glass', - 'glide', - 'glimpse', - 'globe', - 'gloom', - 'glory', - 'glove', - 'glow', - 'glue', - 'goat', - 'goddess', - 'gold', - 'good', - 'goose', - 'gorilla', - 'gospel', - 'gossip', - 'govern', - 'gown', - 'grab', - 'grace', - 'grain', - 'grant', - 'grape', - 'grass', - 'gravity', - 'great', - 'green', - 'grid', - 'grief', - 'grit', - 'grocery', - 'group', - 'grow', - 'grunt', - 'guard', - 'guess', - 'guide', - 'guilt', - 'guitar', - 'gun', - 'gym', - 'habit', - 'hair', - 'half', - 'hammer', - 'hamster', - 'hand', - 'happy', - 'harbor', - 'hard', - 'harsh', - 'harvest', - 'hat', - 'have', - 'hawk', - 'hazard', - 'head', - 'health', - 'heart', - 'heavy', - 'hedgehog', - 'height', - 'hello', - 'helmet', - 'help', - 'hen', - 'hero', - 'hidden', - 'high', - 'hill', - 'hint', - 'hip', - 'hire', - 'history', - 'hobby', - 'hockey', - 'hold', - 'hole', - 'holiday', - 'hollow', - 'home', - 'honey', - 'hood', - 'hope', - 'horn', - 'horror', - 'horse', - 'hospital', - 'host', - 'hotel', - 'hour', - 'hover', - 'hub', - 'huge', - 'human', - 'humble', - 'humor', - 'hundred', - 'hungry', - 'hunt', - 'hurdle', - 'hurry', - 'hurt', - 'husband', - 'hybrid', - 'ice', - 'icon', - 'idea', - 'identify', - 'idle', - 'ignore', - 'ill', - 'illegal', - 'illness', - 'image', - 'imitate', - 'immense', - 'immune', - 'impact', - 'impose', - 'improve', - 'impulse', - 'inch', - 'include', - 'income', - 'increase', - 'index', - 'indicate', - 'indoor', - 'industry', - 'infant', - 'inflict', - 'inform', - 'inhale', - 'inherit', - 'initial', - 'inject', - 'injury', - 'inmate', - 'inner', - 'innocent', - 'input', - 'inquiry', - 'insane', - 'insect', - 'inside', - 'inspire', - 'install', - 'intact', - 'interest', - 'into', - 'invest', - 'invite', - 'involve', - 'iron', - 'island', - 'isolate', - 'issue', - 'item', - 'ivory', - 'jacket', - 'jaguar', - 'jar', - 'jazz', - 'jealous', - 'jeans', - 'jelly', - 'jewel', - 'job', - 'join', - 'joke', - 'journey', - 'joy', - 'judge', - 'juice', - 'jump', - 'jungle', - 'junior', - 'junk', - 'just', - 'kangaroo', - 'keen', - 'keep', - 'ketchup', - 'key', - 'kick', - 'kid', - 'kidney', - 'kind', - 'kingdom', - 'kiss', - 'kit', - 'kitchen', - 'kite', - 'kitten', - 'kiwi', - 'knee', - 'knife', - 'knock', - 'know', - 'lab', - 'label', - 'labor', - 'ladder', - 'lady', - 'lake', - 'lamp', - 'language', - 'laptop', - 'large', - 'later', - 'latin', - 'laugh', - 'laundry', - 'lava', - 'law', - 'lawn', - 'lawsuit', - 'layer', - 'lazy', - 'leader', - 'leaf', - 'learn', - 'leave', - 'lecture', - 'left', - 'leg', - 'legal', - 'legend', - 'leisure', - 'lemon', - 'lend', - 'length', - 'lens', - 'leopard', - 'lesson', - 'letter', - 'level', - 'liar', - 'liberty', - 'library', - 'license', - 'life', - 'lift', - 'light', - 'like', - 'limb', - 'limit', - 'link', - 'lion', - 'liquid', - 'list', - 'little', - 'live', - 'lizard', - 'load', - 'loan', - 'lobster', - 'local', - 'lock', - 'logic', - 'lonely', - 'long', - 'loop', - 'lottery', - 'loud', - 'lounge', - 'love', - 'loyal', - 'lucky', - 'luggage', - 'lumber', - 'lunar', - 'lunch', - 'luxury', - 'lyrics', - 'machine', - 'mad', - 'magic', - 'magnet', - 'maid', - 'mail', - 'main', - 'major', - 'make', - 'mammal', - 'man', - 'manage', - 'mandate', - 'mango', - 'mansion', - 'manual', - 'maple', - 'marble', - 'march', - 'margin', - 'marine', - 'market', - 'marriage', - 'mask', - 'mass', - 'master', - 'match', - 'material', - 'math', - 'matrix', - 'matter', - 'maximum', - 'maze', - 'meadow', - 'mean', - 'measure', - 'meat', - 'mechanic', - 'medal', - 'media', - 'melody', - 'melt', - 'member', - 'memory', - 'mention', - 'menu', - 'mercy', - 'merge', - 'merit', - 'merry', - 'mesh', - 'message', - 'metal', - 'method', - 'middle', - 'midnight', - 'milk', - 'million', - 'mimic', - 'mind', - 'minimum', - 'minor', - 'minute', - 'miracle', - 'mirror', - 'misery', - 'miss', - 'mistake', - 'mix', - 'mixed', - 'mixture', - 'mobile', - 'model', - 'modify', - 'mom', - 'moment', - 'monitor', - 'monkey', - 'monster', - 'month', - 'moon', - 'moral', - 'more', - 'morning', - 'mosquito', - 'mother', - 'motion', - 'motor', - 'mountain', - 'mouse', - 'move', - 'movie', - 'much', - 'muffin', - 'mule', - 'multiply', - 'muscle', - 'museum', - 'mushroom', - 'music', - 'must', - 'mutual', - 'myself', - 'mystery', - 'myth', - 'naive', - 'name', - 'napkin', - 'narrow', - 'nasty', - 'nation', - 'nature', - 'near', - 'neck', - 'need', - 'negative', - 'neglect', - 'neither', - 'nephew', - 'nerve', - 'nest', - 'net', - 'network', - 'neutral', - 'never', - 'news', - 'next', - 'nice', - 'night', - 'noble', - 'noise', - 'nominee', - 'noodle', - 'normal', - 'north', - 'nose', - 'notable', - 'note', - 'nothing', - 'notice', - 'novel', - 'now', - 'nuclear', - 'number', - 'nurse', - 'nut', - 'oak', - 'obey', - 'object', - 'oblige', - 'obscure', - 'observe', - 'obtain', - 'obvious', - 'occur', - 'ocean', - 'october', - 'odor', - 'off', - 'offer', - 'office', - 'often', - 'oil', - 'okay', - 'old', - 'olive', - 'olympic', - 'omit', - 'once', - 'one', - 'onion', - 'online', - 'only', - 'open', - 'opera', - 'opinion', - 'oppose', - 'option', - 'orange', - 'orbit', - 'orchard', - 'order', - 'ordinary', - 'organ', - 'orient', - 'original', - 'orphan', - 'ostrich', - 'other', - 'outdoor', - 'outer', - 'output', - 'outside', - 'oval', - 'oven', - 'over', - 'own', - 'owner', - 'oxygen', - 'oyster', - 'ozone', - 'pact', - 'paddle', - 'page', - 'pair', - 'palace', - 'palm', - 'panda', - 'panel', - 'panic', - 'panther', - 'paper', - 'parade', - 'parent', - 'park', - 'parrot', - 'party', - 'pass', - 'patch', - 'path', - 'patient', - 'patrol', - 'pattern', - 'pause', - 'pave', - 'payment', - 'peace', - 'peanut', - 'pear', - 'peasant', - 'pelican', - 'pen', - 'penalty', - 'pencil', - 'people', - 'pepper', - 'perfect', - 'permit', - 'person', - 'pet', - 'phone', - 'photo', - 'phrase', - 'physical', - 'piano', - 'picnic', - 'picture', - 'piece', - 'pig', - 'pigeon', - 'pill', - 'pilot', - 'pink', - 'pioneer', - 'pipe', - 'pistol', - 'pitch', - 'pizza', - 'place', - 'planet', - 'plastic', - 'plate', - 'play', - 'please', - 'pledge', - 'pluck', - 'plug', - 'plunge', - 'poem', - 'poet', - 'point', - 'polar', - 'pole', - 'police', - 'pond', - 'pony', - 'pool', - 'popular', - 'portion', - 'position', - 'possible', - 'post', - 'potato', - 'pottery', - 'poverty', - 'powder', - 'power', - 'practice', - 'praise', - 'predict', - 'prefer', - 'prepare', - 'present', - 'pretty', - 'prevent', - 'price', - 'pride', - 'primary', - 'print', - 'priority', - 'prison', - 'private', - 'prize', - 'problem', - 'process', - 'produce', - 'profit', - 'program', - 'project', - 'promote', - 'proof', - 'property', - 'prosper', - 'protect', - 'proud', - 'provide', - 'public', - 'pudding', - 'pull', - 'pulp', - 'pulse', - 'pumpkin', - 'punch', - 'pupil', - 'puppy', - 'purchase', - 'purity', - 'purpose', - 'purse', - 'push', - 'put', - 'puzzle', - 'pyramid', - 'quality', - 'quantum', - 'quarter', - 'question', - 'quick', - 'quit', - 'quiz', - 'quote', - 'rabbit', - 'raccoon', - 'race', - 'rack', - 'radar', - 'radio', - 'rail', - 'rain', - 'raise', - 'rally', - 'ramp', - 'ranch', - 'random', - 'range', - 'rapid', - 'rare', - 'rate', - 'rather', - 'raven', - 'raw', - 'razor', - 'ready', - 'real', - 'reason', - 'rebel', - 'rebuild', - 'recall', - 'receive', - 'recipe', - 'record', - 'recycle', - 'reduce', - 'reflect', - 'reform', - 'refuse', - 'region', - 'regret', - 'regular', - 'reject', - 'relax', - 'release', - 'relief', - 'rely', - 'remain', - 'remember', - 'remind', - 'remove', - 'render', - 'renew', - 'rent', - 'reopen', - 'repair', - 'repeat', - 'replace', - 'report', - 'require', - 'rescue', - 'resemble', - 'resist', - 'resource', - 'response', - 'result', - 'retire', - 'retreat', - 'return', - 'reunion', - 'reveal', - 'review', - 'reward', - 'rhythm', - 'rib', - 'ribbon', - 'rice', - 'rich', - 'ride', - 'ridge', - 'rifle', - 'right', - 'rigid', - 'ring', - 'riot', - 'ripple', - 'risk', - 'ritual', - 'rival', - 'river', - 'road', - 'roast', - 'robot', - 'robust', - 'rocket', - 'romance', - 'roof', - 'rookie', - 'room', - 'rose', - 'rotate', - 'rough', - 'round', - 'route', - 'royal', - 'rubber', - 'rude', - 'rug', - 'rule', - 'run', - 'runway', - 'rural', - 'sad', - 'saddle', - 'sadness', - 'safe', - 'sail', - 'salad', - 'salmon', - 'salon', - 'salt', - 'salute', - 'same', - 'sample', - 'sand', - 'satisfy', - 'satoshi', - 'sauce', - 'sausage', - 'save', - 'say', - 'scale', - 'scan', - 'scare', - 'scatter', - 'scene', - 'scheme', - 'school', - 'science', - 'scissors', - 'scorpion', - 'scout', - 'scrap', - 'screen', - 'script', - 'scrub', - 'sea', - 'search', - 'season', - 'seat', - 'second', - 'secret', - 'section', - 'security', - 'seed', - 'seek', - 'segment', - 'select', - 'sell', - 'seminar', - 'senior', - 'sense', - 'sentence', - 'series', - 'service', - 'session', - 'settle', - 'setup', - 'seven', - 'shadow', - 'shaft', - 'shallow', - 'share', - 'shed', - 'shell', - 'sheriff', - 'shield', - 'shift', - 'shine', - 'ship', - 'shiver', - 'shock', - 'shoe', - 'shoot', - 'shop', - 'short', - 'shoulder', - 'shove', - 'shrimp', - 'shrug', - 'shuffle', - 'shy', - 'sibling', - 'sick', - 'side', - 'siege', - 'sight', - 'sign', - 'silent', - 'silk', - 'silly', - 'silver', - 'similar', - 'simple', - 'since', - 'sing', - 'siren', - 'sister', - 'situate', - 'six', - 'size', - 'skate', - 'sketch', - 'ski', - 'skill', - 'skin', - 'skirt', - 'skull', - 'slab', - 'slam', - 'sleep', - 'slender', - 'slice', - 'slide', - 'slight', - 'slim', - 'slogan', - 'slot', - 'slow', - 'slush', - 'small', - 'smart', - 'smile', - 'smoke', - 'smooth', - 'snack', - 'snake', - 'snap', - 'sniff', - 'snow', - 'soap', - 'soccer', - 'social', - 'sock', - 'soda', - 'soft', - 'solar', - 'soldier', - 'solid', - 'solution', - 'solve', - 'someone', - 'song', - 'soon', - 'sorry', - 'sort', - 'soul', - 'sound', - 'soup', - 'source', - 'south', - 'space', - 'spare', - 'spatial', - 'spawn', - 'speak', - 'special', - 'speed', - 'spell', - 'spend', - 'sphere', - 'spice', - 'spider', - 'spike', - 'spin', - 'spirit', - 'split', - 'spoil', - 'sponsor', - 'spoon', - 'sport', - 'spot', - 'spray', - 'spread', - 'spring', - 'spy', - 'square', - 'squeeze', - 'squirrel', - 'stable', - 'stadium', - 'staff', - 'stage', - 'stairs', - 'stamp', - 'stand', - 'start', - 'state', - 'stay', - 'steak', - 'steel', - 'stem', - 'step', - 'stereo', - 'stick', - 'still', - 'sting', - 'stock', - 'stomach', - 'stone', - 'stool', - 'story', - 'stove', - 'strategy', - 'street', - 'strike', - 'strong', - 'struggle', - 'student', - 'stuff', - 'stumble', - 'style', - 'subject', - 'submit', - 'subway', - 'success', - 'such', - 'sudden', - 'suffer', - 'sugar', - 'suggest', - 'suit', - 'summer', - 'sun', - 'sunny', - 'sunset', - 'super', - 'supply', - 'supreme', - 'sure', - 'surface', - 'surge', - 'surprise', - 'surround', - 'survey', - 'suspect', - 'sustain', - 'swallow', - 'swamp', - 'swap', - 'swarm', - 'swear', - 'sweet', - 'swift', - 'swim', - 'swing', - 'switch', - 'sword', - 'symbol', - 'symptom', - 'syrup', - 'system', - 'table', - 'tackle', - 'tag', - 'tail', - 'talent', - 'talk', - 'tank', - 'tape', - 'target', - 'task', - 'taste', - 'tattoo', - 'taxi', - 'teach', - 'team', - 'tell', - 'ten', - 'tenant', - 'tennis', - 'tent', - 'term', - 'test', - 'text', - 'thank', - 'that', - 'theme', - 'then', - 'theory', - 'there', - 'they', - 'thing', - 'this', - 'thought', - 'three', - 'thrive', - 'throw', - 'thumb', - 'thunder', - 'ticket', - 'tide', - 'tiger', - 'tilt', - 'timber', - 'time', - 'tiny', - 'tip', - 'tired', - 'tissue', - 'title', - 'toast', - 'tobacco', - 'today', - 'toddler', - 'toe', - 'together', - 'toilet', - 'token', - 'tomato', - 'tomorrow', - 'tone', - 'tongue', - 'tonight', - 'tool', - 'tooth', - 'top', - 'topic', - 'topple', - 'torch', - 'tornado', - 'tortoise', - 'toss', - 'total', - 'tourist', - 'toward', - 'tower', - 'town', - 'toy', - 'track', - 'trade', - 'traffic', - 'tragic', - 'train', - 'transfer', - 'trap', - 'trash', - 'travel', - 'tray', - 'treat', - 'tree', - 'trend', - 'trial', - 'tribe', - 'trick', - 'trigger', - 'trim', - 'trip', - 'trophy', - 'trouble', - 'truck', - 'true', - 'truly', - 'trumpet', - 'trust', - 'truth', - 'try', - 'tube', - 'tuition', - 'tumble', - 'tuna', - 'tunnel', - 'turkey', - 'turn', - 'turtle', - 'twelve', - 'twenty', - 'twice', - 'twin', - 'twist', - 'two', - 'type', - 'typical', - 'ugly', - 'umbrella', - 'unable', - 'unaware', - 'uncle', - 'uncover', - 'under', - 'undo', - 'unfair', - 'unfold', - 'unhappy', - 'uniform', - 'unique', - 'unit', - 'universe', - 'unknown', - 'unlock', - 'until', - 'unusual', - 'unveil', - 'update', - 'upgrade', - 'uphold', - 'upon', - 'upper', - 'upset', - 'urban', - 'urge', - 'usage', - 'use', - 'used', - 'useful', - 'useless', - 'usual', - 'utility', - 'vacant', - 'vacuum', - 'vague', - 'valid', - 'valley', - 'valve', - 'van', - 'vanish', - 'vapor', - 'various', - 'vast', - 'vault', - 'vehicle', - 'velvet', - 'vendor', - 'venture', - 'venue', - 'verb', - 'verify', - 'version', - 'very', - 'vessel', - 'veteran', - 'viable', - 'vibrant', - 'vicious', - 'victory', - 'video', - 'view', - 'village', - 'vintage', - 'violin', - 'virtual', - 'virus', - 'visa', - 'visit', - 'visual', - 'vital', - 'vivid', - 'vocal', - 'voice', - 'void', - 'volcano', - 'volume', - 'vote', - 'voyage', - 'wage', - 'wagon', - 'wait', - 'walk', - 'wall', - 'walnut', - 'want', - 'warfare', - 'warm', - 'warrior', - 'wash', - 'wasp', - 'waste', - 'water', - 'wave', - 'way', - 'wealth', - 'weapon', - 'wear', - 'weasel', - 'weather', - 'web', - 'wedding', - 'weekend', - 'weird', - 'welcome', - 'west', - 'wet', - 'whale', - 'what', - 'wheat', - 'wheel', - 'when', - 'where', - 'whip', - 'whisper', - 'wide', - 'width', - 'wife', - 'wild', - 'will', - 'win', - 'window', - 'wine', - 'wing', - 'wink', - 'winner', - 'winter', - 'wire', - 'wisdom', - 'wise', - 'wish', - 'witness', - 'wolf', - 'woman', - 'wonder', - 'wood', - 'wool', - 'word', - 'work', - 'world', - 'worry', - 'worth', - 'wrap', - 'wreck', - 'wrestle', - 'wrist', - 'write', - 'wrong', - 'yard', - 'year', - 'yellow', - 'you', - 'young', - 'youth', - 'zebra', - 'zero', - 'zone', - 'zoo', - ] -function bytesToBitstring(e) { - return Array.from(e) - .map((o) => o.toString(2).padStart(8, '0')) - .join('') -} -function deriveChecksumBits(e) { - const _ = (e.length * 8) / 32, - b = (0, sha_1.sha256)(e) - return bytesToBitstring(b).slice(0, _) -} -function bitstringToByte(e) { - return parseInt(e, 2) -} -const allowedEntropyLengths = [16, 20, 24, 28, 32], - allowedWordLengths = [12, 15, 18, 21, 24] -function entropyToMnemonic(e) { - if (allowedEntropyLengths.indexOf(e.length) === -1) throw new Error('invalid input length') - const o = bytesToBitstring(e), - _ = deriveChecksumBits(e) - return (o + _) - .match(/(.{11})/g) - .map((nn) => { - const sn = bitstringToByte(nn) - return wordlist[sn] - }) - .join(' ') -} -bip39.entropyToMnemonic = entropyToMnemonic -const invalidNumberOfWorks = 'Invalid number of words', - wordNotInWordlist = 'Found word that is not in the wordlist', - invalidEntropy = 'Invalid entropy', - invalidChecksum = 'Invalid mnemonic checksum' -function normalize(e) { - return e.normalize('NFKD') -} -function mnemonicToEntropy(e) { - const o = normalize(e).split(' ') - if (!allowedWordLengths.includes(o.length)) throw new Error(invalidNumberOfWorks) - const _ = o - .map((In) => { - const Jn = wordlist.indexOf(In) - if (Jn === -1) throw new Error(wordNotInWordlist) - return Jn.toString(2).padStart(11, '0') - }) - .join(''), - b = Math.floor(_.length / 33) * 32, - $ = _.slice(0, b), - en = _.slice(b), - nn = $.match(/(.{1,8})/g).map(bitstringToByte) - if (nn.length < 16 || nn.length > 32 || nn.length % 4 !== 0) throw new Error(invalidEntropy) - const sn = Uint8Array.from(nn) - if (deriveChecksumBits(sn) !== en) throw new Error(invalidChecksum) - return sn -} -bip39.mnemonicToEntropy = mnemonicToEntropy -class EnglishMnemonic { - constructor(o) { - if (!EnglishMnemonic.mnemonicMatcher.test(o)) throw new Error('Invalid mnemonic format') - const _ = o.split(' '), - b = [12, 15, 18, 21, 24] - if (b.indexOf(_.length) === -1) - throw new Error(`Invalid word count in mnemonic (allowed: ${b} got: ${_.length})`) - for (const $ of _) - if (EnglishMnemonic.wordlist.indexOf($) === -1) - throw new Error('Mnemonic contains invalid word') - mnemonicToEntropy(o), (this.data = o) - } - toString() { - return this.data - } -} -bip39.EnglishMnemonic = EnglishMnemonic -EnglishMnemonic.wordlist = wordlist -EnglishMnemonic.mnemonicMatcher = /^[a-z]+( [a-z]+)*$/ -class Bip39 { - static encode(o) { - return new EnglishMnemonic(entropyToMnemonic(o)) - } - static decode(o) { - return mnemonicToEntropy(o.toString()) - } - static async mnemonicToSeed(o, _) { - const b = (0, encoding_1$s.toUtf8)(normalize(o.toString())), - $ = 'mnemonic' + (_ ? normalize(_) : ''), - en = (0, encoding_1$s.toUtf8)($) - return (0, pbkdf2_1.pbkdf2Sha512)(b, en, 2048, 64) - } -} -bip39.Bip39 = Bip39 -var hmac$1 = {} -Object.defineProperty(hmac$1, '__esModule', { value: !0 }) -hmac$1.Hmac = void 0 -let Hmac$1 = class { - constructor(o, _) { - const b = new o().blockSize - this.hash = (en) => new o().update(en).digest() - let $ = _ - if (($.length > b && ($ = this.hash($)), $.length < b)) { - const en = new Uint8Array(b - $.length) - $ = new Uint8Array([...$, ...en]) - } - ;(this.oKeyPad = $.map((en) => en ^ 92)), - (this.iKeyPad = $.map((en) => en ^ 54)), - (this.messageHasher = new o()), - (this.blockSize = b), - this.update(this.iKeyPad) - } - update(o) { - return this.messageHasher.update(o), this - } - digest() { - const o = this.messageHasher.digest() - return this.hash(new Uint8Array([...this.oKeyPad, ...o])) - } -} -hmac$1.Hmac = Hmac$1 -var keccak = {}, - sha3 = {} -Object.defineProperty(sha3, '__esModule', { value: !0 }) -sha3.shake256 = - sha3.shake128 = - sha3.keccak_512 = - sha3.keccak_384 = - sha3.keccak_256 = - sha3.keccak_224 = - sha3.sha3_512 = - sha3.sha3_384 = - sha3.sha3_256 = - sha3.sha3_224 = - sha3.Keccak = - sha3.keccakP = - void 0 -const _assert_js_1 = _assert, - _u64_js_1 = _u64, - utils_js_1$1 = utils$z, - [SHA3_PI, SHA3_ROTL, _SHA3_IOTA] = [[], [], []], - _0n = BigInt(0), - _1n = BigInt(1), - _2n = BigInt(2), - _7n = BigInt(7), - _256n = BigInt(256), - _0x71n = BigInt(113) -for (let e = 0, o = _1n, _ = 1, b = 0; e < 24; e++) { - ;([_, b] = [b, (2 * _ + 3 * b) % 5]), - SHA3_PI.push(2 * (5 * b + _)), - SHA3_ROTL.push((((e + 1) * (e + 2)) / 2) % 64) - let $ = _0n - for (let en = 0; en < 7; en++) - (o = ((o << _1n) ^ ((o >> _7n) * _0x71n)) % _256n), - o & _2n && ($ ^= _1n << ((_1n << BigInt(en)) - _1n)) - _SHA3_IOTA.push($) -} -const [SHA3_IOTA_H, SHA3_IOTA_L] = _u64_js_1.default.split(_SHA3_IOTA, !0), - rotlH = (e, o, _) => - _ > 32 ? _u64_js_1.default.rotlBH(e, o, _) : _u64_js_1.default.rotlSH(e, o, _), - rotlL = (e, o, _) => - _ > 32 ? _u64_js_1.default.rotlBL(e, o, _) : _u64_js_1.default.rotlSL(e, o, _) -function keccakP(e, o = 24) { - const _ = new Uint32Array(10) - for (let b = 24 - o; b < 24; b++) { - for (let nn = 0; nn < 10; nn++) - _[nn] = e[nn] ^ e[nn + 10] ^ e[nn + 20] ^ e[nn + 30] ^ e[nn + 40] - for (let nn = 0; nn < 10; nn += 2) { - const sn = (nn + 8) % 10, - gn = (nn + 2) % 10, - In = _[gn], - Jn = _[gn + 1], - qn = rotlH(In, Jn, 1) ^ _[sn], - Kn = rotlL(In, Jn, 1) ^ _[sn + 1] - for (let an = 0; an < 50; an += 10) (e[nn + an] ^= qn), (e[nn + an + 1] ^= Kn) - } - let $ = e[2], - en = e[3] - for (let nn = 0; nn < 24; nn++) { - const sn = SHA3_ROTL[nn], - gn = rotlH($, en, sn), - In = rotlL($, en, sn), - Jn = SHA3_PI[nn] - ;($ = e[Jn]), (en = e[Jn + 1]), (e[Jn] = gn), (e[Jn + 1] = In) - } - for (let nn = 0; nn < 50; nn += 10) { - for (let sn = 0; sn < 10; sn++) _[sn] = e[nn + sn] - for (let sn = 0; sn < 10; sn++) e[nn + sn] ^= ~_[(sn + 2) % 10] & _[(sn + 4) % 10] - } - ;(e[0] ^= SHA3_IOTA_H[b]), (e[1] ^= SHA3_IOTA_L[b]) - } - _.fill(0) -} -sha3.keccakP = keccakP -class Keccak extends utils_js_1$1.Hash { - constructor(o, _, b, $ = !1, en = 24) { - if ( - (super(), - (this.blockLen = o), - (this.suffix = _), - (this.outputLen = b), - (this.enableXOF = $), - (this.rounds = en), - (this.pos = 0), - (this.posOut = 0), - (this.finished = !1), - (this.destroyed = !1), - _assert_js_1.default.number(b), - 0 >= this.blockLen || this.blockLen >= 200) - ) - throw new Error('Sha3 supports only keccak-f1600 function') - ;(this.state = new Uint8Array(200)), (this.state32 = (0, utils_js_1$1.u32)(this.state)) - } - keccak() { - keccakP(this.state32, this.rounds), (this.posOut = 0), (this.pos = 0) - } - update(o) { - _assert_js_1.default.exists(this) - const { blockLen: _, state: b } = this - o = (0, utils_js_1$1.toBytes)(o) - const $ = o.length - for (let en = 0; en < $; ) { - const nn = Math.min(_ - this.pos, $ - en) - for (let sn = 0; sn < nn; sn++) b[this.pos++] ^= o[en++] - this.pos === _ && this.keccak() - } - return this - } - finish() { - if (this.finished) return - this.finished = !0 - const { state: o, suffix: _, pos: b, blockLen: $ } = this - ;(o[b] ^= _), _ & 128 && b === $ - 1 && this.keccak(), (o[$ - 1] ^= 128), this.keccak() - } - writeInto(o) { - _assert_js_1.default.exists(this, !1), _assert_js_1.default.bytes(o), this.finish() - const _ = this.state, - { blockLen: b } = this - for (let $ = 0, en = o.length; $ < en; ) { - this.posOut >= b && this.keccak() - const nn = Math.min(b - this.posOut, en - $) - o.set(_.subarray(this.posOut, this.posOut + nn), $), (this.posOut += nn), ($ += nn) - } - return o - } - xofInto(o) { - if (!this.enableXOF) throw new Error('XOF is not possible for this instance') - return this.writeInto(o) - } - xof(o) { - return _assert_js_1.default.number(o), this.xofInto(new Uint8Array(o)) - } - digestInto(o) { - if ((_assert_js_1.default.output(o, this), this.finished)) - throw new Error('digest() was already called') - return this.writeInto(o), this.destroy(), o - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)) - } - destroy() { - ;(this.destroyed = !0), this.state.fill(0) - } - _cloneInto(o) { - const { blockLen: _, suffix: b, outputLen: $, rounds: en, enableXOF: nn } = this - return ( - o || (o = new Keccak(_, b, $, nn, en)), - o.state32.set(this.state32), - (o.pos = this.pos), - (o.posOut = this.posOut), - (o.finished = this.finished), - (o.rounds = en), - (o.suffix = b), - (o.outputLen = $), - (o.enableXOF = nn), - (o.destroyed = this.destroyed), - o - ) - } -} -sha3.Keccak = Keccak -const gen = (e, o, _) => (0, utils_js_1$1.wrapConstructor)(() => new Keccak(o, e, _)) -sha3.sha3_224 = gen(6, 144, 224 / 8) -sha3.sha3_256 = gen(6, 136, 256 / 8) -sha3.sha3_384 = gen(6, 104, 384 / 8) -sha3.sha3_512 = gen(6, 72, 512 / 8) -sha3.keccak_224 = gen(1, 144, 224 / 8) -sha3.keccak_256 = gen(1, 136, 256 / 8) -sha3.keccak_384 = gen(1, 104, 384 / 8) -sha3.keccak_512 = gen(1, 72, 512 / 8) -const genShake = (e, o, _) => - (0, utils_js_1$1.wrapXOFConstructorWithOpts)( - (b = {}) => new Keccak(o, e, b.dkLen === void 0 ? _ : b.dkLen, !0), - ) -sha3.shake128 = genShake(31, 168, 128 / 8) -sha3.shake256 = genShake(31, 136, 256 / 8) -Object.defineProperty(keccak, '__esModule', { value: !0 }) -keccak.keccak256 = keccak.Keccak256 = void 0 -const sha3_1 = sha3, - utils_1$h = utils$y -class Keccak256 { - constructor(o) { - ;(this.blockSize = 512 / 8), (this.impl = sha3_1.keccak_256.create()), o && this.update(o) - } - update(o) { - return this.impl.update((0, utils_1$h.toRealUint8Array)(o)), this - } - digest() { - return this.impl.digest() - } -} -keccak.Keccak256 = Keccak256 -function keccak256(e) { - return new Keccak256(e).digest() -} -keccak.keccak256 = keccak256 -var libsodium = {}, - libsodiumWrappers = {}, - libsodiumSumoExports = {}, - libsodiumSumo = { - get exports() { - return libsodiumSumoExports - }, - set exports(e) { - libsodiumSumoExports = e - }, - }, - hasRequiredLibsodiumSumo -function requireLibsodiumSumo() { - return ( - hasRequiredLibsodiumSumo || - ((hasRequiredLibsodiumSumo = 1), - (function (e, o) { - ;(function (_) { - function b($) { - var en - ;(en = $) === void 0 && (en = {}) - var nn = en - typeof nn.sodium != 'object' && - (typeof commonjsGlobal == 'object' - ? (nn = commonjsGlobal) - : typeof window == 'object' && (nn = window)) - var sn = en - return ( - (en.ready = new Promise(function (gn, In) { - ;((an = sn).onAbort = In), - (an.print = function (br) {}), - (an.printErr = function (br) {}), - (an.onRuntimeInitialized = function () { - try { - an._crypto_secretbox_keybytes(), gn() - } catch (br) { - In(br) - } - }), - (an.useBackupModule = function () { - return new Promise(function (br, Fr) { - ;((vn = {}).onAbort = Fr), - (vn.onRuntimeInitialized = function () { - Object.keys(sn).forEach(function (vr) { - vr !== 'getRandomValue' && delete sn[vr] - }), - Object.keys(vn).forEach(function (vr) { - sn[vr] = vn[vr] - }), - br() - }) - var $r, - cr, - ir, - vn = vn !== void 0 ? vn : {}, - gr = Object.assign({}, vn), - Mr = typeof window == 'object', - Or = typeof importScripts == 'function', - _i = - typeof process == 'object' && - typeof process.versions == 'object' && - typeof process.versions.node == 'string', - eo = '' - if (_i) { - var no = require$$0$2, - Oo = require$$0$2 - ;(eo = Or ? Oo.dirname(eo) + '/' : __dirname + '/'), - ($r = (vr, Wr) => { - var qr = Po(vr) - return qr - ? Wr - ? qr - : qr.toString() - : ((vr = qt(vr) ? new URL(vr) : Oo.normalize(vr)), - no.readFileSync(vr, Wr ? void 0 : 'utf8')) - }), - (ir = (vr) => { - var Wr = $r(vr, !0) - return Wr.buffer || (Wr = new Uint8Array(Wr)), Wr - }), - (cr = (vr, Wr, qr) => { - var Xr = Po(vr) - Xr && Wr(Xr), - (vr = qt(vr) ? new URL(vr) : Oo.normalize(vr)), - no.readFile(vr, function (Ao, fo) { - Ao ? qr(Ao) : Wr(fo.buffer) - }) - }), - process.argv.length > 1 && process.argv[1].replace(/\\/g, '/'), - process.argv.slice(2), - (e.exports = vn), - (vn.inspect = function () { - return '[Emscripten Module object]' - }) - } else - (Mr || Or) && - (Or - ? (eo = self.location.href) - : typeof document < 'u' && - document.currentScript && - (eo = document.currentScript.src), - (eo = - eo.indexOf('blob:') !== 0 - ? eo.substr(0, eo.replace(/[?#].*/, '').lastIndexOf('/') + 1) - : ''), - ($r = (vr) => { - try { - var Wr = new XMLHttpRequest() - return Wr.open('GET', vr, !1), Wr.send(null), Wr.responseText - } catch (Xr) { - var qr = Po(vr) - if (qr) - return (function (Ao) { - for (var fo = [], wo = 0; wo < Ao.length; wo++) { - var so = Ao[wo] - so > 255 && (so &= 255), fo.push(String.fromCharCode(so)) - } - return fo.join('') - })(qr) - throw Xr - } - }), - Or && - (ir = (vr) => { - try { - var Wr = new XMLHttpRequest() - return ( - Wr.open('GET', vr, !1), - (Wr.responseType = 'arraybuffer'), - Wr.send(null), - new Uint8Array(Wr.response) - ) - } catch (Xr) { - var qr = Po(vr) - if (qr) return qr - throw Xr - } - }), - (cr = (vr, Wr, qr) => { - var Xr = new XMLHttpRequest() - Xr.open('GET', vr, !0), - (Xr.responseType = 'arraybuffer'), - (Xr.onload = () => { - if (Xr.status == 200 || (Xr.status == 0 && Xr.response)) - Wr(Xr.response) - else { - var Ao = Po(vr) - Ao ? Wr(Ao.buffer) : qr() - } - }), - (Xr.onerror = qr), - Xr.send(null) - })) - vn.print - var So, - lo = vn.printErr || void 0 - Object.assign(vn, gr), - (gr = null), - vn.arguments && vn.arguments, - vn.thisProgram && vn.thisProgram, - vn.quit && vn.quit, - vn.wasmBinary && (So = vn.wasmBinary), - vn.noExitRuntime - var Pn, - Xn = { - Memory: function (vr) { - this.buffer = new ArrayBuffer(65536 * vr.initial) - }, - Module: function (vr) {}, - Instance: function (vr, Wr) { - this.exports = (function (qr) { - for (var Xr, Ao = new Uint8Array(123), fo = 25; fo >= 0; --fo) - (Ao[48 + fo] = 52 + fo), (Ao[65 + fo] = fo), (Ao[97 + fo] = 26 + fo) - function wo(jo, os, as) { - for ( - var ys, - pn, - c = 0, - rn = os, - Es = as.length, - zr = - os + - ((3 * Es) >> 2) - - (as[Es - 2] == '=') - - (as[Es - 1] == '='); - c < Es; - c += 4 - ) - (ys = Ao[as.charCodeAt(c + 1)]), - (pn = Ao[as.charCodeAt(c + 2)]), - (jo[rn++] = (Ao[as.charCodeAt(c)] << 2) | (ys >> 4)), - rn < zr && (jo[rn++] = (ys << 4) | (pn >> 2)), - rn < zr && (jo[rn++] = (pn << 6) | Ao[as.charCodeAt(c + 3)]) - } - function so() { - throw new Error('abort') - } - return ( - (Ao[43] = 62), - (Ao[47] = 63), - (function (jo) { - var os = jo.a, - as = os.a, - ys = as.buffer - as.grow = function (d) { - d |= 0 - var a = 0 | lp(), - h = (a + d) | 0 - if (a < h && h < 65536) { - var g = new ArrayBuffer(zr(h, 65536)) - new Int8Array(g).set(pn), - (pn = new Int8Array(g)), - (c = new Int32Array(g)), - (rn = new Uint8Array(g)), - (Es = new Uint32Array(g)), - (ys = g), - (as.buffer = ys), - (Xr = rn) - } - return a - } - var pn = new Int8Array(ys), - c = new Int32Array(ys), - rn = new Uint8Array(ys), - Es = new Uint32Array(ys), - zr = Math.imul, - Ms = Math.clz32, - Ws = os.b, - ru = os.c, - Zs = os.d, - wu = os.e, - St = 102592, - cu = 0, - lu = 0, - On = 0 - function mu(d, a) { - var h, - g, - _e, - on, - hn, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0, - Gr = 0, - er = 0, - or = 0, - It = 0, - Ot = 0, - Nt = 0, - _r = 0, - Pr = 0, - Lr = 0, - Tr = 0, - xr = 0, - Hr = 0, - Yr = 0, - Zr = 0, - jr = 0, - ro = 0, - oo = 0, - ao = 0, - uo = 0, - po = 0, - mo = 0, - Eo = 0, - Do = 0, - To = 0, - Lo = 0, - Jo = 0, - _a = 0 - ;(xr = - rn[(a + 40) | 0] | - (rn[(a + 41) | 0] << 8) | - (rn[(a + 42) | 0] << 16) | - (rn[(a + 43) | 0] << 24)), - (Yr = j = - rn[(a + 44) | 0] | - (rn[(a + 45) | 0] << 8) | - (rn[(a + 46) | 0] << 16) | - (rn[(a + 47) | 0] << 24)), - (Dr = - rn[(a + 104) | 0] | - (rn[(a + 105) | 0] << 8) | - (rn[(a + 106) | 0] << 16) | - (rn[(a + 107) | 0] << 24)), - (Zr = j = - rn[(a + 108) | 0] | - (rn[(a + 109) | 0] << 8) | - (rn[(a + 110) | 0] << 16) | - (rn[(a + 111) | 0] << 24)), - (j = - rn[(a + 68) | 0] | - (rn[(a + 69) | 0] << 8) | - (rn[(a + 70) | 0] << 16) | - (rn[(a + 71) | 0] << 24)), - (hr = - rn[(a + 64) | 0] | - (rn[(a + 65) | 0] << 8) | - (rn[(a + 66) | 0] << 16) | - (rn[(a + 67) | 0] << 24)), - (er = j), - (To = j = - rn[(a + 36) | 0] | - (rn[(a + 37) | 0] << 8) | - (rn[(a + 38) | 0] << 16) | - (rn[(a + 39) | 0] << 24)), - (kt = j), - (Nt = - rn[(a + 120) | 0] | - (rn[(a + 121) | 0] << 8) | - (rn[(a + 122) | 0] << 16) | - (rn[(a + 123) | 0] << 24)), - (ao = j = - rn[(a + 124) | 0] | - (rn[(a + 125) | 0] << 8) | - (rn[(a + 126) | 0] << 16) | - (rn[(a + 127) | 0] << 24)), - (_e = j = - rn[(a + 92) | 0] | - (rn[(a + 93) | 0] << 8) | - (rn[(a + 94) | 0] << 16) | - (rn[(a + 95) | 0] << 24)), - (h = - rn[(a + 88) | 0] | - (rn[(a + 89) | 0] << 8) | - (rn[(a + 90) | 0] << 16) | - (rn[(a + 91) | 0] << 24)), - (fr = j), - (Ot = - rn[(a + 80) | 0] | - (rn[(a + 81) | 0] << 8) | - (rn[(a + 82) | 0] << 16) | - (rn[(a + 83) | 0] << 24)), - (ro = j = - rn[(a + 84) | 0] | - (rn[(a + 85) | 0] << 8) | - (rn[(a + 86) | 0] << 16) | - (rn[(a + 87) | 0] << 24)), - (Er = j), - (or = - rn[(d + 16) | 0] | - (rn[(d + 17) | 0] << 8) | - (rn[(d + 18) | 0] << 16) | - (rn[(d + 19) | 0] << 24)), - (j = - ((Pr = - rn[(d + 52) | 0] | - (rn[(d + 53) | 0] << 8) | - (rn[(d + 54) | 0] << 16) | - (rn[(d + 55) | 0] << 24)) + - kt) | - 0), - (Pt = - ((_r = - rn[(d + 48) | 0] | - (rn[(d + 49) | 0] << 8) | - (rn[(d + 50) | 0] << 16) | - (rn[(d + 51) | 0] << 24)) + - (Lr = - rn[(a + 32) | 0] | - (rn[(a + 33) | 0] << 8) | - (rn[(a + 34) | 0] << 16) | - (rn[(a + 35) | 0] << 24))) | - 0), - (j = - ((rn[(d + 20) | 0] | - (rn[(d + 21) | 0] << 8) | - (rn[(d + 22) | 0] << 16) | - (rn[(d + 23) | 0] << 24)) + - (_r >>> 0 > Pt >>> 0 ? (j + 1) | 0 : j)) | - 0), - (j = - ((or = - (cn = Pt) >>> 0 > (Pt = (Pt + or) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - Yr) | - 0), - (It = Hr = (Pt + xr) | 0), - (Hr = j = Hr >>> 0 < Pt >>> 0 ? (j + 1) | 0 : j), - (Pt = st( - Pt ^ - (rn[(d + 80) | 0] | - (rn[(d + 81) | 0] << 8) | - (rn[(d + 82) | 0] << 16) | - (rn[(d + 83) | 0] << 24)) ^ - -79577749, - or ^ - (rn[(d + 84) | 0] | - (rn[(d + 85) | 0] << 8) | - (rn[(d + 86) | 0] << 16) | - (rn[(d + 87) | 0] << 24)) ^ - 528734635, - 32, - )), - (mo = j = On), - (j = (j + 1013904242) | 0), - (or = Pt), - (ft = j = - (Pt = (Pt - 23791573) | 0) >>> 0 < 4271175723 - ? (j + 1) | 0 - : j), - (Pr = st(Pt ^ _r, j ^ Pr, 40)), - (j = ((j = Hr) + (Hr = On)) | 0), - (_r = st( - or ^ (nt = _r = (Pr + It) | 0), - mo ^ (at = nt >>> 0 < Pr >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (ft + (dr = On)) | 0), - (yt = j = - (_r = (Pt + (pt = _r)) | 0) >>> 0 < Pt >>> 0 - ? (j + 1) | 0 - : j), - (_r = j = st(Pr ^ (mt = _r), Hr ^ j, 1)), - (ft = Pt = On), - (Hr = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (mo = j = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (Tr = - rn[(d + 8) | 0] | - (rn[(d + 9) | 0] << 8) | - (rn[(d + 10) | 0] << 16) | - (rn[(d + 11) | 0] << 24)), - (Pt = - ((Pr = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)) + - (or = - rn[(d + 40) | 0] | - (rn[(d + 41) | 0] << 8) | - (rn[(d + 42) | 0] << 16) | - (rn[(d + 43) | 0] << 24))) | - 0), - (j = - ((Lo = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)) + - (_a = - rn[(d + 44) | 0] | - (rn[(d + 45) | 0] << 8) | - (rn[(d + 46) | 0] << 16) | - (rn[(d + 47) | 0] << 24))) | - 0), - (j = - ((rn[(d + 12) | 0] | - (rn[(d + 13) | 0] << 8) | - (rn[(d + 14) | 0] << 16) | - (rn[(d + 15) | 0] << 24)) + - (Pt >>> 0 < or >>> 0 ? (j + 1) | 0 : j)) | - 0), - (j = - (mo + - (It = - (cn = Pt) >>> 0 > (Pt = (Pt + Tr) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (Tr = (Pt + Hr) | 0) >>> 0 < Pt >>> 0 ? (j + 1) | 0 : j), - (cn = st( - Pt ^ - (rn[(d + 72) | 0] | - (rn[(d + 73) | 0] << 8) | - (rn[(d + 74) | 0] << 16) | - (rn[(d + 75) | 0] << 24)) ^ - 725511199, - It ^ - (rn[(d + 76) | 0] | - (rn[(d + 77) | 0] << 8) | - (rn[(d + 78) | 0] << 16) | - (rn[(d + 79) | 0] << 24)) ^ - -1694144372, - 32, - )), - (Un = st( - or ^ (Dn = (cn - 2067093701) | 0), - _a ^ - (Ut = - ((Zt = Pt = On) - - (((cn >>> 0 < 2067093701) + 1150833018) | 0)) | - 0), - 40, - )), - (j = ((Ar = On) + j) | 0), - (j = - ((Ht = - (_t = Pt = (Un + Tr) | 0) >>> 0 < Un >>> 0 - ? (j + 1) | 0 - : j) + - ft) | - 0), - (j = - ((_t >>> 0 > (Pt = (_t + _r) | 0) >>> 0 ? (j + 1) | 0 : j) + - Er) | - 0), - (j = - ((or = - ($n = Pt) >>> 0 > (Pt = (Pt + Ot) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - fr) | - 0), - (sr = fr = (Pt + h) | 0), - (et = j = fr >>> 0 < Pt >>> 0 ? (j + 1) | 0 : j), - (gt = _r), - (uo = ft), - (ft = Pt), - (It = or), - (_r = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (Pt = j = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (_a = j = - rn[0 | d] | - (rn[(d + 1) | 0] << 8) | - (rn[(d + 2) | 0] << 16) | - (rn[(d + 3) | 0] << 24)), - (on = or = - rn[(d + 4) | 0] | - (rn[(d + 5) | 0] << 8) | - (rn[(d + 6) | 0] << 16) | - (rn[(d + 7) | 0] << 24)), - (Er = j), - (j = - ((Eo = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)) + - (wn = - rn[(d + 36) | 0] | - (rn[(d + 37) | 0] << 8) | - (rn[(d + 38) | 0] << 16) | - (rn[(d + 39) | 0] << 24))) | - 0), - (j = - (on + - ((fr = - rn[(d + 32) | 0] | - (rn[(d + 33) | 0] << 8) | - (rn[(d + 34) | 0] << 16) | - (rn[(d + 35) | 0] << 24)) >>> - 0 > - ($n = - (fr + - (or = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24))) | - 0) >>> - 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((Tr = - (Er = ($n + Er) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j) + - Pt) | - 0), - (oo = $n = (Er + _r) | 0), - ($n = j = $n >>> 0 < Er >>> 0 ? (j + 1) | 0 : j), - (Yn = fr), - (fr = st( - Er ^ - (rn[0 | (j = (d - -64) | 0)] | - (rn[(j + 1) | 0] << 8) | - (rn[(j + 2) | 0] << 16) | - (rn[(j + 3) | 0] << 24)) ^ - -1377402159, - Tr ^ - (rn[(j + 4) | 0] | - (rn[(j + 5) | 0] << 8) | - (rn[(j + 6) | 0] << 16) | - (rn[(j + 7) | 0] << 24)) ^ - 1359893119, - 32, - )), - (Tr = j = On), - (j = (j + 1779033703) | 0), - (Er = fr), - (wt = j = - (fr = (fr - 205731576) | 0) >>> 0 < 4089235720 - ? (j + 1) | 0 - : j), - (wn = st(Yn ^ (bt = fr), j ^ wn, 40)), - (j = ((rr = On) + $n) | 0), - (Yn = st( - Er ^ ($n = fr = (wn + oo) | 0), - Tr ^ (Rt = wn >>> 0 > $n >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = st(Yn ^ ft, (yr = On) ^ It, 32)), - (tt = fr = On), - (Qt = j), - (g = j = - rn[(a + 60) | 0] | - (rn[(a + 61) | 0] << 8) | - (rn[(a + 62) | 0] << 16) | - (rn[(a + 63) | 0] << 24)), - (Tr = oo = - rn[(a + 56) | 0] | - (rn[(a + 57) | 0] << 8) | - (rn[(a + 58) | 0] << 16) | - (rn[(a + 59) | 0] << 24)), - (Ct = - rn[(d + 24) | 0] | - (rn[(d + 25) | 0] << 8) | - (rn[(d + 26) | 0] << 16) | - (rn[(d + 27) | 0] << 24)), - (fr = - ((It = - rn[(a + 48) | 0] | - (rn[(a + 49) | 0] << 8) | - (rn[(a + 50) | 0] << 16) | - (rn[(a + 51) | 0] << 24)) + - (Er = - rn[(d + 56) | 0] | - (rn[(d + 57) | 0] << 8) | - (rn[(d + 58) | 0] << 16) | - (rn[(d + 59) | 0] << 24))) | - 0), - (j = - ((Do = - rn[(a + 52) | 0] | - (rn[(a + 53) | 0] << 8) | - (rn[(a + 54) | 0] << 16) | - (rn[(a + 55) | 0] << 24)) + - (jt = - rn[(d + 60) | 0] | - (rn[(d + 61) | 0] << 8) | - (rn[(d + 62) | 0] << 16) | - (rn[(d + 63) | 0] << 24))) | - 0), - (j = - ((rn[(d + 28) | 0] | - (rn[(d + 29) | 0] << 8) | - (rn[(d + 30) | 0] << 16) | - (rn[(d + 31) | 0] << 24)) + - (fr >>> 0 < Er >>> 0 ? (j + 1) | 0 : j)) | - 0), - (j = - (g + - (ft = - (At = fr) >>> 0 > (fr = (Ct + fr) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (Ct = (fr + Tr) | 0) >>> 0 < fr >>> 0 ? (j + 1) | 0 : j), - (ft = st( - fr ^ - (rn[(d + 88) | 0] | - (rn[(d + 89) | 0] << 8) | - (rn[(d + 90) | 0] << 16) | - (rn[(d + 91) | 0] << 24)) ^ - 327033209, - ft ^ - (rn[(d + 92) | 0] | - (rn[(d + 93) | 0] << 8) | - (rn[(d + 94) | 0] << 16) | - (rn[(d + 95) | 0] << 24)) ^ - 1541459225, - 32, - )), - (Er = st( - Er ^ (Tr = (ft + 1595750129) | 0), - (At = jt) ^ - (jt = - ((Tt = fr = On) - - (((ft >>> 0 < 2699217167) + 1521486533) | 0)) | - 0), - 40, - )), - (j = ((wr = On) + j) | 0), - (fr = st( - (Ct = fr = (Er + Ct) | 0) ^ ft, - Tt ^ (At = Ct >>> 0 < Er >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (jt + (Qr = On)) | 0), - (Jt = j = - (fr = (Tr + (jt = fr)) | 0) >>> 0 < Tr >>> 0 - ? (j + 1) | 0 - : j), - (j = (tt + j) | 0), - (rt = gt ^ (ft = (Qt + (Tt = fr)) | 0)), - (gt = j = ft >>> 0 < Tt >>> 0 ? (j + 1) | 0 : j), - (Tr = st(rt, j ^ uo, 40)), - (j = ((uo = On) + et) | 0), - (fr = st( - (sr = Qt ^ (et = fr = (Tr + sr) | 0)), - tt ^ (Qt = et >>> 0 < Tr >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (gt + (Gr = On)) | 0), - (tt = j = - (gt = (ft + (sr = fr)) | 0) >>> 0 < ft >>> 0 - ? (j + 1) | 0 - : j), - (fr = - ((tr = st(gt ^ Tr, uo ^ j, 1)) + - (ft = - rn[(a + 72) | 0] | - (rn[(a + 73) | 0] << 8) | - (rn[(a + 74) | 0] << 16) | - (rn[(a + 75) | 0] << 24))) | - 0), - (j = - ((jr = On) + - (uo = - rn[(a + 76) | 0] | - (rn[(a + 77) | 0] << 8) | - (rn[(a + 78) | 0] << 16) | - (rn[(a + 79) | 0] << 24))) | - 0), - (po = fr), - (xt = fr >>> 0 < ft >>> 0 ? (j + 1) | 0 : j), - (Xt = Zr), - (fr = - rn[(a + 96) | 0] | - (rn[(a + 97) | 0] << 8) | - (rn[(a + 98) | 0] << 16) | - (rn[(a + 99) | 0] << 24)), - (Tr = j = - rn[(a + 100) | 0] | - (rn[(a + 101) | 0] << 8) | - (rn[(a + 102) | 0] << 16) | - (rn[(a + 103) | 0] << 24)), - (Er = ((j = nt) + (nt = st(Tt ^ Er, Jt ^ wr, 1))) | 0), - (j = ((Tt = On) + at) | 0), - (j = ((nt >>> 0 > Er >>> 0 ? (j + 1) | 0 : j) + Tr) | 0), - (j = - ((at = - (at = Er) >>> 0 > (Er = (fr + Er) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - Xt) | - 0), - (rt = Jt = (Er + Dr) | 0), - (Jt = j = Jt >>> 0 < Er >>> 0 ? (j + 1) | 0 : j), - (_t = st(cn ^ _t, Ht ^ Zt, 48)), - (Ht = j = st(_t ^ Er, (Zt = On) ^ at, 32)), - (j = (wt + yr) | 0), - (j = - ((wr = Er = On) + - (bt = - (Er = (Yn + bt) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (wt = j = - (at = Er) >>> 0 > (Yn = (at + Ht) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (nt = st(Yn ^ nt, Tt ^ j, 40)), - (j = ((yr = On) + Jt) | 0), - (j = - ((Tt = - nt >>> 0 > (Jt = Er = (nt + rt) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - xt) | - 0), - (j = - ((cn = - Jt >>> 0 > (Er = (Jt + po) | 0) >>> 0 ? (j + 1) | 0 : j) + - ao) | - 0), - (po = xt = (Er + Nt) | 0), - (xt = j = xt >>> 0 < Er >>> 0 ? (j + 1) | 0 : j), - (rt = Er), - (Xt = cn), - (Er = - rn[(a + 116) | 0] | - (rn[(a + 117) | 0] << 8) | - (rn[(a + 118) | 0] << 16) | - (rn[(a + 119) | 0] << 24)), - (a = - rn[(a + 112) | 0] | - (rn[(a + 113) | 0] << 8) | - (rn[(a + 114) | 0] << 16) | - (rn[(a + 115) | 0] << 24)), - (wn = st(wn ^ at, bt ^ rr, 1)), - (j = ((rr = On) + At) | 0), - (j = - (((cn = (wn + Ct) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j) + - Er) | - 0), - (j = - ((at = - (bt = cn) >>> 0 > (cn = (a + cn) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - ao) | - 0), - (Jo = bt = (cn + Nt) | 0), - (bt = j = bt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (j = st(cn ^ pt, at ^ dr, 32)), - (Br = cn = On), - (pt = j), - (at = cn), - (j = (Zt + Ut) | 0), - (_t = cn = (Dn + _t) | 0), - (Ct = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (j = (j + at) | 0), - (At = cn = (cn + pt) | 0), - (dr = j = _t >>> 0 > cn >>> 0 ? (j + 1) | 0 : j), - (at = st(cn ^ wn, rr ^ j, 40)), - (j = ((rr = On) + bt) | 0), - (pt = st( - (cn = (at + Jo) | 0) ^ pt, - Br ^ (Dn = cn >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = st(pt ^ rt, (Jo = On) ^ Xt, 32)), - (Br = wn = On), - (bt = j), - (rt = wn), - (Un = st(Un ^ _t, Ct ^ Ar, 1)), - (j = (Rt + (_t = On)) | 0), - (j = - (((wn = $n) >>> 0 > ($n = ($n + Un) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - er) | - 0), - (j = - (($n = - (wn = ($n + hr) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j) + - uo) | - 0), - (Xt = Rt = (wn + ft) | 0), - (Rt = j = Rt >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (Ct = Un), - (wn = st(wn ^ jt, $n ^ Qr, 32)), - (j = ((jt = On) + yt) | 0), - (mt = st( - Ct ^ ($n = Un = (wn + mt) | 0), - (yt = wn >>> 0 > $n >>> 0 ? (j + 1) | 0 : j) ^ _t, - 40, - )), - (j = ((Qr = On) + Rt) | 0), - (_t = Un = (mt + Xt) | 0), - (Un = st( - wn ^ Un, - jt ^ (Rt = Un >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (yt + (hn = On)) | 0), - (yt = Un), - (jt = j = - (Un = ($n + Un) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (j = (j + rt) | 0), - (j = - (Ct = Un) >>> 0 > (Un = (Un + bt) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (rt = Un), - (Un ^= tr), - (tr = j), - (wn = st(Un, jr ^ j, 40)), - (j = ((jr = On) + xt) | 0), - (xt = Un = (wn + po) | 0), - (j = (_e + (Xt = wn >>> 0 > Un >>> 0 ? (j + 1) | 0 : j)) | 0), - (po = Un = (Un + h) | 0), - (Zt = j = Un >>> 0 < h >>> 0 ? (j + 1) | 0 : j), - (Un = cn), - (Ut = Dr), - (Ar = Zr), - (cn = st(Ht ^ Jt, Tt ^ wr, 48)), - (j = (wt + (wr = On)) | 0), - (Ht = cn), - (wt = j = - ($n = (Yn + cn) | 0) >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (cn = st($n ^ nt, yr ^ j, 1)), - (j = ((Yn = On) + Ar) | 0), - (j = - (((nt = (cn + Ut) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (j = - (Do + - (Un = - (Dn = (Un + nt) | 0) >>> 0 < nt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Jt = nt = (Dn + It) | 0), - (nt = j = nt >>> 0 < It >>> 0 ? (j + 1) | 0 : j), - (Dn = st(Dn ^ yt, Un ^ hn, 32)), - (j = (tt + (Tt = On)) | 0), - (yt = Dn), - (gt = j = - (Dn = (gt + Dn) | 0) >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - (Un = st(cn ^ Dn, j ^ Yn, 40)), - (j = ((j = nt) + (nt = On)) | 0), - (Yn = cn = (Un + Jt) | 0), - (cn = st( - cn ^ yt, - Tt ^ (Jt = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (gt + (yr = On)) | 0), - (Tt = cn), - (tt = j = - (gt = (Dn + cn) | 0) >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (cn = st(Un ^ gt, nt ^ j, 1)), - (j = ((nt = On) + Zt) | 0), - (j = - (g + - (Un = - (Dn = (cn + po) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (po = yt = (Dn + oo) | 0), - (yt = j = yt >>> 0 < oo >>> 0 ? (j + 1) | 0 : j), - (Zt = cn), - (Ut = nt), - (j = (dr + Jo) | 0), - (j = (cn = (pt + At) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (pt = cn), - (At = j), - (j = st(cn ^ at, rr ^ j, 1)), - (at = nt = On), - (cn = j), - (j = (Rt + Er) | 0), - (j = - (((_t = (a + _t) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j) + - nt) | - 0), - (j = - (ro + - (_t = - (nt = (cn + _t) | 0) >>> 0 < _t >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (dr = Rt = (nt + Ot) | 0), - (Rt = j = Rt >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j), - (nt = st(nt ^ sr, _t ^ Gr, 32)), - (j = (wt + (sr = On)) | 0), - (_t = nt), - (wt = j = - (wt = $n) >>> 0 > ($n = ($n + nt) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (nt = st(cn ^ $n, j ^ at, 40)), - (j = ((rr = On) + Rt) | 0), - (at = cn = (nt + dr) | 0), - (cn = st( - (Rt = cn ^ _t), - sr ^ (_t = cn >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (wt + (Gr = On)) | 0), - (wt = cn), - (Rt = cn = ($n + cn) | 0), - (sr = j = cn >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (dr = Dn), - (Ar = Un), - (cn = st(mt ^ Ct, jt ^ Qr, 1)), - (j = (($n = On) + kt) | 0), - (j = - (Qt + - ((Dn = (cn + Lr) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (er + - (Un = - (Dn = (Dn + et) | 0) >>> 0 < et >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Qt = et = (Dn + hr) | 0), - (et = j = et >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (mt = cn), - (cn = ((Dn = st(Dn ^ Ht, Un ^ wr, 32)) + pt) | 0), - (j = ((pt = On) + At) | 0), - (Un = cn), - ($n = st( - cn ^ mt, - (Ht = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j) ^ $n, - 40, - )), - (j = ((wr = On) + et) | 0), - (et = cn = ($n + Qt) | 0), - (Ct = st( - cn ^ Dn, - pt ^ (Qt = cn >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (Dn = st(Ct ^ dr, (j = Ar) ^ (Ar = On), 32)), - (j = ((dr = On) + sr) | 0), - (pt = cn = (Dn + Rt) | 0), - (mt = st( - cn ^ Zt, - (At = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j) ^ Ut, - 40, - )), - (j = ((Zt = On) + yt) | 0), - (yt = cn = (mt + po) | 0), - (cn = st( - cn ^ Dn, - dr ^ (jt = cn >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (At + (Qr = On)) | 0), - (At = cn), - (dr = j = - (Dn = pt) >>> 0 > (pt = (pt + cn) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (cn = st(pt ^ mt, Zt ^ j, 1)), - (j = (ao + (po = On)) | 0), - (Zt = cn), - (Jo = cn = (Nt + cn) | 0), - (mt = j = cn >>> 0 < Nt >>> 0 ? (j + 1) | 0 : j), - (Dn = xr), - (cn = st(nt ^ Rt, rr ^ sr, 1)), - (j = (Jt + (nt = On)) | 0), - (j = - (((Rt = Yn) >>> 0 > (Yn = (cn + Yn) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - Yr) | - 0), - (j = - ((Rt = - (Dn = (Dn + Yn) | 0) >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j) + - mo) | - 0), - (Ut = Yn = (Dn + Hr) | 0), - (Jt = j = Yn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (sr = cn), - (Yn = st(bt ^ xt, Xt ^ Br, 48)), - (j = st(Yn ^ Dn, (rr = On) ^ Rt, 32)), - (Br = cn = On), - (bt = j), - (Dn = cn), - (j = (Ht + Ar) | 0), - (j = (cn = (Un + Ct) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = cn), - (Ht = j), - (j = (j + Dn) | 0), - (Rt = cn = (cn + bt) | 0), - (Ct = j = Un >>> 0 > cn >>> 0 ? (j + 1) | 0 : j), - (Dn = st(cn ^ sr, j ^ nt, 40)), - (j = ((j = Jt) + (Jt = On)) | 0), - (sr = cn = (Dn + Ut) | 0), - (xt = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (j = (j + mt) | 0), - (Xt = j = - (nt = (cn + Jo) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (mt = j), - (cn = st($n ^ Un, Ht ^ wr, 1)), - (j = (Pt + ($n = On)) | 0), - (j = - (_t + - ((Un = (cn + _r) | 0) >>> 0 < _r >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (Tr + - (at = - (Un = (Un + at) | 0) >>> 0 < at >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ut = _t = (Un + fr) | 0), - (_t = j = _t >>> 0 < fr >>> 0 ? (j + 1) | 0 : j), - (Ht = cn), - (j = st(Un ^ Tt, at ^ yr, 32)), - (Ar = cn = On), - (Un = j), - (at = cn), - (j = (rr + tr) | 0), - (Tt = cn = (Yn + rt) | 0), - (tr = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (j = (j + at) | 0), - (j = (Yn = (cn + Un) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = Yn ^ Ht), - (Ht = j), - (at = st(cn, j ^ $n, 40)), - (j = ((yr = On) + _t) | 0), - ($n = cn = (at + Ut) | 0), - (rt = st( - cn ^ Un, - Ar ^ (_t = cn >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = st(rt ^ nt, (wr = On) ^ mt, 32)), - (Jo = cn = On), - (Ut = j), - (mt = cn), - (cn = st(wn ^ Tt, tr ^ jr, 1)), - (j = (Qt + (wn = On)) | 0), - (j = - (Eo + - ((Un = (cn + et) | 0) >>> 0 < et >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((et = - (Un = (Un + or) | 0) >>> 0 < or >>> 0 ? (j + 1) | 0 : j) + - Lo) | - 0), - (Tt = Qt = (Un + Pr) | 0), - (Qt = j = Qt >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = st(Un ^ wt, et ^ Gr, 32)), - (j = (tt + (tr = On)) | 0), - (wt = Un), - (et = wn), - (wn = j = - (Un = (gt + Un) | 0) >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - (et = st(cn ^ Un, et ^ j, 40)), - (j = ((Gr = On) + Qt) | 0), - (gt = cn = (et + Tt) | 0), - (cn = st( - (Tt = cn ^ wt), - tr ^ (wt = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (wn + (rr = On)) | 0), - (wn = cn), - (Qt = cn = (Un + cn) | 0), - (Tt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (j = (j + mt) | 0), - (tt = j = - (mt = (cn + Ut) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Un = st(mt ^ Zt, po ^ j, 40)), - (j = (Xt + (tr = On)) | 0), - (j = - (((cn = (Un + nt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j) + - Zr) | - 0), - (nt = cn), - (Xt = cn = (cn + Dr) | 0), - (Zt = j = nt >>> 0 > cn >>> 0 ? (j + 1) | 0 : j), - (Ar = er), - (nt = st(bt ^ sr, xt ^ Br, 48)), - (j = ((jr = On) + Ct) | 0), - (bt = cn = (nt + Rt) | 0), - (j = st( - cn ^ Dn, - (Rt = cn >>> 0 < nt >>> 0 ? (j + 1) | 0 : j) ^ Jt, - 1, - )), - (Jt = Dn = On), - (cn = j), - (j = (_t + _e) | 0), - (j = - ((($n = ($n + h) | 0) >>> 0 < h >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (j = - (($n = - (Dn = (cn + $n) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j) + - Ar) | - 0), - (Ct = _t = (Dn + hr) | 0), - (_t = j = _t >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Dn = st(Dn ^ wn, $n ^ rr, 32)), - (j = (dr + (sr = On)) | 0), - (pt = j = - (wn = (Dn + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ wn, j ^ Jt, 40)), - (j = ((xt = On) + _t) | 0), - (_t = cn = ($n + Ct) | 0), - (Dn = st( - cn ^ Dn, - sr ^ (Jt = cn >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (pt + (Ct = On)) | 0), - (sr = j = - (pt = (Dn + wn) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (cn = st($n ^ pt, xt ^ j, 1)), - (j = ((xt = On) + Zt) | 0), - (j = - (uo + - ((wn = (cn + Xt) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (($n = - (wn = (wn + ft) | 0) >>> 0 < ft >>> 0 ? (j + 1) | 0 : j) + - kt) | - 0), - (po = kt = (wn + Lr) | 0), - (kt = j = kt >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (dr = cn), - (Ar = wn), - (rr = $n), - (wn = xr), - (cn = st(et ^ Qt, Tt ^ Gr, 1)), - (j = (jt + (et = On)) | 0), - (j = - ((($n = yt) >>> 0 > (yt = (cn + yt) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - Yr) | - 0), - (j = - (Lo + - ($n = - (wn = (wn + yt) | 0) >>> 0 < yt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (jt = yt = (wn + Pr) | 0), - (Qt = j = yt >>> 0 < Pr >>> 0 ? (j + 1) | 0 : j), - (yt = cn), - ($n = j = st(wn ^ nt, $n ^ jr, 32)), - (j = (Ht + wr) | 0), - (j = - ((Tt = cn = On) + - (Yn = - (cn = (Yn + rt) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ht = j = - (nt = (cn + $n) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (yt = st(nt ^ yt, j ^ et, 40)), - (j = ((wr = On) + Qt) | 0), - (Qt = st( - (jt = (wn = (yt + jt) | 0) ^ $n), - Tt ^ ($n = wn >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = st(Qt ^ Ar, (Gr = On) ^ rr, 32)), - (jr = et = On), - (jt = j), - (Tt = et), - (cn = st(cn ^ at, Yn ^ yr, 1)), - (j = (Tr + (et = On)) | 0), - (j = - (wt + - ((Yn = (cn + fr) | 0) >>> 0 < fr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (Eo + - (gt = - (Yn = (Yn + gt) | 0) >>> 0 < gt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ar = at = (Yn + or) | 0), - (at = j = at >>> 0 < or >>> 0 ? (j + 1) | 0 : j), - (wt = cn), - (rt = et), - (Yn = st(Yn ^ At, gt ^ Qr, 32)), - (j = ((At = On) + Rt) | 0), - (et = cn = (Yn + bt) | 0), - (gt = st( - cn ^ wt, - (bt = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j) ^ rt, - 40, - )), - (j = ((yr = On) + at) | 0), - (wt = cn = (gt + Ar) | 0), - (cn = st( - cn ^ Yn, - At ^ (Rt = cn >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (bt + (Ar = On)) | 0), - (at = cn), - (bt = cn = (et + cn) | 0), - (At = j = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (j = (j + Tt) | 0), - (Tt = cn = (cn + jt) | 0), - (Yn = xt), - (xt = j = bt >>> 0 > cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ dr, Yn ^ j, 40)), - (j = ((j = kt) + (kt = On)) | 0), - (rt = cn = (Yn + po) | 0), - (dr = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (et = $n), - (cn = st(Ut ^ Xt, Zt ^ Jo, 48)), - (j = (tt + (Qr = On)) | 0), - (tt = cn), - ($n = (cn = (mt + cn) | 0) ^ Un), - (Un = j = cn >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - ($n = st($n, j ^ tr, 1)), - (j = ((tr = On) + et) | 0), - (j = - (g + - ((wn = ($n + wn) | 0) >>> 0 < $n >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((et = - (wn = (wn + oo) | 0) >>> 0 < oo >>> 0 ? (j + 1) | 0 : j) + - Pt) | - 0), - (Xt = mt = (wn + _r) | 0), - (mt = j = mt >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = st(wn ^ at, et ^ Ar, 32)), - (j = (sr + (Zt = On)) | 0), - (sr = wn), - (pt = j = - (et = (pt + wn) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - ($n = st($n ^ et, tr ^ j, 40)), - (j = ((j = mt) + (mt = On)) | 0), - (at = wn = ($n + Xt) | 0), - (wn = st( - (Ut = wn ^ sr), - Zt ^ (sr = wn >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (pt + (po = On)) | 0), - (tr = wn), - (Xt = j = - (pt = (et + wn) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (wn = st($n ^ pt, mt ^ j, 1)), - (j = ((mt = On) + dr) | 0), - (j = - (_e + - (($n = (wn + rt) | 0) >>> 0 < wn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (Er + - (et = - ($n = ($n + h) | 0) >>> 0 < h >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Jo = Zt = (a + $n) | 0), - (Zt = j = Zt >>> 0 < a >>> 0 ? (j + 1) | 0 : j), - (Ut = wn), - (Ar = mt), - (mt = $n), - (rr = et), - (wn = st(gt ^ bt, At ^ yr, 1)), - (j = ((et = On) + Jt) | 0), - (j = - (ro + - (($n = (wn + _t) | 0) >>> 0 < wn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((gt = - ($n = ($n + Ot) | 0) >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j) + - Er) | - 0), - (Jt = _t = (a + $n) | 0), - (_t = j = _t >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (bt = wn), - ($n = j = st($n ^ tt, gt ^ Qr, 32)), - (gt = wn = On), - (j = (Ht + Gr) | 0), - (Ht = j = - (wn = (nt + Qt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (j = (j + gt) | 0), - (j = - (nt = wn) >>> 0 > (wn = (wn + $n) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (Qt = wn), - (wn ^= bt), - (bt = j), - (et = st(wn, j ^ et, 40)), - (j = ((yr = On) + _t) | 0), - (gt = st( - (_t = (wn = (et + Jt) | 0) ^ $n), - gt ^ ($n = wn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = st(gt ^ mt, (j = rr) ^ (rr = On), 32)), - (Qr = mt = On), - (_t = j), - (Jt = Un), - (Un = Dn), - (j = st(nt ^ yt, Ht ^ wr, 1)), - (At = Dn = On), - (nt = j), - (j = (Rt + mo) | 0), - (j = - (((yt = (wt + Hr) | 0) >>> 0 < Hr >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (yt = j = - (Dn = (nt + yt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - (Un = st(Dn ^ Un, j ^ Ct, 32)), - (j = ((j = Jt) + (Jt = On)) | 0), - (nt = st( - (cn = (Un + cn) | 0) ^ nt, - At ^ (Ht = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (yt + (wr = On)) | 0), - (wt = nt), - (j = - (Do + - ((Rt = Dn) >>> 0 > (Dn = (Dn + nt) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Rt = j = - (nt = (Dn + It) | 0) >>> 0 < It >>> 0 ? (j + 1) | 0 : j), - (Dn = st(Un ^ nt, Jt ^ j, 48)), - (j = (Ht + (Gr = On)) | 0), - (Ct = cn), - (Un = Dn), - (Ht = cn = (cn + Dn) | 0), - (Jt = j = Ct >>> 0 > cn >>> 0 ? (j + 1) | 0 : j), - (j = (j + mt) | 0), - (Ct = j = - (mt = (cn + _t) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = ((yt = st(mt ^ Ut, j ^ Ar, 40)) + Jo) | 0), - (j = ((Jo = On) + Zt) | 0), - (At = cn), - (tt = cn >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - (cn = st(jt ^ rt, dr ^ jr, 48)), - (j = ((jt = On) + xt) | 0), - (Tt = Dn = (cn + Tt) | 0), - (Ut = kt), - (kt = j = Dn >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (j = st(Dn ^ Yn, Ut ^ j, 1)), - (rt = Dn = On), - (Yn = j), - (j = ($n + g) | 0), - (j = - (((wn = (wn + oo) | 0) >>> 0 < oo >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (j = - (uo + - (wn = - (Dn = (wn + Yn) | 0) >>> 0 < wn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (dr = $n = (Dn + ft) | 0), - ($n = j = $n >>> 0 < ft >>> 0 ? (j + 1) | 0 : j), - (Dn = st(Dn ^ Un, wn ^ Gr, 32)), - (j = (Xt + (Zt = On)) | 0), - (xt = Dn), - (Dn = (Un = (pt + Dn) | 0) ^ Yn), - (Yn = j = Un >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (wn = st(Dn, rt ^ j, 40)), - (j = ((j = $n) + ($n = On)) | 0), - (rt = Dn = (wn + dr) | 0), - (Dn = st( - (pt = Dn ^ xt), - Zt ^ (xt = Dn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (Yn + (Gr = On)) | 0), - (Xt = Dn), - (Un = j = - (Dn = (Un + Dn) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (wn = st(Dn ^ wn, $n ^ j, 1)), - (j = ((pt = On) + tt) | 0), - (j = - (ao + - (($n = (wn + At) | 0) >>> 0 < wn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((Yn = - ($n = ($n + Nt) | 0) >>> 0 < Nt >>> 0 ? (j + 1) | 0 : j) + - er) | - 0), - (Br = dr = ($n + hr) | 0), - (dr = j = dr >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (Zt = wn), - (Ut = $n), - (Ar = Yn), - (wn = st(wt ^ Ht, Jt ^ wr, 1)), - (j = ((Jt = On) + Zr) | 0), - (j = - (sr + - (wn >>> 0 > ($n = (wn + Dr) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Yn = j = - ($n = ($n + at) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (j = st(cn ^ $n, j ^ jt, 32)), - (jt = cn = On), - (at = j), - (j = (bt + rr) | 0), - (j = (cn = (gt + Qt) | 0) >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - (gt = cn), - (Ht = j), - (j = (jt + j) | 0), - (bt = cn = (cn + at) | 0), - (wt = j = gt >>> 0 > cn >>> 0 ? (j + 1) | 0 : j), - (cn = st(cn ^ wn, Jt ^ j, 40)), - (j = (Yn + (rr = On)) | 0), - (Qt = cn), - (j = - (Tr + - ((cn = ($n + cn) | 0) >>> 0 < $n >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (cn = (cn + fr) | 0) >>> 0 < fr >>> 0 ? (j + 1) | 0 : j), - (Jt = cn), - (cn ^= at), - (at = j), - (Yn = st(cn, jt ^ j, 48)), - (j = st(Yn ^ Ut, (j = Ar) ^ (Ar = On), 32)), - (wr = cn = On), - (jt = j), - (sr = cn), - (cn = st(et ^ gt, Ht ^ yr, 1)), - (j = (mo + ($n = On)) | 0), - (j = - (Rt + - ((wn = (cn + Hr) | 0) >>> 0 < Hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((et = - (wn = (wn + nt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j) + - Pt) | - 0), - (Rt = gt = (wn + _r) | 0), - (gt = j = gt >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (nt = cn), - (Ht = $n), - (cn = ((wn = st(wn ^ tr, et ^ po, 32)) + Tt) | 0), - (j = ((Tt = On) + kt) | 0), - ($n = cn), - (et = st( - (et = cn ^ nt), - (nt = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j) ^ Ht, - 40, - )), - (j = ((yr = On) + gt) | 0), - (gt = cn = (et + Rt) | 0), - (wn = st( - cn ^ wn, - Tt ^ (kt = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (nt + (Ht = On)) | 0), - (Rt = cn = (wn + $n) | 0), - (Tt = j = cn >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (j = (j + sr) | 0), - (sr = j = - (nt = (cn + jt) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - ($n = st(nt ^ Zt, j ^ pt, 40)), - (j = ((tr = On) + dr) | 0), - (dr = cn = ($n + Br) | 0), - (Zt = j = cn >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (cn = Dn), - (pt = Un), - (Un = wn), - (Dn = st(_t ^ At, tt ^ Qr, 48)), - (j = (Ct + (Br = On)) | 0), - (_t = Dn), - (mt = j = - (wn = (mt + Dn) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (j = st(wn ^ yt, Jo ^ j, 1)), - (Ct = Dn = On), - (yt = j), - (j = (at + To) | 0), - (j = - (((at = (Jt + Lr) | 0) >>> 0 < Lr >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (at = j = - (Dn = (at + yt) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (Un = st(Dn ^ Un, j ^ Ht, 32)), - (j = ((Jt = On) + pt) | 0), - (yt = st( - (cn = (Un + cn) | 0) ^ yt, - Ct ^ (pt = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (at + (At = On)) | 0), - (j = - (Eo + - ((at = Dn) >>> 0 > (Dn = (Dn + yt) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ht = j = - (at = (Dn + or) | 0) >>> 0 < or >>> 0 ? (j + 1) | 0 : j), - (Dn = st(Un ^ at, Jt ^ j, 48)), - (j = (pt + (Qr = On)) | 0), - (Jt = Dn), - (Ct = j = - (pt = (cn + Dn) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = st(pt ^ yt, At ^ j, 1)), - (j = ((yt = On) + Zt) | 0), - (j = - (ro + - ((Dn = (cn + dr) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (ao + - (Un = - (Dn = (Dn + Ot) | 0) >>> 0 < Ot >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (jr = At = (Dn + Nt) | 0), - (At = j = At >>> 0 < Nt >>> 0 ? (j + 1) | 0 : j), - (tt = cn), - (Ut = Dn), - (cn = st(et ^ Rt, Tt ^ yr, 1)), - (j = ((et = On) + xt) | 0), - (j = - (Lo + - ((Dn = (cn + rt) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (Do + - (Rt = - (Dn = (Dn + Pr) | 0) >>> 0 < Pr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (rt = Tt = (Dn + It) | 0), - (Tt = j = Tt >>> 0 < It >>> 0 ? (j + 1) | 0 : j), - (xt = cn), - (j = st(Dn ^ _t, Rt ^ Br, 32)), - (Br = cn = On), - (Dn = j), - (j = (wt + Ar) | 0), - (bt = cn = (Yn + bt) | 0), - (_t = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (j = (Br + j) | 0), - (wt = j = - (Yn = (cn + Dn) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (et = st(Yn ^ xt, j ^ et, 40)), - (j = ((Ar = On) + Tt) | 0), - (Rt = cn = (et + rt) | 0), - (xt = st( - cn ^ Dn, - Br ^ (Tt = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = st(xt ^ Ut, (Br = On) ^ Un, 32)), - (yr = cn = On), - (rt = j), - (Un = cn), - (Dn = xr), - (cn = st(bt ^ Qt, _t ^ rr, 1)), - (j = (kt + (_t = On)) | 0), - (j = - (((bt = gt) >>> 0 > (gt = (cn + gt) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - Yr) | - 0), - (j = - (ro + - (gt = - (Dn = (Dn + gt) | 0) >>> 0 < gt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (bt = kt = (Dn + Ot) | 0), - (kt = j = kt >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j), - (Dn = st(Dn ^ Xt, gt ^ Gr, 32)), - (j = (mt + (Qt = On)) | 0), - (mt = Dn), - (j = (Dn = (wn + Dn) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = _t), - (_t = j), - (wn = st(cn ^ Dn, wn ^ j, 40)), - (j = ((rr = On) + kt) | 0), - (gt = cn = (wn + bt) | 0), - (cn = st( - cn ^ mt, - Qt ^ (kt = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (_t + (Ut = On)) | 0), - (_t = cn), - (bt = cn = (Dn + cn) | 0), - (Qt = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (j = (j + Un) | 0), - (j = (mt = (cn + rt) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = mt ^ tt), - (tt = j), - (yt = st(cn, j ^ yt, 40)), - (j = ((Gr = On) + At) | 0), - (At = cn = (yt + jr) | 0), - (Xt = cn >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - (cn = st(jt ^ dr, Zt ^ wr, 48)), - (j = (sr + (wr = On)) | 0), - (jt = cn), - (j = (cn = (nt + cn) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (nt = cn), - (sr = j), - (j = st(cn ^ $n, j ^ tr, 1)), - (tr = cn = On), - (Un = j), - (j = (Tt + uo) | 0), - (j = - (((Dn = (Rt + ft) | 0) >>> 0 < ft >>> 0 ? (j + 1) | 0 : j) + - cn) | - 0), - (j = - (Eo + - (Dn = - (cn = (Dn + Un) | 0) >>> 0 < Dn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Rt = $n = (cn + or) | 0), - ($n = j = $n >>> 0 < or >>> 0 ? (j + 1) | 0 : j), - (cn = st(cn ^ _t, Dn ^ Ut, 32)), - (j = (Ct + (Tt = On)) | 0), - (_t = cn), - (pt = j = - (Dn = (pt + cn) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (Un = st(Dn ^ Un, tr ^ j, 40)), - (j = ((tr = On) + $n) | 0), - (Rt = cn = (Un + Rt) | 0), - (cn = st( - ($n = cn ^ _t), - Tt ^ (_t = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (pt + (jr = On)) | 0), - (pt = cn), - (Ct = j = - ($n = (Dn + cn) | 0) >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (cn = st($n ^ Un, tr ^ j, 1)), - (j = ((Tt = On) + Xt) | 0), - (j = - (mo + - ((Dn = (cn + At) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((Un = - (Dn = (Dn + Hr) | 0) >>> 0 < Hr >>> 0 ? (j + 1) | 0 : j) + - Zr) | - 0), - (po = tr = (Dn + Dr) | 0), - (tr = j = tr >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (dr = cn), - (Zt = Dn), - (Ut = Un), - (cn = st(wn ^ bt, rr ^ Qt, 1)), - (j = (Lo + (Un = On)) | 0), - (j = - (Ht + - ((Dn = (cn + Pr) | 0) >>> 0 < Pr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (To + - (wn = - (Dn = (Dn + at) | 0) >>> 0 < at >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Qt = at = (Dn + Lr) | 0), - (at = j = at >>> 0 < Lr >>> 0 ? (j + 1) | 0 : j), - (Ht = cn), - (bt = Un), - (j = st(Dn ^ jt, wn ^ wr, 32)), - (jt = cn = On), - (wn = j), - (Dn = cn), - (j = (wt + Br) | 0), - (j = (cn = (Yn + xt) | 0) >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (Yn = cn), - (wt = j), - (j = (j + Dn) | 0), - (j = (Un = (cn + wn) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = Un ^ Ht), - (Ht = j), - (cn = st(cn, j ^ bt, 40)), - (j = ((j = at) + (at = On)) | 0), - (bt = Dn = (cn + Qt) | 0), - (Qt = j = Dn >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (jt = st(Dn ^ wn, jt ^ j, 48)), - (j = st(jt ^ Zt, (j = Ut) ^ (Ut = On), 32)), - (rr = Dn = On), - (xt = j), - (Dn = st(Yn ^ et, wt ^ Ar, 1)), - (j = ((Yn = On) + Yr) | 0), - (j = - (kt + - ((wn = (Dn + xr) | 0) >>> 0 < Dn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (g + - (et = - (wn = (wn + gt) | 0) >>> 0 < gt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ar = gt = (wn + oo) | 0), - (gt = j = gt >>> 0 < oo >>> 0 ? (j + 1) | 0 : j), - (kt = Dn), - (wt = Yn), - (wn = st(wn ^ Jt, et ^ Qr, 32)), - (j = ((Jt = On) + sr) | 0), - (Yn = Dn = (wn + nt) | 0), - (Dn = - ((et = st( - Dn ^ kt, - (nt = Dn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j) ^ wt, - 40, - )) + - Ar) | - 0), - (j = ((Ar = On) + gt) | 0), - (kt = Dn), - (Dn = st( - Dn ^ wn, - Jt ^ (wt = Dn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (nt + (Br = On)) | 0), - (Jt = Dn), - (sr = Dn = (Yn + Dn) | 0), - (Zt = j = Dn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (j = (rr + j) | 0), - (j = (wn = (Dn + xt) | 0) >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Dn = Tt), - (Tt = j), - (Yn = st(wn ^ dr, Dn ^ j, 40)), - (j = ((wr = On) + tr) | 0), - (gt = Dn = (Yn + po) | 0), - (j = st( - Dn ^ xt, - rr ^ (tr = Dn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (rr = Dn = On), - (xt = j), - (Dn = cn), - (j = (Ht + Ut) | 0), - (Ht = cn = (Un + jt) | 0), - (jt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (j = st(cn ^ Dn, j ^ at, 1)), - (Un = Dn = On), - (cn = j), - (j = (wt + _e) | 0), - (j = - (((nt = (kt + h) | 0) >>> 0 < h >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (j = - (Tr + - (nt = - (Dn = (cn + nt) | 0) >>> 0 < nt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ut = at = (Dn + fr) | 0), - (at = j = at >>> 0 < fr >>> 0 ? (j + 1) | 0 : j), - (kt = cn), - (wt = Un), - (cn = st(At ^ rt, Xt ^ yr, 48)), - (j = (tt + (yr = On)) | 0), - (At = cn), - (j = (cn = (mt + cn) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (mt = cn), - (Dn = st(Dn ^ pt, nt ^ jr, 32)), - (tt = j), - (j = (j + (rt = On)) | 0), - (Un = cn = (Dn + cn) | 0), - (nt = st( - cn ^ kt, - (pt = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j) ^ wt, - 40, - )), - (j = ((Xt = On) + at) | 0), - (at = cn = (nt + Ut) | 0), - (cn = st( - cn ^ Dn, - rt ^ (kt = cn >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (pt + (Qr = On)) | 0), - (wt = cn), - (rt = j = - (pt = (Un + cn) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (cn = st(nt ^ pt, Xt ^ j, 1)), - (j = (Eo + (Ut = On)) | 0), - (Xt = cn), - (jr = cn = (or + cn) | 0), - (Un = j = cn >>> 0 < or >>> 0 ? (j + 1) | 0 : j), - (cn = st(yt ^ mt, tt ^ Gr, 1)), - (j = ((nt = On) + Qt) | 0), - (j = - (Do + - ((Dn = (cn + bt) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (er + - (mt = - (Dn = (Dn + It) | 0) >>> 0 < It >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (tt = yt = (Dn + hr) | 0), - (yt = j = yt >>> 0 < hr >>> 0 ? (j + 1) | 0 : j), - (bt = nt), - (Dn = st(Dn ^ Jt, mt ^ Br, 32)), - (j = (Ct + (Br = On)) | 0), - (Qt = Dn), - (j = (nt = ($n + Dn) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - ($n = bt), - (bt = j), - (mt = st(cn ^ nt, $n ^ j, 40)), - (j = ((Gr = On) + yt) | 0), - (Jt = cn = (mt + tt) | 0), - (j = ((Ct = cn >>> 0 < mt >>> 0 ? (j + 1) | 0 : j) + Un) | 0), - (yt = j = - (Un = (cn + jr) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (tt = j = st(Un ^ xt, j ^ rr, 32)), - (dr = cn = On), - (cn = st(et ^ sr, Zt ^ Ar, 1)), - (j = (($n = On) + _t) | 0), - (j = - (Er + - ((Dn = (cn + Rt) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - ((et = - (Dn = (a + Dn) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j) + - Pt) | - 0), - (Zt = _t = (Dn + _r) | 0), - (_t = j = _t >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Rt = cn), - (sr = $n), - (Dn = st(Dn ^ At, et ^ yr, 32)), - (j = ((At = On) + jt) | 0), - ($n = cn = (Dn + Ht) | 0), - (cn = - ((et = st( - cn ^ Rt, - (Ht = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j) ^ sr, - 40, - )) + - Zt) | - 0), - (j = ((Zt = On) + _t) | 0), - (_t = cn), - (cn = st( - cn ^ Dn, - At ^ (Rt = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (Ht + (yr = On)) | 0), - (Ht = cn), - (At = j = - (cn = ($n + cn) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (j = (j + dr) | 0), - (jt = j = - ($n = cn) >>> 0 > (cn = (cn + tt) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (Dn = st(cn ^ Xt, Ut ^ j, 40)), - (j = (yt + (Ut = On)) | 0), - (sr = Dn), - (j = - (_e + - ((Dn = (Un + Dn) | 0) >>> 0 < Un >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Xt = Dn = (Dn + h) | 0), - (Un = Dn ^ tt), - (tt = j = Dn >>> 0 < h >>> 0 ? (j + 1) | 0 : j), - (Dn = st(Un, dr ^ j, 48)), - (j = (jt + (dr = On)) | 0), - (jt = j = - (yt = (cn + Dn) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = j = st(yt ^ sr, Ut ^ j, 1)), - (sr = Un = On), - (Un = st($n ^ et, At ^ Zt, 1)), - (j = (kt + (et = On)) | 0), - (j = - (Do + - (($n = (Un + at) | 0) >>> 0 < at >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (ro + - (at = - ($n = ($n + It) | 0) >>> 0 < It >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ut = kt = ($n + Ot) | 0), - (kt = j = kt >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j), - (At = Un), - (Zt = et), - (j = (Tt + rr) | 0), - (j = (Un = (wn + xt) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (Tt = Un), - (Qt = st(Jt ^ Qt, Ct ^ Br, 48)), - (et = st($n ^ Qt, at ^ (Br = On), 32)), - (Jt = j), - (j = (j + (jr = On)) | 0), - (at = Un = (et + Un) | 0), - (Un = st( - Un ^ At, - (Ct = Un >>> 0 < et >>> 0 ? (j + 1) | 0 : j) ^ Zt, - 40, - )), - (j = ((At = On) + kt) | 0), - (Zt = j = - (wn = (Un + Ut) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (j = (j + sr) | 0), - (j = - (g + - ((xt = wn) >>> 0 > (wn = (cn + wn) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (($n = - (wn = (wn + oo) | 0) >>> 0 < oo >>> 0 ? (j + 1) | 0 : j) + - Yr) | - 0), - (po = kt = (wn + xr) | 0), - (Ut = j = kt >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (Ar = cn), - (rr = wn), - (j = st(Yn ^ Tt, Jt ^ wr, 1)), - (Yn = wn = On), - (cn = j), - (j = (Rt + Lo) | 0), - (j = - (((kt = (_t + Pr) | 0) >>> 0 < Pr >>> 0 ? (j + 1) | 0 : j) + - wn) | - 0), - (j = - (Tr + - (kt = - (wn = (cn + kt) | 0) >>> 0 < kt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Jt = _t = (wn + fr) | 0), - (_t = j = _t >>> 0 < fr >>> 0 ? (j + 1) | 0 : j), - (Rt = cn), - (j = st(wn ^ wt, kt ^ Qr, 32)), - (Tt = cn = On), - (wn = j), - (kt = cn), - (j = (bt + Br) | 0), - (bt = cn = (nt + Qt) | 0), - (wt = j = cn >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (j = (j + kt) | 0), - (j = (nt = (cn + wn) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = nt ^ Rt), - (Rt = j), - (kt = st(cn, j ^ Yn, 40)), - (j = ((Br = On) + _t) | 0), - (Qt = st( - (_t = (cn = (kt + Jt) | 0) ^ wn), - Tt ^ (wn = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = st((j = Qt ^ rr), (rr = On) ^ $n, 32)), - (wr = $n = On), - (Jt = j), - (_t = $n), - ($n = st(mt ^ bt, wt ^ Gr, 1)), - (j = (er + (mt = On)) | 0), - (j = - (tr + - ((Yn = ($n + hr) | 0) >>> 0 < hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (mo + - (gt = - (Yn = (Yn + gt) | 0) >>> 0 < gt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (wt = bt = (Yn + Hr) | 0), - (bt = j = bt >>> 0 < Hr >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ Ht, gt ^ yr, 32)), - (j = (rt + (Tt = On)) | 0), - (Ht = Yn), - (pt = j = - (Yn = (pt + Yn) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (gt = st($n ^ Yn, j ^ mt, 40)), - (j = ((yr = On) + bt) | 0), - (mt = $n = (gt + wt) | 0), - ($n = st( - (bt = $n ^ Ht), - Tt ^ (Ht = $n >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (pt + (Qr = On)) | 0), - (bt = $n), - (wt = $n = (Yn + $n) | 0), - (Tt = j = $n >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (j = (j + _t) | 0), - (j = (Yn = ($n + Jt) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - ($n = sr), - (sr = j), - (pt = st(Yn ^ Ar, $n ^ j, 40)), - (j = ((tr = On) + Ut) | 0), - (_t = $n = (pt + po) | 0), - ($n = st( - (Ut = $n ^ Jt), - wr ^ (Jt = $n >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (sr + (wr = On)) | 0), - (sr = $n), - (Yn = j = - ($n = (Yn + $n) | 0) >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (tr = j = st($n ^ pt, tr ^ j, 1)), - (Gr = j), - (rt = pt = On), - (pt = wn), - (wn = Un), - (Un = st(et ^ xt, Zt ^ jr, 48)), - (j = (Ct + (jr = On)) | 0), - (Ct = Un), - (j = (Un = (at + Un) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (at = cn), - (cn = wn ^ Un), - (wn = j), - (cn = st(cn, j ^ At, 1)), - (j = ((At = On) + pt) | 0), - (j = - (To + - (cn >>> 0 > (et = (at + cn) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (Zr + - (at = - (et = (et + Lr) | 0) >>> 0 < Lr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (xt = pt = (et + Dr) | 0), - (pt = j = pt >>> 0 < Dr >>> 0 ? (j + 1) | 0 : j), - (et = st(et ^ bt, at ^ Qr, 32)), - (j = (jt + (Zt = On)) | 0), - (bt = j = - (at = (et + yt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - (yt = st(cn ^ at, At ^ j, 40)), - (j = ((Qr = On) + pt) | 0), - (At = cn = (yt + xt) | 0), - (et = st( - cn ^ et, - Zt ^ (jt = cn >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (j = (bt + (xt = On)) | 0), - (Zt = cn = (et + at) | 0), - (bt = cn), - (Ut = j = cn >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (at = Un), - (pt = wn), - (j = (Rt + rr) | 0), - (j = (cn = (nt + Qt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (nt = cn), - (cn ^= kt), - (kt = j), - (j = st(cn, Br ^ j, 1)), - (Ar = cn = On), - (Rt = j), - (wn = j), - (j = (Ht + Pt) | 0), - (j = - (((Un = (mt + _r) | 0) >>> 0 < _r >>> 0 ? (j + 1) | 0 : j) + - cn) | - 0), - (mt = j = - (cn = Un) >>> 0 > (Un = (wn + Un) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (wn = st(Dn ^ Un, j ^ dr, 32)), - (j = ((j = pt) + (pt = On)) | 0), - (Qt = cn = (wn + at) | 0), - (Dn = st( - (Dn = cn ^ Rt), - Ar ^ (Rt = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (mt + (dr = On)) | 0), - (j = - (uo + - ((cn = (Dn + Un) | 0) >>> 0 < Un >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ar = j = - (at = (cn + ft) | 0) >>> 0 < ft >>> 0 ? (j + 1) | 0 : j), - (pt = st(wn ^ at, pt ^ j, 48)), - (po = j = On), - (cn = st(gt ^ wt, Tt ^ yr, 1)), - (j = ((wn = On) + tt) | 0), - (j = - (ao + - ((Un = (cn + Xt) | 0) >>> 0 < cn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = - (Er + - (gt = - (Un = (Un + Nt) | 0) >>> 0 < Nt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (tt = mt = (a + Un) | 0), - (wt = j = mt >>> 0 < a >>> 0 ? (j + 1) | 0 : j), - (Tt = cn), - (mt = st(Un ^ Ct, gt ^ jr, 32)), - (j = ((yr = On) + kt) | 0), - (kt = cn = (mt + nt) | 0), - (Un = st( - cn ^ Tt, - (Ct = cn >>> 0 < mt >>> 0 ? (j + 1) | 0 : j) ^ wn, - 40, - )), - (j = ((j = wt) + (wt = On)) | 0), - (Tt = cn = (Un + tt) | 0), - (tt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (wn = j), - (j = (Er + rt) | 0), - (j = - (((gt = (a + tr) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j) + - wn) | - 0), - (Ht = j = - (wn = (cn + gt) | 0) >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - (cn = st(wn ^ pt, po ^ j, 32)), - (j = ((tr = On) + Ut) | 0), - (nt = st( - (gt = (cn + bt) | 0) ^ Gr, - (j = gt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rt, - 40, - )), - (rt = j), - (j = (Zr + (bt = On)) | 0), - (j = - (Ht + - ((Xt = (nt + Dr) | 0) >>> 0 < Dr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (Ht = (wn + Xt) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = tr), - (tr = j), - (wn = st(cn ^ Ht, wn ^ j, 48)), - (j = ((j = rt) + (rt = On)) | 0), - (cn = nt ^ (gt = (wn + gt) | 0)), - (nt = j = gt >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (Xt = j = st(cn, j ^ bt, 1)), - (Gr = j), - (rr = cn = On), - (bt = $n), - (Br = Yn), - ($n = Un), - (Un = st(mt ^ Tt, tt ^ yr, 48)), - (j = (Ct + (Tt = On)) | 0), - (mt = cn = (Un + kt) | 0), - (kt = j = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ wt, 1)), - (j = ((tt = On) + To) | 0), - (j = - (Ar + - ((cn = ($n + Lr) | 0) >>> 0 < $n >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (at = j = - (Yn = (cn + at) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (cn = st(Yn ^ et, j ^ xt, 32)), - (j = ((wt = On) + Br) | 0), - (bt = et = (cn + bt) | 0), - (Ct = j = et >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - ($n = st($n ^ et, j ^ tt, 40)), - (j = (ro + (jr = On)) | 0), - (tt = $n), - (j = - (at + - (($n = (Ot + $n) | 0) >>> 0 < Ot >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Yn = j = - ($n = ($n + Yn) | 0) >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (et = st(cn ^ $n, j ^ wt, 48)), - (j = ((j = Ct) + (Ct = On)) | 0), - (xt = cn = (et + bt) | 0), - (wt = cn), - (Ar = j = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (j = (Rt + po) | 0), - (bt = (cn = (pt + Qt) | 0) ^ Dn), - (Dn = j = cn >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (j = st(bt, j ^ dr, 1)), - (dr = at = On), - (bt = j), - (j = (jt + Tr) | 0), - (j = - (((pt = (At + fr) | 0) >>> 0 < fr >>> 0 ? (j + 1) | 0 : j) + - at) | - 0), - (Rt = j = - (Rt = pt) >>> 0 > (pt = (pt + bt) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (Qt = at = st(pt ^ sr, wr ^ j, 32)), - (At = j = On), - (j = (j + kt) | 0), - (jt = at = (at + mt) | 0), - (sr = j = Qt >>> 0 > at >>> 0 ? (j + 1) | 0 : j), - (at = st(at ^ bt, dr ^ j, 40)), - (j = (Yr + (dr = On)) | 0), - (j = - (Rt + - ((mt = (at + xr) | 0) >>> 0 < xr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = j = - (bt = pt) >>> 0 > (pt = (pt + mt) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (bt = st(pt ^ Qt, j ^ At, 48)), - (wr = j = On), - (kt = j), - (yt = st(yt ^ Zt, Ut ^ Qr, 1)), - (Rt = j = On), - (Qt = Un), - (j = (j + Pt) | 0), - (j = - (Jt + - ((Un = (yt + _r) | 0) >>> 0 < _r >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (Un = (Un + _t) | 0) >>> 0 < _t >>> 0 ? (j + 1) | 0 : j), - (_t = Un ^ Qt), - (Qt = j), - (_t = st(_t, j ^ Tt, 32)), - (j = ((Qr = On) + Dn) | 0), - (Jt = cn = (_t + cn) | 0), - (Dn = st( - cn ^ yt, - (Dn = Rt) ^ (Rt = cn >>> 0 < _t >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (ao + (At = On)) | 0), - (j = - (Qt + - ((cn = (Dn + Nt) | 0) >>> 0 < Nt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Qt = cn = (cn + Un) | 0), - (Tt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = j), - (j = (rr + Do) | 0), - (j = - (((yt = (Xt + It) | 0) >>> 0 < It >>> 0 ? (j + 1) | 0 : j) + - Un) | - 0), - (Xt = j = - (Un = (cn + yt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - (cn = st(Un ^ bt, j ^ kt, 32)), - (j = ((Zt = On) + Ar) | 0), - (kt = st( - (yt = (cn + wt) | 0) ^ Gr, - (j = yt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (Ut = wt = On), - (rr = j), - (j = (wt + mo) | 0), - (j = - (Xt + - ((wt = (kt + Hr) | 0) >>> 0 < Hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Xt = j = - (wt = (Un + wt) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = st(cn ^ wt, j ^ Zt, 48)), - (j = ((Zt = On) + rr) | 0), - (cn = (yt = (Un + yt) | 0) ^ kt), - (kt = j = yt >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Ut = j = st(cn, j ^ Ut, 1)), - (rr = cn = On), - (Br = gt), - (yr = et), - (et = Dn), - (Dn = st(_t ^ Qt, Tt ^ Qr, 48)), - (j = ((_t = On) + Rt) | 0), - (Rt = cn = (Dn + Jt) | 0), - (Qt = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (et = st(cn ^ et, j ^ At, 1)), - (j = ((At = On) + Eo) | 0), - (j = - (((cn = (et + or) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j) + - mt) | - 0), - (pt = j = - (gt = (cn + pt) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = st(gt ^ yr, j ^ Ct, 32)), - (j = ((mt = On) + nt) | 0), - (Jt = nt = (cn + Br) | 0), - (Ct = j = nt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (et = st(et ^ nt, j ^ At, 40)), - (j = (g + (yr = On)) | 0), - (At = et), - (j = - (pt + - ((et = (oo + et) | 0) >>> 0 < oo >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Tt = j = - (nt = (et + gt) | 0) >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - (et = st(cn ^ nt, j ^ mt, 48)), - (j = ((j = Ct) + (Ct = On)) | 0), - (Jt = cn = (et + Jt) | 0), - (Br = j = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (pt = wn), - (gt = $n), - (j = (sr + wr) | 0), - (wn = j = - (cn = (bt + jt) | 0) >>> 0 < bt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ at, j ^ dr, 1)), - (j = ((at = On) + er) | 0), - (j = - (((mt = ($n + hr) | 0) >>> 0 < $n >>> 0 ? (j + 1) | 0 : j) + - Yn) | - 0), - (Yn = st( - pt ^ (gt = (gt + mt) | 0), - (j = gt >>> 0 < mt >>> 0 ? (j + 1) | 0 : j) ^ rt, - 32, - )), - (mt = j), - (bt = $n), - (j = ((pt = On) + Qt) | 0), - (j = ($n = (Yn + Rt) | 0) >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (Rt = $n), - ($n ^= bt), - (bt = j), - ($n = st($n, j ^ at, 40)), - (j = (_e + (Qt = On)) | 0), - (j = - (((at = ($n + h) | 0) >>> 0 < h >>> 0 ? (j + 1) | 0 : j) + - mt) | - 0), - (jt = j = - (mt = at) >>> 0 > (at = (at + gt) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (pt = st(Yn ^ at, j ^ pt, 48)), - (wr = j = On), - (gt = j), - (Yn = st(xt ^ tt, Ar ^ jr, 1)), - (sr = j = On), - (tt = wn), - (j = (j + uo) | 0), - (j = - (tr + - ((wn = (Yn + ft) | 0) >>> 0 < ft >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = _t), - (_t = j = - (wn = (wn + Ht) | 0) >>> 0 < Ht >>> 0 ? (j + 1) | 0 : j), - (mt = st(Dn ^ wn, mt ^ j, 32)), - (j = ((Qr = On) + tt) | 0), - (Ht = cn = (mt + cn) | 0), - (Dn = st( - cn ^ Yn, - (Dn = sr) ^ (sr = cn >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (Lo + (tt = On)) | 0), - (j = - (_t + - ((cn = (Dn + Pr) | 0) >>> 0 < Pr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (tr = cn = (cn + wn) | 0), - (xt = j = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = j), - (j = (rr + Tr) | 0), - (j = - (((Yn = (fr + Ut) | 0) >>> 0 < fr >>> 0 ? (j + 1) | 0 : j) + - wn) | - 0), - (_t = j = - (wn = (cn + Yn) | 0) >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (cn = st(wn ^ pt, j ^ gt, 32)), - (j = ((rt = On) + Br) | 0), - (gt = st( - (Yn = (cn + Jt) | 0) ^ Ut, - (j = Yn >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (Ut = j), - (j = (Pt + (dr = On)) | 0), - (j = - (_t + - ((Ar = (gt + _r) | 0) >>> 0 < _r >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (_t = (wn + Ar) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = rt), - (rt = j), - (wn = st(cn ^ _t, wn ^ j, 48)), - (j = ((j = Ut) + (Ut = On)) | 0), - (cn = (Yn = (wn + Yn) | 0) ^ gt), - (gt = j = Yn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (dr = j = st(cn, j ^ dr, 1)), - (Ar = cn = On), - (rr = et), - (et = Dn), - (Dn = st(mt ^ tr, xt ^ Qr, 48)), - (j = ((j = sr) + (sr = On)) | 0), - (Ht = cn = (Dn + Ht) | 0), - (mt = tt), - (tt = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (et = st(cn ^ et, mt ^ j, 1)), - (j = ((tr = On) + mo) | 0), - (j = - (jt + - ((cn = (et + Hr) | 0) >>> 0 < et >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = at), - (at = (cn + at) | 0), - (cn = Ct), - (Ct = j = mt >>> 0 > at >>> 0 ? (j + 1) | 0 : j), - (cn = st(at ^ rr, cn ^ j, 32)), - (j = ((j = kt) + (kt = On)) | 0), - (jt = j = - (mt = (cn + yt) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (yt = mt), - (et = st(et ^ mt, j ^ tr, 40)), - (j = (uo + (Qr = On)) | 0), - (tr = et), - (j = - (Ct + - ((et = (ft + et) | 0) >>> 0 < ft >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ct = j = - (mt = (et + at) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (et = st(cn ^ mt, j ^ kt, 48)), - (j = ((j = jt) + (jt = On)) | 0), - (xt = cn = (et + yt) | 0), - (rr = j = cn >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (yt = Un), - (j = (bt + wr) | 0), - (Un = j = - (cn = (pt + Rt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Qt, 1)), - (j = (Zr + (pt = On)) | 0), - (j = - (Tt + - ((at = ($n + Dr) | 0) >>> 0 < Dr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (bt = (at = (nt + at) | 0) ^ yt), - (yt = j = at >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (nt = st(bt, j ^ Zt, 32)), - (kt = j = On), - (bt = $n), - (j = (j + tt) | 0), - (j = ($n = (nt + Ht) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (Rt = $n), - ($n ^= bt), - (bt = j), - ($n = st($n, j ^ pt, 40)), - (j = (_e + (Qt = On)) | 0), - (j = - (yt + - ((pt = ($n + h) | 0) >>> 0 < h >>> 0 ? (j + 1) | 0 : j)) | - 0), - (Tt = j = - (pt = (at + pt) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (yt = st(nt ^ pt, j ^ kt, 48)), - (wr = j = On), - (at = j), - (nt = st(At ^ Jt, yr ^ Br, 1)), - (Ht = j = On), - (Jt = Un), - (j = (j + g) | 0), - (j = - (Xt + - ((Un = (nt + oo) | 0) >>> 0 < oo >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (wt = j = - (Un = (Un + wt) | 0) >>> 0 < wt >>> 0 ? (j + 1) | 0 : j), - (kt = st(Dn ^ Un, j ^ sr, 32)), - (j = ((Gr = On) + Jt) | 0), - (Jt = cn = (kt + cn) | 0), - (Dn = st( - cn ^ nt, - (At = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j) ^ Ht, - 40, - )), - (j = (Er + (sr = On)) | 0), - (j = - (wt + - ((cn = (a + Dn) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j)) | - 0), - (wt = cn = (cn + Un) | 0), - (tt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = j), - (j = (Ar + ao) | 0), - (j = - (((nt = (dr + Nt) | 0) >>> 0 < Nt >>> 0 ? (j + 1) | 0 : j) + - Un) | - 0), - (Ht = j = - (Un = (cn + nt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (cn = st(Un ^ yt, j ^ at, 32)), - (j = ((Xt = On) + rr) | 0), - (at = st( - (nt = (cn + xt) | 0) ^ dr, - (j = nt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ Ar, - 40, - )), - (Zt = j), - (j = (To + (dr = On)) | 0), - (j = - (Ht + - ((Ar = (at + Lr) | 0) >>> 0 < Lr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (Ht = (Un + Ar) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = Xt), - (Xt = j), - (Un = st(cn ^ Ht, Un ^ j, 48)), - (j = ((j = Zt) + (Zt = On)) | 0), - (cn = (nt = (Un + nt) | 0) ^ at), - (at = j = nt >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (dr = j = st(cn, j ^ dr, 1)), - (jr = j), - (Ar = cn = On), - (Br = Yn), - (yr = et), - (Yn = Dn), - (Dn = st(kt ^ wt, tt ^ Gr, 48)), - (j = ((kt = On) + At) | 0), - (wt = cn = (Dn + Jt) | 0), - (Jt = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ Yn, j ^ sr, 1)), - (j = ((sr = On) + Yr) | 0), - (j = - (Tt + - ((cn = (Yn + xr) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = j = - (et = (cn + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (cn = st(et ^ yr, j ^ jt, 32)), - (j = ((At = On) + gt) | 0), - (jt = j = - (gt = (cn + Br) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ gt, j ^ sr, 40)), - (j = (Eo + (Gr = On)) | 0), - (Tt = Yn), - (j = - (pt + - ((Yn = (or + Yn) | 0) >>> 0 < or >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = (Yn + et) | 0), - (Yn = At), - (At = j = pt >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ pt, Yn ^ j, 48)), - (j = ((j = jt) + (jt = On)) | 0), - (sr = cn = (Yn + gt) | 0), - (tt = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (et = wn), - (j = (bt + wr) | 0), - (wn = j = - (cn = (yt + Rt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Qt, 1)), - (j = ((yt = On) + Lo) | 0), - (j = - (Ct + - ((gt = ($n + Pr) | 0) >>> 0 < $n >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (et = st( - et ^ (gt = (gt + mt) | 0), - (j = gt >>> 0 < mt >>> 0 ? (j + 1) | 0 : j) ^ Ut, - 32, - )), - (bt = mt = On), - (mt = j), - (Rt = $n), - (j = (bt + Jt) | 0), - (j = ($n = (et + wt) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (wt = $n), - ($n ^= Rt), - (Rt = j), - ($n = st($n, j ^ yt, 40)), - (j = (ro + (Qt = On)) | 0), - (j = - (((yt = ($n + Ot) | 0) >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j) + - mt) | - 0), - (Ct = bt), - (bt = j = - (mt = (gt + yt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - (yt = st(et ^ mt, Ct ^ j, 48)), - (wr = j = On), - (gt = j), - (et = st(xt ^ tr, rr ^ Qr, 1)), - (Jt = j = On), - (Ct = wn), - (j = (j + er) | 0), - (j = - (rt + - ((wn = (et + hr) | 0) >>> 0 < hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (_t = j = - (wn = (wn + _t) | 0) >>> 0 < _t >>> 0 ? (j + 1) | 0 : j), - (kt = st(Dn ^ wn, j ^ kt, 32)), - (j = ((Qr = On) + Ct) | 0), - (Ct = cn = (kt + cn) | 0), - (Dn = st( - cn ^ et, - (Dn = Jt) ^ (Jt = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (Do + (tr = On)) | 0), - (j = - (_t + - ((cn = (Dn + It) | 0) >>> 0 < It >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (xt = cn = (cn + wn) | 0), - (rt = j = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = j), - (j = (Ar + _e) | 0), - (j = - (((et = (dr + h) | 0) >>> 0 < h >>> 0 ? (j + 1) | 0 : j) + - wn) | - 0), - (_t = j = - (wn = (cn + et) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (cn = st(wn ^ yt, j ^ gt, 32)), - (j = ((dr = On) + tt) | 0), - (gt = st( - (et = (cn + sr) | 0) ^ jr, - (j = et >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ Ar, - 40, - )), - (Ar = j), - (j = (mo + (Ut = On)) | 0), - (j = - (_t + - ((rr = (gt + Hr) | 0) >>> 0 < Hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (_t = (wn + rr) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = dr), - (dr = j), - (wn = st(cn ^ _t, wn ^ j, 48)), - (j = ((j = Ar) + (Ar = On)) | 0), - (cn = (et = (wn + et) | 0) ^ gt), - (gt = j = et >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (Ut = j = st(cn, j ^ Ut, 1)), - (rr = cn = On), - (Br = nt), - (yr = Yn), - (Yn = Dn), - (Dn = st(kt ^ xt, rt ^ Qr, 48)), - (j = ((kt = On) + Jt) | 0), - (Jt = cn = (Dn + Ct) | 0), - (Ct = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ Yn, j ^ tr, 1)), - (j = ((tr = On) + Eo) | 0), - (j = - (bt + - ((cn = (Yn + or) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = j = - (nt = (cn + mt) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (cn = st(nt ^ yr, j ^ jt, 32)), - (j = ((bt = On) + at) | 0), - (jt = j = - (at = (cn + Br) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ at, j ^ tr, 40)), - (j = (er + (Qr = On)) | 0), - (tr = Yn), - (j = - (mt + - ((Yn = (hr + Yn) | 0) >>> 0 < hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = (Yn + nt) | 0), - (Yn = bt), - (bt = j = mt >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ mt, Yn ^ j, 48)), - (j = ((j = jt) + (jt = On)) | 0), - (xt = cn = (Yn + at) | 0), - (rt = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (nt = Un), - (j = (Rt + wr) | 0), - (Un = j = - (cn = (yt + wt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Qt, 1)), - (j = (Do + (yt = On)) | 0), - (j = - (At + - ((at = ($n + It) | 0) >>> 0 < It >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = j = - (at = (at + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (nt = st(nt ^ at, j ^ Zt, 32)), - (wt = j = On), - (Rt = $n), - (j = (j + Ct) | 0), - (j = ($n = (nt + Jt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (Qt = $n), - ($n ^= Rt), - (Rt = j), - ($n = st($n, j ^ yt, 40)), - (j = (ao + (Jt = On)) | 0), - (j = - (pt + - ((yt = ($n + Nt) | 0) >>> 0 < Nt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (pt = (at + yt) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (at = wt), - (wt = j), - (yt = st(nt ^ pt, at ^ j, 48)), - (wr = j = On), - (at = j), - (nt = st(Tt ^ sr, tt ^ Gr, 1)), - (Ct = j = On), - (At = Un), - (j = (j + Er) | 0), - (j = - (Xt + - ((Un = (a + nt) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j)) | - 0), - (Ht = j = - (Un = (Un + Ht) | 0) >>> 0 < Ht >>> 0 ? (j + 1) | 0 : j), - (kt = st(Dn ^ Un, j ^ kt, 32)), - (j = ((Gr = On) + At) | 0), - (At = cn = (kt + cn) | 0), - (Dn = st( - cn ^ nt, - (Dn = Ct) ^ (Ct = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (uo + (Tt = On)) | 0), - (j = - (Ht + - ((cn = (Dn + ft) | 0) >>> 0 < ft >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (sr = cn = (cn + Un) | 0), - (tt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = j), - (j = (rr + Zr) | 0), - (j = - (((nt = (Ut + Dr) | 0) >>> 0 < Dr >>> 0 ? (j + 1) | 0 : j) + - Un) | - 0), - (Ht = j = - (Un = (cn + nt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (cn = st(Un ^ yt, j ^ at, 32)), - (j = ((Xt = On) + rt) | 0), - (at = st( - (nt = (cn + xt) | 0) ^ Ut, - (j = nt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (Ut = j), - (j = (g + (Zt = On)) | 0), - (j = - (Ht + - ((rr = (at + oo) | 0) >>> 0 < oo >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (Ht = (Un + rr) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = Xt), - (Xt = j), - (Un = st(cn ^ Ht, Un ^ j, 48)), - (j = ((j = Ut) + (Ut = On)) | 0), - (cn = (nt = (Un + nt) | 0) ^ at), - (at = j = nt >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Zt = j = st(cn, j ^ Zt, 1)), - (rr = cn = On), - (Br = et), - (yr = Yn), - (Yn = Dn), - (Dn = st(kt ^ sr, tt ^ Gr, 48)), - (j = ((kt = On) + Ct) | 0), - (Ct = cn = (Dn + At) | 0), - (At = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ Yn, j ^ Tt, 1)), - (j = ((Tt = On) + Tr) | 0), - (j = - (wt + - ((cn = (Yn + fr) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = j = - (et = (cn + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (cn = st(et ^ yr, j ^ jt, 32)), - (j = ((wt = On) + gt) | 0), - (jt = j = - (gt = (cn + Br) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ gt, j ^ Tt, 40)), - (j = (Lo + (Gr = On)) | 0), - (Tt = Yn), - (j = - (pt + - ((Yn = (Pr + Yn) | 0) >>> 0 < Pr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = (Yn + et) | 0), - (Yn = wt), - (wt = j = pt >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ pt, Yn ^ j, 48)), - (j = ((j = jt) + (jt = On)) | 0), - (sr = cn = (Yn + gt) | 0), - (tt = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (et = wn), - (j = (Rt + wr) | 0), - (wn = j = - (cn = (yt + Qt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Jt, 1)), - (j = ((yt = On) + ro) | 0), - (j = - (bt + - ((gt = ($n + Ot) | 0) >>> 0 < $n >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = j = - (gt = (gt + mt) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (et = st(et ^ gt, j ^ Ar, 32)), - (bt = j = On), - (Rt = $n), - (j = (j + At) | 0), - (j = ($n = (et + Ct) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Qt = $n), - ($n ^= Rt), - (Rt = j), - ($n = st($n, j ^ yt, 40)), - (j = (Yr + (Jt = On)) | 0), - (j = - (mt + - ((yt = ($n + xr) | 0) >>> 0 < xr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ct = bt), - (bt = j = - (mt = (gt + yt) | 0) >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - (yt = st(et ^ mt, Ct ^ j, 48)), - (wr = j = On), - (gt = j), - (et = st(xt ^ tr, rt ^ Qr, 1)), - (Ct = j = On), - (At = wn), - (j = (j + Pt) | 0), - (j = - (dr + - ((wn = (et + _r) | 0) >>> 0 < _r >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (_t = j = - (wn = (wn + _t) | 0) >>> 0 < _t >>> 0 ? (j + 1) | 0 : j), - (kt = st(Dn ^ wn, j ^ kt, 32)), - (j = ((Qr = On) + At) | 0), - (At = cn = (kt + cn) | 0), - (Dn = st( - cn ^ et, - (Dn = Ct) ^ (Ct = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (To + (tr = On)) | 0), - (j = - (_t + - ((cn = (Dn + Lr) | 0) >>> 0 < Lr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (xt = cn = (cn + wn) | 0), - (rt = j = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = j), - (j = (rr + g) | 0), - (j = - (((et = (Zt + oo) | 0) >>> 0 < oo >>> 0 ? (j + 1) | 0 : j) + - wn) | - 0), - (_t = j = - (wn = (cn + et) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (cn = st(wn ^ yt, j ^ gt, 32)), - (j = ((dr = On) + tt) | 0), - (gt = st( - (et = (cn + sr) | 0) ^ Zt, - (j = et >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (Ar = j), - (j = (Do + (Zt = On)) | 0), - (j = - (_t + - ((rr = (gt + It) | 0) >>> 0 < It >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (_t = (wn + rr) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = dr), - (dr = j), - (wn = st(cn ^ _t, wn ^ j, 48)), - (j = ((j = Ar) + (Ar = On)) | 0), - (cn = (et = (wn + et) | 0) ^ gt), - (gt = j = et >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (Zt = j = st(cn, j ^ Zt, 1)), - (rr = cn = On), - (Br = nt), - (yr = Yn), - (Yn = Dn), - (Dn = st(kt ^ xt, rt ^ Qr, 48)), - (j = ((kt = On) + Ct) | 0), - (Ct = cn = (Dn + At) | 0), - (At = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ Yn, j ^ tr, 1)), - (j = ((tr = On) + Pt) | 0), - (j = - (bt + - ((cn = (Yn + _r) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = j = - (nt = (cn + mt) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (cn = st(nt ^ yr, j ^ jt, 32)), - (j = ((bt = On) + at) | 0), - (jt = j = - (at = (cn + Br) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ at, j ^ tr, 40)), - (j = (Yr + (Qr = On)) | 0), - (tr = Yn), - (j = - (mt + - ((Yn = (xr + Yn) | 0) >>> 0 < xr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = (Yn + nt) | 0), - (Yn = bt), - (bt = j = mt >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ mt, Yn ^ j, 48)), - (j = ((j = jt) + (jt = On)) | 0), - (xt = cn = (Yn + at) | 0), - (rt = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (nt = Un), - (j = (Rt + wr) | 0), - (Un = j = - (cn = (yt + Qt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Jt, 1)), - (j = (ro + (yt = On)) | 0), - (j = - (wt + - ((at = ($n + Ot) | 0) >>> 0 < Ot >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = j = - (at = (at + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (nt = st(nt ^ at, j ^ Ut, 32)), - (wt = j = On), - (Rt = $n), - (j = (j + At) | 0), - (j = ($n = (nt + Ct) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (Qt = $n), - ($n ^= Rt), - (Rt = j), - ($n = st($n, j ^ yt, 40)), - (j = (Lo + (Jt = On)) | 0), - (j = - (pt + - ((yt = ($n + Pr) | 0) >>> 0 < Pr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (pt = (at + yt) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (at = wt), - (wt = j), - (yt = st(nt ^ pt, at ^ j, 48)), - (wr = j = On), - (at = j), - (nt = st(Tt ^ sr, tt ^ Gr, 1)), - (Ct = j = On), - (At = Un), - (j = (j + er) | 0), - (j = - (Xt + - ((Un = (nt + hr) | 0) >>> 0 < hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ht = j = - (Un = (Un + Ht) | 0) >>> 0 < Ht >>> 0 ? (j + 1) | 0 : j), - (kt = st(Dn ^ Un, j ^ kt, 32)), - (j = ((Gr = On) + At) | 0), - (At = cn = (kt + cn) | 0), - (Dn = st( - cn ^ nt, - (Dn = Ct) ^ (Ct = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (To + (Tt = On)) | 0), - (j = - (Ht + - ((cn = (Dn + Lr) | 0) >>> 0 < Lr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (sr = cn = (cn + Un) | 0), - (tt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = j), - (j = (rr + uo) | 0), - (j = - (((nt = (Zt + ft) | 0) >>> 0 < ft >>> 0 ? (j + 1) | 0 : j) + - Un) | - 0), - (Ht = j = - (Un = (cn + nt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (cn = st(Un ^ yt, j ^ at, 32)), - (j = ((Xt = On) + rt) | 0), - (at = st( - (nt = (cn + xt) | 0) ^ Zt, - (j = nt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (Ut = j), - (j = (Er + (Zt = On)) | 0), - (j = - (Ht + - ((rr = (a + at) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j)) | - 0), - (j = (Ht = (Un + rr) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = Xt), - (Xt = j), - (Un = st(cn ^ Ht, Un ^ j, 48)), - (j = ((j = Ut) + (Ut = On)) | 0), - (cn = (nt = (Un + nt) | 0) ^ at), - (at = j = nt >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Zt = j = st(cn, j ^ Zt, 1)), - (rr = cn = On), - (Br = et), - (yr = Yn), - (Yn = Dn), - (Dn = st(kt ^ sr, tt ^ Gr, 48)), - (j = ((kt = On) + Ct) | 0), - (Ct = cn = (Dn + At) | 0), - (At = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ Yn, j ^ Tt, 1)), - (j = ((Tt = On) + ao) | 0), - (j = - (wt + - ((cn = (Yn + Nt) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = j = - (et = (cn + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (cn = st(et ^ yr, j ^ jt, 32)), - (j = ((wt = On) + gt) | 0), - (jt = j = - (gt = (cn + Br) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ gt, j ^ Tt, 40)), - (j = (_e + (Gr = On)) | 0), - (Tt = Yn), - (j = - (pt + - ((Yn = (h + Yn) | 0) >>> 0 < h >>> 0 ? (j + 1) | 0 : j)) | - 0), - (pt = (Yn + et) | 0), - (Yn = wt), - (wt = j = pt >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ pt, Yn ^ j, 48)), - (j = ((j = jt) + (jt = On)) | 0), - (sr = cn = (Yn + gt) | 0), - (tt = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (et = wn), - (j = (Rt + wr) | 0), - (wn = j = - (cn = (yt + Qt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Jt, 1)), - (j = ((yt = On) + Zr) | 0), - (j = - (bt + - ((gt = ($n + Dr) | 0) >>> 0 < $n >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = j = - (gt = (gt + mt) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (et = st(et ^ gt, j ^ Ar, 32)), - (bt = j = On), - (Rt = $n), - (j = (j + At) | 0), - (j = ($n = (et + Ct) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Qt = $n), - ($n ^= Rt), - (Rt = j), - ($n = st($n, j ^ yt, 40)), - (j = (Eo + (Jt = On)) | 0), - (j = - (mt + - ((yt = ($n + or) | 0) >>> 0 < or >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ct = bt), - (bt = j = - (mt = (gt + yt) | 0) >>> 0 < gt >>> 0 ? (j + 1) | 0 : j), - (yt = st(et ^ mt, Ct ^ j, 48)), - (wr = j = On), - (gt = j), - (et = st(xt ^ tr, rt ^ Qr, 1)), - (Ct = j = On), - (At = wn), - (j = (j + mo) | 0), - (j = - (dr + - ((wn = (et + Hr) | 0) >>> 0 < Hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (_t = j = - (wn = (wn + _t) | 0) >>> 0 < _t >>> 0 ? (j + 1) | 0 : j), - (kt = st(Dn ^ wn, j ^ kt, 32)), - (j = ((Qr = On) + At) | 0), - (At = cn = (kt + cn) | 0), - (Dn = st( - cn ^ et, - (Dn = Ct) ^ (Ct = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (Tr + (tr = On)) | 0), - (j = - (_t + - ((cn = (Dn + fr) | 0) >>> 0 < fr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (xt = cn = (cn + wn) | 0), - (rt = j = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = j), - (j = (rr + To) | 0), - (j = - (((et = (Zt + Lr) | 0) >>> 0 < Lr >>> 0 ? (j + 1) | 0 : j) + - wn) | - 0), - (_t = j = - (wn = (cn + et) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (cn = st(wn ^ yt, j ^ gt, 32)), - (j = ((dr = On) + tt) | 0), - (gt = st( - (et = (cn + sr) | 0) ^ Zt, - (j = et >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (Ar = j), - (j = (Yr + (Zt = On)) | 0), - (j = - (_t + - ((rr = (gt + xr) | 0) >>> 0 < xr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (_t = (wn + rr) | 0) >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = dr), - (dr = j), - (wn = st(cn ^ _t, wn ^ j, 48)), - (j = ((j = Ar) + (Ar = On)) | 0), - (cn = (et = (wn + et) | 0) ^ gt), - (gt = j = et >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (Zt = j = st(cn, j ^ Zt, 1)), - (rr = cn = On), - (Br = nt), - (yr = Yn), - (Yn = Dn), - (Dn = st(kt ^ xt, rt ^ Qr, 48)), - (j = ((kt = On) + Ct) | 0), - (Ct = cn = (Dn + At) | 0), - (At = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ Yn, j ^ tr, 1)), - (j = ((tr = On) + Do) | 0), - (j = - (bt + - ((cn = (Yn + It) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = j = - (nt = (cn + mt) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (cn = st(nt ^ yr, j ^ jt, 32)), - (j = ((bt = On) + at) | 0), - (jt = j = - (at = (cn + Br) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ at, j ^ tr, 40)), - (j = (g + (Qr = On)) | 0), - (tr = Yn), - (j = - (mt + - ((Yn = (oo + Yn) | 0) >>> 0 < oo >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = (Yn + nt) | 0), - (Yn = bt), - (bt = j = mt >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ mt, Yn ^ j, 48)), - (j = ((j = jt) + (jt = On)) | 0), - (xt = cn = (Yn + at) | 0), - (rt = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (nt = Un), - (j = (Rt + wr) | 0), - (Un = j = - (cn = (yt + Qt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Jt, 1)), - (j = (Eo + (yt = On)) | 0), - (j = - (wt + - ((at = ($n + or) | 0) >>> 0 < or >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = j = - (at = (at + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (nt = st(nt ^ at, j ^ Ut, 32)), - (wt = j = On), - (Rt = $n), - (j = (j + At) | 0), - (j = ($n = (nt + Ct) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (Qt = $n), - ($n ^= Rt), - (Rt = j), - ($n = st($n, j ^ yt, 40)), - (j = (Pt + (Jt = On)) | 0), - (j = - (pt + - ((yt = ($n + _r) | 0) >>> 0 < _r >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (pt = (at + yt) | 0) >>> 0 < at >>> 0 ? (j + 1) | 0 : j), - (at = wt), - (wt = j), - (yt = st(nt ^ pt, at ^ j, 48)), - (wr = j = On), - (at = j), - (nt = st(Tt ^ sr, tt ^ Gr, 1)), - (Ct = j = On), - (At = Un), - (j = (j + Lo) | 0), - (j = - (Xt + - ((Un = (nt + Pr) | 0) >>> 0 < Pr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Ht = j = - (Un = (Un + Ht) | 0) >>> 0 < Ht >>> 0 ? (j + 1) | 0 : j), - (kt = st(Dn ^ Un, j ^ kt, 32)), - (j = ((Gr = On) + At) | 0), - (At = cn = (kt + cn) | 0), - (Dn = st( - cn ^ nt, - (Dn = Ct) ^ (Ct = cn >>> 0 < kt >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (mo + (Tt = On)) | 0), - (j = - (Ht + - ((cn = (Dn + Hr) | 0) >>> 0 < Hr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (sr = cn = (cn + Un) | 0), - (tt = j = cn >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = j), - (j = (rr + ro) | 0), - (j = - (((nt = (Zt + Ot) | 0) >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j) + - Un) | - 0), - (Ht = j = - (Un = (cn + nt) | 0) >>> 0 < nt >>> 0 ? (j + 1) | 0 : j), - (cn = st(Un ^ yt, j ^ at, 32)), - (j = ((Xt = On) + rt) | 0), - (at = st( - (nt = (cn + xt) | 0) ^ Zt, - (j = nt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (Ut = j), - (j = (_e + (Zt = On)) | 0), - (j = - (Ht + - ((rr = (at + h) | 0) >>> 0 < h >>> 0 ? (j + 1) | 0 : j)) | - 0), - (j = (Ht = (Un + rr) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Un = Xt), - (Xt = j), - (Un = st(cn ^ Ht, Un ^ j, 48)), - (j = ((j = Ut) + (Ut = On)) | 0), - (cn = (nt = (Un + nt) | 0) ^ at), - (at = j = nt >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Zt = j = st(cn, j ^ Zt, 1)), - (rr = cn = On), - (Br = et), - (yr = Yn), - (Yn = Dn), - (Dn = st(kt ^ sr, tt ^ Gr, 48)), - (j = ((kt = On) + Ct) | 0), - (Ct = cn = (Dn + At) | 0), - (At = j = cn >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ Yn, j ^ Tt, 1)), - (j = ((sr = On) + er) | 0), - (j = - (wt + - ((cn = (Yn + hr) | 0) >>> 0 < Yn >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (pt = j = - (et = (cn + pt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (cn = st(et ^ yr, j ^ jt, 32)), - (j = ((wt = On) + gt) | 0), - (jt = gt = (cn + Br) | 0), - (Tt = j = gt >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ gt, j ^ sr, 40)), - (j = (uo + (Br = On)) | 0), - (sr = Yn), - (j = - (pt + - ((Yn = (ft + Yn) | 0) >>> 0 < ft >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (gt = (Yn + et) | 0), - (Yn = wt), - (wt = j = gt >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Yn = st(cn ^ gt, Yn ^ j, 48)), - (j = ((j = Tt) + (Tt = On)) | 0), - (jt = cn = (Yn + jt) | 0), - (tt = j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (et = wn), - (j = (Rt + wr) | 0), - (wn = j = - (cn = (yt + Qt) | 0) >>> 0 < yt >>> 0 ? (j + 1) | 0 : j), - ($n = st(cn ^ $n, j ^ Jt, 1)), - (j = ((yt = On) + Er) | 0), - (j = - (bt + - ((pt = (a + $n) | 0) >>> 0 < $n >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (mt = j = - (pt = (pt + mt) | 0) >>> 0 < mt >>> 0 ? (j + 1) | 0 : j), - (bt = et = st(et ^ pt, j ^ Ar, 32)), - (Rt = j = On), - (Qt = $n), - (j = (j + At) | 0), - (j = ($n = (et + Ct) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Jt = $n), - ($n ^= Qt), - (Qt = j), - ($n = st($n, j ^ yt, 40)), - (j = (ao + (Ct = On)) | 0), - (j = - (mt + - ((et = ($n + Nt) | 0) >>> 0 < Nt >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (At = (et = (et + pt) | 0) ^ bt), - (bt = j = et >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (pt = st(At, j ^ Rt, 48)), - (Ar = j = On), - (yt = j), - (Rt = mt = st(xt ^ tr, rt ^ Qr, 1)), - (At = j = On), - (tr = wn), - (j = (j + Tr) | 0), - (j = - (dr + - ((wn = (mt + fr) | 0) >>> 0 < fr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (wn = (wn + _t) | 0) >>> 0 < _t >>> 0 ? (j + 1) | 0 : j), - (_t = kt), - (kt = j), - (mt = st(Dn ^ wn, _t ^ j, 32)), - (j = ((yr = On) + tr) | 0), - (_t = cn = (mt + cn) | 0), - (Dn = st( - (Dn = cn ^ Rt), - (Rt = cn >>> 0 < mt >>> 0 ? (j + 1) | 0 : j) ^ At, - 40, - )), - (j = (Zr + (At = On)) | 0), - (j = - (kt + - ((cn = (Dn + Dr) | 0) >>> 0 < Dr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (kt = cn = (cn + wn) | 0), - (tr = j = cn >>> 0 < wn >>> 0 ? (j + 1) | 0 : j), - (wn = j), - (j = (rr + uo) | 0), - (j = - (((dr = ft) >>> 0 > (ft = (Zt + ft) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - wn) | - 0), - (uo = j = - (cn = (cn + ft) | 0) >>> 0 < ft >>> 0 ? (j + 1) | 0 : j), - (ft = st(cn ^ pt, j ^ yt, 32)), - (j = ((xt = On) + tt) | 0), - (yt = st( - (wn = (jt + ft) | 0) ^ Zt, - (j = wn >>> 0 < ft >>> 0 ? (j + 1) | 0 : j) ^ rr, - 40, - )), - (dr = j), - (j = (ao + (rt = On)) | 0), - (j = - (uo + - ((Zt = Nt) >>> 0 > (Nt = (yt + Nt) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (Nt = (cn + Nt) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (cn = ft ^ Nt), - (ft = j), - (ao = st(cn, j ^ xt, 48)), - (j = ((uo = On) + dr) | 0), - (wn = j = - (cn = (wn + ao) | 0) >>> 0 < ao >>> 0 ? (j + 1) | 0 : j), - (j = st(cn ^ yt, j ^ rt, 1)), - (yt = On), - (xt = j), - (rt = nt), - (nt = Dr), - (dr = Zr), - (Zr = st(mt ^ kt, tr ^ yr, 48)), - (j = ((mt = On) + Rt) | 0), - (Rt = nt), - (_t = j = - (Dr = (_t + Zr) | 0) >>> 0 < Zr >>> 0 ? (j + 1) | 0 : j), - (nt = st(Dn ^ (kt = Dr), j ^ At, 1)), - (j = ((At = On) + dr) | 0), - (j = - (bt + - (nt >>> 0 > (Dr = (Rt + nt) | 0) >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Dn = j = - (Dr = (et + Dr) | 0) >>> 0 < et >>> 0 ? (j + 1) | 0 : j), - (Yn = st(Yn ^ Dr, j ^ Tt, 32)), - (j = ((j = at) + (at = On)) | 0), - (bt = et = (Yn + rt) | 0), - (Rt = j = et >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (et = st(et ^ nt, j ^ At, 40)), - (j = ((At = On) + Do) | 0), - (j = - ((et >>> 0 > (It = (et + It) | 0) >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (Dn = j = - (Dn = It) >>> 0 > (It = (Dr + It) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (Yn = st(Yn ^ It, j ^ at, 48)), - (j = ((nt = On) + Rt) | 0), - (at = Dr = (Yn + bt) | 0), - (Do = j = Dr >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j), - (bt = a), - (Rt = Er), - (j = (Qt + Ar) | 0), - (Dr = j = - (a = (pt + Jt) | 0) >>> 0 < pt >>> 0 ? (j + 1) | 0 : j), - (Er = st(a ^ $n, j ^ Ct, 1)), - (j = ((pt = On) + Rt) | 0), - (j = - (wt + - (($n = (bt + Er) | 0) >>> 0 < Er >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Un = st( - ($n = ($n + gt) | 0) ^ Un, - (j = $n >>> 0 < gt >>> 0 ? (j + 1) | 0 : j) ^ Ut, - 32, - )), - (bt = j), - (wt = Ot), - (Ot = Er), - (j = ((gt = On) + _t) | 0), - (_t = pt), - (pt = j = - (Er = (Un + kt) | 0) >>> 0 < Un >>> 0 ? (j + 1) | 0 : j), - (Ot = st(Er ^ Ot, _t ^ j, 40)), - (j = ((kt = On) + ro) | 0), - (j = - (((ro = (wt + Ot) | 0) >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j) + - bt) | - 0), - (bt = ro), - ($n = Un ^ (ro = ($n + ro) | 0)), - (Un = j = bt >>> 0 > ro >>> 0 ? (j + 1) | 0 : j), - (j = st($n, j ^ gt, 48)), - (Qt = $n = On), - (gt = j), - (_t = hr), - (bt = er), - (hr = st(jt ^ sr, tt ^ Br, 1)), - (Rt = j = On), - (j = (j + To) | 0), - (j = - (Xt + - ((hr = ((wt = hr) + Lr) | 0) >>> 0 < Lr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Lr = j = - (hr = (Ht + hr) | 0) >>> 0 < Ht >>> 0 ? (j + 1) | 0 : j), - (er = st(hr ^ Zr, j ^ mt, 32)), - (j = ((Ht = On) + Dr) | 0), - (Dr = a = (er + a) | 0), - (Zr = st( - a ^ wt, - (mt = a >>> 0 < er >>> 0 ? (j + 1) | 0 : j) ^ Rt, - 40, - )), - (j = ((j = bt) + (bt = On)) | 0), - (j = - (Lr + - ((a = (Zr + _t) | 0) >>> 0 < Zr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (Lr = a = (a + hr) | 0), - (To = j = a >>> 0 < hr >>> 0 ? (j + 1) | 0 : j), - (hr = j), - (j = (yt + Eo) | 0), - (j = - (((wt = or) >>> 0 > (or = (xt + or) | 0) >>> 0 - ? (j + 1) | 0 - : j) + - hr) | - 0), - (Eo = j = - (hr = (a + or) | 0) >>> 0 < or >>> 0 ? (j + 1) | 0 : j), - (or = st(gt ^ hr, j ^ $n, 32)), - (j = ((wt = On) + Do) | 0), - ($n = a = (or + at) | 0), - (a = st( - a ^ xt, - (_t = yt) ^ (yt = a >>> 0 < or >>> 0 ? (j + 1) | 0 : j), - 40, - )), - (j = (Lo + (Rt = On)) | 0), - (Lo = a), - (j = - (Eo + - ((a = (Pr + a) | 0) >>> 0 < Pr >>> 0 ? (j + 1) | 0 : j)) | - 0), - (j = (a = (a + hr) | 0) >>> 0 < hr >>> 0 ? (j + 1) | 0 : j), - (Eo = a), - (Jt = - (rn[(d + 8) | 0] | - (rn[(d + 9) | 0] << 8) | - (rn[(d + 10) | 0] << 16) | - (rn[(d + 11) | 0] << 24)) ^ - a), - (_t = j), - (Ct = - j ^ - (rn[(d + 12) | 0] | - (rn[(d + 13) | 0] << 8) | - (rn[(d + 14) | 0] << 16) | - (rn[(d + 15) | 0] << 24))), - (hr = st(er ^ Lr, Ht ^ To, 48)), - (j = ((Lr = On) + mt) | 0), - (mt = a = (hr + Dr) | 0), - (To = j = a >>> 0 < hr >>> 0 ? (j + 1) | 0 : j), - (er = xr), - (j = (pt + Qt) | 0), - (xr = j = - (a = (gt + Er) | 0) >>> 0 < Er >>> 0 ? (j + 1) | 0 : j), - (Ot = st(a ^ Ot, j ^ kt, 1)), - (j = ((gt = On) + Yr) | 0), - (j = - (((er = (Ot + er) | 0) >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j) + - Dn) | - 0), - (er = j = - (Yr = (er + It) | 0) >>> 0 < er >>> 0 ? (j + 1) | 0 : j), - (Dr = st(Yr ^ ao, j ^ uo, 32)), - (j = ((Er = On) + To) | 0), - (It = j = - (Pr = (Dr + mt) | 0) >>> 0 < Dr >>> 0 ? (j + 1) | 0 : j), - (ao = Dr), - (Dr = st(Ot ^ Pr, j ^ gt, 40)), - (j = ((Dn = On) + mo) | 0), - (j = - ((Dr >>> 0 > (Ot = (Dr + Hr) | 0) >>> 0 ? (j + 1) | 0 : j) + - er) | - 0), - (pt = Er), - (Er = j = - (Yr = (Ot + Yr) | 0) >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j), - (Ot = st(ao ^ (Hr = Yr), pt ^ j, 48)), - (j = ((gt = On) + It) | 0), - (j = (er = (Ot + Pr) | 0) >>> 0 < Ot >>> 0 ? (j + 1) | 0 : j), - (Pr = er), - (er ^= Jt), - (pn[(d + 8) | 0] = er), - (pn[(d + 9) | 0] = er >>> 8), - (pn[(d + 10) | 0] = er >>> 16), - (pn[(d + 11) | 0] = er >>> 24), - (It = j), - (j ^= Ct), - (pn[(d + 12) | 0] = j), - (pn[(d + 13) | 0] = j >>> 8), - (pn[(d + 14) | 0] = j >>> 16), - (pn[(d + 15) | 0] = j >>> 24), - (Yr = a), - (er = xr), - (a = hr), - (hr = st(et ^ at, At ^ Do, 1)), - (j = ((mo = On) + _e) | 0), - (j = - ((hr >>> 0 > (xr = (hr + h) | 0) >>> 0 ? (j + 1) | 0 : j) + - ft) | - 0), - (Nt = j = - (at = xr) >>> 0 > (xr = (Nt + xr) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (a = st(a ^ xr, j ^ Lr, 32)), - (j = ((j = er) + (er = On)) | 0), - (Lr = j = - (Yr = (a + Yr) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j), - (ao = a), - (Yr = st(hr ^ (ft = Yr), j ^ mo, 40)), - (j = ((et = On) + g) | 0), - (j = - (Nt + - ((a = (Yr + oo) | 0) >>> 0 < Yr >>> 0 - ? (j + 1) | 0 - : j)) | - 0), - (j = (a = (a + xr) | 0) >>> 0 < xr >>> 0 ? (j + 1) | 0 : j), - (Nt = a), - (a ^= ao), - (ao = j), - (xr = st(a, j ^ er, 48)), - (j = ((at = On) + Lr) | 0), - (ft = a = (xr + ft) | 0), - (Lr = a >>> 0 < xr >>> 0 ? (j + 1) | 0 : j), - (Zr = a = st(mt ^ Zr, bt ^ To, 1)), - (mo = j = On), - (j = (j + Pt) | 0), - (j = - (Un + - ((a = (a + _r) | 0) >>> 0 < _r >>> 0 ? (j + 1) | 0 : j)) | - 0), - (Pt = j = - (hr = (a + ro) | 0) >>> 0 < ro >>> 0 ? (j + 1) | 0 : j), - (a = ((er = st(Yn ^ hr, j ^ nt, 32)) + cn) | 0), - (j = ((cn = On) + wn) | 0), - (ro = a), - (a = - ((_r = st( - (Un = a ^ Zr), - (Zr = a >>> 0 < er >>> 0 ? (j + 1) | 0 : j) ^ mo, - 40, - )) + - fr) | - 0), - (j = ((fr = On) + Tr) | 0), - (j = (Pt + (a >>> 0 < _r >>> 0 ? (j + 1) | 0 : j)) | 0), - (j = (Pt = (a + hr) | 0) >>> 0 < hr >>> 0 ? (j + 1) | 0 : j), - (hr = Pt ^ _a ^ ft), - (pn[0 | (a = d)] = hr), - (pn[(a + 1) | 0] = hr >>> 8), - (pn[(a + 2) | 0] = hr >>> 16), - (pn[(a + 3) | 0] = hr >>> 24), - (hr = j ^ on ^ Lr), - (pn[(a + 4) | 0] = hr), - (pn[(a + 5) | 0] = hr >>> 8), - (pn[(a + 6) | 0] = hr >>> 16), - (pn[(a + 7) | 0] = hr >>> 24), - (hr = ((er = st(Pt ^ er, j ^ cn, 48)) + ro) | 0), - (j = ((ro = On) + Zr) | 0), - (j = - (Zr = hr >>> 0 < er >>> 0 ? (j + 1) | 0 : j) ^ - (rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)) ^ - ao), - (Pt = - (rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)) ^ - Nt ^ - hr), - (pn[(a + 16) | 0] = Pt), - (pn[(a + 17) | 0] = Pt >>> 8), - (pn[(a + 18) | 0] = Pt >>> 16), - (pn[(a + 19) | 0] = Pt >>> 24), - (pn[(a + 20) | 0] = j), - (pn[(a + 21) | 0] = j >>> 8), - (pn[(a + 22) | 0] = j >>> 16), - (pn[(a + 23) | 0] = j >>> 24), - (a = st(or ^ Eo, _t ^ wt, 48)), - (Pt = On), - (Nt = - rn[(d + 36) | 0] | - (rn[(d + 37) | 0] << 8) | - (rn[(d + 38) | 0] << 16) | - (rn[(d + 39) | 0] << 24)), - (j = - (rn[(d + 32) | 0] | - (rn[(d + 33) | 0] << 8) | - (rn[(d + 34) | 0] << 16) | - (rn[(d + 35) | 0] << 24)) ^ - st(Dr ^ Pr, Dn ^ It, 1) ^ - a), - (pn[(d + 32) | 0] = j), - (pn[(d + 33) | 0] = j >>> 8), - (pn[(d + 34) | 0] = j >>> 16), - (pn[(d + 35) | 0] = j >>> 24), - (j = On ^ Nt ^ Pt), - (pn[(d + 36) | 0] = j), - (pn[(d + 37) | 0] = j >>> 8), - (pn[(d + 38) | 0] = j >>> 16), - (pn[(d + 39) | 0] = j >>> 24), - (j = (yt + Pt) | 0), - (j = (Nt = (a + $n) | 0) >>> 0 < a >>> 0 ? (j + 1) | 0 : j), - (Dr = - (rn[((a = d) + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)) ^ - Er ^ - j), - (Pt = - (rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)) ^ - Hr ^ - Nt), - (pn[(a + 24) | 0] = Pt), - (pn[(a + 25) | 0] = Pt >>> 8), - (pn[(a + 26) | 0] = Pt >>> 16), - (pn[(a + 27) | 0] = Pt >>> 24), - (pn[(a + 28) | 0] = Dr), - (pn[(a + 29) | 0] = Dr >>> 8), - (pn[(a + 30) | 0] = Dr >>> 16), - (pn[(a + 31) | 0] = Dr >>> 24), - (Dr = - rn[(a + 44) | 0] | - (rn[(a + 45) | 0] << 8) | - (rn[(a + 46) | 0] << 16) | - (rn[(a + 47) | 0] << 24)), - (a = - xr ^ - (rn[(a + 40) | 0] | - (rn[(a + 41) | 0] << 8) | - (rn[(a + 42) | 0] << 16) | - (rn[(a + 43) | 0] << 24)) ^ - st(hr ^ _r, fr ^ Zr, 1)), - (pn[(d + 40) | 0] = a), - (pn[(d + 41) | 0] = a >>> 8), - (pn[(d + 42) | 0] = a >>> 16), - (pn[(d + 43) | 0] = a >>> 24), - (a = at ^ On ^ Dr), - (pn[(d + 44) | 0] = a), - (pn[(d + 45) | 0] = a >>> 8), - (pn[(d + 46) | 0] = a >>> 16), - (pn[(d + 47) | 0] = a >>> 24), - (hr = - rn[(d + 60) | 0] | - (rn[(d + 61) | 0] << 8) | - (rn[(d + 62) | 0] << 16) | - (rn[(d + 63) | 0] << 24)), - (a = - er ^ - (rn[(d + 56) | 0] | - (rn[(d + 57) | 0] << 8) | - (rn[(d + 58) | 0] << 16) | - (rn[(d + 59) | 0] << 24)) ^ - st(ft ^ Yr, et ^ Lr, 1)), - (pn[(d + 56) | 0] = a), - (pn[(d + 57) | 0] = a >>> 8), - (pn[(d + 58) | 0] = a >>> 16), - (pn[(d + 59) | 0] = a >>> 24), - (a = ro ^ On ^ hr), - (pn[(d + 60) | 0] = a), - (pn[(d + 61) | 0] = a >>> 8), - (pn[(d + 62) | 0] = a >>> 16), - (pn[(d + 63) | 0] = a >>> 24), - (hr = - rn[(d + 52) | 0] | - (rn[(d + 53) | 0] << 8) | - (rn[(d + 54) | 0] << 16) | - (rn[(d + 55) | 0] << 24)), - (a = - Ot ^ - (rn[(d + 48) | 0] | - (rn[(d + 49) | 0] << 8) | - (rn[(d + 50) | 0] << 16) | - (rn[(d + 51) | 0] << 24)) ^ - st(Nt ^ Lo, j ^ Rt, 1)), - (pn[(d + 48) | 0] = a), - (pn[(d + 49) | 0] = a >>> 8), - (pn[(d + 50) | 0] = a >>> 16), - (pn[(d + 51) | 0] = a >>> 24), - (a = gt ^ On ^ hr), - (pn[(d + 52) | 0] = a), - (pn[(d + 53) | 0] = a >>> 8), - (pn[(d + 54) | 0] = a >>> 16), - (pn[(d + 55) | 0] = a >>> 24) - } - function xu(d, a, h, g, _e, on, hn) { - var j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t, - bt, - kt, - Rt, - At, - Ct, - wt, - Tt, - Jt, - Ht, - Zt, - jt, - rr, - sr, - Qt, - Ut, - tr, - dr, - Ar, - Pt, - xt, - fr, - hr, - Er, - rt, - tt, - ft, - Xt, - yr, - Qr, - Br, - wr, - Dr, - Gr, - er = 0, - or = 0, - It = 0, - Ot = 0, - Nt = 0, - _r = 0, - Pr = 0, - Lr = 0, - Tr = 0, - xr = 0, - Hr = 0, - Yr = 0, - Zr = 0, - jr = 0, - ro = 0, - oo = 0, - ao = 0, - uo = 0, - po = 0, - mo = 0, - Eo = 0, - Do = 0, - To = 0, - Lo = 0, - Jo = 0, - _a = 0, - ls = 0, - ps = 0, - gs = 0, - Cs = 0, - vs = 0, - Is = 0, - Os = 0, - ks = 0, - Ns = 0, - Fs = 0, - Js = 0, - Hs = 0, - Gs = 0, - qs = 0, - tu = 0, - H0 = 0, - $0 = 0, - G0 = 0, - q0 = 0, - V0 = 0 - return ( - (St = Dn = (St - 560) | 0), - hu((Dn + 352) | 0), - hn && ms((Dn + 352) | 0, 35248, 34, 0), - Tu((Dn + 288) | 0, on, 32, 0), - ms((_r = (Dn + 352) | 0), (Dn + 320) | 0, 32, 0), - ms(_r, h, g, _e), - Ts(_r, (Lr = (Dn + 224) | 0)), - (Tr = - rn[((or = on) + 32) | 0] | - (rn[(or + 33) | 0] << 8) | - (rn[(or + 34) | 0] << 16) | - (rn[(or + 35) | 0] << 24)), - (Hr = - rn[(or + 36) | 0] | - (rn[(or + 37) | 0] << 8) | - (rn[(or + 38) | 0] << 16) | - (rn[(or + 39) | 0] << 24)), - (Ot = - rn[(or + 40) | 0] | - (rn[(or + 41) | 0] << 8) | - (rn[(or + 42) | 0] << 16) | - (rn[(or + 43) | 0] << 24)), - (er = - rn[(or + 44) | 0] | - (rn[(or + 45) | 0] << 8) | - (rn[(or + 46) | 0] << 16) | - (rn[(or + 47) | 0] << 24)), - (It = - rn[(or + 48) | 0] | - (rn[(or + 49) | 0] << 8) | - (rn[(or + 50) | 0] << 16) | - (rn[(or + 51) | 0] << 24)), - (on = - rn[(or + 52) | 0] | - (rn[(or + 53) | 0] << 8) | - (rn[(or + 54) | 0] << 16) | - (rn[(or + 55) | 0] << 24)), - (Nt = - rn[(or + 60) | 0] | - (rn[(or + 61) | 0] << 8) | - (rn[(or + 62) | 0] << 16) | - (rn[(or + 63) | 0] << 24)), - (or = - rn[(or + 56) | 0] | - (rn[(or + 57) | 0] << 8) | - (rn[(or + 58) | 0] << 16) | - (rn[(or + 59) | 0] << 24)), - (pn[(d + 56) | 0] = or), - (pn[(d + 57) | 0] = or >>> 8), - (pn[(d + 58) | 0] = or >>> 16), - (pn[(d + 59) | 0] = or >>> 24), - (pn[(d + 60) | 0] = Nt), - (pn[(d + 61) | 0] = Nt >>> 8), - (pn[(d + 62) | 0] = Nt >>> 16), - (pn[(d + 63) | 0] = Nt >>> 24), - (pn[(d + 48) | 0] = It), - (pn[(d + 49) | 0] = It >>> 8), - (pn[(d + 50) | 0] = It >>> 16), - (pn[(d + 51) | 0] = It >>> 24), - (pn[(d + 52) | 0] = on), - (pn[(d + 53) | 0] = on >>> 8), - (pn[(d + 54) | 0] = on >>> 16), - (pn[(d + 55) | 0] = on >>> 24), - (pn[(d + 40) | 0] = Ot), - (pn[(d + 41) | 0] = Ot >>> 8), - (pn[(d + 42) | 0] = Ot >>> 16), - (pn[(d + 43) | 0] = Ot >>> 24), - (pn[(d + 44) | 0] = er), - (pn[(d + 45) | 0] = er >>> 8), - (pn[(d + 46) | 0] = er >>> 16), - (pn[(d + 47) | 0] = er >>> 24), - (pn[0 | (on = (d + 32) | 0)] = Tr), - (pn[(on + 1) | 0] = Tr >>> 8), - (pn[(on + 2) | 0] = Tr >>> 16), - (pn[(on + 3) | 0] = Tr >>> 24), - (pn[(on + 4) | 0] = Hr), - (pn[(on + 5) | 0] = Hr >>> 8), - (pn[(on + 6) | 0] = Hr >>> 16), - (pn[(on + 7) | 0] = Hr >>> 24), - zs(Lr), - fu(Dn, Lr), - gu(d, Dn), - hu(_r), - hn && ms((Dn + 352) | 0, 35248, 34, 0), - ms((hn = (Dn + 352) | 0), d, 64, 0), - ms(hn, h, g, _e), - Ts(hn, (Pr = (Dn + 160) | 0)), - zs(Pr), - (pn[(Dn + 288) | 0] = 248 & rn[(Dn + 288) | 0]), - (pn[(Dn + 319) | 0] = (63 & rn[(Dn + 319) | 0]) | 64), - (h = rn[(23 + (d = cn = (Dn + 288) | 0)) | 0]), - (Ot = jn( - ($n = - rn[(d + 21) | 0] | - (rn[(d + 22) | 0] << 8) | - ((h << 16) & 2031616)), - 0, - (wn = - ((rn[(Pr + 28) | 0] | - (rn[(Pr + 29) | 0] << 8) | - (rn[(Pr + 30) | 0] << 16) | - (rn[(Pr + 31) | 0] << 24)) >>> - 7) | - 0), - 0, - )), - (It = On), - (h = ((d = rn[(Pr + 27) | 0]) >>> 24) | 0), - (_e = - (d << 8) | - ((er = - rn[(Pr + 23) | 0] | - (rn[(Pr + 24) | 0] << 8) | - (rn[(Pr + 25) | 0] << 16) | - (rn[(Pr + 26) | 0] << 24)) >>> - 24)), - (d = jn( - (Un = - 2097151 & - (((3 & - (Hr = - (d = ((g = rn[(Pr + 28) | 0]) >>> 16) | 0) | h)) << - 30) | - ((h = (g <<= 16) | _e) >>> 2))), - 0, - (Yn = - ((hn = - rn[(cn + 23) | 0] | - (rn[(cn + 24) | 0] << 8) | - (rn[(cn + 25) | 0] << 16) | - (rn[(cn + 26) | 0] << 24)) >>> - 5) & - 2097151), - 0, - )), - (h = (On + It) | 0), - (g = d >>> 0 > (_e = (d + Ot) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn( - (et = - (((h = rn[(Pr + 23) | 0]) << 16) & 2031616) | - rn[(Pr + 21) | 0] | - (rn[(Pr + 22) | 0] << 8)), - 0, - (nt = - ((rn[(cn + 28) | 0] | - (rn[(cn + 29) | 0] << 8) | - (rn[(cn + 30) | 0] << 16) | - (rn[(cn + 31) | 0] << 24)) >>> - 7) | - 0), - 0, - )), - (g = (On + g) | 0), - (It = h = (d + _e) | 0), - (_e = d >>> 0 > h >>> 0 ? (g + 1) | 0 : g), - (g = ((d = rn[(cn + 27) | 0]) >>> 24) | 0), - (hn = (d << 8) | (hn >>> 24)), - (d = jn( - (at = - 2097151 & - (((3 & (g |= h = ((d = rn[(cn + 28) | 0]) >>> 16) | 0)) << - 30) | - ((h = (d <<= 16) | hn) >>> 2))), - 0, - (pt = (er >>> 5) & 2097151), - 0, - )), - (h = (On + _e) | 0), - (or = g = (d + It) | 0), - (_e = d >>> 0 > g >>> 0 ? (h + 1) | 0 : h), - (er = jn(Yn, 0, pt, 0)), - (It = On), - (h = ((d = rn[(cn + 19) | 0]) >>> 24) | 0), - (hn = - (d << 8) | - ((ao = - rn[(cn + 15) | 0] | - (rn[(cn + 16) | 0] << 8) | - (rn[(cn + 17) | 0] << 16) | - (rn[(cn + 18) | 0] << 24)) >>> - 24)), - (g = h), - (h = jn( - (gt = - ((7 & (g |= h = ((d = rn[(cn + 20) | 0]) >>> 16) | 0)) << - 29) | - ((h = (d <<= 16) | hn) >>> 3)), - (Hr = (g >>> 3) | 0), - wn, - 0, - )), - (d = (On + It) | 0), - (d = h >>> 0 > (g = (h + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (hn = ((h = jn($n, 0, Un, 0)) + g) | 0), - (g = (On + d) | 0), - (h = h >>> 0 > (er = hn) >>> 0 ? (g + 1) | 0 : g), - (g = ((d = rn[(Pr + 19) | 0]) >>> 24) | 0), - (It = - (d << 8) | - ((oo = - rn[(Pr + 15) | 0] | - (rn[(Pr + 16) | 0] << 8) | - (rn[(Pr + 17) | 0] << 16) | - (rn[(Pr + 18) | 0] << 24)) >>> - 24)), - (d = jn( - (mt = - ((7 & - (Ot = - (d = ((hn = rn[(Pr + 20) | 0]) >>> 16) | 0) | g)) << - 29) | - ((g = (hn <<= 16) | It) >>> 3)), - (yt = (Ot >>> 3) | 0), - nt, - 0, - )), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (d + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn(et, 0, at, 0)), - (h = (On + h) | 0), - (Tr = h = - d >>> 0 > (Lr = (d + g) | 0) >>> 0 ? (h + 1) | 0 : h), - (Yr = d = (h - (((Lr >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((h = (d >>> 21) | 0) + _e) | 0), - (er = g = - (d = - ((2097151 & d) << 11) | - ((Ot = (Lr - -1048576) | 0) >>> 21)) >>> - 0 > - (or = (d + or) | 0) >>> 0 - ? (g + 1) | 0 - : g), - (jr = d = (g - (((or >>> 0 < 4293918720) - 1) | 0)) | 0), - (_r = - ((2097151 & d) << 11) | - ((It = (or - -1048576) | 0) >>> 21)), - (hn = (d >>> 21) | 0), - (d = jn(nt, 0, pt, 0)), - (h = On), - (g = d), - (d = jn(wn, 0, Yn, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (Zr = ((d = g) + (g = jn(Un, 0, at, 0))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > Zr >>> 0 ? (d + 1) | 0 : d), - (Nt = (Zr - (h = -2097152 & (g = (Zr - -1048576) | 0))) | 0), - (h = - (((d - - (((131071 & - (_e = (d - (((Zr >>> 0 < 4293918720) - 1) | 0)) | 0)) + - (h >>> 0 > Zr >>> 0)) | - 0)) | - 0) + - hn) | - 0), - (Qt = h = - (d = (Nt + _r) | 0) >>> 0 < Nt >>> 0 ? (h + 1) | 0 : h), - (Ut = d), - (Nt = jn(d, h, 470296, 0)), - (_r = On), - (h = jn(wn, 0, at, 0)), - (d = On), - (hn = h), - (h = jn(Un, 0, nt, 0)), - (d = (On + d) | 0), - (h = h >>> 0 > (hn = (hn + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (d = (_e >>> 21) | 0), - (_e = ((2097151 & _e) << 11) | (g >>> 21)), - (g = (d + h) | 0), - (Do = _e = - ((g = - _e >>> 0 > (hn = (_e + hn) | 0) >>> 0 ? (g + 1) | 0 : g) - - (((hn >>> 0 < 4293918720) - 1) | 0)) | - 0), - (d = (hn - (h = -2097152 & (Eo = (hn - -1048576) | 0))) | 0), - (tr = hn = - (g - (((131071 & _e) + (h >>> 0 > hn >>> 0)) | 0)) | 0), - (dr = h = (or - (g = -2097152 & It)) | 0), - (Ar = _e = (er - (((g >>> 0 > or >>> 0) + jr) | 0)) | 0), - (Pt = d), - (g = jn(d, hn, 666643, 0)), - (d = (On + _r) | 0), - (d = g >>> 0 > (hn = (g + Nt) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(h, _e, 654183, 0)), - (h = (On + d) | 0), - (xr = _e = (g + hn) | 0), - (It = g >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (Zr = (Lr - (d = -2097152 & Ot)) | 0), - (Yr = (Tr - (((d >>> 0 > Lr >>> 0) + Yr) | 0)) | 0), - (h = jn(Un, 0, gt, Hr)), - (g = On), - (_e = - ((d = h) + - (h = jn((_t = (ao >>> 6) & 2097151), 0, wn, 0))) | - 0), - (d = (On + g) | 0), - (d = h >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (h = jn(Yn, 0, et, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (_e = (h + _e) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn($n, 0, pt, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(nt, 0, (bt = (oo >>> 6) & 2097151), 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (_e = (g + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(at, 0, mt, yt)), - (h = (On + d) | 0), - (Lr = _e = (g + _e) | 0), - (hn = g >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (h = ((d = rn[(cn + 14) | 0]) >>> 24) | 0), - (_e = - (d << 8) | - ((Tr = - rn[(cn + 10) | 0] | - (rn[(cn + 11) | 0] << 8) | - (rn[(cn + 12) | 0] << 16) | - (rn[(cn + 13) | 0] << 24)) >>> - 24)), - (h = jn( - (kt = - 2097151 & - (((1 & (h |= d = ((g = rn[(cn + 15) | 0]) >>> 16) | 0)) << - 31) | - ((d = (g <<= 16) | _e) >>> 1))), - 0, - wn, - 0, - )), - (d = On), - (g = h), - (h = jn(Un, 0, _t, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = jn(pt, 0, gt, Hr)) + g) | 0), - (g = (On + d) | 0), - (g = h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (d = jn(Yn, 0, mt, yt)), - (h = (On + g) | 0), - (h = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn($n, 0, et, 0)), - (h = (On + h) | 0), - (Ot = g = (d + _e) | 0), - (_e = d >>> 0 > g >>> 0 ? (h + 1) | 0 : h), - (h = ((d = rn[(Pr + 14) | 0]) >>> 24) | 0), - (er = - (d << 8) | - ((or = - rn[(Pr + 10) | 0] | - (rn[(Pr + 11) | 0] << 8) | - (rn[(Pr + 12) | 0] << 16) | - (rn[(Pr + 13) | 0] << 24)) >>> - 24)), - (g = h), - (h = ((d = rn[(Pr + 15) | 0]) >>> 16) | 0), - (h = jn( - (Rt = - 2097151 & - (((1 & (h |= g)) << 31) | ((d = (d << 16) | er) >>> 1))), - 0, - nt, - 0, - )), - (d = (On + _e) | 0), - (d = h >>> 0 > (g = (h + Ot) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(at, 0, bt, 0)), - (d = (On + d) | 0), - (er = d = - h >>> 0 > (Ot = (h + g) | 0) >>> 0 ? (d + 1) | 0 : d), - (To = h = (d - (((Ot >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((d = (h >>> 21) | 0) + hn) | 0), - (_r = g = - (h = - ((2097151 & h) << 11) | - ((Nt = (Ot - -1048576) | 0) >>> 21)) >>> - 0 > - (jr = (h + Lr) | 0) >>> 0 - ? (g + 1) | 0 - : g), - (po = h = (g - (((jr >>> 0 < 4293918720) - 1) | 0)) | 0), - (d = ((d = (h >>> 21) | 0) + Yr) | 0), - (xt = d = - (h = - ((g = - ((2097151 & h) << 11) | - ((Lr = (jr - -1048576) | 0) >>> 21)) + - Zr) | - 0) >>> - 0 < - g >>> 0 - ? (d + 1) | 0 - : d), - (fr = h), - (d = jn(h, d, -997805, -1)), - (h = (On + It) | 0), - (xr = g = (d + xr) | 0), - (It = d >>> 0 > g >>> 0 ? (h + 1) | 0 : h), - (Zr = - ((_a = - rn[(23 + (j = (Dn + 224) | 0)) | 0] | - (rn[(j + 24) | 0] << 8) | - (rn[(j + 25) | 0] << 16) | - (rn[(j + 26) | 0] << 24)) >>> - 5) & - 2097151), - (g = jn( - (At = - (((d = rn[(cn + 2) | 0]) << 16) & 2031616) | - rn[0 | cn] | - (rn[(cn + 1) | 0] << 8)), - 0, - pt, - 0, - )), - (h = On), - (_e = - ((d = jn( - et, - 0, - (Ct = - ((hn = - rn[(cn + 2) | 0] | - (rn[(cn + 3) | 0] << 8) | - (rn[(cn + 4) | 0] << 16) | - (rn[(cn + 5) | 0] << 24)) >>> - 5) & - 2097151), - 0, - )) + - g) | - 0), - (g = (On + h) | 0), - (g = d >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (d = jn( - (wt = - ((rn[(cn + 7) | 0] | - (rn[(cn + 8) | 0] << 8) | - (rn[(cn + 9) | 0] << 16) | - (rn[(cn + 10) | 0] << 24)) >>> - 7) & - 2097151), - 0, - bt, - 0, - )), - (h = (On + g) | 0), - (h = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(Rt, 0, (Tt = (Tr >>> 4) & 2097151), 0)), - (d = (On + h) | 0), - (Tr = _e = (g + _e) | 0), - (_e = g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (hn = ((h = rn[(cn + 6) | 0]) << 8) | (hn >>> 24)), - (g = d = (h >>> 24) | 0), - (h = ((d = rn[(cn + 7) | 0]) >>> 16) | 0), - (h = jn( - (Jt = - 2097151 & - (((3 & (h |= g)) << 30) | ((d = (d << 16) | hn) >>> 2))), - 0, - mt, - yt, - )), - (d = (On + _e) | 0), - (d = h >>> 0 > (g = (h + Tr) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = - ((h = jn( - _t, - 0, - (Ht = - ((rn[(Pr + 7) | 0] | - (rn[(Pr + 8) | 0] << 8) | - (rn[(Pr + 9) | 0] << 16) | - (rn[(Pr + 10) | 0] << 24)) >>> - 7) & - 2097151), - 0, - )) + - g) | - 0), - (g = (On + d) | 0), - (g = h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (h = jn(kt, 0, (mo = (or >>> 4) & 2097151), 0)), - (d = (On + g) | 0), - (hn = h >>> 0 > (_e = (h + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (d = ((h = rn[(Pr + 6) | 0]) >>> 24) | 0), - (Tr = - (h << 8) | - ((or = - rn[(Pr + 2) | 0] | - (rn[(Pr + 3) | 0] << 8) | - (rn[(Pr + 4) | 0] << 16) | - (rn[(Pr + 5) | 0] << 24)) >>> - 24)), - (h = d), - (d = jn( - gt, - Hr, - (Zt = - 2097151 & - (((3 & (h |= g = ((d = rn[(Pr + 7) | 0]) >>> 16) | 0)) << - 30) | - ((d = (d << 16) | Tr) >>> 2))), - 0, - )), - (h = (On + hn) | 0), - (h = d >>> 0 > (g = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (_e = g), - (g = jn( - (jt = - (((d = rn[(Pr + 2) | 0]) << 16) & 2031616) | - rn[0 | Pr] | - (rn[(Pr + 1) | 0] << 8)), - 0, - Yn, - 0, - )), - (d = (On + h) | 0), - (d = g >>> 0 > (_e = (_e + g) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn($n, 0, (rr = (or >>> 5) & 2097151), 0)), - (d = (On + d) | 0), - (h = h >>> 0 > (g = (h + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (Tr = d = (g + Zr) | 0), - (hn = h = d >>> 0 < g >>> 0 ? (h + 1) | 0 : h), - (_e = rn[(j + 21) | 0] | (rn[(j + 22) | 0] << 8)), - (d = jn(et, 0, At, 0)), - (h = On), - (or = ((g = d) + (d = jn(mt, yt, Ct, 0))) | 0), - (g = (On + h) | 0), - (g = d >>> 0 > or >>> 0 ? (g + 1) | 0 : g), - (d = jn(Rt, 0, wt, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (or = (d + or) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn(Tt, 0, mo, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (d + or) | 0) >>> 0 ? (h + 1) | 0 : h), - (or = ((d = g) + (g = jn(bt, 0, Jt, 0))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > or >>> 0 ? (d + 1) | 0 : d), - (h = jn(_t, 0, Zt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + or) | 0) >>> 0 ? (d + 1) | 0 : d), - (or = ((h = jn(kt, 0, Ht, 0)) + g) | 0), - (g = (On + d) | 0), - (g = h >>> 0 > or >>> 0 ? (g + 1) | 0 : g), - (d = jn(gt, Hr, rr, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (or = (d + or) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn($n, 0, jt, 0)), - (h = (On + h) | 0), - (d = d >>> 0 > (g = (d + or) | 0) >>> 0 ? (h + 1) | 0 : h), - (h = - (h = g) >>> 0 > (g = (g + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = g), - (g = ((d = rn[(j + 23) | 0]) << 16) & 2031616), - (d = h), - (g = d = - g >>> 0 > (_e = (_e + g) | 0) >>> 0 ? (d + 1) | 0 : d), - (Pr = d = (d - (((_e >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = ((h = (d >>> 21) | 0) + hn) | 0), - (d = - ((h = - (hn = Tr = - ((d = - ((2097151 & d) << 11) | - ((or = (_e - -1048576) | 0) >>> 21)) + - Tr) | - 0) >>> - 0 < - d >>> 0 - ? (h + 1) | 0 - : h) + - It) | - 0), - (d = (It = (hn + xr) | 0) >>> 0 < hn >>> 0 ? (d + 1) | 0 : d), - (ao = (hn - -1048576) | 0), - (ro = hn = (h - (((hn >>> 0 < 4293918720) - 1) | 0)) | 0), - (uo = (It - (h = -2097152 & ao)) | 0), - (Lo = (d - (((h >>> 0 > It >>> 0) + hn) | 0)) | 0), - (Tr = _e), - (It = g), - (d = jn(dr, Ar, 470296, 0)), - (h = On), - (g = d), - (d = jn(Ut, Qt, 666643, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (_e = ((d = g) + (g = jn(fr, xt, 654183, 0))) | 0), - (d = (On + h) | 0), - (oo = _e), - (hn = g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (h = jn(mt, yt, At, 0)), - (d = On), - (g = h), - (h = jn(bt, 0, Ct, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = g) + (g = jn(wt, 0, mo, 0))) | 0), - (h = (On + d) | 0), - (h = g >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (d = jn(Tt, 0, Ht, 0)), - (g = (On + h) | 0), - (g = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn(Rt, 0, Jt, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(_t, 0, rr, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (_e = (g + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(kt, 0, Zt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = g) + (g = jn(gt, Hr, jt, 0))) | 0), - (h = (On + d) | 0), - (Zr = _e), - (g = g >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (h = ((d = rn[(j + 19) | 0]) >>> 24) | 0), - (Yr = - (d << 8) | - ((xr = - rn[(j + 15) | 0] | - (rn[(j + 16) | 0] << 8) | - (rn[(j + 17) | 0] << 16) | - (rn[(j + 18) | 0] << 24)) >>> - 24)), - (g = - ((((Jo = (d = ((_e = rn[(j + 20) | 0]) >>> 16) | 0) | h) >>> - 3) | - 0) + - g) | - 0), - (Zr = _e = - ((h = ((7 & Jo) << 29) | ((h = (_e <<= 16) | Yr) >>> 3)) + - Zr) | - 0), - (_e = h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (Yr = (xr >>> 6) & 2097151), - (d = jn(bt, 0, At, 0)), - (h = On), - (g = d), - (d = jn(Rt, 0, Ct, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (xr = ((d = g) + (g = jn(wt, 0, Ht, 0))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > xr >>> 0 ? (d + 1) | 0 : d), - (g = jn(Tt, 0, Zt, 0)), - (h = (On + d) | 0), - (h = g >>> 0 > (xr = (g + xr) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(Jt, 0, mo, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (xr = (g + xr) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(_t, 0, jt, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (xr = (h + xr) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn(kt, 0, rr, 0)), - (h = (On + g) | 0), - (d = d >>> 0 > (xr = (d + xr) | 0) >>> 0 ? (h + 1) | 0 : h), - (Ns = d = - (ps = (xr + Yr) | 0) >>> 0 < xr >>> 0 ? (d + 1) | 0 : d), - (H0 = d = (d - (((ps >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((Os = (ps - -1048576) | 0) >>> 21)), - (d = (((d >>> 21) | 0) + _e) | 0), - (Js = d = - g >>> 0 > (Fs = (g + Zr) | 0) >>> 0 ? (d + 1) | 0 : d), - ($0 = d = (d - (((Fs >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((Cs = (Fs - -1048576) | 0) >>> 21)), - (d = (((d >>> 21) | 0) + hn) | 0), - (h = - ((g >>> 0 > (_e = (g + oo) | 0) >>> 0 ? (d + 1) | 0 : d) + - It) | - 0), - (It = ((g = (_e + Tr) | 0) - (d = -2097152 & or)) | 0), - (Pr = d = - ((h = g >>> 0 < _e >>> 0 ? (h + 1) | 0 : h) - - (((d >>> 0 > g >>> 0) + Pr) | 0)) | - 0), - (G0 = d = (d - (((It >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((vs = (It - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + Lo) | 0), - (_e = d = - g >>> 0 > (hn = (g + uo) | 0) >>> 0 ? (d + 1) | 0 : d), - (tu = d = (d - (((hn >>> 0 < 4293918720) - 1) | 0)) | 0), - (Is = - ((2097151 & d) << 11) | - ((oo = (hn - -1048576) | 0) >>> 21)), - (Tr = d >> 21), - (Jo = (jr - (d = -2097152 & Lr)) | 0), - (po = (_r - (((d >>> 0 > jr >>> 0) + po) | 0)) | 0), - (d = jn(wn, 0, nt, 0)), - (ks = h = On), - (uo = d), - (xr = (d - -1048576) | 0), - (gs = h = (h - (((d >>> 0 < 4293918720) - 1) | 0)) | 0), - (hr = d = (h >>> 21) | 0), - (d = jn( - (sr = ((2097151 & h) << 11) | (xr >>> 21)), - d, - -683901, - -1, - )), - (h = (On + er) | 0), - (h = d >>> 0 > (g = (d + Ot) | 0) >>> 0 ? (h + 1) | 0 : h), - (Lr = (g - (d = -2097152 & Nt)) | 0), - (or = (h - (((d >>> 0 > g >>> 0) + To) | 0)) | 0), - (h = jn(pt, 0, _t, 0)), - (d = On), - (g = h), - (h = jn(wn, 0, Tt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(Un, 0, kt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + g) | 0) >>> 0 ? (d + 1) | 0 : d), - (er = ((h = g) + (g = jn(et, 0, gt, Hr))) | 0), - (h = (On + d) | 0), - (h = g >>> 0 > er >>> 0 ? (h + 1) | 0 : h), - (d = jn(Yn, 0, bt, 0)), - (g = (On + h) | 0), - (g = d >>> 0 > (er = (d + er) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn($n, 0, mt, yt)), - (h = (On + g) | 0), - (h = d >>> 0 > (er = (d + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(nt, 0, mo, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(at, 0, Rt, 0)), - (d = (On + d) | 0), - (Ot = g = (h + er) | 0), - (er = h >>> 0 > g >>> 0 ? (d + 1) | 0 : d), - (d = jn(Un, 0, Tt, 0)), - (h = On), - (g = d), - (d = jn(wn, 0, wt, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (_r = ((d = jn(et, 0, _t, 0)) + g) | 0), - (g = (On + h) | 0), - (g = d >>> 0 > _r >>> 0 ? (g + 1) | 0 : g), - (d = jn(pt, 0, kt, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (_r = (d + _r) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(gt, Hr, mt, yt)), - (d = (On + h) | 0), - (d = g >>> 0 > (_r = (g + _r) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(Yn, 0, Rt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + _r) | 0) >>> 0 ? (d + 1) | 0 : d), - (_r = ((h = g) + (g = jn($n, 0, bt, 0))) | 0), - (h = (On + d) | 0), - (h = g >>> 0 > _r >>> 0 ? (h + 1) | 0 : h), - (d = jn(nt, 0, Ht, 0)), - (g = (On + h) | 0), - (g = d >>> 0 > (_r = (d + _r) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn(at, 0, mo, 0)), - (h = (On + g) | 0), - (Yr = h = - d >>> 0 > (Zr = (d + _r) | 0) >>> 0 ? (h + 1) | 0 : h), - (Gs = d = (h - (((Zr >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = - ((2097151 & d) << 11) | - ((jr = (Zr - -1048576) | 0) >>> 21)), - (d = (((d >>> 21) | 0) + er) | 0), - (Nt = d = - h >>> 0 > (To = (h + Ot) | 0) >>> 0 ? (d + 1) | 0 : d), - (ls = d = (d - (((To >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = ((g = (d >>> 21) | 0) + or) | 0), - (Lr = h = - (d = - ((2097151 & d) << 11) | - ((_r = (To - -1048576) | 0) >>> 21)) >>> - 0 > - (Lo = (d + Lr) | 0) >>> 0 - ? (h + 1) | 0 - : h), - (Hs = d = (h - (((Lo >>> 0 < 4293918720) - 1) | 0)) | 0), - (er = - ((2097151 & d) << 11) | - ((or = (Lo - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + po) | 0), - (Er = d = - (h = (er + Jo) | 0) >>> 0 < er >>> 0 ? (d + 1) | 0 : d), - (rt = h), - (d = jn(h, d, -683901, -1)), - (h = (On + Tr) | 0), - (Is = g = (d + Is) | 0), - (Tr = d >>> 0 > g >>> 0 ? (h + 1) | 0 : h), - (d = jn(Un, 0, At, 0)), - (h = On), - (g = d), - (d = jn(pt, 0, Ct, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (er = ((d = g) + (g = jn(mt, yt, wt, 0))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > er >>> 0 ? (d + 1) | 0 : d), - (h = jn(bt, 0, Tt, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (er = (h + er) | 0) >>> 0 ? (g + 1) | 0 : g), - (h = jn(et, 0, Jt, 0)), - (d = (On + g) | 0), - (d = h >>> 0 > (er = (h + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(_t, 0, mo, 0)), - (h = (On + d) | 0), - (h = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn(kt, 0, Rt, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (d + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (er = ((d = g) + (g = jn(gt, Hr, Ht, 0))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > er >>> 0 ? (d + 1) | 0 : d), - (h = jn(Yn, 0, rr, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (er = (h + er) | 0) >>> 0 ? (g + 1) | 0 : g), - (h = jn($n, 0, Zt, 0)), - (d = (On + g) | 0), - (d = h >>> 0 > (er = (h + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(at, 0, jt, 0)), - (h = (On + d) | 0), - (po = er = (g + er) | 0), - (g = g >>> 0 > er >>> 0 ? (h + 1) | 0 : h), - (h = ((d = rn[(j + 27) | 0]) >>> 24) | 0), - (Ot = (d << 8) | (_a >>> 24)), - (er = - 2097151 & - (((3 & (h |= d = ((er = rn[(j + 28) | 0]) >>> 16) | 0)) << - 30) | - ((d = (er <<= 16) | Ot) >>> 2))), - (h = g), - (Ot = d = (er + po) | 0), - (er = d >>> 0 < er >>> 0 ? (h + 1) | 0 : h), - (Jo = jn(Pt, tr, 470296, 0)), - (po = On), - (d = - ((g = ((2097151 & Do) << 11) | (Eo >>> 21)) + - ((uo - (h = -2097152 & xr)) | 0)) | - 0), - (h = - (ks - - (((524287 & gs) + (h >>> 0 > uo >>> 0)) | 0) + - (Do >>> 21)) | - 0), - (tt = h = d >>> 0 < g >>> 0 ? (h + 1) | 0 : h), - (ft = d), - (h = jn(d, h, 666643, 0)), - (d = (On + po) | 0), - (d = h >>> 0 > (g = (h + Jo) | 0) >>> 0 ? (d + 1) | 0 : d), - (xr = ((h = jn(Ut, Qt, 654183, 0)) + g) | 0), - (g = (On + d) | 0), - (g = h >>> 0 > xr >>> 0 ? (g + 1) | 0 : g), - (h = jn(dr, Ar, -997805, -1)), - (d = (On + g) | 0), - (d = h >>> 0 > (xr = (h + xr) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(fr, xt, 136657, 0)), - (h = (On + d) | 0), - (ao = - ((d = ((2097151 & ro) << 11) | (ao >>> 21)) + - (xr = (g + xr) | 0)) | - 0), - (h = - (((ro >>> 21) | 0) + - (g >>> 0 > xr >>> 0 ? (h + 1) | 0 : h)) | - 0), - (gs = xr = (er - (((Ot >>> 0 < 4293918720) - 1) | 0)) | 0), - (d = ((d >>> 0 > ao >>> 0 ? (h + 1) | 0 : h) + er) | 0), - (h = - ((er = (Ot + ao) | 0) - - (g = -2097152 & (ks = (Ot - -1048576) | 0))) | - 0), - (g = - ((d = - ((d = er >>> 0 < ao >>> 0 ? (d + 1) | 0 : d) - - (((g >>> 0 > er >>> 0) + xr) | 0)) | - 0) + - Tr) | - 0), - (Jo = er = (d - (((h >>> 0 < 4293918720) - 1) | 0)) | 0), - (uo = - ((g = - (Ot = (h + Is) | 0) >>> 0 < h >>> 0 ? (g + 1) | 0 : g) - - ((((h = -2097152 & (po = (h - -1048576) | 0)) >>> 0 > - Ot >>> 0) + - er) | - 0)) | - 0), - (_a = d = (Ot - h) | 0), - (er = hn), - (hn = _e), - (qs = (Lo - (d = -2097152 & or)) | 0), - (xr = (Lr - (((d >>> 0 > Lo >>> 0) + Hs) | 0)) | 0), - (d = jn(ft, tt, -683901, -1)), - (h = On), - (_e = ((g = d) + (d = jn(sr, hr, 136657, 0))) | 0), - (g = (On + h) | 0), - (h = (Nt + (d >>> 0 > _e >>> 0 ? (g + 1) | 0 : g)) | 0), - (_r = ((g = (_e + To) | 0) - (d = -2097152 & _r)) | 0), - (Lr = - ((h = g >>> 0 < To >>> 0 ? (h + 1) | 0 : h) - - (((d >>> 0 > g >>> 0) + ls) | 0)) | - 0), - (h = jn(sr, hr, -997805, -1)), - (d = (On + Yr) | 0), - (d = h >>> 0 > (g = (h + Zr) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = jn(ft, tt, 136657, 0)) + g) | 0), - (g = (On + d) | 0), - (g = h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (d = jn(Pt, tr, -683901, -1)), - (h = (On + g) | 0), - (h = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (or = (_e - (d = -2097152 & jr)) | 0), - (Tr = (h - (((d >>> 0 > _e >>> 0) + Gs) | 0)) | 0), - (h = jn(pt, 0, Tt, 0)), - (d = On), - (g = h), - (h = jn(Un, 0, wt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = jn(wn, 0, Jt, 0)) + g) | 0), - (g = (On + d) | 0), - (g = h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (d = jn(mt, yt, _t, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(et, 0, kt, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (_e = (g + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(gt, Hr, bt, 0)), - (h = (On + d) | 0), - (h = g >>> 0 > (_e = (g + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(Yn, 0, mo, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (_e = (g + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn($n, 0, Rt, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (_e = (h + _e) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn(nt, 0, Zt, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(at, 0, Ht, 0)), - (d = (On + h) | 0), - (Ot = _e = (g + _e) | 0), - (_e = g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (d = jn(pt, 0, wt, 0)), - (h = On), - (g = d), - (d = jn(wn, 0, Ct, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (Nt = ((d = g) + (g = jn(et, 0, Tt, 0))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > Nt >>> 0 ? (d + 1) | 0 : d), - (h = jn(Un, 0, Jt, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (Nt = (h + Nt) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn(_t, 0, bt, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (Nt = (d + Nt) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(mt, yt, kt, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (Nt = (g + Nt) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(gt, Hr, Rt, 0)), - (h = (On + d) | 0), - (h = g >>> 0 > (Nt = (g + Nt) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(Yn, 0, Ht, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (Nt = (g + Nt) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn($n, 0, mo, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (Nt = (h + Nt) | 0) >>> 0 ? (g + 1) | 0 : g), - (Nt = ((d = jn(nt, 0, rr, 0)) + Nt) | 0), - (h = (On + g) | 0), - (g = jn(at, 0, Zt, 0)), - (d = (On + (d >>> 0 > Nt >>> 0 ? (h + 1) | 0 : h)) | 0), - (Lo = d = - g >>> 0 > (Hs = (g + Nt) | 0) >>> 0 ? (d + 1) | 0 : d), - (yr = d = (d - (((Hs >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((Do = (Hs - -1048576) | 0) >>> 21)), - (d = (((d >>> 21) | 0) + _e) | 0), - (Eo = d = - g >>> 0 > (Is = (g + Ot) | 0) >>> 0 ? (d + 1) | 0 : d), - (Qr = d = (d - (((Is >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((ro = (Is - -1048576) | 0) >>> 21)), - (d = (((d >>> 21) | 0) + Tr) | 0), - (ao = d = - g >>> 0 > (To = (g + or) | 0) >>> 0 ? (d + 1) | 0 : d), - (Br = d = (d - (((To >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((Yr = (To - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + Lr) | 0), - (_e = d = - g >>> 0 > (or = (g + _r) | 0) >>> 0 ? (d + 1) | 0 : d), - (Lr = d = (d - (((or >>> 0 < 4293918720) - 1) | 0)) | 0), - (Tr = - ((2097151 & d) << 11) | ((g = (or - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + xr) | 0), - (Gs = d = - (Ot = (Tr + qs) | 0) >>> 0 < Tr >>> 0 ? (d + 1) | 0 : d), - (ls = Ot), - (d = jn(Ot, d, -683901, -1)), - (h = On), - (Ot = d), - (d = jn(rt, Er, 136657, 0)), - (h = (On + h) | 0), - (d = - ((d >>> 0 > (Ot = (Ot + d) | 0) >>> 0 ? (h + 1) | 0 : h) + - hn) | - 0), - (q0 = ((hn = (er + Ot) | 0) - (h = -2097152 & oo)) | 0), - (V0 = - ((d = hn >>> 0 < Ot >>> 0 ? (d + 1) | 0 : d) - - (((h >>> 0 > hn >>> 0) + tu) | 0)) | - 0), - (Tr = It), - (Ot = Pr), - (It = jn(ls, Gs, 136657, 0)), - (hn = On), - (qs = d = (or - (h = -2097152 & g)) | 0), - (Xt = _e = (_e - (((h >>> 0 > or >>> 0) + Lr) | 0)) | 0), - (g = jn(rt, Er, -997805, -1)), - (h = (On + hn) | 0), - (h = g >>> 0 > (It = (g + It) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(d, _e, -683901, -1)), - (d = (On + h) | 0), - (tu = _e = (g + It) | 0), - (er = g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (d = jn(fr, xt, 470296, 0)), - (h = On), - (_e = ((g = d) + (d = jn(dr, Ar, 666643, 0))) | 0), - (g = (On + h) | 0), - (h = (Js + (d >>> 0 > _e >>> 0 ? (g + 1) | 0 : g)) | 0), - (xr = d = (_e + Fs) | 0), - (hn = h = d >>> 0 < Fs >>> 0 ? (h + 1) | 0 : h), - (h = jn(fr, xt, 666643, 0)), - (d = (On + Ns) | 0), - (d = h >>> 0 > (g = (h + ps) | 0) >>> 0 ? (d + 1) | 0 : d), - (_r = (g - (h = -2097152 & Os)) | 0), - (Zr = (d - (((h >>> 0 > g >>> 0) + H0) | 0)) | 0), - (h = jn(Rt, 0, At, 0)), - (d = On), - (g = h), - (h = jn(Ct, 0, mo, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = g) + (g = jn(wt, 0, Zt, 0))) | 0), - (h = (On + d) | 0), - (h = g >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (g = jn(Tt, 0, rr, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (_e = (g + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(Jt, 0, Ht, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (_e = (h + _e) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn(kt, 0, jt, 0)), - (h = (On + g) | 0), - (or = _e = (d + _e) | 0), - (_e = d >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (h = ((d = rn[(j + 14) | 0]) >>> 24) | 0), - (It = - (d << 8) | - ((Lr = - rn[(j + 10) | 0] | - (rn[(j + 11) | 0] << 8) | - (rn[(j + 12) | 0] << 16) | - (rn[(j + 13) | 0] << 24)) >>> - 24)), - (h = - 2097151 & - (((1 & (h |= g = ((d = rn[(j + 15) | 0]) >>> 16) | 0)) << - 31) | - ((d = It | (d << 16)) >>> 1))), - (d = _e), - (or = g = (h + or) | 0), - (_e = h >>> 0 > g >>> 0 ? (d + 1) | 0 : d), - (It = (Lr >>> 4) & 2097151), - (d = jn(At, 0, mo, 0)), - (h = On), - (g = d), - (d = jn(Ct, 0, Ht, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn(wt, 0, rr, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (d + g) | 0) >>> 0 ? (h + 1) | 0 : h), - (Lr = ((d = g) + (g = jn(Tt, 0, jt, 0))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > Lr >>> 0 ? (d + 1) | 0 : d), - (h = jn(Jt, 0, Zt, 0)), - (g = (On + d) | 0), - (d = h >>> 0 > (Lr = (h + Lr) | 0) >>> 0 ? (g + 1) | 0 : g), - (Pr = d = - (Os = (It + Lr) | 0) >>> 0 < Lr >>> 0 ? (d + 1) | 0 : d), - (wr = d = (d - (((Os >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = ((g = (d >>> 21) | 0) + _e) | 0), - (jr = h = - (d = - ((2097151 & d) << 11) | - ((oo = (Os - -1048576) | 0) >>> 21)) >>> - 0 > - (Js = (d + or) | 0) >>> 0 - ? (h + 1) | 0 - : h), - (Dr = d = (h - (((Js >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = - ((2097151 & d) << 11) | - ((Nt = (Js - -1048576) | 0) >>> 21)), - (d = (((d >>> 21) | 0) + Zr) | 0), - (Lr = d = - h >>> 0 > (_r = (h + _r) | 0) >>> 0 ? (d + 1) | 0 : d), - (Gr = d = (d - (((_r >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = ((g = d >> 21) + hn) | 0), - (H0 = h = - ((h = - (d = - ((2097151 & d) << 11) | - ((or = (_r - -1048576) | 0) >>> 21)) >>> - 0 > - (_e = (d + xr) | 0) >>> 0 - ? (h + 1) | 0 - : h) - - ((((g = -2097152 & Cs) >>> 0 > _e >>> 0) + $0) | 0)) | - 0), - (Cs = d = (_e - g) | 0), - (It = (d - -1048576) | 0), - ($0 = d = (h - (((d >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((h = d >> 21) + er) | 0), - (h = - (((d = ((2097151 & d) << 11) | (It >>> 21)) >>> 0 > - (_e = (d + tu) | 0) >>> 0 - ? (g + 1) | 0 - : g) + - Ot) | - 0), - (ps = h = - ((h = - (d = _e) >>> 0 > (_e = (_e + Tr) | 0) >>> 0 - ? (h + 1) | 0 - : h) - - ((((g = -2097152 & vs) >>> 0 > _e >>> 0) + G0) | 0)) | - 0), - (Ot = d = (_e - g) | 0), - (hn = (d - -1048576) | 0), - (Ns = d = (h - (((d >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((h = d >> 21) + V0) | 0), - (vs = d = - ((g = - (d = ((2097151 & d) << 11) | (hn >>> 21)) >>> 0 > - (er = (d + q0) | 0) >>> 0 - ? (g + 1) | 0 - : g) - - (((er >>> 0 < 4293918720) - 1) | 0)) | - 0), - (xr = (_a - -1048576) | 0), - (Zr = (uo - (((_a >>> 0 < 4293918720) - 1) | 0)) | 0), - (Tr = - ((2097151 & d) << 11) | - ((_e = (er - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + uo) | 0), - (G0 = ((_a = (Tr + _a) | 0) - (h = -2097152 & xr)) | 0), - (q0 = - ((Tr >>> 0 > _a >>> 0 ? (d + 1) | 0 : d) - - (((h >>> 0 > _a >>> 0) + Zr) | 0)) | - 0), - (V0 = (er - (d = -2097152 & _e)) | 0), - (tu = (g - (((d >>> 0 > er >>> 0) + vs) | 0)) | 0), - (Fs = (Ot - (d = -2097152 & hn)) | 0), - (_a = (ps - (((d >>> 0 > Ot >>> 0) + Ns) | 0)) | 0), - (d = jn(ls, Gs, -997805, -1)), - (h = On), - (g = d), - (d = jn(rt, Er, 654183, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (_e = ((d = g) + (g = jn(qs, Xt, 136657, 0))) | 0), - (d = (On + h) | 0), - (h = (H0 + (g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d)) | 0), - (ps = ((g = (_e + Cs) | 0) - (d = -2097152 & It)) | 0), - (Ns = - ((h = g >>> 0 < Cs >>> 0 ? (h + 1) | 0 : h) - - (((d >>> 0 > g >>> 0) + $0) | 0)) | - 0), - (Cs = (To - (d = -2097152 & Yr)) | 0), - (uo = (ao - (((d >>> 0 > To >>> 0) + Br) | 0)) | 0), - (h = jn(ft, tt, -997805, -1)), - (d = On), - (g = h), - (h = jn(sr, hr, 654183, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = g) + (g = jn(Pt, tr, 136657, 0))) | 0), - (h = (On + d) | 0), - (h = g >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (d = jn(Ut, Qt, -683901, -1)), - (g = (On + h) | 0), - (h = - (Eo + - (d >>> 0 > (_e = (d + _e) | 0) >>> 0 ? (g + 1) | 0 : g)) | - 0), - (Yr = ((g = (_e + Is) | 0) - (d = -2097152 & ro)) | 0), - (ao = - ((h = g >>> 0 < Is >>> 0 ? (h + 1) | 0 : h) - - (((d >>> 0 > g >>> 0) + Qr) | 0)) | - 0), - (h = jn(ft, tt, 654183, 0)), - (d = On), - (g = h), - (h = jn(sr, hr, 470296, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = jn(Pt, tr, -997805, -1)) + g) | 0), - (g = (On + d) | 0), - (h = (Lo + (h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g)) | 0), - (h = (d = (_e + Hs) | 0) >>> 0 < Hs >>> 0 ? (h + 1) | 0 : h), - (g = d), - (d = jn(Ut, Qt, 136657, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (_e = ((d = g) + (g = jn(dr, Ar, -683901, -1))) | 0), - (d = (On + h) | 0), - (It = (_e - (h = -2097152 & Do)) | 0), - (hn = - ((g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d) - - (((h >>> 0 > _e >>> 0) + yr) | 0)) | - 0), - (_e = - ((rn[(j + 28) | 0] | - (rn[(j + 29) | 0] << 8) | - (rn[(j + 30) | 0] << 16) | - (rn[(j + 31) | 0] << 24)) >>> - 7) | - 0), - (d = jn(wn, 0, At, 0)), - (h = On), - (er = ((g = d) + (d = jn(Un, 0, Ct, 0))) | 0), - (g = (On + h) | 0), - (g = d >>> 0 > er >>> 0 ? (g + 1) | 0 : g), - (d = jn(et, 0, wt, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (er = (d + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(mt, yt, Tt, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn(pt, 0, Jt, 0)), - (h = (On + d) | 0), - (h = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(_t, 0, Rt, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(bt, 0, kt, 0)), - (g = (On + d) | 0), - (g = h >>> 0 > (er = (h + er) | 0) >>> 0 ? (g + 1) | 0 : g), - (d = jn(gt, Hr, mo, 0)), - (h = (On + g) | 0), - (h = d >>> 0 > (er = (d + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(Yn, 0, Zt, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (g = jn($n, 0, Ht, 0)), - (h = (On + d) | 0), - (h = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(nt, 0, jt, 0)), - (d = (On + h) | 0), - (d = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(at, 0, rr, 0)), - (g = (On + d) | 0), - (h = h >>> 0 > (er = (h + er) | 0) >>> 0 ? (g + 1) | 0 : g), - (Eo = - ((g = ((2097151 & gs) << 11) | (ks >>> 21)) + - (d = (_e + er) | 0)) | - 0), - (d = - (((gs >>> 21) | 0) + - (h = d >>> 0 < er >>> 0 ? (h + 1) | 0 : h)) | - 0), - (Tr = d = g >>> 0 > Eo >>> 0 ? (d + 1) | 0 : d), - (vs = h = (d - (((Eo >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((d = (h >>> 21) | 0) + hn) | 0), - (Ot = g = - (h = - ((2097151 & h) << 11) | - ((Hr = (Eo - -1048576) | 0) >>> 21)) >>> - 0 > - (ro = (h + It) | 0) >>> 0 - ? (g + 1) | 0 - : g), - (ks = h = (g - (((ro >>> 0 < 4293918720) - 1) | 0)) | 0), - (d = ((d = h >> 21) + ao) | 0), - (It = d = - (h = - ((2097151 & h) << 11) | - ((er = (ro - -1048576) | 0) >>> 21)) >>> - 0 > - (Yr = (h + Yr) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (Do = h = (d - (((Yr >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((d = h >> 21) + uo) | 0), - (gs = g = - (h = - ((_e = - ((2097151 & h) << 11) | - ((hn = (Yr - -1048576) | 0) >>> 21)) + - Cs) | - 0) >>> - 0 < - _e >>> 0 - ? (g + 1) | 0 - : g), - (uo = h), - (d = jn(h, g, -683901, -1)), - (h = (On + Ns) | 0), - (ao = g = (d + ps) | 0), - (_e = d >>> 0 > g >>> 0 ? (h + 1) | 0 : h), - (h = jn(rt, Er, 470296, 0)), - (d = (On + Lr) | 0), - (d = h >>> 0 > (_r = (h + _r) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(ls, Gs, 654183, 0)), - (d = - (On + - ((d - - ((((g = -2097152 & or) >>> 0 > _r >>> 0) + Gr) | 0)) | - 0)) | - 0), - (d = - h >>> 0 > (or = (h + ((_r - g) | 0)) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (g = jn(qs, Xt, -997805, -1)), - (h = (On + d) | 0), - (h = g >>> 0 > (or = (g + or) | 0) >>> 0 ? (h + 1) | 0 : h), - (Lo = g = (Yr - (d = -2097152 & hn)) | 0), - (mo = It = (It - (((d >>> 0 > Yr >>> 0) + Do) | 0)) | 0), - (or = ((hn = jn(uo, gs, 136657, 0)) + or) | 0), - (d = (On + h) | 0), - (g = jn(g, It, -683901, -1)), - (h = (On + (hn >>> 0 > or >>> 0 ? (d + 1) | 0 : d)) | 0), - (It = h = - g >>> 0 > (Lr = (g + or) | 0) >>> 0 ? (h + 1) | 0 : h), - (Do = d = (h - (((Lr >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = - ((2097151 & d) << 11) | - ((hn = (Lr - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + _e) | 0), - (Yr = h = - ((d = - h >>> 0 > (or = (h + ao) | 0) >>> 0 ? (d + 1) | 0 : d) - - (((or >>> 0 < 4293918720) - 1) | 0)) | - 0), - (_r = - ((2097151 & h) << 11) | - ((_e = (or - -1048576) | 0) >>> 21)), - (h = ((h >> 21) + _a) | 0), - (Fs = ao = (_r + Fs) | 0), - (ao = _r >>> 0 > ao >>> 0 ? (h + 1) | 0 : h), - (_a = (or - (h = -2097152 & _e)) | 0), - (Hs = (d - (((h >>> 0 > or >>> 0) + Yr) | 0)) | 0), - (ps = (Lr - (d = -2097152 & hn)) | 0), - (Ns = (It - (((d >>> 0 > Lr >>> 0) + Do) | 0)) | 0), - (d = jn(rt, Er, 666643, 0)), - (g = (jr + On) | 0), - (g = (hn = (d + Js) | 0) >>> 0 < Js >>> 0 ? (g + 1) | 0 : g), - (_e = - ((d = jn(ls, Gs, 470296, 0)) + - ((hn - (h = -2097152 & Nt)) | 0)) | - 0), - (h = - (On + ((g - (((h >>> 0 > hn >>> 0) + Dr) | 0)) | 0)) | 0), - (h = d >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (g = jn(qs, Xt, 654183, 0)), - (d = (On + h) | 0), - (or = _e = (g + _e) | 0), - (_e = g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (hn = (ro - (d = -2097152 & er)) | 0), - (It = (Ot - (((d >>> 0 > ro >>> 0) + ks) | 0)) | 0), - (d = jn(ft, tt, 470296, 0)), - (h = On), - (g = d), - (d = jn(sr, hr, 666643, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn(Pt, tr, 654183, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (d + g) | 0) >>> 0 ? (h + 1) | 0 : h), - (er = ((d = g) + (g = jn(Ut, Qt, -997805, -1))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > er >>> 0 ? (d + 1) | 0 : d), - (h = jn(dr, Ar, 136657, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + er) | 0) >>> 0 ? (d + 1) | 0 : d), - (er = ((h = jn(fr, xt, -683901, -1)) + g) | 0), - (g = (On + d) | 0), - (h = (Tr + (h >>> 0 > er >>> 0 ? (g + 1) | 0 : g)) | 0), - (ro = - ((g = ((2097151 & Jo) << 11) | (po >>> 21)) + - (((er = (er + Eo) | 0) - (d = -2097152 & Hr)) | 0)) | - 0), - (d = - ((((h = er >>> 0 < Eo >>> 0 ? (h + 1) | 0 : h) - - (((d >>> 0 > er >>> 0) + vs) | 0)) | - 0) + - (Jo >> 21)) | - 0), - (Yr = d = g >>> 0 > ro >>> 0 ? (d + 1) | 0 : d), - (Cs = d = (d - (((ro >>> 0 < 4293918720) - 1) | 0)) | 0), - (h = hn), - (hn = - ((2097151 & d) << 11) | - ((Nt = (ro - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + It) | 0), - (Do = d = - (g = (h + hn) | 0) >>> 0 < hn >>> 0 ? (d + 1) | 0 : d), - (Eo = g), - (d = jn(g, d, -683901, -1)), - (h = (On + _e) | 0), - (h = d >>> 0 > (g = (d + or) | 0) >>> 0 ? (h + 1) | 0 : h), - (_e = ((d = g) + (g = jn(uo, gs, -997805, -1))) | 0), - (d = (On + h) | 0), - (d = g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (h = jn(Lo, mo, 136657, 0)), - (g = (On + d) | 0), - (po = _e = (h + _e) | 0), - (Ot = h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (or = (Os - (d = -2097152 & oo)) | 0), - (Tr = (Pr - (((d >>> 0 > Os >>> 0) + wr) | 0)) | 0), - (h = jn(At, 0, Ht, 0)), - (d = On), - (g = h), - (h = jn(Ct, 0, Zt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (g + h) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(wt, 0, jt, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + g) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = jn(Jt, 0, rr, 0)) + g) | 0), - (g = (On + d) | 0), - (h = h >>> 0 > _e >>> 0 ? (g + 1) | 0 : g), - (Hr = g = - ((d = - ((rn[(j + 7) | 0] | - (rn[(j + 8) | 0] << 8) | - (rn[(j + 9) | 0] << 16) | - (rn[(j + 10) | 0] << 24)) >>> - 7) & - 2097151) + - _e) | - 0), - (er = d >>> 0 > g >>> 0 ? (h + 1) | 0 : h), - (d = jn(At, 0, Zt, 0)), - (h = On), - (g = d), - (d = jn(Ct, 0, rr, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (g + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (_e = ((d = g) + (g = jn(Jt, 0, jt, 0))) | 0), - (d = (On + h) | 0), - (It = _e), - (_e = g >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (d = ((h = rn[(j + 6) | 0]) >>> 24) | 0), - (hn = - (h << 8) | - ((vs = - rn[(j + 2) | 0] | - (rn[(j + 3) | 0] << 8) | - (rn[(j + 4) | 0] << 16) | - (rn[(j + 5) | 0] << 24)) >>> - 24)), - (g = d), - (h = ((d = rn[(j + 7) | 0]) >>> 16) | 0), - (h |= g), - (g = _e), - (hn = g = - (d = - 2097151 & - (((3 & h) << 30) | ((d = (d << 16) | hn) >>> 2))) >>> - 0 > - (It = (d + It) | 0) >>> 0 - ? (g + 1) | 0 - : g), - (Is = d = (g - (((It >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((jr = (It - -1048576) | 0) >>> 21)), - (d = (((d >>> 21) | 0) + er) | 0), - (_r = d = - g >>> 0 > (Pr = (g + Hr) | 0) >>> 0 ? (d + 1) | 0 : d), - (ks = d = (d - (((Pr >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((h = (d >>> 21) | 0) + Tr) | 0), - (g = - (d = - ((2097151 & d) << 11) | - ((Lr = (Pr - -1048576) | 0) >>> 21)) >>> - 0 > - (_e = (d + or) | 0) >>> 0 - ? (g + 1) | 0 - : g), - (h = jn(ls, Gs, 666643, 0)), - (d = (On + g) | 0), - (d = h >>> 0 > (_e = (h + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (h = jn(qs, Xt, 470296, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + _e) | 0) >>> 0 ? (d + 1) | 0 : d), - (_e = ((h = g) + (g = jn(Eo, Do, 136657, 0))) | 0), - (h = (On + d) | 0), - (h = g >>> 0 > _e >>> 0 ? (h + 1) | 0 : h), - (d = jn(uo, gs, 654183, 0)), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (d + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (or = ((d = jn(Lo, mo, -997805, -1)) + g) | 0), - (g = (On + h) | 0), - (Tr = g = d >>> 0 > or >>> 0 ? (g + 1) | 0 : g), - (Jo = d = (g - (((or >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & d) << 11) | - ((Hr = (or - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + Ot) | 0), - (po = g = - ((d = - g >>> 0 > (_e = (g + po) | 0) >>> 0 ? (d + 1) | 0 : d) - - (((_e >>> 0 < 4293918720) - 1) | 0)) | - 0), - (er = - ((2097151 & g) << 11) | - ((Ot = (_e - -1048576) | 0) >>> 21)), - (g = ((g >> 21) + Ns) | 0), - (To = oo = (er + ps) | 0), - (oo = er >>> 0 > oo >>> 0 ? (g + 1) | 0 : g), - (er = _e), - (h = d), - (_e = - (((ro - (d = -2097152 & Nt)) | 0) + - (Nt = ((2097151 & Zr) << 11) | (xr >>> 21))) | - 0), - (d = - (((Yr - (((d >>> 0 > ro >>> 0) + Cs) | 0)) | 0) + - (Zr >> 21)) | - 0), - (xr = d = _e >>> 0 < Nt >>> 0 ? (d + 1) | 0 : d), - (ps = d = (d - (((_e >>> 0 < 4293918720) - 1) | 0)) | 0), - (ro = g = d >> 21), - (d = jn( - (ls = - ((2097151 & d) << 11) | - ((Zr = (_e - -1048576) | 0) >>> 21)), - g, - -683901, - -1, - )), - (h = (On + h) | 0), - (h = d >>> 0 > (g = (d + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (Ns = (g - (d = -2097152 & Ot)) | 0), - (Os = (h - (((d >>> 0 > g >>> 0) + po) | 0)) | 0), - (h = jn(ls, ro, 136657, 0)), - (d = (On + Tr) | 0), - (d = h >>> 0 > (g = (h + or) | 0) >>> 0 ? (d + 1) | 0 : d), - (Js = (g - (h = -2097152 & Hr)) | 0), - (Jo = (d - (((h >>> 0 > g >>> 0) + Jo) | 0)) | 0), - (h = jn(qs, Xt, 666643, 0)), - (d = - (On + - ((_r - - ((((g = -2097152 & Lr) >>> 0 > Pr >>> 0) + ks) | 0)) | - 0)) | - 0), - (d = - h >>> 0 > (er = (h + ((Pr - g) | 0)) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (g = jn(Eo, Do, -997805, -1)), - (h = (On + d) | 0), - (h = g >>> 0 > (er = (g + er) | 0) >>> 0 ? (h + 1) | 0 : h), - (d = jn(uo, gs, 470296, 0)), - (g = (On + h) | 0), - (g = d >>> 0 > (er = (d + er) | 0) >>> 0 ? (g + 1) | 0 : g), - (h = jn(Lo, mo, 654183, 0)), - (d = (On + g) | 0), - (po = er = (h + er) | 0), - (Tr = h >>> 0 > er >>> 0 ? (d + 1) | 0 : d), - (g = (vs >>> 5) & 2097151), - (d = jn(At, 0, rr, 0)), - (h = On), - (Ot = d), - (d = jn(Ct, 0, jt, 0)), - (h = (On + h) | 0), - (d = d >>> 0 > (er = (Ot + d) | 0) >>> 0 ? (h + 1) | 0 : h), - (Ot = h = (g + er) | 0), - (g = d = h >>> 0 < er >>> 0 ? (d + 1) | 0 : d), - (Pr = - ((h = jn(At, 0, jt, 0)) + - (d = - (((d = rn[(j + 2) | 0]) << 16) & 2031616) | - rn[0 | j] | - (rn[(j + 1) | 0] << 8))) | - 0), - (h = On), - (Nt = h = d >>> 0 > Pr >>> 0 ? (h + 1) | 0 : h), - (Cs = h = (h - (((Pr >>> 0 < 4293918720) - 1) | 0)) | 0), - (d = ((d = (h >>> 21) | 0) + g) | 0), - (Lr = d = - (h = - ((2097151 & h) << 11) | - ((_r = (Pr - -1048576) | 0) >>> 21)) >>> - 0 > - (Yr = (h + Ot) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (vs = h = (d - (((Yr >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = - ((2097151 & h) << 11) | - ((or = (Yr - -1048576) | 0) >>> 21)), - (h = (((h >>> 21) | 0) + hn) | 0), - (h = g >>> 0 > (er = (g + It) | 0) >>> 0 ? (h + 1) | 0 : h), - (g = jn(Eo, Do, 654183, 0)), - (d = - (On + - ((h - - ((((hn = -2097152 & jr) >>> 0 > er >>> 0) + Is) | 0)) | - 0)) | - 0), - (d = - g >>> 0 > (It = (g + ((er - hn) | 0)) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (h = jn(uo, gs, 666643, 0)), - (d = (On + d) | 0), - (d = h >>> 0 > (g = (h + It) | 0) >>> 0 ? (d + 1) | 0 : d), - (Hr = ((h = g) + (g = jn(Lo, mo, 470296, 0))) | 0), - (h = (On + d) | 0), - (Ot = h = g >>> 0 > Hr >>> 0 ? (h + 1) | 0 : h), - (ks = h = (h - (((Hr >>> 0 < 4293918720) - 1) | 0)) | 0), - (g = ((d = h >> 21) + Tr) | 0), - (jr = h = - ((g = - (h = - ((2097151 & h) << 11) | - ((er = (Hr - -1048576) | 0) >>> 21)) >>> - 0 > - (It = (h + po) | 0) >>> 0 - ? (g + 1) | 0 - : g) - - (((It >>> 0 < 4293918720) - 1) | 0)) | - 0), - (Tr = - ((2097151 & h) << 11) | - ((hn = (It - -1048576) | 0) >>> 21)), - (h = ((h >> 21) + Jo) | 0), - (gs = uo = (Tr + Js) | 0), - (Tr = Tr >>> 0 > uo >>> 0 ? (h + 1) | 0 : h), - (d = jn(ls, ro, -997805, -1)), - (h = (On + g) | 0), - (h = d >>> 0 > (It = (d + It) | 0) >>> 0 ? (h + 1) | 0 : h), - (Jo = (It - (d = -2097152 & hn)) | 0), - (po = (h - (((d >>> 0 > It >>> 0) + jr) | 0)) | 0), - (h = jn(ls, ro, 654183, 0)), - (d = (On + Ot) | 0), - (d = h >>> 0 > (g = (h + Hr) | 0) >>> 0 ? (d + 1) | 0 : d), - (uo = (g - (h = -2097152 & er)) | 0), - (jr = (d - (((h >>> 0 > g >>> 0) + ks) | 0)) | 0), - (d = jn(Eo, Do, 470296, 0)), - (g = - (On + - ((Lr - - ((((h = -2097152 & or) >>> 0 > Yr >>> 0) + vs) | 0)) | - 0)) | - 0), - (g = - d >>> 0 > (hn = (d + ((Yr - h) | 0)) | 0) >>> 0 - ? (g + 1) | 0 - : g), - (h = jn(Lo, mo, 666643, 0)), - (d = (On + g) | 0), - (It = hn = (h + hn) | 0), - (g = h >>> 0 > hn >>> 0 ? (d + 1) | 0 : d), - (h = jn(Eo, Do, 666643, 0)), - (d = - (On + - ((Nt - - (((4095 & Cs) + - ((hn = -2097152 & _r) >>> 0 > Pr >>> 0)) | - 0)) | - 0)) | - 0), - (Hr = d = - h >>> 0 > (or = (h + ((Pr - hn) | 0)) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (Nt = d = (d - (((or >>> 0 < 4293918720) - 1) | 0)) | 0), - (hn = - ((2097151 & d) << 11) | - ((Ot = (or - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + g) | 0), - (g = d = - hn >>> 0 > (er = (hn + It) | 0) >>> 0 ? (d + 1) | 0 : d), - (_r = d = (d - (((er >>> 0 < 4293918720) - 1) | 0)) | 0), - (hn = - ((2097151 & d) << 11) | - ((It = (er - -1048576) | 0) >>> 21)), - (d = ((d >> 21) + jr) | 0), - (hn = - hn >>> 0 > (Lr = (hn + uo) | 0) >>> 0 ? (d + 1) | 0 : d), - (d = jn(ls, ro, 470296, 0)), - (g = (On + g) | 0), - (g = d >>> 0 > (h = (d + er) | 0) >>> 0 ? (g + 1) | 0 : g), - (er = (h - (d = -2097152 & It)) | 0), - (It = (g - (((d >>> 0 > h >>> 0) + _r) | 0)) | 0), - (h = jn(ls, ro, 666643, 0)), - (d = - (On + - ((Hr - - ((((g = -2097152 & Ot) >>> 0 > or >>> 0) + Nt) | 0)) | - 0)) | - 0), - (h = - ((g = - (d = - h >>> 0 > (Yr = (h + ((or - g) | 0)) | 0) >>> 0 - ? (d + 1) | 0 - : d) >> 21) + - It) | - 0), - (d = - ((d = - (h = - (d = ((2097151 & d) << 11) | (Yr >>> 21)) >>> 0 > - (jr = (d + er) | 0) >>> 0 - ? (h + 1) | 0 - : h) >> 21) + - hn) | - 0), - (h = - ((h = - (d = - (h = ((2097151 & h) << 11) | (jr >>> 21)) >>> 0 > - (Nt = (h + Lr) | 0) >>> 0 - ? (d + 1) | 0 - : d) >> 21) + - po) | - 0), - (g = - ((d = - (h = - (d = ((2097151 & d) << 11) | (Nt >>> 21)) >>> 0 > - (hn = (d + Jo) | 0) >>> 0 - ? (h + 1) | 0 - : h) >> 21) + - Tr) | - 0), - (d = - ((h = - (g = - (h = ((2097151 & h) << 11) | (hn >>> 21)) >>> 0 > - (_r = (h + gs) | 0) >>> 0 - ? (g + 1) | 0 - : g) >> 21) + - Os) | - 0), - (h = - ((g = - (d = - (g = ((2097151 & g) << 11) | (_r >>> 21)) >>> 0 > - (Lr = (g + Ns) | 0) >>> 0 - ? (d + 1) | 0 - : d) >> 21) + - oo) | - 0), - (d = - ((d = - (h = - (d = ((2097151 & d) << 11) | (Lr >>> 21)) >>> 0 > - (or = (d + To) | 0) >>> 0 - ? (h + 1) | 0 - : h) >> 21) + - Hs) | - 0), - (h = - ((h = - (d = - (h = ((2097151 & h) << 11) | (or >>> 21)) >>> 0 > - (Tr = (h + _a) | 0) >>> 0 - ? (d + 1) | 0 - : d) >> 21) + - ao) | - 0), - (g = - ((d = - (h = - (d = ((2097151 & d) << 11) | (Tr >>> 21)) >>> 0 > - (Hr = (d + Fs) | 0) >>> 0 - ? (h + 1) | 0 - : h) >> 21) + - tu) | - 0), - (d = - ((h = - (g = - (h = ((2097151 & h) << 11) | (Hr >>> 21)) >>> 0 > - (Ot = (h + V0) | 0) >>> 0 - ? (g + 1) | 0 - : g) >> 21) + - q0) | - 0), - (It = - ((Zr = (_e - (h = -2097152 & Zr)) | 0) + - (((2097151 & - (d = - (g = ((2097151 & g) << 11) | (Ot >>> 21)) >>> 0 > - (er = (g + G0) | 0) >>> 0 - ? (d + 1) | 0 - : d)) << - 11) | - (er >>> 21))) | - 0), - (d = - (((xr - (((h >>> 0 > _e >>> 0) + ps) | 0)) | 0) + - (d >> 21)) | - 0), - (Zr = h = (d = It >>> 0 < Zr >>> 0 ? (d + 1) | 0 : d) >> 21), - (Yr = - ((d = jn( - (oo = ((2097151 & d) << 11) | (It >>> 21)), - h, - 666643, - 0, - )) + - (h = 2097151 & Yr)) | - 0), - (d = On), - (_e = d = h >>> 0 > Yr >>> 0 ? (d + 1) | 0 : d), - (pn[0 | on] = Yr), - (pn[(on + 1) | 0] = ((255 & d) << 24) | (Yr >>> 8)), - (d = 2097151 & jr), - (h = (jn(oo, Zr, 470296, 0) + d) | 0), - (g = On), - (d = - ((_e >> 21) + (d >>> 0 > h >>> 0 ? (g + 1) | 0 : g)) | 0), - (d = - (xr = ((2097151 & _e) << 11) | (Yr >>> 21)) >>> 0 > - (jr = (xr + h) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (pn[(on + 4) | 0] = ((2047 & d) << 21) | (jr >>> 11)), - (h = d), - (g = jr), - (pn[(on + 3) | 0] = ((7 & d) << 29) | (g >>> 3)), - (pn[(on + 2) | 0] = - (31 & (((65535 & _e) << 16) | (Yr >>> 16))) | (g << 5)), - (_e = 2097151 & Nt), - (Nt = (jn(oo, Zr, 654183, 0) + _e) | 0), - (d = On), - (jr = ((2097151 & h) << 11) | (g >>> 21)), - (h = - ((h >> 21) + (_e = _e >>> 0 > Nt >>> 0 ? (d + 1) | 0 : d)) | - 0), - (d = h = - (Nt = (jr + Nt) | 0) >>> 0 < jr >>> 0 ? (h + 1) | 0 : h), - (pn[(on + 6) | 0] = ((63 & d) << 26) | (Nt >>> 6)), - (_e = Nt), - (Nt = 0), - (pn[(on + 5) | 0] = - (Nt << 13) | ((1572864 & g) >>> 19) | (_e << 2)), - (g = 2097151 & hn), - (hn = (jn(oo, Zr, -997805, -1) + g) | 0), - (h = On), - (h = g >>> 0 > hn >>> 0 ? (h + 1) | 0 : h), - (Nt = ((2097151 & (g = d)) << 11) | (_e >>> 21)), - (g = ((d >>= 21) + h) | 0), - (g = (hn = (Nt + hn) | 0) >>> 0 < Nt >>> 0 ? (g + 1) | 0 : g), - (pn[(on + 9) | 0] = ((511 & g) << 23) | (hn >>> 9)), - (pn[(on + 8) | 0] = ((1 & g) << 31) | (hn >>> 1)), - (h = 0), - (pn[(on + 7) | 0] = - (h << 18) | ((2080768 & _e) >>> 14) | (hn << 7)), - (h = 2097151 & _r), - (_e = (jn(oo, Zr, 136657, 0) + h) | 0), - (d = On), - (d = h >>> 0 > _e >>> 0 ? (d + 1) | 0 : d), - (_r = ((2097151 & (h = g)) << 11) | (hn >>> 21)), - (h = (d + (g = h >> 21)) | 0), - (h = (_e = (_r + _e) | 0) >>> 0 < _r >>> 0 ? (h + 1) | 0 : h), - (pn[(on + 12) | 0] = ((4095 & h) << 20) | (_e >>> 12)), - (g = _e), - (pn[(on + 11) | 0] = ((15 & h) << 28) | (g >>> 4)), - (_e = 0), - (pn[(on + 10) | 0] = - (_e << 15) | ((1966080 & hn) >>> 17) | (g << 4)), - (_e = 2097151 & Lr), - (hn = (jn(oo, Zr, -683901, -1) + _e) | 0), - (d = On), - (d = _e >>> 0 > hn >>> 0 ? (d + 1) | 0 : d), - (_e = h), - (h = (d + (h >>= 21)) | 0), - (h = - (_e = - ((Lr = hn) + (hn = ((2097151 & _e) << 11) | (g >>> 21))) | - 0) >>> - 0 < - hn >>> 0 - ? (h + 1) | 0 - : h), - (pn[(on + 14) | 0] = ((127 & h) << 25) | (_e >>> 7)), - (hn = 0), - (pn[(on + 13) | 0] = - (hn << 12) | ((1048576 & g) >>> 20) | (_e << 1)), - (d = h >> 21), - (g = - (h = ((2097151 & h) << 11) | (_e >>> 21)) >>> 0 > - (hn = (h + (2097151 & or)) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (pn[(on + 17) | 0] = ((1023 & g) << 22) | (hn >>> 10)), - (pn[(on + 16) | 0] = ((3 & g) << 30) | (hn >>> 2)), - (h = 0), - (pn[(on + 15) | 0] = - (h << 17) | ((2064384 & _e) >>> 15) | (hn << 6)), - (d = g >> 21), - (d = - (h = ((2097151 & g) << 11) | (hn >>> 21)) >>> 0 > - (g = (h + (2097151 & Tr)) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (pn[(on + 20) | 0] = ((8191 & d) << 19) | (g >>> 13)), - (pn[(on + 19) | 0] = ((31 & d) << 27) | (g >>> 5)), - (_e = - ((h = 2097151 & Hr) + - (Hr = ((2097151 & d) << 11) | (g >>> 21))) | - 0), - (h = d >> 21), - (h = _e >>> 0 < Hr >>> 0 ? (h + 1) | 0 : h), - (Hr = _e), - (pn[(on + 21) | 0] = _e), - (Tr = 0), - (pn[(on + 18) | 0] = - (Tr << 14) | ((1835008 & hn) >>> 18) | (g << 3)), - (pn[(on + 22) | 0] = ((255 & h) << 24) | (_e >>> 8)), - (g = h >> 21), - (g = - (_e = - ((hn = ((2097151 & h) << 11) | (_e >>> 21)) + - (2097151 & Ot)) | - 0) >>> - 0 < - hn >>> 0 - ? (g + 1) | 0 - : g), - (pn[(on + 25) | 0] = ((2047 & g) << 21) | (_e >>> 11)), - (pn[(on + 24) | 0] = ((7 & g) << 29) | (_e >>> 3)), - (pn[(on + 23) | 0] = - (31 & (((65535 & h) << 16) | (Hr >>> 16))) | (_e << 5)), - (d = g >> 21), - (d = - (h = ((2097151 & g) << 11) | (_e >>> 21)) >>> 0 > - (g = (h + (2097151 & er)) | 0) >>> 0 - ? (d + 1) | 0 - : d), - (pn[(on + 27) | 0] = ((63 & d) << 26) | (g >>> 6)), - (hn = 0), - (pn[(on + 26) | 0] = - (hn << 13) | ((1572864 & _e) >>> 19) | (g << 2)), - (h = d >> 21), - (h = - (d = - ((_e = ((2097151 & d) << 11) | (g >>> 21)) + - (2097151 & It)) | - 0) >>> - 0 < - _e >>> 0 - ? (h + 1) | 0 - : h), - (pn[(on + 31) | 0] = ((131071 & h) << 15) | (d >>> 17)), - (pn[(on + 30) | 0] = ((511 & h) << 23) | (d >>> 9)), - (pn[(on + 29) | 0] = ((1 & h) << 31) | (d >>> 1)), - (_e = 0), - (pn[(on + 28) | 0] = - (_e << 18) | ((2080768 & g) >>> 14) | (d << 7)), - Ur(cn, 64), - Ur(j, 64), - a && ((c[a >> 2] = 64), (c[(a + 4) >> 2] = 0)), - (St = (Dn + 560) | 0), - 0 - ) - } - function Cr(d, a, h) { - var g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t, - bt, - kt, - Rt, - At, - Ct, - wt, - Tt, - Jt, - Ht, - Zt, - jt, - rr, - sr, - Qt, - Ut, - tr, - dr, - Ar, - Pt, - xt, - fr, - hr, - Er, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0, - Gr = 0, - er = 0, - or = 0, - It = 0, - Ot = 0, - Nt = 0, - _r = 0, - Pr = 0, - Lr = 0, - Tr = 0, - xr = 0, - Hr = 0, - Yr = 0, - Zr = 0, - jr = 0, - ro = 0, - oo = 0, - ao = 0, - uo = 0, - po = 0, - mo = 0, - Eo = 0, - Do = 0, - To = 0, - Lo = 0, - Jo = 0, - _a = 0, - ls = 0, - ps = 0, - gs = 0, - Cs = 0, - vs = 0, - Is = 0, - Os = 0, - ks = 0, - Ns = 0, - Fs = 0, - Js = 0, - Hs = 0, - Gs = 0, - qs = 0, - tu = 0 - ;(Xt = jn( - (g = - (((tt = rn[(h + 2) | 0]) << 16) & 2031616) | - rn[0 | h] | - (rn[(h + 1) | 0] << 8)), - 0, - (_e = - ((or = - rn[(a + 23) | 0] | - (rn[(a + 24) | 0] << 8) | - (rn[(a + 25) | 0] << 16) | - (rn[(a + 26) | 0] << 24)) >>> - 5) & - 2097151), - 0, - )), - (ft = On), - (rt = jn( - (on = - (((tt = rn[(a + 23) | 0]) << 16) & 2031616) | - rn[(a + 21) | 0] | - (rn[(a + 22) | 0] << 8)), - 0, - (hn = - ((yr = - rn[(h + 2) | 0] | - (rn[(h + 3) | 0] << 8) | - (rn[(h + 4) | 0] << 16) | - (rn[(h + 5) | 0] << 24)) >>> - 5) & - 2097151), - 0, - )), - (tt = (On + ft) | 0), - (tt = - rt >>> 0 > (Xt = (rt + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn( - (j = - ((rn[(h + 7) | 0] | - (rn[(h + 8) | 0] << 8) | - (rn[(h + 9) | 0] << 16) | - (rn[(h + 10) | 0] << 24)) >>> - 7) & - 2097151), - 0, - (cn = - ((Ot = - rn[(a + 15) | 0] | - (rn[(a + 16) | 0] << 8) | - (rn[(a + 17) | 0] << 16) | - (rn[(a + 18) | 0] << 24)) >>> - 6) & - 2097151), - 0, - )), - (rt = (On + tt) | 0), - (wr = Xt = (ft + Xt) | 0), - (ft = ft >>> 0 > Xt >>> 0 ? (rt + 1) | 0 : rt), - (rt = ((tt = rn[(a + 14) | 0]) >>> 24) | 0), - (Qr = - (tt << 8) | - ((Dr = - rn[(a + 10) | 0] | - (rn[(a + 11) | 0] << 8) | - (rn[(a + 12) | 0] << 16) | - (rn[(a + 13) | 0] << 24)) >>> - 24)), - (rt = jn( - (Dn = - 2097151 & - (((1 & - (Gr = - (tt = rt) | - (rt = ((Xt = rn[(a + 15) | 0]) >>> 16) | 0))) << - 31) | - ((tt = (Xt <<= 16) | Qr) >>> 1))), - 0, - ($n = - ((Br = - rn[(h + 10) | 0] | - (rn[(h + 11) | 0] << 8) | - (rn[(h + 12) | 0] << 16) | - (rn[(h + 13) | 0] << 24)) >>> - 4) & - 2097151), - 0, - )), - (ft = (On + ft) | 0), - (Gr = tt = (rt + wr) | 0), - (Xt = tt >>> 0 < rt >>> 0 ? (ft + 1) | 0 : ft), - (ft = ((rt = rn[(h + 6) | 0]) >>> 24) | 0), - (wr = (rt << 8) | (yr >>> 24)), - (yr = wn = - 2097151 & - (((3 & (ft |= rt = ((tt = rn[(h + 7) | 0]) >>> 16) | 0)) << - 30) | - ((tt = wr | (tt << 16)) >>> 2))), - (wr = 0), - (Qr = ((tt = rn[(a + 19) | 0]) << 8) | (Ot >>> 24)), - (ft = rt = (tt >>> 24) | 0), - (tt = ((rt = rn[(a + 20) | 0]) >>> 16) | 0), - (Rt = ft = ((tt |= ft) >>> 3) | 0), - (rt = jn( - yr, - wr, - (Un = ((7 & tt) << 29) | ((rt = (rt << 16) | Qr) >>> 3)), - ft, - )), - (tt = (On + Xt) | 0), - (tt = - rt >>> 0 > (Qr = (rt + Gr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn( - (Yn = - ((yr = - rn[(h + 15) | 0] | - (rn[(h + 16) | 0] << 8) | - (rn[(h + 17) | 0] << 16) | - (rn[(h + 18) | 0] << 24)) >>> - 6) & - 2097151), - 0, - (et = - ((rn[(a + 7) | 0] | - (rn[(a + 8) | 0] << 8) | - (rn[(a + 9) | 0] << 16) | - (rn[(a + 10) | 0] << 24)) >>> - 7) & - 2097151), - 0, - )), - (rt = (On + tt) | 0), - (wr = Xt = (ft + Qr) | 0), - (Xt = ft >>> 0 > Xt >>> 0 ? (rt + 1) | 0 : rt), - (Qr = ((tt = rn[(h + 14) | 0]) << 8) | (Br >>> 24)), - (tt = rt = (tt >>> 24) | 0), - (ft = ((rt = rn[(h + 15) | 0]) >>> 16) | 0), - (rt = jn( - (nt = - 2097151 & - (((1 & (ft |= tt)) << 31) | - ((tt = (rt <<= 16) | Qr) >>> 1))), - 0, - (at = (Dr >>> 4) & 2097151), - 0, - )), - (tt = (On + Xt) | 0), - (Br = ft = (rt + wr) | 0), - (wr = rt >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (tt = ((rt = rn[(h + 19) | 0]) >>> 24) | 0), - (Xt = (rt << 8) | (yr >>> 24)), - (ft = ((rt = rn[(h + 20) | 0]) >>> 16) | 0), - (pt = - ((7 & (ft |= tt)) << 29) | ((rt = Xt | (rt << 16)) >>> 3)), - (Hr = tt = (ft >>> 3) | 0), - (Xt = tt), - (tt = ((rt = rn[(a + 6) | 0]) >>> 24) | 0), - (yr = - (rt << 8) | - ((Gr = - rn[(a + 2) | 0] | - (rn[(a + 3) | 0] << 8) | - (rn[(a + 4) | 0] << 16) | - (rn[(a + 5) | 0] << 24)) >>> - 24)), - (ft = tt), - (tt = ((rt = rn[(a + 7) | 0]) >>> 16) | 0), - (tt = jn( - pt, - Xt, - (gt = - 2097151 & - (((3 & (tt |= ft)) << 30) | - ((rt = (rt << 16) | yr) >>> 2))), - 0, - )), - (rt = (On + wr) | 0), - (ft = - tt >>> 0 > (Xt = (tt + Br) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (tt = jn( - (mt = - (((tt = rn[(h + 23) | 0]) << 16) & 2031616) | - rn[(h + 21) | 0] | - (rn[(h + 22) | 0] << 8)), - 0, - (yt = (Gr >>> 5) & 2097151), - 0, - )), - (rt = (On + ft) | 0), - (ft = - tt >>> 0 > (Xt = (tt + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (rt = jn( - (_t = - (((tt = rn[(a + 2) | 0]) << 16) & 2031616) | - rn[0 | a] | - (rn[(a + 1) | 0] << 8)), - 0, - (ro = - ((Gr = - rn[(h + 23) | 0] | - (rn[(h + 24) | 0] << 8) | - (rn[(h + 25) | 0] << 16) | - (rn[(h + 26) | 0] << 24)) >>> - 5) & - 2097151), - 0, - )), - (tt = (On + ft) | 0), - (yr = Xt = (rt + Xt) | 0), - (wr = rt >>> 0 > Xt >>> 0 ? (tt + 1) | 0 : tt), - (rt = jn(on, 0, g, 0)), - (tt = On), - (Xt = ((ft = rt) + (rt = jn(Un, Rt, hn, 0))) | 0), - (ft = (On + tt) | 0), - (ft = rt >>> 0 > Xt >>> 0 ? (ft + 1) | 0 : ft), - (rt = jn(j, 0, Dn, 0)), - (tt = (On + ft) | 0), - (tt = - rt >>> 0 > (Xt = (rt + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn($n, 0, at, 0)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (tt = jn(cn, 0, wn, 0)), - (rt = (On + rt) | 0), - (rt = - tt >>> 0 > (ft = (tt + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Xt = ((tt = ft) + (ft = jn(Yn, 0, gt, 0))) | 0), - (tt = (On + rt) | 0), - (tt = ft >>> 0 > Xt >>> 0 ? (tt + 1) | 0 : tt), - (rt = jn(nt, 0, et, 0)), - (ft = (On + tt) | 0), - (ft = - rt >>> 0 > (Xt = (rt + Xt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (Xt = ((rt = jn(pt, Hr, yt, 0)) + Xt) | 0), - (tt = (On + ft) | 0), - (ft = jn(mt, 0, _t, 0)), - (rt = (On + (rt >>> 0 > Xt >>> 0 ? (tt + 1) | 0 : tt)) | 0), - (Xt = rt = - ft >>> 0 > (Qr = (ft + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Nt = rt = (rt - (((Qr >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((tt = (rt >>> 21) | 0) + wr) | 0), - (_r = ft = - ((tt = - (rt = - ((2097151 & rt) << 11) | - ((Lr = (Qr - -1048576) | 0) >>> 21)) >>> - 0 > - (yr = (rt + yr) | 0) >>> 0 - ? (tt + 1) | 0 - : tt) - - (((yr >>> 0 < 4293918720) - 1) | 0)) | - 0), - (It = - (yr - (rt = -2097152 & (Tr = (yr - -1048576) | 0))) | 0), - (er = (tt - (((rt >>> 0 > yr >>> 0) + ft) | 0)) | 0), - (wr = ((tt = rn[(h + 27) | 0]) << 8) | (Gr >>> 24)), - (ft = rt = (tt >>> 24) | 0), - (yr = jn( - (bt = - 2097151 & - (((3 & - (ft |= tt = ((rt = rn[(h + 28) | 0]) >>> 16) | 0)) << - 30) | - ((tt = (rt <<= 16) | wr) >>> 2))), - 0, - (ao = - ((rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)) >>> - 7) | - 0), - 0, - )), - (wr = On), - (tt = ((rt = rn[(a + 27) | 0]) >>> 24) | 0), - (a = jn( - (kt = - 2097151 & - (((3 & - (tt |= ft = ((a = rn[(a + 28) | 0]) >>> 16) | 0)) << - 30) | - ((rt = (rt << 8) | (or >>> 24) | (a << 16)) >>> 2))), - 0, - (uo = - ((rn[(h + 28) | 0] | - (rn[(h + 29) | 0] << 8) | - (rn[(h + 30) | 0] << 16) | - (rn[(h + 31) | 0] << 24)) >>> - 7) | - 0), - 0, - )), - (rt = (On + wr) | 0), - (rt = a >>> 0 > (h = (a + yr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = h), - (a = jn(_e, 0, uo, 0)), - (h = On), - (wr = ((tt = a) + (a = jn(ro, 0, ao, 0))) | 0), - (tt = (On + h) | 0), - (tt = a >>> 0 > wr >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(bt, 0, kt, 0)), - (tt = (On + tt) | 0), - (wr = tt = - a >>> 0 > (Gr = (a + wr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Br = a = (tt - (((Gr >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = (a >>> 21) | 0), - (yr = - ((a = - ((2097151 & a) << 11) | - ((h = (Gr - -1048576) | 0) >>> 21)) + - ft) | - 0), - (ft = (tt + rt) | 0), - (Ot = tt = - ((ft = a >>> 0 > yr >>> 0 ? (ft + 1) | 0 : ft) - - (((yr >>> 0 < 4293918720) - 1) | 0)) | - 0), - (a = (yr - (rt = -2097152 & (Dr = (yr - -1048576) | 0))) | 0), - (Ct = rt = - (ft - (((131071 & tt) + (rt >>> 0 > yr >>> 0)) | 0)) | 0), - (wt = a), - (a = jn(a, rt, 666643, 0)), - (rt = (On + er) | 0), - (mo = tt = (a + It) | 0), - (yr = a >>> 0 > tt >>> 0 ? (rt + 1) | 0 : rt), - (It = (Gr - (a = -2097152 & h)) | 0), - (Zr = - (wr - (((131071 & Br) + (a >>> 0 > Gr >>> 0)) | 0)) | 0), - (a = jn(mt, 0, ao, 0)), - (h = On), - (tt = ((rt = a) + (a = jn(ro, 0, kt, 0))) | 0), - (rt = (On + h) | 0), - (rt = a >>> 0 > tt >>> 0 ? (rt + 1) | 0 : rt), - (h = ((a = jn(on, 0, uo, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (tt = a >>> 0 > h >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(_e, 0, bt, 0)), - (rt = (On + tt) | 0), - (Br = h = (a + h) | 0), - (a = a >>> 0 > h >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(_e, 0, ro, 0)), - (rt = On), - (ft = ((tt = h) + (h = jn(pt, Hr, ao, 0))) | 0), - (tt = (On + rt) | 0), - (tt = h >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (rt = ((h = jn(mt, 0, kt, 0)) + ft) | 0), - (ft = (On + tt) | 0), - (ft = h >>> 0 > rt >>> 0 ? (ft + 1) | 0 : ft), - (tt = ((h = jn(Un, Rt, uo, 0)) + rt) | 0), - (rt = (On + ft) | 0), - (rt = h >>> 0 > tt >>> 0 ? (rt + 1) | 0 : rt), - (er = ((h = jn(on, 0, bt, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (Gr = tt = h >>> 0 > er >>> 0 ? (tt + 1) | 0 : tt), - (Pr = h = (tt - (((er >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = (a + (rt = (h >>> 21) | 0)) | 0), - (h = tt = - (h = - ((2097151 & h) << 11) | - ((wr = (er - -1048576) | 0) >>> 21)) >>> - 0 > - (Br = (h + Br) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (or = tt = (tt - (((Br >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = It), - (It = - ((2097151 & tt) << 11) | - ((a = (Br - -1048576) | 0) >>> 21)), - (tt = (((tt >>> 21) | 0) + Zr) | 0), - (Tt = tt = - (ft = (rt + It) | 0) >>> 0 < It >>> 0 ? (tt + 1) | 0 : tt), - (Jt = a = (Br - (rt = -2097152 & a)) | 0), - (Ht = Br = (h - (((rt >>> 0 > Br >>> 0) + or) | 0)) | 0), - (Zt = ft), - (h = jn(ft, tt, 470296, 0)), - (rt = (On + yr) | 0), - (rt = - h >>> 0 > (tt = (h + mo) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(a, Br, 654183, 0)), - (ft = (On + rt) | 0), - (Zr = h = (a + tt) | 0), - (yr = a >>> 0 > h >>> 0 ? (ft + 1) | 0 : ft), - (or = (er - (a = -2097152 & wr)) | 0), - (er = (Gr - (((a >>> 0 > er >>> 0) + Pr) | 0)) | 0), - (a = jn(pt, Hr, kt, 0)), - (h = On), - (tt = ((rt = a) + (a = jn(Yn, 0, ao, 0))) | 0), - (rt = (On + h) | 0), - (rt = a >>> 0 > tt >>> 0 ? (rt + 1) | 0 : rt), - (h = ((a = jn(on, 0, ro, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (tt = a >>> 0 > h >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(_e, 0, mt, 0)), - (ft = (On + tt) | 0), - (ft = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (a = jn(cn, 0, uo, 0)), - (rt = (On + ft) | 0), - (rt = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(Un, Rt, bt, 0)), - (tt = (On + rt) | 0), - (Gr = h = (a + h) | 0), - (wr = a >>> 0 > h >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(nt, 0, ao, 0)), - (h = On), - (tt = ((rt = a) + (a = jn(Yn, 0, kt, 0))) | 0), - (rt = (On + h) | 0), - (rt = a >>> 0 > tt >>> 0 ? (rt + 1) | 0 : rt), - (h = ((a = jn(_e, 0, pt, Hr)) + tt) | 0), - (tt = (On + rt) | 0), - (tt = a >>> 0 > h >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(Un, Rt, ro, 0)), - (ft = (On + tt) | 0), - (ft = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (a = jn(on, 0, mt, 0)), - (rt = (On + ft) | 0), - (rt = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(Dn, 0, uo, 0)), - (tt = (On + rt) | 0), - (tt = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(cn, 0, bt, 0)), - (rt = (On + tt) | 0), - (a = rt = - a >>> 0 > (h = (a + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Yr = rt = (rt - (((h >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = ((tt = (rt >>> 21) | 0) + wr) | 0), - (It = ft = - (rt = - ((2097151 & rt) << 11) | - ((Pr = (h - -1048576) | 0) >>> 21)) >>> - 0 > - (jr = (rt + Gr) | 0) >>> 0 - ? (ft + 1) | 0 - : ft), - (Cs = rt = (ft - (((jr >>> 0 < 4293918720) - 1) | 0)) | 0), - (wr = - ((2097151 & rt) << 11) | - ((Br = (jr - -1048576) | 0) >>> 21)), - (rt = (((rt >>> 21) | 0) + er) | 0), - (jt = rt = - (ft = (wr + or) | 0) >>> 0 < wr >>> 0 ? (rt + 1) | 0 : rt), - (rr = ft), - (rt = jn(ft, rt, -997805, -1)), - (tt = (On + yr) | 0), - (er = ft = (rt + Zr) | 0), - (yr = rt >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (wr = Qr), - (Qr = Xt), - (rt = jn(g, 0, Un, Rt)), - (tt = On), - (Xt = ((ft = rt) + (rt = jn(cn, 0, hn, 0))) | 0), - (ft = (On + tt) | 0), - (ft = rt >>> 0 > Xt >>> 0 ? (ft + 1) | 0 : ft), - (tt = jn(j, 0, at, 0)), - (rt = (On + ft) | 0), - (rt = - tt >>> 0 > (Xt = (tt + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn($n, 0, et, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(Dn, 0, wn, 0)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(Yn, 0, yt, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (rt = jn(nt, 0, gt, 0)), - (ft = (On + tt) | 0), - (ft = - rt >>> 0 > (Xt = (rt + Xt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (tt = jn(pt, Hr, _t, 0)), - (rt = (On + ft) | 0), - (Gr = Xt = (tt + Xt) | 0), - (Xt = tt >>> 0 > Xt >>> 0 ? (rt + 1) | 0 : rt), - (rt = jn(g, 0, cn, 0)), - (tt = On), - (ft = rt), - (rt = jn(Dn, 0, hn, 0)), - (tt = (On + tt) | 0), - (tt = - rt >>> 0 > (ft = (ft + rt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (or = ((rt = ft) + (ft = jn(j, 0, et, 0))) | 0), - (rt = (On + tt) | 0), - (rt = ft >>> 0 > or >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn($n, 0, gt, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (or = (ft + or) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (rt = jn(wn, 0, at, 0)), - (ft = (On + tt) | 0), - (ft = - rt >>> 0 > (or = (rt + or) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (or = ((tt = jn(Yn, 0, _t, 0)) + or) | 0), - (rt = (On + ft) | 0), - (ft = jn(nt, 0, yt, 0)), - (tt = (On + (tt >>> 0 > or >>> 0 ? (rt + 1) | 0 : rt)) | 0), - (Lo = tt = - ft >>> 0 > (To = (ft + or) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Fs = tt = (tt - (((To >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = - ((2097151 & tt) << 11) | - ((Do = (To - -1048576) | 0) >>> 21)), - (tt = (((tt >>> 21) | 0) + Xt) | 0), - (xr = tt = - ft >>> 0 > (Jo = (ft + Gr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Js = tt = (tt - (((Jo >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = - ((2097151 & tt) << 11) | - ((mo = (Jo - -1048576) | 0) >>> 21)), - (tt = (((tt >>> 21) | 0) + Qr) | 0), - (tt = - ft >>> 0 > (wr = (ft + wr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (rt = jn(Zt, Tt, 666643, 0)), - (tt = - (On + - ((tt - - ((((ft = -2097152 & Lr) >>> 0 > wr >>> 0) + Nt) | 0)) | - 0)) | - 0), - (tt = - rt >>> 0 > (Xt = (rt + ((wr - ft) | 0)) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (ft = jn(Jt, Ht, 470296, 0)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(rr, jt, 654183, 0)), - (tt = (On + rt) | 0), - (Zr = tt = - ft >>> 0 > (oo = (ft + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Os = tt = (tt - (((oo >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((rt = tt >> 21) + yr) | 0), - (er = rt = - (tt = - ((2097151 & tt) << 11) | - ((or = (oo - -1048576) | 0) >>> 21)) >>> - 0 > - (Nt = (tt + er) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (_a = tt = (rt - (((Nt >>> 0 < 4293918720) - 1) | 0)) | 0), - (vs = - ((2097151 & tt) << 11) | - ((Lr = (Nt - -1048576) | 0) >>> 21)), - (Gr = tt >> 21), - (rt = jn(g, 0, kt, 0)), - (tt = On), - (ft = rt), - (rt = jn(_e, 0, hn, 0)), - (tt = (On + tt) | 0), - (tt = - rt >>> 0 > (ft = (ft + rt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Xt = ((rt = jn(j, 0, Un, Rt)) + ft) | 0), - (ft = (On + tt) | 0), - (ft = rt >>> 0 > Xt >>> 0 ? (ft + 1) | 0 : ft), - (tt = jn(cn, 0, $n, 0)), - (rt = (On + ft) | 0), - (rt = - tt >>> 0 > (Xt = (tt + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(on, 0, wn, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(Yn, 0, at, 0)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(Dn, 0, nt, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (rt = jn(et, 0, pt, Hr)), - (ft = (On + tt) | 0), - (ft = - rt >>> 0 > (Xt = (rt + Xt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (tt = jn(yt, 0, ro, 0)), - (rt = (On + ft) | 0), - (rt = - tt >>> 0 > (Xt = (tt + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(gt, 0, mt, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (Xt = (ft + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = ((rt = Xt) + (Xt = jn(bt, 0, _t, 0))) | 0), - (rt = (On + tt) | 0), - (yr = ft), - (wr = ft >>> 0 < Xt >>> 0 ? (rt + 1) | 0 : rt), - (Eo = jn(ao, 0, uo, 0)), - (Qr = ft = - ((ls = On) - (((Eo >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = - (Eo - (rt = -2097152 & (Xt = (Eo - -1048576) | 0))) | 0), - (rt = - (((Ot >>> 21) | 0) + - (rt = - (ls - (((524287 & ft) + (rt >>> 0 > Eo >>> 0)) | 0)) | - 0)) | - 0), - (sr = rt = - (ft = - ((Dr = ((2097151 & Ot) << 11) | (Dr >>> 21)) + tt) | - 0) >>> - 0 < - Dr >>> 0 - ? (rt + 1) | 0 - : rt), - (Qt = ft), - (tt = ((2097151 & _r) << 11) | (Tr >>> 21)), - (Dr = (jn(ft, rt, 666643, 0) + tt) | 0), - (rt = (On + ((_r >>> 21) | 0)) | 0), - (rt = tt >>> 0 > Dr >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(wt, Ct, 470296, 0)), - (tt = (On + rt) | 0), - (tt = - ((ft >>> 0 > (Dr = (ft + Dr) | 0) >>> 0 - ? (tt + 1) | 0 - : tt) + - wr) | - 0), - (tt = - (rt = (yr + Dr) | 0) >>> 0 < Dr >>> 0 ? (tt + 1) | 0 : tt), - (Dr = ((ft = jn(Zt, Tt, 654183, 0)) + rt) | 0), - (rt = (On + tt) | 0), - (Is = (yr - -1048576) | 0), - (Eo = wr = (wr - (((yr >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = jn(Jt, Ht, -997805, -1)), - (ft = (On + (ft >>> 0 > Dr >>> 0 ? (rt + 1) | 0 : rt)) | 0), - (ft = - tt >>> 0 > (yr = (tt + Dr) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (Tr = - ((rt = jn(rr, jt, 136657, 0)) + - ((yr - (tt = -2097152 & Is)) | 0)) | - 0), - (tt = - (On + ((ft - (((tt >>> 0 > yr >>> 0) + wr) | 0)) | 0)) | 0), - (ft = - ((Ot = rt >>> 0 > Tr >>> 0 ? (tt + 1) | 0 : tt) + Gr) | 0), - (ps = rt = (Tr + vs) | 0), - (Dr = ft = rt >>> 0 < Tr >>> 0 ? (ft + 1) | 0 : ft), - (ls = (jr - (rt = -2097152 & Br)) | 0), - (jr = (It - (((rt >>> 0 > jr >>> 0) + Cs) | 0)) | 0), - (Ut = ft = (Qr >>> 21) | 0), - (tt = - ((rt = h) + - (h = jn( - (At = ((2097151 & Qr) << 11) | (Xt >>> 21)), - ft, - -683901, - -1, - ))) | - 0), - (rt = (On + a) | 0), - (It = (tt - (a = -2097152 & Pr)) | 0), - (_r = - ((h >>> 0 > tt >>> 0 ? (rt + 1) | 0 : rt) - - (((a >>> 0 > tt >>> 0) + Yr) | 0)) | - 0), - (a = jn(_e, 0, Yn, 0)), - (h = On), - (rt = a), - (a = jn($n, 0, ao, 0)), - (tt = (On + h) | 0), - (tt = - a >>> 0 > (rt = (rt + a) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(nt, 0, kt, 0)), - (ft = (On + tt) | 0), - (ft = a >>> 0 > (h = (a + rt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (a = jn(on, 0, pt, Hr)), - (rt = (On + ft) | 0), - (rt = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(cn, 0, ro, 0)), - (rt = (On + rt) | 0), - (rt = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(Un, Rt, mt, 0)), - (tt = (On + rt) | 0), - (tt = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(at, 0, uo, 0)), - (tt = (On + tt) | 0), - (tt = a >>> 0 > (h = (a + h) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(Dn, 0, bt, 0)), - (ft = (On + tt) | 0), - (Xt = h = (a + h) | 0), - (a = a >>> 0 > h >>> 0 ? (ft + 1) | 0 : ft), - (h = jn($n, 0, kt, 0)), - (rt = On), - (tt = h), - (h = jn(j, 0, ao, 0)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (tt = (tt + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(on, 0, Yn, 0)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (tt = (h + tt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = ((h = jn(_e, 0, nt, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (tt = h >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (h = jn(Un, Rt, pt, Hr)), - (tt = (On + tt) | 0), - (tt = - h >>> 0 > (rt = (h + ft) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (h = jn(Dn, 0, ro, 0)), - (ft = (On + tt) | 0), - (ft = - h >>> 0 > (rt = (h + rt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (tt = ((h = jn(cn, 0, mt, 0)) + rt) | 0), - (rt = (On + ft) | 0), - (rt = h >>> 0 > tt >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(et, 0, uo, 0)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (tt = (h + tt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Br = ((h = jn(at, 0, bt, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (Gr = tt = h >>> 0 > Br >>> 0 ? (tt + 1) | 0 : tt), - (gs = h = (tt - (((Br >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = (a + (rt = (h >>> 21) | 0)) | 0), - (wr = ft = - (h = - ((2097151 & h) << 11) | - ((yr = (Br - -1048576) | 0) >>> 21)) >>> - 0 > - (Pr = (h + Xt) | 0) >>> 0 - ? (ft + 1) | 0 - : ft), - (Yr = a = (ft - (((Pr >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((rt = (a >>> 21) | 0) + _r) | 0), - (Xt = tt = - (a = - ((2097151 & a) << 11) | - ((Qr = (Pr - -1048576) | 0) >>> 21)) >>> - 0 > - (It = (a + It) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (_r = h = (tt - (((It >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = ((rt = h >> 21) + jr) | 0), - (tr = ft = - (h = - ((tt = - ((2097151 & h) << 11) | - ((a = (It - -1048576) | 0) >>> 21)) + - ls) | - 0) >>> - 0 < - tt >>> 0 - ? (ft + 1) | 0 - : ft), - (Cs = (Tr - -1048576) | 0), - (vs = tt = (Ot - (((Tr >>> 0 < 4293918720) - 1) | 0)) | 0), - (ks = h), - (h = jn(h, ft, -683901, -1)), - (rt = (On + Dr) | 0), - (ls = rt = - ((tt = - ((rt = - h >>> 0 > (ft = (h + ps) | 0) >>> 0 - ? (rt + 1) | 0 - : rt) - - ((((h = -2097152 & Cs) >>> 0 > ft >>> 0) + tt) | 0)) | - 0) - - ((((Dr = (ft - h) | 0) >>> 0 < 4293918720) - 1) | 0)) | - 0), - (Pt = (Dr - (h = -2097152 & (jr = (Dr - -1048576) | 0))) | 0), - (Hs = (tt - (((h >>> 0 > Dr >>> 0) + rt) | 0)) | 0), - (h = jn(ks, tr, 136657, 0)), - (tt = - (On + - ((er - - ((((rt = -2097152 & Lr) >>> 0 > Nt >>> 0) + _a) | 0)) | - 0)) | - 0), - (Ns = ft = (h + ((Nt - rt) | 0)) | 0), - (h = h >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (po = (It - (a &= -2097152)) | 0), - (Lr = (Xt - (((a >>> 0 > It >>> 0) + _r) | 0)) | 0), - (a = jn(Qt, sr, -683901, -1)), - (rt = On), - (tt = a), - (a = jn(At, Ut, 136657, 0)), - (rt = (On + rt) | 0), - (tt = - (wr + - (a >>> 0 > (ft = (tt + a) | 0) >>> 0 - ? (rt + 1) | 0 - : rt)) | - 0), - (Ot = ((rt = (ft + Pr) | 0) - (a = -2097152 & Qr)) | 0), - (Dr = - ((tt = rt >>> 0 < Pr >>> 0 ? (tt + 1) | 0 : tt) - - (((a >>> 0 > rt >>> 0) + Yr) | 0)) | - 0), - (a = jn(At, Ut, -997805, -1)), - (rt = (On + Gr) | 0), - (rt = - a >>> 0 > (tt = (a + Br) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(Qt, sr, 136657, 0)), - (rt = (On + rt) | 0), - (rt = - a >>> 0 > (tt = (a + tt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = ((a = jn(wt, Ct, -683901, -1)) + tt) | 0), - (tt = (On + rt) | 0), - (tt = a >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (wr = (ft - (a = -2097152 & yr)) | 0), - (Qr = (tt - (((a >>> 0 > ft >>> 0) + gs) | 0)) | 0), - (a = jn(_e, 0, $n, 0)), - (rt = On), - (ft = ((tt = a) + (a = jn(j, 0, kt, 0))) | 0), - (tt = (On + rt) | 0), - (tt = a >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(wn, 0, ao, 0)), - (rt = (On + tt) | 0), - (rt = - a >>> 0 > (ft = (a + ft) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(Yn, 0, Un, Rt)), - (tt = (On + rt) | 0), - (tt = - a >>> 0 > (ft = (a + ft) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(on, 0, nt, 0)), - (rt = (On + tt) | 0), - (rt = - a >>> 0 > (ft = (a + ft) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (tt = ((a = jn(cn, 0, pt, Hr)) + ft) | 0), - (ft = (On + rt) | 0), - (ft = a >>> 0 > tt >>> 0 ? (ft + 1) | 0 : ft), - (rt = ((a = jn(at, 0, ro, 0)) + tt) | 0), - (tt = (On + ft) | 0), - (tt = a >>> 0 > rt >>> 0 ? (tt + 1) | 0 : tt), - (ft = ((a = jn(Dn, 0, mt, 0)) + rt) | 0), - (rt = (On + tt) | 0), - (rt = a >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(gt, 0, uo, 0)), - (tt = (On + rt) | 0), - (tt = - a >>> 0 > (ft = (a + ft) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(et, 0, bt, 0)), - (rt = (On + tt) | 0), - (Xt = ft = (a + ft) | 0), - (a = a >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt), - (rt = jn(_e, 0, j, 0)), - (tt = On), - (yr = ((ft = rt) + (rt = jn(hn, 0, ao, 0))) | 0), - (ft = (On + tt) | 0), - (ft = rt >>> 0 > yr >>> 0 ? (ft + 1) | 0 : ft), - (rt = jn(on, 0, $n, 0)), - (tt = (On + ft) | 0), - (tt = - rt >>> 0 > (yr = (rt + yr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(wn, 0, kt, 0)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (yr = (ft + yr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(cn, 0, Yn, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (yr = (ft + yr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(Un, Rt, nt, 0)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (yr = (ft + yr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (tt = jn(Dn, 0, pt, Hr)), - (ft = (On + rt) | 0), - (ft = - tt >>> 0 > (yr = (tt + yr) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (rt = jn(et, 0, ro, 0)), - (tt = (On + ft) | 0), - (tt = - rt >>> 0 > (yr = (rt + yr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(at, 0, mt, 0)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (yr = (ft + yr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(yt, 0, uo, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (yr = (ft + yr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(gt, 0, bt, 0)), - (rt = (On + tt) | 0), - (Nt = rt = - ft >>> 0 > (_a = (ft + yr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (xt = rt = (rt - (((_a >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = (a + (tt = (rt >>> 21) | 0)) | 0), - (Tr = tt = - (rt = - ((2097151 & rt) << 11) | - ((_r = (_a - -1048576) | 0) >>> 21)) >>> - 0 > - (ps = (rt + Xt) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (fr = a = (tt - (((ps >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((tt = (a >>> 21) | 0) + Qr) | 0), - (It = rt = - (a = - ((2097151 & a) << 11) | - ((Pr = (ps - -1048576) | 0) >>> 21)) >>> - 0 > - (gs = (a + wr) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (hr = a = (rt - (((gs >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((tt = a >> 21) + Dr) | 0), - (Gr = tt = - (a = - ((2097151 & a) << 11) | - ((er = (gs - -1048576) | 0) >>> 21)) >>> - 0 > - (Yr = (a + Ot) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (Gs = a = (tt - (((Yr >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((tt = a >> 21) + Lr) | 0), - (dr = rt = - (a = - ((ft = - ((2097151 & a) << 11) | - ((Xt = (Yr - -1048576) | 0) >>> 21)) + - po) | - 0) >>> - 0 < - ft >>> 0 - ? (rt + 1) | 0 - : rt), - (po = a), - (a = jn(a, rt, -683901, -1)), - (ft = (On + h) | 0), - (qs = rt = (a + Ns) | 0), - (yr = a >>> 0 > rt >>> 0 ? (ft + 1) | 0 : ft), - (tu = (oo - (a = -2097152 & or)) | 0), - (Os = (Zr - (((a >>> 0 > oo >>> 0) + Os) | 0)) | 0), - (a = jn(Jt, Ht, 666643, 0)), - (rt = - (On + - ((xr - - ((((h = -2097152 & mo) >>> 0 > Jo >>> 0) + Js) | 0)) | - 0)) | - 0), - (rt = - a >>> 0 > (tt = (a + ((Jo - h) | 0)) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (h = ((a = jn(rr, jt, 470296, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (mo = h), - (h = a >>> 0 > h >>> 0 ? (tt + 1) | 0 : tt), - (Br = (To - (a = -2097152 & Do)) | 0), - (wr = (Lo - (((a >>> 0 > To >>> 0) + Fs) | 0)) | 0), - (a = jn(g, 0, Dn, 0)), - (rt = On), - (tt = a), - (a = jn(hn, 0, at, 0)), - (ft = (On + rt) | 0), - (ft = - a >>> 0 > (tt = (tt + a) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (a = jn(j, 0, gt, 0)), - (rt = (On + ft) | 0), - (rt = - a >>> 0 > (tt = (a + tt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = ((a = jn($n, 0, yt, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (tt = a >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(wn, 0, et, 0)), - (rt = (On + tt) | 0), - (rt = - a >>> 0 > (ft = (a + ft) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(nt, 0, _t, 0)), - (tt = (On + rt) | 0), - (Qr = ft = (a + ft) | 0), - (a = a >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (rt = jn(g, 0, at, 0)), - (tt = On), - (Dr = ((ft = rt) + (rt = jn(hn, 0, et, 0))) | 0), - (ft = (On + tt) | 0), - (ft = rt >>> 0 > Dr >>> 0 ? (ft + 1) | 0 : ft), - (tt = jn(j, 0, yt, 0)), - (rt = (On + ft) | 0), - (rt = - tt >>> 0 > (Dr = (tt + Dr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn($n, 0, _t, 0)), - (tt = (On + rt) | 0), - (tt = - ft >>> 0 > (Dr = (ft + Dr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(wn, 0, gt, 0)), - (rt = (On + tt) | 0), - (Zr = rt = - ft >>> 0 > (oo = (ft + Dr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Er = rt = (rt - (((oo >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = (a + (tt = (rt >>> 21) | 0)) | 0), - (Lr = ft = - (rt = - ((2097151 & rt) << 11) | - ((or = (oo - -1048576) | 0) >>> 21)) >>> - 0 > - (Lo = (rt + Qr) | 0) >>> 0 - ? (ft + 1) | 0 - : ft), - (Fs = a = (ft - (((Lo >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((tt = (a >>> 21) | 0) + wr) | 0), - (rt = - (a = - ((2097151 & a) << 11) | - ((Ot = (Lo - -1048576) | 0) >>> 21)) >>> - 0 > - (ft = (a + Br) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (a = jn(rr, jt, 666643, 0)), - (tt = (On + rt) | 0), - (Dr = tt = - a >>> 0 > (Do = (a + ft) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Js = a = (tt - (((Do >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = (h + (rt = a >> 21)) | 0), - (wr = rt = - (a = - ((2097151 & a) << 11) | - ((Br = (Do - -1048576) | 0) >>> 21)) >>> - 0 > - (xr = (a + mo) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (Ns = a = (rt - (((xr >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((rt = a >> 21) + Os) | 0), - (tt = - (a = - ((2097151 & a) << 11) | - ((Qr = (xr - -1048576) | 0) >>> 21)) >>> - 0 > - (h = (a + tu) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (a = jn(ks, tr, -997805, -1)), - (ft = (On + tt) | 0), - (ft = a >>> 0 > (rt = (a + h) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (Jo = a = (Yr - (h = -2097152 & Xt)) | 0), - (Ar = tt = (Gr - (((h >>> 0 > Yr >>> 0) + Gs) | 0)) | 0), - (Xt = ((h = jn(po, dr, 136657, 0)) + rt) | 0), - (rt = (On + ft) | 0), - (a = jn(a, tt, -683901, -1)), - (rt = (On + (h >>> 0 > Xt >>> 0 ? (rt + 1) | 0 : rt)) | 0), - (Xt = rt = - a >>> 0 > (Gr = (a + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (To = a = (rt - (((Gr >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((tt = a >> 21) + yr) | 0), - (h = rt = - (yr = mo = - ((a = - ((2097151 & a) << 11) | - ((ft = (Gr - -1048576) | 0) >>> 21)) + - qs) | - 0) >>> - 0 < - a >>> 0 - ? (rt + 1) | 0 - : rt), - (Yr = rt = (rt - (((yr >>> 0 < 4293918720) - 1) | 0)) | 0), - (mo = - ((2097151 & rt) << 11) | - ((a = (yr - -1048576) | 0) >>> 21)), - (rt = ((rt >> 21) + Hs) | 0), - (Hs = Os = (mo + Pt) | 0), - (mo = mo >>> 0 > Os >>> 0 ? (rt + 1) | 0 : rt), - (Gs = (yr - (a &= -2097152)) | 0), - (qs = (h - (((a >>> 0 > yr >>> 0) + Yr) | 0)) | 0), - (tu = (Gr - (a = -2097152 & ft)) | 0), - (Os = (Xt - (((a >>> 0 > Gr >>> 0) + To) | 0)) | 0), - (a = jn(ks, tr, 654183, 0)), - (tt = - (On + - ((wr - - ((((h = -2097152 & Qr) >>> 0 > xr >>> 0) + Ns) | 0)) | - 0)) | - 0), - (tt = - a >>> 0 > (rt = (a + ((xr - h) | 0)) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (h = ((a = jn(po, dr, -997805, -1)) + rt) | 0), - (rt = (On + tt) | 0), - (rt = a >>> 0 > h >>> 0 ? (rt + 1) | 0 : rt), - (a = jn(Jo, Ar, 136657, 0)), - (rt = (On + rt) | 0), - (Ns = h = (a + h) | 0), - (a = a >>> 0 > h >>> 0 ? (rt + 1) | 0 : rt), - (To = (gs - (h = -2097152 & er)) | 0), - (xr = (It - (((h >>> 0 > gs >>> 0) + hr) | 0)) | 0), - (h = jn(Qt, sr, -997805, -1)), - (rt = On), - (ft = ((tt = h) + (h = jn(At, Ut, 654183, 0))) | 0), - (tt = (On + rt) | 0), - (tt = h >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (h = jn(wt, Ct, 136657, 0)), - (rt = (On + tt) | 0), - (rt = - h >>> 0 > (ft = (h + ft) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(Zt, Tt, -683901, -1)), - (rt = (On + rt) | 0), - (tt = - (Tr + - (h >>> 0 > (ft = (h + ft) | 0) >>> 0 - ? (rt + 1) | 0 - : rt)) | - 0), - (er = ((rt = (ft + ps) | 0) - (h = -2097152 & Pr)) | 0), - (Tr = - ((tt = rt >>> 0 < ps >>> 0 ? (tt + 1) | 0 : tt) - - (((h >>> 0 > rt >>> 0) + fr) | 0)) | - 0), - (h = jn(Qt, sr, 654183, 0)), - (rt = On), - (ft = ((tt = h) + (h = jn(At, Ut, 470296, 0))) | 0), - (tt = (On + rt) | 0), - (tt = h >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (h = jn(wt, Ct, -997805, -1)), - (rt = (On + tt) | 0), - (tt = - (Nt + - (h >>> 0 > (ft = (h + ft) | 0) >>> 0 - ? (rt + 1) | 0 - : rt)) | - 0), - (tt = - (h = (ft + _a) | 0) >>> 0 < _a >>> 0 ? (tt + 1) | 0 : tt), - (ft = ((rt = h) + (h = jn(Zt, Tt, 136657, 0))) | 0), - (rt = (On + tt) | 0), - (rt = h >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt), - (tt = ((h = jn(Jt, Ht, -683901, -1)) + ft) | 0), - (ft = (On + rt) | 0), - (ft = h >>> 0 > tt >>> 0 ? (ft + 1) | 0 : ft), - (Qr = (tt - (h = -2097152 & _r)) | 0), - (Xt = (ft - (((h >>> 0 > tt >>> 0) + xt) | 0)) | 0), - (h = jn(g, 0, ao, 0)), - (rt = On), - (tt = h), - (h = jn(hn, 0, kt, 0)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (tt = (tt + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(on, 0, j, 0)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (tt = (h + tt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(Un, Rt, $n, 0)), - (ft = (On + rt) | 0), - (ft = - h >>> 0 > (tt = (h + tt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (rt = ((h = jn(_e, 0, wn, 0)) + tt) | 0), - (tt = (On + ft) | 0), - (tt = h >>> 0 > rt >>> 0 ? (tt + 1) | 0 : tt), - (h = jn(Yn, 0, Dn, 0)), - (tt = (On + tt) | 0), - (tt = - h >>> 0 > (rt = (h + rt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = ((h = jn(cn, 0, nt, 0)) + rt) | 0), - (rt = (On + tt) | 0), - (rt = h >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(at, 0, pt, Hr)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (tt = (h + ft) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(gt, 0, ro, 0)), - (ft = (On + rt) | 0), - (ft = - h >>> 0 > (tt = (h + tt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (rt = ((h = jn(et, 0, mt, 0)) + tt) | 0), - (tt = (On + ft) | 0), - (tt = h >>> 0 > rt >>> 0 ? (tt + 1) | 0 : tt), - (h = jn(_t, 0, uo, 0)), - (tt = (On + tt) | 0), - (tt = - h >>> 0 > (rt = (h + rt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = ((h = jn(bt, 0, yt, 0)) + rt) | 0), - (rt = (On + tt) | 0), - (rt = - (((Eo >>> 21) | 0) + - (rt = h >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt)) | - 0), - (Gr = rt = - (h = ((2097151 & Eo) << 11) | (Is >>> 21)) >>> 0 > - (Pr = (h + ft) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (_a = h = (rt - (((Pr >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((tt = (h >>> 21) | 0) + Xt) | 0), - (wr = tt = - (h = - ((2097151 & h) << 11) | - ((yr = (Pr - -1048576) | 0) >>> 21)) >>> - 0 > - (It = (h + Qr) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (Yr = h = (tt - (((It >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((tt = h >> 21) + Tr) | 0), - (Xt = rt = - (h = - ((2097151 & h) << 11) | - ((Qr = (It - -1048576) | 0) >>> 21)) >>> - 0 > - (er = (h + er) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (_r = rt = (rt - (((er >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((tt = rt >> 21) + xr) | 0), - (xr = tt = - (rt = - ((ft = - ((2097151 & rt) << 11) | - ((h = (er - -1048576) | 0) >>> 21)) + - To) | - 0) >>> - 0 < - ft >>> 0 - ? (tt + 1) | 0 - : tt), - (Is = rt), - (tt = jn(rt, tt, -683901, -1)), - (rt = (On + a) | 0), - (Tr = ft = (tt + Ns) | 0), - (a = tt >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt), - (rt = jn(ks, tr, 470296, 0)), - (ft = - (On + - ((Dr - - ((((tt = -2097152 & Br) >>> 0 > Do >>> 0) + Js) | 0)) | - 0)) | - 0), - (ft = - rt >>> 0 > (Br = (rt + ((Do - tt) | 0)) | 0) >>> 0 - ? (ft + 1) | 0 - : ft), - (rt = jn(po, dr, 654183, 0)), - (tt = (On + ft) | 0), - (tt = - rt >>> 0 > (Br = (rt + Br) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = jn(Jo, Ar, -997805, -1)), - (rt = (On + tt) | 0), - (rt = - ft >>> 0 > (Br = (ft + Br) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Eo = h = (er - (tt = -2097152 & h)) | 0), - (Hr = Xt = (Xt - (((tt >>> 0 > er >>> 0) + _r) | 0)) | 0), - (Br = ((ft = jn(Is, xr, 136657, 0)) + Br) | 0), - (tt = (On + rt) | 0), - (h = jn(h, Xt, -683901, -1)), - (ft = (On + (ft >>> 0 > Br >>> 0 ? (tt + 1) | 0 : tt)) | 0), - (Xt = ft = - h >>> 0 > (Dr = (h + Br) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (Nt = tt = (ft - (((Dr >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = - ((2097151 & tt) << 11) | - ((h = (Dr - -1048576) | 0) >>> 21)), - (tt = ((tt >> 21) + a) | 0), - (_r = ft = - ((tt = - ft >>> 0 > (Br = (ft + Tr) | 0) >>> 0 - ? (tt + 1) | 0 - : tt) - - (((Br >>> 0 < 4293918720) - 1) | 0)) | - 0), - (er = - ((2097151 & ft) << 11) | - ((a = (Br - -1048576) | 0) >>> 21)), - (ft = ((ft >> 21) + Os) | 0), - (Tr = - er >>> 0 > (ro = Tr = (er + tu) | 0) >>> 0 - ? (ft + 1) | 0 - : ft), - (ao = (Br - (a &= -2097152)) | 0), - (uo = (tt - (((a >>> 0 > Br >>> 0) + _r) | 0)) | 0), - (ps = (Dr - (a = -2097152 & h)) | 0), - (gs = (Xt - (((a >>> 0 > Dr >>> 0) + Nt) | 0)) | 0), - (a = jn(ks, tr, 666643, 0)), - (tt = - (On + - ((Lr - - ((((h = -2097152 & Ot) >>> 0 > Lo >>> 0) + Fs) | 0)) | - 0)) | - 0), - (tt = - a >>> 0 > (rt = (a + ((Lo - h) | 0)) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (a = jn(po, dr, 470296, 0)), - (ft = (On + tt) | 0), - (ft = a >>> 0 > (h = (a + rt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (a = jn(Jo, Ar, 654183, 0)), - (tt = (On + ft) | 0), - (Br = h = (a + h) | 0), - (a = a >>> 0 > h >>> 0 ? (tt + 1) | 0 : tt), - (Qr = (It - (h = -2097152 & Qr)) | 0), - (Xt = (wr - (((h >>> 0 > It >>> 0) + Yr) | 0)) | 0), - (h = jn(Qt, sr, 470296, 0)), - (rt = On), - (tt = h), - (h = jn(At, Ut, 666643, 0)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (tt = (tt + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(wt, Ct, 654183, 0)), - (ft = (On + rt) | 0), - (ft = - h >>> 0 > (tt = (h + tt) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (rt = ((h = jn(Zt, Tt, -997805, -1)) + tt) | 0), - (tt = (On + ft) | 0), - (tt = h >>> 0 > rt >>> 0 ? (tt + 1) | 0 : tt), - (h = jn(Jt, Ht, 136657, 0)), - (tt = (On + tt) | 0), - (rt = - (Gr + - (h >>> 0 > (ft = (h + rt) | 0) >>> 0 - ? (tt + 1) | 0 - : tt)) | - 0), - (rt = - (h = (ft + Pr) | 0) >>> 0 < Pr >>> 0 ? (rt + 1) | 0 : rt), - (tt = h), - (h = jn(rr, jt, -683901, -1)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (ft = (tt + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Nt = - ((h = ((2097151 & vs) << 11) | (Cs >>> 21)) + - ((ft - (tt = -2097152 & yr)) | 0)) | - 0), - (tt = - (((rt - (((tt >>> 0 > ft >>> 0) + _a) | 0)) | 0) + - (vs >> 21)) | - 0), - (It = tt = h >>> 0 > Nt >>> 0 ? (tt + 1) | 0 : tt), - (Yr = h = (tt - (((Nt >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((rt = h >> 21) + Xt) | 0), - (Cs = tt = - (h = - ((ft = - ((2097151 & h) << 11) | - ((er = (Nt - -1048576) | 0) >>> 21)) + - Qr) | - 0) >>> - 0 < - ft >>> 0 - ? (tt + 1) | 0 - : tt), - (vs = h), - (h = jn(h, tt, -683901, -1)), - (ft = (On + a) | 0), - (ft = - h >>> 0 > (rt = (h + Br) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (a = jn(Is, xr, -997805, -1)), - (tt = (On + ft) | 0), - (tt = a >>> 0 > (h = (a + rt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(Eo, Hr, 136657, 0)), - (rt = (On + tt) | 0), - (Pr = h = (a + h) | 0), - (Qr = a >>> 0 > h >>> 0 ? (rt + 1) | 0 : rt), - (yr = (oo - (a = -2097152 & or)) | 0), - (wr = (Zr - (((a >>> 0 > oo >>> 0) + Er) | 0)) | 0), - (a = jn(g, 0, et, 0)), - (h = On), - (rt = a), - (a = jn(hn, 0, gt, 0)), - (tt = (On + h) | 0), - (tt = - a >>> 0 > (rt = (rt + a) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(j, 0, _t, 0)), - (tt = (On + tt) | 0), - (tt = a >>> 0 > (h = (a + rt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(wn, 0, yt, 0)), - (rt = (On + tt) | 0), - (a = - a >>> 0 > (tt = h = (a + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(g, 0, gt, 0)), - (rt = On), - (Xt = ((ft = h) + (h = jn(hn, 0, yt, 0))) | 0), - (ft = (On + rt) | 0), - (ft = h >>> 0 > Xt >>> 0 ? (ft + 1) | 0 : ft), - (h = jn(wn, 0, _t, 0)), - (rt = (On + ft) | 0), - (h = rt = - h >>> 0 > (Xt = (h + Xt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ks = rt = (rt - (((Xt >>> 0 < 4293918720) - 1) | 0)) | 0), - (ft = (rt >>> 21) | 0), - (_r = - ((rt = - ((2097151 & rt) << 11) | - ((Lr = (Xt - -1048576) | 0) >>> 21)) + - tt) | - 0), - (tt = (a + ft) | 0), - (Ot = tt = rt >>> 0 > _r >>> 0 ? (tt + 1) | 0 : tt), - (oo = a = (tt - (((_r >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((ft = (a >>> 21) | 0) + wr) | 0), - (rt = - (a = - ((2097151 & a) << 11) | - ((Dr = (_r - -1048576) | 0) >>> 21)) >>> - 0 > - (tt = (a + yr) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (ft = ((a = jn(po, dr, 666643, 0)) + tt) | 0), - (tt = (On + rt) | 0), - (tt = a >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (a = jn(Jo, Ar, 470296, 0)), - (tt = (On + tt) | 0), - (tt = - a >>> 0 > (rt = (a + ft) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (ft = ((a = jn(vs, Cs, 136657, 0)) + rt) | 0), - (rt = (On + tt) | 0), - (rt = a >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt), - (tt = ((a = jn(Is, xr, 654183, 0)) + ft) | 0), - (ft = (On + rt) | 0), - (ft = a >>> 0 > tt >>> 0 ? (ft + 1) | 0 : ft), - (a = jn(Eo, Hr, -997805, -1)), - (rt = (On + ft) | 0), - (Gr = rt = - a >>> 0 > (Br = (a + tt) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (Lo = a = (rt - (((Br >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((ft = a >> 21) + Qr) | 0), - (Do = rt = - ((tt = - (a = - ((rt = - ((2097151 & a) << 11) | - ((yr = (Br - -1048576) | 0) >>> 21)) + - Pr) | - 0) >>> - 0 < - rt >>> 0 - ? (tt + 1) | 0 - : tt) - - (((a >>> 0 < 4293918720) - 1) | 0)) | - 0), - (Qr = - ((2097151 & rt) << 11) | - ((wr = (a - -1048576) | 0) >>> 21)), - (rt = ((rt >> 21) + gs) | 0), - (To = or = (Qr + ps) | 0), - (Pr = Qr >>> 0 > or >>> 0 ? (rt + 1) | 0 : rt), - (Qr = a), - (ft = tt), - (tt = - (((It - - ((((rt = -2097152 & er) >>> 0 > Nt >>> 0) + Yr) | 0)) | - 0) + - (ls >> 21)) | - 0), - (Zr = tt = - (a = - (((Nt - rt) | 0) + - (er = ((2097151 & ls) << 11) | (jr >>> 21))) | - 0) >>> - 0 < - er >>> 0 - ? (tt + 1) | 0 - : tt), - (_a = tt = (tt - (((a >>> 0 < 4293918720) - 1) | 0)) | 0), - (Nt = rt = tt >> 21), - (tt = jn( - (po = - ((2097151 & tt) << 11) | - ((or = (a - -1048576) | 0) >>> 21)), - rt, - -683901, - -1, - )), - (rt = (On + ft) | 0), - (rt = - tt >>> 0 > (Qr = (tt + Qr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ps = (Qr - (tt = -2097152 & wr)) | 0), - (gs = (rt - (((tt >>> 0 > Qr >>> 0) + Do) | 0)) | 0), - (rt = jn(po, Nt, 136657, 0)), - (tt = (On + Gr) | 0), - (tt = - rt >>> 0 > (ft = (rt + Br) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Yr = (ft - (rt = -2097152 & yr)) | 0), - (ls = (tt - (((rt >>> 0 > ft >>> 0) + Lo) | 0)) | 0), - (ft = - ((rt = jn(Jo, Ar, 666643, 0)) + - ((_r - (tt = -2097152 & Dr)) | 0)) | - 0), - (tt = - (On + ((Ot - (((tt >>> 0 > _r >>> 0) + oo) | 0)) | 0)) | 0), - (tt = rt >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (Qr = ((rt = jn(vs, Cs, -997805, -1)) + ft) | 0), - (ft = (On + tt) | 0), - (ft = rt >>> 0 > Qr >>> 0 ? (ft + 1) | 0 : ft), - (tt = jn(Is, xr, 470296, 0)), - (rt = (On + ft) | 0), - (rt = - tt >>> 0 > (Qr = (tt + Qr) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (ft = jn(Eo, Hr, 654183, 0)), - (tt = (On + rt) | 0), - (jr = Qr = (ft + Qr) | 0), - (Gr = ft >>> 0 > Qr >>> 0 ? (tt + 1) | 0 : tt), - (Qr = Xt), - (Xt = h), - (h = jn(hn, 0, _t, 0)), - (rt = On), - (tt = h), - (h = jn(g, 0, yt, 0)), - (rt = (On + rt) | 0), - (rt = - h >>> 0 > (ft = (tt + h) | 0) >>> 0 ? (rt + 1) | 0 : rt), - (h = jn(g, 0, _t, 0)), - (oo = tt = On), - (It = h), - (Ot = (h - -1048576) | 0), - (Lo = h = (tt - (((h >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = (h >>> 21) | 0), - (er = ((h = ((2097151 & h) << 11) | (Ot >>> 21)) + ft) | 0), - (ft = (tt + rt) | 0), - (Dr = ft = h >>> 0 > er >>> 0 ? (ft + 1) | 0 : ft), - (Do = h = (ft - (((er >>> 0 < 4293918720) - 1) | 0)) | 0), - (rt = ((tt = (h >>> 21) | 0) + Xt) | 0), - (rt = - (h = - ((2097151 & h) << 11) | - ((Br = (er - -1048576) | 0) >>> 21)) >>> - 0 > - (ft = (h + Qr) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (Xt = - ((h = jn(vs, Cs, 654183, 0)) + - ((ft - (tt = -2097152 & Lr)) | 0)) | - 0), - (ft = - (On + - ((rt - (((8191 & ks) + (tt >>> 0 > ft >>> 0)) | 0)) | - 0)) | - 0), - (ft = h >>> 0 > Xt >>> 0 ? (ft + 1) | 0 : ft), - (h = jn(Is, xr, 666643, 0)), - (tt = (On + ft) | 0), - (tt = - h >>> 0 > (rt = (h + Xt) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (yr = ((h = jn(Eo, Hr, 470296, 0)) + rt) | 0), - (rt = (On + tt) | 0), - (wr = rt = h >>> 0 > yr >>> 0 ? (rt + 1) | 0 : rt), - (_r = h = (rt - (((yr >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = ((tt = h >> 21) + Gr) | 0), - (ft = tt = - (h = - ((2097151 & h) << 11) | - ((Qr = (yr - -1048576) | 0) >>> 21)) >>> - 0 > - (Xt = (h + jr) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (Lr = rt = (tt - (((Xt >>> 0 < 4293918720) - 1) | 0)) | 0), - (Gr = - ((2097151 & rt) << 11) | - ((h = (Xt - -1048576) | 0) >>> 21)), - (rt = ((rt >> 21) + ls) | 0), - (Gr = - Gr >>> 0 > (xr = jr = (Gr + Yr) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (tt = jn(po, Nt, -997805, -1)), - (rt = (On + ft) | 0), - (Is = ((Xt = (tt + Xt) | 0) - (h &= -2097152)) | 0), - (ls = - ((tt >>> 0 > Xt >>> 0 ? (rt + 1) | 0 : rt) - - (((h >>> 0 > Xt >>> 0) + Lr) | 0)) | - 0), - (h = jn(po, Nt, 654183, 0)), - (ft = (On + wr) | 0), - (ft = - h >>> 0 > (rt = (h + yr) | 0) >>> 0 ? (ft + 1) | 0 : ft), - (jr = (rt - (h = -2097152 & Qr)) | 0), - (_r = (ft - (((h >>> 0 > rt >>> 0) + _r) | 0)) | 0), - (h = jn(vs, Cs, 470296, 0)), - (tt = - (On + - ((Dr - - (((8191 & Do) + - ((rt = -2097152 & Br) >>> 0 > er >>> 0)) | - 0)) | - 0)) | - 0), - (tt = - h >>> 0 > (ft = (h + ((er - rt) | 0)) | 0) >>> 0 - ? (tt + 1) | 0 - : tt), - (h = jn(Eo, Hr, 666643, 0)), - (tt = (On + tt) | 0), - (tt = - h >>> 0 > (rt = (h + ft) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Xt = rt), - (h = jn(vs, Cs, 666643, 0)), - (ft = - (On + - ((oo - - (((2047 & Lo) + - ((rt = -2097152 & Ot) >>> 0 > It >>> 0)) | - 0)) | - 0)) | - 0), - (yr = ft = - h >>> 0 > (Br = (h + ((It - rt) | 0)) | 0) >>> 0 - ? (ft + 1) | 0 - : ft), - (Lr = h = (ft - (((Br >>> 0 < 4293918720) - 1) | 0)) | 0), - (tt = (tt + (rt = h >> 21)) | 0), - (Ot = h = - ((tt = - (h = - ((2097151 & h) << 11) | - ((wr = (Br - -1048576) | 0) >>> 21)) >>> - 0 > - (Qr = (h + Xt) | 0) >>> 0 - ? (tt + 1) | 0 - : tt) - - (((Qr >>> 0 < 4293918720) - 1) | 0)) | - 0), - (ft = ((rt = h >> 21) + _r) | 0), - (h = - (h = - ((2097151 & h) << 11) | - ((Xt = (Qr - -1048576) | 0) >>> 21)) >>> - 0 > - (Dr = (h + jr) | 0) >>> 0 - ? (ft + 1) | 0 - : ft), - (rt = jn(po, Nt, 470296, 0)), - (tt = (On + tt) | 0), - (tt = - rt >>> 0 > (ft = (rt + Qr) | 0) >>> 0 ? (tt + 1) | 0 : tt), - (Xt = (ft - (rt = -2097152 & Xt)) | 0), - (Qr = (tt - (((rt >>> 0 > ft >>> 0) + Ot) | 0)) | 0), - (rt = jn(po, Nt, 666643, 0)), - (ft = - (On + - ((yr - - ((((tt = -2097152 & wr) >>> 0 > Br >>> 0) + Lr) | 0)) | - 0)) | - 0), - (rt = - ((tt = - (ft = - rt >>> 0 > (It = (rt + ((Br - tt) | 0)) | 0) >>> 0 - ? (ft + 1) | 0 - : ft) >> 21) + - Qr) | - 0), - (tt = - (h + - (ft = - (rt = - (ft = ((2097151 & ft) << 11) | (It >>> 21)) >>> 0 > - (Xt = (ft + Xt) | 0) >>> 0 - ? (rt + 1) | 0 - : rt) >> 21)) | - 0), - (rt = - ((rt = - (tt = - (h = Qr = - ((rt = ((2097151 & rt) << 11) | (Xt >>> 21)) + Dr) | - 0) >>> - 0 < - rt >>> 0 - ? (tt + 1) | 0 - : tt) >> 21) + - ls) | - 0), - (tt = - ((tt = - (rt = - (tt = ((2097151 & tt) << 11) | (h >>> 21)) >>> 0 > - (er = (tt + Is) | 0) >>> 0 - ? (rt + 1) | 0 - : rt) >> 21) + - Gr) | - 0), - (ft = - ((rt = - (tt = - (rt = ((2097151 & rt) << 11) | (er >>> 21)) >>> 0 > - (Lr = (rt + xr) | 0) >>> 0 - ? (tt + 1) | 0 - : tt) >> 21) + - gs) | - 0), - (rt = - ((tt = - (ft = - (tt = ((2097151 & tt) << 11) | (Lr >>> 21)) >>> 0 > - (Ot = (tt + ps) | 0) >>> 0 - ? (ft + 1) | 0 - : ft) >> 21) + - Pr) | - 0), - (tt = - ((ft = - (rt = - (ft = ((2097151 & ft) << 11) | (Ot >>> 21)) >>> 0 > - (Dr = (ft + To) | 0) >>> 0 - ? (rt + 1) | 0 - : rt) >> 21) + - uo) | - 0), - (rt = - ((rt = - (tt = - (rt = ((2097151 & rt) << 11) | (Dr >>> 21)) >>> 0 > - (Br = (rt + ao) | 0) >>> 0 - ? (tt + 1) | 0 - : tt) >> 21) + - Tr) | - 0), - (tt = - ((tt = - (rt = - (tt = ((2097151 & tt) << 11) | (Br >>> 21)) >>> 0 > - (Gr = (tt + ro) | 0) >>> 0 - ? (rt + 1) | 0 - : rt) >> 21) + - qs) | - 0), - (ft = - ((rt = - (tt = - (rt = ((2097151 & rt) << 11) | (Gr >>> 21)) >>> 0 > - (yr = (rt + Gs) | 0) >>> 0 - ? (tt + 1) | 0 - : tt) >> 21) + - mo) | - 0), - (tt = - (((Zr - - (((a >>> 0 < (rt = -2097152 & or) >>> 0) + _a) | 0)) | - 0) + - ((ft = - (tt = ((2097151 & tt) << 11) | (yr >>> 21)) >>> 0 > - (wr = (tt + Hs) | 0) >>> 0 - ? (ft + 1) | 0 - : ft) >> - 21)) | - 0), - (or = rt = - (tt = - (Qr = - ((or = (a - rt) | 0) + - (((2097151 & ft) << 11) | (wr >>> 21))) | - 0) >>> - 0 < - or >>> 0 - ? (tt + 1) | 0 - : tt) >> 21), - (a = - ((a = jn( - (Zr = ((2097151 & tt) << 11) | (Qr >>> 21)), - rt, - 666643, - 0, - )) + - (rt = 2097151 & It)) | - 0), - (ft = On), - (pn[0 | d] = a), - (ft = a >>> 0 < rt >>> 0 ? (ft + 1) | 0 : ft), - (pn[(d + 1) | 0] = ((255 & ft) << 24) | (a >>> 8)), - (rt = 2097151 & Xt), - (Xt = (jn(Zr, or, 470296, 0) + rt) | 0), - (tt = On), - (tt = - ((ft >> 21) + - (tt = rt >>> 0 > Xt >>> 0 ? (tt + 1) | 0 : tt)) | - 0), - (tt = - (Xt = - ((It = ((2097151 & ft) << 11) | (a >>> 21)) + Xt) | 0) >>> - 0 < - It >>> 0 - ? (tt + 1) | 0 - : tt), - (pn[(d + 4) | 0] = ((2047 & tt) << 21) | (Xt >>> 11)), - (pn[(d + 3) | 0] = ((7 & tt) << 29) | (Xt >>> 3)), - (pn[(d + 2) | 0] = - (31 & (((65535 & ft) << 16) | (a >>> 16))) | (Xt << 5)), - (a = 2097151 & h), - (h = (jn(Zr, or, 654183, 0) + a) | 0), - (ft = On), - (ft = a >>> 0 > h >>> 0 ? (ft + 1) | 0 : ft), - (a = tt), - (rt = ((tt >>= 21) + ft) | 0), - (a = rt = - (a = ((2097151 & a) << 11) | (Xt >>> 21)) >>> 0 > - (h = (a + h) | 0) >>> 0 - ? (rt + 1) | 0 - : rt), - (pn[(d + 6) | 0] = ((63 & rt) << 26) | (h >>> 6)), - (tt = 0), - (pn[(d + 5) | 0] = - (tt << 13) | ((1572864 & Xt) >>> 19) | (h << 2)), - (tt = 2097151 & er), - (ft = (jn(Zr, or, -997805, -1) + tt) | 0), - (rt = On), - (rt = tt >>> 0 > ft >>> 0 ? (rt + 1) | 0 : rt), - (tt = ((tt = a >> 21) + rt) | 0), - (tt = - (a = - ((Xt = ft) + (ft = ((2097151 & a) << 11) | (h >>> 21))) | - 0) >>> - 0 < - ft >>> 0 - ? (tt + 1) | 0 - : tt), - (pn[(d + 9) | 0] = ((511 & tt) << 23) | (a >>> 9)), - (pn[(d + 8) | 0] = ((1 & tt) << 31) | (a >>> 1)), - (rt = 0), - (pn[(d + 7) | 0] = - (rt << 18) | ((2080768 & h) >>> 14) | (a << 7)), - (h = 2097151 & Lr), - (rt = (jn(Zr, or, 136657, 0) + h) | 0), - (ft = On), - (ft = h >>> 0 > rt >>> 0 ? (ft + 1) | 0 : ft), - (h = - ((Xt = ((2097151 & (h = tt)) << 11) | (a >>> 21)) + rt) | - 0), - (rt = ((tt >>= 21) + ft) | 0), - (rt = h >>> 0 < Xt >>> 0 ? (rt + 1) | 0 : rt), - (pn[(d + 12) | 0] = ((4095 & rt) << 20) | (h >>> 12)), - (pn[(d + 11) | 0] = ((15 & rt) << 28) | (h >>> 4)), - (tt = 0), - (pn[(d + 10) | 0] = - (tt << 15) | ((1966080 & a) >>> 17) | (h << 4)), - (a = 2097151 & Ot), - (ft = (jn(Zr, or, -683901, -1) + a) | 0), - (tt = On), - (tt = a >>> 0 > ft >>> 0 ? (tt + 1) | 0 : tt), - (a = rt), - (rt = (tt + (rt >>= 21)) | 0), - (rt = - (a = - ((Xt = ft) + (ft = ((2097151 & a) << 11) | (h >>> 21))) | - 0) >>> - 0 < - ft >>> 0 - ? (rt + 1) | 0 - : rt), - (pn[(d + 14) | 0] = ((127 & rt) << 25) | (a >>> 7)), - (tt = 0), - (pn[(d + 13) | 0] = - (tt << 12) | ((1048576 & h) >>> 20) | (a << 1)), - (tt = rt >> 21), - (tt = - (h = - ((rt = ((2097151 & rt) << 11) | (a >>> 21)) + - (2097151 & Dr)) | - 0) >>> - 0 < - rt >>> 0 - ? (tt + 1) | 0 - : tt), - (pn[(d + 17) | 0] = ((1023 & tt) << 22) | (h >>> 10)), - (pn[(d + 16) | 0] = ((3 & tt) << 30) | (h >>> 2)), - (rt = 0), - (pn[(d + 15) | 0] = - (rt << 17) | ((2064384 & a) >>> 15) | (h << 6)), - (a = tt), - (tt >>= 21), - (ft = - (a = - ((rt = ((2097151 & a) << 11) | (h >>> 21)) + - (2097151 & Br)) | - 0) >>> - 0 < - rt >>> 0 - ? (tt + 1) | 0 - : tt), - (pn[(d + 20) | 0] = ((8191 & ft) << 19) | (a >>> 13)), - (pn[(d + 19) | 0] = ((31 & ft) << 27) | (a >>> 5)), - (rt = ft >> 21), - (rt = - (tt = - ((Xt = ((2097151 & ft) << 11) | (a >>> 21)) + - (2097151 & Gr)) | - 0) >>> - 0 < - Xt >>> 0 - ? (rt + 1) | 0 - : rt), - (Xt = tt), - (pn[(d + 21) | 0] = tt), - (tt = 0), - (pn[(d + 18) | 0] = - (tt << 14) | ((1835008 & h) >>> 18) | (a << 3)), - (pn[(d + 22) | 0] = ((255 & rt) << 24) | (Xt >>> 8)), - (tt = rt >> 21), - (tt = - (a = - ((h = ((2097151 & rt) << 11) | (Xt >>> 21)) + - (2097151 & yr)) | - 0) >>> - 0 < - h >>> 0 - ? (tt + 1) | 0 - : tt), - (pn[(d + 25) | 0] = ((2047 & tt) << 21) | (a >>> 11)), - (pn[(d + 24) | 0] = ((7 & tt) << 29) | (a >>> 3)), - (pn[(d + 23) | 0] = - (31 & (((65535 & rt) << 16) | (Xt >>> 16))) | (a << 5)), - (rt = ((2097151 & tt) << 11) | (a >>> 21)), - (tt >>= 21), - (tt = - (h = (rt + (2097151 & wr)) | 0) >>> 0 < rt >>> 0 - ? (tt + 1) | 0 - : tt), - (pn[(d + 27) | 0] = ((63 & tt) << 26) | (h >>> 6)), - (rt = 0), - (pn[(d + 26) | 0] = - (rt << 13) | ((1572864 & a) >>> 19) | (h << 2)), - (rt = tt >> 21), - (rt = - (a = - ((tt = ((2097151 & tt) << 11) | (h >>> 21)) + - (2097151 & Qr)) | - 0) >>> - 0 < - tt >>> 0 - ? (rt + 1) | 0 - : rt), - (pn[(d + 31) | 0] = ((131071 & rt) << 15) | (a >>> 17)), - (pn[(d + 30) | 0] = ((511 & rt) << 23) | (a >>> 9)), - (pn[(d + 29) | 0] = ((1 & rt) << 31) | (a >>> 1)), - (tt = 0), - (pn[(d + 28) | 0] = - (tt << 18) | ((2080768 & h) >>> 14) | (a << 7)) - } - function ku(d, a, h, g) { - for ( - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0; - (hn = ((_e = $n << 3) + h) | 0), - (on = - rn[0 | (_e = (a + _e) | 0)] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (Rt = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (cn = (on << 24) | ((65280 & on) << 8)), - (Un = (Dn = 16711680 & on) << 24), - (Dn = (Dn >>> 8) | 0), - (_e = ((wn = -16777216 & on) >>> 24) | 0), - (c[hn >> 2] = - Un | - (wn << 8) | - (-16777216 & (((255 & Rt) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & Rt) << 8) | (on >>> 24))) | - ((Rt >>> 8) & 65280) | - (Rt >>> 24)), - (on = _e | Dn | cn), - (_e = 0), - (c[(hn + 4) >> 2] = on | _e | _e), - (0 | ($n = ($n + 1) | 0)) != 16; - - ); - for ( - a = c[(d + 4) >> 2], - c[g >> 2] = c[d >> 2], - c[(g + 4) >> 2] = a, - a = c[(d + 60) >> 2], - c[(g + 56) >> 2] = c[(d + 56) >> 2], - c[(g + 60) >> 2] = a, - a = c[(d + 52) >> 2], - c[(g + 48) >> 2] = c[(d + 48) >> 2], - c[(g + 52) >> 2] = a, - a = c[(d + 44) >> 2], - c[(g + 40) >> 2] = c[(d + 40) >> 2], - c[(g + 44) >> 2] = a, - a = c[(d + 36) >> 2], - c[(g + 32) >> 2] = c[(d + 32) >> 2], - c[(g + 36) >> 2] = a, - a = c[(d + 28) >> 2], - c[(g + 24) >> 2] = c[(d + 24) >> 2], - c[(g + 28) >> 2] = a, - a = c[(d + 20) >> 2], - c[(g + 16) >> 2] = c[(d + 16) >> 2], - c[(g + 20) >> 2] = a, - a = c[(d + 12) >> 2], - c[(g + 8) >> 2] = c[(d + 8) >> 2], - c[(g + 12) >> 2] = a; - (wn = c[(g + 56) >> 2]), - (cn = c[(g + 60) >> 2]), - (_e = c[(a = Rt = ((At = Pt << 3) + h) | 0) >> 2]), - (a = c[(a + 4) >> 2]), - (yt = on = c[(g + 36) >> 2]), - (on = st(($n = c[(g + 32) >> 2]), on, 50)), - (hn = On), - (on = st($n, yt, 46) ^ on), - (hn ^= On), - (on = st($n, yt, 23) ^ on), - (a = ((On ^ hn) + a) | 0), - (a = - (_e = (on + _e) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (_e = ((hn = c[(on = (At + 34464) | 0) >> 2]) + _e) | 0), - (a = (c[(on + 4) >> 2] + a) | 0), - (a = _e >>> 0 < hn >>> 0 ? (a + 1) | 0 : a), - (on = - ((Un = - (((hn = c[(g + 48) >> 2]) ^ (Dn = c[(g + 40) >> 2])) & - $n) ^ - hn) + - _e) | - 0), - (_e = - (((((mt = c[(g + 52) >> 2]) ^ (Yn = c[(g + 44) >> 2])) & - yt) ^ - mt) + - a) | - 0), - (a = ((on >>> 0 < Un >>> 0 ? (_e + 1) | 0 : _e) + cn) | 0), - (a = - (_e = on) >>> 0 > (on = (on + wn) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (wn = ((cn = c[(g + 24) >> 2]) + on) | 0), - (_e = (c[(g + 28) >> 2] + a) | 0), - (et = _e = cn >>> 0 > wn >>> 0 ? (_e + 1) | 0 : _e), - (c[(g + 24) >> 2] = wn), - (c[(g + 28) >> 2] = _e), - (bt = _e = c[(g + 4) >> 2]), - (_e = st((at = c[g >> 2]), _e, 36)), - (cn = On), - (_e = st(at, bt, 30) ^ _e), - (Un = On ^ cn), - (cn = (on + (st(at, bt, 25) ^ _e)) | 0), - (_e = (a + (On ^ Un)) | 0), - (_e = on >>> 0 > cn >>> 0 ? (_e + 1) | 0 : _e), - (Un = - ((a = cn) + - (cn = - (at & - ((on = c[(g + 16) >> 2]) | - (pt = c[(g + 8) >> 2]))) | - (on & pt))) | - 0), - (a = - ((a = _e) + - ((bt & - ((_e = c[(g + 20) >> 2]) | (_t = c[(g + 12) >> 2]))) | - (_e & _t))) | - 0), - (cn = a = cn >>> 0 > Un >>> 0 ? (a + 1) | 0 : a), - (c[(g + 56) >> 2] = Un), - (c[(g + 60) >> 2] = a), - (j = on), - (nt = _e), - (kt = c[(a = sr = ((gt = 8 | At) + h) | 0) >> 2]), - (rr = c[(a + 4) >> 2]), - (_e = ((((Yn ^ yt) & et) ^ Yn) + mt) | 0), - (_e = - (a = ((on = ((Dn ^ $n) & wn) ^ Dn) + hn) | 0) >>> 0 < - on >>> 0 - ? (_e + 1) | 0 - : _e), - (on = st(wn, et, 50)), - (hn = On), - (on = st(wn, et, 46) ^ on), - (hn ^= On), - (on = ((mt = st(wn, et, 23) ^ on) + a) | 0), - (a = ((On ^ hn) + _e) | 0), - (a = ((on >>> 0 < mt >>> 0 ? (a + 1) | 0 : a) + rr) | 0), - (a = - (_e = (on + kt) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (on = - ((on = _e) + (hn = c[(_e = (gt + 34464) | 0) >> 2])) | 0), - (_e = (c[(_e + 4) >> 2] + a) | 0), - (_e = - ((a = on >>> 0 < hn >>> 0 ? (_e + 1) | 0 : _e) + nt) | 0), - (gt = _e = - (j = (on + j) | 0) >>> 0 < on >>> 0 ? (_e + 1) | 0 : _e), - (c[(g + 16) >> 2] = j), - (c[(g + 20) >> 2] = _e), - (a = (a + (((_t | bt) & cn) | (_t & bt))) | 0), - (a = - (_e = (on + (((at | pt) & Un) | (at & pt))) | 0) >>> 0 < - on >>> 0 - ? (a + 1) | 0 - : a), - (on = st(Un, cn, 36)), - (hn = On), - (on = st(Un, cn, 30) ^ on), - (nt = On ^ hn), - (hn = _e), - (_e = st(Un, cn, 25) ^ on), - (a = ((On ^ nt) + a) | 0), - (nt = a = - _e >>> 0 > (hn = (hn + _e) | 0) >>> 0 ? (a + 1) | 0 : a), - (c[(g + 48) >> 2] = hn), - (c[(g + 52) >> 2] = a), - (a = - ((a = Dn) + - (Dn = c[(_e = rr = ((on = 16 | At) + h) | 0) >> 2])) | - 0), - (_e = (c[(_e + 4) >> 2] + Yn) | 0), - (_e = a >>> 0 < Dn >>> 0 ? (_e + 1) | 0 : _e), - (on = - ((Yn = a) + (Dn = c[(a = (on + 34464) | 0) >> 2])) | 0), - (a = (c[(a + 4) >> 2] + _e) | 0), - (a = - ((((et ^ yt) & gt) ^ yt) + - (a = on >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a)) | - 0), - (a = - (_e = ((_e = on) + (on = ((wn ^ $n) & j) ^ $n)) | 0) >>> - 0 < - on >>> 0 - ? (a + 1) | 0 - : a), - (on = st(j, gt, 50)), - (Dn = On), - (on = st(j, gt, 46) ^ on), - (Dn ^= On), - (on = ((Yn = st(j, gt, 23) ^ on) + _e) | 0), - (_e = ((On ^ Dn) + a) | 0), - (mt = _e = on >>> 0 < Yn >>> 0 ? (_e + 1) | 0 : _e), - (a = _e), - (_e = st(hn, nt, 36)), - (Dn = On), - (_e = st(hn, nt, 30) ^ _e), - (Yn = On ^ Dn), - (kt = st(hn, nt, 25) ^ _e), - (_e = ((((cn | bt) & nt) | (cn & bt)) + (On ^ Yn)) | 0), - (a = - (((Dn = (kt + (((Un | at) & hn) | (Un & at))) | 0) >>> 0 < - kt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (Yn = a = - (_e = Dn) >>> 0 > (Dn = (on + Dn) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[(g + 40) >> 2] = Dn), - (c[(g + 44) >> 2] = a), - (_e = (mt + _t) | 0), - (_t = _e = - (pt = (on + pt) | 0) >>> 0 < on >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 8) >> 2] = pt), - (c[(g + 12) >> 2] = _e), - (_e = - ((_e = $n) + - ($n = c[(a = Jt = ((on = 24 | At) + h) | 0) >> 2])) | - 0), - (a = (c[(a + 4) >> 2] + yt) | 0), - (a = _e >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (on = - ((yt = _e) + ($n = c[(_e = (on + 34464) | 0) >> 2])) | 0), - (_e = (c[(_e + 4) >> 2] + a) | 0), - (_e = - ((et ^ ((et ^ gt) & _t)) + - (_e = on >>> 0 < $n >>> 0 ? (_e + 1) | 0 : _e)) | - 0), - (_e = - (a = ((a = on) + (on = wn ^ ((wn ^ j) & pt))) | 0) >>> 0 < - on >>> 0 - ? (_e + 1) | 0 - : _e), - (on = st(pt, _t, 50)), - ($n = On), - (on = st(pt, _t, 46) ^ on), - ($n ^= On), - (on = ((mt = st(pt, _t, 23) ^ on) + a) | 0), - (a = ((On ^ $n) + _e) | 0), - (a = on >>> 0 < mt >>> 0 ? (a + 1) | 0 : a), - (_e = st(Dn, Yn, 36)), - ($n = On), - (_e = st(Dn, Yn, 30) ^ _e), - (mt = On ^ $n), - (yt = st(Dn, Yn, 25) ^ _e), - (_e = ((((cn | nt) & Yn) | (cn & nt)) + (On ^ mt)) | 0), - (_e = - ((($n = (yt + (((hn | Un) & Dn) | (hn & Un))) | 0) >>> 0 < - yt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (mt = _e = - (yt = $n) >>> 0 > ($n = (on + $n) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 32) >> 2] = $n), - (c[(g + 36) >> 2] = _e), - (a = (a + bt) | 0), - (bt = a = - (at = (on + at) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (c[g >> 2] = at), - (c[(g + 4) >> 2] = a), - (on = c[(_e = Qt = ((a = 32 | At) + h) | 0) >> 2]), - (_e = (et + c[(_e + 4) >> 2]) | 0), - (_e = - (on = (on + wn) | 0) >>> 0 < wn >>> 0 - ? (_e + 1) | 0 - : _e), - (on = ((wn = c[(a = (a + 34464) | 0) >> 2]) + on) | 0), - (a = (c[(a + 4) >> 2] + _e) | 0), - (a = - ((gt ^ ((gt ^ _t) & bt)) + - (a = on >>> 0 < wn >>> 0 ? (a + 1) | 0 : a)) | - 0), - (a = - (_e = ((_e = on) + (on = j ^ ((j ^ pt) & at))) | 0) >>> - 0 < - on >>> 0 - ? (a + 1) | 0 - : a), - (on = st(at, bt, 50)), - (wn = On), - (on = st(at, bt, 46) ^ on), - (wn ^= On), - (on = ((et = st(at, bt, 23) ^ on) + _e) | 0), - (_e = ((On ^ wn) + a) | 0), - (yt = _e = on >>> 0 < et >>> 0 ? (_e + 1) | 0 : _e), - (a = _e), - (_e = st($n, mt, 36)), - (wn = On), - (_e = st($n, mt, 30) ^ _e), - (et = On ^ wn), - (kt = st($n, mt, 25) ^ _e), - (_e = ((((Yn | nt) & mt) | (Yn & nt)) + (On ^ et)) | 0), - (a = - (((wn = (kt + (((hn | Dn) & $n) | (hn & Dn))) | 0) >>> 0 < - kt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (wn = a = - (et = (on + wn) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (c[(g + 24) >> 2] = et), - (c[(g + 28) >> 2] = a), - (_e = (cn + yt) | 0), - (yt = _e = - (cn = (on + Un) | 0) >>> 0 < on >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 56) >> 2] = cn), - (c[(g + 60) >> 2] = _e), - (on = c[(a = Zt = ((_e = 40 | At) + h) | 0) >> 2]), - (a = (gt + c[(a + 4) >> 2]) | 0), - (a = (on = (on + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (on = ((Un = c[(_e = (_e + 34464) | 0) >> 2]) + on) | 0), - (_e = (c[(_e + 4) >> 2] + a) | 0), - (_e = - ((_t ^ ((_t ^ bt) & yt)) + - (_e = on >>> 0 < Un >>> 0 ? (_e + 1) | 0 : _e)) | - 0), - (_e = - (a = ((a = on) + (on = pt ^ ((at ^ pt) & cn))) | 0) >>> - 0 < - on >>> 0 - ? (_e + 1) | 0 - : _e), - (on = st(cn, yt, 50)), - (Un = On), - (on = st(cn, yt, 46) ^ on), - (Un ^= On), - (on = ((j = st(cn, yt, 23) ^ on) + a) | 0), - (a = ((On ^ Un) + _e) | 0), - (a = on >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (_e = st(et, wn, 36)), - (Un = On), - (_e = st(et, wn, 30) ^ _e), - (j = On ^ Un), - (gt = st(et, wn, 25) ^ _e), - (_e = ((((Yn | mt) & wn) | (Yn & mt)) + (On ^ j)) | 0), - (_e = - (((Un = (gt + (((Dn | $n) & et) | (Dn & $n))) | 0) >>> 0 < - gt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (Un = _e = - (j = (on + Un) | 0) >>> 0 < Un >>> 0 ? (_e + 1) | 0 : _e), - (c[(g + 16) >> 2] = j), - (c[(g + 20) >> 2] = _e), - (a = (a + nt) | 0), - (gt = a = - (nt = (on + hn) | 0) >>> 0 < hn >>> 0 ? (a + 1) | 0 : a), - (c[(g + 48) >> 2] = nt), - (c[(g + 52) >> 2] = a), - (on = c[(_e = jt = ((a = 48 | At) + h) | 0) >> 2]), - (_e = (_t + c[(_e + 4) >> 2]) | 0), - (_e = - (on = (on + pt) | 0) >>> 0 < pt >>> 0 - ? (_e + 1) | 0 - : _e), - (on = ((hn = c[(a = (a + 34464) | 0) >> 2]) + on) | 0), - (a = (c[(a + 4) >> 2] + _e) | 0), - (a = - ((bt ^ ((yt ^ bt) & gt)) + - (a = on >>> 0 < hn >>> 0 ? (a + 1) | 0 : a)) | - 0), - (a = - (_e = ((_e = on) + (on = at ^ ((cn ^ at) & nt))) | 0) >>> - 0 < - on >>> 0 - ? (a + 1) | 0 - : a), - (on = st(nt, gt, 50)), - (hn = On), - (on = st(nt, gt, 46) ^ on), - (hn ^= On), - (on = ((pt = st(nt, gt, 23) ^ on) + _e) | 0), - (_e = ((On ^ hn) + a) | 0), - (_t = _e = on >>> 0 < pt >>> 0 ? (_e + 1) | 0 : _e), - (a = _e), - (_e = st(j, Un, 36)), - (hn = On), - (_e = st(j, Un, 30) ^ _e), - (pt = On ^ hn), - (kt = st(j, Un, 25) ^ _e), - (_e = ((((wn | mt) & Un) | (wn & mt)) + (On ^ pt)) | 0), - (a = - (((hn = (kt + ((($n | et) & j) | ($n & et))) | 0) >>> 0 < - kt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (pt = a = - (_e = hn) >>> 0 > (hn = (on + hn) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[(g + 8) >> 2] = hn), - (c[(g + 12) >> 2] = a), - (_e = (Yn + _t) | 0), - (_t = _e = - (kt = (on + Dn) | 0) >>> 0 < Dn >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 40) >> 2] = kt), - (c[(g + 44) >> 2] = _e), - (on = c[(a = Ht = ((_e = 56 | At) + h) | 0) >> 2]), - (a = (bt + c[(a + 4) >> 2]) | 0), - (a = - (on = (on + at) | 0) >>> 0 < at >>> 0 ? (a + 1) | 0 : a), - (on = ((Dn = c[(_e = (_e + 34464) | 0) >> 2]) + on) | 0), - (_e = (c[(_e + 4) >> 2] + a) | 0), - (_e = - ((yt ^ ((gt ^ yt) & _t)) + - (_e = on >>> 0 < Dn >>> 0 ? (_e + 1) | 0 : _e)) | - 0), - (_e = - (a = ((a = on) + (on = cn ^ ((cn ^ nt) & kt))) | 0) >>> - 0 < - on >>> 0 - ? (_e + 1) | 0 - : _e), - (on = st(kt, _t, 50)), - (Dn = On), - (on = st(kt, _t, 46) ^ on), - (Dn ^= On), - (on = ((Yn = st(kt, _t, 23) ^ on) + a) | 0), - (a = ((On ^ Dn) + _e) | 0), - (a = on >>> 0 < Yn >>> 0 ? (a + 1) | 0 : a), - (_e = st(hn, pt, 36)), - (Dn = On), - (_e = st(hn, pt, 30) ^ _e), - (Yn = On ^ Dn), - (at = st(hn, pt, 25) ^ _e), - (_e = ((((wn | Un) & pt) | (wn & Un)) + (On ^ Yn)) | 0), - (_e = - (((Dn = (at + (((j | et) & hn) | (j & et))) | 0) >>> 0 < - at >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (Yn = _e = - (Yn = Dn) >>> 0 > (Dn = (on + Dn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[g >> 2] = Dn), - (c[(g + 4) >> 2] = _e), - (a = (a + mt) | 0), - (bt = a = - (_e = $n) >>> 0 > ($n = (on + $n) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[(g + 32) >> 2] = $n), - (c[(g + 36) >> 2] = a), - (on = c[(_e = Ut = ((a = 64 | At) + h) | 0) >> 2]), - (_e = (yt + c[(_e + 4) >> 2]) | 0), - (_e = - (on = (on + cn) | 0) >>> 0 < cn >>> 0 - ? (_e + 1) | 0 - : _e), - (on = ((cn = c[(a = (a + 34464) | 0) >> 2]) + on) | 0), - (a = (c[(a + 4) >> 2] + _e) | 0), - (a = - ((gt ^ ((gt ^ _t) & bt)) + - (a = on >>> 0 < cn >>> 0 ? (a + 1) | 0 : a)) | - 0), - (a = - (_e = ((_e = on) + (on = nt ^ ((nt ^ kt) & $n))) | 0) >>> - 0 < - on >>> 0 - ? (a + 1) | 0 - : a), - (on = st($n, bt, 50)), - (cn = On), - (on = st($n, bt, 46) ^ on), - (cn ^= On), - (on = ((mt = st($n, bt, 23) ^ on) + _e) | 0), - (_e = ((On ^ cn) + a) | 0), - (at = _e = on >>> 0 < mt >>> 0 ? (_e + 1) | 0 : _e), - (a = _e), - (_e = st(Dn, Yn, 36)), - (cn = On), - (_e = st(Dn, Yn, 30) ^ _e), - (mt = On ^ cn), - (yt = st(Dn, Yn, 25) ^ _e), - (_e = ((((Un | pt) & Yn) | (Un & pt)) + (On ^ mt)) | 0), - (a = - (((cn = (yt + (((hn | j) & Dn) | (hn & j))) | 0) >>> 0 < - yt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (cn = a = - (mt = (on + cn) | 0) >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (c[(g + 56) >> 2] = mt), - (c[(g + 60) >> 2] = a), - (_e = (wn + at) | 0), - (yt = _e = - (wn = (on + et) | 0) >>> 0 < on >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 24) >> 2] = wn), - (c[(g + 28) >> 2] = _e), - (on = c[(a = Ct = ((_e = 72 | At) + h) | 0) >> 2]), - (a = (gt + c[(a + 4) >> 2]) | 0), - (a = - (on = (on + nt) | 0) >>> 0 < nt >>> 0 ? (a + 1) | 0 : a), - (on = ((nt = c[(_e = (_e + 34464) | 0) >> 2]) + on) | 0), - (_e = (c[(_e + 4) >> 2] + a) | 0), - (_e = - ((_t ^ ((_t ^ bt) & yt)) + - (_e = on >>> 0 < nt >>> 0 ? (_e + 1) | 0 : _e)) | - 0), - (_e = - (a = ((a = on) + (on = kt ^ (($n ^ kt) & wn))) | 0) >>> - 0 < - on >>> 0 - ? (_e + 1) | 0 - : _e), - (on = st(wn, yt, 50)), - (nt = On), - (on = st(wn, yt, 46) ^ on), - (nt ^= On), - (on = ((at = st(wn, yt, 23) ^ on) + a) | 0), - (a = ((On ^ nt) + _e) | 0), - (a = on >>> 0 < at >>> 0 ? (a + 1) | 0 : a), - (_e = st(mt, cn, 36)), - (nt = On), - (_e = st(mt, cn, 30) ^ _e), - (at = On ^ nt), - (et = st(mt, cn, 25) ^ _e), - (_e = ((((Yn | pt) & cn) | (Yn & pt)) + (On ^ at)) | 0), - (_e = - (((nt = (et + (((hn | Dn) & mt) | (hn & Dn))) | 0) >>> 0 < - et >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (nt = _e = - (at = (on + nt) | 0) >>> 0 < nt >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 48) >> 2] = at), - (c[(g + 52) >> 2] = _e), - (a = (a + Un) | 0), - (gt = a = - (Un = (on + j) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (c[(g + 16) >> 2] = Un), - (c[(g + 20) >> 2] = a), - (a = - ((j = c[(_e = Tt = ((on = 80 | At) + h) | 0) >> 2]) + - kt) | - 0), - (_e = (c[(_e + 4) >> 2] + _t) | 0), - (_e = a >>> 0 < j >>> 0 ? (_e + 1) | 0 : _e), - (on = - ((et = a) + (j = c[(a = (on + 34464) | 0) >> 2])) | 0), - (a = (c[(a + 4) >> 2] + _e) | 0), - (a = - ((bt ^ ((yt ^ bt) & gt)) + - (a = on >>> 0 < j >>> 0 ? (a + 1) | 0 : a)) | - 0), - (a = - (_e = ((_e = on) + (on = $n ^ ((wn ^ $n) & Un))) | 0) >>> - 0 < - on >>> 0 - ? (a + 1) | 0 - : a), - (on = st(Un, gt, 50)), - (j = On), - (on = st(Un, gt, 46) ^ on), - (j ^= On), - (on = ((et = st(Un, gt, 23) ^ on) + _e) | 0), - (_e = ((On ^ j) + a) | 0), - (_t = _e = on >>> 0 < et >>> 0 ? (_e + 1) | 0 : _e), - (a = _e), - (_e = st(at, nt, 36)), - (j = On), - (_e = st(at, nt, 30) ^ _e), - (et = On ^ j), - (kt = st(at, nt, 25) ^ _e), - (_e = ((((cn | Yn) & nt) | (cn & Yn)) + (On ^ et)) | 0), - (a = - (((j = (kt + (((Dn | mt) & at) | (Dn & mt))) | 0) >>> 0 < - kt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (j = a = - (et = (on + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (c[(g + 40) >> 2] = et), - (c[(g + 44) >> 2] = a), - (_e = (pt + _t) | 0), - (_t = _e = - (pt = (on + hn) | 0) >>> 0 < hn >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 8) >> 2] = pt), - (c[(g + 12) >> 2] = _e), - (_e = (34464 + (a = 88 | At)) | 0), - (hn = c[(a = wt = (a + h) | 0) >> 2]), - (on = (c[_e >> 2] + hn) | 0), - (a = (c[(_e + 4) >> 2] + c[(a + 4) >> 2]) | 0), - (_e = (bt + (on >>> 0 < hn >>> 0 ? (a + 1) | 0 : a)) | 0), - (_e = - ((yt ^ ((gt ^ yt) & _t)) + - (_e = - (a = (on + $n) | 0) >>> 0 < $n >>> 0 - ? (_e + 1) | 0 - : _e)) | - 0), - (_e = - (a = ((on = wn ^ ((wn ^ Un) & pt)) + a) | 0) >>> 0 < - on >>> 0 - ? (_e + 1) | 0 - : _e), - (on = st(pt, _t, 50)), - (hn = On), - (on = st(pt, _t, 46) ^ on), - (hn ^= On), - (on = (($n = st(pt, _t, 23) ^ on) + a) | 0), - (a = ((On ^ hn) + _e) | 0), - (a = on >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (_e = st(et, j, 36)), - (hn = On), - (_e = st(et, j, 30) ^ _e), - ($n = On ^ hn), - (bt = st(et, j, 25) ^ _e), - (_e = ((((cn | nt) & j) | (cn & nt)) + (On ^ $n)) | 0), - (_e = - (((hn = (bt + (((at | mt) & et) | (at & mt))) | 0) >>> 0 < - bt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - ($n = _e = - ($n = hn) >>> 0 > (hn = (on + hn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 32) >> 2] = hn), - (c[(g + 36) >> 2] = _e), - (a = (a + Yn) | 0), - (Yn = a = - (_e = Dn) >>> 0 > (Dn = (on + Dn) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[g >> 2] = Dn), - (c[(g + 4) >> 2] = a), - (_e = (34464 + (a = 96 | At)) | 0), - (bt = c[(a = tr = (a + h) | 0) >> 2]), - (on = (c[_e >> 2] + bt) | 0), - (_e = (c[(_e + 4) >> 2] + c[(a + 4) >> 2]) | 0), - (a = (yt + (on >>> 0 < bt >>> 0 ? (_e + 1) | 0 : _e)) | 0), - (a = - (_e = (on + wn) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (on = ((wn = Un ^ ((Un ^ pt) & Dn)) + _e) | 0), - (_e = ((gt ^ ((gt ^ _t) & Yn)) + a) | 0), - (_e = on >>> 0 < wn >>> 0 ? (_e + 1) | 0 : _e), - (a = st(Dn, Yn, 50)), - (wn = On), - (a = st(Dn, Yn, 46) ^ a), - (wn ^= On), - (yt = on), - (on = st(Dn, Yn, 23) ^ a), - (_e = ((On ^ wn) + _e) | 0), - (yt = _e = - (a = (yt + on) | 0) >>> 0 < on >>> 0 ? (_e + 1) | 0 : _e), - (on = a), - (a = st(hn, $n, 36)), - (wn = On), - (a = st(hn, $n, 30) ^ a), - (bt = On ^ wn), - (kt = st(hn, $n, 25) ^ a), - (a = ((((j | nt) & $n) | (j & nt)) + (On ^ bt)) | 0), - (_e = - (((wn = (kt + (((at | et) & hn) | (at & et))) | 0) >>> 0 < - kt >>> 0 - ? (a + 1) | 0 - : a) + - _e) | - 0), - (wn = _e = - (bt = (on + wn) | 0) >>> 0 < wn >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 24) >> 2] = bt), - (c[(g + 28) >> 2] = _e), - (_e = (cn + yt) | 0), - (cn = _e = - (mt = (on + mt) | 0) >>> 0 < on >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 56) >> 2] = mt), - (c[(g + 60) >> 2] = _e), - (_e = (34464 + (a = 104 | At)) | 0), - (yt = c[(a = Ar = (a + h) | 0) >> 2]), - (on = (c[_e >> 2] + yt) | 0), - (a = (c[(_e + 4) >> 2] + c[(a + 4) >> 2]) | 0), - (_e = (gt + (on >>> 0 < yt >>> 0 ? (a + 1) | 0 : a)) | 0), - (_e = - (a = (on + Un) | 0) >>> 0 < Un >>> 0 ? (_e + 1) | 0 : _e), - (on = ((Un = pt ^ ((Dn ^ pt) & mt)) + a) | 0), - (a = ((_t ^ ((Yn ^ _t) & cn)) + _e) | 0), - (a = on >>> 0 < Un >>> 0 ? (a + 1) | 0 : a), - (_e = st(mt, cn, 50)), - (Un = On), - (_e = st(mt, cn, 46) ^ _e), - (Un ^= On), - (gt = st(mt, cn, 23) ^ _e), - (_e = ((On ^ Un) + a) | 0), - (yt = _e = - (on = (gt + on) | 0) >>> 0 < gt >>> 0 - ? (_e + 1) | 0 - : _e), - (a = _e), - (_e = st(bt, wn, 36)), - (Un = On), - (_e = st(bt, wn, 30) ^ _e), - (gt = On ^ Un), - (kt = st(bt, wn, 25) ^ _e), - (_e = ((((j | $n) & wn) | (j & $n)) + (On ^ gt)) | 0), - (a = - (((Un = (kt + (((hn | et) & bt) | (hn & et))) | 0) >>> 0 < - kt >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (Un = a = - (gt = (on + Un) | 0) >>> 0 < Un >>> 0 ? (a + 1) | 0 : a), - (c[(g + 16) >> 2] = gt), - (c[(g + 20) >> 2] = a), - (a = (nt + yt) | 0), - (nt = a = - (at = (on + at) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (c[(g + 48) >> 2] = at), - (c[(g + 52) >> 2] = a), - (_e = (34464 + (a = 112 | At)) | 0), - (yt = c[(on = kt = (a + h) | 0) >> 2]), - (a = (c[_e >> 2] + yt) | 0), - (_e = (c[(_e + 4) >> 2] + c[(on + 4) >> 2]) | 0), - (_e = (_t + (a >>> 0 < yt >>> 0 ? (_e + 1) | 0 : _e)) | 0), - (_e = - ((Yn ^ ((cn ^ Yn) & nt)) + - (_e = - (a = (a + pt) | 0) >>> 0 < pt >>> 0 - ? (_e + 1) | 0 - : _e)) | - 0), - (_e = - (a = ((on = Dn ^ ((Dn ^ mt) & at)) + a) | 0) >>> 0 < - on >>> 0 - ? (_e + 1) | 0 - : _e), - (on = st(at, nt, 50)), - (pt = On), - (on = st(at, nt, 46) ^ on), - (pt ^= On), - (on = ((_t = st(at, nt, 23) ^ on) + a) | 0), - (a = ((On ^ pt) + _e) | 0), - (yt = a = on >>> 0 < _t >>> 0 ? (a + 1) | 0 : a), - (_e = a), - (a = st(gt, Un, 36)), - (pt = On), - (a = st(gt, Un, 30) ^ a), - (_t = On ^ pt), - (dr = st(gt, Un, 25) ^ a), - (a = ((((wn | $n) & Un) | (wn & $n)) + (On ^ _t)) | 0), - (_e = - (((pt = (dr + (((hn | bt) & gt) | (hn & bt))) | 0) >>> 0 < - dr >>> 0 - ? (a + 1) | 0 - : a) + - _e) | - 0), - (pt = _e = - (_t = (on + pt) | 0) >>> 0 < pt >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 8) >> 2] = _t), - (c[(g + 12) >> 2] = _e), - (_e = (j + yt) | 0), - (on = _e = - (j = (on + et) | 0) >>> 0 < on >>> 0 ? (_e + 1) | 0 : _e), - (c[(g + 40) >> 2] = j), - (c[(g + 44) >> 2] = _e), - (_e = (34464 + (a = 120 | At)) | 0), - (At = c[(a = et = (a + h) | 0) >> 2]), - (yt = (c[_e >> 2] + At) | 0), - (_e = (c[(_e + 4) >> 2] + c[(a + 4) >> 2]) | 0), - (a = (Yn + (yt >>> 0 < At >>> 0 ? (_e + 1) | 0 : _e)) | 0), - (a = - ((cn ^ ((cn ^ nt) & on)) + - (a = - (_e = (Dn + yt) | 0) >>> 0 < Dn >>> 0 - ? (a + 1) | 0 - : a)) | - 0), - (a = - (_e = ((Dn = mt ^ ((at ^ mt) & j)) + _e) | 0) >>> 0 < - Dn >>> 0 - ? (a + 1) | 0 - : a), - (Dn = st(j, on, 50)), - (cn = On), - (Dn = st(j, on, 46) ^ Dn), - (cn ^= On), - (on = ((Dn = st(j, on, 23) ^ Dn) + _e) | 0), - (_e = ((On ^ cn) + a) | 0), - (_e = on >>> 0 < Dn >>> 0 ? (_e + 1) | 0 : _e), - (Dn = on), - (cn = _e), - (a = _e), - (_e = st(_t, pt, 36)), - (j = On), - (_e = st(_t, pt, 30) ^ _e), - (nt = On ^ j), - (Yn = st(_t, pt, 25) ^ _e), - (_e = ((((wn | Un) & pt) | (wn & Un)) + (On ^ nt)) | 0), - (a = - (((j = (Yn + (((gt | bt) & _t) | (gt & bt))) | 0) >>> 0 < - Yn >>> 0 - ? (_e + 1) | 0 - : _e) + - a) | - 0), - (a = (on = (on + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (c[g >> 2] = on), - (c[(g + 4) >> 2] = a), - (_e = (cn + $n) | 0), - (_e = - ($n = hn) >>> 0 > (hn = (hn + Dn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(g + 32) >> 2] = hn), - (c[(g + 36) >> 2] = _e), - (0 | Pt) != 64; - - ) - (cn = (((Pt = (Pt + 16) | 0) << 3) + h) | 0), - (Dn = c[Rt >> 2]), - ($n = c[(Rt + 4) >> 2]), - (dr = c[Ct >> 2]), - (wn = a = c[(Ct + 4) >> 2]), - (_e = a), - (on = a = c[(kt + 4) >> 2]), - (a = st((_t = c[kt >> 2]), a, 45)), - (hn = On), - (j = - (((63 & on) << 26) | (_t >>> 6)) ^ - (a = st(_t, on, 3) ^ a)), - (a = (((on >>> 6) ^ (Un = On ^ hn)) + _e) | 0), - (_e = - (((hn = (j + dr) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a) + - $n) | - 0), - (_e = - (a = (hn + Dn) | 0) >>> 0 < hn >>> 0 ? (_e + 1) | 0 : _e), - (Dn = hn = c[(sr + 4) >> 2]), - (hn = st(($n = c[sr >> 2]), hn, 63)), - (Un = On), - (hn = - (((127 & Dn) << 25) | ($n >>> 7)) ^ st($n, Dn, 56) ^ hn), - (_e = ((On ^ Un ^ (Dn >>> 7)) + _e) | 0), - (hn = _e = - hn >>> 0 > (bt = (hn + a) | 0) >>> 0 ? (_e + 1) | 0 : _e), - (c[cn >> 2] = bt), - (c[(cn + 4) >> 2] = _e), - ($n = ((kt = c[Tt >> 2]) + $n) | 0), - (a = ((cn = c[(Tt + 4) >> 2]) + Dn) | 0), - (_e = $n >>> 0 < kt >>> 0 ? (a + 1) | 0 : a), - (Dn = a = c[(et + 4) >> 2]), - (a = st((yt = c[et >> 2]), a, 45)), - (Un = On), - (j = $n), - ($n = (((63 & Dn) << 26) | (yt >>> 6)) ^ st(yt, Dn, 3) ^ a), - (_e = ((On ^ Un ^ (Dn >>> 6)) + _e) | 0), - ($n = - (j = (j + $n) | 0) >>> 0 < $n >>> 0 ? (_e + 1) | 0 : _e), - (_e = st((Un = c[rr >> 2]), (a = c[(rr + 4) >> 2]), 63)), - (nt = On), - (et = j), - (j = (((127 & a) << 25) | (Un >>> 7)) ^ st(Un, a, 56) ^ _e), - (_e = ((On ^ nt ^ (a >>> 7)) + $n) | 0), - ($n = _e = - j >>> 0 > (gt = (et + j) | 0) >>> 0 ? (_e + 1) | 0 : _e), - (c[(Rt + 136) >> 2] = gt), - (c[(Rt + 140) >> 2] = _e), - (_e = ((At = c[wt >> 2]) + Un) | 0), - (a = ((Un = c[(wt + 4) >> 2]) + a) | 0), - (j = st(bt, hn, 45)), - (nt = On), - (j = - ((Yn = - (((63 & hn) << 26) | (bt >>> 6)) ^ st(bt, hn, 3) ^ j) + - _e) | - 0), - (_e = - ((On ^ nt ^ (hn >>> 6)) + - (_e >>> 0 < At >>> 0 ? (a + 1) | 0 : a)) | - 0), - (_e = j >>> 0 < Yn >>> 0 ? (_e + 1) | 0 : _e), - (nt = a = c[(Jt + 4) >> 2]), - (a = st((Yn = c[Jt >> 2]), a, 63)), - (pt = On), - (et = j), - (j = - (((127 & nt) << 25) | (Yn >>> 7)) ^ st(Yn, nt, 56) ^ a), - (_e = ((On ^ pt ^ (nt >>> 7)) + _e) | 0), - (j = _e = - j >>> 0 > (sr = (et + j) | 0) >>> 0 ? (_e + 1) | 0 : _e), - (c[(Rt + 144) >> 2] = sr), - (c[(Rt + 148) >> 2] = _e), - (Yn = ((rr = c[tr >> 2]) + Yn) | 0), - (a = ((a = nt) + (nt = c[(tr + 4) >> 2])) | 0), - (_e = Yn >>> 0 < rr >>> 0 ? (a + 1) | 0 : a), - (a = st(gt, $n, 45)), - (pt = On), - (mt = (((63 & $n) << 26) | (gt >>> 6)) ^ st(gt, $n, 3) ^ a), - (_e = ((On ^ pt ^ ($n >>> 6)) + _e) | 0), - (_e = - (Yn = (mt + Yn) | 0) >>> 0 < mt >>> 0 - ? (_e + 1) | 0 - : _e), - (pt = a = c[(Qt + 4) >> 2]), - (a = st((mt = c[Qt >> 2]), a, 63)), - (at = On), - (et = Yn), - (Yn = - (((127 & pt) << 25) | (mt >>> 7)) ^ st(mt, pt, 56) ^ a), - (_e = ((On ^ at ^ (pt >>> 7)) + _e) | 0), - (Yn = _e = - Yn >>> 0 > (Jt = (et + Yn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(Rt + 152) >> 2] = Jt), - (c[(Rt + 156) >> 2] = _e), - (a = ((Qt = c[Ar >> 2]) + mt) | 0), - (_e = ((_e = pt) + (pt = c[(Ar + 4) >> 2])) | 0), - (mt = st(sr, j, 45)), - (at = On), - (mt = (((63 & j) << 26) | (sr >>> 6)) ^ st(sr, j, 3) ^ mt), - (_e = - ((On ^ at ^ (j >>> 6)) + - (a >>> 0 < Qt >>> 0 ? (_e + 1) | 0 : _e)) | - 0), - (mt = - (et = (mt + a) | 0) >>> 0 < mt >>> 0 ? (_e + 1) | 0 : _e), - (_e = st((at = c[Zt >> 2]), (a = c[(Zt + 4) >> 2]), 63)), - (Zt = On), - (wt = et), - (et = - (((127 & a) << 25) | (at >>> 7)) ^ - (_e = st(at, a, 56) ^ _e)), - (_e = (((a >>> 7) ^ (Ct = On ^ Zt)) + mt) | 0), - (mt = _e = - et >>> 0 > (Zt = (wt + et) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(Rt + 160) >> 2] = Zt), - (c[(Rt + 164) >> 2] = _e), - (a = (a + on) | 0), - (a = - (_e = (at + _t) | 0) >>> 0 < at >>> 0 ? (a + 1) | 0 : a), - (at = st(Jt, Yn, 45)), - (et = On), - (at = - ((Ct = - (((63 & Yn) << 26) | (Jt >>> 6)) ^ st(Jt, Yn, 3) ^ at) + - _e) | - 0), - (_e = ((On ^ et ^ (Yn >>> 6)) + a) | 0), - (_e = at >>> 0 < Ct >>> 0 ? (_e + 1) | 0 : _e), - (Ct = a = c[(jt + 4) >> 2]), - (a = st((et = c[jt >> 2]), a, 63)), - (jt = On), - (a = st(et, Ct, 56) ^ a), - (wt = at), - (_e = (((Ct >>> 7) ^ (Tt = On ^ jt)) + _e) | 0), - (at = _e = - (at = (((127 & Ct) << 25) | (et >>> 7)) ^ a) >>> 0 > - (jt = (wt + at) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(Rt + 168) >> 2] = jt), - (c[(Rt + 172) >> 2] = _e), - (a = (Dn + Ct) | 0), - (a = - (_e = (et + yt) | 0) >>> 0 < et >>> 0 ? (a + 1) | 0 : a), - (wt = et = c[(Ht + 4) >> 2]), - (et = st((Tt = c[Ht >> 2]), et, 63)), - (Ct = On), - (et = - ((Ht = - (((127 & wt) << 25) | (Tt >>> 7)) ^ - st(Tt, wt, 56) ^ - et) + - _e) | - 0), - (_e = ((On ^ Ct ^ (wt >>> 7)) + a) | 0), - (a = et >>> 0 < Ht >>> 0 ? (_e + 1) | 0 : _e), - (_e = st(Zt, mt, 45)), - (Ct = On), - (_e = st(Zt, mt, 3) ^ _e), - (Ht = On ^ Ct), - (Ct = et), - (a = (((mt >>> 6) ^ Ht) + a) | 0), - (et = a = - (et = (((63 & mt) << 26) | (Zt >>> 6)) ^ _e) >>> 0 > - (Ct = (Ct + et) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[(Rt + 176) >> 2] = Ct), - (c[(Rt + 180) >> 2] = a), - (tr = c[Ut >> 2]), - (Ut = a = c[(Ut + 4) >> 2]), - (Ht = a), - (a = st(dr, wn, 63)), - (_e = On), - (Ar = - (((127 & wn) << 25) | (dr >>> 7)) ^ st(dr, wn, 56) ^ a), - (a = ((On ^ _e ^ (wn >>> 7)) + $n) | 0), - (_e = - (((gt = (Ar + gt) | 0) >>> 0 < Ar >>> 0 - ? (a + 1) | 0 - : a) + - Ht) | - 0), - (_e = - (a = (gt + tr) | 0) >>> 0 < gt >>> 0 ? (_e + 1) | 0 : _e), - ($n = st(Ct, et, 45)), - (gt = On), - (Ht = - (($n = - (((63 & et) << 26) | (Ct >>> 6)) ^ st(Ct, et, 3) ^ $n) + - a) | - 0), - (a = ((On ^ gt ^ (et >>> 6)) + _e) | 0), - ($n = a = $n >>> 0 > Ht >>> 0 ? (a + 1) | 0 : a), - (c[(Rt + 192) >> 2] = Ht), - (c[(Rt + 196) >> 2] = a), - (_e = (hn + wt) | 0), - (_e = - (a = (bt + Tt) | 0) >>> 0 < Tt >>> 0 ? (_e + 1) | 0 : _e), - (gt = st(tr, Ut, 63)), - (Tt = On), - (wt = - (((127 & Ut) << 25) | (tr >>> 7)) ^ st(tr, Ut, 56) ^ gt), - (_e = ((On ^ Tt ^ (Ut >>> 7)) + _e) | 0), - (a = - (gt = (wt + a) | 0) >>> 0 < wt >>> 0 ? (_e + 1) | 0 : _e), - (_e = st(jt, at, 45)), - (Tt = On), - (_e = st(jt, at, 3) ^ _e), - (Ut = gt), - (a = (((at >>> 6) ^ (wt = On ^ Tt)) + a) | 0), - (gt = a = - (gt = (((63 & at) << 26) | (jt >>> 6)) ^ _e) >>> 0 > - (Tt = (Ut + gt) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[(Rt + 184) >> 2] = Tt), - (c[(Rt + 188) >> 2] = a), - (a = st(At, Un, 63)), - (_e = On), - (a = - (((127 & Un) << 25) | (At >>> 7)) ^ st(At, Un, 56) ^ a), - (_e = ((On ^ _e ^ (Un >>> 7)) + cn) | 0), - (a = - (Yn + - (a >>> 0 > (wt = (a + kt) | 0) >>> 0 - ? (_e + 1) | 0 - : _e)) | - 0), - (a = - (_e = (Jt + wt) | 0) >>> 0 < Jt >>> 0 ? (a + 1) | 0 : a), - (Yn = st(Ht, $n, 45)), - (Jt = On), - (Yn = st(Ht, $n, 3) ^ Yn), - (wt = On ^ Jt), - (Jt = ((Yn ^= ((63 & $n) << 26) | (Ht >>> 6)) + _e) | 0), - (_e = ((($n >>> 6) ^ wt) + a) | 0), - (Yn = _e = Yn >>> 0 > Jt >>> 0 ? (_e + 1) | 0 : _e), - (c[(Rt + 208) >> 2] = Jt), - (c[(Rt + 212) >> 2] = _e), - (a = st(kt, cn, 63)), - (_e = On), - (wt = st(kt, cn, 56) ^ a), - (_e = (((a = (cn >>> 7) | 0) ^ On ^ _e) + wn) | 0), - (a = - (j + - ((cn = - ((kt = wt ^ (((127 & cn) << 25) | (kt >>> 7))) + dr) | - 0) >>> - 0 < - kt >>> 0 - ? (_e + 1) | 0 - : _e)) | - 0), - (a = - (_e = (cn + sr) | 0) >>> 0 < sr >>> 0 ? (a + 1) | 0 : a), - (wn = st(Tt, gt, 45)), - (cn = On), - (j = - ((wn = - (((63 & gt) << 26) | (Tt >>> 6)) ^ st(Tt, gt, 3) ^ wn) + - _e) | - 0), - (_e = ((On ^ cn ^ (gt >>> 6)) + a) | 0), - (wn = _e = wn >>> 0 > j >>> 0 ? (_e + 1) | 0 : _e), - (c[(Rt + 200) >> 2] = j), - (c[(Rt + 204) >> 2] = _e), - (a = st(Qt, pt, 63)), - (_e = On), - (kt = - (((127 & pt) << 25) | (Qt >>> 7)) ^ st(Qt, pt, 56) ^ a), - (a = ((On ^ _e ^ (pt >>> 7)) + nt) | 0), - (_e = - (at + - ((cn = (kt + rr) | 0) >>> 0 < kt >>> 0 - ? (a + 1) | 0 - : a)) | - 0), - (_e = - (a = (cn + jt) | 0) >>> 0 < jt >>> 0 ? (_e + 1) | 0 : _e), - (cn = st(Jt, Yn, 45)), - (at = On), - (wt = a), - (a = (Yn >>> 6) | 0), - (cn = - (((63 & Yn) << 26) | (Jt >>> 6)) ^ st(Jt, Yn, 3) ^ cn), - (_e = ((a ^ On ^ at) + _e) | 0), - (cn = _e = - cn >>> 0 > (Yn = (wt + cn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(Rt + 224) >> 2] = Yn), - (c[(Rt + 228) >> 2] = _e), - (a = st(rr, nt, 63)), - (_e = On), - (a = st(rr, nt, 56) ^ a), - (at = On ^ _e), - (kt = (((127 & nt) << 25) | (rr >>> 7)) ^ a), - (a = (((_e = (nt >>> 7) | 0) ^ at) + Un) | 0), - (_e = - (mt + - ((nt = (kt + At) | 0) >>> 0 < kt >>> 0 - ? (a + 1) | 0 - : a)) | - 0), - (_e = - (a = (nt + Zt) | 0) >>> 0 < Zt >>> 0 ? (_e + 1) | 0 : _e), - (Un = st(j, wn, 45)), - (nt = On), - (at = a), - (a = (wn >>> 6) | 0), - (wn = (((63 & wn) << 26) | (j >>> 6)) ^ st(j, wn, 3) ^ Un), - (a = ((a ^ On ^ nt) + _e) | 0), - (wn = a = - wn >>> 0 > (Un = (at + wn) | 0) >>> 0 ? (a + 1) | 0 : a), - (c[(Rt + 216) >> 2] = Un), - (c[(Rt + 220) >> 2] = a), - (a = st(yt, Dn, 63)), - (_e = On), - (nt = - (((127 & Dn) << 25) | (yt >>> 7)) ^ st(yt, Dn, 56) ^ a), - (_e = ((On ^ _e ^ (Dn >>> 7)) + on) | 0), - (_e = - (gt + - ((a = (nt + _t) | 0) >>> 0 < nt >>> 0 - ? (_e + 1) | 0 - : _e)) | - 0), - (a = - (j = (a + Tt) | 0) >>> 0 < Tt >>> 0 ? (_e + 1) | 0 : _e), - (_e = st(Yn, cn, 45)), - (nt = On), - (gt = j), - (j = st(Yn, cn, 3) ^ _e), - (_e = (cn >>> 6) | 0), - (cn = (gt + (j ^= ((63 & cn) << 26) | (Yn >>> 6))) | 0), - (a = ((_e ^ On ^ nt) + a) | 0), - (c[(Rt + 240) >> 2] = cn), - (c[(Rt + 244) >> 2] = cn >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (a = st(_t, on, 63)), - (_e = On), - (a = st(_t, on, 56) ^ a), - (cn = On ^ _e), - (_e = (((_e = (on >>> 7) | 0) ^ cn) + pt) | 0), - (a = - (et + - ((a ^= ((127 & on) << 25) | (_t >>> 7)) >>> 0 > - (on = (a + Qt) | 0) >>> 0 - ? (_e + 1) | 0 - : _e)) | - 0), - (a = - (_e = (on + Ct) | 0) >>> 0 < Ct >>> 0 ? (a + 1) | 0 : a), - (on = st(Un, wn, 45)), - (cn = On), - (j = _e), - (_e = (wn >>> 6) | 0), - (on = - (((63 & wn) << 26) | (Un >>> 6)) ^ st(Un, wn, 3) ^ on), - (_e = ((_e ^ On ^ cn) + a) | 0), - (on = _e = - on >>> 0 > (wn = (j + on) | 0) >>> 0 ? (_e + 1) | 0 : _e), - (c[(Rt + 232) >> 2] = wn), - (c[(Rt + 236) >> 2] = _e), - (a = st(bt, hn, 63)), - (_e = On), - (j = st(bt, hn, 56) ^ a), - (_e = (((a = (hn >>> 7) | 0) ^ On ^ _e) + Dn) | 0), - (a = - ($n + - ((hn = - ((cn = j ^ (((127 & hn) << 25) | (bt >>> 7))) + yt) | - 0) >>> - 0 < - cn >>> 0 - ? (_e + 1) | 0 - : _e)) | - 0), - (a = - (_e = (hn + Ht) | 0) >>> 0 < Ht >>> 0 ? (a + 1) | 0 : a), - (hn = st(wn, on, 45)), - (Dn = On), - ($n = _e), - (_e = (on >>> 6) | 0), - (on = - ($n + - (hn = - (((63 & on) << 26) | (wn >>> 6)) ^ - st(wn, on, 3) ^ - hn)) | - 0), - (_e = ((_e ^ On ^ Dn) + a) | 0), - (c[(Rt + 248) >> 2] = on), - (c[(Rt + 252) >> 2] = - on >>> 0 < hn >>> 0 ? (_e + 1) | 0 : _e) - ;(a = (a + c[(d + 4) >> 2]) | 0), - (a = - (h = (on + c[d >> 2]) | 0) >>> 0 < on >>> 0 - ? (a + 1) | 0 - : a), - (c[d >> 2] = h), - (c[(d + 4) >> 2] = a), - (_e = (c[(d + 12) >> 2] + c[(g + 12) >> 2]) | 0), - (a = ((h = c[(g + 8) >> 2]) + c[(d + 8) >> 2]) | 0), - (c[(d + 8) >> 2] = a), - (c[(d + 12) >> 2] = a >>> 0 < h >>> 0 ? (_e + 1) | 0 : _e), - (_e = (c[(d + 20) >> 2] + c[(g + 20) >> 2]) | 0), - (a = ((h = c[(g + 16) >> 2]) + c[(d + 16) >> 2]) | 0), - (c[(d + 16) >> 2] = a), - (c[(d + 20) >> 2] = a >>> 0 < h >>> 0 ? (_e + 1) | 0 : _e), - (a = (c[(d + 28) >> 2] + c[(g + 28) >> 2]) | 0), - (h = ((_e = c[(g + 24) >> 2]) + c[(d + 24) >> 2]) | 0), - (c[(d + 24) >> 2] = h), - (c[(d + 28) >> 2] = h >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = (c[(d + 36) >> 2] + c[(g + 36) >> 2]) | 0), - (a = ((h = c[(g + 32) >> 2]) + c[(d + 32) >> 2]) | 0), - (c[(d + 32) >> 2] = a), - (c[(d + 36) >> 2] = a >>> 0 < h >>> 0 ? (_e + 1) | 0 : _e), - (a = (c[(d + 44) >> 2] + c[(g + 44) >> 2]) | 0), - (h = ((_e = c[(g + 40) >> 2]) + c[(d + 40) >> 2]) | 0), - (c[(d + 40) >> 2] = h), - (c[(d + 44) >> 2] = h >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = (c[(d + 52) >> 2] + c[(g + 52) >> 2]) | 0), - (a = ((h = c[(g + 48) >> 2]) + c[(d + 48) >> 2]) | 0), - (c[(d + 48) >> 2] = a), - (c[(d + 52) >> 2] = a >>> 0 < h >>> 0 ? (_e + 1) | 0 : _e), - (_e = (c[(d + 60) >> 2] + c[(g + 60) >> 2]) | 0), - (a = ((h = c[(g + 56) >> 2]) + c[(d + 56) >> 2]) | 0), - (c[(d + 56) >> 2] = a), - (c[(d + 60) >> 2] = a >>> 0 < h >>> 0 ? (_e + 1) | 0 : _e) - } - function zs(d) { - var a, - h, - g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0 - ;(et = - ((bt = - rn[(d + 44) | 0] | - (rn[(d + 45) | 0] << 8) | - (rn[(d + 46) | 0] << 16) | - (rn[(d + 47) | 0] << 24)) >>> - 5) & - 2097151), - (Yn = jn( - (jt = - ((rn[(d + 60) | 0] | - (rn[(d + 61) | 0] << 8) | - (rn[(d + 62) | 0] << 16) | - (rn[(d + 63) | 0] << 24)) >>> - 3) | - 0), - 0, - -683901, - -1, - )), - (Un = - (((wn = rn[(d + 44) | 0]) << 16) & 2031616) | - rn[(d + 42) | 0] | - (rn[(d + 43) | 0] << 8)), - (wn = On), - (gt = wn = - Un >>> 0 > (mt = (Yn + Un) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Ct = wn = (wn - (((mt >>> 0 < 4293918720) - 1) | 0)) | 0), - (Yn = wn >> 21), - (wn = - ((Un = et) + - (et = - ((2097151 & wn) << 11) | - ((at = (mt - -1048576) | 0) >>> 21))) | - 0), - (Un = Yn), - (Pt = Un = wn >>> 0 < et >>> 0 ? (Un + 1) | 0 : Un), - (xt = wn), - (Jt = jn(wn, Un, -683901, -1)), - (yt = On), - (pt = jn( - (a = - ((rn[(d + 49) | 0] | - (rn[(d + 50) | 0] << 8) | - (rn[(d + 51) | 0] << 16) | - (rn[(d + 52) | 0] << 24)) >>> - 7) & - 2097151), - 0, - -997805, - -1, - )), - (Yn = ((wn = rn[(d + 27) | 0]) >>> 24) | 0), - (et = - (wn << 8) | - ((kt = - rn[(d + 23) | 0] | - (rn[(d + 24) | 0] << 8) | - (rn[(d + 25) | 0] << 16) | - (rn[(d + 26) | 0] << 24)) >>> - 24)), - (Un = ((wn = rn[(d + 28) | 0]) >>> 16) | 0), - (Un = - 2097151 & - (((3 & (Un |= Yn)) << 30) | - ((wn = et | (wn << 16)) >>> 2))), - (wn = On), - (wn = - Un >>> 0 > (Yn = (Un + pt) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Un = jn( - (tr = - ((Rt = - rn[(d + 52) | 0] | - (rn[(d + 53) | 0] << 8) | - (rn[(d + 54) | 0] << 16) | - (rn[(d + 55) | 0] << 24)) >>> - 4) & - 2097151), - 0, - 654183, - 0, - )), - (wn = (On + wn) | 0), - (pt = Yn = (Un + Yn) | 0), - (Yn = Un >>> 0 > Yn >>> 0 ? (wn + 1) | 0 : wn), - (nt = ((Un = rn[(d + 48) | 0]) << 8) | (bt >>> 24)), - (Un = wn = (Un >>> 24) | 0), - (wn = jn( - (h = - 2097151 & - (((3 & - (bt = - (wn = ((et = rn[(d + 49) | 0]) >>> 16) | 0) | Un)) << - 30) | - ((Un = (et <<= 16) | nt) >>> 2))), - 0, - 136657, - 0, - )), - (Yn = (On + Yn) | 0), - (Yn = - wn >>> 0 > (Un = (wn + pt) | 0) >>> 0 ? (Yn + 1) | 0 : Yn), - (et = - ((wn = jn( - (g = - ((rn[(d + 57) | 0] | - (rn[(d + 58) | 0] << 8) | - (rn[(d + 59) | 0] << 16) | - (rn[(d + 60) | 0] << 24)) >>> - 6) & - 2097151), - 0, - 666643, - 0, - )) + - Un) | - 0), - (Un = (On + Yn) | 0), - (pt = et), - (Yn = wn >>> 0 > et >>> 0 ? (Un + 1) | 0 : Un), - (Un = ((wn = rn[(d + 56) | 0]) >>> 24) | 0), - (nt = (wn << 8) | (Rt >>> 24)), - (Un = jn( - (_e = - 2097151 & - (((1 & - (Rt = - (wn = ((et = rn[(d + 57) | 0]) >>> 16) | 0) | Un)) << - 31) | - ((Un = (et <<= 16) | nt) >>> 1))), - 0, - 470296, - 0, - )), - (wn = (On + Yn) | 0), - (Un = - ((wn = - (Yn = et = (Un + pt) | 0) >>> 0 < Un >>> 0 - ? (wn + 1) | 0 - : wn) + - yt) | - 0), - (Un = - Yn >>> 0 > (et = (Yn + Jt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (wt = (Yn - -1048576) | 0), - (Tt = Yn = (wn - (((Yn >>> 0 < 4293918720) - 1) | 0)) | 0), - (yt = (et - (wn = -2097152 & wt)) | 0), - (Jt = (Un - (((wn >>> 0 > et >>> 0) + Yn) | 0)) | 0), - (Un = jn(a, 0, 654183, 0)), - (wn = On), - (wn = - Un >>> 0 > (Yn = (Un + ((kt >>> 5) & 2097151)) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (et = ((Un = Yn) + (Yn = jn(tr, 0, 470296, 0))) | 0), - (Un = (On + wn) | 0), - (Un = Yn >>> 0 > et >>> 0 ? (Un + 1) | 0 : Un), - (wn = jn(h, hr, -997805, -1)), - (Un = (On + Un) | 0), - (Un = - wn >>> 0 > (Yn = (wn + et) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (et = ((wn = Yn) + (Yn = jn(_e, Er, 666643, 0))) | 0), - (wn = (On + Un) | 0), - (nt = et), - (et = Yn >>> 0 > et >>> 0 ? (wn + 1) | 0 : wn), - (pt = - ((Yn = jn(a, 0, 470296, 0)) + - (wn = - (((wn = rn[(d + 23) | 0]) << 16) & 2031616) | - rn[(d + 21) | 0] | - (rn[(d + 22) | 0] << 8))) | - 0), - (Yn = On), - (Yn = wn >>> 0 > pt >>> 0 ? (Yn + 1) | 0 : Yn), - (pt = ((Un = jn(tr, 0, 666643, 0)) + pt) | 0), - (wn = (On + Yn) | 0), - (Yn = jn(h, hr, 654183, 0)), - (Un = (On + (Un >>> 0 > pt >>> 0 ? (wn + 1) | 0 : wn)) | 0), - (Rt = Un = - Yn >>> 0 > (kt = (Yn + pt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (Ut = Un = (Un - (((kt >>> 0 < 4293918720) - 1) | 0)) | 0), - (wn = ((wn = (Un >>> 21) | 0) + et) | 0), - (Yn = wn = - (Un = - ((2097151 & Un) << 11) | - ((pt = (kt - -1048576) | 0) >>> 21)) >>> - 0 > - (nt = (Un + nt) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (_t = Un = (wn - (((nt >>> 0 < 4293918720) - 1) | 0)) | 0), - (wn = yt), - (yt = - ((2097151 & Un) << 11) | - ((et = (nt - -1048576) | 0) >>> 21)), - (Un = ((Un >> 21) + Jt) | 0), - (bt = yt = - ((Un = - yt >>> 0 > (At = (wn + yt) | 0) >>> 0 - ? (Un + 1) | 0 - : Un) - - (((At >>> 0 < 4293918720) - 1) | 0)) | - 0), - (dr = - (At - (wn = -2097152 & (Jt = (At - -1048576) | 0))) | 0), - (rt = (Un - (((wn >>> 0 > At >>> 0) + yt) | 0)) | 0), - (wn = jn(xt, Pt, 136657, 0)), - (Yn = (On + Yn) | 0), - (Yn = - wn >>> 0 > (Un = (wn + nt) | 0) >>> 0 ? (Yn + 1) | 0 : Yn), - (Zt = (Un - (wn = -2097152 & et)) | 0), - (Ar = (Yn - (((wn >>> 0 > Un >>> 0) + _t) | 0)) | 0), - (At = (mt - (wn = -2097152 & at)) | 0), - (Ct = (gt - (((wn >>> 0 > mt >>> 0) + Ct) | 0)) | 0), - (gt = jn(jt, 0, 136657, 0)), - (Un = ((wn = rn[(d + 40) | 0]) >>> 24) | 0), - (et = - (wn << 8) | - ((at = - rn[(d + 36) | 0] | - (rn[(d + 37) | 0] << 8) | - (rn[(d + 38) | 0] << 16) | - (rn[(d + 39) | 0] << 24)) >>> - 24)), - (Yn = ((wn = rn[(d + 41) | 0]) >>> 16) | 0), - (Un = ((Yn |= Un) >>> 3) | 0), - (Yn = ((7 & Yn) << 29) | ((wn = et | (wn << 16)) >>> 3)), - (wn = (Un + On) | 0), - (wn = - Yn >>> 0 > (et = (Yn + gt) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Un = jn(g, 0, -683901, -1)), - (wn = (On + wn) | 0), - (wn = - Un >>> 0 > (Yn = (Un + et) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (nt = Yn), - (Un = jn(jt, 0, -997805, -1)), - (Yn = On), - (Yn = - Un >>> 0 > (et = (Un + ((at >>> 6) & 2097151)) | 0) >>> 0 - ? (Yn + 1) | 0 - : Yn), - (at = ((Un = et) + (et = jn(g, 0, 136657, 0))) | 0), - (Un = (On + Yn) | 0), - (Yn = jn(_e, Er, -683901, -1)), - (Un = (On + (et >>> 0 > at >>> 0 ? (Un + 1) | 0 : Un)) | 0), - (yt = Un = - Yn >>> 0 > (rr = (Yn + at) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (tt = Yn = (Un - (((rr >>> 0 < 4293918720) - 1) | 0)) | 0), - (wn = (wn + (Un = Yn >> 21)) | 0), - (at = wn = - (Yn = - ((2097151 & Yn) << 11) | - ((mt = (rr - -1048576) | 0) >>> 21)) >>> - 0 > - (_t = (Yn + nt) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (sr = wn = (wn - (((_t >>> 0 < 4293918720) - 1) | 0)) | 0), - (Un = ((Un = wn >> 21) + Ct) | 0), - (fr = Un = - (wn = - ((Yn = - ((2097151 & wn) << 11) | - ((nt = (_t - -1048576) | 0) >>> 21)) + - At) | - 0) >>> - 0 < - Yn >>> 0 - ? (Un + 1) | 0 - : Un), - (Qt = wn), - (Un = jn(wn, Un, -683901, -1)), - (wn = (On + Ar) | 0), - (Ht = Yn = (Un + Zt) | 0), - (et = Un >>> 0 > Yn >>> 0 ? (wn + 1) | 0 : wn), - (Ar = (kt - (wn = -2097152 & pt)) | 0), - (Ct = (Rt - (((4095 & Ut) + (wn >>> 0 > kt >>> 0)) | 0)) | 0), - (kt = jn(a, 0, 666643, 0)), - (wn = ((Un = rn[(d + 19) | 0]) >>> 24) | 0), - (pt = - (Un << 8) | - ((Rt = - rn[(d + 15) | 0] | - (rn[(d + 16) | 0] << 8) | - (rn[(d + 17) | 0] << 16) | - (rn[(d + 18) | 0] << 24)) >>> - 24)), - (Yn = wn), - (Un = - ((7 & (Yn |= Un = ((wn = rn[(d + 20) | 0]) >>> 16) | 0)) << - 29) | - ((Un = (wn <<= 16) | pt) >>> 3)), - (Yn = (On + ((Yn >>> 3) | 0)) | 0), - (Yn = - Un >>> 0 > (pt = (Un + kt) | 0) >>> 0 ? (Yn + 1) | 0 : Yn), - (wn = jn(h, hr, 470296, 0)), - (Un = (On + Yn) | 0), - (wn = - wn >>> 0 > (pt = (wn + pt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (Yn = jn(h, hr, 666643, 0)), - (Un = On), - (kt = Un = - Yn >>> 0 > (Zt = (Yn + ((Rt >>> 6) & 2097151)) | 0) >>> 0 - ? (Un + 1) | 0 - : Un), - (ft = Yn = (Un - (((Zt >>> 0 < 4293918720) - 1) | 0)) | 0), - (wn = (wn + (Un = (Yn >>> 21) | 0)) | 0), - (Rt = wn = - (Yn = - ((2097151 & Yn) << 11) | - ((gt = (Zt - -1048576) | 0) >>> 21)) >>> - 0 > - (At = (Yn + pt) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (Xt = wn = (wn - (((At >>> 0 < 4293918720) - 1) | 0)) | 0), - (Un = ((Un = (wn >>> 21) | 0) + Ct) | 0), - (Un = - (wn = - ((2097151 & wn) << 11) | - ((pt = (At - -1048576) | 0) >>> 21)) >>> - 0 > - (Yn = (wn + Ar) | 0) >>> 0 - ? (Un + 1) | 0 - : Un), - (Ct = ((wn = Yn) + (Yn = jn(xt, Pt, -997805, -1))) | 0), - (wn = (On + Un) | 0), - (wn = Yn >>> 0 > Ct >>> 0 ? (wn + 1) | 0 : wn), - (Ut = Un = (_t - (Yn = -2097152 & nt)) | 0), - (on = nt = (at - (((Yn >>> 0 > _t >>> 0) + sr) | 0)) | 0), - (Yn = jn(Qt, fr, 136657, 0)), - (wn = (On + wn) | 0), - (wn = - Yn >>> 0 > (at = (Yn + Ct) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Yn = jn(Un, nt, -683901, -1)), - (Un = (On + wn) | 0), - (at = Un = - Yn >>> 0 > (Ct = (Yn + at) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (sr = wn = (Un - (((Ct >>> 0 < 4293918720) - 1) | 0)) | 0), - (Un = - ((2097151 & wn) << 11) | - ((nt = (Ct - -1048576) | 0) >>> 21)), - (wn = ((wn >> 21) + et) | 0), - (Ht = Un = - ((wn = - Un >>> 0 > (_t = (Un + Ht) | 0) >>> 0 - ? (wn + 1) | 0 - : wn) - - (((_t >>> 0 < 4293918720) - 1) | 0)) | - 0), - (Ar = - ((2097151 & Un) << 11) | - ((et = (_t - -1048576) | 0) >>> 21)), - (Un = ((Un >> 21) + rt) | 0), - (j = dr = (Ar + dr) | 0), - (Ar = dr >>> 0 < Ar >>> 0 ? (Un + 1) | 0 : Un), - (cn = (_t - (Un = -2097152 & et)) | 0), - (Dn = (wn - (((Un >>> 0 > _t >>> 0) + Ht) | 0)) | 0), - (dr = (Ct - (wn = -2097152 & nt)) | 0), - (rt = (at - (((wn >>> 0 > Ct >>> 0) + sr) | 0)) | 0), - (Yn = - ((wn = jn(xt, Pt, 654183, 0)) + - ((At - (Un = -2097152 & pt)) | 0)) | - 0), - (Un = - (On + ((Rt - (((Un >>> 0 > At >>> 0) + Xt) | 0)) | 0)) | 0), - (Un = wn >>> 0 > Yn >>> 0 ? (Un + 1) | 0 : Un), - (wn = jn(Qt, fr, -997805, -1)), - (Un = (On + Un) | 0), - (Un = - wn >>> 0 > (Yn = (wn + Yn) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (et = ((wn = Yn) + (Yn = jn(Ut, on, 136657, 0))) | 0), - (wn = (On + Un) | 0), - (Ht = et), - (at = Yn >>> 0 > et >>> 0 ? (wn + 1) | 0 : wn), - (At = (rr - (wn = -2097152 & mt)) | 0), - (_t = (yt - (((wn >>> 0 > rr >>> 0) + tt) | 0)) | 0), - (Rt = jn(tr, 0, -683901, -1)), - (wn = ((Un = rn[(d + 35) | 0]) >>> 24) | 0), - (et = - (Un << 8) | - ((pt = - rn[(d + 31) | 0] | - (rn[(d + 32) | 0] << 8) | - (rn[(d + 33) | 0] << 16) | - (rn[(d + 34) | 0] << 24)) >>> - 24)), - (Yn = wn), - (Un = ((wn = rn[(d + 36) | 0]) >>> 16) | 0), - (Un |= Yn), - (Yn = On), - (Yn = - (wn = - 2097151 & - (((1 & Un) << 31) | ((wn = (wn << 16) | et) >>> 1))) >>> - 0 > - (Un = (wn + Rt) | 0) >>> 0 - ? (Yn + 1) | 0 - : Yn), - (et = ((wn = jn(jt, 0, 654183, 0)) + Un) | 0), - (Un = (On + Yn) | 0), - (Un = wn >>> 0 > et >>> 0 ? (Un + 1) | 0 : Un), - (Yn = jn(g, 0, -997805, -1)), - (wn = (On + Un) | 0), - (wn = - Yn >>> 0 > (et = (Yn + et) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Un = jn(_e, Er, 136657, 0)), - (wn = (On + wn) | 0), - (nt = Yn = (Un + et) | 0), - (et = Un >>> 0 > Yn >>> 0 ? (wn + 1) | 0 : wn), - (wn = jn(a, 0, -683901, -1)), - (Un = On), - (Un = - wn >>> 0 > (Yn = (wn + ((pt >>> 4) & 2097151)) | 0) >>> 0 - ? (Un + 1) | 0 - : Un), - (pt = ((wn = jn(tr, 0, 136657, 0)) + Yn) | 0), - (Yn = (On + Un) | 0), - (Yn = wn >>> 0 > pt >>> 0 ? (Yn + 1) | 0 : Yn), - (wn = jn(jt, 0, 470296, 0)), - (Un = (On + Yn) | 0), - (Un = - wn >>> 0 > (pt = (wn + pt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (pt = ((Yn = jn(g, 0, 654183, 0)) + pt) | 0), - (wn = (On + Un) | 0), - (Un = jn(_e, Er, -997805, -1)), - (wn = (On + (Yn >>> 0 > pt >>> 0 ? (wn + 1) | 0 : wn)) | 0), - (Rt = wn = - Un >>> 0 > (yt = (Un + pt) | 0) >>> 0 ? (wn + 1) | 0 : wn), - ($n = Un = (wn - (((yt >>> 0 < 4293918720) - 1) | 0)) | 0), - (Yn = ((wn = Un >> 21) + et) | 0), - (Ct = Un = - ((Yn = - (Un = - ((2097151 & Un) << 11) | - ((pt = (yt - -1048576) | 0) >>> 21)) >>> - 0 > - (mt = (Un + nt) | 0) >>> 0 - ? (Yn + 1) | 0 - : Yn) - - (((mt >>> 0 < 4293918720) - 1) | 0)) | - 0), - (wn = ((wn = Un >> 21) + _t) | 0), - (sr = wn = - (Un = - ((et = - ((2097151 & Un) << 11) | - ((nt = (mt - -1048576) | 0) >>> 21)) + - At) | - 0) >>> - 0 < - et >>> 0 - ? (wn + 1) | 0 - : wn), - (et = Ht), - (Ht = Un), - (wn = jn(Un, wn, -683901, -1)), - (Un = (On + at) | 0), - (_t = et = (et + wn) | 0), - (et = wn >>> 0 > et >>> 0 ? (Un + 1) | 0 : Un), - (at = - ((wn = jn(xt, Pt, 470296, 0)) + - ((Zt - (Un = -2097152 & gt)) | 0)) | - 0), - (Un = - (On + - ((kt - (((2047 & ft) + (Un >>> 0 > Zt >>> 0)) | 0)) | - 0)) | - 0), - (Un = wn >>> 0 > at >>> 0 ? (Un + 1) | 0 : Un), - (gt = ((wn = at) + (at = jn(Qt, fr, 654183, 0))) | 0), - (wn = (On + Un) | 0), - (wn = at >>> 0 > gt >>> 0 ? (wn + 1) | 0 : wn), - (at = jn(Ut, on, -997805, -1)), - (Un = (On + wn) | 0), - (Un = - at >>> 0 > (gt = (at + gt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (rr = nt = (mt - (wn = -2097152 & nt)) | 0), - (hn = at = (Yn - (((wn >>> 0 > mt >>> 0) + Ct) | 0)) | 0), - (Yn = jn(Ht, sr, 136657, 0)), - (wn = (On + Un) | 0), - (wn = - Yn >>> 0 > (gt = (Yn + gt) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Yn = jn(nt, at, -683901, -1)), - (Un = (On + wn) | 0), - (at = Un = - Yn >>> 0 > (kt = (Yn + gt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (Ct = wn = (Un - (((kt >>> 0 < 4293918720) - 1) | 0)) | 0), - (Un = - ((2097151 & wn) << 11) | - ((nt = (kt - -1048576) | 0) >>> 21)), - (wn = ((wn >> 21) + et) | 0), - (_t = Un = - ((wn = - Un >>> 0 > (gt = (Un + _t) | 0) >>> 0 - ? (wn + 1) | 0 - : wn) - - (((gt >>> 0 < 4293918720) - 1) | 0)) | - 0), - (mt = - ((2097151 & Un) << 11) | - ((et = (gt - -1048576) | 0) >>> 21)), - (Un = ((Un >> 21) + rt) | 0), - (tt = At = (mt + dr) | 0), - (At = mt >>> 0 > At >>> 0 ? (Un + 1) | 0 : Un), - (ft = (gt - (Un = -2097152 & et)) | 0), - (Xt = (wn - (((Un >>> 0 > gt >>> 0) + _t) | 0)) | 0), - (dr = (kt - (wn = -2097152 & nt)) | 0), - (rt = (at - (((wn >>> 0 > kt >>> 0) + Ct) | 0)) | 0), - (at = jn(xt, Pt, 666643, 0)), - (wn = ((Un = rn[(d + 14) | 0]) >>> 24) | 0), - (et = - (Un << 8) | - ((Ct = - rn[(d + 10) | 0] | - (rn[(d + 11) | 0] << 8) | - (rn[(d + 12) | 0] << 16) | - (rn[(d + 13) | 0] << 24)) >>> - 24)), - (Yn = wn), - (Un = ((wn = rn[(d + 15) | 0]) >>> 16) | 0), - (Un |= Yn), - (Yn = On), - (Yn = - (wn = - 2097151 & - (((1 & Un) << 31) | ((wn = (wn << 16) | et) >>> 1))) >>> - 0 > - (Un = (wn + at) | 0) >>> 0 - ? (Yn + 1) | 0 - : Yn), - (et = ((wn = Un) + (Un = jn(Qt, fr, 470296, 0))) | 0), - (wn = (On + Yn) | 0), - (wn = Un >>> 0 > et >>> 0 ? (wn + 1) | 0 : wn), - (Un = jn(Ut, on, 654183, 0)), - (wn = (On + wn) | 0), - (wn = - Un >>> 0 > (Yn = (Un + et) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (et = ((Un = Yn) + (Yn = jn(Ht, sr, -997805, -1))) | 0), - (Un = (On + wn) | 0), - (Un = Yn >>> 0 > et >>> 0 ? (Un + 1) | 0 : Un), - (wn = jn(rr, hn, 136657, 0)), - (Un = (On + Un) | 0), - (kt = Yn = (wn + et) | 0), - (et = wn >>> 0 > Yn >>> 0 ? (Un + 1) | 0 : Un), - (pt = (yt - (wn = -2097152 & pt)) | 0), - (at = (Rt - (((wn >>> 0 > yt >>> 0) + $n) | 0)) | 0), - (Yn = jn(a, 0, 136657, 0)), - (wn = On), - (wn = - (Un = - ((rn[(d + 28) | 0] | - (rn[(d + 29) | 0] << 8) | - (rn[(d + 30) | 0] << 16) | - (rn[(d + 31) | 0] << 24)) >>> - 7) & - 2097151) >>> - 0 > - (Yn = (Un + Yn) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (nt = ((Un = Yn) + (Yn = jn(tr, 0, -997805, -1))) | 0), - (Un = (On + wn) | 0), - (Un = Yn >>> 0 > nt >>> 0 ? (Un + 1) | 0 : Un), - (wn = jn(h, hr, -683901, -1)), - (Un = (On + Un) | 0), - (Un = - wn >>> 0 > (Yn = (wn + nt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (nt = ((wn = jn(jt, 0, 666643, 0)) + Yn) | 0), - (Yn = (On + Un) | 0), - (Yn = wn >>> 0 > nt >>> 0 ? (Yn + 1) | 0 : Yn), - (Un = jn(g, 0, 470296, 0)), - (wn = (On + Yn) | 0), - (wn = - Un >>> 0 > (nt = (Un + nt) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Un = jn(_e, Er, 654183, 0)), - (wn = (On + wn) | 0), - (Un = - ((Tt >> 21) + - (Un >>> 0 > (Yn = (Un + nt) | 0) >>> 0 - ? (wn + 1) | 0 - : wn)) | - 0), - (mt = Un = - (nt = ((2097151 & Tt) << 11) | (wt >>> 21)) >>> 0 > - (wt = (nt + Yn) | 0) >>> 0 - ? (Un + 1) | 0 - : Un), - (_t = wn = (Un - (((wt >>> 0 < 4293918720) - 1) | 0)) | 0), - (nt = - ((2097151 & wn) << 11) | - ((gt = (wt - -1048576) | 0) >>> 21)), - (wn = ((wn >> 21) + at) | 0), - (Zt = wn = - (Un = (nt + pt) | 0) >>> 0 < nt >>> 0 ? (wn + 1) | 0 : wn), - (Tt = Un), - (Un = jn(Un, wn, -683901, -1)), - (wn = (On + et) | 0), - (nt = Yn = (Un + kt) | 0), - (et = Un >>> 0 > Yn >>> 0 ? (wn + 1) | 0 : wn), - (wn = jn(Qt, fr, 666643, 0)), - (Un = On), - (Un = - wn >>> 0 > (Yn = (wn + ((Ct >>> 4) & 2097151)) | 0) >>> 0 - ? (Un + 1) | 0 - : Un), - (wn = jn(Ut, on, 470296, 0)), - (Un = (On + Un) | 0), - (Un = - wn >>> 0 > (Yn = (wn + Yn) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (at = ((wn = jn(Ht, sr, 654183, 0)) + Yn) | 0), - (Yn = (On + Un) | 0), - (Yn = wn >>> 0 > at >>> 0 ? (Yn + 1) | 0 : Yn), - (Un = jn(rr, hn, -997805, -1)), - (wn = (On + Yn) | 0), - (wn = - Un >>> 0 > (at = (Un + at) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Un = jn(Tt, Zt, 136657, 0)), - (wn = (On + wn) | 0), - (Rt = wn = - Un >>> 0 > (yt = (Un + at) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Pt = Un = (wn - (((yt >>> 0 < 4293918720) - 1) | 0)) | 0), - (wn = nt), - (nt = - ((2097151 & Un) << 11) | - ((pt = (yt - -1048576) | 0) >>> 21)), - (Un = ((Un >> 21) + et) | 0), - (Qt = et = - ((Un = - (Yn = (wn + nt) | 0) >>> 0 < nt >>> 0 - ? (Un + 1) | 0 - : Un) - - (((Yn >>> 0 < 4293918720) - 1) | 0)) | - 0), - (wn = ((wn = et >> 21) + rt) | 0), - (xt = nt = - ((et = - ((2097151 & et) << 11) | - ((at = (Yn - -1048576) | 0) >>> 21)) + - dr) | - 0), - (kt = et >>> 0 > nt >>> 0 ? (wn + 1) | 0 : wn), - (nt = Yn), - (Yn = Un), - (et = - (((wt - (Un = -2097152 & gt)) | 0) + - (gt = ((2097151 & bt) << 11) | (Jt >>> 21))) | - 0), - (Un = - (((mt - (((Un >>> 0 > wt >>> 0) + _t) | 0)) | 0) + - (bt >> 21)) | - 0), - (Ct = Un = et >>> 0 < gt >>> 0 ? (Un + 1) | 0 : Un), - (tr = Un = (Un - (((et >>> 0 < 4293918720) - 1) | 0)) | 0), - (Jt = wn = Un >> 21), - (wn = jn( - (jt = - ((2097151 & Un) << 11) | - ((_t = (et - -1048576) | 0) >>> 21)), - wn, - -683901, - -1, - )), - (Yn = (On + Yn) | 0), - (Yn = - wn >>> 0 > (Un = (wn + nt) | 0) >>> 0 ? (Yn + 1) | 0 : Yn), - (hr = (Un - (wn = -2097152 & at)) | 0), - (Er = (Yn - (((wn >>> 0 > Un >>> 0) + Qt) | 0)) | 0), - (wn = jn(jt, Jt, 136657, 0)), - (Un = (Rt + On) | 0), - (fr = ((Yn = (wn + yt) | 0) - (wn = -2097152 & pt)) | 0), - (Qt = - ((Un = Yn >>> 0 < yt >>> 0 ? (Un + 1) | 0 : Un) - - (((wn >>> 0 > Yn >>> 0) + Pt) | 0)) | - 0), - (Un = jn(Ut, on, 666643, 0)), - (Yn = On), - (Yn = - (wn = - ((rn[(d + 7) | 0] | - (rn[(d + 8) | 0] << 8) | - (rn[(d + 9) | 0] << 16) | - (rn[(d + 10) | 0] << 24)) >>> - 7) & - 2097151) >>> - 0 > - (Un = (wn + Un) | 0) >>> 0 - ? (Yn + 1) | 0 - : Yn), - (nt = ((wn = jn(Ht, sr, 470296, 0)) + Un) | 0), - (Un = (On + Yn) | 0), - (Un = wn >>> 0 > nt >>> 0 ? (Un + 1) | 0 : Un), - (wn = jn(rr, hn, 654183, 0)), - (Un = (On + Un) | 0), - (Un = - wn >>> 0 > (Yn = (wn + nt) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (nt = ((wn = Yn) + (Yn = jn(Tt, Zt, -997805, -1))) | 0), - (wn = (On + Un) | 0), - (gt = nt), - (nt = Yn >>> 0 > nt >>> 0 ? (wn + 1) | 0 : wn), - (Rt = jn(Ht, sr, 666643, 0)), - (wn = ((Un = rn[(d + 6) | 0]) >>> 24) | 0), - (at = - (Un << 8) | - ((wt = - rn[(d + 2) | 0] | - (rn[(d + 3) | 0] << 8) | - (rn[(d + 4) | 0] << 16) | - (rn[(d + 5) | 0] << 24)) >>> - 24)), - (Yn = wn), - (Un = ((wn = rn[(d + 7) | 0]) >>> 16) | 0), - (Un = - 2097151 & - (((3 & (Un |= Yn)) << 30) | - ((wn = (wn << 16) | at) >>> 2))), - (wn = On), - (wn = - Un >>> 0 > (Yn = (Un + Rt) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (at = ((Un = jn(rr, hn, 470296, 0)) + Yn) | 0), - (Yn = (On + wn) | 0), - (Yn = Un >>> 0 > at >>> 0 ? (Yn + 1) | 0 : Yn), - (Un = jn(Tt, Zt, 654183, 0)), - (wn = (On + Yn) | 0), - (Rt = wn = - Un >>> 0 > (mt = (Un + at) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (bt = wn = (wn - (((mt >>> 0 < 4293918720) - 1) | 0)) | 0), - (Un = ((Yn = wn >> 21) + nt) | 0), - (yt = wn = - ((Un = - (wn = - ((2097151 & wn) << 11) | - ((pt = (mt - -1048576) | 0) >>> 21)) >>> - 0 > - (at = (wn + gt) | 0) >>> 0 - ? (Un + 1) | 0 - : Un) - - (((at >>> 0 < 4293918720) - 1) | 0)) | - 0), - (gt = - ((2097151 & wn) << 11) | - ((nt = (at - -1048576) | 0) >>> 21)), - (wn = ((wn >> 21) + Qt) | 0), - (Qt = Ht = (gt + fr) | 0), - (gt = gt >>> 0 > Ht >>> 0 ? (wn + 1) | 0 : wn), - (wn = jn(jt, Jt, -997805, -1)), - (Un = (On + Un) | 0), - (Un = - wn >>> 0 > (Yn = (wn + at) | 0) >>> 0 ? (Un + 1) | 0 : Un), - (Ut = (Yn - (wn = -2097152 & nt)) | 0), - (sr = (Un - (((wn >>> 0 > Yn >>> 0) + yt) | 0)) | 0), - (Un = jn(jt, Jt, 654183, 0)), - (wn = (Rt + On) | 0), - (Ht = ((Yn = (Un + mt) | 0) - (Un = -2097152 & pt)) | 0), - (bt = - ((wn = Yn >>> 0 < mt >>> 0 ? (wn + 1) | 0 : wn) - - (((Un >>> 0 > Yn >>> 0) + bt) | 0)) | - 0), - (wn = jn(rr, hn, 666643, 0)), - (Un = On), - (Un = - wn >>> 0 > (Yn = (wn + ((wt >>> 5) & 2097151)) | 0) >>> 0 - ? (Un + 1) | 0 - : Un), - (wn = jn(Tt, Zt, 470296, 0)), - (Un = (On + Un) | 0), - (at = Yn = (wn + Yn) | 0), - (Yn = wn >>> 0 > Yn >>> 0 ? (Un + 1) | 0 : Un), - (nt = jn(Tt, Zt, 666643, 0)), - (Un = - (((wn = rn[(d + 2) | 0]) << 16) & 2031616) | - rn[0 | d] | - (rn[(d + 1) | 0] << 8)), - (wn = On), - (Rt = wn = - Un >>> 0 > (yt = (nt + Un) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (Zt = wn = (wn - (((yt >>> 0 < 4293918720) - 1) | 0)) | 0), - (nt = - ((2097151 & wn) << 11) | - ((pt = (yt - -1048576) | 0) >>> 21)), - (wn = ((wn >> 21) + Yn) | 0), - (Yn = wn = - nt >>> 0 > (mt = (nt + at) | 0) >>> 0 ? (wn + 1) | 0 : wn), - (wt = wn = (wn - (((mt >>> 0 < 4293918720) - 1) | 0)) | 0), - (nt = - ((2097151 & wn) << 11) | - ((at = (mt - -1048576) | 0) >>> 21)), - (wn = ((wn >> 21) + bt) | 0), - (nt = - nt >>> 0 > (bt = Tt = (nt + Ht) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (wn = jn(jt, Jt, 470296, 0)), - (Yn = (Yn + On) | 0), - (Yn = - (Un = (wn + mt) | 0) >>> 0 < mt >>> 0 ? (Yn + 1) | 0 : Yn), - (mt = (Un - (wn = -2097152 & at)) | 0), - (at = (Yn - (((wn >>> 0 > Un >>> 0) + wt) | 0)) | 0), - (Un = jn(jt, Jt, 666643, 0)), - (wn = - (On + - ((Rt - - ((((Yn = -2097152 & pt) >>> 0 > yt >>> 0) + Zt) | 0)) | - 0)) | - 0), - (Un = - ((Yn = - (wn = - Un >>> 0 > (Tt = (Un + ((yt - Yn) | 0)) | 0) >>> 0 - ? (wn + 1) | 0 - : wn) >> 21) + - at) | - 0), - (wn = - ((wn = - (Un = - (wn = ((2097151 & wn) << 11) | (Tt >>> 21)) >>> 0 > - (wt = (wn + mt) | 0) >>> 0 - ? (Un + 1) | 0 - : Un) >> 21) + - nt) | - 0), - (Un = - ((Un = - (wn = - (Un = ((2097151 & Un) << 11) | (wt >>> 21)) >>> 0 > - (bt = (Un + bt) | 0) >>> 0 - ? (wn + 1) | 0 - : wn) >> 21) + - sr) | - 0), - (Yn = - ((wn = - (Un = - (wn = ((2097151 & wn) << 11) | (bt >>> 21)) >>> 0 > - (nt = (wn + Ut) | 0) >>> 0 - ? (Un + 1) | 0 - : Un) >> 21) + - gt) | - 0), - (wn = - ((Un = - (Yn = - (Un = ((2097151 & Un) << 11) | (nt >>> 21)) >>> 0 > - (Jt = (Un + Qt) | 0) >>> 0 - ? (Yn + 1) | 0 - : Yn) >> 21) + - Er) | - 0), - (Un = - ((Yn = - (wn = - (Yn = ((2097151 & Yn) << 11) | (Jt >>> 21)) >>> 0 > - (yt = (Yn + hr) | 0) >>> 0 - ? (wn + 1) | 0 - : wn) >> 21) + - kt) | - 0), - (wn = - ((wn = - (Un = - (wn = ((2097151 & wn) << 11) | (yt >>> 21)) >>> 0 > - (mt = (wn + xt) | 0) >>> 0 - ? (Un + 1) | 0 - : Un) >> 21) + - Xt) | - 0), - (Un = - ((Un = - (wn = - (Un = ((2097151 & Un) << 11) | (mt >>> 21)) >>> 0 > - (kt = (Un + ft) | 0) >>> 0 - ? (wn + 1) | 0 - : wn) >> 21) + - At) | - 0), - (Yn = - ((wn = - (Un = - (wn = ((2097151 & wn) << 11) | (kt >>> 21)) >>> 0 > - (gt = (wn + tt) | 0) >>> 0 - ? (Un + 1) | 0 - : Un) >> 21) + - Dn) | - 0), - (wn = - ((Un = - (Yn = - (Un = ((2097151 & Un) << 11) | (gt >>> 21)) >>> 0 > - (Rt = (Un + cn) | 0) >>> 0 - ? (Yn + 1) | 0 - : Yn) >> 21) + - Ar) | - 0), - (at = - ((_t = (et - (Un = -2097152 & _t)) | 0) + - (((2097151 & - (wn = - (Yn = ((2097151 & Yn) << 11) | (Rt >>> 21)) >>> 0 > - (pt = (Yn + j) | 0) >>> 0 - ? (wn + 1) | 0 - : wn)) << - 11) | - (pt >>> 21))) | - 0), - (wn = - (((Ct - (((Un >>> 0 > et >>> 0) + tr) | 0)) | 0) + - (wn >> 21)) | - 0), - (_t = Un = - (wn = at >>> 0 < _t >>> 0 ? (wn + 1) | 0 : wn) >> 21), - (Tt = - ((wn = jn( - (At = ((2097151 & wn) << 11) | (at >>> 21)), - Un, - 666643, - 0, - )) + - (Un = 2097151 & Tt)) | - 0), - (wn = On), - (et = wn = Un >>> 0 > Tt >>> 0 ? (wn + 1) | 0 : wn), - (pn[0 | d] = Tt), - (pn[(d + 1) | 0] = ((255 & wn) << 24) | (Tt >>> 8)), - (wn = 2097151 & wt), - (Un = (jn(At, _t, 470296, 0) + wn) | 0), - (Yn = On), - (wn = - ((et >> 21) + (wn >>> 0 > Un >>> 0 ? (Yn + 1) | 0 : Yn)) | - 0), - (wn = - (Ct = ((2097151 & et) << 11) | (Tt >>> 21)) >>> 0 > - (wt = (Ct + Un) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (pn[(d + 4) | 0] = ((2047 & wn) << 21) | (wt >>> 11)), - (Un = wn), - (Yn = wt), - (pn[(d + 3) | 0] = ((7 & wn) << 29) | (Yn >>> 3)), - (pn[(d + 2) | 0] = - (31 & (((65535 & et) << 16) | (Tt >>> 16))) | (Yn << 5)), - (et = 2097151 & bt), - (bt = (jn(At, _t, 654183, 0) + et) | 0), - (wn = On), - (wt = ((2097151 & Un) << 11) | (Yn >>> 21)), - (Un = - ((Un >> 21) + - (et = et >>> 0 > bt >>> 0 ? (wn + 1) | 0 : wn)) | - 0), - (wn = Un = - (bt = (wt + bt) | 0) >>> 0 < wt >>> 0 ? (Un + 1) | 0 : Un), - (pn[(d + 6) | 0] = ((63 & wn) << 26) | (bt >>> 6)), - (et = bt), - (bt = 0), - (pn[(d + 5) | 0] = - (bt << 13) | ((1572864 & Yn) >>> 19) | (et << 2)), - (Yn = 2097151 & nt), - (nt = (jn(At, _t, -997805, -1) + Yn) | 0), - (Un = On), - (Un = Yn >>> 0 > nt >>> 0 ? (Un + 1) | 0 : Un), - (bt = ((2097151 & (Yn = wn)) << 11) | (et >>> 21)), - (Yn = ((wn >>= 21) + Un) | 0), - (Yn = - (nt = (bt + nt) | 0) >>> 0 < bt >>> 0 ? (Yn + 1) | 0 : Yn), - (pn[(d + 9) | 0] = ((511 & Yn) << 23) | (nt >>> 9)), - (pn[(d + 8) | 0] = ((1 & Yn) << 31) | (nt >>> 1)), - (Un = 0), - (pn[(d + 7) | 0] = - (Un << 18) | ((2080768 & et) >>> 14) | (nt << 7)), - (Un = 2097151 & Jt), - (et = (jn(At, _t, 136657, 0) + Un) | 0), - (wn = On), - (wn = Un >>> 0 > et >>> 0 ? (wn + 1) | 0 : wn), - (Jt = ((2097151 & (Un = Yn)) << 11) | (nt >>> 21)), - (Un = (wn + (Yn = Un >> 21)) | 0), - (Un = - (et = (Jt + et) | 0) >>> 0 < Jt >>> 0 ? (Un + 1) | 0 : Un), - (pn[(d + 12) | 0] = ((4095 & Un) << 20) | (et >>> 12)), - (Yn = et), - (pn[(d + 11) | 0] = ((15 & Un) << 28) | (Yn >>> 4)), - (et = 0), - (pn[(d + 10) | 0] = - (et << 15) | ((1966080 & nt) >>> 17) | (Yn << 4)), - (et = 2097151 & yt), - (nt = (jn(At, _t, -683901, -1) + et) | 0), - (wn = On), - (wn = et >>> 0 > nt >>> 0 ? (wn + 1) | 0 : wn), - (et = Un), - (Un = (wn + (Un >>= 21)) | 0), - (Un = - (et = - ((Ht = nt) + - (nt = ((2097151 & et) << 11) | (Yn >>> 21))) | - 0) >>> - 0 < - nt >>> 0 - ? (Un + 1) | 0 - : Un), - (pn[(d + 14) | 0] = ((127 & Un) << 25) | (et >>> 7)), - (nt = 0), - (pn[(d + 13) | 0] = - (nt << 12) | ((1048576 & Yn) >>> 20) | (et << 1)), - (wn = Un >> 21), - (Yn = - (Un = ((2097151 & Un) << 11) | (et >>> 21)) >>> 0 > - (nt = (Un + (2097151 & mt)) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (pn[(d + 17) | 0] = ((1023 & Yn) << 22) | (nt >>> 10)), - (pn[(d + 16) | 0] = ((3 & Yn) << 30) | (nt >>> 2)), - (Un = 0), - (pn[(d + 15) | 0] = - (Un << 17) | ((2064384 & et) >>> 15) | (nt << 6)), - (wn = Yn >> 21), - (wn = - (Un = ((2097151 & Yn) << 11) | (nt >>> 21)) >>> 0 > - (Yn = (Un + (2097151 & kt)) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (pn[(d + 20) | 0] = ((8191 & wn) << 19) | (Yn >>> 13)), - (pn[(d + 19) | 0] = ((31 & wn) << 27) | (Yn >>> 5)), - (et = - ((Un = 2097151 & gt) + - (gt = ((2097151 & wn) << 11) | (Yn >>> 21))) | - 0), - (Un = wn >> 21), - (Un = et >>> 0 < gt >>> 0 ? (Un + 1) | 0 : Un), - (gt = et), - (pn[(d + 21) | 0] = et), - (kt = 0), - (pn[(d + 18) | 0] = - (kt << 14) | ((1835008 & nt) >>> 18) | (Yn << 3)), - (pn[(d + 22) | 0] = ((255 & Un) << 24) | (et >>> 8)), - (Yn = Un >> 21), - (Yn = - (et = - ((nt = ((2097151 & Un) << 11) | (et >>> 21)) + - (2097151 & Rt)) | - 0) >>> - 0 < - nt >>> 0 - ? (Yn + 1) | 0 - : Yn), - (pn[(d + 25) | 0] = ((2047 & Yn) << 21) | (et >>> 11)), - (pn[(d + 24) | 0] = ((7 & Yn) << 29) | (et >>> 3)), - (pn[(d + 23) | 0] = - (31 & (((65535 & Un) << 16) | (gt >>> 16))) | (et << 5)), - (wn = Yn >> 21), - (wn = - (Un = ((2097151 & Yn) << 11) | (et >>> 21)) >>> 0 > - (Yn = (Un + (2097151 & pt)) | 0) >>> 0 - ? (wn + 1) | 0 - : wn), - (pn[(d + 27) | 0] = ((63 & wn) << 26) | (Yn >>> 6)), - (nt = 0), - (pn[(d + 26) | 0] = - (nt << 13) | ((1572864 & et) >>> 19) | (Yn << 2)), - (Un = wn >> 21), - (Un = - (wn = - ((et = ((2097151 & wn) << 11) | (Yn >>> 21)) + - (2097151 & at)) | - 0) >>> - 0 < - et >>> 0 - ? (Un + 1) | 0 - : Un), - (pn[(d + 31) | 0] = ((131071 & Un) << 15) | (wn >>> 17)), - (pn[(d + 30) | 0] = ((511 & Un) << 23) | (wn >>> 9)), - (pn[(d + 29) | 0] = ((1 & Un) << 31) | (wn >>> 1)), - (et = 0), - (pn[(d + 28) | 0] = - (et << 18) | ((2080768 & Yn) >>> 14) | (wn << 7)) - } - function Qu(d, a) { - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0, - Gr = 0, - er = 0, - or = 0, - It = 0, - Ot = 0, - Nt = 0, - _r = 0 - if (((St = h = (St - 4096) | 0), d)) { - e: { - n: { - if ((0 | (cn = c[(d + 36) >> 2])) == 2) { - if ( - ((wr = c[(d + 4) >> 2]), - (Er = c[a >> 2]) | - ((Ar = rn[(a + 8) | 0]) >>> 0 >= 2)) - ) - break n - Er = 0 - } else - (Ar = rn[(a + 8) | 0]), - (wr = c[(d + 4) >> 2]), - (Er = c[a >> 2]) - if ( - (qo((h + 3072) | 0, 0, 1024), - qo((h + 2104) | 0, 0, 968), - (c[(h + 2048) >> 2] = Er), - (c[(h + 2052) >> 2] = 0), - (Ht = c[(a + 4) >> 2]), - (c[(h + 2064) >> 2] = Ar), - (c[(h + 2068) >> 2] = 0), - (c[(h + 2056) >> 2] = Ht), - (c[(h + 2060) >> 2] = 0), - (c[(h + 2072) >> 2] = c[(d + 16) >> 2]), - (c[(h + 2076) >> 2] = 0), - (Ht = c[(d + 8) >> 2]), - (c[(h + 2088) >> 2] = cn), - (c[(h + 2092) >> 2] = 0), - (c[(h + 2080) >> 2] = Ht), - (c[(h + 2084) >> 2] = 0), - !c[(d + 20) >> 2]) - ) - break e - for ( - Ht = 0; - (pt = 127 & Dn) || - ((Ht = (Qt = (Qt + 1) | 0) ? Ht : (Ht + 1) | 0), - (c[(h + 2096) >> 2] = Qt), - (c[(h + 2100) >> 2] = Ht), - (cn = qo(h, 0, 1024)), - qo((cn + 1024) | 0, 0, 1024), - Hu((g = (cn + 3072) | 0), (cn + 2048) | 0, cn), - Hu(g, cn, (cn + 1024) | 0)), - (pt = - c[ - (4 + (cn = (((h + 1024) | 0) + (pt << 3)) | 0)) >> - 2 - ]), - (c[(g = ((Dn << 3) + wr) | 0) >> 2] = c[cn >> 2]), - (c[(g + 4) >> 2] = pt), - (pt = c[(d + 20) >> 2]) >>> 0 > - (Dn = (Dn + 1) | 0) >>> 0; - - ); - break e - } - ;(pt = c[(d + 20) >> 2]), (or = 1) - } - if (!((Ht = (Gr = !(Ar | Er)) << 1) >>> 0 >= pt >>> 0)) - for ( - cn = c[(d + 24) >> 2], - Br = c[(a + 4) >> 2], - Dn = - ((Qt = (((zr(cn, Br) + Ht) | 0) + zr(pt, Ar)) | 0) + - ((Qt >>> 0) % (cn >>> 0) | 0 ? -1 : (cn - 1) | 0)) | - 0, - It = (Ar + 1) | 0; - ; - - ) { - ;(g = c[(d + 28) >> 2]), - (Dr = - ((Qt >>> 0) % ((cn = c[(d + 24) >> 2]) >>> 0) | 0) == - 1 - ? (Qt - 1) | 0 - : Dn), - (Dn = or - ? (c[(c[d >> 2] + 4) >> 2] + (Dr << 10)) | 0 - : ((Ht << 3) + wr) | 0), - (_e = c[Dn >> 2]), - (Dn = c[(Dn + 4) >> 2]), - (c[(a + 12) >> 2] = Ht), - (g = Gr ? Br : (Dn >>> 0) % (g >>> 0) | 0) - e: if (Er) - (Dn = - (cn + - ((0 | g) == (0 | Br) - ? ((-1 ^ pt) + Ht) | 0 - : ((Ht ? 0 : -1) - pt) | 0)) | - 0), - (on = 0), - (0 | Ar) != 3 && (on = zr(pt, It)) - else { - if (!Ar) { - ;(Dn = (Ht - 1) | 0), (on = 0) - break e - } - if (((Dn = zr(pt, Ar)), (0 | g) == (0 | Br))) { - ;(Dn = (((Dn + Ht) | 0) - 1) | 0), (on = 0) - break e - } - ;(Dn = (Dn - !Ht) | 0), (on = 0) - } - if ( - (($n = - ((pt = c[(c[d >> 2] + 4) >> 2]) + (zr(g, cn) << 10)) | - 0), - (on = - (hn = g = (Dn - 1) | 0) >>> 0 > - (g = (g + on) | 0) >>> 0), - jn(_e, 0, _e, 0), - jn(Dn, 0, On, 0), - Ul( - (g - (Dn = On)) | 0, - (on - (g >>> 0 < Dn >>> 0)) | 0, - cn, - ), - (On = lu), - (Dn = ((cu << 10) + $n) | 0), - (cn = (pt + (Dr << 10)) | 0), - (er = (pt + (Qt << 10)) | 0), - Er) - ) - Hu(cn, Dn, er) - else { - for ( - Qo((h + 3072) | 0, Dn, 1024), Dn = 0; - (on = - c[ - (_e = - ((pt = Dn << 3) + (g = (h + 3072) | 0)) | 0) >> - 2 - ]), - (Un = c[($n = (cn + pt) | 0) >> 2]), - ($n = c[(_e + 4) >> 2] ^ c[($n + 4) >> 2]), - (c[_e >> 2] = on ^ Un), - (c[(_e + 4) >> 2] = $n), - ($n = c[(_e = ((on = 8 | pt) + g) | 0) >> 2]), - (Un = c[(on = (cn + on) | 0) >> 2]), - (on = c[(_e + 4) >> 2] ^ c[(on + 4) >> 2]), - (c[_e >> 2] = $n ^ Un), - (c[(_e + 4) >> 2] = on), - ($n = c[(_e = ((on = 16 | pt) + g) | 0) >> 2]), - (Un = c[(on = (cn + on) | 0) >> 2]), - (on = c[(_e + 4) >> 2] ^ c[(on + 4) >> 2]), - (c[_e >> 2] = $n ^ Un), - (c[(_e + 4) >> 2] = on), - (g = c[(pt = (g + (_e = 24 | pt)) | 0) >> 2]), - (on = c[(_e = (_e + cn) | 0) >> 2]), - (_e = c[(pt + 4) >> 2] ^ c[(_e + 4) >> 2]), - (c[pt >> 2] = g ^ on), - (c[(pt + 4) >> 2] = _e), - (0 | (Dn = (Dn + 4) | 0)) != 128; - - ); - for ( - Qo((h + 2048) | 0, (h + 3072) | 0, 1024), - pt = 0, - Dn = 0; - ($n = - ((on = - c[ - (56 + - (cn = (((h + 3072) | 0) + (Dn << 7)) | 0)) >> - 2 - ]) + - (_e = c[(cn + 24) >> 2])) | - 0), - (Un = - ((hn = c[(cn + 60) >> 2]) + - (g = c[(cn + 28) >> 2])) | - 0), - (wn = jn( - (_e << 1) & -2, - 1 & ((g << 1) | (_e >>> 31)), - on, - 0, - )), - (_e = - (On + (_e >>> 0 > $n >>> 0 ? (Un + 1) | 0 : Un)) | - 0), - ($n = - (g = (wn + $n) | 0) >>> 0 < wn >>> 0 - ? (_e + 1) | 0 - : _e), - (wn = - ((Un = st( - g ^ c[(cn + 120) >> 2], - $n ^ c[(cn + 124) >> 2], - 32, - )) + - (_e = c[(cn + 88) >> 2])) | - 0), - (j = ((nt = On) + (Ct = c[(cn + 92) >> 2])) | 0), - (Yn = on), - (Ct = jn( - Un, - 0, - (_e << 1) & -2, - 1 & ((Ct << 1) | (_e >>> 31)), - )), - (_e = - (On + (_e >>> 0 > wn >>> 0 ? (j + 1) | 0 : j)) | - 0), - (Tt = st( - Yn ^ (on = (Ct + wn) | 0), - hn ^ - (jt = on >>> 0 < Ct >>> 0 ? (_e + 1) | 0 : _e), - 40, - )), - (wn = (1 + (_e = ($n + (Xt = On)) | 0)) | 0), - (hn = _e), - (wn = - (_e = (g + Tt) | 0) >>> 0 < g >>> 0 ? wn : hn), - (Ct = - ((g = jn( - Tt, - 0, - (g << 1) & -2, - 1 & (($n << 1) | (g >>> 31)), - )) + - _e) | - 0), - (_e = (On + wn) | 0), - (yt = st( - Ct ^ Un, - nt ^ - (tr = g >>> 0 > Ct >>> 0 ? (_e + 1) | 0 : _e), - 48, - )), - (kt = Yn = On), - ($n = - ((et = c[(cn + 44) >> 2]) + - (g = c[(cn + 12) >> 2])) | - 0), - (wn = - ((Un = c[(cn + 40) >> 2]) + - (_e = c[(cn + 8) >> 2])) | - 0), - (j = jn( - (_e << 1) & -2, - 1 & ((g << 1) | (_e >>> 31)), - Un, - 0, - )), - (_e = - (On + (_e >>> 0 > wn >>> 0 ? ($n + 1) | 0 : $n)) | - 0), - (wn = - (g = (wn + j) | 0) >>> 0 < j >>> 0 - ? (_e + 1) | 0 - : _e), - (hn = - ((j = st( - g ^ c[(cn + 104) >> 2], - wn ^ c[(cn + 108) >> 2], - 32, - )) + - ($n = c[(cn + 72) >> 2])) | - 0), - (nt = ((gt = On) + (_e = c[(cn + 76) >> 2])) | 0), - (at = Un), - (Un = jn( - j, - 0, - ($n << 1) & -2, - 1 & ((_e << 1) | ($n >>> 31)), - )), - ($n = - (On + (hn >>> 0 < $n >>> 0 ? (nt + 1) | 0 : nt)) | - 0), - (Un = st( - at ^ (_e = (Un + hn) | 0), - et ^ - (hn = _e >>> 0 < Un >>> 0 ? ($n + 1) | 0 : $n), - 40, - )), - (at = (1 + ($n = (wn + (nt = On)) | 0)) | 0), - (et = $n), - (et = - ($n = (g + Un) | 0) >>> 0 < g >>> 0 ? at : et), - (g = jn( - Un, - 0, - (g << 1) & -2, - 1 & ((wn << 1) | (g >>> 31)), - )), - (wn = (On + et) | 0), - (et = st( - ($n = (g + $n) | 0) ^ j, - gt ^ - (dr = g >>> 0 > $n >>> 0 ? (wn + 1) | 0 : wn), - 48, - )), - (j = (1 + (g = (hn + (yr = On)) | 0)) | 0), - (wn = g), - (wn = - (g = (_e + et) | 0) >>> 0 < _e >>> 0 ? j : wn), - (j = Un), - (Un = g), - (g = jn( - et, - 0, - (_e << 1) & -2, - 1 & ((hn << 1) | (_e >>> 31)), - )), - (_e = (On + wn) | 0), - (gt = st( - j ^ (Un = (Un + g) | 0), - nt ^ - (Pt = g >>> 0 > Un >>> 0 ? (_e + 1) | 0 : _e), - 1, - )), - (rt = mt = On), - (wn = - ((At = c[(cn + 36) >> 2]) + - (g = c[(cn + 4) >> 2])) | - 0), - (hn = - ((j = c[(cn + 32) >> 2]) + (_e = c[cn >> 2])) | - 0), - (nt = jn( - (_e << 1) & -2, - 1 & ((g << 1) | (_e >>> 31)), - j, - 0, - )), - (_e = - (On + (_e >>> 0 > hn >>> 0 ? (wn + 1) | 0 : wn)) | - 0), - (hn = - (g = (hn + nt) | 0) >>> 0 < nt >>> 0 - ? (_e + 1) | 0 - : _e), - (nt = - ((xt = st( - g ^ c[(cn + 96) >> 2], - hn ^ c[(cn + 100) >> 2], - 32, - )) + - (_e = c[(wn = Ut = (cn - -64) | 0) >> 2])) | - 0), - (at = ((Qr = On) + (wn = c[(wn + 4) >> 2])) | 0), - (_t = j), - (j = jn( - xt, - 0, - (_e << 1) & -2, - 1 & ((wn << 1) | (_e >>> 31)), - )), - (_e = - (On + (_e >>> 0 > nt >>> 0 ? (at + 1) | 0 : at)) | - 0), - (at = st( - _t ^ (wn = (j + nt) | 0), - At ^ - (sr = j >>> 0 > wn >>> 0 ? (_e + 1) | 0 : _e), - 40, - )), - (nt = (1 + (_e = (hn + (fr = On)) | 0)) | 0), - (j = _e), - (j = (_e = (g + at) | 0) >>> 0 < g >>> 0 ? nt : j), - (nt = _e), - (_e = jn( - at, - 0, - (g << 1) & -2, - 1 & ((hn << 1) | (g >>> 31)), - )), - (j = (On + j) | 0), - (j = - (1 + - (_e = - (mt + - (Zt = - (g = (nt + _e) | 0) >>> 0 < _e >>> 0 - ? (j + 1) | 0 - : j)) | - 0)) | - 0), - (hn = _e), - (hn = (_e = (g + gt) | 0) >>> 0 < g >>> 0 ? j : hn), - (j = _e), - (_e = jn( - gt, - 0, - (g << 1) & -2, - 1 & ((Zt << 1) | (g >>> 31)), - )), - (hn = (On + hn) | 0), - (Yn = st( - (j = (j + _e) | 0) ^ yt, - Yn ^ - (Jt = _e >>> 0 > j >>> 0 ? (hn + 1) | 0 : hn), - 32, - )), - (hr = On), - (nt = - ((Rt = c[(cn + 52) >> 2]) + - (_e = c[(cn + 20) >> 2])) | - 0), - (At = - ((mt = c[(cn + 48) >> 2]) + - (hn = c[(cn + 16) >> 2])) | - 0), - (wt = jn( - (hn << 1) & -2, - 1 & ((_e << 1) | (hn >>> 31)), - mt, - 0, - )), - (hn = - (On + (hn >>> 0 > At >>> 0 ? (nt + 1) | 0 : nt)) | - 0), - (At = - (_e = (At + wt) | 0) >>> 0 < wt >>> 0 - ? (hn + 1) | 0 - : hn), - (rr = - ((wt = st( - _e ^ c[(cn + 112) >> 2], - At ^ c[(cn + 116) >> 2], - 32, - )) + - (nt = c[(cn + 80) >> 2])) | - 0), - (_t = ((tt = On) + (hn = c[(cn + 84) >> 2])) | 0), - (bt = mt), - (mt = jn( - wt, - 0, - (nt << 1) & -2, - 1 & ((hn << 1) | (nt >>> 31)), - )), - (nt = - (On + (nt >>> 0 > rr >>> 0 ? (_t + 1) | 0 : _t)) | - 0), - (mt = st( - bt ^ (hn = (mt + rr) | 0), - Rt ^ - (rr = hn >>> 0 < mt >>> 0 ? (nt + 1) | 0 : nt), - 40, - )), - (bt = (1 + (nt = (At + (Rt = On)) | 0)) | 0), - (_t = nt), - (_t = - (nt = (_e + mt) | 0) >>> 0 < _e >>> 0 ? bt : _t), - (_e = jn( - mt, - 0, - (_e << 1) & -2, - 1 & ((At << 1) | (_e >>> 31)), - )), - (At = (On + _t) | 0), - (At = st( - (bt = (nt = (_e + nt) | 0) ^ wt), - tt ^ - (wt = _e >>> 0 > nt >>> 0 ? (At + 1) | 0 : At), - 48, - )), - (bt = (1 + (_e = (rr + (tt = On)) | 0)) | 0), - (_t = _e), - (_t = - (_e = (hn + At) | 0) >>> 0 < hn >>> 0 ? bt : _t), - (hn = jn( - At, - 0, - (hn << 1) & -2, - 1 & ((rr << 1) | (hn >>> 31)), - )), - (rr = (On + _t) | 0), - (bt = - (1 + - (hn = - ((rr = - (_e = (hn + _e) | 0) >>> 0 < hn >>> 0 - ? (rr + 1) | 0 - : rr) + - hr) | - 0)) | - 0), - (_t = hn), - (_t = - (hn = (_e + Yn) | 0) >>> 0 < _e >>> 0 ? bt : _t), - (bt = gt), - (gt = jn( - Yn, - 0, - (_e << 1) & -2, - 1 & ((rr << 1) | (_e >>> 31)), - )), - (_t = (On + _t) | 0), - (gt = st( - bt ^ (hn = (gt + hn) | 0), - rt ^ - (_t = hn >>> 0 < gt >>> 0 ? (_t + 1) | 0 : _t), - 40, - )), - (Ot = (1 + (bt = (Jt + (rt = On)) | 0)) | 0), - (ft = bt), - (ft = - (bt = (j + gt) | 0) >>> 0 < j >>> 0 ? Ot : ft), - (j = - ((Jt = jn( - gt, - 0, - (j << 1) & -2, - 1 & ((Jt << 1) | (j >>> 31)), - )) + - bt) | - 0), - (c[cn >> 2] = j), - (bt = (On + ft) | 0), - (Jt = j >>> 0 < Jt >>> 0 ? (bt + 1) | 0 : bt), - (c[(cn + 4) >> 2] = Jt), - (j = st(j ^ Yn, Jt ^ hr, 48)), - (c[(cn + 120) >> 2] = j), - (Yn = On), - (c[(cn + 124) >> 2] = Yn), - (ft = (1 + (Yn = (Yn + _t) | 0)) | 0), - (bt = Yn), - (Jt = - (Yn = (j + hn) | 0) >>> 0 < hn >>> 0 ? ft : bt), - (j = - ((hn = jn( - j, - 0, - (hn << 1) & -2, - 1 & ((_t << 1) | (hn >>> 31)), - )) + - Yn) | - 0), - (c[(cn + 80) >> 2] = j), - (Yn = (On + Jt) | 0), - (hn = j >>> 0 < hn >>> 0 ? (Yn + 1) | 0 : Yn), - (c[(cn + 84) >> 2] = hn), - (Nt = cn), - (_r = st(j ^ gt, hn ^ rt, 1)), - (c[(Nt + 40) >> 2] = _r), - (c[(cn + 44) >> 2] = On), - (j = st(_e ^ mt, rr ^ Rt, 1)), - (Yn = (1 + (_e = (dr + (mt = On)) | 0)) | 0), - (hn = _e), - (hn = - (_e = (j + $n) | 0) >>> 0 < $n >>> 0 ? Yn : hn), - (_e = - (_e + - (gt = jn( - j, - 0, - ($n << 1) & -2, - 1 & ((dr << 1) | ($n >>> 31)), - ))) | - 0), - ($n = (On + hn) | 0), - (hn = st(g ^ xt, Zt ^ Qr, 48)), - ($n = st( - hn ^ _e, - (gt = _e >>> 0 < gt >>> 0 ? ($n + 1) | 0 : $n) ^ - (dr = On), - 32, - )), - (xt = Yn = On), - (_t = (1 + (g = (jt + kt) | 0)) | 0), - (kt = g), - (Zt = - (g = (on + yt) | 0) >>> 0 < on >>> 0 ? _t : kt), - (on = jn( - yt, - 0, - (on << 1) & -2, - 1 & ((jt << 1) | (on >>> 31)), - )), - (yt = (On + Zt) | 0), - (kt = - (1 + - (on = - ((yt = - (g = (on + g) | 0) >>> 0 < on >>> 0 - ? (yt + 1) | 0 - : yt) + - Yn) | - 0)) | - 0), - (Yn = on), - (Yn = - (on = (g + $n) | 0) >>> 0 < g >>> 0 ? kt : Yn), - (kt = j), - (j = jn( - $n, - 0, - (g << 1) & -2, - 1 & ((yt << 1) | (g >>> 31)), - )), - (Yn = (On + Yn) | 0), - (j = st( - kt ^ (on = (j + on) | 0), - mt ^ - (Yn = on >>> 0 < j >>> 0 ? (Yn + 1) | 0 : Yn), - 40, - )), - (_t = (1 + (jt = (gt + (mt = On)) | 0)) | 0), - (kt = jt), - (Zt = - (jt = (_e + j) | 0) >>> 0 < _e >>> 0 ? _t : kt), - (kt = $n), - ($n = jn( - j, - 0, - (_e << 1) & -2, - 1 & ((gt << 1) | (_e >>> 31)), - )), - (gt = (On + Zt) | 0), - ($n = st( - kt ^ (_e = ($n + jt) | 0), - xt ^ - (gt = _e >>> 0 < $n >>> 0 ? (gt + 1) | 0 : gt), - 48, - )), - (c[(cn + 96) >> 2] = $n), - (jt = On), - (c[(cn + 100) >> 2] = jt), - (c[(cn + 8) >> 2] = _e), - (c[(cn + 12) >> 2] = gt), - (gt = (1 + (_e = (Yn + jt) | 0)) | 0), - (kt = _e), - (gt = - (_e = (on + $n) | 0) >>> 0 < on >>> 0 ? gt : kt), - (on = jn( - $n, - 0, - (on << 1) & -2, - 1 & ((Yn << 1) | (on >>> 31)), - )), - ($n = (On + gt) | 0), - (Nt = cn), - (_r = st( - (_e = (on + _e) | 0) ^ j, - mt ^ - (on = _e >>> 0 < on >>> 0 ? ($n + 1) | 0 : $n), - 1, - )), - (c[(Nt + 48) >> 2] = _r), - (c[(cn + 52) >> 2] = On), - (c[(cn + 88) >> 2] = _e), - (c[(cn + 92) >> 2] = on), - (on = st(g ^ Tt, yt ^ Xt, 1)), - ($n = (1 + (g = (wt + (Tt = On)) | 0)) | 0), - (_e = g), - ($n = - (g = (on + nt) | 0) >>> 0 < nt >>> 0 ? $n : _e), - (_e = g), - (g = jn( - on, - 0, - (nt << 1) & -2, - 1 & ((wt << 1) | (nt >>> 31)), - )), - ($n = (On + $n) | 0), - ($n = st( - (_e = (_e + g) | 0) ^ et, - yr ^ (j = g >>> 0 > _e >>> 0 ? ($n + 1) | 0 : $n), - 32, - )), - (yt = nt = On), - (et = (1 + (g = (sr + dr) | 0)) | 0), - (Yn = g), - (et = - (g = (hn + wn) | 0) >>> 0 < wn >>> 0 ? et : Yn), - (wn = jn( - hn, - 0, - (wn << 1) & -2, - 1 & ((sr << 1) | (wn >>> 31)), - )), - (hn = (On + et) | 0), - (et = - (1 + - (wn = - ((hn = - (g = (g + wn) | 0) >>> 0 < wn >>> 0 - ? (hn + 1) | 0 - : hn) + - nt) | - 0)) | - 0), - (Yn = wn), - (nt = - (wn = (g + $n) | 0) >>> 0 < g >>> 0 ? et : Yn), - (Yn = on), - (on = wn), - (wn = jn( - $n, - 0, - (g << 1) & -2, - 1 & ((hn << 1) | (g >>> 31)), - )), - (nt = (On + nt) | 0), - (wn = st( - Yn ^ (on = (on + wn) | 0), - Tt ^ - (nt = on >>> 0 < wn >>> 0 ? (nt + 1) | 0 : nt), - 40, - )), - (mt = (1 + (et = (j + (Tt = On)) | 0)) | 0), - (Yn = et), - (gt = - (et = (_e + wn) | 0) >>> 0 < _e >>> 0 ? mt : Yn), - (_e = - ((j = jn( - wn, - 0, - (_e << 1) & -2, - 1 & ((j << 1) | (_e >>> 31)), - )) + - et) | - 0), - (c[(cn + 16) >> 2] = _e), - (et = (On + gt) | 0), - (j = _e >>> 0 < j >>> 0 ? (et + 1) | 0 : et), - (c[(cn + 20) >> 2] = j), - (_e = st(_e ^ $n, j ^ yt, 48)), - (c[(cn + 104) >> 2] = _e), - ($n = On), - (c[(cn + 108) >> 2] = $n), - (et = (1 + ($n = ($n + nt) | 0)) | 0), - (Yn = $n), - (j = - ($n = (_e + on) | 0) >>> 0 < on >>> 0 ? et : Yn), - (on = - ((_e = jn( - _e, - 0, - (on << 1) & -2, - 1 & ((nt << 1) | (on >>> 31)), - )) + - $n) | - 0), - ($n = (On + j) | 0), - (nt = _e = _e >>> 0 > on >>> 0 ? ($n + 1) | 0 : $n), - (c[Ut >> 2] = on), - (c[(Ut + 4) >> 2] = _e), - ($n = ((_e = st(g ^ at, hn ^ fr, 1)) + Ct) | 0), - (j = ((yt = On) + tr) | 0), - (g = - ((hn = jn( - (Ct << 1) & -2, - 1 & ((tr << 1) | (Ct >>> 31)), - _e, - 0, - )) + - $n) | - 0), - ($n = - (On + (_e >>> 0 > $n >>> 0 ? (j + 1) | 0 : j)) | - 0), - ($n = st( - g ^ At, - tt ^ (j = g >>> 0 < hn >>> 0 ? ($n + 1) | 0 : $n), - 32, - )), - (et = (1 + (hn = (Pt + (Ct = On)) | 0)) | 0), - (Yn = hn), - (et = - (hn = ($n + Un) | 0) >>> 0 < Un >>> 0 ? et : Yn), - (Yn = _e), - (_e = - ((Un = jn( - $n, - 0, - (Un << 1) & -2, - 1 & ((Pt << 1) | (Un >>> 31)), - )) + - hn) | - 0), - (hn = (On + et) | 0), - (Un = st( - Yn ^ _e, - yt ^ - (hn = _e >>> 0 < Un >>> 0 ? (hn + 1) | 0 : hn), - 40, - )), - (at = (1 + (et = (j + (yt = On)) | 0)) | 0), - (Yn = et), - (gt = - (et = (g + Un) | 0) >>> 0 < g >>> 0 ? at : Yn), - (Yn = $n), - (g = jn( - Un, - 0, - (g << 1) & -2, - 1 & ((j << 1) | (g >>> 31)), - )), - (j = (On + gt) | 0), - (g = st( - Yn ^ ($n = (g + et) | 0), - Ct ^ (j = g >>> 0 > $n >>> 0 ? (j + 1) | 0 : j), - 48, - )), - (at = (1 + (et = (hn + (Ct = On)) | 0)) | 0), - (Yn = et), - (gt = - (et = (g + _e) | 0) >>> 0 < _e >>> 0 ? at : Yn), - (_e = - ((hn = jn( - g, - 0, - (_e << 1) & -2, - 1 & ((hn << 1) | (_e >>> 31)), - )) + - et) | - 0), - (c[(cn + 72) >> 2] = _e), - (et = (On + gt) | 0), - (hn = _e >>> 0 < hn >>> 0 ? (et + 1) | 0 : et), - (c[(cn + 76) >> 2] = hn), - (c[(cn + 112) >> 2] = g), - (c[(cn + 116) >> 2] = Ct), - (c[(cn + 24) >> 2] = $n), - (c[(cn + 28) >> 2] = j), - (Nt = cn), - (_r = st(on ^ wn, nt ^ Tt, 1)), - (c[(Nt + 56) >> 2] = _r), - (c[(cn + 60) >> 2] = On), - (Nt = cn), - (_r = st(_e ^ Un, hn ^ yt, 1)), - (c[(Nt + 32) >> 2] = _r), - (c[(cn + 36) >> 2] = On), - (0 | (Dn = (Dn + 1) | 0)) != 8; - - ); - for ( - ; - (on = - ((_e = - c[ - (392 + - (cn = (((h + 3072) | 0) + (pt << 4)) | 0)) >> - 2 - ]) + - (g = c[(cn + 136) >> 2])) | - 0), - ($n = - ((j = c[(cn + 396) >> 2]) + - (Dn = c[(cn + 140) >> 2])) | - 0), - (Un = jn( - (g << 1) & -2, - 1 & ((Dn << 1) | (g >>> 31)), - _e, - 0, - )), - (g = - (On + (g >>> 0 > on >>> 0 ? ($n + 1) | 0 : $n)) | - 0), - (on = - (Dn = (Un + on) | 0) >>> 0 < Un >>> 0 - ? (g + 1) | 0 - : g), - (Un = - (($n = st( - Dn ^ c[(cn + 904) >> 2], - on ^ c[(cn + 908) >> 2], - 32, - )) + - (g = c[(cn + 648) >> 2])) | - 0), - (wn = ((hn = On) + (nt = c[(cn + 652) >> 2])) | 0), - (Yn = _e), - (nt = jn( - $n, - 0, - (g << 1) & -2, - 1 & ((nt << 1) | (g >>> 31)), - )), - (g = - (On + (g >>> 0 > Un >>> 0 ? (wn + 1) | 0 : wn)) | - 0), - (Ct = st( - Yn ^ (_e = (nt + Un) | 0), - j ^ (At = _e >>> 0 < nt >>> 0 ? (g + 1) | 0 : g), - 40, - )), - (Yn = (1 + (g = (on + (rr = On)) | 0)) | 0), - (wn = g), - (Un = - (g = (Dn + Ct) | 0) >>> 0 < Dn >>> 0 ? Yn : wn), - (nt = - ((Dn = jn( - Ct, - 0, - (Dn << 1) & -2, - 1 & ((on << 1) | (Dn >>> 31)), - )) + - g) | - 0), - (g = (On + Un) | 0), - (Tt = st( - nt ^ $n, - hn ^ (jt = Dn >>> 0 > nt >>> 0 ? (g + 1) | 0 : g), - 48, - )), - (_t = at = On), - (on = - ((yt = c[(cn + 268) >> 2]) + - (Dn = c[(cn + 12) >> 2])) | - 0), - (Un = - (($n = c[(cn + 264) >> 2]) + - (g = c[(cn + 8) >> 2])) | - 0), - (wn = jn( - (g << 1) & -2, - 1 & ((Dn << 1) | (g >>> 31)), - $n, - 0, - )), - (g = - (On + (g >>> 0 > Un >>> 0 ? (on + 1) | 0 : on)) | - 0), - (Un = - (Dn = (Un + wn) | 0) >>> 0 < wn >>> 0 - ? (g + 1) | 0 - : g), - (j = - ((wn = st( - Dn ^ c[(cn + 776) >> 2], - Un ^ c[(cn + 780) >> 2], - 32, - )) + - (on = c[(cn + 520) >> 2])) | - 0), - (hn = ((et = On) + (g = c[(cn + 524) >> 2])) | 0), - (Yn = $n), - ($n = jn( - wn, - 0, - (on << 1) & -2, - 1 & ((g << 1) | (on >>> 31)), - )), - (on = - (On + (on >>> 0 > j >>> 0 ? (hn + 1) | 0 : hn)) | - 0), - ($n = st( - Yn ^ (g = ($n + j) | 0), - yt ^ (j = g >>> 0 < $n >>> 0 ? (on + 1) | 0 : on), - 40, - )), - (mt = (1 + (on = (Un + (hn = On)) | 0)) | 0), - (Yn = on), - (yt = - (on = (Dn + $n) | 0) >>> 0 < Dn >>> 0 ? mt : Yn), - (Dn = jn( - $n, - 0, - (Dn << 1) & -2, - 1 & ((Un << 1) | (Dn >>> 31)), - )), - (Un = (On + yt) | 0), - (yt = st( - (on = (Dn + on) | 0) ^ wn, - et ^ - (tr = on >>> 0 < Dn >>> 0 ? (Un + 1) | 0 : Un), - 48, - )), - (Yn = (1 + (Dn = (j + (Xt = On)) | 0)) | 0), - (wn = Dn), - (Un = - (Dn = (g + yt) | 0) >>> 0 < g >>> 0 ? Yn : wn), - (wn = $n), - ($n = Dn), - (Dn = jn( - yt, - 0, - (g << 1) & -2, - 1 & ((j << 1) | (g >>> 31)), - )), - (g = (On + Un) | 0), - (et = st( - wn ^ ($n = ($n + Dn) | 0), - hn ^ (dr = Dn >>> 0 > $n >>> 0 ? (g + 1) | 0 : g), - 1, - )), - (kt = Yn = On), - (Un = - ((mt = c[(cn + 260) >> 2]) + - (Dn = c[(cn + 4) >> 2])) | - 0), - (j = - ((wn = c[(cn + 256) >> 2]) + (g = c[cn >> 2])) | - 0), - (hn = jn( - (g << 1) & -2, - 1 & ((Dn << 1) | (g >>> 31)), - wn, - 0, - )), - (g = - (On + (g >>> 0 > j >>> 0 ? (Un + 1) | 0 : Un)) | - 0), - (j = - (Dn = (j + hn) | 0) >>> 0 < hn >>> 0 - ? (g + 1) | 0 - : g), - (hn = - ((Pt = st( - Dn ^ c[(cn + 768) >> 2], - j ^ c[(cn + 772) >> 2], - 32, - )) + - (g = c[(cn + 512) >> 2])) | - 0), - (gt = ((yr = On) + (Un = c[(cn + 516) >> 2])) | 0), - (Rt = wn), - (wn = jn( - Pt, - 0, - (g << 1) & -2, - 1 & ((Un << 1) | (g >>> 31)), - )), - (g = - (On + (g >>> 0 > hn >>> 0 ? (gt + 1) | 0 : gt)) | - 0), - (gt = st( - Rt ^ (Un = (wn + hn) | 0), - mt ^ (xt = wn >>> 0 > Un >>> 0 ? (g + 1) | 0 : g), - 40, - )), - (wn = (1 + (g = (j + (rt = On)) | 0)) | 0), - (hn = g), - (wn = - (g = (Dn + gt) | 0) >>> 0 < Dn >>> 0 ? wn : hn), - (hn = g), - (g = jn( - gt, - 0, - (Dn << 1) & -2, - 1 & ((j << 1) | (Dn >>> 31)), - )), - (wn = (On + wn) | 0), - (wn = - (1 + - (g = - (Yn + - (Ut = - g >>> 0 > (Dn = (hn + g) | 0) >>> 0 - ? (wn + 1) | 0 - : wn)) | - 0)) | - 0), - (hn = g), - (j = - (g = (Dn + et) | 0) >>> 0 < Dn >>> 0 ? wn : hn), - (hn = g), - (g = jn( - et, - 0, - (Dn << 1) & -2, - 1 & ((Ut << 1) | (Dn >>> 31)), - )), - (j = (On + j) | 0), - (at = st( - (wn = (hn + g) | 0) ^ Tt, - at ^ (sr = g >>> 0 > wn >>> 0 ? (j + 1) | 0 : j), - 32, - )), - (Qr = On), - (hn = - ((fr = c[(cn + 388) >> 2]) + - (g = c[(cn + 132) >> 2])) | - 0), - (mt = - ((Yn = c[(cn + 384) >> 2]) + - (j = c[(cn + 128) >> 2])) | - 0), - (Zt = jn( - (j << 1) & -2, - 1 & ((g << 1) | (j >>> 31)), - Yn, - 0, - )), - (j = - (On + (j >>> 0 > mt >>> 0 ? (hn + 1) | 0 : hn)) | - 0), - (mt = - (g = (mt + Zt) | 0) >>> 0 < Zt >>> 0 - ? (j + 1) | 0 - : j), - (Jt = - ((Zt = st( - g ^ c[(cn + 896) >> 2], - mt ^ c[(cn + 900) >> 2], - 32, - )) + - (hn = c[(cn + 640) >> 2])) | - 0), - (wt = ((hr = On) + (j = c[(cn + 644) >> 2])) | 0), - (Rt = Yn), - (Yn = jn( - Zt, - 0, - (hn << 1) & -2, - 1 & ((j << 1) | (hn >>> 31)), - )), - (hn = - (On + (hn >>> 0 > Jt >>> 0 ? (wt + 1) | 0 : wt)) | - 0), - (Yn = st( - Rt ^ (j = (Yn + Jt) | 0), - fr ^ - (Jt = j >>> 0 < Yn >>> 0 ? (hn + 1) | 0 : hn), - 40, - )), - (bt = (1 + (hn = (mt + (fr = On)) | 0)) | 0), - (Rt = hn), - (wt = - (hn = (g + Yn) | 0) >>> 0 < g >>> 0 ? bt : Rt), - (g = jn( - Yn, - 0, - (g << 1) & -2, - 1 & ((mt << 1) | (g >>> 31)), - )), - (mt = (On + wt) | 0), - (mt = st( - (Rt = (hn = (g + hn) | 0) ^ Zt), - hr ^ - (Zt = g >>> 0 > hn >>> 0 ? (mt + 1) | 0 : mt), - 48, - )), - (bt = (1 + (g = (Jt + (hr = On)) | 0)) | 0), - (Rt = g), - (wt = (g = (j + mt) | 0) >>> 0 < j >>> 0 ? bt : Rt), - (j = jn( - mt, - 0, - (j << 1) & -2, - 1 & ((Jt << 1) | (j >>> 31)), - )), - (Jt = (On + wt) | 0), - (bt = - (1 + - (j = - ((Jt = - (g = (j + g) | 0) >>> 0 < j >>> 0 - ? (Jt + 1) | 0 - : Jt) + - Qr) | - 0)) | - 0), - (Rt = j), - (wt = (j = (g + at) | 0) >>> 0 < g >>> 0 ? bt : Rt), - (Rt = et), - (et = jn( - at, - 0, - (g << 1) & -2, - 1 & ((Jt << 1) | (g >>> 31)), - )), - (wt = (On + wt) | 0), - (et = st( - Rt ^ (j = (et + j) | 0), - kt ^ - (wt = j >>> 0 < et >>> 0 ? (wt + 1) | 0 : wt), - 40, - )), - (ft = (1 + (Rt = (sr + (kt = On)) | 0)) | 0), - (bt = Rt), - (tt = - (Rt = (wn + et) | 0) >>> 0 < wn >>> 0 ? ft : bt), - (wn = - ((sr = jn( - et, - 0, - (wn << 1) & -2, - 1 & ((sr << 1) | (wn >>> 31)), - )) + - Rt) | - 0), - (c[cn >> 2] = wn), - (Rt = (On + tt) | 0), - (sr = wn >>> 0 < sr >>> 0 ? (Rt + 1) | 0 : Rt), - (c[(cn + 4) >> 2] = sr), - (wn = st(wn ^ at, sr ^ Qr, 48)), - (c[(cn + 904) >> 2] = wn), - (at = On), - (c[(cn + 908) >> 2] = at), - (bt = (1 + (at = (at + wt) | 0)) | 0), - (Rt = at), - (sr = - (at = (j + wn) | 0) >>> 0 < j >>> 0 ? bt : Rt), - (wn = - ((j = jn( - wn, - 0, - (j << 1) & -2, - 1 & ((wt << 1) | (j >>> 31)), - )) + - at) | - 0), - (c[(cn + 640) >> 2] = wn), - (at = (On + sr) | 0), - (j = j >>> 0 > wn >>> 0 ? (at + 1) | 0 : at), - (c[(cn + 644) >> 2] = j), - (Nt = cn), - (_r = st(wn ^ et, j ^ kt, 1)), - (c[(Nt + 264) >> 2] = _r), - (c[(cn + 268) >> 2] = On), - (wn = st(g ^ Yn, Jt ^ fr, 1)), - (j = (1 + (g = (tr + (Yn = On)) | 0)) | 0), - (et = g), - (j = (g = (on + wn) | 0) >>> 0 < on >>> 0 ? j : et), - (g = - (g + - (et = jn( - wn, - 0, - (on << 1) & -2, - 1 & ((tr << 1) | (on >>> 31)), - ))) | - 0), - (on = (On + j) | 0), - (j = st(Dn ^ Pt, Ut ^ yr, 48)), - (on = st( - j ^ g, - (et = g >>> 0 < et >>> 0 ? (on + 1) | 0 : on) ^ - (tr = On), - 32, - )), - (Pt = at = On), - (_t = (1 + (Dn = (At + _t) | 0)) | 0), - (kt = Dn), - (Ut = - (Dn = (_e + Tt) | 0) >>> 0 < _e >>> 0 ? _t : kt), - (_e = jn( - Tt, - 0, - (_e << 1) & -2, - 1 & ((At << 1) | (_e >>> 31)), - )), - (Tt = (On + Ut) | 0), - (kt = - (1 + - (_e = - ((Tt = - _e >>> 0 > (Dn = (_e + Dn) | 0) >>> 0 - ? (Tt + 1) | 0 - : Tt) + - at) | - 0)) | - 0), - (at = _e), - (at = - (_e = (on + Dn) | 0) >>> 0 < Dn >>> 0 ? kt : at), - (kt = wn), - (wn = jn( - on, - 0, - (Dn << 1) & -2, - 1 & ((Tt << 1) | (Dn >>> 31)), - )), - (at = (On + at) | 0), - (wn = st( - kt ^ (_e = (wn + _e) | 0), - Yn ^ - (at = _e >>> 0 < wn >>> 0 ? (at + 1) | 0 : at), - 40, - )), - (_t = (1 + (At = (et + (Yn = On)) | 0)) | 0), - (kt = At), - (Ut = - (At = (g + wn) | 0) >>> 0 < g >>> 0 ? _t : kt), - (kt = on), - (on = jn( - wn, - 0, - (g << 1) & -2, - 1 & ((et << 1) | (g >>> 31)), - )), - (et = (On + Ut) | 0), - (on = st( - kt ^ (g = (on + At) | 0), - Pt ^ - (et = g >>> 0 < on >>> 0 ? (et + 1) | 0 : et), - 48, - )), - (c[(cn + 768) >> 2] = on), - (At = On), - (c[(cn + 772) >> 2] = At), - (c[(cn + 8) >> 2] = g), - (c[(cn + 12) >> 2] = et), - (kt = (1 + (g = (at + At) | 0)) | 0), - (et = g), - (et = - (g = (_e + on) | 0) >>> 0 < _e >>> 0 ? kt : et), - (g = - ((_e = jn( - on, - 0, - (_e << 1) & -2, - 1 & ((at << 1) | (_e >>> 31)), - )) + - g) | - 0), - (c[(cn + 648) >> 2] = g), - (on = (On + et) | 0), - (_e = g >>> 0 < _e >>> 0 ? (on + 1) | 0 : on), - (c[(cn + 652) >> 2] = _e), - (Nt = cn), - (_r = st(g ^ wn, _e ^ Yn, 1)), - (c[(Nt + 384) >> 2] = _r), - (c[(cn + 388) >> 2] = On), - (_e = st(Dn ^ Ct, Tt ^ rr, 1)), - (on = (1 + (Dn = (Zt + (Ct = On)) | 0)) | 0), - (g = Dn), - (on = - (Dn = (_e + hn) | 0) >>> 0 < hn >>> 0 ? on : g), - (g = Dn), - (Dn = jn( - _e, - 0, - (hn << 1) & -2, - 1 & ((Zt << 1) | (hn >>> 31)), - )), - (on = (On + on) | 0), - (on = st( - (g = (g + Dn) | 0) ^ yt, - Xt ^ - (wn = g >>> 0 < Dn >>> 0 ? (on + 1) | 0 : on), - 32, - )), - (Tt = hn = On), - (et = (1 + (Dn = (tr + xt) | 0)) | 0), - (Yn = Dn), - (yt = - (Dn = (j + Un) | 0) >>> 0 < Un >>> 0 ? et : Yn), - (Un = jn( - j, - 0, - (Un << 1) & -2, - 1 & ((xt << 1) | (Un >>> 31)), - )), - (j = (On + yt) | 0), - (Yn = - (1 + - (Un = - ((j = - (Dn = (Dn + Un) | 0) >>> 0 < Un >>> 0 - ? (j + 1) | 0 - : j) + - hn) | - 0)) | - 0), - (hn = Un), - (hn = - (Un = (on + Dn) | 0) >>> 0 < Dn >>> 0 ? Yn : hn), - (Yn = _e), - (_e = Un), - (Un = jn( - on, - 0, - (Dn << 1) & -2, - 1 & ((j << 1) | (Dn >>> 31)), - )), - (hn = (On + hn) | 0), - (Un = st( - Yn ^ (_e = (_e + Un) | 0), - Ct ^ - (hn = _e >>> 0 < Un >>> 0 ? (hn + 1) | 0 : hn), - 40, - )), - (et = (1 + (yt = (wn + (Ct = On)) | 0)) | 0), - (Yn = yt), - (et = - (yt = (g + Un) | 0) >>> 0 < g >>> 0 ? et : Yn), - (Yn = on), - (on = jn( - Un, - 0, - (g << 1) & -2, - 1 & ((wn << 1) | (g >>> 31)), - )), - (wn = (On + et) | 0), - (on = st( - Yn ^ (g = (on + yt) | 0), - Tt ^ - (wn = g >>> 0 < on >>> 0 ? (wn + 1) | 0 : wn), - 48, - )), - (c[(cn + 776) >> 2] = on), - (Tt = On), - (c[(cn + 780) >> 2] = Tt), - (c[(cn + 128) >> 2] = g), - (c[(cn + 132) >> 2] = wn), - (Yn = (1 + (g = (hn + Tt) | 0)) | 0), - (wn = g), - (wn = - (g = (_e + on) | 0) >>> 0 < _e >>> 0 ? Yn : wn), - (g = - ((_e = jn( - on, - 0, - (_e << 1) & -2, - 1 & ((hn << 1) | (_e >>> 31)), - )) + - g) | - 0), - (c[(cn + 512) >> 2] = g), - (on = (On + wn) | 0), - (_e = g >>> 0 < _e >>> 0 ? (on + 1) | 0 : on), - (c[(cn + 516) >> 2] = _e), - (Nt = cn), - (_r = st(g ^ Un, _e ^ Ct, 1)), - (c[(Nt + 392) >> 2] = _r), - (c[(cn + 396) >> 2] = On), - (_e = ((g = st(Dn ^ gt, j ^ rt, 1)) + nt) | 0), - (on = ((wn = On) + jt) | 0), - (Dn = - ((Un = jn( - (nt << 1) & -2, - 1 & ((jt << 1) | (nt >>> 31)), - g, - 0, - )) + - _e) | - 0), - (_e = - (On + (g >>> 0 > _e >>> 0 ? (on + 1) | 0 : on)) | - 0), - (_e = st( - Dn ^ mt, - hr ^ - (Un = Dn >>> 0 < Un >>> 0 ? (_e + 1) | 0 : _e), - 32, - )), - (Yn = (1 + (on = (dr + (j = On)) | 0)) | 0), - (hn = on), - (hn = - (on = (_e + $n) | 0) >>> 0 < $n >>> 0 ? Yn : hn), - (Yn = g), - (g = on), - (on = jn( - _e, - 0, - ($n << 1) & -2, - 1 & ((dr << 1) | ($n >>> 31)), - )), - ($n = (On + hn) | 0), - (on = st( - Yn ^ (g = (g + on) | 0), - wn ^ - ($n = g >>> 0 < on >>> 0 ? ($n + 1) | 0 : $n), - 40, - )), - (et = (1 + (hn = (Un + (wn = On)) | 0)) | 0), - (Yn = hn), - (nt = - (hn = (on + Dn) | 0) >>> 0 < Dn >>> 0 ? et : Yn), - (Yn = _e), - (_e = jn( - on, - 0, - (Dn << 1) & -2, - 1 & ((Un << 1) | (Dn >>> 31)), - )), - (Un = (On + nt) | 0), - (_e = st( - Yn ^ (Dn = (_e + hn) | 0), - j ^ - (Un = _e >>> 0 > Dn >>> 0 ? (Un + 1) | 0 : Un), - 48, - )), - (c[(cn + 896) >> 2] = _e), - (j = On), - (c[(cn + 900) >> 2] = j), - (c[(cn + 136) >> 2] = Dn), - (c[(cn + 140) >> 2] = Un), - (Yn = (1 + (Dn = (j + $n) | 0)) | 0), - (hn = Dn), - (Un = - (Dn = (g + _e) | 0) >>> 0 < g >>> 0 ? Yn : hn), - (Dn = - ((g = jn( - _e, - 0, - (g << 1) & -2, - 1 & (($n << 1) | (g >>> 31)), - )) + - Dn) | - 0), - (c[(cn + 520) >> 2] = Dn), - (_e = (On + Un) | 0), - (g = g >>> 0 > Dn >>> 0 ? (_e + 1) | 0 : _e), - (c[(cn + 524) >> 2] = g), - (Nt = cn), - (_r = st(on ^ Dn, g ^ wn, 1)), - (c[(Nt + 256) >> 2] = _r), - (c[(cn + 260) >> 2] = On), - (0 | (pt = (pt + 1) | 0)) != 8; - - ); - for ( - cn = Qo(er, (h + 2048) | 0, 1024), Dn = 0; - (on = c[(g = ((pt = Dn << 3) + cn) | 0) >> 2]), - (Un = - c[($n = ((_e = (h + 3072) | 0) + pt) | 0) >> 2]), - ($n = c[(g + 4) >> 2] ^ c[($n + 4) >> 2]), - (c[g >> 2] = on ^ Un), - (c[(g + 4) >> 2] = $n), - ($n = c[(g = ((on = 8 | pt) + cn) | 0) >> 2]), - (Un = c[(on = (_e + on) | 0) >> 2]), - (on = c[(g + 4) >> 2] ^ c[(on + 4) >> 2]), - (c[g >> 2] = $n ^ Un), - (c[(g + 4) >> 2] = on), - ($n = c[(g = ((on = 16 | pt) + cn) | 0) >> 2]), - (Un = c[(on = (_e + on) | 0) >> 2]), - (on = c[(g + 4) >> 2] ^ c[(on + 4) >> 2]), - (c[g >> 2] = $n ^ Un), - (c[(g + 4) >> 2] = on), - (on = c[(pt = ((g = 24 | pt) + cn) | 0) >> 2]), - (_e = c[(g = (g + _e) | 0) >> 2]), - (g = c[(pt + 4) >> 2] ^ c[(g + 4) >> 2]), - (c[pt >> 2] = _e ^ on), - (c[(pt + 4) >> 2] = g), - (0 | (Dn = (Dn + 4) | 0)) != 128; - - ); - } - if ( - ((Dn = (Dr + 1) | 0), - (Qt = (Qt + 1) | 0), - !( - (pt = c[(d + 20) >> 2]) >>> 0 > - (Ht = (Ht + 1) | 0) >>> 0 - )) - ) - break - } - } - St = (h + 4096) | 0 - } - function Hu(d, a, h) { - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0 - for ( - St = hn = (St - 2048) | 0, - Qo((hn + 1024) | 0, a, 1024), - a = 0; - (on = - c[($n = ((j = (hn + 1024) | 0) + (_e = a << 3)) | 0) >> 2]), - (Dn = c[(wn = (d + _e) | 0) >> 2]), - (wn = c[($n + 4) >> 2] ^ c[(wn + 4) >> 2]), - (c[$n >> 2] = on ^ Dn), - (c[($n + 4) >> 2] = wn), - (wn = c[($n = ((on = 8 | _e) + j) | 0) >> 2]), - (Dn = c[(on = (d + on) | 0) >> 2]), - (on = c[($n + 4) >> 2] ^ c[(on + 4) >> 2]), - (c[$n >> 2] = Dn ^ wn), - (c[($n + 4) >> 2] = on), - (wn = c[($n = ((on = 16 | _e) + j) | 0) >> 2]), - (Dn = c[(on = (d + on) | 0) >> 2]), - (on = c[($n + 4) >> 2] ^ c[(on + 4) >> 2]), - (c[$n >> 2] = Dn ^ wn), - (c[($n + 4) >> 2] = on), - ($n = c[(_e = ((on = j) + (j = 24 | _e)) | 0) >> 2]), - (on = c[(j = (d + j) | 0) >> 2]), - (j = c[(_e + 4) >> 2] ^ c[(j + 4) >> 2]), - (c[_e >> 2] = on ^ $n), - (c[(_e + 4) >> 2] = j), - (0 | (a = (a + 4) | 0)) != 128; - - ); - for ( - g = Qo(hn, (hn + 1024) | 0, 1024), d = 0, a = 0; - (j = c[(_e = ((hn = a << 3) + g) | 0) >> 2]), - (on = c[($n = (h + hn) | 0) >> 2]), - ($n = c[(_e + 4) >> 2] ^ c[($n + 4) >> 2]), - (c[_e >> 2] = on ^ j), - (c[(_e + 4) >> 2] = $n), - ($n = c[(_e = ((j = 8 | hn) + g) | 0) >> 2]), - (on = c[(j = (h + j) | 0) >> 2]), - (j = c[(_e + 4) >> 2] ^ c[(j + 4) >> 2]), - (c[_e >> 2] = on ^ $n), - (c[(_e + 4) >> 2] = j), - ($n = c[(_e = ((j = 16 | hn) + g) | 0) >> 2]), - (on = c[(j = (h + j) | 0) >> 2]), - (j = c[(_e + 4) >> 2] ^ c[(j + 4) >> 2]), - (c[_e >> 2] = on ^ $n), - (c[(_e + 4) >> 2] = j), - (j = c[(hn = ((_e = 24 | hn) + g) | 0) >> 2]), - ($n = c[(_e = (h + _e) | 0) >> 2]), - (_e = c[(hn + 4) >> 2] ^ c[(_e + 4) >> 2]), - (c[hn >> 2] = j ^ $n), - (c[(hn + 4) >> 2] = _e), - (0 | (a = (a + 4) | 0)) != 128; - - ); - for ( - ; - (wn = - ((on = - c[(56 + (hn = (((g + 1024) | 0) + (d << 7)) | 0)) >> 2]) + - (_e = c[(hn + 24) >> 2])) | - 0), - (a = - ((mt = c[(hn + 60) >> 2]) + (j = c[(hn + 28) >> 2])) | 0), - ($n = _e >>> 0 > wn >>> 0 ? (a + 1) | 0 : a), - (j = jn( - (_e << 1) & -2, - 1 & ((j << 1) | (_e >>> 31)), - on, - 0, - )), - (a = (On + $n) | 0), - ($n = - (_e = (j + wn) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (at = - ((wn = st( - c[(hn + 120) >> 2] ^ _e, - $n ^ c[(hn + 124) >> 2], - 32, - )) + - (j = c[(hn + 88) >> 2])) | - 0), - (a = ((Un = On) + (Dn = c[(hn + 92) >> 2])) | 0), - (cn = j >>> 0 > at >>> 0 ? (a + 1) | 0 : a), - (Dn = jn( - (j << 1) & -2, - 1 & ((Dn << 1) | (j >>> 31)), - wn, - 0, - )), - (a = (On + cn) | 0), - (dr = st( - on ^ (j = (Dn + at) | 0), - mt ^ (at = j >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = ($n + (xt = On)) | 0), - (on = - (Dn = (_e + dr) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = jn( - dr, - 0, - (_e << 1) & -2, - 1 & (($n << 1) | (_e >>> 31)), - )), - (a = (On + on) | 0), - (Ht = st( - wn ^ (mt = (_e + Dn) | 0), - Un ^ (Tt = _e >>> 0 > mt >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (fr = a = On), - (Yn = Ht), - (Dn = - ((wn = c[(hn + 40) >> 2]) + (_e = c[(hn + 8) >> 2])) | 0), - (a = - ((nt = c[(hn + 44) >> 2]) + ($n = c[(hn + 12) >> 2])) | - 0), - (on = _e >>> 0 > Dn >>> 0 ? (a + 1) | 0 : a), - ($n = jn( - (_e << 1) & -2, - 1 & (($n << 1) | (_e >>> 31)), - wn, - 0, - )), - (a = (On + on) | 0), - (on = - (_e = ($n + Dn) | 0) >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (bt = - ((Dn = st( - c[(hn + 104) >> 2] ^ _e, - on ^ c[(hn + 108) >> 2], - 32, - )) + - ($n = c[(hn + 72) >> 2])) | - 0), - (a = ((et = On) + (cn = c[(hn + 76) >> 2])) | 0), - (Un = $n >>> 0 > bt >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - ($n << 1) & -2, - 1 & ((cn << 1) | ($n >>> 31)), - Dn, - 0, - )), - (a = (On + Un) | 0), - (cn = st( - (gt = ($n = (cn + bt) | 0) ^ wn), - nt ^ (wn = cn >>> 0 > $n >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (on + (nt = On)) | 0), - (Un = - (bt = (_e + cn) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (on = jn( - cn, - 0, - (_e << 1) & -2, - 1 & ((on << 1) | (_e >>> 31)), - )), - (a = (On + Un) | 0), - (Ar = st( - (_e = (on + bt) | 0) ^ Dn, - et ^ (Un = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (a = (wn + (Qt = On)) | 0), - (on = - (Dn = ($n + Ar) | 0) >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (wn = jn( - Ar, - 0, - ($n << 1) & -2, - 1 & ((wn << 1) | ($n >>> 31)), - )), - (a = (On + on) | 0), - (kt = st( - cn ^ ($n = (wn + Dn) | 0), - nt ^ (bt = $n >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - 1, - )), - (Ut = a = On), - (pt = kt), - (nt = ((cn = c[(hn + 32) >> 2]) + (on = c[hn >> 2])) | 0), - (a = - ((Zt = c[(hn + 36) >> 2]) + (wn = c[(hn + 4) >> 2])) | 0), - (Dn = on >>> 0 > nt >>> 0 ? (a + 1) | 0 : a), - (wn = jn( - (on << 1) & -2, - 1 & ((wn << 1) | (on >>> 31)), - cn, - 0, - )), - (a = (On + Dn) | 0), - (Dn = - (on = (wn + nt) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (yt = - ((jt = st( - c[(hn + 96) >> 2] ^ on, - Dn ^ c[(hn + 100) >> 2], - 32, - )) + - (wn = c[(a = Ct = (hn - -64) | 0) >> 2])) | - 0), - (a = ((hr = On) + (nt = c[(a + 4) >> 2])) | 0), - (et = wn >>> 0 > yt >>> 0 ? (a + 1) | 0 : a), - (nt = jn( - (wn << 1) & -2, - 1 & ((nt << 1) | (wn >>> 31)), - jt, - 0, - )), - (a = (On + et) | 0), - (Zt = st( - cn ^ (wn = (nt + yt) | 0), - Zt ^ (nt = wn >>> 0 < nt >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (Dn + (Er = On)) | 0), - (cn = - (et = (on + Zt) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (on = jn( - Zt, - 0, - (on << 1) & -2, - 1 & ((Dn << 1) | (on >>> 31)), - )), - (a = (On + cn) | 0), - (a = - (Ut + - (_t = - on >>> 0 > (et = (on + et) | 0) >>> 0 - ? (a + 1) | 0 - : a)) | - 0), - (Dn = - (on = (et + pt) | 0) >>> 0 < et >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - pt, - 0, - (et << 1) & -2, - 1 & ((_t << 1) | (et >>> 31)), - )), - (a = (On + Dn) | 0), - (rr = st( - (on = (cn + on) | 0) ^ Yn, - fr ^ (gt = on >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - 32, - )), - (Pt = a = On), - (Rt = a), - (pt = - ((Yn = c[(hn + 48) >> 2]) + (Dn = c[(hn + 16) >> 2])) | - 0), - (a = - ((sr = c[(hn + 52) >> 2]) + (cn = c[(hn + 20) >> 2])) | - 0), - (yt = Dn >>> 0 > pt >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - (Dn << 1) & -2, - 1 & ((cn << 1) | (Dn >>> 31)), - Yn, - 0, - )), - (a = (On + yt) | 0), - (yt = - cn >>> 0 > (Dn = (cn + pt) | 0) >>> 0 ? (a + 1) | 0 : a), - (wt = - ((pt = st( - c[(hn + 112) >> 2] ^ Dn, - yt ^ c[(hn + 116) >> 2], - 32, - )) + - (cn = c[(hn + 80) >> 2])) | - 0), - (a = ((tr = On) + (At = c[(hn + 84) >> 2])) | 0), - (Jt = cn >>> 0 > wt >>> 0 ? (a + 1) | 0 : a), - (At = jn( - (cn << 1) & -2, - 1 & ((At << 1) | (cn >>> 31)), - pt, - 0, - )), - (a = (On + Jt) | 0), - (At = st( - (wt = (cn = (At + wt) | 0) ^ Yn), - sr ^ (Yn = cn >>> 0 < At >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (yt + (sr = On)) | 0), - (Jt = - (wt = (Dn + At) | 0) >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a), - (yt = jn( - At, - 0, - (Dn << 1) & -2, - 1 & ((yt << 1) | (Dn >>> 31)), - )), - (a = (On + Jt) | 0), - (Jt = st( - (Dn = (yt + wt) | 0) ^ pt, - tr ^ (yt = Dn >>> 0 < yt >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (a = (Yn + (tr = On)) | 0), - (pt = - (wt = (cn + Jt) | 0) >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - Jt, - 0, - (cn << 1) & -2, - 1 & ((Yn << 1) | (cn >>> 31)), - )), - (a = (On + pt) | 0), - (a = - ((pt = - cn >>> 0 > (Yn = (cn + wt) | 0) >>> 0 - ? (a + 1) | 0 - : a) + - Rt) | - 0), - (Rt = - (cn = (Yn + rr) | 0) >>> 0 < Yn >>> 0 ? (a + 1) | 0 : a), - (wt = jn( - rr, - 0, - (Yn << 1) & -2, - 1 & ((pt << 1) | (Yn >>> 31)), - )), - (a = (On + Rt) | 0), - (Rt = st( - (Rt = (cn = (wt + cn) | 0) ^ kt), - Ut ^ (kt = cn >>> 0 < wt >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (gt + (Ut = On)) | 0), - (wt = - (rt = (on + Rt) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (on = - ((gt = jn( - Rt, - 0, - (on << 1) & -2, - 1 & ((gt << 1) | (on >>> 31)), - )) + - rt) | - 0), - (a = (On + wt) | 0), - (c[hn >> 2] = on), - (a = on >>> 0 < gt >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 4) >> 2] = a), - (on = st(on ^ rr, a ^ Pt, 48)), - (c[(hn + 120) >> 2] = on), - (a = On), - (c[(hn + 124) >> 2] = a), - (a = (a + kt) | 0), - (gt = - (rr = (on + cn) | 0) >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (on = - ((cn = jn( - on, - 0, - (cn << 1) & -2, - 1 & ((kt << 1) | (cn >>> 31)), - )) + - rr) | - 0), - (a = (On + gt) | 0), - (c[(hn + 80) >> 2] = on), - (a = on >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 84) >> 2] = a), - (tt = hn), - (ft = st(on ^ Rt, a ^ Ut, 1)), - (c[(tt + 40) >> 2] = ft), - (c[(hn + 44) >> 2] = On), - (a = (at + fr) | 0), - (on = - (cn = (j + Ht) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (j = jn( - Ht, - 0, - (j << 1) & -2, - 1 & ((at << 1) | (j >>> 31)), - )), - (a = (On + on) | 0), - (on = a = - j >>> 0 > (cn = (j + cn) | 0) >>> 0 ? (a + 1) | 0 : a), - (gt = st(Yn ^ At, pt ^ sr, 1)), - (a = (Un + (pt = On)) | 0), - (at = - (Yn = (_e + gt) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = - ((Un = jn( - gt, - 0, - (_e << 1) & -2, - 1 & ((Un << 1) | (_e >>> 31)), - )) + - Yn) | - 0), - (a = (On + at) | 0), - (Yn = st(et ^ jt, _t ^ hr, 48)), - (_t = st( - Yn ^ _e, - (at = _e >>> 0 < Un >>> 0 ? (a + 1) | 0 : a) ^ (kt = On), - 32, - )), - (a = ((Ht = On) + on) | 0), - (Un = - (et = (_t + cn) | 0) >>> 0 < _t >>> 0 ? (a + 1) | 0 : a), - (j = - ((a = et) + - (et = jn( - (cn << 1) & -2, - 1 & ((on << 1) | (cn >>> 31)), - _t, - 0, - ))) | - 0), - (a = (On + Un) | 0), - (et = st( - j ^ gt, - pt ^ (Un = j >>> 0 < et >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (at + (gt = On)) | 0), - (pt = - (jt = (_e + et) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = jn( - et, - 0, - (_e << 1) & -2, - 1 & ((at << 1) | (_e >>> 31)), - )), - (a = (On + pt) | 0), - (_e = st( - (at = (_e + jt) | 0) ^ _t, - Ht ^ (a = _e >>> 0 > at >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (c[(hn + 96) >> 2] = _e), - (_t = On), - (c[(hn + 100) >> 2] = _t), - (c[(hn + 8) >> 2] = at), - (c[(hn + 12) >> 2] = a), - (a = (Un + _t) | 0), - (at = - (_t = (_e + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (j = jn( - _e, - 0, - (j << 1) & -2, - 1 & ((Un << 1) | (j >>> 31)), - )), - (a = (On + at) | 0), - (tt = hn), - (ft = st( - (_e = (j + _t) | 0) ^ et, - (a = _e >>> 0 < j >>> 0 ? (a + 1) | 0 : a) ^ gt, - 1, - )), - (c[(tt + 48) >> 2] = ft), - (c[(hn + 52) >> 2] = On), - (c[(hn + 88) >> 2] = _e), - (c[(hn + 92) >> 2] = a), - (cn = st(cn ^ dr, on ^ xt, 1)), - (a = (yt + (et = On)) | 0), - (j = - (_e = (cn + Dn) | 0) >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a), - (on = jn( - cn, - 0, - (Dn << 1) & -2, - 1 & ((yt << 1) | (Dn >>> 31)), - )), - (a = (On + j) | 0), - (at = st( - (_e = (on + _e) | 0) ^ Ar, - Qt ^ (on = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - 32, - )), - (_t = a = On), - (j = a), - (a = (nt + kt) | 0), - (Dn = - (Un = (wn + Yn) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (wn = - ((a = Un) + - (Un = jn( - Yn, - 0, - (wn << 1) & -2, - 1 & ((nt << 1) | (wn >>> 31)), - ))) | - 0), - (a = (On + Dn) | 0), - (a = - ((Dn = wn >>> 0 < Un >>> 0 ? (a + 1) | 0 : a) + j) | 0), - (Un = - (j = (wn + at) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (nt = jn( - at, - 0, - (wn << 1) & -2, - 1 & ((Dn << 1) | (wn >>> 31)), - )), - (a = (On + Un) | 0), - (Un = st( - (Yn = (j = (nt + j) | 0) ^ cn), - et ^ (cn = j >>> 0 < nt >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (on + (et = On)) | 0), - (nt = - (gt = (_e + Un) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = - ((on = jn( - Un, - 0, - (_e << 1) & -2, - 1 & ((on << 1) | (_e >>> 31)), - )) + - gt) | - 0), - (a = (On + nt) | 0), - (c[(hn + 16) >> 2] = _e), - (a = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 20) >> 2] = a), - (_e = st(_e ^ at, a ^ _t, 48)), - (c[(hn + 104) >> 2] = _e), - (a = On), - (c[(hn + 108) >> 2] = a), - (on = Ct), - (a = (a + cn) | 0), - (at = - (nt = (_e + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (j = jn( - _e, - 0, - (j << 1) & -2, - 1 & ((cn << 1) | (j >>> 31)), - )), - (a = (On + at) | 0), - (cn = _e = (j + nt) | 0), - (at = a = _e >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (c[on >> 2] = _e), - (c[(on + 4) >> 2] = a), - (wn = st(wn ^ Zt, Dn ^ Er, 1)), - (a = ((nt = On) + Tt) | 0), - (j = - (_e = (wn + mt) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (on = jn( - (mt << 1) & -2, - 1 & ((Tt << 1) | (mt >>> 31)), - wn, - 0, - )), - (a = (On + j) | 0), - (Dn = st( - (_e = (on + _e) | 0) ^ Jt, - tr ^ (on = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - 32, - )), - (a = (bt + (Tt = On)) | 0), - (mt = - (j = (Dn + $n) | 0) >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - ($n = jn( - Dn, - 0, - ($n << 1) & -2, - 1 & ((bt << 1) | ($n >>> 31)), - )), - (a = (On + mt) | 0), - (wn = st( - (j = ($n + j) | 0) ^ wn, - nt ^ ($n = j >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (on + (bt = On)) | 0), - (mt = - (nt = (_e + wn) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (on = jn( - wn, - 0, - (_e << 1) & -2, - 1 & ((on << 1) | (_e >>> 31)), - )), - (a = (On + mt) | 0), - (a = - (_e = (on + nt) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (on = _e), - (Yn = _e ^ Dn), - (Dn = a), - (_e = st(Yn, Tt ^ a, 48)), - (a = ($n + (Tt = On)) | 0), - (mt = - (nt = (_e + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (j = - (($n = jn( - _e, - 0, - (j << 1) & -2, - 1 & (($n << 1) | (j >>> 31)), - )) + - nt) | - 0), - (a = (On + mt) | 0), - (c[(hn + 72) >> 2] = j), - (a = j >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 76) >> 2] = a), - (c[(hn + 112) >> 2] = _e), - (c[(hn + 116) >> 2] = Tt), - (c[(hn + 24) >> 2] = on), - (c[(hn + 28) >> 2] = Dn), - (tt = hn), - (ft = st(cn ^ Un, at ^ et, 1)), - (c[(tt + 56) >> 2] = ft), - (c[(hn + 60) >> 2] = On), - (tt = hn), - (ft = st(j ^ wn, a ^ bt, 1)), - (c[(tt + 32) >> 2] = ft), - (c[(hn + 36) >> 2] = On), - (0 | (d = (d + 1) | 0)) != 8; - - ); - for ( - d = 0; - (wn = - ((on = - c[ - (392 + (hn = (((g + 1024) | 0) + (d << 4)) | 0)) >> 2 - ]) + - (_e = c[(hn + 136) >> 2])) | - 0), - (a = - ((mt = c[(hn + 396) >> 2]) + (j = c[(hn + 140) >> 2])) | - 0), - ($n = _e >>> 0 > wn >>> 0 ? (a + 1) | 0 : a), - (j = jn( - (_e << 1) & -2, - 1 & ((j << 1) | (_e >>> 31)), - on, - 0, - )), - (a = (On + $n) | 0), - ($n = - (_e = (j + wn) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (at = - ((wn = st( - c[(hn + 904) >> 2] ^ _e, - $n ^ c[(hn + 908) >> 2], - 32, - )) + - (j = c[(hn + 648) >> 2])) | - 0), - (a = ((Un = On) + (Dn = c[(hn + 652) >> 2])) | 0), - (cn = j >>> 0 > at >>> 0 ? (a + 1) | 0 : a), - (Dn = jn( - (j << 1) & -2, - 1 & ((Dn << 1) | (j >>> 31)), - wn, - 0, - )), - (a = (On + cn) | 0), - (dr = st( - on ^ (j = (Dn + at) | 0), - mt ^ (at = j >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = ($n + (wt = On)) | 0), - (on = - (Dn = (_e + dr) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = jn( - dr, - 0, - (_e << 1) & -2, - 1 & (($n << 1) | (_e >>> 31)), - )), - (a = (On + on) | 0), - (Ht = st( - wn ^ (mt = (_e + Dn) | 0), - Un ^ (Tt = _e >>> 0 > mt >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (xt = a = On), - (Yn = Ht), - (Dn = - ((wn = c[(hn + 264) >> 2]) + (_e = c[(hn + 8) >> 2])) | - 0), - (a = - ((nt = c[(hn + 268) >> 2]) + ($n = c[(hn + 12) >> 2])) | - 0), - (on = _e >>> 0 > Dn >>> 0 ? (a + 1) | 0 : a), - ($n = jn( - (_e << 1) & -2, - 1 & (($n << 1) | (_e >>> 31)), - wn, - 0, - )), - (a = (On + on) | 0), - (on = - (_e = ($n + Dn) | 0) >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (bt = - ((Dn = st( - c[(hn + 776) >> 2] ^ _e, - on ^ c[(hn + 780) >> 2], - 32, - )) + - ($n = c[(hn + 520) >> 2])) | - 0), - (a = ((et = On) + (cn = c[(hn + 524) >> 2])) | 0), - (Un = $n >>> 0 > bt >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - ($n << 1) & -2, - 1 & ((cn << 1) | ($n >>> 31)), - Dn, - 0, - )), - (a = (On + Un) | 0), - (cn = st( - (gt = ($n = (cn + bt) | 0) ^ wn), - nt ^ (wn = cn >>> 0 > $n >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (on + (nt = On)) | 0), - (Un = - (bt = (_e + cn) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (on = jn( - cn, - 0, - (_e << 1) & -2, - 1 & ((on << 1) | (_e >>> 31)), - )), - (a = (On + Un) | 0), - (Ar = st( - (_e = (on + bt) | 0) ^ Dn, - et ^ (Un = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (a = (wn + (fr = On)) | 0), - (on = - (Dn = ($n + Ar) | 0) >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (wn = jn( - Ar, - 0, - ($n << 1) & -2, - 1 & ((wn << 1) | ($n >>> 31)), - )), - (a = (On + on) | 0), - (kt = st( - cn ^ ($n = (wn + Dn) | 0), - nt ^ (bt = $n >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - 1, - )), - (Qt = a = On), - (pt = kt), - (nt = ((cn = c[(hn + 256) >> 2]) + (on = c[hn >> 2])) | 0), - (a = - ((Zt = c[(hn + 260) >> 2]) + (wn = c[(hn + 4) >> 2])) | - 0), - (Dn = on >>> 0 > nt >>> 0 ? (a + 1) | 0 : a), - (wn = jn( - (on << 1) & -2, - 1 & ((wn << 1) | (on >>> 31)), - cn, - 0, - )), - (a = (On + Dn) | 0), - (Dn = - (on = (wn + nt) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (yt = - ((jt = st( - c[(hn + 768) >> 2] ^ on, - Dn ^ c[(hn + 772) >> 2], - 32, - )) + - (wn = c[(hn + 512) >> 2])) | - 0), - (a = ((Ut = On) + (nt = c[(hn + 516) >> 2])) | 0), - (et = wn >>> 0 > yt >>> 0 ? (a + 1) | 0 : a), - (nt = jn( - (wn << 1) & -2, - 1 & ((nt << 1) | (wn >>> 31)), - jt, - 0, - )), - (a = (On + et) | 0), - (Zt = st( - cn ^ (wn = (nt + yt) | 0), - Zt ^ (nt = wn >>> 0 < nt >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (Dn + (hr = On)) | 0), - (cn = - (et = (on + Zt) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (on = jn( - Zt, - 0, - (on << 1) & -2, - 1 & ((Dn << 1) | (on >>> 31)), - )), - (a = (On + cn) | 0), - (a = - (Qt + - (_t = - on >>> 0 > (et = (on + et) | 0) >>> 0 - ? (a + 1) | 0 - : a)) | - 0), - (Dn = - (on = (et + pt) | 0) >>> 0 < et >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - pt, - 0, - (et << 1) & -2, - 1 & ((_t << 1) | (et >>> 31)), - )), - (a = (On + Dn) | 0), - (rr = st( - (on = (cn + on) | 0) ^ Yn, - xt ^ (gt = on >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - 32, - )), - (Er = a = On), - (Rt = a), - (pt = - ((Yn = c[(hn + 384) >> 2]) + (Dn = c[(hn + 128) >> 2])) | - 0), - (a = - ((Pt = c[(hn + 388) >> 2]) + (cn = c[(hn + 132) >> 2])) | - 0), - (yt = Dn >>> 0 > pt >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - (Dn << 1) & -2, - 1 & ((cn << 1) | (Dn >>> 31)), - Yn, - 0, - )), - (a = (On + yt) | 0), - (yt = - cn >>> 0 > (Dn = (cn + pt) | 0) >>> 0 ? (a + 1) | 0 : a), - (Ct = - ((pt = st( - c[(hn + 896) >> 2] ^ Dn, - yt ^ c[(hn + 900) >> 2], - 32, - )) + - (cn = c[(hn + 640) >> 2])) | - 0), - (a = ((sr = On) + (At = c[(hn + 644) >> 2])) | 0), - (Jt = cn >>> 0 > Ct >>> 0 ? (a + 1) | 0 : a), - (At = jn( - (cn << 1) & -2, - 1 & ((At << 1) | (cn >>> 31)), - pt, - 0, - )), - (a = (On + Jt) | 0), - (At = st( - (Ct = (cn = (At + Ct) | 0) ^ Yn), - Pt ^ (Yn = cn >>> 0 < At >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (yt + (Pt = On)) | 0), - (Jt = - (Ct = (Dn + At) | 0) >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a), - (yt = jn( - At, - 0, - (Dn << 1) & -2, - 1 & ((yt << 1) | (Dn >>> 31)), - )), - (a = (On + Jt) | 0), - (Jt = st( - (Dn = (yt + Ct) | 0) ^ pt, - sr ^ (yt = Dn >>> 0 < yt >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (a = (Yn + (sr = On)) | 0), - (pt = - (Ct = (cn + Jt) | 0) >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (cn = jn( - Jt, - 0, - (cn << 1) & -2, - 1 & ((Yn << 1) | (cn >>> 31)), - )), - (a = (On + pt) | 0), - (a = - ((pt = - cn >>> 0 > (Yn = (cn + Ct) | 0) >>> 0 - ? (a + 1) | 0 - : a) + - Rt) | - 0), - (Rt = - (cn = (Yn + rr) | 0) >>> 0 < Yn >>> 0 ? (a + 1) | 0 : a), - (Ct = jn( - rr, - 0, - (Yn << 1) & -2, - 1 & ((pt << 1) | (Yn >>> 31)), - )), - (a = (On + Rt) | 0), - (Rt = st( - (Rt = (cn = (Ct + cn) | 0) ^ kt), - Qt ^ (kt = cn >>> 0 < Ct >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (gt + (Qt = On)) | 0), - (Ct = - (tr = (on + Rt) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (on = - ((gt = jn( - Rt, - 0, - (on << 1) & -2, - 1 & ((gt << 1) | (on >>> 31)), - )) + - tr) | - 0), - (a = (On + Ct) | 0), - (c[hn >> 2] = on), - (a = on >>> 0 < gt >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 4) >> 2] = a), - (on = st(on ^ rr, a ^ Er, 48)), - (c[(hn + 904) >> 2] = on), - (a = On), - (c[(hn + 908) >> 2] = a), - (a = (a + kt) | 0), - (gt = - (rr = (on + cn) | 0) >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (on = - ((cn = jn( - on, - 0, - (cn << 1) & -2, - 1 & ((kt << 1) | (cn >>> 31)), - )) + - rr) | - 0), - (a = (On + gt) | 0), - (c[(hn + 640) >> 2] = on), - (a = on >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 644) >> 2] = a), - (tt = hn), - (ft = st(on ^ Rt, a ^ Qt, 1)), - (c[(tt + 264) >> 2] = ft), - (c[(hn + 268) >> 2] = On), - (a = (at + xt) | 0), - (on = - (cn = (j + Ht) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (j = jn( - Ht, - 0, - (j << 1) & -2, - 1 & ((at << 1) | (j >>> 31)), - )), - (a = (On + on) | 0), - (on = a = - j >>> 0 > (cn = (j + cn) | 0) >>> 0 ? (a + 1) | 0 : a), - (gt = st(Yn ^ At, pt ^ Pt, 1)), - (a = (Un + (pt = On)) | 0), - (at = - (Yn = (_e + gt) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = - ((Un = jn( - gt, - 0, - (_e << 1) & -2, - 1 & ((Un << 1) | (_e >>> 31)), - )) + - Yn) | - 0), - (a = (On + at) | 0), - (_t = st(et ^ jt, _t ^ Ut, 48)), - (et = st( - _t ^ _e, - (at = _e >>> 0 < Un >>> 0 ? (a + 1) | 0 : a) ^ (kt = On), - 32, - )), - (a = ((Ht = On) + on) | 0), - (Un = - et >>> 0 > (Yn = (et + cn) | 0) >>> 0 ? (a + 1) | 0 : a), - (j = - ((a = Yn) + - (Yn = jn( - (cn << 1) & -2, - 1 & ((on << 1) | (cn >>> 31)), - et, - 0, - ))) | - 0), - (a = (On + Un) | 0), - (gt = st( - j ^ gt, - pt ^ (Un = j >>> 0 < Yn >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (at + (pt = On)) | 0), - (Yn = - (jt = (_e + gt) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = jn( - gt, - 0, - (_e << 1) & -2, - 1 & ((at << 1) | (_e >>> 31)), - )), - (a = (On + Yn) | 0), - (_e = st( - (at = (_e + jt) | 0) ^ et, - Ht ^ (a = _e >>> 0 > at >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (c[(hn + 768) >> 2] = _e), - (et = On), - (c[(hn + 772) >> 2] = et), - (c[(hn + 8) >> 2] = at), - (c[(hn + 12) >> 2] = a), - (a = (Un + et) | 0), - (at = - (et = (_e + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (_e = - ((j = jn( - _e, - 0, - (j << 1) & -2, - 1 & ((Un << 1) | (j >>> 31)), - )) + - et) | - 0), - (a = (On + at) | 0), - (c[(hn + 648) >> 2] = _e), - (a = _e >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 652) >> 2] = a), - (tt = hn), - (ft = st(_e ^ gt, a ^ pt, 1)), - (c[(tt + 384) >> 2] = ft), - (c[(hn + 388) >> 2] = On), - (cn = st(cn ^ dr, on ^ wt, 1)), - (a = (yt + (et = On)) | 0), - (j = - (_e = (cn + Dn) | 0) >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a), - (on = jn( - cn, - 0, - (Dn << 1) & -2, - 1 & ((yt << 1) | (Dn >>> 31)), - )), - (a = (On + j) | 0), - (at = st( - (_e = (on + _e) | 0) ^ Ar, - fr ^ (on = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - 32, - )), - (gt = a = On), - (j = a), - (a = (nt + kt) | 0), - (Dn = - (Un = (wn + _t) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (wn = - ((a = Un) + - (Un = jn( - _t, - 0, - (wn << 1) & -2, - 1 & ((nt << 1) | (wn >>> 31)), - ))) | - 0), - (a = (On + Dn) | 0), - (a = - ((Dn = wn >>> 0 < Un >>> 0 ? (a + 1) | 0 : a) + j) | 0), - (Un = - (j = (wn + at) | 0) >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - (nt = jn( - at, - 0, - (wn << 1) & -2, - 1 & ((Dn << 1) | (wn >>> 31)), - )), - (a = (On + Un) | 0), - (Un = st( - (Yn = (j = (nt + j) | 0) ^ cn), - et ^ (cn = j >>> 0 < nt >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (on + (et = On)) | 0), - (nt = - (_t = (_e + Un) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = jn( - Un, - 0, - (_e << 1) & -2, - 1 & ((on << 1) | (_e >>> 31)), - )), - (a = (On + nt) | 0), - (_e = st( - (on = (_e + _t) | 0) ^ at, - gt ^ (a = _e >>> 0 > on >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (c[(hn + 776) >> 2] = _e), - (at = On), - (c[(hn + 780) >> 2] = at), - (c[(hn + 128) >> 2] = on), - (c[(hn + 132) >> 2] = a), - (a = (cn + at) | 0), - (on = - (at = (_e + j) | 0) >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (_e = - ((j = jn( - _e, - 0, - (j << 1) & -2, - 1 & ((cn << 1) | (j >>> 31)), - )) + - at) | - 0), - (a = (On + on) | 0), - (c[(hn + 512) >> 2] = _e), - (a = _e >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 516) >> 2] = a), - (tt = hn), - (ft = st(_e ^ Un, a ^ et, 1)), - (c[(tt + 392) >> 2] = ft), - (c[(hn + 396) >> 2] = On), - (on = st(wn ^ Zt, Dn ^ hr, 1)), - (a = ((cn = On) + Tt) | 0), - (j = - (_e = (on + mt) | 0) >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (wn = jn( - (mt << 1) & -2, - 1 & ((Tt << 1) | (mt >>> 31)), - on, - 0, - )), - (a = (On + j) | 0), - (wn = st( - (_e = (wn + _e) | 0) ^ Jt, - sr ^ (j = _e >>> 0 < wn >>> 0 ? (a + 1) | 0 : a), - 32, - )), - (a = (bt + (at = On)) | 0), - (Dn = - (mt = ($n + wn) | 0) >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - ($n = - ((a = mt) + - (mt = jn( - wn, - 0, - ($n << 1) & -2, - 1 & ((bt << 1) | ($n >>> 31)), - ))) | - 0), - (a = (On + Dn) | 0), - (Dn = st( - (Yn = on ^ $n), - cn ^ (on = $n >>> 0 < mt >>> 0 ? (a + 1) | 0 : a), - 40, - )), - (a = (j + (mt = On)) | 0), - (cn = - (Tt = (_e + Dn) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = jn( - Dn, - 0, - (_e << 1) & -2, - 1 & ((j << 1) | (_e >>> 31)), - )), - (a = (On + cn) | 0), - (_e = st( - (j = (_e + Tt) | 0) ^ wn, - at ^ (a = _e >>> 0 > j >>> 0 ? (a + 1) | 0 : a), - 48, - )), - (c[(hn + 896) >> 2] = _e), - (wn = On), - (c[(hn + 900) >> 2] = wn), - (c[(hn + 136) >> 2] = j), - (c[(hn + 140) >> 2] = a), - (a = (on + wn) | 0), - (j = - (wn = (_e + $n) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (_e = - (($n = jn( - _e, - 0, - ($n << 1) & -2, - 1 & ((on << 1) | ($n >>> 31)), - )) + - wn) | - 0), - (a = (On + j) | 0), - (c[(hn + 520) >> 2] = _e), - (a = _e >>> 0 < $n >>> 0 ? (a + 1) | 0 : a), - (c[(hn + 524) >> 2] = a), - (tt = hn), - (ft = st(_e ^ Dn, a ^ mt, 1)), - (c[(tt + 256) >> 2] = ft), - (c[(hn + 260) >> 2] = On), - (0 | (d = (d + 1) | 0)) != 8; - - ); - for ( - a = Qo(h, g, 1024), d = 0; - (_e = c[(hn = ((h = d << 3) + a) | 0) >> 2]), - (on = c[($n = ((j = Yn = (g + 1024) | 0) + h) | 0) >> 2]), - ($n = c[(hn + 4) >> 2] ^ c[($n + 4) >> 2]), - (c[hn >> 2] = _e ^ on), - (c[(hn + 4) >> 2] = $n), - ($n = c[(hn = ((_e = 8 | h) + a) | 0) >> 2]), - (j = c[(_e = (_e + j) | 0) >> 2]), - (_e = c[(hn + 4) >> 2] ^ c[(_e + 4) >> 2]), - (c[hn >> 2] = j ^ $n), - (c[(hn + 4) >> 2] = _e), - (j = c[(hn = ((_e = 16 | h) + a) | 0) >> 2]), - ($n = c[(_e = (_e + Yn) | 0) >> 2]), - (_e = c[(hn + 4) >> 2] ^ c[(_e + 4) >> 2]), - (c[hn >> 2] = j ^ $n), - (c[(hn + 4) >> 2] = _e), - (_e = c[(h = ((hn = 24 | h) + a) | 0) >> 2]), - (j = c[(hn = (hn + Yn) | 0) >> 2]), - (hn = c[(h + 4) >> 2] ^ c[(hn + 4) >> 2]), - (c[h >> 2] = _e ^ j), - (c[(h + 4) >> 2] = hn), - (0 | (d = (d + 4) | 0)) != 128; - - ); - St = (g + 2048) | 0 - } - function Ls(d) { - var a, - h = 0, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0 - St = a = (St - 16) | 0 - e: { - n: { - t: { - r: { - a: { - u: { - s: { - c: { - i: { - if ((d |= 0) >>> 0 <= 244) { - if ( - 3 & - (h = - ((j = c[9130]) >>> - (g = - ((cn = - d >>> 0 < 11 - ? 16 - : (d + 11) & -8) >>> - 3) | - 0)) | - 0) - ) { - ;(h = - (36560 + - (d = - (g = (g + (1 & (-1 ^ h))) | 0) << - 3)) | - 0), - (_e = c[(d + 36568) >> 2]), - (0 | h) != (0 | (d = c[(_e + 8) >> 2])) - ? ((c[(d + 12) >> 2] = h), - (c[(h + 8) >> 2] = d)) - : ((Un = 36520), - (Yn = Ft(-2, g) & j), - (c[Un >> 2] = Yn)), - (d = (_e + 8) | 0), - (h = g << 3), - (c[(_e + 4) >> 2] = 3 | h), - (c[(4 + (h = (h + _e) | 0)) >> 2] = - 1 | c[(h + 4) >> 2]) - break e - } - if ((wn = c[9132]) >>> 0 >= cn >>> 0) - break i - if (h) { - ;(h = - (36560 + - (d = - (_e = F0( - (0 - - (d = - ((0 - (d = 2 << g)) | d) & - (h << g))) & - d, - )) << 3)) | - 0), - (on = c[(d + 36568) >> 2]), - (0 | h) != (0 | (d = c[(on + 8) >> 2])) - ? ((c[(d + 12) >> 2] = h), - (c[(h + 8) >> 2] = d)) - : ((j = Ft(-2, _e) & j), - (c[9130] = j)), - (c[(on + 4) >> 2] = 3 | cn), - (_e = ((d = _e << 3) - cn) | 0), - (c[(4 + (g = (on + cn) | 0)) >> 2] = - 1 | _e), - (c[(d + on) >> 2] = _e), - wn && - ((h = (36560 + (-8 & wn)) | 0), - (hn = c[9135]), - (d = 1 << (wn >>> 3)) & j - ? (d = c[(h + 8) >> 2]) - : ((c[9130] = d | j), (d = h)), - (c[(h + 8) >> 2] = hn), - (c[(d + 12) >> 2] = hn), - (c[(hn + 12) >> 2] = h), - (c[(hn + 8) >> 2] = d)), - (d = (on + 8) | 0), - (c[9135] = g), - (c[9132] = _e) - break e - } - if (!($n = c[9131])) break i - for ( - g = - c[ - (36824 + (F0((0 - $n) & $n) << 2)) >> - 2 - ], - hn = ((-8 & c[(g + 4) >> 2]) - cn) | 0, - h = g; - (d = c[(h + 16) >> 2]) || - (d = c[(h + 20) >> 2]); - - ) - (hn = (_e = - (h = - ((-8 & c[(d + 4) >> 2]) - cn) | 0) >>> - 0 < - hn >>> 0) - ? h - : hn), - (g = _e ? d : g), - (h = d) - if ( - ((Dn = c[(g + 24) >> 2]), - (0 | (_e = c[(g + 12) >> 2])) != (0 | g)) - ) { - ;(d = c[(g + 8) >> 2]), - (c[(d + 12) >> 2] = _e), - (c[(_e + 8) >> 2] = d) - break n - } - if (!(d = c[(h = (g + 20) | 0) >> 2])) { - if (!(d = c[(g + 16) >> 2])) break c - h = (g + 16) | 0 - } - for ( - ; - (on = h), - (_e = d), - (d = c[(h = (d + 20) | 0) >> 2]) || - ((h = (_e + 16) | 0), - (d = c[(_e + 16) >> 2])); - - ); - c[on >> 2] = 0 - break n - } - if ( - ((cn = -1), - !(d >>> 0 > 4294967231) && - ((cn = -8 & (d = (d + 11) | 0)), - ($n = c[9131]))) - ) { - ;(hn = (0 - cn) | 0), - (j = 0), - cn >>> 0 < 256 || - ((j = 31), - cn >>> 0 > 16777215 || - (j = - (62 + - ((((cn >>> - (38 - - (d = Ms((d >>> 8) | 0)))) & - 1) - - (d << 1)) | - 0)) | - 0)) - o: { - d: { - if ((h = c[(36824 + (j << 2)) >> 2])) - for ( - d = 0, - g = - cn << - ((0 | j) != 31 - ? (25 - ((j >>> 1) | 0)) | 0 - : 0); - ; - - ) { - if ( - !( - (on = - ((-8 & c[(h + 4) >> 2]) - - cn) | - 0) >>> - 0 >= - hn >>> 0 || - ((_e = h), (hn = on), on) - ) - ) { - ;(hn = 0), (d = h) - break d - } - if ( - ((on = c[(h + 20) >> 2]), - (h = - c[ - (16 + - ((((g >>> 29) & 4) + h) | - 0)) >> - 2 - ]), - (d = on - ? (0 | on) == (0 | h) - ? d - : on - : d), - (g <<= 1), - !h) - ) - break - } - else d = 0 - if (!(d | _e)) { - if ( - ((_e = 0), - !(d = - ((0 - (d = 2 << j)) | d) & $n)) - ) - break i - d = - c[ - (36824 + - (F0(d & (0 - d)) << 2)) >> - 2 - ] - } - if (!d) break o - } - for ( - ; - (hn = (g = - (h = - ((-8 & c[(d + 4) >> 2]) - cn) | - 0) >>> - 0 < - hn >>> 0) - ? h - : hn), - (_e = g ? d : _e), - (d = - (h = c[(d + 16) >> 2]) || - c[(d + 20) >> 2]); - - ); - } - if ( - !( - !_e | - ((c[9132] - cn) >>> 0 <= hn >>> 0) - ) - ) { - if ( - ((j = c[(_e + 24) >> 2]), - (0 | _e) != - (0 | (g = c[(_e + 12) >> 2]))) - ) { - ;(d = c[(_e + 8) >> 2]), - (c[(d + 12) >> 2] = g), - (c[(g + 8) >> 2] = d) - break t - } - if (!(d = c[(h = (_e + 20) | 0) >> 2])) { - if (!(d = c[(_e + 16) >> 2])) break s - h = (_e + 16) | 0 - } - for ( - ; - (on = h), - (g = d), - (d = c[(h = (d + 20) | 0) >> 2]) || - ((h = (g + 16) | 0), - (d = c[(g + 16) >> 2])); - - ); - c[on >> 2] = 0 - break t - } - } - } - if ((d = c[9132]) >>> 0 >= cn >>> 0) { - ;(_e = c[9135]), - (h = (d - cn) | 0) >>> 0 >= 16 - ? ((c[(4 + (g = (_e + cn) | 0)) >> 2] = - 1 | h), - (c[(d + _e) >> 2] = h), - (c[(_e + 4) >> 2] = 3 | cn)) - : ((c[(_e + 4) >> 2] = 3 | d), - (c[(4 + (d = (d + _e) | 0)) >> 2] = - 1 | c[(d + 4) >> 2]), - (g = 0), - (h = 0)), - (c[9132] = h), - (c[9135] = g), - (d = (_e + 8) | 0) - break e - } - if ((Dn = c[9133]) >>> 0 > cn >>> 0) { - ;(h = (Dn - cn) | 0), - (c[9133] = h), - (d = ((g = c[9136]) + cn) | 0), - (c[9136] = d), - (c[(d + 4) >> 2] = 1 | h), - (c[(g + 4) >> 2] = 3 | cn), - (d = (g + 8) | 0) - break e - } - if ( - ((d = 0), - ($n = (cn + 47) | 0), - c[9248] - ? (g = c[9250]) - : ((c[9251] = -1), - (c[9252] = -1), - (c[9249] = 4096), - (c[9250] = 4096), - (c[9248] = ((a + 12) & -16) ^ 1431655768), - (c[9253] = 0), - (c[9241] = 0), - (g = 4096)), - (h = - (on = ($n + g) | 0) & - (hn = (0 - g) | 0)) >>> - 0 <= - cn >>> 0 || - ((_e = c[9240]) && - (_e >>> 0 < - (j = ((g = c[9238]) + h) | 0) >>> 0) | - (g >>> 0 >= j >>> 0))) - ) - break e - i: { - if (!(4 & rn[36964])) { - o: { - d: { - l: { - A: { - if ((_e = c[9136])) - for (d = 36968; ; ) { - if ( - ((g = c[d >> 2]) >>> 0 <= - _e >>> 0) & - (_e >>> 0 < - (g + c[(d + 4) >> 2]) >>> 0) - ) - break A - if (!(d = c[(d + 8) >> 2])) - break - } - if ( - (0 | (g = Lu(0))) == -1 || - ((j = h), - (d = ((_e = c[9249]) - 1) | 0) & - g && - (j = - (((h - g) | 0) + - ((d + g) & (0 - _e))) | - 0), - j >>> 0 <= cn >>> 0) || - ((_e = c[9240]) && - (_e >>> 0 < - (hn = - ((d = c[9238]) + j) | 0) >>> - 0) | - (d >>> 0 >= hn >>> 0)) - ) - break o - if ((0 | g) != (0 | (d = Lu(j)))) - break l - break i - } - if ( - (0 | - (g = Lu((j = hn & (on - Dn))))) == - ((c[d >> 2] + c[(d + 4) >> 2]) | 0) - ) - break d - d = g - } - if ((0 | d) == -1) break o - if ((cn + 48) >>> 0 <= j >>> 0) { - g = d - break i - } - if ( - (0 | - Lu( - (g = - ((g = c[9250]) + - (($n - j) | 0)) & - (0 - g)), - )) == - -1 - ) - break o - ;(j = (g + j) | 0), (g = d) - break i - } - if ((0 | g) != -1) break i - } - c[9241] = 4 | c[9241] - } - if ( - ((0 | (g = Lu(h))) == -1) | - ((0 | (d = Lu(0))) == -1) | - (d >>> 0 <= g >>> 0) || - (j = (d - g) | 0) >>> 0 <= (cn + 40) >>> 0 - ) - break r - } - ;(d = (c[9238] + j) | 0), - (c[9238] = d), - d >>> 0 > Es[9239] && (c[9239] = d) - i: { - if ((on = c[9136])) { - for (d = 36968; ; ) { - if ( - (((_e = c[d >> 2]) + - (h = c[(d + 4) >> 2])) | - 0) == - (0 | g) - ) - break i - if (!(d = c[(d + 8) >> 2])) break - } - break u - } - for ( - ((d = c[9134]) >>> 0 <= g >>> 0 && d) || - (c[9134] = g), - d = 0, - c[9243] = j, - c[9242] = g, - c[9138] = -1, - c[9139] = c[9248], - c[9245] = 0; - (h = (36560 + (_e = d << 3)) | 0), - (c[(_e + 36568) >> 2] = h), - (c[(_e + 36572) >> 2] = h), - (0 | (d = (d + 1) | 0)) != 32; - - ); - ;(h = - ((_e = (j - 40) | 0) - - (d = (g + 8) & 7 ? (-8 - g) & 7 : 0)) | - 0), - (c[9133] = h), - (d = (d + g) | 0), - (c[9136] = d), - (c[(d + 4) >> 2] = 1 | h), - (c[(4 + ((g + _e) | 0)) >> 2] = 40), - (c[9137] = c[9252]) - break a - } - if ( - (8 & rn[(d + 12) | 0]) | - (_e >>> 0 > on >>> 0) | - (g >>> 0 <= on >>> 0) - ) - break u - ;(c[(d + 4) >> 2] = h + j), - (g = - ((d = (on + 8) & 7 ? (-8 - on) & 7 : 0) + - on) | - 0), - (c[9136] = g), - (d = ((h = (c[9133] + j) | 0) - d) | 0), - (c[9133] = d), - (c[(g + 4) >> 2] = 1 | d), - (c[(4 + ((h + on) | 0)) >> 2] = 40), - (c[9137] = c[9252]) - break a - } - _e = 0 - break n - } - g = 0 - break t - } - Es[9134] > g >>> 0 && (c[9134] = g), - (h = (g + j) | 0), - (d = 36968) - u: { - s: { - c: { - i: { - o: { - d: { - for (;;) { - if ((0 | h) != c[d >> 2]) { - if ((d = c[(d + 8) >> 2])) continue - break d - } - break - } - if (!(8 & rn[(d + 12) | 0])) break o - } - for (d = 36968; ; ) { - if ( - (h = c[d >> 2]) >>> 0 <= on >>> 0 && - (hn = (h + c[(d + 4) >> 2]) | 0) >>> 0 > - on >>> 0 - ) - break i - d = c[(d + 8) >> 2] - } - } - if ( - ((c[d >> 2] = g), - (c[(d + 4) >> 2] = c[(d + 4) >> 2] + j), - (c[ - (4 + - ($n = - (((g + 8) & 7 ? (-8 - g) & 7 : 0) + - g) | - 0)) >> - 2 - ] = 3 | cn), - (d = - ((j = - (h + ((h + 8) & 7 ? (-8 - h) & 7 : 0)) | - 0) - - (Dn = (cn + $n) | 0)) | - 0), - (0 | on) == (0 | j)) - ) { - ;(c[9136] = Dn), - (d = (c[9133] + d) | 0), - (c[9133] = d), - (c[(Dn + 4) >> 2] = 1 | d) - break s - } - if (c[9135] == (0 | j)) { - ;(c[9135] = Dn), - (d = (c[9132] + d) | 0), - (c[9132] = d), - (c[(Dn + 4) >> 2] = 1 | d), - (c[(d + Dn) >> 2] = d) - break s - } - if ((3 & (hn = c[(j + 4) >> 2])) == 1) { - on = -8 & hn - o: if (hn >>> 0 <= 255) { - if ( - ((_e = c[(j + 8) >> 2]), - (h = (hn >>> 3) | 0), - (0 | (g = c[(j + 12) >> 2])) == - (0 | _e)) - ) { - ;(Un = 36520), - (Yn = c[9130] & Ft(-2, h)), - (c[Un >> 2] = Yn) - break o - } - ;(c[(_e + 12) >> 2] = g), - (c[(g + 8) >> 2] = _e) - } else { - if ( - ((cn = c[(j + 24) >> 2]), - (0 | j) == (0 | (g = c[(j + 12) >> 2]))) - ) - if ( - (h = c[(hn = (j + 20) | 0) >> 2]) || - (h = c[(hn = (j + 16) | 0) >> 2]) - ) { - for ( - ; - (_e = hn), - (h = - c[ - (hn = ((g = h) + 20) | 0) >> 2 - ]) || - ((hn = (g + 16) | 0), - (h = c[(g + 16) >> 2])); - - ); - c[_e >> 2] = 0 - } else g = 0 - else - (h = c[(j + 8) >> 2]), - (c[(h + 12) >> 2] = g), - (c[(g + 8) >> 2] = h) - if (cn) { - _e = c[(j + 28) >> 2] - d: { - if ( - c[ - (h = (36824 + (_e << 2)) | 0) >> 2 - ] == - (0 | j) - ) { - if (((c[h >> 2] = g), g)) break d - ;(Un = 36524), - (Yn = c[9131] & Ft(-2, _e)), - (c[Un >> 2] = Yn) - break o - } - if ( - ((c[ - (cn + - (c[(cn + 16) >> 2] == (0 | j) - ? 16 - : 20)) >> - 2 - ] = g), - !g) - ) - break o - } - ;(c[(g + 24) >> 2] = cn), - (h = c[(j + 16) >> 2]) && - ((c[(g + 16) >> 2] = h), - (c[(h + 24) >> 2] = g)), - (h = c[(j + 20) >> 2]) && - ((c[(g + 20) >> 2] = h), - (c[(h + 24) >> 2] = g)) - } - } - ;(hn = c[(4 + (j = (on + j) | 0)) >> 2]), - (d = (d + on) | 0) - } - if ( - ((c[(j + 4) >> 2] = -2 & hn), - (c[(Dn + 4) >> 2] = 1 | d), - (c[(d + Dn) >> 2] = d), - d >>> 0 <= 255) - ) { - ;(h = (36560 + (-8 & d)) | 0), - (g = c[9130]) & (d = 1 << (d >>> 3)) - ? (d = c[(h + 8) >> 2]) - : ((c[9130] = d | g), (d = h)), - (c[(h + 8) >> 2] = Dn), - (c[(d + 12) >> 2] = Dn), - (c[(Dn + 12) >> 2] = h), - (c[(Dn + 8) >> 2] = d) - break s - } - if ( - ((hn = 31), - d >>> 0 <= 16777215 && - (hn = - (62 + - ((((d >>> - (38 - (h = Ms((d >>> 8) | 0)))) & - 1) - - (h << 1)) | - 0)) | - 0), - (c[(Dn + 28) >> 2] = hn), - (c[(Dn + 16) >> 2] = 0), - (c[(Dn + 20) >> 2] = 0), - (h = (36824 + (hn << 2)) | 0), - (_e = c[9131]) & (g = 1 << hn)) - ) { - for ( - hn = - d << - ((0 | hn) != 31 - ? (25 - ((hn >>> 1) | 0)) | 0 - : 0), - g = c[h >> 2]; - ; - - ) { - if ( - ((h = g), - (-8 & c[(g + 4) >> 2]) == (0 | d)) - ) - break c - if ( - ((g = (hn >>> 29) | 0), - (hn <<= 1), - !(g = - c[ - (16 + (_e = ((4 & g) + h) | 0)) >> 2 - ])) - ) - break - } - c[(_e + 16) >> 2] = Dn - } else (c[9131] = g | _e), (c[h >> 2] = Dn) - ;(c[(Dn + 24) >> 2] = h), - (c[(Dn + 12) >> 2] = Dn), - (c[(Dn + 8) >> 2] = Dn) - break s - } - for ( - h = - ((_e = (j - 40) | 0) - - (d = (g + 8) & 7 ? (-8 - g) & 7 : 0)) | - 0, - c[9133] = h, - d = (d + g) | 0, - c[9136] = d, - c[(d + 4) >> 2] = 1 | h, - c[(4 + ((g + _e) | 0)) >> 2] = 40, - c[9137] = c[9252], - c[ - ((_e = - (d = - (((hn + - ((hn - 39) & 7 - ? (39 - hn) & 7 - : 0)) | - 0) - - 47) | - 0) >>> - 0 < - (on + 16) >>> 0 - ? on - : d) + - 4) >> - 2 - ] = 27, - d = c[9245], - c[(_e + 16) >> 2] = c[9244], - c[(_e + 20) >> 2] = d, - d = c[9243], - c[(_e + 8) >> 2] = c[9242], - c[(_e + 12) >> 2] = d, - c[9244] = _e + 8, - c[9243] = j, - c[9242] = g, - c[9245] = 0, - d = (_e + 24) | 0; - (c[(d + 4) >> 2] = 7), - (h = (d + 8) | 0), - (d = (d + 4) | 0), - h >>> 0 < hn >>> 0; - - ); - if ((0 | _e) == (0 | on)) break a - if ( - ((c[(_e + 4) >> 2] = -2 & c[(_e + 4) >> 2]), - (hn = (_e - on) | 0), - (c[(on + 4) >> 2] = 1 | hn), - (c[_e >> 2] = hn), - hn >>> 0 <= 255) - ) { - ;(h = (36560 + (-8 & hn)) | 0), - (g = c[9130]) & (d = 1 << (hn >>> 3)) - ? (d = c[(h + 8) >> 2]) - : ((c[9130] = d | g), (d = h)), - (c[(h + 8) >> 2] = on), - (c[(d + 12) >> 2] = on), - (c[(on + 12) >> 2] = h), - (c[(on + 8) >> 2] = d) - break a - } - if ( - ((d = 31), - hn >>> 0 <= 16777215 && - (d = - (62 + - ((((hn >>> - (38 - (d = Ms((hn >>> 8) | 0)))) & - 1) - - (d << 1)) | - 0)) | - 0), - (c[(on + 28) >> 2] = d), - (c[(on + 16) >> 2] = 0), - (c[(on + 20) >> 2] = 0), - (h = (36824 + (d << 2)) | 0), - (_e = c[9131]) & (g = 1 << d)) - ) { - for ( - d = - hn << - ((0 | d) != 31 - ? (25 - ((d >>> 1) | 0)) | 0 - : 0), - _e = c[h >> 2]; - ; - - ) { - if ( - (0 | hn) == - (-8 & c[((h = _e) + 4) >> 2]) - ) - break u - if ( - ((g = (d >>> 29) | 0), - (d <<= 1), - !(_e = - c[(16 + (g = ((4 & g) + h) | 0)) >> 2])) - ) - break - } - c[(g + 16) >> 2] = on - } else (c[9131] = g | _e), (c[h >> 2] = on) - ;(c[(on + 24) >> 2] = h), - (c[(on + 12) >> 2] = on), - (c[(on + 8) >> 2] = on) - break a - } - ;(d = c[(h + 8) >> 2]), - (c[(d + 12) >> 2] = Dn), - (c[(h + 8) >> 2] = Dn), - (c[(Dn + 24) >> 2] = 0), - (c[(Dn + 12) >> 2] = h), - (c[(Dn + 8) >> 2] = d) - } - d = ($n + 8) | 0 - break e - } - ;(d = c[(h + 8) >> 2]), - (c[(d + 12) >> 2] = on), - (c[(h + 8) >> 2] = on), - (c[(on + 24) >> 2] = 0), - (c[(on + 12) >> 2] = h), - (c[(on + 8) >> 2] = d) - } - if (!((d = c[9133]) >>> 0 <= cn >>> 0)) { - ;(h = (d - cn) | 0), - (c[9133] = h), - (d = ((g = c[9136]) + cn) | 0), - (c[9136] = d), - (c[(d + 4) >> 2] = 1 | h), - (c[(g + 4) >> 2] = 3 | cn), - (d = (g + 8) | 0) - break e - } - } - ;(c[9129] = 48), (d = 0) - break e - } - t: if (j) { - h = c[(_e + 28) >> 2] - r: { - if (c[(d = (36824 + (h << 2)) | 0) >> 2] == (0 | _e)) { - if (((c[d >> 2] = g), g)) break r - ;($n = Ft(-2, h) & $n), (c[9131] = $n) - break t - } - if ( - ((c[ - (j + (c[(j + 16) >> 2] == (0 | _e) ? 16 : 20)) >> 2 - ] = g), - !g) - ) - break t - } - ;(c[(g + 24) >> 2] = j), - (d = c[(_e + 16) >> 2]) && - ((c[(g + 16) >> 2] = d), (c[(d + 24) >> 2] = g)), - (d = c[(_e + 20) >> 2]) && - ((c[(g + 20) >> 2] = d), (c[(d + 24) >> 2] = g)) - } - t: if (hn >>> 0 <= 15) - (d = (hn + cn) | 0), - (c[(_e + 4) >> 2] = 3 | d), - (c[(4 + (d = (d + _e) | 0)) >> 2] = 1 | c[(d + 4) >> 2]) - else if ( - ((c[(_e + 4) >> 2] = 3 | cn), - (c[(4 + (on = (_e + cn) | 0)) >> 2] = 1 | hn), - (c[(on + hn) >> 2] = hn), - hn >>> 0 <= 255) - ) - (h = (36560 + (-8 & hn)) | 0), - (g = c[9130]) & (d = 1 << (hn >>> 3)) - ? (d = c[(h + 8) >> 2]) - : ((c[9130] = d | g), (d = h)), - (c[(h + 8) >> 2] = on), - (c[(d + 12) >> 2] = on), - (c[(on + 12) >> 2] = h), - (c[(on + 8) >> 2] = d) - else { - ;(d = 31), - hn >>> 0 <= 16777215 && - (d = - (62 + - ((((hn >>> (38 - (d = Ms((hn >>> 8) | 0)))) & 1) - - (d << 1)) | - 0)) | - 0), - (c[(on + 28) >> 2] = d), - (c[(on + 16) >> 2] = 0), - (c[(on + 20) >> 2] = 0), - (h = (36824 + (d << 2)) | 0) - r: { - if ((g = 1 << d) & $n) { - for ( - d = - hn << - ((0 | d) != 31 ? (25 - ((d >>> 1) | 0)) | 0 : 0), - cn = c[h >> 2]; - ; - - ) { - if ((-8 & c[((h = cn) + 4) >> 2]) == (0 | hn)) - break r - if ( - ((g = (d >>> 29) | 0), - (d <<= 1), - !(cn = c[(16 + (g = ((4 & g) + h) | 0)) >> 2])) - ) - break - } - c[(g + 16) >> 2] = on - } else (c[9131] = g | $n), (c[h >> 2] = on) - ;(c[(on + 24) >> 2] = h), - (c[(on + 12) >> 2] = on), - (c[(on + 8) >> 2] = on) - break t - } - ;(d = c[(h + 8) >> 2]), - (c[(d + 12) >> 2] = on), - (c[(h + 8) >> 2] = on), - (c[(on + 24) >> 2] = 0), - (c[(on + 12) >> 2] = h), - (c[(on + 8) >> 2] = d) - } - d = (_e + 8) | 0 - break e - } - n: if (Dn) { - h = c[(g + 28) >> 2] - t: { - if (c[(d = (36824 + (h << 2)) | 0) >> 2] == (0 | g)) { - if (((c[d >> 2] = _e), _e)) break t - ;(Un = 36524), (Yn = Ft(-2, h) & $n), (c[Un >> 2] = Yn) - break n - } - if ( - ((c[ - (Dn + (c[(Dn + 16) >> 2] == (0 | g) ? 16 : 20)) >> 2 - ] = _e), - !_e) - ) - break n - } - ;(c[(_e + 24) >> 2] = Dn), - (d = c[(g + 16) >> 2]) && - ((c[(_e + 16) >> 2] = d), (c[(d + 24) >> 2] = _e)), - (d = c[(g + 20) >> 2]) && - ((c[(_e + 20) >> 2] = d), (c[(d + 24) >> 2] = _e)) - } - hn >>> 0 <= 15 - ? ((d = (hn + cn) | 0), - (c[(g + 4) >> 2] = 3 | d), - (c[(4 + (d = (d + g) | 0)) >> 2] = 1 | c[(d + 4) >> 2])) - : ((c[(g + 4) >> 2] = 3 | cn), - (c[(4 + (_e = (g + cn) | 0)) >> 2] = 1 | hn), - (c[(_e + hn) >> 2] = hn), - wn && - ((h = (36560 + (-8 & wn)) | 0), - (on = c[9135]), - (d = 1 << (wn >>> 3)) & j - ? (d = c[(h + 8) >> 2]) - : ((c[9130] = d | j), (d = h)), - (c[(h + 8) >> 2] = on), - (c[(d + 12) >> 2] = on), - (c[(on + 12) >> 2] = h), - (c[(on + 8) >> 2] = d)), - (c[9135] = _e), - (c[9132] = hn)), - (d = (g + 8) | 0) - } - return (St = (a + 16) | 0), 0 | d - } - function $u(d, a, h, g, _e, on) { - var hn, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0 - if ( - ((St = hn = (St - 592) | 0), - (cn = -1), - cA((Un = (d + 32) | 0)) && - !e0(d) && - Z0(_e) && - !e0(_e) && - !to((hn + 128) | 0, _e)) - ) { - for ( - hu((cn = (hn + 384) | 0)), - on && ms(cn, 35248, 34, 0), - ms(cn, d, 32, 0), - ms(cn, _e, 32, 0), - ms(cn, a, h, g), - Ts(cn, (h = (hn + 320) | 0)), - zs(h), - on = (hn + 8) | 0, - g = (hn + 128) | 0, - _e = 0, - a = 0, - St = j = (St - 2272) | 0; - (Dn = (h + ((_e >>> 3) | 0)) | 0), - (pn[((cn = (j + 2016) | 0) + _e) | 0] = - (rn[0 | Dn] >>> (6 & _e)) & 1), - (pn[(($n = cn) + (cn = 1 | _e)) | 0] = - (rn[0 | Dn] >>> (7 & cn)) & 1), - (0 | (_e = (_e + 2) | 0)) != 256; - - ); - for (;;) { - a = ((h = a) + 1) | 0 - e: if ( - !( - !rn[0 | (Yn = (h + ((j + 2016) | 0)) | 0)] | - (h >>> 0 > 254) - ) - ) { - n: if ((_e = pn[0 | ($n = (((j + 2016) | 0) + a) | 0)])) - if ( - (0 | - (_e = ((Dn = _e << 1) + (cn = pn[0 | Yn])) | 0)) <= - 15 - ) - (pn[0 | Yn] = _e), (pn[0 | $n] = 0) - else { - if ((0 | (_e = (cn - Dn) | 0)) < -15) break e - for (pn[0 | Yn] = _e, _e = a; ; ) { - if (!rn[0 | (cn = (((j + 2016) | 0) + _e) | 0)]) { - pn[0 | cn] = 1 - break n - } - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - !cn) - ) - break - } - } - if (!(h >>> 0 > 253)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 2) | 0) + ((j + 2016) | 0)) | 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 2) + (Dn = pn[0 | Yn])) | 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Yn] = cn; ; ) { - if (rn[0 | (cn = (((j + 2016) | 0) + _e) | 0)]) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Yn] = cn), (pn[0 | wn] = 0) - if (!(h >>> 0 > 252)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 3) | 0) + ((j + 2016) | 0)) | 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 3) + (Dn = pn[0 | Yn])) | 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Yn] = cn; ; ) { - if ( - rn[0 | (cn = (((j + 2016) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Yn] = cn), (pn[0 | wn] = 0) - if (!(h >>> 0 > 251)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 4) | 0) + ((j + 2016) | 0)) | - 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 4) + (Dn = pn[0 | Yn])) | - 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Yn] = cn; ; ) { - if ( - rn[0 | (cn = (((j + 2016) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Yn] = cn), (pn[0 | wn] = 0) - if (!(h >>> 0 > 250)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 5) | 0) + - ((j + 2016) | 0)) | - 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 5) + (Dn = pn[0 | Yn])) | - 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Yn] = cn; ; ) { - if ( - rn[0 | (cn = (((j + 2016) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Yn] = cn), (pn[0 | wn] = 0) - if ( - !(h >>> 0 > 249) && - (h = - pn[ - 0 | - ($n = - ((_e = (h + 6) | 0) + - ((j + 2016) | 0)) | - 0) - ]) - ) - if ( - (0 | - (h = - ((Dn = h << 6) + (cn = pn[0 | Yn])) | - 0)) >= - 16 - ) { - if ((0 | (h = (cn - Dn) | 0)) < -15) break e - for (pn[0 | Yn] = h; ; ) { - if ( - rn[0 | (h = (((j + 2016) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | h] = 0), - (h = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - h) - ) - continue - break e - } - break - } - pn[0 | h] = 1 - } else (pn[0 | Yn] = h), (pn[0 | $n] = 0) - } - } - } - } - } - if ((0 | a) == 256) break - } - for ( - _e = 0; - (h = (Un + ((_e >>> 3) | 0)) | 0), - (pn[((a = (j + 1760) | 0) + _e) | 0] = - (rn[0 | h] >>> (6 & _e)) & 1), - (pn[((cn = a) + (a = 1 | _e)) | 0] = - (rn[0 | h] >>> (7 & a)) & 1), - (0 | (_e = (_e + 2) | 0)) != 256; - - ); - for (a = 0; ; ) { - a = ((h = a) + 1) | 0 - e: if ( - !( - !rn[0 | (Un = (h + ((j + 1760) | 0)) | 0)] | - (h >>> 0 > 254) - ) - ) { - n: if ((_e = pn[0 | ($n = (((j + 1760) | 0) + a) | 0)])) - if ( - (0 | - (_e = ((Dn = _e << 1) + (cn = pn[0 | Un])) | 0)) <= - 15 - ) - (pn[0 | Un] = _e), (pn[0 | $n] = 0) - else { - if ((0 | (_e = (cn - Dn) | 0)) < -15) break e - for (pn[0 | Un] = _e, _e = a; ; ) { - if (!rn[0 | (cn = (((j + 1760) | 0) + _e) | 0)]) { - pn[0 | cn] = 1 - break n - } - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - !cn) - ) - break - } - } - if (!(h >>> 0 > 253)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 2) | 0) + ((j + 1760) | 0)) | 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 2) + (Dn = pn[0 | Un])) | 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Un] = cn; ; ) { - if (rn[0 | (cn = (((j + 1760) | 0) + _e) | 0)]) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Un] = cn), (pn[0 | wn] = 0) - if (!(h >>> 0 > 252)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 3) | 0) + ((j + 1760) | 0)) | 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 3) + (Dn = pn[0 | Un])) | 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Un] = cn; ; ) { - if ( - rn[0 | (cn = (((j + 1760) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Un] = cn), (pn[0 | wn] = 0) - if (!(h >>> 0 > 251)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 4) | 0) + ((j + 1760) | 0)) | - 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 4) + (Dn = pn[0 | Un])) | - 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Un] = cn; ; ) { - if ( - rn[0 | (cn = (((j + 1760) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Un] = cn), (pn[0 | wn] = 0) - if (!(h >>> 0 > 250)) { - n: if ( - (cn = - pn[ - 0 | - (wn = - ((_e = (h + 5) | 0) + - ((j + 1760) | 0)) | - 0) - ]) - ) - if ( - (0 | - (cn = - (($n = cn << 5) + (Dn = pn[0 | Un])) | - 0)) >= - 16 - ) { - if ((0 | (cn = (Dn - $n) | 0)) < -15) break e - for (pn[0 | Un] = cn; ; ) { - if ( - rn[0 | (cn = (((j + 1760) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | cn] = 0), - (cn = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - cn) - ) - continue - break n - } - break - } - pn[0 | cn] = 1 - } else (pn[0 | Un] = cn), (pn[0 | wn] = 0) - if ( - !(h >>> 0 > 249) && - (h = - pn[ - 0 | - ($n = - ((_e = (h + 6) | 0) + - ((j + 1760) | 0)) | - 0) - ]) - ) - if ( - (0 | - (h = - ((Dn = h << 6) + (cn = pn[0 | Un])) | - 0)) >= - 16 - ) { - if ((0 | (h = (cn - Dn) | 0)) < -15) break e - for (pn[0 | Un] = h; ; ) { - if ( - rn[0 | (h = (((j + 1760) | 0) + _e) | 0)] - ) { - if ( - ((pn[0 | h] = 0), - (h = _e >>> 0 < 255), - (_e = (_e + 1) | 0), - h) - ) - continue - break e - } - break - } - pn[0 | h] = 1 - } else (pn[0 | Un] = h), (pn[0 | $n] = 0) - } - } - } - } - } - if ((0 | a) == 256) break - } - for ( - ds((gt = (j + 480) | 0), g), - Yn = c[(g + 8) >> 2], - Un = c[(g + 12) >> 2], - wn = c[(g + 16) >> 2], - $n = c[(g + 20) >> 2], - Dn = c[(g + 24) >> 2], - cn = c[(g + 28) >> 2], - _e = c[g >> 2], - h = c[(g + 4) >> 2], - a = c[(g + 36) >> 2], - c[(j + 192) >> 2] = c[(g + 32) >> 2], - c[(j + 196) >> 2] = a, - c[(j + 184) >> 2] = Dn, - c[(j + 188) >> 2] = cn, - c[(j + 176) >> 2] = wn, - c[(j + 180) >> 2] = $n, - c[(j + 168) >> 2] = Yn, - c[(j + 172) >> 2] = Un, - c[(j + 160) >> 2] = _e, - c[(j + 164) >> 2] = h, - Yn = c[(g + 40) >> 2], - Un = c[(g + 44) >> 2], - wn = c[(g + 48) >> 2], - $n = c[(g + 52) >> 2], - Dn = c[(g + 56) >> 2], - cn = c[(g + 60) >> 2], - _e = c[(a = (g - -64) | 0) >> 2], - h = c[(a + 4) >> 2], - a = c[(g + 76) >> 2], - c[(j + 232) >> 2] = c[(g + 72) >> 2], - c[(j + 236) >> 2] = a, - c[(j + 224) >> 2] = _e, - c[(j + 228) >> 2] = h, - c[(j + 216) >> 2] = Dn, - c[(j + 220) >> 2] = cn, - c[(j + 208) >> 2] = wn, - c[(j + 212) >> 2] = $n, - c[(j + 200) >> 2] = Yn, - c[(j + 204) >> 2] = Un, - Yn = c[(g + 80) >> 2], - Un = c[(g + 84) >> 2], - wn = c[(g + 88) >> 2], - $n = c[(g + 92) >> 2], - Dn = c[(g + 96) >> 2], - cn = c[(g + 100) >> 2], - _e = c[(g + 104) >> 2], - h = c[(g + 108) >> 2], - a = c[(g + 116) >> 2], - c[(j + 272) >> 2] = c[(g + 112) >> 2], - c[(j + 276) >> 2] = a, - c[(j + 264) >> 2] = _e, - c[(j + 268) >> 2] = h, - c[(j + 256) >> 2] = Dn, - c[(j + 260) >> 2] = cn, - c[(j + 248) >> 2] = wn, - c[(j + 252) >> 2] = $n, - c[(j + 240) >> 2] = Yn, - c[(j + 244) >> 2] = Un, - ot((g = (j + 320) | 0), (h = (j + 160) | 0)), - Gt(j, g, (et = (j + 440) | 0)), - Gt( - (j + 40) | 0, - (nt = (j + 360) | 0), - (at = (j + 400) | 0), - ), - Gt((j + 80) | 0, at, et), - Gt((j + 120) | 0, g, nt), - hs(g, j, gt), - Gt(h, g, et), - Gt((mt = (j + 200) | 0), nt, at), - Gt((yt = (j + 240) | 0), at, et), - Gt((pt = (j + 280) | 0), g, nt), - ds((a = (j + 640) | 0), h), - hs(g, j, a), - Gt(h, g, et), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - ds((a = (j + 800) | 0), h), - hs(g, j, a), - Gt(h, g, et), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - ds((a = (j + 960) | 0), h), - hs(g, j, a), - Gt(h, g, et), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - ds((a = (j + 1120) | 0), h), - hs(g, j, a), - Gt(h, g, et), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - ds((a = (j + 1280) | 0), h), - hs(g, j, a), - Gt(h, g, et), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - ds((a = (j + 1440) | 0), h), - hs(g, j, a), - Gt(h, g, et), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - ds((j + 1600) | 0, h), - c[(on + 32) >> 2] = 0, - c[(on + 36) >> 2] = 0, - c[(on + 24) >> 2] = 0, - c[(on + 28) >> 2] = 0, - c[(on + 16) >> 2] = 0, - c[(on + 20) >> 2] = 0, - c[(on + 8) >> 2] = 0, - c[(on + 12) >> 2] = 0, - c[on >> 2] = 0, - c[(on + 4) >> 2] = 0, - c[(on + 44) >> 2] = 0, - c[(on + 48) >> 2] = 0, - c[(rr = (on + 40) | 0) >> 2] = 1, - c[(on + 52) >> 2] = 0, - c[(on + 56) >> 2] = 0, - c[(on + 60) >> 2] = 0, - c[(on + 64) >> 2] = 0, - c[(on + 68) >> 2] = 0, - c[(on + 72) >> 2] = 0, - c[(on + 84) >> 2] = 0, - c[(on + 88) >> 2] = 0, - c[(on + 76) >> 2] = 0, - c[(on + 80) >> 2] = 1, - c[(on + 92) >> 2] = 0, - c[(on + 96) >> 2] = 0, - c[(on + 100) >> 2] = 0, - c[(on + 104) >> 2] = 0, - c[(on + 108) >> 2] = 0, - c[(on + 112) >> 2] = 0, - c[(on + 116) >> 2] = 0, - Pt = (on + 80) | 0, - a = 255; - ; - - ) { - e: { - n: { - if ( - !( - rn[(((j + 2016) | 0) + a) | 0] | - rn[(((j + 1760) | 0) + a) | 0] - ) - ) { - if ( - !( - rn[((h = (a - 1) | 0) + ((j + 2016) | 0)) | 0] | - rn[(h + ((j + 1760) | 0)) | 0] - ) - ) - break n - a = h - } - if ((0 | a) < 0) break e - for ( - ; - ot((j + 320) | 0, on), - (0 | (_e = pn[((h = a) + ((j + 2016) | 0)) | 0])) > - 0 - ? (Gt( - (a = (j + 160) | 0), - (g = (j + 320) | 0), - et, - ), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - hs( - g, - a, - (((j + 480) | 0) + - zr(((254 & _e) >>> 1) | 0, 160)) | - 0, - )) - : (0 | _e) >= 0 || - (Gt( - (a = (j + 160) | 0), - (g = (j + 320) | 0), - et, - ), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - Nu( - g, - a, - (((j + 480) | 0) + - zr((((0 - _e) & 254) >>> 1) | 0, 160)) | - 0, - )), - (0 | (Zt = pn[(h + ((j + 1760) | 0)) | 0])) > 0 - ? (Gt( - (a = (j + 160) | 0), - (g = (j + 320) | 0), - et, - ), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, g, nt), - Zu( - g, - a, - (zr(((254 & Zt) >>> 1) | 0, 120) + 1744) | 0, - )) - : (0 | Zt) >= 0 || - (Gt((j + 160) | 0, (jt = (j + 320) | 0), et), - Gt(mt, nt, at), - Gt(yt, at, et), - Gt(pt, jt, nt), - (_t = c[(j + 160) >> 2]), - (bt = c[(j + 200) >> 2]), - (kt = c[(j + 164) >> 2]), - (Rt = c[(j + 204) >> 2]), - (At = c[(j + 168) >> 2]), - (Ct = c[(j + 208) >> 2]), - (wt = c[(j + 172) >> 2]), - (Tt = c[(j + 212) >> 2]), - (Jt = c[(j + 176) >> 2]), - (Ht = c[(j + 216) >> 2]), - (gt = c[(j + 180) >> 2]), - (Yn = c[(j + 220) >> 2]), - (Un = c[(j + 184) >> 2]), - (wn = c[(j + 224) >> 2]), - ($n = c[(j + 188) >> 2]), - (Dn = c[(j + 228) >> 2]), - (cn = c[(j + 192) >> 2]), - (_e = c[(j + 232) >> 2]), - (g = c[(j + 236) >> 2]), - (a = c[(j + 196) >> 2]), - (c[(j + 396) >> 2] = g - a), - (c[(j + 392) >> 2] = _e - cn), - (c[(j + 388) >> 2] = Dn - $n), - (c[(j + 384) >> 2] = wn - Un), - (c[(j + 380) >> 2] = Yn - gt), - (c[(j + 376) >> 2] = Ht - Jt), - (c[(j + 372) >> 2] = Tt - wt), - (c[(j + 368) >> 2] = Ct - At), - (c[(j + 364) >> 2] = Rt - kt), - (c[(j + 360) >> 2] = bt - _t), - (c[(j + 356) >> 2] = a + g), - (c[(j + 352) >> 2] = _e + cn), - (c[(j + 348) >> 2] = Dn + $n), - (c[(j + 344) >> 2] = Un + wn), - (c[(j + 340) >> 2] = Yn + gt), - (c[(j + 336) >> 2] = Jt + Ht), - (c[(j + 332) >> 2] = wt + Tt), - (c[(j + 328) >> 2] = At + Ct), - (c[(j + 324) >> 2] = kt + Rt), - (c[(j + 320) >> 2] = _t + bt), - Gt( - at, - jt, - (40 + - (a = - (zr((((0 - Zt) & 254) >>> 1) | 0, 120) + - 1744) | - 0)) | - 0, - ), - Gt(nt, nt, a), - Gt(et, (a + 80) | 0, pt), - (xt = c[(j + 276) >> 2]), - (fr = c[(j + 272) >> 2]), - (Zt = c[(j + 268) >> 2]), - (jt = c[(j + 264) >> 2]), - (Un = c[(j + 260) >> 2]), - (wn = c[(j + 256) >> 2]), - ($n = c[(j + 252) >> 2]), - (Dn = c[(j + 248) >> 2]), - (cn = c[(j + 244) >> 2]), - (_e = c[(j + 240) >> 2]), - (sr = c[(j + 360) >> 2]), - (Qt = c[(j + 400) >> 2]), - (Ut = c[(j + 364) >> 2]), - (tr = c[(j + 404) >> 2]), - (dr = c[(j + 368) >> 2]), - (Ar = c[(j + 408) >> 2]), - (_t = c[(j + 372) >> 2]), - (bt = c[(j + 412) >> 2]), - (kt = c[(j + 376) >> 2]), - (Rt = c[(j + 416) >> 2]), - (At = c[(j + 380) >> 2]), - (Ct = c[(j + 420) >> 2]), - (wt = c[(j + 384) >> 2]), - (Tt = c[(j + 424) >> 2]), - (Jt = c[(j + 388) >> 2]), - (Ht = c[(j + 428) >> 2]), - (gt = c[(j + 392) >> 2]), - (Yn = c[(j + 432) >> 2]), - (g = c[(j + 396) >> 2]), - (a = c[(j + 436) >> 2]), - (c[(j + 396) >> 2] = g + a), - (c[(j + 392) >> 2] = Yn + gt), - (c[(j + 388) >> 2] = Jt + Ht), - (c[(j + 384) >> 2] = wt + Tt), - (c[(j + 380) >> 2] = At + Ct), - (c[(j + 376) >> 2] = kt + Rt), - (c[(j + 372) >> 2] = _t + bt), - (c[(j + 368) >> 2] = dr + Ar), - (c[(j + 364) >> 2] = Ut + tr), - (c[(j + 360) >> 2] = sr + Qt), - (c[(j + 356) >> 2] = a - g), - (c[(j + 352) >> 2] = Yn - gt), - (c[(j + 348) >> 2] = Ht - Jt), - (c[(j + 344) >> 2] = Tt - wt), - (c[(j + 340) >> 2] = Ct - At), - (c[(j + 336) >> 2] = Rt - kt), - (c[(j + 332) >> 2] = bt - _t), - (c[(j + 328) >> 2] = Ar - dr), - (c[(j + 324) >> 2] = tr - Ut), - (c[(j + 320) >> 2] = Qt - sr), - (_t = _e << 1), - (bt = c[(j + 440) >> 2]), - (c[(j + 400) >> 2] = _t - bt), - (kt = cn << 1), - (Rt = c[(j + 444) >> 2]), - (c[(j + 404) >> 2] = kt - Rt), - (At = Dn << 1), - (Ct = c[(j + 448) >> 2]), - (c[(j + 408) >> 2] = At - Ct), - (wt = $n << 1), - (Tt = c[(j + 452) >> 2]), - (c[(j + 412) >> 2] = wt - Tt), - (Jt = wn << 1), - (Ht = c[(j + 456) >> 2]), - (c[(j + 416) >> 2] = Jt - Ht), - (gt = Un << 1), - (Yn = c[(j + 460) >> 2]), - (c[(j + 420) >> 2] = gt - Yn), - (Un = jt << 1), - (wn = c[(j + 464) >> 2]), - (c[(j + 424) >> 2] = Un - wn), - ($n = Zt << 1), - (Dn = c[(j + 468) >> 2]), - (c[(j + 428) >> 2] = $n - Dn), - (cn = fr << 1), - (_e = c[(j + 472) >> 2]), - (c[(j + 432) >> 2] = cn - _e), - (g = xt << 1), - (a = c[(j + 476) >> 2]), - (c[(j + 436) >> 2] = g - a), - (c[(j + 440) >> 2] = _t + bt), - (c[(j + 444) >> 2] = kt + Rt), - (c[(j + 448) >> 2] = At + Ct), - (c[(j + 452) >> 2] = wt + Tt), - (c[(j + 456) >> 2] = Jt + Ht), - (c[(j + 460) >> 2] = Yn + gt), - (c[(j + 464) >> 2] = Un + wn), - (c[(j + 468) >> 2] = Dn + $n), - (c[(j + 472) >> 2] = _e + cn), - (c[(j + 476) >> 2] = a + g)), - Gt(on, (j + 320) | 0, et), - Gt(rr, nt, at), - Gt(Pt, at, et), - (a = (h - 1) | 0), - (0 | h) > 0; - - ); - break e - } - if (((a = (a - 2) | 0), h)) continue - } - break - } - ;(St = (j + 2272) | 0), - gu((a = (hn + 288) | 0), on), - (hr = -1), - (Er = J0(a, d)), - (cn = ((0 | d) == (0 | a) ? hr : Er) | Iu(d, a, 32)) - } - return (St = (hn + 592) | 0), cn - } - function l0(d, a, h) { - var g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t, - bt, - kt, - Rt, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0 - for ( - St = g = (St - 1008) | 0, - f0((Ct = (g + 464) | 0), a), - c[(g + 464) >> 2] = c[(g + 464) >> 2] + 1, - kr(Ct, Ct), - a = 0, - wt = jn((Ct = c[(g + 500) >> 2]), Ct >> 31, 486662, 0), - Ct = On, - jt = - (Qt = (wt + 16777216) | 0) >>> 0 < 16777216 - ? (Ct + 1) | 0 - : Ct, - rr = (wt - (-33554432 & Qt)) | 0, - At = jn((Ct = c[(g + 496) >> 2]), Ct >> 31, 486662, 0), - wt = On, - Zt = jn((Ct = c[(g + 492) >> 2]), Ct >> 31, 486662, 0), - Ct = On, - Ht = At, - At = - ((At = - (Ct = - (Jt = (Zt + 16777216) | 0) >>> 0 < 16777216 - ? (Ct + 1) | 0 - : Ct) >> 25) + - wt) | - 0, - Ct = - (Ct = ((33554431 & Ct) << 7) | (Jt >>> 25)) >>> 0 > - (Tt = (Ht + Ct) | 0) >>> 0 - ? (At + 1) | 0 - : At, - _e = - ((Ct = - ((67108863 & - (Ct = - (wt = (Tt + 33554432) | 0) >>> 0 < 33554432 - ? (Ct + 1) | 0 - : Ct)) << - 6) | - (wt >>> 26)) + - rr) | - 0, - c[(g + 452) >> 2] = 0 - _e, - Pt = (Tt - (-67108864 & wt)) | 0, - c[(g + 448) >> 2] = 0 - Pt, - rr = (Zt - (-33554432 & Jt)) | 0, - wt = jn((Ct = c[(g + 488) >> 2]), Ct >> 31, 486662, 0), - Ct = On, - Jt = jn((At = c[(g + 484) >> 2]), At >> 31, 486662, 0), - At = On, - Ht = wt, - Ct = - (Ct + - (wt = - (At = - (Tt = (Jt + 16777216) | 0) >>> 0 < 16777216 - ? (At + 1) | 0 - : At) >> 25)) | - 0, - Ct = - (At = - (Ht + (Zt = ((33554431 & At) << 7) | (Tt >>> 25))) | - 0) >>> - 0 < - Zt >>> 0 - ? (Ct + 1) | 0 - : Ct, - on = - ((Ct = - ((67108863 & - (Ct = - (wt = (At + 33554432) | 0) >>> 0 < 33554432 - ? (Ct + 1) | 0 - : Ct)) << - 6) | - (wt >>> 26)) + - rr) | - 0, - c[(g + 444) >> 2] = 0 - on, - Dn = (At - (-67108864 & wt)) | 0, - c[(g + 440) >> 2] = 0 - Dn, - rr = (Jt - (-33554432 & Tt)) | 0, - At = jn((Ct = c[(g + 480) >> 2]), Ct >> 31, 486662, 0), - Ct = On, - Jt = jn((wt = c[(g + 476) >> 2]), wt >> 31, 486662, 0), - wt = On, - Ht = At, - Ct = - ((At = - (wt = - (Tt = (Jt + 16777216) | 0) >>> 0 < 16777216 - ? (wt + 1) | 0 - : wt) >> 25) + - Ct) | - 0, - At = - (wt = - (Ht + (Zt = ((33554431 & wt) << 7) | (Tt >>> 25))) | - 0) >>> - 0 < - Zt >>> 0 - ? (Ct + 1) | 0 - : Ct, - hn = - ((At = - ((67108863 & - (At = - (Ct = (wt + 33554432) | 0) >>> 0 < 33554432 - ? (At + 1) | 0 - : At)) << - 6) | - (Ct >>> 26)) + - rr) | - 0, - c[(g + 436) >> 2] = 0 - hn, - $n = (wt - (-67108864 & Ct)) | 0, - c[(g + 432) >> 2] = 0 - $n, - Ht = (Jt - (-33554432 & Tt)) | 0, - Ct = jn((Ct = c[(g + 472) >> 2]), Ct >> 31, 486662, 0), - rr = On, - Zt = jn((wt = c[(g + 468) >> 2]), wt >> 31, 486662, 0), - At = On, - wt = - ((33554431 & - (At = - (Jt = (Zt + 16777216) | 0) >>> 0 < 16777216 - ? (At + 1) | 0 - : At)) << - 7) | - (Jt >>> 25), - At = ((At >> 25) + rr) | 0, - wt = - wt >>> 0 > (Tt = (wt + Ct) | 0) >>> 0 ? (At + 1) | 0 : At, - j = - ((wt = - ((67108863 & - (wt = - (Ct = (Tt + 33554432) | 0) >>> 0 < 33554432 - ? (wt + 1) | 0 - : wt)) << - 6) | - (Ct >>> 26)) + - Ht) | - 0, - c[(g + 428) >> 2] = 0 - j, - wn = (Tt - (-67108864 & Ct)) | 0, - c[(g + 424) >> 2] = 0 - wn, - Tt = (Zt - (-33554432 & Jt)) | 0, - wt = jn( - ((33554431 & jt) << 7) | (Qt >>> 25), - jt >> 25, - 19, - 0, - ), - Ct = On, - Ht = wt, - wt = jn((At = c[(g + 464) >> 2]), At >> 31, 486662, 0), - Ct = (On + Ct) | 0, - wt = - (At = (Ht + wt) | 0) >>> 0 < wt >>> 0 ? (Ct + 1) | 0 : Ct, - cn = - ((wt = - ((67108863 & - (wt = - (Ct = (At + 33554432) | 0) >>> 0 < 33554432 - ? (wt + 1) | 0 - : wt)) << - 6) | - (Ct >>> 26)) + - Tt) | - 0, - c[(g + 420) >> 2] = 0 - cn, - Un = (At - (-67108864 & Ct)) | 0, - c[(g + 416) >> 2] = 0 - Un, - Bt((wt = (g + 368) | 0), (Ct = (g + 416) | 0)), - Gt((g + 320) | 0, Ct, wt), - Yn = c[(g + 356) >> 2], - et = c[(g + 320) >> 2], - sr = c[(g + 368) >> 2], - nt = c[(g + 324) >> 2], - at = c[(g + 328) >> 2], - Ut = c[(g + 372) >> 2], - tr = c[(g + 376) >> 2], - pt = c[(g + 332) >> 2], - gt = c[(g + 336) >> 2], - dr = c[(g + 380) >> 2], - Ar = c[(g + 384) >> 2], - mt = c[(g + 340) >> 2], - yt = c[(g + 344) >> 2], - Ht = c[(g + 388) >> 2], - rr = c[(g + 392) >> 2], - _t = c[(g + 348) >> 2], - bt = c[(g + 352) >> 2], - wt = jn((Ct = c[(g + 404) >> 2]), Ct >> 31, 486662, 0), - Ct = On, - jt = - (Qt = (wt + 16777216) | 0) >>> 0 < 16777216 - ? (Ct + 1) | 0 - : Ct, - kt = (wt - (-33554432 & Qt)) | 0, - Ct = jn((Ct = c[(g + 400) >> 2]), Ct >> 31, 486662, 0), - Rt = On, - Zt = jn((wt = c[(g + 396) >> 2]), wt >> 31, 486662, 0), - At = On, - wt = Ct, - Ct = - ((33554431 & - (At = - (Jt = (Zt + 16777216) | 0) >>> 0 < 16777216 - ? (At + 1) | 0 - : At)) << - 7) | - (Jt >>> 25), - At = ((At >> 25) + Rt) | 0, - Ct = - Ct >>> 0 > (Tt = (wt + Ct) | 0) >>> 0 ? (At + 1) | 0 : At, - At = Ct = - ((67108863 & - (Ct = - (wt = (Tt + 33554432) | 0) >>> 0 < 33554432 - ? (Ct + 1) | 0 - : Ct)) << - 6) | - (wt >>> 26), - Ct = (Ct + kt) | 0, - c[(g + 404) >> 2] = Ct, - c[(g + 548) >> 2] = Ct + ((Yn - _e) | 0), - Ct = (Tt - (-67108864 & wt)) | 0, - c[(g + 400) >> 2] = Ct, - c[(g + 544) >> 2] = Ct + ((bt - Pt) | 0), - Pt = (Zt - (-33554432 & Jt)) | 0, - Ct = jn(rr, rr >> 31, 486662, 0), - Zt = On, - Jt = jn(Ht, Ht >> 31, 486662, 0), - wt = On, - Ht = Ct, - Ct = - ((Ct = - (wt = - (Tt = (Jt + 16777216) | 0) >>> 0 < 16777216 - ? (wt + 1) | 0 - : wt) >> 25) + - Zt) | - 0, - At = - (At = ((33554431 & wt) << 7) | (Tt >>> 25)) >>> 0 > - (wt = (Ht + At) | 0) >>> 0 - ? (Ct + 1) | 0 - : Ct, - Ht = At = - ((67108863 & - (At = - (Ct = (wt + 33554432) | 0) >>> 0 < 33554432 - ? (At + 1) | 0 - : At)) << - 6) | - (Ct >>> 26), - At = (At + Pt) | 0, - c[(g + 396) >> 2] = At, - c[(g + 540) >> 2] = At + ((_t - on) | 0), - Ct = (wt - (-67108864 & Ct)) | 0, - c[(g + 392) >> 2] = Ct, - c[(g + 536) >> 2] = Ct + ((yt - Dn) | 0), - rr = (Jt - (-33554432 & Tt)) | 0, - At = jn(Ar, Ar >> 31, 486662, 0), - wt = On, - Zt = jn(dr, dr >> 31, 486662, 0), - Ct = On, - Ht = At, - At = - ((At = - (Ct = - (Jt = (Zt + 16777216) | 0) >>> 0 < 16777216 - ? (Ct + 1) | 0 - : Ct) >> 25) + - wt) | - 0, - wt = - (Ct = ((33554431 & Ct) << 7) | (Jt >>> 25)) >>> 0 > - (Tt = (Ht + Ct) | 0) >>> 0 - ? (At + 1) | 0 - : At, - At = wt = - ((67108863 & - (wt = - (Ct = (Tt + 33554432) | 0) >>> 0 < 33554432 - ? (wt + 1) | 0 - : wt)) << - 6) | - (Ct >>> 26), - wt = (wt + rr) | 0, - c[(g + 388) >> 2] = wt, - c[(g + 532) >> 2] = wt + ((mt - hn) | 0), - Ct = (Tt - (-67108864 & Ct)) | 0, - c[(g + 384) >> 2] = Ct, - c[(g + 528) >> 2] = Ct + ((gt - $n) | 0), - rr = (Zt - (-33554432 & Jt)) | 0, - Ct = jn(tr, tr >> 31, 486662, 0), - wt = On, - Jt = jn(Ut, Ut >> 31, 486662, 0), - At = On, - Ht = Ct, - wt = - ((Ct = - (At = - (Tt = (Jt + 16777216) | 0) >>> 0 < 16777216 - ? (At + 1) | 0 - : At) >> 25) + - wt) | - 0, - Ct = - (At = - (Ht + (Zt = ((33554431 & At) << 7) | (Tt >>> 25))) | - 0) >>> - 0 < - Zt >>> 0 - ? (wt + 1) | 0 - : wt, - Ht = Ct = - ((67108863 & - (Ct = - (wt = (At + 33554432) | 0) >>> 0 < 33554432 - ? (Ct + 1) | 0 - : Ct)) << - 6) | - (wt >>> 26), - Ct = (Ct + rr) | 0, - c[(g + 380) >> 2] = Ct, - c[(g + 524) >> 2] = Ct + ((pt - j) | 0), - Ct = (At - (-67108864 & wt)) | 0, - c[(g + 376) >> 2] = Ct, - c[(g + 520) >> 2] = Ct + ((at - wn) | 0), - Tt = (Jt - (-33554432 & Tt)) | 0, - wt = jn( - ((33554431 & jt) << 7) | (Qt >>> 25), - jt >> 25, - 19, - 0, - ), - Ct = On, - At = wt, - wt = jn(sr, sr >> 31, 486662, 0), - Ct = (On + Ct) | 0, - Ct = - (At = (At + wt) | 0) >>> 0 < wt >>> 0 ? (Ct + 1) | 0 : Ct, - Ht = Ct = - ((67108863 & - (Ct = - (wt = (At + 33554432) | 0) >>> 0 < 33554432 - ? (Ct + 1) | 0 - : Ct)) << - 6) | - (wt >>> 26), - Ct = (Ct + Tt) | 0, - c[(g + 372) >> 2] = Ct, - c[(g + 516) >> 2] = Ct + ((nt - cn) | 0), - Ct = (At - (-67108864 & wt)) | 0, - c[(g + 368) >> 2] = Ct, - c[(g + 512) >> 2] = Ct + ((et - Un) | 0), - Gt((Ct = (g + 160) | 0), (wt = (g + 512) | 0), wt), - Gt(g, wt, Ct), - Bt((wt = (g + 736) | 0), g), - Bt(wt, wt), - Gt((Ct = (g + 960) | 0), g, wt), - Bt((wt = (g + 912) | 0), Ct), - Bt(wt, wt), - Bt(wt, wt), - Bt(wt, wt), - Gt((g + 864) | 0, Ct, wt), - Ct = c[(g + 900) >> 2], - c[(g + 720) >> 2] = c[(g + 896) >> 2], - c[(g + 724) >> 2] = Ct, - Ct = c[(g + 892) >> 2], - c[(g + 712) >> 2] = c[(g + 888) >> 2], - c[(g + 716) >> 2] = Ct, - Ct = c[(g + 884) >> 2], - c[(g + 704) >> 2] = c[(g + 880) >> 2], - c[(g + 708) >> 2] = Ct, - Ct = c[(g + 876) >> 2], - c[(g + 696) >> 2] = c[(g + 872) >> 2], - c[(g + 700) >> 2] = Ct, - Ct = c[(g + 868) >> 2], - c[(g + 688) >> 2] = c[(g + 864) >> 2], - c[(g + 692) >> 2] = Ct, - Bt((At = (g + 688) | 0), At), - Bt(At, At), - Gt(At, At, g), - Ct = c[(g + 724) >> 2], - c[(g + 672) >> 2] = c[(g + 720) >> 2], - c[(g + 676) >> 2] = Ct, - Ct = c[(g + 716) >> 2], - c[(g + 664) >> 2] = c[(g + 712) >> 2], - c[(g + 668) >> 2] = Ct, - Ct = c[(g + 708) >> 2], - c[(g + 656) >> 2] = c[(g + 704) >> 2], - c[(g + 660) >> 2] = Ct, - Ct = c[(g + 700) >> 2], - c[(g + 648) >> 2] = c[(g + 696) >> 2], - c[(g + 652) >> 2] = Ct, - Ct = c[(g + 692) >> 2], - c[(g + 640) >> 2] = c[(g + 688) >> 2], - c[(g + 644) >> 2] = Ct, - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Gt(At, At, (Ct = (g + 640) | 0)), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Gt(At, At, Ct), - Ct = c[(g + 724) >> 2], - c[(g + 624) >> 2] = c[(g + 720) >> 2], - c[(g + 628) >> 2] = Ct, - Ct = c[(g + 716) >> 2], - c[(g + 616) >> 2] = c[(g + 712) >> 2], - c[(g + 620) >> 2] = Ct, - Ct = c[(g + 708) >> 2], - c[(g + 608) >> 2] = c[(g + 704) >> 2], - c[(g + 612) >> 2] = Ct, - Ct = c[(g + 700) >> 2], - c[(g + 600) >> 2] = c[(g + 696) >> 2], - c[(g + 604) >> 2] = Ct, - Ct = c[(g + 692) >> 2], - c[(g + 592) >> 2] = c[(g + 688) >> 2], - c[(g + 596) >> 2] = Ct, - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Gt(At, At, (wt = (g + 592) | 0)), - Ct = c[(g + 724) >> 2], - c[(g + 624) >> 2] = c[(g + 720) >> 2], - c[(g + 628) >> 2] = Ct, - Ct = c[(g + 716) >> 2], - c[(g + 616) >> 2] = c[(g + 712) >> 2], - c[(g + 620) >> 2] = Ct, - Ct = c[(g + 708) >> 2], - c[(g + 608) >> 2] = c[(g + 704) >> 2], - c[(g + 612) >> 2] = Ct, - Ct = c[(g + 700) >> 2], - c[(g + 600) >> 2] = c[(g + 696) >> 2], - c[(g + 604) >> 2] = Ct, - Ct = c[(g + 692) >> 2], - c[(g + 592) >> 2] = c[(g + 688) >> 2], - c[(g + 596) >> 2] = Ct, - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Bt(At, At), - Gt(At, At, wt), - Ct = c[(g + 724) >> 2], - c[(g + 624) >> 2] = c[(g + 720) >> 2], - c[(g + 628) >> 2] = Ct, - Ct = c[(g + 716) >> 2], - c[(g + 616) >> 2] = c[(g + 712) >> 2], - c[(g + 620) >> 2] = Ct, - Ct = c[(g + 708) >> 2], - c[(g + 608) >> 2] = c[(g + 704) >> 2], - c[(g + 612) >> 2] = Ct, - Ct = c[(g + 700) >> 2], - c[(g + 600) >> 2] = c[(g + 696) >> 2], - c[(g + 604) >> 2] = Ct, - Ct = c[(g + 692) >> 2], - c[(g + 592) >> 2] = c[(g + 688) >> 2], - c[(g + 596) >> 2] = Ct; - Bt((Ct = (g + 688) | 0), Ct), (0 | (a = (a + 1) | 0)) != 120; - - ); - Gt((a = (g + 688) | 0), a, (g + 592) | 0), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Gt(a, a, (g + 640) | 0), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Gt(a, a, g), - Bt(a, a), - cs((g + 560) | 0, a), - (Ut = c[(g + 416) >> 2]), - (tr = c[(g + 420) >> 2]), - (dr = c[(g + 424) >> 2]), - (Ar = c[(g + 428) >> 2]), - (Ht = c[(g + 432) >> 2]), - (jt = c[(g + 436) >> 2]), - (At = c[(g + 440) >> 2]), - (wt = c[(g + 444) >> 2]), - (Ct = c[(g + 448) >> 2]), - (rr = - ((sr = (0 - (1 & pn[(g + 561) | 0])) | 0) & - ((0 - (a = c[(g + 452) >> 2])) ^ a)) ^ - a), - (c[(g + 196) >> 2] = rr), - (Qt = Ct ^ (sr & (Ct ^ (0 - Ct)))), - (c[(g + 192) >> 2] = Qt), - (Zt = wt ^ (sr & (wt ^ (0 - wt)))), - (c[(g + 188) >> 2] = Zt), - (Jt = At ^ (sr & (At ^ (0 - At)))), - (c[(g + 184) >> 2] = Jt), - (Tt = jt ^ (sr & (jt ^ (0 - jt)))), - (c[(g + 180) >> 2] = Tt), - (jt = Ht ^ (sr & (Ht ^ (0 - Ht)))), - (c[(g + 176) >> 2] = jt), - (At = Ar ^ (sr & (Ar ^ (0 - Ar)))), - (c[(g + 172) >> 2] = At), - (wt = dr ^ (sr & (dr ^ (0 - dr)))), - (c[(g + 168) >> 2] = wt), - (Ct = tr ^ (sr & (tr ^ (0 - tr)))), - (c[(g + 164) >> 2] = Ct), - (a = ((Ut ^ (sr & (Ut ^ (0 - Ut)))) - (486662 & sr)) | 0), - (c[(g + 160) >> 2] = a + 1), - (c[(g + 772) >> 2] = rr), - (c[(g + 768) >> 2] = Qt), - (c[(g + 764) >> 2] = Zt), - (c[(g + 760) >> 2] = Jt), - (c[(g + 756) >> 2] = Tt), - (c[(g + 752) >> 2] = jt), - (c[(g + 748) >> 2] = At), - (c[(g + 744) >> 2] = wt), - (c[(g + 740) >> 2] = Ct), - (c[(g + 736) >> 2] = a - 1), - kr(g, (Ct = (g + 160) | 0)), - Gt((a = (g + 960) | 0), (g + 736) | 0, g), - cs(d, a), - (pn[(d + 31) | 0] = rn[(d + 31) | 0] | h), - su(Ct, d) && (Zs(), so()), - (a = c[(g + 236) >> 2]), - (c[(g + 808) >> 2] = c[(g + 232) >> 2]), - (c[(g + 812) >> 2] = a), - (a = c[(g + 228) >> 2]), - (c[(g + 800) >> 2] = c[(g + 224) >> 2]), - (c[(g + 804) >> 2] = a), - (a = c[(g + 220) >> 2]), - (c[(g + 792) >> 2] = c[(g + 216) >> 2]), - (c[(g + 796) >> 2] = a), - (a = c[(g + 212) >> 2]), - (c[(g + 784) >> 2] = c[(g + 208) >> 2]), - (c[(g + 788) >> 2] = a), - (a = c[(g + 196) >> 2]), - (c[(g + 768) >> 2] = c[(g + 192) >> 2]), - (c[(g + 772) >> 2] = a), - (a = c[(g + 188) >> 2]), - (c[(g + 760) >> 2] = c[(g + 184) >> 2]), - (c[(g + 764) >> 2] = a), - (a = c[(g + 180) >> 2]), - (c[(g + 752) >> 2] = c[(g + 176) >> 2]), - (c[(g + 756) >> 2] = a), - (a = c[(g + 172) >> 2]), - (c[(g + 744) >> 2] = c[(g + 168) >> 2]), - (c[(g + 748) >> 2] = a), - (a = c[(g + 164) >> 2]), - (c[(g + 736) >> 2] = c[(g + 160) >> 2]), - (c[(g + 740) >> 2] = a), - (a = c[(g + 204) >> 2]), - (c[(g + 776) >> 2] = c[(g + 200) >> 2]), - (c[(g + 780) >> 2] = a), - (a = c[(g + 252) >> 2]), - (c[(g + 824) >> 2] = c[(g + 248) >> 2]), - (c[(g + 828) >> 2] = a), - (a = c[(g + 260) >> 2]), - (c[(g + 832) >> 2] = c[(g + 256) >> 2]), - (c[(g + 836) >> 2] = a), - (a = c[(g + 268) >> 2]), - (c[(g + 840) >> 2] = c[(g + 264) >> 2]), - (c[(g + 844) >> 2] = a), - (a = c[(g + 276) >> 2]), - (c[(g + 848) >> 2] = c[(g + 272) >> 2]), - (c[(g + 852) >> 2] = a), - (a = c[(g + 244) >> 2]), - (c[(g + 816) >> 2] = c[(g + 240) >> 2]), - (c[(g + 820) >> 2] = a), - ot(g, (Ct = (g + 736) | 0)), - Gt(Ct, g, (Tt = (g + 120) | 0)), - Gt( - (h = (g + 776) | 0), - (At = (g + 40) | 0), - (jt = (g + 80) | 0), - ), - Gt((a = (g + 816) | 0), jt, Tt), - ot(g, Ct), - Gt(Ct, g, Tt), - Gt(h, At, jt), - Gt(a, jt, Tt), - ot(g, Ct), - Gt((wt = (g + 160) | 0), g, Tt), - Gt((Ct = (g + 200) | 0), At, jt), - Gt((a = (g + 240) | 0), jt, Tt), - Gt((g + 280) | 0, g, At), - kr((At = (g + 960) | 0), a), - Gt((h = (g + 912) | 0), wt, At), - Gt((a = (g + 864) | 0), Ct, At), - cs(d, a), - cs((g + 688) | 0, h), - (pn[(d + 31) | 0] = - rn[(d + 31) | 0] ^ (rn[(g + 688) | 0] << 7)), - (St = (g + 1008) | 0) - } - function Gt(d, a, h) { - var g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t, - bt, - kt, - Rt, - At, - Ct, - wt, - Tt, - Jt, - Ht, - Zt, - jt, - rr, - sr, - Qt, - Ut, - tr, - dr, - Ar, - Pt, - xt, - fr, - hr, - Er, - rt, - tt, - ft, - Xt, - yr, - Qr, - Br, - wr, - Dr, - Gr, - er, - or, - It = 0, - Ot = 0, - Nt = 0, - _r = 0, - Pr = 0, - Lr = 0, - Tr = 0, - xr = 0, - Hr = 0, - Yr = 0, - Zr = 0, - jr = 0, - ro = 0, - oo = 0, - ao = 0, - uo = 0, - po = 0, - mo = 0, - Eo = 0, - Do = 0, - To = 0, - Lo = 0, - Jo = 0, - _a = 0 - ;(It = jn( - (g = c[(h + 4) >> 2]), - (Un = g >> 31), - (po = (gt = c[(a + 20) >> 2]) << 1), - (rr = po >> 31), - )), - (Nt = On), - (Ot = - ((ro = jn( - (ao = c[h >> 2]), - (on = ao >> 31), - (_e = c[(a + 24) >> 2]), - (hn = _e >> 31), - )) + - It) | - 0), - (It = (On + Nt) | 0), - (It = Ot >>> 0 < ro >>> 0 ? (It + 1) | 0 : It), - (Hr = jn( - (j = c[(h + 8) >> 2]), - (nt = j >> 31), - (ro = c[(a + 16) >> 2]), - (cn = ro >> 31), - )), - (Nt = (On + It) | 0), - (Nt = - (Ot = (Hr + Ot) | 0) >>> 0 < Hr >>> 0 ? (Nt + 1) | 0 : Nt), - (It = - ((Hr = jn( - (Yn = c[(h + 12) >> 2]), - (mt = Yn >> 31), - (Ct = (yt = c[(a + 12) >> 2]) << 1), - (sr = Ct >> 31), - )) + - Ot) | - 0), - (Ot = (On + Nt) | 0), - (Ot = It >>> 0 < Hr >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = - ((oo = jn( - (at = c[(h + 16) >> 2]), - (wt = at >> 31), - (Hr = c[(a + 8) >> 2]), - (Dn = Hr >> 31), - )) + - It) | - 0), - (It = (On + Ot) | 0), - (It = Nt >>> 0 < oo >>> 0 ? (It + 1) | 0 : It), - (Ot = Nt), - (Nt = jn( - (_t = c[(h + 20) >> 2]), - (Qt = _t >> 31), - (Tt = (bt = c[(a + 4) >> 2]) << 1), - (Ut = Tt >> 31), - )), - (It = (On + It) | 0), - (It = - (Ot = (Ot + Nt) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Xt = xr = c[(h + 24) >> 2]), - (Nt = - ((Yr = jn( - xr, - (tt = xr >> 31), - (oo = c[a >> 2]), - ($n = oo >> 31), - )) + - Ot) | - 0), - (Ot = (On + It) | 0), - (Ot = Nt >>> 0 < Yr >>> 0 ? (Ot + 1) | 0 : Ot), - (tr = c[(h + 28) >> 2]), - (It = - ((Yr = jn( - (jr = zr(tr, 19)), - (kt = jr >> 31), - (Jt = (Rt = c[(a + 36) >> 2]) << 1), - (dr = Jt >> 31), - )) + - Nt) | - 0), - (Nt = (On + Ot) | 0), - (Nt = It >>> 0 < Yr >>> 0 ? (Nt + 1) | 0 : Nt), - (Qr = c[(h + 32) >> 2]), - (Ot = - ((Tr = jn( - (_r = zr(Qr, 19)), - (pt = _r >> 31), - (Yr = c[(a + 32) >> 2]), - (wn = Yr >> 31), - )) + - It) | - 0), - (It = (On + Nt) | 0), - (It = Ot >>> 0 < Tr >>> 0 ? (It + 1) | 0 : It), - (yr = c[(h + 36) >> 2]), - (h = jn( - (Tr = zr(yr, 19)), - (et = Tr >> 31), - (Ht = (At = c[(a + 28) >> 2]) << 1), - (Ar = Ht >> 31), - )), - (It = (On + It) | 0), - (Pr = a = (h + Ot) | 0), - (h = a >>> 0 < h >>> 0 ? (It + 1) | 0 : It), - (a = jn(ro, cn, g, Un)), - (It = On), - (Ot = jn(ao, on, gt, (Pt = gt >> 31))), - (Nt = (On + It) | 0), - (Nt = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (Nt + 1) | 0 : Nt), - (It = jn(j, nt, yt, (xt = yt >> 31))), - (Ot = (On + Nt) | 0), - (Ot = - (a = (It + a) | 0) >>> 0 < It >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = jn(Hr, Dn, Yn, mt)), - (It = (On + Ot) | 0), - (It = - (a = (Nt + a) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(at, wt, bt, (fr = bt >> 31))), - (It = (On + It) | 0), - (It = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(oo, $n, _t, Qt)), - (It = (On + It) | 0), - (It = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn( - (xr = zr(xr, 19)), - (Zt = xr >> 31), - Rt, - (hr = Rt >> 31), - )), - (Nt = (On + It) | 0), - (Nt = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (Nt + 1) | 0 : Nt), - (It = jn(Yr, wn, jr, kt)), - (Ot = (On + Nt) | 0), - (Ot = - (a = (It + a) | 0) >>> 0 < It >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = jn(_r, pt, At, (Er = At >> 31))), - (It = (On + Ot) | 0), - (It = - (a = (Nt + a) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(Tr, et, _e, hn)), - (It = (On + It) | 0), - (Lo = a = (Ot + a) | 0), - (Eo = a >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (a = jn(g, Un, Ct, sr)), - (It = On), - (Ot = jn(ao, on, ro, cn)), - (It = (On + It) | 0), - (It = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(Hr, Dn, j, nt)), - (Nt = (On + It) | 0), - (Nt = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (Nt + 1) | 0 : Nt), - (It = jn(Yn, mt, Tt, Ut)), - (Ot = (On + Nt) | 0), - (Ot = - (a = (It + a) | 0) >>> 0 < It >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = jn(oo, $n, at, wt)), - (It = (On + Ot) | 0), - (It = - (a = (Nt + a) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Ot = jn((jt = zr(_t, 19)), (rt = jt >> 31), Jt, dr)), - (It = (On + It) | 0), - (It = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(Yr, wn, xr, Zt)), - (It = (On + It) | 0), - (It = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(jr, kt, Ht, Ar)), - (Nt = (On + It) | 0), - (Nt = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (Nt + 1) | 0 : Nt), - (It = jn(_r, pt, _e, hn)), - (Ot = (On + Nt) | 0), - (Ot = - (a = (It + a) | 0) >>> 0 < It >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = jn(Tr, et, po, rr)), - (It = (On + Ot) | 0), - (Br = a = (Nt + a) | 0), - (wr = It = a >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Dr = a = (a + 33554432) | 0), - (Gr = It = a >>> 0 < 33554432 ? (It + 1) | 0 : It), - (Nt = ((67108863 & It) << 6) | (a >>> 26)), - (It = ((It >> 26) + Eo) | 0), - (Lo = a = (Nt + Lo) | 0), - (It = a >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (er = a = (a + 16777216) | 0), - (It = - (h + - (Ot = - (Nt = a >>> 0 < 16777216 ? (It + 1) | 0 : It) >> 25)) | - 0), - (It = - (a = - ((Nt = ((33554431 & Nt) << 7) | (a >>> 25)) + Pr) | 0) >>> - 0 < - Nt >>> 0 - ? (It + 1) | 0 - : It), - (mo = h = ((Ot = a) + 33554432) | 0), - (a = It = h >>> 0 < 33554432 ? (It + 1) | 0 : It), - (c[(d + 24) >> 2] = Ot - (-67108864 & h)), - (h = jn(g, Un, Tt, Ut)), - (It = On), - (Ot = jn(ao, on, Hr, Dn)), - (Nt = (On + It) | 0), - (Nt = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (Nt + 1) | 0 : Nt), - (Ot = ((It = h) + (h = jn(oo, $n, j, nt))) | 0), - (It = (On + Nt) | 0), - (It = h >>> 0 > Ot >>> 0 ? (It + 1) | 0 : It), - (Nt = jn((h = zr(Yn, 19)), (Do = h >> 31), Jt, dr)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Nt = - ((Pr = jn(Yr, wn, (Eo = zr(at, 19)), (ft = Eo >> 31))) + - Ot) | - 0), - (Ot = (On + It) | 0), - (Ot = Nt >>> 0 < Pr >>> 0 ? (Ot + 1) | 0 : Ot), - (Pr = jn(Ht, Ar, jt, rt)), - (It = (On + Ot) | 0), - (It = - (Nt = (Pr + Nt) | 0) >>> 0 < Pr >>> 0 ? (It + 1) | 0 : It), - (Ot = ((Pr = jn(_e, hn, xr, Zt)) + Nt) | 0), - (Nt = (On + It) | 0), - (Nt = Ot >>> 0 < Pr >>> 0 ? (Nt + 1) | 0 : Nt), - (Pr = jn(jr, kt, po, rr)), - (It = (On + Nt) | 0), - (It = - (Ot = (Pr + Ot) | 0) >>> 0 < Pr >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(_r, pt, ro, cn)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Nt = ((Pr = jn(Tr, et, Ct, sr)) + Ot) | 0), - (Ot = (On + It) | 0), - (Zr = Nt), - (Jo = Nt >>> 0 < Pr >>> 0 ? (Ot + 1) | 0 : Ot), - (It = jn(oo, $n, g, Un)), - (Ot = On), - (Nt = ((Pr = jn(ao, on, bt, fr)) + It) | 0), - (It = (On + Ot) | 0), - (It = Nt >>> 0 < Pr >>> 0 ? (It + 1) | 0 : It), - (Pr = Ot = zr(j, 19)), - (Ot = ((Lr = jn(Ot, (To = Ot >> 31), Rt, hr)) + Nt) | 0), - (Nt = (On + It) | 0), - (Nt = Ot >>> 0 < Lr >>> 0 ? (Nt + 1) | 0 : Nt), - (Lr = jn(Yr, wn, h, Do)), - (It = (On + Nt) | 0), - (It = - (Ot = (Lr + Ot) | 0) >>> 0 < Lr >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(Eo, ft, At, Er)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Nt = ((Lr = jn(_e, hn, jt, rt)) + Ot) | 0), - (Ot = (On + It) | 0), - (Ot = Nt >>> 0 < Lr >>> 0 ? (Ot + 1) | 0 : Ot), - (Lr = jn(xr, Zt, gt, Pt)), - (It = (On + Ot) | 0), - (It = - (Nt = (Lr + Nt) | 0) >>> 0 < Lr >>> 0 ? (It + 1) | 0 : It), - (Ot = ((Lr = jn(ro, cn, jr, kt)) + Nt) | 0), - (Nt = (On + It) | 0), - (Nt = Ot >>> 0 < Lr >>> 0 ? (Nt + 1) | 0 : Nt), - (Lr = jn(_r, pt, yt, xt)), - (It = (On + Nt) | 0), - (It = - (Ot = (Lr + Ot) | 0) >>> 0 < Lr >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(Tr, et, Hr, Dn)), - (It = (On + It) | 0), - (_a = Ot = (Nt + Ot) | 0), - (Lr = Ot >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (It = jn((It = zr(g, 19)), It >> 31, Jt, dr)), - (Ot = On), - (Nt = jn(ao, on, oo, $n)), - (Ot = (On + Ot) | 0), - (Ot = - (It = (Nt + It) | 0) >>> 0 < Nt >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = ((Pr = jn(Yr, wn, Pr, To)) + It) | 0), - (It = (On + Ot) | 0), - (h = ((Ot = jn(h, Do, Ht, Ar)) + Nt) | 0), - (Nt = (On + (Nt >>> 0 < Pr >>> 0 ? (It + 1) | 0 : It)) | 0), - (Nt = h >>> 0 < Ot >>> 0 ? (Nt + 1) | 0 : Nt), - (Ot = jn(_e, hn, Eo, ft)), - (It = (On + Nt) | 0), - (It = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(po, rr, jt, rt)), - (It = (On + It) | 0), - (It = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(ro, cn, xr, Zt)), - (Ot = (On + It) | 0), - (Ot = - (h = (Nt + h) | 0) >>> 0 < Nt >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = jn(jr, kt, Ct, sr)), - (It = (On + Ot) | 0), - (It = - (h = (Nt + h) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(_r, pt, Hr, Dn)), - (Nt = (On + It) | 0), - (Nt = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (Nt + 1) | 0 : Nt), - (Ot = jn(Tr, et, Tt, Ut)), - (It = (On + Nt) | 0), - (Pr = h = (Ot + h) | 0), - (Do = It = h >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (To = h = (h + 33554432) | 0), - (or = It = h >>> 0 < 33554432 ? (It + 1) | 0 : It), - (Ot = ((Nt = It >> 26) + Lr) | 0), - (Lr = h = - ((It = ((67108863 & It) << 6) | (h >>> 26)) + _a) | 0), - (It = Ot = h >>> 0 < It >>> 0 ? (Ot + 1) | 0 : Ot), - (_a = h = (h + 16777216) | 0), - (Ot = - ((33554431 & - (It = h >>> 0 < 16777216 ? (It + 1) | 0 : It)) << - 7) | - (h >>> 25)), - (It = ((It >> 25) + Jo) | 0), - (It = - (h = (Ot + Zr) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Jo = Ot = ((Nt = h) + 33554432) | 0), - (h = It = Ot >>> 0 < 33554432 ? (It + 1) | 0 : It), - (c[(d + 8) >> 2] = Nt - (-67108864 & Ot)), - (It = jn(_e, hn, g, Un)), - (Nt = On), - (Ot = ((Zr = jn(ao, on, At, Er)) + It) | 0), - (It = (On + Nt) | 0), - (It = Ot >>> 0 < Zr >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(j, nt, gt, Pt)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(ro, cn, Yn, mt)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Zr = jn(at, wt, yt, xt)), - (Nt = (On + It) | 0), - (Nt = - (Ot = (Zr + Ot) | 0) >>> 0 < Zr >>> 0 ? (Nt + 1) | 0 : Nt), - (It = ((Zr = jn(Hr, Dn, _t, Qt)) + Ot) | 0), - (Ot = (On + Nt) | 0), - (Ot = It >>> 0 < Zr >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = ((Zr = jn(bt, fr, Xt, tt)) + It) | 0), - (It = (On + Ot) | 0), - (It = Nt >>> 0 < Zr >>> 0 ? (It + 1) | 0 : It), - (Ot = Nt), - (Nt = jn(oo, $n, tr, (Zr = tr >> 31))), - (It = (On + It) | 0), - (It = - (Ot = (Ot + Nt) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(_r, pt, Rt, hr)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (uo = jn(Tr, et, Yr, wn)), - (Nt = (On + It) | 0), - (It = a >> 26), - (a = - ((mo = ((67108863 & a) << 6) | (mo >>> 26)) + - (Ot = (uo + Ot) | 0)) | - 0), - (Ot = (It + (Ot >>> 0 < uo >>> 0 ? (Nt + 1) | 0 : Nt)) | 0), - (It = (Nt = a) >>> 0 < mo >>> 0 ? (Ot + 1) | 0 : Ot), - (mo = Ot = (Nt + 16777216) | 0), - (a = It = Ot >>> 0 < 16777216 ? (It + 1) | 0 : It), - (c[(d + 28) >> 2] = Nt - (-33554432 & Ot)), - (It = jn(Hr, Dn, g, Un)), - (Ot = On), - (uo = jn(ao, on, yt, xt)), - (Nt = (On + Ot) | 0), - (Nt = - (It = (uo + It) | 0) >>> 0 < uo >>> 0 ? (Nt + 1) | 0 : Nt), - (uo = jn(j, nt, bt, fr)), - (Ot = (On + Nt) | 0), - (Ot = - (It = (uo + It) | 0) >>> 0 < uo >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = ((uo = jn(oo, $n, Yn, mt)) + It) | 0), - (It = (On + Ot) | 0), - (It = Nt >>> 0 < uo >>> 0 ? (It + 1) | 0 : It), - (Ot = Nt), - (Nt = jn(Eo, ft, Rt, hr)), - (It = (On + It) | 0), - (It = - (Ot = (Ot + Nt) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(Yr, wn, jt, rt)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Ot = ((xr = jn(xr, Zt, At, Er)) + Ot) | 0), - (Nt = (On + It) | 0), - (It = ((jr = jn(_e, hn, jr, kt)) + Ot) | 0), - (Ot = (On + (Ot >>> 0 < xr >>> 0 ? (Nt + 1) | 0 : Nt)) | 0), - (Nt = ((_r = jn(_r, pt, gt, Pt)) + It) | 0), - (It = (On + (It >>> 0 < jr >>> 0 ? (Ot + 1) | 0 : Ot)) | 0), - (It = Nt >>> 0 < _r >>> 0 ? (It + 1) | 0 : It), - (Ot = Nt), - (Nt = jn(Tr, et, ro, cn)), - (It = (On + It) | 0), - (_r = Ot = (Ot + Nt) | 0), - (It = - ((It = Ot >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It) + - (Ot = h >> 26)) | - 0), - (Nt = - (Ot = h = - (_r + (Nt = ((67108863 & h) << 6) | (Jo >>> 26))) | 0) >>> - 0 < - Nt >>> 0 - ? (It + 1) | 0 - : It), - (jr = It = (Ot + 16777216) | 0), - (h = Nt = It >>> 0 < 16777216 ? (Nt + 1) | 0 : Nt), - (c[(d + 12) >> 2] = Ot - (-33554432 & It)), - (It = jn(g, Un, Ht, Ar)), - (Nt = On), - (Ot = ((_r = jn(ao, on, Yr, wn)) + It) | 0), - (It = (On + Nt) | 0), - (It = Ot >>> 0 < _r >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(_e, hn, j, nt)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (_r = jn(Yn, mt, po, rr)), - (Nt = (On + It) | 0), - (Nt = - (Ot = (_r + Ot) | 0) >>> 0 < _r >>> 0 ? (Nt + 1) | 0 : Nt), - (It = ((_r = jn(ro, cn, at, wt)) + Ot) | 0), - (Ot = (On + Nt) | 0), - (Ot = It >>> 0 < _r >>> 0 ? (Ot + 1) | 0 : Ot), - (Nt = ((_r = jn(Ct, sr, _t, Qt)) + It) | 0), - (It = (On + Ot) | 0), - (It = Nt >>> 0 < _r >>> 0 ? (It + 1) | 0 : It), - (Ot = Nt), - (Nt = jn(Hr, Dn, Xt, tt)), - (It = (On + It) | 0), - (It = - (Ot = (Ot + Nt) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(tr, Zr, Tt, Ut)), - (It = (On + It) | 0), - (It = - (Ot = (Nt + Ot) | 0) >>> 0 < Nt >>> 0 ? (It + 1) | 0 : It), - (Ot = - ((po = jn(oo, $n, (_r = Qr), (xr = _r >> 31))) + Ot) | 0), - (Nt = (On + It) | 0), - (It = ((Tr = jn(Tr, et, Jt, dr)) + Ot) | 0), - (Ot = (On + (Ot >>> 0 < po >>> 0 ? (Nt + 1) | 0 : Nt)) | 0), - (Ot = It >>> 0 < Tr >>> 0 ? (Ot + 1) | 0 : Ot), - (Tr = It), - (It = ((It = a >> 25) + Ot) | 0), - (It = - (a = - (Tr + (Nt = ((33554431 & a) << 7) | (mo >>> 25))) | 0) >>> - 0 < - Nt >>> 0 - ? (It + 1) | 0 - : It), - (Tr = Ot = ((Nt = a) + 33554432) | 0), - (a = It = Ot >>> 0 < 33554432 ? (It + 1) | 0 : It), - (c[(d + 32) >> 2] = Nt - (-67108864 & Ot)), - (Ot = h >> 25), - (h = - ((jr = ((33554431 & h) << 7) | (jr >>> 25)) + - ((Br - (It = -67108864 & Dr)) | 0)) | - 0), - (It = - (Ot + ((wr - (((It >>> 0 > Br >>> 0) + Gr) | 0)) | 0)) | 0), - (It = h >>> 0 < jr >>> 0 ? (It + 1) | 0 : It), - (mo = It = - ((67108863 & - (It = - (h = ((Ot = h) + 33554432) | 0) >>> 0 < 33554432 - ? (It + 1) | 0 - : It)) << - 6) | - (h >>> 26)), - (It = (It + (Nt = (Lo - (-33554432 & er)) | 0)) | 0), - (c[(d + 20) >> 2] = It), - (c[(d + 16) >> 2] = Ot - (-67108864 & h)), - (h = jn(Yr, wn, g, Un)), - (It = On), - (Ot = jn(ao, on, Rt, hr)), - (It = (On + It) | 0), - (It = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(j, nt, At, Er)), - (Ot = (On + It) | 0), - (Ot = - (h = (Nt + h) | 0) >>> 0 < Nt >>> 0 ? (Ot + 1) | 0 : Ot), - (It = jn(_e, hn, Yn, mt)), - (Nt = (On + Ot) | 0), - (Nt = - (h = (It + h) | 0) >>> 0 < It >>> 0 ? (Nt + 1) | 0 : Nt), - (Ot = jn(at, wt, gt, Pt)), - (It = (On + Nt) | 0), - (It = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(ro, cn, _t, Qt)), - (It = (On + It) | 0), - (It = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Ot = jn(yt, xt, Xt, tt)), - (It = (On + It) | 0), - (It = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It), - (Nt = jn(Hr, Dn, tr, Zr)), - (Ot = (On + It) | 0), - (Ot = - (h = (Nt + h) | 0) >>> 0 < Nt >>> 0 ? (Ot + 1) | 0 : Ot), - (It = jn(_r, xr, bt, fr)), - (Nt = (On + Ot) | 0), - (Nt = - (h = (It + h) | 0) >>> 0 < It >>> 0 ? (Nt + 1) | 0 : Nt), - (Ot = jn(oo, $n, yr, yr >> 31)), - (It = (On + Nt) | 0), - (It = - ((It = - (h = (Ot + h) | 0) >>> 0 < Ot >>> 0 ? (It + 1) | 0 : It) + - (Ot = a >> 26)) | - 0), - (It = - (a = - ((Nt = h) + (h = ((67108863 & a) << 6) | (Tr >>> 26))) | - 0) >>> - 0 < - h >>> 0 - ? (It + 1) | 0 - : It), - (It = - (a = ((h = a) + 16777216) | 0) >>> 0 < 16777216 - ? (It + 1) | 0 - : It), - (c[(d + 36) >> 2] = h - (-33554432 & a)), - (Nt = (Lr - (-33554432 & _a)) | 0), - (Ot = (Pr - (h = -67108864 & To)) | 0), - (ao = (Do - (((h >>> 0 > Pr >>> 0) + or) | 0)) | 0), - (a = - ((h = jn( - ((33554431 & (h = It)) << 7) | (a >>> 25), - (It >>= 25), - 19, - 0, - )) + - Ot) | - 0), - (Ot = (On + ao) | 0), - (It = a >>> 0 < h >>> 0 ? (Ot + 1) | 0 : Ot), - (Ot = It = - ((67108863 & - (It = - (a = ((h = a) + 33554432) | 0) >>> 0 < 33554432 - ? (It + 1) | 0 - : It)) << - 6) | - (a >>> 26)), - (It = (It + Nt) | 0), - (c[(d + 4) >> 2] = It), - (c[d >> 2] = h - (-67108864 & a)) - } - function Pu(d, a, h, g) { - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0 - for ( - _e = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24), - c[h >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24), - c[(h + 4) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24), - c[(h + 8) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24), - c[(h + 12) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24), - c[(h + 16) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24), - c[(h + 20) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24), - c[(h + 24) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24), - c[(h + 28) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 32) | 0] | - (rn[(a + 33) | 0] << 8) | - (rn[(a + 34) | 0] << 16) | - (rn[(a + 35) | 0] << 24), - c[(h + 32) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 36) | 0] | - (rn[(a + 37) | 0] << 8) | - (rn[(a + 38) | 0] << 16) | - (rn[(a + 39) | 0] << 24), - c[(h + 36) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 40) | 0] | - (rn[(a + 41) | 0] << 8) | - (rn[(a + 42) | 0] << 16) | - (rn[(a + 43) | 0] << 24), - c[(h + 40) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 44) | 0] | - (rn[(a + 45) | 0] << 8) | - (rn[(a + 46) | 0] << 16) | - (rn[(a + 47) | 0] << 24), - c[(h + 44) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 48) | 0] | - (rn[(a + 49) | 0] << 8) | - (rn[(a + 50) | 0] << 16) | - (rn[(a + 51) | 0] << 24), - c[(h + 48) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 52) | 0] | - (rn[(a + 53) | 0] << 8) | - (rn[(a + 54) | 0] << 16) | - (rn[(a + 55) | 0] << 24), - c[(h + 52) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - _e = - rn[(a + 56) | 0] | - (rn[(a + 57) | 0] << 8) | - (rn[(a + 58) | 0] << 16) | - (rn[(a + 59) | 0] << 24), - c[(h + 56) >> 2] = - (_e << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24), - a = - rn[(a + 60) | 0] | - (rn[(a + 61) | 0] << 8) | - (rn[(a + 62) | 0] << 16) | - (rn[(a + 63) | 0] << 24), - c[(h + 60) >> 2] = - (a << 24) | - ((65280 & a) << 8) | - ((a >>> 8) & 65280) | - (a >>> 24), - a = c[(d + 28) >> 2], - c[(g + 24) >> 2] = c[(d + 24) >> 2], - c[(g + 28) >> 2] = a, - a = c[(d + 20) >> 2], - c[(g + 16) >> 2] = c[(d + 16) >> 2], - c[(g + 20) >> 2] = a, - a = c[(d + 12) >> 2], - c[(g + 8) >> 2] = c[(d + 8) >> 2], - c[(g + 12) >> 2] = a, - a = c[(d + 4) >> 2], - c[g >> 2] = c[d >> 2], - c[(g + 4) >> 2] = a; - (j = c[(g + 28) >> 2]), - (_e = ((a = yt << 2) + h) | 0), - (Yn = c[(g + 16) >> 2]), - (cn = - (c[_e >> 2] + (Ft(Yn, 26) ^ Ft(Yn, 21) ^ Ft(Yn, 7))) | 0), - ($n = - ((j = - ((((on = (c[(a + 35360) >> 2] + cn) | 0) + - ((Yn & - ((cn = c[(g + 24) >> 2]) ^ - (Un = c[(g + 20) >> 2]))) ^ - cn)) | - 0) + - j) | - 0) + - c[(g + 12) >> 2]) | - 0), - (c[(g + 12) >> 2] = $n), - (j = - ((nt = - (j + - (Ft((on = c[g >> 2]), 30) ^ - Ft(on, 19) ^ - Ft(on, 10))) | - 0) + - ((on & - ((wn = c[(g + 8) >> 2]) | (hn = c[(g + 4) >> 2]))) | - (hn & wn))) | - 0), - (c[(g + 28) >> 2] = j), - (wn = - ((nt = wn) + - (cn = - (((c[(at = ((wn = 4 | a) + h) | 0) >> 2] + - ((((cn + (Un ^ ($n & (Un ^ Yn)))) | 0) + - (Ft($n, 26) ^ Ft($n, 21) ^ Ft($n, 7))) | - 0)) | - 0) + - c[(wn + 35360) >> 2]) | - 0)) | - 0), - (c[(g + 8) >> 2] = wn), - (cn = - (((cn + ((j & (on | hn)) | (on & hn))) | 0) + - (Ft(j, 30) ^ Ft(j, 19) ^ Ft(j, 10))) | - 0), - (c[(g + 24) >> 2] = cn), - (Un = - ((Dn = - (((((((Un + c[(mt = ((Dn = 8 | a) + h) | 0) >> 2]) | - 0) + - c[(Dn + 35360) >> 2]) | - 0) + - (Yn ^ (wn & ($n ^ Yn)))) | - 0) + - (Ft(wn, 26) ^ Ft(wn, 21) ^ Ft(wn, 7))) | - 0) + - ((((cn & (j | on)) | (j & on)) + - (Ft(cn, 30) ^ Ft(cn, 19) ^ Ft(cn, 10))) | - 0)) | - 0), - (c[(g + 20) >> 2] = Un), - (hn = (Dn + hn) | 0), - (c[(g + 4) >> 2] = hn), - (Yn = - ((Dn = - (((((((Yn + c[(_t = ((Dn = 12 | a) + h) | 0) >> 2]) | - 0) + - c[(Dn + 35360) >> 2]) | - 0) + - ($n ^ (hn & (wn ^ $n)))) | - 0) + - (Ft(hn, 26) ^ Ft(hn, 21) ^ Ft(hn, 7))) | - 0) + - ((((Un & (j | cn)) | (j & cn)) + - (Ft(Un, 30) ^ Ft(Un, 19) ^ Ft(Un, 10))) | - 0)) | - 0), - (c[(g + 16) >> 2] = Yn), - (on = (Dn + on) | 0), - (c[g >> 2] = on), - ($n = - ((Dn = - ((((((((nt = $n) + - c[(bt = (($n = 16 | a) + h) | 0) >> 2]) | - 0) + - c[($n + 35360) >> 2]) | - 0) + - (wn ^ (on & (hn ^ wn)))) | - 0) + - (Ft(on, 26) ^ Ft(on, 21) ^ Ft(on, 7))) | - 0) + - ((((Yn & (cn | Un)) | (cn & Un)) + - (Ft(Yn, 30) ^ Ft(Yn, 19) ^ Ft(Yn, 10))) | - 0)) | - 0), - (c[(g + 12) >> 2] = $n), - (Dn = (Dn + j) | 0), - (c[(g + 28) >> 2] = Dn), - (j = - ((wn = - (((((((wn + c[(kt = ((j = 20 | a) + h) | 0) >> 2]) | - 0) + - c[(j + 35360) >> 2]) | - 0) + - (hn ^ (Dn & (on ^ hn)))) | - 0) + - (Ft(Dn, 26) ^ Ft(Dn, 21) ^ Ft(Dn, 7))) | - 0) + - (((($n & (Un | Yn)) | (Un & Yn)) + - (Ft($n, 30) ^ Ft($n, 19) ^ Ft($n, 10))) | - 0)) | - 0), - (c[(g + 8) >> 2] = j), - (wn = (cn + wn) | 0), - (c[(g + 24) >> 2] = wn), - (cn = - ((hn = - (((((((hn + c[(Rt = ((cn = 24 | a) + h) | 0) >> 2]) | - 0) + - c[(cn + 35360) >> 2]) | - 0) + - (on ^ (wn & (Dn ^ on)))) | - 0) + - (Ft(wn, 26) ^ Ft(wn, 21) ^ Ft(wn, 7))) | - 0) + - ((((j & ($n | Yn)) | ($n & Yn)) + - (Ft(j, 30) ^ Ft(j, 19) ^ Ft(j, 10))) | - 0)) | - 0), - (c[(g + 4) >> 2] = cn), - (hn = (hn + Un) | 0), - (c[(g + 20) >> 2] = hn), - (Un = - ((on = - (((((((on + c[(At = ((Un = 28 | a) + h) | 0) >> 2]) | - 0) + - c[(Un + 35360) >> 2]) | - 0) + - (Dn ^ (hn & (Dn ^ wn)))) | - 0) + - (Ft(hn, 26) ^ Ft(hn, 21) ^ Ft(hn, 7))) | - 0) + - ((((cn & (j | $n)) | (j & $n)) + - (Ft(cn, 30) ^ Ft(cn, 19) ^ Ft(cn, 10))) | - 0)) | - 0), - (c[g >> 2] = Un), - (on = (on + Yn) | 0), - (c[(g + 16) >> 2] = on), - (Yn = - ((Dn = - (((((((Dn + c[(Ct = ((Yn = 32 | a) + h) | 0) >> 2]) | - 0) + - c[(Yn + 35360) >> 2]) | - 0) + - (wn ^ (on & (hn ^ wn)))) | - 0) + - (Ft(on, 26) ^ Ft(on, 21) ^ Ft(on, 7))) | - 0) + - ((((Un & (j | cn)) | (j & cn)) + - (Ft(Un, 30) ^ Ft(Un, 19) ^ Ft(Un, 10))) | - 0)) | - 0), - (c[(g + 28) >> 2] = Yn), - (Dn = (Dn + $n) | 0), - (c[(g + 12) >> 2] = Dn), - ($n = - ((wn = - (((((((wn + c[(wt = (($n = 36 | a) + h) | 0) >> 2]) | - 0) + - c[($n + 35360) >> 2]) | - 0) + - (hn ^ (Dn & (on ^ hn)))) | - 0) + - (Ft(Dn, 26) ^ Ft(Dn, 21) ^ Ft(Dn, 7))) | - 0) + - ((((Yn & (cn | Un)) | (cn & Un)) + - (Ft(Yn, 30) ^ Ft(Yn, 19) ^ Ft(Yn, 10))) | - 0)) | - 0), - (c[(g + 24) >> 2] = $n), - (wn = (j + wn) | 0), - (c[(g + 8) >> 2] = wn), - (j = - ((hn = - (((((((hn + c[(Tt = ((j = 40 | a) + h) | 0) >> 2]) | - 0) + - c[(j + 35360) >> 2]) | - 0) + - (on ^ (wn & (Dn ^ on)))) | - 0) + - (Ft(wn, 26) ^ Ft(wn, 21) ^ Ft(wn, 7))) | - 0) + - (((($n & (Un | Yn)) | (Un & Yn)) + - (Ft($n, 30) ^ Ft($n, 19) ^ Ft($n, 10))) | - 0)) | - 0), - (c[(g + 20) >> 2] = j), - (hn = (cn + hn) | 0), - (c[(g + 4) >> 2] = hn), - (nt = ((cn = 44 | a) + h) | 0), - (cn = - ((on = - (((((on + ((c[(cn + 35360) >> 2] + c[nt >> 2]) | 0)) | - 0) + - (Dn ^ (hn & (Dn ^ wn)))) | - 0) + - (Ft(hn, 26) ^ Ft(hn, 21) ^ Ft(hn, 7))) | - 0) + - ((((j & ($n | Yn)) | ($n & Yn)) + - (Ft(j, 30) ^ Ft(j, 19) ^ Ft(j, 10))) | - 0)) | - 0), - (c[(g + 16) >> 2] = cn), - (Un = (on + Un) | 0), - (c[g >> 2] = Un), - (gt = ((on = 48 | a) + h) | 0), - (on = - ((Dn = - (((((Dn + ((c[(on + 35360) >> 2] + c[gt >> 2]) | 0)) | - 0) + - (wn ^ (Un & (hn ^ wn)))) | - 0) + - (Ft(Un, 26) ^ Ft(Un, 21) ^ Ft(Un, 7))) | - 0) + - ((((cn & (j | $n)) | (j & $n)) + - (Ft(cn, 30) ^ Ft(cn, 19) ^ Ft(cn, 10))) | - 0)) | - 0), - (c[(g + 12) >> 2] = on), - (Yn = (Dn + Yn) | 0), - (c[(g + 28) >> 2] = Yn), - (pt = ((Dn = 52 | a) + h) | 0), - (wn = - ((Dn = - (((((((c[(Dn + 35360) >> 2] + c[pt >> 2]) | 0) + wn) | - 0) + - (hn ^ (Yn & (hn ^ Un)))) | - 0) + - (Ft(Yn, 26) ^ Ft(Yn, 21) ^ Ft(Yn, 7))) | - 0) + - ((((on & (j | cn)) | (j & cn)) + - (Ft(on, 30) ^ Ft(on, 19) ^ Ft(on, 10))) | - 0)) | - 0), - (c[(g + 8) >> 2] = wn), - ($n = (Dn + $n) | 0), - (c[(g + 24) >> 2] = $n), - (Dn = ((et = 56 | a) + h) | 0), - (hn = - ((et = - (((((((c[(et + 35360) >> 2] + c[Dn >> 2]) | 0) + hn) | - 0) + - (Un ^ ($n & (Un ^ Yn)))) | - 0) + - (Ft($n, 26) ^ Ft($n, 21) ^ Ft($n, 7))) | - 0) + - ((((wn & (cn | on)) | (cn & on)) + - (Ft(wn, 30) ^ Ft(wn, 19) ^ Ft(wn, 10))) | - 0)) | - 0), - (c[(g + 4) >> 2] = hn), - (j = (j + et) | 0), - (c[(g + 20) >> 2] = j), - (et = ((a |= 60) + h) | 0), - (j = - ((a = - (((((Un + ((c[(a + 35360) >> 2] + c[et >> 2]) | 0)) | - 0) + - (Yn ^ (j & ($n ^ Yn)))) | - 0) + - (Ft(j, 26) ^ Ft(j, 21) ^ Ft(j, 7))) | - 0) + - ((((hn & (on | wn)) | (on & wn)) + - (Ft(hn, 30) ^ Ft(hn, 19) ^ Ft(hn, 10))) | - 0)) | - 0), - (c[g >> 2] = j), - (c[(g + 16) >> 2] = a + cn), - (0 | yt) != 48; - - ) - (Un = c[wt >> 2]), - (yt = (yt + 16) | 0), - (a = c[Dn >> 2]), - (j = - ((on = - (c[_e >> 2] + - ((Un + (Ft(a, 15) ^ Ft(a, 13) ^ (a >>> 10))) | 0)) | - 0) + - (Ft((cn = c[at >> 2]), 25) ^ Ft(cn, 14) ^ (cn >>> 3))) | - 0), - (c[((yt << 2) + h) >> 2] = j), - ($n = - ((hn = - ((on = ((Yn = c[Tt >> 2]) + cn) | 0) + - (Ft((cn = c[et >> 2]), 15) ^ - Ft(cn, 13) ^ - (cn >>> 10))) | - 0) + - (Ft((on = c[mt >> 2]), 25) ^ Ft(on, 14) ^ (on >>> 3))) | - 0), - (c[(_e + 68) >> 2] = $n), - (wn = - ((nt = - ((((hn = on) + (on = c[nt >> 2])) | 0) + - (Ft(j, 15) ^ Ft(j, 13) ^ (j >>> 10))) | - 0) + - (Ft((hn = c[_t >> 2]), 25) ^ Ft(hn, 14) ^ (hn >>> 3))) | - 0), - (c[(_e + 72) >> 2] = wn), - (Dn = - ((et = - ((((nt = hn) + (hn = c[gt >> 2])) | 0) + - (Ft($n, 15) ^ Ft($n, 13) ^ ($n >>> 10))) | - 0) + - (Ft((nt = c[bt >> 2]), 25) ^ Ft(nt, 14) ^ (nt >>> 3))) | - 0), - (c[(_e + 76) >> 2] = Dn), - (gt = - ((et = - ((((et = nt) + (nt = c[pt >> 2])) | 0) + - (Ft(wn, 15) ^ Ft(wn, 13) ^ (wn >>> 10))) | - 0) + - (Ft((pt = c[kt >> 2]), 25) ^ Ft(pt, 14) ^ (pt >>> 3))) | - 0), - (c[(_e + 80) >> 2] = gt), - (pt = - ((at = - (((a + pt) | 0) + - (Ft(Dn, 15) ^ Ft(Dn, 13) ^ (Dn >>> 10))) | - 0) + - (Ft((et = c[Rt >> 2]), 25) ^ Ft(et, 14) ^ (et >>> 3))) | - 0), - (c[(_e + 84) >> 2] = pt), - (et = - (((((cn + et) | 0) + - (Ft((mt = c[At >> 2]), 25) ^ Ft(mt, 14) ^ (mt >>> 3))) | - 0) + - (Ft(gt, 15) ^ Ft(gt, 13) ^ (gt >>> 10))) | - 0), - (c[(_e + 88) >> 2] = et), - ($n = - ((((at = c[Ct >> 2]) + - (($n + (Ft(Un, 25) ^ Ft(Un, 14) ^ (Un >>> 3))) | 0)) | - 0) + - (Ft(et, 15) ^ Ft(et, 13) ^ (et >>> 10))) | - 0), - (c[(_e + 96) >> 2] = $n), - (at = - (((((j + mt) | 0) + - (Ft(at, 25) ^ Ft(at, 14) ^ (at >>> 3))) | - 0) + - (Ft(pt, 15) ^ Ft(pt, 13) ^ (pt >>> 10))) | - 0), - (c[(_e + 92) >> 2] = at), - (Dn = - (((Dn + - ((Yn + (Ft(on, 25) ^ Ft(on, 14) ^ (on >>> 3))) | 0)) | - 0) + - (Ft($n, 15) ^ Ft($n, 13) ^ ($n >>> 10))) | - 0), - (c[(_e + 104) >> 2] = Dn), - (Un = - (((wn + - ((Un + (Ft(Yn, 25) ^ Ft(Yn, 14) ^ (Yn >>> 3))) | 0)) | - 0) + - (Ft(at, 15) ^ Ft(at, 13) ^ (at >>> 10))) | - 0), - (c[(_e + 100) >> 2] = Un), - (Yn = - (((pt + - ((hn + (Ft(nt, 25) ^ Ft(nt, 14) ^ (nt >>> 3))) | 0)) | - 0) + - (Ft(Dn, 15) ^ Ft(Dn, 13) ^ (Dn >>> 10))) | - 0), - (c[(_e + 112) >> 2] = Yn), - (Un = - (((gt + - ((on + (Ft(hn, 25) ^ Ft(hn, 14) ^ (hn >>> 3))) | 0)) | - 0) + - (Ft(Un, 15) ^ Ft(Un, 13) ^ (Un >>> 10))) | - 0), - (c[(_e + 108) >> 2] = Un), - (Jt = _e), - (Ht = - (((at + - ((a + (Ft(cn, 25) ^ Ft(cn, 14) ^ (cn >>> 3))) | 0)) | - 0) + - (Ft(Yn, 15) ^ Ft(Yn, 13) ^ (Yn >>> 10))) | - 0), - (c[(Jt + 120) >> 2] = Ht), - (a = - (((et + - ((nt + (Ft(a, 25) ^ Ft(a, 14) ^ (a >>> 3))) | 0)) | - 0) + - (Ft(Un, 15) ^ Ft(Un, 13) ^ (Un >>> 10))) | - 0), - (c[(_e + 116) >> 2] = a), - (Jt = _e), - (Ht = - ((($n + - ((cn + (Ft(j, 25) ^ Ft(j, 14) ^ (j >>> 3))) | 0)) | - 0) + - (Ft(a, 15) ^ Ft(a, 13) ^ (a >>> 10))) | - 0), - (c[(Jt + 124) >> 2] = Ht) - ;(c[d >> 2] = j + c[d >> 2]), - (c[(d + 4) >> 2] = c[(d + 4) >> 2] + c[(g + 4) >> 2]), - (c[(d + 8) >> 2] = c[(d + 8) >> 2] + c[(g + 8) >> 2]), - (c[(d + 12) >> 2] = c[(d + 12) >> 2] + c[(g + 12) >> 2]), - (c[(d + 16) >> 2] = c[(d + 16) >> 2] + c[(g + 16) >> 2]), - (c[(d + 20) >> 2] = c[(d + 20) >> 2] + c[(g + 20) >> 2]), - (c[(d + 24) >> 2] = c[(d + 24) >> 2] + c[(g + 24) >> 2]), - (c[(d + 28) >> 2] = c[(d + 28) >> 2] + c[(g + 28) >> 2]) - } - function A0(d, a, h) { - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0 - for ( - St = g = (St - 4032) | 0, - ds((g + 160) | 0, h), - on = c[(h + 8) >> 2], - j = c[(h + 12) >> 2], - cn = c[(h + 16) >> 2], - $n = c[(h + 20) >> 2], - et = c[(h + 24) >> 2], - wn = c[(h + 28) >> 2], - Yn = c[h >> 2], - nt = c[(h + 4) >> 2], - pt = c[(h + 36) >> 2], - c[(g + 3840) >> 2] = c[(h + 32) >> 2], - c[(g + 3844) >> 2] = pt, - c[(g + 3832) >> 2] = et, - c[(g + 3836) >> 2] = wn, - c[(g + 3824) >> 2] = cn, - c[(g + 3828) >> 2] = $n, - c[(g + 3816) >> 2] = on, - c[(g + 3820) >> 2] = j, - c[(g + 3808) >> 2] = Yn, - c[(g + 3812) >> 2] = nt, - et = c[(h + 40) >> 2], - wn = c[(h + 44) >> 2], - Yn = c[(h + 48) >> 2], - nt = c[(h + 52) >> 2], - $n = c[(h + 56) >> 2], - pt = c[(h + 60) >> 2], - cn = c[(on = (h - -64) | 0) >> 2], - _e = c[(on + 4) >> 2], - j = c[(h + 76) >> 2], - c[(on = (g + 3880) | 0) >> 2] = c[(h + 72) >> 2], - c[(on + 4) >> 2] = j, - c[(j = (g + 3872) | 0) >> 2] = cn, - c[(j + 4) >> 2] = _e, - c[(cn = (g + 3864) | 0) >> 2] = $n, - c[(cn + 4) >> 2] = pt, - c[($n = (g + 3856) | 0) >> 2] = Yn, - c[($n + 4) >> 2] = nt, - c[(g + 3848) >> 2] = et, - c[(g + 3852) >> 2] = wn, - pt = c[(h + 80) >> 2], - _e = c[(h + 84) >> 2], - hn = c[(h + 88) >> 2], - Dn = c[(h + 92) >> 2], - nt = c[(h + 96) >> 2], - Un = c[(h + 100) >> 2], - Yn = c[(h + 104) >> 2], - at = c[(h + 108) >> 2], - wn = c[(h + 116) >> 2], - c[(et = (g + 3920) | 0) >> 2] = c[(h + 112) >> 2], - c[(et + 4) >> 2] = wn, - c[(wn = (g + 3912) | 0) >> 2] = Yn, - c[(wn + 4) >> 2] = at, - c[(Yn = (g + 3904) | 0) >> 2] = nt, - c[(Yn + 4) >> 2] = Un, - c[(nt = (g + 3896) | 0) >> 2] = hn, - c[(nt + 4) >> 2] = Dn, - c[(g + 3888) >> 2] = pt, - c[(g + 3892) >> 2] = _e, - ot((_e = (g + 3528) | 0), (pt = (g + 3808) | 0)), - Gt((hn = (g + 2408) | 0), _e, (Dn = (g + 3648) | 0)), - Gt( - (g + 2448) | 0, - (Un = (g + 3568) | 0), - (at = (g + 3608) | 0), - ), - Gt((g + 2488) | 0, at, Dn), - Gt((g + 2528) | 0, _e, Un), - ds((Dn = (g + 320) | 0), hn), - hs((_e = (g + 3368) | 0), h, Dn), - Gt((hn = (g + 2248) | 0), _e, (Dn = (g + 3488) | 0)), - Gt( - (g + 2288) | 0, - (Un = (g + 3408) | 0), - (at = (g + 3448) | 0), - ), - Gt((g + 2328) | 0, at, Dn), - Gt((g + 2368) | 0, _e, Un), - ds((g + 480) | 0, hn), - hn = c[(4 + (_e = (g + 2480) | 0)) >> 2], - c[on >> 2] = c[_e >> 2], - c[(on + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2472) | 0)) >> 2], - c[j >> 2] = c[_e >> 2], - c[(j + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2464) | 0)) >> 2], - c[cn >> 2] = c[_e >> 2], - c[(cn + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2456) | 0)) >> 2], - c[$n >> 2] = c[_e >> 2], - c[($n + 4) >> 2] = hn, - _e = c[(g + 2444) >> 2], - c[(g + 3840) >> 2] = c[(g + 2440) >> 2], - c[(g + 3844) >> 2] = _e, - _e = c[(g + 2436) >> 2], - c[(g + 3832) >> 2] = c[(g + 2432) >> 2], - c[(g + 3836) >> 2] = _e, - _e = c[(g + 2428) >> 2], - c[(g + 3824) >> 2] = c[(g + 2424) >> 2], - c[(g + 3828) >> 2] = _e, - _e = c[(g + 2420) >> 2], - c[(g + 3816) >> 2] = c[(g + 2416) >> 2], - c[(g + 3820) >> 2] = _e, - _e = c[(g + 2412) >> 2], - c[(g + 3808) >> 2] = c[(g + 2408) >> 2], - c[(g + 3812) >> 2] = _e, - _e = c[(g + 2452) >> 2], - c[(g + 3848) >> 2] = c[(g + 2448) >> 2], - c[(g + 3852) >> 2] = _e, - hn = c[(4 + (_e = (g + 2496) | 0)) >> 2], - c[nt >> 2] = c[_e >> 2], - c[(nt + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2504) | 0)) >> 2], - c[Yn >> 2] = c[_e >> 2], - c[(Yn + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2512) | 0)) >> 2], - c[wn >> 2] = c[_e >> 2], - c[(wn + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2520) | 0)) >> 2], - c[et >> 2] = c[_e >> 2], - c[(et + 4) >> 2] = hn, - _e = c[(g + 2492) >> 2], - c[(g + 3888) >> 2] = c[(g + 2488) >> 2], - c[(g + 3892) >> 2] = _e, - ot((_e = (g + 3208) | 0), pt), - Gt((hn = (g + 2088) | 0), _e, (Dn = (g + 3328) | 0)), - Gt( - (g + 2128) | 0, - (Un = (g + 3248) | 0), - (at = (g + 3288) | 0), - ), - Gt((g + 2168) | 0, at, Dn), - Gt((g + 2208) | 0, _e, Un), - ds((Dn = (g + 640) | 0), hn), - hs((_e = (g + 3048) | 0), h, Dn), - Gt((hn = (g + 1928) | 0), _e, (Dn = (g + 3168) | 0)), - Gt( - (g + 1968) | 0, - (Un = (g + 3088) | 0), - (at = (g + 3128) | 0), - ), - Gt((g + 2008) | 0, at, Dn), - Gt((g + 2048) | 0, _e, Un), - ds((g + 800) | 0, hn), - hn = c[(4 + (_e = (g + 2320) | 0)) >> 2], - c[on >> 2] = c[_e >> 2], - c[(on + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2312) | 0)) >> 2], - c[j >> 2] = c[_e >> 2], - c[(j + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2304) | 0)) >> 2], - c[cn >> 2] = c[_e >> 2], - c[(cn + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2296) | 0)) >> 2], - c[$n >> 2] = c[_e >> 2], - c[($n + 4) >> 2] = hn, - _e = c[(g + 2284) >> 2], - c[(g + 3840) >> 2] = c[(g + 2280) >> 2], - c[(g + 3844) >> 2] = _e, - _e = c[(g + 2276) >> 2], - c[(g + 3832) >> 2] = c[(g + 2272) >> 2], - c[(g + 3836) >> 2] = _e, - _e = c[(g + 2268) >> 2], - c[(g + 3824) >> 2] = c[(g + 2264) >> 2], - c[(g + 3828) >> 2] = _e, - _e = c[(g + 2260) >> 2], - c[(g + 3816) >> 2] = c[(g + 2256) >> 2], - c[(g + 3820) >> 2] = _e, - _e = c[(g + 2252) >> 2], - c[(g + 3808) >> 2] = c[(g + 2248) >> 2], - c[(g + 3812) >> 2] = _e, - _e = c[(g + 2292) >> 2], - c[(g + 3848) >> 2] = c[(g + 2288) >> 2], - c[(g + 3852) >> 2] = _e, - hn = c[(4 + (_e = (g + 2336) | 0)) >> 2], - c[nt >> 2] = c[_e >> 2], - c[(nt + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2344) | 0)) >> 2], - c[Yn >> 2] = c[_e >> 2], - c[(Yn + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2352) | 0)) >> 2], - c[wn >> 2] = c[_e >> 2], - c[(wn + 4) >> 2] = hn, - hn = c[(4 + (_e = (g + 2360) | 0)) >> 2], - c[et >> 2] = c[_e >> 2], - c[(et + 4) >> 2] = hn, - _e = c[(g + 2332) >> 2], - c[(g + 3888) >> 2] = c[(g + 2328) >> 2], - c[(g + 3892) >> 2] = _e, - ot((_e = (g + 2888) | 0), pt), - Gt((hn = (g + 1768) | 0), _e, (Dn = (g + 3008) | 0)), - Gt( - (g + 1808) | 0, - (Un = (g + 2928) | 0), - (at = (g + 2968) | 0), - ), - Gt((g + 1848) | 0, at, Dn), - Gt((g + 1888) | 0, _e, Un), - ds((Dn = (g + 960) | 0), hn), - hs((_e = (g + 2728) | 0), h, Dn), - Gt((h = (g + 1608) | 0), _e, (hn = (g + 2848) | 0)), - Gt( - (g + 1648) | 0, - (Dn = (g + 2768) | 0), - (Un = (g + 2808) | 0), - ), - Gt((g + 1688) | 0, Un, hn), - Gt((g + 1728) | 0, _e, Dn), - ds((g + 1120) | 0, h), - _e = c[(4 + (h = (g + 2160) | 0)) >> 2], - c[on >> 2] = c[h >> 2], - c[(on + 4) >> 2] = _e, - on = c[(4 + (h = (g + 2152) | 0)) >> 2], - c[j >> 2] = c[h >> 2], - c[(j + 4) >> 2] = on, - on = c[(4 + (h = (g + 2144) | 0)) >> 2], - c[cn >> 2] = c[h >> 2], - c[(cn + 4) >> 2] = on, - on = c[(4 + (h = (g + 2136) | 0)) >> 2], - c[$n >> 2] = c[h >> 2], - c[($n + 4) >> 2] = on, - h = c[(g + 2124) >> 2], - c[(g + 3840) >> 2] = c[(g + 2120) >> 2], - c[(g + 3844) >> 2] = h, - h = c[(g + 2116) >> 2], - c[(g + 3832) >> 2] = c[(g + 2112) >> 2], - c[(g + 3836) >> 2] = h, - h = c[(g + 2108) >> 2], - c[(g + 3824) >> 2] = c[(g + 2104) >> 2], - c[(g + 3828) >> 2] = h, - h = c[(g + 2100) >> 2], - c[(g + 3816) >> 2] = c[(g + 2096) >> 2], - c[(g + 3820) >> 2] = h, - h = c[(g + 2092) >> 2], - c[(g + 3808) >> 2] = c[(g + 2088) >> 2], - c[(g + 3812) >> 2] = h, - h = c[(g + 2132) >> 2], - c[(g + 3848) >> 2] = c[(g + 2128) >> 2], - c[(g + 3852) >> 2] = h, - on = c[(4 + (h = (g + 2176) | 0)) >> 2], - c[nt >> 2] = c[h >> 2], - c[(nt + 4) >> 2] = on, - on = c[(4 + (h = (g + 2184) | 0)) >> 2], - c[Yn >> 2] = c[h >> 2], - c[(Yn + 4) >> 2] = on, - on = c[(4 + (h = (g + 2192) | 0)) >> 2], - c[wn >> 2] = c[h >> 2], - c[(wn + 4) >> 2] = on, - on = c[(4 + (h = (g + 2200) | 0)) >> 2], - c[et >> 2] = c[h >> 2], - c[(et + 4) >> 2] = on, - h = c[(g + 2172) >> 2], - c[(g + 3888) >> 2] = c[(g + 2168) >> 2], - c[(g + 3892) >> 2] = h, - ot((h = (g + 2568) | 0), pt), - Gt((on = (g + 1448) | 0), h, (j = (g + 2688) | 0)), - Gt( - (g + 1488) | 0, - (cn = (g + 2608) | 0), - ($n = (g + 2648) | 0), - ), - Gt((g + 1528) | 0, $n, j), - Gt((g + 1568) | 0, h, cn), - ds((g + 1280) | 0, on), - on = 0, - h = 0; - (cn = ((j = (g + 3968) | 0) + (h << 1)) | 0), - ($n = rn[(a + h) | 0]), - (pn[(cn + 1) | 0] = $n >>> 4), - (pn[0 | cn] = 15 & $n), - (j = (j + ((cn = 1 | h) << 1)) | 0), - (cn = rn[(a + cn) | 0]), - (pn[(j + 1) | 0] = cn >>> 4), - (pn[0 | j] = 15 & cn), - (0 | (h = (h + 2) | 0)) != 32; - - ); - for ( - a = 0; - (h = - (8 + - (j = - ((h = a) + rn[0 | (a = (((g + 3968) | 0) + on) | 0)]) | - 0)) | - 0), - (pn[0 | a] = j - (240 & h)), - (h = - (8 + - (j = - (rn[(a + 1) | 0] + (((h << 24) >> 24) >> 4)) | 0)) | - 0), - (pn[(a + 1) | 0] = j - (240 & h)), - (h = - (8 + - (j = - (rn[(a + 2) | 0] + (((h << 24) >> 24) >> 4)) | 0)) | - 0), - (pn[(a + 2) | 0] = j - (240 & h)), - (a = ((h << 24) >> 24) >> 4), - (0 | (on = (on + 3) | 0)) != 63; - - ); - for ( - pn[(g + 4031) | 0] = rn[(g + 4031) | 0] + a, - c[(d + 32) >> 2] = 0, - c[(d + 36) >> 2] = 0, - c[(d + 24) >> 2] = 0, - c[(d + 28) >> 2] = 0, - c[(d + 16) >> 2] = 0, - c[(d + 20) >> 2] = 0, - c[(d + 8) >> 2] = 0, - c[(d + 12) >> 2] = 0, - c[d >> 2] = 0, - c[(d + 4) >> 2] = 0, - c[(d + 44) >> 2] = 0, - c[(d + 48) >> 2] = 0, - c[(Yn = (d + 40) | 0) >> 2] = 1, - c[(d + 52) >> 2] = 0, - c[(d + 56) >> 2] = 0, - c[(d + 60) >> 2] = 0, - c[(d + 64) >> 2] = 0, - c[(d + 68) >> 2] = 0, - c[(d + 72) >> 2] = 0, - c[(d + 76) >> 2] = 0, - c[(d + 80) >> 2] = 1, - qo((d + 84) | 0, 0, 76), - nt = (d + 120) | 0, - pt = (d + 80) | 0, - $n = (g + 3768) | 0, - a = (g + 3888) | 0, - j = (g + 3848) | 0, - et = (g + 3728) | 0, - h = (g + 3928) | 0, - wn = 63; - ct(g, (g + 160) | 0, pn[(((g + 3968) | 0) + wn) | 0]), - hs((on = (g + 3808) | 0), d, g), - Gt((cn = (g + 3688) | 0), on, h), - Gt(et, j, a), - Gt($n, a, h), - ot(on, cn), - Gt(cn, on, h), - Gt(et, j, a), - Gt($n, a, h), - ot(on, cn), - Gt(cn, on, h), - Gt(et, j, a), - Gt($n, a, h), - ot(on, cn), - Gt(cn, on, h), - Gt(et, j, a), - Gt($n, a, h), - ot(on, cn), - Gt(d, on, h), - Gt(Yn, j, a), - Gt(pt, a, h), - Gt(nt, on, j), - (wn = (wn - 1) | 0); - - ); - ct(g, (g + 160) | 0, pn[(g + 3968) | 0]), - hs((on = (g + 3808) | 0), d, g), - Gt(d, on, h), - Gt(Yn, j, a), - Gt(pt, a, h), - Gt(nt, on, j), - (St = (g + 4032) | 0) - } - function f0(d, a) { - var h, - g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t, - bt, - kt, - Rt, - At, - Ct, - wt, - Tt, - Jt, - Ht, - Zt, - jt, - rr, - sr, - Qt, - Ut, - tr, - dr, - Ar, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0, - Gr = 0, - er = 0, - or = 0, - It = 0, - Ot = 0 - ;(Pt = jn( - (g = (at = c[(a + 12) >> 2]) << 1), - (j = g >> 31), - (wr = (hr = c[(a + 4) >> 2]) << 1), - (_e = wr >> 31), - )), - (fr = On), - (_t = yr = c[(a + 8) >> 2]), - (xt = ((Qr = jn(yr, (pt = yr >> 31), yr, pt)) + Pt) | 0), - (Pt = (On + fr) | 0), - (Pt = xt >>> 0 < Qr >>> 0 ? (Pt + 1) | 0 : Pt), - (fr = jn( - (tt = c[(a + 16) >> 2]), - (cn = tt >> 31), - (Qr = (Er = c[a >> 2]) << 1), - (on = Qr >> 31), - )), - (Pt = (On + Pt) | 0), - (Pt = - (xt = (fr + xt) | 0) >>> 0 < fr >>> 0 ? (Pt + 1) | 0 : Pt), - (Un = c[(a + 28) >> 2]), - (fr = jn( - (er = zr(Un, 38)), - (gt = er >> 31), - Un, - (bt = Un >> 31), - )), - (Pt = (On + Pt) | 0), - (Pt = - (xt = (fr + xt) | 0) >>> 0 < fr >>> 0 ? (Pt + 1) | 0 : Pt), - (fr = xt), - (Yn = c[(a + 32) >> 2]), - (ft = jn( - (Xt = zr(Yn, 19)), - (Dn = Xt >> 31), - (xt = (h = c[(a + 24) >> 2]) << 1), - xt >> 31, - )), - (xt = (On + Pt) | 0), - (xt = - (fr = (fr + ft) | 0) >>> 0 < ft >>> 0 ? (xt + 1) | 0 : xt), - (Pt = fr), - (Jt = c[(a + 36) >> 2]), - (fr = jn( - (ft = zr(Jt, 38)), - (hn = ft >> 31), - (Dr = ($n = c[(a + 20) >> 2]) << 1), - (et = Dr >> 31), - )), - (a = (On + xt) | 0), - (xt = Pt = (Pt + fr) | 0), - (Zt = Pt = - ((Pt >>> 0 < fr >>> 0 ? (a + 1) | 0 : a) << 1) | - (Pt >>> 31)), - (jt = xt = (33554432 + (kt = xt << 1)) | 0), - (rr = Pt = xt >>> 0 < 33554432 ? (Pt + 1) | 0 : Pt), - (fr = ((67108863 & Pt) << 6) | (xt >>> 26)), - (Br = Pt >> 26), - (a = jn(wr, _e, tt, cn)), - (Pt = On), - (xt = jn((yr <<= 1), (nt = yr >> 31), at, (Rt = at >> 31))), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (It = jn($n, (mt = $n >> 31), Qr, on)), - (xt = (On + Pt) | 0), - (xt = - (a = (It + a) | 0) >>> 0 < It >>> 0 ? (xt + 1) | 0 : xt), - (Ot = jn(Xt, Dn, (It = Un << 1), (At = It >> 31))), - (Pt = (On + xt) | 0), - (Pt = - (a = (Ot + a) | 0) >>> 0 < Ot >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = jn(ft, hn, h, (wn = h >> 31))), - (Pt = (On + Pt) | 0), - (xt = - (((a = (xt + a) | 0) >>> 0 < xt >>> 0 - ? (Pt + 1) | 0 - : Pt) << - 1) | - (a >>> 31)), - (Pt = a << 1), - (a = (xt + Br) | 0), - (Ot = fr = (Pt + fr) | 0), - (Pt = a = Pt >>> 0 > fr >>> 0 ? (a + 1) | 0 : a), - (sr = a = (fr + 16777216) | 0), - (Br = - ((33554431 & - (Pt = a >>> 0 < 16777216 ? (Pt + 1) | 0 : Pt)) << - 7) | - (a >>> 25)), - (fr = Pt >> 25), - (a = jn(g, j, at, Rt)), - (Pt = On), - (xt = jn(tt, cn, yr, nt)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = jn(wr, _e, Dr, et)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = ((rt = jn(Qr, on, h, wn)) + a) | 0), - (a = (On + Pt) | 0), - (a = xt >>> 0 < rt >>> 0 ? (a + 1) | 0 : a), - (rt = jn(Xt, Dn, Yn, (yt = Yn >> 31))), - (Pt = (On + a) | 0), - (Pt = - (xt = (rt + xt) | 0) >>> 0 < rt >>> 0 ? (Pt + 1) | 0 : Pt), - (a = ((rt = jn(ft, hn, It, At)) + xt) | 0), - (xt = (On + Pt) | 0), - (a = - (((Pt = a) >>> 0 < rt >>> 0 ? (xt + 1) | 0 : xt) << 1) | - (Pt >>> 31)), - (xt = Br), - (Br = Pt << 1), - (Pt = (a + fr) | 0), - (Pt = - (xt = (xt + Br) | 0) >>> 0 < Br >>> 0 ? (Pt + 1) | 0 : Pt), - (Qt = a = (xt + 33554432) | 0), - (fr = Pt = a >>> 0 < 33554432 ? (Pt + 1) | 0 : Pt), - (c[(d + 24) >> 2] = xt - (-67108864 & a)), - (xt = jn((a = zr($n, 38)), a >> 31, $n, mt)), - (Br = On), - (a = ((Pt = jn((a = Er), (Pt = a >> 31), a, Pt)) + xt) | 0), - (xt = (On + Br) | 0), - (xt = a >>> 0 < Pt >>> 0 ? (xt + 1) | 0 : xt), - (rt = jn( - (Er = zr(h, 19)), - (Ct = Er >> 31), - (Br = tt << 1), - (wt = Br >> 31), - )), - (Pt = (On + xt) | 0), - (Pt = - (a = (rt + a) | 0) >>> 0 < rt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = jn(g, j, er, gt)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = ((rt = jn(Xt, Dn, yr, nt)) + a) | 0), - (a = (On + Pt) | 0), - (a = xt >>> 0 < rt >>> 0 ? (a + 1) | 0 : a), - (rt = jn(wr, _e, ft, hn)), - (Pt = (On + a) | 0), - (Ut = Pt = - (((xt = (rt + xt) | 0) >>> 0 < rt >>> 0 - ? (Pt + 1) | 0 - : Pt) << - 1) | - (xt >>> 31)), - (tr = a = (33554432 + (Tt = xt << 1)) | 0), - (dr = xt = a >>> 0 < 33554432 ? (Pt + 1) | 0 : Pt), - (or = ((67108863 & xt) << 6) | (a >>> 26)), - (rt = xt >> 26), - (a = jn(Er, Ct, Dr, et)), - (Pt = On), - (xt = jn(Qr, on, hr, (Ht = hr >> 31))), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = ((Gr = jn(tt, cn, er, gt)) + a) | 0), - (a = (On + Pt) | 0), - (a = xt >>> 0 < Gr >>> 0 ? (a + 1) | 0 : a), - (Gr = jn(Xt, Dn, g, j)), - (Pt = (On + a) | 0), - (Pt = - (xt = (Gr + xt) | 0) >>> 0 < Gr >>> 0 ? (Pt + 1) | 0 : Pt), - (a = ((Gr = jn(ft, hn, _t, pt)) + xt) | 0), - (xt = (On + Pt) | 0), - (a = - (((Pt = a) >>> 0 < Gr >>> 0 ? (xt + 1) | 0 : xt) << 1) | - (Pt >>> 31)), - (xt = or), - (or = Pt << 1), - (Pt = (a + rt) | 0), - (rt = xt = (xt + or) | 0), - (Pt = xt >>> 0 < or >>> 0 ? (Pt + 1) | 0 : Pt), - (Gr = xt = (xt + 16777216) | 0), - (Ar = - ((33554431 & - (Pt = xt >>> 0 < 16777216 ? (Pt + 1) | 0 : Pt)) << - 7) | - (xt >>> 25)), - (or = Pt >> 25), - (a = jn(Qr, on, _t, pt)), - (Pt = On), - (xt = jn(wr, _e, hr, Ht)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (hr = jn(Er, Ct, h, wn)), - (xt = (On + Pt) | 0), - (xt = - (a = (hr + a) | 0) >>> 0 < hr >>> 0 ? (xt + 1) | 0 : xt), - (hr = jn(Dr, et, er, gt)), - (Pt = (On + xt) | 0), - (Pt = - (a = (hr + a) | 0) >>> 0 < hr >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = jn(Xt, Dn, Br, wt)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = ((hr = jn(ft, hn, g, j)) + a) | 0), - (a = (On + Pt) | 0), - (Pt = - ((Pt = - ((xt >>> 0 < hr >>> 0 ? (a + 1) | 0 : a) << 1) | - (xt >>> 31)) + - or) | - 0), - (Er = a = ((xt <<= 1) + Ar) | 0), - (xt = a >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (or = a = (a + 33554432) | 0), - (hr = xt = a >>> 0 < 33554432 ? (xt + 1) | 0 : xt), - (c[(d + 8) >> 2] = Er - (-67108864 & a)), - (a = jn(yr, nt, $n, mt)), - (xt = On), - (Pt = ((Er = jn(tt, cn, g, j)) + a) | 0), - (a = (On + xt) | 0), - (a = Pt >>> 0 < Er >>> 0 ? (a + 1) | 0 : a), - (xt = ((Er = jn(wr, _e, h, wn)) + Pt) | 0), - (Pt = (On + a) | 0), - (Pt = xt >>> 0 < Er >>> 0 ? (Pt + 1) | 0 : Pt), - (a = ((Er = jn(Qr, on, Un, bt)) + xt) | 0), - (xt = (On + Pt) | 0), - (xt = a >>> 0 < Er >>> 0 ? (xt + 1) | 0 : xt), - (Er = jn(ft, hn, Yn, yt)), - (Pt = (On + xt) | 0), - (Pt = - ((Pt = - (((a = (Er + a) | 0) >>> 0 < Er >>> 0 - ? (Pt + 1) | 0 - : Pt) << - 1) | - (a >>> 31)) + - (xt = fr >> 26)) | - 0), - (a = - (xt = fr = - ((Er = a << 1) + - (a = ((67108863 & fr) << 6) | (Qt >>> 26))) | - 0) >>> - 0 < - a >>> 0 - ? (Pt + 1) | 0 - : Pt), - (Er = Pt = (xt + 16777216) | 0), - (fr = a = Pt >>> 0 < 16777216 ? (a + 1) | 0 : a), - (c[(d + 28) >> 2] = xt - (-33554432 & Pt)), - (a = jn(Qr, on, at, Rt)), - (Pt = On), - (xt = jn(wr, _e, _t, pt)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = jn(h, wn, er, gt)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = ((Xt = jn(Xt, Dn, Dr, et)) + a) | 0), - (a = (On + Pt) | 0), - (a = xt >>> 0 < Xt >>> 0 ? (a + 1) | 0 : a), - (Pt = ((Xt = jn(ft, hn, tt, cn)) + xt) | 0), - (xt = (On + a) | 0), - (a = Pt), - (Pt = - ((Pt >>> 0 < Xt >>> 0 ? (xt + 1) | 0 : xt) << 1) | - (Pt >>> 31)), - (xt = a << 1), - (Pt = ((a = hr >> 26) + Pt) | 0), - (Pt = - (xt = - (xt + (hr = ((67108863 & hr) << 6) | (or >>> 26))) | - 0) >>> - 0 < - hr >>> 0 - ? (Pt + 1) | 0 - : Pt), - (Xt = a = (xt + 16777216) | 0), - (hr = Pt = a >>> 0 < 16777216 ? (Pt + 1) | 0 : Pt), - (c[(d + 12) >> 2] = xt - (-33554432 & a)), - (a = jn(h, wn, yr, nt)), - (Pt = On), - (xt = jn(tt, cn, tt, cn)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = jn(g, j, Dr, et)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = jn(wr, _e, It, At)), - (Pt = (On + Pt) | 0), - (Pt = - (a = (xt + a) | 0) >>> 0 < xt >>> 0 ? (Pt + 1) | 0 : Pt), - (xt = ((tt = jn(Qr, on, Yn, yt)) + a) | 0), - (a = (On + Pt) | 0), - (a = xt >>> 0 < tt >>> 0 ? (a + 1) | 0 : a), - (Pt = - ((tt = jn((Pt = ft), hn, (ft = Jt), (Dr = ft >> 31))) + - xt) | - 0), - (xt = (On + a) | 0), - (a = Pt), - (Pt = - ((Pt >>> 0 < tt >>> 0 ? (xt + 1) | 0 : xt) << 1) | - (Pt >>> 31)), - (xt = a << 1), - (Pt = ((a = fr >> 25) + Pt) | 0), - (Pt = - (xt = - (xt + (fr = ((33554431 & fr) << 7) | (Er >>> 25))) | - 0) >>> - 0 < - fr >>> 0 - ? (Pt + 1) | 0 - : Pt), - (tt = a = (xt + 33554432) | 0), - (fr = Pt = a >>> 0 < 33554432 ? (Pt + 1) | 0 : Pt), - (c[(d + 32) >> 2] = xt - (-67108864 & a)), - (Pt = hr >> 25), - (xt = - ((hr = ((33554431 & hr) << 7) | (Xt >>> 25)) + - ((kt - (a = -67108864 & jt)) | 0)) | - 0), - (a = - (Pt + ((Zt - (((a >>> 0 > kt >>> 0) + rr) | 0)) | 0)) | 0), - (Pt = xt >>> 0 < hr >>> 0 ? (a + 1) | 0 : a), - (Er = Pt = - ((67108863 & - (Pt = - (a = (xt + 33554432) | 0) >>> 0 < 33554432 - ? (Pt + 1) | 0 - : Pt)) << - 6) | - (a >>> 26)), - (Pt = (Pt + (er = (Ot - (-33554432 & sr)) | 0)) | 0), - (c[(d + 20) >> 2] = Pt), - (c[(d + 16) >> 2] = xt - (-67108864 & a)), - (a = jn(g, j, h, wn)), - (xt = On), - (Pt = ((hr = jn($n, mt, Br, wt)) + a) | 0), - (a = (On + xt) | 0), - (a = Pt >>> 0 < hr >>> 0 ? (a + 1) | 0 : a), - (xt = ((hr = jn(yr, nt, Un, bt)) + Pt) | 0), - (Pt = (On + a) | 0), - (Pt = xt >>> 0 < hr >>> 0 ? (Pt + 1) | 0 : Pt), - (a = ((hr = jn(wr, _e, Yn, yt)) + xt) | 0), - (xt = (On + Pt) | 0), - (xt = a >>> 0 < hr >>> 0 ? (xt + 1) | 0 : xt), - (hr = jn(Qr, on, ft, Dr)), - (Pt = (On + xt) | 0), - (Er = (a = (hr + a) | 0) << 1), - (Pt = - ((Pt = - ((a >>> 0 < hr >>> 0 ? (Pt + 1) | 0 : Pt) << 1) | - (a >>> 31)) + - (xt = fr >> 26)) | - 0), - (a = - (a = ((67108863 & fr) << 6) | (tt >>> 26)) >>> 0 > - (fr = (Er + a) | 0) >>> 0 - ? (Pt + 1) | 0 - : Pt), - (a = - (Pt = (fr + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a), - (c[(d + 36) >> 2] = fr - (-33554432 & Pt)), - (hr = (rt - (-33554432 & Gr)) | 0), - (fr = (Tt - (xt = -67108864 & tr)) | 0), - (wr = (Ut - (((xt >>> 0 > Tt >>> 0) + dr) | 0)) | 0), - (a = jn(((33554431 & a) << 7) | (Pt >>> 25), a >> 25, 19, 0)), - (xt = (On + wr) | 0), - (fr = Pt = (a + fr) | 0), - (a = a >>> 0 > Pt >>> 0 ? (xt + 1) | 0 : xt), - (xt = a = - ((67108863 & - (a = - (Pt = (Pt + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a)) << - 6) | - (Pt >>> 26)), - (a = (a + hr) | 0), - (c[(d + 4) >> 2] = a), - (c[d >> 2] = fr - (-67108864 & Pt)) - } - function Bt(d, a) { - var h, - g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t, - bt, - kt, - Rt, - At, - Ct, - wt, - Tt, - Jt, - Ht, - Zt, - jt, - rr, - sr, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0, - Gr = 0, - er = 0, - or = 0 - ;(Qt = jn( - (g = (pt = c[(a + 12) >> 2]) << 1), - (j = g >> 31), - pt, - (bt = pt >> 31), - )), - (tr = On), - (Ut = - ((hr = jn( - (Ar = c[(a + 16) >> 2]), - (cn = Ar >> 31), - (Dn = (dr = c[(a + 8) >> 2]) << 1), - (Yn = Dn >> 31), - )) + - Qt) | - 0), - (Qt = (On + tr) | 0), - (Qt = Ut >>> 0 < hr >>> 0 ? (Qt + 1) | 0 : Qt), - (tr = - ((Er = jn( - (ft = ($n = c[(a + 20) >> 2]) << 1), - (et = ft >> 31), - (hr = (Pt = c[(a + 4) >> 2]) << 1), - (_e = hr >> 31), - )) + - Ut) | - 0), - (Ut = (On + Qt) | 0), - (Ut = tr >>> 0 < Er >>> 0 ? (Ut + 1) | 0 : Ut), - (xt = jn( - (h = c[(a + 24) >> 2]), - (wn = h >> 31), - (Er = (Qr = c[a >> 2]) << 1), - (on = Er >> 31), - )), - (Qt = (On + Ut) | 0), - (Qt = - (tr = (xt + tr) | 0) >>> 0 < xt >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = tr), - (nt = c[(a + 32) >> 2]), - (tr = jn( - (rt = zr(nt, 19)), - (Un = rt >> 31), - nt, - (mt = nt >> 31), - )), - (Qt = (On + Qt) | 0), - (Qt = - (Ut = (Ut + tr) | 0) >>> 0 < tr >>> 0 ? (Qt + 1) | 0 : Qt), - (wt = c[(a + 36) >> 2]), - (tr = jn( - (xt = zr(wt, 38)), - (hn = xt >> 31), - (yt = (at = c[(a + 28) >> 2]) << 1), - (kt = yt >> 31), - )), - (a = (On + Qt) | 0), - (yr = Ut = (tr + Ut) | 0), - (tr = Ut >>> 0 < tr >>> 0 ? (a + 1) | 0 : a), - (a = jn(hr, _e, Ar, cn)), - (Qt = On), - (Ut = jn(Dn, Yn, pt, bt)), - (Qt = (On + Qt) | 0), - (Qt = - (a = (Ut + a) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (fr = jn($n, (_t = $n >> 31), Er, on)), - (Ut = (On + Qt) | 0), - (Ut = - (a = (fr + a) | 0) >>> 0 < fr >>> 0 ? (Ut + 1) | 0 : Ut), - (fr = jn(rt, Un, yt, kt)), - (Qt = (On + Ut) | 0), - (Qt = - (a = (fr + a) | 0) >>> 0 < fr >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = jn(xt, hn, h, wn)), - (Qt = (On + Qt) | 0), - (er = a = (Ut + a) | 0), - (tt = a >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (Qt = jn(hr, _e, g, j)), - (Ut = On), - (Rt = a = dr), - (dr = jn(a, (Xt = a >> 31), a, Xt)), - (a = (On + Ut) | 0), - (a = (Qt = (dr + Qt) | 0) >>> 0 < dr >>> 0 ? (a + 1) | 0 : a), - (Ut = ((dr = jn(Er, on, Ar, cn)) + Qt) | 0), - (Qt = (On + a) | 0), - (Qt = Ut >>> 0 < dr >>> 0 ? (Qt + 1) | 0 : Qt), - (a = - ((dr = jn( - (fr = zr(at, 38)), - (gt = fr >> 31), - at, - (At = at >> 31), - )) + - Ut) | - 0), - (Ut = (On + Qt) | 0), - (Ut = a >>> 0 < dr >>> 0 ? (Ut + 1) | 0 : Ut), - (a = - ((Qt = a) + (dr = jn(rt, Un, (a = h << 1), a >> 31))) | 0), - (Qt = (On + Ut) | 0), - (Qt = a >>> 0 < dr >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = a), - (a = jn(xt, hn, ft, et)), - (Qt = (On + Qt) | 0), - (Tt = Ut = (Ut + a) | 0), - (Jt = Qt = a >>> 0 > Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (a = Qt), - (Ht = Ut = (Ut + 33554432) | 0), - (Zt = a = Ut >>> 0 < 33554432 ? (a + 1) | 0 : a), - (Qt = ((Qt = a >> 26) + tt) | 0), - (er = a = - ((Ut = ((67108863 & a) << 6) | (Ut >>> 26)) + er) | 0), - (Qt = a >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (jt = a = (a + 16777216) | 0), - (Qt = - ((Qt = - (Ut = a >>> 0 < 16777216 ? (Qt + 1) | 0 : Qt) >> 25) + - tr) | - 0), - (a = - (a = ((33554431 & Ut) << 7) | (a >>> 25)) >>> 0 > - (Ut = (a + yr) | 0) >>> 0 - ? (Qt + 1) | 0 - : Qt), - (yr = Qt = (Ut + 33554432) | 0), - (dr = a = Qt >>> 0 < 33554432 ? (a + 1) | 0 : a), - (c[(d + 24) >> 2] = Ut - (-67108864 & Qt)), - (a = jn(Er, on, Rt, Xt)), - (Qt = On), - (tr = jn(hr, _e, Pt, (Gr = Pt >> 31))), - (Ut = (On + Qt) | 0), - (Ut = - (a = (tr + a) | 0) >>> 0 < tr >>> 0 ? (Ut + 1) | 0 : Ut), - (tt = jn((tr = zr(h, 19)), (Dr = tr >> 31), h, wn)), - (Qt = (On + Ut) | 0), - (Qt = - (a = (tt + a) | 0) >>> 0 < tt >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = ((tt = jn(ft, et, fr, gt)) + a) | 0), - (a = (On + Qt) | 0), - (a = Ut >>> 0 < tt >>> 0 ? (a + 1) | 0 : a), - (Br = jn(rt, Un, (tt = Ar << 1), (Ct = tt >> 31))), - (Qt = (On + a) | 0), - (Qt = - (Ut = (Br + Ut) | 0) >>> 0 < Br >>> 0 ? (Qt + 1) | 0 : Qt), - (a = Ut), - (Ut = jn(xt, hn, g, j)), - (Qt = (On + Qt) | 0), - (wr = a = (a + Ut) | 0), - (Br = a >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (a = jn(ft, et, tr, Dr)), - (Qt = On), - (Pt = jn(Er, on, Pt, Gr)), - (Ut = (On + Qt) | 0), - (Ut = - (a = (Pt + a) | 0) >>> 0 < Pt >>> 0 ? (Ut + 1) | 0 : Ut), - (Pt = jn(Ar, cn, fr, gt)), - (Qt = (On + Ut) | 0), - (Qt = - (a = (Pt + a) | 0) >>> 0 < Pt >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = ((Pt = jn(rt, Un, g, j)) + a) | 0), - (a = (On + Qt) | 0), - (a = Ut >>> 0 < Pt >>> 0 ? (a + 1) | 0 : a), - (Pt = jn(xt, hn, Rt, Xt)), - (Qt = (On + a) | 0), - (or = Ut = (Pt + Ut) | 0), - (Gr = Ut >>> 0 < Pt >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = jn((a = zr($n, 38)), a >> 31, $n, _t)), - (Pt = On), - (a = Qr), - (Qr = Ut), - (Ut = jn(a, (Qt = a >> 31), a, Qt)), - (Qt = (On + Pt) | 0), - (Qt = - (a = (Qr + Ut) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (tr = jn(tr, Dr, tt, Ct)), - (Ut = (On + Qt) | 0), - (Ut = - (a = (tr + a) | 0) >>> 0 < tr >>> 0 ? (Ut + 1) | 0 : Ut), - (tr = jn(g, j, fr, gt)), - (Qt = (On + Ut) | 0), - (Qt = - (a = (tr + a) | 0) >>> 0 < tr >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = ((tr = jn(rt, Un, Dn, Yn)) + a) | 0), - (a = (On + Qt) | 0), - (a = Ut >>> 0 < tr >>> 0 ? (a + 1) | 0 : a), - (tr = jn(hr, _e, xt, hn)), - (Qt = (On + a) | 0), - (Pt = Ut = (tr + Ut) | 0), - (Dr = Qt = Ut >>> 0 < tr >>> 0 ? (Qt + 1) | 0 : Qt), - (rr = Ut = (Ut + 33554432) | 0), - (sr = Qt = Ut >>> 0 < 33554432 ? (Qt + 1) | 0 : Qt), - (a = Qt >> 26), - (Qt = ((67108863 & Qt) << 6) | (Ut >>> 26)), - (Ut = (a + Gr) | 0), - (Qr = tr = (Qt + or) | 0), - (Qt = Ut = Qt >>> 0 > tr >>> 0 ? (Ut + 1) | 0 : Ut), - (or = Ut = (tr + 16777216) | 0), - (tr = - ((33554431 & - (Qt = Ut >>> 0 < 16777216 ? (Qt + 1) | 0 : Qt)) << - 7) | - (Ut >>> 25)), - (Qt = ((Qt >> 25) + Br) | 0), - (Qt = - (Ut = (tr + wr) | 0) >>> 0 < tr >>> 0 ? (Qt + 1) | 0 : Qt), - (Br = a = (Ut + 33554432) | 0), - (tr = Qt = a >>> 0 < 33554432 ? (Qt + 1) | 0 : Qt), - (c[(d + 8) >> 2] = Ut - (-67108864 & a)), - (a = jn(Dn, Yn, $n, _t)), - (Qt = On), - (Ut = jn(Ar, cn, g, j)), - (Qt = (On + Qt) | 0), - (Qt = - (a = (Ut + a) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = jn(hr, _e, h, wn)), - (Qt = (On + Qt) | 0), - (Qt = - (a = (Ut + a) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = jn(Er, on, at, At)), - (Qt = (On + Qt) | 0), - (Qt = - (a = (Ut + a) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (wr = ((Ut = jn(xt, hn, nt, mt)) + a) | 0), - (a = (On + Qt) | 0), - (Ut = - ((Qt = dr >> 26) + - (Ut = Ut >>> 0 > wr >>> 0 ? (a + 1) | 0 : a)) | - 0), - (yr = a = - ((dr = ((67108863 & dr) << 6) | (yr >>> 26)) + wr) | 0), - (Qt = a >>> 0 < dr >>> 0 ? (Ut + 1) | 0 : Ut), - (wr = a = (a + 16777216) | 0), - (dr = Qt = a >>> 0 < 16777216 ? (Qt + 1) | 0 : Qt), - (c[(d + 28) >> 2] = yr - (-33554432 & a)), - (a = jn(Er, on, pt, bt)), - (Ut = On), - (Qt = ((Xt = jn(hr, _e, Rt, Xt)) + a) | 0), - (a = (On + Ut) | 0), - (a = Qt >>> 0 < Xt >>> 0 ? (a + 1) | 0 : a), - (Qt = ((fr = jn(h, wn, fr, gt)) + Qt) | 0), - (Ut = (On + a) | 0), - (a = ((rt = jn(rt, Un, ft, et)) + Qt) | 0), - (Qt = (On + (Qt >>> 0 < fr >>> 0 ? (Ut + 1) | 0 : Ut)) | 0), - (Qt = a >>> 0 < rt >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = jn(xt, hn, Ar, cn)), - (Qt = (On + Qt) | 0), - (Qt = - ((Qt = - (a = (Ut + a) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt) + - (Ut = tr >> 26)) | - 0), - (a = - (Ut = tr = - ((yr = a) + (a = ((67108863 & tr) << 6) | (Br >>> 26))) | - 0) >>> - 0 < - a >>> 0 - ? (Qt + 1) | 0 - : Qt), - (rt = Qt = (Ut + 16777216) | 0), - (tr = a = Qt >>> 0 < 16777216 ? (a + 1) | 0 : a), - (c[(d + 12) >> 2] = Ut - (-33554432 & Qt)), - (a = jn(h, wn, Dn, Yn)), - (Qt = On), - (Ut = jn(Ar, cn, Ar, cn)), - (Qt = (On + Qt) | 0), - (Qt = - (a = (Ut + a) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = jn(g, j, ft, et)), - (Qt = (On + Qt) | 0), - (Qt = - (a = (Ut + a) | 0) >>> 0 < Ut >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = ((Ar = jn(hr, _e, yt, kt)) + a) | 0), - (a = (On + Qt) | 0), - (a = Ut >>> 0 < Ar >>> 0 ? (a + 1) | 0 : a), - (Qt = ((Ar = jn(Er, on, nt, mt)) + Ut) | 0), - (Ut = (On + a) | 0), - (Ut = Qt >>> 0 < Ar >>> 0 ? (Ut + 1) | 0 : Ut), - (a = - ((Ar = jn((a = xt), hn, (xt = wt), (ft = xt >> 31))) + Qt) | - 0), - (Qt = (On + Ut) | 0), - (Qt = a >>> 0 < Ar >>> 0 ? (Qt + 1) | 0 : Qt), - (Ut = a), - (Qt = ((a = dr >> 25) + Qt) | 0), - (Qt = - (Ut = - (Ut + (dr = ((33554431 & dr) << 7) | (wr >>> 25))) | - 0) >>> - 0 < - dr >>> 0 - ? (Qt + 1) | 0 - : Qt), - (Ar = a = (Ut + 33554432) | 0), - (dr = Qt = a >>> 0 < 33554432 ? (Qt + 1) | 0 : Qt), - (c[(d + 32) >> 2] = Ut - (-67108864 & a)), - (Qt = tr >> 25), - (Ut = - ((tr = ((33554431 & tr) << 7) | (rt >>> 25)) + - ((Tt - (a = -67108864 & Ht)) | 0)) | - 0), - (a = - (Qt + ((Jt - (((a >>> 0 > Tt >>> 0) + Zt) | 0)) | 0)) | 0), - (Qt = Ut >>> 0 < tr >>> 0 ? (a + 1) | 0 : a), - (tr = Qt = - ((67108863 & - (Qt = - (a = (Ut + 33554432) | 0) >>> 0 < 33554432 - ? (Qt + 1) | 0 - : Qt)) << - 6) | - (a >>> 26)), - (Qt = (Qt + (fr = (er - (-33554432 & jt)) | 0)) | 0), - (c[(d + 20) >> 2] = Qt), - (c[(d + 16) >> 2] = Ut - (-67108864 & a)), - (a = jn(g, j, h, wn)), - (Ut = On), - (Qt = ((tr = jn($n, _t, tt, Ct)) + a) | 0), - (a = (On + Ut) | 0), - (a = Qt >>> 0 < tr >>> 0 ? (a + 1) | 0 : a), - (Ut = ((tr = jn(Dn, Yn, at, At)) + Qt) | 0), - (Qt = (On + a) | 0), - (Qt = Ut >>> 0 < tr >>> 0 ? (Qt + 1) | 0 : Qt), - (a = ((tr = jn(hr, _e, nt, mt)) + Ut) | 0), - (Ut = (On + Qt) | 0), - (Ut = a >>> 0 < tr >>> 0 ? (Ut + 1) | 0 : Ut), - (tr = ((Qt = a) + (a = jn(Er, on, xt, ft))) | 0), - (Qt = (On + Ut) | 0), - (Qt = - ((a = a >>> 0 > tr >>> 0 ? (Qt + 1) | 0 : Qt) + - (Qt = dr >> 26)) | - 0), - (a = - (Ut = - ((dr = ((67108863 & dr) << 6) | (Ar >>> 26)) + tr) | - 0) >>> - 0 < - dr >>> 0 - ? (Qt + 1) | 0 - : Qt), - (a = - (Qt = (Ut + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a), - (c[(d + 36) >> 2] = Ut - (-33554432 & Qt)), - (dr = (Qr - (-33554432 & or)) | 0), - (tr = (Pt - (Ut = -67108864 & rr)) | 0), - (hr = (Dr - (((Ut >>> 0 > Pt >>> 0) + sr) | 0)) | 0), - (a = jn(((33554431 & a) << 7) | (Qt >>> 25), a >> 25, 19, 0)), - (Qt = (On + hr) | 0), - (a = a >>> 0 > (Ut = (a + tr) | 0) >>> 0 ? (Qt + 1) | 0 : Qt), - (tr = a = - ((67108863 & - (a = - (Qt = (Ut + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a)) << - 6) | - (Qt >>> 26)), - (a = (a + dr) | 0), - (c[(d + 4) >> 2] = a), - (c[d >> 2] = Ut - (-67108864 & Qt)) - } - function Ou(d, a) { - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0 - if ( - ((St = h = (St - 48) | 0), - !((_e = W0(d)) || ((_e = -26), (a - 3) >>> 0 < 4294967294))) - ) { - ;(g = c[(d + 44) >> 2]), - (_e = c[(d + 48) >> 2]), - (c[h >> 2] = 0), - (Dn = c[(d + 40) >> 2]), - (c[(h + 28) >> 2] = _e), - (c[(h + 12) >> 2] = -1), - (c[(h + 8) >> 2] = Dn), - (_e = - (((hn = g >>> 0 > (Dn = _e << 3) >>> 0 ? g : Dn) >>> 0) / - ((g = _e << 2) >>> 0)) | - 0), - (c[(h + 20) >> 2] = _e), - (c[(h + 24) >> 2] = _e << 2), - (c[(h + 16) >> 2] = zr(g, _e)), - (_e = c[(d + 52) >> 2]), - (c[(h + 36) >> 2] = a), - (c[(h + 32) >> 2] = _e), - (et = a = St), - (St = g = (a - 1152) & -64), - (a = -25) - e: { - if ( - !(!h | !d) && - ((_e = Ls(c[(h + 20) >> 2] << 3)), - (c[(h + 4) >> 2] = _e), - (a = -22), - _e) - ) { - n: { - if ( - (a = c[(h + 16) >> 2]) && - ((((_e = a << 10) >>> 0) / (a >>> 0)) | 0) == 1024 && - ((a = Ls(12)), (c[h >> 2] = a), a) - ) { - if ( - ((c[a >> 2] = 0), - (c[(a + 4) >> 2] = 0), - (a = Fl((g + 128) | 0, _e)), - (c[9129] = a), - a) - ) - c[(g + 128) >> 2] = 0 - else if ((a = c[(g + 128) >> 2])) break n - fs(c[h >> 2]), (c[h >> 2] = 0) - } - dA(h, c[(d + 56) >> 2]), (St = et), (a = -22) - break e - } - if ( - ((c[c[h >> 2] >> 2] = a), - (c[(c[h >> 2] + 4) >> 2] = a), - (c[(c[h >> 2] + 8) >> 2] = _e), - (Dn = c[(h + 36) >> 2]), - Cu((a = (g + 128) | 0), 0, 0, 64), - (c[(g + 124) >> 2] = c[(d + 48) >> 2]), - go(a, (_e = (g + 124) | 0), 4, 0), - (c[(g + 124) >> 2] = c[(d + 4) >> 2]), - go(a, _e, 4, 0), - (c[(g + 124) >> 2] = c[(d + 44) >> 2]), - go(a, _e, 4, 0), - (c[(g + 124) >> 2] = c[(d + 40) >> 2]), - go(a, _e, 4, 0), - (c[(g + 124) >> 2] = 19), - go((g + 128) | 0, (g + 124) | 0, 4, 0), - (c[(g + 124) >> 2] = Dn), - go((g + 128) | 0, (g + 124) | 0, 4, 0), - (c[(g + 124) >> 2] = c[(d + 12) >> 2]), - go((g + 128) | 0, (g + 124) | 0, 4, 0), - (a = c[(d + 8) >> 2]) && - (go((g + 128) | 0, a, c[(d + 12) >> 2], 0), - 1 & pn[(d + 56) | 0] && - (Ur(c[(d + 8) >> 2], c[(d + 12) >> 2]), - (c[(d + 12) >> 2] = 0))), - (c[(g + 124) >> 2] = c[(d + 20) >> 2]), - go((g + 128) | 0, (g + 124) | 0, 4, 0), - (a = c[(d + 16) >> 2]) && - go((g + 128) | 0, a, c[(d + 20) >> 2], 0), - (c[(g + 124) >> 2] = c[(d + 28) >> 2]), - go((g + 128) | 0, (g + 124) | 0, 4, 0), - (a = c[(d + 24) >> 2]) && - (go((g + 128) | 0, a, c[(d + 28) >> 2], 0), - 2 & rn[(d + 56) | 0] && - (Ur(c[(d + 24) >> 2], c[(d + 28) >> 2]), - (c[(d + 28) >> 2] = 0))), - (c[(g + 124) >> 2] = c[(d + 36) >> 2]), - go((g + 128) | 0, (g + 124) | 0, 4, 0), - (a = c[(d + 32) >> 2]) && - go((g + 128) | 0, a, c[(d + 36) >> 2], 0), - n0((g + 128) | 0, (g + 48) | 0, 64), - Ur((g + 112) | 0, 8), - c[(h + 28) >> 2]) - ) - for (a = 0; ; ) { - for ( - c[(g + 112) >> 2] = 0, - c[(g + 116) >> 2] = a, - Yu((g + 128) | 0, 1024, (g + 48) | 0, 72), - Dn = - (c[(c[h >> 2] + 4) >> 2] + - (zr(c[(h + 24) >> 2], a) << 10)) | - 0, - _e = 0; - (on = ((j = _e << 3) + Dn) | 0), - (Un = - c[ - (4 + ($n = ((hn = (g + 128) | 0) + j) | 0)) >> - 2 - ]), - (c[on >> 2] = c[$n >> 2]), - (c[(on + 4) >> 2] = Un), - ($n = ((on = 8 | j) + Dn) | 0), - (Un = c[(4 + (on = (on + hn) | 0)) >> 2]), - (c[$n >> 2] = c[on >> 2]), - (c[($n + 4) >> 2] = Un), - ($n = ((on = 16 | j) + Dn) | 0), - (Un = c[(4 + (on = (on + hn) | 0)) >> 2]), - (c[$n >> 2] = c[on >> 2]), - (c[($n + 4) >> 2] = Un), - (on = ((j |= 24) + Dn) | 0), - (hn = c[(4 + (j = (j + hn) | 0)) >> 2]), - (c[on >> 2] = c[j >> 2]), - (c[(on + 4) >> 2] = hn), - (0 | (_e = (_e + 4) | 0)) != 128; - - ); - for ( - c[(g + 112) >> 2] = 1, - Yu((g + 128) | 0, 1024, (g + 48) | 0, 72), - Dn = - (1024 + - ((c[(c[h >> 2] + 4) >> 2] + - (zr(c[(h + 24) >> 2], a) << 10)) | - 0)) | - 0, - _e = 0; - (on = ((j = _e << 3) + Dn) | 0), - (Un = - c[ - (4 + ($n = ((hn = (g + 128) | 0) + j) | 0)) >> - 2 - ]), - (c[on >> 2] = c[$n >> 2]), - (c[(on + 4) >> 2] = Un), - ($n = ((on = 8 | j) + Dn) | 0), - (Un = c[(4 + (on = (on + hn) | 0)) >> 2]), - (c[$n >> 2] = c[on >> 2]), - (c[($n + 4) >> 2] = Un), - ($n = ((on = 16 | j) + Dn) | 0), - (Un = c[(4 + (on = (on + hn) | 0)) >> 2]), - (c[$n >> 2] = c[on >> 2]), - (c[($n + 4) >> 2] = Un), - (on = ((j |= 24) + Dn) | 0), - (hn = c[(4 + (j = (j + hn) | 0)) >> 2]), - (c[on >> 2] = c[j >> 2]), - (c[(on + 4) >> 2] = hn), - (0 | (_e = (_e + 4) | 0)) != 128; - - ); - if (!((a = (a + 1) | 0) >>> 0 < Es[(h + 28) >> 2])) - break - } - Ur((g + 128) | 0, 1024), Ur((g + 48) | 0, 72), (a = 0) - } - St = et - } - if (((_e = a), !a)) { - if (c[(h + 8) >> 2]) - for (;;) { - if ( - ((St = a = (St - 80) | 0), !(!h | !c[(h + 28) >> 2])) - ) { - for ( - pn[(a + 72) | 0] = 0, c[(a + 64) >> 2] = cn, _e = 0; - (c[(a + 76) >> 2] = 0), - (g = c[(a + 76) >> 2]), - (c[(a + 56) >> 2] = c[(a + 72) >> 2]), - (c[(a + 60) >> 2] = g), - (c[(a + 68) >> 2] = _e), - (g = c[(a + 68) >> 2]), - (c[(a + 48) >> 2] = c[(a + 64) >> 2]), - (c[(a + 52) >> 2] = g), - Qu(h, (a + 48) | 0), - (_e = (_e + 1) | 0) >>> 0 < - (g = c[(h + 28) >> 2]) >>> 0; - - ); - if (((pn[(a + 72) | 0] = 1), g)) { - for ( - _e = 0; - (c[(a + 76) >> 2] = 0), - (g = c[(a + 76) >> 2]), - (c[(a + 40) >> 2] = c[(a + 72) >> 2]), - (c[(a + 44) >> 2] = g), - (c[(a + 68) >> 2] = _e), - (g = c[(a + 68) >> 2]), - (c[(a + 32) >> 2] = c[(a + 64) >> 2]), - (c[(a + 36) >> 2] = g), - Qu(h, (a + 32) | 0), - (_e = (_e + 1) | 0) >>> 0 < - (g = c[(h + 28) >> 2]) >>> 0; - - ); - if (((pn[(a + 72) | 0] = 2), g)) { - for ( - _e = 0; - (c[(a + 76) >> 2] = 0), - (g = c[(a + 76) >> 2]), - (c[(a + 24) >> 2] = c[(a + 72) >> 2]), - (c[(a + 28) >> 2] = g), - (c[(a + 68) >> 2] = _e), - (g = c[(a + 68) >> 2]), - (c[(a + 16) >> 2] = c[(a + 64) >> 2]), - (c[(a + 20) >> 2] = g), - Qu(h, (a + 16) | 0), - (_e = (_e + 1) | 0) >>> 0 < - (g = c[(h + 28) >> 2]) >>> 0; - - ); - if (((pn[(a + 72) | 0] = 3), g)) - for ( - _e = 0; - (c[(a + 76) >> 2] = 0), - (g = c[(a + 76) >> 2]), - (c[(a + 8) >> 2] = c[(a + 72) >> 2]), - (c[(a + 12) >> 2] = g), - (c[(a + 68) >> 2] = _e), - (g = c[(a + 68) >> 2]), - (c[a >> 2] = c[(a + 64) >> 2]), - (c[(a + 4) >> 2] = g), - Qu(h, a), - (_e = (_e + 1) | 0) >>> 0 < - Es[(h + 28) >> 2]; - - ); - } - } - } - if ( - ((St = (a + 80) | 0), - !((cn = (cn + 1) | 0) >>> 0 < Es[(h + 8) >> 2])) - ) - break - } - if (((St = a = (St - 2048) | 0), !(!d | !h))) { - if ( - ((on = c[h >> 2]), - (et = c[(h + 24) >> 2]), - Qo( - (a + 1024) | 0, - (((c[(on + 4) >> 2] + (et << 10)) | 0) - 1024) | 0, - 1024, - ), - ($n = c[(h + 28) >> 2]) >>> 0 >= 2) - ) - for (Un = (et - 1) | 0, Dn = 1; ; ) { - for ( - _e = - (c[(on + 4) >> 2] + ((zr(Dn, et) + Un) << 10)) | - 0, - j = 0; - (wn = - c[ - (cn = - ((g = j << 3) + (hn = (a + 1024) | 0)) | 0) >> - 2 - ]), - (nt = c[(Yn = (g + _e) | 0) >> 2]), - (Yn = c[(cn + 4) >> 2] ^ c[(Yn + 4) >> 2]), - (c[cn >> 2] = wn ^ nt), - (c[(cn + 4) >> 2] = Yn), - (Yn = c[(cn = ((wn = 8 | g) + hn) | 0) >> 2]), - (nt = c[(wn = (_e + wn) | 0) >> 2]), - (wn = c[(cn + 4) >> 2] ^ c[(wn + 4) >> 2]), - (c[cn >> 2] = Yn ^ nt), - (c[(cn + 4) >> 2] = wn), - (Yn = c[(cn = ((wn = 16 | g) + hn) | 0) >> 2]), - (nt = c[(wn = (_e + wn) | 0) >> 2]), - (wn = c[(cn + 4) >> 2] ^ c[(wn + 4) >> 2]), - (c[cn >> 2] = Yn ^ nt), - (c[(cn + 4) >> 2] = wn), - (cn = - c[(g = ((cn = hn) + (hn = 24 | g)) | 0) >> 2]), - (wn = c[(hn = (_e + hn) | 0) >> 2]), - (hn = c[(g + 4) >> 2] ^ c[(hn + 4) >> 2]), - (c[g >> 2] = cn ^ wn), - (c[(g + 4) >> 2] = hn), - (0 | (j = (j + 4) | 0)) != 128; - - ); - if ((0 | $n) == (0 | (Dn = (Dn + 1) | 0))) break - } - ;(_e = Qo(a, (a + 1024) | 0, 1024)), - Yu(c[d >> 2], c[(d + 4) >> 2], _e, 1024), - Ur((_e + 1024) | 0, 1024), - Ur(_e, 1024), - dA(h, c[(d + 56) >> 2]) - } - ;(St = (a + 2048) | 0), (_e = 0) - } - } - return (St = (h + 48) | 0), _e - } - function Ru(d, a, h, g, _e) { - var on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0 - for ( - on = (St + -64) | 0, - hn = c[(d + 60) >> 2], - j = c[(d + 56) >> 2], - Ar = c[(d + 52) >> 2], - dr = c[(d + 48) >> 2], - cn = c[(d + 44) >> 2], - Dn = c[(d + 40) >> 2], - $n = c[(d + 36) >> 2], - wn = c[(d + 32) >> 2], - Un = c[(d + 28) >> 2], - Yn = c[(d + 24) >> 2], - et = c[(d + 20) >> 2], - nt = c[(d + 16) >> 2], - at = c[(d + 12) >> 2], - pt = c[(d + 8) >> 2], - gt = c[(d + 4) >> 2], - mt = c[d >> 2]; - ; - - ) { - if ((!_e & (g >>> 0 > 63)) | _e) yt = h - else { - if ( - ((c[(on + 56) >> 2] = 0), - (c[(on + 60) >> 2] = 0), - (c[(on + 48) >> 2] = 0), - (c[(on + 52) >> 2] = 0), - (c[(on + 40) >> 2] = 0), - (c[(on + 44) >> 2] = 0), - (c[(on + 32) >> 2] = 0), - (c[(on + 36) >> 2] = 0), - (c[(on + 24) >> 2] = 0), - (c[(on + 28) >> 2] = 0), - (c[(on + 16) >> 2] = 0), - (c[(on + 20) >> 2] = 0), - (c[(on + 8) >> 2] = 0), - (c[(on + 12) >> 2] = 0), - (c[on >> 2] = 0), - (c[(on + 4) >> 2] = 0), - (bt = 0), - g | _e) - ) - for ( - ; - (pn[(bt + on) | 0] = rn[(a + bt) | 0]), - (!_e & ((bt = (bt + 1) | 0) >>> 0 < g >>> 0)) | _e; - - ); - ;(a = yt = on), (Er = h) - } - for ( - Pt = 20, - _t = mt, - Jt = gt, - Ht = pt, - rr = at, - bt = nt, - h = et, - Rt = Yn, - At = Un, - Ct = wn, - Qt = $n, - Zt = Dn, - kt = hn, - Ut = j, - sr = Ar, - jt = dr, - wt = cn; - (Tt = bt), - (_t = Ft((bt = (_t + bt) | 0) ^ jt, 16)), - (Tt = jt = Ft(Tt ^ (Ct = (_t + Ct) | 0), 12)), - (jt = Ft((tr = (bt + jt) | 0) ^ _t, 8)), - (bt = Ft(Tt ^ (Ct = (jt + Ct) | 0), 7)), - (kt = Ft((_t = (At + rr) | 0) ^ kt, 16)), - (At = Ft((wt = (kt + wt) | 0) ^ At, 12)), - (rr = Ft((Ht = (Rt + Ht) | 0) ^ Ut, 16)), - (Rt = Ft((Zt = (rr + Zt) | 0) ^ Rt, 12)), - (Ut = ((xt = (_t + At) | 0) + bt) | 0), - (fr = Ft((Ht = (Rt + Ht) | 0) ^ rr, 8)), - (_t = Ft(Ut ^ fr, 16)), - (rr = Ft((Jt = (h + Jt) | 0) ^ sr, 16)), - (h = Ft((Qt = (rr + Qt) | 0) ^ h, 12)), - (Tt = bt), - (sr = Ft((Jt = (h + Jt) | 0) ^ rr, 8)), - (Tt = Ft( - Tt ^ (bt = ((hr = (sr + Qt) | 0) + _t) | 0), - 12, - )), - (Ut = Ft(_t ^ (rr = (Tt + Ut) | 0), 8)), - (bt = Ft((Qt = (Ut + bt) | 0) ^ Tt, 7)), - (Tt = Ct), - (Ct = Ht), - (_t = Ft(kt ^ xt, 8)), - (Ht = Ft((kt = (_t + wt) | 0) ^ At, 7)), - (sr = Ft((Ct = (Ct + Ht) | 0) ^ sr, 16)), - (wt = Ft((At = (Tt + sr) | 0) ^ Ht, 12)), - (sr = Ft(sr ^ (Ht = (wt + Ct) | 0), 8)), - (At = Ft((Ct = (At + sr) | 0) ^ wt, 7)), - (wt = kt), - (kt = Jt), - (Jt = Ft((Zt = (Zt + fr) | 0) ^ Rt, 7)), - (Rt = - (wt + (jt = Ft((kt = (kt + Jt) | 0) ^ jt, 16))) | 0), - (wt = kt), - (kt = Ft(Rt ^ Jt, 12)), - (jt = Ft(jt ^ (Jt = (wt + kt) | 0), 8)), - (Rt = Ft((wt = (Rt + jt) | 0) ^ kt, 7)), - (Tt = Zt), - (kt = _t), - (_t = Ft(h ^ hr, 7)), - (kt = Ft(kt ^ (Zt = (_t + tr) | 0), 16)), - (tr = Ft((h = (Tt + kt) | 0) ^ _t, 12)), - (kt = Ft(kt ^ (_t = (tr + Zt) | 0), 8)), - (h = Ft((Zt = (h + kt) | 0) ^ tr, 7)), - (Pt = (Pt - 2) | 0); - - ); - if ( - ((Pt = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (tr = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (xt = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (fr = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (hr = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (Tt = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (rt = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (tt = - rn[(a + 32) | 0] | - (rn[(a + 33) | 0] << 8) | - (rn[(a + 34) | 0] << 16) | - (rn[(a + 35) | 0] << 24)), - (ft = - rn[(a + 36) | 0] | - (rn[(a + 37) | 0] << 8) | - (rn[(a + 38) | 0] << 16) | - (rn[(a + 39) | 0] << 24)), - (Xt = - rn[(a + 40) | 0] | - (rn[(a + 41) | 0] << 8) | - (rn[(a + 42) | 0] << 16) | - (rn[(a + 43) | 0] << 24)), - (yr = - rn[(a + 44) | 0] | - (rn[(a + 45) | 0] << 8) | - (rn[(a + 46) | 0] << 16) | - (rn[(a + 47) | 0] << 24)), - (Qr = - rn[(a + 48) | 0] | - (rn[(a + 49) | 0] << 8) | - (rn[(a + 50) | 0] << 16) | - (rn[(a + 51) | 0] << 24)), - (Br = - rn[(a + 52) | 0] | - (rn[(a + 53) | 0] << 8) | - (rn[(a + 54) | 0] << 16) | - (rn[(a + 55) | 0] << 24)), - (wr = - rn[(a + 56) | 0] | - (rn[(a + 57) | 0] << 8) | - (rn[(a + 58) | 0] << 16) | - (rn[(a + 59) | 0] << 24)), - (Dr = - rn[(a + 60) | 0] | - (rn[(a + 61) | 0] << 8) | - (rn[(a + 62) | 0] << 16) | - (rn[(a + 63) | 0] << 24)), - (_t = - (_t + mt) ^ - (rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24))), - (pn[0 | yt] = _t), - (pn[(yt + 1) | 0] = _t >>> 8), - (pn[(yt + 2) | 0] = _t >>> 16), - (pn[(yt + 3) | 0] = _t >>> 24), - (_t = (kt + hn) ^ Dr), - (pn[(yt + 60) | 0] = _t), - (pn[(yt + 61) | 0] = _t >>> 8), - (pn[(yt + 62) | 0] = _t >>> 16), - (pn[(yt + 63) | 0] = _t >>> 24), - (_t = (Ut + j) ^ wr), - (pn[(yt + 56) | 0] = _t), - (pn[(yt + 57) | 0] = _t >>> 8), - (pn[(yt + 58) | 0] = _t >>> 16), - (pn[(yt + 59) | 0] = _t >>> 24), - (_t = (sr + Ar) ^ Br), - (pn[(yt + 52) | 0] = _t), - (pn[(yt + 53) | 0] = _t >>> 8), - (pn[(yt + 54) | 0] = _t >>> 16), - (pn[(yt + 55) | 0] = _t >>> 24), - (_t = (jt + dr) ^ Qr), - (pn[(yt + 48) | 0] = _t), - (pn[(yt + 49) | 0] = _t >>> 8), - (pn[(yt + 50) | 0] = _t >>> 16), - (pn[(yt + 51) | 0] = _t >>> 24), - (_t = (wt + cn) ^ yr), - (pn[(yt + 44) | 0] = _t), - (pn[(yt + 45) | 0] = _t >>> 8), - (pn[(yt + 46) | 0] = _t >>> 16), - (pn[(yt + 47) | 0] = _t >>> 24), - (_t = (Zt + Dn) ^ Xt), - (pn[(yt + 40) | 0] = _t), - (pn[(yt + 41) | 0] = _t >>> 8), - (pn[(yt + 42) | 0] = _t >>> 16), - (pn[(yt + 43) | 0] = _t >>> 24), - (_t = (Qt + $n) ^ ft), - (pn[(yt + 36) | 0] = _t), - (pn[(yt + 37) | 0] = _t >>> 8), - (pn[(yt + 38) | 0] = _t >>> 16), - (pn[(yt + 39) | 0] = _t >>> 24), - (_t = (Ct + wn) ^ tt), - (pn[(yt + 32) | 0] = _t), - (pn[(yt + 33) | 0] = _t >>> 8), - (pn[(yt + 34) | 0] = _t >>> 16), - (pn[(yt + 35) | 0] = _t >>> 24), - (At = (At + Un) ^ rt), - (pn[(yt + 28) | 0] = At), - (pn[(yt + 29) | 0] = At >>> 8), - (pn[(yt + 30) | 0] = At >>> 16), - (pn[(yt + 31) | 0] = At >>> 24), - (Rt = Tt ^ (Rt + Yn)), - (pn[(yt + 24) | 0] = Rt), - (pn[(yt + 25) | 0] = Rt >>> 8), - (pn[(yt + 26) | 0] = Rt >>> 16), - (pn[(yt + 27) | 0] = Rt >>> 24), - (h = hr ^ (h + et)), - (pn[(yt + 20) | 0] = h), - (pn[(yt + 21) | 0] = h >>> 8), - (pn[(yt + 22) | 0] = h >>> 16), - (pn[(yt + 23) | 0] = h >>> 24), - (h = fr ^ (bt + nt)), - (pn[(yt + 16) | 0] = h), - (pn[(yt + 17) | 0] = h >>> 8), - (pn[(yt + 18) | 0] = h >>> 16), - (pn[(yt + 19) | 0] = h >>> 24), - (h = xt ^ (rr + at)), - (pn[(yt + 12) | 0] = h), - (pn[(yt + 13) | 0] = h >>> 8), - (pn[(yt + 14) | 0] = h >>> 16), - (pn[(yt + 15) | 0] = h >>> 24), - (h = tr ^ (Ht + pt)), - (pn[(yt + 8) | 0] = h), - (pn[(yt + 9) | 0] = h >>> 8), - (pn[(yt + 10) | 0] = h >>> 16), - (pn[(yt + 11) | 0] = h >>> 24), - (h = Pt ^ (Jt + gt)), - (pn[(yt + 4) | 0] = h), - (pn[(yt + 5) | 0] = h >>> 8), - (pn[(yt + 6) | 0] = h >>> 16), - (pn[(yt + 7) | 0] = h >>> 24), - (Ar = (!(dr = (dr + 1) | 0) + Ar) | 0), - !_e & (g >>> 0 <= 64)) - ) { - if (!(!g | (!_e & (g >>> 0 > 63)) | ((0 | _e) != 0))) - for ( - bt = 0; - (pn[(bt + Er) | 0] = rn[(yt + bt) | 0]), - g >>> 0 > (bt = (bt + 1) | 0) >>> 0; - - ); - ;(c[(d + 52) >> 2] = Ar), (c[(d + 48) >> 2] = dr) - break - } - ;(a = (a - -64) | 0), - (h = (yt - -64) | 0), - (_e = (_e - 1) | 0), - (_e = - (g = (g + -64) | 0) >>> 0 < 4294967232 - ? (_e + 1) | 0 - : _e) - } - } - function Ts(d, a) { - a |= 0 - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - return ( - (St = h = (St - 704) | 0), - (g = - (80 + - (((_e = (c[(72 + (d |= 0)) >> 2] >>> 3) & 127) + d) | - 0)) | - 0), - _e >>> 0 <= 111 - ? Qo(g, 35104, (112 - _e) | 0) - : (Qo(g, 35104, (128 - _e) | 0), - ku(d, (_e = (d + 80) | 0), h, (h + 640) | 0), - qo(_e, 0, 112)), - (cn = ((on = c[(d + 64) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 68) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(d + 192) | 0] = g), - (pn[(d + 193) | 0] = g >>> 8), - (pn[(d + 194) | 0] = g >>> 16), - (pn[(d + 195) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(d + 196) | 0] = _e), - (pn[(d + 197) | 0] = _e >>> 8), - (pn[(d + 198) | 0] = _e >>> 16), - (pn[(d + 199) | 0] = _e >>> 24), - (cn = ((on = c[(d + 72) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 76) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(d + 200) | 0] = g), - (pn[(d + 201) | 0] = g >>> 8), - (pn[(d + 202) | 0] = g >>> 16), - (pn[(d + 203) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(d + 204) | 0] = _e), - (pn[(d + 205) | 0] = _e >>> 8), - (pn[(d + 206) | 0] = _e >>> 16), - (pn[(d + 207) | 0] = _e >>> 24), - ku(d, (d + 80) | 0, h, (h + 640) | 0), - (cn = ((on = c[d >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 4) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[0 | a] = g), - (pn[(a + 1) | 0] = g >>> 8), - (pn[(a + 2) | 0] = g >>> 16), - (pn[(a + 3) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(a + 4) | 0] = _e), - (pn[(a + 5) | 0] = _e >>> 8), - (pn[(a + 6) | 0] = _e >>> 16), - (pn[(a + 7) | 0] = _e >>> 24), - (cn = ((on = c[(d + 8) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 12) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(a + 8) | 0] = g), - (pn[(a + 9) | 0] = g >>> 8), - (pn[(a + 10) | 0] = g >>> 16), - (pn[(a + 11) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(a + 12) | 0] = _e), - (pn[(a + 13) | 0] = _e >>> 8), - (pn[(a + 14) | 0] = _e >>> 16), - (pn[(a + 15) | 0] = _e >>> 24), - (cn = ((on = c[(d + 16) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 20) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(a + 16) | 0] = g), - (pn[(a + 17) | 0] = g >>> 8), - (pn[(a + 18) | 0] = g >>> 16), - (pn[(a + 19) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(a + 20) | 0] = _e), - (pn[(a + 21) | 0] = _e >>> 8), - (pn[(a + 22) | 0] = _e >>> 16), - (pn[(a + 23) | 0] = _e >>> 24), - (cn = ((on = c[(d + 24) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 28) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(a + 24) | 0] = g), - (pn[(a + 25) | 0] = g >>> 8), - (pn[(a + 26) | 0] = g >>> 16), - (pn[(a + 27) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(a + 28) | 0] = _e), - (pn[(a + 29) | 0] = _e >>> 8), - (pn[(a + 30) | 0] = _e >>> 16), - (pn[(a + 31) | 0] = _e >>> 24), - (cn = ((on = c[(d + 32) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 36) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(a + 32) | 0] = g), - (pn[(a + 33) | 0] = g >>> 8), - (pn[(a + 34) | 0] = g >>> 16), - (pn[(a + 35) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(a + 36) | 0] = _e), - (pn[(a + 37) | 0] = _e >>> 8), - (pn[(a + 38) | 0] = _e >>> 16), - (pn[(a + 39) | 0] = _e >>> 24), - (cn = ((on = c[(d + 40) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 44) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(a + 40) | 0] = g), - (pn[(a + 41) | 0] = g >>> 8), - (pn[(a + 42) | 0] = g >>> 16), - (pn[(a + 43) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(a + 44) | 0] = _e), - (pn[(a + 45) | 0] = _e >>> 8), - (pn[(a + 46) | 0] = _e >>> 16), - (pn[(a + 47) | 0] = _e >>> 24), - (cn = ((on = c[(d + 48) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (g = - Dn | - (j << 8) | - (-16777216 & - (((255 & (g = c[(d + 52) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & g) << 8) | (on >>> 24))) | - ((g >>> 8) & 65280) | - (g >>> 24)), - (pn[(a + 48) | 0] = g), - (pn[(a + 49) | 0] = g >>> 8), - (pn[(a + 50) | 0] = g >>> 16), - (pn[(a + 51) | 0] = g >>> 24), - (_e = (g = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(a + 52) | 0] = _e), - (pn[(a + 53) | 0] = _e >>> 8), - (pn[(a + 54) | 0] = _e >>> 16), - (pn[(a + 55) | 0] = _e >>> 24), - (cn = ((on = c[(d + 56) >> 2]) << 24) | ((65280 & on) << 8)), - (_e = ((hn = 16711680 & on) >>> 8) | 0), - (g = a), - (Dn = hn << 24), - (hn = ((j = -16777216 & on) >>> 24) | 0), - (a = - Dn | - (j << 8) | - (-16777216 & - (((255 & (a = c[(d + 60) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & a) << 8) | (on >>> 24))) | - ((a >>> 8) & 65280) | - (a >>> 24)), - (pn[(g + 56) | 0] = a), - (pn[(g + 57) | 0] = a >>> 8), - (pn[(g + 58) | 0] = a >>> 16), - (pn[(g + 59) | 0] = a >>> 24), - (a = (a = _e | hn | cn) | (_e = 0) | _e | 0), - (pn[(g + 60) | 0] = a), - (pn[(g + 61) | 0] = a >>> 8), - (pn[(g + 62) | 0] = a >>> 16), - (pn[(g + 63) | 0] = a >>> 24), - Ur(h, 704), - Ur(d, 208), - (St = (h + 704) | 0), - 0 - ) - } - function _u(d, a) { - var h, - g, - _e, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0 - ;(St = h = (St - 848) | 0), - (j = c[(on = (a + 40) | 0) >> 2]), - (cn = c[(a + 80) >> 2]), - (hn = c[(a + 44) >> 2]), - (Dn = c[(a + 84) >> 2]), - ($n = c[(a + 48) >> 2]), - (Un = c[(a + 88) >> 2]), - (Yn = c[(a + 52) >> 2]), - (et = c[(a + 92) >> 2]), - (nt = c[(a + 56) >> 2]), - (at = c[(a + 96) >> 2]), - (pt = c[(a + 60) >> 2]), - (gt = c[(a + 100) >> 2]), - (yt = c[(mt = (a - -64) | 0) >> 2]), - (_t = c[(a + 104) >> 2]), - (bt = c[(a + 68) >> 2]), - (kt = c[(a + 108) >> 2]), - (Rt = c[(a + 72) >> 2]), - (At = c[(a + 112) >> 2]), - (Ct = c[(a + 76) >> 2]), - (wn = c[(a + 116) >> 2]), - (c[(h + 324) >> 2] = Ct + wn), - (c[(h + 320) >> 2] = Rt + At), - (c[(h + 316) >> 2] = bt + kt), - (c[(h + 312) >> 2] = yt + _t), - (c[(h + 308) >> 2] = pt + gt), - (c[(h + 304) >> 2] = nt + at), - (c[(h + 300) >> 2] = Yn + et), - (c[(h + 296) >> 2] = $n + Un), - (c[(h + 292) >> 2] = hn + Dn), - (c[(h + 288) >> 2] = j + cn), - (c[(h + 36) >> 2] = wn - Ct), - (c[(h + 32) >> 2] = At - Rt), - (c[(h + 28) >> 2] = kt - bt), - (c[(h + 24) >> 2] = _t - yt), - (c[(h + 20) >> 2] = gt - pt), - (c[(h + 16) >> 2] = at - nt), - (c[(h + 12) >> 2] = et - Yn), - (c[(h + 8) >> 2] = Un - $n), - (c[(h + 4) >> 2] = Dn - hn), - (c[h >> 2] = cn - j), - Gt((j = (h + 288) | 0), j, h), - Gt((hn = (h + 240) | 0), a, on), - Bt((cn = (h + 192) | 0), hn), - Gt(cn, j, cn), - (c[(h + 452) >> 2] = 0), - (c[(h + 456) >> 2] = 0), - (c[(h + 460) >> 2] = 0), - (c[(h + 464) >> 2] = 0), - (c[(h + 468) >> 2] = 0), - (c[(h + 436) >> 2] = 0), - (c[(h + 440) >> 2] = 0), - (c[(h + 444) >> 2] = 0), - (c[(h + 448) >> 2] = 0), - (c[(h + 432) >> 2] = 1), - Xu((Dn = (h + 576) | 0), (h + 432) | 0, cn), - Gt((cn = (h + 768) | 0), Dn, j), - Gt(($n = (h + 720) | 0), Dn, hn), - Gt((j = (h + 48) | 0), cn, $n), - Gt(j, j, (hn = (a + 120) | 0)), - Gt((h + 528) | 0, a, 1648), - Gt((h + 480) | 0, on, 1648), - Gt((h + 624) | 0, cn, 2960), - Gt((cn = (h + 336) | 0), hn, j), - cs((g = (h + 672) | 0), cn), - (cn = c[on >> 2]), - (hn = c[(a + 44) >> 2]), - (Dn = c[(a + 48) >> 2]), - ($n = c[(a + 52) >> 2]), - (Un = c[(a + 56) >> 2]), - (Yn = c[(a + 60) >> 2]), - (et = c[mt >> 2]), - (nt = c[(a + 68) >> 2]), - (at = c[(a + 72) >> 2]), - (pt = c[(a + 76) >> 2]), - (gt = c[(a + 4) >> 2]), - (yt = c[(a + 8) >> 2]), - (_t = c[(a + 12) >> 2]), - (bt = c[(a + 16) >> 2]), - (kt = c[(a + 20) >> 2]), - (Rt = c[(a + 24) >> 2]), - (At = c[(a + 28) >> 2]), - (mt = c[(a + 32) >> 2]), - (Ct = c[a >> 2]), - (wn = c[(h + 720) >> 2]), - (Tt = c[(h + 724) >> 2]), - (Jt = c[(h + 728) >> 2]), - (Ht = c[(h + 732) >> 2]), - (Zt = c[(h + 736) >> 2]), - (jt = c[(h + 740) >> 2]), - (rr = c[(h + 744) >> 2]), - (sr = c[(h + 748) >> 2]), - (Qt = c[(h + 752) >> 2]), - (_e = c[(h + 756) >> 2]), - (Ut = c[(h + 480) >> 2]), - (tr = c[(h + 484) >> 2]), - (dr = c[(h + 488) >> 2]), - (Ar = c[(h + 492) >> 2]), - (Pt = c[(h + 496) >> 2]), - (xt = c[(h + 500) >> 2]), - (fr = c[(h + 504) >> 2]), - (hr = c[(h + 508) >> 2]), - (Er = c[(h + 512) >> 2]), - (on = (0 - (1 & pn[(h + 672) | 0])) | 0), - (wt = c[(a + 36) >> 2]), - (c[(h + 180) >> 2] = (on & (wt ^ c[(h + 516) >> 2])) ^ wt), - (c[(h + 176) >> 2] = mt ^ (on & (mt ^ Er))), - (c[(h + 172) >> 2] = At ^ (on & (At ^ hr))), - (c[(h + 168) >> 2] = Rt ^ (on & (Rt ^ fr))), - (c[(h + 164) >> 2] = kt ^ (on & (kt ^ xt))), - (c[(h + 160) >> 2] = bt ^ (on & (bt ^ Pt))), - (c[(h + 156) >> 2] = _t ^ (on & (_t ^ Ar))), - (c[(h + 152) >> 2] = yt ^ (on & (yt ^ dr))), - (c[(h + 148) >> 2] = gt ^ (on & (gt ^ tr))), - (c[(h + 144) >> 2] = Ct ^ (on & (Ct ^ Ut))), - (gt = c[(h + 528) >> 2]), - (yt = c[(h + 532) >> 2]), - (_t = c[(h + 536) >> 2]), - (bt = c[(h + 540) >> 2]), - (kt = c[(h + 544) >> 2]), - (Rt = c[(h + 548) >> 2]), - (At = c[(h + 552) >> 2]), - (mt = c[(h + 556) >> 2]), - (Ct = c[(h + 560) >> 2]), - (Ut = c[(h + 564) >> 2]), - (tr = c[(h + 624) >> 2]), - (dr = c[(h + 628) >> 2]), - (Ar = c[(h + 632) >> 2]), - (Pt = c[(h + 636) >> 2]), - (xt = c[(h + 640) >> 2]), - (fr = c[(h + 644) >> 2]), - (hr = c[(h + 648) >> 2]), - (Er = c[(h + 652) >> 2]), - (wt = c[(h + 656) >> 2]), - (c[(h + 708) >> 2] = (on & (c[(h + 660) >> 2] ^ _e)) ^ _e), - (c[(h + 704) >> 2] = Qt ^ (on & (Qt ^ wt))), - (c[(h + 700) >> 2] = sr ^ (on & (sr ^ Er))), - (c[(h + 696) >> 2] = rr ^ (on & (rr ^ hr))), - (c[(h + 692) >> 2] = jt ^ (on & (jt ^ fr))), - (c[(h + 688) >> 2] = Zt ^ (on & (Zt ^ xt))), - (c[(h + 684) >> 2] = Ht ^ (on & (Ht ^ Pt))), - (c[(h + 680) >> 2] = Jt ^ (on & (Jt ^ Ar))), - (c[(h + 676) >> 2] = Tt ^ (on & (Tt ^ dr))), - (c[(h + 672) >> 2] = wn ^ (on & (wn ^ tr))), - Gt((wn = (h + 96) | 0), (h + 144) | 0, j), - cs((j = (h + 384) | 0), wn), - (wn = c[(a + 80) >> 2]), - (Tt = c[(a + 84) >> 2]), - (Jt = c[(a + 88) >> 2]), - (Ht = c[(a + 92) >> 2]), - (Zt = c[(a + 96) >> 2]), - (jt = c[(a + 100) >> 2]), - (rr = c[(a + 104) >> 2]), - (sr = c[(a + 108) >> 2]), - (Qt = c[(a + 112) >> 2]), - (wt = c[(a + 116) >> 2]), - (a = (0 - (1 & pn[(h + 384) | 0])) | 0), - (pt ^= on & (pt ^ Ut)), - (c[(h + 420) >> 2] = wt - ((a & ((0 - pt) ^ pt)) ^ pt)), - (at ^= on & (at ^ Ct)), - (c[(h + 416) >> 2] = Qt - ((a & ((0 - at) ^ at)) ^ at)), - (nt ^= on & (nt ^ mt)), - (c[(h + 412) >> 2] = sr - ((a & ((0 - nt) ^ nt)) ^ nt)), - (et ^= on & (et ^ At)), - (c[(h + 408) >> 2] = rr - ((a & ((0 - et) ^ et)) ^ et)), - (Yn ^= on & (Yn ^ Rt)), - (c[(h + 404) >> 2] = jt - ((a & ((0 - Yn) ^ Yn)) ^ Yn)), - (Un ^= on & (Un ^ kt)), - (c[(h + 400) >> 2] = Zt - ((a & ((0 - Un) ^ Un)) ^ Un)), - ($n ^= on & ($n ^ bt)), - (c[(h + 396) >> 2] = Ht - ((a & ((0 - $n) ^ $n)) ^ $n)), - (Dn ^= on & (Dn ^ _t)), - (c[(h + 392) >> 2] = Jt - ((a & ((0 - Dn) ^ Dn)) ^ Dn)), - (hn ^= on & (hn ^ yt)), - (c[(h + 388) >> 2] = Tt - ((a & ((0 - hn) ^ hn)) ^ hn)), - (hn = a), - (a = cn ^ (on & (cn ^ gt))), - (c[(h + 384) >> 2] = wn - ((hn & ((0 - a) ^ a)) ^ a)), - Gt(j, g, j), - cs((h + 816) | 0, j), - (a = (0 - (1 & pn[(h + 816) | 0])) | 0), - (on = c[(h + 384) >> 2]), - (c[(h + 384) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 388) >> 2]), - (c[(h + 388) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 392) >> 2]), - (c[(h + 392) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 396) >> 2]), - (c[(h + 396) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 400) >> 2]), - (c[(h + 400) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 404) >> 2]), - (c[(h + 404) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 408) >> 2]), - (c[(h + 408) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 412) >> 2]), - (c[(h + 412) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (on = c[(h + 416) >> 2]), - (c[(h + 416) >> 2] = (a & ((0 - on) ^ on)) ^ on), - (hn = a), - (a = c[(h + 420) >> 2]), - (c[(h + 420) >> 2] = (hn & ((0 - a) ^ a)) ^ a), - cs(d, j), - (St = (h + 848) | 0) - } - function p0(d, a, h, g, _e) { - ;(d |= 0), (a |= 0), (h |= 0), (g |= 0) - var on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0 - if ( - ((cn = - 1886610805 ^ - (g = - rn[0 | (_e |= 0)] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24))), - (hn = - 1936682341 ^ - (on = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24))), - (Dn = 1852142177 ^ g), - (j = 1819895653 ^ on), - (on = - 1852075885 ^ - (g = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24))), - (_e = - 1685025377 ^ - (wn = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24))), - ($n = 2037671283 ^ g), - (wn ^= 1952801890), - (0 | (g = (((a + h) | 0) - (et = 7 & h)) | 0)) != (0 | a)) - ) { - for ( - ; - (Dn = - (Dn + - ($n ^= mt = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24))) | - 0), - (j = - (j + - (Un = - wn ^ - (yt = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)))) | - 0), - (j = Dn >>> 0 < $n >>> 0 ? (j + 1) | 0 : j), - (Yn = (1 + (hn = (_e + hn) | 0)) | 0), - (wn = hn), - (wn = cn >>> 0 > (hn = (on + cn) | 0) >>> 0 ? Yn : wn), - (cn = (Dn + (_e = st(on, _e, 13) ^ hn)) | 0), - (on = (j + (Yn = On ^ wn)) | 0), - (Yn = st(_e, Yn, 17) ^ cn), - (gt = st( - Yn, - (pt = - (at = _e >>> 0 > cn >>> 0 ? (on + 1) | 0 : on) ^ On), - 13, - )), - (nt = On), - (_e = st($n, Un, 16)), - (on = j ^ On), - (j = _e ^ Dn), - (Dn = st(hn, wn, 32)), - (hn = (On + on) | 0), - (wn = - (1 + - (Dn = - (pt + - ($n = - (_e = (j + Dn) | 0) >>> 0 < Dn >>> 0 - ? (hn + 1) | 0 - : hn)) | - 0)) | - 0), - (hn = Dn), - (hn = (Dn = (_e + Yn) | 0) >>> 0 < _e >>> 0 ? wn : hn), - (pt = st((wn = Dn ^ gt), (Un = hn ^ nt), 17)), - (gt = On), - (on = st(j, on, 21)), - (j = $n ^ On), - ($n = _e ^ on), - (_e = st(cn, at, 32)), - (on = (On + j) | 0), - (_e = - ((at = - _e >>> 0 > (cn = ($n + _e) | 0) >>> 0 - ? (on + 1) | 0 - : on) + - Un) | - 0), - (on = (Un = (cn + wn) | 0) ^ pt), - (_e = - (Yn = Un >>> 0 < cn >>> 0 ? (_e + 1) | 0 : _e) ^ gt), - (j = st($n, j, 16)), - (wn = $n = at ^ On), - (j = st((cn ^= j), $n, 21)), - (at = On), - ($n = (cn = ((Dn = st(Dn, hn, 32)) + cn) | 0) ^ j), - (hn = (On + wn) | 0), - (wn = - (hn = cn >>> 0 < Dn >>> 0 ? (hn + 1) | 0 : hn) ^ at), - (Dn = st(Un, Yn, 32)), - (j = On), - (cn ^= mt), - (hn ^= yt), - (0 | g) != (0 | (a = (a + 8) | 0)); - - ); - a = g - } - switch (((h <<= 24), (g = 0), (et - 1) | 0)) { - case 6: - h |= rn[(a + 6) | 0] << 16 - case 5: - h |= rn[(a + 5) | 0] << 8 - case 4: - h |= rn[(a + 4) | 0] - case 3: - ;(Un = ((g = rn[(a + 3) | 0]) >>> 8) | 0), - (g <<= 24), - (h |= Un) - case 2: - ;(g |= (Un = rn[(a + 2) | 0]) << 16), - (h |= Yn = (Un >>> 16) | 0) - case 1: - ;(g |= (Un = rn[(a + 1) | 0]) << 8), - (h |= Yn = (Un >>> 24) | 0) - case 0: - g = rn[0 | a] | g - } - return ( - (wn = st((a = g ^ $n), ($n = h ^ wn), 16)), - (j = (j + $n) | 0), - (Dn = (a = (a + Dn) | 0) >>> 0 < Dn >>> 0 ? (j + 1) | 0 : j), - (wn = st((j = a ^ wn), ($n = Dn ^ On), 21)), - (Un = On), - (nt = (1 + (hn = (_e + hn) | 0)) | 0), - (Yn = hn), - (Yn = cn = cn >>> 0 > (hn = (on + cn) | 0) >>> 0 ? nt : Yn), - (et = st(hn, cn, 32)), - ($n = (On + $n) | 0), - (Un = st( - (j = wn ^ (cn = (j + et) | 0)), - (wn = Un ^ ($n = cn >>> 0 < et >>> 0 ? ($n + 1) | 0 : $n)), - 16, - )), - (et = On), - (_e = st(on, _e, 13) ^ hn), - (on = ((hn = Dn) + (Dn = On ^ Yn)) | 0), - (Yn = st( - (a = (a + _e) | 0), - (hn = a >>> 0 < _e >>> 0 ? (on + 1) | 0 : on), - 32, - )), - (wn = (On + wn) | 0), - (Yn = st( - (j = Un ^ (on = (j + Yn) | 0)), - (Un = (wn = on >>> 0 < Yn >>> 0 ? (wn + 1) | 0 : wn) ^ et), - 21, - )), - (et = On), - (a = (cn + (_e = Dn = st(_e, Dn, 17) ^ a)) | 0), - (cn = ((hn ^= On) + $n) | 0), - ($n = _e = a >>> 0 < _e >>> 0 ? (cn + 1) | 0 : cn), - (nt = Yn), - (cn = (j + (Yn = st(a, _e, 32))) | 0), - (j = (On + Un) | 0), - (Yn = st( - (_e = nt ^ cn), - (Un = (j = cn >>> 0 < Yn >>> 0 ? (j + 1) | 0 : j) ^ et), - 16, - )), - (et = On), - (nt = on), - (hn = st(Dn, hn, 13) ^ a), - (Dn = (($n ^= On) + wn) | 0), - (wn = on = - (a = (nt + (on = hn)) | 0) >>> 0 < on >>> 0 - ? (Dn + 1) | 0 - : Dn), - (on = st(a, on, 32)), - (Dn = (Un + On) | 0), - (Un = - (nt = _e) >>> 0 > (_e = (_e + (255 ^ on)) | 0) >>> 0 - ? (Dn + 1) | 0 - : Dn), - (Yn = st((Dn = _e ^ Yn), (on = et ^ Un), 21)), - (et = On), - (hn = st(hn, $n, 17) ^ a), - (h = (($n = wn ^ On) + (h ^ j)) | 0), - (h = st( - (a = (hn + (g ^= cn)) | 0), - (j = h = a >>> 0 < g >>> 0 ? (h + 1) | 0 : h), - 32, - )), - (g = (on + On) | 0), - (Dn = st( - (cn = (h = (h + Dn) | 0) ^ Yn), - (g = (on = h >>> 0 < Dn >>> 0 ? (g + 1) | 0 : g) ^ et), - 16, - )), - (wn = On), - (hn = st(hn, $n, 13) ^ a), - ($n = (Un + (j ^= On)) | 0), - ($n = _e = - (a = (_e + hn) | 0) >>> 0 < _e >>> 0 ? ($n + 1) | 0 : $n), - (_e = st(a, _e, 32)), - (Yn = wn), - (nt = (1 + (g = (g + On) | 0)) | 0), - (wn = g), - (wn = (g = (_e + cn) | 0) >>> 0 < cn >>> 0 ? nt : wn), - (Dn = st((cn = g ^ Dn), (_e = Yn ^ wn), 21)), - (Un = On), - (hn = st(hn, j, 17)), - (nt = (1 + (on = (on + (j = $n ^ On)) | 0)) | 0), - (Yn = on), - (hn = a = - ($n = h) >>> 0 > (h = (h + (on = a ^ hn)) | 0) >>> 0 - ? nt - : Yn), - (a = st(h, a, 32)), - (_e = (_e + On) | 0), - ($n = - (a = (a + cn) | 0) >>> 0 < cn >>> 0 ? (_e + 1) | 0 : _e), - (Dn = st((cn = a ^ Dn), (_e = $n ^ Un), 16)), - (Un = On), - (on = st(on, j, 13)), - (j = (wn + (hn ^= On)) | 0), - (wn = g), - (h = st( - (g = (g + (on ^= h)) | 0), - (j = h = wn >>> 0 > g >>> 0 ? (j + 1) | 0 : j), - 32, - )), - (_e = (_e + On) | 0), - (wn = - (h = (h + cn) | 0) >>> 0 < cn >>> 0 ? (_e + 1) | 0 : _e), - (Dn = st((cn = h ^ Dn), (_e = wn ^ Un), 21)), - (Un = On), - (on = st(on, hn, 17)), - (Yn = (1 + (j = ($n + (hn = j ^ On)) | 0)) | 0), - ($n = j), - (a = st( - (g = (a + (j = g ^ on)) | 0), - (on = g >>> 0 < a >>> 0 ? Yn : $n), - 32, - )), - (_e = (_e + On) | 0), - ($n = - (a = (a + cn) | 0) >>> 0 < cn >>> 0 ? (_e + 1) | 0 : _e), - (Dn = st((cn = a ^ Dn), (_e = $n ^ Un), 16)), - (Un = On), - (hn = st(j, hn, 13)), - (j = (wn + (on ^= On)) | 0), - (h = st( - (g = (h + (hn ^= g)) | 0), - (j = h = g >>> 0 < h >>> 0 ? (j + 1) | 0 : j), - 32, - )), - (_e = (_e + On) | 0), - (cn = st( - (h = (h + cn) | 0) ^ Dn, - (_e = h >>> 0 < cn >>> 0 ? (_e + 1) | 0 : _e) ^ Un, - 21, - )), - (Dn = On), - (g = st(hn, on, 17) ^ g), - (hn = st(g, (on = j ^ On), 13)), - (on = (on + $n) | 0), - (a = - On ^ - (a >>> 0 > (g = (a + g) | 0) >>> 0 ? (on + 1) | 0 : on)), - (cn = st((g ^= hn), a, 17) ^ cn), - (on = On ^ Dn), - (hn = (1 + (a = (a + _e) | 0)) | 0), - (_e = a), - (a = - st( - (a = (h + g) | 0), - (h = h >>> 0 > a >>> 0 ? hn : _e), - 32, - ) ^ - cn ^ - a), - (pn[0 | d] = a), - (pn[(d + 1) | 0] = a >>> 8), - (pn[(d + 2) | 0] = a >>> 16), - (pn[(d + 3) | 0] = a >>> 24), - (a = h ^ On ^ on), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - 0 - ) - } - function h0(d, a) { - var h, - g, - _e, - on, - hn, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0 - ;(St = h = (St - 624) | 0), - Bt((j = (h + 480) | 0), a), - Gt(j, 1648, j), - (Dn = c[(h + 516) >> 2]), - (c[(h + 276) >> 2] = Dn), - ($n = c[(h + 512) >> 2]), - (c[(h + 272) >> 2] = $n), - (wn = c[(h + 508) >> 2]), - (c[(h + 268) >> 2] = wn), - (Un = c[(h + 504) >> 2]), - (c[(h + 264) >> 2] = Un), - (Yn = c[(h + 500) >> 2]), - (c[(h + 260) >> 2] = Yn), - (et = c[(h + 496) >> 2]), - (c[(h + 256) >> 2] = et), - (nt = c[(h + 492) >> 2]), - (c[(h + 252) >> 2] = nt), - (at = c[(h + 488) >> 2]), - (c[(h + 248) >> 2] = at), - (pt = c[(h + 484) >> 2]), - (c[(h + 244) >> 2] = pt), - (mt = c[(h + 480) >> 2]), - (c[(h + 240) >> 2] = mt + 1), - Gt((cn = (h + 240) | 0), cn, 33984), - (c[(h + 468) >> 2] = Dn - 12055116), - (c[(h + 464) >> 2] = $n - 18696448), - (c[(h + 460) >> 2] = wn - 3247719), - (c[(h + 456) >> 2] = Un - 6275908), - (c[(h + 452) >> 2] = Yn - 8787816), - (c[(h + 448) >> 2] = et + 114729), - (c[(h + 444) >> 2] = nt + 6949391), - (c[(h + 440) >> 2] = at - 15372611), - (c[(h + 436) >> 2] = pt + 13857413), - (c[(h + 432) >> 2] = mt - 10913610), - Gt((gt = (h + 192) | 0), j, 1600), - (c[(h + 228) >> 2] = 0 - c[(h + 228) >> 2]), - (c[(h + 224) >> 2] = 0 - c[(h + 224) >> 2]), - (c[(h + 220) >> 2] = 0 - c[(h + 220) >> 2]), - (c[(h + 216) >> 2] = 0 - c[(h + 216) >> 2]), - (c[(h + 212) >> 2] = 0 - c[(h + 212) >> 2]), - (c[(h + 208) >> 2] = 0 - c[(h + 208) >> 2]), - (c[(h + 204) >> 2] = 0 - c[(h + 204) >> 2]), - (c[(h + 200) >> 2] = 0 - c[(h + 200) >> 2]), - (c[(h + 196) >> 2] = 0 - c[(h + 196) >> 2]), - (c[(h + 192) >> 2] = -1 ^ c[(h + 192) >> 2]), - Gt(gt, gt, (h + 432) | 0), - (j = Xu((g = (h + 384) | 0), cn, gt)), - Gt((cn = (h + 336) | 0), g, a), - cs((_e = (h + 576) | 0), cn), - (hn = rn[(h + 576) | 0]), - (Jt = c[(h + 420) >> 2]), - (cn = c[(h + 372) >> 2]), - (Ht = c[(h + 416) >> 2]), - (yt = c[(h + 368) >> 2]), - (Zt = c[(h + 412) >> 2]), - (_t = c[(h + 364) >> 2]), - (jt = c[(h + 408) >> 2]), - (bt = c[(h + 360) >> 2]), - (rr = c[(h + 404) >> 2]), - (kt = c[(h + 356) >> 2]), - (sr = c[(h + 400) >> 2]), - (Rt = c[(h + 352) >> 2]), - (Qt = c[(h + 396) >> 2]), - (At = c[(h + 348) >> 2]), - (Ut = c[(h + 392) >> 2]), - (Ct = c[(h + 344) >> 2]), - (tr = c[(h + 388) >> 2]), - (wt = c[(h + 340) >> 2]), - (on = c[(h + 384) >> 2]), - (Tt = c[(h + 336) >> 2]), - (a = (j - 1) | 0), - (c[(h + 612) >> 2] = a & Dn), - (c[(h + 608) >> 2] = a & $n), - (c[(h + 604) >> 2] = a & wn), - (c[(h + 600) >> 2] = a & Un), - (c[(h + 596) >> 2] = a & Yn), - (c[(h + 592) >> 2] = a & et), - (c[(h + 588) >> 2] = a & nt), - (c[(h + 584) >> 2] = a & at), - (c[(h + 580) >> 2] = a & pt), - (c[(h + 576) >> 2] = mt | (0 - j)), - (Tt = - (a & - ((0 - - (Tt ^ ((j = (0 - (1 & hn)) | 0) & (Tt ^ (0 - Tt))))) ^ - on)) ^ - on), - (c[(h + 384) >> 2] = Tt), - (wt = tr ^ (a & (tr ^ (0 - (wt ^ (j & (wt ^ (0 - wt)))))))), - (c[(h + 388) >> 2] = wt), - (Ct = Ut ^ (a & (Ut ^ (0 - (Ct ^ (j & (Ct ^ (0 - Ct)))))))), - (c[(h + 392) >> 2] = Ct), - (At = Qt ^ (a & (Qt ^ (0 - (At ^ (j & (At ^ (0 - At)))))))), - (c[(h + 396) >> 2] = At), - (Rt = sr ^ (a & (sr ^ (0 - (Rt ^ (j & (Rt ^ (0 - Rt)))))))), - (c[(h + 400) >> 2] = Rt), - (kt = rr ^ (a & (rr ^ (0 - (kt ^ (j & (kt ^ (0 - kt)))))))), - (c[(h + 404) >> 2] = kt), - (bt = jt ^ (a & (jt ^ (0 - (bt ^ (j & (bt ^ (0 - bt)))))))), - (c[(h + 408) >> 2] = bt), - (_t = Zt ^ (a & (Zt ^ (0 - (_t ^ (j & (_t ^ (0 - _t)))))))), - (c[(h + 412) >> 2] = _t), - (yt = Ht ^ (a & (Ht ^ (0 - (yt ^ (j & (yt ^ (0 - yt)))))))), - (c[(h + 416) >> 2] = yt), - (j = Jt ^ (a & (Jt ^ (0 - (cn ^ (j & (cn ^ (0 - cn)))))))), - (c[(h + 420) >> 2] = j), - (c[(h + 564) >> 2] = Dn), - (c[(h + 560) >> 2] = $n), - (c[(h + 556) >> 2] = wn), - (c[(h + 552) >> 2] = Un), - (c[(h + 548) >> 2] = Yn), - (c[(h + 544) >> 2] = et), - (c[(h + 540) >> 2] = nt), - (c[(h + 536) >> 2] = at), - (c[(h + 532) >> 2] = pt), - (c[(h + 528) >> 2] = mt - 1), - Gt((a = (h + 528) | 0), a, _e), - Gt(a, a, 34032), - (Dn = c[(h + 192) >> 2]), - ($n = c[(h + 528) >> 2]), - (wn = c[(h + 196) >> 2]), - (Un = c[(h + 532) >> 2]), - (Yn = c[(h + 200) >> 2]), - (et = c[(h + 536) >> 2]), - (nt = c[(h + 204) >> 2]), - (at = c[(h + 540) >> 2]), - (pt = c[(h + 208) >> 2]), - (mt = c[(h + 544) >> 2]), - (cn = c[(h + 212) >> 2]), - (Jt = c[(h + 548) >> 2]), - (Ht = c[(h + 216) >> 2]), - (Zt = c[(h + 552) >> 2]), - (jt = c[(h + 220) >> 2]), - (rr = c[(h + 556) >> 2]), - (sr = c[(h + 224) >> 2]), - (Qt = c[(h + 560) >> 2]), - (Ut = c[(h + 228) >> 2]), - (tr = c[(h + 564) >> 2]), - (c[(h + 180) >> 2] = j << 1), - (c[(h + 176) >> 2] = yt << 1), - (c[(h + 172) >> 2] = _t << 1), - (c[(h + 168) >> 2] = bt << 1), - (c[(h + 164) >> 2] = kt << 1), - (c[(h + 160) >> 2] = Rt << 1), - (c[(h + 156) >> 2] = At << 1), - (c[(h + 152) >> 2] = Ct << 1), - (c[(h + 148) >> 2] = wt << 1), - (c[(h + 144) >> 2] = Tt << 1), - (c[(h + 564) >> 2] = tr - Ut), - (c[(h + 560) >> 2] = Qt - sr), - (c[(h + 556) >> 2] = rr - jt), - (c[(h + 552) >> 2] = Zt - Ht), - (c[(h + 548) >> 2] = Jt - cn), - (c[(h + 544) >> 2] = mt - pt), - (c[(h + 540) >> 2] = at - nt), - (c[(h + 536) >> 2] = et - Yn), - (c[(h + 532) >> 2] = Un - wn), - (c[(h + 528) >> 2] = $n - Dn), - Gt((j = (h + 144) | 0), j, gt), - Gt((gt = (h + 96) | 0), a, 34080), - Bt((h + 288) | 0, g), - (a = c[(h + 324) >> 2]), - (c[(h + 84) >> 2] = 0 - a), - (Dn = c[(h + 320) >> 2]), - (c[(h + 80) >> 2] = 0 - Dn), - ($n = c[(h + 316) >> 2]), - (c[(h + 76) >> 2] = 0 - $n), - (wn = c[(h + 312) >> 2]), - (c[(h + 72) >> 2] = 0 - wn), - (Un = c[(h + 308) >> 2]), - (c[(h + 68) >> 2] = 0 - Un), - (Yn = c[(h + 304) >> 2]), - (c[(h + 64) >> 2] = 0 - Yn), - (et = c[(h + 300) >> 2]), - (c[(h + 60) >> 2] = 0 - et), - (nt = c[(h + 296) >> 2]), - (c[(h + 56) >> 2] = 0 - nt), - (at = c[(h + 292) >> 2]), - (c[(h + 52) >> 2] = 0 - at), - (pt = c[(h + 288) >> 2]), - (c[(h + 48) >> 2] = 1 - pt), - (c[(h + 36) >> 2] = a), - (c[(h + 32) >> 2] = Dn), - (c[(h + 28) >> 2] = $n), - (c[(h + 24) >> 2] = wn), - (c[(h + 20) >> 2] = Un), - (c[(h + 16) >> 2] = Yn), - (c[(h + 12) >> 2] = et), - (c[(h + 8) >> 2] = nt), - (c[(h + 4) >> 2] = at), - (c[h >> 2] = pt + 1), - Gt(d, j, h), - Gt((d + 40) | 0, (a = (h + 48) | 0), gt), - Gt((d + 80) | 0, gt, h), - Gt((d + 120) | 0, j, a), - (St = (h + 624) | 0) - } - function Gu(d) { - var a, - h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0 - for ( - St = a = (St - 2048) | 0, - ds((wn = (a + 640) | 0), d), - g = c[(d + 8) >> 2], - _e = c[(d + 12) >> 2], - on = c[(d + 16) >> 2], - hn = c[(d + 20) >> 2], - Dn = c[(d + 24) >> 2], - $n = c[(d + 28) >> 2], - j = c[d >> 2], - cn = c[(d + 4) >> 2], - Un = c[(d + 36) >> 2], - c[(a + 352) >> 2] = c[(d + 32) >> 2], - c[(a + 356) >> 2] = Un, - c[(a + 344) >> 2] = Dn, - c[(a + 348) >> 2] = $n, - c[(a + 336) >> 2] = on, - c[(a + 340) >> 2] = hn, - c[(a + 328) >> 2] = g, - c[(a + 332) >> 2] = _e, - c[(a + 320) >> 2] = j, - c[(a + 324) >> 2] = cn, - g = c[(d + 40) >> 2], - _e = c[(d + 44) >> 2], - on = c[(d + 48) >> 2], - hn = c[(d + 52) >> 2], - Dn = c[(d + 56) >> 2], - $n = c[(d + 60) >> 2], - cn = c[(j = (d - -64) | 0) >> 2], - j = c[(j + 4) >> 2], - Un = c[(d + 76) >> 2], - c[(a + 392) >> 2] = c[(d + 72) >> 2], - c[(a + 396) >> 2] = Un, - c[(a + 384) >> 2] = cn, - c[(a + 388) >> 2] = j, - c[(a + 376) >> 2] = Dn, - c[(a + 380) >> 2] = $n, - c[(a + 368) >> 2] = on, - c[(a + 372) >> 2] = hn, - c[(a + 360) >> 2] = g, - c[(a + 364) >> 2] = _e, - g = c[(d + 80) >> 2], - _e = c[(d + 84) >> 2], - on = c[(d + 88) >> 2], - hn = c[(d + 92) >> 2], - Dn = c[(d + 96) >> 2], - $n = c[(d + 100) >> 2], - j = c[(d + 104) >> 2], - cn = c[(d + 108) >> 2], - Un = c[(d + 116) >> 2], - c[(a + 432) >> 2] = c[(d + 112) >> 2], - c[(a + 436) >> 2] = Un, - c[(a + 424) >> 2] = j, - c[(a + 428) >> 2] = cn, - c[(a + 416) >> 2] = Dn, - c[(a + 420) >> 2] = $n, - c[(a + 408) >> 2] = on, - c[(a + 412) >> 2] = hn, - c[(a + 400) >> 2] = g, - c[(a + 404) >> 2] = _e, - ot((d = (a + 480) | 0), (g = (a + 320) | 0)), - Gt((j = (a + 160) | 0), d, (_e = (a + 600) | 0)), - Gt( - (a + 200) | 0, - (on = (a + 520) | 0), - (hn = (a + 560) | 0), - ), - Gt((a + 240) | 0, hn, _e), - Gt((a + 280) | 0, d, on), - hs(d, j, wn), - Gt(g, d, _e), - Gt((wn = (a + 360) | 0), on, hn), - Gt((Dn = (a + 400) | 0), hn, _e), - Gt(($n = (a + 440) | 0), d, on), - ds((cn = (a + 800) | 0), g), - hs(d, j, cn), - Gt(g, d, _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, d, on), - ds((cn = (a + 960) | 0), g), - hs(d, j, cn), - Gt(g, d, _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, d, on), - ds((cn = (a + 1120) | 0), g), - hs(d, j, cn), - Gt(g, d, _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, d, on), - ds((cn = (a + 1280) | 0), g), - hs(d, j, cn), - Gt(g, d, _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, d, on), - ds((cn = (a + 1440) | 0), g), - hs(d, j, cn), - Gt(g, d, _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, d, on), - ds((cn = (a + 1600) | 0), g), - hs(d, j, cn), - Gt(g, d, _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, d, on), - ds((a + 1760) | 0, g), - c[(a + 32) >> 2] = 0, - c[(a + 36) >> 2] = 0, - c[(a + 24) >> 2] = 0, - c[(a + 28) >> 2] = 0, - c[(a + 16) >> 2] = 0, - c[(a + 20) >> 2] = 0, - c[(a + 8) >> 2] = 0, - c[(a + 12) >> 2] = 0, - c[(a + 44) >> 2] = 0, - c[(a + 48) >> 2] = 0, - c[(a + 52) >> 2] = 0, - c[(a + 56) >> 2] = 0, - c[(a + 60) >> 2] = 0, - c[(a + 64) >> 2] = 0, - c[(a + 68) >> 2] = 0, - c[(a + 72) >> 2] = 0, - c[(a + 76) >> 2] = 0, - c[(a + 80) >> 2] = 1, - c[a >> 2] = 0, - c[(a + 4) >> 2] = 0, - c[(a + 40) >> 2] = 1, - qo((a + 84) | 0, 0, 76), - cn = (a + 120) | 0, - Un = (a + 80) | 0, - h = (a + 40) | 0, - d = 252; - (g = c[(a + 36) >> 2]), - (c[(a + 1960) >> 2] = c[(a + 32) >> 2]), - (c[(a + 1964) >> 2] = g), - (g = c[(a + 28) >> 2]), - (c[(a + 1952) >> 2] = c[(a + 24) >> 2]), - (c[(a + 1956) >> 2] = g), - (g = c[(a + 20) >> 2]), - (c[(a + 1944) >> 2] = c[(a + 16) >> 2]), - (c[(a + 1948) >> 2] = g), - (g = c[(a + 12) >> 2]), - (c[(a + 1936) >> 2] = c[(a + 8) >> 2]), - (c[(a + 1940) >> 2] = g), - (g = c[(a + 4) >> 2]), - (c[(a + 1928) >> 2] = c[a >> 2]), - (c[(a + 1932) >> 2] = g), - (g = c[(a + 76) >> 2]), - (c[(a + 2e3) >> 2] = c[(a + 72) >> 2]), - (c[(a + 2004) >> 2] = g), - (g = c[(a + 68) >> 2]), - (c[(a + 1992) >> 2] = c[(a + 64) >> 2]), - (c[(a + 1996) >> 2] = g), - (g = c[(a + 60) >> 2]), - (c[(a + 1984) >> 2] = c[(a + 56) >> 2]), - (c[(a + 1988) >> 2] = g), - (g = c[(a + 52) >> 2]), - (c[(a + 1976) >> 2] = c[(a + 48) >> 2]), - (c[(a + 1980) >> 2] = g), - (g = c[(a + 44) >> 2]), - (c[(a + 1968) >> 2] = c[(a + 40) >> 2]), - (c[(a + 1972) >> 2] = g), - (g = c[(a + 84) >> 2]), - (c[(a + 2008) >> 2] = c[(a + 80) >> 2]), - (c[(a + 2012) >> 2] = g), - (g = c[(a + 92) >> 2]), - (c[(a + 2016) >> 2] = c[(a + 88) >> 2]), - (c[(a + 2020) >> 2] = g), - (g = c[(a + 100) >> 2]), - (c[(a + 2024) >> 2] = c[(a + 96) >> 2]), - (c[(a + 2028) >> 2] = g), - (g = c[(a + 108) >> 2]), - (c[(a + 2032) >> 2] = c[(a + 104) >> 2]), - (c[(a + 2036) >> 2] = g), - (g = c[(a + 116) >> 2]), - (c[(a + 2040) >> 2] = c[(a + 112) >> 2]), - (c[(a + 2044) >> 2] = g), - (g = d), - (d = pn[(d + 33728) | 0]), - ot((a + 480) | 0, (a + 1928) | 0), - (0 | d) > 0 - ? (Gt((Yn = (a + 320) | 0), (j = (a + 480) | 0), _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, j, on), - hs( - j, - Yn, - (((a + 640) | 0) + zr(((254 & d) >>> 1) | 0, 160)) | - 0, - )) - : (0 | d) >= 0 || - (Gt((Yn = (a + 320) | 0), (j = (a + 480) | 0), _e), - Gt(wn, on, hn), - Gt(Dn, hn, _e), - Gt($n, j, on), - Nu( - j, - Yn, - (((a + 640) | 0) + - zr((((0 - d) & 254) >>> 1) | 0, 160)) | - 0, - )), - Gt(a, (d = (a + 480) | 0), _e), - Gt(h, on, hn), - Gt(Un, hn, _e), - Gt(cn, d, on), - (d = (g - 1) | 0), - g; - - ); - return ( - cs((d = (a + 640) | 0), a), - (d = Qs(d, 32)), - (St = (a + 2048) | 0), - d - ) - } - function qu(d, a, h) { - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - St = g = (St + -64) | 0 - e: { - if (((h - 65) & 255) >>> 0 > 191) { - if ( - ((_e = -1), - !( - rn[(d + 80) | 0] | - (rn[(d + 81) | 0] << 8) | - (rn[(d + 82) | 0] << 16) | - (rn[(d + 83) | 0] << 24) | - rn[(d + 84) | 0] | - (rn[(d + 85) | 0] << 8) | - (rn[(d + 86) | 0] << 16) | - (rn[(d + 87) | 0] << 24) - )) - ) { - if ( - (j = - rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24)) >>> - 0 >= - 129 - ) { - if ( - ((hn = - rn[0 | (_e = (d - -64) | 0)] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (cn = on = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (on = - (j = (hn + 128) | 0) >>> 0 < 128 - ? (on + 1) | 0 - : on), - (pn[0 | _e] = j), - (pn[(_e + 1) | 0] = j >>> 8), - (pn[(_e + 2) | 0] = j >>> 16), - (pn[(_e + 3) | 0] = j >>> 24), - (pn[(_e + 4) | 0] = on), - (pn[(_e + 5) | 0] = on >>> 8), - (pn[(_e + 6) | 0] = on >>> 16), - (pn[(_e + 7) | 0] = on >>> 24), - (on = - rn[(d + 76) | 0] | - (rn[(d + 77) | 0] << 8) | - (rn[(d + 78) | 0] << 16) | - (rn[(d + 79) | 0] << 24)), - (on = - (_e = - ((0 | cn) == -1) & (hn >>> 0 > 4294967167)) >>> - 0 > - (hn = - (_e + - (rn[(d + 72) | 0] | - (rn[(d + 73) | 0] << 8) | - (rn[(d + 74) | 0] << 16) | - (rn[(d + 75) | 0] << 24))) | - 0) >>> - 0 - ? (on + 1) | 0 - : on), - (pn[(d + 72) | 0] = hn), - (pn[(d + 73) | 0] = hn >>> 8), - (pn[(d + 74) | 0] = hn >>> 16), - (pn[(d + 75) | 0] = hn >>> 24), - (pn[(d + 76) | 0] = on), - (pn[(d + 77) | 0] = on >>> 8), - (pn[(d + 78) | 0] = on >>> 16), - (pn[(d + 79) | 0] = on >>> 24), - mu(d, (on = (d + 96) | 0)), - (_e = - ((rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24)) - - 128) | - 0), - (pn[(d + 352) | 0] = _e), - (pn[(d + 353) | 0] = _e >>> 8), - (pn[(d + 354) | 0] = _e >>> 16), - (pn[(d + 355) | 0] = _e >>> 24), - _e >>> 0 >= 129) - ) - break e - Qo(on, (d + 224) | 0, _e), - (j = - rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24)) - } - ;(on = - rn[0 | (_e = (d - -64) | 0)] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (hn = Dn = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (hn = - (cn = (on + j) | 0) >>> 0 < j >>> 0 - ? (hn + 1) | 0 - : hn), - (pn[0 | _e] = cn), - (pn[(_e + 1) | 0] = cn >>> 8), - (pn[(_e + 2) | 0] = cn >>> 16), - (pn[(_e + 3) | 0] = cn >>> 24), - (pn[(_e + 4) | 0] = hn), - (pn[(_e + 5) | 0] = hn >>> 8), - (pn[(_e + 6) | 0] = hn >>> 16), - (pn[(_e + 7) | 0] = hn >>> 24), - (_e = - (((0 | hn) == (0 | Dn)) & (on >>> 0 > cn >>> 0)) | - (hn >>> 0 < Dn >>> 0)), - (on = - rn[(d + 76) | 0] | - (rn[(d + 77) | 0] << 8) | - (rn[(d + 78) | 0] << 16) | - (rn[(d + 79) | 0] << 24)), - (on = - (hn = - (_e + - (rn[(d + 72) | 0] | - (rn[(d + 73) | 0] << 8) | - (rn[(d + 74) | 0] << 16) | - (rn[(d + 75) | 0] << 24))) | - 0) >>> - 0 < - _e >>> 0 - ? (on + 1) | 0 - : on), - (pn[(d + 72) | 0] = hn), - (pn[(d + 73) | 0] = hn >>> 8), - (pn[(d + 74) | 0] = hn >>> 16), - (pn[(d + 75) | 0] = hn >>> 24), - (pn[(d + 76) | 0] = on), - (pn[(d + 77) | 0] = on >>> 8), - (pn[(d + 78) | 0] = on >>> 16), - (pn[(d + 79) | 0] = on >>> 24), - rn[(d + 356) | 0] && - ((pn[(d + 88) | 0] = 255), - (pn[(d + 89) | 0] = 255), - (pn[(d + 90) | 0] = 255), - (pn[(d + 91) | 0] = 255), - (pn[(d + 92) | 0] = 255), - (pn[(d + 93) | 0] = 255), - (pn[(d + 94) | 0] = 255), - (pn[(d + 95) | 0] = 255)), - (pn[(d + 80) | 0] = 255), - (pn[(d + 81) | 0] = 255), - (pn[(d + 82) | 0] = 255), - (pn[(d + 83) | 0] = 255), - (pn[(d + 84) | 0] = 255), - (pn[(d + 85) | 0] = 255), - (pn[(d + 86) | 0] = 255), - (pn[(d + 87) | 0] = 255), - qo(((_e = (d + 96) | 0) + j) | 0, 0, (256 - j) | 0), - mu(d, _e), - (on = - rn[(d + 4) | 0] | - (rn[(d + 5) | 0] << 8) | - (rn[(d + 6) | 0] << 16) | - (rn[(d + 7) | 0] << 24)), - (c[g >> 2] = - rn[0 | d] | - (rn[(d + 1) | 0] << 8) | - (rn[(d + 2) | 0] << 16) | - (rn[(d + 3) | 0] << 24)), - (c[(g + 4) >> 2] = on), - (on = - rn[(d + 12) | 0] | - (rn[(d + 13) | 0] << 8) | - (rn[(d + 14) | 0] << 16) | - (rn[(d + 15) | 0] << 24)), - (c[(g + 8) >> 2] = - rn[(d + 8) | 0] | - (rn[(d + 9) | 0] << 8) | - (rn[(d + 10) | 0] << 16) | - (rn[(d + 11) | 0] << 24)), - (c[(g + 12) >> 2] = on), - (on = - rn[(d + 20) | 0] | - (rn[(d + 21) | 0] << 8) | - (rn[(d + 22) | 0] << 16) | - (rn[(d + 23) | 0] << 24)), - (c[(g + 16) >> 2] = - rn[(d + 16) | 0] | - (rn[(d + 17) | 0] << 8) | - (rn[(d + 18) | 0] << 16) | - (rn[(d + 19) | 0] << 24)), - (c[(g + 20) >> 2] = on), - (on = - rn[(d + 28) | 0] | - (rn[(d + 29) | 0] << 8) | - (rn[(d + 30) | 0] << 16) | - (rn[(d + 31) | 0] << 24)), - (c[(g + 24) >> 2] = - rn[(d + 24) | 0] | - (rn[(d + 25) | 0] << 8) | - (rn[(d + 26) | 0] << 16) | - (rn[(d + 27) | 0] << 24)), - (c[(g + 28) >> 2] = on), - (on = - rn[(d + 36) | 0] | - (rn[(d + 37) | 0] << 8) | - (rn[(d + 38) | 0] << 16) | - (rn[(d + 39) | 0] << 24)), - (c[(g + 32) >> 2] = - rn[(d + 32) | 0] | - (rn[(d + 33) | 0] << 8) | - (rn[(d + 34) | 0] << 16) | - (rn[(d + 35) | 0] << 24)), - (c[(g + 36) >> 2] = on), - (on = - rn[(d + 44) | 0] | - (rn[(d + 45) | 0] << 8) | - (rn[(d + 46) | 0] << 16) | - (rn[(d + 47) | 0] << 24)), - (c[(g + 40) >> 2] = - rn[(d + 40) | 0] | - (rn[(d + 41) | 0] << 8) | - (rn[(d + 42) | 0] << 16) | - (rn[(d + 43) | 0] << 24)), - (c[(g + 44) >> 2] = on), - (on = - rn[(d + 52) | 0] | - (rn[(d + 53) | 0] << 8) | - (rn[(d + 54) | 0] << 16) | - (rn[(d + 55) | 0] << 24)), - (c[(g + 48) >> 2] = - rn[(d + 48) | 0] | - (rn[(d + 49) | 0] << 8) | - (rn[(d + 50) | 0] << 16) | - (rn[(d + 51) | 0] << 24)), - (c[(g + 52) >> 2] = on), - (on = - rn[(d + 60) | 0] | - (rn[(d + 61) | 0] << 8) | - (rn[(d + 62) | 0] << 16) | - (rn[(d + 63) | 0] << 24)), - (c[(g + 56) >> 2] = - rn[(d + 56) | 0] | - (rn[(d + 57) | 0] << 8) | - (rn[(d + 58) | 0] << 16) | - (rn[(d + 59) | 0] << 24)), - (c[(g + 60) >> 2] = on), - Qo(a, g, h), - Ur(d, 64), - Ur(_e, 256), - (_e = 0) - } - return (St = (g - -64) | 0), _e - } - ss(), so() - } - ru(1369, 1217, 306, 1142), so() - } - function g0(d, a, h) { - ;(d |= 0), (a |= 0), (h |= 0) - var g, - _e, - on, - hn = 0, - j = 0 - ;(St = g = (St - 192) | 0), - (c[(g + 144) >> 2] = 0), - (c[(g + 148) >> 2] = 0), - (c[(g + 152) >> 2] = 0), - (c[(g + 156) >> 2] = 0), - (c[(g + 104) >> 2] = 0), - (c[(g + 108) >> 2] = 0), - (c[(g + 112) >> 2] = 0), - (c[(g + 116) >> 2] = 0), - (c[(g + 120) >> 2] = 0), - (c[(g + 124) >> 2] = 0), - (hn = c[8595]), - (c[(g + 168) >> 2] = c[8594]), - (c[(g + 172) >> 2] = hn), - (hn = c[8597]), - (c[(g + 176) >> 2] = c[8596]), - (c[(g + 180) >> 2] = hn), - (hn = c[8599]), - (c[(g + 184) >> 2] = c[8598]), - (c[(g + 188) >> 2] = hn), - (c[(g + 128) >> 2] = 0), - (c[(g + 132) >> 2] = 0), - (c[(g + 136) >> 2] = 0), - (c[(g + 140) >> 2] = 0), - (c[(g + 96) >> 2] = 0), - (c[(g + 100) >> 2] = 0), - (hn = c[8593]), - (c[(g + 160) >> 2] = c[8592]), - (c[(g + 164) >> 2] = hn), - (hn = - rn[(h + 20) | 0] | - (rn[(h + 21) | 0] << 8) | - (rn[(h + 22) | 0] << 16) | - (rn[(h + 23) | 0] << 24)), - (c[(g + 80) >> 2] = - rn[(h + 16) | 0] | - (rn[(h + 17) | 0] << 8) | - (rn[(h + 18) | 0] << 16) | - (rn[(h + 19) | 0] << 24)), - (c[(g + 84) >> 2] = hn), - (hn = - rn[(h + 28) | 0] | - (rn[(h + 29) | 0] << 8) | - (rn[(h + 30) | 0] << 16) | - (rn[(h + 31) | 0] << 24)), - (c[(g + 88) >> 2] = - rn[(h + 24) | 0] | - (rn[(h + 25) | 0] << 8) | - (rn[(h + 26) | 0] << 16) | - (rn[(h + 27) | 0] << 24)), - (c[(g + 92) >> 2] = hn), - (hn = - rn[(h + 4) | 0] | - (rn[(h + 5) | 0] << 8) | - (rn[(h + 6) | 0] << 16) | - (rn[(h + 7) | 0] << 24)), - (c[(g + 64) >> 2] = - rn[0 | h] | - (rn[(h + 1) | 0] << 8) | - (rn[(h + 2) | 0] << 16) | - (rn[(h + 3) | 0] << 24)), - (c[(g + 68) >> 2] = hn), - (hn = - rn[(h + 12) | 0] | - (rn[(h + 13) | 0] << 8) | - (rn[(h + 14) | 0] << 16) | - (rn[(h + 15) | 0] << 24)), - (c[(g + 72) >> 2] = - rn[(h + 8) | 0] | - (rn[(h + 9) | 0] << 8) | - (rn[(h + 10) | 0] << 16) | - (rn[(h + 11) | 0] << 24)), - (c[(g + 76) >> 2] = hn), - X0((h = (g + 128) | 0), (hn = (g - -64) | 0)), - zs(h), - (j = c[(g + 156) >> 2]), - (c[(g + 24) >> 2] = c[(g + 152) >> 2]), - (c[(g + 28) >> 2] = j), - (j = c[(g + 148) >> 2]), - (c[(g + 16) >> 2] = c[(g + 144) >> 2]), - (c[(g + 20) >> 2] = j), - (j = c[(g + 140) >> 2]), - (c[(g + 8) >> 2] = c[(g + 136) >> 2]), - (c[(g + 12) >> 2] = j), - (j = c[(g + 132) >> 2]), - (c[g >> 2] = c[(g + 128) >> 2]), - (c[(g + 4) >> 2] = j), - (c[(g + 120) >> 2] = 0), - (c[(g + 124) >> 2] = 0), - (c[(g + 112) >> 2] = 0), - (c[(g + 116) >> 2] = 0), - (c[(g + 104) >> 2] = 0), - (c[(g + 108) >> 2] = 0), - (c[(g + 96) >> 2] = 0), - (c[(g + 100) >> 2] = 0), - (j = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (c[(g + 80) >> 2] = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (c[(g + 84) >> 2] = j), - (j = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (c[(g + 88) >> 2] = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (c[(g + 92) >> 2] = j), - (j = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (_e = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (on = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (a = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (c[(g + 56) >> 2] = 0), - (c[(g + 60) >> 2] = 0), - (c[(g + 48) >> 2] = 0), - (c[(g + 52) >> 2] = 0), - (c[(g + 40) >> 2] = 0), - (c[(g + 44) >> 2] = 0), - (c[(g + 64) >> 2] = on), - (c[(g + 68) >> 2] = a), - (c[(g + 72) >> 2] = j), - (c[(g + 76) >> 2] = _e), - (c[(g + 32) >> 2] = 0), - (c[(g + 36) >> 2] = 0), - gA(hn, g), - (a = c[(g + 124) >> 2]), - (c[(g + 184) >> 2] = c[(g + 120) >> 2]), - (c[(g + 188) >> 2] = a), - (a = c[(g + 116) >> 2]), - (c[(g + 176) >> 2] = c[(g + 112) >> 2]), - (c[(g + 180) >> 2] = a), - (a = c[(g + 108) >> 2]), - (c[(g + 168) >> 2] = c[(g + 104) >> 2]), - (c[(g + 172) >> 2] = a), - (a = c[(g + 100) >> 2]), - (c[(g + 160) >> 2] = c[(g + 96) >> 2]), - (c[(g + 164) >> 2] = a), - (a = c[(g + 92) >> 2]), - (c[(g + 152) >> 2] = c[(g + 88) >> 2]), - (c[(g + 156) >> 2] = a), - (a = c[(g + 84) >> 2]), - (c[(g + 144) >> 2] = c[(g + 80) >> 2]), - (c[(g + 148) >> 2] = a), - (a = c[(g + 76) >> 2]), - (c[(g + 136) >> 2] = c[(g + 72) >> 2]), - (c[(g + 140) >> 2] = a), - (a = c[(g + 68) >> 2]), - (c[(g + 128) >> 2] = c[(g + 64) >> 2]), - (c[(g + 132) >> 2] = a), - zs(h), - (a = c[(g + 156) >> 2]), - (hn = c[(g + 152) >> 2]), - (pn[(d + 24) | 0] = hn), - (pn[(d + 25) | 0] = hn >>> 8), - (pn[(d + 26) | 0] = hn >>> 16), - (pn[(d + 27) | 0] = hn >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(g + 148) >> 2]), - (hn = c[(g + 144) >> 2]), - (pn[(d + 16) | 0] = hn), - (pn[(d + 17) | 0] = hn >>> 8), - (pn[(d + 18) | 0] = hn >>> 16), - (pn[(d + 19) | 0] = hn >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(g + 140) >> 2]), - (hn = c[(g + 136) >> 2]), - (pn[(d + 8) | 0] = hn), - (pn[(d + 9) | 0] = hn >>> 8), - (pn[(d + 10) | 0] = hn >>> 16), - (pn[(d + 11) | 0] = hn >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(g + 132) >> 2]), - (hn = c[(g + 128) >> 2]), - (pn[0 | d] = hn), - (pn[(d + 1) | 0] = hn >>> 8), - (pn[(d + 2) | 0] = hn >>> 16), - (pn[(d + 3) | 0] = hn >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - Ur(h, 64), - (St = (g + 192) | 0) - } - function fs(d) { - var a = 0, - h = 0, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - e: if ((d |= 0)) { - on = - ((g = (d - 8) | 0) + (d = -8 & (a = c[(d - 4) >> 2]))) | 0 - n: if (!(1 & a)) { - if ( - !(3 & a) || - (g = (g - (a = c[g >> 2])) | 0) >>> 0 < Es[9134] - ) - break e - if (((d = (d + a) | 0), c[9135] == (0 | g))) { - if ((3 & (a = c[(on + 4) >> 2])) == 3) - return ( - (c[9132] = d), - (c[(on + 4) >> 2] = -2 & a), - (c[(g + 4) >> 2] = 1 | d), - void (c[(d + g) >> 2] = d) - ) - } else { - if (a >>> 0 <= 255) { - if ( - ((_e = c[(g + 8) >> 2]), - (a = (a >>> 3) | 0), - (0 | (h = c[(g + 12) >> 2])) == (0 | _e)) - ) { - ;(cn = 36520), - (Dn = c[9130] & Ft(-2, a)), - (c[cn >> 2] = Dn) - break n - } - ;(c[(_e + 12) >> 2] = h), (c[(h + 8) >> 2] = _e) - break n - } - if ( - ((j = c[(g + 24) >> 2]), - (0 | g) == (0 | (a = c[(g + 12) >> 2]))) - ) - if ( - (h = c[(_e = (g + 20) | 0) >> 2]) || - (h = c[(_e = (g + 16) | 0) >> 2]) - ) { - for ( - ; - (hn = _e), - (h = c[(_e = ((a = h) + 20) | 0) >> 2]) || - ((_e = (a + 16) | 0), (h = c[(a + 16) >> 2])); - - ); - c[hn >> 2] = 0 - } else a = 0 - else - (h = c[(g + 8) >> 2]), - (c[(h + 12) >> 2] = a), - (c[(a + 8) >> 2] = h) - if (!j) break n - _e = c[(g + 28) >> 2] - t: { - if (c[(h = (36824 + (_e << 2)) | 0) >> 2] == (0 | g)) { - if (((c[h >> 2] = a), a)) break t - ;(cn = 36524), - (Dn = c[9131] & Ft(-2, _e)), - (c[cn >> 2] = Dn) - break n - } - if ( - ((c[ - (j + (c[(j + 16) >> 2] == (0 | g) ? 16 : 20)) >> 2 - ] = a), - !a) - ) - break n - } - if ( - ((c[(a + 24) >> 2] = j), - (h = c[(g + 16) >> 2]) && - ((c[(a + 16) >> 2] = h), (c[(h + 24) >> 2] = a)), - !(h = c[(g + 20) >> 2])) - ) - break n - ;(c[(a + 20) >> 2] = h), (c[(h + 24) >> 2] = a) - } - } - if (!(g >>> 0 >= on >>> 0) && 1 & (a = c[(on + 4) >> 2])) { - n: { - if (!(2 & a)) { - if (c[9136] == (0 | on)) { - if ( - ((c[9136] = g), - (d = (c[9133] + d) | 0), - (c[9133] = d), - (c[(g + 4) >> 2] = 1 | d), - c[9135] != (0 | g)) - ) - break e - return (c[9132] = 0), void (c[9135] = 0) - } - if (c[9135] == (0 | on)) - return ( - (c[9135] = g), - (d = (c[9132] + d) | 0), - (c[9132] = d), - (c[(g + 4) >> 2] = 1 | d), - void (c[(d + g) >> 2] = d) - ) - d = ((-8 & a) + d) | 0 - t: if (a >>> 0 <= 255) { - if ( - ((_e = c[(on + 8) >> 2]), - (a = (a >>> 3) | 0), - (0 | (h = c[(on + 12) >> 2])) == (0 | _e)) - ) { - ;(cn = 36520), - (Dn = c[9130] & Ft(-2, a)), - (c[cn >> 2] = Dn) - break t - } - ;(c[(_e + 12) >> 2] = h), (c[(h + 8) >> 2] = _e) - } else { - if ( - ((j = c[(on + 24) >> 2]), - (0 | on) == (0 | (a = c[(on + 12) >> 2]))) - ) - if ( - (h = c[(_e = (on + 20) | 0) >> 2]) || - (h = c[(_e = (on + 16) | 0) >> 2]) - ) { - for ( - ; - (hn = _e), - (h = c[(_e = ((a = h) + 20) | 0) >> 2]) || - ((_e = (a + 16) | 0), - (h = c[(a + 16) >> 2])); - - ); - c[hn >> 2] = 0 - } else a = 0 - else - (h = c[(on + 8) >> 2]), - (c[(h + 12) >> 2] = a), - (c[(a + 8) >> 2] = h) - if (j) { - _e = c[(on + 28) >> 2] - r: { - if ( - c[(h = (36824 + (_e << 2)) | 0) >> 2] == - (0 | on) - ) { - if (((c[h >> 2] = a), a)) break r - ;(cn = 36524), - (Dn = c[9131] & Ft(-2, _e)), - (c[cn >> 2] = Dn) - break t - } - if ( - ((c[ - (j + - (c[(j + 16) >> 2] == (0 | on) ? 16 : 20)) >> - 2 - ] = a), - !a) - ) - break t - } - ;(c[(a + 24) >> 2] = j), - (h = c[(on + 16) >> 2]) && - ((c[(a + 16) >> 2] = h), - (c[(h + 24) >> 2] = a)), - (h = c[(on + 20) >> 2]) && - ((c[(a + 20) >> 2] = h), (c[(h + 24) >> 2] = a)) - } - } - if ( - ((c[(g + 4) >> 2] = 1 | d), - (c[(d + g) >> 2] = d), - c[9135] != (0 | g)) - ) - break n - return void (c[9132] = d) - } - ;(c[(on + 4) >> 2] = -2 & a), - (c[(g + 4) >> 2] = 1 | d), - (c[(d + g) >> 2] = d) - } - if (d >>> 0 <= 255) - return ( - (a = (36560 + (-8 & d)) | 0), - (h = c[9130]) & (d = 1 << (d >>> 3)) - ? (d = c[(a + 8) >> 2]) - : ((c[9130] = d | h), (d = a)), - (c[(a + 8) >> 2] = g), - (c[(d + 12) >> 2] = g), - (c[(g + 12) >> 2] = a), - void (c[(g + 8) >> 2] = d) - ) - ;(_e = 31), - d >>> 0 <= 16777215 && - (_e = - (62 + - ((((d >>> (38 - (a = Ms((d >>> 8) | 0)))) & 1) - - (a << 1)) | - 0)) | - 0), - (c[(g + 28) >> 2] = _e), - (c[(g + 16) >> 2] = 0), - (c[(g + 20) >> 2] = 0), - (hn = (36824 + (_e << 2)) | 0) - n: { - t: { - if ((h = c[9131]) & (a = 1 << _e)) { - for ( - _e = - d << - ((0 | _e) != 31 - ? (25 - ((_e >>> 1) | 0)) | 0 - : 0), - a = c[hn >> 2]; - ; - - ) { - if (((h = a), (-8 & c[(a + 4) >> 2]) == (0 | d))) - break t - if ( - ((a = (_e >>> 29) | 0), - (_e <<= 1), - !(a = c[(16 + (hn = (h + (4 & a)) | 0)) >> 2])) - ) - break - } - ;(c[(hn + 16) >> 2] = g), (c[(g + 24) >> 2] = h) - } else - (c[9131] = a | h), - (c[hn >> 2] = g), - (c[(g + 24) >> 2] = hn) - ;(c[(g + 12) >> 2] = g), (c[(g + 8) >> 2] = g) - break n - } - ;(d = c[(h + 8) >> 2]), - (c[(d + 12) >> 2] = g), - (c[(h + 8) >> 2] = g), - (c[(g + 24) >> 2] = 0), - (c[(g + 12) >> 2] = h), - (c[(g + 8) >> 2] = d) - } - ;(d = (c[9138] - 1) | 0), (c[9138] = d || -1) - } - } - } - function Vu(d, a, h, g, _e) { - var on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0 - if ( - (g - ? ((rr = - rn[(g + 12) | 0] | - (rn[(g + 13) | 0] << 8) | - (rn[(g + 14) | 0] << 16) | - (rn[(g + 15) | 0] << 24)), - (Qt = - rn[(g + 8) | 0] | - (rn[(g + 9) | 0] << 8) | - (rn[(g + 10) | 0] << 16) | - (rn[(g + 11) | 0] << 24)), - (sr = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (Ut = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24))) - : ((rr = 1797285236), - (sr = 1634760805), - (Qt = 2036477234), - (Ut = 857760878)), - (g = on = - rn[(h + 20) | 0] | - (rn[(h + 21) | 0] << 8) | - (rn[(h + 22) | 0] << 16) | - (rn[(h + 23) | 0] << 24)), - (Rt = hn = - rn[(h + 24) | 0] | - (rn[(h + 25) | 0] << 8) | - (rn[(h + 26) | 0] << 16) | - (rn[(h + 27) | 0] << 24)), - (Tt = j = - rn[(h + 28) | 0] | - (rn[(h + 29) | 0] << 8) | - (rn[(h + 30) | 0] << 16) | - (rn[(h + 31) | 0] << 24)), - (mt = rr), - (kt = cn = - rn[(h + 16) | 0] | - (rn[(h + 17) | 0] << 8) | - (rn[(h + 18) | 0] << 16) | - (rn[(h + 19) | 0] << 24)), - (At = Qt), - (Jt = Dn = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (Ct = $n = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (yt = wn = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (a = Un = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (wt = Ut), - (pt = Yn = - rn[(h + 12) | 0] | - (rn[(h + 13) | 0] << 8) | - (rn[(h + 14) | 0] << 16) | - (rn[(h + 15) | 0] << 24)), - (gt = et = - rn[(h + 8) | 0] | - (rn[(h + 9) | 0] << 8) | - (rn[(h + 10) | 0] << 16) | - (rn[(h + 11) | 0] << 24)), - (_t = nt = - rn[(h + 4) | 0] | - (rn[(h + 5) | 0] << 8) | - (rn[(h + 6) | 0] << 16) | - (rn[(h + 7) | 0] << 24)), - (h = at = - rn[0 | h] | - (rn[(h + 1) | 0] << 8) | - (rn[(h + 2) | 0] << 16) | - (rn[(h + 3) | 0] << 24)), - (bt = sr), - (0 | _e) > 0) - ) - for ( - ; - (Ht = Ft((h + wt) | 0, 7) ^ Jt), - (tr = Ft((Ht + wt) | 0, 9) ^ Rt), - (Zt = Ft((g + bt) | 0, 7) ^ pt), - (dr = Ft((Zt + bt) | 0, 9) ^ Ct), - (Ar = Ft((Zt + dr) | 0, 13) ^ g), - (jt = Ft((mt + kt) | 0, 7) ^ gt), - (yt = Ft((jt + mt) | 0, 9) ^ yt), - (gt = Ft((yt + jt) | 0, 13) ^ kt), - (mt = Ft((yt + gt) | 0, 18) ^ mt), - (pt = Ft((a + At) | 0, 7) ^ Tt), - (g = Ar ^ Ft((mt + pt) | 0, 7)), - (Rt = Ft((g + mt) | 0, 9) ^ tr), - (Tt = Ft((g + Rt) | 0, 13) ^ pt), - (mt = Ft((Rt + Tt) | 0, 18) ^ mt), - (_t = Ft((pt + At) | 0, 9) ^ _t), - (pt = Ft((_t + pt) | 0, 13) ^ a), - (a = Ft((pt + _t) | 0, 18) ^ At), - (kt = Ft((a + Ht) | 0, 7) ^ gt), - (Ct = Ft((kt + a) | 0, 9) ^ dr), - (Jt = Ft((kt + Ct) | 0, 13) ^ Ht), - (At = Ft((Ct + Jt) | 0, 18) ^ a), - (h = Ft((Ht + tr) | 0, 13) ^ h), - (gt = Ft((h + tr) | 0, 18) ^ wt), - (a = Ft((gt + Zt) | 0, 7) ^ pt), - (yt = Ft((a + gt) | 0, 9) ^ yt), - (pt = Ft((a + yt) | 0, 13) ^ Zt), - (wt = Ft((yt + pt) | 0, 18) ^ gt), - (bt = Ft((dr + Ar) | 0, 18) ^ bt), - (h = Ft((bt + jt) | 0, 7) ^ h), - (_t = Ft((h + bt) | 0, 9) ^ _t), - (gt = Ft((h + _t) | 0, 13) ^ jt), - (bt = Ft((_t + gt) | 0, 18) ^ bt), - (0 | (Pt = (Pt + 2) | 0)) < (0 | _e); - - ); - ;(_e = (mt + rr) | 0), - (pn[(d + 60) | 0] = _e), - (pn[(d + 61) | 0] = _e >>> 8), - (pn[(d + 62) | 0] = _e >>> 16), - (pn[(d + 63) | 0] = _e >>> 24), - (_e = (Tt + j) | 0), - (pn[(d + 56) | 0] = _e), - (pn[(d + 57) | 0] = _e >>> 8), - (pn[(d + 58) | 0] = _e >>> 16), - (pn[(d + 59) | 0] = _e >>> 24), - (_e = (Rt + hn) | 0), - (pn[(d + 52) | 0] = _e), - (pn[(d + 53) | 0] = _e >>> 8), - (pn[(d + 54) | 0] = _e >>> 16), - (pn[(d + 55) | 0] = _e >>> 24), - (g = (g + on) | 0), - (pn[(d + 48) | 0] = g), - (pn[(d + 49) | 0] = g >>> 8), - (pn[(d + 50) | 0] = g >>> 16), - (pn[(d + 51) | 0] = g >>> 24), - (g = (kt + cn) | 0), - (pn[(d + 44) | 0] = g), - (pn[(d + 45) | 0] = g >>> 8), - (pn[(d + 46) | 0] = g >>> 16), - (pn[(d + 47) | 0] = g >>> 24), - (g = (At + Qt) | 0), - (pn[(d + 40) | 0] = g), - (pn[(d + 41) | 0] = g >>> 8), - (pn[(d + 42) | 0] = g >>> 16), - (pn[(d + 43) | 0] = g >>> 24), - (g = (Jt + Dn) | 0), - (pn[(d + 36) | 0] = g), - (pn[(d + 37) | 0] = g >>> 8), - (pn[(d + 38) | 0] = g >>> 16), - (pn[(d + 39) | 0] = g >>> 24), - (g = (Ct + $n) | 0), - (pn[(d + 32) | 0] = g), - (pn[(d + 33) | 0] = g >>> 8), - (pn[(d + 34) | 0] = g >>> 16), - (pn[(d + 35) | 0] = g >>> 24), - (g = (yt + wn) | 0), - (pn[(d + 28) | 0] = g), - (pn[(d + 29) | 0] = g >>> 8), - (pn[(d + 30) | 0] = g >>> 16), - (pn[(d + 31) | 0] = g >>> 24), - (a = (a + Un) | 0), - (pn[(d + 24) | 0] = a), - (pn[(d + 25) | 0] = a >>> 8), - (pn[(d + 26) | 0] = a >>> 16), - (pn[(d + 27) | 0] = a >>> 24), - (a = (wt + Ut) | 0), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = (pt + Yn) | 0), - (pn[(d + 16) | 0] = a), - (pn[(d + 17) | 0] = a >>> 8), - (pn[(d + 18) | 0] = a >>> 16), - (pn[(d + 19) | 0] = a >>> 24), - (a = (gt + et) | 0), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = (_t + nt) | 0), - (pn[(d + 8) | 0] = a), - (pn[(d + 9) | 0] = a >>> 8), - (pn[(d + 10) | 0] = a >>> 16), - (pn[(d + 11) | 0] = a >>> 24), - (a = (h + at) | 0), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - (a = (bt + sr) | 0), - (pn[0 | d] = a), - (pn[(d + 1) | 0] = a >>> 8), - (pn[(d + 2) | 0] = a >>> 16), - (pn[(d + 3) | 0] = a >>> 24) - } - function Ku(d, a, h, g, _e, on) { - var hn = 0 - if ( - ((c[on >> 2] = 8), - (!(a = (hn = !a & (d >>> 0 <= 32768)) ? 0 : a) & - ((h >>> 5) >>> 0 <= (d = hn ? 32768 : d) >>> 0)) | - a) - ) - return ( - (hn = 1), - h >>> 0 < 4096 || - ((hn = 2), - h >>> 0 < 8192 || - ((hn = 3), - h >>> 0 < 16384 || - ((hn = 4), - h >>> 0 < 32768 || - ((hn = 5), - h >>> 0 < 65536 || - ((hn = 6), - h >>> 0 < 131072 || - ((hn = 7), - h >>> 0 < 262144 || - ((hn = 8), - h >>> 0 < 524288 || - ((hn = 9), - h >>> 0 < 1048576 || - ((hn = 10), - h >>> 0 < 2097152 || - ((hn = 11), - h >>> 0 < 4194304 || - ((hn = 12), - h >>> 0 < 8388608 || - ((hn = 13), - h >>> 0 < 16777216 || - ((hn = 14), - h >>> 0 < 33554432 || - ((hn = 15), - h >>> 0 < 67108864 || - ((hn = 16), - h >>> 0 < 134217728 || - ((hn = 17), - h >>> 0 < 268435456 || - ((hn = 18), - h >>> 0 < 536870912 || - ((hn = 19), - h >>> 0 < 1073741824 || - (hn = - (0 | h) >= 0 - ? 20 - : 21))))))))))))))))))), - (h = hn), - (c[g >> 2] = h), - (g = (a >>> 2) | 0), - (a = ((3 & a) << 30) | (d >>> 2)), - (d = 31 & h), - (63 & h) >>> 0 >= 32 - ? ((h = 0), (d = (g >>> d) | 0)) - : ((h = (g >>> d) | 0), - (d = ((((1 << d) - 1) & g) << (32 - d)) | (a >>> d))), - void (c[_e >> 2] = - (((!h & (d >>> 0 >= 1073741823)) | h ? 1073741823 : d) >>> - 0) / - Es[on >> 2]) - ) - ;(c[_e >> 2] = 1), - (a = Ul(d, a, c[on >> 2] << 2)), - (h = 1), - !(d = On) & (a >>> 0 < 4) || - ((h = 2), - !d & (a >>> 0 < 8) || - ((h = 3), - !d & (a >>> 0 < 16) || - ((h = 4), - !d & (a >>> 0 < 32) || - ((h = 5), - !d & (a >>> 0 < 64) || - ((h = 6), - !d & (a >>> 0 < 128) || - ((h = 7), - !d & (a >>> 0 < 256) || - ((h = 8), - !d & (a >>> 0 < 512) || - ((h = 9), - !d & (a >>> 0 < 1024) || - ((h = 10), - !d & (a >>> 0 < 2048) || - ((h = 11), - !d & (a >>> 0 < 4096) || - ((h = 12), - !d & (a >>> 0 < 8192) || - ((h = 13), - !d & (a >>> 0 < 16384) || - ((h = 14), - !d & (a >>> 0 < 32768) || - ((h = 15), - !d & (a >>> 0 < 65536) || - ((h = 16), - !d & (a >>> 0 < 131072) || - ((h = 17), - !d & (a >>> 0 < 262144) || - ((h = 18), - !d & (a >>> 0 < 524288) || - ((h = 19), - !d & - (a >>> 0 < 1048576) || - ((h = 20), - !d & - (a >>> 0 < 2097152) || - ((h = 21), - !d & - (a >>> 0 < - 4194304) || - ((h = 22), - !d & - (a >>> 0 < - 8388608) || - ((h = 23), - !d & - (a >>> 0 < - 16777216) || - ((h = 24), - !d & - (a >>> 0 < - 33554432) || - ((h = 25), - !d & - (a >>> 0 < - 67108864) || - ((h = 26), - !d & - (a >>> 0 < - 134217728) || - ((h = 27), - !d & - (a >>> - 0 < - 268435456) || - ((h = 28), - !d & - (a >>> - 0 < - 536870912) || - ((h = 29), - !d & - (a >>> - 0 < - 1073741824) || - ((h = 30), - !d & - (a >>> - 0 < - 2147483648) || - ((h = 31), - d && - ((h = 32), - d >>> - 0 < - 2 || - ((h = 33), - d >>> - 0 < - 4 || - ((h = 34), - d >>> - 0 < - 8 || - ((h = 35), - d >>> - 0 < - 16 || - ((h = 36), - d >>> - 0 < - 32 || - ((h = 37), - d >>> - 0 < - 64 || - ((h = 38), - d >>> - 0 < - 128 || - ((h = 39), - d >>> - 0 < - 256 || - ((h = 40), - d >>> - 0 < - 512 || - ((h = 41), - d >>> - 0 < - 1024 || - ((h = 42), - d >>> - 0 < - 2048 || - ((h = 43), - d >>> - 0 < - 4096 || - ((h = 44), - d >>> - 0 < - 8192 || - ((h = 45), - d >>> - 0 < - 16384 || - ((h = 46), - d >>> - 0 < - 32768 || - ((h = 47), - d >>> - 0 < - 65536 || - ((h = 48), - d >>> - 0 < - 131072 || - ((h = 49), - d >>> - 0 < - 262144 || - ((h = 50), - d >>> - 0 < - 524288 || - ((h = 51), - d >>> - 0 < - 1048576 || - ((h = 52), - d >>> - 0 < - 2097152 || - ((h = 53), - d >>> - 0 < - 4194304 || - ((h = 54), - d >>> - 0 < - 8388608 || - ((h = 55), - d >>> - 0 < - 16777216 || - ((h = 56), - d >>> - 0 < - 33554432 || - ((h = 57), - d >>> - 0 < - 67108864 || - ((h = 58), - d >>> - 0 < - 134217728 || - ((h = 59), - d >>> - 0 < - 268435456 || - ((h = 60), - d >>> - 0 < - 536870912 || - ((h = 61), - d >>> - 0 < - 1073741824 || - (h = - ((0 | - d) > - 0) | - ((0 | - d) >= - 0) - ? 62 - : 63))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))), - (c[g >> 2] = h) - } - function y0(d, a, h, g, _e, on, hn, j, cn) { - var Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0 - if (((a - 65) >>> 0 < 4294967232) | (hn >>> 0 > 64)) d = -1 - else { - ;(at = Dn = St), (St = Dn = (Dn - 512) & -64) - e: { - n: if ( - !( - !(!(g | _e) | h) | - !d | - ((((et = 255 & a) - 65) & 255) >>> 0 <= 191) | - !(!(a = 255 & hn) || on) | - (a >>> 0 >= 65) - ) - ) { - if (a) { - if (!on) break n - j - ? (($n = - 725511199 ^ - (rn[(j + 8) | 0] | - (rn[(j + 9) | 0] << 8) | - (rn[(j + 10) | 0] << 16) | - (rn[(j + 11) | 0] << 24))), - (wn = - -1694144372 ^ - (rn[(j + 12) | 0] | - (rn[(j + 13) | 0] << 8) | - (rn[(j + 14) | 0] << 16) | - (rn[(j + 15) | 0] << 24))), - (hn = - -1377402159 ^ - (rn[0 | j] | - (rn[(j + 1) | 0] << 8) | - (rn[(j + 2) | 0] << 16) | - (rn[(j + 3) | 0] << 24))), - (j = - 1359893119 ^ - (rn[(j + 4) | 0] | - (rn[(j + 5) | 0] << 8) | - (rn[(j + 6) | 0] << 16) | - (rn[(j + 7) | 0] << 24)))) - : (($n = 725511199), - (wn = -1694144372), - (hn = -1377402159), - (j = 1359893119)), - cn - ? ((Un = - 327033209 ^ - (rn[(cn + 8) | 0] | - (rn[(cn + 9) | 0] << 8) | - (rn[(cn + 10) | 0] << 16) | - (rn[(cn + 11) | 0] << 24))), - (Yn = - 1541459225 ^ - (rn[(cn + 12) | 0] | - (rn[(cn + 13) | 0] << 8) | - (rn[(cn + 14) | 0] << 16) | - (rn[(cn + 15) | 0] << 24))), - (nt = - -79577749 ^ - (rn[0 | cn] | - (rn[(cn + 1) | 0] << 8) | - (rn[(cn + 2) | 0] << 16) | - (rn[(cn + 3) | 0] << 24))), - (cn = - 528734635 ^ - (rn[(cn + 4) | 0] | - (rn[(cn + 5) | 0] << 8) | - (rn[(cn + 6) | 0] << 16) | - (rn[(cn + 7) | 0] << 24)))) - : ((Un = 327033209), - (Yn = 1541459225), - (nt = -79577749), - (cn = 528734635)), - qo((Dn - -64) | 0, 0, 293), - (c[(Dn + 56) >> 2] = Un), - (c[(Dn + 60) >> 2] = Yn), - (c[(Dn + 48) >> 2] = nt), - (c[(Dn + 52) >> 2] = cn), - (c[(Dn + 40) >> 2] = $n), - (c[(Dn + 44) >> 2] = wn), - (c[(Dn + 32) >> 2] = hn), - (c[(Dn + 36) >> 2] = j), - (c[(Dn + 24) >> 2] = 1595750129), - (c[(Dn + 28) >> 2] = -1521486534), - (c[(Dn + 16) >> 2] = -23791573), - (c[(Dn + 20) >> 2] = 1013904242), - (c[(Dn + 8) >> 2] = -2067093701), - (c[(Dn + 12) >> 2] = -1150833019), - (c[Dn >> 2] = -222443256 ^ ((a << 8) | et)), - (c[(Dn + 4) >> 2] = (a >>> 24) ^ 1779033703), - qo(((hn = (Dn + 384) | 0) + a) | 0, 0, (128 - a) | 0), - Qo(hn, on, a), - Qo((Dn + 96) | 0, hn, 128), - (c[(Dn + 352) >> 2] = 128), - Ur(hn, 128), - (a = 128) - } else - j - ? (($n = - 725511199 ^ - (rn[(j + 8) | 0] | - (rn[(j + 9) | 0] << 8) | - (rn[(j + 10) | 0] << 16) | - (rn[(j + 11) | 0] << 24))), - (wn = - -1694144372 ^ - (rn[(j + 12) | 0] | - (rn[(j + 13) | 0] << 8) | - (rn[(j + 14) | 0] << 16) | - (rn[(j + 15) | 0] << 24))), - (on = - 1359893119 ^ - (rn[(j + 4) | 0] | - (rn[(j + 5) | 0] << 8) | - (rn[(j + 6) | 0] << 16) | - (rn[(j + 7) | 0] << 24))), - (a = - -1377402159 ^ - (rn[0 | j] | - (rn[(j + 1) | 0] << 8) | - (rn[(j + 2) | 0] << 16) | - (rn[(j + 3) | 0] << 24)))) - : (($n = 725511199), - (wn = -1694144372), - (on = 1359893119), - (a = -1377402159)), - cn - ? ((Un = - 327033209 ^ - (rn[(cn + 8) | 0] | - (rn[(cn + 9) | 0] << 8) | - (rn[(cn + 10) | 0] << 16) | - (rn[(cn + 11) | 0] << 24))), - (Yn = - 1541459225 ^ - (rn[(cn + 12) | 0] | - (rn[(cn + 13) | 0] << 8) | - (rn[(cn + 14) | 0] << 16) | - (rn[(cn + 15) | 0] << 24))), - (j = - 528734635 ^ - (rn[(cn + 4) | 0] | - (rn[(cn + 5) | 0] << 8) | - (rn[(cn + 6) | 0] << 16) | - (rn[(cn + 7) | 0] << 24))), - (hn = - -79577749 ^ - (rn[0 | cn] | - (rn[(cn + 1) | 0] << 8) | - (rn[(cn + 2) | 0] << 16) | - (rn[(cn + 3) | 0] << 24)))) - : ((Un = 327033209), - (Yn = 1541459225), - (j = 528734635), - (hn = -79577749)), - qo((Dn - -64) | 0, 0, 293), - (c[(Dn + 56) >> 2] = Un), - (c[(Dn + 60) >> 2] = Yn), - (c[(Dn + 48) >> 2] = hn), - (c[(Dn + 52) >> 2] = j), - (c[(Dn + 40) >> 2] = $n), - (c[(Dn + 44) >> 2] = wn), - (c[(Dn + 32) >> 2] = a), - (c[(Dn + 36) >> 2] = on), - (c[(Dn + 24) >> 2] = 1595750129), - (c[(Dn + 28) >> 2] = -1521486534), - (c[(Dn + 16) >> 2] = -23791573), - (c[(Dn + 20) >> 2] = 1013904242), - (c[(Dn + 8) >> 2] = -2067093701), - (c[(Dn + 12) >> 2] = -1150833019), - (c[Dn >> 2] = -222443256 ^ et), - (c[(Dn + 4) >> 2] = 1779033703), - (a = 0) - t: if (g | _e) - for (cn = (Dn + 224) | 0, j = (Dn + 96) | 0; ; ) { - if ( - ((hn = (a + j) | 0), - !_e & (g >>> 0 <= (on = (256 - a) | 0) >>> 0)) - ) { - Qo(hn, h, g), - (c[(Dn + 352) >> 2] = g + c[(Dn + 352) >> 2]) - break t - } - if ( - (Qo(hn, h, on), - (c[(Dn + 352) >> 2] = on + c[(Dn + 352) >> 2]), - ($n = a = c[(Dn + 68) >> 2]), - (a = - (wn = ((hn = c[(Dn + 64) >> 2]) + 128) | 0) >>> - 0 < - 128 - ? (a + 1) | 0 - : a), - (c[(Dn + 64) >> 2] = wn), - (c[(Dn + 68) >> 2] = a), - (a = c[(Dn + 76) >> 2]), - (a = - ($n = hn = - ((0 | $n) == -1) & (hn >>> 0 > 4294967167)) >>> - 0 > - (hn = (hn + c[(Dn + 72) >> 2]) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[(Dn + 72) >> 2] = hn), - (c[(Dn + 76) >> 2] = a), - mu(Dn, j), - Qo(j, cn, 128), - (a = (c[(Dn + 352) >> 2] - 128) | 0), - (c[(Dn + 352) >> 2] = a), - (h = (h + on) | 0), - !( - (_e = (_e - (g >>> 0 < on >>> 0)) | 0) | - (g = (g - on) | 0) - )) - ) - break - } - qu(Dn, d, et), (St = at) - break e - } - ss(), so() - } - d = 0 - } - return d - } - function m0(d, a) { - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - h = (d + a) | 0 - e: { - n: if (!(1 & (g = c[(d + 4) >> 2]))) { - if (!(3 & g)) break e - a = ((g = c[d >> 2]) + a) | 0 - t: { - if ((0 | (d = (d - g) | 0)) != c[9135]) { - if (g >>> 0 <= 255) { - if ( - ((on = c[(d + 8) >> 2]), - (g = (g >>> 3) | 0), - (0 | (_e = c[(d + 12) >> 2])) != (0 | on)) - ) - break t - ;(cn = 36520), - (Dn = c[9130] & Ft(-2, g)), - (c[cn >> 2] = Dn) - break n - } - if ( - ((j = c[(d + 24) >> 2]), - (0 | (g = c[(d + 12) >> 2])) == (0 | d)) - ) - if ( - (_e = c[(on = (d + 20) | 0) >> 2]) || - (_e = c[(on = (d + 16) | 0) >> 2]) - ) { - for ( - ; - (hn = on), - (_e = c[(on = ((g = _e) + 20) | 0) >> 2]) || - ((on = (g + 16) | 0), - (_e = c[(g + 16) >> 2])); - - ); - c[hn >> 2] = 0 - } else g = 0 - else - (_e = c[(d + 8) >> 2]), - (c[(_e + 12) >> 2] = g), - (c[(g + 8) >> 2] = _e) - if (!j) break n - on = c[(d + 28) >> 2] - r: { - if ( - c[(_e = (36824 + (on << 2)) | 0) >> 2] == - (0 | d) - ) { - if (((c[_e >> 2] = g), g)) break r - ;(cn = 36524), - (Dn = c[9131] & Ft(-2, on)), - (c[cn >> 2] = Dn) - break n - } - if ( - ((c[ - (j + (c[(j + 16) >> 2] == (0 | d) ? 16 : 20)) >> 2 - ] = g), - !g) - ) - break n - } - if ( - ((c[(g + 24) >> 2] = j), - (_e = c[(d + 16) >> 2]) && - ((c[(g + 16) >> 2] = _e), (c[(_e + 24) >> 2] = g)), - !(_e = c[(d + 20) >> 2])) - ) - break n - ;(c[(g + 20) >> 2] = _e), (c[(_e + 24) >> 2] = g) - break n - } - if ((3 & (g = c[(h + 4) >> 2])) != 3) break n - return ( - (c[9132] = a), - (c[(h + 4) >> 2] = -2 & g), - (c[(d + 4) >> 2] = 1 | a), - void (c[h >> 2] = a) - ) - } - ;(c[(on + 12) >> 2] = _e), (c[(_e + 8) >> 2] = on) - } - n: { - if (!(2 & (g = c[(h + 4) >> 2]))) { - if (c[9136] == (0 | h)) { - if ( - ((c[9136] = d), - (a = (c[9133] + a) | 0), - (c[9133] = a), - (c[(d + 4) >> 2] = 1 | a), - c[9135] != (0 | d)) - ) - break e - return (c[9132] = 0), void (c[9135] = 0) - } - if (c[9135] == (0 | h)) - return ( - (c[9135] = d), - (a = (c[9132] + a) | 0), - (c[9132] = a), - (c[(d + 4) >> 2] = 1 | a), - void (c[(d + a) >> 2] = a) - ) - a = ((-8 & g) + a) | 0 - t: if (g >>> 0 <= 255) { - if ( - ((on = c[(h + 8) >> 2]), - (g = (g >>> 3) | 0), - (0 | (_e = c[(h + 12) >> 2])) == (0 | on)) - ) { - ;(cn = 36520), - (Dn = c[9130] & Ft(-2, g)), - (c[cn >> 2] = Dn) - break t - } - ;(c[(on + 12) >> 2] = _e), (c[(_e + 8) >> 2] = on) - } else { - if ( - ((j = c[(h + 24) >> 2]), - (0 | h) == (0 | (g = c[(h + 12) >> 2]))) - ) - if ( - (on = c[(_e = (h + 20) | 0) >> 2]) || - (on = c[(_e = (h + 16) | 0) >> 2]) - ) { - for ( - ; - (hn = _e), - (on = c[(_e = ((g = on) + 20) | 0) >> 2]) || - ((_e = (g + 16) | 0), - (on = c[(g + 16) >> 2])); - - ); - c[hn >> 2] = 0 - } else g = 0 - else - (_e = c[(h + 8) >> 2]), - (c[(_e + 12) >> 2] = g), - (c[(g + 8) >> 2] = _e) - if (j) { - on = c[(h + 28) >> 2] - r: { - if ( - c[(_e = (36824 + (on << 2)) | 0) >> 2] == - (0 | h) - ) { - if (((c[_e >> 2] = g), g)) break r - ;(cn = 36524), - (Dn = c[9131] & Ft(-2, on)), - (c[cn >> 2] = Dn) - break t - } - if ( - ((c[ - (j + (c[(j + 16) >> 2] == (0 | h) ? 16 : 20)) >> - 2 - ] = g), - !g) - ) - break t - } - ;(c[(g + 24) >> 2] = j), - (_e = c[(h + 16) >> 2]) && - ((c[(g + 16) >> 2] = _e), - (c[(_e + 24) >> 2] = g)), - (_e = c[(h + 20) >> 2]) && - ((c[(g + 20) >> 2] = _e), (c[(_e + 24) >> 2] = g)) - } - } - if ( - ((c[(d + 4) >> 2] = 1 | a), - (c[(d + a) >> 2] = a), - c[9135] != (0 | d)) - ) - break n - return void (c[9132] = a) - } - ;(c[(h + 4) >> 2] = -2 & g), - (c[(d + 4) >> 2] = 1 | a), - (c[(d + a) >> 2] = a) - } - if (a >>> 0 <= 255) - return ( - (g = (36560 + (-8 & a)) | 0), - (_e = c[9130]) & (a = 1 << (a >>> 3)) - ? (a = c[(g + 8) >> 2]) - : ((c[9130] = a | _e), (a = g)), - (c[(g + 8) >> 2] = d), - (c[(a + 12) >> 2] = d), - (c[(d + 12) >> 2] = g), - void (c[(d + 8) >> 2] = a) - ) - ;(on = 31), - a >>> 0 <= 16777215 && - (on = - (62 + - ((((a >>> (38 - (g = Ms((a >>> 8) | 0)))) & 1) - - (g << 1)) | - 0)) | - 0), - (c[(d + 28) >> 2] = on), - (c[(d + 16) >> 2] = 0), - (c[(d + 20) >> 2] = 0), - (hn = (36824 + (on << 2)) | 0) - n: { - if ((_e = c[9131]) & (g = 1 << on)) { - for ( - on = - a << - ((0 | on) != 31 ? (25 - ((on >>> 1) | 0)) | 0 : 0), - g = c[hn >> 2]; - ; - - ) { - if (((_e = g), (-8 & c[(g + 4) >> 2]) == (0 | a))) - break n - if ( - ((g = (on >>> 29) | 0), - (on <<= 1), - !(g = c[(16 + (hn = (_e + (4 & g)) | 0)) >> 2])) - ) - break - } - ;(c[(hn + 16) >> 2] = d), (c[(d + 24) >> 2] = _e) - } else - (c[9131] = g | _e), - (c[hn >> 2] = d), - (c[(d + 24) >> 2] = hn) - return (c[(d + 12) >> 2] = d), void (c[(d + 8) >> 2] = d) - } - ;(a = c[(_e + 8) >> 2]), - (c[(a + 12) >> 2] = d), - (c[(_e + 8) >> 2] = d), - (c[(d + 24) >> 2] = 0), - (c[(d + 12) >> 2] = _e), - (c[(d + 8) >> 2] = a) - } - } - function _0(d, a, h, g, _e, on, hn) { - var j, - cn, - Dn = 0, - $n = 0 - if (((St = j = (St + -64) | 0), (cn = Ls(32)))) { - ;(c[(j + 32) >> 2] = 0), - (c[(j + 36) >> 2] = 0), - (c[(j + 24) >> 2] = 0), - (c[(j + 28) >> 2] = 0), - (c[(j + 20) >> 2] = 16), - (c[(j + 16) >> 2] = _e), - (c[(j + 12) >> 2] = g), - (c[(j + 8) >> 2] = h), - (c[(j + 4) >> 2] = 32), - (c[j >> 2] = cn), - (c[(j + 56) >> 2] = 0), - (c[(j + 52) >> 2] = 1), - (c[(j + 48) >> 2] = 1), - (c[(j + 44) >> 2] = a), - (c[(j + 40) >> 2] = d) - e: if ((d = Ou(j, hn))) Ur(cn, 32) - else { - if (on) { - ;(St = _e = (St - 32) | 0), (d = -31) - n: { - t: { - r: switch ((hn - 1) | 0) { - case 1: - ;(d = - rn[1417] | - (rn[1418] << 8) | - (rn[1419] << 16) | - (rn[1420] << 24)), - (a = - rn[1413] | - (rn[1414] << 8) | - (rn[1415] << 16) | - (rn[1416] << 24)), - (pn[0 | on] = a), - (pn[(on + 1) | 0] = a >>> 8), - (pn[(on + 2) | 0] = a >>> 16), - (pn[(on + 3) | 0] = a >>> 24), - (pn[(on + 4) | 0] = d), - (pn[(on + 5) | 0] = d >>> 8), - (pn[(on + 6) | 0] = d >>> 16), - (pn[(on + 7) | 0] = d >>> 24), - (d = - rn[1422] | - (rn[1423] << 8) | - (rn[1424] << 16) | - (rn[1425] << 24)), - (a = - rn[1418] | - (rn[1419] << 8) | - (rn[1420] << 16) | - (rn[1421] << 24)), - (pn[(on + 5) | 0] = a), - (pn[(on + 6) | 0] = a >>> 8), - (pn[(on + 7) | 0] = a >>> 16), - (pn[(on + 8) | 0] = a >>> 24), - (pn[(on + 9) | 0] = d), - (pn[(on + 10) | 0] = d >>> 8), - (pn[(on + 11) | 0] = d >>> 16), - (pn[(on + 12) | 0] = d >>> 24), - (h = -12), - (a = 12) - break t - case 0: - break r - default: - break n - } - ;(d = - rn[1405] | - (rn[1406] << 8) | - (rn[1407] << 16) | - (rn[1408] << 24)), - (a = - rn[1401] | - (rn[1402] << 8) | - (rn[1403] << 16) | - (rn[1404] << 24)), - (pn[0 | on] = a), - (pn[(on + 1) | 0] = a >>> 8), - (pn[(on + 2) | 0] = a >>> 16), - (pn[(on + 3) | 0] = a >>> 24), - (pn[(on + 4) | 0] = d), - (pn[(on + 5) | 0] = d >>> 8), - (pn[(on + 6) | 0] = d >>> 16), - (pn[(on + 7) | 0] = d >>> 24), - (d = - rn[1409] | - (rn[1410] << 8) | - (rn[1411] << 16) | - (rn[1412] << 24)), - (pn[(on + 8) | 0] = d), - (pn[(on + 9) | 0] = d >>> 8), - (pn[(on + 10) | 0] = d >>> 16), - (pn[(on + 11) | 0] = d >>> 24), - (h = -11), - (a = 11) - } - if (!(d = W0(j))) - if ( - ((pn[(_e + 13) | 0] = 0), - (pn[(_e + 11) | 0] = 49), - (pn[(_e + 12) | 0] = 57), - (h = (h + 128) | 0) >>> 0 <= - (d = Vs((_e + 11) | 0)) >>> 0) - ) - d = -31 - else if ( - ((a = Qo((a + on) | 0, (_e + 11) | 0, (d + 1) | 0)), - (Dn = (h - d) | 0) >>> 0 < 4) - ) - d = -31 - else { - for ( - pn[0 | (hn = (d + a) | 0)] = 36, - pn[(hn + 1) | 0] = 109, - pn[(hn + 2) | 0] = 61, - pn[(hn + 3) | 0] = 0, - d = c[(j + 44) >> 2], - a = 10; - (h = a), - (g = ((d >>> 0) / 10) | 0), - (pn[ - 0 | - ($n = - ((a = (a - 1) | 0) + ((_e + 22) | 0)) | 0) - ] = (d - zr(g, 10)) | 48), - !(d >>> 0 < 10) && ((d = g), a); - - ); - if ( - (Qo((d = (_e + 11) | 0), $n, (a = (11 - h) | 0)), - (pn[(d + a) | 0] = 0), - (a = (Dn - 3) | 0) >>> 0 <= (d = Vs(d)) >>> 0) - ) - d = -31 - else if ( - ((h = Qo( - (hn + 3) | 0, - (_e + 11) | 0, - (d + 1) | 0, - )), - (Dn = (a - d) | 0) >>> 0 < 4) - ) - d = -31 - else { - for ( - pn[0 | (hn = (d + h) | 0)] = 44, - pn[(hn + 1) | 0] = 116, - pn[(hn + 2) | 0] = 61, - pn[(hn + 3) | 0] = 0, - d = c[(j + 40) >> 2], - a = 10; - (h = a), - (g = ((d >>> 0) / 10) | 0), - (pn[ - 0 | - ($n = - ((a = (a - 1) | 0) + ((_e + 22) | 0)) | - 0) - ] = (d - zr(g, 10)) | 48), - !(d >>> 0 < 10) && ((d = g), a); - - ); - if ( - (Qo( - (d = (_e + 11) | 0), - $n, - (a = (11 - h) | 0), - ), - (pn[(d + a) | 0] = 0), - (a = (Dn - 3) | 0) >>> 0 <= (d = Vs(d)) >>> 0) - ) - d = -31 - else if ( - ((h = Qo( - (hn + 3) | 0, - (_e + 11) | 0, - (d + 1) | 0, - )), - (Dn = (a - d) | 0) >>> 0 < 4) - ) - d = -31 - else { - for ( - pn[0 | (hn = (d + h) | 0)] = 44, - pn[(hn + 1) | 0] = 112, - pn[(hn + 2) | 0] = 61, - pn[(hn + 3) | 0] = 0, - d = c[(j + 48) >> 2], - a = 10; - (h = a), - (g = ((d >>> 0) / 10) | 0), - (pn[ - 0 | - ($n = - ((a = (a - 1) | 0) + - ((_e + 22) | 0)) | - 0) - ] = (d - zr(g, 10)) | 48), - !(d >>> 0 < 10) && ((d = g), a); - - ); - Qo((d = (_e + 11) | 0), $n, (a = (11 - h) | 0)), - (pn[(d + a) | 0] = 0), - (a = (Dn - 3) | 0) >>> 0 <= (d = Vs(d)) >>> 0 - ? (d = -31) - : ((h = Qo( - (hn + 3) | 0, - (_e + 11) | 0, - (d + 1) | 0, - )), - (g = (a - d) | 0) >>> 0 < 2 - ? (d = -31) - : ((pn[0 | (d = (d + h) | 0)] = 36), - (pn[(d + 1) | 0] = 0), - Nr( - (a = (d + 1) | 0), - (h = (g - 1) | 0), - c[(j + 16) >> 2], - c[(j + 20) >> 2], - 3, - ) - ? ((d = -31), - (g = - ((g = h) - (h = Vs(a))) | 0) >>> - 0 < - 2 || - ((pn[ - 0 | (d = (a + h) | 0) - ] = 36), - (pn[(d + 1) | 0] = 0), - (d = Nr( - (d + 1) | 0, - (g - 1) | 0, - c[j >> 2], - c[(j + 4) >> 2], - 3, - ) - ? 0 - : -31))) - : (d = -31))) - } - } - } - } - if (((St = (_e + 32) | 0), d)) { - Ur(cn, 32), Ur(on, 128), (d = -31) - break e - } - } - Ur(cn, 32), (d = 0) - } - fs(cn) - } else d = -22 - return (St = (j - -64) | 0), d - } - function Yu(d, a, h, g) { - var _e, - on = 0 - ;(_e = on = St), - (St = on = (on - 576) & -64), - (c[(on + 188) >> 2] = a) - e: if (a >>> 0 <= 64) { - if ((0 | Cu((on + 192) | 0, 0, 0, a)) < 0) break e - ;(0 | go((on + 192) | 0, (on + 188) | 0, 4, 0)) < 0, - (0 | go((on + 192) | 0, h, g, 0)) < 0, - n0((on + 192) | 0, d, a) - } else if ( - !( - (0 | Cu((on + 192) | 0, 0, 0, 64)) < 0 || - (0 | go((on + 192) | 0, (on + 188) | 0, 4, 0)) < 0 || - (0 | go((on + 192) | 0, h, g, 0)) < 0 || - (0 | n0((on + 192) | 0, (on + 112) | 0, 64)) < 0 - ) - ) { - if ( - ((h = c[(on + 116) >> 2]), - (g = c[(on + 112) >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = h), - (pn[(d + 5) | 0] = h >>> 8), - (pn[(d + 6) | 0] = h >>> 16), - (pn[(d + 7) | 0] = h >>> 24), - (h = c[(on + 124) >> 2]), - (g = c[(on + 120) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = h), - (pn[(d + 13) | 0] = h >>> 8), - (pn[(d + 14) | 0] = h >>> 16), - (pn[(d + 15) | 0] = h >>> 24), - (h = c[(on + 140) >> 2]), - (g = c[(on + 136) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = h), - (pn[(d + 29) | 0] = h >>> 8), - (pn[(d + 30) | 0] = h >>> 16), - (pn[(d + 31) | 0] = h >>> 24), - (h = c[(on + 132) >> 2]), - (g = c[(on + 128) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = h), - (pn[(d + 21) | 0] = h >>> 8), - (pn[(d + 22) | 0] = h >>> 16), - (pn[(d + 23) | 0] = h >>> 24), - (d = (d + 32) | 0), - (a = (a - 32) | 0) >>> 0 >= 65) - ) - for (;;) { - if ( - ((h = c[(on + 172) >> 2]), - (c[(on + 104) >> 2] = c[(on + 168) >> 2]), - (c[(on + 108) >> 2] = h), - (h = c[(on + 164) >> 2]), - (c[(on + 96) >> 2] = c[(on + 160) >> 2]), - (c[(on + 100) >> 2] = h), - (h = c[(on + 156) >> 2]), - (c[(on + 88) >> 2] = c[(on + 152) >> 2]), - (c[(on + 92) >> 2] = h), - (h = c[(on + 148) >> 2]), - (c[(on + 80) >> 2] = c[(on + 144) >> 2]), - (c[(on + 84) >> 2] = h), - (h = c[(on + 140) >> 2]), - (c[(on + 72) >> 2] = c[(on + 136) >> 2]), - (c[(on + 76) >> 2] = h), - (g = c[(on + 132) >> 2]), - (c[(h = (on - -64) | 0) >> 2] = c[(on + 128) >> 2]), - (c[(h + 4) >> 2] = g), - (h = c[(on + 124) >> 2]), - (c[(on + 56) >> 2] = c[(on + 120) >> 2]), - (c[(on + 60) >> 2] = h), - (h = c[(on + 116) >> 2]), - (c[(on + 48) >> 2] = c[(on + 112) >> 2]), - (c[(on + 52) >> 2] = h), - (0 | - Et((on + 112) | 0, 64, (on + 48) | 0, 64, 0, 0, 0)) < - 0) - ) - break e - if ( - ((h = c[(on + 116) >> 2]), - (g = c[(on + 112) >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = h), - (pn[(d + 5) | 0] = h >>> 8), - (pn[(d + 6) | 0] = h >>> 16), - (pn[(d + 7) | 0] = h >>> 24), - (h = c[(on + 124) >> 2]), - (g = c[(on + 120) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = h), - (pn[(d + 13) | 0] = h >>> 8), - (pn[(d + 14) | 0] = h >>> 16), - (pn[(d + 15) | 0] = h >>> 24), - (h = c[(on + 140) >> 2]), - (g = c[(on + 136) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = h), - (pn[(d + 29) | 0] = h >>> 8), - (pn[(d + 30) | 0] = h >>> 16), - (pn[(d + 31) | 0] = h >>> 24), - (h = c[(on + 132) >> 2]), - (g = c[(on + 128) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = h), - (pn[(d + 21) | 0] = h >>> 8), - (pn[(d + 22) | 0] = h >>> 16), - (pn[(d + 23) | 0] = h >>> 24), - (d = (d + 32) | 0), - !((a = (a - 32) | 0) >>> 0 > 64)) - ) - break - } - ;(h = c[(on + 172) >> 2]), - (c[(on + 104) >> 2] = c[(on + 168) >> 2]), - (c[(on + 108) >> 2] = h), - (h = c[(on + 164) >> 2]), - (c[(on + 96) >> 2] = c[(on + 160) >> 2]), - (c[(on + 100) >> 2] = h), - (h = c[(on + 156) >> 2]), - (c[(on + 88) >> 2] = c[(on + 152) >> 2]), - (c[(on + 92) >> 2] = h), - (h = c[(on + 148) >> 2]), - (c[(on + 80) >> 2] = c[(on + 144) >> 2]), - (c[(on + 84) >> 2] = h), - (h = c[(on + 140) >> 2]), - (c[(on + 72) >> 2] = c[(on + 136) >> 2]), - (c[(on + 76) >> 2] = h), - (g = c[(on + 132) >> 2]), - (c[(h = (on - -64) | 0) >> 2] = c[(on + 128) >> 2]), - (c[(h + 4) >> 2] = g), - (h = c[(on + 124) >> 2]), - (c[(on + 56) >> 2] = c[(on + 120) >> 2]), - (c[(on + 60) >> 2] = h), - (h = c[(on + 116) >> 2]), - (c[(on + 48) >> 2] = c[(on + 112) >> 2]), - (c[(on + 52) >> 2] = h), - (0 | Et((on + 112) | 0, a, (on + 48) | 0, 64, 0, 0, 0)) < - 0 || Qo(d, (on + 112) | 0, a) - } - Ur((on + 192) | 0, 384), (St = _e) - } - function Au(d, a) { - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0 - return ( - (St = h = (St - 512) | 0), - (g = -1), - (on = rn[(a + 31) | 0]), - (_e = rn[0 | a]), - 1 & - (((((255 & - ((127 & (-1 ^ on)) | - ((rn[(a + 1) | 0] & - rn[(a + 2) | 0] & - rn[(a + 3) | 0] & - rn[(a + 4) | 0] & - rn[(a + 5) | 0] & - rn[(a + 6) | 0] & - rn[(a + 7) | 0] & - rn[(a + 8) | 0] & - rn[(a + 9) | 0] & - rn[(a + 10) | 0] & - rn[(a + 11) | 0] & - rn[(a + 12) | 0] & - rn[(a + 13) | 0] & - rn[(a + 14) | 0] & - rn[(a + 15) | 0] & - rn[(a + 16) | 0] & - rn[(a + 17) | 0] & - rn[(a + 18) | 0] & - rn[(a + 19) | 0] & - rn[(a + 20) | 0] & - rn[(a + 21) | 0] & - rn[(a + 22) | 0] & - rn[(a + 23) | 0] & - rn[(a + 24) | 0] & - rn[(a + 25) | 0] & - rn[(a + 26) | 0] & - rn[(a + 27) | 0] & - rn[(a + 28) | 0] & - rn[(a + 29) | 0] & - rn[(a + 30) | 0]) ^ - -1))) - - 1) & - (236 - _e)) >>> - 8) | - _e | - (on >>> 7)) || - (Xs((on = (h + 336) | 0), a), - Bt((h + 288) | 0, on), - (a = c[(h + 324) >> 2]), - (c[(h + 276) >> 2] = 0 - a), - (g = c[(h + 320) >> 2]), - (c[(h + 272) >> 2] = 0 - g), - (_e = c[(h + 316) >> 2]), - (c[(h + 268) >> 2] = 0 - _e), - (hn = c[(h + 312) >> 2]), - (c[(h + 264) >> 2] = 0 - hn), - (j = c[(h + 308) >> 2]), - (c[(h + 260) >> 2] = 0 - j), - (cn = c[(h + 304) >> 2]), - (c[(h + 256) >> 2] = 0 - cn), - (Dn = c[(h + 300) >> 2]), - (c[(h + 252) >> 2] = 0 - Dn), - ($n = c[(h + 296) >> 2]), - (c[(h + 248) >> 2] = 0 - $n), - (wn = c[(h + 292) >> 2]), - (c[(h + 244) >> 2] = 0 - wn), - (Un = c[(h + 288) >> 2]), - (c[(h + 240) >> 2] = 1 - Un), - Bt((Yn = (h + 144) | 0), (at = (h + 240) | 0)), - (c[(h + 228) >> 2] = a), - (c[(h + 224) >> 2] = g), - (c[(h + 220) >> 2] = _e), - (c[(h + 216) >> 2] = hn), - (c[(h + 212) >> 2] = j), - (c[(h + 208) >> 2] = cn), - (c[(h + 204) >> 2] = Dn), - (c[(h + 200) >> 2] = $n), - (c[(h + 196) >> 2] = wn), - (c[(h + 192) >> 2] = Un + 1), - Bt((g = (h + 96) | 0), (hn = (h + 192) | 0)), - Gt((a = (h + 48) | 0), 1600, Yn), - (_e = c[(h + 96) >> 2]), - (j = c[(h + 48) >> 2]), - (cn = c[(h + 100) >> 2]), - (Dn = c[(h + 52) >> 2]), - ($n = c[(h + 104) >> 2]), - (wn = c[(h + 56) >> 2]), - (Un = c[(h + 108) >> 2]), - (Yn = c[(h + 60) >> 2]), - (et = c[(h + 112) >> 2]), - (nt = c[(h + 64) >> 2]), - (pt = c[(h + 116) >> 2]), - (gt = c[(h + 68) >> 2]), - (mt = c[(h + 120) >> 2]), - (yt = c[(h + 72) >> 2]), - (_t = c[(h + 124) >> 2]), - (bt = c[(h + 76) >> 2]), - (kt = c[(h + 128) >> 2]), - (Rt = c[(h + 80) >> 2]), - (c[(h + 84) >> 2] = - 0 - ((c[(h + 84) >> 2] + c[(h + 132) >> 2]) | 0)), - (c[(h + 80) >> 2] = 0 - ((kt + Rt) | 0)), - (c[(h + 76) >> 2] = 0 - ((_t + bt) | 0)), - (c[(h + 72) >> 2] = 0 - ((mt + yt) | 0)), - (c[(h + 68) >> 2] = 0 - ((pt + gt) | 0)), - (c[(h + 64) >> 2] = 0 - ((et + nt) | 0)), - (c[(h + 60) >> 2] = 0 - ((Un + Yn) | 0)), - (c[(h + 56) >> 2] = 0 - (($n + wn) | 0)), - (c[(h + 52) >> 2] = 0 - ((cn + Dn) | 0)), - (c[(h + 48) >> 2] = 0 - ((_e + j) | 0)), - Gt(h, a, g), - (c[(h + 404) >> 2] = 0), - (c[(h + 408) >> 2] = 0), - (c[(h + 412) >> 2] = 0), - (c[(h + 416) >> 2] = 0), - (c[(h + 420) >> 2] = 0), - (c[(h + 388) >> 2] = 0), - (c[(h + 392) >> 2] = 0), - (c[(h + 384) >> 2] = 1), - (c[(h + 396) >> 2] = 0), - (c[(h + 400) >> 2] = 0), - (nt = Xu((_e = (h + 432) | 0), (h + 384) | 0, h)), - Gt(d, _e, hn), - Gt((g = (d + 40) | 0), _e, d), - Gt(g, g, a), - Gt(d, d, on), - (on = c[(d + 36) >> 2] << 1), - (c[(d + 36) >> 2] = on), - (_e = c[(d + 32) >> 2] << 1), - (c[(d + 32) >> 2] = _e), - (hn = c[(d + 28) >> 2] << 1), - (c[(d + 28) >> 2] = hn), - (j = c[(d + 24) >> 2] << 1), - (c[(d + 24) >> 2] = j), - (cn = c[(d + 20) >> 2] << 1), - (c[(d + 20) >> 2] = cn), - (Dn = c[(d + 16) >> 2] << 1), - (c[(d + 16) >> 2] = Dn), - ($n = c[(d + 12) >> 2] << 1), - (c[(d + 12) >> 2] = $n), - (wn = c[(d + 8) >> 2] << 1), - (c[(d + 8) >> 2] = wn), - (Un = c[(d + 4) >> 2] << 1), - (c[(d + 4) >> 2] = Un), - (Yn = c[d >> 2] << 1), - (c[d >> 2] = Yn), - cs((et = (h + 480) | 0), d), - (a = (0 - (1 & pn[(h + 480) | 0])) | 0), - (c[(d + 36) >> 2] = on ^ (a & (on ^ (0 - on)))), - (c[(d + 32) >> 2] = _e ^ (a & (_e ^ (0 - _e)))), - (c[(d + 28) >> 2] = hn ^ (a & (hn ^ (0 - hn)))), - (c[(d + 24) >> 2] = j ^ (a & (j ^ (0 - j)))), - (c[(d + 20) >> 2] = cn ^ (a & (cn ^ (0 - cn)))), - (c[(d + 16) >> 2] = Dn ^ (a & (Dn ^ (0 - Dn)))), - (c[(d + 12) >> 2] = $n ^ (a & ($n ^ (0 - $n)))), - (c[(d + 8) >> 2] = wn ^ (a & (wn ^ (0 - wn)))), - (c[(d + 4) >> 2] = Un ^ (a & (Un ^ (0 - Un)))), - (c[d >> 2] = Yn ^ (a & (Yn ^ (0 - Yn)))), - Gt(g, at, g), - (c[(d + 84) >> 2] = 0), - (c[(d + 88) >> 2] = 0), - (c[(d + 80) >> 2] = 1), - (c[(d + 92) >> 2] = 0), - (c[(d + 96) >> 2] = 0), - (c[(d + 100) >> 2] = 0), - (c[(d + 104) >> 2] = 0), - (c[(d + 108) >> 2] = 0), - (c[(d + 112) >> 2] = 0), - (c[(d + 116) >> 2] = 0), - Gt((a = (d + 120) | 0), d, g), - cs(et, a), - (d = rn[(h + 480) | 0]), - cs(et, g), - (g = (0 - (Qs(et, 32) | (1 - nt) | (1 & d))) | 0)), - (St = (h + 512) | 0), - g - ) - } - function C0(d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - var wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0 - if ( - ((wn = jn(cn, 0, j, 0)), - (!(Un = On) & (wn >>> 0 >= 1073741824)) | Un || - ((0 | hn) == 1) | (hn >>> 0 > 1)) - ) - return (c[9129] = 22), -1 - for (wn = on, et = hn; wn | et; ) - (Un = wn), - (wn &= wn - 1), - (et &= et - !Un), - (nt = (at = (at + 1) | 0) ? nt : (nt + 1) | 0) - if ( - !( - !(On = nt) & - (at >>> 0 < 2) & - ((!hn & (on >>> 0 >= 2)) | ((0 | hn) != 0)) - ) || - !cn || - !j - ) - return (c[9129] = 28), -1 - if ( - !( - ((33554431 / (cn >>> 0)) >>> 0 < j >>> 0) | - (j >>> 0 > 16777215) - ) & - !hn & - (on >>> 0 <= (33554431 / (j >>> 0)) >>> 0) && - !( - (mt = zr((gt = j << 7), cn)) >>> 0 > - (Un = ((at = zr(on, gt)) + mt) | 0) >>> 0 || - Un >>> 0 > (wn = (((Un + (j << 8)) | 0) - -64) | 0) >>> 0 - ) - ) { - e: { - if ( - wn >>> 0 > Es[(d + 8) >> 2] && - ((Un = -1), - R0(d), - (St = et = (St - 16) | 0), - (nt = Fl((et + 12) | 0, wn)), - (c[9129] = nt), - (nt = nt ? 0 : c[(et + 12) >> 2]), - (c[(d + 4) >> 2] = nt), - (c[d >> 2] = nt), - (c[(d + 8) >> 2] = nt ? wn : 0), - (St = (et + 16) | 0), - !nt) - ) - break e - for ( - $l(a, h, g, _e, (_t = c[(d + 4) >> 2]), mt), - Ct = - ((wn = ((yt = (mt + _t) | 0) + at) | 0) + - (g = ((d = j << 7) - 64) | 0)) | - 0, - bt = (wn + (j << 8)) | 0, - wt = ((et = (d + wn) | 0) + g) | 0, - At = (on - 1) | 0, - nt = j << 5; - ; - - ) { - for ( - at = (zr(gt, Rt) + _t) | 0, Un = 0; - (g = ((d = Un << 2) + at) | 0), - (c[(d + wn) >> 2] = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (_e = ((g = 4 | d) + wn) | 0), - (g = (g + at) | 0), - (c[_e >> 2] = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (_e = ((g = 8 | d) + wn) | 0), - (g = (g + at) | 0), - (c[_e >> 2] = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (g = ((d |= 12) + wn) | 0), - (d = (d + at) | 0), - (c[g >> 2] = - rn[0 | d] | - (rn[(d + 1) | 0] << 8) | - (rn[(d + 2) | 0] << 16) | - (rn[(d + 3) | 0] << 24)), - (kt = 0), - (g = 0), - (0 | nt) != (0 | (Un = (Un + 4) | 0)); - - ); - for ( - _e = 0, d = 0; - Qo((yt + (zr(_e, nt) << 2)) | 0, wn, gt), - Du(wn, et, bt, j), - Qo((yt + (zr(nt, 1 | _e) << 2)) | 0, et, gt), - Du(et, wn, bt, j), - (((0 | hn) == - (0 | - (d = - (_e = (_e + 2) | 0) >>> 0 < 2 - ? (d + 1) | 0 - : d))) & - (_e >>> 0 < on >>> 0)) | - (d >>> 0 < hn >>> 0); - - ); - for (;;) { - for ( - d = (yt + (zr(nt, At & c[Ct >> 2]) << 2)) | 0, Un = 0; - (c[(Yn = ((_e = Un << 2) + wn) | 0) >> 2] = - c[Yn >> 2] ^ c[(d + _e) >> 2]), - (c[(pt = ((Yn = 4 | _e) + wn) | 0) >> 2] = - c[pt >> 2] ^ c[(d + Yn) >> 2]), - (c[(pt = ((Yn = 8 | _e) + wn) | 0) >> 2] = - c[pt >> 2] ^ c[(d + Yn) >> 2]), - (c[(Yn = ((_e |= 12) + wn) | 0) >> 2] = - c[Yn >> 2] ^ c[(d + _e) >> 2]), - (0 | nt) != (0 | (Un = (Un + 4) | 0)); - - ); - for ( - Du(wn, et, bt, j), - d = (yt + (zr(nt, At & c[wt >> 2]) << 2)) | 0, - Un = 0; - (c[(Yn = ((_e = Un << 2) + et) | 0) >> 2] = - c[Yn >> 2] ^ c[(d + _e) >> 2]), - (c[(pt = ((Yn = 4 | _e) + et) | 0) >> 2] = - c[pt >> 2] ^ c[(d + Yn) >> 2]), - (c[(pt = ((Yn = 8 | _e) + et) | 0) >> 2] = - c[pt >> 2] ^ c[(d + Yn) >> 2]), - (c[(Yn = ((_e |= 12) + et) | 0) >> 2] = - c[Yn >> 2] ^ c[(d + _e) >> 2]), - (0 | nt) != (0 | (Un = (Un + 4) | 0)); - - ); - if ( - (Du(et, wn, bt, j), - (Un = 0), - (g = d = - (kt = (kt + 2) | 0) >>> 0 < 2 ? (g + 1) | 0 : g), - !( - (((0 | hn) == (0 | d)) & (on >>> 0 > kt >>> 0)) | - (d >>> 0 < hn >>> 0) - )) - ) - break - } - for ( - ; - (g = ((d = Un << 2) + at) | 0), - (_e = c[(d + wn) >> 2]), - (pn[0 | g] = _e), - (pn[(g + 1) | 0] = _e >>> 8), - (pn[(g + 2) | 0] = _e >>> 16), - (pn[(g + 3) | 0] = _e >>> 24), - (g = ((_e = 4 | d) + at) | 0), - (_e = c[(_e + wn) >> 2]), - (pn[0 | g] = _e), - (pn[(g + 1) | 0] = _e >>> 8), - (pn[(g + 2) | 0] = _e >>> 16), - (pn[(g + 3) | 0] = _e >>> 24), - (g = ((_e = 8 | d) + at) | 0), - (_e = c[(_e + wn) >> 2]), - (pn[0 | g] = _e), - (pn[(g + 1) | 0] = _e >>> 8), - (pn[(g + 2) | 0] = _e >>> 16), - (pn[(g + 3) | 0] = _e >>> 24), - (d = ((g = 12 | d) + at) | 0), - (g = c[(g + wn) >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (0 | nt) != (0 | (Un = (Un + 4) | 0)); - - ); - if ((0 | (Rt = (Rt + 1) | 0)) == (0 | cn)) break - } - $l(a, h, _t, mt, Dn, $n), (Un = 0) - } - return Un - } - return (c[9129] = 48), -1 - } - function I0(d, a, h) { - ;(d |= 0), (a |= 0), (h |= 0) - var g, - _e, - on, - hn = 0 - ;(St = g = (St - 192) | 0), - (c[(g + 96) >> 2] = 0), - (c[(g + 100) >> 2] = 0), - (c[(g + 104) >> 2] = 0), - (c[(g + 108) >> 2] = 0), - (c[(g + 112) >> 2] = 0), - (c[(g + 116) >> 2] = 0), - (c[(g + 120) >> 2] = 0), - (c[(g + 124) >> 2] = 0), - (hn = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (c[(g + 80) >> 2] = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (c[(g + 84) >> 2] = hn), - (hn = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (c[(g + 88) >> 2] = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (c[(g + 92) >> 2] = hn), - (_e = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (on = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (hn = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (a = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (c[(g + 40) >> 2] = 0), - (c[(g + 44) >> 2] = 0), - (c[(g + 48) >> 2] = 0), - (c[(g + 52) >> 2] = 0), - (c[(g + 56) >> 2] = 0), - (c[(g + 60) >> 2] = 0), - (c[(g + 64) >> 2] = hn), - (c[(g + 68) >> 2] = a), - (c[(g + 72) >> 2] = _e), - (c[(g + 76) >> 2] = on), - (c[(g + 32) >> 2] = 0), - (c[(g + 36) >> 2] = 0), - (a = - rn[(h + 20) | 0] | - (rn[(h + 21) | 0] << 8) | - (rn[(h + 22) | 0] << 16) | - (rn[(h + 23) | 0] << 24)), - (c[(g + 16) >> 2] = - rn[(h + 16) | 0] | - (rn[(h + 17) | 0] << 8) | - (rn[(h + 18) | 0] << 16) | - (rn[(h + 19) | 0] << 24)), - (c[(g + 20) >> 2] = a), - (a = - rn[(h + 28) | 0] | - (rn[(h + 29) | 0] << 8) | - (rn[(h + 30) | 0] << 16) | - (rn[(h + 31) | 0] << 24)), - (c[(g + 24) >> 2] = - rn[(h + 24) | 0] | - (rn[(h + 25) | 0] << 8) | - (rn[(h + 26) | 0] << 16) | - (rn[(h + 27) | 0] << 24)), - (c[(g + 28) >> 2] = a), - (a = - rn[(h + 4) | 0] | - (rn[(h + 5) | 0] << 8) | - (rn[(h + 6) | 0] << 16) | - (rn[(h + 7) | 0] << 24)), - (c[g >> 2] = - rn[0 | h] | - (rn[(h + 1) | 0] << 8) | - (rn[(h + 2) | 0] << 16) | - (rn[(h + 3) | 0] << 24)), - (c[(g + 4) >> 2] = a), - (a = - rn[(h + 12) | 0] | - (rn[(h + 13) | 0] << 8) | - (rn[(h + 14) | 0] << 16) | - (rn[(h + 15) | 0] << 24)), - (c[(g + 8) >> 2] = - rn[(h + 8) | 0] | - (rn[(h + 9) | 0] << 8) | - (rn[(h + 10) | 0] << 16) | - (rn[(h + 11) | 0] << 24)), - (c[(g + 12) >> 2] = a), - gA((g - -64) | 0, g), - (h = c[(g + 124) >> 2]), - (c[(g + 184) >> 2] = c[(g + 120) >> 2]), - (c[(g + 188) >> 2] = h), - (a = c[(g + 116) >> 2]), - (c[(g + 176) >> 2] = c[(g + 112) >> 2]), - (c[(g + 180) >> 2] = a), - (a = c[(g + 108) >> 2]), - (c[(g + 168) >> 2] = c[(g + 104) >> 2]), - (c[(g + 172) >> 2] = a), - (a = c[(g + 100) >> 2]), - (c[(g + 160) >> 2] = c[(g + 96) >> 2]), - (c[(g + 164) >> 2] = a), - (a = c[(g + 92) >> 2]), - (c[(g + 152) >> 2] = c[(g + 88) >> 2]), - (c[(g + 156) >> 2] = a), - (a = c[(g + 84) >> 2]), - (c[(g + 144) >> 2] = c[(g + 80) >> 2]), - (c[(g + 148) >> 2] = a), - (a = c[(g + 76) >> 2]), - (c[(g + 136) >> 2] = c[(g + 72) >> 2]), - (c[(g + 140) >> 2] = a), - (a = c[(g + 68) >> 2]), - (c[(g + 128) >> 2] = c[(g + 64) >> 2]), - (c[(g + 132) >> 2] = a), - zs((a = (g + 128) | 0)), - (hn = c[(g + 156) >> 2]), - (h = c[(g + 152) >> 2]), - (pn[(d + 24) | 0] = h), - (pn[(d + 25) | 0] = h >>> 8), - (pn[(d + 26) | 0] = h >>> 16), - (pn[(d + 27) | 0] = h >>> 24), - (pn[(d + 28) | 0] = hn), - (pn[(d + 29) | 0] = hn >>> 8), - (pn[(d + 30) | 0] = hn >>> 16), - (pn[(d + 31) | 0] = hn >>> 24), - (hn = c[(g + 148) >> 2]), - (h = c[(g + 144) >> 2]), - (pn[(d + 16) | 0] = h), - (pn[(d + 17) | 0] = h >>> 8), - (pn[(d + 18) | 0] = h >>> 16), - (pn[(d + 19) | 0] = h >>> 24), - (pn[(d + 20) | 0] = hn), - (pn[(d + 21) | 0] = hn >>> 8), - (pn[(d + 22) | 0] = hn >>> 16), - (pn[(d + 23) | 0] = hn >>> 24), - (hn = c[(g + 140) >> 2]), - (h = c[(g + 136) >> 2]), - (pn[(d + 8) | 0] = h), - (pn[(d + 9) | 0] = h >>> 8), - (pn[(d + 10) | 0] = h >>> 16), - (pn[(d + 11) | 0] = h >>> 24), - (pn[(d + 12) | 0] = hn), - (pn[(d + 13) | 0] = hn >>> 8), - (pn[(d + 14) | 0] = hn >>> 16), - (pn[(d + 15) | 0] = hn >>> 24), - (hn = c[(g + 132) >> 2]), - (h = c[(g + 128) >> 2]), - (pn[0 | d] = h), - (pn[(d + 1) | 0] = h >>> 8), - (pn[(d + 2) | 0] = h >>> 16), - (pn[(d + 3) | 0] = h >>> 24), - (pn[(d + 4) | 0] = hn), - (pn[(d + 5) | 0] = hn >>> 8), - (pn[(d + 6) | 0] = hn >>> 16), - (pn[(d + 7) | 0] = hn >>> 24), - Ur(a, 64), - (St = (g + 192) | 0) - } - function Du(d, a, h, g) { - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0 - if ( - ((on = c[(4 + (_e = ((((g << 7) + d) | 0) - 64) | 0)) >> 2]), - (c[h >> 2] = c[_e >> 2]), - (c[(h + 4) >> 2] = on), - (on = c[(_e + 60) >> 2]), - (c[(h + 56) >> 2] = c[(_e + 56) >> 2]), - (c[(h + 60) >> 2] = on), - (on = c[(_e + 52) >> 2]), - (c[(h + 48) >> 2] = c[(_e + 48) >> 2]), - (c[(h + 52) >> 2] = on), - (on = c[(_e + 44) >> 2]), - (c[(h + 40) >> 2] = c[(_e + 40) >> 2]), - (c[(h + 44) >> 2] = on), - (on = c[(_e + 36) >> 2]), - (c[(h + 32) >> 2] = c[(_e + 32) >> 2]), - (c[(h + 36) >> 2] = on), - (on = c[(_e + 28) >> 2]), - (c[(h + 24) >> 2] = c[(_e + 24) >> 2]), - (c[(h + 28) >> 2] = on), - (on = c[(_e + 20) >> 2]), - (c[(h + 16) >> 2] = c[(_e + 16) >> 2]), - (c[(h + 20) >> 2] = on), - (on = c[(_e + 12) >> 2]), - (c[(h + 8) >> 2] = c[(_e + 8) >> 2]), - (c[(h + 12) >> 2] = on), - (on = g << 1)) - ) - for ( - cn = g << 4, g = 0; - (_e = ((hn = g << 6) + d) | 0), - (c[h >> 2] = c[h >> 2] ^ c[_e >> 2]), - (c[(h + 4) >> 2] = c[(h + 4) >> 2] ^ c[(_e + 4) >> 2]), - (c[(h + 8) >> 2] = c[(h + 8) >> 2] ^ c[(_e + 8) >> 2]), - (c[(h + 12) >> 2] = c[(h + 12) >> 2] ^ c[(_e + 12) >> 2]), - (c[(h + 16) >> 2] = c[(h + 16) >> 2] ^ c[(_e + 16) >> 2]), - (c[(h + 20) >> 2] = c[(h + 20) >> 2] ^ c[(_e + 20) >> 2]), - (c[(h + 24) >> 2] = c[(h + 24) >> 2] ^ c[(_e + 24) >> 2]), - (c[(h + 28) >> 2] = c[(h + 28) >> 2] ^ c[(_e + 28) >> 2]), - (c[(h + 32) >> 2] = c[(h + 32) >> 2] ^ c[(_e + 32) >> 2]), - (c[(h + 36) >> 2] = c[(h + 36) >> 2] ^ c[(_e + 36) >> 2]), - (c[(h + 40) >> 2] = c[(h + 40) >> 2] ^ c[(_e + 40) >> 2]), - (c[(h + 44) >> 2] = c[(h + 44) >> 2] ^ c[(_e + 44) >> 2]), - (c[(h + 48) >> 2] = c[(h + 48) >> 2] ^ c[(_e + 48) >> 2]), - (c[(h + 52) >> 2] = c[(h + 52) >> 2] ^ c[(_e + 52) >> 2]), - (c[(h + 56) >> 2] = c[(h + 56) >> 2] ^ c[(_e + 56) >> 2]), - (c[(h + 60) >> 2] = c[(h + 60) >> 2] ^ c[(_e + 60) >> 2]), - es(h), - (j = c[(h + 60) >> 2]), - (c[(56 + (_e = ((g << 5) + a) | 0)) >> 2] = - c[(h + 56) >> 2]), - (c[(_e + 60) >> 2] = j), - (j = c[(h + 52) >> 2]), - (c[(_e + 48) >> 2] = c[(h + 48) >> 2]), - (c[(_e + 52) >> 2] = j), - (j = c[(h + 44) >> 2]), - (c[(_e + 40) >> 2] = c[(h + 40) >> 2]), - (c[(_e + 44) >> 2] = j), - (j = c[(h + 36) >> 2]), - (c[(_e + 32) >> 2] = c[(h + 32) >> 2]), - (c[(_e + 36) >> 2] = j), - (j = c[(h + 28) >> 2]), - (c[(_e + 24) >> 2] = c[(h + 24) >> 2]), - (c[(_e + 28) >> 2] = j), - (j = c[(h + 20) >> 2]), - (c[(_e + 16) >> 2] = c[(h + 16) >> 2]), - (c[(_e + 20) >> 2] = j), - (j = c[(h + 12) >> 2]), - (c[(_e + 8) >> 2] = c[(h + 8) >> 2]), - (c[(_e + 12) >> 2] = j), - (j = c[(h + 4) >> 2]), - (c[_e >> 2] = c[h >> 2]), - (c[(_e + 4) >> 2] = j), - (_e = ((64 | hn) + d) | 0), - (c[h >> 2] = c[h >> 2] ^ c[_e >> 2]), - (c[(h + 4) >> 2] = c[(h + 4) >> 2] ^ c[(_e + 4) >> 2]), - (c[(h + 8) >> 2] = c[(h + 8) >> 2] ^ c[(_e + 8) >> 2]), - (c[(h + 12) >> 2] = c[(h + 12) >> 2] ^ c[(_e + 12) >> 2]), - (c[(h + 16) >> 2] = c[(h + 16) >> 2] ^ c[(_e + 16) >> 2]), - (c[(h + 20) >> 2] = c[(h + 20) >> 2] ^ c[(_e + 20) >> 2]), - (c[(h + 24) >> 2] = c[(h + 24) >> 2] ^ c[(_e + 24) >> 2]), - (c[(h + 28) >> 2] = c[(h + 28) >> 2] ^ c[(_e + 28) >> 2]), - (c[(h + 32) >> 2] = c[(h + 32) >> 2] ^ c[(_e + 32) >> 2]), - (c[(h + 36) >> 2] = c[(h + 36) >> 2] ^ c[(_e + 36) >> 2]), - (c[(h + 40) >> 2] = c[(h + 40) >> 2] ^ c[(_e + 40) >> 2]), - (c[(h + 44) >> 2] = c[(h + 44) >> 2] ^ c[(_e + 44) >> 2]), - (c[(h + 48) >> 2] = c[(h + 48) >> 2] ^ c[(_e + 48) >> 2]), - (c[(h + 52) >> 2] = c[(h + 52) >> 2] ^ c[(_e + 52) >> 2]), - (c[(h + 56) >> 2] = c[(h + 56) >> 2] ^ c[(_e + 56) >> 2]), - (c[(h + 60) >> 2] = c[(h + 60) >> 2] ^ c[(_e + 60) >> 2]), - es(h), - (hn = c[(h + 60) >> 2]), - (c[(56 + (_e = ((((g << 3) + cn) << 2) + a) | 0)) >> 2] = - c[(h + 56) >> 2]), - (c[(_e + 60) >> 2] = hn), - (hn = c[(h + 52) >> 2]), - (c[(_e + 48) >> 2] = c[(h + 48) >> 2]), - (c[(_e + 52) >> 2] = hn), - (hn = c[(h + 44) >> 2]), - (c[(_e + 40) >> 2] = c[(h + 40) >> 2]), - (c[(_e + 44) >> 2] = hn), - (hn = c[(h + 36) >> 2]), - (c[(_e + 32) >> 2] = c[(h + 32) >> 2]), - (c[(_e + 36) >> 2] = hn), - (hn = c[(h + 28) >> 2]), - (c[(_e + 24) >> 2] = c[(h + 24) >> 2]), - (c[(_e + 28) >> 2] = hn), - (hn = c[(h + 20) >> 2]), - (c[(_e + 16) >> 2] = c[(h + 16) >> 2]), - (c[(_e + 20) >> 2] = hn), - (hn = c[(h + 12) >> 2]), - (c[(_e + 8) >> 2] = c[(h + 8) >> 2]), - (c[(_e + 12) >> 2] = hn), - (hn = c[(h + 4) >> 2]), - (c[_e >> 2] = c[h >> 2]), - (c[(_e + 4) >> 2] = hn), - on >>> 0 > (g = (g + 2) | 0) >>> 0; - - ); - } - function Wu(d, a, h, g) { - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0 - if ( - ((et = c[(d + 36) >> 2]), - (Un = c[(d + 32) >> 2]), - (Yn = c[(d + 28) >> 2]), - ($n = c[(d + 24) >> 2]), - (wn = c[(d + 20) >> 2]), - (!g & (h >>> 0 >= 16)) | g) - ) - for ( - Rt = !rn[(d + 80) | 0] << 24, - at = c[(d + 4) >> 2], - At = zr(at, 5), - gt = c[(d + 8) >> 2], - bt = zr(gt, 5), - yt = c[(d + 12) >> 2], - _t = zr(yt, 5), - kt = c[(d + 16) >> 2], - mt = zr(kt, 5), - pt = c[d >> 2]; - (_e = jn( - (hn = - ((((rn[(a + 3) | 0] | - (rn[(a + 4) | 0] << 8) | - (rn[(a + 5) | 0] << 16) | - (rn[(a + 6) | 0] << 24)) >>> - 2) & - 67108863) + - $n) | - 0), - 0, - yt, - 0, - )), - (cn = On), - (wn = - ((j = jn( - ($n = - ((67108863 & - (rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24))) + - wn) | - 0), - 0, - kt, - 0, - )) + - _e) | - 0), - (_e = (On + cn) | 0), - (_e = j >>> 0 > wn >>> 0 ? (_e + 1) | 0 : _e), - (cn = jn( - (Yn = - ((((rn[(a + 6) | 0] | - (rn[(a + 7) | 0] << 8) | - (rn[(a + 8) | 0] << 16) | - (rn[(a + 9) | 0] << 24)) >>> - 4) & - 67108863) + - Yn) | - 0), - 0, - gt, - 0, - )), - (_e = (On + _e) | 0), - (_e = - cn >>> 0 > (wn = (cn + wn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (cn = jn( - (Un = - ((((rn[(a + 9) | 0] | - (rn[(a + 10) | 0] << 8) | - (rn[(a + 11) | 0] << 16) | - (rn[(a + 12) | 0] << 24)) >>> - 6) | - 0) + - Un) | - 0), - 0, - at, - 0, - )), - (_e = (On + _e) | 0), - (_e = - cn >>> 0 > (wn = (cn + wn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (cn = jn( - (et = - (et + - Rt + - ((rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)) >>> - 8)) | - 0), - 0, - pt, - 0, - )), - (_e = (On + _e) | 0), - (Ct = wn = (cn + wn) | 0), - (wn = cn >>> 0 > wn >>> 0 ? (_e + 1) | 0 : _e), - (_e = jn(hn, 0, gt, 0)), - (cn = On), - (j = jn($n, 0, yt, 0)), - (on = (On + cn) | 0), - (on = - (_e = (j + _e) | 0) >>> 0 < j >>> 0 - ? (on + 1) | 0 - : on), - (cn = ((j = jn(Yn, 0, at, 0)) + _e) | 0), - (_e = (On + on) | 0), - (_e = j >>> 0 > cn >>> 0 ? (_e + 1) | 0 : _e), - (j = jn(Un, 0, pt, 0)), - (_e = (On + _e) | 0), - (_e = - j >>> 0 > (cn = (j + cn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (j = jn(et, 0, mt, 0)), - (_e = (On + _e) | 0), - (wt = cn = (j + cn) | 0), - (cn = j >>> 0 > cn >>> 0 ? (_e + 1) | 0 : _e), - (_e = jn(hn, 0, at, 0)), - (Dn = On), - (j = ((on = jn($n, 0, gt, 0)) + _e) | 0), - (_e = (On + Dn) | 0), - (_e = on >>> 0 > j >>> 0 ? (_e + 1) | 0 : _e), - (Dn = jn(Yn, 0, pt, 0)), - (on = (On + _e) | 0), - (on = - (j = (Dn + j) | 0) >>> 0 < Dn >>> 0 - ? (on + 1) | 0 - : on), - (Dn = jn(Un, 0, mt, 0)), - (_e = (On + on) | 0), - (_e = - (j = (Dn + j) | 0) >>> 0 < Dn >>> 0 - ? (_e + 1) | 0 - : _e), - (Dn = jn(et, 0, _t, 0)), - (_e = (On + _e) | 0), - (Tt = j = (Dn + j) | 0), - (j = j >>> 0 < Dn >>> 0 ? (_e + 1) | 0 : _e), - (_e = jn(hn, 0, pt, 0)), - (on = On), - (Dn = ((nt = jn($n, 0, at, 0)) + _e) | 0), - (_e = (On + on) | 0), - (_e = Dn >>> 0 < nt >>> 0 ? (_e + 1) | 0 : _e), - (on = jn(Yn, 0, mt, 0)), - (_e = (On + _e) | 0), - (_e = - on >>> 0 > (Dn = (on + Dn) | 0) >>> 0 - ? (_e + 1) | 0 - : _e), - (nt = jn(Un, 0, _t, 0)), - (on = (On + _e) | 0), - (on = - (Dn = (nt + Dn) | 0) >>> 0 < nt >>> 0 - ? (on + 1) | 0 - : on), - (nt = jn(et, 0, bt, 0)), - (_e = (On + on) | 0), - (_e = - (Dn = (nt + Dn) | 0) >>> 0 < nt >>> 0 - ? (_e + 1) | 0 - : _e), - (nt = Dn), - (Dn = _e), - (_e = jn(hn, 0, mt, 0)), - (on = On), - (hn = (($n = jn($n, 0, pt, 0)) + _e) | 0), - (_e = (On + on) | 0), - (_e = hn >>> 0 < $n >>> 0 ? (_e + 1) | 0 : _e), - ($n = jn(Yn, 0, _t, 0)), - (_e = (On + _e) | 0), - (_e = - (hn = ($n + hn) | 0) >>> 0 < $n >>> 0 - ? (_e + 1) | 0 - : _e), - ($n = jn(Un, 0, bt, 0)), - (_e = (On + _e) | 0), - (_e = - (hn = ($n + hn) | 0) >>> 0 < $n >>> 0 - ? (_e + 1) | 0 - : _e), - ($n = jn(et, 0, At, 0)), - (on = (On + _e) | 0), - (on = - (hn = ($n + hn) | 0) >>> 0 < $n >>> 0 - ? (on + 1) | 0 - : on), - ($n = hn), - (_e = Dn), - (_e = - (hn = - ((Yn = ((67108863 & on) << 6) | (hn >>> 26)) + nt) | - 0) >>> - 0 < - Yn >>> 0 - ? (_e + 1) | 0 - : _e), - (Yn = hn), - (Un = ((67108863 & _e) << 6) | (hn >>> 26)), - (_e = j), - (_e = - (hn = (Un + Tt) | 0) >>> 0 < Un >>> 0 - ? (_e + 1) | 0 - : _e), - (Un = hn), - (on = cn), - (et = _e = - ((hn = ((67108863 & _e) << 6) | (hn >>> 26)) + wt) | 0), - (cn = - ((67108863 & - (on = _e >>> 0 < hn >>> 0 ? (on + 1) | 0 : on)) << - 6) | - (_e >>> 26)), - (_e = wn), - ($n = - ((67108863 & Yn) + - (((_e = - (zr( - ((67108863 & - ((hn = (cn + Ct) | 0) >>> 0 < cn >>> 0 - ? (_e + 1) | 0 - : _e)) << - 6) | - (hn >>> 26), - 5, - ) + - (67108863 & $n)) | - 0) >>> - 26) | - 0)) | - 0), - (Yn = 67108863 & Un), - (Un = 67108863 & et), - (et = 67108863 & hn), - (wn = 67108863 & _e), - (a = (a + 16) | 0), - (!(g = (g - (h >>> 0 < 16)) | 0) & - ((h = (h - 16) | 0) >>> 0 > 15)) | - g; - - ); - ;(c[(d + 20) >> 2] = wn), - (c[(d + 36) >> 2] = et), - (c[(d + 32) >> 2] = Un), - (c[(d + 28) >> 2] = Yn), - (c[(d + 24) >> 2] = $n) - } - function Cu(d, a, h, g) { - ;(d |= 0), (a |= 0) - var _e = 0 - return ( - (_e = -1), - (((g |= 0) - 65) >>> 0 < 4294967232) | - ((h |= 0) >>> 0 > 64) || - (h && a - ? ((St = _e = (St - 128) | 0), - !a | - ((((g &= 255) - 65) & 255) >>> 0 <= 191) | - ((((h &= 255) - 65) & 255) >>> 0 <= 191) - ? (ss(), so()) - : (qo((d - -64) | 0, 0, 293), - (pn[(d + 56) | 0] = 121), - (pn[(d + 57) | 0] = 33), - (pn[(d + 58) | 0] = 126), - (pn[(d + 59) | 0] = 19), - (pn[(d + 60) | 0] = 25), - (pn[(d + 61) | 0] = 205), - (pn[(d + 62) | 0] = 224), - (pn[(d + 63) | 0] = 91), - (pn[(d + 48) | 0] = 107), - (pn[(d + 49) | 0] = 189), - (pn[(d + 50) | 0] = 65), - (pn[(d + 51) | 0] = 251), - (pn[(d + 52) | 0] = 171), - (pn[(d + 53) | 0] = 217), - (pn[(d + 54) | 0] = 131), - (pn[(d + 55) | 0] = 31), - (pn[(d + 40) | 0] = 31), - (pn[(d + 41) | 0] = 108), - (pn[(d + 42) | 0] = 62), - (pn[(d + 43) | 0] = 43), - (pn[(d + 44) | 0] = 140), - (pn[(d + 45) | 0] = 104), - (pn[(d + 46) | 0] = 5), - (pn[(d + 47) | 0] = 155), - (pn[(d + 32) | 0] = 209), - (pn[(d + 33) | 0] = 130), - (pn[(d + 34) | 0] = 230), - (pn[(d + 35) | 0] = 173), - (pn[(d + 36) | 0] = 127), - (pn[(d + 37) | 0] = 82), - (pn[(d + 38) | 0] = 14), - (pn[(d + 39) | 0] = 81), - (pn[(d + 24) | 0] = 241), - (pn[(d + 25) | 0] = 54), - (pn[(d + 26) | 0] = 29), - (pn[(d + 27) | 0] = 95), - (pn[(d + 28) | 0] = 58), - (pn[(d + 29) | 0] = 245), - (pn[(d + 30) | 0] = 79), - (pn[(d + 31) | 0] = 165), - (pn[(d + 16) | 0] = 43), - (pn[(d + 17) | 0] = 248), - (pn[(d + 18) | 0] = 148), - (pn[(d + 19) | 0] = 254), - (pn[(d + 20) | 0] = 114), - (pn[(d + 21) | 0] = 243), - (pn[(d + 22) | 0] = 110), - (pn[(d + 23) | 0] = 60), - (pn[(d + 8) | 0] = 59), - (pn[(d + 9) | 0] = 167), - (pn[(d + 10) | 0] = 202), - (pn[(d + 11) | 0] = 132), - (pn[(d + 12) | 0] = 133), - (pn[(d + 13) | 0] = 174), - (pn[(d + 14) | 0] = 103), - (pn[(d + 15) | 0] = 187), - (g = -222443256 ^ ((h << 8) | g)), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (g = (h >>> 24) ^ 1779033703), - (pn[(d + 4) | 0] = g), - (pn[(d + 5) | 0] = g >>> 8), - (pn[(d + 6) | 0] = g >>> 16), - (pn[(d + 7) | 0] = g >>> 24), - qo( - (h + _e) | 0, - 0, - (h << 24) >> 24 >= 0 ? (128 - h) | 0 : 0, - ), - (h = Qo(_e, a, h)), - Qo((d + 96) | 0, h, 128), - (a = - (128 + - (rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24))) | - 0), - (pn[(d + 352) | 0] = a), - (pn[(d + 353) | 0] = a >>> 8), - (pn[(d + 354) | 0] = a >>> 16), - (pn[(d + 355) | 0] = a >>> 24), - Ur(h, 128), - (St = (h + 128) | 0))) - : ((((a = 255 & g) - 65) & 255) >>> 0 <= 191 && - (ss(), so()), - qo((d - -64) | 0, 0, 293), - (pn[(d + 56) | 0] = 121), - (pn[(d + 57) | 0] = 33), - (pn[(d + 58) | 0] = 126), - (pn[(d + 59) | 0] = 19), - (pn[(d + 60) | 0] = 25), - (pn[(d + 61) | 0] = 205), - (pn[(d + 62) | 0] = 224), - (pn[(d + 63) | 0] = 91), - (pn[(d + 48) | 0] = 107), - (pn[(d + 49) | 0] = 189), - (pn[(d + 50) | 0] = 65), - (pn[(d + 51) | 0] = 251), - (pn[(d + 52) | 0] = 171), - (pn[(d + 53) | 0] = 217), - (pn[(d + 54) | 0] = 131), - (pn[(d + 55) | 0] = 31), - (pn[(d + 40) | 0] = 31), - (pn[(d + 41) | 0] = 108), - (pn[(d + 42) | 0] = 62), - (pn[(d + 43) | 0] = 43), - (pn[(d + 44) | 0] = 140), - (pn[(d + 45) | 0] = 104), - (pn[(d + 46) | 0] = 5), - (pn[(d + 47) | 0] = 155), - (pn[(d + 32) | 0] = 209), - (pn[(d + 33) | 0] = 130), - (pn[(d + 34) | 0] = 230), - (pn[(d + 35) | 0] = 173), - (pn[(d + 36) | 0] = 127), - (pn[(d + 37) | 0] = 82), - (pn[(d + 38) | 0] = 14), - (pn[(d + 39) | 0] = 81), - (pn[(d + 24) | 0] = 241), - (pn[(d + 25) | 0] = 54), - (pn[(d + 26) | 0] = 29), - (pn[(d + 27) | 0] = 95), - (pn[(d + 28) | 0] = 58), - (pn[(d + 29) | 0] = 245), - (pn[(d + 30) | 0] = 79), - (pn[(d + 31) | 0] = 165), - (pn[(d + 16) | 0] = 43), - (pn[(d + 17) | 0] = 248), - (pn[(d + 18) | 0] = 148), - (pn[(d + 19) | 0] = 254), - (pn[(d + 20) | 0] = 114), - (pn[(d + 21) | 0] = 243), - (pn[(d + 22) | 0] = 110), - (pn[(d + 23) | 0] = 60), - (pn[(d + 8) | 0] = 59), - (pn[(d + 9) | 0] = 167), - (pn[(d + 10) | 0] = 202), - (pn[(d + 11) | 0] = 132), - (pn[(d + 12) | 0] = 133), - (pn[(d + 13) | 0] = 174), - (pn[(d + 14) | 0] = 103), - (pn[(d + 15) | 0] = 187), - (a ^= -222443256), - (pn[0 | d] = a), - (pn[(d + 1) | 0] = a >>> 8), - (pn[(d + 2) | 0] = a >>> 16), - (pn[(d + 3) | 0] = a >>> 24), - (pn[(d + 4) | 0] = 103), - (pn[(d + 5) | 0] = 230), - (pn[(d + 6) | 0] = 9), - (pn[(d + 7) | 0] = 106)), - (_e = 0)), - 0 | _e - ) - } - function Rs(d, a, h, g) { - ;(d |= 0), (a |= 0), (h |= 0) - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0 - for ( - (g |= 0) - ? ((on = - rn[(g + 8) | 0] | - (rn[(g + 9) | 0] << 8) | - (rn[(g + 10) | 0] << 16) | - (rn[(g + 11) | 0] << 24)), - (hn = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24)), - (_e = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - ($n = - rn[(g + 12) | 0] | - (rn[(g + 13) | 0] << 8) | - (rn[(g + 14) | 0] << 16) | - (rn[(g + 15) | 0] << 24))) - : ((on = 2036477234), - (hn = 857760878), - (_e = 1634760805), - ($n = 1797285236)), - j = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24), - Un = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24), - cn = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24), - Yn = - rn[(h + 28) | 0] | - (rn[(h + 29) | 0] << 8) | - (rn[(h + 30) | 0] << 16) | - (rn[(h + 31) | 0] << 24), - Dn = - rn[(h + 24) | 0] | - (rn[(h + 25) | 0] << 8) | - (rn[(h + 26) | 0] << 16) | - (rn[(h + 27) | 0] << 24), - mt = - rn[(h + 20) | 0] | - (rn[(h + 21) | 0] << 8) | - (rn[(h + 22) | 0] << 16) | - (rn[(h + 23) | 0] << 24), - et = - rn[(h + 16) | 0] | - (rn[(h + 17) | 0] << 8) | - (rn[(h + 18) | 0] << 16) | - (rn[(h + 19) | 0] << 24), - g = - rn[(h + 12) | 0] | - (rn[(h + 13) | 0] << 8) | - (rn[(h + 14) | 0] << 16) | - (rn[(h + 15) | 0] << 24), - nt = - rn[(h + 8) | 0] | - (rn[(h + 9) | 0] << 8) | - (rn[(h + 10) | 0] << 16) | - (rn[(h + 11) | 0] << 24), - at = - rn[(h + 4) | 0] | - (rn[(h + 5) | 0] << 8) | - (rn[(h + 6) | 0] << 16) | - (rn[(h + 7) | 0] << 24), - a = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24), - h = - rn[0 | h] | - (rn[(h + 1) | 0] << 8) | - (rn[(h + 2) | 0] << 16) | - (rn[(h + 3) | 0] << 24); - (wn = h), - (h = Ft((pt = a) ^ (a = (h + _e) | 0), 16)), - (wn = et = Ft(wn ^ (_e = (h + et) | 0), 12)), - (gt = Ft((pt = (a + et) | 0) ^ h, 8)), - (a = Ft(wn ^ (et = (gt + _e) | 0), 7)), - (j = Ft((h = (g + $n) | 0) ^ j, 16)), - (g = Ft((Yn = (j + Yn) | 0) ^ g, 12)), - (wn = nt), - (on = Ft(($n = (on + nt) | 0) ^ Un, 16)), - (_e = Ft(wn ^ (nt = (on + Dn) | 0), 12)), - (Dn = Ft((Dn = on) ^ (on = (_e + $n) | 0), 8)), - (h = Ft(Dn ^ ($n = ((yt = (h + g) | 0) + a) | 0), 16)), - (Un = Ft((hn = (hn + at) | 0) ^ cn, 16)), - (at = Ft((cn = (Un + mt) | 0) ^ at, 12)), - (wn = a), - (a = Ft((hn = (at + hn) | 0) ^ Un, 8)), - (wn = Ft(wn ^ (cn = ((_t = (a + cn) | 0) + h) | 0), 12)), - (Un = Ft(h ^ ($n = (wn + $n) | 0), 8)), - (h = Ft((mt = (Un + cn) | 0) ^ wn, 7)), - (j = Ft(j ^ yt, 8)), - (g = Ft((Yn = (j + Yn) | 0) ^ g, 7)), - (cn = Ft((on = (g + on) | 0) ^ a, 16)), - (g = Ft((a = (cn + et) | 0) ^ g, 12)), - (cn = Ft(cn ^ (on = (g + on) | 0), 8)), - (g = Ft((et = (a + cn) | 0) ^ g, 7)), - (a = Ft((Dn = (Dn + nt) | 0) ^ _e, 7)), - (nt = Ft((hn = (a + hn) | 0) ^ gt, 16)), - (gt = Ft(a ^ (_e = (nt + Yn) | 0), 12)), - (a = Ft(nt ^ (hn = (gt + hn) | 0), 8)), - (nt = Ft((Yn = (_e + a) | 0) ^ gt, 7)), - (wn = Dn), - (Dn = j), - (_e = Ft(at ^ _t, 7)), - (Dn = Ft(Dn ^ (j = (_e + pt) | 0), 16)), - (pt = Ft(_e ^ (at = (wn + Dn) | 0), 12)), - (j = Ft(Dn ^ (_e = (pt + j) | 0), 8)), - (at = Ft((Dn = (at + j) | 0) ^ pt, 7)), - (0 | (bt = (bt + 1) | 0)) != 10; - - ); - return ( - (pn[0 | d] = _e), - (pn[(d + 1) | 0] = _e >>> 8), - (pn[(d + 2) | 0] = _e >>> 16), - (pn[(d + 3) | 0] = _e >>> 24), - (pn[(d + 28) | 0] = j), - (pn[(d + 29) | 0] = j >>> 8), - (pn[(d + 30) | 0] = j >>> 16), - (pn[(d + 31) | 0] = j >>> 24), - (pn[(d + 24) | 0] = Un), - (pn[(d + 25) | 0] = Un >>> 8), - (pn[(d + 26) | 0] = Un >>> 16), - (pn[(d + 27) | 0] = Un >>> 24), - (pn[(d + 20) | 0] = cn), - (pn[(d + 21) | 0] = cn >>> 8), - (pn[(d + 22) | 0] = cn >>> 16), - (pn[(d + 23) | 0] = cn >>> 24), - (pn[(d + 16) | 0] = a), - (pn[(d + 17) | 0] = a >>> 8), - (pn[(d + 18) | 0] = a >>> 16), - (pn[(d + 19) | 0] = a >>> 24), - (pn[(d + 12) | 0] = $n), - (pn[(d + 13) | 0] = $n >>> 8), - (pn[(d + 14) | 0] = $n >>> 16), - (pn[(d + 15) | 0] = $n >>> 24), - (pn[(d + 8) | 0] = on), - (pn[(d + 9) | 0] = on >>> 8), - (pn[(d + 10) | 0] = on >>> 16), - (pn[(d + 11) | 0] = on >>> 24), - (pn[(d + 4) | 0] = hn), - (pn[(d + 5) | 0] = hn >>> 8), - (pn[(d + 6) | 0] = hn >>> 16), - (pn[(d + 7) | 0] = hn >>> 24), - 0 - ) - } - function hs(d, a, h) { - var g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0 - ;(et = c[(a + 40) >> 2]), - (nt = c[(a + 4) >> 2]), - (pt = c[(a + 44) >> 2]), - (gt = c[(a + 8) >> 2]), - (mt = c[(a + 48) >> 2]), - (yt = c[(a + 12) >> 2]), - (_t = c[(a + 52) >> 2]), - (bt = c[(a + 16) >> 2]), - (kt = c[(a + 56) >> 2]), - (Rt = c[(a + 20) >> 2]), - (At = c[(a + 60) >> 2]), - (Ct = c[(a + 24) >> 2]), - (wt = c[(at = (a - -64) | 0) >> 2]), - (Tt = c[(a + 28) >> 2]), - (Jt = c[(a + 68) >> 2]), - (Ht = c[(a + 32) >> 2]), - (Zt = c[(a + 72) >> 2]), - (jt = c[a >> 2]), - (c[(d + 36) >> 2] = c[(a + 36) >> 2] + c[(a + 76) >> 2]), - (c[(d + 32) >> 2] = Ht + Zt), - (c[(d + 28) >> 2] = Tt + Jt), - (c[(d + 24) >> 2] = Ct + wt), - (c[(d + 20) >> 2] = Rt + At), - (c[(d + 16) >> 2] = bt + kt), - (c[(d + 12) >> 2] = yt + _t), - (c[(d + 8) >> 2] = gt + mt), - (c[(d + 4) >> 2] = nt + pt), - (c[d >> 2] = et + jt), - (pt = c[(a + 40) >> 2]), - (et = c[(a + 4) >> 2]), - (gt = c[(a + 44) >> 2]), - (mt = c[(a + 8) >> 2]), - (yt = c[(a + 48) >> 2]), - (_t = c[(a + 12) >> 2]), - (bt = c[(a + 52) >> 2]), - (kt = c[(a + 16) >> 2]), - (Rt = c[(a + 56) >> 2]), - (At = c[(a + 20) >> 2]), - (Ct = c[(a + 60) >> 2]), - (wt = c[(a + 24) >> 2]), - (at = c[at >> 2]), - (nt = c[(a + 28) >> 2]), - (Tt = c[(a + 68) >> 2]), - (Jt = c[(a + 32) >> 2]), - (Ht = c[(a + 72) >> 2]), - (Zt = c[a >> 2]), - (c[(d + 76) >> 2] = c[(a + 76) >> 2] - c[(a + 36) >> 2]), - (c[(d + 72) >> 2] = Ht - Jt), - (c[(d + 68) >> 2] = Tt - nt), - (c[(nt = (d - -64) | 0) >> 2] = at - wt), - (c[(d + 60) >> 2] = Ct - At), - (c[(d + 56) >> 2] = Rt - kt), - (c[(d + 52) >> 2] = bt - _t), - (c[(d + 48) >> 2] = yt - mt), - (c[(d + 44) >> 2] = gt - et), - (c[(et = (d + 40) | 0) >> 2] = pt - Zt), - Gt((d + 80) | 0, d, h), - Gt(et, et, (h + 40) | 0), - Gt((d + 120) | 0, (h + 120) | 0, (a + 120) | 0), - Gt(d, (a + 80) | 0, (h + 80) | 0), - (jt = c[(d + 4) >> 2]), - (on = c[(d + 8) >> 2]), - (hn = c[(d + 12) >> 2]), - (j = c[(d + 16) >> 2]), - (cn = c[(d + 20) >> 2]), - (Dn = c[(d + 24) >> 2]), - ($n = c[(d + 28) >> 2]), - (wn = c[(d + 32) >> 2]), - (Un = c[(d + 36) >> 2]), - (a = c[et >> 2]), - (h = c[(d + 80) >> 2]), - (pt = c[(d + 44) >> 2]), - (gt = c[(d + 84) >> 2]), - (mt = c[(d + 48) >> 2]), - (yt = c[(d + 88) >> 2]), - (_t = c[(d + 52) >> 2]), - (bt = c[(d + 92) >> 2]), - (kt = c[(d + 56) >> 2]), - (Rt = c[(d + 96) >> 2]), - (At = c[(d + 60) >> 2]), - (Ct = c[(d + 100) >> 2]), - (at = c[nt >> 2]), - (wt = c[(d + 104) >> 2]), - (Tt = c[(d + 68) >> 2]), - (Jt = c[(d + 108) >> 2]), - (Ht = c[(d + 72) >> 2]), - (Zt = c[(d + 112) >> 2]), - (Yn = c[d >> 2]), - (g = c[(d + 76) >> 2]), - (_e = c[(d + 116) >> 2]), - (c[(d + 76) >> 2] = g + _e), - (c[(d + 72) >> 2] = Ht + Zt), - (c[(d + 68) >> 2] = Tt + Jt), - (c[nt >> 2] = at + wt), - (c[(d + 60) >> 2] = At + Ct), - (c[(d + 56) >> 2] = kt + Rt), - (c[(d + 52) >> 2] = _t + bt), - (c[(d + 48) >> 2] = mt + yt), - (c[(d + 44) >> 2] = pt + gt), - (c[et >> 2] = a + h), - (c[(d + 36) >> 2] = _e - g), - (c[(d + 32) >> 2] = Zt - Ht), - (c[(d + 28) >> 2] = Jt - Tt), - (c[(d + 24) >> 2] = wt - at), - (c[(d + 20) >> 2] = Ct - At), - (c[(d + 16) >> 2] = Rt - kt), - (c[(d + 12) >> 2] = bt - _t), - (c[(d + 8) >> 2] = yt - mt), - (c[(d + 4) >> 2] = gt - pt), - (c[d >> 2] = h - a), - (a = Un << 1), - (h = c[(d + 156) >> 2]), - (c[(d + 156) >> 2] = a - h), - (et = wn << 1), - (nt = c[(d + 152) >> 2]), - (c[(d + 152) >> 2] = et - nt), - (pt = $n << 1), - (gt = c[(d + 148) >> 2]), - (c[(d + 148) >> 2] = pt - gt), - (mt = Dn << 1), - (yt = c[(d + 144) >> 2]), - (c[(d + 144) >> 2] = mt - yt), - (_t = cn << 1), - (bt = c[(d + 140) >> 2]), - (c[(d + 140) >> 2] = _t - bt), - (kt = j << 1), - (Rt = c[(d + 136) >> 2]), - (c[(d + 136) >> 2] = kt - Rt), - (At = hn << 1), - (Ct = c[(d + 132) >> 2]), - (c[(d + 132) >> 2] = At - Ct), - (at = on << 1), - (wt = c[(d + 128) >> 2]), - (c[(d + 128) >> 2] = at - wt), - (Tt = jt << 1), - (Jt = c[(d + 124) >> 2]), - (c[(d + 124) >> 2] = Tt - Jt), - (Ht = Yn << 1), - (Zt = c[(d + 120) >> 2]), - (c[(d + 120) >> 2] = Ht - Zt), - (c[(d + 112) >> 2] = et + nt), - (c[(d + 108) >> 2] = pt + gt), - (c[(d + 104) >> 2] = mt + yt), - (c[(d + 100) >> 2] = _t + bt), - (c[(d + 96) >> 2] = kt + Rt), - (c[(d + 92) >> 2] = At + Ct), - (c[(d + 88) >> 2] = at + wt), - (c[(d + 84) >> 2] = Tt + Jt), - (c[(d + 80) >> 2] = Ht + Zt), - (c[(d + 116) >> 2] = a + h) - } - function Nu(d, a, h) { - var g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0 - ;(et = c[(a + 40) >> 2]), - (nt = c[(a + 4) >> 2]), - (pt = c[(a + 44) >> 2]), - (gt = c[(a + 8) >> 2]), - (mt = c[(a + 48) >> 2]), - (yt = c[(a + 12) >> 2]), - (_t = c[(a + 52) >> 2]), - (bt = c[(a + 16) >> 2]), - (kt = c[(a + 56) >> 2]), - (Rt = c[(a + 20) >> 2]), - (At = c[(a + 60) >> 2]), - (Ct = c[(a + 24) >> 2]), - (wt = c[(at = (a - -64) | 0) >> 2]), - (Tt = c[(a + 28) >> 2]), - (Jt = c[(a + 68) >> 2]), - (Ht = c[(a + 32) >> 2]), - (Zt = c[(a + 72) >> 2]), - (jt = c[a >> 2]), - (c[(d + 36) >> 2] = c[(a + 36) >> 2] + c[(a + 76) >> 2]), - (c[(d + 32) >> 2] = Ht + Zt), - (c[(d + 28) >> 2] = Tt + Jt), - (c[(d + 24) >> 2] = Ct + wt), - (c[(d + 20) >> 2] = Rt + At), - (c[(d + 16) >> 2] = bt + kt), - (c[(d + 12) >> 2] = yt + _t), - (c[(d + 8) >> 2] = gt + mt), - (c[(d + 4) >> 2] = nt + pt), - (c[d >> 2] = et + jt), - (pt = c[(a + 40) >> 2]), - (et = c[(a + 4) >> 2]), - (gt = c[(a + 44) >> 2]), - (mt = c[(a + 8) >> 2]), - (yt = c[(a + 48) >> 2]), - (_t = c[(a + 12) >> 2]), - (bt = c[(a + 52) >> 2]), - (kt = c[(a + 16) >> 2]), - (Rt = c[(a + 56) >> 2]), - (At = c[(a + 20) >> 2]), - (Ct = c[(a + 60) >> 2]), - (wt = c[(a + 24) >> 2]), - (at = c[at >> 2]), - (nt = c[(a + 28) >> 2]), - (Tt = c[(a + 68) >> 2]), - (Jt = c[(a + 32) >> 2]), - (Ht = c[(a + 72) >> 2]), - (Zt = c[a >> 2]), - (c[(d + 76) >> 2] = c[(a + 76) >> 2] - c[(a + 36) >> 2]), - (c[(d + 72) >> 2] = Ht - Jt), - (c[(d + 68) >> 2] = Tt - nt), - (c[(nt = (d - -64) | 0) >> 2] = at - wt), - (c[(d + 60) >> 2] = Ct - At), - (c[(d + 56) >> 2] = Rt - kt), - (c[(d + 52) >> 2] = bt - _t), - (c[(d + 48) >> 2] = yt - mt), - (c[(d + 44) >> 2] = gt - et), - (c[(et = (d + 40) | 0) >> 2] = pt - Zt), - Gt((d + 80) | 0, d, (h + 40) | 0), - Gt(et, et, h), - Gt((d + 120) | 0, (h + 120) | 0, (a + 120) | 0), - Gt(d, (a + 80) | 0, (h + 80) | 0), - (jt = c[(d + 4) >> 2]), - (on = c[(d + 8) >> 2]), - (hn = c[(d + 12) >> 2]), - (j = c[(d + 16) >> 2]), - (cn = c[(d + 20) >> 2]), - (Dn = c[(d + 24) >> 2]), - ($n = c[(d + 28) >> 2]), - (wn = c[(d + 32) >> 2]), - (Un = c[(d + 36) >> 2]), - (a = c[et >> 2]), - (h = c[(d + 80) >> 2]), - (pt = c[(d + 44) >> 2]), - (gt = c[(d + 84) >> 2]), - (mt = c[(d + 48) >> 2]), - (yt = c[(d + 88) >> 2]), - (_t = c[(d + 52) >> 2]), - (bt = c[(d + 92) >> 2]), - (kt = c[(d + 56) >> 2]), - (Rt = c[(d + 96) >> 2]), - (At = c[(d + 60) >> 2]), - (Ct = c[(d + 100) >> 2]), - (at = c[nt >> 2]), - (wt = c[(d + 104) >> 2]), - (Tt = c[(d + 68) >> 2]), - (Jt = c[(d + 108) >> 2]), - (Ht = c[(d + 72) >> 2]), - (Zt = c[(d + 112) >> 2]), - (Yn = c[d >> 2]), - (g = c[(d + 76) >> 2]), - (_e = c[(d + 116) >> 2]), - (c[(d + 76) >> 2] = g + _e), - (c[(d + 72) >> 2] = Ht + Zt), - (c[(d + 68) >> 2] = Tt + Jt), - (c[nt >> 2] = at + wt), - (c[(d + 60) >> 2] = At + Ct), - (c[(d + 56) >> 2] = kt + Rt), - (c[(d + 52) >> 2] = _t + bt), - (c[(d + 48) >> 2] = mt + yt), - (c[(d + 44) >> 2] = pt + gt), - (c[et >> 2] = a + h), - (c[(d + 36) >> 2] = _e - g), - (c[(d + 32) >> 2] = Zt - Ht), - (c[(d + 28) >> 2] = Jt - Tt), - (c[(d + 24) >> 2] = wt - at), - (c[(d + 20) >> 2] = Ct - At), - (c[(d + 16) >> 2] = Rt - kt), - (c[(d + 12) >> 2] = bt - _t), - (c[(d + 8) >> 2] = yt - mt), - (c[(d + 4) >> 2] = gt - pt), - (c[d >> 2] = h - a), - (a = c[(d + 156) >> 2]), - (h = Un << 1), - (c[(d + 156) >> 2] = a + h), - (et = c[(d + 152) >> 2]), - (nt = wn << 1), - (c[(d + 152) >> 2] = et + nt), - (pt = c[(d + 148) >> 2]), - (gt = $n << 1), - (c[(d + 148) >> 2] = pt + gt), - (mt = c[(d + 144) >> 2]), - (yt = Dn << 1), - (c[(d + 144) >> 2] = mt + yt), - (_t = c[(d + 140) >> 2]), - (bt = cn << 1), - (c[(d + 140) >> 2] = _t + bt), - (kt = c[(d + 136) >> 2]), - (Rt = j << 1), - (c[(d + 136) >> 2] = kt + Rt), - (At = c[(d + 132) >> 2]), - (Ct = hn << 1), - (c[(d + 132) >> 2] = At + Ct), - (at = c[(d + 128) >> 2]), - (wt = on << 1), - (c[(d + 128) >> 2] = at + wt), - (Tt = c[(d + 124) >> 2]), - (Jt = jt << 1), - (c[(d + 124) >> 2] = Tt + Jt), - (Ht = c[(d + 120) >> 2]), - (Zt = Yn << 1), - (c[(d + 120) >> 2] = Ht + Zt), - (c[(d + 112) >> 2] = nt - et), - (c[(d + 108) >> 2] = gt - pt), - (c[(d + 104) >> 2] = yt - mt), - (c[(d + 100) >> 2] = bt - _t), - (c[(d + 96) >> 2] = Rt - kt), - (c[(d + 92) >> 2] = Ct - At), - (c[(d + 88) >> 2] = wt - at), - (c[(d + 84) >> 2] = Jt - Tt), - (c[(d + 80) >> 2] = Zt - Ht), - (c[(d + 116) >> 2] = h - a) - } - function Zu(d, a, h) { - var g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0 - ;(et = c[(a + 40) >> 2]), - (nt = c[(a + 4) >> 2]), - (pt = c[(a + 44) >> 2]), - (gt = c[(a + 8) >> 2]), - (mt = c[(a + 48) >> 2]), - (yt = c[(a + 12) >> 2]), - (_t = c[(a + 52) >> 2]), - (bt = c[(a + 16) >> 2]), - (kt = c[(a + 56) >> 2]), - (Rt = c[(a + 20) >> 2]), - (At = c[(a + 60) >> 2]), - (Ct = c[(a + 24) >> 2]), - (wt = c[(at = (a - -64) | 0) >> 2]), - (Tt = c[(a + 28) >> 2]), - (Jt = c[(a + 68) >> 2]), - (Ht = c[(a + 32) >> 2]), - (Zt = c[(a + 72) >> 2]), - (jt = c[a >> 2]), - (c[(d + 36) >> 2] = c[(a + 36) >> 2] + c[(a + 76) >> 2]), - (c[(d + 32) >> 2] = Ht + Zt), - (c[(d + 28) >> 2] = Tt + Jt), - (c[(d + 24) >> 2] = Ct + wt), - (c[(d + 20) >> 2] = Rt + At), - (c[(d + 16) >> 2] = bt + kt), - (c[(d + 12) >> 2] = yt + _t), - (c[(d + 8) >> 2] = gt + mt), - (c[(d + 4) >> 2] = nt + pt), - (c[d >> 2] = et + jt), - (pt = c[(a + 40) >> 2]), - (et = c[(a + 4) >> 2]), - (gt = c[(a + 44) >> 2]), - (mt = c[(a + 8) >> 2]), - (yt = c[(a + 48) >> 2]), - (_t = c[(a + 12) >> 2]), - (bt = c[(a + 52) >> 2]), - (kt = c[(a + 16) >> 2]), - (Rt = c[(a + 56) >> 2]), - (At = c[(a + 20) >> 2]), - (Ct = c[(a + 60) >> 2]), - (wt = c[(a + 24) >> 2]), - (at = c[at >> 2]), - (nt = c[(a + 28) >> 2]), - (Tt = c[(a + 68) >> 2]), - (Jt = c[(a + 32) >> 2]), - (Ht = c[(a + 72) >> 2]), - (Zt = c[a >> 2]), - (c[(d + 76) >> 2] = c[(a + 76) >> 2] - c[(a + 36) >> 2]), - (c[(d + 72) >> 2] = Ht - Jt), - (c[(d + 68) >> 2] = Tt - nt), - (c[(nt = (d - -64) | 0) >> 2] = at - wt), - (c[(d + 60) >> 2] = Ct - At), - (c[(d + 56) >> 2] = Rt - kt), - (c[(d + 52) >> 2] = bt - _t), - (c[(d + 48) >> 2] = yt - mt), - (c[(d + 44) >> 2] = gt - et), - (c[(et = (d + 40) | 0) >> 2] = pt - Zt), - Gt((d + 80) | 0, d, h), - Gt(et, et, (h + 40) | 0), - Gt((d + 120) | 0, (h + 80) | 0, (a + 120) | 0), - (jt = c[(a + 80) >> 2]), - (on = c[(a + 84) >> 2]), - (hn = c[(a + 88) >> 2]), - (j = c[(a + 92) >> 2]), - (cn = c[(a + 96) >> 2]), - (Dn = c[(a + 100) >> 2]), - ($n = c[(a + 104) >> 2]), - (wn = c[(a + 108) >> 2]), - (Un = c[(a + 112) >> 2]), - (Yn = c[(a + 116) >> 2]), - (a = c[et >> 2]), - (h = c[(d + 80) >> 2]), - (pt = c[(d + 44) >> 2]), - (gt = c[(d + 84) >> 2]), - (mt = c[(d + 48) >> 2]), - (yt = c[(d + 88) >> 2]), - (_t = c[(d + 52) >> 2]), - (bt = c[(d + 92) >> 2]), - (kt = c[(d + 56) >> 2]), - (Rt = c[(d + 96) >> 2]), - (At = c[(d + 60) >> 2]), - (Ct = c[(d + 100) >> 2]), - (at = c[nt >> 2]), - (wt = c[(d + 104) >> 2]), - (Tt = c[(d + 68) >> 2]), - (Jt = c[(d + 108) >> 2]), - (Ht = c[(d + 72) >> 2]), - (Zt = c[(d + 112) >> 2]), - (g = c[(d + 76) >> 2]), - (_e = c[(d + 116) >> 2]), - (c[(d + 76) >> 2] = g + _e), - (c[(d + 72) >> 2] = Ht + Zt), - (c[(d + 68) >> 2] = Tt + Jt), - (c[nt >> 2] = at + wt), - (c[(d + 60) >> 2] = At + Ct), - (c[(d + 56) >> 2] = kt + Rt), - (c[(d + 52) >> 2] = _t + bt), - (c[(d + 48) >> 2] = mt + yt), - (c[(d + 44) >> 2] = pt + gt), - (c[et >> 2] = a + h), - (c[(d + 36) >> 2] = _e - g), - (c[(d + 32) >> 2] = Zt - Ht), - (c[(d + 28) >> 2] = Jt - Tt), - (c[(d + 24) >> 2] = wt - at), - (c[(d + 20) >> 2] = Ct - At), - (c[(d + 16) >> 2] = Rt - kt), - (c[(d + 12) >> 2] = bt - _t), - (c[(d + 8) >> 2] = yt - mt), - (c[(d + 4) >> 2] = gt - pt), - (c[d >> 2] = h - a), - (a = Yn << 1), - (h = c[(d + 156) >> 2]), - (c[(d + 156) >> 2] = a - h), - (et = Un << 1), - (nt = c[(d + 152) >> 2]), - (c[(d + 152) >> 2] = et - nt), - (pt = wn << 1), - (gt = c[(d + 148) >> 2]), - (c[(d + 148) >> 2] = pt - gt), - (mt = $n << 1), - (yt = c[(d + 144) >> 2]), - (c[(d + 144) >> 2] = mt - yt), - (_t = Dn << 1), - (bt = c[(d + 140) >> 2]), - (c[(d + 140) >> 2] = _t - bt), - (kt = cn << 1), - (Rt = c[(d + 136) >> 2]), - (c[(d + 136) >> 2] = kt - Rt), - (At = j << 1), - (Ct = c[(d + 132) >> 2]), - (c[(d + 132) >> 2] = At - Ct), - (at = hn << 1), - (wt = c[(d + 128) >> 2]), - (c[(d + 128) >> 2] = at - wt), - (Tt = on << 1), - (Jt = c[(d + 124) >> 2]), - (c[(d + 124) >> 2] = Tt - Jt), - (Ht = jt << 1), - (Zt = c[(d + 120) >> 2]), - (c[(d + 120) >> 2] = Ht - Zt), - (c[(d + 112) >> 2] = et + nt), - (c[(d + 108) >> 2] = pt + gt), - (c[(d + 104) >> 2] = mt + yt), - (c[(d + 100) >> 2] = _t + bt), - (c[(d + 96) >> 2] = kt + Rt), - (c[(d + 92) >> 2] = At + Ct), - (c[(d + 88) >> 2] = at + wt), - (c[(d + 84) >> 2] = Tt + Jt), - (c[(d + 80) >> 2] = Ht + Zt), - (c[(d + 116) >> 2] = a + h) - } - function Xs(d, a) { - var h, - g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0 - ;(Yn = rn[(a + 31) | 0]), - (h = rn[(a + 30) | 0]), - (g = rn[(a + 29) | 0]), - (_e = rn[(a + 6) | 0]), - (on = rn[(a + 5) | 0]), - (hn = rn[(a + 4) | 0]), - (j = rn[(a + 9) | 0]), - (cn = rn[(a + 8) | 0]), - (Dn = rn[(a + 7) | 0]), - (Rt = rn[(a + 12) | 0]), - (At = rn[(a + 11) | 0]), - ($n = rn[(a + 10) | 0]), - (wn = rn[(a + 15) | 0]), - (Ct = rn[(a + 14) | 0]), - (Un = rn[(a + 13) | 0]), - (_t = rn[(a + 28) | 0]), - (kt = rn[(a + 27) | 0]), - (bt = rn[(a + 26) | 0]), - (yt = rn[(a + 25) | 0]), - (gt = rn[(a + 24) | 0]), - (pt = rn[(a + 23) | 0]), - (et = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (mt = (nt = rn[(a + 21) | 0]) << 15), - (nt = at = (nt >>> 17) | 0), - (Tt = mt), - (at = ((mt = rn[(a + 20) | 0]) >>> 25) | 0), - (mt = Tt | (mt << 7)), - (wt = nt | at), - (nt = ((at = rn[(a + 22) | 0]) >>> 9) | 0), - (mt |= at << 23), - (nt |= wt), - (at = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (a = 0), - (Tt = at), - (at = - ((33554431 & - (a = - (wt = (at + 16777216) | 0) >>> 0 < 16777216 ? 1 : a)) << - 7) | - (wt >>> 25)), - (a = (((a >>> 25) | 0) + nt) | 0), - (at = - (nt = mt = (at + mt) | 0) >>> 0 < at >>> 0 - ? (a + 1) | 0 - : a), - (a = - (mt = (nt + 33554432) | 0) >>> 0 < 33554432 - ? (at + 1) | 0 - : at), - (c[(d + 24) >> 2] = nt - (-67108864 & mt)), - (at = (nt = (pt >>> 27) | 0) | (gt >>> 19) | (yt >>> 11)), - (nt = pt = - ((gt = (yt << 21) | (pt = (gt << 13) | (pt << 5))) + - (nt = ((67108863 & (nt = a)) << 6) | (mt >>> 26))) | - 0), - (a = at), - (at = - (pt = (gt + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a), - (c[(d + 28) >> 2] = nt - (1040187392 & pt)), - (nt = - ((nt = (kt >>> 20) | (bt >>> 28) | (_t >>> 12)) + - (at = ((a = at) >>> 25) | 0)) | - 0), - (a = - (at = pt = - ((a = ((33554431 & a) << 7) | (pt >>> 25)) + - ((kt << 12) | (bt << 4) | (_t << 20))) | - 0) >>> - 0 < - a >>> 0 - ? (nt + 1) | 0 - : nt), - (pt = - (_t = (at + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a), - (c[(d + 32) >> 2] = at - (-67108864 & _t)), - (nt = - (a = (Rt >>> 13) | 0) | (at = (At >>> 21) | ($n >>> 29))), - (a = - ((nt = - (kt = - (16777216 + - (Rt = (At << 11) | ($n << 3) | (Rt << 19))) | - 0) >>> - 0 < - 16777216 - ? (nt + 1) | 0 - : nt) >>> - 25) | - 0), - (nt = - ((at = gt = (Ct << 10) | (Un << 2) | (wn << 18)) + - (gt = ((33554431 & nt) << 7) | (kt >>> 25))) | - 0), - (at = - (a + (yt = (Ct >>> 22) | (Un >>> 30) | (wn >>> 14))) | 0), - (a = nt >>> 0 < gt >>> 0 ? (at + 1) | 0 : at), - (gt = a = - ((67108863 & - (a = - (at = (nt + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a)) << - 6) | - (at >>> 26)), - (a = (a + (bt = (Tt - (-33554432 & wt)) | 0)) | 0), - (c[(d + 20) >> 2] = a), - (c[(d + 16) >> 2] = nt - (-67108864 & at)), - (at = (on >>> 18) | (hn >>> 26) | (_e >>> 10)), - (nt = - ((at = - (bt = - (16777216 + - (At = (on << 14) | (hn << 6) | (_e << 22))) | - 0) >>> - 0 < - 16777216 - ? (at + 1) | 0 - : at) >>> - 25) | - 0), - (at = - ((a = gt = (cn << 13) | (Dn << 5) | (j << 21)) + - (gt = ((33554431 & at) << 7) | (bt >>> 25))) | - 0), - (a = - (nt + (yt = (cn >>> 19) | (Dn >>> 27) | (j >>> 11))) | 0), - (a = at >>> 0 < gt >>> 0 ? (a + 1) | 0 : a), - (nt = - (yt = (at + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a), - (c[(d + 8) >> 2] = at - (-67108864 & yt)), - (_t = - ((pt = ((67108863 & pt) << 6) | (_t >>> 26)) + - (Ct = ((Yn << 18) & 33292288) | (h << 10) | (g << 2))) | - 0), - (a = at = (h >>> 22) | (g >>> 30)), - (at = - (pt = (Ct + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a), - (c[(d + 36) >> 2] = _t - (33554432 & pt)), - (nt = (Rt + (((67108863 & nt) << 6) | (yt >>> 26))) | 0), - (c[(d + 12) >> 2] = nt - (234881024 & kt)), - (gt = (At - (2113929216 & bt)) | 0), - (nt = jn( - ((33554431 & (a = at)) << 7) | (pt >>> 25), - (at = (a >>> 25) | 0), - 19, - 0, - )), - (a = On), - (nt = - nt >>> 0 > (at = (nt + et) | 0) >>> 0 ? (a + 1) | 0 : a), - (pt = nt = - ((67108863 & - (nt = - (a = (at + 33554432) | 0) >>> 0 < 33554432 - ? (nt + 1) | 0 - : nt)) << - 6) | - (a >>> 26)), - (nt = (nt + gt) | 0), - (c[(d + 4) >> 2] = nt), - (c[d >> 2] = at - (-67108864 & a)) - } - function fu(d, a) { - var h, - g, - _e, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0 - for ( - St = h = (St - 480) | 0; - (hn = ((j = (h + 288) | 0) + (on << 1)) | 0), - (Un = rn[(a + on) | 0]), - (pn[(hn + 1) | 0] = Un >>> 4), - (pn[0 | hn] = 15 & Un), - (j = (j + ((hn = 1 | on) << 1)) | 0), - (hn = rn[(a + hn) | 0]), - (pn[(j + 1) | 0] = hn >>> 4), - (pn[0 | j] = 15 & hn), - (0 | (on = (on + 2) | 0)) != 32; - - ); - for ( - a = 0; - (on = - (8 + - (j = - ((on = a) + rn[0 | (a = (((h + 288) | 0) + cn) | 0)]) | - 0)) | - 0), - (pn[0 | a] = j - (240 & on)), - (on = - (8 + - (j = - (rn[(a + 1) | 0] + (((on << 24) >> 24) >> 4)) | 0)) | - 0), - (pn[(a + 1) | 0] = j - (240 & on)), - (on = - (8 + - (j = - (rn[(a + 2) | 0] + (((on << 24) >> 24) >> 4)) | 0)) | - 0), - (pn[(a + 2) | 0] = j - (240 & on)), - (a = ((on << 24) >> 24) >> 4), - (0 | (cn = (cn + 3) | 0)) != 63; - - ); - for ( - pn[(h + 351) | 0] = rn[(h + 351) | 0] + a, - c[(d + 32) >> 2] = 0, - c[(d + 36) >> 2] = 0, - c[(d + 24) >> 2] = 0, - c[(d + 28) >> 2] = 0, - c[(d + 16) >> 2] = 0, - c[(d + 20) >> 2] = 0, - c[(d + 8) >> 2] = 0, - c[(d + 12) >> 2] = 0, - c[d >> 2] = 0, - c[(d + 4) >> 2] = 0, - c[(d + 44) >> 2] = 0, - c[(d + 48) >> 2] = 0, - c[(Un = (d + 40) | 0) >> 2] = 1, - c[(d + 52) >> 2] = 0, - c[(d + 56) >> 2] = 0, - c[(d + 60) >> 2] = 0, - c[(d + 64) >> 2] = 0, - c[(d + 68) >> 2] = 0, - c[(d + 72) >> 2] = 0, - c[(d + 76) >> 2] = 0, - c[(d + 80) >> 2] = 1, - qo((d + 84) | 0, 0, 76), - g = (d + 120) | 0, - _e = (d + 80) | 0, - a = (h + 208) | 0, - j = (h + 168) | 0, - cn = (h + 248) | 0, - on = 1; - Io( - (Dn = (h + 8) | 0), - (on >>> 1) | 0, - pn[(((h + 288) | 0) + on) | 0], - ), - Zu((hn = (h + 128) | 0), d, Dn), - Gt(d, hn, cn), - Gt(Un, j, a), - Gt(_e, a, cn), - Gt(g, hn, j), - (hn = on >>> 0 < 62), - (on = (on + 2) | 0), - hn; - - ); - for ( - on = c[(d + 8) >> 2], - hn = c[(d + 12) >> 2], - Dn = c[(d + 16) >> 2], - $n = c[(d + 20) >> 2], - Yn = c[(d + 24) >> 2], - et = c[(d + 28) >> 2], - wn = c[d >> 2], - nt = c[(d + 4) >> 2], - at = c[(d + 36) >> 2], - c[(h + 392) >> 2] = c[(d + 32) >> 2], - c[(h + 396) >> 2] = at, - c[(h + 384) >> 2] = Yn, - c[(h + 388) >> 2] = et, - c[(h + 376) >> 2] = Dn, - c[(h + 380) >> 2] = $n, - c[(h + 368) >> 2] = on, - c[(h + 372) >> 2] = hn, - c[(h + 360) >> 2] = wn, - c[(h + 364) >> 2] = nt, - on = c[(d + 40) >> 2], - hn = c[(d + 44) >> 2], - Dn = c[(d + 48) >> 2], - $n = c[(d + 52) >> 2], - Yn = c[(d + 56) >> 2], - et = c[(d + 60) >> 2], - nt = c[(wn = (d - -64) | 0) >> 2], - wn = c[(wn + 4) >> 2], - at = c[(d + 76) >> 2], - c[(h + 432) >> 2] = c[(d + 72) >> 2], - c[(h + 436) >> 2] = at, - c[(h + 424) >> 2] = nt, - c[(h + 428) >> 2] = wn, - c[(h + 416) >> 2] = Yn, - c[(h + 420) >> 2] = et, - c[(h + 408) >> 2] = Dn, - c[(h + 412) >> 2] = $n, - c[(h + 400) >> 2] = on, - c[(h + 404) >> 2] = hn, - on = c[(d + 80) >> 2], - hn = c[(d + 84) >> 2], - Dn = c[(d + 88) >> 2], - $n = c[(d + 92) >> 2], - Yn = c[(d + 96) >> 2], - et = c[(d + 100) >> 2], - wn = c[(d + 104) >> 2], - nt = c[(d + 108) >> 2], - at = c[(d + 116) >> 2], - c[(h + 472) >> 2] = c[(d + 112) >> 2], - c[(h + 476) >> 2] = at, - c[(h + 464) >> 2] = wn, - c[(h + 468) >> 2] = nt, - c[(h + 456) >> 2] = Yn, - c[(h + 460) >> 2] = et, - c[(h + 448) >> 2] = Dn, - c[(h + 452) >> 2] = $n, - c[(h + 440) >> 2] = on, - c[(h + 444) >> 2] = hn, - ot((on = (h + 128) | 0), (hn = (h + 360) | 0)), - Gt(hn, on, cn), - Gt((Dn = (h + 400) | 0), j, a), - Gt(($n = (h + 440) | 0), a, cn), - ot(on, hn), - Gt(hn, on, cn), - Gt(Dn, j, a), - Gt($n, a, cn), - ot(on, hn), - Gt(hn, on, cn), - Gt(Dn, j, a), - Gt($n, a, cn), - ot(on, hn), - Gt(d, on, cn), - Gt(Un, j, a), - Gt(_e, a, cn), - Gt(g, on, j), - on = 0; - Io( - (Dn = (h + 8) | 0), - (on >>> 1) | 0, - pn[(((h + 288) | 0) + on) | 0], - ), - Zu((hn = (h + 128) | 0), d, Dn), - Gt(d, hn, cn), - Gt(Un, j, a), - Gt(_e, a, cn), - Gt(g, hn, j), - (hn = on >>> 0 < 62), - (on = (on + 2) | 0), - hn; - - ); - St = (h + 480) | 0 - } - function zu(d, a, h, g, _e, on, hn, j) { - ;(d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0) - var cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0 - e: { - n: { - t: { - r: { - a: { - u: { - s: { - c: { - i: { - o: { - d: { - if ((-7 & (j |= 0)) == 1) { - if ((($n = 0), !g)) break c - if (4 & j) break d - for (;;) { - $n = Dn - l: { - A: { - f: { - p: { - for (;;) { - if ( - ((cn = - ((cn = - ((wn = - pn[(h + $n) | 0]) - - 65) | - 0) & - ((((90 - wn) ^ -1) & - (-1 ^ cn)) >>> - 8) & - 255) | - ((wn + 4) & - ((((wn + 65488) ^ - -1) & - ((57 - wn) ^ - -1)) >>> - 8) & - 255) | - ((wn + 185) & - ((((wn + 65439) ^ - -1) & - ((122 - wn) ^ - -1)) >>> - 8) & - 255) | - ((((1 + (16336 ^ wn)) ^ - -1) >>> - 8) & - 63) | - ((((1 + (16340 ^ wn)) ^ - -1) >>> - 8) & - 62)), - (0 | - (cn |= - (((cn - 1) & - (1 + - (65470 ^ wn))) >>> - 8) & - 255)) != - 255) - ) - break p - if (((cn = 0), !_e)) break i - if (!Uu(_e, wn)) break - if ( - ($n = ($n + 1) | 0) >>> - 0 >= - g >>> 0 - ) - break f - } - Dn = $n - break i - } - if ( - ((et = (cn + (et << 6)) | 0), - Un >>> 0 > 1) - ) - break A - Un = (Un + 6) | 0 - break l - } - Dn = - (d = (Dn + 1) | 0) >>> 0 < - g >>> 0 - ? g - : d - break i - } - if ( - ((Un = (Un - 2) | 0), - a >>> 0 <= Yn >>> 0) - ) - break o - ;(pn[(d + Yn) | 0] = et >>> Un), - (Yn = (Yn + 1) | 0) - } - if ( - ((cn = 0), - !( - (Dn = ($n + 1) | 0) >>> 0 < - g >>> 0 - )) - ) - break - } - break i - } - ss(), so() - } - d: for (;;) { - for ($n = Dn; ; ) { - l: { - if ( - ((cn = - ((cn = - ((wn = pn[(h + $n) | 0]) - 65) | - 0) & - ((((90 - wn) ^ -1) & - (-1 ^ cn)) >>> - 8) & - 255) | - ((wn + 4) & - ((((wn + 65488) ^ -1) & - ((57 - wn) ^ -1)) >>> - 8) & - 255) | - ((wn + 185) & - ((((wn + 65439) ^ -1) & - ((122 - wn) ^ -1)) >>> - 8) & - 255) | - ((((1 + (16288 ^ wn)) ^ -1) >>> - 8) & - 63) | - ((((1 + (16338 ^ wn)) ^ -1) >>> - 8) & - 62)), - (0 | - (cn |= - (((cn - 1) & - (1 + (65470 ^ wn))) >>> - 8) & - 255)) == - 255) - ) { - if (((cn = 0), !_e)) break i - if (Uu(_e, wn)) break l - Dn = $n - break i - } - if ( - ((et = (cn + (et << 6)) | 0), - Un >>> 0 < 2) - ) - Un = (Un + 6) | 0 - else { - if ( - ((Un = (Un - 2) | 0), - a >>> 0 <= Yn >>> 0) - ) - break o - ;(pn[(d + Yn) | 0] = et >>> Un), - (Yn = (Yn + 1) | 0) - } - if ( - ((cn = 0), - (Dn = ($n + 1) | 0) >>> 0 < g >>> 0) - ) - continue d - break i - } - if ( - !(($n = ($n + 1) | 0) >>> 0 < g >>> 0) - ) - break - } - break - } - Dn = - (d = (Dn + 1) | 0) >>> 0 < g >>> 0 ? g : d - break i - } - ;(Dn = $n), (c[9129] = 68), (cn = 1) - } - if (Un >>> 0 > 4) break s - $n = Dn - } - if (((d = $n), (a = -1), cn)) { - Dn = d - break e - } - if (((-1 << Un) ^ -1) & et) { - Dn = d - break e - } - if (2 & j) { - j = d - break a - } - if (Un >>> 0 < 2) { - j = d - break a - } - if ( - ((Dn = d >>> 0 > g >>> 0 ? d : g), - ($n = (Un >>> 1) | 0), - !_e) - ) - break u - for (j = d; ; ) { - if ((0 | j) == (0 | Dn)) { - cn = 68 - break r - } - if ((0 | (d = pn[(h + j) | 0])) != 61) { - if (!Uu(_e, d)) { - ;(cn = 28), (Dn = j) - break r - } - } else $n = ($n - 1) | 0 - if (((j = (j + 1) | 0), !$n)) break - } - break a - } - a = -1 - break e - } - if (((cn = 68), d >>> 0 >= g >>> 0)) break r - if (rn[(d + h) | 0] != 61) { - ;(Dn = d), (cn = 28) - break r - } - if (((j = (d + $n) | 0), (0 | $n) != 1)) { - if ((0 | (Un = (d + 1) | 0)) == (0 | Dn)) break r - if (rn[(h + Un) | 0] != 61) { - ;(Dn = Un), (cn = 28) - break r - } - if ( - (0 | $n) != 2 && - ((0 | (d = (d + 2) | 0)) == (0 | Dn) || - ((cn = 28), (Dn = d), rn[(d + h) | 0] != 61)) - ) - break r - } - } - if (((a = 0), _e)) break t - break n - } - c[9129] = cn - break e - } - if (!(g >>> 0 <= j >>> 0)) { - for (;;) { - if (!Uu(_e, pn[(h + j) | 0])) break n - if ((0 | (j = (j + 1) | 0)) == (0 | g)) break - } - j = g - } - } - ;(Dn = j), (nt = Yn) - } - return ( - hn - ? (c[hn >> 2] = h + Dn) - : (0 | g) != (0 | Dn) && ((c[9129] = 28), (a = -1)), - on && (c[on >> 2] = nt), - 0 | a - ) - } - function js(d, a, h, g) { - ;(d |= 0), (a |= 0), (h |= 0) - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0 - for ( - (g |= 0) - ? ((_e = - rn[(g + 12) | 0] | - (rn[(g + 13) | 0] << 8) | - (rn[(g + 14) | 0] << 16) | - (rn[(g + 15) | 0] << 24)), - (cn = - rn[(g + 8) | 0] | - (rn[(g + 9) | 0] << 8) | - (rn[(g + 10) | 0] << 16) | - (rn[(g + 11) | 0] << 24)), - (Dn = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24)), - (g = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24))) - : ((_e = 1797285236), - (cn = 2036477234), - (Dn = 857760878), - (g = 1634760805)), - on = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24), - j = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24), - hn = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24), - pt = - rn[(h + 28) | 0] | - (rn[(h + 29) | 0] << 8) | - (rn[(h + 30) | 0] << 16) | - (rn[(h + 31) | 0] << 24), - at = - rn[(h + 24) | 0] | - (rn[(h + 25) | 0] << 8) | - (rn[(h + 26) | 0] << 16) | - (rn[(h + 27) | 0] << 24), - gt = 20, - et = - rn[(h + 20) | 0] | - (rn[(h + 21) | 0] << 8) | - (rn[(h + 22) | 0] << 16) | - (rn[(h + 23) | 0] << 24), - nt = - rn[(h + 16) | 0] | - (rn[(h + 17) | 0] << 8) | - (rn[(h + 18) | 0] << 16) | - (rn[(h + 19) | 0] << 24), - wn = - rn[(h + 12) | 0] | - (rn[(h + 13) | 0] << 8) | - (rn[(h + 14) | 0] << 16) | - (rn[(h + 15) | 0] << 24), - Un = - rn[(h + 8) | 0] | - (rn[(h + 9) | 0] << 8) | - (rn[(h + 10) | 0] << 16) | - (rn[(h + 11) | 0] << 24), - Yn = - rn[(h + 4) | 0] | - (rn[(h + 5) | 0] << 8) | - (rn[(h + 6) | 0] << 16) | - (rn[(h + 7) | 0] << 24), - a = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24), - h = - rn[0 | h] | - (rn[(h + 1) | 0] << 8) | - (rn[(h + 2) | 0] << 16) | - (rn[(h + 3) | 0] << 24); - ($n = Ft((h + Dn) | 0, 7) ^ on), - (mt = Ft(($n + Dn) | 0, 9) ^ at), - (wn = Ft((g + et) | 0, 7) ^ wn), - (yt = Ft((wn + g) | 0, 9) ^ j), - (_t = Ft((yt + wn) | 0, 13) ^ et), - (Un = Ft((_e + nt) | 0, 7) ^ Un), - (hn = Ft((Un + _e) | 0, 9) ^ hn), - (j = Ft((hn + Un) | 0, 13) ^ nt), - (_e = Ft((hn + j) | 0, 18) ^ _e), - (on = Ft((a + cn) | 0, 7) ^ pt), - (et = _t ^ Ft((_e + on) | 0, 7)), - (at = mt ^ Ft((et + _e) | 0, 9)), - (pt = Ft((et + at) | 0, 13) ^ on), - (_e = Ft((at + pt) | 0, 18) ^ _e), - (Yn = Ft((on + cn) | 0, 9) ^ Yn), - (bt = Ft((Yn + on) | 0, 13) ^ a), - (a = Ft((bt + Yn) | 0, 18) ^ cn), - (nt = Ft((a + $n) | 0, 7) ^ j), - (j = Ft((nt + a) | 0, 9) ^ yt), - (on = Ft((j + nt) | 0, 13) ^ $n), - (cn = Ft((on + j) | 0, 18) ^ a), - ($n = Ft(($n + mt) | 0, 13) ^ h), - (h = Ft(($n + mt) | 0, 18) ^ Dn), - (a = Ft((h + wn) | 0, 7) ^ bt), - (hn = Ft((a + h) | 0, 9) ^ hn), - (wn = Ft((a + hn) | 0, 13) ^ wn), - (Dn = Ft((hn + wn) | 0, 18) ^ h), - (g = Ft((yt + _t) | 0, 18) ^ g), - (h = Ft((g + Un) | 0, 7) ^ $n), - (Yn = Ft((h + g) | 0, 9) ^ Yn), - (Un = Ft((h + Yn) | 0, 13) ^ Un), - (g = Ft((Yn + Un) | 0, 18) ^ g), - ($n = gt >>> 0 > 2), - (gt = (gt - 2) | 0), - $n; - - ); - return ( - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 28) | 0] = on), - (pn[(d + 29) | 0] = on >>> 8), - (pn[(d + 30) | 0] = on >>> 16), - (pn[(d + 31) | 0] = on >>> 24), - (pn[(d + 24) | 0] = j), - (pn[(d + 25) | 0] = j >>> 8), - (pn[(d + 26) | 0] = j >>> 16), - (pn[(d + 27) | 0] = j >>> 24), - (pn[(d + 20) | 0] = hn), - (pn[(d + 21) | 0] = hn >>> 8), - (pn[(d + 22) | 0] = hn >>> 16), - (pn[(d + 23) | 0] = hn >>> 24), - (pn[(d + 16) | 0] = a), - (pn[(d + 17) | 0] = a >>> 8), - (pn[(d + 18) | 0] = a >>> 16), - (pn[(d + 19) | 0] = a >>> 24), - (pn[(d + 12) | 0] = _e), - (pn[(d + 13) | 0] = _e >>> 8), - (pn[(d + 14) | 0] = _e >>> 16), - (pn[(d + 15) | 0] = _e >>> 24), - (pn[(d + 8) | 0] = cn), - (pn[(d + 9) | 0] = cn >>> 8), - (pn[(d + 10) | 0] = cn >>> 16), - (pn[(d + 11) | 0] = cn >>> 24), - (pn[(d + 4) | 0] = Dn), - (pn[(d + 5) | 0] = Dn >>> 8), - (pn[(d + 6) | 0] = Dn >>> 16), - (pn[(d + 7) | 0] = Dn >>> 24), - 0 - ) - } - function ms(d, a, h, g) { - var _e, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0 - if (((St = _e = (St - 704) | 0), h | g)) - if ( - ((on = - (((g << 3) | (h >>> 29)) + (hn = j = c[(d + 76) >> 2])) | - 0), - (Dn = (($n = c[(d + 72) >> 2]) + (cn = h << 3)) | 0), - (c[(d + 72) >> 2] = Dn), - (on = cn >>> 0 > Dn >>> 0 ? (on + 1) | 0 : on), - (c[(d + 76) >> 2] = on), - (j = c[(4 + (cn = (d - -64) | 0)) >> 2]), - (j = - (wn = on = - (((0 | on) == (0 | hn)) & (Dn >>> 0 < $n >>> 0)) | - (on >>> 0 < hn >>> 0)) >>> - 0 > - (on = (on + c[cn >> 2]) | 0) >>> 0 - ? (j + 1) | 0 - : j), - (Dn = ((wn = (g >>> 29) | 0) + on) | 0), - (on = j), - (c[cn >> 2] = Dn), - (c[(cn + 4) >> 2] = - Dn >>> 0 < wn >>> 0 ? (on + 1) | 0 : on), - (((0 | - (j = wn = - (0 - - (((on = 0) + - ((cn = 127 & (((7 & hn) << 29) | ($n >>> 3))) >>> - 0 > - 128)) | - 0)) | - 0)) == - (0 | g)) & - (h >>> 0 >= (Dn = (128 - cn) | 0) >>> 0)) | - (g >>> 0 > j >>> 0)) - ) { - if ( - ((hn = 0), (j = 0), (!on & ((127 ^ cn) >>> 0 >= 3)) | on) - ) - for ( - at = 252 & Dn, $n = (d + 80) | 0; - (pn[((on = (hn + cn) | 0) + $n) | 0] = - rn[(a + hn) | 0]), - (pn[($n + ((cn + (on = 1 | hn)) | 0)) | 0] = - rn[(a + on) | 0]), - (pn[($n + ((cn + (on = 2 | hn)) | 0)) | 0] = - rn[(a + on) | 0]), - (pn[($n + ((cn + (on = 3 | hn)) | 0)) | 0] = - rn[(a + on) | 0]), - (on = j), - (j = - (hn = (hn + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - (on = Yn), - (Yn = on = - (et = (et + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - ((0 | et) != (0 | at)) | ((0 | nt) != (0 | on)); - - ); - if ((($n = on = 0), on | (Yn = 3 & Dn))) - for ( - ; - (pn[(80 + ((d + (on = (hn + cn) | 0)) | 0)) | 0] = - rn[(a + hn) | 0]), - (on = j), - (j = (hn = (hn + 1) | 0) ? on : (on + 1) | 0), - (on = nt), - (nt = on = (Un = (Un + 1) | 0) ? on : (on + 1) | 0), - ((0 | Yn) != (0 | Un)) | ((0 | $n) != (0 | on)); - - ); - if ( - (ku(d, (d + 80) | 0, _e, (hn = (_e + 640) | 0)), - (a = (a + Dn) | 0), - (!(g = (g - (((h >>> 0 < Dn >>> 0) + wn) | 0)) | 0) & - ((h = (h - Dn) | 0) >>> 0 > 127)) | - g) - ) - for ( - ; - ku(d, a, _e, hn), - (a = (a + 128) | 0), - (!(g = (g - (h >>> 0 < 128)) | 0) & - ((h = (h - 128) | 0) >>> 0 > 127)) | - g; - - ); - if (h | g) { - if ( - ((et = 3 & h), - (Dn = 0), - (Un = 0), - (nt = 0), - (hn = 0), - (j = 0), - (!g & (h >>> 0 >= 4)) | g) - ) - for ( - cn = -4 & h, $n = g, Yn = (d + 80) | 0, h = 0, g = 0; - (pn[(hn + Yn) | 0] = rn[(a + hn) | 0]), - (pn[((on = 1 | hn) + Yn) | 0] = rn[(a + on) | 0]), - (pn[((on = 2 | hn) + Yn) | 0] = rn[(a + on) | 0]), - (pn[((on = 3 | hn) + Yn) | 0] = rn[(a + on) | 0]), - (on = j), - (j = - (hn = (hn + 4) | 0) >>> 0 < 4 - ? (on + 1) | 0 - : on), - (on = g), - (g = on = - (h = (h + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - ((0 | h) != (0 | cn)) | ((0 | $n) != (0 | on)); - - ); - if (Dn | et) - for ( - ; - (pn[(80 + ((d + hn) | 0)) | 0] = rn[(a + hn) | 0]), - (j = (hn = (hn + 1) | 0) ? j : (j + 1) | 0), - (on = nt), - (nt = on = (Un = (Un + 1) | 0) ? on : (on + 1) | 0), - ((0 | Un) != (0 | et)) | ((0 | Dn) != (0 | on)); - - ); - } - Ur(_e, 704) - } else { - if (((hn = 0), (j = 0), (!g & (h >>> 0 >= 4)) | g)) - for ( - Dn = -4 & h, $n = g, g = (d + 80) | 0; - (pn[(g + (on = (hn + cn) | 0)) | 0] = rn[(a + hn) | 0]), - (pn[(g + (wn = (cn + (on = 1 | hn)) | 0)) | 0] = - rn[(a + on) | 0]), - (pn[(g + (wn = (cn + (on = 2 | hn)) | 0)) | 0] = - rn[(a + on) | 0]), - (pn[(g + (wn = (cn + (on = 3 | hn)) | 0)) | 0] = - rn[(a + on) | 0]), - (on = j), - (j = - (hn = (hn + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - (on = Yn), - (Yn = on = - (et = (et + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - ((0 | Dn) != (0 | et)) | ((0 | $n) != (0 | on)); - - ); - if ((h &= 3) | (g = 0)) - for ( - ; - (pn[(80 + ((d + (on = (hn + cn) | 0)) | 0)) | 0] = - rn[(a + hn) | 0]), - (j = (hn = (hn + 1) | 0) ? j : (j + 1) | 0), - (on = nt), - (nt = on = (Un = (Un + 1) | 0) ? on : (on + 1) | 0), - ((0 | h) != (0 | Un)) | ((0 | g) != (0 | on)); - - ); - } - return (St = (_e + 704) | 0), 0 - } - function E0(d, a) { - d |= 0 - var h, - g, - _e, - on, - hn, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0 - for ( - St = h = (St - 736) | 0, - Cr((wn = (h + 704) | 0), (a |= 0), a), - Cr((cn = (h + 224) | 0), a, wn), - Cr(($n = (h + 672) | 0), a, cn), - Cr((Dn = (h + 640) | 0), $n, $n), - Cr((g = (h + 416) | 0), wn, Dn), - Cr((wn = (h + 320) | 0), a, g), - Cr((j = (h + 608) | 0), Dn, Dn), - Cr((Dn = (h + 288) | 0), wn, wn), - Cr((Un = (h + 576) | 0), g, Dn), - Cr((hn = (h + 448) | 0), j, Dn), - Cr((_e = (h + 544) | 0), Un, Un), - Cr((Un = (h + 384) | 0), j, _e), - Cr((on = (h + 352) | 0), cn, Un), - Cr((cn = (h + 192) | 0), j, on), - Cr((j = (h + 160) | 0), $n, cn), - Cr((h + 96) | 0, $n, j), - Cr((cn = (h + 512) | 0), _e, on), - Cr((j = (h + 480) | 0), $n, cn), - Cr((cn = (h + 256) | 0), hn, j), - Cr((h + 128) | 0, Dn, cn), - Cr((Dn = (h - -64) | 0), Un, j), - Cr((j = (h + 32) | 0), $n, Dn), - Cr(h, g, j), - Cr(d, wn, h), - $n = 0; - Cr(d, d, d), (0 | ($n = ($n + 1) | 0)) != 126; - - ); - return ( - Cr(d, d, (h + 352) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 704) | 0), - Cr(d, d, h), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 160) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, h), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 256) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h - -64) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 96) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 320) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 512) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 192) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 480) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, h), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 128) | 0), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, d), - Cr(d, d, (h + 32) | 0), - (St = (h + 736) | 0), - (0 - Qs(a, 32)) | 0 - ) - } - function v0(d, a, h) { - d |= 0 - var g, - _e, - on, - hn, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0 - return ( - (St = on = (St - 160) | 0), - Tu((a |= 0), (h |= 0), 32, 0), - (pn[0 | a] = 248 & rn[0 | a]), - (pn[(a + 31) | 0] = (63 & rn[(a + 31) | 0]) | 64), - fu(on, a), - gu(d, on), - (cn = - rn[((_e = h) + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24)), - (j = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (Dn = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - ($n = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (wn = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (h = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (hn = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (g = a), - (a = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (pn[(g + 24) | 0] = a), - (pn[(g + 25) | 0] = a >>> 8), - (pn[(g + 26) | 0] = a >>> 16), - (pn[(g + 27) | 0] = a >>> 24), - (pn[(g + 28) | 0] = hn), - (pn[(g + 29) | 0] = hn >>> 8), - (pn[(g + 30) | 0] = hn >>> 16), - (pn[(g + 31) | 0] = hn >>> 24), - (pn[(g + 16) | 0] = Dn), - (pn[(g + 17) | 0] = Dn >>> 8), - (pn[(g + 18) | 0] = Dn >>> 16), - (pn[(g + 19) | 0] = Dn >>> 24), - (pn[(g + 20) | 0] = $n), - (pn[(g + 21) | 0] = $n >>> 8), - (pn[(g + 22) | 0] = $n >>> 16), - (pn[(g + 23) | 0] = $n >>> 24), - (pn[(g + 8) | 0] = cn), - (pn[(g + 9) | 0] = cn >>> 8), - (pn[(g + 10) | 0] = cn >>> 16), - (pn[(g + 11) | 0] = cn >>> 24), - (pn[(g + 12) | 0] = j), - (pn[(g + 13) | 0] = j >>> 8), - (pn[(g + 14) | 0] = j >>> 16), - (pn[(g + 15) | 0] = j >>> 24), - (pn[0 | g] = wn), - (pn[(g + 1) | 0] = wn >>> 8), - (pn[(g + 2) | 0] = wn >>> 16), - (pn[(g + 3) | 0] = wn >>> 24), - (pn[(g + 4) | 0] = h), - (pn[(g + 5) | 0] = h >>> 8), - (pn[(g + 6) | 0] = h >>> 16), - (pn[(g + 7) | 0] = h >>> 24), - (Dn = - rn[((j = d) + 8) | 0] | - (rn[(j + 9) | 0] << 8) | - (rn[(j + 10) | 0] << 16) | - (rn[(j + 11) | 0] << 24)), - ($n = - rn[(j + 12) | 0] | - (rn[(j + 13) | 0] << 8) | - (rn[(j + 14) | 0] << 16) | - (rn[(j + 15) | 0] << 24)), - (wn = - rn[(j + 16) | 0] | - (rn[(j + 17) | 0] << 8) | - (rn[(j + 18) | 0] << 16) | - (rn[(j + 19) | 0] << 24)), - (h = - rn[(j + 20) | 0] | - (rn[(j + 21) | 0] << 8) | - (rn[(j + 22) | 0] << 16) | - (rn[(j + 23) | 0] << 24)), - (a = - rn[0 | j] | - (rn[(j + 1) | 0] << 8) | - (rn[(j + 2) | 0] << 16) | - (rn[(j + 3) | 0] << 24)), - (d = - rn[(j + 4) | 0] | - (rn[(j + 5) | 0] << 8) | - (rn[(j + 6) | 0] << 16) | - (rn[(j + 7) | 0] << 24)), - (cn = - rn[(j + 28) | 0] | - (rn[(j + 29) | 0] << 8) | - (rn[(j + 30) | 0] << 16) | - (rn[(j + 31) | 0] << 24)), - (j = - rn[(j + 24) | 0] | - (rn[(j + 25) | 0] << 8) | - (rn[(j + 26) | 0] << 16) | - (rn[(j + 27) | 0] << 24)), - (pn[(g + 56) | 0] = j), - (pn[(g + 57) | 0] = j >>> 8), - (pn[(g + 58) | 0] = j >>> 16), - (pn[(g + 59) | 0] = j >>> 24), - (pn[(g + 60) | 0] = cn), - (pn[(g + 61) | 0] = cn >>> 8), - (pn[(g + 62) | 0] = cn >>> 16), - (pn[(g + 63) | 0] = cn >>> 24), - (pn[(g + 48) | 0] = wn), - (pn[(g + 49) | 0] = wn >>> 8), - (pn[(g + 50) | 0] = wn >>> 16), - (pn[(g + 51) | 0] = wn >>> 24), - (pn[(g + 52) | 0] = h), - (pn[(g + 53) | 0] = h >>> 8), - (pn[(g + 54) | 0] = h >>> 16), - (pn[(g + 55) | 0] = h >>> 24), - (pn[(g + 40) | 0] = Dn), - (pn[(g + 41) | 0] = Dn >>> 8), - (pn[(g + 42) | 0] = Dn >>> 16), - (pn[(g + 43) | 0] = Dn >>> 24), - (pn[(g + 44) | 0] = $n), - (pn[(g + 45) | 0] = $n >>> 8), - (pn[(g + 46) | 0] = $n >>> 16), - (pn[(g + 47) | 0] = $n >>> 24), - (pn[(g + 32) | 0] = a), - (pn[(g + 33) | 0] = a >>> 8), - (pn[(g + 34) | 0] = a >>> 16), - (pn[(g + 35) | 0] = a >>> 24), - (pn[(g + 36) | 0] = d), - (pn[(g + 37) | 0] = d >>> 8), - (pn[(g + 38) | 0] = d >>> 16), - (pn[(g + 39) | 0] = d >>> 24), - (St = (on + 160) | 0), - 0 - ) - } - function eu(d, a, h) { - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0 - ;(nt = c[(a + 4) >> 2]), - (_e = c[(d + 4) >> 2]), - (at = c[(a + 8) >> 2]), - (on = c[(d + 8) >> 2]), - (pt = c[(a + 12) >> 2]), - (hn = c[(d + 12) >> 2]), - (gt = c[(a + 16) >> 2]), - (j = c[(d + 16) >> 2]), - (mt = c[(a + 20) >> 2]), - (cn = c[(d + 20) >> 2]), - (yt = c[(a + 24) >> 2]), - (Dn = c[(d + 24) >> 2]), - (et = c[(a + 28) >> 2]), - ($n = c[(d + 28) >> 2]), - (_t = c[(a + 32) >> 2]), - (wn = c[(d + 32) >> 2]), - (bt = c[(a + 36) >> 2]), - (Un = c[(d + 36) >> 2]), - (h = (0 - h) | 0), - (Yn = c[d >> 2]), - (c[d >> 2] = (h & (Yn ^ c[a >> 2])) ^ Yn), - (c[(d + 36) >> 2] = Un ^ (h & (Un ^ bt))), - (c[(d + 32) >> 2] = wn ^ (h & (wn ^ _t))), - (c[(d + 28) >> 2] = $n ^ (h & ($n ^ et))), - (c[(d + 24) >> 2] = Dn ^ (h & (Dn ^ yt))), - (c[(d + 20) >> 2] = cn ^ (h & (cn ^ mt))), - (c[(d + 16) >> 2] = j ^ (h & (j ^ gt))), - (c[(d + 12) >> 2] = hn ^ (h & (hn ^ pt))), - (c[(d + 8) >> 2] = on ^ (h & (on ^ at))), - (c[(d + 4) >> 2] = _e ^ (h & (_e ^ nt))), - (_e = c[(d + 40) >> 2]), - (nt = c[(a + 40) >> 2]), - (on = c[(d + 44) >> 2]), - (at = c[(a + 44) >> 2]), - (hn = c[(d + 48) >> 2]), - (pt = c[(a + 48) >> 2]), - (j = c[(d + 52) >> 2]), - (gt = c[(a + 52) >> 2]), - (cn = c[(d + 56) >> 2]), - (mt = c[(a + 56) >> 2]), - (Dn = c[(d + 60) >> 2]), - (yt = c[(a + 60) >> 2]), - ($n = c[(et = (d - -64) | 0) >> 2]), - (_t = c[(a - -64) >> 2]), - (wn = c[(d + 68) >> 2]), - (bt = c[(a + 68) >> 2]), - (Un = c[(d + 72) >> 2]), - (Yn = c[(a + 72) >> 2]), - (g = c[(d + 76) >> 2]), - (c[(d + 76) >> 2] = g ^ (h & (c[(a + 76) >> 2] ^ g))), - (c[(d + 72) >> 2] = Un ^ (h & (Un ^ Yn))), - (c[(d + 68) >> 2] = wn ^ (h & (wn ^ bt))), - (c[et >> 2] = $n ^ (h & ($n ^ _t))), - (c[(d + 60) >> 2] = Dn ^ (h & (Dn ^ yt))), - (c[(d + 56) >> 2] = cn ^ (h & (cn ^ mt))), - (c[(d + 52) >> 2] = j ^ (h & (j ^ gt))), - (c[(d + 48) >> 2] = hn ^ (h & (hn ^ pt))), - (c[(d + 44) >> 2] = on ^ (h & (on ^ at))), - (c[(d + 40) >> 2] = _e ^ (h & (_e ^ nt))), - (_e = c[(d + 80) >> 2]), - (nt = c[(a + 80) >> 2]), - (on = c[(d + 84) >> 2]), - (at = c[(a + 84) >> 2]), - (hn = c[(d + 88) >> 2]), - (pt = c[(a + 88) >> 2]), - (j = c[(d + 92) >> 2]), - (gt = c[(a + 92) >> 2]), - (cn = c[(d + 96) >> 2]), - (mt = c[(a + 96) >> 2]), - (Dn = c[(d + 100) >> 2]), - (yt = c[(a + 100) >> 2]), - ($n = c[(d + 104) >> 2]), - (et = c[(a + 104) >> 2]), - (wn = c[(d + 108) >> 2]), - (_t = c[(a + 108) >> 2]), - (Un = c[(d + 112) >> 2]), - (bt = c[(a + 112) >> 2]), - (Yn = c[(d + 116) >> 2]), - (c[(d + 116) >> 2] = (h & (Yn ^ c[(a + 116) >> 2])) ^ Yn), - (c[(d + 112) >> 2] = Un ^ (h & (Un ^ bt))), - (c[(d + 108) >> 2] = wn ^ (h & (wn ^ _t))), - (c[(d + 104) >> 2] = $n ^ (h & ($n ^ et))), - (c[(d + 100) >> 2] = Dn ^ (h & (Dn ^ yt))), - (c[(d + 96) >> 2] = cn ^ (h & (cn ^ mt))), - (c[(d + 92) >> 2] = j ^ (h & (j ^ gt))), - (c[(d + 88) >> 2] = hn ^ (h & (hn ^ pt))), - (c[(d + 84) >> 2] = on ^ (h & (on ^ at))), - (c[(d + 80) >> 2] = _e ^ (h & (_e ^ nt))), - (_e = c[(d + 120) >> 2]), - (nt = c[(a + 120) >> 2]), - (on = c[(d + 124) >> 2]), - (at = c[(a + 124) >> 2]), - (hn = c[(d + 128) >> 2]), - (pt = c[(a + 128) >> 2]), - (j = c[(d + 132) >> 2]), - (gt = c[(a + 132) >> 2]), - (cn = c[(d + 136) >> 2]), - (mt = c[(a + 136) >> 2]), - (Dn = c[(d + 140) >> 2]), - (yt = c[(a + 140) >> 2]), - ($n = c[(d + 144) >> 2]), - (et = c[(a + 144) >> 2]), - (wn = c[(d + 148) >> 2]), - (_t = c[(a + 148) >> 2]), - (Un = c[(d + 152) >> 2]), - (bt = c[(a + 152) >> 2]), - (Yn = c[(a + 156) >> 2]), - (a = c[(d + 156) >> 2]), - (c[(d + 156) >> 2] = (h & (Yn ^ a)) ^ a), - (c[(d + 152) >> 2] = Un ^ (h & (Un ^ bt))), - (c[(d + 148) >> 2] = wn ^ (h & (wn ^ _t))), - (c[(d + 144) >> 2] = $n ^ (h & ($n ^ et))), - (c[(d + 140) >> 2] = Dn ^ (h & (Dn ^ yt))), - (c[(d + 136) >> 2] = cn ^ (h & (cn ^ mt))), - (c[(d + 132) >> 2] = j ^ (h & (j ^ gt))), - (c[(d + 128) >> 2] = hn ^ (h & (hn ^ pt))), - (c[(d + 124) >> 2] = on ^ (h & (on ^ at))), - (c[(d + 120) >> 2] = _e ^ (h & (_e ^ nt))) - } - function Xu(d, a, h) { - var g, - _e, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0 - return ( - (St = g = (St - 320) | 0), - Bt((on = (g + 240) | 0), h), - Gt(on, on, h), - Bt(d, on), - Gt(d, d, h), - Gt(d, d, a), - Vr(d, d), - Gt(d, d, on), - Gt(d, d, a), - Bt((on = (g + 192) | 0), d), - Gt(on, on, h), - (hn = c[(a + 4) >> 2]), - (et = c[(a + 8) >> 2]), - (at = c[(a + 12) >> 2]), - (pt = c[(a + 16) >> 2]), - (gt = c[(a + 20) >> 2]), - (mt = c[(a + 24) >> 2]), - (yt = c[(a + 28) >> 2]), - (_t = c[(a + 32) >> 2]), - (bt = c[a >> 2]), - (h = c[(g + 192) >> 2]), - (on = c[(g + 196) >> 2]), - (j = c[(g + 200) >> 2]), - (cn = c[(g + 204) >> 2]), - (Dn = c[(g + 208) >> 2]), - ($n = c[(g + 212) >> 2]), - (wn = c[(g + 216) >> 2]), - (Un = c[(g + 220) >> 2]), - (Yn = c[(g + 224) >> 2]), - (nt = c[(g + 228) >> 2]), - (kt = c[(a + 36) >> 2]), - (c[(g + 180) >> 2] = nt - kt), - (c[(g + 176) >> 2] = Yn - _t), - (c[(g + 172) >> 2] = Un - yt), - (c[(g + 168) >> 2] = wn - mt), - (c[(g + 164) >> 2] = $n - gt), - (c[(g + 160) >> 2] = Dn - pt), - (c[(g + 156) >> 2] = cn - at), - (c[(g + 152) >> 2] = j - et), - (c[(g + 148) >> 2] = on - hn), - (c[(g + 144) >> 2] = h - bt), - (c[(g + 132) >> 2] = nt + kt), - (c[(g + 128) >> 2] = Yn + _t), - (c[(g + 124) >> 2] = Un + yt), - (c[(g + 120) >> 2] = wn + mt), - (c[(g + 116) >> 2] = $n + gt), - (c[(g + 112) >> 2] = Dn + pt), - (c[(g + 108) >> 2] = cn + at), - (c[(g + 104) >> 2] = j + et), - (c[(g + 100) >> 2] = on + hn), - (c[(g + 96) >> 2] = h + bt), - Gt((hn = (g + 48) | 0), a, 1648), - (c[(g + 84) >> 2] = nt + c[(g + 84) >> 2]), - (c[(g + 80) >> 2] = Yn + c[(g + 80) >> 2]), - (c[(g + 76) >> 2] = Un + c[(g + 76) >> 2]), - (c[(g + 72) >> 2] = wn + c[(g + 72) >> 2]), - (c[(g + 68) >> 2] = $n + c[(g + 68) >> 2]), - (c[(g + 64) >> 2] = Dn + c[(g + 64) >> 2]), - (c[(g + 60) >> 2] = cn + c[(g + 60) >> 2]), - (c[(g + 56) >> 2] = j + c[(g + 56) >> 2]), - (c[(g + 52) >> 2] = on + c[(g + 52) >> 2]), - (c[(g + 48) >> 2] = h + c[(g + 48) >> 2]), - cs(g, (g + 144) | 0), - (at = Qs(g, 32)), - cs(g, (g + 96) | 0), - (et = Qs(g, 32)), - cs(g, hn), - (a = Qs(g, 32)), - Gt(g, d, 1648), - (Yn = c[(d + 4) >> 2]), - (Un = c[(d + 8) >> 2]), - (wn = c[(d + 12) >> 2]), - ($n = c[(d + 16) >> 2]), - (Dn = c[(d + 20) >> 2]), - (cn = c[(d + 24) >> 2]), - (j = c[(d + 28) >> 2]), - (on = c[(d + 32) >> 2]), - (hn = c[d >> 2]), - (pt = c[g >> 2]), - (gt = c[(g + 4) >> 2]), - (mt = c[(g + 8) >> 2]), - (yt = c[(g + 12) >> 2]), - (_t = c[(g + 16) >> 2]), - (bt = c[(g + 20) >> 2]), - (nt = c[(g + 24) >> 2]), - (kt = c[(g + 28) >> 2]), - (_e = c[(g + 32) >> 2]), - (h = - ((a = (0 - (a | et)) | 0) & - ((h = c[(d + 36) >> 2]) ^ c[(g + 36) >> 2])) ^ - h), - (c[(d + 36) >> 2] = h), - (on ^= a & (on ^ _e)), - (c[(d + 32) >> 2] = on), - (j ^= a & (j ^ kt)), - (c[(d + 28) >> 2] = j), - (cn ^= a & (cn ^ nt)), - (c[(d + 24) >> 2] = cn), - (Dn ^= a & (Dn ^ bt)), - (c[(d + 20) >> 2] = Dn), - ($n ^= a & ($n ^ _t)), - (c[(d + 16) >> 2] = $n), - (wn ^= a & (wn ^ yt)), - (c[(d + 12) >> 2] = wn), - (Un ^= a & (Un ^ mt)), - (c[(d + 8) >> 2] = Un), - (Yn ^= a & (Yn ^ gt)), - (c[(d + 4) >> 2] = Yn), - (hn ^= a & (hn ^ pt)), - (c[d >> 2] = hn), - cs((g + 288) | 0, d), - (a = (0 - (1 & pn[(g + 288) | 0])) | 0), - (c[(d + 36) >> 2] = h ^ (a & (h ^ (0 - h)))), - (c[(d + 32) >> 2] = on ^ (a & (on ^ (0 - on)))), - (c[(d + 28) >> 2] = j ^ (a & (j ^ (0 - j)))), - (c[(d + 24) >> 2] = cn ^ (a & (cn ^ (0 - cn)))), - (c[(d + 20) >> 2] = Dn ^ (a & (Dn ^ (0 - Dn)))), - (c[(d + 16) >> 2] = $n ^ (a & ($n ^ (0 - $n)))), - (c[(d + 12) >> 2] = wn ^ (a & (wn ^ (0 - wn)))), - (c[(d + 8) >> 2] = Un ^ (a & (Un ^ (0 - Un)))), - (c[(d + 4) >> 2] = Yn ^ (a & (Yn ^ (0 - Yn)))), - (c[d >> 2] = hn ^ (a & (hn ^ (0 - hn)))), - (St = (g + 320) | 0), - et | at - ) - } - function $s(d, a, h, g) { - var _e, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0 - if (((St = _e = (St - 288) | 0), h | g)) - if ( - ((on = - ((hn = c[(d + 36) >> 2]) + ((g << 3) | (h >>> 29))) | 0), - (cn = ((j = c[(d + 32) >> 2]) + (Dn = h << 3)) | 0), - (c[(d + 32) >> 2] = cn), - (c[(d + 36) >> 2] = - cn >>> 0 < Dn >>> 0 ? (on + 1) | 0 : on), - (j = - (64 - (on = wn = 63 & (((7 & hn) << 29) | (j >>> 3)))) | - 0), - (((0 | - (on = at = - (0 - (((Dn = 0) + (on >>> 0 > 64)) | 0)) | 0)) == - (0 | g)) & - (h >>> 0 >= (cn = j) >>> 0)) | - (g >>> 0 > on >>> 0)) - ) { - if ( - ((hn = 0), (j = 0), (!Dn & ((63 ^ wn) >>> 0 >= 3)) | Dn) - ) - for ( - pt = 124 & cn, Dn = (d + 40) | 0; - (pn[((on = (hn + wn) | 0) + Dn) | 0] = - rn[(a + hn) | 0]), - (pn[((on = (wn + ($n = 1 | hn)) | 0) + Dn) | 0] = - rn[(a + $n) | 0]), - (pn[((on = (wn + ($n = 2 | hn)) | 0) + Dn) | 0] = - rn[(a + $n) | 0]), - (pn[((on = (wn + ($n = 3 | hn)) | 0) + Dn) | 0] = - rn[(a + $n) | 0]), - (on = j), - (j = - (hn = (hn + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - (on = Yn), - (Yn = on = - (et = (et + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - ((0 | et) != (0 | pt)) | ((0 | nt) != (0 | on)); - - ); - if (((Dn = on = 0), on | (Yn = 3 & cn))) - for ( - ; - (pn[(40 + ((d + (on = (hn + wn) | 0)) | 0)) | 0] = - rn[(a + hn) | 0]), - (on = j), - (j = (hn = (hn + 1) | 0) ? on : (on + 1) | 0), - (on = nt), - (nt = on = (Un = (Un + 1) | 0) ? on : (on + 1) | 0), - ((0 | Yn) != (0 | Un)) | ((0 | Dn) != (0 | on)); - - ); - if ( - (Pu(d, (d + 40) | 0, _e, (nt = (_e + 256) | 0)), - (a = (a + cn) | 0), - (!(g = (g - (((h >>> 0 < cn >>> 0) + at) | 0)) | 0) & - ((h = (h - cn) | 0) >>> 0 > 63)) | - g) - ) - for ( - ; - Pu(d, a, _e, nt), - (a = (a - -64) | 0), - (on = (g - 1) | 0), - (!(g = - (h = (h + -64) | 0) >>> 0 < 4294967232 - ? (on + 1) | 0 - : on) & - (h >>> 0 > 63)) | - g; - - ); - if (h | g) { - if ( - ((cn = 3 & h), - (et = 0), - (Un = 0), - (nt = 0), - (hn = 0), - (j = 0), - (!g & (h >>> 0 >= 4)) | g) - ) - for ( - Dn = -4 & h, Yn = g, $n = (d + 40) | 0, h = 0, g = 0; - (pn[(hn + $n) | 0] = rn[(a + hn) | 0]), - (pn[((on = 1 | hn) + $n) | 0] = rn[(a + on) | 0]), - (pn[((on = 2 | hn) + $n) | 0] = rn[(a + on) | 0]), - (pn[((on = 3 | hn) + $n) | 0] = rn[(a + on) | 0]), - (on = j), - (j = - (hn = (hn + 4) | 0) >>> 0 < 4 - ? (on + 1) | 0 - : on), - (on = g), - (g = on = - (h = (h + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - ((0 | h) != (0 | Dn)) | ((0 | Yn) != (0 | on)); - - ); - if (cn | et) - for ( - ; - (pn[(40 + ((d + hn) | 0)) | 0] = rn[(a + hn) | 0]), - (j = (hn = (hn + 1) | 0) ? j : (j + 1) | 0), - (on = nt), - (nt = on = (Un = (Un + 1) | 0) ? on : (on + 1) | 0), - ((0 | cn) != (0 | Un)) | ((0 | et) != (0 | on)); - - ); - } - Ur(_e, 288) - } else { - if (((hn = 0), (j = 0), (!g & (h >>> 0 >= 4)) | g)) - for ( - $n = -4 & h, Dn = g, g = (d + 40) | 0; - (pn[(g + (on = (hn + wn) | 0)) | 0] = rn[(a + hn) | 0]), - (pn[(g + (on = (wn + (cn = 1 | hn)) | 0)) | 0] = - rn[(a + cn) | 0]), - (pn[(g + (on = (wn + (cn = 2 | hn)) | 0)) | 0] = - rn[(a + cn) | 0]), - (pn[(g + (on = (wn + (cn = 3 | hn)) | 0)) | 0] = - rn[(a + cn) | 0]), - (on = j), - (j = - (hn = (hn + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - (on = Yn), - (Yn = on = - (et = (et + 4) | 0) >>> 0 < 4 ? (on + 1) | 0 : on), - ((0 | $n) != (0 | et)) | ((0 | Dn) != (0 | on)); - - ); - if (((Yn = on = 0), on | (g = 3 & h))) - for ( - ; - (pn[(40 + ((d + (h = (hn + wn) | 0)) | 0)) | 0] = - rn[(a + hn) | 0]), - (j = (hn = (hn + 1) | 0) ? j : (j + 1) | 0), - (on = nt), - (nt = on = (Un = (Un + 1) | 0) ? on : (on + 1) | 0), - ((0 | g) != (0 | Un)) | ((0 | Yn) != (0 | on)); - - ); - } - return (St = (_e + 288) | 0), 0 - } - function su(d, a) { - var h, - g, - _e, - on, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0 - return ( - (St = h = (St - 320) | 0), - Xs((g = (d + 40) | 0), a), - (c[(d + 84) >> 2] = 0), - (c[(d + 88) >> 2] = 0), - (c[(d + 80) >> 2] = 1), - (c[(d + 92) >> 2] = 0), - (c[(d + 96) >> 2] = 0), - (c[(d + 100) >> 2] = 0), - (c[(d + 104) >> 2] = 0), - (c[(d + 108) >> 2] = 0), - (c[(d + 112) >> 2] = 0), - (c[(d + 116) >> 2] = 0), - Bt((hn = (h + 240) | 0), g), - Gt((j = (h + 192) | 0), hn, 1600), - (c[(h + 192) >> 2] = c[(h + 192) >> 2] + 1), - (cn = (c[(h + 240) >> 2] - 1) | 0), - (c[(h + 240) >> 2] = cn), - (Dn = c[(h + 244) >> 2]), - ($n = c[(h + 248) >> 2]), - (wn = c[(h + 252) >> 2]), - (Un = c[(h + 256) >> 2]), - (Yn = c[(h + 260) >> 2]), - (et = c[(h + 264) >> 2]), - (nt = c[(h + 268) >> 2]), - (at = c[(h + 272) >> 2]), - (pt = c[(h + 276) >> 2]), - Gt(d, hn, j), - Vr(d, d), - Gt(d, hn, d), - Bt((hn = (h + 144) | 0), d), - Gt(hn, hn, j), - (hn = c[(h + 180) >> 2]), - (c[(h + 132) >> 2] = hn - pt), - (j = c[(h + 176) >> 2]), - (c[(h + 128) >> 2] = j - at), - (gt = c[(h + 172) >> 2]), - (c[(h + 124) >> 2] = gt - nt), - (mt = c[(h + 168) >> 2]), - (c[(h + 120) >> 2] = mt - et), - (yt = c[(h + 164) >> 2]), - (c[(h + 116) >> 2] = yt - Yn), - (_t = c[(h + 160) >> 2]), - (c[(h + 112) >> 2] = _t - Un), - (bt = c[(h + 156) >> 2]), - (c[(h + 108) >> 2] = bt - wn), - (kt = c[(h + 152) >> 2]), - (c[(h + 104) >> 2] = kt - $n), - (Rt = c[(h + 148) >> 2]), - (c[(h + 100) >> 2] = Rt - Dn), - (At = c[(h + 144) >> 2]), - (c[(h + 96) >> 2] = At - cn), - (c[(h + 84) >> 2] = hn + pt), - (c[(h + 80) >> 2] = j + at), - (c[(h + 76) >> 2] = nt + gt), - (c[(h + 72) >> 2] = et + mt), - (c[(h + 68) >> 2] = Yn + yt), - (c[(h + 64) >> 2] = Un + _t), - (c[(h + 60) >> 2] = wn + bt), - (c[(h + 56) >> 2] = $n + kt), - (c[(h + 52) >> 2] = Dn + Rt), - (c[(h + 48) >> 2] = cn + At), - cs(h, (h + 96) | 0), - (at = Qs(h, 32)), - cs(h, (h + 48) | 0), - (gt = Qs(h, 32)), - Gt(h, d, 1648), - (nt = c[(d + 4) >> 2]), - (et = c[(d + 8) >> 2]), - (Yn = c[(d + 12) >> 2]), - (Un = c[(d + 16) >> 2]), - (wn = c[(d + 20) >> 2]), - ($n = c[(d + 24) >> 2]), - (Dn = c[(d + 28) >> 2]), - (cn = c[(d + 32) >> 2]), - (pt = c[d >> 2]), - (mt = c[h >> 2]), - (yt = c[(h + 4) >> 2]), - (_t = c[(h + 8) >> 2]), - (bt = c[(h + 12) >> 2]), - (kt = c[(h + 16) >> 2]), - (Rt = c[(h + 20) >> 2]), - (At = c[(h + 24) >> 2]), - (_e = c[(h + 28) >> 2]), - (on = c[(h + 32) >> 2]), - (j = - ((hn = (at - 1) | 0) & - ((j = c[(d + 36) >> 2]) ^ c[(h + 36) >> 2])) ^ - j), - (c[(d + 36) >> 2] = j), - (cn ^= hn & (cn ^ on)), - (c[(d + 32) >> 2] = cn), - (Dn ^= hn & (Dn ^ _e)), - (c[(d + 28) >> 2] = Dn), - ($n ^= hn & ($n ^ At)), - (c[(d + 24) >> 2] = $n), - (wn ^= hn & (wn ^ Rt)), - (c[(d + 20) >> 2] = wn), - (Un ^= hn & (Un ^ kt)), - (c[(d + 16) >> 2] = Un), - (Yn ^= hn & (Yn ^ bt)), - (c[(d + 12) >> 2] = Yn), - (et ^= hn & (et ^ _t)), - (c[(d + 8) >> 2] = et), - (nt ^= hn & (nt ^ yt)), - (c[(d + 4) >> 2] = nt), - (hn = pt ^ (hn & (pt ^ mt))), - (c[d >> 2] = hn), - cs((h + 288) | 0, d), - (a = - (0 - ((1 & pn[(h + 288) | 0]) ^ (rn[(a + 31) | 0] >>> 7))) | - 0), - (c[(d + 36) >> 2] = j ^ (a & (j ^ (0 - j)))), - (c[(d + 32) >> 2] = cn ^ (a & (cn ^ (0 - cn)))), - (c[(d + 28) >> 2] = Dn ^ (a & (Dn ^ (0 - Dn)))), - (c[(d + 24) >> 2] = $n ^ (a & ($n ^ (0 - $n)))), - (c[(d + 20) >> 2] = wn ^ (a & (wn ^ (0 - wn)))), - (c[(d + 16) >> 2] = Un ^ (a & (Un ^ (0 - Un)))), - (c[(d + 12) >> 2] = Yn ^ (a & (Yn ^ (0 - Yn)))), - (c[(d + 8) >> 2] = et ^ (a & (et ^ (0 - et)))), - (c[(d + 4) >> 2] = nt ^ (a & (nt ^ (0 - nt)))), - (c[d >> 2] = hn ^ (a & (hn ^ (0 - hn)))), - Gt((d + 120) | 0, d, g), - (St = (h + 320) | 0), - ((at | gt) - 1) | 0 - ) - } - function ot(d, a) { - var h, - g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0 - ;(St = h = (St - 48) | 0), - Bt(d, a), - Bt((d + 80) | 0, (a + 40) | 0), - f0((d + 120) | 0, (a + 80) | 0), - (yt = c[(a + 40) >> 2]), - (at = c[(a + 44) >> 2]), - (nt = c[(a + 4) >> 2]), - (pt = c[(a + 48) >> 2]), - (_t = c[(a + 8) >> 2]), - (gt = c[(a + 52) >> 2]), - (bt = c[(a + 12) >> 2]), - (mt = c[(a + 56) >> 2]), - (wt = c[(a + 16) >> 2]), - (kt = c[(a + 60) >> 2]), - (Tt = c[(a + 20) >> 2]), - (Rt = c[(a - -64) >> 2]), - (Jt = c[(a + 24) >> 2]), - (At = c[(a + 68) >> 2]), - (Ht = c[(a + 28) >> 2]), - (Ct = c[(a + 72) >> 2]), - (Zt = c[(a + 32) >> 2]), - (rr = c[a >> 2]), - (c[(d + 76) >> 2] = c[(a + 76) >> 2] + c[(a + 36) >> 2]), - (c[(d + 72) >> 2] = Ct + Zt), - (c[(d + 68) >> 2] = At + Ht), - (c[(g = (d - -64) | 0) >> 2] = Rt + Jt), - (c[(d + 60) >> 2] = kt + Tt), - (c[(d + 56) >> 2] = mt + wt), - (c[(d + 52) >> 2] = gt + bt), - (c[(d + 48) >> 2] = pt + _t), - (c[(d + 44) >> 2] = at + nt), - (c[(a = (d + 40) | 0) >> 2] = yt + rr), - Bt(h, a), - (yt = c[(d + 80) >> 2]), - (at = c[(d + 4) >> 2]), - (nt = c[(d + 84) >> 2]), - (pt = c[(d + 8) >> 2]), - (_t = c[(d + 88) >> 2]), - (gt = c[(d + 12) >> 2]), - (bt = c[(d + 92) >> 2]), - (mt = c[(d + 16) >> 2]), - (wt = c[(d + 96) >> 2]), - (kt = c[(d + 20) >> 2]), - (Tt = c[(d + 100) >> 2]), - (Rt = c[(d + 24) >> 2]), - (Jt = c[(d + 104) >> 2]), - (At = c[(d + 28) >> 2]), - (Ht = c[(d + 108) >> 2]), - (Ct = c[(d + 32) >> 2]), - (Zt = c[(d + 112) >> 2]), - (rr = c[d >> 2]), - (on = - ((jt = c[(d + 116) >> 2]) - (_e = c[(d + 36) >> 2])) | 0), - (c[(d + 116) >> 2] = on), - (hn = (Zt - Ct) | 0), - (c[(d + 112) >> 2] = hn), - (j = (Ht - At) | 0), - (c[(d + 108) >> 2] = j), - (cn = (Jt - Rt) | 0), - (c[(d + 104) >> 2] = cn), - (Dn = (Tt - kt) | 0), - (c[(d + 100) >> 2] = Dn), - ($n = (wt - mt) | 0), - (c[(d + 96) >> 2] = $n), - (wn = (bt - gt) | 0), - (c[(d + 92) >> 2] = wn), - (Un = (_t - pt) | 0), - (c[(d + 88) >> 2] = Un), - (Yn = (nt - at) | 0), - (c[(d + 84) >> 2] = Yn), - (et = (yt - rr) | 0), - (c[(d + 80) >> 2] = et), - (jt = (jt + _e) | 0), - (c[(d + 76) >> 2] = jt), - (Ct = (Ct + Zt) | 0), - (c[(d + 72) >> 2] = Ct), - (At = (At + Ht) | 0), - (c[(d + 68) >> 2] = At), - (Rt = (Rt + Jt) | 0), - (c[g >> 2] = Rt), - (kt = (kt + Tt) | 0), - (c[(d + 60) >> 2] = kt), - (mt = (mt + wt) | 0), - (c[(d + 56) >> 2] = mt), - (gt = (gt + bt) | 0), - (c[(d + 52) >> 2] = gt), - (pt = (pt + _t) | 0), - (c[(d + 48) >> 2] = pt), - (at = (at + nt) | 0), - (c[(d + 44) >> 2] = at), - (nt = a), - (a = (yt + rr) | 0), - (c[nt >> 2] = a), - (yt = c[h >> 2]), - (nt = c[(h + 4) >> 2]), - (_t = c[(h + 8) >> 2]), - (bt = c[(h + 12) >> 2]), - (wt = c[(h + 16) >> 2]), - (Tt = c[(h + 20) >> 2]), - (Jt = c[(h + 24) >> 2]), - (Ht = c[(h + 28) >> 2]), - (Zt = c[(h + 32) >> 2]), - (c[(d + 36) >> 2] = c[(h + 36) >> 2] - jt), - (c[(d + 32) >> 2] = Zt - Ct), - (c[(d + 28) >> 2] = Ht - At), - (c[(d + 24) >> 2] = Jt - Rt), - (c[(d + 20) >> 2] = Tt - kt), - (c[(d + 16) >> 2] = wt - mt), - (c[(d + 12) >> 2] = bt - gt), - (c[(d + 8) >> 2] = _t - pt), - (c[(d + 4) >> 2] = nt - at), - (c[d >> 2] = yt - a), - (a = c[(d + 120) >> 2]), - (yt = c[(d + 124) >> 2]), - (at = c[(d + 128) >> 2]), - (nt = c[(d + 132) >> 2]), - (pt = c[(d + 136) >> 2]), - (_t = c[(d + 140) >> 2]), - (gt = c[(d + 144) >> 2]), - (bt = c[(d + 148) >> 2]), - (mt = c[(d + 152) >> 2]), - (c[(d + 156) >> 2] = c[(d + 156) >> 2] - on), - (c[(d + 152) >> 2] = mt - hn), - (c[(d + 148) >> 2] = bt - j), - (c[(d + 144) >> 2] = gt - cn), - (c[(d + 140) >> 2] = _t - Dn), - (c[(d + 136) >> 2] = pt - $n), - (c[(d + 132) >> 2] = nt - wn), - (c[(d + 128) >> 2] = at - Un), - (c[(d + 124) >> 2] = yt - Yn), - (c[(d + 120) >> 2] = a - et), - (St = (h + 48) | 0) - } - function ct(d, a, h) { - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0 - ;(St = _e = (St - 160) | 0), - (c[d >> 2] = 1), - (c[((g = d) + 4) >> 2] = 0), - (c[(g + 8) >> 2] = 0), - (c[(g + 12) >> 2] = 0), - (c[(g + 16) >> 2] = 0), - (c[(g + 20) >> 2] = 0), - (c[(g + 24) >> 2] = 0), - (c[(g + 28) >> 2] = 0), - (c[(g + 32) >> 2] = 0), - (c[(g + 44) >> 2] = 0), - (c[(g + 48) >> 2] = 0), - (c[(g + 36) >> 2] = 0), - (c[(g + 40) >> 2] = 1), - (c[(g + 52) >> 2] = 0), - (c[(g + 56) >> 2] = 0), - (c[(g + 60) >> 2] = 0), - (c[(g + 64) >> 2] = 0), - (c[(g + 68) >> 2] = 0), - (c[(g + 72) >> 2] = 0), - (c[(g + 76) >> 2] = 0), - (c[(g + 80) >> 2] = 1), - qo((g + 84) | 0, 0, 76), - eu( - g, - a, - (((255 & (1 ^ (d = (h - (((h >> 31) & h) << 1)) | 0))) - - 1) >>> - 31) | - 0, - ), - eu(g, (a + 160) | 0, (((255 & (2 ^ d)) - 1) >>> 31) | 0), - eu(g, (a + 320) | 0, (((255 & (3 ^ d)) - 1) >>> 31) | 0), - eu(g, (a + 480) | 0, (((255 & (4 ^ d)) - 1) >>> 31) | 0), - eu(g, (a + 640) | 0, (((255 & (5 ^ d)) - 1) >>> 31) | 0), - eu(g, (a + 800) | 0, (((255 & (6 ^ d)) - 1) >>> 31) | 0), - eu(g, (a + 960) | 0, (((255 & (7 ^ d)) - 1) >>> 31) | 0), - eu(g, (a + 1120) | 0, (((255 & (8 ^ d)) - 1) >>> 31) | 0), - (a = c[(g + 40) >> 2]), - (hn = c[(g + 44) >> 2]), - (j = c[(g + 48) >> 2]), - (cn = c[(g + 52) >> 2]), - (Dn = c[(g + 56) >> 2]), - ($n = c[(g + 60) >> 2]), - (wn = c[(d = (g - -64) | 0) >> 2]), - (on = c[(d + 4) >> 2]), - (d = _e), - (_e = c[(g + 76) >> 2]), - (c[(d + 32) >> 2] = c[(g + 72) >> 2]), - (c[(d + 36) >> 2] = _e), - (c[(d + 24) >> 2] = wn), - (c[(d + 28) >> 2] = on), - (c[(d + 16) >> 2] = Dn), - (c[(d + 20) >> 2] = $n), - (c[(d + 8) >> 2] = j), - (c[(d + 12) >> 2] = cn), - (c[d >> 2] = a), - (c[(d + 4) >> 2] = hn), - (a = c[(g + 8) >> 2]), - (_e = c[(g + 12) >> 2]), - (hn = c[(g + 16) >> 2]), - (j = c[(g + 20) >> 2]), - (cn = c[(g + 24) >> 2]), - (Dn = c[(g + 28) >> 2]), - ($n = c[g >> 2]), - (wn = c[(g + 4) >> 2]), - (on = c[(g + 36) >> 2]), - (c[(d + 72) >> 2] = c[(g + 32) >> 2]), - (c[(d + 76) >> 2] = on), - (c[(on = (d - -64) | 0) >> 2] = cn), - (c[(on + 4) >> 2] = Dn), - (c[(d + 56) >> 2] = hn), - (c[(d + 60) >> 2] = j), - (c[(d + 48) >> 2] = a), - (c[(d + 52) >> 2] = _e), - (c[(d + 40) >> 2] = $n), - (c[(d + 44) >> 2] = wn), - (a = c[(g + 80) >> 2]), - (_e = c[(g + 84) >> 2]), - (hn = c[(g + 88) >> 2]), - (j = c[(g + 92) >> 2]), - (cn = c[(g + 96) >> 2]), - (Dn = c[(g + 100) >> 2]), - ($n = c[(g + 104) >> 2]), - (wn = c[(g + 108) >> 2]), - (on = c[(g + 116) >> 2]), - (c[(d + 112) >> 2] = c[(g + 112) >> 2]), - (c[(d + 116) >> 2] = on), - (c[(d + 104) >> 2] = $n), - (c[(d + 108) >> 2] = wn), - (c[(d + 96) >> 2] = cn), - (c[(d + 100) >> 2] = Dn), - (c[(d + 88) >> 2] = hn), - (c[(d + 92) >> 2] = j), - (c[(d + 80) >> 2] = a), - (c[(d + 84) >> 2] = _e), - (a = c[(g + 120) >> 2]), - (_e = c[(g + 124) >> 2]), - (hn = c[(g + 128) >> 2]), - (j = c[(g + 132) >> 2]), - (cn = c[(g + 136) >> 2]), - (Dn = c[(g + 140) >> 2]), - ($n = c[(g + 144) >> 2]), - (wn = c[(g + 148) >> 2]), - (on = c[(g + 152) >> 2]), - (c[(d + 156) >> 2] = 0 - c[(g + 156) >> 2]), - (c[(d + 152) >> 2] = 0 - on), - (c[(d + 148) >> 2] = 0 - wn), - (c[(d + 144) >> 2] = 0 - $n), - (c[(d + 140) >> 2] = 0 - Dn), - (c[(d + 136) >> 2] = 0 - cn), - (c[(d + 132) >> 2] = 0 - j), - (c[(d + 128) >> 2] = 0 - hn), - (c[(d + 124) >> 2] = 0 - _e), - (c[(d + 120) >> 2] = 0 - a), - eu(g, d, ((128 & h) >>> 7) | 0), - (St = (d + 160) | 0) - } - function ut(d, a) { - a |= 0 - var h, - g, - _e = 0, - on = 0, - hn = 0, - j = 0 - return ( - (St = h = (St - 288) | 0), - (on = - (40 + - (((_e = (c[(32 + (d |= 0)) >> 2] >>> 3) & 63) + d) | 0)) | - 0), - _e >>> 0 <= 55 - ? Qo(on, 35616, (56 - _e) | 0) - : (Qo(on, 35616, (64 - _e) | 0), - Pu(d, (d + 40) | 0, h, (h + 256) | 0), - (c[(d + 88) >> 2] = 0), - (c[(d + 92) >> 2] = 0), - (c[(d + 80) >> 2] = 0), - (c[(d + 84) >> 2] = 0), - (c[(d + 72) >> 2] = 0), - (c[(d + 76) >> 2] = 0), - (c[(_e = (d - -64) | 0) >> 2] = 0), - (c[(_e + 4) >> 2] = 0), - (c[(d + 56) >> 2] = 0), - (c[(d + 60) >> 2] = 0), - (c[(d + 48) >> 2] = 0), - (c[(d + 52) >> 2] = 0), - (c[(d + 40) >> 2] = 0), - (c[(d + 44) >> 2] = 0)), - (hn = ((_e = 16711680 & (on = c[(d + 32) >> 2])) >>> 8) | 0), - (j = _e << 24), - (g = ((_e = -16777216 & on) >>> 24) | 0), - (_e = - (j |= _e << 8) | - (-16777216 & - (((255 & (_e = c[(d + 36) >> 2])) << 24) | (on >>> 8))) | - (16711680 & (((16777215 & _e) << 8) | (on >>> 24))) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(d + 96) | 0] = _e), - (pn[(d + 97) | 0] = _e >>> 8), - (pn[(d + 98) | 0] = _e >>> 16), - (pn[(d + 99) | 0] = _e >>> 24), - (_e = - (_e = hn | g | (on << 24) | ((65280 & on) << 8)) | - (hn = 0) | - hn), - (pn[(d + 100) | 0] = _e), - (pn[(d + 101) | 0] = _e >>> 8), - (pn[(d + 102) | 0] = _e >>> 16), - (pn[(d + 103) | 0] = _e >>> 24), - Pu(d, (d + 40) | 0, h, (h + 256) | 0), - (_e = - ((_e = c[d >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[0 | a] = _e), - (pn[(a + 1) | 0] = _e >>> 8), - (pn[(a + 2) | 0] = _e >>> 16), - (pn[(a + 3) | 0] = _e >>> 24), - (_e = - ((_e = c[(d + 4) >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(a + 4) | 0] = _e), - (pn[(a + 5) | 0] = _e >>> 8), - (pn[(a + 6) | 0] = _e >>> 16), - (pn[(a + 7) | 0] = _e >>> 24), - (_e = - ((_e = c[(d + 8) >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(a + 8) | 0] = _e), - (pn[(a + 9) | 0] = _e >>> 8), - (pn[(a + 10) | 0] = _e >>> 16), - (pn[(a + 11) | 0] = _e >>> 24), - (_e = - ((_e = c[(d + 12) >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(a + 12) | 0] = _e), - (pn[(a + 13) | 0] = _e >>> 8), - (pn[(a + 14) | 0] = _e >>> 16), - (pn[(a + 15) | 0] = _e >>> 24), - (_e = - ((_e = c[(d + 16) >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(a + 16) | 0] = _e), - (pn[(a + 17) | 0] = _e >>> 8), - (pn[(a + 18) | 0] = _e >>> 16), - (pn[(a + 19) | 0] = _e >>> 24), - (_e = - ((_e = c[(d + 20) >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(a + 20) | 0] = _e), - (pn[(a + 21) | 0] = _e >>> 8), - (pn[(a + 22) | 0] = _e >>> 16), - (pn[(a + 23) | 0] = _e >>> 24), - (_e = - ((_e = c[(d + 24) >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(a + 24) | 0] = _e), - (pn[(a + 25) | 0] = _e >>> 8), - (pn[(a + 26) | 0] = _e >>> 16), - (pn[(a + 27) | 0] = _e >>> 24), - (_e = - ((_e = c[(d + 28) >> 2]) << 24) | - ((65280 & _e) << 8) | - ((_e >>> 8) & 65280) | - (_e >>> 24)), - (pn[(a + 28) | 0] = _e), - (pn[(a + 29) | 0] = _e >>> 8), - (pn[(a + 30) | 0] = _e >>> 16), - (pn[(a + 31) | 0] = _e >>> 24), - Ur(h, 288), - Ur(d, 104), - (St = (h + 288) | 0), - 0 - ) - } - function it(d, a) { - ;(d |= 0), (a |= 0) - var h, - g, - _e, - on, - hn, - j = 0, - cn = 0, - Dn = 0 - return ( - (St = cn = (St - 192) | 0), - Ps(cn, 32), - Tu(a, cn, 32, 0), - (pn[0 | a] = 248 & rn[0 | a]), - (pn[(a + 31) | 0] = (63 & rn[(a + 31) | 0]) | 64), - fu((Dn = (cn + 32) | 0), a), - gu(d, Dn), - (h = cn), - (Dn = c[(cn + 28) >> 2]), - (cn = c[(cn + 24) >> 2]), - (pn[(a + 24) | 0] = cn), - (pn[(a + 25) | 0] = cn >>> 8), - (pn[(a + 26) | 0] = cn >>> 16), - (pn[(a + 27) | 0] = cn >>> 24), - (pn[(a + 28) | 0] = Dn), - (pn[(a + 29) | 0] = Dn >>> 8), - (pn[(a + 30) | 0] = Dn >>> 16), - (pn[(a + 31) | 0] = Dn >>> 24), - (Dn = c[(h + 20) >> 2]), - (cn = c[(h + 16) >> 2]), - (pn[(a + 16) | 0] = cn), - (pn[(a + 17) | 0] = cn >>> 8), - (pn[(a + 18) | 0] = cn >>> 16), - (pn[(a + 19) | 0] = cn >>> 24), - (pn[(a + 20) | 0] = Dn), - (pn[(a + 21) | 0] = Dn >>> 8), - (pn[(a + 22) | 0] = Dn >>> 16), - (pn[(a + 23) | 0] = Dn >>> 24), - (Dn = c[(h + 12) >> 2]), - (cn = c[(h + 8) >> 2]), - (pn[(a + 8) | 0] = cn), - (pn[(a + 9) | 0] = cn >>> 8), - (pn[(a + 10) | 0] = cn >>> 16), - (pn[(a + 11) | 0] = cn >>> 24), - (pn[(a + 12) | 0] = Dn), - (pn[(a + 13) | 0] = Dn >>> 8), - (pn[(a + 14) | 0] = Dn >>> 16), - (pn[(a + 15) | 0] = Dn >>> 24), - (Dn = c[(h + 4) >> 2]), - (cn = c[h >> 2]), - (pn[0 | a] = cn), - (pn[(a + 1) | 0] = cn >>> 8), - (pn[(a + 2) | 0] = cn >>> 16), - (pn[(a + 3) | 0] = cn >>> 24), - (pn[(a + 4) | 0] = Dn), - (pn[(a + 5) | 0] = Dn >>> 8), - (pn[(a + 6) | 0] = Dn >>> 16), - (pn[(a + 7) | 0] = Dn >>> 24), - (g = - rn[((j = d) + 8) | 0] | - (rn[(j + 9) | 0] << 8) | - (rn[(j + 10) | 0] << 16) | - (rn[(j + 11) | 0] << 24)), - (_e = - rn[(j + 12) | 0] | - (rn[(j + 13) | 0] << 8) | - (rn[(j + 14) | 0] << 16) | - (rn[(j + 15) | 0] << 24)), - (on = - rn[(j + 16) | 0] | - (rn[(j + 17) | 0] << 8) | - (rn[(j + 18) | 0] << 16) | - (rn[(j + 19) | 0] << 24)), - (Dn = - rn[(j + 20) | 0] | - (rn[(j + 21) | 0] << 8) | - (rn[(j + 22) | 0] << 16) | - (rn[(j + 23) | 0] << 24)), - (cn = - rn[0 | j] | - (rn[(j + 1) | 0] << 8) | - (rn[(j + 2) | 0] << 16) | - (rn[(j + 3) | 0] << 24)), - (d = - rn[(j + 4) | 0] | - (rn[(j + 5) | 0] << 8) | - (rn[(j + 6) | 0] << 16) | - (rn[(j + 7) | 0] << 24)), - (hn = - rn[(j + 28) | 0] | - (rn[(j + 29) | 0] << 8) | - (rn[(j + 30) | 0] << 16) | - (rn[(j + 31) | 0] << 24)), - (j = - rn[(j + 24) | 0] | - (rn[(j + 25) | 0] << 8) | - (rn[(j + 26) | 0] << 16) | - (rn[(j + 27) | 0] << 24)), - (pn[(a + 56) | 0] = j), - (pn[(a + 57) | 0] = j >>> 8), - (pn[(a + 58) | 0] = j >>> 16), - (pn[(a + 59) | 0] = j >>> 24), - (pn[(a + 60) | 0] = hn), - (pn[(a + 61) | 0] = hn >>> 8), - (pn[(a + 62) | 0] = hn >>> 16), - (pn[(a + 63) | 0] = hn >>> 24), - (pn[(a + 48) | 0] = on), - (pn[(a + 49) | 0] = on >>> 8), - (pn[(a + 50) | 0] = on >>> 16), - (pn[(a + 51) | 0] = on >>> 24), - (pn[(a + 52) | 0] = Dn), - (pn[(a + 53) | 0] = Dn >>> 8), - (pn[(a + 54) | 0] = Dn >>> 16), - (pn[(a + 55) | 0] = Dn >>> 24), - (pn[(a + 40) | 0] = g), - (pn[(a + 41) | 0] = g >>> 8), - (pn[(a + 42) | 0] = g >>> 16), - (pn[(a + 43) | 0] = g >>> 24), - (pn[(a + 44) | 0] = _e), - (pn[(a + 45) | 0] = _e >>> 8), - (pn[(a + 46) | 0] = _e >>> 16), - (pn[(a + 47) | 0] = _e >>> 24), - (pn[(a + 32) | 0] = cn), - (pn[(a + 33) | 0] = cn >>> 8), - (pn[(a + 34) | 0] = cn >>> 16), - (pn[(a + 35) | 0] = cn >>> 24), - (pn[(a + 36) | 0] = d), - (pn[(a + 37) | 0] = d >>> 8), - (pn[(a + 38) | 0] = d >>> 16), - (pn[(a + 39) | 0] = d >>> 24), - Ur(h, 32), - (St = (h + 192) | 0), - 0 - ) - } - function lt(d, a) { - d |= 0 - var h, - g = 0 - ;(St = h = (St + -64) | 0), - (g = - rn[(60 + (a |= 0)) | 0] | - (rn[(a + 61) | 0] << 8) | - (rn[(a + 62) | 0] << 16) | - (rn[(a + 63) | 0] << 24)), - (c[(h + 56) >> 2] = - rn[(a + 56) | 0] | - (rn[(a + 57) | 0] << 8) | - (rn[(a + 58) | 0] << 16) | - (rn[(a + 59) | 0] << 24)), - (c[(h + 60) >> 2] = g), - (g = - rn[(a + 52) | 0] | - (rn[(a + 53) | 0] << 8) | - (rn[(a + 54) | 0] << 16) | - (rn[(a + 55) | 0] << 24)), - (c[(h + 48) >> 2] = - rn[(a + 48) | 0] | - (rn[(a + 49) | 0] << 8) | - (rn[(a + 50) | 0] << 16) | - (rn[(a + 51) | 0] << 24)), - (c[(h + 52) >> 2] = g), - (g = - rn[(a + 44) | 0] | - (rn[(a + 45) | 0] << 8) | - (rn[(a + 46) | 0] << 16) | - (rn[(a + 47) | 0] << 24)), - (c[(h + 40) >> 2] = - rn[(a + 40) | 0] | - (rn[(a + 41) | 0] << 8) | - (rn[(a + 42) | 0] << 16) | - (rn[(a + 43) | 0] << 24)), - (c[(h + 44) >> 2] = g), - (g = - rn[(a + 36) | 0] | - (rn[(a + 37) | 0] << 8) | - (rn[(a + 38) | 0] << 16) | - (rn[(a + 39) | 0] << 24)), - (c[(h + 32) >> 2] = - rn[(a + 32) | 0] | - (rn[(a + 33) | 0] << 8) | - (rn[(a + 34) | 0] << 16) | - (rn[(a + 35) | 0] << 24)), - (c[(h + 36) >> 2] = g), - (g = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (c[(h + 24) >> 2] = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (c[(h + 28) >> 2] = g), - (g = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (c[(h + 16) >> 2] = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (c[(h + 20) >> 2] = g), - (g = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (c[h >> 2] = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (c[(h + 4) >> 2] = g), - (g = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (c[(h + 8) >> 2] = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (c[(h + 12) >> 2] = g), - zs(h), - (a = c[(h + 28) >> 2]), - (g = c[(h + 24) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(h + 20) >> 2]), - (g = c[(h + 16) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(h + 12) >> 2]), - (g = c[(h + 8) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(h + 4) >> 2]), - (g = c[h >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - Ur(h, 64), - (St = (h - -64) | 0) - } - function vt(d, a, h) { - ;(d |= 0), (a |= 0) - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0 - if ( - ((St = g = (St - 96) | 0), - (h |= 0) >>> 0 >= 65 && - (w0(d), $s(d, a, h, 0), ut(d, g), (h = 32), (a = g)), - w0(d), - (c[(g + 88) >> 2] = 909522486), - (c[(g + 92) >> 2] = 909522486), - (c[(g + 80) >> 2] = 909522486), - (c[(g + 84) >> 2] = 909522486), - (c[(g + 72) >> 2] = 909522486), - (c[(g + 76) >> 2] = 909522486), - (c[(hn = $n = (g - -64) | 0) >> 2] = 909522486), - (c[(hn + 4) >> 2] = 909522486), - (c[(g + 56) >> 2] = 909522486), - (c[(g + 60) >> 2] = 909522486), - (c[(g + 48) >> 2] = 909522486), - (c[(g + 52) >> 2] = 909522486), - (c[(g + 40) >> 2] = 909522486), - (c[(g + 44) >> 2] = 909522486), - (c[(g + 32) >> 2] = 909522486), - (c[(g + 36) >> 2] = 909522486), - h) - ) { - if (h >>> 0 >= 4) - for ( - j = 124 & h; - (pn[0 | (on = ((hn = (g + 32) | 0) + _e) | 0)] = - rn[0 | on] ^ rn[(a + _e) | 0]), - (pn[0 | (wn = ((on = 1 | _e) + hn) | 0)] = - rn[0 | wn] ^ rn[(a + on) | 0]), - (pn[0 | (wn = ((on = 2 | _e) + hn) | 0)] = - rn[0 | wn] ^ rn[(a + on) | 0]), - (pn[0 | (on = ((on = hn) + (hn = 3 | _e)) | 0)] = - rn[0 | on] ^ rn[(a + hn) | 0]), - (_e = (_e + 4) | 0), - (0 | j) != (0 | (cn = (cn + 4) | 0)); - - ); - if ((cn = 3 & h)) - for ( - ; - (pn[0 | (hn = (((g + 32) | 0) + _e) | 0)] = - rn[0 | hn] ^ rn[(a + _e) | 0]), - (_e = (_e + 1) | 0), - (0 | cn) != (0 | (Dn = (Dn + 1) | 0)); - - ); - } - if ( - ($s(d, (g + 32) | 0, 64, 0), - w0((hn = (d + 104) | 0)), - (c[(g + 88) >> 2] = 1549556828), - (c[(g + 92) >> 2] = 1549556828), - (c[(g + 80) >> 2] = 1549556828), - (c[(g + 84) >> 2] = 1549556828), - (c[(g + 72) >> 2] = 1549556828), - (c[(g + 76) >> 2] = 1549556828), - (c[$n >> 2] = 1549556828), - (c[($n + 4) >> 2] = 1549556828), - (c[(g + 56) >> 2] = 1549556828), - (c[(g + 60) >> 2] = 1549556828), - (c[(g + 48) >> 2] = 1549556828), - (c[(g + 52) >> 2] = 1549556828), - (c[(g + 40) >> 2] = 1549556828), - (c[(g + 44) >> 2] = 1549556828), - (c[(g + 32) >> 2] = 1549556828), - (c[(g + 36) >> 2] = 1549556828), - h) - ) { - if (((Dn = 0), (_e = 0), h >>> 0 >= 4)) - for ( - $n = 124 & h, cn = 0; - (pn[0 | (j = ((d = (g + 32) | 0) + _e) | 0)] = - rn[0 | j] ^ rn[(a + _e) | 0]), - (pn[0 | (on = ((j = 1 | _e) + d) | 0)] = - rn[0 | on] ^ rn[(a + j) | 0]), - (pn[0 | (on = ((j = 2 | _e) + d) | 0)] = - rn[0 | on] ^ rn[(a + j) | 0]), - (pn[0 | (j = ((on = d) + (d = 3 | _e)) | 0)] = - rn[0 | j] ^ rn[(d + a) | 0]), - (_e = (_e + 4) | 0), - (0 | $n) != (0 | (cn = (cn + 4) | 0)); - - ); - if ((d = 3 & h)) - for ( - ; - (pn[0 | (h = (((g + 32) | 0) + _e) | 0)] = - rn[0 | h] ^ rn[(a + _e) | 0]), - (_e = (_e + 1) | 0), - (0 | d) != (0 | (Dn = (Dn + 1) | 0)); - - ); - } - return ( - $s(hn, (d = (g + 32) | 0), 64, 0), - Ur(d, 64), - Ur(g, 32), - (St = (g + 96) | 0), - 0 - ) - } - function Et(d, a, h, g, _e, on, hn) { - var j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0 - if (((a - 65) >>> 0 < 4294967232) | (hn >>> 0 > 64)) d = -1 - else { - ;(Un = j = St), (St = j = (j - 512) & -64) - e: { - n: if ( - !( - !(!(g | _e) | h) | - !d | - ((((cn = 255 & a) - 65) & 255) >>> 0 <= 191) | - !(!(a = 255 & hn) || on) | - (a >>> 0 >= 65) - ) - ) { - if (a) { - if (!on) break n - qo((j - -64) | 0, 0, 293), - (c[(j + 56) >> 2] = 327033209), - (c[(j + 60) >> 2] = 1541459225), - (c[(j + 48) >> 2] = -79577749), - (c[(j + 52) >> 2] = 528734635), - (c[(j + 40) >> 2] = 725511199), - (c[(j + 44) >> 2] = -1694144372), - (c[(j + 32) >> 2] = -1377402159), - (c[(j + 36) >> 2] = 1359893119), - (c[(j + 24) >> 2] = 1595750129), - (c[(j + 28) >> 2] = -1521486534), - (c[(j + 16) >> 2] = -23791573), - (c[(j + 20) >> 2] = 1013904242), - (c[(j + 8) >> 2] = -2067093701), - (c[(j + 12) >> 2] = -1150833019), - (c[j >> 2] = -222443256 ^ ((a << 8) | cn)), - (c[(j + 4) >> 2] = (a >>> 24) ^ 1779033703), - qo(((hn = (j + 384) | 0) + a) | 0, 0, (128 - a) | 0), - Qo(hn, on, a), - Qo((j + 96) | 0, hn, 128), - (c[(j + 352) >> 2] = 128), - Ur(hn, 128), - (a = 128) - } else - qo((j - -64) | 0, 0, 293), - (c[(j + 56) >> 2] = 327033209), - (c[(j + 60) >> 2] = 1541459225), - (c[(j + 48) >> 2] = -79577749), - (c[(j + 52) >> 2] = 528734635), - (c[(j + 40) >> 2] = 725511199), - (c[(j + 44) >> 2] = -1694144372), - (c[(j + 32) >> 2] = -1377402159), - (c[(j + 36) >> 2] = 1359893119), - (c[(j + 24) >> 2] = 1595750129), - (c[(j + 28) >> 2] = -1521486534), - (c[(j + 16) >> 2] = -23791573), - (c[(j + 20) >> 2] = 1013904242), - (c[(j + 8) >> 2] = -2067093701), - (c[(j + 12) >> 2] = -1150833019), - (c[j >> 2] = -222443256 ^ cn), - (c[(j + 4) >> 2] = 1779033703), - (a = 0) - t: if (g | _e) - for (Yn = (j + 224) | 0, Dn = (j + 96) | 0; ; ) { - if ( - ((hn = (a + Dn) | 0), - !_e & (g >>> 0 <= (on = (256 - a) | 0) >>> 0)) - ) { - Qo(hn, h, g), - (c[(j + 352) >> 2] = g + c[(j + 352) >> 2]) - break t - } - if ( - (Qo(hn, h, on), - (c[(j + 352) >> 2] = on + c[(j + 352) >> 2]), - ($n = a = c[(j + 68) >> 2]), - (a = - (wn = ((hn = c[(j + 64) >> 2]) + 128) | 0) >>> 0 < - 128 - ? (a + 1) | 0 - : a), - (c[(j + 64) >> 2] = wn), - (c[(j + 68) >> 2] = a), - (a = c[(j + 76) >> 2]), - (a = - ($n = hn = - ((0 | $n) == -1) & (hn >>> 0 > 4294967167)) >>> - 0 > - (hn = (hn + c[(j + 72) >> 2]) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (c[(j + 72) >> 2] = hn), - (c[(j + 76) >> 2] = a), - mu(j, Dn), - Qo(Dn, Yn, 128), - (a = (c[(j + 352) >> 2] - 128) | 0), - (c[(j + 352) >> 2] = a), - (h = (h + on) | 0), - !( - (_e = (_e - (g >>> 0 < on >>> 0)) | 0) | - (g = (g - on) | 0) - )) - ) - break - } - qu(j, d, cn), (St = Un) - break e - } - ss(), so() - } - d = 0 - } - return d - } - function Dt(d, a) { - ;(d |= 0), (a |= 0) - var h, - g = 0 - ;(St = h = (St - 128) | 0), - (c[(h + 80) >> 2] = 0), - (c[(h + 84) >> 2] = 0), - (c[(h + 88) >> 2] = 0), - (c[(h + 92) >> 2] = 0), - (c[(h + 40) >> 2] = 0), - (c[(h + 44) >> 2] = 0), - (c[(h + 48) >> 2] = 0), - (c[(h + 52) >> 2] = 0), - (c[(h + 56) >> 2] = 0), - (c[(h + 60) >> 2] = 0), - (g = c[8595]), - (c[(h + 104) >> 2] = c[8594]), - (c[(h + 108) >> 2] = g), - (g = c[8597]), - (c[(h + 112) >> 2] = c[8596]), - (c[(h + 116) >> 2] = g), - (g = c[8599]), - (c[(h + 120) >> 2] = c[8598]), - (c[(h + 124) >> 2] = g), - (c[(h + 64) >> 2] = 0), - (c[(h + 68) >> 2] = 0), - (c[(h + 72) >> 2] = 0), - (c[(h + 76) >> 2] = 0), - (pn[(h + 64) | 0] = 1), - (c[(h + 32) >> 2] = 0), - (c[(h + 36) >> 2] = 0), - (g = c[8593]), - (c[(h + 96) >> 2] = c[8592]), - (c[(h + 100) >> 2] = g), - (g = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (c[(h + 24) >> 2] = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (c[(h + 28) >> 2] = g), - (g = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (c[(h + 16) >> 2] = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (c[(h + 20) >> 2] = g), - (g = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (c[(h + 8) >> 2] = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (c[(h + 12) >> 2] = g), - (g = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (c[h >> 2] = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (c[(h + 4) >> 2] = g), - X0((a = (h - -64) | 0), h), - zs(a), - (a = c[(h + 92) >> 2]), - (g = c[(h + 88) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(h + 84) >> 2]), - (g = c[(h + 80) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(h + 76) >> 2]), - (g = c[(h + 72) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(h + 68) >> 2]), - (g = c[(h + 64) >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - (St = (h + 128) | 0) - } - function Yt(d, a, h, g) { - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0 - e: { - if ((hn = c[(d + 56) >> 2]) | (_e = c[(d + 60) >> 2])) { - if ( - ((Un = on = (16 - hn) | 0), - (cn = (on = - (((0 | (j = (0 - (((hn >>> 0 > 16) + _e) | 0)) | 0)) == - (0 | g)) & - (h >>> 0 > on >>> 0)) | - (g >>> 0 > j >>> 0)) - ? Un - : h), - (Un = on = on ? j : g), - on | cn) - ) { - if (((on = 0), (hn = 0), (!Un & (cn >>> 0 >= 4)) | Un)) - for ( - Dn = -4 & cn, j = (d - -64) | 0; - (_e = (on + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + on) | 0]), - (_e = ((Yn = 1 | on) + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + Yn) | 0]), - (_e = ((Yn = 2 | on) + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + Yn) | 0]), - (_e = ((Yn = 3 | on) + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + Yn) | 0]), - (_e = hn), - (hn = - (on = (on + 4) | 0) >>> 0 < 4 - ? (_e + 1) | 0 - : _e), - (_e = $n), - ($n = _e = - (wn = (wn + 4) | 0) >>> 0 < 4 - ? (_e + 1) | 0 - : _e), - ((0 | wn) != (0 | Dn)) | ((0 | Un) != (0 | _e)); - - ); - if (((j = _e = 0), _e | ($n = 3 & cn))) - for ( - ; - (wn = (on + c[(d + 56) >> 2]) | 0), - (pn[(((d + wn) | 0) - -64) | 0] = rn[(a + on) | 0]), - (hn = (on = (on + 1) | 0) ? hn : (hn + 1) | 0), - (_e = nt), - (nt = _e = (et = (et + 1) | 0) ? _e : (_e + 1) | 0), - ((0 | $n) != (0 | et)) | ((0 | j) != (0 | _e)); - - ); - ;(hn = c[(d + 56) >> 2]), (_e = c[(d + 60) >> 2]) - } - if ( - ((_e = (_e + Un) | 0), - (_e = - (hn = (hn + cn) | 0) >>> 0 < cn >>> 0 - ? (_e + 1) | 0 - : _e), - (c[(d + 56) >> 2] = hn), - (c[(d + 60) >> 2] = _e), - !_e & (hn >>> 0 < 16)) - ) - break e - Wu(d, (d - -64) | 0, 16, 0), - (c[(d + 56) >> 2] = 0), - (c[(d + 60) >> 2] = 0), - (h = ((hn = h) - cn) | 0), - (g = (g - (((hn >>> 0 < cn >>> 0) + Un) | 0)) | 0), - (a = (a + cn) | 0) - } - if ( - ((!g & (h >>> 0 >= 16)) | g && - (Wu(d, a, (hn = -16 & h), g), - (h &= 15), - (g = 0), - (a = (a + hn) | 0)), - h | g) - ) { - if ( - ((et = 0), - (nt = 0), - (on = 0), - (hn = 0), - (!g & (h >>> 0 >= 4)) | g) - ) - for ( - cn = 12 & h, Un = 0, j = (d - -64) | 0, wn = 0, $n = 0; - (_e = (on + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + on) | 0]), - (_e = ((Dn = 1 | on) + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + Dn) | 0]), - (_e = ((Dn = 2 | on) + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + Dn) | 0]), - (_e = ((Dn = 3 | on) + c[(d + 56) >> 2]) | 0), - (pn[(_e + j) | 0] = rn[(a + Dn) | 0]), - (hn = - (on = (on + 4) | 0) >>> 0 < 4 ? (hn + 1) | 0 : hn), - (_e = $n), - ($n = _e = - (wn = (wn + 4) | 0) >>> 0 < 4 ? (_e + 1) | 0 : _e), - ((0 | cn) != (0 | wn)) | ((0 | Un) != (0 | _e)); - - ); - if (((j = _e = 0), _e | ($n = 3 & h))) - for ( - ; - (_e = (on + c[(d + 56) >> 2]) | 0), - (pn[(((d + _e) | 0) - -64) | 0] = rn[(a + on) | 0]), - (hn = (on = (on + 1) | 0) ? hn : (hn + 1) | 0), - (_e = nt), - (nt = _e = (et = (et + 1) | 0) ? _e : (_e + 1) | 0), - ((0 | $n) != (0 | et)) | ((0 | j) != (0 | _e)); - - ); - ;(hn = (g + c[(d + 60) >> 2]) | 0), - (hn = - (a = (h + c[(d + 56) >> 2]) | 0) >>> 0 < h >>> 0 - ? (hn + 1) | 0 - : hn), - (c[(d + 56) >> 2] = a), - (c[(d + 60) >> 2] = hn) - } - } - } - function nr(d, a) { - ;(d |= 0), (a |= 0) - var h, - g = 0 - ;(St = h = (St - 128) | 0), - (c[(h + 80) >> 2] = 0), - (c[(h + 84) >> 2] = 0), - (c[(h + 88) >> 2] = 0), - (c[(h + 92) >> 2] = 0), - (c[(h + 40) >> 2] = 0), - (c[(h + 44) >> 2] = 0), - (c[(h + 48) >> 2] = 0), - (c[(h + 52) >> 2] = 0), - (c[(h + 56) >> 2] = 0), - (c[(h + 60) >> 2] = 0), - (g = c[8595]), - (c[(h + 104) >> 2] = c[8594]), - (c[(h + 108) >> 2] = g), - (g = c[8597]), - (c[(h + 112) >> 2] = c[8596]), - (c[(h + 116) >> 2] = g), - (g = c[8599]), - (c[(h + 120) >> 2] = c[8598]), - (c[(h + 124) >> 2] = g), - (c[(h + 64) >> 2] = 0), - (c[(h + 68) >> 2] = 0), - (c[(h + 72) >> 2] = 0), - (c[(h + 76) >> 2] = 0), - (c[(h + 32) >> 2] = 0), - (c[(h + 36) >> 2] = 0), - (g = c[8593]), - (c[(h + 96) >> 2] = c[8592]), - (c[(h + 100) >> 2] = g), - (g = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (c[(h + 16) >> 2] = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (c[(h + 20) >> 2] = g), - (g = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (c[(h + 24) >> 2] = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (c[(h + 28) >> 2] = g), - (g = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (c[h >> 2] = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (c[(h + 4) >> 2] = g), - (g = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (c[(h + 8) >> 2] = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (c[(h + 12) >> 2] = g), - X0((a = (h - -64) | 0), h), - zs(a), - (a = c[(h + 92) >> 2]), - (g = c[(h + 88) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(h + 84) >> 2]), - (g = c[(h + 80) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(h + 76) >> 2]), - (g = c[(h + 72) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(h + 68) >> 2]), - (g = c[(h + 64) >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - (St = (h + 128) | 0) - } - function ar(d, a, h) { - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0 - ;(nt = c[(a + 4) >> 2]), - (_e = c[(d + 4) >> 2]), - (at = c[(a + 8) >> 2]), - (on = c[(d + 8) >> 2]), - (pt = c[(a + 12) >> 2]), - (hn = c[(d + 12) >> 2]), - (gt = c[(a + 16) >> 2]), - (j = c[(d + 16) >> 2]), - (mt = c[(a + 20) >> 2]), - (cn = c[(d + 20) >> 2]), - (yt = c[(a + 24) >> 2]), - (Dn = c[(d + 24) >> 2]), - (Yn = c[(a + 28) >> 2]), - ($n = c[(d + 28) >> 2]), - (_t = c[(a + 32) >> 2]), - (wn = c[(d + 32) >> 2]), - (bt = c[(a + 36) >> 2]), - (Un = c[(d + 36) >> 2]), - (h = (0 - h) | 0), - (et = c[d >> 2]), - (c[d >> 2] = (h & (et ^ c[a >> 2])) ^ et), - (c[(d + 36) >> 2] = Un ^ (h & (Un ^ bt))), - (c[(d + 32) >> 2] = wn ^ (h & (wn ^ _t))), - (c[(d + 28) >> 2] = $n ^ (h & ($n ^ Yn))), - (c[(d + 24) >> 2] = Dn ^ (h & (Dn ^ yt))), - (c[(d + 20) >> 2] = cn ^ (h & (cn ^ mt))), - (c[(d + 16) >> 2] = j ^ (h & (j ^ gt))), - (c[(d + 12) >> 2] = hn ^ (h & (hn ^ pt))), - (c[(d + 8) >> 2] = on ^ (h & (on ^ at))), - (c[(d + 4) >> 2] = _e ^ (h & (_e ^ nt))), - (_e = c[(d + 40) >> 2]), - (nt = c[(a + 40) >> 2]), - (on = c[(d + 44) >> 2]), - (at = c[(a + 44) >> 2]), - (hn = c[(d + 48) >> 2]), - (pt = c[(a + 48) >> 2]), - (j = c[(d + 52) >> 2]), - (gt = c[(a + 52) >> 2]), - (cn = c[(d + 56) >> 2]), - (mt = c[(a + 56) >> 2]), - (Dn = c[(d + 60) >> 2]), - (yt = c[(a + 60) >> 2]), - ($n = c[(Yn = (d - -64) | 0) >> 2]), - (_t = c[(a - -64) >> 2]), - (wn = c[(d + 68) >> 2]), - (bt = c[(a + 68) >> 2]), - (Un = c[(d + 72) >> 2]), - (et = c[(a + 72) >> 2]), - (g = c[(d + 76) >> 2]), - (c[(d + 76) >> 2] = g ^ (h & (c[(a + 76) >> 2] ^ g))), - (c[(d + 72) >> 2] = Un ^ (h & (Un ^ et))), - (c[(d + 68) >> 2] = wn ^ (h & (wn ^ bt))), - (c[Yn >> 2] = $n ^ (h & ($n ^ _t))), - (c[(d + 60) >> 2] = Dn ^ (h & (Dn ^ yt))), - (c[(d + 56) >> 2] = cn ^ (h & (cn ^ mt))), - (c[(d + 52) >> 2] = j ^ (h & (j ^ gt))), - (c[(d + 48) >> 2] = hn ^ (h & (hn ^ pt))), - (c[(d + 44) >> 2] = on ^ (h & (on ^ at))), - (c[(d + 40) >> 2] = _e ^ (h & (_e ^ nt))), - (_e = c[(d + 80) >> 2]), - (nt = c[(a + 80) >> 2]), - (on = c[(d + 84) >> 2]), - (at = c[(a + 84) >> 2]), - (hn = c[(d + 88) >> 2]), - (pt = c[(a + 88) >> 2]), - (j = c[(d + 92) >> 2]), - (gt = c[(a + 92) >> 2]), - (cn = c[(d + 96) >> 2]), - (mt = c[(a + 96) >> 2]), - (Dn = c[(d + 100) >> 2]), - (yt = c[(a + 100) >> 2]), - ($n = c[(d + 104) >> 2]), - (Yn = c[(a + 104) >> 2]), - (wn = c[(d + 108) >> 2]), - (_t = c[(a + 108) >> 2]), - (Un = c[(d + 112) >> 2]), - (bt = c[(a + 112) >> 2]), - (et = c[(a + 116) >> 2]), - (a = c[(d + 116) >> 2]), - (c[(d + 116) >> 2] = (h & (et ^ a)) ^ a), - (c[(d + 112) >> 2] = Un ^ (h & (Un ^ bt))), - (c[(d + 108) >> 2] = wn ^ (h & (wn ^ _t))), - (c[(d + 104) >> 2] = $n ^ (h & ($n ^ Yn))), - (c[(d + 100) >> 2] = Dn ^ (h & (Dn ^ yt))), - (c[(d + 96) >> 2] = cn ^ (h & (cn ^ mt))), - (c[(d + 92) >> 2] = j ^ (h & (j ^ gt))), - (c[(d + 88) >> 2] = hn ^ (h & (hn ^ pt))), - (c[(d + 84) >> 2] = on ^ (h & (on ^ at))), - (c[(d + 80) >> 2] = _e ^ (h & (_e ^ nt))) - } - function kr(d, a) { - var h, - g, - _e = 0 - for ( - St = h = (St - 192) | 0, - Bt((g = (h + 144) | 0), a), - Bt((_e = (h + 96) | 0), g), - Bt(_e, _e), - Gt(_e, a, _e), - Gt(g, g, _e), - Bt((a = (h + 48) | 0), g), - Gt(_e, _e, a), - Bt(a, _e), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Gt(_e, a, _e), - Bt(a, _e), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Gt(a, a, _e), - Bt(h, a), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Gt(a, h, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Gt(_e, a, _e), - Bt(a, _e), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Gt(a, a, _e), - Bt(h, a), - a = 1; - Bt(h, h), (0 | (a = (a + 1) | 0)) != 100; - - ); - Gt((a = (h + 48) | 0), h, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Bt(a, a), - Gt((_e = (h + 96) | 0), a, _e), - Bt(_e, _e), - Bt(_e, _e), - Bt(_e, _e), - Bt(_e, _e), - Bt(_e, _e), - Gt(d, _e, (h + 144) | 0), - (St = (h + 192) | 0) - } - function Nr(d, a, h, g, _e) { - ;(d |= 0), (a |= 0), (h |= 0), (g |= 0) - var on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0 - e: { - n: { - t: { - if ( - (-7 & (_e |= 0)) == 1 && - ((cn = (on = ((g >>> 0) / 3) | 0) << 2), - (on = (zr(on, -3) + g) | 0) && - (cn = - 2 & _e - ? ((2 | cn) + ((on >>> 1) | 0)) | 0 - : (cn + 4) | 0), - !(a >>> 0 <= cn >>> 0)) - ) { - if (!(4 & _e)) { - if (((on = 0), !g)) break e - break t - } - if (((on = 0), !g)) break e - for (;;) { - for ( - $n = (Un = rn[(h + wn) | 0]) | ($n << 8), - Dn = on, - on = - (1 + - (((((((j |= 8) - 6) >>> 0) / 6) | 0) + on) | - 0)) | - 0; - (Yn = - ((65510 + - (hn = - ($n >>> (j = ((_e = j) - 6) | 0)) & 63)) >>> - 8) | - 0), - (et = ((hn + 65484) >>> 8) | 0), - (pn[(d + Dn) | 0] = - ((((1 + (16321 ^ hn)) ^ -1) >>> 8) & 45) | - ((hn + 252) & - ((hn + 65474) >>> 8) & - (-1 ^ et)) | - ((((hn + 32705) ^ -1) >>> 8) & 95) | - (Yn & (hn + 65)) | - (et & (hn + 71) & (-1 ^ Yn))), - (0 | (Dn = (Dn + 1) | 0)) != (0 | on); - - ); - if ((0 | (wn = (wn + 1) | 0)) == (0 | g)) break - } - if (!j) break e - ;(Dn = - (g = - ((65510 + (h = (Un << (12 - _e)) & 63)) >>> 8) | - 0) & - (h + 65)), - ($n = - (h + 252) & - ((h + 65474) >>> 8) & - (-1 ^ (_e = ((h + 65484) >>> 8) | 0))), - (j = _e & (h + 71) & (-1 ^ g)), - (g = (h + 32705) | 0), - (_e = (((1 + (16321 ^ h)) ^ -1) >>> 8) & 45), - (h = 95) - break n - } - ss(), so() - } - for (;;) { - for ( - $n = (Un = rn[(h + wn) | 0]) | ($n << 8), - Dn = on, - on = - (1 + - (((((((j |= 8) - 6) >>> 0) / 6) | 0) + on) | 0)) | - 0; - (Yn = - ((65510 + - (hn = ($n >>> (j = ((_e = j) - 6) | 0)) & 63)) >>> - 8) | - 0), - (et = ((hn + 65484) >>> 8) | 0), - (pn[(d + Dn) | 0] = - ((((1 + (16321 ^ hn)) ^ -1) >>> 8) & 43) | - ((hn + 252) & ((hn + 65474) >>> 8) & (-1 ^ et)) | - ((((hn + 16321) ^ -1) >>> 8) & 47) | - (Yn & (hn + 65)) | - (et & (hn + 71) & (-1 ^ Yn))), - (0 | (Dn = (Dn + 1) | 0)) != (0 | on); - - ); - if ((0 | (wn = (wn + 1) | 0)) == (0 | g)) break - } - if (!j) break e - ;(Dn = - (g = ((65510 + (h = (Un << (12 - _e)) & 63)) >>> 8) | 0) & - (h + 65)), - ($n = - (h + 252) & - ((h + 65474) >>> 8) & - (-1 ^ (_e = ((h + 65484) >>> 8) | 0))), - (j = _e & (h + 71) & (-1 ^ g)), - (g = (h + 16321) | 0), - (_e = (((1 + (16321 ^ h)) ^ -1) >>> 8) & 43), - (h = 47) - } - ;(pn[(d + on) | 0] = - (h & ((-1 ^ g) >>> 8)) | Dn | $n | _e | j), - (on = (on + 1) | 0) - } - e: { - n: { - if (on >>> 0 <= cn >>> 0) { - if (on >>> 0 < cn >>> 0) break n - cn = on - break e - } - ru(1104, 1201, 230, 1505), so() - } - qo((d + on) | 0, 61, (cn - on) | 0) - } - return ( - qo( - (d + cn) | 0, - 0, - ((a >>> 0 > (h = (cn + 1) | 0) >>> 0 ? a : h) - cn) | 0, - ), - 0 | d - ) - } - function Vr(d, a) { - var h, - g = 0, - _e = 0 - for ( - St = h = (St - 144) | 0, - Bt((_e = (h + 96) | 0), a), - Bt((g = (h + 48) | 0), _e), - Bt(g, g), - Gt(g, a, g), - Gt(_e, _e, g), - Bt(_e, _e), - Gt(_e, g, _e), - Bt(g, _e), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Gt(_e, g, _e), - Bt(g, _e), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Gt(g, g, _e), - Bt(h, g), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Bt(h, h), - Gt(g, h, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Gt(_e, g, _e), - Bt(g, _e), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Gt(g, g, _e), - Bt(h, g), - g = 1; - Bt(h, h), (0 | (g = (g + 1) | 0)) != 100; - - ); - Gt((g = (h + 48) | 0), h, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Bt(g, g), - Gt((_e = (h + 96) | 0), g, _e), - Bt(_e, _e), - Bt(_e, _e), - Gt(d, _e, a), - (St = (h + 144) | 0) - } - function to(d, a) { - var h, - g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t = 0, - bt = 0, - kt = 0, - Rt = 0 - ;(St = h = (St - 320) | 0), - Xs((g = (d + 40) | 0), a), - (c[(d + 84) >> 2] = 0), - (c[(d + 88) >> 2] = 0), - (c[(d + 80) >> 2] = 1), - (c[(d + 92) >> 2] = 0), - (c[(d + 96) >> 2] = 0), - (c[(d + 100) >> 2] = 0), - (c[(d + 104) >> 2] = 0), - (c[(d + 108) >> 2] = 0), - (c[(d + 112) >> 2] = 0), - (c[(d + 116) >> 2] = 0), - Bt((kt = (h + 240) | 0), g), - Gt((bt = (h + 192) | 0), kt, 1600), - (Rt = -1), - (_e = (c[(h + 240) >> 2] - 1) | 0), - (c[(h + 240) >> 2] = _e), - (c[(h + 192) >> 2] = c[(h + 192) >> 2] + 1), - (on = c[(h + 244) >> 2]), - (hn = c[(h + 248) >> 2]), - (j = c[(h + 252) >> 2]), - (cn = c[(h + 256) >> 2]), - (Dn = c[(h + 260) >> 2]), - ($n = c[(h + 264) >> 2]), - (wn = c[(h + 268) >> 2]), - (Un = c[(h + 272) >> 2]), - (Yn = c[(h + 276) >> 2]), - Bt((_t = (h + 144) | 0), bt), - Gt(_t, _t, bt), - Bt(d, _t), - Gt(d, d, bt), - Gt(d, d, kt), - Vr(d, d), - Gt(d, d, _t), - Gt(d, d, kt), - Bt((_t = (h + 96) | 0), d), - Gt(_t, _t, bt), - (bt = c[(h + 132) >> 2]), - (c[(h + 84) >> 2] = bt - Yn), - (_t = c[(h + 128) >> 2]), - (c[(h + 80) >> 2] = _t - Un), - (kt = c[(h + 124) >> 2]), - (c[(h + 76) >> 2] = kt - wn), - (et = c[(h + 120) >> 2]), - (c[(h + 72) >> 2] = et - $n), - (nt = c[(h + 116) >> 2]), - (c[(h + 68) >> 2] = nt - Dn), - (at = c[(h + 112) >> 2]), - (c[(h + 64) >> 2] = at - cn), - (pt = c[(h + 108) >> 2]), - (c[(h + 60) >> 2] = pt - j), - (gt = c[(h + 104) >> 2]), - (c[(h + 56) >> 2] = gt - hn), - (mt = c[(h + 100) >> 2]), - (c[(h + 52) >> 2] = mt - on), - (yt = c[(h + 96) >> 2]), - (c[(h + 48) >> 2] = yt - _e), - cs(h, (h + 48) | 0) - e: { - if (!Qs(h, 32)) { - if ( - ((c[(h + 36) >> 2] = bt + Yn), - (c[(h + 32) >> 2] = _t + Un), - (c[(h + 28) >> 2] = kt + wn), - (c[(h + 24) >> 2] = $n + et), - (c[(h + 20) >> 2] = Dn + nt), - (c[(h + 16) >> 2] = cn + at), - (c[(h + 12) >> 2] = j + pt), - (c[(h + 8) >> 2] = hn + gt), - (c[(h + 4) >> 2] = on + mt), - (c[h >> 2] = _e + yt), - cs((bt = (h + 288) | 0), h), - !Qs(bt, 32)) - ) - break e - Gt(d, d, 1648) - } - cs((h + 288) | 0, d), - (1 & pn[(h + 288) | 0]) == ((rn[(a + 31) | 0] >>> 7) | 0) && - ((c[d >> 2] = 0 - c[d >> 2]), - (c[(d + 36) >> 2] = 0 - c[(d + 36) >> 2]), - (c[(d + 32) >> 2] = 0 - c[(d + 32) >> 2]), - (c[(d + 28) >> 2] = 0 - c[(d + 28) >> 2]), - (c[(d + 24) >> 2] = 0 - c[(d + 24) >> 2]), - (c[(d + 20) >> 2] = 0 - c[(d + 20) >> 2]), - (c[(d + 16) >> 2] = 0 - c[(d + 16) >> 2]), - (c[(d + 12) >> 2] = 0 - c[(d + 12) >> 2]), - (c[(d + 8) >> 2] = 0 - c[(d + 8) >> 2]), - (c[(d + 4) >> 2] = 0 - c[(d + 4) >> 2])), - Gt((d + 120) | 0, d, g), - (Rt = 0) - } - return (St = (h + 320) | 0), Rt - } - function Io(d, a, h) { - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0 - ;(St = g = (St - 128) | 0), - (c[d >> 2] = 1), - (c[(d + 4) >> 2] = 0), - (c[(d + 8) >> 2] = 0), - (c[(d + 12) >> 2] = 0), - (c[(d + 16) >> 2] = 0), - (c[(d + 20) >> 2] = 0), - (c[(d + 24) >> 2] = 0), - (c[(d + 28) >> 2] = 0), - (c[(d + 32) >> 2] = 0), - (c[(d + 36) >> 2] = 0), - (c[(d + 40) >> 2] = 1), - qo((d + 44) | 0, 0, 76), - ar( - d, - (_e = (zr(a, 960) + 3008) | 0), - (((255 & (1 ^ (a = (h - (((h >> 31) & h) << 1)) | 0))) - - 1) >>> - 31) | - 0, - ), - ar(d, (_e + 120) | 0, (((255 & (2 ^ a)) - 1) >>> 31) | 0), - ar(d, (_e + 240) | 0, (((255 & (3 ^ a)) - 1) >>> 31) | 0), - ar(d, (_e + 360) | 0, (((255 & (4 ^ a)) - 1) >>> 31) | 0), - ar(d, (_e + 480) | 0, (((255 & (5 ^ a)) - 1) >>> 31) | 0), - ar(d, (_e + 600) | 0, (((255 & (6 ^ a)) - 1) >>> 31) | 0), - ar(d, (_e + 720) | 0, (((255 & (7 ^ a)) - 1) >>> 31) | 0), - ar(d, (_e + 840) | 0, (((255 & (8 ^ a)) - 1) >>> 31) | 0), - (on = c[(d + 40) >> 2]), - (hn = c[(d + 44) >> 2]), - (j = c[(d + 48) >> 2]), - (cn = c[(d + 52) >> 2]), - (Dn = c[(d + 56) >> 2]), - ($n = c[(d + 60) >> 2]), - (wn = c[(a = (d - -64) | 0) >> 2]), - (_e = c[(a + 4) >> 2]), - (a = c[(d + 76) >> 2]), - (c[(g + 40) >> 2] = c[(d + 72) >> 2]), - (c[(g + 44) >> 2] = a), - (c[(g + 32) >> 2] = wn), - (c[(g + 36) >> 2] = _e), - (c[(g + 24) >> 2] = Dn), - (c[(g + 28) >> 2] = $n), - (c[(g + 16) >> 2] = j), - (c[(g + 20) >> 2] = cn), - (c[(g + 8) >> 2] = on), - (c[(g + 12) >> 2] = hn), - (on = c[(d + 8) >> 2]), - (hn = c[(d + 12) >> 2]), - (j = c[(d + 16) >> 2]), - (cn = c[(d + 20) >> 2]), - (Dn = c[(d + 24) >> 2]), - ($n = c[(d + 28) >> 2]), - (wn = c[d >> 2]), - (_e = c[(d + 4) >> 2]), - (a = c[(d + 36) >> 2]), - (c[(g + 80) >> 2] = c[(d + 32) >> 2]), - (c[(g + 84) >> 2] = a), - (c[(g + 72) >> 2] = Dn), - (c[(g + 76) >> 2] = $n), - (c[(a = (g - -64) | 0) >> 2] = j), - (c[(a + 4) >> 2] = cn), - (c[(g + 56) >> 2] = on), - (c[(g + 60) >> 2] = hn), - (c[(g + 48) >> 2] = wn), - (c[(g + 52) >> 2] = _e), - (on = c[(d + 80) >> 2]), - (hn = c[(d + 84) >> 2]), - (j = c[(d + 88) >> 2]), - (cn = c[(d + 92) >> 2]), - (Dn = c[(d + 96) >> 2]), - ($n = c[(d + 100) >> 2]), - (wn = c[(d + 104) >> 2]), - (_e = c[(d + 108) >> 2]), - (a = c[(d + 112) >> 2]), - (c[(g + 124) >> 2] = 0 - c[(d + 116) >> 2]), - (c[(g + 120) >> 2] = 0 - a), - (c[(g + 116) >> 2] = 0 - _e), - (c[(g + 112) >> 2] = 0 - wn), - (c[(g + 108) >> 2] = 0 - $n), - (c[(g + 104) >> 2] = 0 - Dn), - (c[(g + 100) >> 2] = 0 - cn), - (c[(g + 96) >> 2] = 0 - j), - (c[(g + 92) >> 2] = 0 - hn), - (c[(g + 88) >> 2] = 0 - on), - ar(d, (g + 8) | 0, ((128 & h) >>> 7) | 0), - (St = (g + 128) | 0) - } - function $o(d) { - var a, - h, - g, - _e, - on, - hn, - j, - cn, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0 - return ( - (St = a = (St - 320) | 0), - Bt(($n = (a + 240) | 0), d), - Bt((wn = (a + 192) | 0), (d + 40) | 0), - Bt((Dn = (a + 144) | 0), (d + 80) | 0), - (d = c[(a + 240) >> 2]), - (Un = c[(a + 192) >> 2]), - (Yn = c[(a + 244) >> 2]), - (et = c[(a + 196) >> 2]), - (nt = c[(a + 248) >> 2]), - (at = c[(a + 200) >> 2]), - (pt = c[(a + 252) >> 2]), - (gt = c[(a + 204) >> 2]), - (mt = c[(a + 256) >> 2]), - (yt = c[(a + 208) >> 2]), - (_t = c[(a + 260) >> 2]), - (bt = c[(a + 212) >> 2]), - (kt = c[(a + 264) >> 2]), - (Rt = c[(a + 216) >> 2]), - (At = c[(a + 268) >> 2]), - (Ct = c[(a + 220) >> 2]), - (wt = c[(a + 272) >> 2]), - (Tt = c[(a + 224) >> 2]), - (c[(a + 84) >> 2] = c[(a + 228) >> 2] - c[(a + 276) >> 2]), - (c[(a + 80) >> 2] = Tt - wt), - (c[(a + 76) >> 2] = Ct - At), - (c[(a + 72) >> 2] = Rt - kt), - (c[(a + 68) >> 2] = bt - _t), - (c[(a + 64) >> 2] = yt - mt), - (c[(a + 60) >> 2] = gt - pt), - (c[(a + 56) >> 2] = at - nt), - (c[(a + 52) >> 2] = et - Yn), - (c[(a + 48) >> 2] = Un - d), - Gt((d = (a + 48) | 0), d, Dn), - Gt(a, $n, wn), - Gt(a, a, 1600), - Bt((a + 96) | 0, Dn), - (Dn = c[(a + 48) >> 2]), - ($n = c[(a + 96) >> 2]), - (wn = c[a >> 2]), - (Un = c[(a + 52) >> 2]), - (Yn = c[(a + 100) >> 2]), - (et = c[(a + 4) >> 2]), - (nt = c[(a + 56) >> 2]), - (at = c[(a + 104) >> 2]), - (pt = c[(a + 8) >> 2]), - (gt = c[(a + 60) >> 2]), - (mt = c[(a + 108) >> 2]), - (yt = c[(a + 12) >> 2]), - (_t = c[(a + 64) >> 2]), - (bt = c[(a + 112) >> 2]), - (kt = c[(a + 16) >> 2]), - (Rt = c[(a + 68) >> 2]), - (At = c[(a + 116) >> 2]), - (Ct = c[(a + 20) >> 2]), - (wt = c[(a + 72) >> 2]), - (Tt = c[(a + 120) >> 2]), - (h = c[(a + 24) >> 2]), - (g = c[(a + 76) >> 2]), - (_e = c[(a + 124) >> 2]), - (on = c[(a + 28) >> 2]), - (hn = c[(a + 80) >> 2]), - (j = c[(a + 128) >> 2]), - (cn = c[(a + 32) >> 2]), - (c[(a + 84) >> 2] = - c[(a + 84) >> 2] - - ((c[(a + 132) >> 2] + c[(a + 36) >> 2]) | 0)), - (c[(a + 80) >> 2] = hn - ((j + cn) | 0)), - (c[(a + 76) >> 2] = g - ((_e + on) | 0)), - (c[(a + 72) >> 2] = wt - ((Tt + h) | 0)), - (c[(a + 68) >> 2] = Rt - ((At + Ct) | 0)), - (c[(a + 64) >> 2] = _t - ((bt + kt) | 0)), - (c[(a + 60) >> 2] = gt - ((mt + yt) | 0)), - (c[(a + 56) >> 2] = nt - ((at + pt) | 0)), - (c[(a + 52) >> 2] = Un - ((Yn + et) | 0)), - (c[(a + 48) >> 2] = Dn - (($n + wn) | 0)), - cs((Dn = (a + 288) | 0), d), - (d = Qs(Dn, 32)), - (St = (a + 320) | 0), - d - ) - } - function go(d, a, h, g) { - var _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0 - if (h | g) - e: for ( - $n = (d + 224) | 0, - cn = (d + 96) | 0, - on = - rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24); - ; - - ) { - if ( - ((_e = (on + cn) | 0), - !g & (h >>> 0 <= (hn = (256 - on) | 0) >>> 0)) - ) { - Qo(_e, a, h), - (a = - ((rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24)) + - h) | - 0), - (pn[(d + 352) | 0] = a), - (pn[(d + 353) | 0] = a >>> 8), - (pn[(d + 354) | 0] = a >>> 16), - (pn[(d + 355) | 0] = a >>> 24) - break e - } - if ( - (Qo(_e, a, hn), - (_e = - ((rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24)) + - hn) | - 0), - (pn[(d + 352) | 0] = _e), - (pn[(d + 353) | 0] = _e >>> 8), - (pn[(d + 354) | 0] = _e >>> 16), - (pn[(d + 355) | 0] = _e >>> 24), - (Dn = on = - rn[(d + 68) | 0] | - (rn[(d + 69) | 0] << 8) | - (rn[(d + 70) | 0] << 16) | - (rn[(d + 71) | 0] << 24)), - (on = - (j = - (128 + - (_e = - rn[(d + 64) | 0] | - (rn[(d + 65) | 0] << 8) | - (rn[(d + 66) | 0] << 16) | - (rn[(d + 67) | 0] << 24))) | - 0) >>> - 0 < - 128 - ? (on + 1) | 0 - : on), - (pn[(d + 64) | 0] = j), - (pn[(d + 65) | 0] = j >>> 8), - (pn[(d + 66) | 0] = j >>> 16), - (pn[(d + 67) | 0] = j >>> 24), - (pn[(d + 68) | 0] = on), - (pn[(d + 69) | 0] = on >>> 8), - (pn[(d + 70) | 0] = on >>> 16), - (pn[(d + 71) | 0] = on >>> 24), - (on = - rn[(d + 76) | 0] | - (rn[(d + 77) | 0] << 8) | - (rn[(d + 78) | 0] << 16) | - (rn[(d + 79) | 0] << 24)), - (on = - (Dn = _e = - ((0 | Dn) == -1) & (_e >>> 0 > 4294967167)) >>> - 0 > - (_e = - (_e + - (rn[(d + 72) | 0] | - (rn[(d + 73) | 0] << 8) | - (rn[(d + 74) | 0] << 16) | - (rn[(d + 75) | 0] << 24))) | - 0) >>> - 0 - ? (on + 1) | 0 - : on), - (pn[(d + 72) | 0] = _e), - (pn[(d + 73) | 0] = _e >>> 8), - (pn[(d + 74) | 0] = _e >>> 16), - (pn[(d + 75) | 0] = _e >>> 24), - (pn[(d + 76) | 0] = on), - (pn[(d + 77) | 0] = on >>> 8), - (pn[(d + 78) | 0] = on >>> 16), - (pn[(d + 79) | 0] = on >>> 24), - mu(d, cn), - Qo(cn, $n, 128), - (_e = on = - ((rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24)) - - 128) | - 0), - (pn[(d + 352) | 0] = _e), - (pn[(d + 353) | 0] = _e >>> 8), - (pn[(d + 354) | 0] = _e >>> 16), - (pn[(d + 355) | 0] = _e >>> 24), - (a = (a + hn) | 0), - !( - (g = (g - (h >>> 0 < hn >>> 0)) | 0) | - (h = (h - hn) | 0) - )) - ) - break - } - return 0 - } - function es(d) { - var a = 0, - h = 0, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0 - for ( - h = c[(d + 60) >> 2], - at = c[(d + 56) >> 2], - nt = c[(d + 52) >> 2], - Yn = c[(d + 48) >> 2], - a = c[(d + 44) >> 2], - g = c[(d + 40) >> 2], - pt = c[(d + 36) >> 2], - Un = c[(d + 32) >> 2], - _e = c[(d + 28) >> 2], - on = c[(d + 24) >> 2], - hn = c[(d + 20) >> 2], - j = c[(d + 16) >> 2], - cn = c[(d + 12) >> 2], - Dn = c[(d + 8) >> 2], - $n = c[(d + 4) >> 2], - wn = c[d >> 2]; - (et = Ft((hn + $n) | 0, 7) ^ pt), - (gt = Ft((et + hn) | 0, 9) ^ nt), - (j = Ft((wn + Yn) | 0, 7) ^ j), - (mt = Ft((j + wn) | 0, 9) ^ Un), - (yt = Ft((mt + j) | 0, 13) ^ Yn), - (cn = Ft((a + h) | 0, 7) ^ cn), - (_e = Ft((cn + h) | 0, 9) ^ _e), - (Un = Ft((_e + cn) | 0, 13) ^ a), - (h = Ft((_e + Un) | 0, 18) ^ h), - (a = Ft((g + on) | 0, 7) ^ at), - (Yn = yt ^ Ft((h + a) | 0, 7)), - (nt = gt ^ Ft((Yn + h) | 0, 9)), - (at = Ft((Yn + nt) | 0, 13) ^ a), - (h = Ft((nt + at) | 0, 18) ^ h), - (Dn = Ft((a + g) | 0, 9) ^ Dn), - (on = Ft((Dn + a) | 0, 13) ^ on), - (g = Ft((on + Dn) | 0, 18) ^ g), - (a = Ft((g + et) | 0, 7) ^ Un), - (Un = Ft((a + g) | 0, 9) ^ mt), - (pt = Ft((a + Un) | 0, 13) ^ et), - (g = Ft((Un + pt) | 0, 18) ^ g), - ($n = Ft((et + gt) | 0, 13) ^ $n), - (hn = Ft(($n + gt) | 0, 18) ^ hn), - (on = Ft((hn + j) | 0, 7) ^ on), - (_e = Ft((on + hn) | 0, 9) ^ _e), - (j = Ft((_e + on) | 0, 13) ^ j), - (hn = Ft((j + _e) | 0, 18) ^ hn), - (wn = Ft((mt + yt) | 0, 18) ^ wn), - ($n = Ft((wn + cn) | 0, 7) ^ $n), - (Dn = Ft(($n + wn) | 0, 9) ^ Dn), - (cn = Ft((Dn + $n) | 0, 13) ^ cn), - (wn = Ft((cn + Dn) | 0, 18) ^ wn), - (et = _t >>> 0 < 6), - (_t = (_t + 2) | 0), - et; - - ); - ;(c[d >> 2] = c[d >> 2] + wn), - (c[(d + 4) >> 2] = c[(d + 4) >> 2] + $n), - (c[(d + 8) >> 2] = c[(d + 8) >> 2] + Dn), - (c[(d + 12) >> 2] = c[(d + 12) >> 2] + cn), - (c[(d + 16) >> 2] = c[(d + 16) >> 2] + j), - (c[(d + 20) >> 2] = c[(d + 20) >> 2] + hn), - (c[(d + 24) >> 2] = c[(d + 24) >> 2] + on), - (c[(d + 28) >> 2] = c[(d + 28) >> 2] + _e), - (c[(d + 32) >> 2] = c[(d + 32) >> 2] + Un), - (c[(d + 36) >> 2] = c[(d + 36) >> 2] + pt), - (c[(d + 40) >> 2] = c[(d + 40) >> 2] + g), - (c[(d + 44) >> 2] = c[(d + 44) >> 2] + a), - (c[(d + 48) >> 2] = c[(d + 48) >> 2] + Yn), - (c[(d + 52) >> 2] = c[(d + 52) >> 2] + nt), - (c[(d + 56) >> 2] = c[(d + 56) >> 2] + at), - (c[(d + 60) >> 2] = c[(d + 60) >> 2] + h) - } - function As(d, a, h, g) { - var _e, - on = 0 - return ( - (St = _e = (St - 320) | 0), - (on = -1), - Z0(h) && - (e0(h) || - su(_e, h) || - (Gu(_e) && - ((pn[0 | d] = rn[0 | a]), - (pn[(d + 1) | 0] = rn[(a + 1) | 0]), - (pn[(d + 2) | 0] = rn[(a + 2) | 0]), - (pn[(d + 3) | 0] = rn[(a + 3) | 0]), - (pn[(d + 4) | 0] = rn[(a + 4) | 0]), - (pn[(d + 5) | 0] = rn[(a + 5) | 0]), - (pn[(d + 6) | 0] = rn[(a + 6) | 0]), - (pn[(d + 7) | 0] = rn[(a + 7) | 0]), - (pn[(d + 8) | 0] = rn[(a + 8) | 0]), - (pn[(d + 9) | 0] = rn[(a + 9) | 0]), - (pn[(d + 10) | 0] = rn[(a + 10) | 0]), - (pn[(d + 11) | 0] = rn[(a + 11) | 0]), - (pn[(d + 12) | 0] = rn[(a + 12) | 0]), - (pn[(d + 13) | 0] = rn[(a + 13) | 0]), - (pn[(d + 14) | 0] = rn[(a + 14) | 0]), - (pn[(d + 15) | 0] = rn[(a + 15) | 0]), - (pn[(d + 16) | 0] = rn[(a + 16) | 0]), - (pn[(d + 17) | 0] = rn[(a + 17) | 0]), - (pn[(d + 18) | 0] = rn[(a + 18) | 0]), - (pn[(d + 19) | 0] = rn[(a + 19) | 0]), - (pn[(d + 20) | 0] = rn[(a + 20) | 0]), - (pn[(d + 21) | 0] = rn[(a + 21) | 0]), - (pn[(d + 22) | 0] = rn[(a + 22) | 0]), - (pn[(d + 23) | 0] = rn[(a + 23) | 0]), - (pn[(d + 24) | 0] = rn[(a + 24) | 0]), - (pn[(d + 25) | 0] = rn[(a + 25) | 0]), - (pn[(d + 26) | 0] = rn[(a + 26) | 0]), - (pn[(d + 27) | 0] = rn[(a + 27) | 0]), - (pn[(d + 28) | 0] = rn[(a + 28) | 0]), - (pn[(d + 29) | 0] = rn[(a + 29) | 0]), - (pn[(d + 30) | 0] = rn[(a + 30) | 0]), - (h = rn[(a + 31) | 0]), - g && ((pn[0 | d] = 248 & rn[0 | d]), (h |= 64)), - (pn[(d + 31) | 0] = 127 & h), - A0((h = (_e + 160) | 0), d, _e), - gu(d, h), - (((127 & rn[(d + 31) | 0]) | - rn[(d + 30) | 0] | - rn[(d + 29) | 0] | - rn[(d + 28) | 0] | - rn[(d + 27) | 0] | - rn[(d + 26) | 0] | - rn[(d + 25) | 0] | - rn[(d + 24) | 0] | - rn[(d + 23) | 0] | - rn[(d + 22) | 0] | - rn[(d + 21) | 0] | - rn[(d + 20) | 0] | - rn[(d + 19) | 0] | - rn[(d + 18) | 0] | - rn[(d + 17) | 0] | - rn[(d + 16) | 0] | - rn[(d + 15) | 0] | - rn[(d + 14) | 0] | - rn[(d + 13) | 0] | - rn[(d + 12) | 0] | - rn[(d + 11) | 0] | - rn[(d + 10) | 0] | - rn[(d + 9) | 0] | - rn[(d + 8) | 0] | - rn[(d + 7) | 0] | - rn[(d + 6) | 0] | - rn[(d + 5) | 0] | - rn[(d + 4) | 0] | - rn[(d + 3) | 0] | - rn[(d + 2) | 0] | - rn[(d + 1) | 0] | - (1 ^ rn[0 | d])) - - 1) & - 256 || (on = Qs(a, 32) ? -1 : 0)))), - (St = (_e + 320) | 0), - on - ) - } - function Ds(d, a, h, g, _e) { - var on, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0 - if ( - ((St = on = (St - 48) | 0), - _e && Ps(_e, 102), - !( - (rn[0 | g] != 36) | - (rn[(g + 1) | 0] != 55) | - (rn[(g + 2) | 0] != 36) - ) && - (wn = Eu(rn[(g + 3) | 0])) && - (hn = B0((on + 12) | 0, (g + 4) | 0)) && - (Dn = B0((on + 8) | 0, hn))) - ) { - for ( - cn = (Vs(Dn) + 1) | 0; - (hn = 0), - cn && rn[0 | (hn = (Dn + (cn = (cn - 1) | 0)) | 0)] != 36; - - ); - if ( - ((j = (hn - Dn) | 0), - hn || (j = Vs(Dn)), - !( - ((j = - (45 + (cn = ((hn = j) + ((Dn - g) | 0)) | 0)) | 0) >>> - 0 > - 102) | - (hn >>> 0 > j >>> 0) || - ((j = d), - (Un = a), - (Yn = h), - (d = 31 & (wn = (wn - 1024) | 0)), - (63 & wn) >>> 0 >= 32 - ? ((a = 1 << d), (h = 0)) - : (a = ((h = 1 << d) - 1) & (1 >>> (32 - d))), - C0( - j, - Un, - Yn, - Dn, - hn, - h, - a, - c[(on + 12) >> 2], - c[(on + 8) >> 2], - (on + 16) | 0, - 32, - )) - )) - ) { - for ( - Dn = Qo(_e, g, cn), - pn[0 | (d = (Dn + cn) | 0)] = 36, - $n = ((wn = (Dn + 102) | 0) - (_e = (d + 1) | 0)) | 0, - h = 0; - ; - - ) { - e: if (((d = _e), (a = h) >>> 0 > 31)) g = d - else if ( - ((h = - ((cn = (a + 1) | 0) + - (j = (h = (31 - a) | 0) >>> 0 >= 2 ? 2 : h)) | - 0), - (g = 0), - (hn = 0), - (_e = rn[(a + ((on + 16) | 0)) | 0]), - j && - ((_e = (rn[(cn + ((on + 16) | 0)) | 0] << 8) | _e), - (0 | (a = (a + 2) | 0)) != (0 | h) && - ((hn = 1), - (_e = (rn[(a + ((on + 16) | 0)) | 0] << 16) | _e))), - $n && - ((pn[0 | d] = rn[(1024 + (63 & _e)) | 0]), - (0 | $n) != 1)) - ) { - if ( - ((pn[(d + 1) | 0] = - rn[(1024 + ((_e >>> 6) & 63)) | 0]), - (j = (d + $n) | 0), - (a = (d + 2) | 0), - (0 | h) != (0 | cn)) - ) { - if ((0 | $n) == 2) break e - if ( - ((pn[(d + 2) | 0] = - rn[(1024 + ((_e >>> 12) & 63)) | 0]), - (a = (d + 3) | 0), - hn) - ) { - if ((0 | $n) == 3) break e - ;(pn[(d + 3) | 0] = - rn[(1024 + ((_e >>> 18) | 0)) | 0]), - (a = (d + 4) | 0) - } - } - if ((($n = (j - (_e = a)) | 0), _e)) continue - } - break - } - Ur((on + 16) | 0, 32), - ($n = 0), - !g | (g >>> 0 >= wn >>> 0) || ((pn[0 | g] = 0), ($n = Dn)) - } - } - return (St = (on + 48) | 0), $n - } - function pu(d, a, h) { - var g, - _e, - on, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - ;(St = g = (St - 16) | 0), - (_e = c[(d + 20) >> 2]), - (c[(d + 20) >> 2] = 0), - (on = c[(d + 4) >> 2]), - (c[(d + 4) >> 2] = 0), - (hn = -26) - e: { - n: { - t: { - r: switch ((h - 1) | 0) { - case 1: - if (((hn = -32), ou(a, 1165, 9))) break e - a = (a + 9) | 0 - break t - case 0: - break r - default: - break e - } - if (((hn = -32), ou(a, 1156, 8))) break e - a = (a + 8) | 0 - } - if ( - !( - (hn = ou(a, 1422, 3)) || - ((h = (a + 3) | 0), - (((cn = rn[0 | (j = hn ? a : h)]) - 58) & 255) >>> 0 < - 246) - ) - ) { - for (a = 0, hn = cn; ; ) { - if ( - ((Dn = h), - a >>> 0 > 429496729 || - (h = ((255 & hn) - 48) | 0) >>> 0 > - (-1 ^ (a = zr(a, 10))) >>> 0) - ) - break n - if ( - ((a = (a + h) | 0), - !( - (((hn = rn[0 | (h = (Dn + 1) | 0)]) - 58) & 255) >>> - 0 > - 245 - )) - ) - break - } - if ( - !( - (((0 | cn) == 48) & ((0 | Dn) != (0 | j))) | - ((0 | h) == (0 | j)) - ) - ) { - if (((hn = -26), (0 | a) != 19)) break e - if ( - !ou(h, 1434, 3) && - (a = z0((Dn + 4) | 0, (g + 12) | 0)) && - ((c[(d + 44) >> 2] = c[(g + 12) >> 2]), - !ou(a, 1426, 3) && - (a = z0((a + 3) | 0, (g + 12) | 0)) && - ((c[(d + 40) >> 2] = c[(g + 12) >> 2]), - !ou(a, 1430, 3) && - (a = z0((a + 3) | 0, (g + 12) | 0)) && - ((h = c[(g + 12) >> 2]), - (c[(d + 48) >> 2] = h), - (c[(d + 52) >> 2] = h), - rn[0 | a] == 36 && - ((c[(g + 12) >> 2] = _e), - (a = (a + 1) | 0), - !zu( - c[(d + 16) >> 2], - _e, - a, - Vs(a), - 0, - (g + 12) | 0, - (g + 8) | 0, - 3, - ) && - ((c[(d + 20) >> 2] = c[(g + 12) >> 2]), - (a = c[(g + 8) >> 2]), - rn[0 | a] == 36 && - ((c[(g + 12) >> 2] = on), - (a = (a + 1) | 0), - !zu( - c[d >> 2], - on, - a, - Vs(a), - 0, - (g + 12) | 0, - (g + 8) | 0, - 3, - ))))))) - ) { - if ( - ((c[(d + 4) >> 2] = c[(g + 12) >> 2]), - (a = c[(g + 8) >> 2]), - (hn = W0(d))) - ) - break e - hn = rn[0 | a] ? -32 : 0 - break e - } - } - } - } - hn = -32 - } - return (St = (g + 16) | 0), hn - } - function ds(d, a) { - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0 - ;(g = c[(a + 40) >> 2]), - (_e = c[(a + 4) >> 2]), - (on = c[(a + 44) >> 2]), - (hn = c[(a + 8) >> 2]), - (j = c[(a + 48) >> 2]), - (cn = c[(a + 12) >> 2]), - (Dn = c[(a + 52) >> 2]), - ($n = c[(a + 16) >> 2]), - (wn = c[(a + 56) >> 2]), - (Yn = c[(a + 20) >> 2]), - (et = c[(a + 60) >> 2]), - (nt = c[(a + 24) >> 2]), - (at = c[(Un = (a - -64) | 0) >> 2]), - (pt = c[(a + 28) >> 2]), - (gt = c[(a + 68) >> 2]), - (mt = c[(a + 32) >> 2]), - (yt = c[(a + 72) >> 2]), - (h = c[a >> 2]), - (c[(d + 36) >> 2] = c[(a + 36) >> 2] + c[(a + 76) >> 2]), - (c[(d + 32) >> 2] = mt + yt), - (c[(d + 28) >> 2] = pt + gt), - (c[(d + 24) >> 2] = nt + at), - (c[(d + 20) >> 2] = Yn + et), - (c[(d + 16) >> 2] = $n + wn), - (c[(d + 12) >> 2] = cn + Dn), - (c[(d + 8) >> 2] = hn + j), - (c[(d + 4) >> 2] = _e + on), - (c[d >> 2] = g + h), - (g = c[(a + 40) >> 2]), - (_e = c[(a + 4) >> 2]), - (on = c[(a + 44) >> 2]), - (hn = c[(a + 8) >> 2]), - (j = c[(a + 48) >> 2]), - (cn = c[(a + 12) >> 2]), - (Dn = c[(a + 52) >> 2]), - ($n = c[(a + 16) >> 2]), - (wn = c[(a + 56) >> 2]), - (Yn = c[(a + 20) >> 2]), - (et = c[(a + 60) >> 2]), - (nt = c[(a + 24) >> 2]), - (Un = c[Un >> 2]), - (at = c[(a + 28) >> 2]), - (pt = c[(a + 68) >> 2]), - (gt = c[(a + 32) >> 2]), - (mt = c[(a + 72) >> 2]), - (yt = c[a >> 2]), - (c[(d + 76) >> 2] = c[(a + 76) >> 2] - c[(a + 36) >> 2]), - (c[(d + 72) >> 2] = mt - gt), - (c[(d + 68) >> 2] = pt - at), - (c[(d - -64) >> 2] = Un - nt), - (c[(d + 60) >> 2] = et - Yn), - (c[(d + 56) >> 2] = wn - $n), - (c[(d + 52) >> 2] = Dn - cn), - (c[(d + 48) >> 2] = j - hn), - (c[(d + 44) >> 2] = on - _e), - (c[(d + 40) >> 2] = g - yt), - (g = c[(a + 80) >> 2]), - (_e = c[(a + 84) >> 2]), - (on = c[(a + 88) >> 2]), - (hn = c[(a + 92) >> 2]), - (j = c[(a + 96) >> 2]), - (cn = c[(a + 100) >> 2]), - (Dn = c[(a + 104) >> 2]), - ($n = c[(a + 108) >> 2]), - (wn = c[(a + 116) >> 2]), - (c[(d + 112) >> 2] = c[(a + 112) >> 2]), - (c[(d + 116) >> 2] = wn), - (c[(d + 104) >> 2] = Dn), - (c[(d + 108) >> 2] = $n), - (c[(d + 96) >> 2] = j), - (c[(d + 100) >> 2] = cn), - (c[(d + 88) >> 2] = on), - (c[(d + 92) >> 2] = hn), - (c[(d + 80) >> 2] = g), - (c[(d + 84) >> 2] = _e), - Gt((d + 120) | 0, (a + 120) | 0, 1696) - } - function Nl(d, a, h) { - var g, - _e = 0 - return ( - (St = g = (St - 160) | 0), - (pn[0 | d] = rn[0 | a]), - (pn[(d + 1) | 0] = rn[(a + 1) | 0]), - (pn[(d + 2) | 0] = rn[(a + 2) | 0]), - (pn[(d + 3) | 0] = rn[(a + 3) | 0]), - (pn[(d + 4) | 0] = rn[(a + 4) | 0]), - (pn[(d + 5) | 0] = rn[(a + 5) | 0]), - (pn[(d + 6) | 0] = rn[(a + 6) | 0]), - (pn[(d + 7) | 0] = rn[(a + 7) | 0]), - (pn[(d + 8) | 0] = rn[(a + 8) | 0]), - (pn[(d + 9) | 0] = rn[(a + 9) | 0]), - (pn[(d + 10) | 0] = rn[(a + 10) | 0]), - (pn[(d + 11) | 0] = rn[(a + 11) | 0]), - (pn[(d + 12) | 0] = rn[(a + 12) | 0]), - (pn[(d + 13) | 0] = rn[(a + 13) | 0]), - (pn[(d + 14) | 0] = rn[(a + 14) | 0]), - (pn[(d + 15) | 0] = rn[(a + 15) | 0]), - (pn[(d + 16) | 0] = rn[(a + 16) | 0]), - (pn[(d + 17) | 0] = rn[(a + 17) | 0]), - (pn[(d + 18) | 0] = rn[(a + 18) | 0]), - (pn[(d + 19) | 0] = rn[(a + 19) | 0]), - (pn[(d + 20) | 0] = rn[(a + 20) | 0]), - (pn[(d + 21) | 0] = rn[(a + 21) | 0]), - (pn[(d + 22) | 0] = rn[(a + 22) | 0]), - (pn[(d + 23) | 0] = rn[(a + 23) | 0]), - (pn[(d + 24) | 0] = rn[(a + 24) | 0]), - (pn[(d + 25) | 0] = rn[(a + 25) | 0]), - (pn[(d + 26) | 0] = rn[(a + 26) | 0]), - (pn[(d + 27) | 0] = rn[(a + 27) | 0]), - (pn[(d + 28) | 0] = rn[(a + 28) | 0]), - (pn[(d + 29) | 0] = rn[(a + 29) | 0]), - (pn[(d + 30) | 0] = rn[(a + 30) | 0]), - (_e = rn[(a + 31) | 0]), - h && ((pn[0 | d] = 248 & rn[0 | d]), (_e |= 64)), - (pn[(d + 31) | 0] = 127 & _e), - fu(g, d), - gu(d, g), - (h = -1), - (((127 & rn[(d + 31) | 0]) | - rn[(d + 30) | 0] | - rn[(d + 29) | 0] | - rn[(d + 28) | 0] | - rn[(d + 27) | 0] | - rn[(d + 26) | 0] | - rn[(d + 25) | 0] | - rn[(d + 24) | 0] | - rn[(d + 23) | 0] | - rn[(d + 22) | 0] | - rn[(d + 21) | 0] | - rn[(d + 20) | 0] | - rn[(d + 19) | 0] | - rn[(d + 18) | 0] | - rn[(d + 17) | 0] | - rn[(d + 16) | 0] | - rn[(d + 15) | 0] | - rn[(d + 14) | 0] | - rn[(d + 13) | 0] | - rn[(d + 12) | 0] | - rn[(d + 11) | 0] | - rn[(d + 10) | 0] | - rn[(d + 9) | 0] | - rn[(d + 8) | 0] | - rn[(d + 7) | 0] | - rn[(d + 6) | 0] | - rn[(d + 5) | 0] | - rn[(d + 4) | 0] | - rn[(d + 3) | 0] | - rn[(d + 2) | 0] | - rn[(d + 1) | 0] | - (1 ^ rn[0 | d])) - - 1) & - 256 || (h = Qs(a, 32) ? -1 : 0), - (St = (g + 160) | 0), - h - ) - } - function K0(d, a) { - var h, - g, - _e, - on, - hn, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0 - ;(Dn = c[(d + 56) >> 2]) | (j = c[(d + 60) >> 2]) && - ((pn[(Dn + (cn = (d - -64) | 0)) | 0] = 1), - !((at = (Dn + 1) | 0) ? j : (j + 1) | 0) & (at >>> 0 <= 15) && - qo((65 + ((d + Dn) | 0)) | 0, 0, (15 - Dn) | 0), - (pn[(d + 80) | 0] = 1), - Wu(d, cn, 16, 0)), - (at = c[(d + 52) >> 2]), - (et = c[(d + 48) >> 2]), - (cn = c[(d + 44) >> 2]), - (Dn = c[(d + 24) >> 2]), - (wn = (c[(d + 28) >> 2] + ((Dn >>> 26) | 0)) | 0), - ($n = (c[(d + 32) >> 2] + ((wn >>> 26) | 0)) | 0), - (h = (c[(d + 36) >> 2] + (($n >>> 26) | 0)) | 0), - (j = - ((Yn = - ((Dn = - ((Dn = - ((67108863 & Dn) + - (((Un = - (c[(d + 20) >> 2] + zr((h >>> 26) | 0, 5)) | - 0) >>> - 26) | - 0)) | - 0) & - (wn = - ($n = - ((hn = - ((67108863 & h) + - (((on = - ((g = 67108863 & $n) + - (((_e = - ((nt = 67108863 & wn) + - (((Un = - (Dn + - (((j = - (5 + (Yn = 67108863 & Un)) | - 0) >>> - 26) | - 0)) | - 0) >>> - 26) | - 0)) | - 0) >>> - 26) | - 0)) | - 0) >>> - 26) | - 0)) | - 0) - - 67108864) | - 0) >> 31)) | - (Un & - ($n = - 67108863 & (Un = ((($n >>> 31) | 0) - 1) | 0)))) << - 26) | - (j & $n) | - (wn & Yn)) + - c[(d + 40) >> 2]) | - 0), - (pn[0 | a] = j), - (pn[(a + 1) | 0] = j >>> 8), - (pn[(a + 2) | 0] = j >>> 16), - (pn[(a + 3) | 0] = j >>> 24), - (Yn = j >>> 0 < Yn >>> 0), - (j = ((nt = (wn & nt) | ($n & _e)) << 20) | (Dn >>> 6)), - (Dn = 0), - (j = (cn = (j + cn) | 0) >>> 0 < j >>> 0 ? 1 : Dn), - (j = (Dn = (cn + Yn) | 0) >>> 0 < cn >>> 0 ? (j + 1) | 0 : j), - (pn[((cn = a) + 4) | 0] = Dn), - (pn[(cn + 5) | 0] = Dn >>> 8), - (pn[(cn + 6) | 0] = Dn >>> 16), - (pn[(cn + 7) | 0] = Dn >>> 24), - (Dn = 0), - (cn = - (cn = (($n = (wn & g) | ($n & on)) << 14) | (nt >>> 12)) >>> - 0 > - (et = (cn + et) | 0) >>> 0 - ? 1 - : Dn), - (Dn = et), - (et = j), - (Dn = - (j = (Dn + j) | 0) >>> 0 < et >>> 0 ? (cn + 1) | 0 : cn), - (pn[((cn = a) + 8) | 0] = j), - (pn[(cn + 9) | 0] = j >>> 8), - (pn[(cn + 10) | 0] = j >>> 16), - (pn[(cn + 11) | 0] = j >>> 24), - (j = cn = (((Un & hn) | (wn & h)) << 8) | ($n >>> 18)), - (j = ((j = Dn) + (cn = (cn + at) | 0)) | 0), - (pn[(a + 12) | 0] = j), - (pn[(a + 13) | 0] = j >>> 8), - (pn[(a + 14) | 0] = j >>> 16), - (pn[(a + 15) | 0] = j >>> 24), - Ur(d, 88) - } - function Ml(d, a, h, g, _e) { - var on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0 - e: { - if (((0 | g) == 1) | (g >>> 0 > 1)) c[9129] = 22 - else { - ;(St = g = (St - 128) | 0), - (c[(g + 56) >> 2] = 0), - (c[(g + 48) >> 2] = 0), - (c[(g + 52) >> 2] = 0), - (c[(g + 40) >> 2] = 0), - (c[(g + 44) >> 2] = 0), - (c[(g + 32) >> 2] = 0), - (c[(g + 36) >> 2] = 0), - (c[(g + 24) >> 2] = 0), - (c[(g + 28) >> 2] = 0), - (c[(g + 16) >> 2] = 0), - (c[(g + 20) >> 2] = 0), - (c[(g + 8) >> 2] = 0), - (c[(g + 12) >> 2] = 0), - (on = Vs(d)), - (c[(g + 20) >> 2] = on), - (c[(g + 36) >> 2] = on), - (c[(g + 4) >> 2] = on), - (hn = Ls(on)), - (c[(g + 32) >> 2] = hn), - (j = Ls(on)), - (c[(g + 16) >> 2] = j), - (cn = Ls(on)), - (c[g >> 2] = cn) - n: if (!cn | !hn | !j || !(Dn = Ls(on))) - fs(hn), fs(j), fs(cn), (hn = -22) - else { - if ((hn = pu(g, d, _e))) { - fs(c[(g + 32) >> 2]), - fs(c[(g + 16) >> 2]), - fs(c[g >> 2]), - fs(Dn) - break n - } - ;(hn = c[(g + 20) >> 2]), - (cn = c[(g + 16) >> 2]), - (j = c[(g + 52) >> 2]), - ($n = c[(g + 44) >> 2]), - (wn = c[(g + 40) >> 2]), - Ps(Dn, (on = c[(g + 4) >> 2])) - t: { - r: { - if ((d = Ls(on))) { - if ( - ((c[(g + 96) >> 2] = 0), - (c[(g + 100) >> 2] = 0), - (c[(g + 88) >> 2] = 0), - (c[(g + 92) >> 2] = 0), - (c[(g + 84) >> 2] = hn), - (c[(g + 80) >> 2] = cn), - (c[(g + 76) >> 2] = h), - (c[(g + 72) >> 2] = a), - (c[(g + 68) >> 2] = on), - (c[(g + 64) >> 2] = d), - (hn = 0), - (c[(g + 120) >> 2] = 0), - (c[(g + 116) >> 2] = j), - (c[(g + 112) >> 2] = j), - (c[(g + 108) >> 2] = $n), - (c[(g + 104) >> 2] = wn), - !Ou((g - -64) | 0, _e)) - ) { - if ( - ((a = Qo(Dn, d, on)), - Ur(d, on), - fs(d), - fs(c[(g + 32) >> 2]), - fs(c[(g + 16) >> 2]), - Iu(a, c[g >> 2], c[(g + 4) >> 2])) - ) - break r - break t - } - Ur(d, on), fs(d) - } - fs(c[(g + 32) >> 2]), fs(c[(g + 16) >> 2]) - } - hn = -35 - } - fs(Dn), fs(c[g >> 2]) - } - if (((St = (g + 128) | 0), (a = hn), !hn)) break e - ;(0 | a) == -35 && (c[9129] = 28) - } - a = -1 - } - return a - } - function iu(d, a, h) { - ;(d |= 0), (a |= 0), (h |= 0) - var g, - _e = 0 - return ( - (St = g = (St - 16) | 0), - (pn[(g + 15) | 0] = 0), - (_e = -1), - 0 | Bs[c[8930]](d, a, h) || - ((pn[(g + 15) | 0] = rn[0 | d] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 1) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 2) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 3) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 4) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 5) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 6) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 7) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 8) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 9) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 10) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 11) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 12) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 13) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 14) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 15) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 16) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 17) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 18) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 19) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 20) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 21) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 22) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 23) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 24) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 25) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 26) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 27) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 28) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 29) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 30) | 0] | rn[(g + 15) | 0]), - (pn[(g + 15) | 0] = rn[(d + 31) | 0] | rn[(g + 15) | 0]), - (_e = ((rn[(g + 15) | 0] << 23) - 8388608) >> 31)), - (St = (g + 16) | 0), - 0 | _e - ) - } - function cs(d, a) { - var h, - g, - _e, - on, - hn, - j, - cn, - Dn = 0, - $n = 0 - ;(g = c[(a + 32) >> 2]), - (_e = c[(a + 28) >> 2]), - (on = c[(a + 24) >> 2]), - (hn = c[(a + 20) >> 2]), - (j = c[(a + 16) >> 2]), - (cn = c[(a + 12) >> 2]), - (Dn = c[(a + 4) >> 2]), - ($n = c[a >> 2]), - (h = c[(a + 36) >> 2]), - (a = c[(a + 8) >> 2]), - ($n = - (zr( - (((g + - ((_e + - ((on + - ((hn + - ((j + - ((cn + - ((((Dn + - (($n + - (((zr(h, 19) + 16777216) >>> 25) | 0)) >> - 26)) >> - 25) + - a) >> - 26)) >> - 25)) >> - 26)) >> - 25)) >> - 26)) >> - 25)) >> - 26) + - h) >> - 25, - 19, - ) + - $n) | - 0), - (pn[0 | d] = $n), - (pn[(d + 2) | 0] = $n >>> 16), - (pn[(d + 1) | 0] = $n >>> 8), - (Dn = (Dn + ($n >> 26)) | 0), - (pn[(d + 5) | 0] = Dn >>> 14), - (pn[(d + 4) | 0] = Dn >>> 6), - (pn[(d + 3) | 0] = (($n >>> 24) & 3) | (Dn << 2)), - (a = (a + (Dn >> 25)) | 0), - (pn[(d + 8) | 0] = a >>> 13), - (pn[(d + 7) | 0] = a >>> 5), - (pn[(d + 6) | 0] = (a << 3) | ((29360128 & Dn) >>> 22)), - ($n = ((a >> 26) + cn) | 0), - (pn[(d + 11) | 0] = $n >>> 11), - (pn[(d + 10) | 0] = $n >>> 3), - (pn[(d + 9) | 0] = ($n << 5) | ((65011712 & a) >>> 21)), - (Dn = (($n >> 25) + j) | 0), - (pn[(d + 15) | 0] = Dn >>> 18), - (pn[(d + 14) | 0] = Dn >>> 10), - (pn[(d + 13) | 0] = Dn >>> 2), - (a = ((Dn >> 26) + hn) | 0), - (pn[(d + 16) | 0] = a), - (pn[(d + 12) | 0] = (Dn << 6) | ((33030144 & $n) >>> 19)), - (pn[(d + 18) | 0] = a >>> 16), - (pn[(d + 17) | 0] = a >>> 8), - (Dn = ((a >> 25) + on) | 0), - (pn[(d + 21) | 0] = Dn >>> 15), - (pn[(d + 20) | 0] = Dn >>> 7), - (pn[(d + 19) | 0] = ((a >>> 24) & 1) | (Dn << 1)), - (a = ((Dn >> 26) + _e) | 0), - (pn[(d + 24) | 0] = a >>> 13), - (pn[(d + 23) | 0] = a >>> 5), - (pn[(d + 22) | 0] = (a << 3) | ((58720256 & Dn) >>> 23)), - (Dn = ((a >> 25) + g) | 0), - (pn[(d + 27) | 0] = Dn >>> 12), - (pn[(d + 26) | 0] = Dn >>> 4), - (pn[(d + 25) | 0] = (Dn << 4) | ((31457280 & a) >>> 21)), - (a = (h + (Dn >> 26)) | 0), - (pn[(d + 30) | 0] = a >>> 10), - (pn[(d + 29) | 0] = a >>> 2), - (pn[(d + 31) | 0] = (33292288 & a) >>> 18), - (pn[(d + 28) | 0] = (a << 6) | ((66060288 & Dn) >>> 20)) - } - function Mu(d, a, h) { - ;(d |= 0), (a |= 0) - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0 - if ( - ((St = g = (St - 192) | 0), - (h |= 0) >>> 0 >= 129 && - (hu(d), ms(d, a, h, 0), Ts(d, g), (h = 64), (a = g)), - hu(d), - qo((g - -64) | 0, 54, 128), - h) - ) { - if (h >>> 0 >= 4) - for ( - $n = 252 & h; - (pn[0 | (_e = ((hn = (g - -64) | 0) + on) | 0)] = - rn[0 | _e] ^ rn[(a + on) | 0]), - (pn[0 | (j = ((_e = 1 | on) + hn) | 0)] = - rn[0 | j] ^ rn[(a + _e) | 0]), - (pn[0 | (j = ((_e = 2 | on) + hn) | 0)] = - rn[0 | j] ^ rn[(a + _e) | 0]), - (pn[0 | (_e = ((_e = hn) + (hn = 3 | on)) | 0)] = - rn[0 | _e] ^ rn[(a + hn) | 0]), - (on = (on + 4) | 0), - (0 | $n) != (0 | (cn = (cn + 4) | 0)); - - ); - if ((cn = 3 & h)) - for ( - ; - (pn[0 | (hn = (((g - -64) | 0) + on) | 0)] = - rn[0 | hn] ^ rn[(a + on) | 0]), - (on = (on + 1) | 0), - (0 | cn) != (0 | (Dn = (Dn + 1) | 0)); - - ); - } - if ( - (ms(d, (on = (g - -64) | 0), 128, 0), - hu((hn = (d + 208) | 0)), - qo(on, 92, 128), - h) - ) { - if (((Dn = 0), (on = 0), h >>> 0 >= 4)) - for ( - $n = 252 & h, cn = 0; - (pn[0 | (_e = ((d = (g - -64) | 0) + on) | 0)] = - rn[0 | _e] ^ rn[(a + on) | 0]), - (pn[0 | (j = ((_e = 1 | on) + d) | 0)] = - rn[0 | j] ^ rn[(a + _e) | 0]), - (pn[0 | (j = ((_e = 2 | on) + d) | 0)] = - rn[0 | j] ^ rn[(a + _e) | 0]), - (pn[0 | (_e = ((_e = d) + (d = 3 | on)) | 0)] = - rn[0 | _e] ^ rn[(d + a) | 0]), - (on = (on + 4) | 0), - (0 | $n) != (0 | (cn = (cn + 4) | 0)); - - ); - if ((d = 3 & h)) - for ( - ; - (pn[0 | (h = (((g - -64) | 0) + on) | 0)] = - rn[0 | h] ^ rn[(a + on) | 0]), - (on = (on + 1) | 0), - (0 | d) != (0 | (Dn = (Dn + 1) | 0)); - - ); - } - return ( - ms(hn, (d = (g - -64) | 0), 128, 0), - Ur(d, 128), - Ur(g, 64), - (St = (g + 192) | 0), - 0 - ) - } - function Tl(d, a) { - var h, - g = 0, - _e = 0 - ;(St = h = (St - 48) | 0), - (g = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (_e = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (pn[(d + 24) | 0] = _e), - (pn[(d + 25) | 0] = _e >>> 8), - (pn[(d + 26) | 0] = _e >>> 16), - (pn[(d + 27) | 0] = _e >>> 24), - (pn[(d + 28) | 0] = g), - (pn[(d + 29) | 0] = g >>> 8), - (pn[(d + 30) | 0] = g >>> 16), - (pn[(d + 31) | 0] = g >>> 24), - (g = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24)), - (_e = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)), - (pn[0 | d] = _e), - (pn[(d + 1) | 0] = _e >>> 8), - (pn[(d + 2) | 0] = _e >>> 16), - (pn[(d + 3) | 0] = _e >>> 24), - (pn[(d + 4) | 0] = g), - (pn[(d + 5) | 0] = g >>> 8), - (pn[(d + 6) | 0] = g >>> 16), - (pn[(d + 7) | 0] = g >>> 24), - (g = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (_e = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (pn[(d + 16) | 0] = _e), - (pn[(d + 17) | 0] = _e >>> 8), - (pn[(d + 18) | 0] = _e >>> 16), - (pn[(d + 19) | 0] = _e >>> 24), - (pn[(d + 20) | 0] = g), - (pn[(d + 21) | 0] = g >>> 8), - (pn[(d + 22) | 0] = g >>> 16), - (pn[(d + 23) | 0] = g >>> 24), - (g = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (a = - rn[(a + 8) | 0] | - (rn[(a + 9) | 0] << 8) | - (rn[(a + 10) | 0] << 16) | - (rn[(a + 11) | 0] << 24)), - (pn[(d + 8) | 0] = a), - (pn[(d + 9) | 0] = a >>> 8), - (pn[(d + 10) | 0] = a >>> 16), - (pn[(d + 11) | 0] = a >>> 24), - (pn[(d + 12) | 0] = g), - (pn[(d + 13) | 0] = g >>> 8), - (pn[(d + 14) | 0] = g >>> 16), - (pn[(d + 15) | 0] = g >>> 24), - (a = rn[(d + 31) | 0]), - (pn[(d + 31) | 0] = 127 & a), - Xs(h, d), - l0(d, h, 128 & a), - (St = (h + 48) | 0) - } - function ju(d, a) { - var h - return ( - (d |= 0), - (a |= 0), - (c[(12 + (h = (St - 16) | 0)) >> 2] = d), - (c[(h + 8) >> 2] = a), - (c[(h + 4) >> 2] = 0), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[c[(h + 12) >> 2]] ^ rn[c[(h + 8) >> 2]])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 1) | 0] ^ - rn[(c[(h + 8) >> 2] + 1) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 2) | 0] ^ - rn[(c[(h + 8) >> 2] + 2) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 3) | 0] ^ - rn[(c[(h + 8) >> 2] + 3) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 4) | 0] ^ - rn[(c[(h + 8) >> 2] + 4) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 5) | 0] ^ - rn[(c[(h + 8) >> 2] + 5) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 6) | 0] ^ - rn[(c[(h + 8) >> 2] + 6) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 7) | 0] ^ - rn[(c[(h + 8) >> 2] + 7) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 8) | 0] ^ - rn[(c[(h + 8) >> 2] + 8) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 9) | 0] ^ - rn[(c[(h + 8) >> 2] + 9) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 10) | 0] ^ - rn[(c[(h + 8) >> 2] + 10) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 11) | 0] ^ - rn[(c[(h + 8) >> 2] + 11) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 12) | 0] ^ - rn[(c[(h + 8) >> 2] + 12) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 13) | 0] ^ - rn[(c[(h + 8) >> 2] + 13) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 14) | 0] ^ - rn[(c[(h + 8) >> 2] + 14) | 0])), - (c[(h + 4) >> 2] = - c[(h + 4) >> 2] | - (rn[(c[(h + 12) >> 2] + 15) | 0] ^ - rn[(c[(h + 8) >> 2] + 15) | 0])), - ((((c[(h + 4) >> 2] - 1) >>> 8) & 1) - 1) | 0 - ) - } - function Ul(d, a, h) { - var g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0 - e: { - n: { - t: { - r: { - a: { - u: { - s: { - c: { - i: { - if (a) { - if (!h) break i - break c - } - return ( - (cu = - ((a = d) - - zr( - (d = ((d >>> 0) / (h >>> 0)) | 0), - h, - )) | - 0), - (lu = 0), - (On = 0), - d - ) - } - if (!d) break s - break u - } - if (!((g = (h - 1) | 0) & h)) break a - on = - (0 - (hn = (((Ms(h) + 33) | 0) - Ms(a)) | 0)) | - 0 - break t - } - return ( - (cu = 0), - (lu = (a - zr((d = ((a >>> 0) / 0) | 0), 0)) | 0), - (On = 0), - d - ) - } - if ((g = (32 - Ms(a)) | 0) >>> 0 < 31) break r - break n - } - if (((cu = d & g), (lu = 0), (0 | h) == 1)) break e - return ( - (h = 31 & (g = F0(h))), - (63 & g) >>> 0 >= 32 - ? (d = (a >>> h) | 0) - : ((_e = (a >>> h) | 0), - (d = - ((((1 << h) - 1) & a) << (32 - h)) | - (d >>> h))), - (On = _e), - d - ) - } - ;(hn = (g + 1) | 0), (on = (63 - g) | 0) - } - if ( - ((g = 31 & (_e = 63 & hn)), - _e >>> 0 >= 32 - ? ((_e = 0), (j = (a >>> g) | 0)) - : ((_e = (a >>> g) | 0), - (j = ((((1 << g) - 1) & a) << (32 - g)) | (d >>> g))), - (g = 31 & (on &= 63)), - on >>> 0 >= 32 - ? ((a = d << g), (d = 0)) - : ((a = (((1 << g) - 1) & (d >>> (32 - g))) | (a << g)), - (d <<= g)), - hn) - ) - for ( - $n = (0 | (g = (h - 1) | 0)) == -1 ? -1 : 0; - (cn = (_e << 1) | (j >>> 31)), - (j = - ((_e = (j << 1) | (a >>> 31)) - - (Dn = - h & - (on = - ($n - ((cn + (_e >>> 0 > g >>> 0)) | 0)) >> - 31))) | - 0), - (_e = (cn - (_e >>> 0 < Dn >>> 0)) | 0), - (a = (a << 1) | (d >>> 31)), - (d = wn | (d << 1)), - (wn = cn = 1 & on), - (hn = (hn - 1) | 0); - - ); - return ( - (cu = j), - (lu = _e), - (On = (a << 1) | (d >>> 31)), - cn | (d << 1) - ) - } - ;(cu = d), (lu = a), (d = 0), (a = 0) - } - return (On = a), d - } - function Ll(d, a, h, g, _e) { - var on - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (St = on = (St - 480) | 0), - Mu(on, (_e |= 0), 32), - Sl(on, a, h, g), - k0(on, (on + 416) | 0), - (a = c[(on + 444) >> 2]), - (h = c[(on + 440) >> 2]), - (pn[(d + 24) | 0] = h), - (pn[(d + 25) | 0] = h >>> 8), - (pn[(d + 26) | 0] = h >>> 16), - (pn[(d + 27) | 0] = h >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(on + 436) >> 2]), - (h = c[(on + 432) >> 2]), - (pn[(d + 16) | 0] = h), - (pn[(d + 17) | 0] = h >>> 8), - (pn[(d + 18) | 0] = h >>> 16), - (pn[(d + 19) | 0] = h >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(on + 428) >> 2]), - (h = c[(on + 424) >> 2]), - (pn[(d + 8) | 0] = h), - (pn[(d + 9) | 0] = h >>> 8), - (pn[(d + 10) | 0] = h >>> 16), - (pn[(d + 11) | 0] = h >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(on + 420) >> 2]), - (h = c[(on + 416) >> 2]), - (pn[0 | d] = h), - (pn[(d + 1) | 0] = h >>> 8), - (pn[(d + 2) | 0] = h >>> 16), - (pn[(d + 3) | 0] = h >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - (St = (on + 480) | 0), - 0 - ) - } - function Y0(d, a, h) { - ;(d |= 0), (a |= 0) - var g, - _e = 0 - return ( - (St = g = (St + -64) | 0), - Tu(g, (h |= 0), 32, 0), - (h = c[(g + 28) >> 2]), - (_e = c[(g + 24) >> 2]), - (pn[(a + 24) | 0] = _e), - (pn[(a + 25) | 0] = _e >>> 8), - (pn[(a + 26) | 0] = _e >>> 16), - (pn[(a + 27) | 0] = _e >>> 24), - (pn[(a + 28) | 0] = h), - (pn[(a + 29) | 0] = h >>> 8), - (pn[(a + 30) | 0] = h >>> 16), - (pn[(a + 31) | 0] = h >>> 24), - (h = c[(g + 20) >> 2]), - (_e = c[(g + 16) >> 2]), - (pn[(a + 16) | 0] = _e), - (pn[(a + 17) | 0] = _e >>> 8), - (pn[(a + 18) | 0] = _e >>> 16), - (pn[(a + 19) | 0] = _e >>> 24), - (pn[(a + 20) | 0] = h), - (pn[(a + 21) | 0] = h >>> 8), - (pn[(a + 22) | 0] = h >>> 16), - (pn[(a + 23) | 0] = h >>> 24), - (h = c[(g + 12) >> 2]), - (_e = c[(g + 8) >> 2]), - (pn[(a + 8) | 0] = _e), - (pn[(a + 9) | 0] = _e >>> 8), - (pn[(a + 10) | 0] = _e >>> 16), - (pn[(a + 11) | 0] = _e >>> 24), - (pn[(a + 12) | 0] = h), - (pn[(a + 13) | 0] = h >>> 8), - (pn[(a + 14) | 0] = h >>> 16), - (pn[(a + 15) | 0] = h >>> 24), - (h = c[(g + 4) >> 2]), - (_e = c[g >> 2]), - (pn[0 | a] = _e), - (pn[(a + 1) | 0] = _e >>> 8), - (pn[(a + 2) | 0] = _e >>> 16), - (pn[(a + 3) | 0] = _e >>> 24), - (pn[(a + 4) | 0] = h), - (pn[(a + 5) | 0] = h >>> 8), - (pn[(a + 6) | 0] = h >>> 16), - (pn[(a + 7) | 0] = h >>> 24), - Ur(g, 64), - (d = U0(d, a)), - (St = (g - -64) | 0), - 0 | d - ) - } - function Fl(d, a) { - var h = 0, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0 - if (a >>> 0 > 4294967168) d = 48 - else { - if ( - (a >>> 0 >= 4294967168 - ? ((c[9129] = 48), (h = 0)) - : ((h = 0), - (a = Ls( - (76 + (on = a >>> 0 < 11 ? 16 : (a + 11) & -8)) | 0, - )) && - ((h = (a - 8) | 0), - 63 & a - ? ((_e = - ((-8 & (j = c[(hn = (a - 4) | 0) >> 2])) - - (g = - ((a = - ((((a = (((a + 63) & -64) - 8) | 0) - - h) >>> - 0 <= - 15 - ? 64 - : 0) + - a) | - 0) - - h) | - 0)) | - 0), - 3 & j - ? ((c[(a + 4) >> 2] = - _e | (1 & c[(a + 4) >> 2]) | 2), - (c[(4 + (_e = (a + _e) | 0)) >> 2] = - 1 | c[(_e + 4) >> 2]), - (c[hn >> 2] = g | (1 & c[hn >> 2]) | 2), - (c[(4 + (_e = (h + g) | 0)) >> 2] = - 1 | c[(_e + 4) >> 2]), - m0(h, g)) - : ((h = c[h >> 2]), - (c[(a + 4) >> 2] = _e), - (c[a >> 2] = h + g))) - : (a = h), - 3 & (h = c[(a + 4) >> 2]) && - ((g = -8 & h) >>> 0 <= (on + 16) >>> 0 || - ((c[(a + 4) >> 2] = on | (1 & h) | 2), - (h = (a + on) | 0), - (on = (g - on) | 0), - (c[(h + 4) >> 2] = 3 | on), - (c[(4 + (g = (a + g) | 0)) >> 2] = - 1 | c[(g + 4) >> 2]), - m0(h, on))), - (h = (a + 8) | 0))), - !h) - ) - return 48 - ;(c[d >> 2] = h), (d = 0) - } - return d - } - function Jl(d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - var wn - if (((wn = qo(d, 0, a)), ((0 | h) == 1) | (h >>> 0 > 1))) - return (c[9129] = 22), -1 - if (!(!h & (a >>> 0 <= 15))) { - if (!(!(on | cn) & (Dn >>> 0 < 2147483649))) - return (c[9129] = 22), -1 - if ( - !( - !( - ((!cn & (j >>> 0 >= 3)) | ((0 | cn) != 0)) & - (Dn >>> 0 > 8191) - ) | - ((0 | g) == (0 | wn)) - ) - ) - return (0 | $n) == 1 - ? ((on = (Dn >>> 10) | 0), - (St = d = (St + -64) | 0), - wn && Ps(wn, a), - (h = Ls(a)) - ? ((c[(d + 32) >> 2] = 0), - (c[(d + 36) >> 2] = 0), - (c[(d + 24) >> 2] = 0), - (c[(d + 28) >> 2] = 0), - (c[(d + 20) >> 2] = 16), - (c[(d + 16) >> 2] = hn), - (c[(d + 12) >> 2] = _e), - (c[(d + 8) >> 2] = g), - (c[(d + 4) >> 2] = a), - (c[d >> 2] = h), - (c[(d + 56) >> 2] = 0), - (c[(d + 52) >> 2] = 1), - (c[(d + 48) >> 2] = 1), - (c[(d + 44) >> 2] = on), - (c[(d + 40) >> 2] = j), - (g = Ou(d, 1)) | !wn || Qo(wn, h, a), - Ur(h, a), - fs(h)) - : (g = -22), - (St = (d - -64) | 0), - g ? -1 : 0) - : ((c[9129] = 28), -1) - } - return (c[9129] = 28), -1 - } - function _d(d, a, h, g, _e, on, hn) { - var j, - cn, - Dn, - $n, - wn, - Un = 0 - return ( - (St = j = (St - 352) | 0), - Rs(j, on, hn, 0), - !( - ((!_e & (g >>> 0 > (d - h) >>> 0)) | ((0 | _e) != 0)) & - (d >>> 0 > h >>> 0) - ) & - ((!_e & (g >>> 0 <= (h - d) >>> 0)) | - (d >>> 0 >= h >>> 0)) || (h = Fu(d, h, g)), - (c[(j + 56) >> 2] = 0), - (c[(j + 60) >> 2] = 0), - (c[(j + 48) >> 2] = 0), - (c[(j + 52) >> 2] = 0), - (c[(j + 40) >> 2] = 0), - (c[(j + 44) >> 2] = 0), - (c[(j + 32) >> 2] = 0), - (c[(j + 36) >> 2] = 0), - (hn = (Un = (!_e & (g >>> 0 >= 32)) | ((0 | _e) != 0)) - ? 32 - : g), - (wn = Un = Un ? 0 : _e), - (Dn = !(hn | Un)) || Qo((j - -64) | 0, h, hn), - P0( - (cn = (j + 32) | 0), - cn, - ($n = (hn + 32) | 0), - (Un = $n >>> 0 < 32 ? (Un + 1) | 0 : Un), - (on = (on + 16) | 0), - j, - ), - Ks((j + 96) | 0, cn), - Dn || Qo(d, (j - -64) | 0, hn), - Ur((j + 32) | 0, 64), - (!_e & (g >>> 0 >= 33)) | _e && - bu( - (d + hn) | 0, - (h + hn) | 0, - (g - hn) | 0, - (_e - ((wn + (g >>> 0 < hn >>> 0)) | 0)) | 0, - on, - 1, - 0, - j, - ), - Ur(j, 32), - Fo((h = (j + 96) | 0), d, g, _e), - Ys(h, a), - Ur(h, 256), - (St = (j + 352) | 0), - 0 - ) - } - function _c(d, a, h, g, _e, on, hn) { - var j, - cn, - Dn, - $n, - wn, - Un = 0 - return ( - (St = j = (St - 352) | 0), - js(j, on, hn, 0), - !( - ((!_e & (g >>> 0 > (d - h) >>> 0)) | ((0 | _e) != 0)) & - (d >>> 0 > h >>> 0) - ) & - ((!_e & (g >>> 0 <= (h - d) >>> 0)) | - (d >>> 0 >= h >>> 0)) || (h = Fu(d, h, g)), - (c[(j + 56) >> 2] = 0), - (c[(j + 60) >> 2] = 0), - (c[(j + 48) >> 2] = 0), - (c[(j + 52) >> 2] = 0), - (c[(j + 40) >> 2] = 0), - (c[(j + 44) >> 2] = 0), - (c[(j + 32) >> 2] = 0), - (c[(j + 36) >> 2] = 0), - (hn = (Un = (!_e & (g >>> 0 >= 32)) | ((0 | _e) != 0)) - ? 32 - : g), - (wn = Un = Un ? 0 : _e), - (Dn = !(hn | Un)) || Qo((j - -64) | 0, h, hn), - M0( - (cn = (j + 32) | 0), - cn, - ($n = (hn + 32) | 0), - (Un = $n >>> 0 < 32 ? (Un + 1) | 0 : Un), - (on = (on + 16) | 0), - j, - ), - Ks((j + 96) | 0, cn), - Dn || Qo(d, (j - -64) | 0, hn), - Ur((j + 32) | 0, 64), - (!_e & (g >>> 0 >= 33)) | _e && - a0( - (d + hn) | 0, - (h + hn) | 0, - (g - hn) | 0, - (_e - ((wn + (g >>> 0 < hn >>> 0)) | 0)) | 0, - on, - 1, - 0, - j, - ), - Ur(j, 32), - Fo((h = (j + 96) | 0), d, g, _e), - Ys(h, a), - Ur(h, 256), - (St = (j + 352) | 0), - 0 - ) - } - function xl(d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - var wn - if (((wn = qo(d, 0, a)), ((0 | h) == 1) | (h >>> 0 > 1))) - return (c[9129] = 22), -1 - if (!(!h & (a >>> 0 <= 15))) { - if (!(!(on | cn) & (Dn >>> 0 < 2147483649))) - return (c[9129] = 22), -1 - if ( - !(!(!!(j | cn) & (Dn >>> 0 > 8191)) | ((0 | g) == (0 | wn))) - ) - return (0 | $n) == 2 - ? ((on = (Dn >>> 10) | 0), - (St = d = (St + -64) | 0), - wn && Ps(wn, a), - (h = Ls(a)) - ? ((c[(d + 32) >> 2] = 0), - (c[(d + 36) >> 2] = 0), - (c[(d + 24) >> 2] = 0), - (c[(d + 28) >> 2] = 0), - (c[(d + 20) >> 2] = 16), - (c[(d + 16) >> 2] = hn), - (c[(d + 12) >> 2] = _e), - (c[(d + 8) >> 2] = g), - (c[(d + 4) >> 2] = a), - (c[d >> 2] = h), - (c[(d + 56) >> 2] = 0), - (c[(d + 52) >> 2] = 1), - (c[(d + 48) >> 2] = 1), - (c[(d + 44) >> 2] = on), - (c[(d + 40) >> 2] = j), - (g = Ou(d, 2)) | !wn || Qo(wn, h, a), - Ur(h, a), - fs(h)) - : (g = -22), - (St = (d - -64) | 0), - g ? -1 : 0) - : ((c[9129] = 28), -1) - } - return (c[9129] = 28), -1 - } - function Hl(d, a, h, g, _e, on, hn, j, cn, Dn) { - var $n, wn - return ( - (St = $n = (St - 400) | 0), - (c[($n + 4) >> 2] = 0), - Rs((wn = ($n + 16) | 0), cn, Dn, 0), - (Dn = - rn[(cn + 20) | 0] | - (rn[(cn + 21) | 0] << 8) | - (rn[(cn + 22) | 0] << 16) | - (rn[(cn + 23) | 0] << 24)), - (c[($n + 8) >> 2] = - rn[(cn + 16) | 0] | - (rn[(cn + 17) | 0] << 8) | - (rn[(cn + 18) | 0] << 16) | - (rn[(cn + 19) | 0] << 24)), - (c[($n + 12) >> 2] = Dn), - yu((Dn = ($n + 80) | 0), 64, 0, ($n + 4) | 0, wn), - Ks((cn = ($n + 144) | 0), Dn), - Ur(Dn, 64), - Fo(cn, on, hn, j), - Fo(cn, 35312, (0 - hn) & 15, 0), - Fo(cn, a, h, g), - Fo(cn, 35312, (0 - h) & 15, 0), - (c[($n + 72) >> 2] = hn), - (c[($n + 76) >> 2] = j), - Fo(cn, (on = ($n + 72) | 0), 8, 0), - (c[($n + 72) >> 2] = h), - (c[($n + 76) >> 2] = g), - Fo(cn, on, 8, 0), - Ys(cn, (on = ($n + 48) | 0)), - Ur(cn, 256), - (cn = ju(on, _e)), - Ur(on, 16), - d && - (cn - ? (qo(d, 0, h), (cn = -1)) - : (MA(d, a, h, g, ($n + 4) | 0, ($n + 16) | 0), - (cn = 0))), - Ur(($n + 16) | 0, 32), - (St = ($n + 400) | 0), - cn - ) - } - function b0(d, a, h, g, _e, on, hn) { - var j, - cn, - Dn = 0, - $n = 0 - ;(St = j = (St - 96) | 0), - js(j, on, hn, 0), - Cl((hn = (j + 32) | 0), 32, 0, (cn = (on + 16) | 0), j), - (on = -1) - e: { - if (!L0(h, a, g, _e, hn)) { - if (((on = 0), !d)) break e - !( - ((!_e & (g >>> 0 > (a - d) >>> 0)) | ((0 | _e) != 0)) & - (d >>> 0 < a >>> 0) - ) & - ((!_e & (g >>> 0 <= (d - a) >>> 0)) | - (d >>> 0 <= a >>> 0)) || (a = Fu(d, a, g)), - (hn = (h = (!_e & (g >>> 0 >= 32)) | ((0 | _e) != 0)) - ? 32 - : g) | (h = h ? 0 : _e) - ? (($n = Qo((j - -64) | 0, a, hn)), - M0( - (on = (j + 32) | 0), - on, - (Dn = (hn + 32) | 0), - Dn >>> 0 < 32 ? (h + 1) | 0 : h, - cn, - j, - ), - Qo(d, $n, hn)) - : M0( - (on = (j + 32) | 0), - on, - (Dn = (hn + 32) | 0), - Dn >>> 0 < 32 ? (h + 1) | 0 : h, - cn, - j, - ), - Ur((j + 32) | 0, 64), - (on = 0), - !_e & (g >>> 0 < 33) || - a0( - (d + hn) | 0, - (a + hn) | 0, - (g - hn) | 0, - (_e - ((h + (g >>> 0 < hn >>> 0)) | 0)) | 0, - cn, - 1, - 0, - j, - ) - } - Ur(j, 32) - } - return (St = (j + 96) | 0), on - } - function S0(d, a, h, g, _e, on, hn) { - var j, - cn, - Dn = 0, - $n = 0 - ;(St = j = (St - 96) | 0), - Rs(j, on, hn, 0), - t0((hn = (j + 32) | 0), 32, 0, (cn = (on + 16) | 0), j), - (on = -1) - e: { - if (!L0(h, a, g, _e, hn)) { - if (((on = 0), !d)) break e - !( - ((!_e & (g >>> 0 > (a - d) >>> 0)) | ((0 | _e) != 0)) & - (d >>> 0 < a >>> 0) - ) & - ((!_e & (g >>> 0 <= (d - a) >>> 0)) | - (d >>> 0 <= a >>> 0)) || (a = Fu(d, a, g)), - (hn = (h = (!_e & (g >>> 0 >= 32)) | ((0 | _e) != 0)) - ? 32 - : g) | (h = h ? 0 : _e) - ? (($n = Qo((j - -64) | 0, a, hn)), - P0( - (on = (j + 32) | 0), - on, - (Dn = (hn + 32) | 0), - Dn >>> 0 < 32 ? (h + 1) | 0 : h, - cn, - j, - ), - Qo(d, $n, hn)) - : P0( - (on = (j + 32) | 0), - on, - (Dn = (hn + 32) | 0), - Dn >>> 0 < 32 ? (h + 1) | 0 : h, - cn, - j, - ), - (on = 0), - !_e & (g >>> 0 < 33) || - bu( - (d + hn) | 0, - (a + hn) | 0, - (g - hn) | 0, - (_e - ((h + (g >>> 0 < hn >>> 0)) | 0)) | 0, - cn, - 1, - 0, - j, - ) - } - Ur(j, 32) - } - return (St = (j + 96) | 0), on - } - function $l(d, a, h, g, _e, on) { - var hn, j - if ( - ((St = hn = (St - 496) | 0), - vt((j = (hn + 288) | 0), d, a), - Bl(j, h, g, 0), - on) - ) - for ( - d = 0, a = 0; - (h = - ((a = (a + 1) | 0) << 24) | - ((65280 & a) << 8) | - ((a >>> 8) & 65280) | - (a >>> 24)), - (pn[(hn + 76) | 0] = h), - (pn[(hn + 77) | 0] = h >>> 8), - (pn[(hn + 78) | 0] = h >>> 16), - (pn[(hn + 79) | 0] = h >>> 24), - Qo((h = (hn + 80) | 0), (hn + 288) | 0, 208), - Bl(h, (hn + 76) | 0, 4, 0), - SA(h, (hn + 32) | 0), - (h = c[(hn + 60) >> 2]), - (c[(hn + 24) >> 2] = c[(hn + 56) >> 2]), - (c[(hn + 28) >> 2] = h), - (h = c[(hn + 52) >> 2]), - (c[(hn + 16) >> 2] = c[(hn + 48) >> 2]), - (c[(hn + 20) >> 2] = h), - (h = c[(hn + 44) >> 2]), - (c[(hn + 8) >> 2] = c[(hn + 40) >> 2]), - (c[(hn + 12) >> 2] = h), - (h = c[(hn + 36) >> 2]), - (c[hn >> 2] = c[(hn + 32) >> 2]), - (c[(hn + 4) >> 2] = h), - Qo( - (h = (d + _e) | 0), - hn, - (d = (on - d) | 0) >>> 0 >= 32 ? 32 : d, - ), - on >>> 0 > (d = a << 5) >>> 0; - - ); - Ur((hn + 288) | 0, 208), (St = (hn + 496) | 0) - } - function W0(d) { - var a = 0, - h = 0, - g = 0 - if (!d) return -25 - if (!c[d >> 2]) return -1 - if ( - ((a = -2), - !(Es[(d + 4) >> 2] < 16) && - (c[(d + 8) >> 2] || ((a = -18), !c[(d + 12) >> 2]))) - ) { - if (((h = c[(d + 20) >> 2]), !c[(d + 16) >> 2])) - return h ? -19 : -6 - if ( - ((a = -6), - !(h >>> 0 < 8) && - (c[(d + 24) >> 2] || ((a = -20), !c[(d + 28) >> 2])) && - (c[(d + 32) >> 2] || ((a = -21), !c[(d + 36) >> 2]))) - ) { - if (!(h = c[(d + 48) >> 2])) return -16 - if ( - ((a = -17), - !( - h >>> 0 > 16777215 || - ((a = -14), - (g = c[(d + 44) >> 2]) >>> 0 < 8 || - ((a = -15), - g >>> 0 > 2097152 || - ((a = -14), (h << 3) >>> 0 > g >>> 0))) - )) - ) { - if (!c[(d + 40) >> 2]) return -12 - if (!(d = c[(d + 52) >> 2])) return -28 - a = d >>> 0 > 16777215 ? -29 : 0 - } - } - } - return a - } - function Gl(d, a, h, g, _e, on) { - var hn, - j = 0 - return ( - (St = hn = (St - 32) | 0), - (j = -1), - !g & (h >>> 0 < 32) || - (kA(hn, 32, 0, _e, on), - L0( - (a + 16) | 0, - (a + 32) | 0, - (h - 32) | 0, - (g - (h >>> 0 < 32)) | 0, - hn, - ) || - (j0(d, a, h, g, _e, on), - (pn[(d + 24) | 0] = 0), - (pn[(d + 25) | 0] = 0), - (pn[(d + 26) | 0] = 0), - (pn[(d + 27) | 0] = 0), - (pn[(d + 28) | 0] = 0), - (pn[(d + 29) | 0] = 0), - (pn[(d + 30) | 0] = 0), - (pn[(d + 31) | 0] = 0), - (pn[(d + 16) | 0] = 0), - (pn[(d + 17) | 0] = 0), - (pn[(d + 18) | 0] = 0), - (pn[(d + 19) | 0] = 0), - (pn[(d + 20) | 0] = 0), - (pn[(d + 21) | 0] = 0), - (pn[(d + 22) | 0] = 0), - (pn[(d + 23) | 0] = 0), - (pn[(d + 8) | 0] = 0), - (pn[(d + 9) | 0] = 0), - (pn[(d + 10) | 0] = 0), - (pn[(d + 11) | 0] = 0), - (pn[(d + 12) | 0] = 0), - (pn[(d + 13) | 0] = 0), - (pn[(d + 14) | 0] = 0), - (pn[(d + 15) | 0] = 0), - (pn[0 | d] = 0), - (pn[(d + 1) | 0] = 0), - (pn[(d + 2) | 0] = 0), - (pn[(d + 3) | 0] = 0), - (pn[(d + 4) | 0] = 0), - (pn[(d + 5) | 0] = 0), - (pn[(d + 6) | 0] = 0), - (pn[(d + 7) | 0] = 0), - (j = 0))), - (St = (hn + 32) | 0), - j - ) - } - function Vl(d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - var wn, Un, Yn - return ( - (St = wn = (St - 384) | 0), - (c[(wn + 4) >> 2] = 0), - Rs((Un = (wn + 16) | 0), Dn, $n, 0), - ($n = - rn[(Dn + 20) | 0] | - (rn[(Dn + 21) | 0] << 8) | - (rn[(Dn + 22) | 0] << 16) | - (rn[(Dn + 23) | 0] << 24)), - (c[(wn + 8) >> 2] = - rn[(Dn + 16) | 0] | - (rn[(Dn + 17) | 0] << 8) | - (rn[(Dn + 18) | 0] << 16) | - (rn[(Dn + 19) | 0] << 24)), - (c[(wn + 12) >> 2] = $n), - yu(($n = (wn - -64) | 0), 64, 0, (Yn = (wn + 4) | 0), Un), - Ks((Dn = (wn + 128) | 0), $n), - Ur($n, 64), - Fo(Dn, hn, j, cn), - Fo(Dn, 35312, (0 - j) & 15, 0), - MA(d, g, _e, on, Yn, Un), - Fo(Dn, d, _e, on), - Fo(Dn, 35312, (0 - _e) & 15, 0), - (c[(wn + 56) >> 2] = j), - (c[(wn + 60) >> 2] = cn), - Fo(Dn, (d = (wn + 56) | 0), 8, 0), - (c[(wn + 56) >> 2] = _e), - (c[(wn + 60) >> 2] = on), - Fo(Dn, d, 8, 0), - Ys(Dn, a), - Ur(Dn, 256), - h && ((c[h >> 2] = 16), (c[(h + 4) >> 2] = 0)), - Ur((wn + 16) | 0, 32), - (St = (wn + 384) | 0), - 0 - ) - } - function Yl(d, a, h, g, _e) { - var on, - hn, - j = 0 - return ( - (St = on = (St + -64) | 0), - !h & ((hn = Vs(d)) >>> 0 < 128) - ? ((c[(on + 56) >> 2] = 0), - (c[(on + 48) >> 2] = 0), - (c[(on + 52) >> 2] = 0), - (c[(on + 40) >> 2] = 0), - (c[(on + 44) >> 2] = 0), - (h = 0), - hn && ((h = hn), (1 | hn) >>> 0 < 65536 || (h = hn)), - !(j = Ls(h)) | !(3 & rn[(j - 4) | 0]) || qo(j, 0, h), - j - ? ((c[(on + 32) >> 2] = 0), - (c[(on + 36) >> 2] = 0), - (c[(on + 8) >> 2] = j), - (c[(on + 16) >> 2] = j), - (c[(on + 20) >> 2] = hn), - (c[on >> 2] = j), - (c[(on + 12) >> 2] = hn), - (c[(on + 24) >> 2] = 0), - (c[(on + 28) >> 2] = 0), - (c[(on + 4) >> 2] = hn), - pu(on, d, _e) - ? ((c[9129] = 28), (d = -1)) - : (d = - (c[(on + 40) >> 2] != (0 | a)) | - (c[(on + 44) >> 2] != ((g >>> 10) | 0))), - fs(j)) - : (d = -1)) - : ((c[9129] = 28), (d = -1)), - (St = (on - -64) | 0), - d - ) - } - function Tu(d, a, h, g) { - var _e, - on = 0 - return ( - (St = _e = (St - 208) | 0), - (c[(_e + 72) >> 2] = 0), - (c[(_e + 76) >> 2] = 0), - (on = c[8603]), - (c[(_e + 8) >> 2] = c[8602]), - (c[(_e + 12) >> 2] = on), - (on = c[8605]), - (c[(_e + 16) >> 2] = c[8604]), - (c[(_e + 20) >> 2] = on), - (on = c[8607]), - (c[(_e + 24) >> 2] = c[8606]), - (c[(_e + 28) >> 2] = on), - (on = c[8609]), - (c[(_e + 32) >> 2] = c[8608]), - (c[(_e + 36) >> 2] = on), - (on = c[8611]), - (c[(_e + 40) >> 2] = c[8610]), - (c[(_e + 44) >> 2] = on), - (on = c[8613]), - (c[(_e + 48) >> 2] = c[8612]), - (c[(_e + 52) >> 2] = on), - (on = c[8615]), - (c[(_e + 56) >> 2] = c[8614]), - (c[(_e + 60) >> 2] = on), - (c[(_e + 64) >> 2] = 0), - (c[(_e + 68) >> 2] = 0), - (on = c[8601]), - (c[_e >> 2] = c[8600]), - (c[(_e + 4) >> 2] = on), - ms(_e, a, h, g), - Ts(_e, d), - (St = (_e + 208) | 0), - 0 - ) - } - function Uu(d, a) { - var h = 0, - g = 0 - e: if ((g = 255 & a)) { - if (3 & d) - for (;;) { - if (!(h = rn[0 | d]) | ((0 | h) == (255 & a))) break e - if (!(3 & (d = (d + 1) | 0))) break - } - n: if ( - !((-1 ^ (h = c[d >> 2])) & (h - 16843009) & -2139062144) - ) - for (g = zr(g, 16843009); ; ) { - if ((-1 ^ (h ^= g)) & (h - 16843009) & -2139062144) - break n - if ( - ((h = c[(d + 4) >> 2]), - (d = (d + 4) | 0), - (h - 16843009) & (-1 ^ h) & -2139062144) - ) - break - } - for ( - ; - (h = d), - (g = rn[0 | d]) && - ((d = (h + 1) | 0), (0 | g) != (255 & a)); - - ); - d = h - } else d = (Vs(d) + d) | 0 - return rn[0 | d] == (255 & a) ? d : 0 - } - function Qs(d, a) { - var h, - g = 0, - _e = 0, - on = 0 - if (((pn[(15 + (h = (St - 16) | 0)) | 0] = 0), a)) { - if (((_e = 3 & a), a >>> 0 >= 4)) - for ( - on = -4 & a, a = 0; - (pn[(h + 15) | 0] = rn[(d + g) | 0] | rn[(h + 15) | 0]), - (pn[(h + 15) | 0] = - rn[((1 | g) + d) | 0] | rn[(h + 15) | 0]), - (pn[(h + 15) | 0] = - rn[((2 | g) + d) | 0] | rn[(h + 15) | 0]), - (pn[(h + 15) | 0] = - rn[((3 | g) + d) | 0] | rn[(h + 15) | 0]), - (g = (g + 4) | 0), - (0 | on) != (0 | (a = (a + 4) | 0)); - - ); - if (_e) - for ( - a = 0; - (pn[(h + 15) | 0] = rn[(d + g) | 0] | rn[(h + 15) | 0]), - (g = (g + 1) | 0), - (0 | _e) != (0 | (a = (a + 1) | 0)); - - ); - } - return ((rn[(h + 15) | 0] - 1) >>> 8) & 1 - } - function hu(d) { - var a = 0 - return ( - (c[(64 + (d |= 0)) >> 2] = 0), - (c[(d + 68) >> 2] = 0), - (c[(d + 72) >> 2] = 0), - (c[(d + 76) >> 2] = 0), - (a = c[8601]), - (c[d >> 2] = c[8600]), - (c[(d + 4) >> 2] = a), - (a = c[8603]), - (c[(d + 8) >> 2] = c[8602]), - (c[(d + 12) >> 2] = a), - (a = c[8605]), - (c[(d + 16) >> 2] = c[8604]), - (c[(d + 20) >> 2] = a), - (a = c[8607]), - (c[(d + 24) >> 2] = c[8606]), - (c[(d + 28) >> 2] = a), - (a = c[8609]), - (c[(d + 32) >> 2] = c[8608]), - (c[(d + 36) >> 2] = a), - (a = c[8611]), - (c[(d + 40) >> 2] = c[8610]), - (c[(d + 44) >> 2] = a), - (a = c[8613]), - (c[(d + 48) >> 2] = c[8612]), - (c[(d + 52) >> 2] = a), - (a = c[8615]), - (c[(d + 56) >> 2] = c[8614]), - (c[(d + 60) >> 2] = a), - 0 - ) - } - function Z0(d) { - return ( - ((((((127 & (-1 ^ rn[(d + 31) | 0])) | - ((rn[(d + 1) | 0] & - rn[(d + 2) | 0] & - rn[(d + 3) | 0] & - rn[(d + 4) | 0] & - rn[(d + 5) | 0] & - rn[(d + 6) | 0] & - rn[(d + 7) | 0] & - rn[(d + 8) | 0] & - rn[(d + 9) | 0] & - rn[(d + 10) | 0] & - rn[(d + 11) | 0] & - rn[(d + 12) | 0] & - rn[(d + 13) | 0] & - rn[(d + 14) | 0] & - rn[(d + 15) | 0] & - rn[(d + 16) | 0] & - rn[(d + 17) | 0] & - rn[(d + 18) | 0] & - rn[(d + 19) | 0] & - rn[(d + 20) | 0] & - rn[(d + 21) | 0] & - rn[(d + 22) | 0] & - rn[(d + 23) | 0] & - rn[(d + 24) | 0] & - rn[(d + 25) | 0] & - rn[(d + 26) | 0] & - rn[(d + 27) | 0] & - rn[(d + 28) | 0] & - rn[(d + 30) | 0] & - rn[(d + 29) | 0]) ^ - 255)) - - 1) & - (236 - rn[0 | d])) ^ - -1) >>> - 8) & - 1 - ) - } - function Iu(d, a, h) { - var g, - _e = 0, - on = 0 - if ( - ((c[(12 + (g = (St - 16) | 0)) >> 2] = d), - (c[(g + 8) >> 2] = a), - (d = 0), - (pn[(g + 7) | 0] = 0), - h) - ) { - if (((a = 1 & h), (0 | h) != 1)) - for ( - on = -2 & h, h = 0; - (pn[(g + 7) | 0] = - rn[(g + 7) | 0] | - (rn[(c[(g + 12) >> 2] + d) | 0] ^ - rn[(c[(g + 8) >> 2] + d) | 0])), - (_e = 1 | d), - (pn[(g + 7) | 0] = - rn[(g + 7) | 0] | - (rn[(_e + c[(g + 12) >> 2]) | 0] ^ - rn[(c[(g + 8) >> 2] + _e) | 0])), - (d = (d + 2) | 0), - (0 | on) != (0 | (h = (h + 2) | 0)); - - ); - a && - (pn[(g + 7) | 0] = - rn[(g + 7) | 0] | - (rn[(c[(g + 12) >> 2] + d) | 0] ^ - rn[(c[(g + 8) >> 2] + d) | 0])) - } - return ((((rn[(g + 7) | 0] - 1) >>> 8) & 1) - 1) | 0 - } - function e0(d) { - for ( - var a = 0, - h = 0, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0; - (_e = - ((h = rn[(d + g) | 0]) ^ rn[0 | (a = (g + 2704) | 0)]) | - _e), - (on = (h ^ rn[(a + 192) | 0]) | on), - (hn = (h ^ rn[(a + 160) | 0]) | hn), - (j = (h ^ rn[(a + 128) | 0]) | j), - (cn = (h ^ rn[(a + 96) | 0]) | cn), - (Dn = (h ^ rn[(a - -64) | 0]) | Dn), - ($n = (h ^ rn[(a + 32) | 0]) | $n), - (0 | (g = (g + 1) | 0)) != 31; - - ); - return ( - ((((255 & ((a = 127 ^ (d = 127 & rn[(d + 31) | 0])) | on)) - - 1) | - ((255 & (a | hn)) - 1) | - ((255 & (a | j)) - 1) | - ((255 & ((122 ^ d) | cn)) - 1) | - ((255 & ((5 ^ d) | Dn)) - 1) | - ((255 & (d | $n)) - 1) | - ((255 & (d | _e)) - 1)) >>> - 8) & - 1 - ) - } - function st(d, a, h) { - var g = 0, - _e = 0, - on = 0, - hn = 0 - return ( - (_e = 31 & (on = hn = 63 & h)), - (on = - on >>> 0 >= 32 - ? (-1 >>> _e) | 0 - : (g = (-1 >>> _e) | 0) | (((1 << _e) - 1) << (32 - _e))), - (on &= d), - (g &= a), - (_e = 31 & hn), - hn >>> 0 >= 32 - ? ((g = on << _e), (hn = 0)) - : ((g = (((1 << _e) - 1) & (on >>> (32 - _e))) | (g << _e)), - (hn = on << _e)), - (on = g), - (g = 31 & (_e = (0 - h) & 63)), - _e >>> 0 >= 32 - ? ((g = -1 << g), (h = 0)) - : (g = - (h = -1 << g) | (((1 << g) - 1) & (-1 >>> (32 - g)))), - (d &= h), - (a &= g), - (g = 31 & _e), - _e >>> 0 >= 32 - ? ((h = 0), (d = (a >>> g) | 0)) - : ((h = (a >>> g) | 0), - (d = ((((1 << g) - 1) & a) << (32 - g)) | (d >>> g))), - (On = h | on), - d | hn - ) - } - function Wl(d, a, h, g, _e, on) { - ;(d |= 0), (a |= 0), (h |= 0) - var hn = 0, - j = 0 - e: n: { - t: { - if ( - !( - !(_e |= 0) & ((g |= 0) >>> 0 < 64) || - ((j = (1 + (_e = (_e - 1) | 0)) | 0), - (hn = _e), - (!(g = - (_e = (g + -64) | 0) >>> 0 < 4294967232 ? j : hn) & - (_e >>> 0 > 4294967231)) | - g) - ) - ) { - if ( - !$u((hn = h), (h = (h - -64) | 0), _e, g, (on |= 0), 0) - ) - break t - d && qo(d, 0, _e) - } - if (((g = -1), !a)) break n - ;(c[a >> 2] = 0), (c[(a + 4) >> 2] = 0), (g = -1) - break e - } - a && ((c[a >> 2] = _e), (c[(a + 4) >> 2] = g)), - (g = 0), - d && Fu(d, h, _e) - } - return 0 | g - } - function Zl(d, a, h, g, _e, on, hn, j, cn, Dn) { - var $n, wn, Un - return ( - (St = $n = (St - 352) | 0), - yu((Un = ($n + 32) | 0), 64, 0, cn, Dn), - Ks((wn = ($n + 96) | 0), Un), - Ur(Un, 64), - Fo(wn, on, hn, j), - Fo(wn, 34352, (0 - hn) & 15, 0), - Fo(wn, a, h, g), - Fo(wn, 34352, (0 - h) & 15, 0), - (c[($n + 24) >> 2] = hn), - (c[($n + 28) >> 2] = j), - Fo(wn, (on = ($n + 24) | 0), 8, 0), - (c[($n + 24) >> 2] = h), - (c[($n + 28) >> 2] = g), - Fo(wn, on, 8, 0), - Ys(wn, $n), - Ur(wn, 256), - (on = ju($n, _e)), - Ur($n, 16), - d && - (on - ? (qo(d, 0, h), (on = -1)) - : (vu(d, a, h, g, cn, 1, Dn), (on = 0))), - (St = ($n + 352) | 0), - on - ) - } - function zl(d, a, h, g, _e, on) { - var hn, j - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (on |= 0), - (St = hn = (St - 32) | 0), - (j = - rn[0 | (_e |= 0)] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (_e = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[(hn + 24) >> 2] = 0), - (c[(hn + 28) >> 2] = 0), - (c[(hn + 16) >> 2] = j), - (c[(hn + 20) >> 2] = _e), - (c[(hn + 8) >> 2] = 0), - (c[(hn + 12) >> 2] = 0), - (c[hn >> 2] = h), - (c[(hn + 4) >> 2] = g), - (a - 65) >>> 0 <= 4294967246 - ? ((c[9129] = 28), (d = -1)) - : (d = y0(d, a, 0, 0, 0, on, 32, hn, (hn + 16) | 0)), - (St = (hn + 32) | 0), - 0 | d - ) - } - function Xl(d, a, h, g, _e) { - var on, hn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (St = on = (St - 512) | 0), - Mu((hn = (on + 32) | 0), (_e |= 0), 32), - Sl(hn, a, h, g), - k0(hn, (on + 448) | 0), - (a = c[(on + 476) >> 2]), - (c[(on + 24) >> 2] = c[(on + 472) >> 2]), - (c[(on + 28) >> 2] = a), - (a = c[(on + 468) >> 2]), - (c[(on + 16) >> 2] = c[(on + 464) >> 2]), - (c[(on + 20) >> 2] = a), - (a = c[(on + 460) >> 2]), - (c[(on + 8) >> 2] = c[(on + 456) >> 2]), - (c[(on + 12) >> 2] = a), - (a = c[(on + 452) >> 2]), - (c[on >> 2] = c[(on + 448) >> 2]), - (c[(on + 4) >> 2] = a), - (a = J0(d, on)), - (h = Iu(on, d, 32)), - (St = (on + 512) | 0), - h | ((0 | d) == (0 | on) ? -1 : a) - ) - } - function eA(d, a, h, g, _e, on, hn, j, cn, Dn) { - var $n, wn, Un - return ( - (St = $n = (St - 352) | 0), - t0((Un = ($n + 32) | 0), 64, 0, cn, Dn), - Ks((wn = ($n + 96) | 0), Un), - Ur(Un, 64), - Fo(wn, on, hn, j), - (c[($n + 24) >> 2] = hn), - (c[($n + 28) >> 2] = j), - Fo(wn, (on = ($n + 24) | 0), 8, 0), - Fo(wn, a, h, g), - (c[($n + 24) >> 2] = h), - (c[($n + 28) >> 2] = g), - Fo(wn, on, 8, 0), - Ys(wn, $n), - Ur(wn, 256), - (on = ju($n, _e)), - Ur($n, 16), - d && - (on - ? (qo(d, 0, h), (on = -1)) - : (bu(d, a, h, g, cn, 1, 0, Dn), (on = 0))), - (St = ($n + 352) | 0), - on - ) - } - function nA(d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - var wn, Un, Yn - return ( - (St = wn = (St - 336) | 0), - yu((Yn = (wn + 16) | 0), 64, 0, Dn, $n), - Ks((Un = (wn + 80) | 0), Yn), - Ur(Yn, 64), - Fo(Un, hn, j, cn), - Fo(Un, 34352, (0 - j) & 15, 0), - vu(d, g, _e, on, Dn, 1, $n), - Fo(Un, d, _e, on), - Fo(Un, 34352, (0 - _e) & 15, 0), - (c[(wn + 8) >> 2] = j), - (c[(wn + 12) >> 2] = cn), - Fo(Un, (d = (wn + 8) | 0), 8, 0), - (c[(wn + 8) >> 2] = _e), - (c[(wn + 12) >> 2] = on), - Fo(Un, d, 8, 0), - Ys(Un, a), - Ur(Un, 256), - h && ((c[h >> 2] = 16), (c[(h + 4) >> 2] = 0)), - (St = (wn + 336) | 0), - 0 - ) - } - function z0(d, a) { - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0 - e: if (!((((h = rn[0 | d]) - 58) & 255) >>> 0 < 246)) { - for (_e = h, g = d; ; ) { - if ( - ((hn = g), - on >>> 0 > 429496729 || - (_e = ((255 & _e) - 48) | 0) >>> 0 > - (-1 ^ (g = zr(on, 10))) >>> 0) - ) - break e - if ( - ((on = (g + _e) | 0), - !( - (((_e = rn[0 | (g = (hn + 1) | 0)]) - 58) & 255) >>> 0 > - 245 - )) - ) - break - } - ;(((0 | h) == 48) & ((0 | d) != (0 | hn))) | - ((0 | d) == (0 | g)) || ((c[a >> 2] = on), (j = g)) - } - return j - } - function Eu(d) { - var a = 0, - h = 0, - g = 0, - _e = 0 - ;(a = 65), (h = 1024) - e: { - n: { - if (rn[1024] != (255 & d)) - for (_e = zr(255 & d, 16843009); ; ) { - if ( - (-1 ^ (g = c[h >> 2] ^ _e)) & - (g - 16843009) & - -2139062144 - ) - break n - if (((h = (h + 4) | 0), !((a = (a - 4) | 0) >>> 0 > 3))) - break - } - if (!a) break e - } - for (d &= 255; ; ) { - if ((0 | d) == rn[0 | h]) return h - if (((h = (h + 1) | 0), !(a = (a - 1) | 0))) break - } - } - return 0 - } - function tA(d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - var wn, Un, Yn - return ( - (St = wn = (St - 336) | 0), - t0((Yn = (wn + 16) | 0), 64, 0, Dn, $n), - Ks((Un = (wn + 80) | 0), Yn), - Ur(Yn, 64), - Fo(Un, hn, j, cn), - (c[(wn + 8) >> 2] = j), - (c[(wn + 12) >> 2] = cn), - Fo(Un, (hn = (wn + 8) | 0), 8, 0), - bu(d, g, _e, on, Dn, 1, 0, $n), - Fo(Un, d, _e, on), - (c[(wn + 8) >> 2] = _e), - (c[(wn + 12) >> 2] = on), - Fo(Un, hn, 8, 0), - Ys(Un, a), - Ur(Un, 256), - h && ((c[h >> 2] = 16), (c[(h + 4) >> 2] = 0)), - (St = (wn + 336) | 0), - 0 - ) - } - function rA(d, a, h, g, _e, on) { - return ( - (!g & (h >>> 0 >= 32)) | g - ? (j0(d, a, h, g, _e, on), - GA( - (d + 16) | 0, - (d + 32) | 0, - (h - 32) | 0, - (g - (h >>> 0 < 32)) | 0, - d, - ), - (pn[(d + 8) | 0] = 0), - (pn[(d + 9) | 0] = 0), - (pn[(d + 10) | 0] = 0), - (pn[(d + 11) | 0] = 0), - (pn[(d + 12) | 0] = 0), - (pn[(d + 13) | 0] = 0), - (pn[(d + 14) | 0] = 0), - (pn[(d + 15) | 0] = 0), - (pn[0 | d] = 0), - (pn[(d + 1) | 0] = 0), - (pn[(d + 2) | 0] = 0), - (pn[(d + 3) | 0] = 0), - (pn[(d + 4) | 0] = 0), - (pn[(d + 5) | 0] = 0), - (pn[(d + 6) | 0] = 0), - (pn[(d + 7) | 0] = 0), - (d = 0)) - : (d = -1), - d - ) - } - function iA(d, a, h, g, _e, on) { - ;(a |= 0), (_e |= 0), (on |= 0) - var hn, - j = 0 - return ( - (St = hn = (St - 16) | 0), - xu( - (d |= 0), - (hn + 8) | 0, - Fu((d - -64) | 0, (h |= 0), (g |= 0)), - g, - _e, - on, - 0, - ), - c[(hn + 12) >> 2] | (c[(hn + 8) >> 2] != 64) - ? (a && ((c[a >> 2] = 0), (c[(a + 4) >> 2] = 0)), - qo(d, 0, (g - -64) | 0), - (j = -1)) - : a && - ((c[a >> 2] = g - -64), - (c[(a + 4) >> 2] = - _e - (((g >>> 0 < 4294967232) - 1) | 0))), - (St = (hn + 16) | 0), - 0 | j - ) - } - function B0(d, a) { - var h, - g = 0, - _e = 0, - on = 0, - hn = 0 - return (h = Eu(rn[0 | a])) && - (g = Eu(rn[(a + 1) | 0])) && - (_e = Eu(rn[(a + 2) | 0])) && - (on = Eu(rn[(a + 3) | 0])) && - (hn = Eu(rn[(a + 4) | 0])) - ? ((c[d >> 2] = - (h - 1024) | - ((g - 1024) << 6) | - ((_e - 1024) << 12) | - ((on - 1024) << 18) | - ((hn - 1024) << 24)), - (a + 5) | 0) - : ((c[d >> 2] = 0), 0) - } - function oA(d, a, h) { - var g - for ( - c[(12 + (g = (St - 16) | 0)) >> 2] = d, - c[(g + 8) >> 2] = a, - d = 0, - c[(g + 4) >> 2] = 0; - (c[(g + 4) >> 2] = - c[(g + 4) >> 2] | - (rn[(c[(g + 12) >> 2] + d) | 0] ^ - rn[(c[(g + 8) >> 2] + d) | 0])), - (a = 1 | d), - (c[(g + 4) >> 2] = - c[(g + 4) >> 2] | - (rn[(a + c[(g + 12) >> 2]) | 0] ^ - rn[(a + c[(g + 8) >> 2]) | 0])), - (0 | h) != (0 | (d = (d + 2) | 0)); - - ); - return ((((c[(g + 4) >> 2] - 1) >>> 8) & 1) - 1) | 0 - } - function aA(d, a) { - var h, - g = 0, - _e = 0, - on = 0 - ;(St = h = (St - 896) | 0), - Xs((g = (h + 848) | 0), a), - Xs((_e = (h + 800) | 0), (a + 32) | 0), - h0((on = (h + 320) | 0), g), - h0((a = (h + 160) | 0), _e), - ds((g = (h + 640) | 0), a), - hs((a = (h + 480) | 0), on, g), - Gt(h, a, (g = (h + 600) | 0)), - Gt((h + 40) | 0, (_e = (h + 520) | 0), (on = (h + 560) | 0)), - Gt((h + 80) | 0, on, g), - Gt((h + 120) | 0, a, _e), - _u(d, h), - (St = (h + 896) | 0) - } - function sA(d) { - var a = 0, - h = 0, - g = 0, - _e = 0 - for ( - a = 1; - (a = (rn[0 | (h = (d + g) | 0)] + a) | 0), - (pn[0 | h] = a), - (a = - (rn[0 | (h = ((1 | g) + d) | 0)] + ((a >>> 8) | 0)) | 0), - (pn[0 | h] = a), - (a = - (rn[0 | (h = ((2 | g) + d) | 0)] + ((a >>> 8) | 0)) | 0), - (pn[0 | h] = a), - (a = - (rn[0 | (h = ((3 | g) + d) | 0)] + ((a >>> 8) | 0)) | 0), - (pn[0 | h] = a), - (a = (a >>> 8) | 0), - (g = (g + 4) | 0), - (0 | (_e = (_e + 4) | 0)) != 4; - - ); - } - function Vs(d) { - var a = 0, - h = 0, - g = 0 - e: { - if (3 & (a = d)) - for (;;) { - if (!rn[0 | a]) break e - if (!(3 & (a = (a + 1) | 0))) break - } - for ( - ; - (h = a), - (a = (a + 4) | 0), - !((-1 ^ (g = c[h >> 2])) & (g - 16843009) & -2139062144); - - ); - for (; (h = ((a = h) + 1) | 0), rn[0 | a]; ); - } - return (a - d) | 0 - } - function uA(d, a, h, g, _e, on, hn) { - var j - return ( - (St = j = (St - 16) | 0), - (d = qo(d, 0, 128)), - !(g | on) & (hn >>> 0 < 2147483649) - ? ((!on & (_e >>> 0 >= 3)) | ((0 | on) != 0)) & - (hn >>> 0 > 8191) - ? (Ps(j, 16), - (d = _0(_e, (hn >>> 10) | 0, a, h, j, d, 1) ? -1 : 0)) - : ((c[9129] = 28), (d = -1)) - : ((c[9129] = 22), (d = -1)), - (St = (j + 16) | 0), - d - ) - } - function dA(d, a) { - var h = 0 - 4 & a && - ((a = c[d >> 2]) && - Ur(c[(a + 4) >> 2], c[(d + 16) >> 2] << 10), - (a = c[(d + 4) >> 2]) && Ur(a, c[(d + 20) >> 2] << 3)), - fs(c[(d + 4) >> 2]), - (c[(d + 4) >> 2] = 0), - (a = c[d >> 2]) && (h = c[a >> 2]) && fs(h), - fs(a), - (c[d >> 2] = 0) - } - function cA(d) { - var a = 0, - h = 0, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0 - for ( - a = 32, h = 1; - (cn = - ((((_e = rn[((g = (a - 2) | 0) + d) | 0]) - - (on = rn[(g + 2928) | 0])) >> - 8) & - (a = - ((((hn = rn[(2928 + (a = (a - 1) | 0)) | 0]) ^ - (j = rn[(d + a) | 0])) - - 1) >> - 8) & - h)) | - (255 & ((((j - hn) >>> 8) & h) | cn))), - (h = a & (((_e ^ on) - 1) >> 8)), - (a = g); - - ); - return (255 & cn) != 0 - } - function ou(d, a, h) { - var g = 0, - _e = 0, - on = 0 - if (!h) return 0 - e: if ((g = rn[0 | d])) { - for (;;) { - if ( - (_e = rn[0 | a]) && - !(!(h = (h - 1) | 0) | ((0 | g) != (0 | _e))) - ) { - if ( - ((a = (a + 1) | 0), - (g = rn[(d + 1) | 0]), - (d = (d + 1) | 0), - g) - ) - continue - break e - } - break - } - on = g - } - return ((255 & on) - rn[0 | a]) | 0 - } - function lA(d, a, h, g, _e, on, hn) { - var j - return ( - (St = j = (St - 16) | 0), - (d = qo(d, 0, 128)), - !(g | on) & (hn >>> 0 < 2147483649) - ? !!(_e | on) & (hn >>> 0 > 8191) - ? (Ps(j, 16), - (d = _0(_e, (hn >>> 10) | 0, a, h, j, d, 2) ? -1 : 0)) - : ((c[9129] = 28), (d = -1)) - : ((c[9129] = 22), (d = -1)), - (St = (j + 16) | 0), - d - ) - } - function w0(d) { - var a = 0 - return ( - (c[(32 + (d |= 0)) >> 2] = 0), - (c[(d + 36) >> 2] = 0), - (a = c[8833]), - (c[d >> 2] = c[8832]), - (c[(d + 4) >> 2] = a), - (a = c[8835]), - (c[(d + 8) >> 2] = c[8834]), - (c[(d + 12) >> 2] = a), - (a = c[8837]), - (c[(d + 16) >> 2] = c[8836]), - (c[(d + 20) >> 2] = a), - (a = c[8839]), - (c[(d + 24) >> 2] = c[8838]), - (c[(d + 28) >> 2] = a), - 0 - ) - } - function AA(d, a, h, g, _e, on, hn) { - var j, - cn = 0 - return ( - (St = j = (St + -64) | 0), - (cn = -1), - !g & (h >>> 0 < 16) || - iu((j + 32) | 0, hn, on) || - Rs(j, 35296, (j + 32) | 0, 0) || - ((cn = S0( - d, - (a + 16) | 0, - a, - (h - 16) | 0, - (g - (h >>> 0 < 16)) | 0, - _e, - j, - )), - Ur(j, 32)), - (St = (j - -64) | 0), - cn - ) - } - function jn(d, a, h, g) { - var _e, - on, - hn, - j, - cn = 0, - Dn = 0 - return ( - (j = zr((cn = (h >>> 16) | 0), (Dn = (d >>> 16) | 0))), - (cn = - ((65535 & - (Dn = - ((((hn = zr((_e = 65535 & h), (on = 65535 & d))) >>> - 16) | - 0) + - zr(Dn, _e)) | - 0)) + - zr(cn, on)) | - 0), - (On = - (((zr(a, h) + j) | 0) + - zr(d, g) + - (Dn >>> 16) + - (cn >>> 16)) | - 0), - (65535 & hn) | (cn << 16) - ) - } - function vu(d, a, h, g, _e, on, hn) { - var j = 0, - cn = 0 - if ( - ((j = g), - !( - (((((((j = - (cn = (h + 63) | 0) >>> 0 < 63 ? (j + 1) | 0 : j) >>> - 6) | - 0) + - ((0 | (j = ((63 & j) << 26) | (cn >>> 6))) != 0)) | - 0) == - 1) & - (on >>> 0 > (cn = (0 - j) | 0) >>> 0)) | - ((0 | g) == 1) | - (g >>> 0 > 1) - )) - ) - return 0 | Bs[c[8937]](d, a, h, g, _e, on, hn) - ss(), so() - } - function fA(d, a, h, g, _e, on, hn) { - var j - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (St = j = (St + -64) | 0), - iu((j + 32) | 0, (hn |= 0), (on |= 0)) - ? (on = -1) - : ((on = -1), - js(j, 35232, (j + 32) | 0, 0) || - ((on = rA(d, a, h, g, _e, j)), Ur(j, 32))), - (St = (j - -64) | 0), - 0 | on - ) - } - function pA(d, a, h, g, _e, on, hn) { - var j - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (St = j = (St + -64) | 0), - iu((j + 32) | 0, (hn |= 0), (on |= 0)) - ? (on = -1) - : ((on = -1), - js(j, 35232, (j + 32) | 0, 0) || - ((on = Gl(d, a, h, g, _e, j)), Ur(j, 32))), - (St = (j - -64) | 0), - 0 | on - ) - } - function X0(d, a) { - for ( - var h = 0, g = 0, _e = 0, on = 0, hn = 0; - (h = - (((rn[0 | (g = (d + _e) | 0)] - rn[(a + _e) | 0]) | 0) + - h) | - 0), - (pn[0 | g] = h), - (h = - (((rn[0 | (on = ((g = 1 | _e) + d) | 0)] - - rn[(a + g) | 0]) | - 0) + - ((h << 23) >> 31)) | - 0), - (pn[0 | on] = h), - (h = (h << 23) >> 31), - (_e = (_e + 2) | 0), - (0 | (hn = (hn + 2) | 0)) != 64; - - ); - } - function hA(d, a, h, g, _e, on, hn) { - var j - if (((St = j = (St + -64) | 0), !g & (h >>> 0 < 4294967280))) - return ( - iu((j + 32) | 0, hn, on) - ? (hn = -1) - : ((hn = -1), - Rs(j, 35296, (j + 32) | 0, 0) || - ((hn = _d((d + 16) | 0, d, a, h, g, _e, j)), - Ur(j, 32))), - (St = (j - -64) | 0), - hn - ) - ss(), so() - } - function gA(d, a) { - for ( - var h = 0, g = 0, _e = 0, on = 0, hn = 0; - (g = (d + _e) | 0), - (h = (rn[(a + _e) | 0] + ((rn[0 | g] + h) | 0)) | 0), - (pn[0 | g] = h), - (on = ((g = 1 | _e) + d) | 0), - (h = - (rn[(a + g) | 0] + ((rn[0 | on] + ((h >>> 8) | 0)) | 0)) | - 0), - (pn[0 | on] = h), - (h = (h >>> 8) | 0), - (_e = (_e + 2) | 0), - (0 | (hn = (hn + 2) | 0)) != 32; - - ); - } - function Ps(d, a) { - d |= 0 - var h, - g = 0, - _e = 0, - on = 0 - if (((St = h = (St - 16) | 0), (a |= 0))) - for ( - ; - (pn[(h + 15) | 0] = 0), - (_e = (d + g) | 0), - (on = 0 | Ws(35752, (h + 15) | 0, 0)), - (pn[0 | _e] = on), - (0 | (g = (g + 1) | 0)) != (0 | a); - - ); - St = (h + 16) | 0 - } - function yA(d, a, h, g, _e, on, hn) { - var j, - cn = 0 - return ( - (St = j = (St - 32) | 0), - (cn = -1), - !g & (h >>> 0 < 16) || - s0(j, on, hn) || - ((cn = b0( - d, - (a + 16) | 0, - a, - (h - 16) | 0, - (g - (h >>> 0 < 16)) | 0, - _e, - j, - )), - Ur(j, 32)), - (St = (j + 32) | 0), - cn - ) - } - function Lu(d) { - var a, h - return ((d = ((a = c[8924]) + (h = (d + 7) & -8)) | 0) >>> 0 <= - a >>> 0 && - h) || - (d >>> 0 > (lp() << 16) >>> 0 && !(0 | wu(0 | d))) - ? ((c[9129] = 48), -1) - : ((c[8924] = d), a) - } - function gu(d, a) { - var h, g, _e - ;(St = h = (St - 176) | 0), - kr((g = (h + 96) | 0), (a + 80) | 0), - Gt((_e = (h + 48) | 0), a, g), - Gt(h, (a + 40) | 0, g), - cs(d, h), - cs((h + 144) | 0, _e), - (pn[(d + 31) | 0] = - rn[(d + 31) | 0] ^ (rn[(h + 144) | 0] << 7)), - (St = (h + 176) | 0) - } - function Fu(d, a, h) { - var g = 0 - if (d >>> 0 < a >>> 0) return Qo(d, a, h) - if (h) - for ( - g = (d + h) | 0, a = (a + h) | 0; - (a = (a - 1) | 0), - (pn[0 | (g = (g - 1) | 0)] = rn[0 | a]), - (h = (h - 1) | 0); - - ); - return d - } - function mA(d, a, h, g, _e, on, hn) { - var j, - cn = 0 - if (((St = j = (St - 32) | 0), !g & (h >>> 0 < 4294967280))) - return ( - (cn = -1), - s0(j, on, hn) || - ((cn = _c((d + 16) | 0, d, a, h, g, _e, j)), Ur(j, 32)), - (St = (j + 32) | 0), - cn - ) - ss(), so() - } - function _A(d, a, h, g, _e, on, hn, j, cn, Dn) { - var $n, - wn = 0, - Un = 0, - Yn = 0 - return ( - (St = $n = (St - 16) | 0), - (wn = -1), - yl($n) || - ((Un = -1), - (Yn = C0($n, d, a, h, g, _e, on, hn, j, cn, Dn)), - (wn = R0($n) ? Un : Yn)), - (St = ($n + 16) | 0), - wn - ) - } - function CA(d, a, h, g, _e, on) { - return ( - (a |= 0), - 0 | - ((!(g |= 0) & ((h |= 0) >>> 0 >= 16)) | g - ? b0( - (d |= 0), - (a + 16) | 0, - a, - (h - 16) | 0, - (g - (h >>> 0 < 16)) | 0, - (_e |= 0), - (on |= 0), - ) - : -1) - ) - } - function IA(d, a, h, g, _e, on) { - return ( - (a |= 0), - 0 | - ((!(g |= 0) & ((h |= 0) >>> 0 >= 16)) | g - ? S0( - (d |= 0), - (a + 16) | 0, - a, - (h - 16) | 0, - (g - (h >>> 0 < 16)) | 0, - (_e |= 0), - (on |= 0), - ) - : -1) - ) - } - function EA(d, a, h) { - d |= 0 - var g, - _e = 0 - return ( - (St = g = (St - 32) | 0), - (_e = -1), - iu(g, (h |= 0), (a |= 0)) || (_e = js(d, 35232, g, 0)), - (St = (g + 32) | 0), - 0 | _e - ) - } - function k0(d, a) { - var h - return ( - (a |= 0), - (St = h = (St + -64) | 0), - Ts((d |= 0), h), - ms((d = (d + 208) | 0), h, 64, 0), - Ts(d, a), - Ur(h, 64), - (St = (h - -64) | 0), - 0 - ) - } - function vA(d, a, h, g) { - var _e - return ( - (a |= 0), - (h |= 0), - (g |= 0), - (St = _e = (St + -64) | 0), - Ts((d |= 0), _e), - (d = xu(a, h, _e, 64, 0, g, 1)), - (St = (_e - -64) | 0), - 0 | d - ) - } - function Q0(d, a) { - var h, g, _e - Gt(d, a, (h = (a + 120) | 0)), - Gt((d + 40) | 0, (g = (a + 40) | 0), (_e = (a + 80) | 0)), - Gt((d + 80) | 0, _e, h), - Gt((d + 120) | 0, a, g) - } - function bA(d, a, h, g, _e, on, hn) { - return ( - 0 | - lA( - (d |= 0), - (a |= 0), - (d = 0) | (h |= 0), - (g |= 0), - d | (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - } - function SA(d, a) { - var h - return ( - (a |= 0), - (St = h = (St - 32) | 0), - ut((d |= 0), h), - $s((d = (d + 104) | 0), h, 32, 0), - ut(d, a), - Ur(h, 32), - (St = (h + 32) | 0), - 0 - ) - } - function Qo(d, a, h) { - var g = 0 - if (h) - for ( - g = d; - (pn[0 | g] = rn[0 | a]), - (g = (g + 1) | 0), - (a = (a + 1) | 0), - (h = (h - 1) | 0); - - ); - return d - } - function j0(d, a, h, g, _e, on) { - var hn - return ( - (St = hn = (St - 32) | 0), - js(hn, _e, on, 0), - (d = a0(d, a, h, g, (_e + 16) | 0, 0, 0, hn)), - Ur(hn, 32), - (St = (hn + 32) | 0), - d - ) - } - function BA(d) { - for ( - d |= 0; - Ps(d, 32), - (pn[(d + 31) | 0] = 31 & rn[(d + 31) | 0]), - !cA(d) || Qs(d, 32); - - ); - } - function wA(d, a, h) { - var g - return ( - (a |= 0), - (h |= 0), - (St = g = (St + -64) | 0), - Ts((d |= 0), g), - (d = $u(a, g, 64, 0, h, 1)), - (St = (g - -64) | 0), - 0 | d - ) - } - function kA(d, a, h, g, _e) { - var on - return ( - (St = on = (St - 32) | 0), - js(on, g, _e, 0), - (d = Cl(d, a, h, (g + 16) | 0, on)), - Ur(on, 32), - (St = (on + 32) | 0), - d - ) - } - function qo(d, a, h) { - var g = 0 - if (h) - for ( - g = d; - (pn[0 | g] = a), (g = (g + 1) | 0), (h = (h - 1) | 0); - - ); - return d - } - function n0(d, a, h) { - return ( - (d |= 0), - (a |= 0), - (h |= 0) >>> 0 >= 256 && (ru(1349, 1262, 107, 1123), so()), - 0 | qu(d, a, 255 & h) - ) - } - function QA(d, a, h, g, _e, on, hn) { - return ( - 0 | - _c( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - } - function PA(d, a, h, g, _e, on, hn) { - return ( - 0 | - b0( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - } - function bu(d, a, h, g, _e, on, hn, j) { - return ( - ((0 | g) == 1) | (g >>> 0 > 1) && (ss(), so()), - 0 | Bs[c[8936]](d, a, h, g, _e, on, hn, j) - ) - } - function OA(d, a, h, g, _e, on, hn) { - return ( - 0 | - _d( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - } - function RA(d, a, h, g, _e, on, hn) { - return ( - 0 | - S0( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - } - function P0(d, a, h, g, _e, on) { - return ( - ((0 | g) == 1) | (g >>> 0 > 1) && (ss(), so()), - 0 | Bs[c[8936]](d, a, h, g, _e, 0, 0, on) - ) - } - function O0(d, a, h, g, _e, on) { - return ( - ((0 | g) == 1) | (g >>> 0 > 1) && (ss(), so()), - 0 | Bs[c[8937]](d, a, h, g, _e, 0, on) - ) - } - function DA(d, a, h, g, _e, on) { - return ( - xu( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - 0, - ), - 0 - ) - } - function Ft(d, a) { - var h = 0 - return ( - (((-1 >>> (h = 31 & a)) & d) << h) | - (((h = d) & (-1 << (d = (0 - a) & 31))) >>> d) - ) - } - function R0(d) { - var a - return ( - (a = c[d >> 2]) && fs(a), - (c[(d + 8) >> 2] = 0), - (c[d >> 2] = 0), - (c[(d + 4) >> 2] = 0), - 0 - ) - } - function D0(d, a, h, g, _e, on) { - return ( - 0 | - rA( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - ) - ) - } - function N0(d, a, h, g, _e, on) { - return ( - 0 | - Gl( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - ) - ) - } - function NA(d, a, h, g, _e, on) { - return ( - 0 | - j0( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - ) - ) - } - function t0(d, a, h, g, _e) { - return ( - ((0 | h) == 1) | (h >>> 0 > 1) && (ss(), so()), - 0 | Bs[c[8934]](d, a, h, g, _e) - ) - } - function yu(d, a, h, g, _e) { - return ( - ((0 | h) == 1) | (h >>> 0 > 1) && (ss(), so()), - 0 | Bs[c[8935]](d, a, h, g, _e) - ) - } - function MA(d, a, h, g, _e, on) { - ;((0 | g) == 1) | (g >>> 0 > 1) && (ss(), so()), - Bs[c[8937]](d, a, h, g, _e, 1, on) - } - function TA(d, a, h, g, _e) { - return ( - 0 | $u((d |= 0), (a |= 0), (h |= 0), (g |= 0), (_e |= 0), 0) - ) - } - function UA(d, a, h, g, _e) { - return 0 | GA((d |= 0), (a |= 0), (h |= 0), (g |= 0), (_e |= 0)) - } - function LA(d, a, h, g, _e) { - return 0 | L0((d |= 0), (a |= 0), (h |= 0), (g |= 0), (_e |= 0)) - } - function FA(d, a, h, g, _e) { - return 0 | kA((d |= 0), (a |= 0), (h |= 0), (g |= 0), (_e |= 0)) - } - function JA() { - var d - ;(St = d = (St - 16) | 0), - (pn[(d + 15) | 0] = 0), - Ws(35788, (d + 15) | 0, 0), - (St = (d + 16) | 0) - } - function r0(d, a, h, g) { - return Vu((d |= 0), (a |= 0), (h |= 0), (g |= 0), 20), 0 - } - function i0(d, a, h, g) { - return Vu((d |= 0), (a |= 0), (h |= 0), (g |= 0), 12), 0 - } - function o0(d, a, h, g) { - return Vu((d |= 0), (a |= 0), (h |= 0), (g |= 0), 8), 0 - } - function a0(d, a, h, g, _e, on, hn, j) { - return 0 | Bs[c[8933]](d, a, h, g, _e, on, hn, j) - } - function xA(d, a, h, g) { - return 0 | Sl((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - } - function HA(d, a, h, g) { - return 0 | Tu((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - } - function $A(d, a, h, g) { - return 0 | Fo((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - } - function Al(d, a, h, g) { - return 0 | ms((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - } - function Su(d, a, h, g) { - return 0 | Cu((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - } - function M0(d, a, h, g, _e, on) { - return 0 | Bs[c[8933]](d, a, h, g, _e, 0, 0, on) - } - function yl(d) { - return ( - (c[(d + 8) >> 2] = 0), - (c[d >> 2] = 0), - (c[(d + 4) >> 2] = 0), - 0 - ) - } - function s0(d, a, h) { - return 0 | EA((d |= 0), (a |= 0), (h |= 0)) - } - function _l(d, a, h) { - return 0 | iu((d |= 0), (a |= 0), (h |= 0)) - } - function Bu(d, a, h) { - return 0 | n0((d |= 0), (a |= 0), (h |= 0)) - } - function ss() { - var d - ;(d = c[9261]) && Bs[0 | d](), Zs(), so() - } - function T0(d, a) { - return (d |= 0), Ps((a |= 0), 32), 0 | U0(d, a) - } - function U0(d, a) { - return (d |= 0), (a |= 0), 0 | Bs[c[8931]](d, a) - } - function GA(d, a, h, g, _e) { - return 0 | Bs[c[8925]](d, a, h, g, _e) - } - function Cl(d, a, h, g, _e) { - return 0 | Bs[c[8932]](d, a, h, g, _e) - } - function Ks(d, a) { - return (d |= 0), (a |= 0), 0 | Bs[c[8927]](d, a) - } - function L0(d, a, h, g, _e) { - return 0 | Bs[c[8926]](d, a, h, g, _e) - } - function Ys(d, a) { - return (d |= 0), (a |= 0), 0 | Bs[c[8929]](d, a) - } - function Il(d, a, h, g, _e, on, hn) { - return Et(d, a, h, g, _e, on, hn) - } - function F0(d) { - return d ? (31 - Ms((d - 1) ^ d)) | 0 : 32 - } - function Fo(d, a, h, g) { - return 0 | Bs[c[8928]](d, a, h, g) - } - function qA(d, a) { - return 0 | oA((d |= 0), (a |= 0), 64) - } - function J0(d, a) { - return 0 | oA((d |= 0), (a |= 0), 32) - } - function VA(d, a, h) { - Cr((d |= 0), (a |= 0), (h |= 0)) - } - function El(d, a) { - return 0 | U0((d |= 0), (a |= 0)) - } - function KA(d, a) { - return 0 | T0((d |= 0), (a |= 0)) - } - function Sl(d, a, h, g) { - return ms(d, a, h, g), 0 - } - function Bl(d, a, h, g) { - return $s(d, a, h, g), 0 - } - function YA(d, a, h, g) { - return Ml(d, a, h, g, 1) - } - function WA(d, a, h, g) { - return Yl(d, a, h, g, 1) - } - function ZA(d, a, h, g) { - return Yl(d, a, h, g, 2) - } - function zA(d, a, h, g) { - return Ml(d, a, h, g, 2) - } - function Us(d, a, h, g) { - return go(d, a, h, g) - } - function XA(d) { - return hu((d |= 0)), 0 - } - function Ql() { - return -2147483648 - } - function Pl() { - return 1073741824 - } - function jA() { - return 268435456 - } - function _s(d) { - Ps((d |= 0), 32) - } - function _f() { - return 33554432 - } - function ep() { - return 67108864 - } - function np() { - return 16777216 - } - function Ur(d, a) { - qo(d, 0, a) - } - function Ol() { - return 8192 - } - function tp() { - return 1559 - } - function x0() { - return 208 - } - function rp() { - return 1321 - } - function ip() { - return 384 - } - function op() { - return 416 - } - function ap() { - return 256 - } - function Rl() { - return 128 - } - function bs() { - return 64 - } - function Go() { - return 16 - } - function io() { - return 32 - } - function sp() { - return 48 - } - function uu() { - return -17 - } - function nu() { - return 24 - } - function up() { - return 12 - } - function dp() { - return -65 - } - function Dl() { - return 4 - } - function u0() { - return 1 - } - function d0() { - return 3 - } - function Ss() { - return -1 - } - function Ju() { - return 2 - } - function du() { - return 0 - } - function au() { - return 8 - } - wo( - (Xr = rn), - 1024, - 'Li8wMTIzNDU2Nzg5QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5egBqcwByYW5kb21ieXRlcwBiNjRfcG9zIDw9IGI2NF9sZW4AY3J5cHRvX2dlbmVyaWNoYXNoX2JsYWtlMmJfZmluYWwAJGFyZ29uMmkAJGFyZ29uMmlkAHJhbmRvbWJ5dGVzL3JhbmRvbWJ5dGVzLmMAc29kaXVtL2NvZGVjcy5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9ibGFrZTJiLXJlZi5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9nZW5lcmljaGFzaF9ibGFrZTJiLmMAeDI1NTE5Ymxha2UyYgBidWZfbGVuIDw9IFNJWkVfTUFYAG91dGxlbiA8PSBVSU5UOF9NQVgAUy0+YnVmbGVuIDw9IEJMQUtFMkJfQkxPQ0tCWVRFUwAkYXJnb24yaSR2PQAkYXJnb24yaWQkdj0ALHQ9ACxwPQAkbT0AY3VydmUyNTUxOQBlZDI1NTE5ADEuMC4xOABobWFjc2hhNTEyMjU2AGN1cnZlMjU1MTl4c2Fsc2EyMHBvbHkxMzA1AHNvZGl1bV9iaW4yYmFzZTY0AHNpcGhhc2gyNABzaGE1MTIAeHNhbHNhMjAAJGFyZ29uMmkkACRhcmdvbjJpZCQAJDckAExpYnNvZGl1bURSRw==', - ), - wo( - Xr, - 1600, - 'tnhZ/4Vy0wC9bhX/DwpqACnAAQCY6Hn/vDyg/5lxzv8At+L+tA1I/wAAAAAAAAAAsKAO/tPJhv+eGI8Af2k1AGAMvQCn1/v/n0yA/mpl4f8e/AQAkgyu', - ), - wo( - Xr, - 1696, - 'WfGy/grlpv973Sr+HhTUAFKAAwAw0fMAd3lA/zLjnP8AbsUBZxuQ', - ), - wo( - Xr, - 1744, - 'hTuMAb3xJP/4JcMBYNw3ALdMPv/DQj0AMkykAeGkTP9MPaP/dT4fAFGRQP92QQ4AonPW/waKLgB85vT/CoqPADQawgC49EwAgY8pAb70E/97qnr/YoFEAHnVkwBWZR7/oWebAIxZQ//v5b4BQwu1AMbwif7uRbz/Q5fuABMqbP/lVXEBMkSH/xFqCQAyZwH/UAGoASOYHv8QqLkBOFno/2XS/AAp+kcAzKpP/w4u7/9QTe8AvdZL/xGN+QAmUEz/vlV1AFbkqgCc2NABw8+k/5ZCTP+v4RD/jVBiAUzb8gDGonIALtqYAJsr8f6boGj/M7ulAAIRrwBCVKAB9zoeACNBNf5F7L8ALYb1AaN73QAgbhT/NBelALrWRwDpsGAA8u82ATlZigBTAFT/iKBkAFyOeP5ofL4AtbE+//opVQCYgioBYPz2AJeXP/7vhT4AIDicAC2nvf+OhbMBg1bTALuzlv76qg7/0qNOACU0lwBjTRoA7pzV/9XA0QFJLlQAFEEpATbOTwDJg5L+qm8Y/7EhMv6rJsv/Tvd0ANHdmQCFgLIBOiwZAMknOwG9E/wAMeXSAXW7dQC1s7gBAHLbADBekwD1KTgAfQ3M/vStdwAs3SD+VOoUAPmgxgHsfur/L2Oo/qrimf9ms9gA4o16/3pCmf629YYA4+QZAdY56//YrTj/tefSAHeAnf+BX4j/bn4zAAKpt/8HgmL+RbBe/3QE4wHZ8pH/yq0fAWkBJ/8ur0UA5C86/9fgRf7POEX/EP6L/xfP1P/KFH7/X9Vg/wmwIQDIBc//8SqA/iMhwP/45cQBgRF4APtnl/8HNHD/jDhC/yji9f/ZRiX+rNYJ/0hDhgGSwNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/', - ), - wo(Xr, 2736, 'AQ=='), - wo( - Xr, - 2768, - 'JuiVj8KyJ7BFw/SJ8u+Y8NXfrAXTxjM5sTgCiG1T/AXHF2pwPU3YT7o8C3YNEGcPKiBT+iw5zMZOx/13kqwDeuz///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ=', - ), - wo( - Xr, - 2959, - 'EP1AXQCgaj8AOdNX/gzSugBYvHT+QdgBAP/IPQHYQpT/APtcACSy4f8AAAAAAAAAAIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+AwfW//EyTf9Vy8X/04f6/xkwZP+71bT+EVhpAFPRngEFc2IABK48/qs3bv/ZtRH/FLyqAJKcZv5X1q7/cnqbAeksqgB/CO8B1uzqAK8F2wAxaj3/BkLQ/wJqbv9R6hP/12vA/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41QYgFM2/IAxqJyAC7amACbK/H+m6Bo/7IJ/P5kbtQADgWnAOnvo/8cl50BZZIK//6eRv5H+eQAWB4yAEQ6oP+/GGgBgUKB/8AyVf8Is4r/JvrJAHNQoACD5nEAfViTAFpExwD9TJ4AHP92AHH6/gBCSy4A5torAOV4ugGURCsAiHzuAbtrxf9UNfb/M3T+/zO7pQACEa8AQlSgAfc6HgAjQTX+Rey/AC2G9QGje90AIG4U/zQXpQC61kcA6bBgAPLvNgE5WYoAUwBU/4igZABcjnj+aHy+ALWxPv/6KVUAmIIqAWD89gCXlz/+74U+ACA4nAAtp73/joWzAYNW0wC7s5b++qoO/0RxFf/eujv/QgfxAUUGSABWnGz+N6dZAG002/4NsBf/xCxq/++VR/+kjH3/n60BADMp5wCRPiEAim9dAblTRQCQcy4AYZcQ/xjkGgAx2eIAcUvq/sGZDP+2MGD/Dg0aAIDD+f5FwTsAhCVR/n1qPADW8KkBpONCANKjTgAlNJcAY00aAO6c1f/VwNEBSS5UABRBKQE2zk8AyYOS/qpvGP+xITL+qybL/073dADR3ZkAhYCyATosGQDJJzsBvRP8ADHl0gF1u3UAtbO4AQBy2wAwXpMA9Sk4AH0NzP70rXcALN0g/lTqFAD5oMYB7H7q/48+3QCBWdb/N4sF/kQUv/8OzLIBI8PZAC8zzgEm9qUAzhsG/p5XJADZNJL/fXvX/1U8H/+rDQcA2vVY/vwjPAA31qD/hWU4AOAgE/6TQOoAGpGiAXJ2fQD4/PoAZV7E/8aN4v4zKrYAhwwJ/m2s0v/F7MIB8UGaADCcL/+ZQzf/2qUi/kq0swDaQkcBWHpjANS12/9cKuf/7wCaAPVNt/9eUaoBEtXYAKtdRwA0XvgAEpeh/sXRQv+u9A/+ojC3ADE98P62XcMAx+QGAcgFEf+JLe3/bJQEAFpP7f8nP03/NVLPAY4Wdv9l6BIBXBpDAAXIWP8hqIr/leFIAALRG/8s9agB3O0R/x7Taf6N7t0AgFD1/m/+DgDeX74B3wnxAJJM1P9szWj/P3WZAJBFMAAj5G8AwCHB/3DWvv5zmJcAF2ZYADNK+ADix4/+zKJl/9BhvQH1aBIA5vYe/xeURQBuWDT+4rVZ/9AvWv5yoVD/IXT4ALOYV/9FkLEBWO4a/zogcQEBTUUAO3k0/5juUwA0CMEA5yfp/8ciigDeRK0AWzny/tzSf//AB/b+lyO7AMPspQBvXc4A1PeFAZqF0f+b5woAQE4mAHr5ZAEeE2H/Plv5AfiFTQDFP6j+dApSALjscf7Uy8L/PWT8/iQFyv93W5n/gU8dAGdnq/7t12//2DVFAO/wFwDCld3/JuHeAOj/tP52UoX/OdGxAYvohQCesC7+wnMuAFj35QEcZ78A3d6v/pXrLACX5Bn+2mlnAI5V0gCVgb7/1UFe/nWG4P9SxnUAnd3cAKNlJADFciUAaKym/gu2AABRSLz/YbwQ/0UGCgDHk5H/CAlzAUHWr//ZrdEAUH+mAPflBP6nt3z/WhzM/q878P8LKfgBbCgz/5Cxw/6W+n4AiltBAXg83v/1we8AHda9/4ACGQBQmqIATdxrAerNSv82pmf/dEgJAOReL/8eyBn/I9ZZ/z2wjP9T4qP/S4KsAIAmEQBfiZj/13yfAU9dAACUUp3+w4L7/yjKTP/7fuAAnWM+/s8H4f9gRMMAjLqd/4MT5/8qgP4ANNs9/mbLSACNBwv/uqTVAB96dwCF8pEA0Pzo/1vVtv+PBPr++ddKAKUebwGrCd8A5XsiAVyCGv9Nmy0Bw4sc/zvgTgCIEfcAbHkgAE/6vf9g4/z+JvE+AD6uff+bb13/CubOAWHFKP8AMTn+QfoNABL7lv/cbdL/Ba6m/iyBvQDrI5P/JfeN/0iNBP9na/8A91oEADUsKgACHvAABDs/AFhOJABxp7QAvkfB/8eepP86CKwATSEMAEE/AwCZTSH/rP5mAeTdBP9XHv4BkilW/4rM7/5sjRH/u/KHANLQfwBELQ7+SWA+AFE8GP+qBiT/A/kaACPVbQAWgTb/FSPh/+o9OP862QYAj3xYAOx+QgDRJrf/Iu4G/66RZgBfFtMAxA+Z/i5U6P91IpIB5/pK/xuGZAFcu8P/qsZwAHgcKgDRRkMAHVEfAB2oZAGpraAAayN1AD5gO/9RDEUBh+++/9z8EgCj3Dr/iYm8/1NmbQBgBkwA6t7S/7muzQE8ntX/DfHWAKyBjABdaPIAwJz7ACt1HgDhUZ4Af+jaAOIcywDpG5f/dSsF//IOL/8hFAYAifss/hsf9f+31n3+KHmVALqe1f9ZCOMARVgA/suH4QDJrssAk0e4ABJ5Kf5eBU4A4Nbw/iQFtAD7h+cBo4rUANL5dP5YgbsAEwgx/j4OkP+fTNMA1jNSAG115P5n38v/S/wPAZpH3P8XDVsBjahg/7W2hQD6MzcA6urU/q8/ngAn8DQBnr0k/9UoVQEgtPf/E2YaAVQYYf9FFd4AlIt6/9zV6wHoy/8AeTmTAOMHmgA1FpMBSAHhAFKGMP5TPJ3/kUipACJn7wDG6S8AdBME/7hqCf+3gVMAJLDmASJnSADbooYA9SqeACCVYP6lLJAAyu9I/teWBQAqQiQBhNevAFauVv8axZz/MeiH/me2UgD9gLABmbJ6APX6CgDsGLIAiWqEACgdKQAyHpj/fGkmAOa/SwCPK6oALIMU/ywNF//t/5sBn21k/3C1GP9o3GwAN9ODAGMM1f+Yl5H/7gWfAGGbCAAhbFEAAQNnAD5tIv/6m7QAIEfD/yZGkQGfX/UAReVlAYgc8ABP4BkATm55//iofAC7gPcAApPr/k8LhABGOgwBtQij/0+Jhf8lqgv/jfNV/7Dn1//MlqT/79cn/y5XnP4Io1j/rCLoAEIsZv8bNin+7GNX/yl7qQE0cisAdYYoAJuGGgDnz1v+I4Qm/xNmff4k44X/dgNx/x0NfACYYEoBWJLO/6e/3P6iElj/tmQXAB91NABRLmoBDAIHAEVQyQHR9qwADDCNAeDTWAB04p8AemKCAEHs6gHh4gn/z+J7AVnWOwBwh1gBWvTL/zELJgGBbLoAWXAPAWUuzP9/zC3+T//d/zNJEv9/KmX/8RXKAKDjBwBpMuwATzTF/2jK0AG0DxAAZcVO/2JNywApufEBI8F8ACObF//PNcAAC32jAfmeuf8EgzAAFV1v/z155wFFyCT/uTC5/2/uFf8nMhn/Y9ej/1fUHv+kkwX/gAYjAWzfbv/CTLIASmW0APMvMACuGSv/Uq39ATZywP8oN1sA12yw/ws4BwDg6UwA0WLK/vIZfQAswV3+ywixAIewEwBwR9X/zjuwAQRDGgAOj9X+KjfQ/zxDeADBFaMAY6RzAAoUdgCc1N7+oAfZ/3L1TAF1O3sAsMJW/tUPsABOzs/+1YE7AOn7FgFgN5j/7P8P/8VZVP9dlYUArqBxAOpjqf+YdFgAkKRT/18dxv8iLw//Y3iG/wXswQD5937/k7seADLmdf9s2dv/o1Gm/0gZqf6beU//HJtZ/gd+EQCTQSEBL+r9ABozEgBpU8f/o8TmAHH4pADi/toAvdHL/6T33v7/I6UABLzzAX+zRwAl7f7/ZLrwAAU5R/5nSEn/9BJR/uXShP/uBrT/C+Wu/+PdwAERMRwAo9fE/gl2BP8z8EcAcYFt/0zw5wC8sX8AfUcsARqv8wBeqRn+G+YdAA+LdwGoqrr/rMVM//xLvACJfMQASBZg/y2X+QHckWQAQMCf/3jv4gCBspIAAMB9AOuK6gC3nZIAU8fA/7isSP9J4YAATQb6/7pBQwBo9s8AvCCK/9oY8gBDilH+7YF5/xTPlgEpxxD/BhSAAJ92BQC1EI//3CYPABdAk/5JGg0AV+Q5Acx8gAArGN8A22PHABZLFP8TG34AnT7XAG4d5gCzp/8BNvy+AN3Mtv6znkH/UZ0DAMLanwCq3wAA4Asg/ybFYgCopCUAF1gHAaS6bgBgJIYA6vLlAPp5EwDy/nD/Ay9eAQnvBv9Rhpn+1v2o/0N84AD1X0oAHB4s/gFt3P+yWVkA/CRMABjGLv9MTW8AhuqI/ydeHQC5SOr/RkSH/+dmB/5N54wApy86AZRhdv8QG+EBps6P/26y1v+0g6IAj43hAQ3aTv9ymSEBYmjMAK9ydQGnzksAysRTATpAQwCKL28BxPeA/4ng4P6ecM8AmmT/AYYlawDGgE//f9Gb/6P+uf48DvMAH9tw/h3ZQQDIDXT+ezzE/+A7uP7yWcQAexBL/pUQzgBF/jAB53Tf/9GgQQHIUGIAJcK4/pQ/IgCL8EH/2ZCE/zgmLf7HeNIAbLGm/6DeBADcfnf+pWug/1Lc+AHxr4gAkI0X/6mKVACgiU7/4nZQ/zQbhP8/YIv/mPonALybDwDoM5b+KA/o//DlCf+Jrxv/S0lhAdrUCwCHBaIBa7nVAAL5a/8o8kYA28gZABmdDQBDUlD/xPkX/5EUlQAySJIAXkyUARj7QQAfwBcAuNTJ/3vpogH3rUgAolfb/n6GWQCfCwz+pmkdAEkb5AFxeLf/QqNtAdSPC/+f56gB/4BaADkOOv5ZNAr//QijAQCR0v8KgVUBLrUbAGeIoP5+vNH/IiNvANfbGP/UC9b+ZQV2AOjFhf/fp23/7VBW/0aLXgCewb8Bmw8z/w++cwBOh8//+QobAbV96QBfrA3+qtWh/yfsiv9fXVf/voBfAH0PzgCmlp8A4w+e/86eeP8qjYAAZbJ4AZxtgwDaDiz+96jO/9RwHABwEeT/WhAlAcXebAD+z1P/CVrz//P0rAAaWHP/zXR6AL/mwQC0ZAsB2SVg/5pOnADr6h//zrKy/5XA+wC2+ocA9hZpAHzBbf8C0pX/qRGqAABgbv91CQgBMnso/8G9YwAi46AAMFBG/tMz7AAtevX+LK4IAK0l6f+eQasAekXX/1pQAv+DamD+43KHAM0xd/6wPkD/UjMR//EU8/+CDQj+gNnz/6IbAf5advEA9sb2/zcQdv/In50AoxEBAIxreQBVoXb/JgCVAJwv7gAJpqYBS2K1/zJKGQBCDy8Ai+GfAEwDjv8O7rgAC881/7fAugGrIK7/v0zdAfeq2wAZrDL+2QnpAMt+RP+3XDAAf6e3AUEx/gAQP38B/hWq/zvgf/4WMD//G06C/ijDHQD6hHD+I8uQAGipqADP/R7/aCgm/l7kWADOEID/1Dd6/98W6gDfxX8A/bW1AZFmdgDsmST/1NlI/xQmGP6KPj4AmIwEAObcY/8BFdT/lMnnAPR7Cf4Aq9IAMzol/wH/Dv/0t5H+APKmABZKhAB52CkAX8Ny/oUYl/+c4uf/9wVN//aUc/7hXFH/3lD2/qp7Wf9Kx40AHRQI/4qIRv9dS1wA3ZMx/jR+4gDlfBcALgm1AM1ANAGD/hwAl57UAINATgDOGasAAOaLAL/9bv5n96cAQCgoASql8f87S+T+fPO9/8Rcsv+CjFb/jVk4AZPGBf/L+J7+kKKNAAus4gCCKhX/AaeP/5AkJP8wWKT+qKrcAGJH1gBb0E8An0zJAaYq1v9F/wD/BoB9/74BjACSU9r/1+5IAXp/NQC9dKX/VAhC/9YD0P/VboUAw6gsAZ7nRQCiQMj+WzpoALY6u/755IgAy4ZM/mPd6QBL/tb+UEWaAECY+P7siMr/nWmZ/pWvFAAWIxP/fHnpALr6xv6E5YsAiVCu/6V9RACQypT+6+/4AIe4dgBlXhH/ekhG/kWCkgB/3vgBRX92/x5S1/68ShP/5afC/nUZQv9B6jj+1RacAJc7Xf4tHBv/un6k/yAG7wB/cmMB2zQC/2Ngpv4+vn7/bN6oAUvirgDm4scAPHXa//z4FAHWvMwAH8KG/ntFwP+prST+N2JbAN8qZv6JAWYAnVoZAO96QP/8BukABzYU/1J0rgCHJTb/D7p9AONwr/9ktOH/Ku30//St4v74EiEAq2OW/0rrMv91UiD+aqjtAM9t0AHkCboAhzyp/rNcjwD0qmj/6y18/0ZjugB1ibcA4B/XACgJZAAaEF8BRNlXAAiXFP8aZDr/sKXLATR2RgAHIP7+9P71/6eQwv99cRf/sHm1AIhU0QCKBh7/WTAcACGbDv8Z8JoAjc1tAUZzPv8UKGv+iprH/17f4v+dqyYAo7EZ/i12A/8O3hcB0b5R/3Z76AEN1WX/ezd7/hv2pQAyY0z/jNYg/2FBQ/8YDBwArlZOAUD3YACgh0MAQjfz/5PMYP8aBiH/YjNTAZnV0P8CuDb/GdoLADFD9v4SlUj/DRlIACpP1gAqBCYBG4uQ/5W7FwASpIQA9VS4/njGaP9+2mAAOHXq/w0d1v5ELwr/p5qE/pgmxgBCsln/yC6r/w1jU//Su/3/qi0qAYrRfADWoo0ADOacAGYkcP4Dk0MANNd7/+mrNv9iiT4A99on/+fa7AD3v38Aw5JUAKWwXP8T1F7/EUrjAFgomQHGkwH/zkP1/vAD2v89jdX/YbdqAMPo6/5fVpoA0TDN/nbR8f/weN8B1R2fAKN/k/8N2l0AVRhE/kYUUP+9BYwBUmH+/2Njv/+EVIX/a9p0/3B6LgBpESAAwqA//0TeJwHY/VwAsWnN/5XJwwAq4Qv/KKJzAAkHUQCl2tsAtBYA/h2S/P+Sz+EBtIdgAB+jcACxC9v/hQzB/itOMgBBcXkBO9kG/25eGAFwrG8ABw9gACRVewBHlhX/0Em8AMALpwHV9SIACeZcAKKOJ//XWhsAYmFZAF5P0wBanfAAX9x+AWaw4gAkHuD+Ix9/AOfocwFVU4IA0kn1/y+Pcv9EQcUAO0g+/7eFrf5deXb/O7FR/+pFrf/NgLEA3PQzABr00QFJ3k3/owhg/paV0wCe/ssBNn+LAKHgOwAEbRb/3iot/9CSZv/sjrsAMs31/wpKWf4wT44A3kyC/x6mPwDsDA3/Mbj0ALtxZgDaZf0AmTm2/iCWKgAZxpIB7fE4AIxEBQBbpKz/TpG6/kM0zQDbz4EBbXMRADaPOgEV+Hj/s/8eAMHsQv8B/wf//cAw/xNF2QED1gD/QGWSAd99I//rSbP/+afiAOGvCgFhojoAanCrAVSsBf+FjLL/hvWOAGFaff+6y7n/300X/8BcagAPxnP/2Zj4AKuyeP/khjUAsDbBAfr7NQDVCmQBIsdqAJcf9P6s4Ff/Du0X//1VGv9/J3T/rGhkAPsORv/U0Ir//dP6ALAxpQAPTHv/Jdqg/1yHEAEKfnL/RgXg//f5jQBEFDwB8dK9/8PZuwGXA3EAl1yuAOc+sv/bt+EAFxch/821UAA5uPj/Q7QB/1p7Xf8nAKL/YPg0/1RCjAAif+T/wooHAaZuvAAVEZsBmr7G/9ZQO/8SB48ASB3iAcfZ+QDooUcBlb7JANmvX/5xk0P/io/H/3/MAQAdtlMBzuab/7rMPAAKfVX/6GAZ//9Z9//V/q8B6MFRABwrnP4MRQgAkxj4ABLGMQCGPCMAdvYS/zFY/v7kFbr/tkFwAdsWAf8WfjT/vTUx/3AZjwAmfzf/4mWj/tCFPf+JRa4BvnaR/zxi2//ZDfX/+ogKAFT+4gDJH30B8DP7/x+Dgv8CijL/19exAd8M7v/8lTj/fFtE/0h+qv53/2QAgofo/w5PsgD6g8UAisbQAHnYi/53EiT/HcF6ABAqLf/V8OsB5r6p/8Yj5P5urUgA1t3x/ziUhwDAdU7+jV3P/49BlQAVEmL/Xyz0AWq/TQD+VQj+1m6w/0mtE/6gxMf/7VqQAMGscf/Im4j+5FrdAIkxSgGk3df/0b0F/2nsN/8qH4EBwf/sAC7ZPACKWLv/4lLs/1FFl/+OvhABDYYIAH96MP9RQJwAq/OLAO0j9gB6j8H+1HqSAF8p/wFXhE0ABNQfABEfTgAnLa3+GI7Z/18JBv/jUwYAYjuC/j4eIQAIc9MBomGA/we4F/50HKj/+IqX/2L08AC6doIAcvjr/2mtyAGgfEf/XiSkAa9Bkv/u8ar+ysbFAORHiv4t9m3/wjSeAIW7sABT/Jr+Wb3d/6pJ/ACUOn0AJEQz/ipFsf+oTFb/JmTM/yY1IwCvE2EA4e79/1FRhwDSG//+60lrAAjPcwBSf4gAVGMV/s8TiABkpGUAUNBN/4TP7f8PAw//IaZuAJxfVf8luW8Blmoj/6aXTAByV4f/n8JAAAx6H//oB2X+rXdiAJpH3P6/OTX/qOig/+AgY//anKUAl5mjANkNlAHFcVkAlRyh/s8XHgBphOP/NuZe/4WtzP9ct53/WJD8/mYhWgCfYQMAtdqb//BydwBq1jX/pb5zAZhb4f9Yaiz/0D1xAJc0fAC/G5z/bjbsAQ4epv8nf88B5cccALzkvP5knesA9tq3AWsWwf/OoF8ATO+TAM+hdQAzpgL/NHUK/kk44/+YweEAhF6I/2W/0QAga+X/xiu0AWTSdgByQ5n/F1ga/1maXAHceIz/kHLP//xz+v8izkgAioV//wiyfAFXS2EAD+Vc/vBDg/92e+P+knho/5HV/wGBu0b/23c2AAETrQAtlpQB+FNIAMvpqQGOazgA9/kmAS3yUP8e6WcAYFJGABfJbwBRJx7/obdO/8LqIf9E44z+2M50AEYb6/9okE8ApOZd/taHnACau/L+vBSD/yRtrgCfcPEABW6VASSl2gCmHRMBsi5JAF0rIP74ve0AZpuNAMldw//xi/3/D29i/2xBo/6bT77/Sa7B/vYoMP9rWAv+ymFV//3MEv9x8kIAbqDC/tASugBRFTwAvGin/3ymYf7ShY4AOPKJ/ilvggBvlzoBb9WN/7es8f8mBsT/uQd7/y4L9gD1aXcBDwKh/wjOLf8Sykr/U3xzAdSNnQBTCNH+iw/o/6w2rf4y94QA1r3VAJC4aQDf/vgA/5Pw/xe8SAAHMzYAvBm0/ty0AP9ToBQAo73z/zrRwv9XSTwAahgxAPX53AAWracAdgvD/xN+7QBunyX/O1IvALS7VgC8lNABZCWF/wdwwQCBvJz/VGqB/4XhygAO7G//KBRlAKysMf4zNkr/+7m4/12b4P+0+eAB5rKSAEg5Nv6yPrgAd81IALnv/f89D9oAxEM4/+ogqwEu2+QA0Gzq/xQ/6P+lNccBheQF/zTNawBK7oz/lpzb/u+ssv/7vd/+II7T/9oPigHxxFAAHCRi/hbqxwA97dz/9jklAI4Rjv+dPhoAK+5f/gPZBv/VGfABJ9yu/5rNMP4TDcD/9CI2/owQmwDwtQX+m8E8AKaABP8kkTj/lvDbAHgzkQBSmSoBjOySAGtc+AG9CgMAP4jyANMnGAATyqEBrRu6/9LM7/4p0aL/tv6f/6x0NADDZ97+zUU7ADUWKQHaMMIAUNLyANK8zwC7oaH+2BEBAIjhcQD6uD8A3x5i/k2oogA7Na8AE8kK/4vgwgCTwZr/1L0M/gHIrv8yhXEBXrNaAK22hwBesXEAK1nX/4j8av97hlP+BfVC/1IxJwHcAuAAYYGxAE07WQA9HZsBy6vc/1xOiwCRIbX/qRiNATeWswCLPFD/2idhAAKTa/88+EgAreYvAQZTtv8QaaL+idRR/7S4hgEn3qT/3Wn7Ae9wfQA/B2EAP2jj/5Q6DABaPOD/VNT8AE/XqAD43ccBc3kBACSseAAgorv/OWsx/5MqFQBqxisBOUpXAH7LUf+Bh8MAjB+xAN2LwgAD3tcAg0TnALFWsv58l7QAuHwmAUajEQD5+7UBKjfjAOKhLAAX7G4AM5WOAV0F7ADat2r+QxhNACj10f/eeZkApTkeAFN9PABGJlIB5Qa8AG3enf83dj//zZe6AOMhlf/+sPYB47HjACJqo/6wK08Aal9OAbnxev+5Dj0AJAHKAA2yov/3C4QAoeZcAUEBuf/UMqUBjZJA/57y2gAVpH0A1Yt6AUNHVwDLnrIBl1wrAJhvBf8nA+//2f/6/7A/R/9K9U0B+q4S/yIx4//2Lvv/miMwAX2dPf9qJE7/YeyZAIi7eP9xhqv/E9XZ/the0f/8BT0AXgPKAAMat/9Avyv/HhcVAIGNTf9meAcBwkyMALyvNP8RUZQA6FY3AeEwrACGKir/7jIvAKkS/gAUk1f/DsPv/0X3FwDu5YD/sTFwAKhi+/95R/gA8wiR/vbjmf/bqbH++4ul/wyjuf+kKKv/mZ8b/vNtW//eGHABEtbnAGudtf7DkwD/wmNo/1mMvv+xQn7+arlCADHaHwD8rp4AvE/mAe4p4ADU6ggBiAu1AKZ1U/9Ew14ALoTJAPCYWACkOUX+oOAq/zvXQ/93w43/JLR5/s8vCP+u0t8AZcVE//9SjQH6iekAYVaFARBQRQCEg58AdF1kAC2NiwCYrJ3/WitbAEeZLgAnEHD/2Yhh/9zGGf6xNTEA3liG/4APPADPwKn/wHTR/2pO0wHI1bf/Bwx6/t7LPP8hbsf++2p1AOThBAF4Ogf/3cFU/nCFGwC9yMn/i4eWAOo3sP89MkEAmGyp/9xVAf9wh+MAohq6AM9guf70iGsAXZkyAcZhlwBuC1b/j3Wu/3PUyAAFyrcA7aQK/rnvPgDseBL+Yntj/6jJwv4u6tYAv4Ux/2OpdwC+uyMBcxUt//mDSABwBnv/1jG1/qbpIgBcxWb+/eTN/wM7yQEqYi4A2yUj/6nDJgBefMEBnCvfAF9Ihf54zr8AesXv/7G7T//+LgIB+qe+AFSBEwDLcab/+R+9/kidyv/QR0n/zxhIAAoQEgHSUUz/WNDA/37za//ujXj/x3nq/4kMO/8k3Hv/lLM8/vAMHQBCAGEBJB4m/3MBXf9gZ+f/xZ47AcCk8ADKyjn/GK4wAFlNmwEqTNcA9JfpABcwUQDvfzT+44Il//h0XQF8hHYArf7AAQbrU/9ur+cB+xy2AIH5Xf5UuIAATLU+AK+AugBkNYj+bR3iAN3pOgEUY0oAABagAIYNFQAJNDf/EVmMAK8iOwBUpXf/4OLq/wdIpv97c/8BEtb2APoHRwHZ3LkA1CNM/yZ9rwC9YdIAcu4s/ym8qf4tupoAUVwWAISgwQB50GL/DVEs/8ucUgBHOhX/0HK//jImkwCa2MMAZRkSADz61//phOv/Z6+OARAOXACNH27+7vEt/5nZ7wFhqC//+VUQARyvPv85/jYA3ud+AKYtdf4SvWD/5EwyAMj0XgDGmHgBRCJF/wxBoP5lE1oAp8V4/0Q2uf8p2rwAcagwAFhpvQEaUiD/uV2kAeTw7f9CtjUAq8Vc/2sJ6QHHeJD/TjEK/22qaf9aBB//HPRx/0o6CwA+3Pb/eZrI/pDSsv9+OYEBK/oO/2VvHAEvVvH/PUaW/zVJBf8eGp4A0RpWAIrtSgCkX7wAjjwd/qJ0+P+7r6AAlxIQANFvQf7Lhif/WGwx/4MaR//dG9f+aGld/x/sH/6HANP/j39uAdRJ5QDpQ6f+wwHQ/4QR3f8z2VoAQ+sy/9/SjwCzNYIB6WrGANmt3P9w5Rj/r5pd/kfL9v8wQoX/A4jm/xfdcf7rb9UAqnhf/vvdAgAtgp7+aV7Z//I0tP7VRC3/aCYcAPSeTAChyGD/zzUN/7tDlACqNvgAd6Ky/1MUCwAqKsABkp+j/7fobwBN5RX/RzWPABtMIgD2iC//2ye2/1zgyQETjg7/Rbbx/6N29QAJbWoBqrX3/04v7v9U0rD/1WuLACcmCwBIFZYASIJFAM1Nm/6OhRUAR2+s/uIqO/+zANcBIYDxAOr8DQG4TwgAbh5J//aNvQCqz9oBSppF/4r2Mf+bIGQAfUpp/1pVPf8j5bH/Pn3B/5lWvAFJeNQA0Xv2/ofRJv+XOiwBXEXW/w4MWP/8mab//c9w/zxOU//jfG4AtGD8/zV1If6k3FL/KQEb/yakpv+kY6n+PZBG/8CmEgBr+kIAxUEyAAGzEv//aAH/K5kj/1BvqABur6gAKWkt/9sOzf+k6Yz+KwF2AOlDwwCyUp//ild6/9TuWv+QI3z+GYykAPvXLP6FRmv/ZeNQ/lypNwDXKjEAcrRV/yHoGwGs1RkAPrB7/iCFGP/hvz4AXUaZALUqaAEWv+D/yMiM//nqJQCVOY0AwzjQ//6CRv8grfD/HdzHAG5kc/+E5fkA5Onf/yXY0f6ysdH/ty2l/uBhcgCJYaj/4d6sAKUNMQHS68z//AQc/kaglwDovjT+U/hd/z7XTQGvr7P/oDJCAHkw0AA/qdH/ANLIAOC7LAFJolIACbCP/xNMwf8dO6cBGCuaABy+vgCNvIEA6OvL/+oAbf82QZ8APFjo/3n9lv786YP/xm4pAVNNR//IFjv+av3y/xUMz//tQr0AWsbKAeGsfwA1FsoAOOaEAAFWtwBtvioA80SuAW3kmgDIsXoBI6C3/7EwVf9a2qn/+JhOAMr+bgAGNCsAjmJB/z+RFgBGal0A6IprAW6zPf/TgdoB8tFcACNa2QG2j2r/dGXZ/3L63f+tzAYAPJajAEmsLP/vblD/7UyZ/qGM+QCV6OUAhR8o/66kdwBxM9YAgeQC/kAi8wBr4/T/rmrI/1SZRgEyIxAA+krY/uy9Qv+Z+Q0A5rIE/90p7gB243n/XleM/v53XABJ7/b+dVeAABPTkf+xLvwA5Vv2AUWA9//KTTYBCAsJ/5lgpgDZ1q3/hsACAQDPAAC9rmsBjIZkAJ7B8wG2ZqsA65ozAI4Fe/88qFkB2Q5c/xPWBQHTp/4ALAbK/ngS7P8Pcbj/uN+LACixd/62e1r/sKWwAPdNwgAb6ngA5wDW/zsnHgB9Y5H/lkREAY3e+ACZe9L/bn+Y/+Uh1gGH3cUAiWECAAyPzP9RKbwAc0+C/14DhACYr7v/fI0K/37As/8LZ8YAlQYtANtVuwHmErL/SLaYAAPGuP+AcOABYaHmAP5jJv86n8UAl0LbADtFj/+5cPkAd4gv/3uChACoR1//cbAoAei5rQDPXXUBRJ1s/2YFk/4xYSEAWUFv/vceo/982d0BZvrYAMauS/45NxIA4wXsAeXVrQDJbdoBMenvAB43ngEZsmoAm2+8AV5+jADXH+4BTfAQANXyGQEmR6gAzbpd/jHTjP/bALT/hnalAKCThv9uuiP/xvMqAPOSdwCG66MBBPGH/8Euwf5ntE//4QS4/vJ2ggCSh7AB6m8eAEVC1f4pYHsAeV4q/7K/w/8ugioAdVQI/+kx1v7uem0ABkdZAezTewD0DTD+d5QOAHIcVv9L7Rn/keUQ/oFkNf+Glnj+qJ0yABdIaP/gMQ4A/3sW/5e5l/+qULgBhrYUAClkZQGZIRAATJpvAVbO6v/AoKT+pXtd/wHYpP5DEa//qQs7/54pPf9JvA7/wwaJ/xaTHf8UZwP/9oLj/3oogADiLxj+IyQgAJi6t/9FyhQAw4XDAN4z9wCpq14BtwCg/0DNEgGcUw//xTr5/vtZbv8yClj+MyvYAGLyxgH1l3EAq+zCAcUfx//lUSYBKTsUAP1o5gCYXQ7/9vKS/tap8P/wZmz+oKfsAJravACW6cr/GxP6AQJHhf+vDD8BkbfGAGh4c/+C+/cAEdSn/z57hP/3ZL0Am9+YAI/FIQCbOyz/ll3wAX8DV/9fR88Bp1UB/7yYdP8KFxcAicNdATZiYQDwAKj/lLx/AIZrlwBM/asAWoTAAJIWNgDgQjb+5rrl/ye2xACU+4L/QYNs/oABoACpMaf+x/6U//sGgwC7/oH/VVI+ALIXOv/+hAUApNUnAIb8kv4lNVH/m4ZSAM2n7v9eLbT/hCihAP5vcAE2S9kAs+bdAetev/8X8zABypHL/yd2Kv91jf0A/gDeACv7MgA2qeoBUETQAJTL8/6RB4cABv4AAPy5fwBiCIH/JiNI/9Mk3AEoGlkAqEDF/gPe7/8CU9f+tJ9pADpzwgC6dGr/5ffb/4F2wQDKrrcBpqFIAMlrk/7tiEoA6eZqAWlvqABA4B4BAeUDAGaXr//C7uT//vrUALvteQBD+2ABxR4LALdfzADNWYoAQN0lAf/fHv+yMNP/8cha/6fRYP85gt0ALnLI/z24QgA3thj+brYhAKu+6P9yXh8AEt0IAC/n/gD/cFMAdg/X/60ZKP7AwR//7hWS/6vBdv9l6jX+g9RwAFnAawEI0BsAtdkP/+eV6ACM7H4AkAnH/wxPtf6Ttsr/E222/zHU4QBKo8sAr+mUABpwMwDBwQn/D4f5AJbjggDMANsBGPLNAO7Qdf8W9HAAGuUiACVQvP8mLc7+8Frh/x0DL/8q4EwAuvOnACCED/8FM30Ai4cYAAbx2wCs5YX/9tYyAOcLz/+/flMBtKOq//U4GAGypNP/AxDKAWI5dv+Ng1n+ITMYAPOVW//9NA4AI6lD/jEeWP+zGyT/pYy3ADq9lwBYHwAAS6lCAEJlx/8Y2McBecQa/w5Py/7w4lH/XhwK/1PB8P/MwYP/Xg9WANoonQAzwdEAAPKxAGa59wCebXQAJodbAN+vlQDcQgH/VjzoABlgJf/heqIB17uo/56dLgA4q6IA6PBlAXoWCQAzCRX/NRnu/9ke6P59qZQADehmAJQJJQClYY0B5IMpAN4P8//+EhEABjztAWoDcQA7hL0AXHAeAGnQ1QAwVLP/u3nn/hvYbf+i3Wv+Se/D//ofOf+Vh1n/uRdzAQOjnf8ScPoAGTm7/6FgpAAvEPMADI37/kPquP8pEqEArwZg/6CsNP4YsLf/xsFVAXx5if+XMnL/3Ms8/8/vBQEAJmv/N+5e/kaYXgDV3E0BeBFF/1Wkvv/L6lEAJjEl/j2QfACJTjH+qPcwAF+k/ABpqYcA/eSGAECmSwBRSRT/z9IKAOpqlv9eIlr//p85/tyFYwCLk7T+GBe5ACk5Hv+9YUwAQbvf/+CsJf8iPl8B55DwAE1qfv5AmFsAHWKbAOL7Nf/q0wX/kMve/6Sw3f4F5xgAs3rNACQBhv99Rpf+YeT8AKyBF/4wWtH/luBSAVSGHgDxxC4AZ3Hq/y5lef4ofPr/hy3y/gn5qP+MbIP/j6OrADKtx/9Y3o7/yF+eAI7Ao/8HdYcAb3wWAOwMQf5EJkH/467+APT1JgDwMtD/oT/6ADzR7wB6IxMADiHm/gKfcQBqFH//5M1gAInSrv601JD/WWKaASJYiwCnonABQW7FAPElqQBCOIP/CslT/oX9u/+xcC3+xPsAAMT6l//u6Nb/ltHNABzwdgBHTFMB7GNbACr6gwFgEkD/dt4jAHHWy/96d7j/QhMkAMxA+QCSWYsAhj6HAWjpZQC8VBoAMfmBANDWS//Pgk3/c6/rAKsCif+vkboBN/WH/5pWtQFkOvb/bcc8/1LMhv/XMeYBjOXA/97B+/9RiA//s5Wi/xcnHf8HX0v+v1HeAPFRWv9rMcn/9NOdAN6Mlf9B2zj+vfZa/7I7nQEw2zQAYiLXABwRu/+vqRgAXE+h/+zIwgGTj+oA5eEHAcWoDgDrMzUB/XiuAMUGqP/KdasAoxXOAHJVWv8PKQr/whNjAEE32P6iknQAMs7U/0CSHf+enoMBZKWC/6wXgf99NQn/D8ESARoxC/+1rskBh8kO/2QTlQDbYk8AKmOP/mAAMP/F+VP+aJVP/+tuiP5SgCz/QSkk/ljTCgC7ebsAYobHAKu8s/7SC+7/QnuC/jTqPQAwcRf+BlZ4/3ey9QBXgckA8o3RAMpyVQCUFqEAZ8MwABkxq/+KQ4IAtkl6/pQYggDT5ZoAIJueAFRpPQCxwgn/pllWATZTuwD5KHX/bQPX/zWSLAE/L7MAwtgD/g5UiACIsQ3/SPO6/3URff/TOtP/XU/fAFpY9f+L0W//Rt4vAAr2T//G2bIA4+ELAU5+s/8+K34AZ5QjAIEIpf718JQAPTOOAFHQhgAPiXP/03fs/5/1+P8Choj/5os6AaCk/gByVY3/Maa2/5BGVAFVtgcALjVdAAmmof83orL/Lbi8AJIcLP6pWjEAeLLxAQ57f/8H8ccBvUIy/8aPZf6984f/jRgY/kthVwB2+5oB7TacAKuSz/+DxPb/iEBxAZfoOQDw2nMAMT0b/0CBSQH8qRv/KIQKAVrJwf/8efABus4pACvGYQCRZLcAzNhQ/qyWQQD55cT+aHtJ/01oYP6CtAgAaHs5ANzK5f9m+dMAVg7o/7ZO0QDv4aQAag0g/3hJEf+GQ+kAU/61ALfscAEwQIP/8djz/0HB4gDO8WT+ZIam/+3KxQA3DVEAIHxm/yjksQB2tR8B56CG/3e7ygAAjjz/gCa9/6bJlgDPeBoBNrisAAzyzP6FQuYAIiYfAbhwUAAgM6X+v/M3ADpJkv6bp83/ZGiY/8X+z/+tE/cA7grKAO+X8gBeOyf/8B1m/wpcmv/lVNv/oYFQANBazAHw267/nmaRATWyTP80bKgBU95rANMkbQB2OjgACB0WAO2gxwCq0Z0AiUcvAI9WIADG8gIA1DCIAVysugDml2kBYL/lAIpQv/7w2IL/YisG/qjEMQD9ElsBkEl5AD2SJwE/aBj/uKVw/n7rYgBQ1WL/ezxX/1KM9QHfeK3/D8aGAc487wDn6lz/Ie4T/6VxjgGwdyYAoCum/u9baQBrPcIBGQREAA+LMwCkhGr/InQu/qhfxQCJ1BcASJw6AIlwRf6WaZr/7MmdABfUmv+IUuP+4jvd/1+VwABRdjT/ISvXAQ6TS/9ZnHn+DhJPAJPQiwGX2j7/nFgIAdK4Yv8Ur3v/ZlPlANxBdAGW+gT/XI7c/yL3Qv/M4bP+l1GXAEco7P+KPz4ABk/w/7e5tQB2MhsAP+PAAHtjOgEy4Jv/EeHf/tzgTf8OLHsBjYCvAPjUyACWO7f/k2EdAJbMtQD9JUcAkVV3AJrIugACgPn/Uxh8AA5XjwCoM/UBfJfn/9DwxQF8vrkAMDr2ABTp6AB9EmL/Df4f//Wxgv9sjiMAq33y/owMIv+loaIAzs1lAPcZIgFkkTkAJ0Y5AHbMy//yAKIApfQeAMZ04gCAb5n/jDa2ATx6D/+bOjkBNjLGAKvTHf9riqf/rWvH/22hwQBZSPL/znNZ//r+jv6xyl7/UVkyAAdpQv8Z/v/+y0AX/0/ebP8n+UsA8XwyAO+YhQDd8WkAk5diANWhef7yMYkA6SX5/iq3GwC4d+b/2SCj/9D75AGJPoP/T0AJ/l4wcQARijL+wf8WAPcSxQFDN2gAEM1f/zAlQgA3nD8BQFJK/8g1R/7vQ30AGuDeAN+JXf8e4Mr/CdyEAMYm6wFmjVYAPCtRAYgcGgDpJAj+z/KUAKSiPwAzLuD/cjBP/wmv4gDeA8H/L6Do//9daf4OKuYAGopSAdAr9AAbJyb/YtB//0CVtv8F+tEAuzwc/jEZ2v+pdM3/dxJ4AJx0k/+ENW3/DQrKAG5TpwCd24n/BgOC/zKnHv88ny//gYCd/l4DvQADpkQAU9/XAJZawgEPqEEA41Mz/82rQv82uzwBmGYt/3ea4QDw94gAZMWy/4tH3//MUhABKc4q/5zA3f/Ye/T/2tq5/7u67//8rKD/wzQWAJCutf67ZHP/006w/xsHwQCT1Wj/WskK/1B7QgEWIboAAQdj/h7OCgDl6gUANR7SAIoI3P5HN6cASOFWAXa+vAD+wWUBq/ms/16et/5dAmz/sF1M/0ljT/9KQIH+9i5BAGPxf/72l2b/LDXQ/jtm6gCar6T/WPIgAG8mAQD/tr7/c7AP/qk8gQB67fEAWkw/AD5KeP96w24AdwSyAN7y0gCCIS7+nCgpAKeScAExo2//ebDrAEzPDv8DGcYBKevVAFUk1gExXG3/yBge/qjswwCRJ3wB7MOVAFokuP9DVar/JiMa/oN8RP/vmyP/NsmkAMQWdf8xD80AGOAdAX5xkAB1FbYAy5+NAN+HTQCw5rD/vuXX/2Mltf8zFYr/Gb1Z/zEwpf6YLfcAqmzeAFDKBQAbRWf+zBaB/7T8Pv7SAVv/km7+/9uiHADf/NUBOwghAM4Q9ACB0zAAa6DQAHA70QBtTdj+IhW5//ZjOP+zixP/uR0y/1RZEwBK+mL/4SrI/8DZzf/SEKcAY4RfASvmOQD+C8v/Y7w//3fB+/5QaTYA6LW9AbdFcP/Qq6X/L220/3tTpQCSojT/mgsE/5fjWv+SiWH+Pekp/14qN/9spOwAmET+AAqMg/8Kak/+856JAEOyQv6xe8b/Dz4iAMVYKv+VX7H/mADG/5X+cf/hWqP/fdn3ABIR4ACAQnj+wBkJ/zLdzQAx1EYA6f+kAALRCQDdNNv+rOD0/144zgHyswL/H1ukAeYuiv+95twAOS89/28LnQCxW5gAHOZiAGFXfgDGWZH/p09rAPlNoAEd6eb/lhVW/jwLwQCXJST+uZbz/+TUUwGsl7QAyambAPQ86gCO6wQBQ9o8AMBxSwF088//QaybAFEenP9QSCH+Eudt/45rFf59GoT/sBA7/5bJOgDOqckA0HniACisDv+WPV7/ODmc/408kf8tbJX/7pGb/9FVH/7ADNIAY2Jd/pgQlwDhudwAjess/6CsFf5HGh//DUBd/hw4xgCxPvgBtgjxAKZllP9OUYX/gd7XAbypgf/oB2EAMXA8/9nl+wB3bIoAJxN7/oMx6wCEVJEAguaU/xlKuwAF9Tb/udvxARLC5P/xymYAaXHKAJvrTwAVCbL/nAHvAMiUPQBz99L/Md2HADq9CAEjLgkAUUEF/zSeuf99dC7/SowN/9JcrP6TF0cA2eD9/nNstP+ROjD+27EY/5z/PAGak/IA/YZXADVL5QAww97/H68y/5zSeP/QI97/EvizAQIKZf+dwvj/nsxl/2j+xf9PPgQAsqxlAWCS+/9BCpwAAoml/3QE5wDy1wEAEyMd/yuhTwA7lfYB+0KwAMghA/9Qbo7/w6ERAeQ4Qv97L5H+hASkAEOurAAZ/XIAV2FXAfrcVABgW8j/JX07ABNBdgChNPH/7awG/7C///8BQYL+377mAGX95/+SI20A+h1NATEAEwB7WpsBFlYg/9rVQQBvXX8APF2p/wh/tgARug7+/Yn2/9UZMP5M7gD/+FxG/2PgiwC4Cf8BB6TQAM2DxgFX1scAgtZfAN2V3gAXJqv+xW7VACtzjP7XsXYAYDRCAXWe7QAOQLb/Lj+u/55fvv/hzbH/KwWO/6xj1P/0u5MAHTOZ/+R0GP4eZc8AE/aW/4bnBQB9huIBTUFiAOyCIf8Fbj4ARWx//wdxFgCRFFP+wqHn/4O1PADZ0bH/5ZTU/gODuAB1sbsBHA4f/7BmUAAyVJf/fR82/xWdhf8Ts4sB4OgaACJ1qv+n/Kv/SY3O/oH6IwBIT+wB3OUU/ynKrf9jTO7/xhbg/2zGw/8kjWAB7J47/2pkVwBu4gIA4+reAJpdd/9KcKT/Q1sC/xWRIf9m1on/r+Zn/qP2pgBd93T+p+Ac/9wCOQGrzlQAe+QR/xt4dwB3C5MBtC/h/2jIuf6lAnIATU7UAC2asf8YxHn+Up22AFoQvgEMk8UAX++Y/wvrRwBWknf/rIbWADyDxACh4YEAH4J4/l/IMwBp59L/OgmU/yuo3f987Y4AxtMy/i71ZwCk+FQAmEbQ/7R1sQBGT7kA80ogAJWczwDFxKEB9TXvAA9d9v6L8DH/xFgk/6ImewCAyJ0Brkxn/62pIv7YAav/cjMRAIjkwgBuljj+avafABO4T/+WTfD/m1CiAAA1qf8dl1YARF4QAFwHbv5idZX/+U3m//0KjADWfFz+I3brAFkwOQEWNaYAuJA9/7P/wgDW+D3+O272AHkVUf6mA+QAakAa/0Xohv/y3DX+LtxVAHGV9/9hs2f/vn8LAIfRtgBfNIEBqpDO/3rIzP+oZJIAPJCV/kY8KAB6NLH/9tNl/67tCAAHM3gAEx+tAH7vnP+PvcsAxIBY/+mF4v8efa3/yWwyAHtkO//+owMB3ZS1/9aIOf7etIn/z1g2/xwh+/9D1jQB0tBkAFGqXgCRKDUA4G/n/iMc9P/ix8P+7hHmANnZpP6pnd0A2i6iAcfPo/9sc6IBDmC7/3Y8TAC4n5gA0edH/iqkuv+6mTP+3au2/6KOrQDrL8EAB4sQAV+kQP8Q3aYA28UQAIQdLP9kRXX/POtY/ihRrQBHvj3/u1idAOcLFwDtdaQA4ajf/5pydP+jmPIBGCCqAH1icf6oE0wAEZ3c/ps0BQATb6H/R1r8/61u8AAKxnn//f/w/0J70gDdwtf+eaMR/+EHYwC+MbYAcwmFAegaiv/VRIQALHd6/7NiMwCVWmoARzLm/wqZdv+xRhkApVfNADeK6gDuHmEAcZvPAGKZfwAia9v+dXKs/0y0//7yObP/3SKs/jiiMf9TA///cd29/7wZ5P4QWFn/RxzG/hYRlf/zef7/a8pj/wnODgHcL5kAa4knAWExwv+VM8X+ujoL/2sr6AHIBg7/tYVB/t3kq/97PucB4+qz/yK91P70u/kAvg1QAYJZAQDfha0ACd7G/0J/SgCn2F3/m6jGAUKRAABEZi4BrFqaANiAS/+gKDMAnhEbAXzwMQDsyrD/l3zA/ybBvgBftj0Ao5N8//+lM/8cKBH+12BOAFaR2v4fJMr/VgkFAG8pyP/tbGEAOT4sAHW4DwEt8XQAmAHc/52lvAD6D4MBPCx9/0Hc+/9LMrgANVqA/+dQwv+IgX8BFRK7/y06of9HkyIArvkL/iONHQDvRLH/c246AO6+sQFX9ab/vjH3/5JTuP+tDif/ktdoAI7feACVyJv/1M+RARC12QCtIFf//yO1AHffoQHI317/Rga6/8BDVf8yqZgAkBp7/zjzs/4URIgAJ4y8/v3QBf/Ic4cBK6zl/5xouwCX+6cANIcXAJeZSACTxWv+lJ4F/+6PzgB+mYn/WJjF/gdEpwD8n6X/7042/xg/N/8m3l4A7bcM/87M0gATJ/b+HkrnAIdsHQGzcwAAdXZ0AYQG/P+RgaEBaUONAFIl4v/u4uT/zNaB/qJ7ZP+5eeoALWznAEIIOP+EiIAArOBC/q+dvADm3+L+8ttFALgOdwFSojgAcnsUAKJnVf8x72P+nIfXAG//p/4nxNYAkCZPAfmofQCbYZz/FzTb/5YWkAAslaX/KH+3AMRN6f92gdL/qofm/9Z3xgDp8CMA/TQH/3VmMP8VzJr/s4ix/xcCAwGVgln//BGfAUY8GgCQaxEAtL48/zi2O/9uRzb/xhKB/5XgV//fFZj/iha2//qczQDsLdD/T5TyAWVG0QBnTq4AZZCs/5iI7QG/wogAcVB9AZgEjQCbljX/xHT1AO9ySf4TUhH/fH3q/yg0vwAq0p7/m4SlALIFKgFAXCj/JFVN/7LkdgCJQmD+c+JCAG7wRf6Xb1AAp67s/+Nsa/+88kH/t1H/ADnOtf8vIrX/1fCeAUdLXwCcKBj/ZtJRAKvH5P+aIikA469LABXvwwCK5V8BTMAxAHV7VwHj4YIAfT4//wLGqwD+JA3+kbrOAJT/9P8jAKYAHpbbAVzk1ABcxjz+PoXI/8kpOwB97m3/tKPuAYx6UgAJFlj/xZ0v/5leOQBYHrYAVKFVALKSfACmpgf/FdDfAJy28gCbebkAU5yu/poQdv+6U+gB3zp5/x0XWAAjfX//qgWV/qQMgv+bxB0AoWCIAAcjHQGiJfsAAy7y/wDZvAA5ruIBzukCADm7iP57vQn/yXV//7okzADnGdgAUE5pABOGgf+Uy0QAjVF9/vilyP/WkIcAlzem/ybrWwAVLpoA3/6W/yOZtP99sB0BK2Ie/9h65v/poAwAObkM/vBxB/8FCRD+GltsAG3GywAIkygAgYbk/3y6KP9yYoT+poQXAGNFLAAJ8u7/uDU7AISBZv80IPP+k9/I/3tTs/6HkMn/jSU4AZc84/9aSZwBy6y7AFCXL/9eief/JL87/+HRtf9K19X+Bnaz/5k2wQEyAOcAaJ1IAYzjmv+24hD+YOFc/3MUqv4G+k4A+Eut/zVZBv8AtHYASK0BAEAIzgGuhd8AuT6F/9YLYgDFH9AAq6f0/xbntQGW2rkA96lhAaWL9/8veJUBZ/gzADxFHP4Zs8QAfAfa/jprUQC46Zz//EokAHa8QwCNXzX/3l6l/i49NQDOO3P/L+z6/0oFIAGBmu7/aiDiAHm7Pf8DpvH+Q6qs/x3Ysv8XyfwA/W7zAMh9OQBtwGD/NHPuACZ58//JOCEAwnaCAEtgGf+qHub+Jz/9ACQt+v/7Ae8AoNRcAS3R7QDzIVf+7VTJ/9QSnf7UY3//2WIQ/ous7wCoyYL/j8Gp/+6XwQHXaCkA7z2l/gID8gAWy7H+scwWAJWB1f4fCyn/AJ95/qAZcv+iUMgAnZcLAJqGTgHYNvwAMGeFAGncxQD9qE3+NbMXABh58AH/LmD/azyH/mLN+f8/+Xf/eDvT/3K0N/5bVe0AldRNAThJMQBWxpYAXdGgAEXNtv/0WisAFCSwAHp03QAzpycB5wE//w3FhgAD0SL/hzvKAKdkTgAv30wAuTw+ALKmewGEDKH/Pa4rAMNFkAB/L78BIixOADnqNAH/Fij/9l6SAFPkgAA8TuD/AGDS/5mv7ACfFUkAtHPE/oPhagD/p4YAnwhw/3hEwv+wxMb/djCo/12pAQBwyGYBShj+ABONBP6OPj8Ag7O7/02cm/93VqQAqtCS/9CFmv+Umzr/onjo/vzVmwDxDSoAXjKDALOqcACMU5f/N3dUAYwj7/+ZLUMB7K8nADaXZ/+eKkH/xO+H/lY1ywCVYS/+2CMR/0YDRgFnJFr/KBqtALgwDQCj29n/UQYB/92qbP7p0F0AZMn5/lYkI//Rmh4B48n7/wK9p/5kOQMADYApAMVkSwCWzOv/ka47AHj4lf9VN+EActI1/sfMdwAO90oBP/uBAENolwGHglAAT1k3/3Xmnf8ZYI8A1ZEFAEXxeAGV81//cioUAINIAgCaNRT/ST5tAMRmmAApDMz/eiYLAfoKkQDPfZQA9vTe/ykgVQFw1X4AovlWAUfGf/9RCRUBYicE/8xHLQFLb4kA6jvnACAwX//MH3IBHcS1/zPxp/5dbY4AaJAtAOsMtf80cKQATP7K/64OogA965P/K0C5/ul92QDzWKf+SjEIAJzMQgB81nsAJt12AZJw7AByYrEAl1nHAFfFcAC5laEALGClAPizFP+829j+KD4NAPOOjQDl487/rMoj/3Ww4f9SbiYBKvUO/xRTYQAxqwoA8nd4ABnoPQDU8JP/BHM4/5ER7/7KEfv/+RL1/2N17wC4BLP/9u0z/yXvif+mcKb/Ubwh/7n6jv82u60A0HDJAPYr5AFouFj/1DTE/zN1bP/+dZsALlsP/1cOkP9X48wAUxpTAZ9M4wCfG9UBGJdsAHWQs/6J0VIAJp8KAHOFyQDftpwBbsRd/zk86QAFp2n/msWkAGAiuv+ThSUB3GO+AAGnVP8UkasAwsX7/l9Ohf/8+PP/4V2D/7uGxP/YmaoAFHae/owBdgBWng8BLdMp/5MBZP5xdEz/039sAWcPMADBEGYBRTNf/2uAnQCJq+kAWnyQAWqhtgCvTOwByI2s/6M6aADptDT/8P0O/6Jx/v8m74r+NC6mAPFlIf6DupwAb9A+/3xeoP8frP4AcK44/7xjG/9DivsAfTqAAZyYrv+yDPf//FSeAFLFDv6syFP/JScuAWrPpwAYvSIAg7KQAM7VBACh4tIASDNp/2Etu/9OuN//sB37AE+gVv90JbIAUk3VAVJUjf/iZdQBr1jH//Ve9wGsdm3/prm+AIO1eABX/l3/hvBJ/yD1j/+Lomf/s2IS/tnMcACT33j/NQrzAKaMlgB9UMj/Dm3b/1vaAf/8/C/+bZx0/3MxfwHMV9P/lMrZ/xpV+f8O9YYBTFmp//It5gA7Yqz/ckmE/k6bMf+eflQAMa8r/xC2VP+dZyMAaMFt/0PdmgDJrAH+CKJYAKUBHf99m+X/HprcAWfvXADcAW3/ysYBAF4CjgEkNiwA6+Ke/6r71v+5TQkAYUryANujlf/wI3b/33JY/sDHAwBqJRj/yaF2/2FZYwHgOmf/ZceT/t48YwDqGTsBNIcbAGYDW/6o2OsA5eiIAGg8gQAuqO4AJ79DAEujLwCPYWL/ONioAajp/P8jbxb/XFQrABrIVwFb/ZgAyjhGAI4ITQBQCq8B/MdMABZuUv+BAcIAC4A9AVcOkf/93r4BD0iuAFWjVv46Yyz/LRi8/hrNDwAT5dL++EPDAGNHuACaxyX/l/N5/yYzS//JVYL+LEH6ADmT8/6SKzv/WRw1ACFUGP+zMxL+vUZTAAucswFihncAnm9vAHeaSf/IP4z+LQ0N/5rAAv5RSCoALqC5/ixwBgCS15UBGrBoAEQcVwHsMpn/s4D6/s7Bv/+mXIn+NSjvANIBzP6orSMAjfMtASQybf8P8sL/4596/7Cvyv5GOUgAKN84ANCiOv+3Yl0AD28MAB4ITP+Ef/b/LfJnAEW1D/8K0R4AA7N5APHo2gF7x1j/AtLKAbyCUf9eZdABZyQtAEzBGAFfGvH/paK7ACRyjADKQgX/JTiTAJgL8wF/Vej/+ofUAbmxcQBa3Ev/RfiSADJvMgBcFlAA9CRz/qNkUv8ZwQYBfz0kAP1DHv5B7Kr/oRHX/j+vjAA3fwQAT3DpAG2gKACPUwf/QRru/9mpjP9OXr3/AJO+/5NHuv5qTX//6Z3pAYdX7f/QDewBm20k/7Rk2gC0oxIAvm4JARE/e/+ziLT/pXt7/5C8Uf5H8Gz/GXAL/+PaM/+nMur/ck9s/x8Tc/+38GMA41eP/0jZ+P9mqV8BgZWVAO6FDAHjzCMA0HMaAWYI6gBwWI8BkPkOAPCerP5kcHcAwo2Z/ig4U/95sC4AKjVM/56/mgBb0VwArQ0QAQVI4v/M/pUAULjPAGQJev52Zav//MsA/qDPNgA4SPkBOIwN/wpAa/5bZTT/4bX4AYv/hADmkREA6TgXAHcB8f/VqZf/Y2MJ/rkPv/+tZ20Brg37/7JYB/4bO0T/CiEC//hhOwAaHpIBsJMKAF95zwG8WBgAuV7+/nM3yQAYMkYAeDUGAI5CkgDk4vn/aMDeAa1E2wCiuCT/j2aJ/50LFwB9LWIA613h/jhwoP9GdPMBmfk3/4EnEQHxUPQAV0UVAV7kSf9OQkH/wuPnAD2SV/+tmxf/cHTb/tgmC/+DuoUAXtS7AGQvWwDM/q//3hLX/q1EbP/j5E//Jt3VAKPjlv4fvhIAoLMLAQpaXv/crlgAo9Pl/8eINACCX93/jLzn/otxgP91q+z+MdwU/zsUq//kbbwAFOEg/sMQrgDj/ogBhydpAJZNzv/S7uIAN9SE/u85fACqwl3/+RD3/xiXPv8KlwoAT4uy/3jyygAa29UAPn0j/5ACbP/mIVP/US3YAeA+EQDW2X0AYpmZ/7Owav6DXYr/bT4k/7J5IP94/EYA3PglAMxYZwGA3Pv/7OMHAWoxxv88OGsAY3LuANzMXgFJuwEAWZoiAE7Zpf8Ow/n/Ceb9/82H9QAa/Af/VM0bAYYCcAAlniAA51vt/7+qzP+YB94AbcAxAMGmkv/oE7X/aY40/2cQGwH9yKUAw9kE/zS9kP97m6D+V4I2/054Pf8OOCkAGSl9/1eo9QDWpUYA1KkG/9vTwv5IXaT/xSFn/yuOjQCD4awA9GkcAERE4QCIVA3/gjko/otNOABUljUANl+dAJANsf5fc7oAdRd2//Sm8f8LuocAsmrL/2HaXQAr/S0ApJgEAIt27wBgARj+65nT/6huFP8y77AAcinoAMH6NQD+oG/+iHop/2FsQwDXmBf/jNHUACq9owDKKjL/amq9/75E2f/pOnUA5dzzAcUDBAAleDb+BJyG/yQ9q/6liGT/1OgOAFquCgDYxkH/DANAAHRxc//4ZwgA530S/6AcxQAeuCMB30n5/3sULv6HOCX/rQ3lAXehIv/1PUkAzX1wAIlohgDZ9h7/7Y6PAEGfZv9spL4A23Wt/yIleP7IRVAAH3za/koboP+6msf/R8f8AGhRnwERyCcA0z3AARruWwCU2QwAO1vV/wtRt/+B5nr/csuRAXe0Qv9IirQA4JVqAHdSaP/QjCsAYgm2/81lhv8SZSYAX8Wm/8vxkwA+0JH/hfb7AAKpDgAN97gAjgf+ACTIF/9Yzd8AW4E0/xW6HgCP5NIB9+r4/+ZFH/6wuof/7s00AYtPKwARsNn+IPNDAPJv6QAsIwn/43JRAQRHDP8mab8AB3Uy/1FPEAA/REH/nSRu/03xA//iLfsBjhnOAHh70QEc/u7/BYB+/1ve1/+iD78AVvBJAIe5Uf4s8aMA1NvS/3CimwDPZXYAqEg4/8QFNABIrPL/fhad/5JgO/+ieZj+jBBfAMP+yP5SlqIAdyuR/sysTv+m4J8AaBPt//V+0P/iO9UAddnFAJhI7QDcHxf+Dlrn/7zUQAE8Zfb/VRhWAAGxbQCSUyABS7bAAHfx4AC57Rv/uGVSAeslTf/9hhMA6PZ6ADxqswDDCwwAbULrAX1xOwA9KKQAr2jwAAIvu/8yDI0Awou1/4f6aABhXN7/2ZXJ/8vxdv9Pl0MAeo7a/5X17wCKKsj+UCVh/3xwp/8kilf/gh2T//FXTv/MYRMBsdEW//fjf/5jd1P/1BnGARCzswCRTaz+WZkO/9q9pwBr6Tv/IyHz/ixwcP+hf08BzK8KACgViv5odOQAx1+J/4W+qP+SpeoBt2MnALfcNv7/3oUAott5/j/vBgDhZjb/+xL2AAQigQGHJIMAzjI7AQ9htwCr2If/ZZgr/5b7WwAmkV8AIswm/rKMU/8ZgfP/TJAlAGokGv52kKz/RLrl/2uh1f8uo0T/lar9ALsRDwDaoKX/qyP2AWANEwCly3UA1mvA//R7sQFkA2gAsvJh//tMgv/TTSoB+k9G/z/0UAFpZfYAPYg6Ae5b1QAOO2L/p1RNABGELv45r8X/uT64AExAzwCsr9D+r0olAIob0/6UfcIACllRAKjLZf8r1dEB6/U2AB4j4v8JfkYA4n1e/px1FP85+HAB5jBA/6RcpgHg1ub/JHiPADcIK//7AfUBamKlAEprav41BDb/WrKWAQN4e//0BVkBcvo9//6ZUgFNDxEAOe5aAV/f5gDsNC/+Z5Sk/3nPJAESELn/SxRKALsLZQAuMIH/Fu/S/03sgf9vTcz/PUhh/8fZ+/8q18wAhZHJ/znmkgHrZMYAkkkj/mzGFP+2T9L/UmeIAPZssAAiETz/E0py/qiqTv+d7xT/lSmoADp5HABPs4b/53mH/67RYv/zer4Aq6bNANR0MAAdbEL/ot62AQ53FQDVJ/n//t/k/7elxgCFvjAAfNBt/3evVf8J0XkBMKu9/8NHhgGI2zP/tluN/jGfSAAjdvX/cLrj/zuJHwCJLKMAcmc8/gjVlgCiCnH/wmhIANyDdP+yT1wAy/rV/l3Bvf+C/yL+1LyXAIgRFP8UZVP/1M6mAOXuSf+XSgP/qFfXAJu8hf+mgUkA8E+F/7LTUf/LSKP+wailAA6kx/4e/8wAQUhbAaZKZv/IKgD/wnHj/0IX0ADl2GT/GO8aAArpPv97CrIBGiSu/3fbxwEto74AEKgqAKY5xv8cGhoAfqXnAPtsZP895Xn/OnaKAEzPEQANInD+WRCoACXQaf8jydf/KGpl/gbvcgAoZ+L+9n9u/z+nOgCE8I4ABZ5Y/4FJnv9eWZIA5jaSAAgtrQBPqQEAc7r3AFRAgwBD4P3/z71AAJocUQEtuDb/V9Tg/wBgSf+BIesBNEJQ//uum/8EsyUA6qRd/l2v/QDGRVf/4GouAGMd0gA+vHL/LOoIAKmv9/8XbYn/5bYnAMClXv71ZdkAv1hgAMReY/9q7gv+NX7zAF4BZf8ukwIAyXx8/40M2gANpp0BMPvt/5v6fP9qlJL/tg3KABw9pwDZmAj+3IIt/8jm/wE3QVf/Xb9h/nL7DgAgaVwBGs+NABjPDf4VMjD/upR0/9Mr4QAlIqL+pNIq/0QXYP+21gj/9XWJ/0LDMgBLDFP+UIykAAmlJAHkbuMA8RFaARk01AAG3wz/i/M5AAxxSwH2t7//1b9F/+YPjgABw8T/iqsv/0A/agEQqdb/z644AVhJhf+2hYwAsQ4Z/5O4Nf8K46H/eNj0/0lN6QCd7osBO0HpAEb72AEpuJn/IMtwAJKT/QBXZW0BLFKF//SWNf9emOj/O10n/1iT3P9OUQ0BIC/8/6ATcv9dayf/dhDTAbl30f/j23/+WGns/6JuF/8kpm7/W+zd/0LqdABvE/T+CukaACC3Bv4Cv/IA2pw1/ik8Rv+o7G8Aebl+/+6Oz/83fjQA3IHQ/lDMpP9DF5D+2ihs/3/KpADLIQP/Ap4AACVgvP/AMUoAbQQAAG+nCv5b2of/y0Kt/5bC4gDJ/Qb/rmZ5AM2/bgA1wgQAUSgt/iNmj/8MbMb/EBvo//xHugGwbnIAjgN1AXFNjgATnMUBXC/8ADXoFgE2EusALiO9/+zUgQACYND+yO7H/zuvpP+SK+cAwtk0/wPfDACKNrL+VevPAOjPIgAxNDL/pnFZ/wot2P8+rRwAb6X2AHZzW/+AVDwAp5DLAFcN8wAWHuQBsXGS/4Gq5v78mYH/keErAEbnBf96aX7+VvaU/24lmv7RA1sARJE+AOQQpf833fn+stJbAFOS4v5FkroAXdJo/hAZrQDnuiYAvXqM//sNcP9pbl0A+0iqAMAX3/8YA8oB4V3kAJmTx/5tqhYA+GX2/7J8DP+y/mb+NwRBAH3WtAC3YJMALXUX/oS/+QCPsMv+iLc2/5LqsQCSZVb/LHuPASHRmADAWin+Uw99/9WsUgDXqZAAEA0iACDRZP9UEvkBxRHs/9m65gAxoLD/b3Zh/+1o6wBPO1z+RfkL/yOsSgETdkQA3nyl/7RCI/9WrvYAK0pv/36QVv/k6lsA8tUY/kUs6//ctCMACPgH/2YvXP/wzWb/cearAR+5yf/C9kb/ehG7AIZGx/+VA5b/dT9nAEFoe//UNhMBBo1YAFOG8/+INWcAqRu0ALExGABvNqcAwz3X/x8BbAE8KkYAuQOi/8KVKP/2fyb+vncm/z13CAFgodv/KsvdAbHypP/1nwoAdMQAAAVdzf6Af7MAfe32/5Wi2f9XJRT+jO7AAAkJwQBhAeIAHSYKAACIP//lSNL+JoZc/07a0AFoJFT/DAXB//KvPf+/qS4Bs5OT/3G+i/59rB8AA0v8/tckDwDBGxgB/0WV/26BdgDLXfkAiolA/iZGBgCZdN4AoUp7AMFjT/92O17/PQwrAZKxnQAuk78AEP8mAAszHwE8OmL/b8JNAZpb9ACMKJABrQr7AMvRMv5sgk4A5LRaAK4H+gAfrjwAKaseAHRjUv92wYv/u63G/tpvOAC5e9gA+Z40ADS0Xf/JCVv/OC2m/oSby/866G4ANNNZ//0AogEJV7cAkYgsAV569QBVvKsBk1zGAAAIaAAeX64A3eY0Aff36/+JrjX/IxXM/0fj1gHoUsIACzDj/6pJuP/G+/z+LHAiAINlg/9IqLsAhId9/4poYf/uuKj/82hU/4fY4v+LkO0AvImWAVA4jP9Wqaf/wk4Z/9wRtP8RDcEAdYnU/43glwAx9K8AwWOv/xNjmgH/QT7/nNI3//L0A//6DpUAnljZ/53Phv776BwALpz7/6s4uP/vM+oAjoqD/xn+8wEKycIAP2FLANLvogDAyB8BddbzABhH3v42KOj/TLdv/pAOV//WT4j/2MTUAIQbjP6DBf0AfGwT/xzXSwBM3jf+6bY/AESrv/40b97/CmlN/1Cq6wCPGFj/Led5AJSB4AE99lQA/S7b/+9MIQAxlBL+5iVFAEOGFv6Om14AH53T/tUqHv8E5Pf+/LAN/ycAH/7x9P//qi0K/v3e+QDecoQA/y8G/7SjswFUXpf/WdFS/uU0qf/V7AAB1jjk/4d3l/9wycEAU6A1/gaXQgASohEA6WFbAIMFTgG1eDX/dV8//+11uQC/foj/kHfpALc5YQEvybv/p6V3AS1kfgAVYgb+kZZf/3g2mADRYmgAj28e/riU+QDr2C4A+MqU/zlfFgDy4aMA6ffo/0erE/9n9DH/VGdd/0R59AFS4A0AKU8r//nOp//XNBX+wCAW//dvPABlSib/FltU/h0cDf/G59f+9JrIAN+J7QDThA4AX0DO/xE+9//pg3kBXRdNAM3MNP5RvYgAtNuKAY8SXgDMK4z+vK/bAG9ij/+XP6L/0zJH/hOSNQCSLVP+slLu/xCFVP/ixl3/yWEU/3h2I/9yMuf/ouWc/9MaDAByJ3P/ztSGAMXZoP90gV7+x9fb/0vf+QH9dLX/6Ndo/+SC9v+5dVYADgUIAO8dPQHtV4X/fZKJ/syo3wAuqPUAmmkWANzUof9rRRj/idq1//FUxv+CetP/jQiZ/76xdgBgWbIA/xAw/npgaf91Nuj/In5p/8xDpgDoNIr/05MMABk2BwAsD9f+M+wtAL5EgQFqk+EAHF0t/uyND/8RPaEA3HPAAOyRGP5vqKkA4Do//3+kvABS6ksB4J6GANFEbgHZptkARuGmAbvBj/8QB1j/Cs2MAHXAnAEROCYAG3xsAavXN/9f/dQAm4eo//aymf6aREoA6D1g/mmEOwAhTMcBvbCC/wloGf5Lxmb/6QFwAGzcFP9y5kYAjMKF/zmepP6SBlD/qcRhAVW3ggBGnt4BO+3q/2AZGv/or2H/C3n4/lgjwgDbtPz+SgjjAMPjSQG4bqH/MemkAYA1LwBSDnn/wb46ADCudf+EFyAAKAqGARYzGf/wC7D/bjmSAHWP7wGdZXb/NlRMAM24Ev8vBEj/TnBV/8EyQgFdEDT/CGmGAAxtSP86nPsAkCPMACygdf4ya8IAAUSl/29uogCeUyj+TNbqADrYzf+rYJP/KONyAbDj8QBG+bcBiFSL/zx69/6PCXX/sa6J/kn3jwDsuX7/Phn3/y1AOP+h9AYAIjk4AWnKUwCAk9AABmcK/0qKQf9hUGT/1q4h/zKGSv9ul4L+b1SsAFTHS/74O3D/CNiyAQm3XwDuGwj+qs3cAMPlhwBiTO3/4lsaAVLbJ//hvscB2ch5/1GzCP+MQc4Ass9X/vr8Lv9oWW4B/b2e/5DWnv+g9Tb/NbdcARXIwv+SIXEB0QH/AOtqK/+nNOgAneXdADMeGQD63RsBQZNX/097xABBxN//TCwRAVXxRADKt/n/QdTU/wkhmgFHO1AAr8I7/41ICQBkoPQA5tA4ADsZS/5QwsIAEgPI/qCfcwCEj/cBb105/zrtCwGG3of/eqNsAXsrvv/7vc7+ULZI/9D24AERPAkAoc8mAI1tWwDYD9P/iE5uAGKjaP8VUHn/rbK3AX+PBABoPFL+1hAN/2DuIQGelOb/f4E+/zP/0v8+jez+nTfg/3In9ADAvPr/5Ew1AGJUUf+tyz3+kzI3/8zrvwA0xfQAWCvT/hu/dwC855oAQlGhAFzBoAH643gAezfiALgRSACFqAr+Foec/ykZZ/8wyjoAupVR/7yG7wDrtb3+2Yu8/0owUgAu2uUAvf37ADLlDP/Tjb8BgPQZ/6nnev5WL73/hLcX/yWylv8zif0AyE4fABZpMgCCPAAAhKNb/hfnuwDAT+8AnWak/8BSFAEYtWf/8AnqAAF7pP+F6QD/yvLyADy69QDxEMf/4HSe/r99W//gVs8AeSXn/+MJxv8Pme//eejZ/ktwUgBfDDn+M9Zp/5TcYQHHYiQAnNEM/grUNADZtDf+1Kro/9gUVP+d+ocAnWN//gHOKQCVJEYBNsTJ/1d0AP7rq5YAG6PqAMqHtADQXwD+e5xdALc+SwCJ67YAzOH//9aL0v8Ccwj/HQxvADScAQD9Ffv/JaUf/gyC0wBqEjX+KmOaAA7ZPf7YC1z/yMVw/pMmxwAk/Hj+a6lNAAF7n//PS2YAo6/EACwB8AB4urD+DWJM/+188f/okrz/yGDgAMwfKQDQyA0AFeFg/6+cxAD30H4APrj0/gKrUQBVc54ANkAt/xOKcgCHR80A4y+TAdrnQgD90RwA9A+t/wYPdv4QltD/uRYy/1Zwz/9LcdcBP5Ir/wThE/7jFz7/Dv/W/i0Izf9XxZf+0lLX//X49/+A+EYA4fdXAFp4RgDV9VwADYXiAC+1BQFco2n/Bh6F/uiyPf/mlRj/EjGeAORkPf508/v/TUtcAVHbk/9Mo/7+jdX2AOglmP5hLGQAySUyAdT0OQCuq7f/+UpwAKacHgDe3WH/811J/vtlZP/Y2V3//oq7/46+NP87y7H/yF40AHNynv+lmGgBfmPi/3ad9AFryBAAwVrlAHkGWACcIF3+ffHT/w7tnf+lmhX/uOAW//oYmP9xTR8A96sX/+2xzP80iZH/wrZyAODqlQAKb2cByYEEAO6OTgA0Bij/btWl/jzP/QA+10UAYGEA/zEtygB4eRb/64swAcYtIv+2MhsBg9Jb/y42gACve2n/xo1O/kP07//1Nmf+Tiby/wJc+f77rlf/iz+QABhsG/8iZhIBIhaYAELldv4yj2MAkKmVAXYemACyCHkBCJ8SAFpl5v+BHXcARCQLAei3NwAX/2D/oSnB/z+L3gAPs/MA/2QP/1I1hwCJOZUBY/Cq/xbm5P4xtFL/PVIrAG712QDHfT0ALv00AI3F2wDTn8EAN3lp/rcUgQCpd6r/y7KL/4cotv+sDcr/QbKUAAjPKwB6NX8BSqEwAOPWgP5WC/P/ZFYHAfVEhv89KxUBmFRe/748+v7vduj/1oglAXFMa/9daGQBkM4X/26WmgHkZ7kA2jEy/odNi/+5AU4AAKGU/2Ed6f/PlJX/oKgAAFuAq/8GHBP+C2/3ACe7lv+K6JUAdT5E/z/YvP/r6iD+HTmg/xkM8QGpPL8AIION/+2fe/9exV7+dP4D/1yzYf55YVz/qnAOABWV+AD44wMAUGBtAEvASgEMWuL/oWpEAdByf/9yKv/+ShpK//ezlv55jDwAk0bI/9Yoof+hvMn/jUGH//Jz/AA+L8oAtJX//oI37QClEbr/CqnCAJxt2v9wjHv/aIDf/rGObP95Jdv/gE0S/29sFwFbwEsArvUW/wTsPv8rQJkB463+AO16hAF/Wbr/jlKA/vxUrgBas7EB89ZX/2c8ov/Qgg7/C4KLAM6B2/9e2Z3/7+bm/3Rzn/6ka18AM9oCAdh9xv+MyoD+C19E/zcJXf6umQb/zKxgAEWgbgDVJjH+G1DVAHZ9cgBGRkP/D45J/4N6uf/zFDL+gu0oANKfjAHFl0H/VJlCAMN+WgAQ7uwBdrtm/wMYhf+7ReYAOMVcAdVFXv9QiuUBzgfmAN5v5gFb6Xf/CVkHAQJiAQCUSoX/M/a0/+SxcAE6vWz/wsvt/hXRwwCTCiMBVp3iAB+ji/44B0v/Plp0ALU8qQCKotT+UacfAM1acP8hcOMAU5d1AbHgSf+ukNn/5sxP/xZN6P9yTuoA4Dl+/gkxjQDyk6UBaLaM/6eEDAF7RH8A4VcnAftsCADGwY8BeYfP/6wWRgAyRHT/Za8o//hp6QCmywcAbsXaANf+Gv6o4v0AH49gAAtnKQC3gcv+ZPdK/9V+hADSkywAx+obAZQvtQCbW54BNmmv/wJOkf5mml8AgM9//jR87P+CVEcA3fPTAJiqzwDeascAt1Re/lzIOP+KtnMBjmCSAIWI5ABhEpYAN/tCAIxmBADKZ5cAHhP4/zO4zwDKxlkAN8Xh/qlf+f9CQUT/vOp+AKbfZAFw7/QAkBfCADontgD0LBj+r0Sz/5h2mgGwooIA2XLM/q1+Tv8h3h7/JAJb/wKP8wAJ69cAA6uXARjX9f+oL6T+8ZLPAEWBtABE83EAkDVI/vstDgAXbqgARERP/25GX/6uW5D/Ic5f/4kpB/8Tu5n+I/9w/wmRuf4ynSUAC3AxAWYIvv/q86kBPFUXAEonvQB0Me8ArdXSAC6hbP+fliUAxHi5/yJiBv+Zwz7/YeZH/2Y9TAAa1Oz/pGEQAMY7kgCjF8QAOBg9ALViwQD7k+X/Yr0Y/y42zv/qUvYAt2cmAW0+zAAK8OAAkhZ1/46aeABF1CMA0GN2AXn/A/9IBsIAdRHF/30PFwCaT5kA1l7F/7k3k/8+/k7+f1KZAG5mP/9sUqH/abvUAVCKJwA8/13/SAy6ANL7HwG+p5D/5CwT/oBD6ADW+Wv+iJFW/4QusAC9u+P/0BaMANnTdAAyUbr+i/ofAB5AxgGHm2QAoM4X/rui0/8QvD8A/tAxAFVUvwDxwPL/mX6RAeqiov/mYdgBQId+AL6U3wE0ACv/HCe9AUCI7gCvxLkAYuLV/3+f9AHirzwAoOmOAbTzz/9FmFkBH2UVAJAZpP6Lv9EAWxl5ACCTBQAnunv/P3Pm/12nxv+P1dz/s5wT/xlCegDWoNn/Ai0+/2pPkv4ziWP/V2Tn/6+R6P9luAH/rgl9AFIloQEkco3/MN6O//W6mgAFrt3+P3Kb/4c3oAFQH4cAfvqzAezaLQAUHJEBEJNJAPm9hAERvcD/347G/0gUD//6Ne3+DwsSABvTcf7Vazj/rpOS/2B+MAAXwW0BJaJeAMed+f4YgLv/zTGy/l2kKv8rd+sBWLft/9rSAf9r/ioA5gpj/6IA4gDb7VsAgbLLANAyX/7O0F//979Z/m7qT/+lPfMAFHpw//b2uf5nBHsA6WPmAdtb/P/H3hb/s/Xp/9Px6gBv+sD/VVSIAGU6Mv+DrZz+dy0z/3bpEP7yWtYAXp/bAQMD6v9iTFz+UDbmAAXk5/41GN//cTh2ARSEAf+r0uwAOPGe/7pzE/8I5a4AMCwAAXJypv8GSeL/zVn0AInjSwH4rTgASnj2/ncDC/9ReMb/iHpi/5Lx3QFtwk7/3/FGAdbIqf9hvi//L2eu/2NcSP526bT/wSPp/hrlIP/e/MYAzCtH/8dUrACGZr4Ab+5h/uYo5gDjzUD+yAzhAKYZ3gBxRTP/j58YAKe4SgAd4HT+ntDpAMF0fv/UC4X/FjqMAcwkM//oHisA60a1/0A4kv6pElT/4gEN/8gysP801fX+qNFhAL9HNwAiTpwA6JA6AblKvQC6jpX+QEV//6HLk/+wl78AiOfL/qO2iQChfvv+6SBCAETPQgAeHCUAXXJgAf5c9/8sq0UAyncL/7x2MgH/U4j/R1IaAEbjAgAg63kBtSmaAEeG5f7K/yQAKZgFAJo/Sf8itnwAed2W/xrM1QEprFcAWp2S/22CFABHa8j/82a9AAHDkf4uWHUACM7jAL9u/f9tgBT+hlUz/4mxcAHYIhb/gxDQ/3mVqgByExcBplAf/3HwegDos/oARG60/tKqdwDfbKT/z0/p/xvl4v7RYlH/T0QHAIO5ZACqHaL/EaJr/zkVCwFkyLX/f0GmAaWGzABop6gAAaRPAJKHOwFGMoD/ZncN/uMGhwCijrP/oGTeABvg2wGeXcP/6o2JABAYff/uzi//YRFi/3RuDP9gc00AW+Po//j+T/9c5Qb+WMaLAM5LgQD6Tc7/jfR7AYpF3AAglwYBg6cW/+1Ep/7HvZYAo6uK/zO8Bv9fHYn+lOKzALVr0P+GH1L/l2Ut/4HK4QDgSJMAMIqX/8NAzv7t2p4Aah2J/v296f9nDxH/wmH/ALItqf7G4ZsAJzB1/4dqcwBhJrUAli9B/1OC5f72JoEAXO+a/ltjfwChbyH/7tny/4O5w//Vv57/KZbaAISpgwBZVPwBq0aA/6P4y/4BMrT/fExVAftvUABjQu//mu22/91+hf5KzGP/QZN3/2M4p/9P+JX/dJvk/+0rDv5FiQv/FvrxAVt6j//N+fMA1Bo8/zC2sAEwF7//y3mY/i1K1f8+WhL+9aPm/7lqdP9TI58ADCEC/1AiPgAQV67/rWVVAMokUf6gRcz/QOG7ADrOXgBWkC8A5Vb1AD+RvgElBScAbfsaAImT6gCieZH/kHTO/8Xouf+3voz/SQz+/4sU8v+qWu//YUK7//W1h/7eiDQA9QUz/ssvTgCYZdgASRd9AP5gIQHr0kn/K9FYAQeBbQB6aOT+qvLLAPLMh//KHOn/QQZ/AJ+QRwBkjF8ATpYNAPtrdgG2On3/ASZs/4290f8Im30BcaNb/3lPvv+G72z/TC/4AKPk7wARbwoAWJVL/9fr7wCnnxj/L5ds/2vRvADp52P+HMqU/64jiv9uGET/AkW1AGtmUgBm7QcAXCTt/92iUwE3ygb/h+qH/xj63gBBXqj+9fjS/6dsyf7/oW8AzQj+AIgNdABksIT/K9d+/7GFgv+eT5QAQ+AlAQzOFf8+Im4B7Wiv/1CEb/+OrkgAVOW0/mmzjABA+A//6YoQAPVDe/7aedT/P1/aAdWFif+PtlL/MBwLAPRyjQHRr0z/nbWW/7rlA/+knW8B572LAHfKvv/aakD/ROs//mAarP+7LwsB1xL7/1FUWQBEOoAAXnEFAVyB0P9hD1P+CRy8AO8JpAA8zZgAwKNi/7gSPADZtosAbTt4/wTA+wCp0vD/Jaxc/pTT9f+zQTQA/Q1zALmuzgFyvJX/7VqtACvHwP9YbHEANCNMAEIZlP/dBAf/l/Fy/77R6ABiMscAl5bV/xJKJAE1KAcAE4dB/xqsRQCu7VUAY18pAAM4EAAnoLH/yGra/rlEVP9buj3+Q4+N/w30pv9jcsYAx26j/8ESugB87/YBbkQWAALrLgHUPGsAaSppAQ7mmAAHBYMAjWia/9UDBgCD5KL/s2QcAed7Vf/ODt8B/WDmACaYlQFiiXoA1s0D/+KYs/8GhYkAnkWM/3Gimv+086z/G71z/48u3P/VhuH/fh1FALwriQHyRgkAWsz//+eqkwAXOBP+OH2d/zCz2v9Ptv3/JtS/ASnrfABglxwAh5S+AM35J/40YIj/1CyI/0PRg//8ghf/24AU/8aBdgBsZQsAsgWSAT4HZP+17F7+HBqkAEwWcP94Zk8AysDlAciw1wApQPT/zrhOAKctPwGgIwD/OwyO/8wJkP/bXuUBehtwAL1pbf9A0Er/+383AQLixgAsTNEAl5hN/9IXLgHJq0X/LNPnAL4l4P/1xD7/qbXe/yLTEQB38cX/5SOYARVFKP+y4qEAlLPBANvC/gEozjP/51z6AUOZqgAVlPEAqkVS/3kS5/9ccgMAuD7mAOHJV/+SYKL/tfLcAK273QHiPqr/OH7ZAXUN4/+zLO8AnY2b/5DdUwDr0dAAKhGlAftRhQB89cn+YdMY/1PWpgCaJAn/+C9/AFrbjP+h2Sb+1JM//0JUlAHPAwEA5oZZAX9Oev/gmwH/UohKALKc0P+6GTH/3gPSAeWWvv9VojT/KVSN/0l7VP5dEZYAdxMcASAW1/8cF8z/jvE0/+Q0fQAdTM8A16f6/q+k5gA3z2kBbbv1/6Es3AEpZYD/pxBeAF3Wa/92SAD+UD3q/3mvfQCLqfsAYSeT/vrEMf+ls27+30a7/xaOfQGas4r/drAqAQqumQCcXGYAqA2h/48QIAD6xbT/y6MsAVcgJAChmRT/e/wPABnjUAA8WI4AERbJAZrNTf8nPy8ACHqNAIAXtv7MJxP/BHAd/xckjP/S6nT+NTI//3mraP+g214AV1IO/ucqBQCli3/+Vk4mAII8Qv7LHi3/LsR6Afk1ov+Ij2f+19JyAOcHoP6pmCr/by32AI6Dh/+DR8z/JOILAAAc8v/hitX/9y7Y/vUDtwBs/EoBzhow/8029v/TxiT/eSMyADTYyv8mi4H+8kmUAEPnjf8qL8wATnQZAQThv/8Gk+QAOlixAHql5f/8U8n/4KdgAbG4nv/yabMB+MbwAIVCywH+JC8ALRhz/3c+/gDE4br+e42sABpVKf/ib7cA1eeXAAQ7B//uipQAQpMh/x/2jf/RjXT/aHAfAFihrABT1+b+L2+XAC0mNAGELcwAioBt/ul1hv/zvq3+8ezwAFJ/7P4o36H/brbh/3uu7wCH8pEBM9GaAJYDc/7ZpPz/N5xFAVRe///oSS0BFBPU/2DFO/5g+yEAJsdJAUCs9/91dDj/5BESAD6KZwH25aT/9HbJ/lYgn/9tIokBVdO6AArBwf56wrEAeu5m/6LaqwBs2aEBnqoiALAvmwG15Av/CJwAABBLXQDOYv8BOpojAAzzuP5DdUL/5uV7AMkqbgCG5LL+umx2/zoTmv9SqT7/co9zAe/EMv+tMMH/kwJU/5aGk/5f6EkAbeM0/r+JCgAozB7+TDRh/6TrfgD+fLwASrYVAXkdI//xHgf+VdrW/wdUlv5RG3X/oJ+Y/kIY3f/jCjwBjYdmANC9lgF1s1wAhBaI/3jHHAAVgU/+tglBANqjqQD2k8b/ayaQAU6vzf/WBfr+L1gd/6QvzP8rNwb/g4bP/nRk1gBgjEsBatyQAMMgHAGsUQX/x7M0/yVUywCqcK4ACwRbAEX0GwF1g1wAIZiv/4yZa//7hyv+V4oE/8bqk/55mFT/zWWbAZ0JGQBIahH+bJkA/73lugDBCLD/rpXRAO6CHQDp1n4BPeJmADmjBAHGbzP/LU9OAXPSCv/aCRn/novG/9NSu/5QhVMAnYHmAfOFhv8oiBAATWtP/7dVXAGxzMoAo0eT/5hFvgCsM7wB+tKs/9PycQFZWRr/QEJv/nSYKgChJxv/NlD+AGrRcwFnfGEA3eZi/x/nBgCywHj+D9nL/3yeTwBwkfcAXPowAaO1wf8lL47+kL2l/y6S8AAGS4AAKZ3I/ld51QABcewABS36AJAMUgAfbOcA4e93/6cHvf+75IT/br0iAF4szAGiNMUATrzx/jkUjQD0ki8BzmQzAH1rlP4bw00AmP1aAQePkP8zJR8AIncm/wfFdgCZvNMAlxR0/vVBNP+0/W4BL7HRAKFjEf923soAfbP8AXs2fv+ROb8AN7p5AArzigDN0+X/fZzx/pScuf/jE7z/fCkg/x8izv4ROVMAzBYl/ypgYgB3ZrgBA74cAG5S2v/IzMD/yZF2AHXMkgCEIGIBwMJ5AGqh+AHtWHwAF9QaAM2rWv/4MNgBjSXm/3zLAP6eqB7/1vgVAHC7B/9Lhe//SuPz//qTRgDWeKIApwmz/xaeEgDaTdEBYW1R//Qhs/85NDn/QazS//lH0f+Oqe4Anr2Z/67+Z/5iIQ4AjUzm/3GLNP8POtQAqNfJ//jM1wHfRKD/OZq3/i/neQBqpokAUYiKAKUrMwDniz0AOV87/nZiGf+XP+wBXr76/6m5cgEF+jr/S2lhAdffhgBxY6MBgD5wAGNqkwCjwwoAIc22ANYOrv+BJuf/NbbfAGIqn//3DSgAvNKxAQYVAP//PZT+iS2B/1kadP5+JnIA+zLy/nmGgP/M+af+pevXAMqx8wCFjT4A8IK+AW6v/wAAFJIBJdJ5/wcnggCO+lT/jcjPAAlfaP8L9K4Ahuh+AKcBe/4QwZX/6OnvAdVGcP/8dKD+8t7c/81V4wAHuToAdvc/AXRNsf8+9cj+PxIl/2s16P4y3dMAotsH/gJeKwC2Prb+oE7I/4eMqgDruOQArzWK/lA6Tf+YyQIBP8QiAAUeuACrsJoAeTvOACZjJwCsUE3+AIaXALoh8f5e/d//LHL8AGx+Of/JKA3/J+Ub/yfvFwGXeTP/mZb4AArqrv929gT+yPUmAEWh8gEQspYAcTiCAKsfaQAaWGz/MSpqAPupQgBFXZUAFDn+AKQZbwBavFr/zATFACjVMgHUYIT/WIq0/uSSfP+49vcAQXVW//1m0v7+eSQAiXMD/zwY2ACGEh0AO+JhALCORwAH0aEAvVQz/pv6SADVVOv/Ld7gAO6Uj/+qKjX/Tqd1ALoAKP99sWf/ReFCAOMHWAFLrAYAqS3jARAkRv8yAgn/i8EWAI+35/7aRTIA7DihAdWDKgCKkSz+iOUo/zE/I/89kfX/ZcAC/uincQCYaCYBebnaAHmL0/538CMAQb3Z/ruzov+gu+YAPvgO/zxOYQD/96P/4Ttb/2tHOv/xLyEBMnXsANuxP/70WrMAI8LX/71DMv8Xh4EAaL0l/7k5wgAjPuf/3PhsAAznsgCPUFsBg11l/5AnAgH/+rIABRHs/osgLgDMvCb+9XM0/79xSf6/bEX/FkX1ARfLsgCqY6oAQfhvACVsmf9AJUUAAFg+/lmUkP+/ROAB8Sc1ACnL7f+RfsL/3Sr9/xljlwBh/d8BSnMx/wavSP87sMsAfLf5AeTkYwCBDM/+qMDD/8ywEP6Y6qsATSVV/yF4h/+OwuMBH9Y6ANW7ff/oLjz/vnQq/peyE/8zPu3+zOzBAMLoPACsIp3/vRC4/mcDX/+N6ST+KRkL/xXDpgB29S0AQ9WV/58MEv+7pOMBoBkFAAxOwwErxeEAMI4p/sSbPP/fxxIBkYicAPx1qf6R4u4A7xdrAG21vP/mcDH+Sart/+e34/9Q3BQAwmt/AX/NZQAuNMUB0qsk/1gDWv84l40AYLv//ypOyAD+RkYB9H2oAMxEigF810YAZkLI/hE05AB13I/+y/h7ADgSrv+6l6T/M+jQAaDkK//5HRkBRL4/AA0AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQ==', - ), - wo( - Xr, - 33980, - 'AQAAAHbBXwBlcAL/UPyh/vJqxv+FBrIA5N9wAN/uVf4z8xoAPiuL/stBCg==', - ), - wo( - Xr, - 34032, - 'M03tAJGqVv82JjP/8YBl/yl5Sv/sTpsAqZdp/pwpSADCZq//zqJl/wAAAAAAAAAAGy57ARKo/f/Tr5f+w9tgADh2vv7+0fX/mWR+/uiBFf81uPL/x6Td', - ), - wo(Xr, 34160, 'AQ=='), - wo( - Xr, - 34192, - '4Ot6fDtBuK4WVuP68Z/EatoJjeucMrH9hmIFFl9JuABfnJW8o1CMJLHQsVWcg+9bBERcxFgcjobYIk7d0J8RV+z///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////fw==', - ), - wo(Xr, 34368, '7dP1XBpjEljWnPei3vneFA=='), - wo( - Xr, - 34399, - 'EAjJvPNn5glqO6fKhIWuZ7sr+JT+cvNuPPE2HV869U+l0YLmrX9SDlEfbD4rjGgFm2u9Qfur2YMfeSF+ExnN4FsirijXmC+KQs1l7yORRDdxLztN7M/7wLW824mBpdu16Ti1SPNbwlY5GdAFtvER8VmbTxmvpII/khiBbdrVXhyrQgIDo5iqB9i+b3BFAVuDEoyy5E6+hTEk4rT/1cN9DFVviXvydF2+crGWFjv+sd6ANRLHJacG3JuUJmnPdPGbwdJK8Z7BaZvk4yVPOIZHvu+11YyLxp3BD2WcrHfMoQwkdQIrWW8s6S2D5KZuqoR0StT7Qb3cqbBctVMRg9qI+Xar32buUlE+mBAytC1txjGoPyH7mMgnA7DkDu++x39Zv8KPqD3zC+DGJacKk0eRp9VvggPgUWPKBnBuDgpnKSkU/C/SRoUKtycmySZcOCEbLu0qxFr8bSxN37OVnRMNOFPeY6+LVHMKZaiydzy7Cmp25q7tRy7JwoE7NYIUhSxykmQD8Uyh6L+iATBCvEtmGqiRl/jQcItLwjC+VAajUWzHGFLv1hnoktEQqWVVJAaZ1iogcVeFNQ70uNG7MnCgahDI0NK4FsGkGVOrQVEIbDcemeuO30x3SCeoSJvhtbywNGNaycWzDBw5y4pB40qq2E5z42N3T8qcW6O4stbzby5o/LLvXe6Cj3RgLxdDb2OleHKr8KEUeMiE7DlkGggCx4woHmMj+v++kOm9gt7rbFCkFXnGsvej+b4rU3Lj8nhxxpxhJurOPifKB8LAIce4htEe6+DN1n3a6njRbu5/T331um8Xcqpn8AammMiixX1jCq4N+b4EmD8RG0ccEzULcRuEfQQj9XfbKJMkx0B7q8oyvL7JFQq+njxMDRCcxGcdQ7ZCPsu+1MVMKn5l/Jwpf1ns+tY6q2/LXxdYR0qMGURsgA==', - ), - wo(Xr, 35248, 'U2lnRWQyNTUxOSBubyBFZDI1NTE5IGNvbGxpc2lvbnMB'), - wo( - Xr, - 35328, - 'Z+YJaoWuZ7ty8248OvVPpX9SDlGMaAWbq9mDHxnN4FuYL4pCkUQ3cc/7wLWl27XpW8JWOfER8Vmkgj+S1V4cq5iqB9gBW4MSvoUxJMN9DFV0Xb5y/rHegKcG3Jt08ZvBwWmb5IZHvu/GncEPzKEMJG8s6S2qhHRK3KmwXNqI+XZSUT6YbcYxqMgnA7DHf1m/8wvgxkeRp9VRY8oGZykpFIUKtyc4IRsu/G0sTRMNOFNUcwpluwpqdi7JwoGFLHKSoei/oktmGqhwi0vCo1FsxxnoktEkBpnWhTUO9HCgahAWwaQZCGw3Hkx3SCe1vLA0swwcOUqq2E5Pypxb828uaO6Cj3RvY6V4FHjIhAgCx4z6/76Q62xQpPej+b7yeHHGgA==', - ), - wo( - Xr, - 35696, - 'wJABAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0=', - ) - var c0, - Bs = - ((c0 = [ - null, - function (d, a, h, g, _e) { - var on, hn, j - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (St = on = ((hn = St) - 128) & -64), - (c[on >> 2] = - 67108863 & - (rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24))), - (c[(on + 4) >> 2] = - ((rn[(_e + 3) | 0] | - (rn[(_e + 4) | 0] << 8) | - (rn[(_e + 5) | 0] << 16) | - (rn[(_e + 6) | 0] << 24)) >>> - 2) & - 67108611), - (c[(on + 8) >> 2] = - ((rn[(_e + 6) | 0] | - (rn[(_e + 7) | 0] << 8) | - (rn[(_e + 8) | 0] << 16) | - (rn[(_e + 9) | 0] << 24)) >>> - 4) & - 67092735), - (c[(on + 12) >> 2] = - ((rn[(_e + 9) | 0] | - (rn[(_e + 10) | 0] << 8) | - (rn[(_e + 11) | 0] << 16) | - (rn[(_e + 12) | 0] << 24)) >>> - 6) & - 66076671), - (j = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (c[(on + 20) >> 2] = 0), - (c[(on + 24) >> 2] = 0), - (c[(on + 28) >> 2] = 0), - (c[(on + 32) >> 2] = 0), - (c[(on + 36) >> 2] = 0), - (c[(on + 16) >> 2] = (j >>> 8) & 1048575), - (c[(on + 40) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - (c[(on + 44) >> 2] = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (c[(on + 48) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (_e = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (pn[(on + 80) | 0] = 0), - (c[(on + 56) >> 2] = 0), - (c[(on + 60) >> 2] = 0), - (c[(on + 52) >> 2] = _e), - Yt(on, a, h, g), - K0(on, d), - (St = hn), - 0 - ) - }, - function (d, a, h, g, _e) { - var on, hn, j - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (St = on = ((hn = St) - 192) & -64), - (c[(on + 64) >> 2] = - 67108863 & - (rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24))), - (c[(on + 68) >> 2] = - ((rn[(_e + 3) | 0] | - (rn[(_e + 4) | 0] << 8) | - (rn[(_e + 5) | 0] << 16) | - (rn[(_e + 6) | 0] << 24)) >>> - 2) & - 67108611), - (c[(on + 72) >> 2] = - ((rn[(_e + 6) | 0] | - (rn[(_e + 7) | 0] << 8) | - (rn[(_e + 8) | 0] << 16) | - (rn[(_e + 9) | 0] << 24)) >>> - 4) & - 67092735), - (c[(on + 76) >> 2] = - ((rn[(_e + 9) | 0] | - (rn[(_e + 10) | 0] << 8) | - (rn[(_e + 11) | 0] << 16) | - (rn[(_e + 12) | 0] << 24)) >>> - 6) & - 66076671), - (j = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (c[(on + 84) >> 2] = 0), - (c[(on + 88) >> 2] = 0), - (c[(on + 92) >> 2] = 0), - (c[(on + 96) >> 2] = 0), - (c[(on + 100) >> 2] = 0), - (c[(on + 80) >> 2] = (j >>> 8) & 1048575), - (c[(on + 104) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - (c[(on + 108) >> 2] = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (c[(on + 112) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (_e = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (pn[(on + 144) | 0] = 0), - (c[(on + 120) >> 2] = 0), - (c[(on + 124) >> 2] = 0), - (c[(on + 116) >> 2] = _e), - Yt((_e = (on - -64) | 0), a, h, g), - K0(_e, (a = (on + 48) | 0)), - (d = ju(d, a)), - (St = hn), - 0 | d - ) - }, - function (d, a) { - var h - return ( - (a |= 0), - (c[(d |= 0) >> 2] = - 67108863 & - (rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24))), - (c[(d + 4) >> 2] = - ((rn[(a + 3) | 0] | - (rn[(a + 4) | 0] << 8) | - (rn[(a + 5) | 0] << 16) | - (rn[(a + 6) | 0] << 24)) >>> - 2) & - 67108611), - (c[(d + 8) >> 2] = - ((rn[(a + 6) | 0] | - (rn[(a + 7) | 0] << 8) | - (rn[(a + 8) | 0] << 16) | - (rn[(a + 9) | 0] << 24)) >>> - 4) & - 67092735), - (c[(d + 12) >> 2] = - ((rn[(a + 9) | 0] | - (rn[(a + 10) | 0] << 8) | - (rn[(a + 11) | 0] << 16) | - (rn[(a + 12) | 0] << 24)) >>> - 6) & - 66076671), - (h = - rn[(a + 12) | 0] | - (rn[(a + 13) | 0] << 8) | - (rn[(a + 14) | 0] << 16) | - (rn[(a + 15) | 0] << 24)), - (c[(d + 20) >> 2] = 0), - (c[(d + 24) >> 2] = 0), - (c[(d + 28) >> 2] = 0), - (c[(d + 32) >> 2] = 0), - (c[(d + 36) >> 2] = 0), - (c[(d + 16) >> 2] = (h >>> 8) & 1048575), - (c[(d + 40) >> 2] = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (c[(d + 44) >> 2] = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (c[(d + 48) >> 2] = - rn[(a + 24) | 0] | - (rn[(a + 25) | 0] << 8) | - (rn[(a + 26) | 0] << 16) | - (rn[(a + 27) | 0] << 24)), - (a = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24)), - (pn[(d + 80) | 0] = 0), - (c[(d + 56) >> 2] = 0), - (c[(d + 60) >> 2] = 0), - (c[(d + 52) >> 2] = a), - 0 - ) - }, - function (d, a, h, g) { - return Yt((d |= 0), (a |= 0), (h |= 0), (g |= 0)), 0 - }, - function (d, a) { - return K0((d |= 0), (a |= 0)), 0 - }, - function (d, a, h) { - ;(d |= 0), (a |= 0), (h |= 0) - var g, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0, - Gr = 0, - er = 0, - or = 0, - It = 0, - Ot = 0, - Nt = 0, - _r = 0, - Pr = 0, - Lr = 0, - Tr = 0, - xr = 0, - Hr = 0, - Yr = 0, - Zr = 0, - jr = 0 - for ( - St = g = (St - 368) | 0; - (et = - ((hn = rn[(h + _e) | 0]) ^ - rn[0 | (cn = (_e + 34128) | 0)]) | - et), - (Un = (hn ^ rn[(cn + 192) | 0]) | Un), - (Yn = (hn ^ rn[(cn + 160) | 0]) | Yn), - (wn = (hn ^ rn[(cn + 128) | 0]) | wn), - (j = (hn ^ rn[(cn + 96) | 0]) | j), - (Dn = (hn ^ rn[(cn - -64) | 0]) | Dn), - (on = (hn ^ rn[(cn + 32) | 0]) | on), - (0 | (_e = (_e + 1) | 0)) != 31; - - ); - if ( - ((_e = -1), - !( - 256 & - (((255 & - ((hn = 127 ^ (cn = 127 & rn[(h + 31) | 0])) | Un)) - - 1) | - ((255 & (hn | Yn)) - 1) | - ((255 & (hn | wn)) - 1) | - ((255 & ((87 ^ cn) | j)) - 1) | - ((255 & (Dn | cn)) - 1) | - ((255 & (on | cn)) - 1) | - ((255 & (cn | et)) - 1)) - )) - ) { - for ( - _e = a, - a = - rn[(a + 28) | 0] | - (rn[(a + 29) | 0] << 8) | - (rn[(a + 30) | 0] << 16) | - (rn[(a + 31) | 0] << 24), - c[(g + 360) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24), - c[(g + 364) >> 2] = a, - a = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24), - c[(g + 352) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24), - c[(g + 356) >> 2] = a, - on = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24), - a = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24), - c[(g + 336) >> 2] = a, - c[(g + 340) >> 2] = on, - on = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24), - c[(g + 344) >> 2] = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24), - c[(g + 348) >> 2] = on, - pn[(g + 336) | 0] = 248 & a, - pn[(g + 367) | 0] = (63 & rn[(g + 367) | 0]) | 64, - Xs((g + 288) | 0, h), - c[(g + 260) >> 2] = 0, - c[(g + 264) >> 2] = 0, - c[(g + 268) >> 2] = 0, - c[(g + 272) >> 2] = 0, - c[(g + 276) >> 2] = 0, - c[(g + 208) >> 2] = 0, - c[(g + 212) >> 2] = 0, - c[(g + 216) >> 2] = 0, - c[(g + 220) >> 2] = 0, - c[(g + 224) >> 2] = 0, - c[(g + 228) >> 2] = 0, - c[(g + 244) >> 2] = 0, - c[(g + 248) >> 2] = 0, - c[(g + 240) >> 2] = 1, - c[(g + 252) >> 2] = 0, - c[(g + 256) >> 2] = 0, - c[(g + 192) >> 2] = 0, - c[(g + 196) >> 2] = 0, - c[(g + 200) >> 2] = 0, - c[(g + 204) >> 2] = 0, - a = c[(g + 316) >> 2], - c[(g + 168) >> 2] = c[(g + 312) >> 2], - c[(g + 172) >> 2] = a, - a = c[(g + 308) >> 2], - c[(g + 160) >> 2] = c[(g + 304) >> 2], - c[(g + 164) >> 2] = a, - a = c[(g + 300) >> 2], - c[(g + 152) >> 2] = c[(g + 296) >> 2], - c[(g + 156) >> 2] = a, - a = c[(g + 292) >> 2], - c[(g + 144) >> 2] = c[(g + 288) >> 2], - c[(g + 148) >> 2] = a, - a = c[(g + 324) >> 2], - c[(g + 176) >> 2] = c[(g + 320) >> 2], - c[(g + 180) >> 2] = a, - c[(g + 116) >> 2] = 0, - c[(g + 120) >> 2] = 0, - c[(g + 124) >> 2] = 0, - c[(g + 128) >> 2] = 0, - c[(g + 132) >> 2] = 0, - c[(g + 100) >> 2] = 0, - c[(g + 104) >> 2] = 0, - c[(g + 96) >> 2] = 1, - c[(g + 108) >> 2] = 0, - c[(g + 112) >> 2] = 0, - h = 254; - (fr = c[(g + 276) >> 2]), - (hn = c[(g + 180) >> 2]), - (hr = c[(g + 96) >> 2]), - (Er = c[(g + 192) >> 2]), - (rt = c[(g + 144) >> 2]), - (tt = c[(g + 240) >> 2]), - (ft = c[(g + 100) >> 2]), - (Xt = c[(g + 196) >> 2]), - (yr = c[(g + 148) >> 2]), - (Qr = c[(g + 244) >> 2]), - (Rt = c[(g + 104) >> 2]), - (Br = c[(g + 200) >> 2]), - (At = c[(g + 152) >> 2]), - (wr = c[(g + 248) >> 2]), - (Jt = c[(g + 108) >> 2]), - (Dr = c[(g + 204) >> 2]), - (Ct = c[(g + 156) >> 2]), - (Gr = c[(g + 252) >> 2]), - (wt = c[(g + 112) >> 2]), - (er = c[(g + 208) >> 2]), - (bt = c[(g + 160) >> 2]), - (or = c[(g + 256) >> 2]), - (et = c[(g + 116) >> 2]), - (It = c[(g + 212) >> 2]), - ($n = c[(g + 164) >> 2]), - (Ot = c[(g + 260) >> 2]), - (Un = c[(g + 120) >> 2]), - (Nt = c[(g + 216) >> 2]), - (Yn = c[(g + 168) >> 2]), - (_r = c[(g + 264) >> 2]), - (wn = c[(g + 124) >> 2]), - (Pr = c[(g + 220) >> 2]), - (j = c[(g + 172) >> 2]), - (Lr = c[(g + 268) >> 2]), - (Dn = c[(g + 128) >> 2]), - (Tr = c[(g + 224) >> 2]), - (on = c[(g + 176) >> 2]), - (xr = c[(g + 272) >> 2]), - (Hr = h), - (kt = - (yt = - (a = - (0 - - ((a = xt) ^ - (xt = - (rn[(g + 336 + (h >>> 3)) | 0] >>> - (7 & h)) & - 1))) | - 0) & - ((_e = c[(g + 132) >> 2]) ^ - (tr = c[(g + 228) >> 2]))) ^ _e), - (c[(g + 132) >> 2] = kt), - (dr = hn ^ (at = a & (hn ^ fr))), - (c[(g + 84) >> 2] = dr - kt), - (Tt = Dn ^ (pt = a & (Dn ^ Tr))), - (c[(g + 128) >> 2] = Tt), - (Ar = (_t = a & (on ^ xr)) ^ on), - (c[(g + 80) >> 2] = Ar - Tt), - (Zt = wn ^ (gt = a & (wn ^ Pr))), - (c[(g + 124) >> 2] = Zt), - (Yr = j ^ (mt = a & (j ^ Lr))), - (c[(g + 76) >> 2] = Yr - Zt), - (jt = Un ^ (nt = a & (Un ^ Nt))), - (c[(g + 120) >> 2] = jt), - (Zr = Yn ^ (cn = a & (Yn ^ _r))), - (c[(g + 72) >> 2] = Zr - jt), - (rr = et ^ (hn = a & (et ^ It))), - (c[(g + 116) >> 2] = rr), - (jr = $n ^ (et = a & ($n ^ Ot))), - (c[(g + 68) >> 2] = jr - rr), - (sr = wt ^ (Un = a & (wt ^ er))), - (c[(g + 112) >> 2] = sr), - (Ht = bt ^ (Yn = a & (bt ^ or))), - (c[(g + 64) >> 2] = Ht - sr), - (Qt = Jt ^ (wn = a & (Jt ^ Dr))), - (c[(g + 108) >> 2] = Qt), - (Pt = Ct ^ (j = a & (Ct ^ Gr))), - (c[(g + 60) >> 2] = Pt - Qt), - (Ut = Rt ^ (Dn = a & (Rt ^ Br))), - (c[(g + 104) >> 2] = Ut), - (Jt = At ^ (on = a & (At ^ wr))), - (c[(g + 56) >> 2] = Jt - Ut), - (Rt = ft ^ (_e = a & (ft ^ Xt))), - (c[(g + 100) >> 2] = Rt), - (Ct = yr ^ (h = a & (yr ^ Qr))), - (c[(g + 52) >> 2] = Ct - Rt), - (At = hr ^ (wt = a & (hr ^ Er))), - (c[(g + 96) >> 2] = At), - (bt = (a &= rt ^ tt) ^ rt), - (c[(g + 48) >> 2] = bt - At), - ($n = at ^ fr), - (yt ^= tr), - (c[(g + 36) >> 2] = $n - yt), - (at = _t ^ xr), - (pt ^= Tr), - (c[(g + 32) >> 2] = at - pt), - (_t = mt ^ Lr), - (gt ^= Pr), - (c[(g + 28) >> 2] = _t - gt), - (mt = cn ^ _r), - (nt ^= Nt), - (c[(g + 24) >> 2] = mt - nt), - (cn = et ^ Ot), - (hn ^= It), - (c[(g + 20) >> 2] = cn - hn), - (et = Yn ^ or), - (Un ^= er), - (c[(g + 16) >> 2] = et - Un), - (Yn = j ^ Gr), - (wn ^= Dr), - (c[(g + 12) >> 2] = Yn - wn), - (j = on ^ wr), - (Dn ^= Br), - (c[(g + 8) >> 2] = j - Dn), - (on = h ^ Qr), - (_e ^= Xt), - (c[(g + 4) >> 2] = on - _e), - (h = a ^ tt), - (a = wt ^ Er), - (c[g >> 2] = h - a), - (c[(g + 276) >> 2] = $n + yt), - (c[(g + 272) >> 2] = at + pt), - (c[(g + 268) >> 2] = gt + _t), - (c[(g + 264) >> 2] = nt + mt), - (c[(g + 260) >> 2] = hn + cn), - (c[(g + 256) >> 2] = Un + et), - (c[(g + 248) >> 2] = j + Dn), - (c[(g + 244) >> 2] = _e + on), - (c[(g + 240) >> 2] = a + h), - (c[(g + 252) >> 2] = wn + Yn), - (c[(g + 228) >> 2] = kt + dr), - (c[(g + 224) >> 2] = Tt + Ar), - (c[(g + 220) >> 2] = Zt + Yr), - (c[(g + 216) >> 2] = jt + Zr), - (c[(g + 212) >> 2] = rr + jr), - (c[(g + 208) >> 2] = Ht + sr), - (c[(g + 204) >> 2] = Qt + Pt), - (c[(g + 200) >> 2] = Jt + Ut), - (c[(g + 196) >> 2] = Rt + Ct), - (c[(g + 192) >> 2] = bt + At), - Gt( - (dr = (g + 96) | 0), - (Tt = (g + 48) | 0), - (bt = (g + 240) | 0), - ), - Gt((kt = (g + 192) | 0), kt, g), - Bt(Tt, g), - Bt(g, bt), - ($n = c[(g + 192) >> 2]), - (yt = c[(g + 96) >> 2]), - (at = c[(g + 196) >> 2]), - (pt = c[(g + 100) >> 2]), - (_t = c[(g + 200) >> 2]), - (gt = c[(g + 104) >> 2]), - (mt = c[(g + 204) >> 2]), - (nt = c[(g + 108) >> 2]), - (cn = c[(g + 208) >> 2]), - (hn = c[(g + 112) >> 2]), - (et = c[(g + 212) >> 2]), - (Un = c[(g + 116) >> 2]), - (Yn = c[(g + 216) >> 2]), - (wn = c[(g + 120) >> 2]), - (j = c[(g + 220) >> 2]), - (Dn = c[(g + 124) >> 2]), - (on = c[(g + 224) >> 2]), - (_e = c[(g + 128) >> 2]), - (h = c[(g + 228) >> 2]), - (a = c[(g + 132) >> 2]), - (c[(g + 180) >> 2] = h + a), - (c[(g + 176) >> 2] = _e + on), - (c[(g + 172) >> 2] = j + Dn), - (c[(g + 168) >> 2] = wn + Yn), - (c[(g + 164) >> 2] = Un + et), - (c[(g + 160) >> 2] = hn + cn), - (c[(g + 156) >> 2] = nt + mt), - (c[(g + 152) >> 2] = gt + _t), - (c[(g + 148) >> 2] = at + pt), - (c[(g + 144) >> 2] = $n + yt), - (c[(g + 228) >> 2] = a - h), - (c[(g + 224) >> 2] = _e - on), - (c[(g + 220) >> 2] = Dn - j), - (c[(g + 216) >> 2] = wn - Yn), - (c[(g + 212) >> 2] = Un - et), - (c[(g + 208) >> 2] = hn - cn), - (c[(g + 204) >> 2] = nt - mt), - (c[(g + 200) >> 2] = gt - _t), - (c[(g + 196) >> 2] = pt - at), - (c[(g + 192) >> 2] = yt - $n), - Gt(bt, g, Tt), - (Zt = c[(g + 52) >> 2]), - (nt = c[(g + 4) >> 2]), - (jt = c[(g + 56) >> 2]), - (cn = c[(g + 8) >> 2]), - (rr = c[(g + 64) >> 2]), - (hn = c[(g + 16) >> 2]), - (sr = c[(g + 60) >> 2]), - (wn = c[(g + 12) >> 2]), - (Qt = c[(g + 72) >> 2]), - (j = c[(g + 24) >> 2]), - (Ut = c[(g + 68) >> 2]), - (Dn = c[(g + 20) >> 2]), - (Rt = c[(g + 80) >> 2]), - (_e = c[(g + 32) >> 2]), - (At = c[(g + 76) >> 2]), - (h = c[(g + 28) >> 2]), - (tr = c[(g + 84) >> 2]), - (a = c[(g + 36) >> 2]), - (Ar = c[(g + 48) >> 2]), - (on = (c[g >> 2] - Ar) | 0), - (c[g >> 2] = on), - (a = (a - tr) | 0), - (c[(g + 36) >> 2] = a), - (wt = (h - At) | 0), - (c[(g + 28) >> 2] = wt), - (bt = (_e - Rt) | 0), - (c[(g + 32) >> 2] = bt), - (et = (Dn - Ut) | 0), - (c[(g + 20) >> 2] = et), - (Un = (j - Qt) | 0), - (c[(g + 24) >> 2] = Un), - (Yn = (wn - sr) | 0), - (c[(g + 12) >> 2] = Yn), - (wn = (hn - rr) | 0), - (c[(g + 16) >> 2] = wn), - (j = (cn - jt) | 0), - (c[(g + 8) >> 2] = j), - (_e = (nt - Zt) | 0), - (c[(g + 4) >> 2] = _e), - Bt(kt, kt), - (a = jn(a, a >> 31, 121666, 0)), - (h = On), - (Pt = a), - (a = jn( - ((33554431 & - (h = - ($n = (a + 16777216) | 0) >>> 0 < 16777216 - ? (h + 1) | 0 - : h)) << - 7) | - ($n >>> 25), - h >> 25, - 19, - 0, - )), - (Dn = On), - (h = a), - (a = jn(on, on >> 31, 121666, 0)), - (Ht = (On + Dn) | 0), - (a = - a >>> 0 > (h = (h + a) | 0) >>> 0 - ? (Ht + 1) | 0 - : Ht), - (a = - (Dn = (h + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a), - (yt = (h - (-67108864 & Dn)) | 0), - (c[(g + 96) >> 2] = yt), - (on = jn(_e, _e >> 31, 121666, 0)), - (h = On), - (h = - (_e = (on + 16777216) | 0) >>> 0 < 16777216 - ? (h + 1) | 0 - : h), - (at = - ((a = ((67108863 & a) << 6) | (Dn >>> 26)) + - ((on - (-33554432 & _e)) | 0)) | - 0), - (c[(g + 100) >> 2] = at), - (Ht = h >> 25), - (_e = ((33554431 & h) << 7) | (_e >>> 25)), - (h = (jn(j, j >> 31, 121666, 0) + _e) | 0), - (a = (Ht + On) | 0), - (a = h >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (Dn = - (pt = (h + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a), - (_t = (h - (-67108864 & pt)) | 0), - (c[(g + 104) >> 2] = _t), - (_e = jn(wn, wn >> 31, 121666, 0)), - (on = On), - (h = jn(Yn, Yn >> 31, 121666, 0)), - (a = On), - (Ct = _e), - (Jt = h), - (_e = - ((33554431 & - (a = - (gt = (h + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a)) << - 7) | - (gt >>> 25)), - (a = ((a >> 25) + on) | 0), - (a = - (h = (Ct + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (on = - (mt = (h + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a), - (nt = (h - (-67108864 & mt)) | 0), - (c[(g + 112) >> 2] = nt), - (_e = jn(Un, Un >> 31, 121666, 0)), - (j = On), - (h = jn(et, et >> 31, 121666, 0)), - (a = On), - (Ct = h), - (h = - ((33554431 & - (a = - (cn = (h + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a)) << - 7) | - (cn >>> 25)), - (a = ((a >> 25) + j) | 0), - (a = - h >>> 0 > (_e = (h + _e) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (h = - (hn = (_e + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a), - (et = (_e - (-67108864 & hn)) | 0), - (c[(g + 120) >> 2] = et), - (j = jn(bt, bt >> 31, 121666, 0)), - (wn = On), - (_e = jn(wt, wt >> 31, 121666, 0)), - (a = On), - (bt = _e), - (_e = - ((33554431 & - (a = - (Un = (_e + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a)) << - 7) | - (Un >>> 25)), - (a = ((a >> 25) + wn) | 0), - (a = - _e >>> 0 > (j = (_e + j) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (_e = - (Yn = (j + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a), - (wn = (j - (-67108864 & Yn)) | 0), - (c[(g + 128) >> 2] = wn), - (j = - ((Dn = - (Jt + (((67108863 & Dn) << 6) | (pt >>> 26))) | - 0) - - (-33554432 & gt)) | - 0), - (c[(g + 108) >> 2] = j), - (Dn = - ((on = - (Ct + (((67108863 & on) << 6) | (mt >>> 26))) | - 0) - - (-33554432 & cn)) | - 0), - (c[(g + 116) >> 2] = Dn), - (on = - ((a = - (bt + (((67108863 & h) << 6) | (hn >>> 26))) | - 0) - - (-33554432 & Un)) | - 0), - (c[(g + 124) >> 2] = on), - (h = - ((_e = - (Pt + (((67108863 & _e) << 6) | (Yn >>> 26))) | - 0) - - (-33554432 & $n)) | - 0), - (c[(g + 132) >> 2] = h), - Bt((a = (g + 144) | 0), a), - (c[(g + 84) >> 2] = h + tr), - (c[(g + 80) >> 2] = wn + Rt), - (c[(g + 76) >> 2] = on + At), - (c[(g + 72) >> 2] = et + Qt), - (c[(g + 68) >> 2] = Dn + Ut), - (c[(g + 64) >> 2] = nt + rr), - (c[(g + 60) >> 2] = j + sr), - (c[(g + 56) >> 2] = _t + jt), - (c[(g + 52) >> 2] = at + Zt), - (c[(g + 48) >> 2] = yt + Ar), - (h = (Hr - 1) | 0), - Gt(dr, (g + 288) | 0, kt), - Gt(kt, g, Tt), - Hr; - - ); - ;(et = c[(g + 144) >> 2]), - (yt = c[(g + 240) >> 2]), - (Un = c[(g + 148) >> 2]), - (at = c[(g + 244) >> 2]), - (Yn = c[(g + 152) >> 2]), - (pt = c[(g + 248) >> 2]), - (wn = c[(g + 156) >> 2]), - (_t = c[(g + 252) >> 2]), - (j = c[(g + 160) >> 2]), - (gt = c[(g + 256) >> 2]), - (Dn = c[(g + 164) >> 2]), - (mt = c[(g + 260) >> 2]), - (on = c[(g + 168) >> 2]), - (nt = c[(g + 264) >> 2]), - (_e = c[(g + 172) >> 2]), - (cn = c[(g + 268) >> 2]), - (h = c[(g + 176) >> 2]), - (hn = c[(g + 272) >> 2]), - ($n = (0 - xt) | 0), - (a = c[(g + 276) >> 2]), - (c[(g + 276) >> 2] = - ($n & (a ^ c[(g + 180) >> 2])) ^ a), - (c[(g + 272) >> 2] = hn ^ ($n & (h ^ hn))), - (c[(g + 268) >> 2] = cn ^ ($n & (_e ^ cn))), - (c[(g + 264) >> 2] = nt ^ ($n & (on ^ nt))), - (c[(g + 260) >> 2] = mt ^ ($n & (Dn ^ mt))), - (c[(g + 256) >> 2] = gt ^ ($n & (j ^ gt))), - (c[(g + 252) >> 2] = _t ^ ($n & (wn ^ _t))), - (c[(g + 248) >> 2] = pt ^ ($n & (Yn ^ pt))), - (c[(g + 244) >> 2] = at ^ ($n & (Un ^ at))), - (c[(g + 240) >> 2] = yt ^ ($n & (et ^ yt))), - (yt = c[(g + 192) >> 2]), - (et = c[(g + 96) >> 2]), - (at = c[(g + 196) >> 2]), - (Un = c[(g + 100) >> 2]), - (pt = c[(g + 200) >> 2]), - (Yn = c[(g + 104) >> 2]), - (_t = c[(g + 204) >> 2]), - (wn = c[(g + 108) >> 2]), - (gt = c[(g + 208) >> 2]), - (j = c[(g + 112) >> 2]), - (mt = c[(g + 212) >> 2]), - (Dn = c[(g + 116) >> 2]), - (nt = c[(g + 216) >> 2]), - (on = c[(g + 120) >> 2]), - (cn = c[(g + 220) >> 2]), - (_e = c[(g + 124) >> 2]), - (hn = c[(g + 224) >> 2]), - (h = c[(g + 128) >> 2]), - (a = c[(g + 228) >> 2]), - (c[(g + 228) >> 2] = - ($n & (a ^ c[(g + 132) >> 2])) ^ a), - (c[(g + 224) >> 2] = hn ^ ($n & (h ^ hn))), - (c[(g + 220) >> 2] = cn ^ ($n & (_e ^ cn))), - (c[(g + 216) >> 2] = nt ^ ($n & (on ^ nt))), - (c[(g + 212) >> 2] = mt ^ ($n & (Dn ^ mt))), - (c[(g + 208) >> 2] = gt ^ ($n & (j ^ gt))), - (c[(g + 204) >> 2] = _t ^ ($n & (wn ^ _t))), - (c[(g + 200) >> 2] = pt ^ ($n & (Yn ^ pt))), - (c[(g + 196) >> 2] = at ^ ($n & (Un ^ at))), - (c[(g + 192) >> 2] = yt ^ ($n & (et ^ yt))), - kr((h = (g + 192) | 0), h), - Gt((a = (g + 240) | 0), a, h), - cs(d, a), - Ur((g + 336) | 0, 32), - (_e = 0) - } - return (St = (g + 368) | 0), 0 | _e - }, - function (d, a) { - var h, - g, - _e, - on, - hn, - j, - cn, - Dn, - $n, - wn, - Un, - Yn, - et, - nt, - at, - pt, - gt, - mt, - yt, - _t - return ( - (a |= 0), - (St = h = (St - 304) | 0), - (pn[0 | (d |= 0)] = rn[0 | a]), - (pn[(d + 1) | 0] = rn[(a + 1) | 0]), - (pn[(d + 2) | 0] = rn[(a + 2) | 0]), - (pn[(d + 3) | 0] = rn[(a + 3) | 0]), - (pn[(d + 4) | 0] = rn[(a + 4) | 0]), - (pn[(d + 5) | 0] = rn[(a + 5) | 0]), - (pn[(d + 6) | 0] = rn[(a + 6) | 0]), - (pn[(d + 7) | 0] = rn[(a + 7) | 0]), - (pn[(d + 8) | 0] = rn[(a + 8) | 0]), - (pn[(d + 9) | 0] = rn[(a + 9) | 0]), - (pn[(d + 10) | 0] = rn[(a + 10) | 0]), - (pn[(d + 11) | 0] = rn[(a + 11) | 0]), - (pn[(d + 12) | 0] = rn[(a + 12) | 0]), - (pn[(d + 13) | 0] = rn[(a + 13) | 0]), - (pn[(d + 14) | 0] = rn[(a + 14) | 0]), - (pn[(d + 15) | 0] = rn[(a + 15) | 0]), - (pn[(d + 16) | 0] = rn[(a + 16) | 0]), - (pn[(d + 17) | 0] = rn[(a + 17) | 0]), - (pn[(d + 18) | 0] = rn[(a + 18) | 0]), - (pn[(d + 19) | 0] = rn[(a + 19) | 0]), - (pn[(d + 20) | 0] = rn[(a + 20) | 0]), - (pn[(d + 21) | 0] = rn[(a + 21) | 0]), - (pn[(d + 22) | 0] = rn[(a + 22) | 0]), - (pn[(d + 23) | 0] = rn[(a + 23) | 0]), - (pn[(d + 24) | 0] = rn[(a + 24) | 0]), - (pn[(d + 25) | 0] = rn[(a + 25) | 0]), - (pn[(d + 26) | 0] = rn[(a + 26) | 0]), - (pn[(d + 27) | 0] = rn[(a + 27) | 0]), - (pn[(d + 28) | 0] = rn[(a + 28) | 0]), - (pn[(d + 29) | 0] = rn[(a + 29) | 0]), - (pn[(d + 30) | 0] = rn[(a + 30) | 0]), - (a = rn[(a + 31) | 0]), - (pn[0 | d] = 248 & rn[0 | d]), - (pn[(d + 31) | 0] = (63 & a) | 64), - fu((h + 48) | 0, d), - (a = c[(h + 132) >> 2]), - (g = c[(h + 92) >> 2]), - (_e = c[(h + 136) >> 2]), - (on = c[(h + 96) >> 2]), - (hn = c[(h + 140) >> 2]), - (j = c[(h + 100) >> 2]), - (cn = c[(h + 144) >> 2]), - (Dn = c[(h + 104) >> 2]), - ($n = c[(h + 148) >> 2]), - (wn = c[(h + 108) >> 2]), - (Un = c[(h + 152) >> 2]), - (Yn = c[(h + 112) >> 2]), - (et = c[(h + 156) >> 2]), - (nt = c[(h + 116) >> 2]), - (at = c[(h + 160) >> 2]), - (pt = c[(h + 120) >> 2]), - (gt = c[(h + 128) >> 2]), - (mt = c[(h + 88) >> 2]), - (yt = c[(h + 124) >> 2]), - (_t = c[(h + 164) >> 2]), - (c[(h + 292) >> 2] = yt + _t), - (c[(h + 288) >> 2] = at + pt), - (c[(h + 284) >> 2] = et + nt), - (c[(h + 280) >> 2] = Un + Yn), - (c[(h + 276) >> 2] = $n + wn), - (c[(h + 272) >> 2] = cn + Dn), - (c[(h + 268) >> 2] = hn + j), - (c[(h + 264) >> 2] = _e + on), - (c[(h + 260) >> 2] = a + g), - (c[(h + 256) >> 2] = gt + mt), - (c[(h + 244) >> 2] = _t - yt), - (c[(h + 240) >> 2] = at - pt), - (c[(h + 236) >> 2] = et - nt), - (c[(h + 232) >> 2] = Un - Yn), - (c[(h + 228) >> 2] = $n - wn), - (c[(h + 224) >> 2] = cn - Dn), - (c[(h + 220) >> 2] = hn - j), - (c[(h + 216) >> 2] = _e - on), - (c[(h + 212) >> 2] = a - g), - (c[(h + 208) >> 2] = gt - mt), - kr((a = (h + 208) | 0), a), - Gt(h, (h + 256) | 0, a), - cs(d, h), - (St = (h + 304) | 0), - 0 - ) - }, - function (d, a, h, g, _e) { - ;(d |= 0), (g |= 0), (_e |= 0) - var on, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - if (((St = on = (St - 112) | 0), (a |= 0) | (h |= 0))) { - ;(hn = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (c[(on + 24) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (c[(on + 28) >> 2] = hn), - (hn = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (c[(on + 16) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - (c[(on + 20) >> 2] = hn), - (hn = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[on >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(on + 4) >> 2] = hn), - (hn = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (c[(on + 8) >> 2] = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24)), - (c[(on + 12) >> 2] = hn), - (_e = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (g = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24)), - (c[(on + 104) >> 2] = 0), - (c[(on + 108) >> 2] = 0), - (c[(on + 96) >> 2] = _e), - (c[(on + 100) >> 2] = g) - e: { - if ((!h & (a >>> 0 >= 64)) | h) { - for ( - ; - r0(d, (on + 96) | 0, on, 0), - (g = (rn[(on + 104) | 0] + 1) | 0), - (pn[(on + 104) | 0] = g), - (g = - (rn[(on + 105) | 0] + ((g >>> 8) | 0)) | 0), - (pn[(on + 105) | 0] = g), - (g = - (rn[(on + 106) | 0] + ((g >>> 8) | 0)) | 0), - (pn[(on + 106) | 0] = g), - (g = - (rn[(on + 107) | 0] + ((g >>> 8) | 0)) | 0), - (pn[(on + 107) | 0] = g), - (g = - (rn[(on + 108) | 0] + ((g >>> 8) | 0)) | 0), - (pn[(on + 108) | 0] = g), - (g = - (rn[(on + 109) | 0] + ((g >>> 8) | 0)) | 0), - (pn[(on + 109) | 0] = g), - (g = - (rn[(on + 110) | 0] + ((g >>> 8) | 0)) | 0), - (pn[(on + 110) | 0] = g), - (pn[(on + 111) | 0] = - rn[(on + 111) | 0] + ((g >>> 8) | 0)), - (d = (d - -64) | 0), - (h = (h - 1) | 0), - (!(h = - (a = (a + -64) | 0) >>> 0 < 4294967232 - ? (h + 1) | 0 - : h) & - (a >>> 0 > 63)) | - h; - - ); - if (!(a | h)) break e - } - if ( - ((g = 0), - r0((on + 32) | 0, (on + 96) | 0, on, 0), - (h = 3 & a), - (_e = 0), - (a - 1) >>> 0 >= 3) - ) - for ( - hn = -4 & a, a = 0; - (j = cn = (on + 32) | 0), - (pn[(d + _e) | 0] = rn[(j + _e) | 0]), - (pn[((Dn = 1 | _e) + d) | 0] = - rn[(j + Dn) | 0]), - (pn[((j = 2 | _e) + d) | 0] = rn[(j + cn) | 0]), - (pn[((j = 3 | _e) + d) | 0] = - rn[(j + ((on + 32) | 0)) | 0]), - (_e = (_e + 4) | 0), - (0 | hn) != (0 | (a = (a + 4) | 0)); - - ); - if (h) - for ( - ; - (pn[(d + _e) | 0] = - rn[(((on + 32) | 0) + _e) | 0]), - (_e = (_e + 1) | 0), - (0 | h) != (0 | (g = (g + 1) | 0)); - - ); - } - Ur((on + 32) | 0, 64), Ur(on, 32) - } - return (St = (on + 112) | 0), 0 - }, - function (d, a, h, g, _e, on, hn, j) { - ;(d |= 0), - (a |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (j |= 0) - var cn, - Dn = 0 - if (((St = cn = (St - 112) | 0), (h |= 0) | (g |= 0))) { - ;(Dn = - rn[(j + 28) | 0] | - (rn[(j + 29) | 0] << 8) | - (rn[(j + 30) | 0] << 16) | - (rn[(j + 31) | 0] << 24)), - (c[(cn + 24) >> 2] = - rn[(j + 24) | 0] | - (rn[(j + 25) | 0] << 8) | - (rn[(j + 26) | 0] << 16) | - (rn[(j + 27) | 0] << 24)), - (c[(cn + 28) >> 2] = Dn), - (Dn = - rn[(j + 20) | 0] | - (rn[(j + 21) | 0] << 8) | - (rn[(j + 22) | 0] << 16) | - (rn[(j + 23) | 0] << 24)), - (c[(cn + 16) >> 2] = - rn[(j + 16) | 0] | - (rn[(j + 17) | 0] << 8) | - (rn[(j + 18) | 0] << 16) | - (rn[(j + 19) | 0] << 24)), - (c[(cn + 20) >> 2] = Dn), - (Dn = - rn[(j + 4) | 0] | - (rn[(j + 5) | 0] << 8) | - (rn[(j + 6) | 0] << 16) | - (rn[(j + 7) | 0] << 24)), - (c[cn >> 2] = - rn[0 | j] | - (rn[(j + 1) | 0] << 8) | - (rn[(j + 2) | 0] << 16) | - (rn[(j + 3) | 0] << 24)), - (c[(cn + 4) >> 2] = Dn), - (Dn = - rn[(j + 12) | 0] | - (rn[(j + 13) | 0] << 8) | - (rn[(j + 14) | 0] << 16) | - (rn[(j + 15) | 0] << 24)), - (c[(cn + 8) >> 2] = - rn[(j + 8) | 0] | - (rn[(j + 9) | 0] << 8) | - (rn[(j + 10) | 0] << 16) | - (rn[(j + 11) | 0] << 24)), - (c[(cn + 12) >> 2] = Dn), - (j = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[(cn + 96) >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(cn + 100) >> 2] = j), - (pn[(cn + 104) | 0] = on), - (pn[(cn + 111) | 0] = hn >>> 24), - (pn[(cn + 110) | 0] = hn >>> 16), - (pn[(cn + 109) | 0] = hn >>> 8), - (pn[(cn + 108) | 0] = hn), - (pn[(cn + 107) | 0] = - ((16777215 & hn) << 8) | (on >>> 24)), - (pn[(cn + 106) | 0] = - ((65535 & hn) << 16) | (on >>> 16)), - (pn[(cn + 105) | 0] = ((255 & hn) << 24) | (on >>> 8)) - e: { - if ((!g & (h >>> 0 >= 64)) | g) { - for (;;) { - for ( - j = 0, r0((cn + 32) | 0, (cn + 96) | 0, cn, 0); - (on = (cn + 32) | 0), - (pn[(d + j) | 0] = - rn[(on + j) | 0] ^ rn[(a + j) | 0]), - (pn[((_e = 1 | j) + d) | 0] = - rn[(_e + on) | 0] ^ rn[(a + _e) | 0]), - (0 | (j = (j + 2) | 0)) != 64; - - ); - if ( - ((_e = (rn[(cn + 104) | 0] + 1) | 0), - (pn[(cn + 104) | 0] = _e), - (_e = - (rn[(cn + 105) | 0] + ((_e >>> 8) | 0)) | 0), - (pn[(cn + 105) | 0] = _e), - (_e = - (rn[(cn + 106) | 0] + ((_e >>> 8) | 0)) | 0), - (pn[(cn + 106) | 0] = _e), - (_e = - (rn[(cn + 107) | 0] + ((_e >>> 8) | 0)) | 0), - (pn[(cn + 107) | 0] = _e), - (_e = - (rn[(cn + 108) | 0] + ((_e >>> 8) | 0)) | 0), - (pn[(cn + 108) | 0] = _e), - (_e = - (rn[(cn + 109) | 0] + ((_e >>> 8) | 0)) | 0), - (pn[(cn + 109) | 0] = _e), - (_e = - (rn[(cn + 110) | 0] + ((_e >>> 8) | 0)) | 0), - (pn[(cn + 110) | 0] = _e), - (pn[(cn + 111) | 0] = - rn[(cn + 111) | 0] + ((_e >>> 8) | 0)), - (a = (a - -64) | 0), - (d = (d - -64) | 0), - (g = (g - 1) | 0), - !( - (!(g = - (h = (h + -64) | 0) >>> 0 < 4294967232 - ? (g + 1) | 0 - : g) & - (h >>> 0 > 63)) | - g - )) - ) - break - } - if (!(h | g)) break e - } - if ( - ((j = 0), - r0((cn + 32) | 0, (cn + 96) | 0, cn, 0), - (g = 1 & h), - (0 | h) != 1) - ) - for ( - on = -2 & h, _e = 0; - (hn = (cn + 32) | 0), - (pn[(d + j) | 0] = - rn[(hn + j) | 0] ^ rn[(a + j) | 0]), - (pn[((h = 1 | j) + d) | 0] = - rn[(h + hn) | 0] ^ rn[(a + h) | 0]), - (j = (j + 2) | 0), - (0 | on) != (0 | (_e = (_e + 2) | 0)); - - ); - g && - (pn[(d + j) | 0] = - rn[(((cn + 32) | 0) + j) | 0] ^ rn[(a + j) | 0]) - } - Ur((cn + 32) | 0, 64), Ur(cn, 32) - } - return (St = (cn + 112) | 0), 0 - }, - function (d, a, h, g, _e) { - var on - return ( - (d |= 0), - (g |= 0), - (_e |= 0), - (St = on = (St + -64) | 0), - (a |= 0) | (h |= 0) && - ((c[(on + 8) >> 2] = 2036477234), - (c[(on + 12) >> 2] = 1797285236), - (c[on >> 2] = 1634760805), - (c[(on + 4) >> 2] = 857760878), - (c[(on + 16) >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(on + 20) >> 2] = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[(on + 24) >> 2] = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24)), - (c[(on + 28) >> 2] = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (c[(on + 32) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - (c[(on + 36) >> 2] = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (c[(on + 40) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (_e = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (c[(on + 48) >> 2] = 0), - (c[(on + 52) >> 2] = 0), - (c[(on + 44) >> 2] = _e), - (c[(on + 56) >> 2] = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (c[(on + 60) >> 2] = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24)), - Ru(on, (d = qo(d, 0, a)), d, a, h), - Ur(on, 64)), - (St = (on - -64) | 0), - 0 - ) - }, - function (d, a, h, g, _e) { - var on - return ( - (d |= 0), - (g |= 0), - (_e |= 0), - (St = on = (St + -64) | 0), - (a |= 0) | (h |= 0) && - ((c[(on + 8) >> 2] = 2036477234), - (c[(on + 12) >> 2] = 1797285236), - (c[on >> 2] = 1634760805), - (c[(on + 4) >> 2] = 857760878), - (c[(on + 16) >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(on + 20) >> 2] = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[(on + 24) >> 2] = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24)), - (c[(on + 28) >> 2] = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (c[(on + 32) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - (c[(on + 36) >> 2] = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (c[(on + 40) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (_e = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (c[(on + 48) >> 2] = 0), - (c[(on + 44) >> 2] = _e), - (c[(on + 52) >> 2] = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (c[(on + 56) >> 2] = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24)), - (c[(on + 60) >> 2] = - rn[(g + 8) | 0] | - (rn[(g + 9) | 0] << 8) | - (rn[(g + 10) | 0] << 16) | - (rn[(g + 11) | 0] << 24)), - Ru(on, (d = qo(d, 0, a)), d, a, h), - Ur(on, 64)), - (St = (on - -64) | 0), - 0 - ) - }, - function (d, a, h, g, _e, on, hn, j) { - var cn - return ( - (d |= 0), - (a |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (j |= 0), - (St = cn = (St + -64) | 0), - (h |= 0) | (g |= 0) && - ((c[(cn + 8) >> 2] = 2036477234), - (c[(cn + 12) >> 2] = 1797285236), - (c[cn >> 2] = 1634760805), - (c[(cn + 4) >> 2] = 857760878), - (c[(cn + 16) >> 2] = - rn[0 | j] | - (rn[(j + 1) | 0] << 8) | - (rn[(j + 2) | 0] << 16) | - (rn[(j + 3) | 0] << 24)), - (c[(cn + 20) >> 2] = - rn[(j + 4) | 0] | - (rn[(j + 5) | 0] << 8) | - (rn[(j + 6) | 0] << 16) | - (rn[(j + 7) | 0] << 24)), - (c[(cn + 24) >> 2] = - rn[(j + 8) | 0] | - (rn[(j + 9) | 0] << 8) | - (rn[(j + 10) | 0] << 16) | - (rn[(j + 11) | 0] << 24)), - (c[(cn + 28) >> 2] = - rn[(j + 12) | 0] | - (rn[(j + 13) | 0] << 8) | - (rn[(j + 14) | 0] << 16) | - (rn[(j + 15) | 0] << 24)), - (c[(cn + 32) >> 2] = - rn[(j + 16) | 0] | - (rn[(j + 17) | 0] << 8) | - (rn[(j + 18) | 0] << 16) | - (rn[(j + 19) | 0] << 24)), - (c[(cn + 36) >> 2] = - rn[(j + 20) | 0] | - (rn[(j + 21) | 0] << 8) | - (rn[(j + 22) | 0] << 16) | - (rn[(j + 23) | 0] << 24)), - (c[(cn + 40) >> 2] = - rn[(j + 24) | 0] | - (rn[(j + 25) | 0] << 8) | - (rn[(j + 26) | 0] << 16) | - (rn[(j + 27) | 0] << 24)), - (c[(cn + 44) >> 2] = - rn[(j + 28) | 0] | - (rn[(j + 29) | 0] << 8) | - (rn[(j + 30) | 0] << 16) | - (rn[(j + 31) | 0] << 24)), - (c[(cn + 48) >> 2] = on), - (c[(cn + 52) >> 2] = hn), - (c[(cn + 56) >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(cn + 60) >> 2] = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - Ru(cn, a, d, h, g), - Ur(cn, 64)), - (St = (cn - -64) | 0), - 0 - ) - }, - function (d, a, h, g, _e, on, hn) { - var j - return ( - (d |= 0), - (a |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (St = j = (St + -64) | 0), - (h |= 0) | (g |= 0) && - ((c[(j + 8) >> 2] = 2036477234), - (c[(j + 12) >> 2] = 1797285236), - (c[j >> 2] = 1634760805), - (c[(j + 4) >> 2] = 857760878), - (c[(j + 16) >> 2] = - rn[0 | hn] | - (rn[(hn + 1) | 0] << 8) | - (rn[(hn + 2) | 0] << 16) | - (rn[(hn + 3) | 0] << 24)), - (c[(j + 20) >> 2] = - rn[(hn + 4) | 0] | - (rn[(hn + 5) | 0] << 8) | - (rn[(hn + 6) | 0] << 16) | - (rn[(hn + 7) | 0] << 24)), - (c[(j + 24) >> 2] = - rn[(hn + 8) | 0] | - (rn[(hn + 9) | 0] << 8) | - (rn[(hn + 10) | 0] << 16) | - (rn[(hn + 11) | 0] << 24)), - (c[(j + 28) >> 2] = - rn[(hn + 12) | 0] | - (rn[(hn + 13) | 0] << 8) | - (rn[(hn + 14) | 0] << 16) | - (rn[(hn + 15) | 0] << 24)), - (c[(j + 32) >> 2] = - rn[(hn + 16) | 0] | - (rn[(hn + 17) | 0] << 8) | - (rn[(hn + 18) | 0] << 16) | - (rn[(hn + 19) | 0] << 24)), - (c[(j + 36) >> 2] = - rn[(hn + 20) | 0] | - (rn[(hn + 21) | 0] << 8) | - (rn[(hn + 22) | 0] << 16) | - (rn[(hn + 23) | 0] << 24)), - (c[(j + 40) >> 2] = - rn[(hn + 24) | 0] | - (rn[(hn + 25) | 0] << 8) | - (rn[(hn + 26) | 0] << 16) | - (rn[(hn + 27) | 0] << 24)), - (hn = - rn[(hn + 28) | 0] | - (rn[(hn + 29) | 0] << 8) | - (rn[(hn + 30) | 0] << 16) | - (rn[(hn + 31) | 0] << 24)), - (c[(j + 48) >> 2] = on), - (c[(j + 44) >> 2] = hn), - (c[(j + 52) >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(j + 56) >> 2] = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[(j + 60) >> 2] = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24)), - Ru(j, a, d, h, g), - Ur(j, 64)), - (St = (j - -64) | 0), - 0 - ) - }, - ]), - (c0.grow = function (d) { - var a = this.length - return (this.length = this.length + d), a - }), - (c0.set = function (d, a) { - this[d] = a - }), - (c0.get = function (d) { - return this[d] - }), - c0) - function lp() { - return (ys.byteLength / 65536) | 0 - } - return { - f: function () {}, - g: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n, wn) { - return ( - 0 | - tA( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (d = 0) | (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - ($n |= 0), - (wn |= 0), - ) - ) - }, - h: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - (d |= 0), - (a |= 0), - (cn |= 0), - (cn = g |= 0), - !(g = _e |= 0) & ((_e = 0 | cn) >>> 0 < 4294967280) - ? (tA( - d, - (d + _e) | 0, - 0, - (h |= 0), - _e, - g, - (on |= 0), - (hn |= 0), - (j |= 0), - (Dn |= 0), - ($n |= 0), - ), - a && - ((g = - (d = (_e + 16) | 0) >>> 0 < 16 ? (g + 1) | 0 : g), - (c[a >> 2] = d), - (c[(a + 4) >> 2] = g))) - : (ss(), so()), - 0 - ) - }, - i: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n, wn) { - return ( - 0 | - nA( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (d = 0) | (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - ($n |= 0), - (wn |= 0), - ) - ) - }, - j: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - (d |= 0), - (a |= 0), - (cn |= 0), - (cn = g |= 0), - !(g = _e |= 0) & ((_e = 0 | cn) >>> 0 < 4294967280) - ? (nA( - d, - (d + _e) | 0, - 0, - (h |= 0), - _e, - g, - (on |= 0), - (hn |= 0), - (j |= 0), - (Dn |= 0), - ($n |= 0), - ), - a && - ((g = - (d = (_e + 16) | 0) >>> 0 < 16 ? (g + 1) | 0 : g), - (c[a >> 2] = d), - (c[(a + 4) >> 2] = g))) - : (ss(), so()), - 0 - ) - }, - k: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - 0 | - eA( - (d |= 0), - (h |= 0), - (d = 0) | (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - (Dn |= 0), - ($n |= 0), - ) - ) - }, - l: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (j |= 0), - (j |= 0), - (h = -1), - (!(on |= 0) & ((_e |= 0) >>> 0 >= 16)) | on && - (h = eA( - (d |= 0), - g, - (_e - 16) | 0, - (on - (_e >>> 0 < 16)) | 0, - (((g + _e) | 0) - 16) | 0, - (hn |= 0), - j, - (cn |= 0), - (Dn |= 0), - ($n |= 0), - )), - a && - ((c[a >> 2] = h ? 0 : (_e - 16) | 0), - (c[(a + 4) >> 2] = h ? 0 : (on - (_e >>> 0 < 16)) | 0)), - 0 | h - ) - }, - m: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - 0 | - Zl( - (d |= 0), - (h |= 0), - (d = 0) | (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - (Dn |= 0), - ($n |= 0), - ) - ) - }, - n: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (j |= 0), - (j |= 0), - (h = -1), - (!(on |= 0) & ((_e |= 0) >>> 0 >= 16)) | on && - (h = Zl( - (d |= 0), - g, - (_e - 16) | 0, - (on - (_e >>> 0 < 16)) | 0, - (((g + _e) | 0) - 16) | 0, - (hn |= 0), - j, - (cn |= 0), - (Dn |= 0), - ($n |= 0), - )), - a && - ((c[a >> 2] = h ? 0 : (_e - 16) | 0), - (c[(a + 4) >> 2] = h ? 0 : (on - (_e >>> 0 < 16)) | 0)), - 0 | h - ) - }, - o: io, - p: up, - q: du, - r: Go, - s: uu, - t: _s, - u: io, - v: au, - w: du, - x: Go, - y: uu, - z: _s, - A: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n, wn) { - return ( - 0 | - Vl( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (d = 0) | (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - ($n |= 0), - (wn |= 0), - ) - ) - }, - B: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - (d |= 0), - (a |= 0), - (cn |= 0), - (cn = g |= 0), - !(g = _e |= 0) & ((_e = 0 | cn) >>> 0 < 4294967280) - ? (Vl( - d, - (d + _e) | 0, - 0, - (h |= 0), - _e, - g, - (on |= 0), - (hn |= 0), - (j |= 0), - (Dn |= 0), - ($n |= 0), - ), - a && - ((g = - (d = (_e + 16) | 0) >>> 0 < 16 ? (g + 1) | 0 : g), - (c[a >> 2] = d), - (c[(a + 4) >> 2] = g))) - : (ss(), so()), - 0 - ) - }, - C: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - 0 | - Hl( - (d |= 0), - (h |= 0), - (d = 0) | (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - (Dn |= 0), - ($n |= 0), - ) - ) - }, - D: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (j |= 0), - (j |= 0), - (h = -1), - (!(on |= 0) & ((_e |= 0) >>> 0 >= 16)) | on && - (h = Hl( - (d |= 0), - g, - (_e - 16) | 0, - (on - (_e >>> 0 < 16)) | 0, - (((g + _e) | 0) - 16) | 0, - (hn |= 0), - j, - (cn |= 0), - (Dn |= 0), - ($n |= 0), - )), - a && - ((c[a >> 2] = h ? 0 : (_e - 16) | 0), - (c[(a + 4) >> 2] = h ? 0 : (on - (_e >>> 0 < 16)) | 0)), - 0 | h - ) - }, - E: io, - F: nu, - G: du, - H: Go, - I: uu, - J: _s, - K: io, - L: io, - M: function () { - return 1464 - }, - N: Ll, - O: Xl, - P: _s, - Q: io, - R: io, - S: x0, - T: _s, - U: vt, - V: function (d, a, h, g) { - return 0 | Bl((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - W: SA, - X: function (d, a, h, g, _e) { - var on - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (St = on = (St - 240) | 0), - vt(on, (_e |= 0), 32), - $s(on, a, h, g), - ut(on, (a = (on + 208) | 0)), - $s((h = (on + 104) | 0), a, 32, 0), - ut(h, d), - Ur(a, 32), - (St = (on + 240) | 0), - 0 - ) - }, - Y: function (d, a, h, g, _e) { - var on, hn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (St = on = (St - 272) | 0), - vt((hn = (on + 32) | 0), (_e |= 0), 32), - $s(hn, a, h, g), - ut(hn, (a = (on + 240) | 0)), - $s((h = (on + 136) | 0), a, 32, 0), - ut(h, on), - Ur(a, 32), - (a = J0(d, on)), - (h = Iu(on, d, 32)), - (St = (on + 272) | 0), - h | ((0 | d) == (0 | on) ? -1 : a) - ) - }, - Z: bs, - _: io, - $: op, - aa: _s, - ba: Mu, - ca: xA, - da: k0, - ea: function (d, a, h, g, _e) { - var on - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (St = on = (St - 480) | 0), - Mu(on, (_e |= 0), 32), - ms(on, a, h, g), - Ts(on, (a = (on + 416) | 0)), - ms((h = (on + 208) | 0), a, 64, 0), - Ts(h, d), - Ur(a, 64), - (St = (on + 480) | 0), - 0 - ) - }, - fa: function (d, a, h, g, _e) { - var on, hn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (St = on = (St - 544) | 0), - Mu((hn = (on - -64) | 0), (_e |= 0), 32), - ms(hn, a, h, g), - Ts(hn, (a = (on + 480) | 0)), - ms((h = (on + 272) | 0), a, 64, 0), - Ts(h, on), - Ur(a, 64), - (a = qA(d, on)), - (h = Iu(on, d, 64)), - (St = (on + 544) | 0), - h | ((0 | d) == (0 | on) ? -1 : a) - ) - }, - ga: io, - ha: io, - ia: op, - ja: _s, - ka: function (d, a, h) { - return 0 | Mu((d |= 0), (a |= 0), (h |= 0)) - }, - la: xA, - ma: function (d, a) { - a |= 0 - var h, - g = 0 - return ( - (St = h = (St + -64) | 0), - k0((d |= 0), h), - (g = c[(h + 28) >> 2]), - (d = c[(h + 24) >> 2]), - (pn[(a + 24) | 0] = d), - (pn[(a + 25) | 0] = d >>> 8), - (pn[(a + 26) | 0] = d >>> 16), - (pn[(a + 27) | 0] = d >>> 24), - (pn[(a + 28) | 0] = g), - (pn[(a + 29) | 0] = g >>> 8), - (pn[(a + 30) | 0] = g >>> 16), - (pn[(a + 31) | 0] = g >>> 24), - (g = c[(h + 20) >> 2]), - (d = c[(h + 16) >> 2]), - (pn[(a + 16) | 0] = d), - (pn[(a + 17) | 0] = d >>> 8), - (pn[(a + 18) | 0] = d >>> 16), - (pn[(a + 19) | 0] = d >>> 24), - (pn[(a + 20) | 0] = g), - (pn[(a + 21) | 0] = g >>> 8), - (pn[(a + 22) | 0] = g >>> 16), - (pn[(a + 23) | 0] = g >>> 24), - (g = c[(h + 12) >> 2]), - (d = c[(h + 8) >> 2]), - (pn[(a + 8) | 0] = d), - (pn[(a + 9) | 0] = d >>> 8), - (pn[(a + 10) | 0] = d >>> 16), - (pn[(a + 11) | 0] = d >>> 24), - (pn[(a + 12) | 0] = g), - (pn[(a + 13) | 0] = g >>> 8), - (pn[(a + 14) | 0] = g >>> 16), - (pn[(a + 15) | 0] = g >>> 24), - (g = c[(h + 4) >> 2]), - (d = c[h >> 2]), - (pn[0 | a] = d), - (pn[(a + 1) | 0] = d >>> 8), - (pn[(a + 2) | 0] = d >>> 16), - (pn[(a + 3) | 0] = d >>> 24), - (pn[(a + 4) | 0] = g), - (pn[(a + 5) | 0] = g >>> 8), - (pn[(a + 6) | 0] = g >>> 16), - (pn[(a + 7) | 0] = g >>> 24), - (St = (h - -64) | 0), - 0 - ) - }, - na: Ll, - oa: Xl, - pa: io, - qa: io, - ra: io, - sa: io, - ta: nu, - ua: io, - va: Go, - wa: Go, - xa: uu, - ya: function () { - return 1478 - }, - za: function (d, a, h) { - return 0 | Y0((d |= 0), (a |= 0), (h |= 0)) - }, - Aa: KA, - Ba: s0, - Ca: D0, - Da: N0, - Ea: fA, - Fa: pA, - Ga: QA, - Ha: function (d, a, h, g, _e, on, hn, j) { - var cn, Dn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (on |= 0), - (Dn = g |= 0), - (g = _e |= 0), - (St = cn = (St - 32) | 0), - (_e = -1), - s0(cn, (hn |= 0), (j |= 0)) || - ((_e = _c(d, a, h, Dn, g, on, cn)), Ur(cn, 32)), - (St = (cn + 32) | 0), - 0 | _e - ) - }, - Ia: function (d, a, h, g, _e, on) { - return ( - (d |= 0), - (a |= 0), - (_e |= 0), - (on |= 0), - (!(g |= 0) & ((h |= 0) >>> 0 >= 4294967280)) | g && - (ss(), so()), - 0 | _c((d + 16) | 0, d, a, h, g, _e, on) - ) - }, - Ja: function (d, a, h, g, _e, on, hn) { - return ( - 0 | - mA( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - }, - Ka: PA, - La: function (d, a, h, g, _e, on, hn, j) { - var cn, Dn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (on |= 0), - (Dn = g |= 0), - (g = _e |= 0), - (St = cn = (St - 32) | 0), - (_e = -1), - s0(cn, (hn |= 0), (j |= 0)) || - ((_e = b0(d, a, h, Dn, g, on, cn)), Ur(cn, 32)), - (St = (cn + 32) | 0), - 0 | _e - ) - }, - Ma: CA, - Na: function (d, a, h, g, _e, on, hn) { - return ( - 0 | - yA( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - }, - Oa: function (d, a, h, g, _e) { - ;(d |= 0), (a |= 0), (_e |= 0) - var on, - hn, - j, - cn = 0, - Dn = 0 - return ( - (hn = h |= 0), - (h = g |= 0), - (j = g = St), - (St = on = (g - 512) & -64), - (g = -1), - KA((on - -64) | 0, (on + 32) | 0) || - (Su((g = (on + 128) | 0), 0, 0, 24), - Us(g, (Dn = (on - -64) | 0), 32, 0), - Us(g, _e, 32, 0), - Bu(g, (cn = (on + 96) | 0), 24), - (g = mA( - (d + 32) | 0, - a, - hn, - h, - cn, - (g = _e), - (_e = (on + 32) | 0), - )), - (a = c[(on + 92) >> 2]), - (h = c[(on + 88) >> 2]), - (pn[(d + 24) | 0] = h), - (pn[(d + 25) | 0] = h >>> 8), - (pn[(d + 26) | 0] = h >>> 16), - (pn[(d + 27) | 0] = h >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(on + 84) >> 2]), - (h = c[(on + 80) >> 2]), - (pn[(d + 16) | 0] = h), - (pn[(d + 17) | 0] = h >>> 8), - (pn[(d + 18) | 0] = h >>> 16), - (pn[(d + 19) | 0] = h >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(on + 76) >> 2]), - (h = c[(on + 72) >> 2]), - (pn[(d + 8) | 0] = h), - (pn[(d + 9) | 0] = h >>> 8), - (pn[(d + 10) | 0] = h >>> 16), - (pn[(d + 11) | 0] = h >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(on + 68) >> 2]), - (h = c[(on + 64) >> 2]), - (pn[0 | d] = h), - (pn[(d + 1) | 0] = h >>> 8), - (pn[(d + 2) | 0] = h >>> 16), - (pn[(d + 3) | 0] = h >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - Ur(_e, 32), - Ur(Dn, 32), - Ur(cn, 24)), - (St = j), - 0 | g - ) - }, - Pa: function (d, a, h, g, _e, on) { - ;(d |= 0), (a |= 0), (_e |= 0), (on |= 0) - var hn, - j, - cn = 0, - Dn = 0 - return ( - (hn = cn = St), - (St = cn = (cn - 448) & -64), - (Dn = -1), - (j = g |= 0), - (!g & ((h |= 0) >>> 0 >= 48)) | g && - (Su((g = (cn - -64) | 0), 0, 0, 24), - Us(g, a, 32, 0), - Us(g, _e, 32, 0), - Bu((_e = g), (g = (cn + 32) | 0), 24), - (Dn = yA( - d, - (a + 32) | 0, - (h - 32) | 0, - (j - (h >>> 0 < 32)) | 0, - g, - a, - on, - ))), - (St = hn), - 0 | Dn - ) - }, - Qa: sp, - Ra: Y0, - Sa: T0, - Ta: EA, - Ua: D0, - Va: N0, - Wa: fA, - Xa: pA, - Ya: io, - Za: io, - _a: io, - $a: io, - ab: nu, - bb: io, - cb: Go, - db: Go, - eb: uu, - fb: Rs, - gb: io, - hb: Go, - ib: io, - jb: Go, - kb: js, - lb: io, - mb: Go, - nb: io, - ob: Go, - pb: r0, - qb: bs, - rb: Go, - sb: io, - tb: Go, - ub: i0, - vb: bs, - wb: Go, - xb: io, - yb: Go, - zb: o0, - Ab: bs, - Bb: Go, - Cb: io, - Db: Go, - Eb: Go, - Fb: bs, - Gb: io, - Hb: Go, - Ib: bs, - Jb: io, - Kb: rp, - Lb: ip, - Mb: function (d, a, h, g, _e, on, hn) { - return ( - 0 | - Il( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - }, - Nb: Su, - Ob: function (d, a, h, g) { - return 0 | Us((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - Pb: Bu, - Qb: _s, - Rb: Go, - Sb: bs, - Tb: io, - Ub: Go, - Vb: bs, - Wb: io, - Xb: Go, - Yb: Go, - Zb: ip, - _b: _s, - $b: Il, - ac: function (d, a, h, g, _e, on, hn, j, cn) { - return ( - 0 | - y0( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (j |= 0), - (cn |= 0), - ) - ) - }, - bc: Cu, - cc: function (d, a, h, g, _e, on) { - ;(d |= 0), (a |= 0), (_e |= 0), (on |= 0) - var hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0 - if ( - ((hn = -1), - !( - (((g |= 0) - 65) >>> 0 < 4294967232) | - ((h |= 0) >>> 0 > 64) - )) - ) { - e: { - if (!h || !a) { - if ((((Dn = 255 & g) - 65) & 255) >>> 0 > 191) { - _e - ? ((j = - 725511199 ^ - (rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24))), - (h = - -1694144372 ^ - (rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24))), - (a = - -1377402159 ^ - (rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24))), - (_e = - 1359893119 ^ - (rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)))) - : ((j = 725511199), - (h = -1694144372), - (a = -1377402159), - (_e = 1359893119)), - on - ? ((cn = - 327033209 ^ - (rn[(on + 8) | 0] | - (rn[(on + 9) | 0] << 8) | - (rn[(on + 10) | 0] << 16) | - (rn[(on + 11) | 0] << 24))), - (g = - 1541459225 ^ - (rn[(on + 12) | 0] | - (rn[(on + 13) | 0] << 8) | - (rn[(on + 14) | 0] << 16) | - (rn[(on + 15) | 0] << 24))), - (hn = - -79577749 ^ - (rn[0 | on] | - (rn[(on + 1) | 0] << 8) | - (rn[(on + 2) | 0] << 16) | - (rn[(on + 3) | 0] << 24))), - (on = - 528734635 ^ - (rn[(on + 4) | 0] | - (rn[(on + 5) | 0] << 8) | - (rn[(on + 6) | 0] << 16) | - (rn[(on + 7) | 0] << 24)))) - : ((cn = 327033209), - (g = 1541459225), - (hn = -79577749), - (on = 528734635)), - qo((d - -64) | 0, 0, 293), - (pn[(d + 56) | 0] = cn), - (pn[(d + 57) | 0] = cn >>> 8), - (pn[(d + 58) | 0] = cn >>> 16), - (pn[(d + 59) | 0] = cn >>> 24), - (pn[(d + 60) | 0] = g), - (pn[(d + 61) | 0] = g >>> 8), - (pn[(d + 62) | 0] = g >>> 16), - (pn[(d + 63) | 0] = g >>> 24), - (pn[(d + 48) | 0] = hn), - (pn[(d + 49) | 0] = hn >>> 8), - (pn[(d + 50) | 0] = hn >>> 16), - (pn[(d + 51) | 0] = hn >>> 24), - (pn[(d + 52) | 0] = on), - (pn[(d + 53) | 0] = on >>> 8), - (pn[(d + 54) | 0] = on >>> 16), - (pn[(d + 55) | 0] = on >>> 24), - (pn[(d + 40) | 0] = j), - (pn[(d + 41) | 0] = j >>> 8), - (pn[(d + 42) | 0] = j >>> 16), - (pn[(d + 43) | 0] = j >>> 24), - (pn[(d + 44) | 0] = h), - (pn[(d + 45) | 0] = h >>> 8), - (pn[(d + 46) | 0] = h >>> 16), - (pn[(d + 47) | 0] = h >>> 24), - (pn[(d + 32) | 0] = a), - (pn[(d + 33) | 0] = a >>> 8), - (pn[(d + 34) | 0] = a >>> 16), - (pn[(d + 35) | 0] = a >>> 24), - (pn[(d + 36) | 0] = _e), - (pn[(d + 37) | 0] = _e >>> 8), - (pn[(d + 38) | 0] = _e >>> 16), - (pn[(d + 39) | 0] = _e >>> 24), - (pn[(d + 24) | 0] = 241), - (pn[(d + 25) | 0] = 54), - (pn[(d + 26) | 0] = 29), - (pn[(d + 27) | 0] = 95), - (pn[(d + 28) | 0] = 58), - (pn[(d + 29) | 0] = 245), - (pn[(d + 30) | 0] = 79), - (pn[(d + 31) | 0] = 165), - (pn[(d + 16) | 0] = 43), - (pn[(d + 17) | 0] = 248), - (pn[(d + 18) | 0] = 148), - (pn[(d + 19) | 0] = 254), - (pn[(d + 20) | 0] = 114), - (pn[(d + 21) | 0] = 243), - (pn[(d + 22) | 0] = 110), - (pn[(d + 23) | 0] = 60), - (pn[(d + 8) | 0] = 59), - (pn[(d + 9) | 0] = 167), - (pn[(d + 10) | 0] = 202), - (pn[(d + 11) | 0] = 132), - (pn[(d + 12) | 0] = 133), - (pn[(d + 13) | 0] = 174), - (pn[(d + 14) | 0] = 103), - (pn[(d + 15) | 0] = 187), - (a = -222443256 ^ Dn), - (pn[0 | d] = a), - (pn[(d + 1) | 0] = a >>> 8), - (pn[(d + 2) | 0] = a >>> 16), - (pn[(d + 3) | 0] = a >>> 24), - (pn[(d + 4) | 0] = 103), - (pn[(d + 5) | 0] = 230), - (pn[(d + 6) | 0] = 9), - (pn[(d + 7) | 0] = 106) - break e - } - ss(), so() - } - ;(St = wn = (St - 128) | 0), - !a | - ((((Un = 255 & g) - 65) & 255) >>> 0 <= 191) | - ((((hn = 255 & h) - 65) & 255) >>> 0 <= 191) - ? (ss(), so()) - : (_e - ? ((j = - 725511199 ^ - (rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24))), - (h = - -1694144372 ^ - (rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24))), - (Dn = - -1377402159 ^ - (rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24))), - (_e = - 1359893119 ^ - (rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)))) - : ((j = 725511199), - (h = -1694144372), - (Dn = -1377402159), - (_e = 1359893119)), - on - ? ((cn = - 327033209 ^ - (rn[(on + 8) | 0] | - (rn[(on + 9) | 0] << 8) | - (rn[(on + 10) | 0] << 16) | - (rn[(on + 11) | 0] << 24))), - (g = - 1541459225 ^ - (rn[(on + 12) | 0] | - (rn[(on + 13) | 0] << 8) | - (rn[(on + 14) | 0] << 16) | - (rn[(on + 15) | 0] << 24))), - ($n = - -79577749 ^ - (rn[0 | on] | - (rn[(on + 1) | 0] << 8) | - (rn[(on + 2) | 0] << 16) | - (rn[(on + 3) | 0] << 24))), - (on = - 528734635 ^ - (rn[(on + 4) | 0] | - (rn[(on + 5) | 0] << 8) | - (rn[(on + 6) | 0] << 16) | - (rn[(on + 7) | 0] << 24)))) - : ((cn = 327033209), - (g = 1541459225), - ($n = -79577749), - (on = 528734635)), - qo((d - -64) | 0, 0, 293), - (pn[(d + 56) | 0] = cn), - (pn[(d + 57) | 0] = cn >>> 8), - (pn[(d + 58) | 0] = cn >>> 16), - (pn[(d + 59) | 0] = cn >>> 24), - (pn[(d + 60) | 0] = g), - (pn[(d + 61) | 0] = g >>> 8), - (pn[(d + 62) | 0] = g >>> 16), - (pn[(d + 63) | 0] = g >>> 24), - (pn[(d + 48) | 0] = $n), - (pn[(d + 49) | 0] = $n >>> 8), - (pn[(d + 50) | 0] = $n >>> 16), - (pn[(d + 51) | 0] = $n >>> 24), - (pn[(d + 52) | 0] = on), - (pn[(d + 53) | 0] = on >>> 8), - (pn[(d + 54) | 0] = on >>> 16), - (pn[(d + 55) | 0] = on >>> 24), - (pn[(d + 40) | 0] = j), - (pn[(d + 41) | 0] = j >>> 8), - (pn[(d + 42) | 0] = j >>> 16), - (pn[(d + 43) | 0] = j >>> 24), - (pn[(d + 44) | 0] = h), - (pn[(d + 45) | 0] = h >>> 8), - (pn[(d + 46) | 0] = h >>> 16), - (pn[(d + 47) | 0] = h >>> 24), - (pn[(d + 32) | 0] = Dn), - (pn[(d + 33) | 0] = Dn >>> 8), - (pn[(d + 34) | 0] = Dn >>> 16), - (pn[(d + 35) | 0] = Dn >>> 24), - (pn[(d + 36) | 0] = _e), - (pn[(d + 37) | 0] = _e >>> 8), - (pn[(d + 38) | 0] = _e >>> 16), - (pn[(d + 39) | 0] = _e >>> 24), - (pn[(d + 24) | 0] = 241), - (pn[(d + 25) | 0] = 54), - (pn[(d + 26) | 0] = 29), - (pn[(d + 27) | 0] = 95), - (pn[(d + 28) | 0] = 58), - (pn[(d + 29) | 0] = 245), - (pn[(d + 30) | 0] = 79), - (pn[(d + 31) | 0] = 165), - (pn[(d + 16) | 0] = 43), - (pn[(d + 17) | 0] = 248), - (pn[(d + 18) | 0] = 148), - (pn[(d + 19) | 0] = 254), - (pn[(d + 20) | 0] = 114), - (pn[(d + 21) | 0] = 243), - (pn[(d + 22) | 0] = 110), - (pn[(d + 23) | 0] = 60), - (pn[(d + 8) | 0] = 59), - (pn[(d + 9) | 0] = 167), - (pn[(d + 10) | 0] = 202), - (pn[(d + 11) | 0] = 132), - (pn[(d + 12) | 0] = 133), - (pn[(d + 13) | 0] = 174), - (pn[(d + 14) | 0] = 103), - (pn[(d + 15) | 0] = 187), - (h = -222443256 ^ ((hn << 8) | Un)), - (pn[0 | d] = h), - (pn[(d + 1) | 0] = h >>> 8), - (pn[(d + 2) | 0] = h >>> 16), - (pn[(d + 3) | 0] = h >>> 24), - (h = (hn >>> 24) ^ 1779033703), - (pn[(d + 4) | 0] = h), - (pn[(d + 5) | 0] = h >>> 8), - (pn[(d + 6) | 0] = h >>> 16), - (pn[(d + 7) | 0] = h >>> 24), - qo( - (hn + wn) | 0, - 0, - (hn << 24) >> 24 >= 0 ? (128 - hn) | 0 : 0, - ), - (h = Qo(wn, a, hn)), - Qo((d + 96) | 0, h, 128), - (a = - (128 + - (rn[(d + 352) | 0] | - (rn[(d + 353) | 0] << 8) | - (rn[(d + 354) | 0] << 16) | - (rn[(d + 355) | 0] << 24))) | - 0), - (pn[(d + 352) | 0] = a), - (pn[(d + 353) | 0] = a >>> 8), - (pn[(d + 354) | 0] = a >>> 16), - (pn[(d + 355) | 0] = a >>> 24), - Ur(h, 128), - (St = (h + 128) | 0)) - } - hn = 0 - } - return 0 | hn - }, - dc: Us, - ec: n0, - fc: bs, - gc: HA, - hc: function () { - return 1533 - }, - ic: io, - jc: function () { - return 104 - }, - kc: w0, - lc: function (d, a, h, g) { - return 0 | $s((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - mc: ut, - nc: function (d, a, h, g) { - ;(d |= 0), (a |= 0), (h |= 0), (g |= 0) - var _e, - on = 0 - return ( - (St = _e = (St - 112) | 0), - (on = c[8835]), - (c[(_e + 16) >> 2] = c[8834]), - (c[(_e + 20) >> 2] = on), - (on = c[8837]), - (c[(_e + 24) >> 2] = c[8836]), - (c[(_e + 28) >> 2] = on), - (on = c[8839]), - (c[(_e + 32) >> 2] = c[8838]), - (c[(_e + 36) >> 2] = on), - (c[(_e + 40) >> 2] = 0), - (c[(_e + 44) >> 2] = 0), - (on = c[8833]), - (c[(_e + 8) >> 2] = c[8832]), - (c[(_e + 12) >> 2] = on), - $s((on = (_e + 8) | 0), a, h, g), - ut(on, d), - (St = (_e + 112) | 0), - 0 - ) - }, - oc: bs, - pc: x0, - qc: hu, - rc: Al, - sc: Ts, - tc: HA, - uc: Go, - vc: bs, - wc: au, - xc: io, - yc: zl, - zc: rp, - Ac: Go, - Bc: bs, - Cc: au, - Dc: io, - Ec: zl, - Fc: _s, - Gc: function (d, a, h) { - return ( - (d |= 0), - Il((a |= 0), 32, (h |= 0), 32, 0, 0, 0), - 0 | El(d, a) - ) - }, - Hc: function (d, a) { - return (d |= 0), Ps((a |= 0), 32), 0 | El(d, a) - }, - Ic: function (d, a, h, g, _e) { - ;(a |= 0), (h |= 0), (g |= 0), (_e |= 0) - var on, - hn, - j = 0, - cn = 0 - if ( - ((hn = j = St), - (St = j = (j - 512) & -64), - (on = (d |= 0) || a)) - ) { - if (((cn = -1), !_l((j + 96) | 0, g, _e))) { - for ( - g = a || d, - d = 0, - Su((a = (j + 128) | 0), 0, 0, 64), - Us(a, (cn = (j + 96) | 0), 32, 0), - Ur(cn, 32), - Us(a, h, 32, 0), - Us(a, _e, 32, 0), - Bu(a, (j + 32) | 0, 64), - Ur(a, 384); - (a = ((_e = (j + 32) | 0) + d) | 0), - (pn[(d + on) | 0] = rn[0 | a]), - (pn[(d + g) | 0] = rn[(a + 32) | 0]), - (pn[((h = 1 | d) + on) | 0] = rn[(h + _e) | 0]), - (pn[(h + g) | 0] = rn[(a + 33) | 0]), - (0 | (d = (d + 2) | 0)) != 32; - - ); - Ur((j + 32) | 0, 64), (cn = 0) - } - return (St = hn), 0 | cn - } - ss(), so() - }, - Jc: function (d, a, h, g, _e) { - ;(a |= 0), (h |= 0), (g |= 0), (_e |= 0) - var on, - hn, - j = 0, - cn = 0 - if ( - ((hn = j = St), - (St = j = (j - 512) & -64), - (on = (d |= 0) || a)) - ) { - if (((cn = -1), !_l((j + 96) | 0, g, _e))) { - for ( - g = a || d, - d = 0, - Su((a = (j + 128) | 0), 0, 0, 64), - Us(a, (cn = (j + 96) | 0), 32, 0), - Ur(cn, 32), - Us(a, _e, 32, 0), - Us(a, h, 32, 0), - Bu(a, (j + 32) | 0, 64), - Ur(a, 384); - (a = ((_e = (j + 32) | 0) + d) | 0), - (pn[(d + g) | 0] = rn[0 | a]), - (pn[(d + on) | 0] = rn[(a + 32) | 0]), - (pn[((h = 1 | d) + g) | 0] = rn[(h + _e) | 0]), - (pn[(h + on) | 0] = rn[(a + 33) | 0]), - (0 | (d = (d + 2) | 0)) != 32; - - ); - Ur((j + 32) | 0, 64), (cn = 0) - } - return (St = hn), 0 | cn - } - ss(), so() - }, - Kc: io, - Lc: io, - Mc: io, - Nc: io, - Oc: function () { - return 1315 - }, - Pc: ap, - Qc: Go, - Rc: io, - Sc: UA, - Tc: LA, - Uc: function (d, a) { - return 0 | Ks((d |= 0), (a |= 0)) - }, - Vc: $A, - Wc: function (d, a) { - return 0 | Ys((d |= 0), (a |= 0)) - }, - Xc: function () { - return 1496 - }, - Yc: _s, - Zc: UA, - _c: LA, - $c: Ks, - ad: $A, - bd: Ys, - cd: Go, - dd: io, - ed: ap, - fd: _s, - gd: u0, - hd: Go, - id: Ss, - jd: du, - kd: Ss, - ld: Go, - md: Rl, - nd: function () { - return 1549 - }, - od: d0, - pd: Ss, - qd: Ol, - rd: Ql, - sd: Dl, - td: _f, - ud: function () { - return 6 - }, - vd: function () { - return 134217728 - }, - wd: au, - xd: function () { - return 536870912 - }, - yd: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - 0 | - Jl( - (d |= 0), - (d = 0) | (a |= 0), - (h |= 0), - (g |= 0), - d | (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - (Dn |= 0), - ($n |= 0), - ) - ) - }, - zd: function (d, a, h, g, _e, on, hn) { - return ( - 0 | - uA( - (d |= 0), - (a |= 0), - (d = 0) | (h |= 0), - (g |= 0), - d | (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - }, - Ad: function (d, a, h, g) { - return 0 | YA((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - Bd: function (d, a, h, g) { - return 0 | WA((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - Cd: function (d, a, h, g) { - return 0 | ZA((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - Dd: Ju, - Ed: Go, - Fd: Ss, - Gd: du, - Hd: Ss, - Id: Go, - Jd: Rl, - Kd: tp, - Ld: u0, - Md: Ss, - Nd: Ol, - Od: Ql, - Pd: Ju, - Qd: ep, - Rd: d0, - Sd: jA, - Td: Dl, - Ud: Pl, - Vd: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - return ( - 0 | - xl( - (d |= 0), - (d = 0) | (a |= 0), - (h |= 0), - (g |= 0), - d | (_e |= 0), - (on |= 0), - (hn |= 0), - d | (j |= 0), - (cn |= 0), - (Dn |= 0), - ($n |= 0), - ) - ) - }, - Wd: bA, - Xd: function (d, a, h, g) { - return 0 | zA((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - Yd: u0, - Zd: Ju, - _d: Ju, - $d: Go, - ae: Ss, - be: du, - ce: Ss, - de: Go, - ee: Rl, - fe: tp, - ge: u0, - he: Ss, - ie: Ol, - je: Ql, - ke: Ju, - le: ep, - me: d0, - ne: jA, - oe: Dl, - pe: Pl, - qe: function (d, a, h, g, _e, on, hn, j, cn, Dn, $n) { - ;(d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (j |= 0), - (cn |= 0), - (Dn |= 0), - (a |= 0), - (_e |= 0), - (j |= 0) - e: { - switch ((($n |= 0) - 1) | 0) { - case 0: - d = Jl(d, a, h, g, _e, on, hn, j, cn, Dn, 1) - break e - case 1: - d = xl(d, a, h, g, _e, on, hn, j, cn, Dn, 2) - break e - } - ;(c[9129] = 28), (d = -1) - } - return 0 | d - }, - re: bA, - se: function (d, a, h, g, _e, on, hn, j) { - ;(d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (h |= 0), - (_e |= 0) - e: { - switch (((j |= 0) - 1) | 0) { - case 1: - d = lA(d, a, h, g, _e, on, hn) - break e - default: - ss(), so() - case 0: - } - d = uA(d, a, h, g, _e, on, hn) - } - return 0 | d - }, - te: function (d, a, h, g) { - return ( - (a |= 0), - (h |= 0), - (g |= 0), - ou((d |= 0), 1559, 10) - ? ou(d, 1549, 9) - ? ((c[9129] = 28), (d = -1)) - : (d = YA(d, a, h, g)) - : (d = zA(d, a, h, g)), - 0 | d - ) - }, - ue: function (d, a, h, g) { - return ( - (a |= 0), - (h |= 0), - (g |= 0), - ou((d |= 0), 1559, 10) - ? ou(d, 1549, 9) - ? ((c[9129] = 28), (d = -1)) - : (d = WA(d, a, h, g)) - : (d = ZA(d, a, h, g)), - 0 | d - ) - }, - ve: function () { - return 1157 - }, - we: function () { - return 1438 - }, - xe: El, - ye: _l, - ze: io, - Ae: io, - Be: iu, - Ce: U0, - De: io, - Ee: io, - Fe: io, - Ge: nu, - He: io, - Ie: Go, - Je: Go, - Ke: uu, - Le: function () { - return 1488 - }, - Me: D0, - Ne: N0, - Oe: _s, - Pe: QA, - Qe: function (d, a, h, g, _e, on) { - return ( - (d |= 0), - (a |= 0), - (_e |= 0), - (on |= 0), - (!(g |= 0) & ((h |= 0) >>> 0 >= 4294967280)) | g && - (ss(), so()), - _c((d + 16) | 0, d, a, h, g, _e, on), - 0 - ) - }, - Re: PA, - Se: CA, - Te: D0, - Ue: N0, - Ve: io, - We: nu, - Xe: io, - Ye: Go, - Ze: Go, - _e: uu, - $e: _s, - af: _s, - bf: function (d, a, h) { - return ( - (d |= 0), - (h |= 0), - Ps((a |= 0), 24), - Rs(d, a, h, 0), - (pn[(d + 32) | 0] = 1), - (pn[(d + 33) | 0] = 0), - (pn[(d + 34) | 0] = 0), - (pn[(d + 35) | 0] = 0), - (h = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (a = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (pn[(d + 44) | 0] = 0), - (pn[(d + 45) | 0] = 0), - (pn[(d + 46) | 0] = 0), - (pn[(d + 47) | 0] = 0), - (pn[(d + 48) | 0] = 0), - (pn[(d + 49) | 0] = 0), - (pn[(d + 50) | 0] = 0), - (pn[(d + 51) | 0] = 0), - (pn[(d + 36) | 0] = h), - (pn[(d + 37) | 0] = h >>> 8), - (pn[(d + 38) | 0] = h >>> 16), - (pn[(d + 39) | 0] = h >>> 24), - (pn[(d + 40) | 0] = a), - (pn[(d + 41) | 0] = a >>> 8), - (pn[(d + 42) | 0] = a >>> 16), - (pn[(d + 43) | 0] = a >>> 24), - 0 - ) - }, - cf: function (d, a, h) { - return ( - Rs((d |= 0), (a |= 0), (h |= 0), 0), - (pn[(d + 32) | 0] = 1), - (pn[(d + 33) | 0] = 0), - (pn[(d + 34) | 0] = 0), - (pn[(d + 35) | 0] = 0), - (h = - rn[(a + 16) | 0] | - (rn[(a + 17) | 0] << 8) | - (rn[(a + 18) | 0] << 16) | - (rn[(a + 19) | 0] << 24)), - (a = - rn[(a + 20) | 0] | - (rn[(a + 21) | 0] << 8) | - (rn[(a + 22) | 0] << 16) | - (rn[(a + 23) | 0] << 24)), - (pn[(d + 44) | 0] = 0), - (pn[(d + 45) | 0] = 0), - (pn[(d + 46) | 0] = 0), - (pn[(d + 47) | 0] = 0), - (pn[(d + 48) | 0] = 0), - (pn[(d + 49) | 0] = 0), - (pn[(d + 50) | 0] = 0), - (pn[(d + 51) | 0] = 0), - (pn[(d + 36) | 0] = h), - (pn[(d + 37) | 0] = h >>> 8), - (pn[(d + 38) | 0] = h >>> 16), - (pn[(d + 39) | 0] = h >>> 24), - (pn[(d + 40) | 0] = a), - (pn[(d + 41) | 0] = a >>> 8), - (pn[(d + 42) | 0] = a >>> 16), - (pn[(d + 43) | 0] = a >>> 24), - 0 - ) - }, - df: function (d) { - var a, - h = 0, - g = 0 - ;(St = a = (St - 48) | 0), - (h = - rn[(28 + (d |= 0)) | 0] | - (rn[(d + 29) | 0] << 8) | - (rn[(d + 30) | 0] << 16) | - (rn[(d + 31) | 0] << 24)), - (c[(a + 24) >> 2] = - rn[(d + 24) | 0] | - (rn[(d + 25) | 0] << 8) | - (rn[(d + 26) | 0] << 16) | - (rn[(d + 27) | 0] << 24)), - (c[(a + 28) >> 2] = h), - (h = - rn[(d + 20) | 0] | - (rn[(d + 21) | 0] << 8) | - (rn[(d + 22) | 0] << 16) | - (rn[(d + 23) | 0] << 24)), - (c[(a + 16) >> 2] = - rn[(d + 16) | 0] | - (rn[(d + 17) | 0] << 8) | - (rn[(d + 18) | 0] << 16) | - (rn[(d + 19) | 0] << 24)), - (c[(a + 20) >> 2] = h), - (h = - rn[(d + 4) | 0] | - (rn[(d + 5) | 0] << 8) | - (rn[(d + 6) | 0] << 16) | - (rn[(d + 7) | 0] << 24)), - (c[a >> 2] = - rn[0 | d] | - (rn[(d + 1) | 0] << 8) | - (rn[(d + 2) | 0] << 16) | - (rn[(d + 3) | 0] << 24)), - (c[(a + 4) >> 2] = h), - (h = - rn[(d + 12) | 0] | - (rn[(d + 13) | 0] << 8) | - (rn[(d + 14) | 0] << 16) | - (rn[(d + 15) | 0] << 24)), - (c[(a + 8) >> 2] = - rn[(d + 8) | 0] | - (rn[(d + 9) | 0] << 8) | - (rn[(d + 10) | 0] << 16) | - (rn[(d + 11) | 0] << 24)), - (c[(a + 12) >> 2] = h), - (h = - rn[(d + 40) | 0] | - (rn[(d + 41) | 0] << 8) | - (rn[(d + 42) | 0] << 16) | - (rn[(d + 43) | 0] << 24)), - (c[(a + 32) >> 2] = - rn[(d + 36) | 0] | - (rn[(d + 37) | 0] << 8) | - (rn[(d + 38) | 0] << 16) | - (rn[(d + 39) | 0] << 24)), - (c[(a + 36) >> 2] = h), - O0(a, a, 40, 0, (d + 32) | 0, d), - (h = c[(a + 28) >> 2]), - (g = c[(a + 24) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = h), - (pn[(d + 29) | 0] = h >>> 8), - (pn[(d + 30) | 0] = h >>> 16), - (pn[(d + 31) | 0] = h >>> 24), - (h = c[(a + 20) >> 2]), - (g = c[(a + 16) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = h), - (pn[(d + 21) | 0] = h >>> 8), - (pn[(d + 22) | 0] = h >>> 16), - (pn[(d + 23) | 0] = h >>> 24), - (h = c[(a + 12) >> 2]), - (g = c[(a + 8) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = h), - (pn[(d + 13) | 0] = h >>> 8), - (pn[(d + 14) | 0] = h >>> 16), - (pn[(d + 15) | 0] = h >>> 24), - (h = c[(a + 4) >> 2]), - (g = c[a >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = h), - (pn[(d + 5) | 0] = h >>> 8), - (pn[(d + 6) | 0] = h >>> 16), - (pn[(d + 7) | 0] = h >>> 24), - (g = c[(a + 36) >> 2]), - (h = c[(a + 32) >> 2]), - (pn[(d + 32) | 0] = 1), - (pn[(d + 33) | 0] = 0), - (pn[(d + 34) | 0] = 0), - (pn[(d + 35) | 0] = 0), - (pn[(d + 36) | 0] = h), - (pn[(d + 37) | 0] = h >>> 8), - (pn[(d + 38) | 0] = h >>> 16), - (pn[(d + 39) | 0] = h >>> 24), - (pn[(d + 40) | 0] = g), - (pn[(d + 41) | 0] = g >>> 8), - (pn[(d + 42) | 0] = g >>> 16), - (pn[(d + 43) | 0] = g >>> 24), - (St = (a + 48) | 0) - }, - ef: function (d, a, h, g, _e, on, hn, j, cn, Dn) { - ;(d |= 0), (a |= 0), (g |= 0), (hn |= 0), (cn |= 0), (Dn |= 0) - var $n, - wn = 0, - Un = 0, - Yn = 0 - return ( - (wn = _e |= 0), - (_e = on |= 0), - (wn |= on = 0), - ($n = on | (j |= 0)), - (St = on = (St - 384) | 0), - (h |= 0) && ((c[h >> 2] = 0), (c[(h + 4) >> 2] = 0)), - !_e & (wn >>> 0 < 4294967279) - ? (yu( - (Un = (on + 16) | 0), - 64, - 0, - (Yn = (d + 32) | 0), - d, - ), - Ks((j = (on + 80) | 0), Un), - Ur(Un, 64), - Fo(j, hn, $n, cn), - Fo(j, 35680, (0 - $n) & 15, 0), - (c[(on + 72) >> 2] = 0), - (c[(on + 76) >> 2] = 0), - (c[(hn = (on - -64) | 0) >> 2] = 0), - (c[(hn + 4) >> 2] = 0), - (c[(on + 56) >> 2] = 0), - (c[(on + 60) >> 2] = 0), - (c[(on + 48) >> 2] = 0), - (c[(on + 52) >> 2] = 0), - (c[(on + 40) >> 2] = 0), - (c[(on + 44) >> 2] = 0), - (c[(on + 32) >> 2] = 0), - (c[(on + 36) >> 2] = 0), - (c[(on + 16) >> 2] = 0), - (c[(on + 20) >> 2] = 0), - (c[(on + 24) >> 2] = 0), - (c[(on + 28) >> 2] = 0), - (pn[(on + 16) | 0] = Dn), - vu(Un, Un, 64, 0, Yn, 1, d), - Fo(j, Un, 64, 0), - (pn[0 | a] = rn[(on + 16) | 0]), - vu((a = (a + 1) | 0), g, wn, _e, Yn, 2, d), - Fo(j, a, wn, _e), - Fo(j, 35680, 15 & wn, 0), - (c[(on + 8) >> 2] = $n), - (c[(on + 12) >> 2] = cn), - Fo(j, (g = (on + 8) | 0), 8, 0), - (c[(on + 8) >> 2] = wn - -64), - (c[(on + 12) >> 2] = - _e - (((wn >>> 0 < 4294967232) - 1) | 0)), - Fo(j, g, 8, 0), - Ys(j, (a = (a + wn) | 0)), - Ur(j, 256), - (pn[(d + 36) | 0] = rn[(d + 36) | 0] ^ rn[0 | a]), - (pn[(d + 37) | 0] = rn[(d + 37) | 0] ^ rn[(a + 1) | 0]), - (pn[(d + 38) | 0] = rn[(d + 38) | 0] ^ rn[(a + 2) | 0]), - (pn[(d + 39) | 0] = rn[(d + 39) | 0] ^ rn[(a + 3) | 0]), - (pn[(d + 40) | 0] = rn[(d + 40) | 0] ^ rn[(a + 4) | 0]), - (pn[(d + 41) | 0] = rn[(d + 41) | 0] ^ rn[(a + 5) | 0]), - (pn[(d + 42) | 0] = rn[(d + 42) | 0] ^ rn[(a + 6) | 0]), - (pn[(d + 43) | 0] = rn[(d + 43) | 0] ^ rn[(a + 7) | 0]), - sA(Yn), - (2 & Dn || Qs(Yn, 4)) && - ((a = - rn[(d + 28) | 0] | - (rn[(d + 29) | 0] << 8) | - (rn[(d + 30) | 0] << 16) | - (rn[(d + 31) | 0] << 24)), - (c[(on + 360) >> 2] = - rn[(d + 24) | 0] | - (rn[(d + 25) | 0] << 8) | - (rn[(d + 26) | 0] << 16) | - (rn[(d + 27) | 0] << 24)), - (c[(on + 364) >> 2] = a), - (a = - rn[(d + 20) | 0] | - (rn[(d + 21) | 0] << 8) | - (rn[(d + 22) | 0] << 16) | - (rn[(d + 23) | 0] << 24)), - (c[(on + 352) >> 2] = - rn[(d + 16) | 0] | - (rn[(d + 17) | 0] << 8) | - (rn[(d + 18) | 0] << 16) | - (rn[(d + 19) | 0] << 24)), - (c[(on + 356) >> 2] = a), - (a = - rn[(d + 4) | 0] | - (rn[(d + 5) | 0] << 8) | - (rn[(d + 6) | 0] << 16) | - (rn[(d + 7) | 0] << 24)), - (c[(on + 336) >> 2] = - rn[0 | d] | - (rn[(d + 1) | 0] << 8) | - (rn[(d + 2) | 0] << 16) | - (rn[(d + 3) | 0] << 24)), - (c[(on + 340) >> 2] = a), - (a = - rn[(d + 12) | 0] | - (rn[(d + 13) | 0] << 8) | - (rn[(d + 14) | 0] << 16) | - (rn[(d + 15) | 0] << 24)), - (c[(on + 344) >> 2] = - rn[(d + 8) | 0] | - (rn[(d + 9) | 0] << 8) | - (rn[(d + 10) | 0] << 16) | - (rn[(d + 11) | 0] << 24)), - (c[(on + 348) >> 2] = a), - (a = - rn[(d + 40) | 0] | - (rn[(d + 41) | 0] << 8) | - (rn[(d + 42) | 0] << 16) | - (rn[(d + 43) | 0] << 24)), - (c[(on + 368) >> 2] = - rn[(d + 36) | 0] | - (rn[(d + 37) | 0] << 8) | - (rn[(d + 38) | 0] << 16) | - (rn[(d + 39) | 0] << 24)), - (c[(on + 372) >> 2] = a), - O0((a = (on + 336) | 0), a, 40, 0, Yn, d), - (a = c[(on + 364) >> 2]), - (g = c[(on + 360) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(on + 356) >> 2]), - (g = c[(on + 352) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(on + 348) >> 2]), - (g = c[(on + 344) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(on + 340) >> 2]), - (g = c[(on + 336) >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - (a = c[(on + 368) >> 2]), - (g = c[(on + 372) >> 2]), - (pn[(d + 32) | 0] = 1), - (pn[(d + 33) | 0] = 0), - (pn[(d + 34) | 0] = 0), - (pn[(d + 35) | 0] = 0), - (pn[(d + 36) | 0] = a), - (pn[(d + 37) | 0] = a >>> 8), - (pn[(d + 38) | 0] = a >>> 16), - (pn[(d + 39) | 0] = a >>> 24), - (pn[(d + 40) | 0] = g), - (pn[(d + 41) | 0] = g >>> 8), - (pn[(d + 42) | 0] = g >>> 16), - (pn[(d + 43) | 0] = g >>> 24)), - h && - ((_e = - (d = (wn + 17) | 0) >>> 0 < 17 ? (_e + 1) | 0 : _e), - (c[h >> 2] = d), - (c[(h + 4) >> 2] = _e)), - (St = (on + 384) | 0)) - : (ss(), so()), - 0 - ) - }, - ff: function (d, a, h, g, _e, on, hn, j, cn, Dn) { - ;(d |= 0), (a |= 0), (g |= 0), (_e |= 0), (j |= 0), (Dn |= 0) - var $n, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0 - ;(wn = on |= 0), - (on = hn |= 0), - (Un = 0 | wn), - ($n = cn |= 0), - (St = hn = (St - 400) | 0), - (h |= 0) && ((c[h >> 2] = 0), (c[(h + 4) >> 2] = 0)), - g && (pn[0 | g] = 255), - (at = -1) - e: { - n: { - if (!(!on & (Un >>> 0 < 17))) { - if ( - ((nt = wn = (on - (Un >>> 0 < 17)) | 0), - (!wn & ((cn = (Un - 17) | 0) >>> 0 >= 4294967279)) | - wn) - ) - break n - yu((Yn = (hn + 32) | 0), 64, 0, (et = (d + 32) | 0), d), - Ks((wn = (hn + 96) | 0), Yn), - Ur(Yn, 64), - Fo(wn, j, $n, Dn), - Fo(wn, 35680, (0 - $n) & 15, 0), - (c[(hn + 88) >> 2] = 0), - (c[(hn + 92) >> 2] = 0), - (c[(hn + 80) >> 2] = 0), - (c[(hn + 84) >> 2] = 0), - (c[(hn + 72) >> 2] = 0), - (c[(hn + 76) >> 2] = 0), - (c[(j = (hn - -64) | 0) >> 2] = 0), - (c[(j + 4) >> 2] = 0), - (c[(hn + 56) >> 2] = 0), - (c[(hn + 60) >> 2] = 0), - (c[(hn + 48) >> 2] = 0), - (c[(hn + 52) >> 2] = 0), - (c[(hn + 40) >> 2] = 0), - (c[(hn + 44) >> 2] = 0), - (c[(hn + 32) >> 2] = 0), - (c[(hn + 36) >> 2] = 0), - (pn[(hn + 32) | 0] = rn[0 | _e]), - vu(Yn, Yn, 64, 0, et, 1, d), - (j = rn[(hn + 32) | 0]), - (pn[(hn + 32) | 0] = rn[0 | _e]), - Fo(wn, Yn, 64, 0), - Fo(wn, (_e = (_e + 1) | 0), cn, nt), - Fo(wn, 35680, (Un - 1) & 15, 0), - (c[(hn + 24) >> 2] = $n), - (c[(hn + 28) >> 2] = Dn), - Fo(wn, (Dn = (hn + 24) | 0), 8, 0), - (on = - (Un = (Un + 47) | 0) >>> 0 < 47 - ? (on + 1) | 0 - : on), - (c[(hn + 24) >> 2] = Un), - (c[(hn + 28) >> 2] = on), - Fo(wn, Dn, 8, 0), - Ys(wn, hn), - Ur(wn, 256), - Iu(hn, (_e + cn) | 0, 16) - ? Ur(hn, 16) - : (vu(a, _e, cn, nt, et, 2, d), - (pn[(d + 36) | 0] = - rn[(d + 36) | 0] ^ rn[0 | hn]), - (pn[(d + 37) | 0] = - rn[(d + 37) | 0] ^ rn[(hn + 1) | 0]), - (pn[(d + 38) | 0] = - rn[(d + 38) | 0] ^ rn[(hn + 2) | 0]), - (pn[(d + 39) | 0] = - rn[(d + 39) | 0] ^ rn[(hn + 3) | 0]), - (pn[(d + 40) | 0] = - rn[(d + 40) | 0] ^ rn[(hn + 4) | 0]), - (pn[(d + 41) | 0] = - rn[(d + 41) | 0] ^ rn[(hn + 5) | 0]), - (pn[(d + 42) | 0] = - rn[(d + 42) | 0] ^ rn[(hn + 6) | 0]), - (pn[(d + 43) | 0] = - rn[(d + 43) | 0] ^ rn[(hn + 7) | 0]), - sA(et), - (2 & j || Qs(et, 4)) && - ((a = - rn[(d + 28) | 0] | - (rn[(d + 29) | 0] << 8) | - (rn[(d + 30) | 0] << 16) | - (rn[(d + 31) | 0] << 24)), - (c[(hn + 376) >> 2] = - rn[(d + 24) | 0] | - (rn[(d + 25) | 0] << 8) | - (rn[(d + 26) | 0] << 16) | - (rn[(d + 27) | 0] << 24)), - (c[(hn + 380) >> 2] = a), - (a = - rn[(d + 20) | 0] | - (rn[(d + 21) | 0] << 8) | - (rn[(d + 22) | 0] << 16) | - (rn[(d + 23) | 0] << 24)), - (c[(hn + 368) >> 2] = - rn[(d + 16) | 0] | - (rn[(d + 17) | 0] << 8) | - (rn[(d + 18) | 0] << 16) | - (rn[(d + 19) | 0] << 24)), - (c[(hn + 372) >> 2] = a), - (a = - rn[(d + 4) | 0] | - (rn[(d + 5) | 0] << 8) | - (rn[(d + 6) | 0] << 16) | - (rn[(d + 7) | 0] << 24)), - (c[(hn + 352) >> 2] = - rn[0 | d] | - (rn[(d + 1) | 0] << 8) | - (rn[(d + 2) | 0] << 16) | - (rn[(d + 3) | 0] << 24)), - (c[(hn + 356) >> 2] = a), - (a = - rn[(d + 12) | 0] | - (rn[(d + 13) | 0] << 8) | - (rn[(d + 14) | 0] << 16) | - (rn[(d + 15) | 0] << 24)), - (c[(hn + 360) >> 2] = - rn[(d + 8) | 0] | - (rn[(d + 9) | 0] << 8) | - (rn[(d + 10) | 0] << 16) | - (rn[(d + 11) | 0] << 24)), - (c[(hn + 364) >> 2] = a), - (a = - rn[(d + 40) | 0] | - (rn[(d + 41) | 0] << 8) | - (rn[(d + 42) | 0] << 16) | - (rn[(d + 43) | 0] << 24)), - (c[(hn + 384) >> 2] = - rn[(d + 36) | 0] | - (rn[(d + 37) | 0] << 8) | - (rn[(d + 38) | 0] << 16) | - (rn[(d + 39) | 0] << 24)), - (c[(hn + 388) >> 2] = a), - O0((a = (hn + 352) | 0), a, 40, 0, et, d), - (a = c[(hn + 380) >> 2]), - (_e = c[(hn + 376) >> 2]), - (pn[(d + 24) | 0] = _e), - (pn[(d + 25) | 0] = _e >>> 8), - (pn[(d + 26) | 0] = _e >>> 16), - (pn[(d + 27) | 0] = _e >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(hn + 372) >> 2]), - (_e = c[(hn + 368) >> 2]), - (pn[(d + 16) | 0] = _e), - (pn[(d + 17) | 0] = _e >>> 8), - (pn[(d + 18) | 0] = _e >>> 16), - (pn[(d + 19) | 0] = _e >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(hn + 364) >> 2]), - (_e = c[(hn + 360) >> 2]), - (pn[(d + 8) | 0] = _e), - (pn[(d + 9) | 0] = _e >>> 8), - (pn[(d + 10) | 0] = _e >>> 16), - (pn[(d + 11) | 0] = _e >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(hn + 356) >> 2]), - (_e = c[(hn + 352) >> 2]), - (pn[0 | d] = _e), - (pn[(d + 1) | 0] = _e >>> 8), - (pn[(d + 2) | 0] = _e >>> 16), - (pn[(d + 3) | 0] = _e >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - (a = c[(hn + 384) >> 2]), - (_e = c[(hn + 388) >> 2]), - (pn[(d + 32) | 0] = 1), - (pn[(d + 33) | 0] = 0), - (pn[(d + 34) | 0] = 0), - (pn[(d + 35) | 0] = 0), - (pn[(d + 36) | 0] = a), - (pn[(d + 37) | 0] = a >>> 8), - (pn[(d + 38) | 0] = a >>> 16), - (pn[(d + 39) | 0] = a >>> 24), - (pn[(d + 40) | 0] = _e), - (pn[(d + 41) | 0] = _e >>> 8), - (pn[(d + 42) | 0] = _e >>> 16), - (pn[(d + 43) | 0] = _e >>> 24)), - h && ((c[h >> 2] = cn), (c[(h + 4) >> 2] = nt)), - (at = 0), - g && (pn[0 | g] = j)) - } - St = (hn + 400) | 0 - break e - } - ss(), so() - } - return 0 | at - }, - gf: function () { - return 52 - }, - hf: function () { - return 17 - }, - jf: nu, - kf: io, - lf: function () { - return -18 - }, - mf: du, - nf: u0, - of: Ju, - pf: d0, - qf: au, - rf: Go, - sf: function () { - return 1523 - }, - tf: p0, - uf: function (d) { - Ps((d |= 0), 16) - }, - vf: au, - wf: Go, - xf: p0, - yf: x0, - zf: bs, - Af: io, - Bf: io, - Cf: bs, - Df: dp, - Ef: function () { - return 1449 - }, - Ff: function (d, a, h) { - return 0 | v0((d |= 0), (a |= 0), (h |= 0)) - }, - Gf: function (d, a) { - return 0 | it((d |= 0), (a |= 0)) - }, - Hf: iA, - If: Wl, - Jf: DA, - Kf: TA, - Lf: function (d) { - return 0 | XA((d |= 0)) - }, - Mf: Al, - Nf: function (d, a, h, g) { - return 0 | vA((d |= 0), (a |= 0), (h |= 0), (g |= 0)) - }, - Of: function (d, a, h) { - return 0 | wA((d |= 0), (a |= 0), (h |= 0)) - }, - Pf: x0, - Qf: bs, - Rf: io, - Sf: io, - Tf: bs, - Uf: dp, - Vf: function (d, a) { - d |= 0 - var h, - g, - _e, - on, - hn, - j, - cn = 0 - return ( - (h = - rn[(8 + (cn = a |= 0)) | 0] | - (rn[(cn + 9) | 0] << 8) | - (rn[(cn + 10) | 0] << 16) | - (rn[(cn + 11) | 0] << 24)), - (g = - rn[(cn + 12) | 0] | - (rn[(cn + 13) | 0] << 8) | - (rn[(cn + 14) | 0] << 16) | - (rn[(cn + 15) | 0] << 24)), - (_e = - rn[(cn + 16) | 0] | - (rn[(cn + 17) | 0] << 8) | - (rn[(cn + 18) | 0] << 16) | - (rn[(cn + 19) | 0] << 24)), - (on = - rn[(cn + 20) | 0] | - (rn[(cn + 21) | 0] << 8) | - (rn[(cn + 22) | 0] << 16) | - (rn[(cn + 23) | 0] << 24)), - (hn = - rn[0 | cn] | - (rn[(cn + 1) | 0] << 8) | - (rn[(cn + 2) | 0] << 16) | - (rn[(cn + 3) | 0] << 24)), - (a = - rn[(cn + 4) | 0] | - (rn[(cn + 5) | 0] << 8) | - (rn[(cn + 6) | 0] << 16) | - (rn[(cn + 7) | 0] << 24)), - (j = - rn[(cn + 28) | 0] | - (rn[(cn + 29) | 0] << 8) | - (rn[(cn + 30) | 0] << 16) | - (rn[(cn + 31) | 0] << 24)), - (cn = - rn[(cn + 24) | 0] | - (rn[(cn + 25) | 0] << 8) | - (rn[(cn + 26) | 0] << 16) | - (rn[(cn + 27) | 0] << 24)), - (pn[(d + 24) | 0] = cn), - (pn[(d + 25) | 0] = cn >>> 8), - (pn[(d + 26) | 0] = cn >>> 16), - (pn[(d + 27) | 0] = cn >>> 24), - (pn[(d + 28) | 0] = j), - (pn[(d + 29) | 0] = j >>> 8), - (pn[(d + 30) | 0] = j >>> 16), - (pn[(d + 31) | 0] = j >>> 24), - (pn[(d + 16) | 0] = _e), - (pn[(d + 17) | 0] = _e >>> 8), - (pn[(d + 18) | 0] = _e >>> 16), - (pn[(d + 19) | 0] = _e >>> 24), - (pn[(d + 20) | 0] = on), - (pn[(d + 21) | 0] = on >>> 8), - (pn[(d + 22) | 0] = on >>> 16), - (pn[(d + 23) | 0] = on >>> 24), - (pn[(d + 8) | 0] = h), - (pn[(d + 9) | 0] = h >>> 8), - (pn[(d + 10) | 0] = h >>> 16), - (pn[(d + 11) | 0] = h >>> 24), - (pn[(d + 12) | 0] = g), - (pn[(d + 13) | 0] = g >>> 8), - (pn[(d + 14) | 0] = g >>> 16), - (pn[(d + 15) | 0] = g >>> 24), - (pn[0 | d] = hn), - (pn[(d + 1) | 0] = hn >>> 8), - (pn[(d + 2) | 0] = hn >>> 16), - (pn[(d + 3) | 0] = hn >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - 0 - ) - }, - Wf: function (d, a) { - d |= 0 - var h, - g, - _e, - on, - hn, - j, - cn = 0 - return ( - (h = - rn[(32 + (cn = a |= 0)) | 0] | - (rn[(cn + 33) | 0] << 8) | - (rn[(cn + 34) | 0] << 16) | - (rn[(cn + 35) | 0] << 24)), - (g = - rn[(cn + 36) | 0] | - (rn[(cn + 37) | 0] << 8) | - (rn[(cn + 38) | 0] << 16) | - (rn[(cn + 39) | 0] << 24)), - (_e = - rn[(cn + 40) | 0] | - (rn[(cn + 41) | 0] << 8) | - (rn[(cn + 42) | 0] << 16) | - (rn[(cn + 43) | 0] << 24)), - (on = - rn[(cn + 44) | 0] | - (rn[(cn + 45) | 0] << 8) | - (rn[(cn + 46) | 0] << 16) | - (rn[(cn + 47) | 0] << 24)), - (hn = - rn[(cn + 48) | 0] | - (rn[(cn + 49) | 0] << 8) | - (rn[(cn + 50) | 0] << 16) | - (rn[(cn + 51) | 0] << 24)), - (a = - rn[(cn + 52) | 0] | - (rn[(cn + 53) | 0] << 8) | - (rn[(cn + 54) | 0] << 16) | - (rn[(cn + 55) | 0] << 24)), - (j = - rn[(cn + 60) | 0] | - (rn[(cn + 61) | 0] << 8) | - (rn[(cn + 62) | 0] << 16) | - (rn[(cn + 63) | 0] << 24)), - (cn = - rn[(cn + 56) | 0] | - (rn[(cn + 57) | 0] << 8) | - (rn[(cn + 58) | 0] << 16) | - (rn[(cn + 59) | 0] << 24)), - (pn[(d + 24) | 0] = cn), - (pn[(d + 25) | 0] = cn >>> 8), - (pn[(d + 26) | 0] = cn >>> 16), - (pn[(d + 27) | 0] = cn >>> 24), - (pn[(d + 28) | 0] = j), - (pn[(d + 29) | 0] = j >>> 8), - (pn[(d + 30) | 0] = j >>> 16), - (pn[(d + 31) | 0] = j >>> 24), - (pn[(d + 16) | 0] = hn), - (pn[(d + 17) | 0] = hn >>> 8), - (pn[(d + 18) | 0] = hn >>> 16), - (pn[(d + 19) | 0] = hn >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (pn[(d + 8) | 0] = _e), - (pn[(d + 9) | 0] = _e >>> 8), - (pn[(d + 10) | 0] = _e >>> 16), - (pn[(d + 11) | 0] = _e >>> 24), - (pn[(d + 12) | 0] = on), - (pn[(d + 13) | 0] = on >>> 8), - (pn[(d + 14) | 0] = on >>> 16), - (pn[(d + 15) | 0] = on >>> 24), - (pn[0 | d] = h), - (pn[(d + 1) | 0] = h >>> 8), - (pn[(d + 2) | 0] = h >>> 16), - (pn[(d + 3) | 0] = h >>> 24), - (pn[(d + 4) | 0] = g), - (pn[(d + 5) | 0] = g >>> 8), - (pn[(d + 6) | 0] = g >>> 16), - (pn[(d + 7) | 0] = g >>> 24), - 0 - ) - }, - Xf: XA, - Yf: Al, - Zf: vA, - _f: wA, - $f: v0, - ag: it, - bg: function (d, a) { - d |= 0 - var h, - g = 0, - _e = 0, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0, - bt = 0, - kt = 0, - Rt = 0, - At = 0, - Ct = 0, - wt = 0, - Tt = 0, - Jt = 0, - Ht = 0, - Zt = 0, - jt = 0, - rr = 0, - sr = 0, - Qt = 0, - Ut = 0, - tr = 0, - dr = 0, - Ar = 0, - Pt = 0, - xt = 0, - fr = 0, - hr = 0, - Er = 0, - rt = 0, - tt = 0, - ft = 0, - Xt = 0, - yr = 0, - Qr = 0, - Br = 0, - wr = 0, - Dr = 0, - Gr = 0, - er = 0, - or = 0, - It = 0, - Ot = 0, - Nt = 0, - _r = 0, - Pr = 0, - Lr = 0, - Tr = 0, - xr = 0, - Hr = 0, - Yr = 0, - Zr = 0, - jr = 0, - ro = 0, - oo = 0, - ao = 0, - uo = 0, - po = 0, - mo = 0, - Eo = 0, - Do = 0, - To = 0, - Lo = 0, - Jo = 0, - _a = 0, - ls = 0, - ps = 0 - return ( - (St = h = (St - 256) | 0), - (mo = -1), - e0((a |= 0)) || - to((h + 96) | 0, a) || - (Gu((h + 96) | 0) && - ((on = c[(h + 136) >> 2]), - (c[h >> 2] = 1 - on), - (mo = 0), - (sr = c[(h + 172) >> 2]), - (c[(h + 36) >> 2] = 0 - sr), - (pt = c[(h + 168) >> 2]), - (c[(h + 32) >> 2] = 0 - pt), - (Qt = c[(h + 164) >> 2]), - (c[(h + 28) >> 2] = 0 - Qt), - (gt = c[(h + 160) >> 2]), - (c[(h + 24) >> 2] = 0 - gt), - (Ut = c[(h + 156) >> 2]), - (c[(h + 20) >> 2] = 0 - Ut), - (mt = c[(h + 152) >> 2]), - (c[(h + 16) >> 2] = 0 - mt), - (tr = c[(h + 148) >> 2]), - (c[(h + 12) >> 2] = 0 - tr), - (yt = c[(h + 144) >> 2]), - (c[(h + 8) >> 2] = 0 - yt), - (dr = c[(h + 140) >> 2]), - (c[(h + 4) >> 2] = 0 - dr), - kr(h, h), - (a = jn( - (_t = c[(h + 4) >> 2]), - (Zt = _t >> 31), - (bt = Ut << 1), - (Br = bt >> 31), - )), - (g = On), - (_e = jn( - (at = c[h >> 2]), - (Rt = at >> 31), - gt, - (At = gt >> 31), - )), - (g = (On + g) | 0), - (g = - (a = (_e + a) | 0) >>> 0 < _e >>> 0 - ? (g + 1) | 0 - : g), - (_e = - ((hn = jn( - (Ct = c[(h + 8) >> 2]), - (Ar = Ct >> 31), - mt, - (wt = mt >> 31), - )) + - a) | - 0), - (a = (On + g) | 0), - (a = _e >>> 0 < hn >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn( - (jt = c[(h + 12) >> 2]), - (fr = jt >> 31), - (rt = tr << 1), - (wr = rt >> 31), - )), - (a = (On + a) | 0), - (a = - (g = (g + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn( - (Pt = c[(h + 16) >> 2]), - (tt = Pt >> 31), - yt, - (Tt = yt >> 31), - )), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (jr = hn = c[(h + 20) >> 2]), - (et = jn( - hn, - (Dr = hn >> 31), - (ft = dr << 1), - (Gr = ft >> 31), - )), - (_e = (On + a) | 0), - (_e = - (g = (et + g) | 0) >>> 0 < et >>> 0 - ? (_e + 1) | 0 - : _e), - (ro = wn = c[(h + 24) >> 2]), - (a = - ((on = jn( - wn, - (Hr = wn >> 31), - (et = (on + 1) | 0), - (Jt = et >> 31), - )) + - g) | - 0), - (g = (On + _e) | 0), - (g = a >>> 0 < on >>> 0 ? (g + 1) | 0 : g), - (er = c[(h + 28) >> 2]), - (_e = - ((on = jn( - (cn = zr(er, 19)), - (hr = cn >> 31), - (Xt = sr << 1), - (or = Xt >> 31), - )) + - a) | - 0), - (a = (On + g) | 0), - (a = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (Eo = c[(h + 32) >> 2]), - (_e = jn( - (nt = zr(Eo, 19)), - (xt = nt >> 31), - pt, - (Ht = pt >> 31), - )), - (a = (On + a) | 0), - (a = - (g = (g + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (Do = c[(h + 36) >> 2]), - (_e = jn( - (Yn = zr(Do, 19)), - (rr = Yn >> 31), - (yr = Qt << 1), - (It = yr >> 31), - )), - (a = (On + a) | 0), - (Dn = g = (_e + g) | 0), - (on = g >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (a = jn(mt, wt, _t, Zt)), - (g = On), - (j = jn(at, Rt, Ut, (Ot = Ut >> 31))), - (_e = (On + g) | 0), - (_e = - (a = (j + a) | 0) >>> 0 < j >>> 0 - ? (_e + 1) | 0 - : _e), - (j = jn(Ct, Ar, tr, (Nt = tr >> 31))), - (g = (On + _e) | 0), - (g = - (a = (j + a) | 0) >>> 0 < j >>> 0 ? (g + 1) | 0 : g), - (_e = ((j = jn(yt, Tt, jt, fr)) + a) | 0), - (a = (On + g) | 0), - (a = _e >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn(Pt, tt, dr, (_r = dr >> 31))), - (a = (On + a) | 0), - (a = - (g = (g + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(et, Jt, hn, Dr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (j = jn( - (wn = zr(wn, 19)), - (Qr = wn >> 31), - sr, - (Pr = sr >> 31), - )), - (_e = (On + a) | 0), - (_e = - (g = (j + g) | 0) >>> 0 < j >>> 0 - ? (_e + 1) | 0 - : _e), - (a = ((j = jn(pt, Ht, cn, hr)) + g) | 0), - (g = (On + _e) | 0), - (g = a >>> 0 < j >>> 0 ? (g + 1) | 0 : g), - (_e = ((j = jn(nt, xt, Qt, (Lr = Qt >> 31))) + a) | 0), - (a = (On + g) | 0), - (a = _e >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn(Yn, rr, gt, At)), - (a = (On + a) | 0), - (oo = g = (g + _e) | 0), - (Er = g >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (a = jn(_t, Zt, rt, wr)), - (_e = On), - (g = ((j = jn(at, Rt, mt, wt)) + a) | 0), - (a = (On + _e) | 0), - (a = g >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (j = jn(yt, Tt, Ct, Ar)), - (_e = (On + a) | 0), - (_e = - (g = (j + g) | 0) >>> 0 < j >>> 0 - ? (_e + 1) | 0 - : _e), - (a = ((j = jn(jt, fr, ft, Gr)) + g) | 0), - (g = (On + _e) | 0), - (g = a >>> 0 < j >>> 0 ? (g + 1) | 0 : g), - (_e = ((j = jn(et, Jt, Pt, tt)) + a) | 0), - (a = (On + g) | 0), - (a = _e >>> 0 < j >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn((j = zr(hn, 19)), (Tr = j >> 31), Xt, or)), - (a = (On + a) | 0), - (a = - (g = (g + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(pt, Ht, wn, Qr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (hn = jn(cn, hr, yr, It)), - (_e = (On + a) | 0), - (_e = - (g = (hn + g) | 0) >>> 0 < hn >>> 0 - ? (_e + 1) | 0 - : _e), - (a = ((hn = jn(nt, xt, gt, At)) + g) | 0), - (g = (On + _e) | 0), - (g = a >>> 0 < hn >>> 0 ? (g + 1) | 0 : g), - (_e = ((hn = jn(Yn, rr, bt, Br)) + a) | 0), - (a = (On + g) | 0), - (To = _e), - (Lo = a = _e >>> 0 < hn >>> 0 ? (a + 1) | 0 : a), - (Jo = _e = (_e + 33554432) | 0), - (_a = a = _e >>> 0 < 33554432 ? (a + 1) | 0 : a), - (_e = ((67108863 & a) << 6) | (_e >>> 26)), - (a = ((a >> 26) + Er) | 0), - (oo = hn = (_e + oo) | 0), - (_e = a = _e >>> 0 > hn >>> 0 ? (a + 1) | 0 : a), - (ls = a = (hn + 16777216) | 0), - (hn = - ((33554431 & - (_e = a >>> 0 < 16777216 ? (_e + 1) | 0 : _e)) << - 7) | - (a >>> 25)), - (a = ((g = _e >> 25) + on) | 0), - (a = - (_e = (hn + Dn) | 0) >>> 0 < hn >>> 0 - ? (a + 1) | 0 - : a), - (ao = g = (_e + 33554432) | 0), - (hn = a = g >>> 0 < 33554432 ? (a + 1) | 0 : a), - (c[(h + 72) >> 2] = _e - (-67108864 & g)), - (a = jn(_t, Zt, ft, Gr)), - (g = On), - (on = jn(at, Rt, yt, Tt)), - (_e = (On + g) | 0), - (_e = - (a = (on + a) | 0) >>> 0 < on >>> 0 - ? (_e + 1) | 0 - : _e), - (g = ((on = jn(et, Jt, Ct, Ar)) + a) | 0), - (a = (On + _e) | 0), - (a = g >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (_e = jn((on = zr(jt, 19)), (xr = on >> 31), Xt, or)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = - ((Dn = jn( - (Er = zr(Pt, 19)), - (Yr = Er >> 31), - pt, - Ht, - )) + - g) | - 0), - (g = (On + a) | 0), - (g = _e >>> 0 < Dn >>> 0 ? (g + 1) | 0 : g), - (Dn = jn(yr, It, j, Tr)), - (a = (On + g) | 0), - (a = - (_e = (Dn + _e) | 0) >>> 0 < Dn >>> 0 - ? (a + 1) | 0 - : a), - (g = ((Dn = jn(gt, At, wn, Qr)) + _e) | 0), - (_e = (On + a) | 0), - (_e = g >>> 0 < Dn >>> 0 ? (_e + 1) | 0 : _e), - (Dn = jn(cn, hr, bt, Br)), - (a = (On + _e) | 0), - (a = - (g = (Dn + g) | 0) >>> 0 < Dn >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(nt, xt, mt, wt)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = ((Dn = jn(Yn, rr, rt, wr)) + g) | 0), - (g = (On + a) | 0), - (Un = _e), - (uo = _e >>> 0 < Dn >>> 0 ? (g + 1) | 0 : g), - (a = jn(et, Jt, _t, Zt)), - (g = On), - (_e = ((Dn = jn(at, Rt, dr, _r)) + a) | 0), - (a = (On + g) | 0), - (a = _e >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a), - (Dn = g = zr(Ct, 19)), - (g = (($n = jn(g, (Zr = g >> 31), sr, Pr)) + _e) | 0), - (_e = (On + a) | 0), - (_e = g >>> 0 < $n >>> 0 ? (_e + 1) | 0 : _e), - ($n = jn(pt, Ht, on, xr)), - (a = (On + _e) | 0), - (a = - (g = ($n + g) | 0) >>> 0 < $n >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(Er, Yr, Qt, Lr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = (($n = jn(gt, At, j, Tr)) + g) | 0), - (g = (On + a) | 0), - (g = _e >>> 0 < $n >>> 0 ? (g + 1) | 0 : g), - ($n = jn(wn, Qr, Ut, Ot)), - (a = (On + g) | 0), - (a = - (_e = ($n + _e) | 0) >>> 0 < $n >>> 0 - ? (a + 1) | 0 - : a), - (g = (($n = jn(mt, wt, cn, hr)) + _e) | 0), - (_e = (On + a) | 0), - (_e = g >>> 0 < $n >>> 0 ? (_e + 1) | 0 : _e), - ($n = jn(nt, xt, tr, Nt)), - (a = (On + _e) | 0), - (a = - (g = ($n + g) | 0) >>> 0 < $n >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(Yn, rr, yt, Tt)), - (a = (On + a) | 0), - (po = g = (_e + g) | 0), - ($n = g >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (a = jn((a = zr(_t, 19)), a >> 31, Xt, or)), - (g = On), - (_e = jn(at, Rt, et, Jt)), - (g = (On + g) | 0), - (g = - (a = (_e + a) | 0) >>> 0 < _e >>> 0 - ? (g + 1) | 0 - : g), - (_e = ((Dn = jn(pt, Ht, Dn, Zr)) + a) | 0), - (a = (On + g) | 0), - (g = ((on = jn(on, xr, yr, It)) + _e) | 0), - (_e = - (On + (_e >>> 0 < Dn >>> 0 ? (a + 1) | 0 : a)) | 0), - (_e = g >>> 0 < on >>> 0 ? (_e + 1) | 0 : _e), - (on = jn(gt, At, Er, Yr)), - (a = (On + _e) | 0), - (a = - (g = (on + g) | 0) >>> 0 < on >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(bt, Br, j, Tr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = ((on = jn(mt, wt, wn, Qr)) + g) | 0), - (g = (On + a) | 0), - (g = _e >>> 0 < on >>> 0 ? (g + 1) | 0 : g), - (on = jn(cn, hr, rt, wr)), - (a = (On + g) | 0), - (a = - (_e = (on + _e) | 0) >>> 0 < on >>> 0 - ? (a + 1) | 0 - : a), - (g = ((on = jn(nt, xt, yt, Tt)) + _e) | 0), - (_e = (On + a) | 0), - (_e = g >>> 0 < on >>> 0 ? (_e + 1) | 0 : _e), - (on = jn(Yn, rr, ft, Gr)), - (a = (On + _e) | 0), - (Dn = g = (on + g) | 0), - (xr = a = g >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (Zr = g = (g + 33554432) | 0), - (ps = a = g >>> 0 < 33554432 ? (a + 1) | 0 : a), - (_e = a >> 26), - (a = ((67108863 & a) << 6) | (g >>> 26)), - (g = (_e + $n) | 0), - ($n = on = (a + po) | 0), - (a = g = a >>> 0 > on >>> 0 ? (g + 1) | 0 : g), - (po = g = (on + 16777216) | 0), - (on = - ((33554431 & - (a = g >>> 0 < 16777216 ? (a + 1) | 0 : a)) << - 7) | - (g >>> 25)), - (a = ((a >> 25) + uo) | 0), - (a = - (g = (on + Un) | 0) >>> 0 < on >>> 0 - ? (a + 1) | 0 - : a), - (_e = g), - (uo = g = (g + 33554432) | 0), - (on = a = g >>> 0 < 33554432 ? (a + 1) | 0 : a), - (c[(h + 56) >> 2] = _e - (-67108864 & g)), - (a = jn(gt, At, _t, Zt)), - (_e = On), - (g = ((Un = jn(at, Rt, Qt, Lr)) + a) | 0), - (a = (On + _e) | 0), - (a = g >>> 0 < Un >>> 0 ? (a + 1) | 0 : a), - (_e = jn(Ct, Ar, Ut, Ot)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(mt, wt, jt, fr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (Un = jn(Pt, tt, tr, Nt)), - (_e = (On + a) | 0), - (_e = - (g = (Un + g) | 0) >>> 0 < Un >>> 0 - ? (_e + 1) | 0 - : _e), - (a = ((Un = jn(yt, Tt, jr, Dr)) + g) | 0), - (g = (On + _e) | 0), - (g = a >>> 0 < Un >>> 0 ? (g + 1) | 0 : g), - (_e = ((Un = jn(dr, _r, ro, Hr)) + a) | 0), - (a = (On + g) | 0), - (a = _e >>> 0 < Un >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn(er, (Un = er >> 31), et, Jt)), - (a = (On + a) | 0), - (a = - (g = (g + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(nt, xt, sr, Pr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (kt = ((_e = g) + (g = jn(Yn, rr, pt, Ht))) | 0), - (_e = (On + a) | 0), - (g = - ((a = hn >> 26) + - (g = g >>> 0 > kt >>> 0 ? (_e + 1) | 0 : _e)) | - 0), - (a = - (_e = - ((hn = ((67108863 & hn) << 6) | (ao >>> 26)) + kt) | - 0) >>> - 0 < - hn >>> 0 - ? (g + 1) | 0 - : g), - (ao = g = (_e + 16777216) | 0), - (hn = a = g >>> 0 < 16777216 ? (a + 1) | 0 : a), - (c[(h + 76) >> 2] = _e - (-33554432 & g)), - (a = jn(yt, Tt, _t, Zt)), - (g = On), - (kt = jn(at, Rt, tr, Nt)), - (_e = (On + g) | 0), - (_e = - (a = (kt + a) | 0) >>> 0 < kt >>> 0 - ? (_e + 1) | 0 - : _e), - (kt = jn(Ct, Ar, dr, _r)), - (g = (On + _e) | 0), - (g = - (a = (kt + a) | 0) >>> 0 < kt >>> 0 - ? (g + 1) | 0 - : g), - (_e = ((kt = jn(et, Jt, jt, fr)) + a) | 0), - (a = (On + g) | 0), - (a = _e >>> 0 < kt >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn(Er, Yr, sr, Pr)), - (a = (On + a) | 0), - (a = - (g = (g + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(pt, Ht, j, Tr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (g = ((wn = jn(wn, Qr, Qt, Lr)) + g) | 0), - (_e = (On + a) | 0), - (a = ((cn = jn(gt, At, cn, hr)) + g) | 0), - (g = - (On + (g >>> 0 < wn >>> 0 ? (_e + 1) | 0 : _e)) | 0), - (_e = ((nt = jn(nt, xt, Ut, Ot)) + a) | 0), - (a = (On + (a >>> 0 < cn >>> 0 ? (g + 1) | 0 : g)) | 0), - (a = _e >>> 0 < nt >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn(Yn, rr, mt, wt)), - (a = (On + a) | 0), - (cn = g = (g + _e) | 0), - (a = - ((a = g >>> 0 < _e >>> 0 ? (a + 1) | 0 : a) + - (g = on >> 26)) | - 0), - (_e = - (g = on = - (cn + (_e = ((67108863 & on) << 6) | (uo >>> 26))) | - 0) >>> - 0 < - _e >>> 0 - ? (a + 1) | 0 - : a), - (nt = a = (g + 16777216) | 0), - (on = _e = a >>> 0 < 16777216 ? (_e + 1) | 0 : _e), - (c[(h + 60) >> 2] = g - (-33554432 & a)), - (a = jn(_t, Zt, yr, It)), - (_e = On), - (g = ((cn = jn(at, Rt, pt, Ht)) + a) | 0), - (a = (On + _e) | 0), - (a = g >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (_e = jn(gt, At, Ct, Ar)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (cn = jn(jt, fr, bt, Br)), - (_e = (On + a) | 0), - (_e = - (g = (cn + g) | 0) >>> 0 < cn >>> 0 - ? (_e + 1) | 0 - : _e), - (a = ((cn = jn(mt, wt, Pt, tt)) + g) | 0), - (g = (On + _e) | 0), - (g = a >>> 0 < cn >>> 0 ? (g + 1) | 0 : g), - (_e = ((cn = jn(rt, wr, jr, Dr)) + a) | 0), - (a = (On + g) | 0), - (a = _e >>> 0 < cn >>> 0 ? (a + 1) | 0 : a), - (g = _e), - (_e = jn(yt, Tt, ro, Hr)), - (a = (On + a) | 0), - (a = - (g = (g + _e) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = g), - (g = jn(er, Un, ft, Gr)), - (a = (On + a) | 0), - (a = - g >>> 0 > (_e = (_e + g) | 0) >>> 0 - ? (a + 1) | 0 - : a), - (cn = g = Eo), - (g = ((bt = jn(g, (wn = g >> 31), et, Jt)) + _e) | 0), - (_e = (On + a) | 0), - (a = ((Yn = jn(Yn, rr, Xt, or)) + g) | 0), - (g = - (On + (g >>> 0 < bt >>> 0 ? (_e + 1) | 0 : _e)) | 0), - (_e = a >>> 0 < Yn >>> 0 ? (g + 1) | 0 : g), - (g = a), - (a = ((a = hn >> 25) + _e) | 0), - (a = - (g = - (g + (hn = ((33554431 & hn) << 7) | (ao >>> 25))) | - 0) >>> - 0 < - hn >>> 0 - ? (a + 1) | 0 - : a), - (_e = g), - (Yn = g = (g + 33554432) | 0), - (hn = a = g >>> 0 < 33554432 ? (a + 1) | 0 : a), - (c[(h + 80) >> 2] = _e - (-67108864 & g)), - (g = on >> 25), - (_e = - ((on = ((33554431 & on) << 7) | (nt >>> 25)) + - ((To - (a = -67108864 & Jo)) | 0)) | - 0), - (a = - (g + ((Lo - (((a >>> 0 > To >>> 0) + _a) | 0)) | 0)) | - 0), - (a = _e >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (on = a = - ((67108863 & - (a = - (g = (_e + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a)) << - 6) | - (g >>> 26)), - (a = (a + (bt = (oo - (-33554432 & ls)) | 0)) | 0), - (c[(h + 68) >> 2] = a), - (c[(h + 64) >> 2] = _e - (-67108864 & g)), - (a = jn(pt, Ht, _t, Zt)), - (_e = On), - (g = ((on = jn(at, Rt, sr, Pr)) + a) | 0), - (a = (On + _e) | 0), - (a = g >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (_e = ((on = jn(Ct, Ar, Qt, Lr)) + g) | 0), - (g = (On + a) | 0), - (g = _e >>> 0 < on >>> 0 ? (g + 1) | 0 : g), - (a = ((on = jn(gt, At, jt, fr)) + _e) | 0), - (_e = (On + g) | 0), - (_e = a >>> 0 < on >>> 0 ? (_e + 1) | 0 : _e), - (g = ((on = jn(Pt, tt, Ut, Ot)) + a) | 0), - (a = (On + _e) | 0), - (a = g >>> 0 < on >>> 0 ? (a + 1) | 0 : a), - (_e = jn(mt, wt, jr, Dr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = jn(tr, Nt, ro, Hr)), - (a = (On + a) | 0), - (a = - (g = (_e + g) | 0) >>> 0 < _e >>> 0 - ? (a + 1) | 0 - : a), - (_e = ((on = jn(yt, Tt, er, Un)) + g) | 0), - (g = (On + a) | 0), - (g = _e >>> 0 < on >>> 0 ? (g + 1) | 0 : g), - (on = ((a = jn(cn, wn, dr, _r)) + _e) | 0), - (_e = (On + g) | 0), - (_e = a >>> 0 > on >>> 0 ? (_e + 1) | 0 : _e), - (g = on), - (on = jn((a = Do), a >> 31, et, Jt)), - (a = (On + _e) | 0), - (_e = g = (g + on) | 0), - (a = - ((a = g >>> 0 < on >>> 0 ? (a + 1) | 0 : a) + - (g = hn >> 26)) | - 0), - (a = - (_e = - (_e + (hn = ((67108863 & hn) << 6) | (Yn >>> 26))) | - 0) >>> - 0 < - hn >>> 0 - ? (a + 1) | 0 - : a), - (a = - (g = (_e + 16777216) | 0) >>> 0 < 16777216 - ? (a + 1) | 0 - : a), - (c[(h + 84) >> 2] = _e - (-33554432 & g)), - (hn = ($n - (-33554432 & po)) | 0), - (on = (Dn - (_e = -67108864 & Zr)) | 0), - (at = (xr - (((_e >>> 0 > Dn >>> 0) + ps) | 0)) | 0), - (a = jn( - ((33554431 & (_e = a)) << 7) | (g >>> 25), - (a >>= 25), - 19, - 0, - )), - (g = (On + at) | 0), - (a = - a >>> 0 > (_e = (a + on) | 0) >>> 0 - ? (g + 1) | 0 - : g), - (on = a = - ((67108863 & - (a = - (g = (_e + 33554432) | 0) >>> 0 < 33554432 - ? (a + 1) | 0 - : a)) << - 6) | - (g >>> 26)), - (a = (a + hn) | 0), - (c[(h + 52) >> 2] = a), - (c[(h + 48) >> 2] = _e - (-67108864 & g)), - cs(d, (h + 48) | 0))), - (St = (h + 256) | 0), - 0 | mo - ) - }, - cg: function (d, a) { - d |= 0 - var h, - g = 0 - return ( - (St = h = (St + -64) | 0), - Tu(h, (a |= 0), 32, 0), - (pn[0 | h] = 248 & rn[0 | h]), - (pn[(h + 31) | 0] = (63 & rn[(h + 31) | 0]) | 64), - (a = c[(h + 20) >> 2]), - (g = c[(h + 16) >> 2]), - (pn[(d + 16) | 0] = g), - (pn[(d + 17) | 0] = g >>> 8), - (pn[(d + 18) | 0] = g >>> 16), - (pn[(d + 19) | 0] = g >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(h + 12) >> 2]), - (g = c[(h + 8) >> 2]), - (pn[(d + 8) | 0] = g), - (pn[(d + 9) | 0] = g >>> 8), - (pn[(d + 10) | 0] = g >>> 16), - (pn[(d + 11) | 0] = g >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(h + 4) >> 2]), - (g = c[h >> 2]), - (pn[0 | d] = g), - (pn[(d + 1) | 0] = g >>> 8), - (pn[(d + 2) | 0] = g >>> 16), - (pn[(d + 3) | 0] = g >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - (a = c[(h + 28) >> 2]), - (g = c[(h + 24) >> 2]), - (pn[(d + 24) | 0] = g), - (pn[(d + 25) | 0] = g >>> 8), - (pn[(d + 26) | 0] = g >>> 16), - (pn[(d + 27) | 0] = g >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - Ur(h, 64), - (St = (h - -64) | 0), - 0 - ) - }, - dg: TA, - eg: Wl, - fg: DA, - gg: iA, - hg: io, - ig: au, - jg: Ss, - kg: io, - lg: up, - mg: Ss, - ng: function (d, a, h, g, _e) { - return ( - 0 | t0((d |= 0), (a |= 0), (h |= 0), (g |= 0), (_e |= 0)) - ) - }, - og: function (d, a, h, g, _e, on, hn, j) { - return ( - 0 | - bu( - (d |= 0), - (a |= 0), - (d = 0) | (h |= 0), - (g |= 0), - (_e |= 0), - d | (on |= 0), - (hn |= 0), - (j |= 0), - ) - ) - }, - pg: function (d, a, h, g, _e, on) { - return ( - 0 | - P0( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - ) - ) - }, - qg: function (d, a, h, g, _e) { - return ( - 0 | yu((d |= 0), (a |= 0), (h |= 0), (g |= 0), (_e |= 0)) - ) - }, - rg: function (d, a, h, g, _e, on, hn) { - return ( - 0 | - vu( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - }, - sg: function (d, a, h, g, _e, on) { - return ( - 0 | - O0( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - ) - ) - }, - tg: _s, - ug: _s, - vg: io, - wg: nu, - xg: Ss, - yg: function () { - return 1540 - }, - zg: FA, - Ag: NA, - Bg: _s, - Cg: io, - Dg: au, - Eg: Ss, - Fg: function (d, a, h, g, _e) { - return ( - 0 | Cl((d |= 0), (a |= 0), (h |= 0), (g |= 0), (_e |= 0)) - ) - }, - Gg: function (d, a, h, g, _e, on, hn, j) { - return ( - 0 | - a0( - (d |= 0), - (a |= 0), - (d = 0) | (h |= 0), - (g |= 0), - (_e |= 0), - d | (on |= 0), - (hn |= 0), - (j |= 0), - ) - ) - }, - Hg: function (d, a, h, g, _e, on) { - return ( - 0 | - M0( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - ) - ) - }, - Ig: _s, - Jg: FA, - Kg: function (d, a, h, g, _e, on, hn, j) { - var cn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (on |= 0), - (hn |= 0), - (St = cn = (St - 32) | 0), - js(cn, (_e |= 0), (j |= 0), 0), - (d = a0( - (j = d), - a, - (d = 0) | h, - g, - (_e + 16) | 0, - d | on, - hn, - cn, - )), - Ur(cn, 32), - (St = (cn + 32) | 0), - 0 | d - ) - }, - Lg: NA, - Mg: io, - Ng: nu, - Og: Ss, - Pg: _s, - Qg: Go, - Rg: io, - Sg: bs, - Tg: ju, - Ug: J0, - Vg: qA, - Wg: function () { - return 1089 - }, - Xg: function () { - var d, a - return ( - (St = d = (St - 16) | 0), - (pn[(d + 15) | 0] = 0), - (a = 0 | Ws(35752, (d + 15) | 0, 0)), - (St = (d + 16) | 0), - 0 | a - ) - }, - Yg: JA, - Zg: function (d) { - var a, - h = 0, - g = 0 - if (((St = a = (St - 16) | 0), (d |= 0) >>> 0 >= 2)) { - for ( - h = ((0 - d) >>> 0) % (d >>> 0) | 0; - (pn[(a + 15) | 0] = 0), - h >>> 0 > (g = 0 | Ws(35752, (a + 15) | 0, 0)) >>> 0; - - ); - h = (g >>> 0) % (d >>> 0) | 0 - } - return (St = (a + 16) | 0), 0 | h - }, - _g: Ps, - $g: function (d, a, h) { - yu((d |= 0), (a |= 0), 0, 1574, (h |= 0)) - }, - ah: io, - bh: function () { - var d = 0, - a = 0 - return ( - (d = c[9128]) && - (d = c[(d + 20) >> 2]) && - (a = 0 | Bs[0 | d]()), - 0 | a - ) - }, - ch: function (d, a, h) { - ;(d |= 0), (a |= 0) - var g, - _e = 0, - on = 0, - hn = 0 - if (((St = g = (St - 16) | 0), (h |= 0))) - ru(1329, 1175, 197, 1092), so() - else { - if (a) - for ( - ; - (pn[(g + 15) | 0] = 0), - (on = (d + _e) | 0), - (hn = 0 | Ws(35752, (g + 15) | 0, 0)), - (pn[0 | on] = hn), - (0 | a) != (0 | (_e = (_e + 1) | 0)); - - ); - St = (g + 16) | 0 - } - }, - dh: function (d, a, h, g) { - ;(d |= 0), (h |= 0) - var _e = 0, - on = 0, - hn = 0 - if ( - !( - ((g |= 0) >>> 0 > 2147483646) | - ((g << 1) >>> 0 >= (a |= 0) >>> 0) - ) - ) { - if (((a = 0), g)) { - for ( - ; - (_e = ((a << 1) + d) | 0), - (on = 15 & (hn = rn[(a + h) | 0])), - (pn[(_e + 1) | 0] = - (22272 + - (((on << 8) + ((on + 65526) & 55552)) | 0)) >>> - 8), - (on = _e), - (_e = (hn >>> 4) | 0), - (pn[0 | on] = - 87 + (((((_e + 65526) >>> 8) & 217) + _e) | 0)), - (0 | g) != (0 | (a = (a + 1) | 0)); - - ); - a = g << 1 - } else a = 0 - return (pn[(a + d) | 0] = 0), 0 | d - } - ss(), so() - }, - eh: function (d, a, h, g, _e, on, hn) { - ;(d |= 0), (a |= 0), (h |= 0), (_e |= 0), (on |= 0), (hn |= 0) - var j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0 - e: if ((g |= 0)) { - n: { - t: { - r: { - a: { - if (!_e) { - for (cn = 1, _e = 0; ; ) { - if ( - !( - 255 & - ((Yn = - (((65526 + - (Dn = - ((223 & (wn = rn[(h + j) | 0])) - - 55) & - 255)) ^ - (Dn + 65520)) >>> - 8) | - 0) | - (et = ((65526 + (wn ^= 48)) >>> 8) | 0)) - ) - ) - break r - if (a >>> 0 <= Un >>> 0) break a - if ( - ((Dn = (Dn & Yn) | (wn & et)), - 255 & $n - ? ((pn[(d + Un) | 0] = _e | Dn), - (Un = (Un + 1) | 0)) - : (_e = Dn << 4), - ($n ^= -1), - (0 | (j = (j + 1) | 0)) == (0 | g)) - ) - break - } - j = g - break r - } - for (;;) { - u: { - s: { - c: { - i: { - o: { - if ( - !( - 255 & - ((wn = - (((65526 + - (Dn = - ((223 & - (cn = rn[(h + j) | 0])) - - 55) & - 255)) ^ - (Dn + 65520)) >>> - 8) | - 0) | - (et = - ((65526 + (Yn = 48 ^ cn)) >>> - 8) | - 0)) - ) - ) { - if (255 & $n) break t - if (!Uu(_e, cn)) break e - if ( - (j = $n = (j + 1) | 0) >>> 0 < - g >>> 0 - ) - break o - break e - } - if (a >>> 0 <= Un >>> 0) break a - if ( - ((cn = (Dn & wn) | (Yn & et)), - !(255 & $n)) - ) - break i - ;(pn[(d + Un) | 0] = cn | at), - (Un = (Un + 1) | 0) - break u - } - for (;;) { - if ( - !( - 255 & - ((wn = - (((65526 + - (Dn = - ((223 & - (cn = rn[(h + j) | 0])) - - 55) & - 255)) ^ - (Dn + 65520)) >>> - 8) | - 0) | - (et = - ((65526 + (Yn = 48 ^ cn)) >>> - 8) | - 0)) - ) - ) { - if (!Uu(_e, cn)) break e - if ((j = (j + 1) | 0) >>> 0 < g >>> 0) - continue - break c - } - break - } - if (a >>> 0 <= Un >>> 0) break s - cn = (Dn & wn) | (Yn & et) - } - ;(at = cn << 4), ($n = 0) - break u - } - j = g >>> 0 > $n >>> 0 ? g : $n - break e - } - $n = 0 - break a - } - if ( - (($n ^= -1), - (cn = 1), - !((j = (j + 1) | 0) >>> 0 < g >>> 0)) - ) - break - } - break r - } - ;(c[9129] = 68), (cn = 0) - } - if (!(255 & $n)) break n - } - ;(c[9129] = 28), (nt = -1), (j = (j - 1) | 0), (Un = 0) - break e - } - cn || ((Un = 0), (nt = -1)) - } - return ( - hn - ? (c[hn >> 2] = h + j) - : (0 | g) != (0 | j) && ((c[9129] = 28), (nt = -1)), - on && (c[on >> 2] = Un), - 0 | nt - ) - }, - fh: function (d, a) { - d |= 0 - var h = 0 - return ( - (-7 & (a |= 0)) != 1 && (ss(), so()), - (1 + - (((3 & - (h = ((h = d) + zr((d = ((d >>> 0) / 3) | 0), -3)) | 0) - ? 2 & a - ? (h + 1) | 0 - : 4 - : 0) + - (d << 2)) | - 0)) | - 0 - ) - }, - gh: Nr, - hh: zu, - ih: function () { - var d = 0 - return ( - c[9260] - ? (d = 1) - : (JA(), Ps(37024, 16), (c[9260] = 1), (d = 0)), - 0 | d - ) - }, - jh: function (d, a, h, g, _e) { - ;(d |= 0), (a |= 0), (h |= 0), (_e |= 0) - var on, - hn = 0, - j = 0, - cn = 0 - St = on = (St - 16) | 0 - e: { - if ((g |= 0)) { - if ( - ((cn = -1), - (hn = - ((hn = (g - 1) | 0) - - (j = hn & g ? (h >>> 0) % (g >>> 0) | 0 : h & hn)) | - 0) >>> - 0 >= - (-1 ^ h) >>> 0) - ) - break e - if (!((h = (h + hn) | 0) >>> 0 >= _e >>> 0)) - for ( - d && (c[d >> 2] = h + 1), - d = (a + h) | 0, - cn = 0, - pn[(on + 15) | 0] = 0, - h = 0; - (_e = a = (d - h) | 0), - (j = rn[0 | a] & rn[(on + 15) | 0]), - (a = (((h ^ hn) - 1) >>> 24) | 0), - (pn[0 | _e] = j | (128 & a)), - (pn[(on + 15) | 0] = a | rn[(on + 15) | 0]), - (0 | g) != (0 | (h = (h + 1) | 0)); - - ); - } else cn = -1 - return (St = (on + 16) | 0), 0 | cn - } - ss(), so() - }, - kh: function (d, a, h, g) { - ;(d |= 0), (a |= 0), (h |= 0), (g |= 0) - var _e, - on = 0, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - if ( - ((c[(12 + (_e = (St - 16) | 0)) >> 2] = 0), - (g - 1) >>> 0 < h >>> 0) - ) { - for ( - Dn = ((hn = (h - 1) | 0) + a) | 0, h = 0, a = 0; - (a &= 255), - (cn = - ((128 ^ (j = rn[(Dn - on) | 0])) - 1) & - (c[(_e + 12) >> 2] - 1) & - (a - 1)), - (c[(_e + 12) >> 2] = - c[(_e + 12) >> 2] | (((cn << 23) >> 31) & on)), - (a |= j), - (h |= (cn >>> 8) & 1), - (0 | (on = (on + 1) | 0)) != (0 | g); - - ); - ;(c[d >> 2] = hn - c[(_e + 12) >> 2]), - (d = ((255 & h) - 1) | 0) - } else d = -1 - return 0 | d - }, - lh: function () { - return 1457 - }, - mh: function () { - return 10 - }, - nh: d0, - oh: du, - ph: Y0, - qh: T0, - rh: function (d, a, h) { - d |= 0 - var g, - _e = 0 - return ( - (St = g = (St - 32) | 0), - (_e = -1), - iu(g, (h |= 0), (a |= 0)) || (_e = Rs(d, 35296, g, 0)), - (St = (g + 32) | 0), - 0 | _e - ) - }, - sh: OA, - th: function (d, a, h, g, _e, on, hn, j) { - var cn, Dn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (on |= 0), - (Dn = g |= 0), - (g = _e |= 0), - (St = cn = (St + -64) | 0), - iu((cn + 32) | 0, (j |= 0), (hn |= 0)) - ? (_e = -1) - : ((_e = -1), - Rs(cn, 35296, (cn + 32) | 0, 0) || - ((_e = _d(d, a, h, Dn, g, on, cn)), Ur(cn, 32))), - (St = (cn - -64) | 0), - 0 | _e - ) - }, - uh: function (d, a, h, g, _e, on) { - return ( - (d |= 0), - (a |= 0), - (_e |= 0), - (on |= 0), - (!(g |= 0) & ((h |= 0) >>> 0 >= 4294967280)) | g && - (ss(), so()), - 0 | _d((d + 16) | 0, d, a, h, g, _e, on) - ) - }, - vh: function (d, a, h, g, _e, on, hn) { - return ( - 0 | - hA( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - }, - wh: RA, - xh: function (d, a, h, g, _e, on, hn, j) { - var cn, Dn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (on |= 0), - (Dn = g |= 0), - (g = _e |= 0), - (St = cn = (St + -64) | 0), - iu((cn + 32) | 0, (j |= 0), (hn |= 0)) - ? (_e = -1) - : ((_e = -1), - Rs(cn, 35296, (cn + 32) | 0, 0) || - ((_e = S0(d, a, h, Dn, g, on, cn)), Ur(cn, 32))), - (St = (cn - -64) | 0), - 0 | _e - ) - }, - yh: IA, - zh: function (d, a, h, g, _e, on, hn) { - return ( - 0 | - AA( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - ) - ) - }, - Ah: io, - Bh: io, - Ch: io, - Dh: io, - Eh: nu, - Fh: Go, - Gh: uu, - Hh: function (d, a, h, g, _e) { - ;(d |= 0), (a |= 0), (_e |= 0) - var on, - hn, - j, - cn = 0, - Dn = 0 - return ( - (hn = h |= 0), - (h = g |= 0), - (j = g = St), - (St = on = (g - 512) & -64), - (g = -1), - T0((on - -64) | 0, (on + 32) | 0) || - (Su((g = (on + 128) | 0), 0, 0, 24), - Us(g, (Dn = (on - -64) | 0), 32, 0), - Us(g, _e, 32, 0), - Bu(g, (cn = (on + 96) | 0), 24), - (g = hA( - (d + 32) | 0, - a, - hn, - h, - cn, - (g = _e), - (_e = (on + 32) | 0), - )), - (a = c[(on + 92) >> 2]), - (h = c[(on + 88) >> 2]), - (pn[(d + 24) | 0] = h), - (pn[(d + 25) | 0] = h >>> 8), - (pn[(d + 26) | 0] = h >>> 16), - (pn[(d + 27) | 0] = h >>> 24), - (pn[(d + 28) | 0] = a), - (pn[(d + 29) | 0] = a >>> 8), - (pn[(d + 30) | 0] = a >>> 16), - (pn[(d + 31) | 0] = a >>> 24), - (a = c[(on + 84) >> 2]), - (h = c[(on + 80) >> 2]), - (pn[(d + 16) | 0] = h), - (pn[(d + 17) | 0] = h >>> 8), - (pn[(d + 18) | 0] = h >>> 16), - (pn[(d + 19) | 0] = h >>> 24), - (pn[(d + 20) | 0] = a), - (pn[(d + 21) | 0] = a >>> 8), - (pn[(d + 22) | 0] = a >>> 16), - (pn[(d + 23) | 0] = a >>> 24), - (a = c[(on + 76) >> 2]), - (h = c[(on + 72) >> 2]), - (pn[(d + 8) | 0] = h), - (pn[(d + 9) | 0] = h >>> 8), - (pn[(d + 10) | 0] = h >>> 16), - (pn[(d + 11) | 0] = h >>> 24), - (pn[(d + 12) | 0] = a), - (pn[(d + 13) | 0] = a >>> 8), - (pn[(d + 14) | 0] = a >>> 16), - (pn[(d + 15) | 0] = a >>> 24), - (a = c[(on + 68) >> 2]), - (h = c[(on + 64) >> 2]), - (pn[0 | d] = h), - (pn[(d + 1) | 0] = h >>> 8), - (pn[(d + 2) | 0] = h >>> 16), - (pn[(d + 3) | 0] = h >>> 24), - (pn[(d + 4) | 0] = a), - (pn[(d + 5) | 0] = a >>> 8), - (pn[(d + 6) | 0] = a >>> 16), - (pn[(d + 7) | 0] = a >>> 24), - Ur(_e, 32), - Ur(Dn, 32), - Ur(cn, 24)), - (St = j), - 0 | g - ) - }, - Ih: function (d, a, h, g, _e, on) { - ;(d |= 0), (a |= 0), (_e |= 0), (on |= 0) - var hn, - j, - cn = 0, - Dn = 0 - return ( - (hn = cn = St), - (St = cn = (cn - 448) & -64), - (Dn = -1), - (j = g |= 0), - (!g & ((h |= 0) >>> 0 >= 48)) | g && - (Su((g = (cn - -64) | 0), 0, 0, 24), - Us(g, a, 32, 0), - Us(g, _e, 32, 0), - Bu((_e = g), (g = (cn + 32) | 0), 24), - (Dn = AA( - d, - (a + 32) | 0, - (h - 32) | 0, - (j - (h >>> 0 < 32)) | 0, - g, - a, - on, - ))), - (St = hn), - 0 | Dn - ) - }, - Jh: sp, - Kh: function (d) { - var a, - h = 0 - return ( - (St = a = (St - 160) | 0), - Z0((d |= 0)) && - (e0(d) || su(a, d) || ($o(a) && (h = (0 | Gu(a)) != 0))), - (St = (a + 160) | 0), - 0 | h - ) - }, - Lh: function (d, a, h) { - ;(d |= 0), (h |= 0) - var g, - _e = 0 - return ( - (St = g = (St - 800) | 0), - (_e = -1), - su((g + 640) | 0, (a |= 0)) || - ($o((g + 640) | 0) && - (su((g + 480) | 0, h) || - ($o((g + 480) | 0) && - (ds(g, (g + 480) | 0), - hs((a = (g + 160) | 0), (g + 640) | 0, g), - Q0((h = (g + 320) | 0), a), - gu(d, h), - (_e = 0))))), - (St = (g + 800) | 0), - 0 | _e - ) - }, - Mh: function (d, a, h) { - ;(d |= 0), (h |= 0) - var g, - _e = 0 - return ( - (St = g = (St - 800) | 0), - (_e = -1), - su((g + 640) | 0, (a |= 0)) || - ($o((g + 640) | 0) && - (su((g + 480) | 0, h) || - ($o((g + 480) | 0) && - (ds(g, (g + 480) | 0), - Nu((a = (g + 160) | 0), (g + 640) | 0, g), - Q0((h = (g + 320) | 0), a), - gu(d, h), - (_e = 0))))), - (St = (g + 800) | 0), - 0 | _e - ) - }, - Nh: function (d, a) { - return Tl((d |= 0), (a |= 0)), 0 - }, - Oh: function (d, a) { - d |= 0 - var h, - g, - _e, - on, - hn, - j, - cn, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0 - for ( - St = h = (St - 160) | 0, cn = rn[0 | (a |= 0)]; - (wn = (a - Dn) | 0), - (pn[(($n = (h + 128) | 0) + Dn) | 0] = rn[(wn + 63) | 0]), - (pn[((Un = (h + 96) | 0) + Dn) | 0] = rn[(wn + 31) | 0]), - (pn[((Yn = $n) + ($n = 1 | Dn)) | 0] = rn[(wn + 62) | 0]), - (pn[($n + Un) | 0] = rn[(wn + 30) | 0]), - (0 | (Dn = (Dn + 2) | 0)) != 32; - - ); - return ( - (pn[(h + 159) | 0] = 127 & rn[(h + 159) | 0]), - (pn[(h + 127) | 0] = 127 & rn[(h + 127) | 0]), - Xs((wn = (h + 48) | 0), (h + 128) | 0), - Xs(h, (h + 96) | 0), - (Yn = (c[(h + 80) >> 2] + zr(c[(h + 32) >> 2], 38)) | 0), - (g = (c[(h + 76) >> 2] + zr(c[(h + 28) >> 2], 38)) | 0), - (_e = (c[(h + 72) >> 2] + zr(c[(h + 24) >> 2], 38)) | 0), - (on = (c[(h + 68) >> 2] + zr(c[(h + 20) >> 2], 38)) | 0), - (hn = (c[(h + 64) >> 2] + zr(c[(h + 16) >> 2], 38)) | 0), - (j = (c[(h + 60) >> 2] + zr(c[(h + 12) >> 2], 38)) | 0), - (Un = (c[(h + 56) >> 2] + zr(c[(h + 8) >> 2], 38)) | 0), - ($n = (c[(h + 52) >> 2] + zr(c[(h + 4) >> 2], 38)) | 0), - (a = - (((c[(h + 48) >> 2] + ((pn[(a + 32) | 0] >> 31) & 19)) | - 0) + - zr(c[h >> 2], 38)) | - 0), - (Dn = (c[(h + 84) >> 2] + zr(c[(h + 36) >> 2], 38)) | 0), - (a = - (zr( - (((Yn + - ((g + - ((_e + - ((on + - ((hn + - ((j + - ((Un + - (($n + - ((a + - (((zr(Dn, 19) + 16777216) >>> 25) | - 0)) >> - 26)) >> - 25)) >> - 26)) >> - 25)) >> - 26)) >> - 25)) >> - 26)) >> - 25)) >> - 26) + - Dn) >> - 25, - 19, - ) + - a) | - 0), - (c[(h + 48) >> 2] = 67108863 & a), - (a = ($n + (a >> 26)) | 0), - (c[(h + 52) >> 2] = 33554431 & a), - (a = (Un + (a >> 25)) | 0), - (c[(h + 56) >> 2] = 67108863 & a), - (a = (j + (a >> 26)) | 0), - (c[(h + 60) >> 2] = 33554431 & a), - (a = (hn + (a >> 25)) | 0), - (c[(h + 64) >> 2] = 67108863 & a), - (a = (on + (a >> 26)) | 0), - (c[(h + 68) >> 2] = 33554431 & a), - (a = (_e + (a >> 25)) | 0), - (c[(h + 72) >> 2] = 67108863 & a), - (a = (g + (a >> 26)) | 0), - (c[(h + 76) >> 2] = 33554431 & a), - (a = (Yn + (a >> 25)) | 0), - (c[(h + 80) >> 2] = 67108863 & a), - (c[(h + 84) >> 2] = (Dn + (a >> 26)) & 33554431), - l0(d, wn, 128 & cn), - (St = (h + 160) | 0), - 0 - ) - }, - Ph: function (d) { - var a - ;(d |= 0), - (St = a = (St - 32) | 0), - Ps(a, 32), - Tl(d, a), - (St = (a + 32) | 0) - }, - Qh: BA, - Rh: E0, - Sh: nr, - Th: Dt, - Uh: I0, - Vh: lt, - Wh: g0, - Xh: VA, - Yh: io, - Zh: bs, - _h: io, - $h: bs, - ai: io, - bi: function (d) { - var a - return ( - (St = a = (St - 160) | 0), - (d = Au(a, (d |= 0))), - (St = (a + 160) | 0), - 0 | !d - ) - }, - ci: function (d, a, h) { - ;(d |= 0), (h |= 0) - var g, - _e = 0 - return ( - (St = g = (St - 800) | 0), - (_e = -1), - Au((g + 640) | 0, (a |= 0)) || - Au((g + 480) | 0, h) || - (ds(g, (g + 480) | 0), - hs((a = (g + 160) | 0), (g + 640) | 0, g), - Q0((h = (g + 320) | 0), a), - _u(d, h), - (_e = 0)), - (St = (g + 800) | 0), - 0 | _e - ) - }, - di: function (d, a, h) { - ;(d |= 0), (h |= 0) - var g, - _e = 0 - return ( - (St = g = (St - 800) | 0), - (_e = -1), - Au((g + 640) | 0, (a |= 0)) || - Au((g + 480) | 0, h) || - (ds(g, (g + 480) | 0), - Nu((a = (g + 160) | 0), (g + 640) | 0, g), - Q0((h = (g + 320) | 0), a), - _u(d, h), - (_e = 0)), - (St = (g + 800) | 0), - 0 | _e - ) - }, - ei: function (d, a) { - return aA((d |= 0), (a |= 0)), 0 - }, - fi: function (d) { - var a - ;(d |= 0), - (St = a = (St + -64) | 0), - Ps(a, 64), - aA(d, a), - (St = (a - -64) | 0) - }, - gi: function (d) { - BA((d |= 0)) - }, - hi: function (d, a) { - return 0 | E0((d |= 0), (a |= 0)) - }, - ii: function (d, a) { - nr((d |= 0), (a |= 0)) - }, - ji: function (d, a) { - Dt((d |= 0), (a |= 0)) - }, - ki: function (d, a, h) { - I0((d |= 0), (a |= 0), (h |= 0)) - }, - li: function (d, a, h) { - g0((d |= 0), (a |= 0), (h |= 0)) - }, - mi: VA, - ni: function (d, a) { - lt((d |= 0), (a |= 0)) - }, - oi: io, - pi: bs, - qi: bs, - ri: io, - si: function (d, a, h, g, _e, on, hn, j, cn, Dn) { - return ( - 0 | - _A( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (j |= 0), - (cn |= 0), - (Dn |= 0), - ) - ) - }, - ti: Go, - ui: Ss, - vi: du, - wi: Ss, - xi: io, - yi: function () { - return 102 - }, - zi: function () { - return 1570 - }, - Ai: function () { - return 32768 - }, - Bi: Ss, - Ci: np, - Di: Ss, - Ei: function () { - return 524288 - }, - Fi: np, - Gi: _f, - Hi: Pl, - Ii: function (d, a, h, g, _e, on, hn, j, cn, Dn) { - var $n, wn, Un - ;(a |= 0), - (h |= 0), - (g |= 0), - (_e |= 0), - (on |= 0), - (hn |= 0), - (cn |= 0), - (Dn |= 0), - (wn = 0 | (j |= 0)), - (St = j = (St - 16) | 0), - (Un = a |= 0), - ($n = qo((d |= 0), 0, a)), - (d = 0 | _e) - e: if (((0 | (_e = h | on)) == 1) | (_e >>> 0 > 1)) - (c[9129] = 22), (d = -1) - else if ((!h & (a >>> 0 >= 16)) | h) { - if ( - (Ku(wn, cn, Dn, (j + 12) | 0, (j + 8) | 0, (j + 4) | 0), - (0 | g) == (0 | $n)) - ) { - ;(c[9129] = 28), (d = -1) - break e - } - ;(_e = d), - (d = 31 & (a = c[(j + 12) >> 2])), - (63 & a) >>> 0 >= 32 - ? ((a = 1 << d), (h = 0)) - : (a = ((h = 1 << d) - 1) & (1 >>> (32 - d))), - (d = _A( - g, - _e, - hn, - 32, - h, - a, - c[(j + 4) >> 2], - c[(j + 8) >> 2], - $n, - Un, - )) - } else (c[9129] = 28), (d = -1) - return (St = (j + 16) | 0), 0 | d - }, - Ji: function (d, a, h, g, _e, on, hn) { - ;(a |= 0), (h |= 0), (g |= 0), (on |= 0), (hn |= 0) - var j, - cn, - Dn, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0 - ;($n = _e |= 0), - ($n |= _e = 0), - (St = j = (St - 128) | 0), - (cn = qo((d |= 0), 0, 102)), - (et = 22), - (Dn = h | _e) - e: { - if (!g) { - Ku($n, on, hn, (j + 12) | 0, (j + 8) | 0, (j + 4) | 0), - Ps((Un = (j + 96) | 0), 32), - (et = 28), - (h = (j + 32) | 0), - (on = c[(j + 12) >> 2]), - (hn = jn( - (d = c[(j + 8) >> 2]), - 0, - (g = c[(j + 4) >> 2]), - 0, - )) - n: if ( - !( - (!($n = On) & (hn >>> 0 > 1073741823)) | - $n | - (on >>> 0 > 63) - ) && - ((pn[0 | h] = 36), - (pn[(h + 1) | 0] = 55), - (pn[(h + 2) | 0] = 36), - (pn[(h + 3) | 0] = rn[(on + 1024) | 0]), - (pn[(h + 4) | 0] = rn[(1024 + (63 & g)) | 0]), - (pn[(h + 5) | 0] = rn[(1024 + ((g >>> 6) & 63)) | 0]), - (pn[(h + 6) | 0] = rn[(1024 + ((g >>> 12) & 63)) | 0]), - (pn[(h + 7) | 0] = rn[(1024 + ((g >>> 18) & 63)) | 0]), - (pn[(h + 8) | 0] = rn[(1024 + ((g >>> 24) & 63)) | 0]), - (g = (h + 9) | 0) && - (0 | g) != (0 | (Yn = (h + 58) | 0)) && - ((pn[0 | g] = rn[(1024 + (63 & d)) | 0]), - (g = ((-1 ^ g) + Yn) | 0) && - ((pn[(h + 10) | 0] = - rn[(1024 + ((d >>> 6) & 63)) | 0]), - (0 | g) != 1 && - ((pn[(h + 11) | 0] = - rn[(1024 + ((d >>> 12) & 63)) | 0]), - (0 | g) != 2 && - ((pn[(h + 12) | 0] = - rn[(1024 + ((d >>> 18) & 63)) | 0]), - (0 | g) != 3 && - ((pn[(h + 13) | 0] = - rn[(1024 + ((d >>> 24) & 63)) | 0]), - (on = (h + 14) | 0))))))) - ) { - for (wn = (Yn - on) | 0, d = 0; ; ) { - if (((g = on), !(d >>> 0 >= 32))) { - if ( - ((on = rn[(d + Un) | 0]), - (nt = (hn = (d + 1) | 0) >>> 0 >= 32) - ? ((d = hn), (hn = 0)) - : ((on = (rn[(hn + Un) | 0] << 8) | on), - (hn = (d + 2) | 0) >>> 0 >= 32 - ? ((d = hn), (hn = 0)) - : ((d = (d + 3) | 0), - (on = (rn[(hn + Un) | 0] << 16) | on), - (hn = 1))), - !wn || - ((pn[0 | g] = rn[(1024 + (63 & on)) | 0]), - (0 | wn) == 1)) - ) - break n - if ( - (($n = hn), - (pn[(g + 1) | 0] = - rn[(1024 + ((on >>> 6) & 63)) | 0]), - (at = (g + wn) | 0), - (hn = (g + 2) | 0), - !nt) - ) { - if ((0 | wn) == 2) break n - if ( - ((pn[(g + 2) | 0] = - rn[(1024 + ((on >>> 12) & 63)) | 0]), - (hn = (g + 3) | 0), - $n) - ) { - if ((0 | wn) == 3) break n - ;(pn[(g + 3) | 0] = - rn[(1024 + ((on >>> 18) | 0)) | 0]), - (hn = (g + 4) | 0) - } - } - if (((wn = (at - (on = hn)) | 0), on)) continue - break n - } - break - } - g >>> 0 >= Yn >>> 0 || ((pn[0 | g] = 0), (_e = h)) - } - if ( - _e && - ((d = -1), - yl((j + 16) | 0), - (a = Ds((d = (j + 16) | 0), a, Dn, (j + 32) | 0, cn)), - R0(d), - (d = 0), - a) - ) - break e - } - ;(c[9129] = et), (d = -1) - } - return (St = (j + 128) | 0), 0 | d - }, - Ki: function (d, a, h, g) { - var _e, on - ;(a |= 0), - (g |= 0), - (_e = d |= 0), - (on = h |= 0), - (h = 0), - (St = g = (St - 128) | 0) - e: { - n: { - for (;;) { - if (!rn[(h + _e) | 0]) { - d = h - break n - } - if ( - !rn[(_e + (d = (h + 1) | 0)) | 0] || - !rn[(_e + (d = (h + 2) | 0)) | 0] - ) - break n - if ((0 | (h = (h + 3) | 0)) == 102) break - } - h = -1 - break e - } - ;(h = -1), - (0 | d) == 101 && - (yl(g) || - (qo((d = (g + 16) | 0), 0, 102), - (d = Ds(g, a, on, _e, d)), - R0(g), - d && - ((h = Iu((d = (g + 16) | 0), _e, 102)), - Ur(d, 102)))) - } - return (St = (g + 128) | 0), 0 | h - }, - Li: function (d, a, h, g) { - var _e, on - ;(on = d |= 0), - (St = _e = (St - 32) | 0), - Ku( - (a |= 0), - (h |= 0), - (g |= 0), - (_e + 28) | 0, - (_e + 20) | 0, - (_e + 12) | 0, - ), - (d = 0) - e: { - n: { - t: { - for (;;) { - if (rn[(d + on) | 0]) { - if ( - rn[(on + (a = (d + 1) | 0)) | 0] && - rn[(on + (a = (d + 2) | 0)) | 0] - ) { - if ((0 | (d = (d + 3) | 0)) != 102) continue - break t - } - } else a = d - break - } - if ((0 | a) == 101) { - if ( - ((h = (_e + 8) | 0), - (g = (_e + 16) | 0), - (d = 0), - (rn[0 | on] != 36) | - (rn[(on + 1) | 0] != 55) | - (rn[(on + 2) | 0] != 36) || - ((a = Eu(rn[(on + 3) | 0])), - (c[(_e + 24) >> 2] = a ? (a - 1024) | 0 : 0), - a && (a = B0(h, (on + 4) | 0)) && (d = B0(g, a))), - d) - ) - break n - ;(c[9129] = 28), (d = -1) - break e - } - } - ;(c[9129] = 28), (d = -1) - break e - } - ;(d = 1), - (c[(_e + 28) >> 2] != c[(_e + 24) >> 2]) | - (c[(_e + 12) >> 2] != c[(_e + 8) >> 2]) || - (d = c[(_e + 20) >> 2] != c[(_e + 16) >> 2]) - } - return (St = (_e + 32) | 0), 0 | d - }, - Mi: function (d, a, h) { - return 0 | As((d |= 0), (a |= 0), (h |= 0), 1) - }, - Ni: function (d, a, h) { - return 0 | As((d |= 0), (a |= 0), (h |= 0), 0) - }, - Oi: function (d, a) { - return 0 | Nl((d |= 0), (a |= 0), 1) - }, - Pi: function (d, a) { - return 0 | Nl((d |= 0), (a |= 0), 0) - }, - Qi: io, - Ri: io, - Si: function (d, a, h) { - ;(d |= 0), (a |= 0) - var g, - _e = 0 - return ( - (St = g = (St - 320) | 0), - (_e = -1), - Au(g, (h |= 0)) || - ((pn[0 | d] = rn[0 | a]), - (pn[(d + 1) | 0] = rn[(a + 1) | 0]), - (pn[(d + 2) | 0] = rn[(a + 2) | 0]), - (pn[(d + 3) | 0] = rn[(a + 3) | 0]), - (pn[(d + 4) | 0] = rn[(a + 4) | 0]), - (pn[(d + 5) | 0] = rn[(a + 5) | 0]), - (pn[(d + 6) | 0] = rn[(a + 6) | 0]), - (pn[(d + 7) | 0] = rn[(a + 7) | 0]), - (pn[(d + 8) | 0] = rn[(a + 8) | 0]), - (pn[(d + 9) | 0] = rn[(a + 9) | 0]), - (pn[(d + 10) | 0] = rn[(a + 10) | 0]), - (pn[(d + 11) | 0] = rn[(a + 11) | 0]), - (pn[(d + 12) | 0] = rn[(a + 12) | 0]), - (pn[(d + 13) | 0] = rn[(a + 13) | 0]), - (pn[(d + 14) | 0] = rn[(a + 14) | 0]), - (pn[(d + 15) | 0] = rn[(a + 15) | 0]), - (pn[(d + 16) | 0] = rn[(a + 16) | 0]), - (pn[(d + 17) | 0] = rn[(a + 17) | 0]), - (pn[(d + 18) | 0] = rn[(a + 18) | 0]), - (pn[(d + 19) | 0] = rn[(a + 19) | 0]), - (pn[(d + 20) | 0] = rn[(a + 20) | 0]), - (pn[(d + 21) | 0] = rn[(a + 21) | 0]), - (pn[(d + 22) | 0] = rn[(a + 22) | 0]), - (pn[(d + 23) | 0] = rn[(a + 23) | 0]), - (pn[(d + 24) | 0] = rn[(a + 24) | 0]), - (pn[(d + 25) | 0] = rn[(a + 25) | 0]), - (pn[(d + 26) | 0] = rn[(a + 26) | 0]), - (pn[(d + 27) | 0] = rn[(a + 27) | 0]), - (pn[(d + 28) | 0] = rn[(a + 28) | 0]), - (pn[(d + 29) | 0] = rn[(a + 29) | 0]), - (pn[(d + 30) | 0] = rn[(a + 30) | 0]), - (pn[(d + 31) | 0] = 127 & rn[(a + 31) | 0]), - A0((a = (g + 160) | 0), d, g), - _u(d, a), - (_e = Qs(d, 32) ? -1 : 0)), - (St = (g + 320) | 0), - 0 | _e - ) - }, - Ti: function (d, a) { - var h - return ( - (a |= 0), - (St = h = (St - 160) | 0), - (pn[0 | (d |= 0)] = rn[0 | a]), - (pn[(d + 1) | 0] = rn[(a + 1) | 0]), - (pn[(d + 2) | 0] = rn[(a + 2) | 0]), - (pn[(d + 3) | 0] = rn[(a + 3) | 0]), - (pn[(d + 4) | 0] = rn[(a + 4) | 0]), - (pn[(d + 5) | 0] = rn[(a + 5) | 0]), - (pn[(d + 6) | 0] = rn[(a + 6) | 0]), - (pn[(d + 7) | 0] = rn[(a + 7) | 0]), - (pn[(d + 8) | 0] = rn[(a + 8) | 0]), - (pn[(d + 9) | 0] = rn[(a + 9) | 0]), - (pn[(d + 10) | 0] = rn[(a + 10) | 0]), - (pn[(d + 11) | 0] = rn[(a + 11) | 0]), - (pn[(d + 12) | 0] = rn[(a + 12) | 0]), - (pn[(d + 13) | 0] = rn[(a + 13) | 0]), - (pn[(d + 14) | 0] = rn[(a + 14) | 0]), - (pn[(d + 15) | 0] = rn[(a + 15) | 0]), - (pn[(d + 16) | 0] = rn[(a + 16) | 0]), - (pn[(d + 17) | 0] = rn[(a + 17) | 0]), - (pn[(d + 18) | 0] = rn[(a + 18) | 0]), - (pn[(d + 19) | 0] = rn[(a + 19) | 0]), - (pn[(d + 20) | 0] = rn[(a + 20) | 0]), - (pn[(d + 21) | 0] = rn[(a + 21) | 0]), - (pn[(d + 22) | 0] = rn[(a + 22) | 0]), - (pn[(d + 23) | 0] = rn[(a + 23) | 0]), - (pn[(d + 24) | 0] = rn[(a + 24) | 0]), - (pn[(d + 25) | 0] = rn[(a + 25) | 0]), - (pn[(d + 26) | 0] = rn[(a + 26) | 0]), - (pn[(d + 27) | 0] = rn[(a + 27) | 0]), - (pn[(d + 28) | 0] = rn[(a + 28) | 0]), - (pn[(d + 29) | 0] = rn[(a + 29) | 0]), - (pn[(d + 30) | 0] = rn[(a + 30) | 0]), - (pn[(d + 31) | 0] = 127 & rn[(a + 31) | 0]), - fu(h, d), - _u(d, h), - (d = Qs(d, 32)), - (St = (h + 160) | 0), - 0 | (d ? -1 : 0) - ) - }, - Ui: io, - Vi: io, - Wi: OA, - Xi: function (d, a, h, g, _e, on) { - return ( - (d |= 0), - (a |= 0), - (_e |= 0), - (on |= 0), - (!(g |= 0) & ((h |= 0) >>> 0 >= 4294967280)) | g && - (ss(), so()), - _d((d + 16) | 0, d, a, h, g, _e, on), - 0 - ) - }, - Yi: RA, - Zi: IA, - _i: io, - $i: nu, - aj: Go, - bj: uu, - cj: Go, - dj: Go, - ej: function (d, a, h, g, _e) { - ;(d |= 0), (a |= 0), (h |= 0), (g |= 0) - var on, - hn = 0, - j = 0, - cn = 0, - Dn = 0, - $n = 0, - wn = 0, - Un = 0, - Yn = 0, - et = 0, - nt = 0, - at = 0, - pt = 0, - gt = 0, - mt = 0, - yt = 0, - _t = 0 - if ( - ((mt = - 1886610805 ^ - (hn = - rn[0 | (_e |= 0)] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24))), - (pt = - 1936682341 ^ - (j = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24))), - (hn ^= 1852142177), - (cn = 1819895653 ^ j), - (yt = - 1852075907 ^ - (j = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24))), - (gt = - 1685025377 ^ - (_e = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24))), - (Dn = 2037671283 ^ j), - (j = 1952801890 ^ _e), - (nt = h), - (0 | (wn = (((a + h) | 0) - (on = 7 & h)) | 0)) != (0 | a)) - ) { - for ( - ; - (h = - ((at = - j ^ - (_t = - rn[(a + 4) | 0] | - (rn[(a + 5) | 0] << 8) | - (rn[(a + 6) | 0] << 16) | - (rn[(a + 7) | 0] << 24))) + - cn) | - 0), - (Dn = _e = - ((_e = hn) + - (hn = g = - Dn ^ - (et = - rn[0 | a] | - (rn[(a + 1) | 0] << 8) | - (rn[(a + 2) | 0] << 16) | - (rn[(a + 3) | 0] << 24)))) | - 0), - ($n = h = _e >>> 0 < hn >>> 0 ? (h + 1) | 0 : h), - (h = (gt + pt) | 0), - (h = - (cn = (mt + yt) | 0) >>> 0 < mt >>> 0 - ? (h + 1) | 0 - : h), - (hn = st(yt, gt, 13) ^ cn), - (j = h), - (h = ($n + (_e = h ^ On)) | 0), - (h = - hn >>> 0 > (Un = (Dn + hn) | 0) >>> 0 - ? (h + 1) | 0 - : h), - (hn = st(hn, _e, 17) ^ Un), - (Yn = h), - (gt = st(hn, (_e = h ^ On), 13)), - (pt = On), - (h = st(g, at, 16)), - (g = $n ^ On), - (at = h ^ Dn), - (j = st(cn, j, 32)), - (h = (On + g) | 0), - (h = - ((j = - (cn = (at + j) | 0) >>> 0 < j >>> 0 - ? (h + 1) | 0 - : h) + - _e) | - 0), - ($n = h = - (Dn = (hn + cn) | 0) >>> 0 < cn >>> 0 - ? (h + 1) | 0 - : h), - (gt = st((hn = Dn ^ gt), (_e = h ^ pt), 17)), - (pt = On), - (h = st(at, g, 21)), - (g = j ^ On), - (at = h ^ cn), - (j = st(Un, Yn, 32)), - (h = (On + g) | 0), - (h = - ((j = - (cn = (at + j) | 0) >>> 0 < j >>> 0 - ? (h + 1) | 0 - : h) + - _e) | - 0), - (yt = (hn = (hn + cn) | 0) ^ gt), - (_e = h = hn >>> 0 < cn >>> 0 ? (h + 1) | 0 : h), - (gt = h ^ pt), - (h = st(at, g, 16)), - (Un = j ^= On), - (Yn = st((h ^= cn), j, 21)), - (cn = On), - ($n = ((j = st(Dn, $n, 32)) + h) | 0), - (h = (On + Un) | 0), - (Dn = $n ^ Yn), - (j = (h = j >>> 0 > $n >>> 0 ? (h + 1) | 0 : h) ^ cn), - (hn = st(hn, _e, 32)), - (cn = On), - (mt = $n ^ et), - (pt = h ^ _t), - (0 | wn) != (0 | (a = (a + 8) | 0)); - - ); - a = wn - } - switch (((Un = 0), (g = nt << 24), (on - 1) | 0)) { - case 6: - g |= rn[(a + 6) | 0] << 16 - case 5: - g |= rn[(a + 5) | 0] << 8 - case 4: - g |= rn[(a + 4) | 0] - case 3: - ;(Un |= (_e = rn[(a + 3) | 0]) << 24), - (g |= h = (_e >>> 8) | 0) - case 2: - ;(Un |= (_e = rn[(a + 2) | 0]) << 16), - (g |= h = (_e >>> 16) | 0) - case 1: - ;(Un |= (_e = rn[(a + 1) | 0]) << 8), - (g |= h = (_e >>> 24) | 0) - case 0: - Un = rn[0 | a] | Un - } - return ( - (Yn = g), - (g = st((_e = Un ^ Dn), (a = g ^ j), 16)), - (a = (a + cn) | 0), - ($n = a = - (Dn = (_e + hn) | 0) >>> 0 < hn >>> 0 ? (a + 1) | 0 : a), - (et = st((_e = g ^ Dn), (a ^= h = On), 21)), - (j = On), - (h = (gt + pt) | 0), - (g = h = - (hn = (mt + yt) | 0) >>> 0 < mt >>> 0 ? (h + 1) | 0 : h), - (cn = _e), - (_e = st(hn, h, 32)), - (h = (On + a) | 0), - (a = j), - (j = h = - _e >>> 0 > (cn = (cn + _e) | 0) >>> 0 ? (h + 1) | 0 : h), - (at = st((_e = cn ^ et), (a ^= h), 16)), - (nt = On), - (hn = ((wn = st(yt, gt, 13) ^ hn) + Dn) | 0), - (h = ((Dn = On ^ g) + $n) | 0), - (g = hn), - ($n = _e), - (_e = st( - hn, - (h = hn >>> 0 < wn >>> 0 ? (h + 1) | 0 : h), - 32, - )), - (a = (On + a) | 0), - (pt = _e = - (hn = - _e >>> 0 > (et = ($n + _e) | 0) >>> 0 - ? (a + 1) | 0 - : a) ^ nt), - ($n = at ^= et), - (nt = st(wn, Dn, 17) ^ g), - (h = ((wn = On ^ h) + j) | 0), - (a = h = - (a = nt) >>> 0 > (g = (a + cn) | 0) >>> 0 - ? (h + 1) | 0 - : h), - (j = st(g, h, 32)), - (h = (On + _e) | 0), - (cn = Un ^ (Dn = (j + $n) | 0)), - (Yn ^= $n = j >>> 0 > Dn >>> 0 ? (h + 1) | 0 : h), - (_e = st(nt, wn, 13) ^ g), - (g = st(_e, (a ^= On), 17)), - (a = (a + hn) | 0), - (h = - ((a = - (_e = a = - (j = (_e + et) | 0) >>> 0 < et >>> 0 - ? (a + 1) | 0 - : a) ^ (h = On)) + - Yn) | - 0), - (h = - (g ^= j) >>> 0 > (cn = (g + cn) | 0) >>> 0 - ? (h + 1) | 0 - : h), - (g = st(g, a, 13) ^ cn), - (hn = h), - (et = st(g, (a = h ^ On), 17)), - (Un = On), - (Yn = st(at, pt, 21)), - (wn = $n ^ On), - ($n = Dn ^ Yn), - (j = 238 ^ st(j, _e, 32)), - (h = (On + wn) | 0), - (h = - ((pt = a) + - (a = - (_e = ($n + j) | 0) >>> 0 < j >>> 0 - ? (h + 1) | 0 - : h)) | - 0), - (j = h = - (Dn = (g + _e) | 0) >>> 0 < _e >>> 0 ? (h + 1) | 0 : h), - (et = st((g = Dn ^ et), (h ^= Un), 13)), - (Un = On), - ($n = st($n, wn, 16)), - (wn = a ^ On), - (Yn = _e ^ $n), - (_e = st(cn, hn, 32)), - (a = (On + wn) | 0), - (h = - ((_e = - _e >>> 0 > (hn = (Yn + _e) | 0) >>> 0 - ? (a + 1) | 0 - : a) + - h) | - 0), - (cn = h = - ($n = (g + hn) | 0) >>> 0 < hn >>> 0 ? (h + 1) | 0 : h), - (et = st((g = $n ^ et), (a = h ^ Un), 17)), - (Un = On), - (h = st(Yn, wn, 21)), - (wn = _e ^ On), - (Yn = h ^ hn), - (_e = st(Dn, j, 32)), - (h = (On + wn) | 0), - (h = - ((_e = - _e >>> 0 > (hn = (Yn + _e) | 0) >>> 0 - ? (h + 1) | 0 - : h) + - a) | - 0), - (j = h = - (Dn = (g + hn) | 0) >>> 0 < hn >>> 0 ? (h + 1) | 0 : h), - (et = st((g = Dn ^ et), (a = h ^ Un), 13)), - (Un = On), - (h = st(Yn, wn, 16)), - (wn = _e ^ On), - (Yn = h ^ hn), - (_e = st($n, cn, 32)), - (h = (On + wn) | 0), - (h = - ((_e = - _e >>> 0 > (hn = (Yn + _e) | 0) >>> 0 - ? (h + 1) | 0 - : h) + - a) | - 0), - (cn = h = - ($n = (g + hn) | 0) >>> 0 < hn >>> 0 ? (h + 1) | 0 : h), - (et = st((g = $n ^ et), (a = h ^ Un), 17)), - (Un = On), - (h = st(Yn, wn, 21)), - (wn = _e ^ On), - (Yn = h ^ hn), - (hn = st(Dn, j, 32)), - (h = (On + wn) | 0), - (a = - ((h = - (_e = (Yn + hn) | 0) >>> 0 < hn >>> 0 - ? (h + 1) | 0 - : h) + - a) | - 0), - (hn = a = - (j = (g + _e) | 0) >>> 0 < _e >>> 0 ? (a + 1) | 0 : a), - (et = st((g = j ^ et), (a ^= Un), 13)), - (Un = On), - (Dn = st(Yn, wn, 16)), - (wn = h ^ On), - (Yn = _e ^ Dn), - (cn = st($n, cn, 32)), - (h = (On + wn) | 0), - (h = - (($n = a) + - (a = - (_e = (Yn + cn) | 0) >>> 0 < cn >>> 0 - ? (h + 1) | 0 - : h)) | - 0), - ($n = h = - (Dn = (g + _e) | 0) >>> 0 < _e >>> 0 ? (h + 1) | 0 : h), - (et = st((g = Dn ^ et), (h ^= Un), 17)), - (Un = On), - (cn = st(Yn, wn, 21)), - (nt = a ^ On), - (Yn = _e ^ cn), - (_e = st(j, hn, 32)), - (a = (On + nt) | 0), - (h = - ((j = - _e >>> 0 > (cn = (Yn + _e) | 0) >>> 0 - ? (a + 1) | 0 - : a) + - h) | - 0), - (_e = g = - (a = - (hn = (g + cn) | 0) >>> 0 < cn >>> 0 - ? (h + 1) | 0 - : h) ^ Un), - (wn = hn ^ et), - (h = st(Yn, nt, 16)), - (nt = j ^ On), - (cn = ((Yn = h ^ cn) + (j = st(Dn, $n, 32))) | 0), - (h = (On + nt) | 0), - (a = st(hn, a, 32)), - (et = On), - (j = h = cn >>> 0 < j >>> 0 ? (h + 1) | 0 : h), - (hn = d), - (Dn = ($n = st(Yn, nt, 21) ^ cn) ^ a ^ cn ^ wn), - (pn[0 | hn] = Dn), - (pn[(hn + 1) | 0] = Dn >>> 8), - (pn[(hn + 2) | 0] = Dn >>> 16), - (pn[(hn + 3) | 0] = Dn >>> 24), - (h = (Dn = h ^ On) ^ et ^ h ^ _e), - (pn[(hn + 4) | 0] = h), - (pn[(hn + 5) | 0] = h >>> 8), - (pn[(hn + 6) | 0] = h >>> 16), - (pn[(hn + 7) | 0] = h >>> 24), - (g = hn), - (h = (Dn + et) | 0), - (h = (d = (a + $n) | 0) >>> 0 < a >>> 0 ? (h + 1) | 0 : h), - (Un = d), - (hn = st($n, Dn, 16) ^ d), - (Dn = h), - (et = a = h ^ On), - (h = (_e + j) | 0), - (j = h = - (cn = (($n = 221 ^ wn) + cn) | 0) >>> 0 < $n >>> 0 - ? (h + 1) | 0 - : h), - (Yn = ((h = st(cn, h, 32)) + hn) | 0), - (a = (On + a) | 0), - (gt = st(hn, et, 21) ^ Yn), - (pt = a = (hn = h >>> 0 > Yn >>> 0 ? (a + 1) | 0 : a) ^ On), - (at = st(gt, a, 16)), - (nt = On), - (h = (Dn + (et = (h = (_e << 13) | ($n >>> 19)) ^ j)) | 0), - (a = h = - (_e = - (Un + (wn = cn ^ (($n << 13) | (_e >>> 19)))) | 0) >>> - 0 < - Un >>> 0 - ? (h + 1) | 0 - : h), - (d = st(_e, h, 32)), - (h = (pt + On) | 0), - (h = - (j = - (d = (d + gt) | 0) >>> 0 < gt >>> 0 ? (h + 1) | 0 : h) ^ - nt), - ($n = d), - (Dn = st((nt = at ^ d), h, 21)), - (cn = On), - (d = st(wn, et, 17)), - (a = (hn + (wn = a ^ On)) | 0), - (d = st( - (_e = (Yn + (Un = d ^ _e)) | 0), - (a = _e >>> 0 < Yn >>> 0 ? (a + 1) | 0 : a), - 32, - )), - (h = (h + On) | 0), - (et = h = - (hn = - (d = (d + nt) | 0) >>> 0 < nt >>> 0 ? (h + 1) | 0 : h) ^ - cn), - (Yn = st((nt = Dn ^ (cn = d)), h, 16)), - (Dn = On), - (d = st(Un, wn, 13)), - (h = (j + (wn = a ^ On)) | 0), - (a = h = - (_e = ($n + (Un = d ^ _e)) | 0) >>> 0 < $n >>> 0 - ? (h + 1) | 0 - : h), - (d = st(_e, h, 32)), - (h = (et + On) | 0), - (et = h = - (j = - (d = (d + nt) | 0) >>> 0 < nt >>> 0 ? (h + 1) | 0 : h) ^ - Dn), - ($n = d), - (Yn = st((nt = Yn ^ d), h, 21)), - (Dn = On), - (d = st(Un, wn, 17)), - (h = (hn + (wn = a ^ On)) | 0), - (a = h = - (_e = (cn + (Un = d ^ _e)) | 0) >>> 0 < cn >>> 0 - ? (h + 1) | 0 - : h), - (d = st(_e, h, 32)), - (h = (et + On) | 0), - (et = h = - (hn = - (d = (d + nt) | 0) >>> 0 < nt >>> 0 ? (h + 1) | 0 : h) ^ - Dn), - (Yn = st((nt = Yn ^ (cn = d)), h, 16)), - (Dn = On), - (d = st(Un, wn, 13)), - (h = (j + (Un = a ^ On)) | 0), - (d = st( - (_e = ($n + (j = d ^ _e)) | 0), - (h = _e >>> 0 < $n >>> 0 ? (h + 1) | 0 : h), - 32, - )), - (a = (et + On) | 0), - (Yn = st( - (d = (d + nt) | 0) ^ Yn, - (a = d >>> 0 < nt >>> 0 ? (a + 1) | 0 : a) ^ Dn, - 21, - )), - (Dn = On), - (_e = st(j, Un, 17) ^ _e), - ($n = st(_e, (h ^= On), 13)), - (h = (h + hn) | 0), - (hn = - st( - (j = (_e = (_e + cn) | 0) ^ $n), - (h = On ^ (_e >>> 0 < cn >>> 0 ? (h + 1) | 0 : h)), - 17, - ) ^ Yn), - (_e = On ^ Dn), - (h = (a + h) | 0), - (a = d), - (d = - st( - (d = (d + j) | 0), - (h = a >>> 0 > d >>> 0 ? (h + 1) | 0 : h), - 32, - ) ^ - hn ^ - d), - (pn[(g + 8) | 0] = d), - (pn[(g + 9) | 0] = d >>> 8), - (pn[(g + 10) | 0] = d >>> 16), - (pn[(g + 11) | 0] = d >>> 24), - (d = h ^ On ^ _e), - (pn[(g + 12) | 0] = d), - (pn[(g + 13) | 0] = d >>> 8), - (pn[(g + 14) | 0] = d >>> 16), - (pn[(g + 15) | 0] = d >>> 24), - 0 - ) - }, - fj: function (d, a, h, g, _e) { - ;(d |= 0), (g |= 0), (_e |= 0) - var on, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - if ( - ((St = on = (St - 112) | 0), - (hn = a |= 0), - (a = h |= 0), - hn | h) - ) { - ;(h = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (c[(on + 24) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (c[(on + 28) >> 2] = h), - (h = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (c[(on + 16) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - (c[(on + 20) >> 2] = h), - (h = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[on >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(on + 4) >> 2] = h), - (h = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (c[(on + 8) >> 2] = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24)), - (c[(on + 12) >> 2] = h), - (h = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (g = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24)), - (c[(on + 104) >> 2] = 0), - (c[(on + 108) >> 2] = 0), - (c[(on + 96) >> 2] = h), - (c[(on + 100) >> 2] = g) - e: { - if ((!a & (hn >>> 0 >= 64)) | a) { - for ( - ; - i0(d, (on + 96) | 0, on, 0), - (h = (rn[(on + 104) | 0] + 1) | 0), - (pn[(on + 104) | 0] = h), - (h = (rn[(on + 105) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 105) | 0] = h), - (h = (rn[(on + 106) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 106) | 0] = h), - (h = (rn[(on + 107) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 107) | 0] = h), - (h = (rn[(on + 108) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 108) | 0] = h), - (h = (rn[(on + 109) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 109) | 0] = h), - (h = (rn[(on + 110) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 110) | 0] = h), - (pn[(on + 111) | 0] = - rn[(on + 111) | 0] + ((h >>> 8) | 0)), - (d = (d - -64) | 0), - (a = (a - 1) | 0), - (!(a = - (hn = (hn + -64) | 0) >>> 0 < 4294967232 - ? (a + 1) | 0 - : a) & - (hn >>> 0 > 63)) | - a; - - ); - if (!(a | hn)) break e - } - if ( - ((h = 0), - i0((on + 32) | 0, (on + 96) | 0, on, 0), - (_e = 3 & hn), - (a = 0), - (hn - 1) >>> 0 >= 3) - ) - for ( - hn &= -4, g = 0; - (j = Dn = (on + 32) | 0), - (pn[(d + a) | 0] = rn[(j + a) | 0]), - (pn[((cn = 1 | a) + d) | 0] = rn[(j + cn) | 0]), - (pn[((cn = 2 | a) + d) | 0] = rn[(j + cn) | 0]), - (pn[((j = 3 | a) + d) | 0] = rn[(j + Dn) | 0]), - (a = (a + 4) | 0), - (0 | hn) != (0 | (g = (g + 4) | 0)); - - ); - if (_e) - for ( - ; - (pn[(d + a) | 0] = rn[(((on + 32) | 0) + a) | 0]), - (a = (a + 1) | 0), - (0 | _e) != (0 | (h = (h + 1) | 0)); - - ); - } - Ur((on + 32) | 0, 64), Ur(on, 32) - } - return (St = (on + 112) | 0), 0 - }, - gj: function (d, a, h, g, _e, on) { - ;(d |= 0), (a |= 0), (_e |= 0), (on |= 0) - var hn, - j = 0, - cn = 0 - if ( - ((St = hn = (St - 112) | 0), - (j = g |= 0), - (g = h |= 0), - j | h) - ) { - ;(h = - rn[(on + 28) | 0] | - (rn[(on + 29) | 0] << 8) | - (rn[(on + 30) | 0] << 16) | - (rn[(on + 31) | 0] << 24)), - (c[(hn + 24) >> 2] = - rn[(on + 24) | 0] | - (rn[(on + 25) | 0] << 8) | - (rn[(on + 26) | 0] << 16) | - (rn[(on + 27) | 0] << 24)), - (c[(hn + 28) >> 2] = h), - (h = - rn[(on + 20) | 0] | - (rn[(on + 21) | 0] << 8) | - (rn[(on + 22) | 0] << 16) | - (rn[(on + 23) | 0] << 24)), - (c[(hn + 16) >> 2] = - rn[(on + 16) | 0] | - (rn[(on + 17) | 0] << 8) | - (rn[(on + 18) | 0] << 16) | - (rn[(on + 19) | 0] << 24)), - (c[(hn + 20) >> 2] = h), - (h = - rn[(on + 4) | 0] | - (rn[(on + 5) | 0] << 8) | - (rn[(on + 6) | 0] << 16) | - (rn[(on + 7) | 0] << 24)), - (c[hn >> 2] = - rn[0 | on] | - (rn[(on + 1) | 0] << 8) | - (rn[(on + 2) | 0] << 16) | - (rn[(on + 3) | 0] << 24)), - (c[(hn + 4) >> 2] = h), - (h = - rn[(on + 12) | 0] | - (rn[(on + 13) | 0] << 8) | - (rn[(on + 14) | 0] << 16) | - (rn[(on + 15) | 0] << 24)), - (c[(hn + 8) >> 2] = - rn[(on + 8) | 0] | - (rn[(on + 9) | 0] << 8) | - (rn[(on + 10) | 0] << 16) | - (rn[(on + 11) | 0] << 24)), - (c[(hn + 12) >> 2] = h), - (h = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (_e = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[(hn + 104) >> 2] = 0), - (c[(hn + 108) >> 2] = 0), - (c[(hn + 96) >> 2] = h), - (c[(hn + 100) >> 2] = _e) - e: { - if ((!j & (g >>> 0 >= 64)) | j) { - for (;;) { - for ( - h = 0, i0((hn + 32) | 0, (hn + 96) | 0, hn, 0); - (on = (hn + 32) | 0), - (pn[(d + h) | 0] = - rn[(on + h) | 0] ^ rn[(a + h) | 0]), - (pn[((_e = 1 | h) + d) | 0] = - rn[(_e + on) | 0] ^ rn[(a + _e) | 0]), - (0 | (h = (h + 2) | 0)) != 64; - - ); - if ( - ((h = (rn[(hn + 104) | 0] + 1) | 0), - (pn[(hn + 104) | 0] = h), - (h = (rn[(hn + 105) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 105) | 0] = h), - (h = (rn[(hn + 106) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 106) | 0] = h), - (h = (rn[(hn + 107) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 107) | 0] = h), - (h = (rn[(hn + 108) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 108) | 0] = h), - (h = (rn[(hn + 109) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 109) | 0] = h), - (h = (rn[(hn + 110) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 110) | 0] = h), - (pn[(hn + 111) | 0] = - rn[(hn + 111) | 0] + ((h >>> 8) | 0)), - (a = (a - -64) | 0), - (d = (d - -64) | 0), - (j = (j - 1) | 0), - !( - (!(j = - (g = (g + -64) | 0) >>> 0 < 4294967232 - ? (j + 1) | 0 - : j) & - (g >>> 0 > 63)) | - j - )) - ) - break - } - if (!(g | j)) break e - } - if ( - ((h = 0), - i0((hn + 32) | 0, (hn + 96) | 0, hn, 0), - (on = 1 & g), - (0 | g) != 1) - ) - for ( - j = -2 & g, g = 0; - (cn = (hn + 32) | 0), - (pn[(d + h) | 0] = - rn[(cn + h) | 0] ^ rn[(a + h) | 0]), - (pn[((_e = 1 | h) + d) | 0] = - rn[(_e + cn) | 0] ^ rn[(a + _e) | 0]), - (h = (h + 2) | 0), - (0 | j) != (0 | (g = (g + 2) | 0)); - - ); - on && - (pn[(d + h) | 0] = - rn[(((hn + 32) | 0) + h) | 0] ^ rn[(a + h) | 0]) - } - Ur((hn + 32) | 0, 64), Ur(hn, 32) - } - return (St = (hn + 112) | 0), 0 - }, - hj: io, - ij: au, - jj: Ss, - kj: _s, - lj: function (d, a, h, g, _e) { - ;(d |= 0), (g |= 0), (_e |= 0) - var on, - hn = 0, - j = 0, - cn = 0, - Dn = 0 - if ( - ((St = on = (St - 112) | 0), - (hn = a |= 0), - (a = h |= 0), - hn | h) - ) { - ;(h = - rn[(_e + 28) | 0] | - (rn[(_e + 29) | 0] << 8) | - (rn[(_e + 30) | 0] << 16) | - (rn[(_e + 31) | 0] << 24)), - (c[(on + 24) >> 2] = - rn[(_e + 24) | 0] | - (rn[(_e + 25) | 0] << 8) | - (rn[(_e + 26) | 0] << 16) | - (rn[(_e + 27) | 0] << 24)), - (c[(on + 28) >> 2] = h), - (h = - rn[(_e + 20) | 0] | - (rn[(_e + 21) | 0] << 8) | - (rn[(_e + 22) | 0] << 16) | - (rn[(_e + 23) | 0] << 24)), - (c[(on + 16) >> 2] = - rn[(_e + 16) | 0] | - (rn[(_e + 17) | 0] << 8) | - (rn[(_e + 18) | 0] << 16) | - (rn[(_e + 19) | 0] << 24)), - (c[(on + 20) >> 2] = h), - (h = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[on >> 2] = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (c[(on + 4) >> 2] = h), - (h = - rn[(_e + 12) | 0] | - (rn[(_e + 13) | 0] << 8) | - (rn[(_e + 14) | 0] << 16) | - (rn[(_e + 15) | 0] << 24)), - (c[(on + 8) >> 2] = - rn[(_e + 8) | 0] | - (rn[(_e + 9) | 0] << 8) | - (rn[(_e + 10) | 0] << 16) | - (rn[(_e + 11) | 0] << 24)), - (c[(on + 12) >> 2] = h), - (h = - rn[0 | g] | - (rn[(g + 1) | 0] << 8) | - (rn[(g + 2) | 0] << 16) | - (rn[(g + 3) | 0] << 24)), - (g = - rn[(g + 4) | 0] | - (rn[(g + 5) | 0] << 8) | - (rn[(g + 6) | 0] << 16) | - (rn[(g + 7) | 0] << 24)), - (c[(on + 104) >> 2] = 0), - (c[(on + 108) >> 2] = 0), - (c[(on + 96) >> 2] = h), - (c[(on + 100) >> 2] = g) - e: { - if ((!a & (hn >>> 0 >= 64)) | a) { - for ( - ; - o0(d, (on + 96) | 0, on, 0), - (h = (rn[(on + 104) | 0] + 1) | 0), - (pn[(on + 104) | 0] = h), - (h = (rn[(on + 105) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 105) | 0] = h), - (h = (rn[(on + 106) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 106) | 0] = h), - (h = (rn[(on + 107) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 107) | 0] = h), - (h = (rn[(on + 108) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 108) | 0] = h), - (h = (rn[(on + 109) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 109) | 0] = h), - (h = (rn[(on + 110) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(on + 110) | 0] = h), - (pn[(on + 111) | 0] = - rn[(on + 111) | 0] + ((h >>> 8) | 0)), - (d = (d - -64) | 0), - (a = (a - 1) | 0), - (!(a = - (hn = (hn + -64) | 0) >>> 0 < 4294967232 - ? (a + 1) | 0 - : a) & - (hn >>> 0 > 63)) | - a; - - ); - if (!(a | hn)) break e - } - if ( - ((h = 0), - o0((on + 32) | 0, (on + 96) | 0, on, 0), - (_e = 3 & hn), - (a = 0), - (hn - 1) >>> 0 >= 3) - ) - for ( - hn &= -4, g = 0; - (j = Dn = (on + 32) | 0), - (pn[(d + a) | 0] = rn[(j + a) | 0]), - (pn[((cn = 1 | a) + d) | 0] = rn[(j + cn) | 0]), - (pn[((cn = 2 | a) + d) | 0] = rn[(j + cn) | 0]), - (pn[((j = 3 | a) + d) | 0] = rn[(j + Dn) | 0]), - (a = (a + 4) | 0), - (0 | hn) != (0 | (g = (g + 4) | 0)); - - ); - if (_e) - for ( - ; - (pn[(d + a) | 0] = rn[(((on + 32) | 0) + a) | 0]), - (a = (a + 1) | 0), - (0 | _e) != (0 | (h = (h + 1) | 0)); - - ); - } - Ur((on + 32) | 0, 64), Ur(on, 32) - } - return (St = (on + 112) | 0), 0 - }, - mj: function (d, a, h, g, _e, on) { - ;(d |= 0), (a |= 0), (_e |= 0), (on |= 0) - var hn, - j = 0, - cn = 0 - if ( - ((St = hn = (St - 112) | 0), - (j = g |= 0), - (g = h |= 0), - j | h) - ) { - ;(h = - rn[(on + 28) | 0] | - (rn[(on + 29) | 0] << 8) | - (rn[(on + 30) | 0] << 16) | - (rn[(on + 31) | 0] << 24)), - (c[(hn + 24) >> 2] = - rn[(on + 24) | 0] | - (rn[(on + 25) | 0] << 8) | - (rn[(on + 26) | 0] << 16) | - (rn[(on + 27) | 0] << 24)), - (c[(hn + 28) >> 2] = h), - (h = - rn[(on + 20) | 0] | - (rn[(on + 21) | 0] << 8) | - (rn[(on + 22) | 0] << 16) | - (rn[(on + 23) | 0] << 24)), - (c[(hn + 16) >> 2] = - rn[(on + 16) | 0] | - (rn[(on + 17) | 0] << 8) | - (rn[(on + 18) | 0] << 16) | - (rn[(on + 19) | 0] << 24)), - (c[(hn + 20) >> 2] = h), - (h = - rn[(on + 4) | 0] | - (rn[(on + 5) | 0] << 8) | - (rn[(on + 6) | 0] << 16) | - (rn[(on + 7) | 0] << 24)), - (c[hn >> 2] = - rn[0 | on] | - (rn[(on + 1) | 0] << 8) | - (rn[(on + 2) | 0] << 16) | - (rn[(on + 3) | 0] << 24)), - (c[(hn + 4) >> 2] = h), - (h = - rn[(on + 12) | 0] | - (rn[(on + 13) | 0] << 8) | - (rn[(on + 14) | 0] << 16) | - (rn[(on + 15) | 0] << 24)), - (c[(hn + 8) >> 2] = - rn[(on + 8) | 0] | - (rn[(on + 9) | 0] << 8) | - (rn[(on + 10) | 0] << 16) | - (rn[(on + 11) | 0] << 24)), - (c[(hn + 12) >> 2] = h), - (h = - rn[0 | _e] | - (rn[(_e + 1) | 0] << 8) | - (rn[(_e + 2) | 0] << 16) | - (rn[(_e + 3) | 0] << 24)), - (_e = - rn[(_e + 4) | 0] | - (rn[(_e + 5) | 0] << 8) | - (rn[(_e + 6) | 0] << 16) | - (rn[(_e + 7) | 0] << 24)), - (c[(hn + 104) >> 2] = 0), - (c[(hn + 108) >> 2] = 0), - (c[(hn + 96) >> 2] = h), - (c[(hn + 100) >> 2] = _e) - e: { - if ((!j & (g >>> 0 >= 64)) | j) { - for (;;) { - for ( - h = 0, o0((hn + 32) | 0, (hn + 96) | 0, hn, 0); - (on = (hn + 32) | 0), - (pn[(d + h) | 0] = - rn[(on + h) | 0] ^ rn[(a + h) | 0]), - (pn[((_e = 1 | h) + d) | 0] = - rn[(_e + on) | 0] ^ rn[(a + _e) | 0]), - (0 | (h = (h + 2) | 0)) != 64; - - ); - if ( - ((h = (rn[(hn + 104) | 0] + 1) | 0), - (pn[(hn + 104) | 0] = h), - (h = (rn[(hn + 105) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 105) | 0] = h), - (h = (rn[(hn + 106) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 106) | 0] = h), - (h = (rn[(hn + 107) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 107) | 0] = h), - (h = (rn[(hn + 108) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 108) | 0] = h), - (h = (rn[(hn + 109) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 109) | 0] = h), - (h = (rn[(hn + 110) | 0] + ((h >>> 8) | 0)) | 0), - (pn[(hn + 110) | 0] = h), - (pn[(hn + 111) | 0] = - rn[(hn + 111) | 0] + ((h >>> 8) | 0)), - (a = (a - -64) | 0), - (d = (d - -64) | 0), - (j = (j - 1) | 0), - !( - (!(j = - (g = (g + -64) | 0) >>> 0 < 4294967232 - ? (j + 1) | 0 - : j) & - (g >>> 0 > 63)) | - j - )) - ) - break - } - if (!(g | j)) break e - } - if ( - ((h = 0), - o0((hn + 32) | 0, (hn + 96) | 0, hn, 0), - (on = 1 & g), - (0 | g) != 1) - ) - for ( - j = -2 & g, g = 0; - (cn = (hn + 32) | 0), - (pn[(d + h) | 0] = - rn[(cn + h) | 0] ^ rn[(a + h) | 0]), - (pn[((_e = 1 | h) + d) | 0] = - rn[(_e + cn) | 0] ^ rn[(a + _e) | 0]), - (h = (h + 2) | 0), - (0 | j) != (0 | (g = (g + 2) | 0)); - - ); - on && - (pn[(d + h) | 0] = - rn[(((hn + 32) | 0) + h) | 0] ^ rn[(a + h) | 0]) - } - Ur((hn + 32) | 0, 64), Ur(hn, 32) - } - return (St = (hn + 112) | 0), 0 - }, - nj: io, - oj: au, - pj: Ss, - qj: _s, - rj: io, - sj: nu, - tj: Ss, - uj: function (d, a, h, g, _e) { - var on - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (St = on = (St - 32) | 0), - Rs(on, (g |= 0), (_e |= 0), 0), - (d = t0(d, a, h, (g + 16) | 0, on)), - (St = (on + 32) | 0), - 0 | d - ) - }, - vj: function (d, a, h, g, _e, on, hn, j) { - var cn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (on |= 0), - (hn |= 0), - (St = cn = (St - 32) | 0), - Rs(cn, (_e |= 0), (j |= 0), 0), - (d = bu( - (j = d), - a, - (d = 0) | h, - g, - (_e + 16) | 0, - d | on, - hn, - cn, - )), - (St = (cn + 32) | 0), - 0 | d - ) - }, - wj: function (d, a, h, g, _e, on) { - var hn - return ( - (d |= 0), - (a |= 0), - (h |= 0), - (g |= 0), - (St = hn = (St - 32) | 0), - Rs(hn, (_e |= 0), (on |= 0), 0), - (d = bu(d, a, h, g, (_e + 16) | 0, 0, 0, hn)), - (St = (hn + 32) | 0), - 0 | d - ) - }, - xj: _s, - yj: Ls, - zj: fs, - Aj: Bs, - } - })(qr) - ) - })(Wr) - }, - instantiate: function (vr, Wr) { - return { - then: function (qr) { - var Xr = new Xn.Module(vr) - qr({ instance: new Xn.Instance(Xr, Wr) }) - }, - } - }, - RuntimeError: Error, - } - ;(So = []), typeof Xn != 'object' && ns('no native wasm support detected') - var dt, - Ir, - Lt, - ur, - ho, - xo, - yo, - ga = !1, - Zo = typeof TextDecoder < 'u' ? new TextDecoder('utf8') : void 0 - function _o(vr, Wr) { - return vr - ? (function (qr, Xr, Ao) { - for (var fo = Xr + Ao, wo = Xr; qr[wo] && !(wo >= fo); ) ++wo - if (wo - Xr > 16 && qr.buffer && Zo) - return Zo.decode(qr.subarray(Xr, wo)) - for (var so = ''; Xr < wo; ) { - var jo = qr[Xr++] - if (128 & jo) { - var os = 63 & qr[Xr++] - if ((224 & jo) != 192) { - var as = 63 & qr[Xr++] - if ( - (jo = - (240 & jo) == 224 - ? ((15 & jo) << 12) | (os << 6) | as - : ((7 & jo) << 18) | - (os << 12) | - (as << 6) | - (63 & qr[Xr++])) < 65536 - ) - so += String.fromCharCode(jo) - else { - var ys = jo - 65536 - so += String.fromCharCode( - 55296 | (ys >> 10), - 56320 | (1023 & ys), - ) - } - } else so += String.fromCharCode(((31 & jo) << 6) | os) - } else so += String.fromCharCode(jo) - } - return so - })(Ir, vr, Wr) - : '' - } - function zo() { - var vr = Pn.buffer - ;(vn.HEAP8 = dt = new Int8Array(vr)), - (vn.HEAP16 = Lt = new Int16Array(vr)), - (vn.HEAP32 = ur = new Int32Array(vr)), - (vn.HEAPU8 = Ir = new Uint8Array(vr)), - (vn.HEAPU16 = new Uint16Array(vr)), - (vn.HEAPU32 = ho = new Uint32Array(vr)), - (vn.HEAPF32 = xo = new Float32Array(vr)), - (vn.HEAPF64 = yo = new Float64Array(vr)) - } - var $a = vn.INITIAL_MEMORY || 50331648 - $a >= 65536 || - ns( - 'INITIAL_MEMORY should be larger than STACK_SIZE, was ' + - $a + - '! (STACK_SIZE=65536)', - ), - (Pn = vn.wasmMemory - ? vn.wasmMemory - : new Xn.Memory({ initial: $a / 65536, maximum: 32768 })), - zo(), - ($a = Pn.buffer.byteLength) - var No = [], - us = [], - rs = [], - Ro = 0, - is = null - function ns(vr) { - throw ( - (vn.onAbort && vn.onAbort(vr), - lo((vr = 'Aborted(' + vr + ')')), - (ga = !0), - (vr += '. Build with -sASSERTIONS for more info.'), - new Xn.RuntimeError(vr)) - ) - } - var Bo, - ts, - Kt, - Vt, - Mt = 'data:application/octet-stream;base64,' - function $t(vr) { - return vr.startsWith(Mt) - } - function qt(vr) { - return vr.startsWith('file://') - } - function pr(vr) { - try { - if (vr == Bo && So) return new Uint8Array(So) - var Wr = Po(vr) - if (Wr) return Wr - if (ir) return ir(vr) - throw 'both async and sync fetching of the wasm failed' - } catch (qr) { - ns(qr) - } - } - $t((Bo = '<<< WASM_BINARY_FILE >>>')) || - ((ts = Bo), (Bo = vn.locateFile ? vn.locateFile(ts, eo) : eo + ts)) - var Rr = { - 35752: () => vn.getRandomValue(), - 35788: () => { - if (vn.getRandomValue === void 0) - try { - var vr = typeof window == 'object' ? window : self, - Wr = vr.crypto !== void 0 ? vr.crypto : vr.msCrypto, - qr = function () { - var fo = new Uint32Array(1) - return Wr.getRandomValues(fo), fo[0] >>> 0 - } - qr(), (vn.getRandomValue = qr) - } catch { - try { - var Xr = require$$0$2, - Ao = function () { - var wo = Xr.randomBytes(4) - return ( - ((wo[0] << 24) | (wo[1] << 16) | (wo[2] << 8) | wo[3]) >>> 0 - ) - } - Ao(), (vn.getRandomValue = Ao) - } catch { - throw 'No secure random number generator found' - } - } - }, - } - function Sr(vr) { - for (; vr.length > 0; ) vr.shift()(vn) - } - var lr = [] - function Jr(vr) { - var Wr = Pn.buffer - try { - return Pn.grow((vr - Wr.byteLength + 65535) >>> 16), zo(), 1 - } catch {} - } - var co = - typeof atob == 'function' - ? atob - : function (vr) { - var Wr, - qr, - Xr, - Ao, - fo, - wo, - so = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', - jo = '', - os = 0 - vr = vr.replace(/[^A-Za-z0-9\+\/\=]/g, '') - do - (Wr = - (so.indexOf(vr.charAt(os++)) << 2) | - ((Ao = so.indexOf(vr.charAt(os++))) >> 4)), - (qr = - ((15 & Ao) << 4) | ((fo = so.indexOf(vr.charAt(os++))) >> 2)), - (Xr = ((3 & fo) << 6) | (wo = so.indexOf(vr.charAt(os++)))), - (jo += String.fromCharCode(Wr)), - fo !== 64 && (jo += String.fromCharCode(qr)), - wo !== 64 && (jo += String.fromCharCode(Xr)) - while (os < vr.length) - return jo - } - function Po(vr) { - if ($t(vr)) - return (function (Wr) { - if (typeof _i == 'boolean' && _i) { - var qr = Buffer.from(Wr, 'base64') - return new Uint8Array(qr.buffer, qr.byteOffset, qr.byteLength) - } - try { - for ( - var Xr = co(Wr), Ao = new Uint8Array(Xr.length), fo = 0; - fo < Xr.length; - ++fo - ) - Ao[fo] = Xr.charCodeAt(fo) - return Ao - } catch { - throw new Error('Converting base64 string to bytes failed.') - } - })(vr.slice(Mt.length)) - } - var Ho, - Xo = { - c: function (vr, Wr, qr, Xr) { - ns( - 'Assertion failed: ' + - _o(vr) + - ', at: ' + - [ - Wr ? _o(Wr) : 'unknown filename', - qr, - Xr ? _o(Xr) : 'unknown function', - ], - ) - }, - d: function () { - ns('') - }, - b: function (vr, Wr, qr) { - return (function (Xr, Ao, fo) { - var wo = (function (so, jo) { - var os - for (lr.length = 0, jo >>= 2; (os = Ir[so++]); ) - (jo += (os != 105) & jo), - lr.push(os == 105 ? ur[jo] : yo[jo++ >> 1]), - ++jo - return lr - })(Ao, fo) - return Rr[Xr].apply(null, wo) - })(vr, Wr, qr) - }, - e: function (vr) { - var Wr, - qr = Ir.length, - Xr = 2147483648 - if ((vr >>>= 0) > Xr) return !1 - for (var Ao = 1; Ao <= 4; Ao *= 2) { - var fo = qr * (1 + 0.2 / Ao) - if ( - ((fo = Math.min(fo, vr + 100663296)), - Jr( - Math.min( - Xr, - (Wr = Math.max(vr, fo)) + ((65536 - (Wr % 65536)) % 65536), - ), - )) - ) - return !0 - } - return !1 - }, - a: Pn, - } - function Mo() { - function vr() { - Ho || - ((Ho = !0), - (vn.calledRun = !0), - ga || - (Sr(us), - vn.onRuntimeInitialized && vn.onRuntimeInitialized(), - (function () { - if (vn.postRun) - for ( - typeof vn.postRun == 'function' && (vn.postRun = [vn.postRun]); - vn.postRun.length; - - ) - (Wr = vn.postRun.shift()), rs.unshift(Wr) - var Wr - Sr(rs) - })())) - } - Ro > 0 || - ((function () { - if (vn.preRun) - for ( - typeof vn.preRun == 'function' && (vn.preRun = [vn.preRun]); - vn.preRun.length; - - ) - (Wr = vn.preRun.shift()), No.unshift(Wr) - var Wr - Sr(No) - })(), - Ro > 0 || - (vn.setStatus - ? (vn.setStatus('Running...'), - setTimeout(function () { - setTimeout(function () { - vn.setStatus('') - }, 1), - vr() - }, 1)) - : vr())) - } - if ( - ((function () { - var vr = { a: Xo } - function Wr(Ao, fo) { - var wo, - so = Ao.exports - ;(vn.asm = so), - vn.asm.Aj, - (wo = vn.asm.f), - us.unshift(wo), - (function (jo) { - if ( - (Ro--, - vn.monitorRunDependencies && vn.monitorRunDependencies(Ro), - Ro == 0 && is) - ) { - var os = is - ;(is = null), os() - } - })() - } - function qr(Ao) { - Wr(Ao.instance) - } - function Xr(Ao) { - return (function () { - if (!So && (Mr || Or)) { - if (typeof fetch == 'function' && !qt(Bo)) - return fetch(Bo, { credentials: 'same-origin' }) - .then(function (fo) { - if (!fo.ok) - throw "failed to load wasm binary file at '" + Bo + "'" - return fo.arrayBuffer() - }) - .catch(function () { - return pr(Bo) - }) - if (cr) - return new Promise(function (fo, wo) { - cr( - Bo, - function (so) { - fo(new Uint8Array(so)) - }, - wo, - ) - }) - } - return Promise.resolve().then(function () { - return pr(Bo) - }) - })() - .then(function (fo) { - return Xn.instantiate(fo, vr) - }) - .then(function (fo) { - return fo - }) - .then(Ao, function (fo) { - lo('failed to asynchronously prepare wasm: ' + fo), ns(fo) - }) - } - if ( - (Ro++, - vn.monitorRunDependencies && vn.monitorRunDependencies(Ro), - vn.instantiateWasm) - ) - try { - return vn.instantiateWasm(vr, Wr) - } catch (Ao) { - return ( - lo('Module.instantiateWasm callback failed with error: ' + Ao), !1 - ) - } - So || - typeof Xn.instantiateStreaming != 'function' || - $t(Bo) || - qt(Bo) || - _i || - typeof fetch != 'function' - ? Xr(qr) - : fetch(Bo, { credentials: 'same-origin' }).then(function (Ao) { - return Xn.instantiateStreaming(Ao, vr).then(qr, function (fo) { - return ( - lo('wasm streaming compile failed: ' + fo), - lo('falling back to ArrayBuffer instantiation'), - Xr(qr) - ) - }) - }) - })(), - (vn._crypto_aead_chacha20poly1305_encrypt_detached = function () { - return (vn._crypto_aead_chacha20poly1305_encrypt_detached = - vn.asm.g).apply(null, arguments) - }), - (vn._crypto_aead_chacha20poly1305_encrypt = function () { - return (vn._crypto_aead_chacha20poly1305_encrypt = vn.asm.h).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_ietf_encrypt_detached = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_encrypt_detached = - vn.asm.i).apply(null, arguments) - }), - (vn._crypto_aead_chacha20poly1305_ietf_encrypt = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_encrypt = vn.asm.j).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_decrypt_detached = function () { - return (vn._crypto_aead_chacha20poly1305_decrypt_detached = - vn.asm.k).apply(null, arguments) - }), - (vn._crypto_aead_chacha20poly1305_decrypt = function () { - return (vn._crypto_aead_chacha20poly1305_decrypt = vn.asm.l).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_ietf_decrypt_detached = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_decrypt_detached = - vn.asm.m).apply(null, arguments) - }), - (vn._crypto_aead_chacha20poly1305_ietf_decrypt = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_decrypt = vn.asm.n).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_ietf_keybytes = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_keybytes = vn.asm.o).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_ietf_npubbytes = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_npubbytes = vn.asm.p).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_ietf_nsecbytes = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_nsecbytes = vn.asm.q).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_ietf_abytes = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_abytes = vn.asm.r).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_ietf_messagebytes_max = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_messagebytes_max = - vn.asm.s).apply(null, arguments) - }), - (vn._crypto_aead_chacha20poly1305_ietf_keygen = function () { - return (vn._crypto_aead_chacha20poly1305_ietf_keygen = vn.asm.t).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_keybytes = function () { - return (vn._crypto_aead_chacha20poly1305_keybytes = vn.asm.u).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_npubbytes = function () { - return (vn._crypto_aead_chacha20poly1305_npubbytes = vn.asm.v).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_nsecbytes = function () { - return (vn._crypto_aead_chacha20poly1305_nsecbytes = vn.asm.w).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_abytes = function () { - return (vn._crypto_aead_chacha20poly1305_abytes = vn.asm.x).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_chacha20poly1305_messagebytes_max = function () { - return (vn._crypto_aead_chacha20poly1305_messagebytes_max = - vn.asm.y).apply(null, arguments) - }), - (vn._crypto_aead_chacha20poly1305_keygen = function () { - return (vn._crypto_aead_chacha20poly1305_keygen = vn.asm.z).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_encrypt_detached = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_encrypt_detached = - vn.asm.A).apply(null, arguments) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_encrypt = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_encrypt = vn.asm.B).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_decrypt_detached = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_decrypt_detached = - vn.asm.C).apply(null, arguments) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_decrypt = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_decrypt = vn.asm.D).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_keybytes = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_keybytes = vn.asm.E).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_npubbytes = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_npubbytes = - vn.asm.F).apply(null, arguments) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_nsecbytes = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_nsecbytes = - vn.asm.G).apply(null, arguments) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_abytes = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_abytes = vn.asm.H).apply( - null, - arguments, - ) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_messagebytes_max = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_messagebytes_max = - vn.asm.I).apply(null, arguments) - }), - (vn._crypto_aead_xchacha20poly1305_ietf_keygen = function () { - return (vn._crypto_aead_xchacha20poly1305_ietf_keygen = vn.asm.J).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_bytes = function () { - return (vn._crypto_auth_bytes = vn.asm.K).apply(null, arguments) - }), - (vn._crypto_auth_keybytes = function () { - return (vn._crypto_auth_keybytes = vn.asm.L).apply(null, arguments) - }), - (vn._crypto_auth_primitive = function () { - return (vn._crypto_auth_primitive = vn.asm.M).apply(null, arguments) - }), - (vn._crypto_auth = function () { - return (vn._crypto_auth = vn.asm.N).apply(null, arguments) - }), - (vn._crypto_auth_verify = function () { - return (vn._crypto_auth_verify = vn.asm.O).apply(null, arguments) - }), - (vn._crypto_auth_keygen = function () { - return (vn._crypto_auth_keygen = vn.asm.P).apply(null, arguments) - }), - (vn._crypto_auth_hmacsha256_bytes = function () { - return (vn._crypto_auth_hmacsha256_bytes = vn.asm.Q).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha256_keybytes = function () { - return (vn._crypto_auth_hmacsha256_keybytes = vn.asm.R).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha256_statebytes = function () { - return (vn._crypto_auth_hmacsha256_statebytes = vn.asm.S).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha256_keygen = function () { - return (vn._crypto_auth_hmacsha256_keygen = vn.asm.T).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha256_init = function () { - return (vn._crypto_auth_hmacsha256_init = vn.asm.U).apply(null, arguments) - }), - (vn._crypto_auth_hmacsha256_update = function () { - return (vn._crypto_auth_hmacsha256_update = vn.asm.V).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha256_final = function () { - return (vn._crypto_auth_hmacsha256_final = vn.asm.W).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha256 = function () { - return (vn._crypto_auth_hmacsha256 = vn.asm.X).apply(null, arguments) - }), - (vn._crypto_auth_hmacsha256_verify = function () { - return (vn._crypto_auth_hmacsha256_verify = vn.asm.Y).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512_bytes = function () { - return (vn._crypto_auth_hmacsha512_bytes = vn.asm.Z).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512_keybytes = function () { - return (vn._crypto_auth_hmacsha512_keybytes = vn.asm._).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512_statebytes = function () { - return (vn._crypto_auth_hmacsha512_statebytes = vn.asm.$).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512_keygen = function () { - return (vn._crypto_auth_hmacsha512_keygen = vn.asm.aa).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512_init = function () { - return (vn._crypto_auth_hmacsha512_init = vn.asm.ba).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512_update = function () { - return (vn._crypto_auth_hmacsha512_update = vn.asm.ca).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512_final = function () { - return (vn._crypto_auth_hmacsha512_final = vn.asm.da).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512 = function () { - return (vn._crypto_auth_hmacsha512 = vn.asm.ea).apply(null, arguments) - }), - (vn._crypto_auth_hmacsha512_verify = function () { - return (vn._crypto_auth_hmacsha512_verify = vn.asm.fa).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256_bytes = function () { - return (vn._crypto_auth_hmacsha512256_bytes = vn.asm.ga).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256_keybytes = function () { - return (vn._crypto_auth_hmacsha512256_keybytes = vn.asm.ha).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256_statebytes = function () { - return (vn._crypto_auth_hmacsha512256_statebytes = vn.asm.ia).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256_keygen = function () { - return (vn._crypto_auth_hmacsha512256_keygen = vn.asm.ja).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256_init = function () { - return (vn._crypto_auth_hmacsha512256_init = vn.asm.ka).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256_update = function () { - return (vn._crypto_auth_hmacsha512256_update = vn.asm.la).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256_final = function () { - return (vn._crypto_auth_hmacsha512256_final = vn.asm.ma).apply( - null, - arguments, - ) - }), - (vn._crypto_auth_hmacsha512256 = function () { - return (vn._crypto_auth_hmacsha512256 = vn.asm.na).apply(null, arguments) - }), - (vn._crypto_auth_hmacsha512256_verify = function () { - return (vn._crypto_auth_hmacsha512256_verify = vn.asm.oa).apply( - null, - arguments, - ) - }), - (vn._crypto_box_seedbytes = function () { - return (vn._crypto_box_seedbytes = vn.asm.pa).apply(null, arguments) - }), - (vn._crypto_box_publickeybytes = function () { - return (vn._crypto_box_publickeybytes = vn.asm.qa).apply(null, arguments) - }), - (vn._crypto_box_secretkeybytes = function () { - return (vn._crypto_box_secretkeybytes = vn.asm.ra).apply(null, arguments) - }), - (vn._crypto_box_beforenmbytes = function () { - return (vn._crypto_box_beforenmbytes = vn.asm.sa).apply(null, arguments) - }), - (vn._crypto_box_noncebytes = function () { - return (vn._crypto_box_noncebytes = vn.asm.ta).apply(null, arguments) - }), - (vn._crypto_box_zerobytes = function () { - return (vn._crypto_box_zerobytes = vn.asm.ua).apply(null, arguments) - }), - (vn._crypto_box_boxzerobytes = function () { - return (vn._crypto_box_boxzerobytes = vn.asm.va).apply(null, arguments) - }), - (vn._crypto_box_macbytes = function () { - return (vn._crypto_box_macbytes = vn.asm.wa).apply(null, arguments) - }), - (vn._crypto_box_messagebytes_max = function () { - return (vn._crypto_box_messagebytes_max = vn.asm.xa).apply( - null, - arguments, - ) - }), - (vn._crypto_box_primitive = function () { - return (vn._crypto_box_primitive = vn.asm.ya).apply(null, arguments) - }), - (vn._crypto_box_seed_keypair = function () { - return (vn._crypto_box_seed_keypair = vn.asm.za).apply(null, arguments) - }), - (vn._crypto_box_keypair = function () { - return (vn._crypto_box_keypair = vn.asm.Aa).apply(null, arguments) - }), - (vn._crypto_box_beforenm = function () { - return (vn._crypto_box_beforenm = vn.asm.Ba).apply(null, arguments) - }), - (vn._crypto_box_afternm = function () { - return (vn._crypto_box_afternm = vn.asm.Ca).apply(null, arguments) - }), - (vn._crypto_box_open_afternm = function () { - return (vn._crypto_box_open_afternm = vn.asm.Da).apply(null, arguments) - }), - (vn._crypto_box = function () { - return (vn._crypto_box = vn.asm.Ea).apply(null, arguments) - }), - (vn._crypto_box_open = function () { - return (vn._crypto_box_open = vn.asm.Fa).apply(null, arguments) - }), - (vn._crypto_box_detached_afternm = function () { - return (vn._crypto_box_detached_afternm = vn.asm.Ga).apply( - null, - arguments, - ) - }), - (vn._crypto_box_detached = function () { - return (vn._crypto_box_detached = vn.asm.Ha).apply(null, arguments) - }), - (vn._crypto_box_easy_afternm = function () { - return (vn._crypto_box_easy_afternm = vn.asm.Ia).apply(null, arguments) - }), - (vn._crypto_box_easy = function () { - return (vn._crypto_box_easy = vn.asm.Ja).apply(null, arguments) - }), - (vn._crypto_box_open_detached_afternm = function () { - return (vn._crypto_box_open_detached_afternm = vn.asm.Ka).apply( - null, - arguments, - ) - }), - (vn._crypto_box_open_detached = function () { - return (vn._crypto_box_open_detached = vn.asm.La).apply(null, arguments) - }), - (vn._crypto_box_open_easy_afternm = function () { - return (vn._crypto_box_open_easy_afternm = vn.asm.Ma).apply( - null, - arguments, - ) - }), - (vn._crypto_box_open_easy = function () { - return (vn._crypto_box_open_easy = vn.asm.Na).apply(null, arguments) - }), - (vn._crypto_box_seal = function () { - return (vn._crypto_box_seal = vn.asm.Oa).apply(null, arguments) - }), - (vn._crypto_box_seal_open = function () { - return (vn._crypto_box_seal_open = vn.asm.Pa).apply(null, arguments) - }), - (vn._crypto_box_sealbytes = function () { - return (vn._crypto_box_sealbytes = vn.asm.Qa).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_seed_keypair = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_seed_keypair = - vn.asm.Ra).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_keypair = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_keypair = - vn.asm.Sa).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_beforenm = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_beforenm = - vn.asm.Ta).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_afternm = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_afternm = - vn.asm.Ua).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_open_afternm = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_open_afternm = - vn.asm.Va).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305 = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305 = vn.asm.Wa).apply( - null, - arguments, - ) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_open = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_open = vn.asm.Xa).apply( - null, - arguments, - ) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_seedbytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_seedbytes = - vn.asm.Ya).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_publickeybytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_publickeybytes = - vn.asm.Za).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_secretkeybytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_secretkeybytes = - vn.asm._a).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_beforenmbytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_beforenmbytes = - vn.asm.$a).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_noncebytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_noncebytes = - vn.asm.ab).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_zerobytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_zerobytes = - vn.asm.bb).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_boxzerobytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_boxzerobytes = - vn.asm.cb).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_macbytes = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_macbytes = - vn.asm.db).apply(null, arguments) - }), - (vn._crypto_box_curve25519xsalsa20poly1305_messagebytes_max = function () { - return (vn._crypto_box_curve25519xsalsa20poly1305_messagebytes_max = - vn.asm.eb).apply(null, arguments) - }), - (vn._crypto_core_hchacha20 = function () { - return (vn._crypto_core_hchacha20 = vn.asm.fb).apply(null, arguments) - }), - (vn._crypto_core_hchacha20_outputbytes = function () { - return (vn._crypto_core_hchacha20_outputbytes = vn.asm.gb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_hchacha20_inputbytes = function () { - return (vn._crypto_core_hchacha20_inputbytes = vn.asm.hb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_hchacha20_keybytes = function () { - return (vn._crypto_core_hchacha20_keybytes = vn.asm.ib).apply( - null, - arguments, - ) - }), - (vn._crypto_core_hchacha20_constbytes = function () { - return (vn._crypto_core_hchacha20_constbytes = vn.asm.jb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_hsalsa20 = function () { - return (vn._crypto_core_hsalsa20 = vn.asm.kb).apply(null, arguments) - }), - (vn._crypto_core_hsalsa20_outputbytes = function () { - return (vn._crypto_core_hsalsa20_outputbytes = vn.asm.lb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_hsalsa20_inputbytes = function () { - return (vn._crypto_core_hsalsa20_inputbytes = vn.asm.mb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_hsalsa20_keybytes = function () { - return (vn._crypto_core_hsalsa20_keybytes = vn.asm.nb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_hsalsa20_constbytes = function () { - return (vn._crypto_core_hsalsa20_constbytes = vn.asm.ob).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa20 = function () { - return (vn._crypto_core_salsa20 = vn.asm.pb).apply(null, arguments) - }), - (vn._crypto_core_salsa20_outputbytes = function () { - return (vn._crypto_core_salsa20_outputbytes = vn.asm.qb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa20_inputbytes = function () { - return (vn._crypto_core_salsa20_inputbytes = vn.asm.rb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa20_keybytes = function () { - return (vn._crypto_core_salsa20_keybytes = vn.asm.sb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa20_constbytes = function () { - return (vn._crypto_core_salsa20_constbytes = vn.asm.tb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa2012 = function () { - return (vn._crypto_core_salsa2012 = vn.asm.ub).apply(null, arguments) - }), - (vn._crypto_core_salsa2012_outputbytes = function () { - return (vn._crypto_core_salsa2012_outputbytes = vn.asm.vb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa2012_inputbytes = function () { - return (vn._crypto_core_salsa2012_inputbytes = vn.asm.wb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa2012_keybytes = function () { - return (vn._crypto_core_salsa2012_keybytes = vn.asm.xb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa2012_constbytes = function () { - return (vn._crypto_core_salsa2012_constbytes = vn.asm.yb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa208 = function () { - return (vn._crypto_core_salsa208 = vn.asm.zb).apply(null, arguments) - }), - (vn._crypto_core_salsa208_outputbytes = function () { - return (vn._crypto_core_salsa208_outputbytes = vn.asm.Ab).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa208_inputbytes = function () { - return (vn._crypto_core_salsa208_inputbytes = vn.asm.Bb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa208_keybytes = function () { - return (vn._crypto_core_salsa208_keybytes = vn.asm.Cb).apply( - null, - arguments, - ) - }), - (vn._crypto_core_salsa208_constbytes = function () { - return (vn._crypto_core_salsa208_constbytes = vn.asm.Db).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_bytes_min = function () { - return (vn._crypto_generichash_bytes_min = vn.asm.Eb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_bytes_max = function () { - return (vn._crypto_generichash_bytes_max = vn.asm.Fb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_bytes = function () { - return (vn._crypto_generichash_bytes = vn.asm.Gb).apply(null, arguments) - }), - (vn._crypto_generichash_keybytes_min = function () { - return (vn._crypto_generichash_keybytes_min = vn.asm.Hb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_keybytes_max = function () { - return (vn._crypto_generichash_keybytes_max = vn.asm.Ib).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_keybytes = function () { - return (vn._crypto_generichash_keybytes = vn.asm.Jb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_primitive = function () { - return (vn._crypto_generichash_primitive = vn.asm.Kb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_statebytes = function () { - return (vn._crypto_generichash_statebytes = vn.asm.Lb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash = function () { - return (vn._crypto_generichash = vn.asm.Mb).apply(null, arguments) - }), - (vn._crypto_generichash_init = function () { - return (vn._crypto_generichash_init = vn.asm.Nb).apply(null, arguments) - }), - (vn._crypto_generichash_update = function () { - return (vn._crypto_generichash_update = vn.asm.Ob).apply(null, arguments) - }), - (vn._crypto_generichash_final = function () { - return (vn._crypto_generichash_final = vn.asm.Pb).apply(null, arguments) - }), - (vn._crypto_generichash_keygen = function () { - return (vn._crypto_generichash_keygen = vn.asm.Qb).apply(null, arguments) - }), - (vn._crypto_generichash_blake2b_bytes_min = function () { - return (vn._crypto_generichash_blake2b_bytes_min = vn.asm.Rb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_bytes_max = function () { - return (vn._crypto_generichash_blake2b_bytes_max = vn.asm.Sb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_bytes = function () { - return (vn._crypto_generichash_blake2b_bytes = vn.asm.Tb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_keybytes_min = function () { - return (vn._crypto_generichash_blake2b_keybytes_min = vn.asm.Ub).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_keybytes_max = function () { - return (vn._crypto_generichash_blake2b_keybytes_max = vn.asm.Vb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_keybytes = function () { - return (vn._crypto_generichash_blake2b_keybytes = vn.asm.Wb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_saltbytes = function () { - return (vn._crypto_generichash_blake2b_saltbytes = vn.asm.Xb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_personalbytes = function () { - return (vn._crypto_generichash_blake2b_personalbytes = vn.asm.Yb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_statebytes = function () { - return (vn._crypto_generichash_blake2b_statebytes = vn.asm.Zb).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_keygen = function () { - return (vn._crypto_generichash_blake2b_keygen = vn.asm._b).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b = function () { - return (vn._crypto_generichash_blake2b = vn.asm.$b).apply(null, arguments) - }), - (vn._crypto_generichash_blake2b_salt_personal = function () { - return (vn._crypto_generichash_blake2b_salt_personal = vn.asm.ac).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_init = function () { - return (vn._crypto_generichash_blake2b_init = vn.asm.bc).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_init_salt_personal = function () { - return (vn._crypto_generichash_blake2b_init_salt_personal = - vn.asm.cc).apply(null, arguments) - }), - (vn._crypto_generichash_blake2b_update = function () { - return (vn._crypto_generichash_blake2b_update = vn.asm.dc).apply( - null, - arguments, - ) - }), - (vn._crypto_generichash_blake2b_final = function () { - return (vn._crypto_generichash_blake2b_final = vn.asm.ec).apply( - null, - arguments, - ) - }), - (vn._crypto_hash_bytes = function () { - return (vn._crypto_hash_bytes = vn.asm.fc).apply(null, arguments) - }), - (vn._crypto_hash = function () { - return (vn._crypto_hash = vn.asm.gc).apply(null, arguments) - }), - (vn._crypto_hash_primitive = function () { - return (vn._crypto_hash_primitive = vn.asm.hc).apply(null, arguments) - }), - (vn._crypto_hash_sha256_bytes = function () { - return (vn._crypto_hash_sha256_bytes = vn.asm.ic).apply(null, arguments) - }), - (vn._crypto_hash_sha256_statebytes = function () { - return (vn._crypto_hash_sha256_statebytes = vn.asm.jc).apply( - null, - arguments, - ) - }), - (vn._crypto_hash_sha256_init = function () { - return (vn._crypto_hash_sha256_init = vn.asm.kc).apply(null, arguments) - }), - (vn._crypto_hash_sha256_update = function () { - return (vn._crypto_hash_sha256_update = vn.asm.lc).apply(null, arguments) - }), - (vn._crypto_hash_sha256_final = function () { - return (vn._crypto_hash_sha256_final = vn.asm.mc).apply(null, arguments) - }), - (vn._crypto_hash_sha256 = function () { - return (vn._crypto_hash_sha256 = vn.asm.nc).apply(null, arguments) - }), - (vn._crypto_hash_sha512_bytes = function () { - return (vn._crypto_hash_sha512_bytes = vn.asm.oc).apply(null, arguments) - }), - (vn._crypto_hash_sha512_statebytes = function () { - return (vn._crypto_hash_sha512_statebytes = vn.asm.pc).apply( - null, - arguments, - ) - }), - (vn._crypto_hash_sha512_init = function () { - return (vn._crypto_hash_sha512_init = vn.asm.qc).apply(null, arguments) - }), - (vn._crypto_hash_sha512_update = function () { - return (vn._crypto_hash_sha512_update = vn.asm.rc).apply(null, arguments) - }), - (vn._crypto_hash_sha512_final = function () { - return (vn._crypto_hash_sha512_final = vn.asm.sc).apply(null, arguments) - }), - (vn._crypto_hash_sha512 = function () { - return (vn._crypto_hash_sha512 = vn.asm.tc).apply(null, arguments) - }), - (vn._crypto_kdf_blake2b_bytes_min = function () { - return (vn._crypto_kdf_blake2b_bytes_min = vn.asm.uc).apply( - null, - arguments, - ) - }), - (vn._crypto_kdf_blake2b_bytes_max = function () { - return (vn._crypto_kdf_blake2b_bytes_max = vn.asm.vc).apply( - null, - arguments, - ) - }), - (vn._crypto_kdf_blake2b_contextbytes = function () { - return (vn._crypto_kdf_blake2b_contextbytes = vn.asm.wc).apply( - null, - arguments, - ) - }), - (vn._crypto_kdf_blake2b_keybytes = function () { - return (vn._crypto_kdf_blake2b_keybytes = vn.asm.xc).apply( - null, - arguments, - ) - }), - (vn._crypto_kdf_blake2b_derive_from_key = function () { - return (vn._crypto_kdf_blake2b_derive_from_key = vn.asm.yc).apply( - null, - arguments, - ) - }), - (vn._crypto_kdf_primitive = function () { - return (vn._crypto_kdf_primitive = vn.asm.zc).apply(null, arguments) - }), - (vn._crypto_kdf_bytes_min = function () { - return (vn._crypto_kdf_bytes_min = vn.asm.Ac).apply(null, arguments) - }), - (vn._crypto_kdf_bytes_max = function () { - return (vn._crypto_kdf_bytes_max = vn.asm.Bc).apply(null, arguments) - }), - (vn._crypto_kdf_contextbytes = function () { - return (vn._crypto_kdf_contextbytes = vn.asm.Cc).apply(null, arguments) - }), - (vn._crypto_kdf_keybytes = function () { - return (vn._crypto_kdf_keybytes = vn.asm.Dc).apply(null, arguments) - }), - (vn._crypto_kdf_derive_from_key = function () { - return (vn._crypto_kdf_derive_from_key = vn.asm.Ec).apply(null, arguments) - }), - (vn._crypto_kdf_keygen = function () { - return (vn._crypto_kdf_keygen = vn.asm.Fc).apply(null, arguments) - }), - (vn._crypto_kx_seed_keypair = function () { - return (vn._crypto_kx_seed_keypair = vn.asm.Gc).apply(null, arguments) - }), - (vn._crypto_kx_keypair = function () { - return (vn._crypto_kx_keypair = vn.asm.Hc).apply(null, arguments) - }), - (vn._crypto_kx_client_session_keys = function () { - return (vn._crypto_kx_client_session_keys = vn.asm.Ic).apply( - null, - arguments, - ) - }), - (vn._crypto_kx_server_session_keys = function () { - return (vn._crypto_kx_server_session_keys = vn.asm.Jc).apply( - null, - arguments, - ) - }), - (vn._crypto_kx_publickeybytes = function () { - return (vn._crypto_kx_publickeybytes = vn.asm.Kc).apply(null, arguments) - }), - (vn._crypto_kx_secretkeybytes = function () { - return (vn._crypto_kx_secretkeybytes = vn.asm.Lc).apply(null, arguments) - }), - (vn._crypto_kx_seedbytes = function () { - return (vn._crypto_kx_seedbytes = vn.asm.Mc).apply(null, arguments) - }), - (vn._crypto_kx_sessionkeybytes = function () { - return (vn._crypto_kx_sessionkeybytes = vn.asm.Nc).apply(null, arguments) - }), - (vn._crypto_kx_primitive = function () { - return (vn._crypto_kx_primitive = vn.asm.Oc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_statebytes = function () { - return (vn._crypto_onetimeauth_statebytes = vn.asm.Pc).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_bytes = function () { - return (vn._crypto_onetimeauth_bytes = vn.asm.Qc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_keybytes = function () { - return (vn._crypto_onetimeauth_keybytes = vn.asm.Rc).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth = function () { - return (vn._crypto_onetimeauth = vn.asm.Sc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_verify = function () { - return (vn._crypto_onetimeauth_verify = vn.asm.Tc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_init = function () { - return (vn._crypto_onetimeauth_init = vn.asm.Uc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_update = function () { - return (vn._crypto_onetimeauth_update = vn.asm.Vc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_final = function () { - return (vn._crypto_onetimeauth_final = vn.asm.Wc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_primitive = function () { - return (vn._crypto_onetimeauth_primitive = vn.asm.Xc).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_keygen = function () { - return (vn._crypto_onetimeauth_keygen = vn.asm.Yc).apply(null, arguments) - }), - (vn._crypto_onetimeauth_poly1305 = function () { - return (vn._crypto_onetimeauth_poly1305 = vn.asm.Zc).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_verify = function () { - return (vn._crypto_onetimeauth_poly1305_verify = vn.asm._c).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_init = function () { - return (vn._crypto_onetimeauth_poly1305_init = vn.asm.$c).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_update = function () { - return (vn._crypto_onetimeauth_poly1305_update = vn.asm.ad).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_final = function () { - return (vn._crypto_onetimeauth_poly1305_final = vn.asm.bd).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_bytes = function () { - return (vn._crypto_onetimeauth_poly1305_bytes = vn.asm.cd).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_keybytes = function () { - return (vn._crypto_onetimeauth_poly1305_keybytes = vn.asm.dd).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_statebytes = function () { - return (vn._crypto_onetimeauth_poly1305_statebytes = vn.asm.ed).apply( - null, - arguments, - ) - }), - (vn._crypto_onetimeauth_poly1305_keygen = function () { - return (vn._crypto_onetimeauth_poly1305_keygen = vn.asm.fd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_alg_argon2i13 = function () { - return (vn._crypto_pwhash_argon2i_alg_argon2i13 = vn.asm.gd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_bytes_min = function () { - return (vn._crypto_pwhash_argon2i_bytes_min = vn.asm.hd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_bytes_max = function () { - return (vn._crypto_pwhash_argon2i_bytes_max = vn.asm.id).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_passwd_min = function () { - return (vn._crypto_pwhash_argon2i_passwd_min = vn.asm.jd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_passwd_max = function () { - return (vn._crypto_pwhash_argon2i_passwd_max = vn.asm.kd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_saltbytes = function () { - return (vn._crypto_pwhash_argon2i_saltbytes = vn.asm.ld).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_strbytes = function () { - return (vn._crypto_pwhash_argon2i_strbytes = vn.asm.md).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_strprefix = function () { - return (vn._crypto_pwhash_argon2i_strprefix = vn.asm.nd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_opslimit_min = function () { - return (vn._crypto_pwhash_argon2i_opslimit_min = vn.asm.od).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_opslimit_max = function () { - return (vn._crypto_pwhash_argon2i_opslimit_max = vn.asm.pd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_memlimit_min = function () { - return (vn._crypto_pwhash_argon2i_memlimit_min = vn.asm.qd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_memlimit_max = function () { - return (vn._crypto_pwhash_argon2i_memlimit_max = vn.asm.rd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_opslimit_interactive = function () { - return (vn._crypto_pwhash_argon2i_opslimit_interactive = vn.asm.sd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_memlimit_interactive = function () { - return (vn._crypto_pwhash_argon2i_memlimit_interactive = vn.asm.td).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_opslimit_moderate = function () { - return (vn._crypto_pwhash_argon2i_opslimit_moderate = vn.asm.ud).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_memlimit_moderate = function () { - return (vn._crypto_pwhash_argon2i_memlimit_moderate = vn.asm.vd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_opslimit_sensitive = function () { - return (vn._crypto_pwhash_argon2i_opslimit_sensitive = vn.asm.wd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_memlimit_sensitive = function () { - return (vn._crypto_pwhash_argon2i_memlimit_sensitive = vn.asm.xd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i = function () { - return (vn._crypto_pwhash_argon2i = vn.asm.yd).apply(null, arguments) - }), - (vn._crypto_pwhash_argon2i_str = function () { - return (vn._crypto_pwhash_argon2i_str = vn.asm.zd).apply(null, arguments) - }), - (vn._crypto_pwhash_argon2i_str_verify = function () { - return (vn._crypto_pwhash_argon2i_str_verify = vn.asm.Ad).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2i_str_needs_rehash = function () { - return (vn._crypto_pwhash_argon2i_str_needs_rehash = vn.asm.Bd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_str_needs_rehash = function () { - return (vn._crypto_pwhash_argon2id_str_needs_rehash = vn.asm.Cd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_alg_argon2id13 = function () { - return (vn._crypto_pwhash_argon2id_alg_argon2id13 = vn.asm.Dd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_bytes_min = function () { - return (vn._crypto_pwhash_argon2id_bytes_min = vn.asm.Ed).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_bytes_max = function () { - return (vn._crypto_pwhash_argon2id_bytes_max = vn.asm.Fd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_passwd_min = function () { - return (vn._crypto_pwhash_argon2id_passwd_min = vn.asm.Gd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_passwd_max = function () { - return (vn._crypto_pwhash_argon2id_passwd_max = vn.asm.Hd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_saltbytes = function () { - return (vn._crypto_pwhash_argon2id_saltbytes = vn.asm.Id).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_strbytes = function () { - return (vn._crypto_pwhash_argon2id_strbytes = vn.asm.Jd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_strprefix = function () { - return (vn._crypto_pwhash_argon2id_strprefix = vn.asm.Kd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_opslimit_min = function () { - return (vn._crypto_pwhash_argon2id_opslimit_min = vn.asm.Ld).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_opslimit_max = function () { - return (vn._crypto_pwhash_argon2id_opslimit_max = vn.asm.Md).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_memlimit_min = function () { - return (vn._crypto_pwhash_argon2id_memlimit_min = vn.asm.Nd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_memlimit_max = function () { - return (vn._crypto_pwhash_argon2id_memlimit_max = vn.asm.Od).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_opslimit_interactive = function () { - return (vn._crypto_pwhash_argon2id_opslimit_interactive = - vn.asm.Pd).apply(null, arguments) - }), - (vn._crypto_pwhash_argon2id_memlimit_interactive = function () { - return (vn._crypto_pwhash_argon2id_memlimit_interactive = - vn.asm.Qd).apply(null, arguments) - }), - (vn._crypto_pwhash_argon2id_opslimit_moderate = function () { - return (vn._crypto_pwhash_argon2id_opslimit_moderate = vn.asm.Rd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_memlimit_moderate = function () { - return (vn._crypto_pwhash_argon2id_memlimit_moderate = vn.asm.Sd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_opslimit_sensitive = function () { - return (vn._crypto_pwhash_argon2id_opslimit_sensitive = vn.asm.Td).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id_memlimit_sensitive = function () { - return (vn._crypto_pwhash_argon2id_memlimit_sensitive = vn.asm.Ud).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_argon2id = function () { - return (vn._crypto_pwhash_argon2id = vn.asm.Vd).apply(null, arguments) - }), - (vn._crypto_pwhash_argon2id_str = function () { - return (vn._crypto_pwhash_argon2id_str = vn.asm.Wd).apply(null, arguments) - }), - (vn._crypto_pwhash_argon2id_str_verify = function () { - return (vn._crypto_pwhash_argon2id_str_verify = vn.asm.Xd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_alg_argon2i13 = function () { - return (vn._crypto_pwhash_alg_argon2i13 = vn.asm.Yd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_alg_argon2id13 = function () { - return (vn._crypto_pwhash_alg_argon2id13 = vn.asm.Zd).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_alg_default = function () { - return (vn._crypto_pwhash_alg_default = vn.asm._d).apply(null, arguments) - }), - (vn._crypto_pwhash_bytes_min = function () { - return (vn._crypto_pwhash_bytes_min = vn.asm.$d).apply(null, arguments) - }), - (vn._crypto_pwhash_bytes_max = function () { - return (vn._crypto_pwhash_bytes_max = vn.asm.ae).apply(null, arguments) - }), - (vn._crypto_pwhash_passwd_min = function () { - return (vn._crypto_pwhash_passwd_min = vn.asm.be).apply(null, arguments) - }), - (vn._crypto_pwhash_passwd_max = function () { - return (vn._crypto_pwhash_passwd_max = vn.asm.ce).apply(null, arguments) - }), - (vn._crypto_pwhash_saltbytes = function () { - return (vn._crypto_pwhash_saltbytes = vn.asm.de).apply(null, arguments) - }), - (vn._crypto_pwhash_strbytes = function () { - return (vn._crypto_pwhash_strbytes = vn.asm.ee).apply(null, arguments) - }), - (vn._crypto_pwhash_strprefix = function () { - return (vn._crypto_pwhash_strprefix = vn.asm.fe).apply(null, arguments) - }), - (vn._crypto_pwhash_opslimit_min = function () { - return (vn._crypto_pwhash_opslimit_min = vn.asm.ge).apply(null, arguments) - }), - (vn._crypto_pwhash_opslimit_max = function () { - return (vn._crypto_pwhash_opslimit_max = vn.asm.he).apply(null, arguments) - }), - (vn._crypto_pwhash_memlimit_min = function () { - return (vn._crypto_pwhash_memlimit_min = vn.asm.ie).apply(null, arguments) - }), - (vn._crypto_pwhash_memlimit_max = function () { - return (vn._crypto_pwhash_memlimit_max = vn.asm.je).apply(null, arguments) - }), - (vn._crypto_pwhash_opslimit_interactive = function () { - return (vn._crypto_pwhash_opslimit_interactive = vn.asm.ke).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_memlimit_interactive = function () { - return (vn._crypto_pwhash_memlimit_interactive = vn.asm.le).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_opslimit_moderate = function () { - return (vn._crypto_pwhash_opslimit_moderate = vn.asm.me).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_memlimit_moderate = function () { - return (vn._crypto_pwhash_memlimit_moderate = vn.asm.ne).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_opslimit_sensitive = function () { - return (vn._crypto_pwhash_opslimit_sensitive = vn.asm.oe).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_memlimit_sensitive = function () { - return (vn._crypto_pwhash_memlimit_sensitive = vn.asm.pe).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash = function () { - return (vn._crypto_pwhash = vn.asm.qe).apply(null, arguments) - }), - (vn._crypto_pwhash_str = function () { - return (vn._crypto_pwhash_str = vn.asm.re).apply(null, arguments) - }), - (vn._crypto_pwhash_str_alg = function () { - return (vn._crypto_pwhash_str_alg = vn.asm.se).apply(null, arguments) - }), - (vn._crypto_pwhash_str_verify = function () { - return (vn._crypto_pwhash_str_verify = vn.asm.te).apply(null, arguments) - }), - (vn._crypto_pwhash_str_needs_rehash = function () { - return (vn._crypto_pwhash_str_needs_rehash = vn.asm.ue).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_primitive = function () { - return (vn._crypto_pwhash_primitive = vn.asm.ve).apply(null, arguments) - }), - (vn._crypto_scalarmult_primitive = function () { - return (vn._crypto_scalarmult_primitive = vn.asm.we).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_base = function () { - return (vn._crypto_scalarmult_base = vn.asm.xe).apply(null, arguments) - }), - (vn._crypto_scalarmult = function () { - return (vn._crypto_scalarmult = vn.asm.ye).apply(null, arguments) - }), - (vn._crypto_scalarmult_bytes = function () { - return (vn._crypto_scalarmult_bytes = vn.asm.ze).apply(null, arguments) - }), - (vn._crypto_scalarmult_scalarbytes = function () { - return (vn._crypto_scalarmult_scalarbytes = vn.asm.Ae).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_curve25519 = function () { - return (vn._crypto_scalarmult_curve25519 = vn.asm.Be).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_curve25519_base = function () { - return (vn._crypto_scalarmult_curve25519_base = vn.asm.Ce).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_curve25519_bytes = function () { - return (vn._crypto_scalarmult_curve25519_bytes = vn.asm.De).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_curve25519_scalarbytes = function () { - return (vn._crypto_scalarmult_curve25519_scalarbytes = vn.asm.Ee).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_keybytes = function () { - return (vn._crypto_secretbox_keybytes = vn.asm.Fe).apply(null, arguments) - }), - (vn._crypto_secretbox_noncebytes = function () { - return (vn._crypto_secretbox_noncebytes = vn.asm.Ge).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_zerobytes = function () { - return (vn._crypto_secretbox_zerobytes = vn.asm.He).apply(null, arguments) - }), - (vn._crypto_secretbox_boxzerobytes = function () { - return (vn._crypto_secretbox_boxzerobytes = vn.asm.Ie).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_macbytes = function () { - return (vn._crypto_secretbox_macbytes = vn.asm.Je).apply(null, arguments) - }), - (vn._crypto_secretbox_messagebytes_max = function () { - return (vn._crypto_secretbox_messagebytes_max = vn.asm.Ke).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_primitive = function () { - return (vn._crypto_secretbox_primitive = vn.asm.Le).apply(null, arguments) - }), - (vn._crypto_secretbox = function () { - return (vn._crypto_secretbox = vn.asm.Me).apply(null, arguments) - }), - (vn._crypto_secretbox_open = function () { - return (vn._crypto_secretbox_open = vn.asm.Ne).apply(null, arguments) - }), - (vn._crypto_secretbox_keygen = function () { - return (vn._crypto_secretbox_keygen = vn.asm.Oe).apply(null, arguments) - }), - (vn._crypto_secretbox_detached = function () { - return (vn._crypto_secretbox_detached = vn.asm.Pe).apply(null, arguments) - }), - (vn._crypto_secretbox_easy = function () { - return (vn._crypto_secretbox_easy = vn.asm.Qe).apply(null, arguments) - }), - (vn._crypto_secretbox_open_detached = function () { - return (vn._crypto_secretbox_open_detached = vn.asm.Re).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_open_easy = function () { - return (vn._crypto_secretbox_open_easy = vn.asm.Se).apply(null, arguments) - }), - (vn._crypto_secretbox_xsalsa20poly1305 = function () { - return (vn._crypto_secretbox_xsalsa20poly1305 = vn.asm.Te).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_xsalsa20poly1305_open = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_open = vn.asm.Ue).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_xsalsa20poly1305_keybytes = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_keybytes = vn.asm.Ve).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_xsalsa20poly1305_noncebytes = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_noncebytes = - vn.asm.We).apply(null, arguments) - }), - (vn._crypto_secretbox_xsalsa20poly1305_zerobytes = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_zerobytes = - vn.asm.Xe).apply(null, arguments) - }), - (vn._crypto_secretbox_xsalsa20poly1305_boxzerobytes = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_boxzerobytes = - vn.asm.Ye).apply(null, arguments) - }), - (vn._crypto_secretbox_xsalsa20poly1305_macbytes = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_macbytes = vn.asm.Ze).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_xsalsa20poly1305_messagebytes_max = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_messagebytes_max = - vn.asm._e).apply(null, arguments) - }), - (vn._crypto_secretbox_xsalsa20poly1305_keygen = function () { - return (vn._crypto_secretbox_xsalsa20poly1305_keygen = vn.asm.$e).apply( - null, - arguments, - ) - }), - (vn._crypto_secretstream_xchacha20poly1305_keygen = function () { - return (vn._crypto_secretstream_xchacha20poly1305_keygen = - vn.asm.af).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_init_push = function () { - return (vn._crypto_secretstream_xchacha20poly1305_init_push = - vn.asm.bf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_init_pull = function () { - return (vn._crypto_secretstream_xchacha20poly1305_init_pull = - vn.asm.cf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_rekey = function () { - return (vn._crypto_secretstream_xchacha20poly1305_rekey = - vn.asm.df).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_push = function () { - return (vn._crypto_secretstream_xchacha20poly1305_push = vn.asm.ef).apply( - null, - arguments, - ) - }), - (vn._crypto_secretstream_xchacha20poly1305_pull = function () { - return (vn._crypto_secretstream_xchacha20poly1305_pull = vn.asm.ff).apply( - null, - arguments, - ) - }), - (vn._crypto_secretstream_xchacha20poly1305_statebytes = function () { - return (vn._crypto_secretstream_xchacha20poly1305_statebytes = - vn.asm.gf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_abytes = function () { - return (vn._crypto_secretstream_xchacha20poly1305_abytes = - vn.asm.hf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_headerbytes = function () { - return (vn._crypto_secretstream_xchacha20poly1305_headerbytes = - vn.asm.jf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_keybytes = function () { - return (vn._crypto_secretstream_xchacha20poly1305_keybytes = - vn.asm.kf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_messagebytes_max = function () { - return (vn._crypto_secretstream_xchacha20poly1305_messagebytes_max = - vn.asm.lf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_tag_message = function () { - return (vn._crypto_secretstream_xchacha20poly1305_tag_message = - vn.asm.mf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_tag_push = function () { - return (vn._crypto_secretstream_xchacha20poly1305_tag_push = - vn.asm.nf).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_tag_rekey = function () { - return (vn._crypto_secretstream_xchacha20poly1305_tag_rekey = - vn.asm.of).apply(null, arguments) - }), - (vn._crypto_secretstream_xchacha20poly1305_tag_final = function () { - return (vn._crypto_secretstream_xchacha20poly1305_tag_final = - vn.asm.pf).apply(null, arguments) - }), - (vn._crypto_shorthash_bytes = function () { - return (vn._crypto_shorthash_bytes = vn.asm.qf).apply(null, arguments) - }), - (vn._crypto_shorthash_keybytes = function () { - return (vn._crypto_shorthash_keybytes = vn.asm.rf).apply(null, arguments) - }), - (vn._crypto_shorthash_primitive = function () { - return (vn._crypto_shorthash_primitive = vn.asm.sf).apply(null, arguments) - }), - (vn._crypto_shorthash = function () { - return (vn._crypto_shorthash = vn.asm.tf).apply(null, arguments) - }), - (vn._crypto_shorthash_keygen = function () { - return (vn._crypto_shorthash_keygen = vn.asm.uf).apply(null, arguments) - }), - (vn._crypto_shorthash_siphash24_bytes = function () { - return (vn._crypto_shorthash_siphash24_bytes = vn.asm.vf).apply( - null, - arguments, - ) - }), - (vn._crypto_shorthash_siphash24_keybytes = function () { - return (vn._crypto_shorthash_siphash24_keybytes = vn.asm.wf).apply( - null, - arguments, - ) - }), - (vn._crypto_shorthash_siphash24 = function () { - return (vn._crypto_shorthash_siphash24 = vn.asm.xf).apply(null, arguments) - }), - (vn._crypto_sign_statebytes = function () { - return (vn._crypto_sign_statebytes = vn.asm.yf).apply(null, arguments) - }), - (vn._crypto_sign_bytes = function () { - return (vn._crypto_sign_bytes = vn.asm.zf).apply(null, arguments) - }), - (vn._crypto_sign_seedbytes = function () { - return (vn._crypto_sign_seedbytes = vn.asm.Af).apply(null, arguments) - }), - (vn._crypto_sign_publickeybytes = function () { - return (vn._crypto_sign_publickeybytes = vn.asm.Bf).apply(null, arguments) - }), - (vn._crypto_sign_secretkeybytes = function () { - return (vn._crypto_sign_secretkeybytes = vn.asm.Cf).apply(null, arguments) - }), - (vn._crypto_sign_messagebytes_max = function () { - return (vn._crypto_sign_messagebytes_max = vn.asm.Df).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_primitive = function () { - return (vn._crypto_sign_primitive = vn.asm.Ef).apply(null, arguments) - }), - (vn._crypto_sign_seed_keypair = function () { - return (vn._crypto_sign_seed_keypair = vn.asm.Ff).apply(null, arguments) - }), - (vn._crypto_sign_keypair = function () { - return (vn._crypto_sign_keypair = vn.asm.Gf).apply(null, arguments) - }), - (vn._crypto_sign = function () { - return (vn._crypto_sign = vn.asm.Hf).apply(null, arguments) - }), - (vn._crypto_sign_open = function () { - return (vn._crypto_sign_open = vn.asm.If).apply(null, arguments) - }), - (vn._crypto_sign_detached = function () { - return (vn._crypto_sign_detached = vn.asm.Jf).apply(null, arguments) - }), - (vn._crypto_sign_verify_detached = function () { - return (vn._crypto_sign_verify_detached = vn.asm.Kf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_init = function () { - return (vn._crypto_sign_init = vn.asm.Lf).apply(null, arguments) - }), - (vn._crypto_sign_update = function () { - return (vn._crypto_sign_update = vn.asm.Mf).apply(null, arguments) - }), - (vn._crypto_sign_final_create = function () { - return (vn._crypto_sign_final_create = vn.asm.Nf).apply(null, arguments) - }), - (vn._crypto_sign_final_verify = function () { - return (vn._crypto_sign_final_verify = vn.asm.Of).apply(null, arguments) - }), - (vn._crypto_sign_ed25519ph_statebytes = function () { - return (vn._crypto_sign_ed25519ph_statebytes = vn.asm.Pf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_bytes = function () { - return (vn._crypto_sign_ed25519_bytes = vn.asm.Qf).apply(null, arguments) - }), - (vn._crypto_sign_ed25519_seedbytes = function () { - return (vn._crypto_sign_ed25519_seedbytes = vn.asm.Rf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_publickeybytes = function () { - return (vn._crypto_sign_ed25519_publickeybytes = vn.asm.Sf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_secretkeybytes = function () { - return (vn._crypto_sign_ed25519_secretkeybytes = vn.asm.Tf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_messagebytes_max = function () { - return (vn._crypto_sign_ed25519_messagebytes_max = vn.asm.Uf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_sk_to_seed = function () { - return (vn._crypto_sign_ed25519_sk_to_seed = vn.asm.Vf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_sk_to_pk = function () { - return (vn._crypto_sign_ed25519_sk_to_pk = vn.asm.Wf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519ph_init = function () { - return (vn._crypto_sign_ed25519ph_init = vn.asm.Xf).apply(null, arguments) - }), - (vn._crypto_sign_ed25519ph_update = function () { - return (vn._crypto_sign_ed25519ph_update = vn.asm.Yf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519ph_final_create = function () { - return (vn._crypto_sign_ed25519ph_final_create = vn.asm.Zf).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519ph_final_verify = function () { - return (vn._crypto_sign_ed25519ph_final_verify = vn.asm._f).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_seed_keypair = function () { - return (vn._crypto_sign_ed25519_seed_keypair = vn.asm.$f).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_keypair = function () { - return (vn._crypto_sign_ed25519_keypair = vn.asm.ag).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_pk_to_curve25519 = function () { - return (vn._crypto_sign_ed25519_pk_to_curve25519 = vn.asm.bg).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_sk_to_curve25519 = function () { - return (vn._crypto_sign_ed25519_sk_to_curve25519 = vn.asm.cg).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_verify_detached = function () { - return (vn._crypto_sign_ed25519_verify_detached = vn.asm.dg).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519_open = function () { - return (vn._crypto_sign_ed25519_open = vn.asm.eg).apply(null, arguments) - }), - (vn._crypto_sign_ed25519_detached = function () { - return (vn._crypto_sign_ed25519_detached = vn.asm.fg).apply( - null, - arguments, - ) - }), - (vn._crypto_sign_ed25519 = function () { - return (vn._crypto_sign_ed25519 = vn.asm.gg).apply(null, arguments) - }), - (vn._crypto_stream_chacha20_keybytes = function () { - return (vn._crypto_stream_chacha20_keybytes = vn.asm.hg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_noncebytes = function () { - return (vn._crypto_stream_chacha20_noncebytes = vn.asm.ig).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_messagebytes_max = function () { - return (vn._crypto_stream_chacha20_messagebytes_max = vn.asm.jg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_ietf_keybytes = function () { - return (vn._crypto_stream_chacha20_ietf_keybytes = vn.asm.kg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_ietf_noncebytes = function () { - return (vn._crypto_stream_chacha20_ietf_noncebytes = vn.asm.lg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_ietf_messagebytes_max = function () { - return (vn._crypto_stream_chacha20_ietf_messagebytes_max = - vn.asm.mg).apply(null, arguments) - }), - (vn._crypto_stream_chacha20 = function () { - return (vn._crypto_stream_chacha20 = vn.asm.ng).apply(null, arguments) - }), - (vn._crypto_stream_chacha20_xor_ic = function () { - return (vn._crypto_stream_chacha20_xor_ic = vn.asm.og).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_xor = function () { - return (vn._crypto_stream_chacha20_xor = vn.asm.pg).apply(null, arguments) - }), - (vn._crypto_stream_chacha20_ietf = function () { - return (vn._crypto_stream_chacha20_ietf = vn.asm.qg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_ietf_xor_ic = function () { - return (vn._crypto_stream_chacha20_ietf_xor_ic = vn.asm.rg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_ietf_xor = function () { - return (vn._crypto_stream_chacha20_ietf_xor = vn.asm.sg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_ietf_keygen = function () { - return (vn._crypto_stream_chacha20_ietf_keygen = vn.asm.tg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_chacha20_keygen = function () { - return (vn._crypto_stream_chacha20_keygen = vn.asm.ug).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_keybytes = function () { - return (vn._crypto_stream_keybytes = vn.asm.vg).apply(null, arguments) - }), - (vn._crypto_stream_noncebytes = function () { - return (vn._crypto_stream_noncebytes = vn.asm.wg).apply(null, arguments) - }), - (vn._crypto_stream_messagebytes_max = function () { - return (vn._crypto_stream_messagebytes_max = vn.asm.xg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_primitive = function () { - return (vn._crypto_stream_primitive = vn.asm.yg).apply(null, arguments) - }), - (vn._crypto_stream = function () { - return (vn._crypto_stream = vn.asm.zg).apply(null, arguments) - }), - (vn._crypto_stream_xor = function () { - return (vn._crypto_stream_xor = vn.asm.Ag).apply(null, arguments) - }), - (vn._crypto_stream_keygen = function () { - return (vn._crypto_stream_keygen = vn.asm.Bg).apply(null, arguments) - }), - (vn._crypto_stream_salsa20_keybytes = function () { - return (vn._crypto_stream_salsa20_keybytes = vn.asm.Cg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa20_noncebytes = function () { - return (vn._crypto_stream_salsa20_noncebytes = vn.asm.Dg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa20_messagebytes_max = function () { - return (vn._crypto_stream_salsa20_messagebytes_max = vn.asm.Eg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa20 = function () { - return (vn._crypto_stream_salsa20 = vn.asm.Fg).apply(null, arguments) - }), - (vn._crypto_stream_salsa20_xor_ic = function () { - return (vn._crypto_stream_salsa20_xor_ic = vn.asm.Gg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa20_xor = function () { - return (vn._crypto_stream_salsa20_xor = vn.asm.Hg).apply(null, arguments) - }), - (vn._crypto_stream_salsa20_keygen = function () { - return (vn._crypto_stream_salsa20_keygen = vn.asm.Ig).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xsalsa20 = function () { - return (vn._crypto_stream_xsalsa20 = vn.asm.Jg).apply(null, arguments) - }), - (vn._crypto_stream_xsalsa20_xor_ic = function () { - return (vn._crypto_stream_xsalsa20_xor_ic = vn.asm.Kg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xsalsa20_xor = function () { - return (vn._crypto_stream_xsalsa20_xor = vn.asm.Lg).apply(null, arguments) - }), - (vn._crypto_stream_xsalsa20_keybytes = function () { - return (vn._crypto_stream_xsalsa20_keybytes = vn.asm.Mg).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xsalsa20_noncebytes = function () { - return (vn._crypto_stream_xsalsa20_noncebytes = vn.asm.Ng).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xsalsa20_messagebytes_max = function () { - return (vn._crypto_stream_xsalsa20_messagebytes_max = vn.asm.Og).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xsalsa20_keygen = function () { - return (vn._crypto_stream_xsalsa20_keygen = vn.asm.Pg).apply( - null, - arguments, - ) - }), - (vn._crypto_verify_16_bytes = function () { - return (vn._crypto_verify_16_bytes = vn.asm.Qg).apply(null, arguments) - }), - (vn._crypto_verify_32_bytes = function () { - return (vn._crypto_verify_32_bytes = vn.asm.Rg).apply(null, arguments) - }), - (vn._crypto_verify_64_bytes = function () { - return (vn._crypto_verify_64_bytes = vn.asm.Sg).apply(null, arguments) - }), - (vn._crypto_verify_16 = function () { - return (vn._crypto_verify_16 = vn.asm.Tg).apply(null, arguments) - }), - (vn._crypto_verify_32 = function () { - return (vn._crypto_verify_32 = vn.asm.Ug).apply(null, arguments) - }), - (vn._crypto_verify_64 = function () { - return (vn._crypto_verify_64 = vn.asm.Vg).apply(null, arguments) - }), - (vn._randombytes_implementation_name = function () { - return (vn._randombytes_implementation_name = vn.asm.Wg).apply( - null, - arguments, - ) - }), - (vn._randombytes_random = function () { - return (vn._randombytes_random = vn.asm.Xg).apply(null, arguments) - }), - (vn._randombytes_stir = function () { - return (vn._randombytes_stir = vn.asm.Yg).apply(null, arguments) - }), - (vn._randombytes_uniform = function () { - return (vn._randombytes_uniform = vn.asm.Zg).apply(null, arguments) - }), - (vn._randombytes_buf = function () { - return (vn._randombytes_buf = vn.asm._g).apply(null, arguments) - }), - (vn._randombytes_buf_deterministic = function () { - return (vn._randombytes_buf_deterministic = vn.asm.$g).apply( - null, - arguments, - ) - }), - (vn._randombytes_seedbytes = function () { - return (vn._randombytes_seedbytes = vn.asm.ah).apply(null, arguments) - }), - (vn._randombytes_close = function () { - return (vn._randombytes_close = vn.asm.bh).apply(null, arguments) - }), - (vn._randombytes = function () { - return (vn._randombytes = vn.asm.ch).apply(null, arguments) - }), - (vn._sodium_bin2hex = function () { - return (vn._sodium_bin2hex = vn.asm.dh).apply(null, arguments) - }), - (vn._sodium_hex2bin = function () { - return (vn._sodium_hex2bin = vn.asm.eh).apply(null, arguments) - }), - (vn._sodium_base64_encoded_len = function () { - return (vn._sodium_base64_encoded_len = vn.asm.fh).apply(null, arguments) - }), - (vn._sodium_bin2base64 = function () { - return (vn._sodium_bin2base64 = vn.asm.gh).apply(null, arguments) - }), - (vn._sodium_base642bin = function () { - return (vn._sodium_base642bin = vn.asm.hh).apply(null, arguments) - }), - (vn._sodium_init = function () { - return (vn._sodium_init = vn.asm.ih).apply(null, arguments) - }), - (vn._sodium_pad = function () { - return (vn._sodium_pad = vn.asm.jh).apply(null, arguments) - }), - (vn._sodium_unpad = function () { - return (vn._sodium_unpad = vn.asm.kh).apply(null, arguments) - }), - (vn._sodium_version_string = function () { - return (vn._sodium_version_string = vn.asm.lh).apply(null, arguments) - }), - (vn._sodium_library_version_major = function () { - return (vn._sodium_library_version_major = vn.asm.mh).apply( - null, - arguments, - ) - }), - (vn._sodium_library_version_minor = function () { - return (vn._sodium_library_version_minor = vn.asm.nh).apply( - null, - arguments, - ) - }), - (vn._sodium_library_minimal = function () { - return (vn._sodium_library_minimal = vn.asm.oh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_seed_keypair = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_seed_keypair = - vn.asm.ph).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_keypair = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_keypair = - vn.asm.qh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_beforenm = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_beforenm = - vn.asm.rh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_detached_afternm = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_detached_afternm = - vn.asm.sh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_detached = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_detached = - vn.asm.th).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_easy_afternm = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_easy_afternm = - vn.asm.uh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_easy = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_easy = - vn.asm.vh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_open_detached_afternm = - function () { - return (vn._crypto_box_curve25519xchacha20poly1305_open_detached_afternm = - vn.asm.wh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_open_detached = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_open_detached = - vn.asm.xh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_open_easy_afternm = - function () { - return (vn._crypto_box_curve25519xchacha20poly1305_open_easy_afternm = - vn.asm.yh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_open_easy = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_open_easy = - vn.asm.zh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_seedbytes = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_seedbytes = - vn.asm.Ah).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_publickeybytes = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_publickeybytes = - vn.asm.Bh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_secretkeybytes = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_secretkeybytes = - vn.asm.Ch).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_beforenmbytes = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_beforenmbytes = - vn.asm.Dh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_noncebytes = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_noncebytes = - vn.asm.Eh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_macbytes = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_macbytes = - vn.asm.Fh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_messagebytes_max = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_messagebytes_max = - vn.asm.Gh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_seal = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_seal = - vn.asm.Hh).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_seal_open = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_seal_open = - vn.asm.Ih).apply(null, arguments) - }), - (vn._crypto_box_curve25519xchacha20poly1305_sealbytes = function () { - return (vn._crypto_box_curve25519xchacha20poly1305_sealbytes = - vn.asm.Jh).apply(null, arguments) - }), - (vn._crypto_core_ed25519_is_valid_point = function () { - return (vn._crypto_core_ed25519_is_valid_point = vn.asm.Kh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_add = function () { - return (vn._crypto_core_ed25519_add = vn.asm.Lh).apply(null, arguments) - }), - (vn._crypto_core_ed25519_sub = function () { - return (vn._crypto_core_ed25519_sub = vn.asm.Mh).apply(null, arguments) - }), - (vn._crypto_core_ed25519_from_uniform = function () { - return (vn._crypto_core_ed25519_from_uniform = vn.asm.Nh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_from_hash = function () { - return (vn._crypto_core_ed25519_from_hash = vn.asm.Oh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_random = function () { - return (vn._crypto_core_ed25519_random = vn.asm.Ph).apply(null, arguments) - }), - (vn._crypto_core_ed25519_scalar_random = function () { - return (vn._crypto_core_ed25519_scalar_random = vn.asm.Qh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalar_invert = function () { - return (vn._crypto_core_ed25519_scalar_invert = vn.asm.Rh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalar_negate = function () { - return (vn._crypto_core_ed25519_scalar_negate = vn.asm.Sh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalar_complement = function () { - return (vn._crypto_core_ed25519_scalar_complement = vn.asm.Th).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalar_add = function () { - return (vn._crypto_core_ed25519_scalar_add = vn.asm.Uh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalar_reduce = function () { - return (vn._crypto_core_ed25519_scalar_reduce = vn.asm.Vh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalar_sub = function () { - return (vn._crypto_core_ed25519_scalar_sub = vn.asm.Wh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalar_mul = function () { - return (vn._crypto_core_ed25519_scalar_mul = vn.asm.Xh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_bytes = function () { - return (vn._crypto_core_ed25519_bytes = vn.asm.Yh).apply(null, arguments) - }), - (vn._crypto_core_ed25519_nonreducedscalarbytes = function () { - return (vn._crypto_core_ed25519_nonreducedscalarbytes = vn.asm.Zh).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_uniformbytes = function () { - return (vn._crypto_core_ed25519_uniformbytes = vn.asm._h).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_hashbytes = function () { - return (vn._crypto_core_ed25519_hashbytes = vn.asm.$h).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ed25519_scalarbytes = function () { - return (vn._crypto_core_ed25519_scalarbytes = vn.asm.ai).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_is_valid_point = function () { - return (vn._crypto_core_ristretto255_is_valid_point = vn.asm.bi).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_add = function () { - return (vn._crypto_core_ristretto255_add = vn.asm.ci).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_sub = function () { - return (vn._crypto_core_ristretto255_sub = vn.asm.di).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_from_hash = function () { - return (vn._crypto_core_ristretto255_from_hash = vn.asm.ei).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_random = function () { - return (vn._crypto_core_ristretto255_random = vn.asm.fi).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_random = function () { - return (vn._crypto_core_ristretto255_scalar_random = vn.asm.gi).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_invert = function () { - return (vn._crypto_core_ristretto255_scalar_invert = vn.asm.hi).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_negate = function () { - return (vn._crypto_core_ristretto255_scalar_negate = vn.asm.ii).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_complement = function () { - return (vn._crypto_core_ristretto255_scalar_complement = vn.asm.ji).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_add = function () { - return (vn._crypto_core_ristretto255_scalar_add = vn.asm.ki).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_sub = function () { - return (vn._crypto_core_ristretto255_scalar_sub = vn.asm.li).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_mul = function () { - return (vn._crypto_core_ristretto255_scalar_mul = vn.asm.mi).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalar_reduce = function () { - return (vn._crypto_core_ristretto255_scalar_reduce = vn.asm.ni).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_bytes = function () { - return (vn._crypto_core_ristretto255_bytes = vn.asm.oi).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_nonreducedscalarbytes = function () { - return (vn._crypto_core_ristretto255_nonreducedscalarbytes = - vn.asm.pi).apply(null, arguments) - }), - (vn._crypto_core_ristretto255_hashbytes = function () { - return (vn._crypto_core_ristretto255_hashbytes = vn.asm.qi).apply( - null, - arguments, - ) - }), - (vn._crypto_core_ristretto255_scalarbytes = function () { - return (vn._crypto_core_ristretto255_scalarbytes = vn.asm.ri).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_ll = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_ll = vn.asm.si).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_bytes_min = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_bytes_min = - vn.asm.ti).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_bytes_max = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_bytes_max = - vn.asm.ui).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_passwd_min = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_passwd_min = - vn.asm.vi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_passwd_max = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_passwd_max = - vn.asm.wi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_saltbytes = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_saltbytes = - vn.asm.xi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_strbytes = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_strbytes = - vn.asm.yi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_strprefix = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_strprefix = - vn.asm.zi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_min = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_min = - vn.asm.Ai).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_max = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_max = - vn.asm.Bi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_min = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_min = - vn.asm.Ci).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_max = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_max = - vn.asm.Di).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive = - vn.asm.Ei).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive = - vn.asm.Fi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive = - vn.asm.Gi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive = - vn.asm.Hi).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256 = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256 = vn.asm.Ii).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_str = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_str = vn.asm.Ji).apply( - null, - arguments, - ) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_str_verify = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_str_verify = - vn.asm.Ki).apply(null, arguments) - }), - (vn._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash = function () { - return (vn._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash = - vn.asm.Li).apply(null, arguments) - }), - (vn._crypto_scalarmult_ed25519 = function () { - return (vn._crypto_scalarmult_ed25519 = vn.asm.Mi).apply(null, arguments) - }), - (vn._crypto_scalarmult_ed25519_noclamp = function () { - return (vn._crypto_scalarmult_ed25519_noclamp = vn.asm.Ni).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ed25519_base = function () { - return (vn._crypto_scalarmult_ed25519_base = vn.asm.Oi).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ed25519_base_noclamp = function () { - return (vn._crypto_scalarmult_ed25519_base_noclamp = vn.asm.Pi).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ed25519_bytes = function () { - return (vn._crypto_scalarmult_ed25519_bytes = vn.asm.Qi).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ed25519_scalarbytes = function () { - return (vn._crypto_scalarmult_ed25519_scalarbytes = vn.asm.Ri).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ristretto255 = function () { - return (vn._crypto_scalarmult_ristretto255 = vn.asm.Si).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ristretto255_base = function () { - return (vn._crypto_scalarmult_ristretto255_base = vn.asm.Ti).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ristretto255_bytes = function () { - return (vn._crypto_scalarmult_ristretto255_bytes = vn.asm.Ui).apply( - null, - arguments, - ) - }), - (vn._crypto_scalarmult_ristretto255_scalarbytes = function () { - return (vn._crypto_scalarmult_ristretto255_scalarbytes = vn.asm.Vi).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_xchacha20poly1305_detached = function () { - return (vn._crypto_secretbox_xchacha20poly1305_detached = - vn.asm.Wi).apply(null, arguments) - }), - (vn._crypto_secretbox_xchacha20poly1305_easy = function () { - return (vn._crypto_secretbox_xchacha20poly1305_easy = vn.asm.Xi).apply( - null, - arguments, - ) - }), - (vn._crypto_secretbox_xchacha20poly1305_open_detached = function () { - return (vn._crypto_secretbox_xchacha20poly1305_open_detached = - vn.asm.Yi).apply(null, arguments) - }), - (vn._crypto_secretbox_xchacha20poly1305_open_easy = function () { - return (vn._crypto_secretbox_xchacha20poly1305_open_easy = - vn.asm.Zi).apply(null, arguments) - }), - (vn._crypto_secretbox_xchacha20poly1305_keybytes = function () { - return (vn._crypto_secretbox_xchacha20poly1305_keybytes = - vn.asm._i).apply(null, arguments) - }), - (vn._crypto_secretbox_xchacha20poly1305_noncebytes = function () { - return (vn._crypto_secretbox_xchacha20poly1305_noncebytes = - vn.asm.$i).apply(null, arguments) - }), - (vn._crypto_secretbox_xchacha20poly1305_macbytes = function () { - return (vn._crypto_secretbox_xchacha20poly1305_macbytes = - vn.asm.aj).apply(null, arguments) - }), - (vn._crypto_secretbox_xchacha20poly1305_messagebytes_max = function () { - return (vn._crypto_secretbox_xchacha20poly1305_messagebytes_max = - vn.asm.bj).apply(null, arguments) - }), - (vn._crypto_shorthash_siphashx24_bytes = function () { - return (vn._crypto_shorthash_siphashx24_bytes = vn.asm.cj).apply( - null, - arguments, - ) - }), - (vn._crypto_shorthash_siphashx24_keybytes = function () { - return (vn._crypto_shorthash_siphashx24_keybytes = vn.asm.dj).apply( - null, - arguments, - ) - }), - (vn._crypto_shorthash_siphashx24 = function () { - return (vn._crypto_shorthash_siphashx24 = vn.asm.ej).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa2012 = function () { - return (vn._crypto_stream_salsa2012 = vn.asm.fj).apply(null, arguments) - }), - (vn._crypto_stream_salsa2012_xor = function () { - return (vn._crypto_stream_salsa2012_xor = vn.asm.gj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa2012_keybytes = function () { - return (vn._crypto_stream_salsa2012_keybytes = vn.asm.hj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa2012_noncebytes = function () { - return (vn._crypto_stream_salsa2012_noncebytes = vn.asm.ij).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa2012_messagebytes_max = function () { - return (vn._crypto_stream_salsa2012_messagebytes_max = vn.asm.jj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa2012_keygen = function () { - return (vn._crypto_stream_salsa2012_keygen = vn.asm.kj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa208 = function () { - return (vn._crypto_stream_salsa208 = vn.asm.lj).apply(null, arguments) - }), - (vn._crypto_stream_salsa208_xor = function () { - return (vn._crypto_stream_salsa208_xor = vn.asm.mj).apply(null, arguments) - }), - (vn._crypto_stream_salsa208_keybytes = function () { - return (vn._crypto_stream_salsa208_keybytes = vn.asm.nj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa208_noncebytes = function () { - return (vn._crypto_stream_salsa208_noncebytes = vn.asm.oj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa208_messagebytes_max = function () { - return (vn._crypto_stream_salsa208_messagebytes_max = vn.asm.pj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_salsa208_keygen = function () { - return (vn._crypto_stream_salsa208_keygen = vn.asm.qj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xchacha20_keybytes = function () { - return (vn._crypto_stream_xchacha20_keybytes = vn.asm.rj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xchacha20_noncebytes = function () { - return (vn._crypto_stream_xchacha20_noncebytes = vn.asm.sj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xchacha20_messagebytes_max = function () { - return (vn._crypto_stream_xchacha20_messagebytes_max = vn.asm.tj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xchacha20 = function () { - return (vn._crypto_stream_xchacha20 = vn.asm.uj).apply(null, arguments) - }), - (vn._crypto_stream_xchacha20_xor_ic = function () { - return (vn._crypto_stream_xchacha20_xor_ic = vn.asm.vj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xchacha20_xor = function () { - return (vn._crypto_stream_xchacha20_xor = vn.asm.wj).apply( - null, - arguments, - ) - }), - (vn._crypto_stream_xchacha20_keygen = function () { - return (vn._crypto_stream_xchacha20_keygen = vn.asm.xj).apply( - null, - arguments, - ) - }), - (vn._malloc = function () { - return (vn._malloc = vn.asm.yj).apply(null, arguments) - }), - (vn._free = function () { - return (vn._free = vn.asm.zj).apply(null, arguments) - }), - (vn.UTF8ToString = _o), - (vn.setValue = function (vr, Wr, qr = 'i8') { - switch ((qr.endsWith('*') && (qr = '*'), qr)) { - case 'i1': - case 'i8': - dt[vr >> 0] = Wr - break - case 'i16': - Lt[vr >> 1] = Wr - break - case 'i32': - ur[vr >> 2] = Wr - break - case 'i64': - ;(Vt = [ - Wr >>> 0, - ((Kt = Wr), - +Math.abs(Kt) >= 1 - ? Kt > 0 - ? (0 | Math.min(+Math.floor(Kt / 4294967296), 4294967295)) >>> 0 - : ~~+Math.ceil((Kt - +(~~Kt >>> 0)) / 4294967296) >>> 0 - : 0), - ]), - (ur[vr >> 2] = Vt[0]), - (ur[(vr + 4) >> 2] = Vt[1]) - break - case 'float': - xo[vr >> 2] = Wr - break - case 'double': - yo[vr >> 3] = Wr - break - case '*': - ho[vr >> 2] = Wr - break - default: - ns('invalid type for setValue: ' + qr) - } - }), - (vn.getValue = function (vr, Wr = 'i8') { - switch ((Wr.endsWith('*') && (Wr = '*'), Wr)) { - case 'i1': - case 'i8': - return dt[vr >> 0] - case 'i16': - return Lt[vr >> 1] - case 'i32': - case 'i64': - return ur[vr >> 2] - case 'float': - return xo[vr >> 2] - case 'double': - return yo[vr >> 3] - case '*': - return ho[vr >> 2] - default: - ns('invalid type for getValue: ' + Wr) - } - return null - }), - (is = function vr() { - Ho || Mo(), Ho || (is = vr) - }), - vn.preInit) - ) - for ( - typeof vn.preInit == 'function' && (vn.preInit = [vn.preInit]); - vn.preInit.length > 0; - - ) - vn.preInit.pop()() - Mo() - }) - }) - var Jn, - qn, - Kn, - an = an !== void 0 ? an : {}, - xn = Object.assign({}, an), - mn = typeof window == 'object', - Bn = typeof importScripts == 'function', - kn = - typeof process == 'object' && - typeof process.versions == 'object' && - typeof process.versions.node == 'string', - ln = '' - if (kn) { - var yn = require$$0$2, - Cn = require$$0$2 - ;(ln = Bn ? Cn.dirname(ln) + '/' : __dirname + '/'), - (Jn = (br, Fr) => { - var $r = Co(br) - return $r - ? Fr - ? $r - : $r.toString() - : ((br = Vo(br) ? new URL(br) : Cn.normalize(br)), - yn.readFileSync(br, Fr ? void 0 : 'utf8')) - }), - (Kn = (br) => { - var Fr = Jn(br, !0) - return Fr.buffer || (Fr = new Uint8Array(Fr)), Fr - }), - (qn = (br, Fr, $r) => { - var cr = Co(br) - cr && Fr(cr), - (br = Vo(br) ? new URL(br) : Cn.normalize(br)), - yn.readFile(br, function (ir, vn) { - ir ? $r(ir) : Fr(vn.buffer) - }) - }), - process.argv.length > 1 && process.argv[1].replace(/\\/g, '/'), - process.argv.slice(2), - (e.exports = an), - (an.inspect = function () { - return '[Emscripten Module object]' - }) - } else - (mn || Bn) && - (Bn - ? (ln = self.location.href) - : typeof document < 'u' && - document.currentScript && - (ln = document.currentScript.src), - (ln = - ln.indexOf('blob:') !== 0 - ? ln.substr(0, ln.replace(/[?#].*/, '').lastIndexOf('/') + 1) - : ''), - (Jn = (br) => { - try { - var Fr = new XMLHttpRequest() - return Fr.open('GET', br, !1), Fr.send(null), Fr.responseText - } catch (cr) { - var $r = Co(br) - if ($r) - return (function (ir) { - for (var vn = [], gr = 0; gr < ir.length; gr++) { - var Mr = ir[gr] - Mr > 255 && (Mr &= 255), vn.push(String.fromCharCode(Mr)) - } - return vn.join('') - })($r) - throw cr - } - }), - Bn && - (Kn = (br) => { - try { - var Fr = new XMLHttpRequest() - return ( - Fr.open('GET', br, !1), - (Fr.responseType = 'arraybuffer'), - Fr.send(null), - new Uint8Array(Fr.response) - ) - } catch (cr) { - var $r = Co(br) - if ($r) return $r - throw cr - } - }), - (qn = (br, Fr, $r) => { - var cr = new XMLHttpRequest() - cr.open('GET', br, !0), - (cr.responseType = 'arraybuffer'), - (cr.onload = () => { - if (cr.status == 200 || (cr.status == 0 && cr.response)) Fr(cr.response) - else { - var ir = Co(br) - ir ? Fr(ir.buffer) : $r() - } - }), - (cr.onerror = $r), - cr.send(null) - })) - an.print - var Tn, - Gn, - Sn = an.printErr || void 0 - Object.assign(an, xn), - (xn = null), - an.arguments && an.arguments, - an.thisProgram && an.thisProgram, - an.quit && an.quit, - an.wasmBinary && (Tn = an.wasmBinary), - an.noExitRuntime, - typeof WebAssembly != 'object' && Vn('no native wasm support detected') - var Zn, - tn, - En, - Mn, - Hn, - un, - dn, - Nn = !1, - fn = typeof TextDecoder < 'u' ? new TextDecoder('utf8') : void 0 - function _n(br, Fr) { - return br - ? (function ($r, cr, ir) { - for (var vn = cr + ir, gr = cr; $r[gr] && !(gr >= vn); ) ++gr - if (gr - cr > 16 && $r.buffer && fn) return fn.decode($r.subarray(cr, gr)) - for (var Mr = ''; cr < gr; ) { - var Or = $r[cr++] - if (128 & Or) { - var _i = 63 & $r[cr++] - if ((224 & Or) != 192) { - var eo = 63 & $r[cr++] - if ( - (Or = - (240 & Or) == 224 - ? ((15 & Or) << 12) | (_i << 6) | eo - : ((7 & Or) << 18) | (_i << 12) | (eo << 6) | (63 & $r[cr++])) < - 65536 - ) - Mr += String.fromCharCode(Or) - else { - var no = Or - 65536 - Mr += String.fromCharCode(55296 | (no >> 10), 56320 | (1023 & no)) - } - } else Mr += String.fromCharCode(((31 & Or) << 6) | _i) - } else Mr += String.fromCharCode(Or) - } - return Mr - })(tn, br, Fr) - : '' - } - function Ln() { - var br = Gn.buffer - ;(an.HEAP8 = Zn = new Int8Array(br)), - (an.HEAP16 = En = new Int16Array(br)), - (an.HEAP32 = Mn = new Int32Array(br)), - (an.HEAPU8 = tn = new Uint8Array(br)), - (an.HEAPU16 = new Uint16Array(br)), - (an.HEAPU32 = Hn = new Uint32Array(br)), - (an.HEAPF32 = un = new Float32Array(br)), - (an.HEAPF64 = dn = new Float64Array(br)) - } - var zn = [], - Fn = [], - An = [], - Qn = 0, - Rn = null - function Vn(br) { - throw ( - (an.onAbort && an.onAbort(br), - Sn((br = 'Aborted(' + br + ')')), - (Nn = !0), - (br += '. Build with -sASSERTIONS for more info.'), - new WebAssembly.RuntimeError(br)) - ) - } - var Wn, - ht, - Wt, - zt, - mr = 'data:application/octet-stream;base64,' - function Uo(br) { - return br.startsWith(mr) - } - function Vo(br) { - return br.startsWith('file://') - } - function ko(br) { - try { - if (br == Wn && Tn) return new Uint8Array(Tn) - var Fr = Co(br) - if (Fr) return Fr - if (Kn) return Kn(br) - throw 'both async and sync fetching of the wasm failed' - } catch ($r) { - Vn($r) - } - } - Uo( - (Wn = - 'data:application/octet-stream;base64,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AiADSQ0ACwsCQCADQXxxIgRBwABJDQAgAiAEQUBqIgVLDQADQCACIAEoAgA2AgAgAiABKAIENgIEIAIgASgCCDYCCCACIAEoAgw2AgwgAiABKAIQNgIQIAIgASgCFDYCFCACIAEoAhg2AhggAiABKAIcNgIcIAIgASgCIDYCICACIAEoAiQ2AiQgAiABKAIoNgIoIAIgASgCLDYCLCACIAEoAjA2AjAgAiABKAI0NgI0IAIgASgCODYCOCACIAEoAjw2AjwgAUFAayEBIAJBQGsiAiAFTQ0ACwsgAiAETw0BA0AgAiABKAIANgIAIAFBBGohASACQQRqIgIgBEkNAAsMAQsgA0EESQRAIAAhAgwBCyAAIANBBGsiBEsEQCAAIQIMAQsgACECA0AgAiABLQAAOgAAIAIgAS0AAToAASACIAEtAAI6AAIgAiABLQADOgADIAFBBGohASACQQRqIgIgBE0NAAsLIAIgA0kEQANAIAIgAS0AADoAACABQQFqIQEgAkEBaiICIANHDQALCyAACwQAQRAL8gICAn8BfgJAIAJFDQAgACABOgAAIAAgAmoiA0EBayABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBA2sgAToAACADQQJrIAE6AAAgAkEHSQ0AIAAgAToAAyADQQRrIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBBGsgATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQQhrIAE2AgAgAkEMayABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkEQayABNgIAIAJBFGsgATYCACACQRhrIAE2AgAgAkEcayABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa1CgYCAgBB+IQUgAyAEaiEBA0AgASAFNwMYIAEgBTcDECABIAU3AwggASAFNwMAIAFBIGohASACQSBrIgJBH0sNAAsLIAALGAEBf0G0oQIoAgAiAARAIAARFQALEAIAC7EEAhN/BH4gASgCKCECIAEoAgQhAyABKAIsIQQgASgCCCEFIAEoAjAhBiABKAIMIQcgASgCNCEIIAEoAhAhCSABKAI4IQogASgCFCELIAEoAjwhDCABKAIYIQ0gAUFA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AhggACAIQQAgCGtzIAFxIAhzNgIUIAAgCUEAIAlrcyABcSAJczYCECAAIApBACAKa3MgAXEgCnM2AgwgACALQQAgC2tzIAFxIAtzNgIIIAAgDEEAIAxrcyABcSAMczYCBCAAIANBACADa3MgAXEgA3M2AgAgAEH4AGogACAXEAYgAkHAAmokACAEIA9yQQFrC8oIAQN/IwBBwAFrIgIkACACQZABaiIEIAEQBSACQeAAaiIDIAQQBSADIAMQBSADIAEgAxAGIAQgBCADEAYgAkEwaiIBIAQQBSADIAMgARAGIAEgAxAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAMgASADEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAEQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSABIAIgARAGIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAMgASADEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAEQBUEBIQEDQCACIAIQBSABQQFqIgFB5ABHDQALIAJBMGoiASACIAEQBiABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSACQeAAaiIDIAEgAxAGIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAAgAyACQZABahAGIAJBwAFqJAALlwEBBH9BwQAhAkGACCEBAkACQEGACC0AACAAQf8BcUcEQCAAQf8BcUGBgoQIbCEDA0AgASgCACADcyIEQX9zIARBgYKECGtxQYCBgoR4cQ0CIAFBBGohASACQQRrIgJBA0sNAAsLIAJFDQELIABB/wFxIQADQCAAIAEtAABGBEAgAQ8LIAFBAWohASACQQFrIgINAAsLQQALCgAgACABIAIQRQvbAQEDfyMAQRBrIgMgADYCDCADIAE2AghBACEAIANBADoABwJAIAJFDQAgAkEBcSEBIAJBAUcEQCACQX5xIQRBACECA0AgAyADLQAHIAMoAgwgAGotAAAgAygCCCAAai0AAHNyOgAHIAMgAy0AByAAQQFyIgUgAygCDGotAAAgAygCCCAFai0AAHNyOgAHIABBAmohACACQQJqIgIgBEcNAAsLIAFFDQAgAyADLQAHIAMoAgwgAGotAAAgAygCCCAAai0AAHNyOgAHCyADLQAHQQFrQQh2QQFxQQFrCwwAIAAgASACIAMQRgs/AAJAIAStQoCAgIAQIAJCP3xCBoh9Vg0AIAJCgICAgBBaDQAgACABIAIgAyAEIAVBpJcCKAIAERAADwsQDQALJwAgAkKAgICAEFoEQBANAAsgACABIAIgAyAEIAVBoJcCKAIAEQsAC5wLARd/IwBBgARrIgIkAEF/IQMgAS0AHyIEQX9zQf8AcSABLQABIAEtAAIgAS0AAyABLQAEIAEtAAUgAS0ABiABLQAHIAEtAAggAS0ACSABLQAKIAEtAAsgAS0ADCABLQANIAEtAA4gAS0ADyABLQAQIAEtABEgAS0AEiABLQATIAEtABQgAS0AFSABLQAWIAEtABcgAS0AGCABLQAZIAEtABogAS0AGyABLQAcIAEtAB0gAS0AHnFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxQX9zckH/AXFBAWtB7AEgAS0AACIFa3FBCHYgBSAEQQd2cnJBAXFFBEAgAkHQAmoiDSABECcgAkGgAmogDRAFIAJBACACKALEAiIBazYClAIgAkEAIAIoAsACIgNrNgKQAiACQQAgAigCvAIiBGs2AowCIAJBACACKAK4AiIFazYCiAIgAkEAIAIoArQCIgZrNgKEAiACQQAgAigCsAIiB2s2AoACIAJBACACKAKsAiIIazYC/AEgAkEAIAIoAqgCIglrNgL4ASACQQAgAigCpAIiCms2AvQBIAJBASACKAKgAiILazYC8AEgAkGQAWoiDCACQfABaiIREAUgAiABNgLkASACIAM2AuABIAIgBDYC3AEgAiAFNgLYASACIAY2AtQBIAIgBzYC0AEgAiAINgLMASACIAk2AsgBIAIgCjYCxAEgAiALQQFqNgLAASACQeAAaiISIAJBwAFqIhMQBSACQTBqIhBBwAwgDBAGIAIoAmAhASACKAIwIQMgAigCZCEEIAIoAjQhBSACKAJoIQYgAigCOCEHIAIoAmwhCCACKAI8IQkgAigCcCEKIAIoAkAhCyACKAJ0IQwgAigCRCEOIAIoAnghDyACKAJIIRQgAigCfCEVIAIoAkwhFiACKAKAASEXIAIoAlAhGCACQQAgAigCVCACKAKEAWprNgJUIAJBACAXIBhqazYCUCACQQAgFSAWams2AkwgAkEAIA8gFGprNgJIIAJBACAMIA5qazYCRCACQQAgCiALams2AkAgAkEAIAggCWprNgI8IAJBACAGIAdqazYCOCACQQAgBCAFams2AjQgAkEAIAEgA2prNgIwIAIgECASEAYgAkIANwKUAyACQgA3ApwDIAJBADYCpAMgAkIANwKEAyACQQE2AoADIAJCADcCjAMgAkGwA2oiASACQYADaiACEGUhDyAAIAEgExAGIABBKGoiAyABIAAQBiADIAMgEBAGIAAgACAN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AkghDCABKAJMIQ0gASgCBCEQIAEoAgghESABKAIMIRIgASgCECETIAEoAhQhFCABKAIYIRUgASgCHCEWIAEoAiAhFyABKAIAIRggAigC0AUhDiACKALUBSEZIAIoAtgFIRogAigC3AUhGyACKALgBSEcIAIoAuQFIR0gAigC6AUhHiACKALsBSEfIAIoAvAFISAgAigC9AUhKyACKALgAyEhIAIoAuQDISIgAigC6AMhIyACKALsAyEkIAIoAvADISUgAigC9AMhJiACKAL4AyEnIAIoAvwDISggAigCgAQhKSACQQAgAi0AoAVBAXFrIgMgASgCJCIqIAIoAoQEc3EgKnM2ArQBIAIgFyAXIClzIANxczYCsAEgAiAWIBYgKHMgA3FzNgKsASACIBUgFSAncyADcXM2AqgBIAIgFCAUICZzIANxczYCpAEgAiATIBMgJXMgA3FzNgKgASACIBIgEiAkcyADcXM2ApwBIAIgESARICNzIANxczYCmAEgAiAQIBAgInMgA3FzNgKUASACIBggGCAhcyADcXM2ApABIAIoApAEIRAgAigClAQhESACKAKYBCESIAIoApwEIRMgAigCoAQhFCACKAKkBCEVIAIoAqgEIRYgAigCrAQhFyACKAKwBCEYIAIoArQEISEgAigC8AQhIiACKAL0BCEjIAIoAvgEISQgAigC/AQhJSACKAKABSEmIAIoAoQFIScgAigCiAUhKCACKAKMBSEpIAIoApAFISogAiArICsgAigClAVzIANxczYCxAUgAiAgICAgKnMgA3FzNgLABSACIB8gHyApcyADcXM2ArwFIAIgHiAeIChzIANxczYCuAUgAiAdIB0gJ3MgA3FzNgK0BSACIBwgHCAmcyADcXM2ArAFIAIgGyAbICVzIANxczYCrAUgAiAaIBogJHMgA3FzNgKoBSACIBkgGSAjcyADcXM2AqQFIAIgDiAOICJzIANxczYCoAUgAkHgAGoiDiACQZABaiAIEAYgAkGAA2oiCCAOEA8gASgCUCEOIAEoAlQhGSABKAJYIRogASgCXCEbIAEoAmAhHCABKAJkIR0gASgCaCEeIAEoAmwhHyABKAJwISAgAiABKAJ0QQAgAi0AgANBAXFrIgEgDSANICFzIANxcyINQQAgDWtzcSANc2s2AqQDIAIgICAMIAwgGHMgA3FzIgxBACAMa3MgAXEgDHNrNgKgAyACIB8gCyALIBdzIANxcyILQQAgC2tzIAFxIAtzazYCnAMgAiAeIAogCiAWcyADcXMiCkEAIAprcyABcSAKc2s2ApgDIAIgHSAJIAkgFXMgA3FzIglBACAJa3MgAXEgCXNrNgKUAyACIBwgByAHIBRzIANxcyIHQQAgB2tzIAFxIAdzazYCkAMgAiAbIAYgBiATcyADcXMiBkEAIAZrcyABcSAGc2s2AowDIAIgGiAFIAUgEnMgA3FzIgVBACAFa3MgAXEgBXNrNgKIAyACIBkgBCAEIBFzIANxcyIEQQAgBGtzIAFxIARzazYChAMgAiAOIAEgDyAPIBBzIANxcyIBQQAgAWtzcSABc2s2AoADIAggLCAIEAYgAkGwBmogCBAPIAJBACACLQCwBkEBcWsiASACKAKAAyIDQQAgA2tzcSADczYCgAMgAiACKAKEAyIDQQAgA2tzIAFxIANzNgKEAyACIAIoAogDIgNBACADa3MgAXEgA3M2AogDIAIgAigCjAMiA0EAIANrcyABcSADczYCjAMgAiACKAKQAyIDQQAgA2tzIAFxIANzNgKQAyACIAIoApQDIgNBACADa3MgAXEgA3M2ApQDIAIgAigCmAMiA0EAIANrcyABcSADczYCmAMgAiACKAKcAyIDQQAgA2tzIAFxIANzNgKcAyACIAIoAqADIgNBACADa3MgAXEgA3M2AqADIAIgASACKAKkAyIBQQAgAWtzcSABczYCpAMgACAIEA8gAkHQBmokAAv4AQEKfwNAIAQgACADai0AACIBIANBkBVqIgItAABzciEEIAogASACLQDAAXNyIQogCSABIAItAKABc3IhCSAIIAEgAi0AgAFzciEIIAcgASACLQBgc3IhByAGIAEgAkFAay0AAHNyIQYgBSABIAItACBzciEFIANBAWoiA0EfRw0ACyAKIAAtAB9B/wBxIgBB/wBzIgFyQf8BcUEBayABIAlyQf8BcUEBayABIAhyQf8BcUEBayAHIABB+gBzckH/AXFBAWsgBiAAQQVzckH/AXFBAWsgACAFckH/AXFBAWsgACAEckH/AXFBAWtycnJycnJBCHZBAXELxQUBHH8jAEHAAmsiASQAIAFB8AFqIgMgABAFIAFBwAFqIgQgAEEoahAFIAFBkAFqIgIgAEHQAGoQBSABKALwASEAIAEoAsABIQUgASgC9AEhBiABKALEASEHIAEoAvgBIQggASgCyAEhCSABKAL8ASEKIAEoAswBIQsgASgCgAIhDCABKALQASENIAEoAoQCIQ4gASgC1AEhDyABKAKIAiEQIAEoAtgBIREgASgCjAIhEiABKALcASETIAEoApACIRQgASgC4AEhFSABIAEoAuQBIAEoApQCazYCVCABIBUgFGs2AlAgASATIBJrNgJMIAEgESAQazYCSCABIA8gDms2AkQgASANIAxrNgJAIAEgCyAKazYCPCABIAkgCGs2AjggASAHIAZrNgI0IAEgBSAAazYCMCABQTBqIhYgFiACEAYgASADIAQQBiABIAFBwAwQBiABQeAAaiACEAUgASgCMCEAIAEoAmAhBSABKAIAIQYgASgCNCEHIAEoAmQhCCABKAIEIQkgASgCOCEKIAEoAmghCyABKAIIIQwgASgCPCENIAEoAmwhDiABKAIMIQ8gASgCQCEQIAEoAnAhESABKAIQIRIgASgCRCETIAEoAnQhFCABKAIUIRUgASgCSCECIAEoAnghAyABKAIYIQQgASgCTCEXIAEoAnwhGCABKAIcIRkgASgCUCEaIAEoAoABIRsgASgCICEcIAEgASgCVCABKAKEASABKAIkams2AlQgASAaIBsgHGprNgJQIAEgFyAYIBlqazYCTCABIAIgAyAEams2AkggASATIBQgFWprNgJEIAEgECARIBJqazYCQCABIA0gDiAPams2AjwgASAKIAsgDGprNgI4IAEgByAIIAlqazYCNCABIAAgBSAGams2AjAgAUGgAmoiACAWEA8gAEEgEBghACABQcACaiQAIAAL7wMBAX8jAEEQayICIAA2AgwgAiABNgIIIAJBADYCBCACIAIoAgQgAigCDC0AACACKAIILQAAc3I2AgQgAiACKAIEIAIoAgwtAAEgAigCCC0AAXNyNgIEIAIgAigCBCACKAIMLQACIAIoAggtAAJzcjYCBCACIAIoAgQgAigCDC0AAyACKAIILQADc3I2AgQgAiACKAIEIAIoAgwtAAQgAigCCC0ABHNyNgIEIAIgAigCBCACKAIMLQAFIAIoAggtAAVzcjYCBCACIAIoAgQgAigCDC0ABiACKAIILQAGc3I2AgQgAiACKAIEIAIoAgwtAAcgAigCCC0AB3NyNgIEIAIgAigCBCACKAIMLQAIIAIoAggtAAhzcjYCBCACIAIoAgQgAigCDC0ACSACKAIILQAJc3I2AgQgAiACKAIEIAIoAgwtAAogAigCCC0ACnNyNgIEIAIgAigCBCACKAIMLQALIAIoAggtAAtzcjYCBCACIAIoAgQgAigCDC0ADCACKAIILQAMc3I2AgQgAiACKAIEIAIoAgwtAA0gAigCCC0ADXNyNgIEIAIgAigCBCACKAIMLQAOIAIoAggtAA5zcjYCBCACIAIoAgQgAigCDC0ADyACKAIILQAPc3I2AgQgAigCBEEBa0EIdkEBcUEBawsmACACQYACTwRAQcUKQe4JQesAQeMIEAEACyAAIAEgAkH/AXEQcwuNBAECf0F/IQQCQCACQcAASw0AIANBwQBrQUBJDQACQCABQQAgAhtFBEAgA0H/AXEiAUHBAGtB/wFxQb8BTQRAEA0ACyAAQUBrQQBBpQIQDBogAEL5wvibkaOz8NsANwA4IABC6/qG2r+19sEfNwAwIABCn9j52cKR2oKbfzcAKCAAQtGFmu/6z5SH0QA3ACAgAELx7fT4paf9p6V/NwAYIABCq/DT9K/uvLc8NwAQIABCu86qptjQ67O7fzcACCAAIAGtQoiS95X/zPmE6gCFNwAADAELAn8gAkH/AXEhAiMAQYABayIFJAACQCADQf8BcSIDQcEAa0H/AXFBvwFNDQAgAUUNACACQcEAa0H/AXFBvwFNDQAgAEFAa0EAQaUCEAwaIABC+cL4m5Gjs/DbADcAOCAAQuv6htq/tfbBHzcAMCAAQp/Y+dnCkdqCm383ACggAELRhZrv+s+Uh9EANwAgIABC8e30+KWn/aelfzcAGCAAQqvw0/Sv7ry3PDcAECAAQrvOqqbY0Ouzu383AAggACADrSACrUIIhoRCiJL3lf/M+YTqAIU3AAAgAiAFakEAQYABIAJrQQAgAsBBAE4bEAwaIABB4ABqIAUgASACEAoiAUGAARAKGiAAIAAoAOACQYABajYA4AIgAUGAARAIIAFBgAFqJABBAAwBCxANAAsNAQtBACEECyAEC8YCAgJ/AX4jAEHgAmsiBiQAIAYgBCAFQQAQKhoCQCAAIAJLIAAgAmutIANUcUUEQCAAIAJPDQEgAiAAa60gA1oNAQsgACACIAOnEDohAgsgBkIANwM4IAZCADcDMCAGQgA3AyggBkIANwMgQiAgAyADQiBaGyIIUCIHRQRAIAZBQGsgAiAIpxAKGgsgBkEgaiIFIAUgCEIgfCAEQRBqIgRCACAGQZSXAigCABELABogBkHgAGogBUH8lgIoAgARAAAaIAdFBEAgACAGQUBrIAinEAoaCyAGQSBqQcAAEAggA0IhWgRAIAAgCKciBWogAiAFaiADIAh9IARCASAGQZSXAigCABELABoLIAZBIBAIIAZB4ABqIgIgACADQYCXAigCABEBABogAiABQYSXAigCABEAABogAkGAAhAIIAZB4AJqJABBAAsLACAAIAEgAhDgAQuLLgElfiAAIAEpACgiICABKQBoIhggASkAQCIaIAEpACAiGSAYIAEpAHgiHCABKQBYIiEgASkAUCIbICAgACkAECAZIAApADAiHXx8IhV8IB0gACkAUCAVhULr+obav7X2wR+FQiCJIhVCq/DT9K/uvLc8fCIehUIoiSIdfCIWIBWFQjCJIgYgHnwiBCAdhUIBiSIXIAEpABgiHSAAKQAIIiUgASkAECIVIAApACgiHnx8IiJ8IAApAEggIoVCn9j52cKR2oKbf4VCIIkiA0LFsdXZp6+UzMQAfSIFIB6FQiiJIgJ8Igd8fCIjfCAXICMgASkACCIeIAApAAAiJiABKQAAIiIgACkAICIkfHwiH3wgJCAAQUBrKQAAIB+FQtGFmu/6z5SH0QCFQiCJIh9CiJLznf/M+YTqAHwiCIVCKIkiC3wiDCAfhUIwiSIJhUIgiSIfIAEpADgiIyAAKQAYIAEpADAiJCAAKQA4Igp8fCINfCAKIAApAFggDYVC+cL4m5Gjs/DbAIVCIIkiDUKPkouH2tiC2NoAfSIOhUIoiSIKfCIQIA2FQjCJIg0gDnwiDnwiEYVCKIkiF3wiEiAfhUIwiSITIBF8IhEgF4VCAYkiFCABKQBIIhd8IBggASkAYCIfIBYgCiAOhUIBiSIKfHwiFnwgFiADIAeFQjCJIgOFQiCJIgcgCCAJfCIIfCIJIAqFQiiJIgp8Ig58Ig98IA8gHCABKQBwIhYgECAIIAuFQgGJIgh8fCILfCAGIAuFQiCJIgYgAyAFfCIDfCIFIAiFQiiJIgh8IgsgBoVCMIkiBoVCIIkiECAXIBogAiADhUIBiSIDIAx8fCICfCADIAQgAiANhUIgiSICfCIEhUIoiSIDfCIMIAKFQjCJIgIgBHwiBHwiDSAUhUIoiSIUfCIPICF8IAsgGCAHIA6FQjCJIgcgCXwiCSAKhUIBiSIKfHwiCyAkfCAKIAIgC4VCIIkiAiARfCILhUIoiSIKfCIOIAKFQjCJIgIgC3wiCyAKhUIBiSIKfCIRICN8IAogBSAGfCIGIAiFQgGJIgUgDCAWfHwiCCAbfCAFIAggE4VCIIkiCCAJfCIMhUIoiSIFfCIJIAiFQjCJIgggDHwiDCARIBogGSADIASFQgGJIgR8IBJ8IgN8IAQgBiADIAeFQiCJIgN8IgaFQiiJIgR8IgcgA4VCMIkiA4VCIIkiEXwiEoVCKIkiCnwiEyARhUIwiSIRIBJ8IhIgCoVCAYkiCiAcfCAdICAgBSAMhUIBiSIFIA58fCIMfCAFIAwgDyAQhUIwiSIOhUIgiSIMIAMgBnwiBnwiA4VCKIkiBXwiEHwiDyAEIAaFQgGJIgYgHnwgCXwiBCAffCAGIAIgBIVCIIkiBCANIA58IgJ8IgmFQiiJIgZ8Ig0gBIVCMIkiBIVCIIkiDiAVIAIgFIVCAYkiAiAHfCAifCIHfCACIAcgCIVCIIkiByALfCIIhUIoiSICfCILIAeFQjCJIgcgCHwiCHwiFCAKhUIoiSIKIA98fCIPIBogBSADIAwgEIVCMIkiBXwiA4VCAYkiDCANICF8fCINfCAMIAcgDYVCIIkiByASfCIMhUIoiSINfCIQIAeFQjCJIgcgDHwiDCANhUIBiSINfCAXfCISfCANIBIgICACIAiFQgGJIgIgE3x8IgggFXwgAiAFIAiFQiCJIgUgBCAJfCIEfCIIhUIoiSICfCIJIAWFQjCJIgWFQiCJIhIgBCAGhUIBiSIGIB98IAt8IgQgInwgBiADIAQgEYVCIIkiBHwiA4VCKIkiBnwiCyAEhUIwiSIEIAN8IgN8IhGFQiiJIg18IhMgHiAJIAogDiAPhUIwiSIKIBR8Ig6FQgGJIhR8ICN8Igl8IAQgCYVCIIkiBCAMfCIMIBSFQiiJIgl8IhQgBIVCMIkiBCAMfCIMIAmFQgGJIgl8ICF8Ig8gFnwgCSAPIBYgECADIAaFQgGJIgZ8IBt8IgN8IAYgAyAKhUIgiSIGIAUgCHwiA3wiBYVCKIkiCHwiCSAGhUIwiSIGhUIgiSIKIA4gByACIAOFQgGJIgMgCyAdfHwiAoVCIIkiB3wiCyADhUIoiSIDIAJ8ICR8IgIgB4VCMIkiByALfCILfCIOhUIoiSIQfCIPIA0gESASIBOFQjCJIg18IhGFQgGJIhIgCSAjfHwiCSAXfCAHIAmFQiCJIgcgDHwiDCAShUIoiSIJfCISIAeFQjCJIgcgDHwiDCAJhUIBiSIJfCAcfCITfCAJIBMgDSAYIAMgC4VCAYkiA3wgFHwiC4VCIIkiDSAFIAZ8IgZ8IgUgA4VCKIkiAyALfCAffCILIA2FQjCJIg2FQiCJIhMgHiAGIAiFQgGJIgYgHXwgAnwiAnwgBiARIAIgBIVCIIkiBHwiAoVCKIkiBnwiCCAEhUIwiSIEIAJ8IgJ8IhGFQiiJIgl8IhQgDCAEIAogD4VCMIkiCiAOfCIOIBCFQgGJIhAgCyAZfHwiC4VCIIkiBHwiDCAQhUIoiSIQIAt8ICJ8IgsgBIVCMIkiBCAMfCIMIBCFQgGJIhB8IBt8Ig8gHHwgECAPIBIgAiAGhUIBiSIGfCAVfCICICR8IAYgAiAKhUIgiSICIAUgDXwiBXwiCoVCKIkiBnwiDSAChUIwiSIChUIgiSISICAgAyAFhUIBiSIDIAh8fCIFIBt8IAMgBSAHhUIgiSIFIA58IgeFQiiJIgN8IgggBYVCMIkiBSAHfCIHfCIOhUIoiSIQfCIPIAkgEyAUhUIwiSIJIBF8IhGFQgGJIhMgDSAXfHwiDSAifCAFIA2FQiCJIgUgDHwiDCAThUIoiSINfCITIAWFQjCJIgUgDHwiDCANhUIBiSINfCAdfCIUfCANIBQgAyAHhUIBiSIDIBV8IAt8IgcgGXwgAyAHIAmFQiCJIgcgAiAKfCICfCILhUIoiSIDfCIJIAeFQjCJIgeFQiCJIgogICACIAaFQgGJIgZ8IAh8IgIgI3wgBiARIAIgBIVCIIkiBHwiAoVCKIkiBnwiCCAEhUIwiSIEIAJ8IgJ8Ig2FQiiJIhF8IhQgCoVCMIkiCiADIAcgC3wiA4VCAYkiByAIICF8fCIIIB98IAcgDyAShUIwiSILIA58Ig4gBSAIhUIgiSIFfCIIhUIoiSIHfCISIAWFQjCJIgUgCHwiCCAHhUIBiSIHICJ8IAkgDiAQhUIBiSIJfCAkfCIOIBp8IAkgBCAOhUIgiSIEIAx8IgyFQiiJIgl8Ig58IhCFQiCJIg8gHiATIAIgBoVCAYkiBnwgFnwiAnwgBiADIAIgC4VCIIkiBnwiA4VCKIkiAnwiCyAGhUIwiSIGIAN8IgN8IhMgB4VCKIkiByAQfCAhfCIQIA+FQjCJIg8gE3wiEyAHhUIBiSIHIAIgA4VCAYkiAyASfCAkfCICIBt8IAMgCiANfCIKIAQgDoVCMIkiBCAChUIgiSICfCINhUIoiSIDfCIOfCAjfCISfCAHIBIgCiARhUIBiSIKIAsgFXx8IgsgH3wgCiAFIAuFQiCJIgUgBCAMfCIEfCILhUIoiSIMfCIKIAWFQjCJIgWFQiCJIhEgBCAJhUIBiSIEIBp8IBR8IgkgHXwgBCAGIAmFQiCJIgYgCHwiCIVCKIkiBHwiCSAGhUIwiSIGIAh8Igh8IhKFQiiJIgd8IhQgEYVCMIkiESASfCISIAeFQgGJIgcgCiADIAIgDoVCMIkiAyANfCIChUIBiSINfCAZfCIKIBh8IAYgCoVCIIkiBiATfCIKIA2FQiiJIg18Ig4gBoVCMIkiBiAKfCIKIAIgDyAFIAt8IgUgDIVCAYkiAiAJIB58fCILhUIgiSIMfCIJIAKFQiiJIgIgC3wgF3wiCyAMhUIwiSIMIBAgBCAIhUIBiSIEfCAcfCIIIBZ8IAQgBSADIAiFQiCJIgN8IgWFQiiJIgR8IgggByAWfHwiB4VCIIkiEHwiE4VCKIkiDyATIBAgDyAYfCAHfCIHhUIwiSIQfCIThUIBiSIPIBIgBiAZIAQgAyAIhUIwiSIEIAV8IgOFQgGJIgV8IAt8IgiFQiCJIgZ8IgsgBiAFIAuFQiiJIgUgG3wgCHwiCIVCMIkiBnwiCyACIAkgDHwiDIVCAYkiAiAOIB98fCIJIBGFQiCJIg4gAyAOfCIDIAKFQiiJIgIgIHwgCXwiCYVCMIkiDiAKIA2FQgGJIgogDCAEIAogHnwgFHwiCoVCIIkiBHwiDIVCKIkiDSAcfCAKfCIKIA8gJHx8IhGFQiCJIhJ8IhSFQiiJIg8gFCASIA8gHXwgEXwiEYVCMIkiEnwiFIVCAYkiDyATIAYgCSAiIA0gDCAEIAqFQjCJIgR8IgyFQgGJIgl8fCIKhUIgiSIGfCINIAYgCSANhUIoiSIJICN8IAp8IgqFQjCJIgZ8Ig0gECAIIBogAiADIA58IgOFQgGJIgJ8fCIIhUIgiSIOIAggAiAMIA58IgiFQiiJIgIgIXx8IgyFQjCJIg4gBSALhUIBiSIFIAMgBCAFIBd8IAd8IgWFQiCJIgR8IgOFQiiJIgcgFXwgBXwiBSAPIB98fCILhUIgiSIQfCIThUIoiSIPIBMgECAPIB58IAt8IguFQjCJIhB8IhOFQgGJIg8gFCAGIB0gByADIAQgBYVCMIkiBHwiA4VCAYkiBXwgDHwiB4VCIIkiBnwiDCAGIAUgDIVCKIkiBSAXfCAHfCIHhUIwiSIGfCIMIBIgAiAIIA58IgiFQgGJIgIgGHwgCnwiCoVCIIkiDiACIAMgDnwiA4VCKIkiAiAhfCAKfCIKhUIwiSIOIAkgDYVCAYkiCSAIIAQgCSAjfCARfCIJhUIgiSIEfCIIhUIoiSINIBZ8IAl8IgkgDyAcfHwiEYVCIIkiEnwiFIVCKIkiDyAUIBIgDyAZfCARfCIRhUIwiSISfCIUhUIBiSIPIBMgBiAgIA0gCCAEIAmFQjCJIgR8IgiFQgGJIgl8IAp8IgqFQiCJIgZ8Ig0gBiAJIA2FQiiJIgkgInwgCnwiCoVCMIkiBnwiDSAQIBUgAiADIA58IgOFQgGJIgJ8IAd8IgeFQiCJIg4gByACIAggDnwiB4VCKIkiAiAbfHwiCIVCMIkiDiAFIAyFQgGJIgUgAyAEIAUgGnwgC3wiBYVCIIkiBHwiA4VCKIkiCyAkfCAFfCIFIA8gIXx8IgyFQiCJIhB8IhOFQiiJIg8gEyAQIA8gHXwgDHwiDIVCMIkiEHwiE4VCAYkiDyAUIAYgIiALIAMgBCAFhUIwiSIEfCIDhUIBiSIFfCAIfCIIhUIgiSIGfCILIAYgBSALhUIoiSIFIBp8IAh8IgiFQjCJIgZ8IgsgEiACIAcgDnwiB4VCAYkiAiAkfCAKfCIKhUIgiSIOIAIgAyAOfCIDhUIoiSICIBx8IAp8IgqFQjCJIg4gCSANhUIBiSIJIAcgBCAJIBZ8IBF8IgmFQiCJIgR8IgeFQiiJIg0gF3wgCXwiCSAPIBh8fCIRhUIgiSISfCIUhUIoiSIPIBQgEiAPICN8IBF8IhGFQjCJIhJ8IhSFQgGJIg8gEyAGIB8gDSAHIAQgCYVCMIkiBHwiB4VCAYkiCXwgCnwiCoVCIIkiBnwiDSAGIAkgDYVCKIkiCSAVfCAKfCIKhUIwiSIGfCINIBAgGyACIAMgDnwiA4VCAYkiAnwgCHwiCIVCIIkiDiACIAcgDnwiB4VCKIkiAiAgfCAIfCIIhUIwiSIOIAUgC4VCAYkiBSADIAQgBSAefCAMfCIFhUIgiSIEfCIDhUIoiSILIBl8IAV8IgUgDyAjfHwiDIVCIIkiEHwiE4VCKIkiDyATIBAgDyAkfCAMfCIMhUIwiSIQfCIThUIBiSIPIBQgBiAeIAsgAyAEIAWFQjCJIgR8IgOFQgGJIgV8IAh8IgiFQiCJIgZ8IgsgBiAFIAuFQiiJIgUgIHwgCHwiCIVCMIkiBnwiCyASIAIgByAOfCIHhUIBiSICIBt8IAp8IgqFQiCJIg4gAiADIA58IgOFQiiJIgIgFXwgCnwiCoVCMIkiDiAJIA2FQgGJIgkgByAEIAkgGnwgEXwiCYVCIIkiBHwiB4VCKIkiDSAZfCAJfCIJIA8gF3x8IhGFQiCJIhJ8IhSFQiiJIg8gFCASIA8gFnwgEXwiEYVCMIkiEnwiFIVCAYkiDyATIAYgHCANIAcgBCAJhUIwiSIEfCIHhUIBiSIJfCAKfCIKhUIgiSIGfCINIAYgCSANhUIoiSIJICF8IAp8IgqFQjCJIgZ8Ig0gECAYIAIgAyAOfCIDhUIBiSICfCAIfCIIhUIgiSIOIAIgByAOfCIHhUIoiSICICJ8IAh8IgiFQjCJIg4gBSALhUIBiSIFIAMgBCAFIB18IAx8IgWFQiCJIgR8IgOFQiiJIgsgH3wgBXwiBSAPIBl8fCIMhUIgiSIQfCIThUIoiSIPIBMgECAPICB8IAx8IgyFQjCJIhB8IhOFQgGJIg8gFCAGICQgCyADIAQgBYVCMIkiBHwiA4VCAYkiBXwgCHwiCIVCIIkiBnwiCyAGIAUgC4VCKIkiBSAjfCAIfCIIhUIwiSIGfCILIBIgAiAHIA58IgeFQgGJIgIgInwgCnwiCoVCIIkiDiACIAMgDnwiA4VCKIkiAiAefCAKfCIKhUIwiSIOIAkgDYVCAYkiCSAHIAQgCSAVfCARfCIJhUIgiSIEfCIHhUIoiSINIB18IAl8IgkgDyAbfHwiEYVCIIkiEnwiFIVCKIkiDyAUIBIgDyAhfCARfCIRhUIwiSISfCIUhUIBiSIPIBMgBiAaIA0gByAEIAmFQjCJIgR8IgeFQgGJIgl8IAp8IgqFQiCJIgZ8Ig0gBiAJIA2FQiiJIgkgF3wgCnwiCoVCMIkiBnwiDSAQIBYgAiADIA58IgOFQgGJIgJ8IAh8IgiFQiCJIg4gAiAHIA58IgeFQiiJIgIgHHwgCHwiCIVCMIkiDiAFIAuFQgGJIgUgAyAEIAUgH3wgDHwiBYVCIIkiBHwiA4VCKIkiCyAYfCAFfCIFIA8gF3x8IheFQiCJIgx8IhCFQiiJIhMgECAMIBMgHHwgF3wiHIVCMIkiF3wiDIVCAYkiECAUIAYgGCALIAMgBCAFhUIwiSIEfCIDhUIBiSIFfCAIfCIYhUIgiSIGfCIIIAYgGCAkIAUgCIVCKIkiJHx8IhiFQjCJIgZ8IgUgEiAWIAIgByAOfCIHhUIBiSICfCAKfCIWhUIgiSIIIBYgGyACIAMgCHwiFoVCKIkiA3x8IhuFQjCJIgIgGiAJIA2FQgGJIgggByAEIAggGXwgEXwiGYVCIIkiBHwiB4VCKIkiCHwgGXwiGiAQICJ8fCIZhUIgiSIifCILhUIoiSIJIBV8IBl8IhkgJYUgByAEIBqFQjCJIhp8IhUgFyAYICAgAyACIBZ8IhiFQgGJIhZ8fCIghUIgiSIXfCIEIBcgICAdIAQgFoVCKIkiHXx8IiCFQjCJIhd8IhaFNwAIIAAgGCAaIBwgISAFICSFQgGJIhx8fCIhhUIgiSIafCIYIBogIyAYIByFQiiJIhh8ICF8IhyFQjCJIhp8IiEgJiAfIAggFYVCAYkiFSAMIAYgFSAefCAbfCIbhUIgiSIVfCIehUIoiSIjfCAbfCIbhYU3AAAgACAeIBUgG4VCMIkiG3wiFSAcIAApABCFhTcAECAAIBkgIoVCMIkiGSAAKQAgIBYgHYVCAYmFhTcAICAAIAsgGXwiGSAgIAApABiFhTcAGCAAIAApACggFSAjhUIBiYUgGoU3ACggACAAKQA4IBggIYVCAYmFIBuFNwA4IAAgACkAMCAJIBmFQgGJhSAXhTcAMAu0AgICfwF+IwBB4AJrIgYkACAGIAQgBUEAEBoaAkAgACACSyAAIAJrrSADVHFFBEAgACACTw0BIAIgAGutIANaDQELIAAgAiADpxA6IQILIAZCADcDOCAGQgA3AzAgBkIANwMoIAZCADcDIEIgIAMgA0IgWhsiCFAiB0UEQCAGQUBrIAIgCKcQChoLIAZBIGoiBSAFIAhCIHwgBEEQaiIEIAYQYhogBkHgAGogBUH8lgIoAgARAAAaIAdFBEAgACAGQUBrIAinEAoaCyAGQSBqQcAAEAggA0IhWgRAIAAgCKciBWogAiAFaiADIAh9IARCASAGEDYaCyAGQSAQCCAGQeAAaiICIAAgA0GAlwIoAgARAQAaIAIgAUGElwIoAgARAAAaIAJBgAIQCCAGQeACaiQAQQALBABBAwsEAEEBCxYAIAFBIBAZIAAgAUGMlwIoAgARAAALIwAgAUKAgICAEFoEQBANAAsgACABIAIgA0GYlwIoAgARDAALEAAgACABIAIgA0EIEGRBAAvwCQEefyABKAIoIQMgASgCBCEEIAEoAiwhBSABKAIIIQYgASgCMCEHIAEoAgwhCCABKAI0IQkgASgCECEKIAEoAjghCyABKAIUIQwgASgCPCENIAEoAhghDiABQUBrIg8oAgAhECABKAIcIREgASgCRCESIAEoAiAhEyABKAJIIRQgASgCACEVIAAgASgCJCABKAJMajYCJCAAIBMgFGo2AiAgACARIBJqNgIcIAAgDiAQajYCGCAAIAwgDWo2AhQgACAKIAtqNgIQIAAgCCAJajYCDCAAIAYgB2o2AgggACAEIAVqNgIEIAAgAyAVajYCACABKAIoIQUgASgCBCEDIAEoAiwhBiABKAIIIQcgASgCMCEIIAEoAgwhCSABKAI0IQogASgCECELIAEoAjghDCABKAIUIQ0gASgCPCEOIAEoAhghECAPKAIAIQ8gASgCHCEEIAEoAkQhESABKAIgIRIgASgCSCETIAEoAgAhFCAAIAEoAkwgASgCJGs2AkwgACATIBJrNgJIIAAgESAEazYCRCAAQUBrIgQgDyAQazYCACAAIA4gDWs2AjwgACAMIAtrNgI4IAAgCiAJazYCNCAAIAggB2s2AjAgACAGIANrNgIsIABBKGoiAyAFIBRrNgIAIABB0ABqIAAgAkEoahAGIAMgAyACEAYgAEH4AGogAkH4AGogAUH4AGoQBiAAIAFB0ABqIAJB0ABqEAYgACgCBCEVIAAoAgghFiAAKAIMIRcgACgCECEYIAAoAhQhGSAAKAIYIRogACgCHCEbIAAoAiAhHCAAKAIkIR0gAygCACEBIAAoAlAhAiAAKAIsIQUgACgCVCEGIAAoAjAhByAAKAJYIQggACgCNCEJIAAoAlwhCiAAKAI4IQsgACgCYCEMIAAoAjwhDSAAKAJkIQ4gBCgCACEPIAAoAmghECAAKAJEIREgACgCbCESIAAoAkghEyAAKAJwIRQgACgCACEeIAAgACgCTCIfIAAoAnQiIGo2AkwgACATIBRqNgJIIAAgESASajYCRCAEIA8gEGo2AgAgACANIA5qNgI8IAAgCyAMajYCOCAAIAkgCmo2AjQgACAHIAhqNgIwIAAgBSAGajYCLCADIAEgAmo2AgAgACAgIB9rNgIkIAAgFCATazYCICAAIBIgEWs2AhwgACAQIA9rNgIYIAAgDiANazYCFCAAIAwgC2s2AhAgACAKIAlrNgIMIAAgCCAHazYCCCAAIAYgBWs2AgQgACACIAFrNgIAIAAgACgCnAEiASAdQQF0IgJqNgKcASAAIAAoApgBIgMgHEEBdCIEajYCmAEgACAAKAKUASIFIBtBAXQiBmo2ApQBIAAgACgCkAEiByAaQQF0IghqNgKQASAAIAAoAowBIgkgGUEBdCIKajYCjAEgACAAKAKIASILIBhBAXQiDGo2AogBIAAgACgChAEiDSAXQQF0Ig5qNgKEASAAIAAoAoABIg8gFkEBdCIQajYCgAEgACAAKAJ8IhEgFUEBdCISajYCfCAAIAAoAngiEyAeQQF0IhRqNgJ4IAAgBCADazYCcCAAIAYgBWs2AmwgACAIIAdrNgJoIAAgCiAJazYCZCAAIAwgC2s2AmAgACAOIA1rNgJcIAAgECAPazYCWCAAIBIgEWs2AlQgACAUIBNrNgJQIAAgAiABazYCdAtAAQN/IAAgASABQfgAaiICEAYgAEEoaiABQShqIgMgAUHQAGoiBBAGIABB0ABqIAQgAhAGIABB+ABqIAEgAxAGC4sBAQF/IwBBEGsiAiAANgIMIAIgATYCCEEAIQAgAkEANgIEA0AgAiACKAIEIAIoAgwgAGotAAAgAigCCCAAai0AAHNyNgIEIAIgAigCBCAAQQFyIgEgAigCDGotAAAgAigCCCABai0AAHNyNgIEIABBAmoiAEEgRw0ACyACKAIEQQFrQQh2QQFxQQFrC5UeAhF/FH4jAEGAIGsiBSQAAkAgAEUNAAJAAkACfyAAKAIkIgJBAkcEQCABLQAIIQkgACgCBCEOIAEoAgAMAQsgACgCBCEOIAEtAAghCSABKAIAIgsNASAJQQJPDQFBAAshCyAFQYAYakEAQYAIEAwaIAVBuBBqQQBByAcQDBogBSALrTcDgBAgATUCBCEVIAUgCa1C/wGDNwOQECAFIBU3A4gQIAUgADUCEDcDmBAgADUCCCEVIAUgAq03A6gQIAUgFTcDoBAgACgCFEUNAUIAIRUDQCAEQf8AcSIDRQRAIAUgFUIBfCIVNwOwECAFQQBBgAgQDCICQYAIakEAQYAIEAwaIAJBgBhqIgYgAkGAEGogAhBuIAYgAiACQYAIahBuCyAOIARBA3RqIAVBgAhqIANBA3RqKQMANwMAIARBAWoiBCAAKAIUIgNJDQALDAELIAAoAhQhA0EBIRALIAkgC3JFIhFBAXQiCCADTw0AQX8gACgCGCICQQFrIAggAiABKAIEIgxsaiADIAlsaiIKIAJwGyAKaiEEIAlBAWohEiAMrSEmA0AgCkEBayAEIAogACgCGCICcEEBRhshDCAAKAIcIQcgEAR/IAAoAgAoAgQgDEEKdGoFIA4gCEEDdGoLKQMAIRQgASAINgIMICYgFEIgiKcgB3CtIBEbIRcCfiALRQRAIAlFBEAgCEEBayEEQgAMAgsgAyAJbCEEIBcgJlEEQCAEIAhqQQFrIQRCAAwCCyAEIAhFayEEQgAMAQsgFyAmUQR/IAggA0F/c2oFQQBBfyAIGyADawsgAmohBEIAIAlBA0YNABogAyASbK0LIRUgACgCACgCBCIDIAIgF6dsQQp0aiAVIARBAWutfCAErSAUQv////8PgyIVIBV+QiCIfkIgiH0gAq2Cp0EKdGohBCADIAxBCnRqIQIgAyAKQQp0aiEHAkAgCwRAIAIgBCAHEG4MAQsgBUGAGGogBEGACBAKGkEAIQQDQCAEQQN0IgMgBUGAGGoiDWoiBiAGKQMAIAIgA2opAwCFNwMAIA0gA0EIciIGaiIPIA8pAwAgAiAGaikDAIU3AwAgDSADQRByIgZqIg8gDykDACACIAZqKQMAhTcDACANIANBGHIiA2oiBiAGKQMAIAIgA2opAwCFNwMAIARBBGoiBEGAAUcNAAsgBUGAEGogBUGAGGpBgAgQChpBACEDQQAhBANAIAVBgBhqIARBB3RqIgIgAikDOCIVIAIpAxgiF3wgF0IBhkL+////H4MgFUL/////D4N+fCIXIAIpA3iFQiCJIhQgAikDWCIYfCAUQv////8PgyAYQgGGQv7///8fg358IhggFYVCKIkiFSAXfCAVQv////8PgyAXQgGGQv7///8fg358IhcgFIVCMIkiFCACKQMoIhMgAikDCCIWfCAWQgGGQv7///8fgyATQv////8Pg358IhYgAikDaIVCIIkiGyACKQNIIhx8IBtC/////w+DIBxCAYZC/v///x+DfnwiHCAThUIoiSITIBZ8IBNC/////w+DIBZCAYZC/v///x+DfnwiFiAbhUIwiSIbIBx8IBtC/////w+DIBxCAYZC/v///x+DfnwiHCAThUIBiSITIAIpAyAiHyACKQMAIhp8IBpCAYZC/v///x+DIB9C/////w+DfnwiGiACKQNghUIgiSIgIAJBQGsiBikDACIjfCAgQv////8PgyAjQgGGQv7///8fg358IiMgH4VCKIkiHyAafCAfQv////8PgyAaQgGGQv7///8fg358Ihp8IBNC/////w+DIBpCAYZC/v///x+DfnwiGYVCIIkiJCACKQMwIiEgAikDECIdfCAdQgGGQv7///8fgyAhQv////8Pg358Ih0gAikDcIVCIIkiIiACKQNQIh58ICJC/////w+DIB5CAYZC/v///x+DfnwiHiAhhUIoiSIhIB18ICFC/////w+DIB1CAYZC/v///x+DfnwiHSAihUIwiSIiIB58ICJC/////w+DIB5CAYZC/v///x+DfnwiHnwgJEL/////D4MgHkIBhkL+////H4N+fCIlIBOFQiiJIhMgGXwgE0L/////D4MgGUIBhkL+////H4N+fCIZNwMAIAIgGSAkhUIwiSIZNwN4IAIgGSAlfCAZQv////8PgyAlQgGGQv7///8fg358Ihk3A1AgAiATIBmFQgGJNwMoIAIgHiAhhUIBiSITIBZ8IBNC/////w+DIBZCAYZC/v///x+DfnwiFiAaICCFQjCJIhqFQiCJIiAgFCAYfCAUQv////8PgyAYQgGGQv7///8fg358IhR8ICBC/////w+DIBRCAYZC/v///x+DfnwiGCAThUIoiSITIBZ8IBNC/////w+DIBZCAYZC/v///x+DfnwiGSAghUIwiSIWNwNgIAIgGTcDCCACIBYgGHwgFkL/////D4MgGEIBhkL+////H4N+fCIYIBOFQgGJNwMwIAIgGDcDWCACIBQgFYVCAYkiFSAdfCAVQv////8PgyAdQgGGQv7///8fg358IhQgG4VCIIkiGCAaICN8IBpC/////w+DICNCAYZC/v///x+DfnwiE3wgGEL/////D4MgE0IBhkL+////H4N+fCIWIBWFQiiJIhUgFHwgFUL/////D4MgFEIBhkL+////H4N+fCIUNwMQIAIgFCAYhUIwiSIUNwNoIAYgFCAWfCAUQv////8PgyAWQgGGQv7///8fg358IhY3AwAgAiAXIBMgH4VCAYkiFHwgF0IBhkL+////H4MgFEL/////D4N+fCIXICKFQiCJIhggHHwgGEL/////D4MgHEIBhkL+////H4N+fCITIBSFQiiJIhQgF3wgFEL/////D4MgF0IBhkL+////H4N+fCIbIBiFQjCJIhcgE3wgF0L/////D4MgE0IBhkL+////H4N+fCIYNwNIIAIgFzcDcCACIBs3AxggAiAVIBaFQgGJNwM4IAIgFCAYhUIBiTcDICAEQQFqIgRBCEcNAAsDQCAFQYAYaiADQQR0aiICIAIpA4gDIhUgAikDiAEiF3wgF0IBhkL+////H4MgFUL/////D4N+fCIXIAIpA4gHhUIgiSIUIAIpA4gFIhh8IBRC/////w+DIBhCAYZC/v///x+DfnwiGCAVhUIoiSIVIBd8IBVC/////w+DIBdCAYZC/v///x+DfnwiFyAUhUIwiSIUIAIpA4gCIhMgAikDCCIWfCAWQgGGQv7///8fgyATQv////8Pg358IhYgAikDiAaFQiCJIhsgAikDiAQiHHwgG0L/////D4MgHEIBhkL+////H4N+fCIcIBOFQiiJIhMgFnwgE0L/////D4MgFkIBhkL+////H4N+fCIWIBuFQjCJIhsgHHwgG0L/////D4MgHEIBhkL+////H4N+fCIcIBOFQgGJIhMgAikDgAIiHyACKQMAIhp8IBpCAYZC/v///x+DIB9C/////w+DfnwiGiACKQOABoVCIIkiICACKQOABCIjfCAgQv////8PgyAjQgGGQv7///8fg358IiMgH4VCKIkiHyAafCAfQv////8PgyAaQgGGQv7///8fg358Ihp8IBNC/////w+DIBpCAYZC/v///x+DfnwiGYVCIIkiJCACKQOAAyIhIAIpA4ABIh18IB1CAYZC/v///x+DICFC/////w+DfnwiHSACKQOAB4VCIIkiIiACKQOABSIefCAiQv////8PgyAeQgGGQv7///8fg358Ih4gIYVCKIkiISAdfCAhQv////8PgyAdQgGGQv7///8fg358Ih0gIoVCMIkiIiAefCAiQv////8PgyAeQgGGQv7///8fg358Ih58ICRC/////w+DIB5CAYZC/v///x+DfnwiJSAThUIoiSITIBl8IBNC/////w+DIBlCAYZC/v///x+DfnwiGTcDACACIBkgJIVCMIkiGTcDiAcgAiAZICV8IBlC/////w+DICVCAYZC/v///x+DfnwiGTcDgAUgAiATIBmFQgGJNwOIAiACIB4gIYVCAYkiEyAWfCATQv////8PgyAWQgGGQv7///8fg358IhYgGiAghUIwiSIahUIgiSIgIBQgGHwgFEL/////D4MgGEIBhkL+////H4N+fCIUfCAgQv////8PgyAUQgGGQv7///8fg358IhggE4VCKIkiEyAWfCATQv////8PgyAWQgGGQv7///8fg358IhkgIIVCMIkiFjcDgAYgAiAZNwMIIAIgFiAYfCAWQv////8PgyAYQgGGQv7///8fg358Ihg3A4gFIAIgEyAYhUIBiTcDgAMgAiAUIBWFQgGJIhUgHXwgFUL/////D4MgHUIBhkL+////H4N+fCIUIBuFQiCJIhggGiAjfCAaQv////8PgyAjQgGGQv7///8fg358IhN8IBhC/////w+DIBNCAYZC/v///x+DfnwiFiAVhUIoiSIVIBR8IBVC/////w+DIBRCAYZC/v///x+DfnwiGyAYhUIwiSIUNwOIBiACIBs3A4ABIAIgFCAWfCAUQv////8PgyAWQgGGQv7///8fg358IhQ3A4AEIAIgFCAVhUIBiTcDiAMgAiAXIBMgH4VCAYkiFXwgF0IBhkL+////H4MgFUL/////D4N+fCIXICKFQiCJIhQgHHwgFEL/////D4MgHEIBhkL+////H4N+fCIYIBWFQiiJIhUgF3wgFUL/////D4MgF0IBhkL+////H4N+fCITIBSFQjCJIhc3A4AHIAIgEzcDiAEgAiAXIBh8IBdC/////w+DIBhCAYZC/v///x+DfnwiFzcDiAQgAiAVIBeFQgGJNwOAAiADQQFqIgNBCEcNAAsgByAFQYAQakGACBAKIQJBACEEA0AgAiAEQQN0IgNqIgcgBykDACAFQYAYaiINIANqKQMAhTcDACACIANBCHIiB2oiBiAGKQMAIAcgDWopAwCFNwMAIAIgA0EQciIHaiIGIAYpAwAgBUGAGGogB2opAwCFNwMAIAIgA0EYciIDaiIHIAcpAwAgBUGAGGogA2opAwCFNwMAIARBBGoiBEGAAUcNAAsLIAxBAWohBCAKQQFqIQogCEEBaiIIIAAoAhQiA0kNAAsLIAVBgCBqJAALygUCBX8CfkF/IQYCQCABQcEAa0FASQ0AIAVBwABLDQACfyABQf8BcSEGIAVB/wFxIQUjACIBIQkgAUGABGtBQHEiASQAAkAgAkUgA0IAUnENACAARQ0AIAZBwQBrQf8BcUG/AU0NACAEQQEgBRtFDQAgBUHBAE8NAAJ/IAUEQCAERQ0CIAFBQGtBAEGlAhAMGiABQvnC+JuRo7Pw2wA3AzggAULr+obav7X2wR83AzAgAUKf2PnZwpHagpt/NwMoIAFC0YWa7/rPlIfRADcDICABQvHt9Pilp/2npX83AxggAUKr8NP0r+68tzw3AxAgAUK7zqqm2NDrs7t/NwMIIAEgBq0gBa1CCIaEQoiS95X/zPmE6gCFNwMAIAFBgANqIgcgBWpBAEGAASAFaxAMGiAHIAQgBRAKGiABQeAAaiAHQYABEAoaIAFBgAE2AuACIAdBgAEQCEGAAQwBCyABQUBrQQBBpQIQDBogAUL5wvibkaOz8NsANwM4IAFC6/qG2r+19sEfNwMwIAFCn9j52cKR2oKbfzcDKCABQtGFmu/6z5SH0QA3AyAgAULx7fT4paf9p6V/NwMYIAFCq/DT9K/uvLc8NwMQIAFCu86qptjQ67O7fzcDCCABIAatQoiS95X/zPmE6gCFNwMAQQALIQQCQCADUA0AIAFB4AFqIQogAUHgAGohBQNAIAQgBWohCEGAAiAEayIHrSILIANaBEAgCCACIAOnIgIQChogASABKALgAiACajYC4AIMAgsgCCACIAcQChogASABKALgAiAHajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRBJIAUgCkGAARAKGiABIAEoAuACQYABayIENgLgAiACIAdqIQIgAyALfSIDQgBSDQALCyABIAAgBhBzGiAJJABBAAwBCxANAAshBgsgBgvGAgICfwF+IwBB4ABrIgYkACAGIAQgBUEAECoaIAZBIGoiB0IgIARBEGoiBSAGQZCXAigCABEMABpBfyEEAkACQCACIAEgAyAHQfiWAigCABENAA0AQQAhBCAARQ0BAkAgACABSSABIABrrSADVHFFBEAgACABTQ0BIAAgAWutIANaDQELIAAgASADpxA6IQELAkBCICADIANCIFobIghQBEAgBkEgaiICIAIgCEIgfCAFQgAgBkGUlwIoAgARCwAaDAELIAZBQGsgASAIpyICEAohBCAGQSBqIgcgByAIQiB8IAVCACAGQZSXAigCABELABogACAEIAIQChoLIAZBIGpBwAAQCEEAIQQgA0IhVA0AIAAgCKciAmogASACaiADIAh9IAVCASAGQZSXAigCABELABoLIAZBIBAICyAGQeAAaiQAIAQLhQEBBX8CQCABLQAAEDEiAkUNACABLQABEDEiA0UNACABLQACEDEiBEUNACABLQADEDEiBUUNACABLQAEEDEiBkUNACAAIAJBgAhrIANBgAhrQQZ0ciAEQYAIa0EMdHIgBUGACGtBEnRyIAZBgAhrQRh0cjYCACABQQVqDwsgAEEANgIAQQAL1gYBBH8gAiADQQd0IABqQUBqIgQpAgA3AgAgAiAEKQI4NwI4IAIgBCkCMDcCMCACIAQpAig3AiggAiAEKQIgNwIgIAIgBCkCGDcCGCACIAQpAhA3AhAgAiAEKQIINwIIIANBAXQiBQRAIANBBHQhBkEAIQMDQCACIAIoAgAgACADQQZ0IgdqIgQoAgBzNgIAIAIgAigCBCAEKAIEczYCBCACIAIoAgggBCgCCHM2AgggAiACKAIMIAQoAgxzNgIMIAIgAigCECAEKAIQczYCECACIAIoAhQgBCgCFHM2AhQgAiACKAIYIAQoAhhzNgIYIAIgAigCHCAEKAIcczYCHCACIAIoAiAgBCgCIHM2AiAgAiACKAIkIAQoAiRzNgIkIAIgAigCKCAEKAIoczYCKCACIAIoAiwgBCgCLHM2AiwgAiACKAIwIAQoAjBzNgIwIAIgAigCNCAEKAI0czYCNCACIAIoAjggBCgCOHM2AjggAiACKAI8IAQoAjxzNgI8IAIQvwEgASADQQV0aiIEIAIpAjg3AjggBCACKQIwNwIwIAQgAikCKDcCKCAEIAIpAiA3AiAgBCACKQIYNwIYIAQgAikCEDcCECAEIAIpAgg3AgggBCACKQIANwIAIAIgAigCACAAIAdBwAByaiIEKAIAczYCACACIAIoAgQgBCgCBHM2AgQgAiACKAIIIAQoAghzNgIIIAIgAigCDCAEKAIMczYCDCACIAIoAhAgBCgCEHM2AhAgAiACKAIUIAQoAhRzNgIUIAIgAigCGCAEKAIYczYCGCACIAIoAhwgBCgCHHM2AhwgAiACKAIgIAQoAiBzNgIgIAIgAigCJCAEKAIkczYCJCACIAIoAiggBCgCKHM2AiggAiACKAIsIAQoAixzNgIsIAIgAigCMCAEKAIwczYCMCACIAIoAjQgBCgCNHM2AjQgAiACKAI4IAQoAjhzNgI4IAIgAigCPCAEKAI8czYCPCACEL8BIAEgA0EDdCAGakECdGoiBCACKQI4NwI4IAQgAikCMDcCMCAEIAIpAig3AiggBCACKQIgNwIgIAQgAikCGDcCGCAEIAIpAhA3AhAgBCACKQIINwIIIAQgAikCADcCACADQQJqIgMgBUkNAAsLC7sGAQl/IwBB4ABrIgMkACACQcEATwRAIAAQWxogACABIAKtEB8aIAAgAxApGkEgIQIgAyEBCyAAEFsaIANCtuzYsePGjZs2NwNYIANCtuzYsePGjZs2NwNQIANCtuzYsePGjZs2NwNIIANBQGsiCkK27Nix48aNmzY3AwAgA0K27Nix48aNmzY3AzggA0K27Nix48aNmzY3AzAgA0K27Nix48aNmzY3AyggA0K27Nix48aNmzY3AyACQCACRQ0AIAJBBE8EQCACQfwAcSEGA0AgA0EgaiILIARqIgUgBS0AACABIARqLQAAczoAACALIARBAXIiBWoiCCAILQAAIAEgBWotAABzOgAAIAsgBEECciIFaiIIIAgtAAAgASAFai0AAHM6AAAgCyAEQQNyIgVqIgggCC0AACABIAVqLQAAczoAACAEQQRqIQQgB0EEaiIHIAZHDQALCyACQQNxIgdFDQADQCADQSBqIARqIgYgBi0AACABIARqLQAAczoAACAEQQFqIQQgCUEBaiIJIAdHDQALCyAAIANBIGpCwAAQHxogAEHoAGoiABBbGiADQty48eLFi5eu3AA3A1ggA0LcuPHixYuXrtwANwNQIANC3Ljx4sWLl67c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Ih4hDiABKAAEIh8hDyABKAAAIiAhASAVIQcgAigADCIhIQsgAigACCIiIQggAigABCIjIRAgAigAACIkIQIgEiEJIARBAEoEQANAIAIgB2pBB3cgCnMiFiAHakEJdyANcyImIAMgCWpBB3cgC3MiFyAJakEJdyAOcyInIBdqQQ13IANzIiggCCAFIAxqQQd3cyIYIAVqQQl3IA9zIgsgGGpBDXcgDHMiCCALakESdyAFcyIFIAEgBmpBB3cgFHMiCmpBB3dzIgMgBWpBCXdzIg0gA2pBDXcgCnMiFCANakESdyAFcyEFIAggCiAGIApqQQl3IBBzIghqQQ13IAFzIgEgCGpBEncgBnMiBiAWakEHd3MiDCAGakEJdyAncyIOIAxqQQ13IBZzIgogDmpBEncgBnMhBiAmIBYgJmpBDXcgAnMiAmpBEncgB3MiByAXakEHdyABcyIBIAdqQQl3IAtzIg8gAWpBDXcgF3MiCyAPakESdyAHcyEHICcgKGpBEncgCXMiCSAYakEHdyACcyICIAlqQQl3IAhzIhAgAmpBDXcgGHMiCCAQakESdyAJcyEJICVBAmoiJSAESA0ACwsgACAFIBFqNgA8IAAgFCAbajYAOCAAIA0gGmo2ADQgACADIBlqNgAwIAAgDCAcajYALCAAIAYgE2o2ACggACAKIB1qNgAkIAAgDiAeajYAICAAIA8gH2o2ABwgACABICBqNgAYIAAgByAVajYAFCAAIAsgIWo2ABAgACAIICJqNgAMIAAgECAjajYACCAAIAIgJGo2AAQgACAJIBJqNgAAC7YJARV/IwBBwAJrIgMkACADQfABaiIEIAIQBSAEIAQgAhAGIAAgBBAFIAAgACACEAYgACAAIAEQBiAAIAAQaSAAIAAgBBAGIAAgACABEAYgA0HAAWoiBCAAEAUgBCAEIAIQBiABKAIEIQUgASgCCCENIAEoAgwhDiABKAIQIQ8gASgCFCEQIAEoAhghESABKAIcIRIgASgCICETIAEoAgAhFCADKALAASECIAMoAsQBIQQgAygCyAEhBiADKALMASEHIAMoAtABIQggAygC1AEhCSADKALYASEKIAMoAtwBIQsgAygC4AEhDCADIAMoAuQBIhUgASgCJCIWazYCtAEgAyAMIBNrNgKwASADIAsgEms2AqwBIAMgCiARazYCqAEg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DiACIAggABARIAYgAiADEAYgByAEIAUQBiAJIAUgAxAGIAogAiAEEAYgAUHgDWogBhAOIAFCADcDICABQgA3AxggAUIANwMQIAFCADcDCCABQgA3AiwgAUIANwI0IAFCADcCPCABQgA3AkQgAUKAgICAEDcCTCABQgA3AwAgAUEBNgIoIAFB1ABqQQBBzAAQDBogAUH4AGohCCABQdAAaiEMIAFBKGohDUH8ASEAA0AgASABKQMgNwOoDyABIAEpAxg3A6APIAEgASkDEDcDmA8gASABKQMINwOQDyABIAEpAwA3A4gPIAEgASkDSDcD0A8gASABKQNANwPIDyABIAEpAzg3A8APIAEgASkDMDcDuA8gASABKQMoNwOwDyABIAEpA1A3A9gPIAEgASkDWDcD4A8gASABKQNgNwPoDyABIAEpA2g3A/APIAEgASkDcDcD+A8gACICQcCHAmosAAAhACABQeADaiABQYgPahAXAkAgAEEASgRAIAFBwAJqIgsgAUHgA2oiBiADEAYgByAEIAUQBiAJIAUgAxAGIAogBiAEEAYgBiALIAFBgAVqIABB/gFxQQF2QaABbGoQEQwBCyAAQQBODQAgAUHAAmoiCyABQeADaiIGIAMQBiAHIAQgBRAGIAkgBSADEAYgCiAGIAQQBiAGIAsgAUGABWpBACAAa0H+AXFBAXZBoAFsahBQCyABIAFB4ANqIgAgAxAGIA0gBCAFEAYgDCAFIAMQBiAIIAAgBBAGIAJBAWshACACDQALIAFBgAVqIgAgARAPIABBIBAYIQAgAUGAEGokACAAC+AJAR5/IAEoAighAyABKAIEIQQgASgCLCEFIAEoAgghBiABKAIwIQcgASgCDCEIIAEoAjQhCSABKAIQIQogASgCOCELIAEoAhQhDCABKAI8IQ0gASgCGCEOIAFBQGsiDygCACEQIAEoAhwhESABKAJEIRIgASgCICETIAEoAkghFCABKAIAIRUgACABKAIkIAEoAkxqNgIkIAAgEyAUajYCICAAIBEgEmo2AhwgACAOIBBqNgIYIAAgDCANajYCFCAAIAogC2o2AhAgACAIIAlqNgIMIAAgBiAHajYCCCAAIAQgBWo2AgQgACADIBVqNgIAIAEoAighBSABKAIEIQMgASgCLCEGIAEoAgghByABKAIwIQggASgCDCEJIAEoAjQhCiABKAIQIQsgASgCOCEMIAEoAhQhDSABKAI8IQ4gASgCGCEQIA8oAgAhDyABKAIcIQQgASgCRCERIAEoAiAhEiABKAJIIRMgASgCACEUIAAgASgCTCABKAIkazYCTCAAIBMgEms2AkggACARIARrNgJEIABBQGsiBCAPIBBrNgIAIAAgDiANazYCPCAAIAwgC2s2AjggACAKIAlrNgI0IAAgCCAHazYCMCAAIAYgA2s2AiwgAEEoaiIDIAUgFGs2AgAgAEHQAGogACACEAYgAyADIAJBKGoQBiAAQfgAaiACQdAAaiABQfgAahAGIAEoAlAhFSABKAJUIRYgASgCWCEXIAEoAlwhGCABKAJgIRkgASgCZCEaIAEoAmghGyABKAJsIRwgASgCcCEdIAEoAnQhHiADKAIAIQEgACgCUCECIAAoAiwhBSAAKAJUIQYgACgCMCEHIAAoAlghCCAAKAI0IQkgACgCXCEKIAAoAjghCyAAKAJgIQwgACgCPCENIAAoAmQhDiAEKAIAIQ8gACgCaCEQIAAoAkQhESAAKAJsIRIgACgCSCETIAAoAnAhFCAAIAAoAkwiHyAAKAJ0IiBqNgJMIAAgEyAUajYCSCAAIBEgEmo2AkQgBCAPIBBqNgIAIAAgDSAOajYCPCAAIAsgDGo2AjggACAJIApqNgI0IAAgByAIajYCMCAAIAUgBmo2AiwgAyABIAJqNgIAIAAgICAfazYCJCAAIBQgE2s2AiAgACASIBFrNgIcIAAgECAPazYCGCAAIA4gDWs2AhQgACAMIAtrNgIQIAAgCiAJazYCDCAAIAggB2s2AgggACAGIAVrNgIEIAAgAiABazYCACAAIB5BAXQiASAAKAKcASICazYCnAEgACAdQQF0IgMgACgCmAEiBGs2ApgBIAAgHEEBdCIFIAAoApQBIgZrNgKUASAAIBtBAXQiByAAKAKQASIIazYCkAEgACAaQQF0IgkgACgCjAEiCms2AowBIAAgGUEBdCILIAAoAogBIgxrNgKIASAAIBhBAXQiDSAAKAKEASIOazYChAEgACAXQQF0Ig8gACgCgAEiEGs2AoABIAAgFkEBdCIRIAAoAnwiEms2AnwgACAVQQF0IhMgACgCeCIUazYCeCAAIAMgBGo2AnAgACAFIAZqNgJsIAAgByAIajYCaCAAIAkgCmo2AmQgACALIAxqNgJgIAAgDSAOajYCXCAAIA8gEGo2AlggACARIBJqNgJUIAAgEyAUajYCUCAAIAEgAmo2AnQLrggBA38jAEGQAWsiAyQAIANB4ABqIgQgARAFIANBMGoiAiAEEAUgAiACEAUgAiABIAIQBiAEIAQgAhAGIAQgBBAFIAQgAiAEEAYgAiAEEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgBCACIAQQBiACIAQQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIgBBAGIAMgAhAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAIgAyACEAYgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgBCACIAQQBiACIAQQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIgBBAGIAMgAhAFQQEhAgNAIAMgAxAFIAJBAWoiAkHkAEcNAAsgA0EwaiICIAMgAhAGIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAF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AYkiAyABKQMgIg8gASkDACIKfCAKQgGGQv7///8fgyAPQv////8Pg358IgogASkDYIVCIIkiECABQUBrIhYpAwAiE3wgE0IBhkL+////H4MgEEL/////D4N+fCITIA+FQiiJIg8gCnwgD0L/////D4MgCkIBhkL+////H4N+fCIKfCADQv////8PgyAKQgGGQv7///8fg358IgmFQiCJIhQgASkDMCIRIAEpAxAiDXwgDUIBhkL+////H4MgEUL/////D4N+fCINIAEpA3CFQiCJIhIgASkDUCIOfCAOQgGGQv7///8fgyASQv////8Pg358Ig4gEYVCKIkiESANfCARQv////8PgyANQgGGQv7///8fg358Ig0gEoVCMIkiEiAOfCASQv////8PgyAOQgGGQv7///8fg358Ig58IBRC/////w+DIA5CAYZC/v///x+DfnwiFSADhUIoiSIDIAl8IANC/////w+DIAlCAYZC/v///x+DfnwiCTcDACABIAkgFIVCMIkiCTcDeCABIAkgFXwgCUL/////D4MgFUIBhkL+////H4N+fCIJNwNQIAEgAyAJhUIBiTcDKCABIAQgBXwgBEL/////D4MgBUIBhkL+////H4N+fCIEIA4gEYVCAYkiBSAIfCAFQv////8PgyAIQgGGQv7///8fg358IgMgCiAQhUIwiSIIhUIgiSIKfCAEQgGGQv7///8fgyAKQv////8Pg358IhAgBYVCKIkiBSADfCAFQv////8PgyADQgGGQv7///8fg358IgkgCoVCMIkiAzcDYCABIAk3AwggASAFIAMgEHwgA0L/////D4MgEEIBhkL+////H4N+fCIFhUIBiTcDMCABIAU3A1ggASAEIAaFQgGJIgYgDXwgBkL/////D4MgDUIBhkL+////H4N+fCIEIAuFQiCJIgUgCCATfCAIQv////8PgyATQgGGQv7///8fg358IgN8IAVC/////w+DIANCAYZC/v///x+DfnwiCCAGhUIoiSIGIAR8IAZC/////w+DIARCAYZC/v///x+DfnwiBDcDECABIAQgBYVCMIkiBDcDaCAWIAQgCHwgBEL/////D4MgCEIBhkL+////H4N+fCIINwMAIAEgByADIA+FQgGJIgR8IAdCAYZC/v///x+DIARC/////w+DfnwiByAShUIgiSIFIAx8IAVC/////w+DIAxCAYZC/v///x+DfnwiAyAEhUIoiSIEIAd8IARC/////w+DIAdCAYZC/v///x+DfnwiCyAFhUIwiSIHIAN8IAdC/////w+DIANCAYZC/v///x+DfnwiBTcDSCABIAc3A3AgASALNwMYIAEgBiAIhUIBiTcDOCABIAQgBYVCAYk3AyAgAEEBaiIAQQhHDQALQQAhAANAIBhBgAhqIABBBHRqIgEgASkDiAMiBiABKQOIASIHfCAHQgGGQv7///8fgyAGQv////8Pg358IgcgASkDiAeFQiCJIgQgASkDiAUiBXwgBUIBhkL+////H4MgBEL/////D4N+fCIFIAaFQiiJIgYgB3wgBkL/////D4MgB0IBhkL+////H4N+fCIHIASFQjCJIgQgASkDiAIiAyABKQMIIgh8IAhCAYZC/v///x+DIANC/////w+DfnwiCCABKQOIBoVCIIkiCyABKQOIBCIMfCAMQgGGQv7///8fgyALQv////8Pg358IgwgA4VCKIkiAyAIfCADQv////8PgyAIQgGGQv7///8fg358IgggC4VCMIkiCyAMfCALQv////8PgyAMQgGGQv7///8fg358IgwgA4VCAYkiAyABKQOAAiIPIAEpAwAiCnwgCkIBhkL+////H4MgD0L/////D4N+fCIKIAEpA4AGhUIgiSIQIAEpA4AEIhN8IBNCAYZC/v///x+DIBBC/////w+DfnwiEyAPhUIoiSIPIAp8IA9C/////w+DIApCAYZC/v///x+DfnwiCnwgA0L/////D4MgCkIBhkL+////H4N+fCIJhUIgiSIUIAEpA4ADIhEgASkDgAEiDXwgDUIBhkL+////H4MgEUL/////D4N+fCINIAEpA4AHhUIgiSISIAEpA4AFIg58IA5CAYZC/v///x+DIBJC/////w+DfnwiDiARhUIoiSIRIA18IBFC/////w+DIA1CAYZC/v///x+DfnwiDSAShUIwiSISIA58IBJC/////w+DIA5CAYZC/v///x+DfnwiDnwgFEL/////D4MgDkIBhkL+////H4N+fCIVIAOFQiiJIgMgCXwgA0L/////D4MgCUIBhkL+////H4N+fCIJNwMAIAEgCSAUhUIwiSIJNwOIByABIAkgFXwgCUL/////D4MgFUIBhkL+////H4N+fCIJNwOABSABIAMgCYVCAYk3A4gCIAEgBCAFfCAEQv////8PgyAFQgGGQv7///8fg358IgQgDiARhUIBiSIFIAh8IAVC/////w+DIAhCAYZC/v///x+DfnwiAyAKIBCFQjCJIgiFQiCJIgp8IARCAYZC/v///x+DIApC/////w+DfnwiECAFhUIoiSIFIAN8IAVC/////w+DIANCAYZC/v///x+DfnwiCSAKhUIwiSIDNwOABiABIAk3AwggASADIBB8IANC/////w+DIBBCAYZC/v///x+DfnwiAzcDiAUgASADIAWFQgGJNwOAAyABIAQgBoVCAYkiBiANfCAGQv////8PgyANQgGGQv7///8fg358IgQgC4VCIIkiBSAIIBN8IAhC/////w+DIBNCAYZC/v///x+DfnwiA3wgBUL/////D4MgA0IBhkL+////H4N+fCIIIAaFQiiJIgYgBHwgBkL/////D4MgBEIBhkL+////H4N+fCILIAWFQjCJIgQ3A4gGIAEgCzcDgAEgASAEIAh8IARC/////w+DIAhCAYZC/v///x+DfnwiBDcDgAQgASAEIAaFQgGJNwOIAyABIAcgAyAPhUIBiSIGfCAHQgGGQv7///8fgyAGQv////8Pg358IgcgEoVCIIkiBCAMfCAEQv////8PgyAMQgGGQv7///8fg358IgUgBoVCKIkiBiAHfCAGQv////8PgyAHQgGGQv7///8fg358IgMgBIVCMIkiBzcDgAcgASADNwOIASABIAUgB3wgB0L/////D4MgBUIBhkL+////H4N+fCIHNwOIBCABIAYgB4VCAYk3A4ACIABBAWoiAEEIRw0ACyACIBhBgAgQCiEBQQAhAANAIAEgAEEDdCICaiIWIBYpAwAgGEGACGoiGSACaikDAIU3AwAgASACQQhyIhZqIhcgFykDACAWIBlqKQMAhTcDACABIAJBEHIiFmoiFyAXKQMAIBhBgAhqIBZqKQMAhTcDACABIAJBGHIiAmoiFiAWKQMAIBhBgAhqIAJqKQMAhTcDACAAQQRqIgBBgAFHDQALIBhBgBBqJAALygQBAn8jACIEIQUgBEHABGtBQHEiBCQAIAQgATYCvAECQCABQcAATQRAIARBwAFqQQBBACABEEZBAEgNASAEQcABaiAEQbwBakIEEBZBAEgNASAEQcAB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gAJUDQAaQRYgAEKAgIAEVA0AGkEXIABCgICACFQNABpBGCAAQoCAgBBUDQAaQRkgAEKAgIAgVA0AGkEaIABCgICAwABUDQAaQRsgAEKAgICAAVQNABpBHCAAQoCAgIACVA0AGkEdIABCgICAgARUDQAaQR4gAEKAgICACFQNABpBHyAAQoCAgIAQVA0AGkEgIABCgICAgCBUDQAaQSEgAEKAgICAwABUDQAaQSIgAEKAgICAgAFUDQAaQSMgAEKAgICAgAJUDQAaQSQgAEKAgICAgARUDQAaQSUgAEKAgICAgAhUDQAaQSYgAEKAgICAgBBUDQAaQScgAEKAgICAgCBUDQAaQSggAEKAgICAgMAAVA0AGkEpIABCgICAgICAAVQNABpBKiAAQoCAgICAgAJUDQAaQSsgAEKAgICAgIAEVA0AGkEsIABCgICAgICACFQNABpBLSAAQoCAgICAgBBUDQAaQS4gAEKAgICAgIAgVA0AGkEvIABCgICAgICAwABUDQAaQTAgAEKAgICAgICAAVQNABpBMSAAQoCAgICAgIACVA0AGkEyIABCgICAgICAgARUDQAaQTMgAEKAgICAgICACFQNABpBNCAAQoCAgICAgIAQVA0AGkE1IABCgICAgICAgCBUDQAaQTYgAEKAgICAgICAwABUDQAaQTcgAEKAgICAgICAgAFUDQAaQTggAEKAgICAgICAgAJUDQAaQTkgAEKAgICAgICAgARUDQAaQTogAEKAgICAgICAgAhUDQAaQTsgAEKAgICAgICAgBBUDQAaQTwgAEKAgICAgICAgCBUDQAaQT0gAEKAgICAgICAgMAAVA0AGkE+QT8gAEIAWRsLNgIAC2oBBX8DQCAAIANqIgIgAi0AACABIANqLQAAayAEaiICOgAAIAAgA0EBciIEaiIGIAYtAAAgASAEai0AAGsgAkEXdEEfdWoiAjoAACACQRd0QR91IQQgA0ECaiEDIAVBAmoiBUHAAEcNAAsLDQAgACABIAIQHxpBAAsNACAAIAEgAhATGkEAC60iAjh+BX8jAEGwBGsiPyQAID9B4AJqEC0aIAUEQCA/QeACakGwkwJCIhATGgsgP0GgAmogBEIgED0aID9B4AJqIkEgP0HAAmpCIBATGiBBIAIgAxATGiBBID9B4AFqIj4QHBogBCkAICEIIAQpACgh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BkcNAAsgC0EBaiILIANHDQALIAYgCEUNARogDEEMIARrdEE/cSICQeb/A2pBCHYiAyACQcEAanEhCiACQfwBaiACQcL/A2pBCHZxIAJBzP8DakEIdiIEQX9zcSEFIAJBxwBqIANBf3NxIARxIQggAkHB/wBqIQMgAkHB/wBzQQFqQX9zQQh2QStxIQRBLwshAiAAIAZqIAIgA0F/c0EIdnEgCnIgBXIgBHIgCHI6AAAgBkEBagshBQJAAkAgBSAJTQRAIAUgCUkNASAFIQkMAgtB0AhBsQlB5gFB4QsQAQALIAAgBWpBPSAJIAVrEAwaCyAAIAlqQQAgASAJQQFqIgIgASACSxsgCWsQDBogAAteAQF/IwBBQGoiAyQAIAMgAkIgED0aIAEgAykDGDcAGCABIAMpAxA3ABAgASADKQMINwAIIAEgAykDADcAACADQcAAEAggACABQYyXAigCABEAACEAIANBQGskACAAC3sBAn8jAEEgayIFJABBfyEGAkAgAkIgVA0AIAVCICADIAQQ4QEaIAFBEGogAUEgaiACQiB9IAVB+JYCKAIAEQ0ADQAgACABIAIgAyAEEIUBGiAAQgA3ABggAEIANwAQIABCADcACCAAQgA3AABBACEGCyAFQSBqJAAgBgtHACACQiBaBH8gACABIAIgAyAEEIUBGiAAQRBqIABBIGogAkIgfSAAQfSWAigCABENABogAEIANwAIIABCADcAAEEABUF/CwtCAQF/IwBBIGsiBSQAIAUgAyAEQQAQKhogACABIAIgA0EQakIAIAVBlJcCKAIAEQsAIQAgBUEgEAggBUEgaiQAIAALEAAgACABQYyXAigCABEAAAvSDwEkfyMAQfAEayICJAAgAkHgA2oiAyABEAUgA0HwDCADEAYgAiACKAKEBCIHNgKUAiACIAIoAoAEIgg2ApACIAIgAigC/AMiCTYCjAIgAiACKAL4AyIKNgKIAiACIAIoAvQDIgs2AoQCIAIgAigC8AMiDDYCgAIgAiACKALsAyINNgL8ASACIAIoAugDIg42AvgBIAIgAigC5AMiBTYC9AEgAiACKALgAyIGQQFqNgLwASACQfABaiIEIARBwIkCEAYgAiAHQczk3wVrNgLUAyACIAhBgJL1CGs2AtADIAIgCUHnnMYBazYCzAMgAiAKQcSG/wJrNgLIAyACIAtB6K6YBGs2AsQDIAIgDEGpgAdqNgLAAyACIA1Bj5SoA2o2ArwDIAIgDkHDoqoHazYCuAMgAiAFQYXlzQZqNgK0AyACIAZByo6aBWs2ArADIAJBwAFqIhkgA0HADBAGIAJBACACKALkAWs2AuQBIAJBACACKALgAWs2AuABIAJBACACKALcAWs2AtwBIAJBACACKALYAWs2AtgBIAJBACACKALUAWs2AtQBIAJBACACKALQAWs2AtABIAJBACACKALMAWs2AswBIAJBACACKALIAWs2AsgBIAJBACACKALEAWs2AsQBIAIgAigCwAFBf3M2AsABIBkgGSACQbADahAGIAJBgANqIiIgBCAZEGUhAyACQdACaiIEICIgARAGIAJBwARqIiQgBBAPIAItAMAEISUgAigCpAMhGiACKAL0AiEEIAIoAqADIRsgAigC8AIhECACKAKcAyEcIAIoAuwCIREgAigCmAMhHSACKALoAiESIAIoApQDIR4gAigC5AIhEyACKAKQAyEfIAIoAuACIRQgAigCjAMhICACKALcAiEVIAIoAogDISEgAigC2AIhFiACKAKEAyEPIAIoAtQCIRcgAigCgAMhIyACKALQAiEYIAIgByADQQFrIgFxNgLkBCACIAEgCHE2AuAEIAIgASAJcTYC3AQgAiABIApxNgLYBCACIAEgC3E2AtQEIAIgASAMcTYC0AQgAiABIA1xNgLMBCACIAEgDnE2AsgEIAIgASAFcTYCxAQgAiAGQQAgA2tyNgLABCACICMgI0EAIBhBACAlQQFxayIDIBhBACAYa3Nxc2tzIAFxcyIYNgKAAyACIA8gD0EAIBcgF0EAIBdrcyADcXNrcyABcXMiFzYChAMgAiAhICFBACAWIBZBACAWa3MgA3Fza3MgAXFzIhY2AogDIAIgICAgQQAgFSAVQQAgFWtzIANxc2tzIAFxcyIVNgKMAyACIB8gH0EAIBQgFEEAIBRrcyADcXNrcyABcXMiFDYCkAMgAiAeIB5BACATIBNBACATa3MgA3Fza3MgAXFzIhM2ApQDIAIgHSAdQQAgEiASQQAgEmtzIANxc2tzIAFxcyISNgKYAyACIBwgHEEAIBEgEUEAIBFrcyADcXNrcyABcXMiETYCnAMgAiAbIBtBACAQIBBBACAQa3MgA3Fza3MgAXFzIhA2AqAD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IAQgBCkD0AU3A/AEIAQgBCkDyAU3A+gEIAQgBCkDwAU3A+AEIAQgBCkDuAU3A9gEIAQgBCkDsAU3A9AEIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAyAEQdAEaiIFEAYgBCAEKQPQBTcD8AQgBCAEKQPIBTcD6AQgBCAEKQPABTcD4AQgBCAEKQO4BTcD2AQgBCAEKQOwBTcD0AQgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADEAUgAyADIAUQBiAEIAQpA9AFNwPwBCAEIAQpA8gFNwPoBCAEIAQpA8AFNwPgBCAEIAQpA7gFNwPYBCAEIAQpA7AFNwPQBANAIARBsAVqIgMgAxAFIAFBAWoiAUH4AEcNAAsgBEGwBWoiASABIARB0ARqEAYgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIARBgAVqEAYgASABEAUgASABEAUgASABEAUgASABIAQQBiABIAEQBSAEQbAEaiAB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AmghFSADQdAeaiINIAIpAnA3AwAgA0HIHmoiDiAVNwMAIANBwB5qIg8gFDcDACADQbgeaiIQIBM3AwAgAyASNwOwHiADQcgbaiIIIANB4B1qIhEQFyADQegSaiILIAggA0HAHGoiBBAGIANBkBNqIANB8BtqIgUgA0GYHGoiChAGIANBuBNqIAogBBAGIANB4BNqIAggBRAGIANBwAJqIgQgCxAOIANBqBpqIgggAiAEEBEgA0HIEWoiCyAIIANBoBtqIgQQBiADQfARaiADQdAaaiIFIANB+BpqIgoQBiADQZgSaiAKIAQQBiADQcASaiAIIAUQBiADQeADaiALEA4gBiADQbATaikDADcDACAHIANBqBNqKQMANwMAIAkgA0GgE2opAwA3AwAgDCADQZgTaikDADcDACADIAMpA4gTNwOAHiADIAMpA4ATNwP4HSADIAMpA/gSNwPwHSADIAMpA/ASNwPoHSADIAMpA+gSNwPgHSADIAMpA5ATNwOIHiAQIANBwBNqKQMANwMAIA8gA0HIE2opAwA3AwAgDiADQdATaikDADcDACANIANB2BNqKQMANwMAIAMgAykDuBM3A7AeIANBiBlqIgggERAXIANBqBBqIgsgCCADQYAaaiIEEAYgA0HQEGogA0GwGWoiBSADQdgZaiIKEAYgA0H4EGogCiAEEAYgA0GgEWogCCAFEAYgA0GABWoiBCALEA4gA0HoF2oiCCACIAQQESADQYgPaiILIAggA0HgGGoiBBAGIANBsA9qIANBkBhqIgUgA0G4GGoiChAGIANB2A9qIAogBBAGIANBgBBqIAggBRAGIANBoAZqIAsQDiAGIANBkBJqKQMANwMAIAcgA0GIEmopAwA3AwAgCSADQYASaikDADcDACAMIANB+BFqKQMANwMAIAMgAykD6BE3A4AeIAMgAykD4BE3A/gdIAMgAykD2BE3A/AdIAMgAykD0BE3A+gdIAMgAykDyBE3A+AdIAMgAykD8BE3A4geIBAgA0GgEmopAwA3AwAgDyADQagSaikDADcDACAOIANBsBJqKQMANwMAIA0gA0G4EmopAwA3AwAgAyADKQOYEjcDsB4gA0HIFmoiCCAREBcgA0HoDWoiCyAIIANBwBdqIgQQBiADQZAOaiADQfAWaiIFIANBmBdqIgoQBiADQbgOaiAKIAQQBiADQeAOaiAIIAUQBiADQcAHaiIEIAsQDiADQagVaiIKIAIgBBARIANByAxqIgggCiADQaAWaiICEAYgA0HwDGogA0HQFWoiBCADQfgVaiIFEAYgA0GYDWogBSACEAYgA0HADWogCiAEEAYgA0HgCGogCBAOIAYgA0HwEGopAwA3AwAgByADQegQaikDADcDACAJIANB4BBqKQMANwMAIAwgA0HYEGopAwA3AwAgAyADKQPIEDcDgB4gAyADKQPAEDcD+B0gAyADKQO4EDcD8B0gAyADKQOwEDcD6B0gAyADKQOoEDcD4B0gAyADKQPQEDcDiB4gECADQYARaikDADcDACAPIANBiBFqKQMANwMAIA4gA0GQEWopAwA3AwAgDSADQZgRaikDADcDACADIAMpA/gQNwOwHiADQYgUaiIEIBEQFyADQagLaiIJIAQgA0GAFWoiAhAGIANB0AtqIANBsBRqIgYgA0HYFGoiBxAGIANB+AtqIAcgAhAGIANBoAxqIAQgBhAGIANBgApqIAkQDkEAIQZBACECA0AgA0GAH2oiBCACQQF0aiIHIAEgAmotAAAiCUEEdjoAASAHIAlBD3E6AAAgAkEBciIHQQF0IARqIgkgASAHai0AACIHQQR2OgABIAkgB0EPcToAACACQQJqIgJBIEcNAAtBACEBA0AgA0GAH2ogBmoiAiACLQAAIAFqIgEgAUEIaiIBQfABcWs6AAAgAiACLQABIAHAQQR1aiIBIAFBCGoiAUHwAXFrOgABIAIgAi0AAiABwEEEdWoiASABQQhqIgFB8AFxazoAAiABwEEEdSEBIAZBA2oiBkE/Rw0ACyADIAMtAL8fIAFqOgC/HyAAQgA3AiAgAEIANwIYIABCADcCECAAQgA3AgggAEIANwIAIABCADcCLCAAQShqIg1BATYCACAAQgA3AjQgAEIANwI8IABCADcCRCAAQoCAgIAQNwJMIABB1ABqQQBBzAAQDBogAEH4AGohDiAAQdAAaiEPIANBuB1qIQcgA0GwHmohASADQYgeaiEGIANBkB1qIQkgA0HYHmohAkE/IQwDQCADIANBoAFqIANBgB9qIAxqLAAAEI0BIANB4B1qIgQgACADEBEgA0HoHGoiBSAEIAIQBiAJIAYgARAGIAcgASACEAYgBCAFEBcgBSAEIAIQBiAJIAYgARAG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IABBACAAKAIEazYCBAsgAEH4AGogACAGEAZBACEHCyACQcACaiQAIAcLKQEBfyMAQRBrIgAkACAAQQA6AA9BzJcCIABBD2pBABAAGiAAQRBqJAALBQBBgAILEAAgACABQYSXAigCABEAAAsQACAAIAFB/JYCKAIAEQAAC4wBAQF/IwBBEGsiAiAANgIMIAIgATYCCEEAIQAgAkEANgIEA0AgAiACKAIEIAIoAgwgAGotAAAgAigCCCAAai0AAHNyNgIEIAIgAigCBCAAQQFyIgEgAigCDGotAAAgAigCCCABai0AAHNyNgIEIABBAmoiAEHAAEcNAAsgAigCBEEBa0EIdkEBcUEBawstAQF+IAKtIAOtQiCGhCIGQhBaBH8gACABQRBqIAEgBkIQfSAEIAUQXQVBfwsLGAAgACABIAIgA60gBK1CIIaEIAUgBhBdCxgAIAAgASACIAOtIAStQiCGhCAFIAYQSgsXACAAIAEgAq0gA61CIIaEIAQgBRCFAQsVACAAIAGtIAKtQiCGhCADIAQQ4QELcgEBfwJAIAFBBHFFDQAgACgCACIBBEAgASgCBCAAKAIQQQp0EAgLIAAoAgQiAUUNACABIAAoAhRBA3QQCAsgACgCBBAQIABBADYCBAJAIAAoAgAiAUUNACABKAIAIgJFDQAgAhAQCyABEBAgAEEANgIACxMAIAAgASACrSADrUIghoQQ7gILFQAgACABIAKtIAOtQiCGhCAEEPICCxcAIAAgASACIAOtIAStQiCGhCAFEJADCxcAIAAgASACIAOtIAStQiCGhCAFEPECCxcAIAAgASACIAOtIAStQiCGhCAFEI8DCxUAIAAgASACrSADrUIghoQgBBDjAgsfACAAIAEgAq0gA61CIIaEIAStIAWtQiCGhCAGEM8BCxoAIAAgASACrSADrUIghoRBgJcCKAIAEQEACxwAIAAgASACrSADrUIghoQgBEH4lgIoAgARDQALHAAgACABIAKtIAOtQiCGhCAEQfSWAigCABENAAsXACAAIAEgAq0gA61CIIaEIAQgBRDSAgsSACAAIAEgAq0gA61CIIaEED0LLQEBfiACrSADrUIghoQiBkIQWgR/IAAgAUEQaiABIAZCEH0gBCAFEFUFQX8LCxgAIAAgASACIAOtIAStQiCGhCAFIAYQVQsYACAAIAEgAiADrSAErUIghoQgBSAGEEcLGQAgACABIAKtIAOtQiCGhCAEIAUgBhCZAwsZACAAIAEgAq0gA61CIIaEIAQgBSAGEJoDCxIAIAAgASACrSADrUIghoQQeAsVACAAIAEgAq0gA61CIIaEIAQQzQILFQAgACABIAKtIAOtQiCGhCAEEM4CC6QHAgN/BH5BfyEIAkAgAUHBAGtBQEkNACAFQcAASw0AAn8gAUH/AXEhCCAFQf8BcSEFIwAiASEJIAFBgARrQUBxIgEkAAJAIAJFIANCAFJxDQAgAEUNACAIQcEAa0H/AXFBvwFNDQAgBEEBIAUbRQ0AIAVBwQBPDQACfyAFBEAgBEUNAgJ+IAZFBEBCn9j52cKR2oKbfyELQtGFmu/6z5SH0QAMAQsgBikACEKf2PnZwpHagpt/hSELIAYpAABC0YWa7/rPlIfRAIULIQ0CfiAHRQRAQvnC+JuRo7Pw2wAhDELr+obav7X2wR8MAQsgBykACEL5wvibkaOz8NsAhSEMIAcpAABC6/qG2r+19sEfhQshDiABQUBrQQBBpQIQDBogASAMNwM4IAEgDjcDMCABIAs3AyggASANNwMgIAFC8e30+KWn/aelfzcDGCABQqvw0/Sv7ry3PDcDECABQrvOqqbY0Ouzu383AwggASAIrSAFrUIIhoRCiJL3lf/M+YTqAIU3AwAgAUGAA2oiBiAFakEAQYABIAVrEAwaIAYgBCAFEAoaIAFB4ABqIAZBgAEQChogAUGAATYC4AIgBkGAARAIQYABDAELAn4gBkUEQEKf2PnZwpHagpt/IQtC0YWa7/rPlIfRAAwBCyAGKQAIQp/Y+dnCkdqCm3+FIQsgBikAAELRhZrv+s+Uh9EAhQshDQJ+IAdFBEBC+cL4m5Gjs/DbACEMQuv6htq/tfbBHwwBCyAHKQAIQvnC+JuRo7Pw2wCFIQwgBykAAELr+obav7X2wR+FCyEOIAFBQGtBAEGlAhAMGiABIAw3AzggASAONwMwIAEgCzcDKCABIA03AyAgAULx7fT4paf9p6V/NwMYIAFCq/DT9K/uvLc8NwMQIAFCu86qptjQ67O7fzcDCCABIAitQoiS95X/zPmE6gCFNwMAQQALIQQCQCADUA0AIAFB4AFqIQogAUHgAGohBQNAIAQgBWohB0GAAiAEayIGrSILIANaBEAgByACIAOnIgIQChogASABKALgAiACajYC4AIMAgsgByACIAYQChogASABKALgAiAGajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRBJIAUgCkGAARAKGiABIAEoAuACQYABayIENgLgAiACIAZqIQIgAyALfSIDQgBSDQALCyABIAAgCBBzGiAJJABBAAwBCxANAAshCAsgCAtKAQJ/IwBBIGsiBiQAQX8hBwJAIAJCEFQNACAGIAQgBRBIDQAgACABQRBqIAEgAkIQfSADIAYQVSEHIAZBIBAICyAGQSBqJAAgBwtPAQJ/IwBBIGsiBiQAIAJC8P///w9UBEBBfyEHIAYgBCAFEEhFBEAgAEEQaiAAIAEgAiADIAYQRyEHIAZBIBAICyAGQSBqJAAgBw8LEA0ACwgAIAAgARBNCywBAX8jAEFAaiIDJAAgACADEBwaIAEgA0LAACACQQEQdCEAIANBQGskACAACy4BAX8jAEFAaiIEJAAgACAEEBwaIAEgAiAEQsAAIANBARB5IQAgBEFAayQAIAALCQAgABAtGkEACwUAQb9/C7sBAgJ/A34jAEHAAWsiAiQAIAJBIBAZIAEgAkIgED0aIAEgAS0AAEH4AXE6AAAgASABLQAfQT9xQcAAcjoAHyACQSBqIgMgARA4IAAgAxAsIAEgAikDGDcAGCABIAIpAxA3ABAgASACKQMINwAIIAEgAikDADcAACAAKQAIIQQgACkAECEFIAApAAAhBiABIAApABg3ADggASAFNwAwIAEgBDcAKCABIAY3ACAgAkEgEAggAkHAAWokAEEAC7YBAgF/A34jAEGgAWsiAyQAIAEgAkIgED0aIAEgAS0AAEH4AXE6AAAgASABLQAfQT9xQcAAcjoAHyADIAEQOCAAIAMQLCACKQAIIQQgAikAECEFIAIpAAAhBiABIAIpABg3ABggASAFNwAQIAEgBDcACCABIAY3AAAgACkACCEEIAApABAhBSAAKQAAIQYgASAAKQAYNwA4IAEgBTcAMCABIAQ3ACggASAGNwAgIANBoAFqJABBAAvoBAECfyMAQaABayIEJAAgACABLQAAOgAAIAAgAS0AAToAASAAIAEtAAI6AAIgACABLQADOgADIAAgAS0ABDoABCAAIAEtAAU6AAUgACABLQAGOgAGIAAgAS0ABzoAByAAIAEtAAg6AAggACABLQAJOgAJIAAgAS0ACjoACiAAIAEtAAs6AAsgACABLQAMOgAMIAAgAS0ADToADSAAIAEtAA46AA4gACABLQAPOgAPIAAgAS0AEDoAECAAIAEtABE6ABEgACABLQASOgASIAAgAS0AEzoAEyAAIAEtABQ6ABQgACABLQAVOgAVIAAgAS0AFjoAFiAAIAEtABc6ABcgACABLQAYOgAYIAAgAS0AGToAGSAAIAEtABo6ABogACABLQAbOgAbIAAgAS0AHDoAHCAAIAEtAB06AB0gACABLQAeOgAeIAEtAB8hAyAAIAIEfyAAIAAtAABB+AFxOgAAIANBwAByBSADC0H/AHE6AB8gBCAAEDggACAEECxBfyEDIAAtAB9B/wBxIAAtAB4gAC0AHSAALQAcIAAtABsgAC0AGiAALQAZIAAtABggAC0AFyAALQAWIAAtABUgAC0AFCAALQATIAAtABIgAC0AESAALQAQIAAtAA8gAC0ADiAALQANIAAtAAwgAC0ACyAALQAKIAAtAAkgAC0ACCAALQAHIAAtAAYgAC0ABSAALQAEIAAtAAMgAC0AAiAALQABIAAtAABBAXNycnJycnJycnJycnJycnJycnJycnJycnJycnJycnJyQQFrQYACcUUEQEF/QQAgAUEgEBgbIQMLIARBoAFqJAAgAwuOBQECfyMAQcACayIEJABBfyEFAkAgAhBmRQ0AIAIQQg0AIAQgAhAvDQAgBBBnRQ0AIAAgAS0AADoAACAAIAEtAAE6AAEgACABLQACOgACIAAgAS0AAzoAAyAAIAEtAAQ6AAQgACABLQAFOgAFIAAgAS0ABjoABiAAIAEtAAc6AAcgACABLQAIOgAIIAAgAS0ACToACSAAIAEtAAo6AAogACABLQALOgALIAAgAS0ADDoADCAAIAEtAA06AA0gACABLQAOOgAOIAAgAS0ADzoADyAAIAEtABA6ABAgACABLQAROgARIAAgAS0AEjoAEiAAIAEtABM6ABMgACABLQAUOgAUIAAgAS0AFToAFSAAIAEtABY6ABYgACABLQAXOgAXIAAgAS0AGDoAGCAAIAEtABk6ABkgACABLQAaOgAaIAAgAS0AGzoAGyAAIAEtABw6ABwgACABLQAdOgAdIAAgAS0AHjoAHiABLQAfIQIgACADBH8g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AiADQUBrIgQQdiACECQgAyADKQOYATcDGCADIAMpA5ABNwMQIAMgAykDiAE3AwggAyADKQOAATcDACADQgA3A3ggA0IANwNwIANCADcDaCADQgA3A2AgAyABKQAQNwNQIAMgASkAGDcDWCABKQAIIQUgASkAACEGIANCADcDOCADQgA3AzAgA0IANwMoIAMgBjcDQCADIAU3A0ggA0IANwMgIAQgAxDDASADIAMpA3g3A7gBIAMgAykDcDcDsAEgAyADKQNoNwOoASADIAMpA2A3A6ABIAMgAykDWDcDmAEgAyADKQNQNwOQASADIAMpA0g3A4gBIAMgAykDQDcDgAEgAhAkIAAgAykDmAE3ABggACADKQOQATcAECAAIAMpA4gBNwAIIAAgAykDgAE3AAAgAkHAABAIIANBwAFqJAALlwEBAX8jAEFAaiICJAAgAiABKQA4NwM4IAIgASkAMDcDMCACIAEpACg3AyggAiABKQAgNwMgIAIgASkAGDcDGCACIAEpABA3AxAgAiABKQAANwMAIAIgASkACDcDCCACECQgACACKQMYNwAYIAAgAikDEDcAECAAIAIpAwg3AAggACACKQMANwAAIAJBwAAQCCACQUBrJAALxwICAX8CfiMAQcABayIDJAAgA0IANwNgIANCADcDaCADQgA3A3AgA0IANwN4IAMgASkAEDcDUCADIAEpABg3A1ggASkACCEEIAEpAAAhBSADQgA3AyggA0IANwMwIANCADcDOCADIAU3A0AgAyAENwNIIANCADcDICADIAIpABA3AxAgAyACKQAYNwMYIAMgAikAADcDACADIAIpAAg3AwggA0FAayADEMMBIAMgAykDeDcDuAEgAyADKQNwNwOwASADIAMpA2g3A6gBIAMgAykDYDcDoAEgAyADKQNYNwOYASADIAMpA1A3A5ABIAMgAykDSDcDiAEgAyADKQNANwOAASADQYABaiIBECQgACADKQOYATcAGCAAIAMpA5ABNwAQIAAgAykDiAE3AAggACADKQOAATcAACABQcAAEAggA0HAAWokAAvkAQEBfyMAQYABayICJAAgAkIANwNQIAJCADcDWCACQgA3AyggAkIANwMwIAJCADcDOCACQciMAikDADcDaCACQdCMAikDADcDcCACQdiMAikDADcDeCACQgA3A0AgAkIANwNIIAJBAToAQCACQgA3AyAgAkHAjAIpAwA3A2AgAiABKQAYNwMYIAIgASkAEDcDECACIAEpAAg3AwggAiABKQAANwMAIAJBQGsiASACEHYgARAkIAAgAikDWDcAGCAAIAIpA1A3ABAgACACKQNINwAIIAAgAikDQDcAACACQYABaiQAC90BAQF/IwBBgAFrIgIkACACQgA3A1AgAkIANwNYIAJCADcDKCACQgA3AzAgAkIANwM4IAJByIwCKQMANwNoIAJB0IwCKQMANwNwIAJB2IwCKQMANwN4IAJCADcDQCACQgA3A0ggAkIANwMgIAJBwIwCKQMANwNgIAIgASkAEDcDECACIAEpABg3AxggAiABKQAANwMAIAIgASkACDcDCCACQUBrIgEgAhB2IAEQJCAAIAIpA1g3ABggACACKQNQNwAQIAAgAikDSDcACCAAIAIpA0A3AAAgAkGAAWokAAvPCwELfyMAQeAFayICJAAgAkHABWoiByABIAEQByACQeABaiIGIAEgBxAHIAJBoAVqIgQgASAGEAcgAkGABWoiBSAEIAQQByACQaADaiIJIAcgBRAHIAJBwAJqIgcgASAJEAcgAkHgBGoiAyAFIAUQByACQaACaiIFIAcgBxAHIAJBwARqIgggCSAFEAcgAkHAA2oiDCADIAUQByACQaAEaiIKIAggCBAHIAJBgANqIgggAyAKEAcgAkHgAmoiCyAGIAgQByACQcABaiIGIAMgCxAHIAJBoAFqIgMgBCAGEAcgAkHgAGogBCADEAcgAkGABGoiBiAKIAsQByACQeADaiIDIAQgBhAHIAJBgAJqIgYgDCADEAcgAkGAAWogBSAGEAcgAkFAayIFIAggAxAHIAJBIGoiAyAEIAUQByACIAkgAxAHIAAgByACEAdBACEEA0AgACAAIAAQByAEQQFqIgRB/gBHDQALIAAgACACQeACahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQcAFahAHIAAgACACEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkGgAWoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAhAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkGAAmoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBQGsQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHgAGoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHAAmoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAJBgARqEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHAAWoQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkHgA2oQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACACQYABahAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgABAHIAAgACAAEAcgACAAIAAQByAAIAAgAkEgahAHIAJB4AVqJABBACABQSAQGGsLKAADQCAAQSAQGSAAIAAtAB9BH3E6AB8gABCLAUUNACAAQSAQGA0ACwuiAgEDfyMAQeACayIIJAAgCEEgaiIKQsAAIAYgBxAuGiAIQeAAaiIJIApB/JYCKAIAEQAAGiAKQcAAEAggCSAEIAVBgJcCKAIAEQEAGiAJQbCMAkIAIAV9Qg+DQYCXAigCABEBABogCSABIAJBgJcCKAIAEQEAGiAJQbCMAkIAIAJ9Qg+DQYCXAigCABEBABogCCAFNwMYIAkgCEEYaiIEQghBgJcCKAIAEQEAGiAIIAI3AxggCSAEQghBgJcCKAIAEQEAGiAJIAhBhJcCKAIAEQAAGiAJQYACEAggCCADEEQhBCAIQRAQCAJAIABFDQAgBARAIABBACACpxAMGkF/IQQMAQsgACABIAIgBkEBIAcQNRpBACEECyAIQeACaiQAIAQL8AEBA38jAEHgAmsiCCQAIAhBIGoiCkLAACAGIAcQThogCEHgAGoiCSAKQfyWAigCABEAABogCkHAABAIIAkgBCAFQYCXAigCABEBABogCCAFNwMYIAkgCEEYaiIEQghBgJcCKAIAEQEAGiAJIAEgAkGAlwIoAgARAQAaIAggAjcDGCAJIARCCEGAlwIoAgARAQAaIAkgCEGElwIoAgARAAAaIAlBgAIQCCAIIAMQRCEEIAhBEBAIAkAgAEUNACAEBEAgAEEAIAKnEAwaQX8hBAwBCyAAIAEgAiAGQgEgBxA2GkEAIQQLIAhB4AJqJAAgBAv/AQEDfyMAQdACayIKJAAgCkEQaiILQsAAIAcgCBAuGiAKQdAAaiIJIAtB/JYCKAIAEQAAGiALQcAAEAggCSAFIAZBgJcCKAIAEQEAGiAJQbCMAkIAIAZ9Qg+DQYCXAigCABEBABogACADIAQgB0EBIAgQNRogCSAAIARBgJcCKAIAEQEAGiAJQbCMAkIAIAR9Qg+DQYCXAigCABEBABogCiAGNwMIIAkgCkEIaiIAQghBgJcCKAIAEQEAGiAKIAQ3AwggCSAAQghBgJcCKAIAEQEAGiAJIAFBhJcCKAIAEQAAGiAJQYACEAggAgRAIAJCEDcDAAsgCkHQAmokAEEAC80BAQN/IwBB0AJrIgkkACAJQRBqIgtCwAAgByAIEE4aIAlB0ABqIgogC0H8lgIoAgARAAAaIAtBwAAQCCAKIAUgBkGAlwIoAgARAQAaIAkgBjcDCCAKIAlBCGoiBUIIQYCXAigCABEBABogACADIAQgB0IBIAgQNhogCiAAIARBgJcCKAIAEQEAGiAJIAQ3AwggCiAFQghBgJcCKAIAEQEAGiAKIAFBhJcCKAIAEQAAGiAKQYACEAggAgRAIAJCEDcDAAsgCUHQAmokAEEACygAIAJCgICAgBBaBEAQDQALIAAgASACIANBASAEQaSXAigCABEQABoLBABBDAuGBgEUfyMAQbACayICJAAgACABLQAAOgAAIAAgAS0AAToAASAAIAEtAAI6AAIgACABLQADOgADIAAgAS0ABDoABCAAIAEtAAU6AAUgACABLQAGOgAGIAAgAS0ABzoAByAAIAEtAAg6AAggACABLQAJOgAJIAAgAS0ACjoACiAAIAEtAAs6AAsgACABLQAMOgAMIAAgAS0ADToADSAAIAEtAA46AA4gACABLQAPOgAPIAAgAS0AEDoAECAAIAEtABE6ABEgACABLQASOgASIAAgAS0AEzoAEyAAIAEtABQ6ABQgACABLQAVOgAVIAAgAS0AFjoAFiAAIAEtABc6ABcgACABLQAYOgAYIAAgAS0AGToAGSAAIAEtABo6ABogACABLQAbOgAbIAAgAS0AHDoAHCAAIAEtAB06AB0gACABLQAeOgAeIAEtAB8hASAAIAAtAABB+AFxOgAAIAAgAUE/cUHAAHI6AB8gAkEwaiAAEDggAigChAEhASACKAJcIQMgAigCiAEhBCACKAJgIQUgAigCjAEhBiACKAJkIQcgAigCkAEhCCACKAJoIQkgAigClAEhCiACKAJsIQsgAigCmAEhDCACKAJwIQ0gAigCnAEhDiACKAJ0IQ8gAigCoAEhECACKAJ4IREgAigCgAEhEiACKAJYIRMgAiACKAJ8IhQgAigCpAEiFWo2AqQCIAIgECARajYCoAIgAiAOIA9qNgKcAiACIAwgDWo2ApgCIAIgCiALajYClAIgAiAIIAlqNgKQAiACIAYgB2o2AowCIAIgBCAFajYCiAIgAiABIANqNgKEAiACIBIgE2o2AoACIAIgFSAUazYC9AEgAiAQIBFrNgLwASACIA4gD2s2AuwBIAIgDCANazYC6AEgAiAKIAtrNgLkASACIAggCWs2AuABIAIgBiAHazYC3AEgAiAEIAVrNgLYASACIAEgA2s2AtQBIAIgEiATazYC0AEgAkHQAWoiASABEDAgAiACQYACaiABEAYgACACEA8gAkGwAmokAEEAC/kcAj1/DH4jAEHwAmsiAyQAA0AgAiAGai0AACIEIAZB0IoCaiIJLQAAcyAHciEHIAQgCS0AwAFzIAVyIQUgBCAJLQCgAXMgDHIhDCAEIAktAIABcyAIciEIIAQgCS0AYHMgDXIhDSAEIAlBQGstAABzIAtyIQsgBCAJLQAgcyAKciEKIAZBAWoiBkEfRw0AC0F/IQkgAi0AH0H/AHEiBCAKckH/AXFBAWsgBCAHckH/AXFBAWtyIAQgC3JB/wFxQQFrciAEQdcAcyANckH/AXFBAWtyIARB/wBzIgQgCHJB/wFxQQFrciAEIAxyQf8BcUEBa3IgBCAFckH/AXFBAWtyQYACcUUEQCADIAEpABg3A+gCIAMgASkAEDcD4AIgAyABKQAAIkI3A9ACIAMgASkACDcD2AIgAyBCp0H4AXE6ANACIAMgAy0A7wJBP3FBwAByOgDvAiADQaACaiACECcgA0IANwKEAiADQgA3AowCIANBADYClAIgA0IANwPQASADQgA3A9gBIANCADcD4AEgA0IANwL0ASADQQE2AvABIANCADcC/AEgA0IANwPAASADQgA3A8gBIAMgAykDuAI3A6gBIAMgAykDsAI3A6ABIAMgAykDqAI3A5gBIAMgAykDoAI3A5ABIAMgAykDwAI3A7ABIANCADcCdCADQgA3AnwgA0EANgKEASADQgA3AmQgA0EBNgJgIANCADcCbEH+ASECQQAhBANAIAMoApQCIQkgAygCtAEhBiADKAJgIQcgAygCwAEhCiADKAKQASELIAMoAvABIQ0gAygCZCEIIAMoAsQBIQwgAygClAEhBSADKAL0ASEQIAMoAmghDiADKALIASERIAMoApgBIRIgAygC+AEhEyADKAJsIQ8gAygCzAEhFCADKAKcASEVIAMoAvwBIRYgAygCcCEYIAMoAtABIRwgAygCoAEhHSADKAKAAiEeIAMoAnQhGiADKALUASEfIAMoAqQBISAgAygChAIhISADKAJ4IRkgAygC2AEhIiADKAKoASEjIAMoAogCISQgAygCfCEbIAMoAtwBISUgAygCrAEhJiADKAKMAiEnIAMoAoABIRcgAygC4AEhKCADKAKwASEpIAMoApACISwgA0EAIAQgA0HQAmogAiIBQQN2ai0AACACQQdxdkEBcSIEc2siAiADKAKEASIqIAMoAuQBIitzcSItICpzIio2AoQBIAMgBiAGIAlzIAJxIi5zIi8gKms2AlQgAyAXIBcgKHMgAnEiMHMiBjYCgAEgAyApICkgLHMgAnEiF3MiKSAGazYCUCADIBsgGyAlcyACcSIxcyIbNgJ8IAMgJiAmICdzIAJxIjJzIiYgG2s2AkwgAyAZIBkgInMgAnEiM3MiGTYCeCADICMgIyAkcyACcSI0cyIjIBlrNgJIIAMgGiAaIB9zIAJxIjVzIho2AnQgAyAgICAgIXMgAnEiNnMiICAaazYCRCADIBggGCAccyACcSI3cyIYNgJwIAMgHSAdIB5zIAJxIjhzIh0gGGs2AkAgAyAPIA8gFHMgAnEiOXMiDzYCbCADIBUgFSAWcyACcSI6cyIVIA9rNgI8IAMgDiAOIBFzIAJxIjtzIg42AmggAyASIBIgE3MgAnEiPHMiEiAOazYCOCADIAggCCAMcyACcSI9cyIINgJkIAMgBSAFIBBzIAJxIj5zIgUgCGs2AjQgAyAHIAcgCnMgAnEiP3MiBzYCYCADIAsgCyANcyACcSICcyILIAdrNgIwIAMgCSAucyIJICsgLXMiK2s2AiQgAyAXICxzIhcgKCAwcyIoazYCICADICcgMnMiJyAlIDFzIiVrNgIcIAMgJCA0cyIkICIgM3MiIms2AhggAyAhIDZzIiEgHyA1cyIfazYCFCADIB4gOHMiHiAcIDdzIhxrNgIQIAMgFiA6cyIWIBQgOXMiFGs2AgwgAyATIDxzIhMgESA7cyIRazYCCCADIBAgPnMiECAMID1zIgxrNgIEIAMgAiANcyICIAogP3MiCms2AgAgAyAJICtqNgKUAiADIBcgKGo2ApACIAMgJSAnajYCjAIgAyAiICRqNgKIAiADIB8gIWo2AoQCIAMgHCAeajYCgAIgAyARIBNqNgL4ASADIAwgEGo2AvQBIAMgAiAKajYC8AEgAyAUIBZqNgL8ASADICogL2o2AuQBIAMgBiApajYC4AEgAyAbICZqNgLcASADIBkgI2o2AtgBIAMgGiAgajYC1AEgAyAYIB1qNgLQASADIA8gFWo2AswBIAMgDiASajYCyAEgAyAFIAhqNgLEASADIAcgC2o2AsABIANB4ABqIhsgA0EwaiIaIANB8AFqIhkQBiADQcABaiIXIBcgAxAGIBogAxAFIAMgGRAFIAMoAsABIQIgAygCYCEJIAMoAsQBIQYgAygCZCEHIAMoAsgBIQogAygCaCELIAMoAswBIQ0gAygCbCEIIAMoAtABIQwgAygCcCEFIAMoAtQBIRAgAygCdCEOIAMoAtgBIREgAygCeCESIAMoAtwBIRMgAygCfCEPIAMoAuABIRQgAygCgAEhFSADIAMoAuQBIhYgAygChAEiGGo2ArQBIAMgFCAVajYCsAEgAyAPIBNqNgKsASADIBEgEmo2AqgBIAMgDiAQajYCpAEgAyAFIAxqNgKgASADIAggDWo2ApwBIAMgCiALajYCmAEgAyAGIAdqNgKUASADIAIgCWo2ApABIAMgGCAWazYC5AEgAyAVIBRrNgLgASADIA8gE2s2AtwBIAMgEiARazYC2AEgAyAOIBBrNgLUASADIAUgDGs2AtABIAMgCCANazYCzAEgAyALIAprNgLIASADIAcgBms2AsQBIAMgCSACazYCwAEgGSADIBoQBiADKAI0IQIgAygCBCEFIAMoAjghCSADKAIIIRAgAygCQCEGIAMoAhAhDiADKAI8IQcgAygCDCERIAMoAkghCiADKAIYIRIgAygCRCELIAMoAhQhEyADKAJQIQ0gAygCICEPIAMoAkwhCCADKAIcIRQgAygCVCEMIAMoAiQhFSADIAMoAgAgAygCMCIWayIYNgIAIAMgFSAMayIVNgIkIAMgFCAIayIUNgIcIAMgDyANayIPNgIgIAMgEyALayITNgIUIAMgEiAKayISNgIYIAMgESAHayIRNgIMIAMgDiAGayIONgIQIAMgECAJayIQNgIIIAMgBSACayIFNgIEIBcgFxAFIAMgFaxCwrYHfiJCQoCAgAh8IkZCGYdCE34gGKxCwrYHfnwiQCBAQoCAgBB8IkBCgICA4A+DfaciFTYCYCADIAWsQsK2B34iQSBBQoCAgAh8IkFCgICA8A+DfSBAQhqIfKciBTYCZCADIBCsQsK2B34gQUIZh3wiQCBAQoCAgBB8IkBCgICA4A+DfaciEDYCaCADIA6sQsK2B34gEaxCwrYHfiJBQoCAgAh8IkdCGYd8IkMgQ0KAgIAQfCJDQoCAgOAPg32nIg42AnAgAyASrELCtgd+IBOsQsK2B34iSEKAgIAIfCJJQhmHfCJEIERCgICAEHwiREKAgIDgD4N9pyIRNgJ4IAMgD6xCwrYHfiAUrELCtgd+IkpCgICACHwiS0IZh3wiRSBFQoCAgBB8IkVCgICA4A+DfaciEjYCgAEgAyBAQhqIIEF8IEdCgICA8A+DfaciEzYCbCADIENCGoggSHwgSUKAgIDwD4N9pyIPNgJ0IAMgREIaiCBKfCBLQoCAgPAPg32nIhQ2AnwgAyBFQhqIIEJ8IEZCgICA8A+DfaciGDYChAEgA0GQAWoiGSAZEAUgAyAMIBhqNgJUIAMgDSASajYCUCADIAggFGo2AkwgAyAKIBFqNgJIIAMgCyAPajYCRCADIAYgDmo2AkAgAyAHIBNqNgI8IAMgCSAQajYCOCADIAIgBWo2AjQgAyAVIBZqNgIwIAFBAWshAiAbIANBoAJqIBcQBiAXIAMgGhAGIAENAAsgAygCkAEhECADKALwASECIAMoApQBIQ4gAygC9AEhBiADKAKYASERIAMoAvgBIQcgAygCnAEhEiADKAL8ASEKIAMoAqABIRMgAygCgAIhCyADKAKkASEPIAMoAoQCIQ0gAygCqAEhFCADKAKIAiEIIAMoAqwBIRUgAygCjAIhDCADKAKwASEWIAMoApACIQUgA0EAIARrIgEgAygClAIiBCADKAK0AXNxIARzNgKUAiADIAUgBSAWcyABcXM2ApACIAMgDCAMIBVzIAFxczYCjAIgAyAIIAggFHMgAXFzNgKIAiADIA0gDSAPcyABcXM2AoQCIAMgCyALIBNzIAFxczYCgAIgAyAKIAogEnMgAXFzNgL8ASADIAcgByARcyABcXM2AvgBIAMgBiAGIA5zIAFxczYC9AEgAyACIAIgEHMgAXFzNgLwASADKALAASECIAMoAmAhBSADKALEASEEIAMoAmQhECADKALIASEGIAMoAmghDiADKALMASEHIAMoAmwhESADKALQASEKIAMoAnAhEiADKALUASELIAMoAnQhEyADKALYASENIAMoAnghDyADKALcASEIIAMoAnwhFCADKALgASEMIAMoAoABIRUgAyADKALkASIWIAMoAoQBcyABcSAWczYC5AEgAyAMIAwgFXMgAXFzNgLgASADIAggCCAUcyABcXM2AtwBIAMgDSANIA9zIAFxczYC2AEgAyALIAsgE3MgAXFzNgLUASADIAogCiAScyABcXM2AtABIAMgByAHIBFzIAFxczYCzAEgAyAGIAYgDnMgAXFzNgLIASADIAQgBCAQcyABcXM2AsQBIAMgAiACIAVzIAFxczYCwAEgA0HAAWoiASABEDAgA0HwAWoiAiACIAEQBiAAIAIQDyADQdACakEgEAhBACEJCyADQfACaiQAIAkLDwAgACABrUGmDCACEC4aC00BA38jAEEQayICJAAgAEECTwRAQQAgAGsgAHAhAQNAIAJBADoAD0GolwIgAkEPakEAEAAiAyABSQ0ACyADIABwIQELIAJBEGokACABCwoAIAAgARBrQQALDAAgACABIAIQbEEACywBAn8jAEEQayIAJAAgAEEAOgAPQaiXAiAAQQ9qQQAQACEBIABBEGokACABC7QBAQF/IAAgASgAAEH///8fcTYCACAAIAEoAANBAnZBg/7/H3E2AgQgACABKAAGQQR2Qf+B/x9xNgIIIAAgASgACUEGdkH//8AfcTYCDCABKAAMIQIgAEIANwIUIABCADcCHCAAQQA2AiQgACACQQh2Qf//P3E2AhAgACABKAAQNgIoIAAgASgAFDYCLCAAIAEoABg2AjAgASgAHCEBIABBADoAUCAAQgA3AzggACABNgI0QQAL6AEBA38jACIFQcABa0FAcSIEJAAgBCADKAAAQf///x9xNgJAIAQgAygAA0ECdkGD/v8fcTYCRCAEIAMoAAZBBHZB/4H/H3E2AkggBCADKAAJQQZ2Qf//wB9xNgJMIAMoAAwhBiAEQgA3AlQgBEIANwJcIARBADYCZCAEIAZBCHZB//8/cTYCUCAEIAMoABA2AmggBCADKAAUNgJsIAQgAygAGDYCcCADKAAcIQMgBEEAOgCQASAEQgA3A3ggBCADNgJ0IARBQGsiAyABIAIQbCADIARBMGoiARBrIAAgARBEIQAgBSQAIAAL1QEBA38jACIFQYABa0FAcSIEJAAgBCADKAAAQf///x9xNgIAIAQgAygAA0ECdkGD/v8fcTYCBCAEIAMoAAZBBHZB/4H/H3E2AgggBCADKAAJQQZ2Qf//wB9xNgIMIAMoAAwhBiAEQgA3AhQg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AEF/DAELIAAgAUEAQgAgBEEgIAUgBUEQahCwAQshACAFQSBqJAAgAAsEAEEKCwUAQbELCwUAQaMKC/4BAQR/IwAiBSEIIAVBgARrQUBxIgUkACAAIAEgABsiBwRAQX8hBiAFQeAAaiADIAQQckUEQCABIAAgARshAUEAIQAgBUGAAWoiA0EAQQBBwAAQNBogAyAFQeAAaiIGQiAQGxogBkEgEAggAyAEQiAQGxogAyACQiAQGxogAyAFQSBqQcAAEDIaIANBgAMQCANAIAAgAWogBUEgaiIEIABqIgItAAA6AAAgACAHaiACLQAgOgAAIAEgAEEBciIDaiADIARqLQAAOgAAIAMgB2ogAi0AIToAACAAQQJqIgBBIEcNAAsgBUEgakHAABAIQQAhBgsgCCQAIAYPCxANAAv+AQEEfyMAIgUhCCAFQYAEa0FAcSIFJAAgACABIAAbIgcEQEF/IQYgBUHgAGogAyAEEHJFBEAgASAAIAEbIQFBACEAIAVBgAFqIgNBAEEAQcAAEDQaIAMgBUHgAGoiBkIgEBsaIAZBIBAIIAMgAkIgEBsaIAMgBEIgEBsaIAMgBUEgakHAABAyGiADQYADEAgDQCAAIAdqIAVBIGoiBCAAaiICLQAAOgAAIAAgAWogAi0AIDoAACAHIABBAXIiA2ogAyAEai0AADoAACABIANqIAItACE6AAAgAEECaiIAQSBHDQALIAVBIGpBwAAQCEEAIQYLIAgkACAGDwsQDQALIAAgAUEgIAJCIEEAQQAQywEaIAAgAUGMlwIoAgARAAALBQBBngsLBABBbgsEAEERCwQAQTQLlQECAX8BfiMAQTBrIgEkACABIAApABg3AxggASAAKQAQNwMQIAEgACkAADcDACABIAApAAg3AwggASAAKQAkNwMgIAEgAUIoIABBIGogABBhGiAAIAEpAxg3ABggACABKQMQNwAQIAAgASkDCDcACCAAIAEpAwA3AAAgASkDICECIABBATYAICAAIAI3ACQgAUEwaiQACy0BAX4gACABIAJBABAaGiAAQQE2ACAgASkAECEDIABCADcALCAAIAM3ACRBAAszAQF+IAFBGBAZIAAgASACQQAQGhogAEEBNgAgIAEpABAhAyAAQgA3ACwgACADNwAkQQALBQBB6AALCAAgAEEQEBkLBQBB8wsL8gUCBn4BfyADKQAAIgRC9crNg9es27fzAIUhBiAEQuHklfPW7Nm87ACFIQcgAykACCIFQu3ekfOWzNy35ACFIQQgBULzytHLp4zZsvQAhSEFIAEgASACpyIDaiADQQdxIgprIgNHBEADQCAHIAEpAAAiCCAFhSIHfCIFIAQgBnwiBiAEQg2JhSIEfCIJIARCEYmFIgRCDYkgBCAHQhCJIAWFIgQgBkIgiXwiBnwiB4UiBUIRiSAFIARCFYkgBoUiBiAJQiCJfCIFfCIJhSEEIAZCEIkgBYUiBkIViSAGIAdCIIl8IgaFIQUgCUIgiSEHIAYgCIUhBiABQQhqIgEgA0cNAAsgAyEBCyACQjiGIQICQAJAAkACQAJAAkACQAJAIApBAWsOBwYFBAMCAQAHCyABMQAGQjCGIAKEIQILIAExAAVCKIYgAoQhAgsgATEABEIghiAChCECCyABMQADQhiGIAKEIQILIAExAAJCEIYgAoQhAgsgATEAAUIIhiAChCECCyACIAExAACEIQILIAAgAiAFhSIFQhCJIAUgB3wiB4UiBUIViSAFIAQgBnwiBkIgiXwiBYUiCEIQiSAIIAcgBiAEQg2JhSIEfCIGQiCJfCIHhSIIQhWJIAggBSAGIARCEYmFIgR8IgZCIIl8IgWFIghCEIkgByAEQg2JIAaFIgR8IgZCIIlC/wGFIAh8IgeFIghCFYkgBEIRiSAGhSIEIAIgBYV8IgJCIIkgCHwiBoUiBUIQiSACIARCDYmFIgIgB3wiBEIgiSAFfCIHhSIFQhWJIAJCEYkgBIUiAiAGfCIEQiCJIAV8IgaFIgVCEIkgAkINiSAEhSICIAd8IgRCIIkgBXwiB4UiBUIViSACQhGJIASFIgIgBnwiBEIgiSAFfCIGhSIFQhCJIAJCDYkgBIUiAiAHfCIEQiCJIAV8IgeFQhWJIAJCEYkgBIUiAkINiSACIAZ8hSICQhGJhSACIAd8IgJCIImFIAKFNwAAQQALCwAgACABIAIQggELBQBBxgsL9QIBAX8jAEGgAWsiAiQAIAAgAS0AADoAACAAIAEtAAE6AAEgACABLQACOgACIAAgAS0AAzoAAyAAIAEtAAQ6AAQgACABLQAFOgAFIAAgAS0ABjoABiAAIAEtAAc6AAcgACABLQAIOgAIIAAgAS0ACToACSAAIAEtAAo6AAogACABLQALOgALIAAgAS0ADDoADCAAIAEtAA06AA0gACABLQAOOgAOIAAgAS0ADzoADyAAIAEtABA6ABAgACABLQAROgARIAAgAS0AEjoAEiAAIAEtABM6ABMgACABLQAUOgAUIAAgAS0AFToAFSAAIAEtABY6ABYgACABLQAXOgAXIAAgAS0AGDoAGCAAIAEtABk6ABkgACABLQAaOgAaIAAgAS0AGzoAGyAAIAEtABw6ABwgACABLQAdOgAdIAAgAS0AHjoAHiAAIAEtAB9B/wBxOgAfIAIgABA4IAAgAhBBIABBIBAYIQAgAkGgAWokAEF/QQAgABsLjAMBAn8jAEHAAmsiAyQAQX8hBCADIAIQN0UEQCAAIAEtAAA6AAAgACABLQABOgABIAAgAS0AAjoAAiAAIAEtAAM6AAMgACABLQAEOgAEIAAgAS0ABToABSAAIAEtAAY6AAYgACABLQAHOgAHIAAgAS0ACDoACCAAIAEtAAk6AAkgACABLQAKOgAKIAAgAS0ACzoACyAAIAEtAAw6AAwgACABLQANOgANIAAgAS0ADjoADiAAIAEtAA86AA8gACABLQAQOgAQIAAgAS0AEToAESAAIAEtABI6ABIgACABLQATOgATIAAgAS0AFDoAFCAAIAEtABU6ABUgACABLQAWOgAWIAAgAS0AFzoAFyAAIAEtABg6ABggACABLQAZOgAZIAAgAS0AGjoAGiAAIAEtABs6ABsgACABLQAcOgAcIAAgAS0AHToAHSAAIAEtAB46AB4gACABLQAfQf8AcToAHyADQaABaiIBIAAgAxCOASAAIAEQQUF/QQAgAEEgEBgbIQQLIANBwAJqJAAgBAsLACAAIAEgAhC0AQsNACAAIAEgAiADELUBCwcAIAAQtgELCQAgACABELgBCwsAIAAgASACELkBCwUAQakLCwoAIAAgASACEBMLOgEDfiABKQAgIQIgASkAKCEDIAEpADAhBCAAIAEpADg3ABggACAENwAQIAAgAzcACCAAIAI3AABBAAs6AQN+IAEpAAghAiABKQAQIQMgASkAACEEIAAgASkAGDcAGCAAIAM3ABAgACACNwAIIAAgBDcAAEEAC3wBAX8CQAJAAkAgA0LAAFQNACADQkB8IgNCv////w9WDQAgAiACQUBrIgUgAyAEQQAQdEUNASAARQ0AIABBACADpxAM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QUBqIgYkAAJAIAZBIGogBSAEECEEQEF/IQQMAQtBfyEEIAZBoJMCIAZBIGpBABAqDQAgACABIAIgAyAGEIQBIQQgBkEgEAgLIAZBQGskACAECw8AIAAgASACIAMgBBCDAQsPACAAIAEgAiADIAQQhAELIQEBfyMAQSBrIgEkACABQSAQGSAAIAEQigEgAUEgaiQAC+wEAQx/IwBBoAFrIgIkACABLQAAIQ0DQCACQYABaiIFIANqIAEgA2siBC0APzoAACACQeAAaiIGIANqIAQtAB86AAAgBSADQQFyIgdqIAQtAD46AAAgBiAHaiAELQAeOgAAIANBAmoiA0EgRw0ACyACIAItAJ8BQf8AcToAnwEgAiACLQB/Qf8AcToAfyACQTBqIgMgAkGAAWoQJyACIAJB4ABqECcgAiACKAJQIAIoAiBBJmxqIgQgAigCTCACKAIcQSZsaiIFIAIoAkggAigCGEEmbGoiBiACKAJEIAIoAhRBJmxqIgcgAigCQCACKAIQQSZsaiIIIAIoAjwgAigCDEEmbGoiCSACKAI4IAIoAghBJmxqIgogAigCNCACKAIEQSZsaiILIAIoAjAgASwAIEEfdUETcWogAigCAEEmbGoiDCACKAJUIAIoAiRBJmxqIgFBE2xBgICACGpBGXZqQRp1akEZdWpBGnVqQRl1akEadWpBGXVqQRp1akEZdWpBGnUgAWpBGXVBE2wgDGoiDEH///8fcTYCMCACIAxBGnUgC2oiC0H///8PcTYCNCACIAtBGXUgCmoiCkH///8fcTYCOCACIApBGnUgCWoiCUH///8PcTYCPCACIAlBGXUgCGoiCEH///8fcTYCQCACIAhBGnUgB2oiB0H///8PcTYCRCACIAdBGXUgBmoiBkH///8fcTYCSCACIAZBGnUgBWoiBUH///8PcTYCTCACIAVBGXUgBGoiBEH///8fcTYCUCACIARBGnUgAWpB////D3E2AlQgACADIA1BgAFxEIkBIAJBoAFqJABBAAsLACAAIAEQigFBAAt/AQJ/IwBBoAZrIgMkAEF/IQQCQCADQYAFaiABEC8NACADQYAFahBDRQ0AIANB4ANqIAIQLw0AIANB4ANqEENFDQAgAyADQeADahAOIANBoAFqIgEgA0GABWogAxBQIANBwAJqIgIgARBRIAAgAhAsQQAhBAsg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wNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/AEGwFQsBAQBB0BULsAEm6JWPwrInsEXD9Iny75jw1d+sBdPGMzmxOAKIbVP8BccXanA9TdhPujwLdg0QZw8qIFP6LDnMxk7H/XeSrAN67P///////////////////////////////////////3/t////////////////////////////////////////f+7///////////////////////////////////////9/7dP1XBpjEljWnPei3vneFABBjxcLrPEBEP1AXQCgaj8AOdNX/gzSugBYvHT+QdgBAP/IPQHYQpT/APtcACSy4f8AAAAAAAAAAIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+AwfW//EyTf9Vy8X/04f6/xkwZP+71bT+EVhpAFPRngEFc2IABK48/qs3bv/ZtRH/FLyqAJKcZv5X1q7/cnqbAeksqgB/CO8B1uzqAK8F2wAxaj3/BkLQ/wJqbv9R6hP/12vA/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41Q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Zf8AAAAAAAAAABsuewESqP3/06+X/sPbYAA4dr7+/tH1/5lkfv7ogRX/Nbjy/8ek3QBB8IoCCwEBAEGQiwILoAHg63p8O0G4rhZW4/rxn8Rq2gmN65wysf2GYgUWX0m4AF+clbyjUIwksdCxVZyD71sERFzEWByOhtgiTt3QnxFX7P///////////////////////////////////////3/t////////////////////////////////////////f+7///////////////////////////////////////9/AEHAjAILEO3T9VwaYxJY1pz3ot753hQAQd+MAgvCBRAIybzzZ+YJajunyoSFrme7K/iU/nLzbjzxNh1fOvVPpdGC5q1/Ug5RH2w+K4xoBZtrvUH7q9mDH3khfhMZzeBbIq4o15gvikLNZe8jkUQ3cS87TezP+8C1vNuJgaXbtek4tUjzW8JWORnQBbbxEfFZm08Zr6SCP5IYgW3a1V4cq0ICA6OYqgfYvm9wRQFbgxKMsuROvoUxJOK0/9XDfQxVb4l78nRdvnKxlhY7/rHegDUSxyWnBtyblCZpz3Txm8HSSvGewWmb5OMlTziGR77vtdWMi8adwQ9lnKx3zKEMJHUCK1lvLOktg+SmbqqEdErU+0G93KmwXLVTEYPaiPl2q99m7lJRPpgQMrQtbcYxqD8h+5jIJwOw5A7vvsd/Wb/Cj6g98wvgxiWnCpNHkafVb4ID4FFjygZwbg4KZykpFPwv0kaFCrcnJskmXDghGy7tKsRa/G0sTd+zlZ0TDThT3mOvi1RzCmWosnc8uwpqduau7UcuycKBOzWCFIUscpJkA/FMoei/ogEwQrxLZhqokZf40HCLS8IwvlQGo1FsxxhS79YZ6JLREKllVSQGmdYqIHFXhTUO9LjRuzJwoGoQyNDSuBbBpBlTq0FRCGw3Hpnrjt9Md0gnqEib4bW8sDRjWsnFswwcOcuKQeNKqthOc+Njd0/KnFujuLLW828uaPyy713ugo90YC8XQ29jpXhyq/ChFHjIhOw5ZBoIAseMKB5jI/r/vpDpvYLe62xQpBV5xrL3o/m+K1Ny4/J4ccacYSbqzj4nygfCwCHHuIbRHuvgzdZ92up40W7uf0999bpvF3KqZ/AGppjIosV9YwquDfm+BJg/ERtHHBM1C3EbhH0EI/V32yiTJMdAe6vKMry+yRUKvp48TA0QnMRnHUO2Qj7LvtTFTCp+ZfycKX9Z7PrWOqtvy18XWEdKjBlEbIAAQbCTAgshU2lnRWQyNTUxOSBubyBFZDI1NTE5IGNvbGxpc2lvbnMBAEGAlAILoQJn5glqha5nu3Lzbjw69U+lf1IOUYxoBZur2YMfGc3gW5gvikKRRDdxz/vAtaXbtelbwlY58RHxWaSCP5LVXhyrmKoH2AFbgxK+hTEkw30MVXRdvnL+sd6Apwbcm3Txm8HBaZvkhke+78adwQ/MoQwkbyzpLaqEdErcqbBc2oj5dlJRPphtxjGoyCcDsMd/Wb/zC+DGR5Gn1VFjygZnKSkUhQq3JzghGy78bSxNEw04U1RzCmW7Cmp2LsnCgYUscpKh6L+iS2YaqHCLS8KjUWzHGeiS0SQGmdaFNQ70cKBqEBbBpBkIbDceTHdIJ7W8sDSzDBw5SqrYTk/KnFvzby5o7oKPdG9jpXgUeMiECALHjPr/vpDrbFCk96P5vvJ4ccaAAEHwlgILNcCQAQABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAAN'), - ) || ((ht = Wn), (Wn = an.locateFile ? an.locateFile(ht, ln) : ln + ht)) - var na = { - 35752: () => an.getRandomValue(), - 35788: () => { - if (an.getRandomValue === void 0) - try { - var br = typeof window == 'object' ? window : self, - Fr = br.crypto !== void 0 ? br.crypto : br.msCrypto, - $r = function () { - var vn = new Uint32Array(1) - return Fr.getRandomValues(vn), vn[0] >>> 0 - } - $r(), (an.getRandomValue = $r) - } catch { - try { - var cr = require$$0$2, - ir = function () { - var gr = cr.randomBytes(4) - return ((gr[0] << 24) | (gr[1] << 16) | (gr[2] << 8) | gr[3]) >>> 0 - } - ir(), (an.getRandomValue = ir) - } catch { - throw 'No secure random number generator found' - } - } - }, - } - function Yo(br) { - for (; br.length > 0; ) br.shift()(an) - } - var vo = [] - function Wo(br) { - var Fr = Gn.buffer - try { - return Gn.grow((br - Fr.byteLength + 65535) >>> 16), Ln(), 1 - } catch {} - } - var ba = - typeof atob == 'function' - ? atob - : function (br) { - var Fr, - $r, - cr, - ir, - vn, - gr, - Mr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', - Or = '', - _i = 0 - br = br.replace(/[^A-Za-z0-9\+\/\=]/g, '') - do - (Fr = - (Mr.indexOf(br.charAt(_i++)) << 2) | - ((ir = Mr.indexOf(br.charAt(_i++))) >> 4)), - ($r = ((15 & ir) << 4) | ((vn = Mr.indexOf(br.charAt(_i++))) >> 2)), - (cr = ((3 & vn) << 6) | (gr = Mr.indexOf(br.charAt(_i++)))), - (Or += String.fromCharCode(Fr)), - vn !== 64 && (Or += String.fromCharCode($r)), - gr !== 64 && (Or += String.fromCharCode(cr)) - while (_i < br.length) - return Or - } - function Co(br) { - if (Uo(br)) - return (function (Fr) { - if (typeof kn == 'boolean' && kn) { - var $r = Buffer.from(Fr, 'base64') - return new Uint8Array($r.buffer, $r.byteOffset, $r.byteLength) - } - try { - for ( - var cr = ba(Fr), ir = new Uint8Array(cr.length), vn = 0; - vn < cr.length; - ++vn - ) - ir[vn] = cr.charCodeAt(vn) - return ir - } catch { - throw new Error('Converting base64 string to bytes failed.') - } - })(br.slice(mr.length)) - } - var Ko, - xa = { - b: function (br, Fr, $r, cr) { - Vn( - 'Assertion failed: ' + - _n(br) + - ', at: ' + - [Fr ? _n(Fr) : 'unknown filename', $r, cr ? _n(cr) : 'unknown function'], - ) - }, - c: function () { - Vn('') - }, - a: function (br, Fr, $r) { - return (function (cr, ir, vn) { - var gr = (function (Mr, Or) { - var _i - for (vo.length = 0, Or >>= 2; (_i = tn[Mr++]); ) - (Or += (_i != 105) & Or), - vo.push(_i == 105 ? Mn[Or] : dn[Or++ >> 1]), - ++Or - return vo - })(ir, vn) - return na[cr].apply(null, gr) - })(br, Fr, $r) - }, - d: function (br, Fr, $r) { - tn.copyWithin(br, Fr, Fr + $r) - }, - e: function (br) { - var Fr, - $r = tn.length, - cr = 2147483648 - if ((br >>>= 0) > cr) return !1 - for (var ir = 1; ir <= 4; ir *= 2) { - var vn = $r * (1 + 0.2 / ir) - if ( - ((vn = Math.min(vn, br + 100663296)), - Wo( - Math.min( - cr, - (Fr = Math.max(br, vn)) + ((65536 - (Fr % 65536)) % 65536), - ), - )) - ) - return !0 - } - return !1 - }, - } - function bo() { - function br() { - Ko || - ((Ko = !0), - (an.calledRun = !0), - Nn || - (Yo(Fn), - an.onRuntimeInitialized && an.onRuntimeInitialized(), - (function () { - if (an.postRun) - for ( - typeof an.postRun == 'function' && (an.postRun = [an.postRun]); - an.postRun.length; - - ) - (Fr = an.postRun.shift()), An.unshift(Fr) - var Fr - Yo(An) - })())) - } - Qn > 0 || - ((function () { - if (an.preRun) - for ( - typeof an.preRun == 'function' && (an.preRun = [an.preRun]); - an.preRun.length; - - ) - (Fr = an.preRun.shift()), zn.unshift(Fr) - var Fr - Yo(zn) - })(), - Qn > 0 || - (an.setStatus - ? (an.setStatus('Running...'), - setTimeout(function () { - setTimeout(function () { - an.setStatus('') - }, 1), - br() - }, 1)) - : br())) - } - if ( - ((function () { - var br = { a: xa } - function Fr(ir, vn) { - var gr = ir.exports - ;(an.asm = gr), - (Gn = an.asm.f), - Ln(), - an.asm.Aj, - (function (Mr) { - if ( - (Qn--, - an.monitorRunDependencies && an.monitorRunDependencies(Qn), - Qn == 0 && Rn) - ) { - var Or = Rn - ;(Rn = null), Or() - } - })() - } - function $r(ir) { - Fr(ir.instance) - } - function cr(ir) { - return (function () { - if (!Tn && (mn || Bn)) { - if (typeof fetch == 'function' && !Vo(Wn)) - return fetch(Wn, { credentials: 'same-origin' }) - .then(function (vn) { - if (!vn.ok) throw "failed to load wasm binary file at '" + Wn + "'" - return vn.arrayBuffer() - }) - .catch(function () { - return ko(Wn) - }) - if (qn) - return new Promise(function (vn, gr) { - qn( - Wn, - function (Mr) { - vn(new Uint8Array(Mr)) - }, - gr, - ) - }) - } - return Promise.resolve().then(function () { - return ko(Wn) - }) - })() - .then(function (vn) { - return WebAssembly.instantiate(vn, br) - }) - .then(function (vn) { - return vn - }) - .then(ir, function (vn) { - Sn('failed to asynchronously prepare wasm: ' + vn), Vn(vn) - }) - } - if ( - (Qn++, - an.monitorRunDependencies && an.monitorRunDependencies(Qn), - an.instantiateWasm) - ) - try { - return an.instantiateWasm(br, Fr) - } catch (ir) { - return Sn('Module.instantiateWasm callback failed with error: ' + ir), !1 - } - Tn || - typeof WebAssembly.instantiateStreaming != 'function' || - Uo(Wn) || - Vo(Wn) || - kn || - typeof fetch != 'function' - ? cr($r) - : fetch(Wn, { credentials: 'same-origin' }).then(function (ir) { - return WebAssembly.instantiateStreaming(ir, br).then($r, function (vn) { - return ( - Sn('wasm streaming compile failed: ' + vn), - Sn('falling back to ArrayBuffer instantiation'), - cr($r) - ) - }) - }) - })(), - (an._crypto_aead_chacha20poly1305_encrypt_detached = function () { - return (an._crypto_aead_chacha20poly1305_encrypt_detached = an.asm.g).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_encrypt = function () { - return (an._crypto_aead_chacha20poly1305_encrypt = an.asm.h).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_ietf_encrypt_detached = function () { - return (an._crypto_aead_chacha20poly1305_ietf_encrypt_detached = - an.asm.i).apply(null, arguments) - }), - (an._crypto_aead_chacha20poly1305_ietf_encrypt = function () { - return (an._crypto_aead_chacha20poly1305_ietf_encrypt = an.asm.j).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_decrypt_detached = function () { - return (an._crypto_aead_chacha20poly1305_decrypt_detached = an.asm.k).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_decrypt = function () { - return (an._crypto_aead_chacha20poly1305_decrypt = an.asm.l).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_ietf_decrypt_detached = function () { - return (an._crypto_aead_chacha20poly1305_ietf_decrypt_detached = - an.asm.m).apply(null, arguments) - }), - (an._crypto_aead_chacha20poly1305_ietf_decrypt = function () { - return (an._crypto_aead_chacha20poly1305_ietf_decrypt = an.asm.n).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_ietf_keybytes = function () { - return (an._crypto_aead_chacha20poly1305_ietf_keybytes = an.asm.o).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_ietf_npubbytes = function () { - return (an._crypto_aead_chacha20poly1305_ietf_npubbytes = an.asm.p).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_ietf_nsecbytes = function () { - return (an._crypto_aead_chacha20poly1305_ietf_nsecbytes = an.asm.q).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_ietf_abytes = function () { - return (an._crypto_aead_chacha20poly1305_ietf_abytes = an.asm.r).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_ietf_messagebytes_max = function () { - return (an._crypto_aead_chacha20poly1305_ietf_messagebytes_max = - an.asm.s).apply(null, arguments) - }), - (an._crypto_aead_chacha20poly1305_ietf_keygen = function () { - return (an._crypto_aead_chacha20poly1305_ietf_keygen = an.asm.t).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_keybytes = function () { - return (an._crypto_aead_chacha20poly1305_keybytes = an.asm.u).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_npubbytes = function () { - return (an._crypto_aead_chacha20poly1305_npubbytes = an.asm.v).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_nsecbytes = function () { - return (an._crypto_aead_chacha20poly1305_nsecbytes = an.asm.w).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_abytes = function () { - return (an._crypto_aead_chacha20poly1305_abytes = an.asm.x).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_messagebytes_max = function () { - return (an._crypto_aead_chacha20poly1305_messagebytes_max = an.asm.y).apply( - null, - arguments, - ) - }), - (an._crypto_aead_chacha20poly1305_keygen = function () { - return (an._crypto_aead_chacha20poly1305_keygen = an.asm.z).apply( - null, - arguments, - ) - }), - (an._crypto_aead_xchacha20poly1305_ietf_encrypt_detached = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_encrypt_detached = - an.asm.A).apply(null, arguments) - }), - (an._crypto_aead_xchacha20poly1305_ietf_encrypt = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_encrypt = an.asm.B).apply( - null, - arguments, - ) - }), - (an._crypto_aead_xchacha20poly1305_ietf_decrypt_detached = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_decrypt_detached = - an.asm.C).apply(null, arguments) - }), - (an._crypto_aead_xchacha20poly1305_ietf_decrypt = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_decrypt = an.asm.D).apply( - null, - arguments, - ) - }), - (an._crypto_aead_xchacha20poly1305_ietf_keybytes = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_keybytes = an.asm.E).apply( - null, - arguments, - ) - }), - (an._crypto_aead_xchacha20poly1305_ietf_npubbytes = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_npubbytes = an.asm.F).apply( - null, - arguments, - ) - }), - (an._crypto_aead_xchacha20poly1305_ietf_nsecbytes = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_nsecbytes = an.asm.G).apply( - null, - arguments, - ) - }), - (an._crypto_aead_xchacha20poly1305_ietf_abytes = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_abytes = an.asm.H).apply( - null, - arguments, - ) - }), - (an._crypto_aead_xchacha20poly1305_ietf_messagebytes_max = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_messagebytes_max = - an.asm.I).apply(null, arguments) - }), - (an._crypto_aead_xchacha20poly1305_ietf_keygen = function () { - return (an._crypto_aead_xchacha20poly1305_ietf_keygen = an.asm.J).apply( - null, - arguments, - ) - }), - (an._crypto_auth_bytes = function () { - return (an._crypto_auth_bytes = an.asm.K).apply(null, arguments) - }), - (an._crypto_auth_keybytes = function () { - return (an._crypto_auth_keybytes = an.asm.L).apply(null, arguments) - }), - (an._crypto_auth_primitive = function () { - return (an._crypto_auth_primitive = an.asm.M).apply(null, arguments) - }), - (an._crypto_auth = function () { - return (an._crypto_auth = an.asm.N).apply(null, arguments) - }), - (an._crypto_auth_verify = function () { - return (an._crypto_auth_verify = an.asm.O).apply(null, arguments) - }), - (an._crypto_auth_keygen = function () { - return (an._crypto_auth_keygen = an.asm.P).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_bytes = function () { - return (an._crypto_auth_hmacsha256_bytes = an.asm.Q).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_keybytes = function () { - return (an._crypto_auth_hmacsha256_keybytes = an.asm.R).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_statebytes = function () { - return (an._crypto_auth_hmacsha256_statebytes = an.asm.S).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_keygen = function () { - return (an._crypto_auth_hmacsha256_keygen = an.asm.T).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_init = function () { - return (an._crypto_auth_hmacsha256_init = an.asm.U).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_update = function () { - return (an._crypto_auth_hmacsha256_update = an.asm.V).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_final = function () { - return (an._crypto_auth_hmacsha256_final = an.asm.W).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256 = function () { - return (an._crypto_auth_hmacsha256 = an.asm.X).apply(null, arguments) - }), - (an._crypto_auth_hmacsha256_verify = function () { - return (an._crypto_auth_hmacsha256_verify = an.asm.Y).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_bytes = function () { - return (an._crypto_auth_hmacsha512_bytes = an.asm.Z).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_keybytes = function () { - return (an._crypto_auth_hmacsha512_keybytes = an.asm._).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_statebytes = function () { - return (an._crypto_auth_hmacsha512_statebytes = an.asm.$).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_keygen = function () { - return (an._crypto_auth_hmacsha512_keygen = an.asm.aa).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_init = function () { - return (an._crypto_auth_hmacsha512_init = an.asm.ba).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_update = function () { - return (an._crypto_auth_hmacsha512_update = an.asm.ca).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_final = function () { - return (an._crypto_auth_hmacsha512_final = an.asm.da).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512 = function () { - return (an._crypto_auth_hmacsha512 = an.asm.ea).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512_verify = function () { - return (an._crypto_auth_hmacsha512_verify = an.asm.fa).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512256_bytes = function () { - return (an._crypto_auth_hmacsha512256_bytes = an.asm.ga).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512256_keybytes = function () { - return (an._crypto_auth_hmacsha512256_keybytes = an.asm.ha).apply( - null, - arguments, - ) - }), - (an._crypto_auth_hmacsha512256_statebytes = function () { - return (an._crypto_auth_hmacsha512256_statebytes = an.asm.ia).apply( - null, - arguments, - ) - }), - (an._crypto_auth_hmacsha512256_keygen = function () { - return (an._crypto_auth_hmacsha512256_keygen = an.asm.ja).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512256_init = function () { - return (an._crypto_auth_hmacsha512256_init = an.asm.ka).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512256_update = function () { - return (an._crypto_auth_hmacsha512256_update = an.asm.la).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512256_final = function () { - return (an._crypto_auth_hmacsha512256_final = an.asm.ma).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512256 = function () { - return (an._crypto_auth_hmacsha512256 = an.asm.na).apply(null, arguments) - }), - (an._crypto_auth_hmacsha512256_verify = function () { - return (an._crypto_auth_hmacsha512256_verify = an.asm.oa).apply(null, arguments) - }), - (an._crypto_box_seedbytes = function () { - return (an._crypto_box_seedbytes = an.asm.pa).apply(null, arguments) - }), - (an._crypto_box_publickeybytes = function () { - return (an._crypto_box_publickeybytes = an.asm.qa).apply(null, arguments) - }), - (an._crypto_box_secretkeybytes = function () { - return (an._crypto_box_secretkeybytes = an.asm.ra).apply(null, arguments) - }), - (an._crypto_box_beforenmbytes = function () { - return (an._crypto_box_beforenmbytes = an.asm.sa).apply(null, arguments) - }), - (an._crypto_box_noncebytes = function () { - return (an._crypto_box_noncebytes = an.asm.ta).apply(null, arguments) - }), - (an._crypto_box_zerobytes = function () { - return (an._crypto_box_zerobytes = an.asm.ua).apply(null, arguments) - }), - (an._crypto_box_boxzerobytes = function () { - return (an._crypto_box_boxzerobytes = an.asm.va).apply(null, arguments) - }), - (an._crypto_box_macbytes = function () { - return (an._crypto_box_macbytes = an.asm.wa).apply(null, arguments) - }), - (an._crypto_box_messagebytes_max = function () { - return (an._crypto_box_messagebytes_max = an.asm.xa).apply(null, arguments) - }), - (an._crypto_box_primitive = function () { - return (an._crypto_box_primitive = an.asm.ya).apply(null, arguments) - }), - (an._crypto_box_seed_keypair = function () { - return (an._crypto_box_seed_keypair = an.asm.za).apply(null, arguments) - }), - (an._crypto_box_keypair = function () { - return (an._crypto_box_keypair = an.asm.Aa).apply(null, arguments) - }), - (an._crypto_box_beforenm = function () { - return (an._crypto_box_beforenm = an.asm.Ba).apply(null, arguments) - }), - (an._crypto_box_afternm = function () { - return (an._crypto_box_afternm = an.asm.Ca).apply(null, arguments) - }), - (an._crypto_box_open_afternm = function () { - return (an._crypto_box_open_afternm = an.asm.Da).apply(null, arguments) - }), - (an._crypto_box = function () { - return (an._crypto_box = an.asm.Ea).apply(null, arguments) - }), - (an._crypto_box_open = function () { - return (an._crypto_box_open = an.asm.Fa).apply(null, arguments) - }), - (an._crypto_box_detached_afternm = function () { - return (an._crypto_box_detached_afternm = an.asm.Ga).apply(null, arguments) - }), - (an._crypto_box_detached = function () { - return (an._crypto_box_detached = an.asm.Ha).apply(null, arguments) - }), - (an._crypto_box_easy_afternm = function () { - return (an._crypto_box_easy_afternm = an.asm.Ia).apply(null, arguments) - }), - (an._crypto_box_easy = function () { - return (an._crypto_box_easy = an.asm.Ja).apply(null, arguments) - }), - (an._crypto_box_open_detached_afternm = function () { - return (an._crypto_box_open_detached_afternm = an.asm.Ka).apply(null, arguments) - }), - (an._crypto_box_open_detached = function () { - return (an._crypto_box_open_detached = an.asm.La).apply(null, arguments) - }), - (an._crypto_box_open_easy_afternm = function () { - return (an._crypto_box_open_easy_afternm = an.asm.Ma).apply(null, arguments) - }), - (an._crypto_box_open_easy = function () { - return (an._crypto_box_open_easy = an.asm.Na).apply(null, arguments) - }), - (an._crypto_box_seal = function () { - return (an._crypto_box_seal = an.asm.Oa).apply(null, arguments) - }), - (an._crypto_box_seal_open = function () { - return (an._crypto_box_seal_open = an.asm.Pa).apply(null, arguments) - }), - (an._crypto_box_sealbytes = function () { - return (an._crypto_box_sealbytes = an.asm.Qa).apply(null, arguments) - }), - (an._crypto_box_curve25519xsalsa20poly1305_seed_keypair = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_seed_keypair = - an.asm.Ra).apply(null, arguments) - }), - (an._crypto_box_curve25519xsalsa20poly1305_keypair = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_keypair = an.asm.Sa).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_beforenm = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_beforenm = an.asm.Ta).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_afternm = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_afternm = an.asm.Ua).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_open_afternm = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_open_afternm = - an.asm.Va).apply(null, arguments) - }), - (an._crypto_box_curve25519xsalsa20poly1305 = function () { - return (an._crypto_box_curve25519xsalsa20poly1305 = an.asm.Wa).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_open = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_open = an.asm.Xa).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_seedbytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_seedbytes = an.asm.Ya).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_publickeybytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_publickeybytes = - an.asm.Za).apply(null, arguments) - }), - (an._crypto_box_curve25519xsalsa20poly1305_secretkeybytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_secretkeybytes = - an.asm._a).apply(null, arguments) - }), - (an._crypto_box_curve25519xsalsa20poly1305_beforenmbytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_beforenmbytes = - an.asm.$a).apply(null, arguments) - }), - (an._crypto_box_curve25519xsalsa20poly1305_noncebytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_noncebytes = an.asm.ab).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_zerobytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_zerobytes = an.asm.bb).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_boxzerobytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_boxzerobytes = - an.asm.cb).apply(null, arguments) - }), - (an._crypto_box_curve25519xsalsa20poly1305_macbytes = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_macbytes = an.asm.db).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xsalsa20poly1305_messagebytes_max = function () { - return (an._crypto_box_curve25519xsalsa20poly1305_messagebytes_max = - an.asm.eb).apply(null, arguments) - }), - (an._crypto_core_hchacha20 = function () { - return (an._crypto_core_hchacha20 = an.asm.fb).apply(null, arguments) - }), - (an._crypto_core_hchacha20_outputbytes = function () { - return (an._crypto_core_hchacha20_outputbytes = an.asm.gb).apply( - null, - arguments, - ) - }), - (an._crypto_core_hchacha20_inputbytes = function () { - return (an._crypto_core_hchacha20_inputbytes = an.asm.hb).apply(null, arguments) - }), - (an._crypto_core_hchacha20_keybytes = function () { - return (an._crypto_core_hchacha20_keybytes = an.asm.ib).apply(null, arguments) - }), - (an._crypto_core_hchacha20_constbytes = function () { - return (an._crypto_core_hchacha20_constbytes = an.asm.jb).apply(null, arguments) - }), - (an._crypto_core_hsalsa20 = function () { - return (an._crypto_core_hsalsa20 = an.asm.kb).apply(null, arguments) - }), - (an._crypto_core_hsalsa20_outputbytes = function () { - return (an._crypto_core_hsalsa20_outputbytes = an.asm.lb).apply(null, arguments) - }), - (an._crypto_core_hsalsa20_inputbytes = function () { - return (an._crypto_core_hsalsa20_inputbytes = an.asm.mb).apply(null, arguments) - }), - (an._crypto_core_hsalsa20_keybytes = function () { - return (an._crypto_core_hsalsa20_keybytes = an.asm.nb).apply(null, arguments) - }), - (an._crypto_core_hsalsa20_constbytes = function () { - return (an._crypto_core_hsalsa20_constbytes = an.asm.ob).apply(null, arguments) - }), - (an._crypto_core_salsa20 = function () { - return (an._crypto_core_salsa20 = an.asm.pb).apply(null, arguments) - }), - (an._crypto_core_salsa20_outputbytes = function () { - return (an._crypto_core_salsa20_outputbytes = an.asm.qb).apply(null, arguments) - }), - (an._crypto_core_salsa20_inputbytes = function () { - return (an._crypto_core_salsa20_inputbytes = an.asm.rb).apply(null, arguments) - }), - (an._crypto_core_salsa20_keybytes = function () { - return (an._crypto_core_salsa20_keybytes = an.asm.sb).apply(null, arguments) - }), - (an._crypto_core_salsa20_constbytes = function () { - return (an._crypto_core_salsa20_constbytes = an.asm.tb).apply(null, arguments) - }), - (an._crypto_core_salsa2012 = function () { - return (an._crypto_core_salsa2012 = an.asm.ub).apply(null, arguments) - }), - (an._crypto_core_salsa2012_outputbytes = function () { - return (an._crypto_core_salsa2012_outputbytes = an.asm.vb).apply( - null, - arguments, - ) - }), - (an._crypto_core_salsa2012_inputbytes = function () { - return (an._crypto_core_salsa2012_inputbytes = an.asm.wb).apply(null, arguments) - }), - (an._crypto_core_salsa2012_keybytes = function () { - return (an._crypto_core_salsa2012_keybytes = an.asm.xb).apply(null, arguments) - }), - (an._crypto_core_salsa2012_constbytes = function () { - return (an._crypto_core_salsa2012_constbytes = an.asm.yb).apply(null, arguments) - }), - (an._crypto_core_salsa208 = function () { - return (an._crypto_core_salsa208 = an.asm.zb).apply(null, arguments) - }), - (an._crypto_core_salsa208_outputbytes = function () { - return (an._crypto_core_salsa208_outputbytes = an.asm.Ab).apply(null, arguments) - }), - (an._crypto_core_salsa208_inputbytes = function () { - return (an._crypto_core_salsa208_inputbytes = an.asm.Bb).apply(null, arguments) - }), - (an._crypto_core_salsa208_keybytes = function () { - return (an._crypto_core_salsa208_keybytes = an.asm.Cb).apply(null, arguments) - }), - (an._crypto_core_salsa208_constbytes = function () { - return (an._crypto_core_salsa208_constbytes = an.asm.Db).apply(null, arguments) - }), - (an._crypto_generichash_bytes_min = function () { - return (an._crypto_generichash_bytes_min = an.asm.Eb).apply(null, arguments) - }), - (an._crypto_generichash_bytes_max = function () { - return (an._crypto_generichash_bytes_max = an.asm.Fb).apply(null, arguments) - }), - (an._crypto_generichash_bytes = function () { - return (an._crypto_generichash_bytes = an.asm.Gb).apply(null, arguments) - }), - (an._crypto_generichash_keybytes_min = function () { - return (an._crypto_generichash_keybytes_min = an.asm.Hb).apply(null, arguments) - }), - (an._crypto_generichash_keybytes_max = function () { - return (an._crypto_generichash_keybytes_max = an.asm.Ib).apply(null, arguments) - }), - (an._crypto_generichash_keybytes = function () { - return (an._crypto_generichash_keybytes = an.asm.Jb).apply(null, arguments) - }), - (an._crypto_generichash_primitive = function () { - return (an._crypto_generichash_primitive = an.asm.Kb).apply(null, arguments) - }), - (an._crypto_generichash_statebytes = function () { - return (an._crypto_generichash_statebytes = an.asm.Lb).apply(null, arguments) - }), - (an._crypto_generichash = function () { - return (an._crypto_generichash = an.asm.Mb).apply(null, arguments) - }), - (an._crypto_generichash_init = function () { - return (an._crypto_generichash_init = an.asm.Nb).apply(null, arguments) - }), - (an._crypto_generichash_update = function () { - return (an._crypto_generichash_update = an.asm.Ob).apply(null, arguments) - }), - (an._crypto_generichash_final = function () { - return (an._crypto_generichash_final = an.asm.Pb).apply(null, arguments) - }), - (an._crypto_generichash_keygen = function () { - return (an._crypto_generichash_keygen = an.asm.Qb).apply(null, arguments) - }), - (an._crypto_generichash_blake2b_bytes_min = function () { - return (an._crypto_generichash_blake2b_bytes_min = an.asm.Rb).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_bytes_max = function () { - return (an._crypto_generichash_blake2b_bytes_max = an.asm.Sb).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_bytes = function () { - return (an._crypto_generichash_blake2b_bytes = an.asm.Tb).apply(null, arguments) - }), - (an._crypto_generichash_blake2b_keybytes_min = function () { - return (an._crypto_generichash_blake2b_keybytes_min = an.asm.Ub).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_keybytes_max = function () { - return (an._crypto_generichash_blake2b_keybytes_max = an.asm.Vb).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_keybytes = function () { - return (an._crypto_generichash_blake2b_keybytes = an.asm.Wb).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_saltbytes = function () { - return (an._crypto_generichash_blake2b_saltbytes = an.asm.Xb).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_personalbytes = function () { - return (an._crypto_generichash_blake2b_personalbytes = an.asm.Yb).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_statebytes = function () { - return (an._crypto_generichash_blake2b_statebytes = an.asm.Zb).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_keygen = function () { - return (an._crypto_generichash_blake2b_keygen = an.asm._b).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b = function () { - return (an._crypto_generichash_blake2b = an.asm.$b).apply(null, arguments) - }), - (an._crypto_generichash_blake2b_salt_personal = function () { - return (an._crypto_generichash_blake2b_salt_personal = an.asm.ac).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_init = function () { - return (an._crypto_generichash_blake2b_init = an.asm.bc).apply(null, arguments) - }), - (an._crypto_generichash_blake2b_init_salt_personal = function () { - return (an._crypto_generichash_blake2b_init_salt_personal = an.asm.cc).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_update = function () { - return (an._crypto_generichash_blake2b_update = an.asm.dc).apply( - null, - arguments, - ) - }), - (an._crypto_generichash_blake2b_final = function () { - return (an._crypto_generichash_blake2b_final = an.asm.ec).apply(null, arguments) - }), - (an._crypto_hash_bytes = function () { - return (an._crypto_hash_bytes = an.asm.fc).apply(null, arguments) - }), - (an._crypto_hash = function () { - return (an._crypto_hash = an.asm.gc).apply(null, arguments) - }), - (an._crypto_hash_primitive = function () { - return (an._crypto_hash_primitive = an.asm.hc).apply(null, arguments) - }), - (an._crypto_hash_sha256_bytes = function () { - return (an._crypto_hash_sha256_bytes = an.asm.ic).apply(null, arguments) - }), - (an._crypto_hash_sha256_statebytes = function () { - return (an._crypto_hash_sha256_statebytes = an.asm.jc).apply(null, arguments) - }), - (an._crypto_hash_sha256_init = function () { - return (an._crypto_hash_sha256_init = an.asm.kc).apply(null, arguments) - }), - (an._crypto_hash_sha256_update = function () { - return (an._crypto_hash_sha256_update = an.asm.lc).apply(null, arguments) - }), - (an._crypto_hash_sha256_final = function () { - return (an._crypto_hash_sha256_final = an.asm.mc).apply(null, arguments) - }), - (an._crypto_hash_sha256 = function () { - return (an._crypto_hash_sha256 = an.asm.nc).apply(null, arguments) - }), - (an._crypto_hash_sha512_bytes = function () { - return (an._crypto_hash_sha512_bytes = an.asm.oc).apply(null, arguments) - }), - (an._crypto_hash_sha512_statebytes = function () { - return (an._crypto_hash_sha512_statebytes = an.asm.pc).apply(null, arguments) - }), - (an._crypto_hash_sha512_init = function () { - return (an._crypto_hash_sha512_init = an.asm.qc).apply(null, arguments) - }), - (an._crypto_hash_sha512_update = function () { - return (an._crypto_hash_sha512_update = an.asm.rc).apply(null, arguments) - }), - (an._crypto_hash_sha512_final = function () { - return (an._crypto_hash_sha512_final = an.asm.sc).apply(null, arguments) - }), - (an._crypto_hash_sha512 = function () { - return (an._crypto_hash_sha512 = an.asm.tc).apply(null, arguments) - }), - (an._crypto_kdf_blake2b_bytes_min = function () { - return (an._crypto_kdf_blake2b_bytes_min = an.asm.uc).apply(null, arguments) - }), - (an._crypto_kdf_blake2b_bytes_max = function () { - return (an._crypto_kdf_blake2b_bytes_max = an.asm.vc).apply(null, arguments) - }), - (an._crypto_kdf_blake2b_contextbytes = function () { - return (an._crypto_kdf_blake2b_contextbytes = an.asm.wc).apply(null, arguments) - }), - (an._crypto_kdf_blake2b_keybytes = function () { - return (an._crypto_kdf_blake2b_keybytes = an.asm.xc).apply(null, arguments) - }), - (an._crypto_kdf_blake2b_derive_from_key = function () { - return (an._crypto_kdf_blake2b_derive_from_key = an.asm.yc).apply( - null, - arguments, - ) - }), - (an._crypto_kdf_primitive = function () { - return (an._crypto_kdf_primitive = an.asm.zc).apply(null, arguments) - }), - (an._crypto_kdf_bytes_min = function () { - return (an._crypto_kdf_bytes_min = an.asm.Ac).apply(null, arguments) - }), - (an._crypto_kdf_bytes_max = function () { - return (an._crypto_kdf_bytes_max = an.asm.Bc).apply(null, arguments) - }), - (an._crypto_kdf_contextbytes = function () { - return (an._crypto_kdf_contextbytes = an.asm.Cc).apply(null, arguments) - }), - (an._crypto_kdf_keybytes = function () { - return (an._crypto_kdf_keybytes = an.asm.Dc).apply(null, arguments) - }), - (an._crypto_kdf_derive_from_key = function () { - return (an._crypto_kdf_derive_from_key = an.asm.Ec).apply(null, arguments) - }), - (an._crypto_kdf_keygen = function () { - return (an._crypto_kdf_keygen = an.asm.Fc).apply(null, arguments) - }), - (an._crypto_kx_seed_keypair = function () { - return (an._crypto_kx_seed_keypair = an.asm.Gc).apply(null, arguments) - }), - (an._crypto_kx_keypair = function () { - return (an._crypto_kx_keypair = an.asm.Hc).apply(null, arguments) - }), - (an._crypto_kx_client_session_keys = function () { - return (an._crypto_kx_client_session_keys = an.asm.Ic).apply(null, arguments) - }), - (an._crypto_kx_server_session_keys = function () { - return (an._crypto_kx_server_session_keys = an.asm.Jc).apply(null, arguments) - }), - (an._crypto_kx_publickeybytes = function () { - return (an._crypto_kx_publickeybytes = an.asm.Kc).apply(null, arguments) - }), - (an._crypto_kx_secretkeybytes = function () { - return (an._crypto_kx_secretkeybytes = an.asm.Lc).apply(null, arguments) - }), - (an._crypto_kx_seedbytes = function () { - return (an._crypto_kx_seedbytes = an.asm.Mc).apply(null, arguments) - }), - (an._crypto_kx_sessionkeybytes = function () { - return (an._crypto_kx_sessionkeybytes = an.asm.Nc).apply(null, arguments) - }), - (an._crypto_kx_primitive = function () { - return (an._crypto_kx_primitive = an.asm.Oc).apply(null, arguments) - }), - (an._crypto_onetimeauth_statebytes = function () { - return (an._crypto_onetimeauth_statebytes = an.asm.Pc).apply(null, arguments) - }), - (an._crypto_onetimeauth_bytes = function () { - return (an._crypto_onetimeauth_bytes = an.asm.Qc).apply(null, arguments) - }), - (an._crypto_onetimeauth_keybytes = function () { - return (an._crypto_onetimeauth_keybytes = an.asm.Rc).apply(null, arguments) - }), - (an._crypto_onetimeauth = function () { - return (an._crypto_onetimeauth = an.asm.Sc).apply(null, arguments) - }), - (an._crypto_onetimeauth_verify = function () { - return (an._crypto_onetimeauth_verify = an.asm.Tc).apply(null, arguments) - }), - (an._crypto_onetimeauth_init = function () { - return (an._crypto_onetimeauth_init = an.asm.Uc).apply(null, arguments) - }), - (an._crypto_onetimeauth_update = function () { - return (an._crypto_onetimeauth_update = an.asm.Vc).apply(null, arguments) - }), - (an._crypto_onetimeauth_final = function () { - return (an._crypto_onetimeauth_final = an.asm.Wc).apply(null, arguments) - }), - (an._crypto_onetimeauth_primitive = function () { - return (an._crypto_onetimeauth_primitive = an.asm.Xc).apply(null, arguments) - }), - (an._crypto_onetimeauth_keygen = function () { - return (an._crypto_onetimeauth_keygen = an.asm.Yc).apply(null, arguments) - }), - (an._crypto_onetimeauth_poly1305 = function () { - return (an._crypto_onetimeauth_poly1305 = an.asm.Zc).apply(null, arguments) - }), - (an._crypto_onetimeauth_poly1305_verify = function () { - return (an._crypto_onetimeauth_poly1305_verify = an.asm._c).apply( - null, - arguments, - ) - }), - (an._crypto_onetimeauth_poly1305_init = function () { - return (an._crypto_onetimeauth_poly1305_init = an.asm.$c).apply(null, arguments) - }), - (an._crypto_onetimeauth_poly1305_update = function () { - return (an._crypto_onetimeauth_poly1305_update = an.asm.ad).apply( - null, - arguments, - ) - }), - (an._crypto_onetimeauth_poly1305_final = function () { - return (an._crypto_onetimeauth_poly1305_final = an.asm.bd).apply( - null, - arguments, - ) - }), - (an._crypto_onetimeauth_poly1305_bytes = function () { - return (an._crypto_onetimeauth_poly1305_bytes = an.asm.cd).apply( - null, - arguments, - ) - }), - (an._crypto_onetimeauth_poly1305_keybytes = function () { - return (an._crypto_onetimeauth_poly1305_keybytes = an.asm.dd).apply( - null, - arguments, - ) - }), - (an._crypto_onetimeauth_poly1305_statebytes = function () { - return (an._crypto_onetimeauth_poly1305_statebytes = an.asm.ed).apply( - null, - arguments, - ) - }), - (an._crypto_onetimeauth_poly1305_keygen = function () { - return (an._crypto_onetimeauth_poly1305_keygen = an.asm.fd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_alg_argon2i13 = function () { - return (an._crypto_pwhash_argon2i_alg_argon2i13 = an.asm.gd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_bytes_min = function () { - return (an._crypto_pwhash_argon2i_bytes_min = an.asm.hd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_bytes_max = function () { - return (an._crypto_pwhash_argon2i_bytes_max = an.asm.id).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_passwd_min = function () { - return (an._crypto_pwhash_argon2i_passwd_min = an.asm.jd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_passwd_max = function () { - return (an._crypto_pwhash_argon2i_passwd_max = an.asm.kd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_saltbytes = function () { - return (an._crypto_pwhash_argon2i_saltbytes = an.asm.ld).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_strbytes = function () { - return (an._crypto_pwhash_argon2i_strbytes = an.asm.md).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_strprefix = function () { - return (an._crypto_pwhash_argon2i_strprefix = an.asm.nd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_opslimit_min = function () { - return (an._crypto_pwhash_argon2i_opslimit_min = an.asm.od).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_opslimit_max = function () { - return (an._crypto_pwhash_argon2i_opslimit_max = an.asm.pd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_memlimit_min = function () { - return (an._crypto_pwhash_argon2i_memlimit_min = an.asm.qd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_memlimit_max = function () { - return (an._crypto_pwhash_argon2i_memlimit_max = an.asm.rd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_opslimit_interactive = function () { - return (an._crypto_pwhash_argon2i_opslimit_interactive = an.asm.sd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_memlimit_interactive = function () { - return (an._crypto_pwhash_argon2i_memlimit_interactive = an.asm.td).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_opslimit_moderate = function () { - return (an._crypto_pwhash_argon2i_opslimit_moderate = an.asm.ud).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_memlimit_moderate = function () { - return (an._crypto_pwhash_argon2i_memlimit_moderate = an.asm.vd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_opslimit_sensitive = function () { - return (an._crypto_pwhash_argon2i_opslimit_sensitive = an.asm.wd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i_memlimit_sensitive = function () { - return (an._crypto_pwhash_argon2i_memlimit_sensitive = an.asm.xd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2i = function () { - return (an._crypto_pwhash_argon2i = an.asm.yd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_str = function () { - return (an._crypto_pwhash_argon2i_str = an.asm.zd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_str_verify = function () { - return (an._crypto_pwhash_argon2i_str_verify = an.asm.Ad).apply(null, arguments) - }), - (an._crypto_pwhash_argon2i_str_needs_rehash = function () { - return (an._crypto_pwhash_argon2i_str_needs_rehash = an.asm.Bd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_str_needs_rehash = function () { - return (an._crypto_pwhash_argon2id_str_needs_rehash = an.asm.Cd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_alg_argon2id13 = function () { - return (an._crypto_pwhash_argon2id_alg_argon2id13 = an.asm.Dd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_bytes_min = function () { - return (an._crypto_pwhash_argon2id_bytes_min = an.asm.Ed).apply(null, arguments) - }), - (an._crypto_pwhash_argon2id_bytes_max = function () { - return (an._crypto_pwhash_argon2id_bytes_max = an.asm.Fd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2id_passwd_min = function () { - return (an._crypto_pwhash_argon2id_passwd_min = an.asm.Gd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_passwd_max = function () { - return (an._crypto_pwhash_argon2id_passwd_max = an.asm.Hd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_saltbytes = function () { - return (an._crypto_pwhash_argon2id_saltbytes = an.asm.Id).apply(null, arguments) - }), - (an._crypto_pwhash_argon2id_strbytes = function () { - return (an._crypto_pwhash_argon2id_strbytes = an.asm.Jd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2id_strprefix = function () { - return (an._crypto_pwhash_argon2id_strprefix = an.asm.Kd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2id_opslimit_min = function () { - return (an._crypto_pwhash_argon2id_opslimit_min = an.asm.Ld).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_opslimit_max = function () { - return (an._crypto_pwhash_argon2id_opslimit_max = an.asm.Md).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_memlimit_min = function () { - return (an._crypto_pwhash_argon2id_memlimit_min = an.asm.Nd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_memlimit_max = function () { - return (an._crypto_pwhash_argon2id_memlimit_max = an.asm.Od).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_opslimit_interactive = function () { - return (an._crypto_pwhash_argon2id_opslimit_interactive = an.asm.Pd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_memlimit_interactive = function () { - return (an._crypto_pwhash_argon2id_memlimit_interactive = an.asm.Qd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_opslimit_moderate = function () { - return (an._crypto_pwhash_argon2id_opslimit_moderate = an.asm.Rd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_memlimit_moderate = function () { - return (an._crypto_pwhash_argon2id_memlimit_moderate = an.asm.Sd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_opslimit_sensitive = function () { - return (an._crypto_pwhash_argon2id_opslimit_sensitive = an.asm.Td).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id_memlimit_sensitive = function () { - return (an._crypto_pwhash_argon2id_memlimit_sensitive = an.asm.Ud).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_argon2id = function () { - return (an._crypto_pwhash_argon2id = an.asm.Vd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2id_str = function () { - return (an._crypto_pwhash_argon2id_str = an.asm.Wd).apply(null, arguments) - }), - (an._crypto_pwhash_argon2id_str_verify = function () { - return (an._crypto_pwhash_argon2id_str_verify = an.asm.Xd).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_alg_argon2i13 = function () { - return (an._crypto_pwhash_alg_argon2i13 = an.asm.Yd).apply(null, arguments) - }), - (an._crypto_pwhash_alg_argon2id13 = function () { - return (an._crypto_pwhash_alg_argon2id13 = an.asm.Zd).apply(null, arguments) - }), - (an._crypto_pwhash_alg_default = function () { - return (an._crypto_pwhash_alg_default = an.asm._d).apply(null, arguments) - }), - (an._crypto_pwhash_bytes_min = function () { - return (an._crypto_pwhash_bytes_min = an.asm.$d).apply(null, arguments) - }), - (an._crypto_pwhash_bytes_max = function () { - return (an._crypto_pwhash_bytes_max = an.asm.ae).apply(null, arguments) - }), - (an._crypto_pwhash_passwd_min = function () { - return (an._crypto_pwhash_passwd_min = an.asm.be).apply(null, arguments) - }), - (an._crypto_pwhash_passwd_max = function () { - return (an._crypto_pwhash_passwd_max = an.asm.ce).apply(null, arguments) - }), - (an._crypto_pwhash_saltbytes = function () { - return (an._crypto_pwhash_saltbytes = an.asm.de).apply(null, arguments) - }), - (an._crypto_pwhash_strbytes = function () { - return (an._crypto_pwhash_strbytes = an.asm.ee).apply(null, arguments) - }), - (an._crypto_pwhash_strprefix = function () { - return (an._crypto_pwhash_strprefix = an.asm.fe).apply(null, arguments) - }), - (an._crypto_pwhash_opslimit_min = function () { - return (an._crypto_pwhash_opslimit_min = an.asm.ge).apply(null, arguments) - }), - (an._crypto_pwhash_opslimit_max = function () { - return (an._crypto_pwhash_opslimit_max = an.asm.he).apply(null, arguments) - }), - (an._crypto_pwhash_memlimit_min = function () { - return (an._crypto_pwhash_memlimit_min = an.asm.ie).apply(null, arguments) - }), - (an._crypto_pwhash_memlimit_max = function () { - return (an._crypto_pwhash_memlimit_max = an.asm.je).apply(null, arguments) - }), - (an._crypto_pwhash_opslimit_interactive = function () { - return (an._crypto_pwhash_opslimit_interactive = an.asm.ke).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_memlimit_interactive = function () { - return (an._crypto_pwhash_memlimit_interactive = an.asm.le).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_opslimit_moderate = function () { - return (an._crypto_pwhash_opslimit_moderate = an.asm.me).apply(null, arguments) - }), - (an._crypto_pwhash_memlimit_moderate = function () { - return (an._crypto_pwhash_memlimit_moderate = an.asm.ne).apply(null, arguments) - }), - (an._crypto_pwhash_opslimit_sensitive = function () { - return (an._crypto_pwhash_opslimit_sensitive = an.asm.oe).apply(null, arguments) - }), - (an._crypto_pwhash_memlimit_sensitive = function () { - return (an._crypto_pwhash_memlimit_sensitive = an.asm.pe).apply(null, arguments) - }), - (an._crypto_pwhash = function () { - return (an._crypto_pwhash = an.asm.qe).apply(null, arguments) - }), - (an._crypto_pwhash_str = function () { - return (an._crypto_pwhash_str = an.asm.re).apply(null, arguments) - }), - (an._crypto_pwhash_str_alg = function () { - return (an._crypto_pwhash_str_alg = an.asm.se).apply(null, arguments) - }), - (an._crypto_pwhash_str_verify = function () { - return (an._crypto_pwhash_str_verify = an.asm.te).apply(null, arguments) - }), - (an._crypto_pwhash_str_needs_rehash = function () { - return (an._crypto_pwhash_str_needs_rehash = an.asm.ue).apply(null, arguments) - }), - (an._crypto_pwhash_primitive = function () { - return (an._crypto_pwhash_primitive = an.asm.ve).apply(null, arguments) - }), - (an._crypto_scalarmult_primitive = function () { - return (an._crypto_scalarmult_primitive = an.asm.we).apply(null, arguments) - }), - (an._crypto_scalarmult_base = function () { - return (an._crypto_scalarmult_base = an.asm.xe).apply(null, arguments) - }), - (an._crypto_scalarmult = function () { - return (an._crypto_scalarmult = an.asm.ye).apply(null, arguments) - }), - (an._crypto_scalarmult_bytes = function () { - return (an._crypto_scalarmult_bytes = an.asm.ze).apply(null, arguments) - }), - (an._crypto_scalarmult_scalarbytes = function () { - return (an._crypto_scalarmult_scalarbytes = an.asm.Ae).apply(null, arguments) - }), - (an._crypto_scalarmult_curve25519 = function () { - return (an._crypto_scalarmult_curve25519 = an.asm.Be).apply(null, arguments) - }), - (an._crypto_scalarmult_curve25519_base = function () { - return (an._crypto_scalarmult_curve25519_base = an.asm.Ce).apply( - null, - arguments, - ) - }), - (an._crypto_scalarmult_curve25519_bytes = function () { - return (an._crypto_scalarmult_curve25519_bytes = an.asm.De).apply( - null, - arguments, - ) - }), - (an._crypto_scalarmult_curve25519_scalarbytes = function () { - return (an._crypto_scalarmult_curve25519_scalarbytes = an.asm.Ee).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_keybytes = function () { - return (an._crypto_secretbox_keybytes = an.asm.Fe).apply(null, arguments) - }), - (an._crypto_secretbox_noncebytes = function () { - return (an._crypto_secretbox_noncebytes = an.asm.Ge).apply(null, arguments) - }), - (an._crypto_secretbox_zerobytes = function () { - return (an._crypto_secretbox_zerobytes = an.asm.He).apply(null, arguments) - }), - (an._crypto_secretbox_boxzerobytes = function () { - return (an._crypto_secretbox_boxzerobytes = an.asm.Ie).apply(null, arguments) - }), - (an._crypto_secretbox_macbytes = function () { - return (an._crypto_secretbox_macbytes = an.asm.Je).apply(null, arguments) - }), - (an._crypto_secretbox_messagebytes_max = function () { - return (an._crypto_secretbox_messagebytes_max = an.asm.Ke).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_primitive = function () { - return (an._crypto_secretbox_primitive = an.asm.Le).apply(null, arguments) - }), - (an._crypto_secretbox = function () { - return (an._crypto_secretbox = an.asm.Me).apply(null, arguments) - }), - (an._crypto_secretbox_open = function () { - return (an._crypto_secretbox_open = an.asm.Ne).apply(null, arguments) - }), - (an._crypto_secretbox_keygen = function () { - return (an._crypto_secretbox_keygen = an.asm.Oe).apply(null, arguments) - }), - (an._crypto_secretbox_detached = function () { - return (an._crypto_secretbox_detached = an.asm.Pe).apply(null, arguments) - }), - (an._crypto_secretbox_easy = function () { - return (an._crypto_secretbox_easy = an.asm.Qe).apply(null, arguments) - }), - (an._crypto_secretbox_open_detached = function () { - return (an._crypto_secretbox_open_detached = an.asm.Re).apply(null, arguments) - }), - (an._crypto_secretbox_open_easy = function () { - return (an._crypto_secretbox_open_easy = an.asm.Se).apply(null, arguments) - }), - (an._crypto_secretbox_xsalsa20poly1305 = function () { - return (an._crypto_secretbox_xsalsa20poly1305 = an.asm.Te).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xsalsa20poly1305_open = function () { - return (an._crypto_secretbox_xsalsa20poly1305_open = an.asm.Ue).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xsalsa20poly1305_keybytes = function () { - return (an._crypto_secretbox_xsalsa20poly1305_keybytes = an.asm.Ve).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xsalsa20poly1305_noncebytes = function () { - return (an._crypto_secretbox_xsalsa20poly1305_noncebytes = an.asm.We).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xsalsa20poly1305_zerobytes = function () { - return (an._crypto_secretbox_xsalsa20poly1305_zerobytes = an.asm.Xe).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xsalsa20poly1305_boxzerobytes = function () { - return (an._crypto_secretbox_xsalsa20poly1305_boxzerobytes = an.asm.Ye).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xsalsa20poly1305_macbytes = function () { - return (an._crypto_secretbox_xsalsa20poly1305_macbytes = an.asm.Ze).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xsalsa20poly1305_messagebytes_max = function () { - return (an._crypto_secretbox_xsalsa20poly1305_messagebytes_max = - an.asm._e).apply(null, arguments) - }), - (an._crypto_secretbox_xsalsa20poly1305_keygen = function () { - return (an._crypto_secretbox_xsalsa20poly1305_keygen = an.asm.$e).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_keygen = function () { - return (an._crypto_secretstream_xchacha20poly1305_keygen = an.asm.af).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_init_push = function () { - return (an._crypto_secretstream_xchacha20poly1305_init_push = an.asm.bf).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_init_pull = function () { - return (an._crypto_secretstream_xchacha20poly1305_init_pull = an.asm.cf).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_rekey = function () { - return (an._crypto_secretstream_xchacha20poly1305_rekey = an.asm.df).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_push = function () { - return (an._crypto_secretstream_xchacha20poly1305_push = an.asm.ef).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_pull = function () { - return (an._crypto_secretstream_xchacha20poly1305_pull = an.asm.ff).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_statebytes = function () { - return (an._crypto_secretstream_xchacha20poly1305_statebytes = an.asm.gf).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_abytes = function () { - return (an._crypto_secretstream_xchacha20poly1305_abytes = an.asm.hf).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_headerbytes = function () { - return (an._crypto_secretstream_xchacha20poly1305_headerbytes = - an.asm.jf).apply(null, arguments) - }), - (an._crypto_secretstream_xchacha20poly1305_keybytes = function () { - return (an._crypto_secretstream_xchacha20poly1305_keybytes = an.asm.kf).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_messagebytes_max = function () { - return (an._crypto_secretstream_xchacha20poly1305_messagebytes_max = - an.asm.lf).apply(null, arguments) - }), - (an._crypto_secretstream_xchacha20poly1305_tag_message = function () { - return (an._crypto_secretstream_xchacha20poly1305_tag_message = - an.asm.mf).apply(null, arguments) - }), - (an._crypto_secretstream_xchacha20poly1305_tag_push = function () { - return (an._crypto_secretstream_xchacha20poly1305_tag_push = an.asm.nf).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_tag_rekey = function () { - return (an._crypto_secretstream_xchacha20poly1305_tag_rekey = an.asm.of).apply( - null, - arguments, - ) - }), - (an._crypto_secretstream_xchacha20poly1305_tag_final = function () { - return (an._crypto_secretstream_xchacha20poly1305_tag_final = an.asm.pf).apply( - null, - arguments, - ) - }), - (an._crypto_shorthash_bytes = function () { - return (an._crypto_shorthash_bytes = an.asm.qf).apply(null, arguments) - }), - (an._crypto_shorthash_keybytes = function () { - return (an._crypto_shorthash_keybytes = an.asm.rf).apply(null, arguments) - }), - (an._crypto_shorthash_primitive = function () { - return (an._crypto_shorthash_primitive = an.asm.sf).apply(null, arguments) - }), - (an._crypto_shorthash = function () { - return (an._crypto_shorthash = an.asm.tf).apply(null, arguments) - }), - (an._crypto_shorthash_keygen = function () { - return (an._crypto_shorthash_keygen = an.asm.uf).apply(null, arguments) - }), - (an._crypto_shorthash_siphash24_bytes = function () { - return (an._crypto_shorthash_siphash24_bytes = an.asm.vf).apply(null, arguments) - }), - (an._crypto_shorthash_siphash24_keybytes = function () { - return (an._crypto_shorthash_siphash24_keybytes = an.asm.wf).apply( - null, - arguments, - ) - }), - (an._crypto_shorthash_siphash24 = function () { - return (an._crypto_shorthash_siphash24 = an.asm.xf).apply(null, arguments) - }), - (an._crypto_sign_statebytes = function () { - return (an._crypto_sign_statebytes = an.asm.yf).apply(null, arguments) - }), - (an._crypto_sign_bytes = function () { - return (an._crypto_sign_bytes = an.asm.zf).apply(null, arguments) - }), - (an._crypto_sign_seedbytes = function () { - return (an._crypto_sign_seedbytes = an.asm.Af).apply(null, arguments) - }), - (an._crypto_sign_publickeybytes = function () { - return (an._crypto_sign_publickeybytes = an.asm.Bf).apply(null, arguments) - }), - (an._crypto_sign_secretkeybytes = function () { - return (an._crypto_sign_secretkeybytes = an.asm.Cf).apply(null, arguments) - }), - (an._crypto_sign_messagebytes_max = function () { - return (an._crypto_sign_messagebytes_max = an.asm.Df).apply(null, arguments) - }), - (an._crypto_sign_primitive = function () { - return (an._crypto_sign_primitive = an.asm.Ef).apply(null, arguments) - }), - (an._crypto_sign_seed_keypair = function () { - return (an._crypto_sign_seed_keypair = an.asm.Ff).apply(null, arguments) - }), - (an._crypto_sign_keypair = function () { - return (an._crypto_sign_keypair = an.asm.Gf).apply(null, arguments) - }), - (an._crypto_sign = function () { - return (an._crypto_sign = an.asm.Hf).apply(null, arguments) - }), - (an._crypto_sign_open = function () { - return (an._crypto_sign_open = an.asm.If).apply(null, arguments) - }), - (an._crypto_sign_detached = function () { - return (an._crypto_sign_detached = an.asm.Jf).apply(null, arguments) - }), - (an._crypto_sign_verify_detached = function () { - return (an._crypto_sign_verify_detached = an.asm.Kf).apply(null, arguments) - }), - (an._crypto_sign_init = function () { - return (an._crypto_sign_init = an.asm.Lf).apply(null, arguments) - }), - (an._crypto_sign_update = function () { - return (an._crypto_sign_update = an.asm.Mf).apply(null, arguments) - }), - (an._crypto_sign_final_create = function () { - return (an._crypto_sign_final_create = an.asm.Nf).apply(null, arguments) - }), - (an._crypto_sign_final_verify = function () { - return (an._crypto_sign_final_verify = an.asm.Of).apply(null, arguments) - }), - (an._crypto_sign_ed25519ph_statebytes = function () { - return (an._crypto_sign_ed25519ph_statebytes = an.asm.Pf).apply(null, arguments) - }), - (an._crypto_sign_ed25519_bytes = function () { - return (an._crypto_sign_ed25519_bytes = an.asm.Qf).apply(null, arguments) - }), - (an._crypto_sign_ed25519_seedbytes = function () { - return (an._crypto_sign_ed25519_seedbytes = an.asm.Rf).apply(null, arguments) - }), - (an._crypto_sign_ed25519_publickeybytes = function () { - return (an._crypto_sign_ed25519_publickeybytes = an.asm.Sf).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519_secretkeybytes = function () { - return (an._crypto_sign_ed25519_secretkeybytes = an.asm.Tf).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519_messagebytes_max = function () { - return (an._crypto_sign_ed25519_messagebytes_max = an.asm.Uf).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519_sk_to_seed = function () { - return (an._crypto_sign_ed25519_sk_to_seed = an.asm.Vf).apply(null, arguments) - }), - (an._crypto_sign_ed25519_sk_to_pk = function () { - return (an._crypto_sign_ed25519_sk_to_pk = an.asm.Wf).apply(null, arguments) - }), - (an._crypto_sign_ed25519ph_init = function () { - return (an._crypto_sign_ed25519ph_init = an.asm.Xf).apply(null, arguments) - }), - (an._crypto_sign_ed25519ph_update = function () { - return (an._crypto_sign_ed25519ph_update = an.asm.Yf).apply(null, arguments) - }), - (an._crypto_sign_ed25519ph_final_create = function () { - return (an._crypto_sign_ed25519ph_final_create = an.asm.Zf).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519ph_final_verify = function () { - return (an._crypto_sign_ed25519ph_final_verify = an.asm._f).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519_seed_keypair = function () { - return (an._crypto_sign_ed25519_seed_keypair = an.asm.$f).apply(null, arguments) - }), - (an._crypto_sign_ed25519_keypair = function () { - return (an._crypto_sign_ed25519_keypair = an.asm.ag).apply(null, arguments) - }), - (an._crypto_sign_ed25519_pk_to_curve25519 = function () { - return (an._crypto_sign_ed25519_pk_to_curve25519 = an.asm.bg).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519_sk_to_curve25519 = function () { - return (an._crypto_sign_ed25519_sk_to_curve25519 = an.asm.cg).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519_verify_detached = function () { - return (an._crypto_sign_ed25519_verify_detached = an.asm.dg).apply( - null, - arguments, - ) - }), - (an._crypto_sign_ed25519_open = function () { - return (an._crypto_sign_ed25519_open = an.asm.eg).apply(null, arguments) - }), - (an._crypto_sign_ed25519_detached = function () { - return (an._crypto_sign_ed25519_detached = an.asm.fg).apply(null, arguments) - }), - (an._crypto_sign_ed25519 = function () { - return (an._crypto_sign_ed25519 = an.asm.gg).apply(null, arguments) - }), - (an._crypto_stream_chacha20_keybytes = function () { - return (an._crypto_stream_chacha20_keybytes = an.asm.hg).apply(null, arguments) - }), - (an._crypto_stream_chacha20_noncebytes = function () { - return (an._crypto_stream_chacha20_noncebytes = an.asm.ig).apply( - null, - arguments, - ) - }), - (an._crypto_stream_chacha20_messagebytes_max = function () { - return (an._crypto_stream_chacha20_messagebytes_max = an.asm.jg).apply( - null, - arguments, - ) - }), - (an._crypto_stream_chacha20_ietf_keybytes = function () { - return (an._crypto_stream_chacha20_ietf_keybytes = an.asm.kg).apply( - null, - arguments, - ) - }), - (an._crypto_stream_chacha20_ietf_noncebytes = function () { - return (an._crypto_stream_chacha20_ietf_noncebytes = an.asm.lg).apply( - null, - arguments, - ) - }), - (an._crypto_stream_chacha20_ietf_messagebytes_max = function () { - return (an._crypto_stream_chacha20_ietf_messagebytes_max = an.asm.mg).apply( - null, - arguments, - ) - }), - (an._crypto_stream_chacha20 = function () { - return (an._crypto_stream_chacha20 = an.asm.ng).apply(null, arguments) - }), - (an._crypto_stream_chacha20_xor_ic = function () { - return (an._crypto_stream_chacha20_xor_ic = an.asm.og).apply(null, arguments) - }), - (an._crypto_stream_chacha20_xor = function () { - return (an._crypto_stream_chacha20_xor = an.asm.pg).apply(null, arguments) - }), - (an._crypto_stream_chacha20_ietf = function () { - return (an._crypto_stream_chacha20_ietf = an.asm.qg).apply(null, arguments) - }), - (an._crypto_stream_chacha20_ietf_xor_ic = function () { - return (an._crypto_stream_chacha20_ietf_xor_ic = an.asm.rg).apply( - null, - arguments, - ) - }), - (an._crypto_stream_chacha20_ietf_xor = function () { - return (an._crypto_stream_chacha20_ietf_xor = an.asm.sg).apply(null, arguments) - }), - (an._crypto_stream_chacha20_ietf_keygen = function () { - return (an._crypto_stream_chacha20_ietf_keygen = an.asm.tg).apply( - null, - arguments, - ) - }), - (an._crypto_stream_chacha20_keygen = function () { - return (an._crypto_stream_chacha20_keygen = an.asm.ug).apply(null, arguments) - }), - (an._crypto_stream_keybytes = function () { - return (an._crypto_stream_keybytes = an.asm.vg).apply(null, arguments) - }), - (an._crypto_stream_noncebytes = function () { - return (an._crypto_stream_noncebytes = an.asm.wg).apply(null, arguments) - }), - (an._crypto_stream_messagebytes_max = function () { - return (an._crypto_stream_messagebytes_max = an.asm.xg).apply(null, arguments) - }), - (an._crypto_stream_primitive = function () { - return (an._crypto_stream_primitive = an.asm.yg).apply(null, arguments) - }), - (an._crypto_stream = function () { - return (an._crypto_stream = an.asm.zg).apply(null, arguments) - }), - (an._crypto_stream_xor = function () { - return (an._crypto_stream_xor = an.asm.Ag).apply(null, arguments) - }), - (an._crypto_stream_keygen = function () { - return (an._crypto_stream_keygen = an.asm.Bg).apply(null, arguments) - }), - (an._crypto_stream_salsa20_keybytes = function () { - return (an._crypto_stream_salsa20_keybytes = an.asm.Cg).apply(null, arguments) - }), - (an._crypto_stream_salsa20_noncebytes = function () { - return (an._crypto_stream_salsa20_noncebytes = an.asm.Dg).apply(null, arguments) - }), - (an._crypto_stream_salsa20_messagebytes_max = function () { - return (an._crypto_stream_salsa20_messagebytes_max = an.asm.Eg).apply( - null, - arguments, - ) - }), - (an._crypto_stream_salsa20 = function () { - return (an._crypto_stream_salsa20 = an.asm.Fg).apply(null, arguments) - }), - (an._crypto_stream_salsa20_xor_ic = function () { - return (an._crypto_stream_salsa20_xor_ic = an.asm.Gg).apply(null, arguments) - }), - (an._crypto_stream_salsa20_xor = function () { - return (an._crypto_stream_salsa20_xor = an.asm.Hg).apply(null, arguments) - }), - (an._crypto_stream_salsa20_keygen = function () { - return (an._crypto_stream_salsa20_keygen = an.asm.Ig).apply(null, arguments) - }), - (an._crypto_stream_xsalsa20 = function () { - return (an._crypto_stream_xsalsa20 = an.asm.Jg).apply(null, arguments) - }), - (an._crypto_stream_xsalsa20_xor_ic = function () { - return (an._crypto_stream_xsalsa20_xor_ic = an.asm.Kg).apply(null, arguments) - }), - (an._crypto_stream_xsalsa20_xor = function () { - return (an._crypto_stream_xsalsa20_xor = an.asm.Lg).apply(null, arguments) - }), - (an._crypto_stream_xsalsa20_keybytes = function () { - return (an._crypto_stream_xsalsa20_keybytes = an.asm.Mg).apply(null, arguments) - }), - (an._crypto_stream_xsalsa20_noncebytes = function () { - return (an._crypto_stream_xsalsa20_noncebytes = an.asm.Ng).apply( - null, - arguments, - ) - }), - (an._crypto_stream_xsalsa20_messagebytes_max = function () { - return (an._crypto_stream_xsalsa20_messagebytes_max = an.asm.Og).apply( - null, - arguments, - ) - }), - (an._crypto_stream_xsalsa20_keygen = function () { - return (an._crypto_stream_xsalsa20_keygen = an.asm.Pg).apply(null, arguments) - }), - (an._crypto_verify_16_bytes = function () { - return (an._crypto_verify_16_bytes = an.asm.Qg).apply(null, arguments) - }), - (an._crypto_verify_32_bytes = function () { - return (an._crypto_verify_32_bytes = an.asm.Rg).apply(null, arguments) - }), - (an._crypto_verify_64_bytes = function () { - return (an._crypto_verify_64_bytes = an.asm.Sg).apply(null, arguments) - }), - (an._crypto_verify_16 = function () { - return (an._crypto_verify_16 = an.asm.Tg).apply(null, arguments) - }), - (an._crypto_verify_32 = function () { - return (an._crypto_verify_32 = an.asm.Ug).apply(null, arguments) - }), - (an._crypto_verify_64 = function () { - return (an._crypto_verify_64 = an.asm.Vg).apply(null, arguments) - }), - (an._randombytes_implementation_name = function () { - return (an._randombytes_implementation_name = an.asm.Wg).apply(null, arguments) - }), - (an._randombytes_random = function () { - return (an._randombytes_random = an.asm.Xg).apply(null, arguments) - }), - (an._randombytes_stir = function () { - return (an._randombytes_stir = an.asm.Yg).apply(null, arguments) - }), - (an._randombytes_uniform = function () { - return (an._randombytes_uniform = an.asm.Zg).apply(null, arguments) - }), - (an._randombytes_buf = function () { - return (an._randombytes_buf = an.asm._g).apply(null, arguments) - }), - (an._randombytes_buf_deterministic = function () { - return (an._randombytes_buf_deterministic = an.asm.$g).apply(null, arguments) - }), - (an._randombytes_seedbytes = function () { - return (an._randombytes_seedbytes = an.asm.ah).apply(null, arguments) - }), - (an._randombytes_close = function () { - return (an._randombytes_close = an.asm.bh).apply(null, arguments) - }), - (an._randombytes = function () { - return (an._randombytes = an.asm.ch).apply(null, arguments) - }), - (an._sodium_bin2hex = function () { - return (an._sodium_bin2hex = an.asm.dh).apply(null, arguments) - }), - (an._sodium_hex2bin = function () { - return (an._sodium_hex2bin = an.asm.eh).apply(null, arguments) - }), - (an._sodium_base64_encoded_len = function () { - return (an._sodium_base64_encoded_len = an.asm.fh).apply(null, arguments) - }), - (an._sodium_bin2base64 = function () { - return (an._sodium_bin2base64 = an.asm.gh).apply(null, arguments) - }), - (an._sodium_base642bin = function () { - return (an._sodium_base642bin = an.asm.hh).apply(null, arguments) - }), - (an._sodium_init = function () { - return (an._sodium_init = an.asm.ih).apply(null, arguments) - }), - (an._sodium_pad = function () { - return (an._sodium_pad = an.asm.jh).apply(null, arguments) - }), - (an._sodium_unpad = function () { - return (an._sodium_unpad = an.asm.kh).apply(null, arguments) - }), - (an._sodium_version_string = function () { - return (an._sodium_version_string = an.asm.lh).apply(null, arguments) - }), - (an._sodium_library_version_major = function () { - return (an._sodium_library_version_major = an.asm.mh).apply(null, arguments) - }), - (an._sodium_library_version_minor = function () { - return (an._sodium_library_version_minor = an.asm.nh).apply(null, arguments) - }), - (an._sodium_library_minimal = function () { - return (an._sodium_library_minimal = an.asm.oh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_seed_keypair = function () { - return (an._crypto_box_curve25519xchacha20poly1305_seed_keypair = - an.asm.ph).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_keypair = function () { - return (an._crypto_box_curve25519xchacha20poly1305_keypair = an.asm.qh).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_beforenm = function () { - return (an._crypto_box_curve25519xchacha20poly1305_beforenm = an.asm.rh).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_detached_afternm = function () { - return (an._crypto_box_curve25519xchacha20poly1305_detached_afternm = - an.asm.sh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_detached = function () { - return (an._crypto_box_curve25519xchacha20poly1305_detached = an.asm.th).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_easy_afternm = function () { - return (an._crypto_box_curve25519xchacha20poly1305_easy_afternm = - an.asm.uh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_easy = function () { - return (an._crypto_box_curve25519xchacha20poly1305_easy = an.asm.vh).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_open_detached_afternm = function () { - return (an._crypto_box_curve25519xchacha20poly1305_open_detached_afternm = - an.asm.wh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_open_detached = function () { - return (an._crypto_box_curve25519xchacha20poly1305_open_detached = - an.asm.xh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_open_easy_afternm = function () { - return (an._crypto_box_curve25519xchacha20poly1305_open_easy_afternm = - an.asm.yh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_open_easy = function () { - return (an._crypto_box_curve25519xchacha20poly1305_open_easy = an.asm.zh).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_seedbytes = function () { - return (an._crypto_box_curve25519xchacha20poly1305_seedbytes = an.asm.Ah).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_publickeybytes = function () { - return (an._crypto_box_curve25519xchacha20poly1305_publickeybytes = - an.asm.Bh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_secretkeybytes = function () { - return (an._crypto_box_curve25519xchacha20poly1305_secretkeybytes = - an.asm.Ch).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_beforenmbytes = function () { - return (an._crypto_box_curve25519xchacha20poly1305_beforenmbytes = - an.asm.Dh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_noncebytes = function () { - return (an._crypto_box_curve25519xchacha20poly1305_noncebytes = - an.asm.Eh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_macbytes = function () { - return (an._crypto_box_curve25519xchacha20poly1305_macbytes = an.asm.Fh).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_messagebytes_max = function () { - return (an._crypto_box_curve25519xchacha20poly1305_messagebytes_max = - an.asm.Gh).apply(null, arguments) - }), - (an._crypto_box_curve25519xchacha20poly1305_seal = function () { - return (an._crypto_box_curve25519xchacha20poly1305_seal = an.asm.Hh).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_seal_open = function () { - return (an._crypto_box_curve25519xchacha20poly1305_seal_open = an.asm.Ih).apply( - null, - arguments, - ) - }), - (an._crypto_box_curve25519xchacha20poly1305_sealbytes = function () { - return (an._crypto_box_curve25519xchacha20poly1305_sealbytes = an.asm.Jh).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_is_valid_point = function () { - return (an._crypto_core_ed25519_is_valid_point = an.asm.Kh).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_add = function () { - return (an._crypto_core_ed25519_add = an.asm.Lh).apply(null, arguments) - }), - (an._crypto_core_ed25519_sub = function () { - return (an._crypto_core_ed25519_sub = an.asm.Mh).apply(null, arguments) - }), - (an._crypto_core_ed25519_from_uniform = function () { - return (an._crypto_core_ed25519_from_uniform = an.asm.Nh).apply(null, arguments) - }), - (an._crypto_core_ed25519_from_hash = function () { - return (an._crypto_core_ed25519_from_hash = an.asm.Oh).apply(null, arguments) - }), - (an._crypto_core_ed25519_random = function () { - return (an._crypto_core_ed25519_random = an.asm.Ph).apply(null, arguments) - }), - (an._crypto_core_ed25519_scalar_random = function () { - return (an._crypto_core_ed25519_scalar_random = an.asm.Qh).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_scalar_invert = function () { - return (an._crypto_core_ed25519_scalar_invert = an.asm.Rh).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_scalar_negate = function () { - return (an._crypto_core_ed25519_scalar_negate = an.asm.Sh).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_scalar_complement = function () { - return (an._crypto_core_ed25519_scalar_complement = an.asm.Th).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_scalar_add = function () { - return (an._crypto_core_ed25519_scalar_add = an.asm.Uh).apply(null, arguments) - }), - (an._crypto_core_ed25519_scalar_reduce = function () { - return (an._crypto_core_ed25519_scalar_reduce = an.asm.Vh).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_scalar_sub = function () { - return (an._crypto_core_ed25519_scalar_sub = an.asm.Wh).apply(null, arguments) - }), - (an._crypto_core_ed25519_scalar_mul = function () { - return (an._crypto_core_ed25519_scalar_mul = an.asm.Xh).apply(null, arguments) - }), - (an._crypto_core_ed25519_bytes = function () { - return (an._crypto_core_ed25519_bytes = an.asm.Yh).apply(null, arguments) - }), - (an._crypto_core_ed25519_nonreducedscalarbytes = function () { - return (an._crypto_core_ed25519_nonreducedscalarbytes = an.asm.Zh).apply( - null, - arguments, - ) - }), - (an._crypto_core_ed25519_uniformbytes = function () { - return (an._crypto_core_ed25519_uniformbytes = an.asm._h).apply(null, arguments) - }), - (an._crypto_core_ed25519_hashbytes = function () { - return (an._crypto_core_ed25519_hashbytes = an.asm.$h).apply(null, arguments) - }), - (an._crypto_core_ed25519_scalarbytes = function () { - return (an._crypto_core_ed25519_scalarbytes = an.asm.ai).apply(null, arguments) - }), - (an._crypto_core_ristretto255_is_valid_point = function () { - return (an._crypto_core_ristretto255_is_valid_point = an.asm.bi).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_add = function () { - return (an._crypto_core_ristretto255_add = an.asm.ci).apply(null, arguments) - }), - (an._crypto_core_ristretto255_sub = function () { - return (an._crypto_core_ristretto255_sub = an.asm.di).apply(null, arguments) - }), - (an._crypto_core_ristretto255_from_hash = function () { - return (an._crypto_core_ristretto255_from_hash = an.asm.ei).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_random = function () { - return (an._crypto_core_ristretto255_random = an.asm.fi).apply(null, arguments) - }), - (an._crypto_core_ristretto255_scalar_random = function () { - return (an._crypto_core_ristretto255_scalar_random = an.asm.gi).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalar_invert = function () { - return (an._crypto_core_ristretto255_scalar_invert = an.asm.hi).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalar_negate = function () { - return (an._crypto_core_ristretto255_scalar_negate = an.asm.ii).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalar_complement = function () { - return (an._crypto_core_ristretto255_scalar_complement = an.asm.ji).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalar_add = function () { - return (an._crypto_core_ristretto255_scalar_add = an.asm.ki).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalar_sub = function () { - return (an._crypto_core_ristretto255_scalar_sub = an.asm.li).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalar_mul = function () { - return (an._crypto_core_ristretto255_scalar_mul = an.asm.mi).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalar_reduce = function () { - return (an._crypto_core_ristretto255_scalar_reduce = an.asm.ni).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_bytes = function () { - return (an._crypto_core_ristretto255_bytes = an.asm.oi).apply(null, arguments) - }), - (an._crypto_core_ristretto255_nonreducedscalarbytes = function () { - return (an._crypto_core_ristretto255_nonreducedscalarbytes = an.asm.pi).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_hashbytes = function () { - return (an._crypto_core_ristretto255_hashbytes = an.asm.qi).apply( - null, - arguments, - ) - }), - (an._crypto_core_ristretto255_scalarbytes = function () { - return (an._crypto_core_ristretto255_scalarbytes = an.asm.ri).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_ll = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_ll = an.asm.si).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_bytes_min = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_bytes_min = an.asm.ti).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_bytes_max = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_bytes_max = an.asm.ui).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_passwd_min = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_passwd_min = an.asm.vi).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_passwd_max = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_passwd_max = an.asm.wi).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_saltbytes = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_saltbytes = an.asm.xi).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_strbytes = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_strbytes = an.asm.yi).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_strprefix = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_strprefix = an.asm.zi).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_opslimit_min = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_opslimit_min = an.asm.Ai).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_opslimit_max = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_opslimit_max = an.asm.Bi).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_memlimit_min = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_memlimit_min = an.asm.Ci).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_memlimit_max = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_memlimit_max = an.asm.Di).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_opslimit_interactive = - an.asm.Ei).apply(null, arguments) - }), - (an._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_memlimit_interactive = - an.asm.Fi).apply(null, arguments) - }), - (an._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive = - an.asm.Gi).apply(null, arguments) - }), - (an._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive = - an.asm.Hi).apply(null, arguments) - }), - (an._crypto_pwhash_scryptsalsa208sha256 = function () { - return (an._crypto_pwhash_scryptsalsa208sha256 = an.asm.Ii).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_str = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_str = an.asm.Ji).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_str_verify = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_str_verify = an.asm.Ki).apply( - null, - arguments, - ) - }), - (an._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash = function () { - return (an._crypto_pwhash_scryptsalsa208sha256_str_needs_rehash = - an.asm.Li).apply(null, arguments) - }), - (an._crypto_scalarmult_ed25519 = function () { - return (an._crypto_scalarmult_ed25519 = an.asm.Mi).apply(null, arguments) - }), - (an._crypto_scalarmult_ed25519_noclamp = function () { - return (an._crypto_scalarmult_ed25519_noclamp = an.asm.Ni).apply( - null, - arguments, - ) - }), - (an._crypto_scalarmult_ed25519_base = function () { - return (an._crypto_scalarmult_ed25519_base = an.asm.Oi).apply(null, arguments) - }), - (an._crypto_scalarmult_ed25519_base_noclamp = function () { - return (an._crypto_scalarmult_ed25519_base_noclamp = an.asm.Pi).apply( - null, - arguments, - ) - }), - (an._crypto_scalarmult_ed25519_bytes = function () { - return (an._crypto_scalarmult_ed25519_bytes = an.asm.Qi).apply(null, arguments) - }), - (an._crypto_scalarmult_ed25519_scalarbytes = function () { - return (an._crypto_scalarmult_ed25519_scalarbytes = an.asm.Ri).apply( - null, - arguments, - ) - }), - (an._crypto_scalarmult_ristretto255 = function () { - return (an._crypto_scalarmult_ristretto255 = an.asm.Si).apply(null, arguments) - }), - (an._crypto_scalarmult_ristretto255_base = function () { - return (an._crypto_scalarmult_ristretto255_base = an.asm.Ti).apply( - null, - arguments, - ) - }), - (an._crypto_scalarmult_ristretto255_bytes = function () { - return (an._crypto_scalarmult_ristretto255_bytes = an.asm.Ui).apply( - null, - arguments, - ) - }), - (an._crypto_scalarmult_ristretto255_scalarbytes = function () { - return (an._crypto_scalarmult_ristretto255_scalarbytes = an.asm.Vi).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_detached = function () { - return (an._crypto_secretbox_xchacha20poly1305_detached = an.asm.Wi).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_easy = function () { - return (an._crypto_secretbox_xchacha20poly1305_easy = an.asm.Xi).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_open_detached = function () { - return (an._crypto_secretbox_xchacha20poly1305_open_detached = an.asm.Yi).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_open_easy = function () { - return (an._crypto_secretbox_xchacha20poly1305_open_easy = an.asm.Zi).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_keybytes = function () { - return (an._crypto_secretbox_xchacha20poly1305_keybytes = an.asm._i).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_noncebytes = function () { - return (an._crypto_secretbox_xchacha20poly1305_noncebytes = an.asm.$i).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_macbytes = function () { - return (an._crypto_secretbox_xchacha20poly1305_macbytes = an.asm.aj).apply( - null, - arguments, - ) - }), - (an._crypto_secretbox_xchacha20poly1305_messagebytes_max = function () { - return (an._crypto_secretbox_xchacha20poly1305_messagebytes_max = - an.asm.bj).apply(null, arguments) - }), - (an._crypto_shorthash_siphashx24_bytes = function () { - return (an._crypto_shorthash_siphashx24_bytes = an.asm.cj).apply( - null, - arguments, - ) - }), - (an._crypto_shorthash_siphashx24_keybytes = function () { - return (an._crypto_shorthash_siphashx24_keybytes = an.asm.dj).apply( - null, - arguments, - ) - }), - (an._crypto_shorthash_siphashx24 = function () { - return (an._crypto_shorthash_siphashx24 = an.asm.ej).apply(null, arguments) - }), - (an._crypto_stream_salsa2012 = function () { - return (an._crypto_stream_salsa2012 = an.asm.fj).apply(null, arguments) - }), - (an._crypto_stream_salsa2012_xor = function () { - return (an._crypto_stream_salsa2012_xor = an.asm.gj).apply(null, arguments) - }), - (an._crypto_stream_salsa2012_keybytes = function () { - return (an._crypto_stream_salsa2012_keybytes = an.asm.hj).apply(null, arguments) - }), - (an._crypto_stream_salsa2012_noncebytes = function () { - return (an._crypto_stream_salsa2012_noncebytes = an.asm.ij).apply( - null, - arguments, - ) - }), - (an._crypto_stream_salsa2012_messagebytes_max = function () { - return (an._crypto_stream_salsa2012_messagebytes_max = an.asm.jj).apply( - null, - arguments, - ) - }), - (an._crypto_stream_salsa2012_keygen = function () { - return (an._crypto_stream_salsa2012_keygen = an.asm.kj).apply(null, arguments) - }), - (an._crypto_stream_salsa208 = function () { - return (an._crypto_stream_salsa208 = an.asm.lj).apply(null, arguments) - }), - (an._crypto_stream_salsa208_xor = function () { - return (an._crypto_stream_salsa208_xor = an.asm.mj).apply(null, arguments) - }), - (an._crypto_stream_salsa208_keybytes = function () { - return (an._crypto_stream_salsa208_keybytes = an.asm.nj).apply(null, arguments) - }), - (an._crypto_stream_salsa208_noncebytes = function () { - return (an._crypto_stream_salsa208_noncebytes = an.asm.oj).apply( - null, - arguments, - ) - }), - (an._crypto_stream_salsa208_messagebytes_max = function () { - return (an._crypto_stream_salsa208_messagebytes_max = an.asm.pj).apply( - null, - arguments, - ) - }), - (an._crypto_stream_salsa208_keygen = function () { - return (an._crypto_stream_salsa208_keygen = an.asm.qj).apply(null, arguments) - }), - (an._crypto_stream_xchacha20_keybytes = function () { - return (an._crypto_stream_xchacha20_keybytes = an.asm.rj).apply(null, arguments) - }), - (an._crypto_stream_xchacha20_noncebytes = function () { - return (an._crypto_stream_xchacha20_noncebytes = an.asm.sj).apply( - null, - arguments, - ) - }), - (an._crypto_stream_xchacha20_messagebytes_max = function () { - return (an._crypto_stream_xchacha20_messagebytes_max = an.asm.tj).apply( - null, - arguments, - ) - }), - (an._crypto_stream_xchacha20 = function () { - return (an._crypto_stream_xchacha20 = an.asm.uj).apply(null, arguments) - }), - (an._crypto_stream_xchacha20_xor_ic = function () { - return (an._crypto_stream_xchacha20_xor_ic = an.asm.vj).apply(null, arguments) - }), - (an._crypto_stream_xchacha20_xor = function () { - return (an._crypto_stream_xchacha20_xor = an.asm.wj).apply(null, arguments) - }), - (an._crypto_stream_xchacha20_keygen = function () { - return (an._crypto_stream_xchacha20_keygen = an.asm.xj).apply(null, arguments) - }), - (an._malloc = function () { - return (an._malloc = an.asm.yj).apply(null, arguments) - }), - (an._free = function () { - return (an._free = an.asm.zj).apply(null, arguments) - }), - (an.UTF8ToString = _n), - (an.setValue = function (br, Fr, $r = 'i8') { - switch (($r.endsWith('*') && ($r = '*'), $r)) { - case 'i1': - case 'i8': - Zn[br >> 0] = Fr - break - case 'i16': - En[br >> 1] = Fr - break - case 'i32': - Mn[br >> 2] = Fr - break - case 'i64': - ;(zt = [ - Fr >>> 0, - ((Wt = Fr), - +Math.abs(Wt) >= 1 - ? Wt > 0 - ? (0 | Math.min(+Math.floor(Wt / 4294967296), 4294967295)) >>> 0 - : ~~+Math.ceil((Wt - +(~~Wt >>> 0)) / 4294967296) >>> 0 - : 0), - ]), - (Mn[br >> 2] = zt[0]), - (Mn[(br + 4) >> 2] = zt[1]) - break - case 'float': - un[br >> 2] = Fr - break - case 'double': - dn[br >> 3] = Fr - break - case '*': - Hn[br >> 2] = Fr - break - default: - Vn('invalid type for setValue: ' + $r) - } - }), - (an.getValue = function (br, Fr = 'i8') { - switch ((Fr.endsWith('*') && (Fr = '*'), Fr)) { - case 'i1': - case 'i8': - return Zn[br >> 0] - case 'i16': - return En[br >> 1] - case 'i32': - case 'i64': - return Mn[br >> 2] - case 'float': - return un[br >> 2] - case 'double': - return dn[br >> 3] - case '*': - return Hn[br >> 2] - default: - Vn('invalid type for getValue: ' + Fr) - } - return null - }), - (Rn = function br() { - Ko || bo(), Ko || (Rn = br) - }), - an.preInit) - ) - for ( - typeof an.preInit == 'function' && (an.preInit = [an.preInit]); - an.preInit.length > 0; - - ) - an.preInit.pop()() - bo() - }).catch(function () { - return sn.useBackupModule() - })), - en - ) - } - typeof o.nodeName != 'string' - ? b(o) - : (_.libsodium = b(_.libsodium_mod || (_.commonJsStrict = {}))) - })(commonjsGlobal) - })(libsodiumSumo, libsodiumSumoExports)), - libsodiumSumoExports - ) -} -;(function (e) { - ;(function (o) { - function _($, en) { - var nn, - sn = 'uint8array', - gn = en.ready.then(function () { - function ot() { - if (nn._sodium_init() !== 0) throw new Error('libsodium was not correctly initialized.') - for ( - var Et = [ - 'crypto_aead_chacha20poly1305_decrypt', - 'crypto_aead_chacha20poly1305_decrypt_detached', - 'crypto_aead_chacha20poly1305_encrypt', - 'crypto_aead_chacha20poly1305_encrypt_detached', - 'crypto_aead_chacha20poly1305_ietf_decrypt', - 'crypto_aead_chacha20poly1305_ietf_decrypt_detached', - 'crypto_aead_chacha20poly1305_ietf_encrypt', - 'crypto_aead_chacha20poly1305_ietf_encrypt_detached', - 'crypto_aead_chacha20poly1305_ietf_keygen', - 'crypto_aead_chacha20poly1305_keygen', - 'crypto_aead_xchacha20poly1305_ietf_decrypt', - 'crypto_aead_xchacha20poly1305_ietf_decrypt_detached', - 'crypto_aead_xchacha20poly1305_ietf_encrypt', - 'crypto_aead_xchacha20poly1305_ietf_encrypt_detached', - 'crypto_aead_xchacha20poly1305_ietf_keygen', - 'crypto_auth', - 'crypto_auth_hmacsha256', - 'crypto_auth_hmacsha256_final', - 'crypto_auth_hmacsha256_init', - 'crypto_auth_hmacsha256_keygen', - 'crypto_auth_hmacsha256_update', - 'crypto_auth_hmacsha256_verify', - 'crypto_auth_hmacsha512', - 'crypto_auth_hmacsha512_final', - 'crypto_auth_hmacsha512_init', - 'crypto_auth_hmacsha512_keygen', - 'crypto_auth_hmacsha512_update', - 'crypto_auth_hmacsha512_verify', - 'crypto_auth_keygen', - 'crypto_auth_verify', - 'crypto_box_beforenm', - 'crypto_box_curve25519xchacha20poly1305_keypair', - 'crypto_box_curve25519xchacha20poly1305_seal', - 'crypto_box_curve25519xchacha20poly1305_seal_open', - 'crypto_box_detached', - 'crypto_box_easy', - 'crypto_box_easy_afternm', - 'crypto_box_keypair', - 'crypto_box_open_detached', - 'crypto_box_open_easy', - 'crypto_box_open_easy_afternm', - 'crypto_box_seal', - 'crypto_box_seal_open', - 'crypto_box_seed_keypair', - 'crypto_core_ed25519_add', - 'crypto_core_ed25519_from_hash', - 'crypto_core_ed25519_from_uniform', - 'crypto_core_ed25519_is_valid_point', - 'crypto_core_ed25519_random', - 'crypto_core_ed25519_scalar_add', - 'crypto_core_ed25519_scalar_complement', - 'crypto_core_ed25519_scalar_invert', - 'crypto_core_ed25519_scalar_mul', - 'crypto_core_ed25519_scalar_negate', - 'crypto_core_ed25519_scalar_random', - 'crypto_core_ed25519_scalar_reduce', - 'crypto_core_ed25519_scalar_sub', - 'crypto_core_ed25519_sub', - 'crypto_core_hchacha20', - 'crypto_core_hsalsa20', - 'crypto_core_ristretto255_add', - 'crypto_core_ristretto255_from_hash', - 'crypto_core_ristretto255_is_valid_point', - 'crypto_core_ristretto255_random', - 'crypto_core_ristretto255_scalar_add', - 'crypto_core_ristretto255_scalar_complement', - 'crypto_core_ristretto255_scalar_invert', - 'crypto_core_ristretto255_scalar_mul', - 'crypto_core_ristretto255_scalar_negate', - 'crypto_core_ristretto255_scalar_random', - 'crypto_core_ristretto255_scalar_reduce', - 'crypto_core_ristretto255_scalar_sub', - 'crypto_core_ristretto255_sub', - 'crypto_generichash', - 'crypto_generichash_blake2b_salt_personal', - 'crypto_generichash_final', - 'crypto_generichash_init', - 'crypto_generichash_keygen', - 'crypto_generichash_update', - 'crypto_hash', - 'crypto_hash_sha256', - 'crypto_hash_sha256_final', - 'crypto_hash_sha256_init', - 'crypto_hash_sha256_update', - 'crypto_hash_sha512', - 'crypto_hash_sha512_final', - 'crypto_hash_sha512_init', - 'crypto_hash_sha512_update', - 'crypto_kdf_derive_from_key', - 'crypto_kdf_keygen', - 'crypto_kx_client_session_keys', - 'crypto_kx_keypair', - 'crypto_kx_seed_keypair', - 'crypto_kx_server_session_keys', - 'crypto_onetimeauth', - 'crypto_onetimeauth_final', - 'crypto_onetimeauth_init', - 'crypto_onetimeauth_keygen', - 'crypto_onetimeauth_update', - 'crypto_onetimeauth_verify', - 'crypto_pwhash', - 'crypto_pwhash_scryptsalsa208sha256', - 'crypto_pwhash_scryptsalsa208sha256_ll', - 'crypto_pwhash_scryptsalsa208sha256_str', - 'crypto_pwhash_scryptsalsa208sha256_str_verify', - 'crypto_pwhash_str', - 'crypto_pwhash_str_needs_rehash', - 'crypto_pwhash_str_verify', - 'crypto_scalarmult', - 'crypto_scalarmult_base', - 'crypto_scalarmult_ed25519', - 'crypto_scalarmult_ed25519_base', - 'crypto_scalarmult_ed25519_base_noclamp', - 'crypto_scalarmult_ed25519_noclamp', - 'crypto_scalarmult_ristretto255', - 'crypto_scalarmult_ristretto255_base', - 'crypto_secretbox_detached', - 'crypto_secretbox_easy', - 'crypto_secretbox_keygen', - 'crypto_secretbox_open_detached', - 'crypto_secretbox_open_easy', - 'crypto_secretstream_xchacha20poly1305_init_pull', - 'crypto_secretstream_xchacha20poly1305_init_push', - 'crypto_secretstream_xchacha20poly1305_keygen', - 'crypto_secretstream_xchacha20poly1305_pull', - 'crypto_secretstream_xchacha20poly1305_push', - 'crypto_secretstream_xchacha20poly1305_rekey', - 'crypto_shorthash', - 'crypto_shorthash_keygen', - 'crypto_shorthash_siphashx24', - 'crypto_sign', - 'crypto_sign_detached', - 'crypto_sign_ed25519_pk_to_curve25519', - 'crypto_sign_ed25519_sk_to_curve25519', - 'crypto_sign_ed25519_sk_to_pk', - 'crypto_sign_ed25519_sk_to_seed', - 'crypto_sign_final_create', - 'crypto_sign_final_verify', - 'crypto_sign_init', - 'crypto_sign_keypair', - 'crypto_sign_open', - 'crypto_sign_seed_keypair', - 'crypto_sign_update', - 'crypto_sign_verify_detached', - 'crypto_stream_chacha20', - 'crypto_stream_chacha20_ietf_xor', - 'crypto_stream_chacha20_ietf_xor_ic', - 'crypto_stream_chacha20_keygen', - 'crypto_stream_chacha20_xor', - 'crypto_stream_chacha20_xor_ic', - 'crypto_stream_keygen', - 'crypto_stream_xchacha20_keygen', - 'crypto_stream_xchacha20_xor', - 'crypto_stream_xchacha20_xor_ic', - 'randombytes_buf', - 'randombytes_buf_deterministic', - 'randombytes_close', - 'randombytes_random', - 'randombytes_set_implementation', - 'randombytes_stir', - 'randombytes_uniform', - 'sodium_version_string', - ], - Dt = [ - En, - Mn, - Hn, - un, - dn, - Nn, - fn, - _n, - Ln, - zn, - Fn, - An, - Qn, - Rn, - Vn, - Wn, - ht, - Wt, - zt, - mr, - Uo, - Vo, - ko, - na, - Yo, - vo, - Wo, - ba, - Co, - Ko, - xa, - bo, - br, - Fr, - $r, - cr, - ir, - vn, - gr, - Mr, - Or, - _i, - eo, - no, - Oo, - So, - lo, - Pn, - Xn, - dt, - Ir, - Lt, - ur, - ho, - xo, - yo, - ga, - Zo, - _o, - zo, - $a, - No, - us, - rs, - Ro, - is, - ns, - Bo, - ts, - Kt, - Vt, - Mt, - $t, - qt, - pr, - Rr, - Sr, - lr, - Jr, - co, - Po, - Ho, - Xo, - Mo, - vr, - Wr, - qr, - Xr, - Ao, - fo, - wo, - so, - jo, - os, - as, - ys, - pn, - c, - rn, - Es, - zr, - Ms, - Ws, - ru, - Zs, - wu, - St, - cu, - lu, - On, - mu, - xu, - Cr, - ku, - zs, - Qu, - Hu, - Ls, - $u, - l0, - Gt, - Pu, - A0, - f0, - Bt, - Ou, - Ru, - Ts, - _u, - p0, - h0, - Gu, - qu, - g0, - fs, - Vu, - Ku, - y0, - m0, - _0, - Yu, - Au, - C0, - I0, - Du, - Wu, - Cu, - Rs, - hs, - Nu, - Zu, - Xs, - fu, - zu, - js, - ms, - E0, - v0, - eu, - Xu, - $s, - su, - ], - Yt = 0; - Yt < Dt.length; - Yt++ - ) - typeof nn['_' + Et[Yt]] == 'function' && ($[Et[Yt]] = Dt[Yt]) - var nr = [ - 'SODIUM_LIBRARY_VERSION_MAJOR', - 'SODIUM_LIBRARY_VERSION_MINOR', - 'crypto_aead_chacha20poly1305_ABYTES', - 'crypto_aead_chacha20poly1305_IETF_ABYTES', - 'crypto_aead_chacha20poly1305_IETF_KEYBYTES', - 'crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX', - 'crypto_aead_chacha20poly1305_IETF_NPUBBYTES', - 'crypto_aead_chacha20poly1305_IETF_NSECBYTES', - 'crypto_aead_chacha20poly1305_KEYBYTES', - 'crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX', - 'crypto_aead_chacha20poly1305_NPUBBYTES', - 'crypto_aead_chacha20poly1305_NSECBYTES', - 'crypto_aead_chacha20poly1305_ietf_ABYTES', - 'crypto_aead_chacha20poly1305_ietf_KEYBYTES', - 'crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX', - 'crypto_aead_chacha20poly1305_ietf_NPUBBYTES', - 'crypto_aead_chacha20poly1305_ietf_NSECBYTES', - 'crypto_aead_xchacha20poly1305_IETF_ABYTES', - 'crypto_aead_xchacha20poly1305_IETF_KEYBYTES', - 'crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX', - 'crypto_aead_xchacha20poly1305_IETF_NPUBBYTES', - 'crypto_aead_xchacha20poly1305_IETF_NSECBYTES', - 'crypto_aead_xchacha20poly1305_ietf_ABYTES', - 'crypto_aead_xchacha20poly1305_ietf_KEYBYTES', - 'crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX', - 'crypto_aead_xchacha20poly1305_ietf_NPUBBYTES', - 'crypto_aead_xchacha20poly1305_ietf_NSECBYTES', - 'crypto_auth_BYTES', - 'crypto_auth_KEYBYTES', - 'crypto_auth_hmacsha256_BYTES', - 'crypto_auth_hmacsha256_KEYBYTES', - 'crypto_auth_hmacsha512256_BYTES', - 'crypto_auth_hmacsha512256_KEYBYTES', - 'crypto_auth_hmacsha512_BYTES', - 'crypto_auth_hmacsha512_KEYBYTES', - 'crypto_box_BEFORENMBYTES', - 'crypto_box_MACBYTES', - 'crypto_box_MESSAGEBYTES_MAX', - 'crypto_box_NONCEBYTES', - 'crypto_box_PUBLICKEYBYTES', - 'crypto_box_SEALBYTES', - 'crypto_box_SECRETKEYBYTES', - 'crypto_box_SEEDBYTES', - 'crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES', - 'crypto_box_curve25519xchacha20poly1305_MACBYTES', - 'crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX', - 'crypto_box_curve25519xchacha20poly1305_NONCEBYTES', - 'crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES', - 'crypto_box_curve25519xchacha20poly1305_SEALBYTES', - 'crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES', - 'crypto_box_curve25519xchacha20poly1305_SEEDBYTES', - 'crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES', - 'crypto_box_curve25519xsalsa20poly1305_MACBYTES', - 'crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX', - 'crypto_box_curve25519xsalsa20poly1305_NONCEBYTES', - 'crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES', - 'crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES', - 'crypto_box_curve25519xsalsa20poly1305_SEEDBYTES', - 'crypto_core_ed25519_BYTES', - 'crypto_core_ed25519_HASHBYTES', - 'crypto_core_ed25519_NONREDUCEDSCALARBYTES', - 'crypto_core_ed25519_SCALARBYTES', - 'crypto_core_ed25519_UNIFORMBYTES', - 'crypto_core_hchacha20_CONSTBYTES', - 'crypto_core_hchacha20_INPUTBYTES', - 'crypto_core_hchacha20_KEYBYTES', - 'crypto_core_hchacha20_OUTPUTBYTES', - 'crypto_core_hsalsa20_CONSTBYTES', - 'crypto_core_hsalsa20_INPUTBYTES', - 'crypto_core_hsalsa20_KEYBYTES', - 'crypto_core_hsalsa20_OUTPUTBYTES', - 'crypto_core_ristretto255_BYTES', - 'crypto_core_ristretto255_HASHBYTES', - 'crypto_core_ristretto255_NONREDUCEDSCALARBYTES', - 'crypto_core_ristretto255_SCALARBYTES', - 'crypto_core_salsa2012_CONSTBYTES', - 'crypto_core_salsa2012_INPUTBYTES', - 'crypto_core_salsa2012_KEYBYTES', - 'crypto_core_salsa2012_OUTPUTBYTES', - 'crypto_core_salsa20_CONSTBYTES', - 'crypto_core_salsa20_INPUTBYTES', - 'crypto_core_salsa20_KEYBYTES', - 'crypto_core_salsa20_OUTPUTBYTES', - 'crypto_generichash_BYTES', - 'crypto_generichash_BYTES_MAX', - 'crypto_generichash_BYTES_MIN', - 'crypto_generichash_KEYBYTES', - 'crypto_generichash_KEYBYTES_MAX', - 'crypto_generichash_KEYBYTES_MIN', - 'crypto_generichash_blake2b_BYTES', - 'crypto_generichash_blake2b_BYTES_MAX', - 'crypto_generichash_blake2b_BYTES_MIN', - 'crypto_generichash_blake2b_KEYBYTES', - 'crypto_generichash_blake2b_KEYBYTES_MAX', - 'crypto_generichash_blake2b_KEYBYTES_MIN', - 'crypto_generichash_blake2b_PERSONALBYTES', - 'crypto_generichash_blake2b_SALTBYTES', - 'crypto_hash_BYTES', - 'crypto_hash_sha256_BYTES', - 'crypto_hash_sha512_BYTES', - 'crypto_kdf_BYTES_MAX', - 'crypto_kdf_BYTES_MIN', - 'crypto_kdf_CONTEXTBYTES', - 'crypto_kdf_KEYBYTES', - 'crypto_kdf_blake2b_BYTES_MAX', - 'crypto_kdf_blake2b_BYTES_MIN', - 'crypto_kdf_blake2b_CONTEXTBYTES', - 'crypto_kdf_blake2b_KEYBYTES', - 'crypto_kx_PUBLICKEYBYTES', - 'crypto_kx_SECRETKEYBYTES', - 'crypto_kx_SEEDBYTES', - 'crypto_kx_SESSIONKEYBYTES', - 'crypto_onetimeauth_BYTES', - 'crypto_onetimeauth_KEYBYTES', - 'crypto_onetimeauth_poly1305_BYTES', - 'crypto_onetimeauth_poly1305_KEYBYTES', - 'crypto_pwhash_ALG_ARGON2I13', - 'crypto_pwhash_ALG_ARGON2ID13', - 'crypto_pwhash_ALG_DEFAULT', - 'crypto_pwhash_BYTES_MAX', - 'crypto_pwhash_BYTES_MIN', - 'crypto_pwhash_MEMLIMIT_INTERACTIVE', - 'crypto_pwhash_MEMLIMIT_MAX', - 'crypto_pwhash_MEMLIMIT_MIN', - 'crypto_pwhash_MEMLIMIT_MODERATE', - 'crypto_pwhash_MEMLIMIT_SENSITIVE', - 'crypto_pwhash_OPSLIMIT_INTERACTIVE', - 'crypto_pwhash_OPSLIMIT_MAX', - 'crypto_pwhash_OPSLIMIT_MIN', - 'crypto_pwhash_OPSLIMIT_MODERATE', - 'crypto_pwhash_OPSLIMIT_SENSITIVE', - 'crypto_pwhash_PASSWD_MAX', - 'crypto_pwhash_PASSWD_MIN', - 'crypto_pwhash_SALTBYTES', - 'crypto_pwhash_STRBYTES', - 'crypto_pwhash_argon2i_BYTES_MAX', - 'crypto_pwhash_argon2i_BYTES_MIN', - 'crypto_pwhash_argon2i_SALTBYTES', - 'crypto_pwhash_argon2i_STRBYTES', - 'crypto_pwhash_argon2id_BYTES_MAX', - 'crypto_pwhash_argon2id_BYTES_MIN', - 'crypto_pwhash_argon2id_SALTBYTES', - 'crypto_pwhash_argon2id_STRBYTES', - 'crypto_pwhash_scryptsalsa208sha256_BYTES_MAX', - 'crypto_pwhash_scryptsalsa208sha256_BYTES_MIN', - 'crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE', - 'crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX', - 'crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN', - 'crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE', - 'crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE', - 'crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX', - 'crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN', - 'crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE', - 'crypto_pwhash_scryptsalsa208sha256_SALTBYTES', - 'crypto_pwhash_scryptsalsa208sha256_STRBYTES', - 'crypto_scalarmult_BYTES', - 'crypto_scalarmult_SCALARBYTES', - 'crypto_scalarmult_curve25519_BYTES', - 'crypto_scalarmult_curve25519_SCALARBYTES', - 'crypto_scalarmult_ed25519_BYTES', - 'crypto_scalarmult_ed25519_SCALARBYTES', - 'crypto_scalarmult_ristretto255_BYTES', - 'crypto_scalarmult_ristretto255_SCALARBYTES', - 'crypto_secretbox_KEYBYTES', - 'crypto_secretbox_MACBYTES', - 'crypto_secretbox_MESSAGEBYTES_MAX', - 'crypto_secretbox_NONCEBYTES', - 'crypto_secretbox_xchacha20poly1305_KEYBYTES', - 'crypto_secretbox_xchacha20poly1305_MACBYTES', - 'crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX', - 'crypto_secretbox_xchacha20poly1305_NONCEBYTES', - 'crypto_secretbox_xsalsa20poly1305_KEYBYTES', - 'crypto_secretbox_xsalsa20poly1305_MACBYTES', - 'crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX', - 'crypto_secretbox_xsalsa20poly1305_NONCEBYTES', - 'crypto_secretstream_xchacha20poly1305_ABYTES', - 'crypto_secretstream_xchacha20poly1305_HEADERBYTES', - 'crypto_secretstream_xchacha20poly1305_KEYBYTES', - 'crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX', - 'crypto_secretstream_xchacha20poly1305_TAG_FINAL', - 'crypto_secretstream_xchacha20poly1305_TAG_MESSAGE', - 'crypto_secretstream_xchacha20poly1305_TAG_PUSH', - 'crypto_secretstream_xchacha20poly1305_TAG_REKEY', - 'crypto_shorthash_BYTES', - 'crypto_shorthash_KEYBYTES', - 'crypto_shorthash_siphash24_BYTES', - 'crypto_shorthash_siphash24_KEYBYTES', - 'crypto_shorthash_siphashx24_BYTES', - 'crypto_shorthash_siphashx24_KEYBYTES', - 'crypto_sign_BYTES', - 'crypto_sign_MESSAGEBYTES_MAX', - 'crypto_sign_PUBLICKEYBYTES', - 'crypto_sign_SECRETKEYBYTES', - 'crypto_sign_SEEDBYTES', - 'crypto_sign_ed25519_BYTES', - 'crypto_sign_ed25519_MESSAGEBYTES_MAX', - 'crypto_sign_ed25519_PUBLICKEYBYTES', - 'crypto_sign_ed25519_SECRETKEYBYTES', - 'crypto_sign_ed25519_SEEDBYTES', - 'crypto_stream_KEYBYTES', - 'crypto_stream_MESSAGEBYTES_MAX', - 'crypto_stream_NONCEBYTES', - 'crypto_stream_chacha20_IETF_KEYBYTES', - 'crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX', - 'crypto_stream_chacha20_IETF_NONCEBYTES', - 'crypto_stream_chacha20_KEYBYTES', - 'crypto_stream_chacha20_MESSAGEBYTES_MAX', - 'crypto_stream_chacha20_NONCEBYTES', - 'crypto_stream_chacha20_ietf_KEYBYTES', - 'crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX', - 'crypto_stream_chacha20_ietf_NONCEBYTES', - 'crypto_stream_salsa2012_KEYBYTES', - 'crypto_stream_salsa2012_MESSAGEBYTES_MAX', - 'crypto_stream_salsa2012_NONCEBYTES', - 'crypto_stream_salsa208_KEYBYTES', - 'crypto_stream_salsa208_MESSAGEBYTES_MAX', - 'crypto_stream_salsa208_NONCEBYTES', - 'crypto_stream_salsa20_KEYBYTES', - 'crypto_stream_salsa20_MESSAGEBYTES_MAX', - 'crypto_stream_salsa20_NONCEBYTES', - 'crypto_stream_xchacha20_KEYBYTES', - 'crypto_stream_xchacha20_MESSAGEBYTES_MAX', - 'crypto_stream_xchacha20_NONCEBYTES', - 'crypto_stream_xsalsa20_KEYBYTES', - 'crypto_stream_xsalsa20_MESSAGEBYTES_MAX', - 'crypto_stream_xsalsa20_NONCEBYTES', - 'crypto_verify_16_BYTES', - 'crypto_verify_32_BYTES', - 'crypto_verify_64_BYTES', - ] - for (Yt = 0; Yt < nr.length; Yt++) - typeof (kr = nn['_' + nr[Yt].toLowerCase()]) == 'function' && ($[nr[Yt]] = kr()) - var ar = [ - 'SODIUM_VERSION_STRING', - 'crypto_pwhash_STRPREFIX', - 'crypto_pwhash_scryptsalsa208sha256_STRPREFIX', - ] - for (Yt = 0; Yt < ar.length; Yt++) { - var kr - typeof (kr = nn['_' + ar[Yt].toLowerCase()]) == 'function' && - ($[ar[Yt]] = nn.UTF8ToString(kr())) - } - } - nn = en - try { - ot() - var ct = new Uint8Array([98, 97, 108, 108, 115]), - ut = $.randombytes_buf($.crypto_secretbox_NONCEBYTES), - it = $.randombytes_buf($.crypto_secretbox_KEYBYTES), - lt = $.crypto_secretbox_easy(ct, ut, it), - vt = $.crypto_secretbox_open_easy(lt, ut, it) - if ($.memcmp(ct, vt)) return - } catch (Et) { - if (nn.useBackupModule == null) throw new Error('Both wasm and asm failed to load' + Et) - } - nn.useBackupModule(), ot() - }) - function In(ot) { - if (typeof TextEncoder == 'function') return new TextEncoder().encode(ot) - ot = unescape(encodeURIComponent(ot)) - for (var ct = new Uint8Array(ot.length), ut = 0, it = ot.length; ut < it; ut++) - ct[ut] = ot.charCodeAt(ut) - return ct - } - function Jn(ot) { - if (typeof TextDecoder == 'function') - return new TextDecoder('utf-8', { fatal: !0 }).decode(ot) - var ct = 8192, - ut = Math.ceil(ot.length / ct) - if (ut <= 1) - try { - return decodeURIComponent(escape(String.fromCharCode.apply(null, ot))) - } catch { - throw new TypeError('The encoded data was not valid.') - } - for (var it = '', lt = 0, vt = 0; vt < ut; vt++) { - var Et = Array.prototype.slice.call(ot, vt * ct + lt, (vt + 1) * ct + lt) - if (Et.length != 0) { - var Dt, - Yt = Et.length, - nr = 0 - do { - var ar = Et[--Yt] - ar >= 240 - ? ((nr = 4), (Dt = !0)) - : ar >= 224 - ? ((nr = 3), (Dt = !0)) - : ar >= 192 - ? ((nr = 2), (Dt = !0)) - : ar < 128 && ((nr = 1), (Dt = !0)) - } while (!Dt) - for (var kr = nr - (Et.length - Yt), Nr = 0; Nr < kr; Nr++) lt--, Et.pop() - it += Jn(Et) - } - } - return it - } - function qn(ot) { - ot = tn(null, ot, 'input') - for (var ct, ut, it, lt = '', vt = 0; vt < ot.length; vt++) - (it = - ((87 + (ut = 15 & ot[vt]) + (((ut - 10) >> 8) & -39)) << 8) | - (87 + (ct = ot[vt] >>> 4) + (((ct - 10) >> 8) & -39))), - (lt += String.fromCharCode(255 & it) + String.fromCharCode(it >>> 8)) - return lt - } - var Kn = { ORIGINAL: 1, ORIGINAL_NO_PADDING: 3, URLSAFE: 5, URLSAFE_NO_PADDING: 7 } - function an(ot) { - if (ot == null) return Kn.URLSAFE_NO_PADDING - if ( - ot !== Kn.ORIGINAL && - ot !== Kn.ORIGINAL_NO_PADDING && - ot !== Kn.URLSAFE && - ot != Kn.URLSAFE_NO_PADDING - ) - throw new Error('unsupported base64 variant') - return ot - } - function xn(ot, ct) { - ;(ct = an(ct)), (ot = tn(it, ot, 'input')) - var ut, - it = [], - lt = 0 | Math.floor(ot.length / 3), - vt = ot.length - 3 * lt, - Et = 4 * lt + (vt !== 0 ? (2 & ct ? 2 + (vt >>> 1) : 4) : 0), - Dt = new ln(Et + 1), - Yt = yn(ot) - return ( - it.push(Yt), - it.push(Dt.address), - nn._sodium_bin2base64(Dt.address, Dt.length, Yt, ot.length, ct) === 0 && - Gn(it, 'conversion failed'), - (Dt.length = Et), - (ut = Jn(Dt.to_Uint8Array())), - Tn(it), - ut - ) - } - function mn(ot, ct) { - var ut = ct || sn - if (!Bn(ut)) throw new Error(ut + ' output format is not available') - if (ot instanceof ln) { - if (ut === 'uint8array') return ot.to_Uint8Array() - if (ut === 'text') return Jn(ot.to_Uint8Array()) - if (ut === 'hex') return qn(ot.to_Uint8Array()) - if (ut === 'base64') return xn(ot.to_Uint8Array(), Kn.URLSAFE_NO_PADDING) - throw new Error('What is output format "' + ut + '"?') - } - if (typeof ot == 'object') { - for (var it = Object.keys(ot), lt = {}, vt = 0; vt < it.length; vt++) - lt[it[vt]] = mn(ot[it[vt]], ut) - return lt - } - if (typeof ot == 'string') return ot - throw new TypeError('Cannot format output') - } - function Bn(ot) { - for (var ct = ['uint8array', 'text', 'hex', 'base64'], ut = 0; ut < ct.length; ut++) - if (ct[ut] === ot) return !0 - return !1 - } - function kn(ot) { - if (ot) { - if (typeof ot != 'string') - throw new TypeError('When defined, the output format must be a string') - if (!Bn(ot)) throw new Error(ot + ' is not a supported output format') - } - } - function ln(ot) { - ;(this.length = ot), (this.address = Cn(ot)) - } - function yn(ot) { - var ct = Cn(ot.length) - return nn.HEAPU8.set(ot, ct), ct - } - function Cn(ot) { - var ct = nn._malloc(ot) - if (ct === 0) throw { message: '_malloc() failed', length: ot } - return ct - } - function Tn(ot) { - if (ot) for (var ct = 0; ct < ot.length; ct++) (ut = ot[ct]), nn._free(ut) - var ut - } - function Gn(ot, ct) { - throw (Tn(ot), new Error(ct)) - } - function Sn(ot, ct) { - throw (Tn(ot), new TypeError(ct)) - } - function Zn(ot, ct, ut) { - ct == null && Sn(ot, ut + ' cannot be null or undefined') - } - function tn(ot, ct, ut) { - return ( - Zn(ot, ct, ut), - ct instanceof Uint8Array - ? ct - : typeof ct == 'string' - ? In(ct) - : void Sn(ot, 'unsupported input type for ' + ut) - ) - } - function En(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = null - ot != null && ((Dt = yn((ot = tn(Et, ot, 'secret_nonce')))), ot.length, Et.push(Dt)), - (ct = tn(Et, ct, 'ciphertext')) - var Yt, - nr = nn._crypto_aead_chacha20poly1305_abytes(), - ar = ct.length - ar < nr && Sn(Et, 'ciphertext is too short'), (Yt = yn(ct)), Et.push(Yt) - var kr = null, - Nr = 0 - ut != null && - ((kr = yn((ut = tn(Et, ut, 'additional_data')))), (Nr = ut.length), Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Vr, - to = 0 | nn._crypto_aead_chacha20poly1305_npubbytes() - it.length !== to && Sn(Et, 'invalid public_nonce length'), - (Vr = yn(it)), - Et.push(Vr), - (lt = tn(Et, lt, 'key')) - var Io, - $o = 0 | nn._crypto_aead_chacha20poly1305_keybytes() - lt.length !== $o && Sn(Et, 'invalid key length'), (Io = yn(lt)), Et.push(Io) - var go = new ln((ar - nn._crypto_aead_chacha20poly1305_abytes()) | 0), - es = go.address - if ( - (Et.push(es), - nn._crypto_aead_chacha20poly1305_decrypt(es, null, Dt, Yt, ar, 0, kr, Nr, 0, Vr, Io) === - 0) - ) { - var As = mn(go, vt) - return Tn(Et), As - } - Gn(Et, 'ciphertext cannot be decrypted using that key') - } - function Mn(ot, ct, ut, it, lt, vt, Et) { - var Dt = [] - kn(Et) - var Yt = null - ot != null && ((Yt = yn((ot = tn(Dt, ot, 'secret_nonce')))), ot.length, Dt.push(Yt)) - var nr = yn((ct = tn(Dt, ct, 'ciphertext'))), - ar = ct.length - Dt.push(nr), (ut = tn(Dt, ut, 'mac')) - var kr, - Nr = 0 | nn._crypto_box_macbytes() - ut.length !== Nr && Sn(Dt, 'invalid mac length'), (kr = yn(ut)), Dt.push(kr) - var Vr = null, - to = 0 - it != null && - ((Vr = yn((it = tn(Dt, it, 'additional_data')))), (to = it.length), Dt.push(Vr)), - (lt = tn(Dt, lt, 'public_nonce')) - var Io, - $o = 0 | nn._crypto_aead_chacha20poly1305_npubbytes() - lt.length !== $o && Sn(Dt, 'invalid public_nonce length'), - (Io = yn(lt)), - Dt.push(Io), - (vt = tn(Dt, vt, 'key')) - var go, - es = 0 | nn._crypto_aead_chacha20poly1305_keybytes() - vt.length !== es && Sn(Dt, 'invalid key length'), (go = yn(vt)), Dt.push(go) - var As = new ln(0 | ar), - Ds = As.address - if ( - (Dt.push(Ds), - nn._crypto_aead_chacha20poly1305_decrypt_detached( - Ds, - Yt, - nr, - ar, - 0, - kr, - Vr, - to, - 0, - Io, - go, - ) === 0) - ) { - var pu = mn(As, Et) - return Tn(Dt), pu - } - Gn(Dt, 'ciphertext cannot be decrypted using that key') - } - function Hn(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = yn((ot = tn(Et, ot, 'message'))), - Yt = ot.length - Et.push(Dt) - var nr = null, - ar = 0 - ct != null && - ((nr = yn((ct = tn(Et, ct, 'additional_data')))), (ar = ct.length), Et.push(nr)) - var kr = null - ut != null && ((kr = yn((ut = tn(Et, ut, 'secret_nonce')))), ut.length, Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Nr, - Vr = 0 | nn._crypto_aead_chacha20poly1305_npubbytes() - it.length !== Vr && Sn(Et, 'invalid public_nonce length'), - (Nr = yn(it)), - Et.push(Nr), - (lt = tn(Et, lt, 'key')) - var to, - Io = 0 | nn._crypto_aead_chacha20poly1305_keybytes() - lt.length !== Io && Sn(Et, 'invalid key length'), (to = yn(lt)), Et.push(to) - var $o = new ln((Yt + nn._crypto_aead_chacha20poly1305_abytes()) | 0), - go = $o.address - if ( - (Et.push(go), - nn._crypto_aead_chacha20poly1305_encrypt(go, null, Dt, Yt, 0, nr, ar, 0, kr, Nr, to) === - 0) - ) { - var es = mn($o, vt) - return Tn(Et), es - } - Gn(Et, 'invalid usage') - } - function un(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = yn((ot = tn(Et, ot, 'message'))), - Yt = ot.length - Et.push(Dt) - var nr = null, - ar = 0 - ct != null && - ((nr = yn((ct = tn(Et, ct, 'additional_data')))), (ar = ct.length), Et.push(nr)) - var kr = null - ut != null && ((kr = yn((ut = tn(Et, ut, 'secret_nonce')))), ut.length, Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Nr, - Vr = 0 | nn._crypto_aead_chacha20poly1305_npubbytes() - it.length !== Vr && Sn(Et, 'invalid public_nonce length'), - (Nr = yn(it)), - Et.push(Nr), - (lt = tn(Et, lt, 'key')) - var to, - Io = 0 | nn._crypto_aead_chacha20poly1305_keybytes() - lt.length !== Io && Sn(Et, 'invalid key length'), (to = yn(lt)), Et.push(to) - var $o = new ln(0 | Yt), - go = $o.address - Et.push(go) - var es = new ln(0 | nn._crypto_aead_chacha20poly1305_abytes()), - As = es.address - if ( - (Et.push(As), - nn._crypto_aead_chacha20poly1305_encrypt_detached( - go, - As, - null, - Dt, - Yt, - 0, - nr, - ar, - 0, - kr, - Nr, - to, - ) === 0) - ) { - var Ds = mn({ ciphertext: $o, mac: es }, vt) - return Tn(Et), Ds - } - Gn(Et, 'invalid usage') - } - function dn(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = null - ot != null && ((Dt = yn((ot = tn(Et, ot, 'secret_nonce')))), ot.length, Et.push(Dt)), - (ct = tn(Et, ct, 'ciphertext')) - var Yt, - nr = nn._crypto_aead_chacha20poly1305_ietf_abytes(), - ar = ct.length - ar < nr && Sn(Et, 'ciphertext is too short'), (Yt = yn(ct)), Et.push(Yt) - var kr = null, - Nr = 0 - ut != null && - ((kr = yn((ut = tn(Et, ut, 'additional_data')))), (Nr = ut.length), Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Vr, - to = 0 | nn._crypto_aead_chacha20poly1305_ietf_npubbytes() - it.length !== to && Sn(Et, 'invalid public_nonce length'), - (Vr = yn(it)), - Et.push(Vr), - (lt = tn(Et, lt, 'key')) - var Io, - $o = 0 | nn._crypto_aead_chacha20poly1305_ietf_keybytes() - lt.length !== $o && Sn(Et, 'invalid key length'), (Io = yn(lt)), Et.push(Io) - var go = new ln((ar - nn._crypto_aead_chacha20poly1305_ietf_abytes()) | 0), - es = go.address - if ( - (Et.push(es), - nn._crypto_aead_chacha20poly1305_ietf_decrypt( - es, - null, - Dt, - Yt, - ar, - 0, - kr, - Nr, - 0, - Vr, - Io, - ) === 0) - ) { - var As = mn(go, vt) - return Tn(Et), As - } - Gn(Et, 'ciphertext cannot be decrypted using that key') - } - function Nn(ot, ct, ut, it, lt, vt, Et) { - var Dt = [] - kn(Et) - var Yt = null - ot != null && ((Yt = yn((ot = tn(Dt, ot, 'secret_nonce')))), ot.length, Dt.push(Yt)) - var nr = yn((ct = tn(Dt, ct, 'ciphertext'))), - ar = ct.length - Dt.push(nr), (ut = tn(Dt, ut, 'mac')) - var kr, - Nr = 0 | nn._crypto_box_macbytes() - ut.length !== Nr && Sn(Dt, 'invalid mac length'), (kr = yn(ut)), Dt.push(kr) - var Vr = null, - to = 0 - it != null && - ((Vr = yn((it = tn(Dt, it, 'additional_data')))), (to = it.length), Dt.push(Vr)), - (lt = tn(Dt, lt, 'public_nonce')) - var Io, - $o = 0 | nn._crypto_aead_chacha20poly1305_ietf_npubbytes() - lt.length !== $o && Sn(Dt, 'invalid public_nonce length'), - (Io = yn(lt)), - Dt.push(Io), - (vt = tn(Dt, vt, 'key')) - var go, - es = 0 | nn._crypto_aead_chacha20poly1305_ietf_keybytes() - vt.length !== es && Sn(Dt, 'invalid key length'), (go = yn(vt)), Dt.push(go) - var As = new ln(0 | ar), - Ds = As.address - if ( - (Dt.push(Ds), - nn._crypto_aead_chacha20poly1305_ietf_decrypt_detached( - Ds, - Yt, - nr, - ar, - 0, - kr, - Vr, - to, - 0, - Io, - go, - ) === 0) - ) { - var pu = mn(As, Et) - return Tn(Dt), pu - } - Gn(Dt, 'ciphertext cannot be decrypted using that key') - } - function fn(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = yn((ot = tn(Et, ot, 'message'))), - Yt = ot.length - Et.push(Dt) - var nr = null, - ar = 0 - ct != null && - ((nr = yn((ct = tn(Et, ct, 'additional_data')))), (ar = ct.length), Et.push(nr)) - var kr = null - ut != null && ((kr = yn((ut = tn(Et, ut, 'secret_nonce')))), ut.length, Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Nr, - Vr = 0 | nn._crypto_aead_chacha20poly1305_ietf_npubbytes() - it.length !== Vr && Sn(Et, 'invalid public_nonce length'), - (Nr = yn(it)), - Et.push(Nr), - (lt = tn(Et, lt, 'key')) - var to, - Io = 0 | nn._crypto_aead_chacha20poly1305_ietf_keybytes() - lt.length !== Io && Sn(Et, 'invalid key length'), (to = yn(lt)), Et.push(to) - var $o = new ln((Yt + nn._crypto_aead_chacha20poly1305_ietf_abytes()) | 0), - go = $o.address - if ( - (Et.push(go), - nn._crypto_aead_chacha20poly1305_ietf_encrypt( - go, - null, - Dt, - Yt, - 0, - nr, - ar, - 0, - kr, - Nr, - to, - ) === 0) - ) { - var es = mn($o, vt) - return Tn(Et), es - } - Gn(Et, 'invalid usage') - } - function _n(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = yn((ot = tn(Et, ot, 'message'))), - Yt = ot.length - Et.push(Dt) - var nr = null, - ar = 0 - ct != null && - ((nr = yn((ct = tn(Et, ct, 'additional_data')))), (ar = ct.length), Et.push(nr)) - var kr = null - ut != null && ((kr = yn((ut = tn(Et, ut, 'secret_nonce')))), ut.length, Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Nr, - Vr = 0 | nn._crypto_aead_chacha20poly1305_ietf_npubbytes() - it.length !== Vr && Sn(Et, 'invalid public_nonce length'), - (Nr = yn(it)), - Et.push(Nr), - (lt = tn(Et, lt, 'key')) - var to, - Io = 0 | nn._crypto_aead_chacha20poly1305_ietf_keybytes() - lt.length !== Io && Sn(Et, 'invalid key length'), (to = yn(lt)), Et.push(to) - var $o = new ln(0 | Yt), - go = $o.address - Et.push(go) - var es = new ln(0 | nn._crypto_aead_chacha20poly1305_ietf_abytes()), - As = es.address - if ( - (Et.push(As), - nn._crypto_aead_chacha20poly1305_ietf_encrypt_detached( - go, - As, - null, - Dt, - Yt, - 0, - nr, - ar, - 0, - kr, - Nr, - to, - ) === 0) - ) { - var Ds = mn({ ciphertext: $o, mac: es }, vt) - return Tn(Et), Ds - } - Gn(Et, 'invalid usage') - } - function Ln(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_aead_chacha20poly1305_ietf_keybytes()), - it = ut.address - ct.push(it), nn._crypto_aead_chacha20poly1305_ietf_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function zn(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_aead_chacha20poly1305_keybytes()), - it = ut.address - ct.push(it), nn._crypto_aead_chacha20poly1305_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Fn(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = null - ot != null && ((Dt = yn((ot = tn(Et, ot, 'secret_nonce')))), ot.length, Et.push(Dt)), - (ct = tn(Et, ct, 'ciphertext')) - var Yt, - nr = nn._crypto_aead_xchacha20poly1305_ietf_abytes(), - ar = ct.length - ar < nr && Sn(Et, 'ciphertext is too short'), (Yt = yn(ct)), Et.push(Yt) - var kr = null, - Nr = 0 - ut != null && - ((kr = yn((ut = tn(Et, ut, 'additional_data')))), (Nr = ut.length), Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Vr, - to = 0 | nn._crypto_aead_xchacha20poly1305_ietf_npubbytes() - it.length !== to && Sn(Et, 'invalid public_nonce length'), - (Vr = yn(it)), - Et.push(Vr), - (lt = tn(Et, lt, 'key')) - var Io, - $o = 0 | nn._crypto_aead_xchacha20poly1305_ietf_keybytes() - lt.length !== $o && Sn(Et, 'invalid key length'), (Io = yn(lt)), Et.push(Io) - var go = new ln((ar - nn._crypto_aead_xchacha20poly1305_ietf_abytes()) | 0), - es = go.address - if ( - (Et.push(es), - nn._crypto_aead_xchacha20poly1305_ietf_decrypt( - es, - null, - Dt, - Yt, - ar, - 0, - kr, - Nr, - 0, - Vr, - Io, - ) === 0) - ) { - var As = mn(go, vt) - return Tn(Et), As - } - Gn(Et, 'ciphertext cannot be decrypted using that key') - } - function An(ot, ct, ut, it, lt, vt, Et) { - var Dt = [] - kn(Et) - var Yt = null - ot != null && ((Yt = yn((ot = tn(Dt, ot, 'secret_nonce')))), ot.length, Dt.push(Yt)) - var nr = yn((ct = tn(Dt, ct, 'ciphertext'))), - ar = ct.length - Dt.push(nr), (ut = tn(Dt, ut, 'mac')) - var kr, - Nr = 0 | nn._crypto_box_macbytes() - ut.length !== Nr && Sn(Dt, 'invalid mac length'), (kr = yn(ut)), Dt.push(kr) - var Vr = null, - to = 0 - it != null && - ((Vr = yn((it = tn(Dt, it, 'additional_data')))), (to = it.length), Dt.push(Vr)), - (lt = tn(Dt, lt, 'public_nonce')) - var Io, - $o = 0 | nn._crypto_aead_xchacha20poly1305_ietf_npubbytes() - lt.length !== $o && Sn(Dt, 'invalid public_nonce length'), - (Io = yn(lt)), - Dt.push(Io), - (vt = tn(Dt, vt, 'key')) - var go, - es = 0 | nn._crypto_aead_xchacha20poly1305_ietf_keybytes() - vt.length !== es && Sn(Dt, 'invalid key length'), (go = yn(vt)), Dt.push(go) - var As = new ln(0 | ar), - Ds = As.address - if ( - (Dt.push(Ds), - nn._crypto_aead_xchacha20poly1305_ietf_decrypt_detached( - Ds, - Yt, - nr, - ar, - 0, - kr, - Vr, - to, - 0, - Io, - go, - ) === 0) - ) { - var pu = mn(As, Et) - return Tn(Dt), pu - } - Gn(Dt, 'ciphertext cannot be decrypted using that key') - } - function Qn(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = yn((ot = tn(Et, ot, 'message'))), - Yt = ot.length - Et.push(Dt) - var nr = null, - ar = 0 - ct != null && - ((nr = yn((ct = tn(Et, ct, 'additional_data')))), (ar = ct.length), Et.push(nr)) - var kr = null - ut != null && ((kr = yn((ut = tn(Et, ut, 'secret_nonce')))), ut.length, Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Nr, - Vr = 0 | nn._crypto_aead_xchacha20poly1305_ietf_npubbytes() - it.length !== Vr && Sn(Et, 'invalid public_nonce length'), - (Nr = yn(it)), - Et.push(Nr), - (lt = tn(Et, lt, 'key')) - var to, - Io = 0 | nn._crypto_aead_xchacha20poly1305_ietf_keybytes() - lt.length !== Io && Sn(Et, 'invalid key length'), (to = yn(lt)), Et.push(to) - var $o = new ln((Yt + nn._crypto_aead_xchacha20poly1305_ietf_abytes()) | 0), - go = $o.address - if ( - (Et.push(go), - nn._crypto_aead_xchacha20poly1305_ietf_encrypt( - go, - null, - Dt, - Yt, - 0, - nr, - ar, - 0, - kr, - Nr, - to, - ) === 0) - ) { - var es = mn($o, vt) - return Tn(Et), es - } - Gn(Et, 'invalid usage') - } - function Rn(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = yn((ot = tn(Et, ot, 'message'))), - Yt = ot.length - Et.push(Dt) - var nr = null, - ar = 0 - ct != null && - ((nr = yn((ct = tn(Et, ct, 'additional_data')))), (ar = ct.length), Et.push(nr)) - var kr = null - ut != null && ((kr = yn((ut = tn(Et, ut, 'secret_nonce')))), ut.length, Et.push(kr)), - (it = tn(Et, it, 'public_nonce')) - var Nr, - Vr = 0 | nn._crypto_aead_xchacha20poly1305_ietf_npubbytes() - it.length !== Vr && Sn(Et, 'invalid public_nonce length'), - (Nr = yn(it)), - Et.push(Nr), - (lt = tn(Et, lt, 'key')) - var to, - Io = 0 | nn._crypto_aead_xchacha20poly1305_ietf_keybytes() - lt.length !== Io && Sn(Et, 'invalid key length'), (to = yn(lt)), Et.push(to) - var $o = new ln(0 | Yt), - go = $o.address - Et.push(go) - var es = new ln(0 | nn._crypto_aead_xchacha20poly1305_ietf_abytes()), - As = es.address - if ( - (Et.push(As), - nn._crypto_aead_xchacha20poly1305_ietf_encrypt_detached( - go, - As, - null, - Dt, - Yt, - 0, - nr, - ar, - 0, - kr, - Nr, - to, - ) === 0) - ) { - var Ds = mn({ ciphertext: $o, mac: es }, vt) - return Tn(Et), Ds - } - Gn(Et, 'invalid usage') - } - function Vn(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_aead_xchacha20poly1305_ietf_keybytes()), - it = ut.address - ct.push(it), nn._crypto_aead_xchacha20poly1305_ietf_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Wn(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'key')) - var Et, - Dt = 0 | nn._crypto_auth_keybytes() - ct.length !== Dt && Sn(it, 'invalid key length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_auth_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_auth(nr, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function ht(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'key')) - var Et, - Dt = 0 | nn._crypto_auth_hmacsha256_keybytes() - ct.length !== Dt && Sn(it, 'invalid key length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_auth_hmacsha256_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_auth_hmacsha256(nr, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function Wt(ot, ct) { - var ut = [] - kn(ct), Zn(ut, ot, 'state_address') - var it = new ln(0 | nn._crypto_auth_hmacsha256_bytes()), - lt = it.address - if ((ut.push(lt), (0 | nn._crypto_auth_hmacsha256_final(ot, lt)) == 0)) { - var vt = (nn._free(ot), mn(it, ct)) - return Tn(ut), vt - } - Gn(ut, 'invalid usage') - } - function zt(ot, ct) { - var ut = [] - kn(ct) - var it = null, - lt = 0 - ot != null && ((it = yn((ot = tn(ut, ot, 'key')))), (lt = ot.length), ut.push(it)) - var vt = new ln(208).address - if (!(0 | nn._crypto_auth_hmacsha256_init(vt, it, lt))) { - var Et = vt - return Tn(ut), Et - } - Gn(ut, 'invalid usage') - } - function mr(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_auth_hmacsha256_keybytes()), - it = ut.address - ct.push(it), nn._crypto_auth_hmacsha256_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Uo(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address') - var lt = yn((ct = tn(it, ct, 'message_chunk'))), - vt = ct.length - it.push(lt), - 0 | nn._crypto_auth_hmacsha256_update(ot, lt, vt) && Gn(it, 'invalid usage'), - Tn(it) - } - function Vo(ot, ct, ut) { - var it = [] - ot = tn(it, ot, 'tag') - var lt, - vt = 0 | nn._crypto_auth_hmacsha256_bytes() - ot.length !== vt && Sn(it, 'invalid tag length'), (lt = yn(ot)), it.push(lt) - var Et = yn((ct = tn(it, ct, 'message'))), - Dt = ct.length - it.push(Et), (ut = tn(it, ut, 'key')) - var Yt, - nr = 0 | nn._crypto_auth_hmacsha256_keybytes() - ut.length !== nr && Sn(it, 'invalid key length'), (Yt = yn(ut)), it.push(Yt) - var ar = (0 | nn._crypto_auth_hmacsha256_verify(lt, Et, Dt, 0, Yt)) == 0 - return Tn(it), ar - } - function ko(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'key')) - var Et, - Dt = 0 | nn._crypto_auth_hmacsha512_keybytes() - ct.length !== Dt && Sn(it, 'invalid key length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_auth_hmacsha512_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_auth_hmacsha512(nr, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function na(ot, ct) { - var ut = [] - kn(ct), Zn(ut, ot, 'state_address') - var it = new ln(0 | nn._crypto_auth_hmacsha512_bytes()), - lt = it.address - if ((ut.push(lt), (0 | nn._crypto_auth_hmacsha512_final(ot, lt)) == 0)) { - var vt = (nn._free(ot), mn(it, ct)) - return Tn(ut), vt - } - Gn(ut, 'invalid usage') - } - function Yo(ot, ct) { - var ut = [] - kn(ct) - var it = null, - lt = 0 - ot != null && ((it = yn((ot = tn(ut, ot, 'key')))), (lt = ot.length), ut.push(it)) - var vt = new ln(416).address - if (!(0 | nn._crypto_auth_hmacsha512_init(vt, it, lt))) { - var Et = vt - return Tn(ut), Et - } - Gn(ut, 'invalid usage') - } - function vo(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_auth_hmacsha512_keybytes()), - it = ut.address - ct.push(it), nn._crypto_auth_hmacsha512_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Wo(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address') - var lt = yn((ct = tn(it, ct, 'message_chunk'))), - vt = ct.length - it.push(lt), - 0 | nn._crypto_auth_hmacsha512_update(ot, lt, vt) && Gn(it, 'invalid usage'), - Tn(it) - } - function ba(ot, ct, ut) { - var it = [] - ot = tn(it, ot, 'tag') - var lt, - vt = 0 | nn._crypto_auth_hmacsha512_bytes() - ot.length !== vt && Sn(it, 'invalid tag length'), (lt = yn(ot)), it.push(lt) - var Et = yn((ct = tn(it, ct, 'message'))), - Dt = ct.length - it.push(Et), (ut = tn(it, ut, 'key')) - var Yt, - nr = 0 | nn._crypto_auth_hmacsha512_keybytes() - ut.length !== nr && Sn(it, 'invalid key length'), (Yt = yn(ut)), it.push(Yt) - var ar = (0 | nn._crypto_auth_hmacsha512_verify(lt, Et, Dt, 0, Yt)) == 0 - return Tn(it), ar - } - function Co(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_auth_keybytes()), - it = ut.address - ct.push(it), nn._crypto_auth_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Ko(ot, ct, ut) { - var it = [] - ot = tn(it, ot, 'tag') - var lt, - vt = 0 | nn._crypto_auth_bytes() - ot.length !== vt && Sn(it, 'invalid tag length'), (lt = yn(ot)), it.push(lt) - var Et = yn((ct = tn(it, ct, 'message'))), - Dt = ct.length - it.push(Et), (ut = tn(it, ut, 'key')) - var Yt, - nr = 0 | nn._crypto_auth_keybytes() - ut.length !== nr && Sn(it, 'invalid key length'), (Yt = yn(ut)), it.push(Yt) - var ar = (0 | nn._crypto_auth_verify(lt, Et, Dt, 0, Yt)) == 0 - return Tn(it), ar - } - function xa(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'publicKey')) - var lt, - vt = 0 | nn._crypto_box_publickeybytes() - ot.length !== vt && Sn(it, 'invalid publicKey length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'privateKey')) - var Et, - Dt = 0 | nn._crypto_box_secretkeybytes() - ct.length !== Dt && Sn(it, 'invalid privateKey length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_box_beforenmbytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_box_beforenm(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function bo(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_box_curve25519xchacha20poly1305_publickeybytes()), - it = ut.address - ct.push(it) - var lt = new ln(0 | nn._crypto_box_curve25519xchacha20poly1305_secretkeybytes()), - vt = lt.address - ct.push(vt), nn._crypto_box_curve25519xchacha20poly1305_keypair(it, vt) - var Et = mn({ publicKey: ut, privateKey: lt, keyType: 'curve25519' }, ot) - return Tn(ct), Et - } - function br(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'publicKey')) - var Et, - Dt = 0 | nn._crypto_box_curve25519xchacha20poly1305_publickeybytes() - ct.length !== Dt && Sn(it, 'invalid publicKey length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln((vt + nn._crypto_box_curve25519xchacha20poly1305_sealbytes()) | 0), - nr = Yt.address - it.push(nr), nn._crypto_box_curve25519xchacha20poly1305_seal(nr, lt, vt, 0, Et) - var ar = mn(Yt, ut) - return Tn(it), ar - } - function Fr(ot, ct, ut, it) { - var lt = [] - kn(it), (ot = tn(lt, ot, 'ciphertext')) - var vt, - Et = nn._crypto_box_curve25519xchacha20poly1305_sealbytes(), - Dt = ot.length - Dt < Et && Sn(lt, 'ciphertext is too short'), - (vt = yn(ot)), - lt.push(vt), - (ct = tn(lt, ct, 'publicKey')) - var Yt, - nr = 0 | nn._crypto_box_curve25519xchacha20poly1305_publickeybytes() - ct.length !== nr && Sn(lt, 'invalid publicKey length'), - (Yt = yn(ct)), - lt.push(Yt), - (ut = tn(lt, ut, 'secretKey')) - var ar, - kr = 0 | nn._crypto_box_curve25519xchacha20poly1305_secretkeybytes() - ut.length !== kr && Sn(lt, 'invalid secretKey length'), (ar = yn(ut)), lt.push(ar) - var Nr = new ln((Dt - nn._crypto_box_curve25519xchacha20poly1305_sealbytes()) | 0), - Vr = Nr.address - lt.push(Vr), nn._crypto_box_curve25519xchacha20poly1305_seal_open(Vr, vt, Dt, 0, Yt, ar) - var to = mn(Nr, it) - return Tn(lt), to - } - function $r(ot, ct, ut, it, lt) { - var vt = [] - kn(lt) - var Et = yn((ot = tn(vt, ot, 'message'))), - Dt = ot.length - vt.push(Et), (ct = tn(vt, ct, 'nonce')) - var Yt, - nr = 0 | nn._crypto_box_noncebytes() - ct.length !== nr && Sn(vt, 'invalid nonce length'), - (Yt = yn(ct)), - vt.push(Yt), - (ut = tn(vt, ut, 'publicKey')) - var ar, - kr = 0 | nn._crypto_box_publickeybytes() - ut.length !== kr && Sn(vt, 'invalid publicKey length'), - (ar = yn(ut)), - vt.push(ar), - (it = tn(vt, it, 'privateKey')) - var Nr, - Vr = 0 | nn._crypto_box_secretkeybytes() - it.length !== Vr && Sn(vt, 'invalid privateKey length'), (Nr = yn(it)), vt.push(Nr) - var to = new ln(0 | Dt), - Io = to.address - vt.push(Io) - var $o = new ln(0 | nn._crypto_box_macbytes()), - go = $o.address - if ((vt.push(go), (0 | nn._crypto_box_detached(Io, go, Et, Dt, 0, Yt, ar, Nr)) == 0)) { - var es = mn({ ciphertext: to, mac: $o }, lt) - return Tn(vt), es - } - Gn(vt, 'invalid usage') - } - function cr(ot, ct, ut, it, lt) { - var vt = [] - kn(lt) - var Et = yn((ot = tn(vt, ot, 'message'))), - Dt = ot.length - vt.push(Et), (ct = tn(vt, ct, 'nonce')) - var Yt, - nr = 0 | nn._crypto_box_noncebytes() - ct.length !== nr && Sn(vt, 'invalid nonce length'), - (Yt = yn(ct)), - vt.push(Yt), - (ut = tn(vt, ut, 'publicKey')) - var ar, - kr = 0 | nn._crypto_box_publickeybytes() - ut.length !== kr && Sn(vt, 'invalid publicKey length'), - (ar = yn(ut)), - vt.push(ar), - (it = tn(vt, it, 'privateKey')) - var Nr, - Vr = 0 | nn._crypto_box_secretkeybytes() - it.length !== Vr && Sn(vt, 'invalid privateKey length'), (Nr = yn(it)), vt.push(Nr) - var to = new ln((Dt + nn._crypto_box_macbytes()) | 0), - Io = to.address - if ((vt.push(Io), (0 | nn._crypto_box_easy(Io, Et, Dt, 0, Yt, ar, Nr)) == 0)) { - var $o = mn(to, lt) - return Tn(vt), $o - } - Gn(vt, 'invalid usage') - } - function ir(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'message'))), - Et = ot.length - lt.push(vt), (ct = tn(lt, ct, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_box_noncebytes() - ct.length !== Yt && Sn(lt, 'invalid nonce length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'sharedKey')) - var nr, - ar = 0 | nn._crypto_box_beforenmbytes() - ut.length !== ar && Sn(lt, 'invalid sharedKey length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln((Et + nn._crypto_box_macbytes()) | 0), - Nr = kr.address - if ((lt.push(Nr), (0 | nn._crypto_box_easy_afternm(Nr, vt, Et, 0, Dt, nr)) == 0)) { - var Vr = mn(kr, it) - return Tn(lt), Vr - } - Gn(lt, 'invalid usage') - } - function vn(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_box_publickeybytes()), - it = ut.address - ct.push(it) - var lt = new ln(0 | nn._crypto_box_secretkeybytes()), - vt = lt.address - if ((ct.push(vt), (0 | nn._crypto_box_keypair(it, vt)) == 0)) { - var Et = { publicKey: mn(ut, ot), privateKey: mn(lt, ot), keyType: 'x25519' } - return Tn(ct), Et - } - Gn(ct, 'internal error') - } - function gr(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt) - var Dt = yn((ot = tn(Et, ot, 'ciphertext'))), - Yt = ot.length - Et.push(Dt), (ct = tn(Et, ct, 'mac')) - var nr, - ar = 0 | nn._crypto_box_macbytes() - ct.length !== ar && Sn(Et, 'invalid mac length'), - (nr = yn(ct)), - Et.push(nr), - (ut = tn(Et, ut, 'nonce')) - var kr, - Nr = 0 | nn._crypto_box_noncebytes() - ut.length !== Nr && Sn(Et, 'invalid nonce length'), - (kr = yn(ut)), - Et.push(kr), - (it = tn(Et, it, 'publicKey')) - var Vr, - to = 0 | nn._crypto_box_publickeybytes() - it.length !== to && Sn(Et, 'invalid publicKey length'), - (Vr = yn(it)), - Et.push(Vr), - (lt = tn(Et, lt, 'privateKey')) - var Io, - $o = 0 | nn._crypto_box_secretkeybytes() - lt.length !== $o && Sn(Et, 'invalid privateKey length'), (Io = yn(lt)), Et.push(Io) - var go = new ln(0 | Yt), - es = go.address - if ((Et.push(es), (0 | nn._crypto_box_open_detached(es, Dt, nr, Yt, 0, kr, Vr, Io)) == 0)) { - var As = mn(go, vt) - return Tn(Et), As - } - Gn(Et, 'incorrect key pair for the given ciphertext') - } - function Mr(ot, ct, ut, it, lt) { - var vt = [] - kn(lt), (ot = tn(vt, ot, 'ciphertext')) - var Et, - Dt = nn._crypto_box_macbytes(), - Yt = ot.length - Yt < Dt && Sn(vt, 'ciphertext is too short'), - (Et = yn(ot)), - vt.push(Et), - (ct = tn(vt, ct, 'nonce')) - var nr, - ar = 0 | nn._crypto_box_noncebytes() - ct.length !== ar && Sn(vt, 'invalid nonce length'), - (nr = yn(ct)), - vt.push(nr), - (ut = tn(vt, ut, 'publicKey')) - var kr, - Nr = 0 | nn._crypto_box_publickeybytes() - ut.length !== Nr && Sn(vt, 'invalid publicKey length'), - (kr = yn(ut)), - vt.push(kr), - (it = tn(vt, it, 'privateKey')) - var Vr, - to = 0 | nn._crypto_box_secretkeybytes() - it.length !== to && Sn(vt, 'invalid privateKey length'), (Vr = yn(it)), vt.push(Vr) - var Io = new ln((Yt - nn._crypto_box_macbytes()) | 0), - $o = Io.address - if ((vt.push($o), (0 | nn._crypto_box_open_easy($o, Et, Yt, 0, nr, kr, Vr)) == 0)) { - var go = mn(Io, lt) - return Tn(vt), go - } - Gn(vt, 'incorrect key pair for the given ciphertext') - } - function Or(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'ciphertext'))), - Et = ot.length - lt.push(vt), (ct = tn(lt, ct, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_box_noncebytes() - ct.length !== Yt && Sn(lt, 'invalid nonce length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'sharedKey')) - var nr, - ar = 0 | nn._crypto_box_beforenmbytes() - ut.length !== ar && Sn(lt, 'invalid sharedKey length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln((Et - nn._crypto_box_macbytes()) | 0), - Nr = kr.address - if ((lt.push(Nr), (0 | nn._crypto_box_open_easy_afternm(Nr, vt, Et, 0, Dt, nr)) == 0)) { - var Vr = mn(kr, it) - return Tn(lt), Vr - } - Gn(lt, 'incorrect secret key for the given ciphertext') - } - function _i(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'publicKey')) - var Et, - Dt = 0 | nn._crypto_box_publickeybytes() - ct.length !== Dt && Sn(it, 'invalid publicKey length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln((vt + nn._crypto_box_sealbytes()) | 0), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_box_seal(nr, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function eo(ot, ct, ut, it) { - var lt = [] - kn(it), (ot = tn(lt, ot, 'ciphertext')) - var vt, - Et = nn._crypto_box_sealbytes(), - Dt = ot.length - Dt < Et && Sn(lt, 'ciphertext is too short'), - (vt = yn(ot)), - lt.push(vt), - (ct = tn(lt, ct, 'publicKey')) - var Yt, - nr = 0 | nn._crypto_box_publickeybytes() - ct.length !== nr && Sn(lt, 'invalid publicKey length'), - (Yt = yn(ct)), - lt.push(Yt), - (ut = tn(lt, ut, 'privateKey')) - var ar, - kr = 0 | nn._crypto_box_secretkeybytes() - ut.length !== kr && Sn(lt, 'invalid privateKey length'), (ar = yn(ut)), lt.push(ar) - var Nr = new ln((Dt - nn._crypto_box_sealbytes()) | 0), - Vr = Nr.address - if ((lt.push(Vr), (0 | nn._crypto_box_seal_open(Vr, vt, Dt, 0, Yt, ar)) == 0)) { - var to = mn(Nr, it) - return Tn(lt), to - } - Gn(lt, 'incorrect key pair for the given ciphertext') - } - function no(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'seed')) - var it, - lt = 0 | nn._crypto_box_seedbytes() - ot.length !== lt && Sn(ut, 'invalid seed length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_box_publickeybytes()), - Et = vt.address - ut.push(Et) - var Dt = new ln(0 | nn._crypto_box_secretkeybytes()), - Yt = Dt.address - if ((ut.push(Yt), (0 | nn._crypto_box_seed_keypair(Et, Yt, it)) == 0)) { - var nr = { publicKey: mn(vt, ct), privateKey: mn(Dt, ct), keyType: 'x25519' } - return Tn(ut), nr - } - Gn(ut, 'invalid usage') - } - function Oo(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'p')) - var lt, - vt = 0 | nn._crypto_core_ed25519_bytes() - ot.length !== vt && Sn(it, 'invalid p length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'q')) - var Et, - Dt = 0 | nn._crypto_core_ed25519_bytes() - ct.length !== Dt && Sn(it, 'invalid q length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ed25519_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_core_ed25519_add(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'input is an invalid element') - } - function So(ot, ct) { - var ut = [] - kn(ct) - var it = yn((ot = tn(ut, ot, 'r'))) - ot.length, ut.push(it) - var lt = new ln(0 | nn._crypto_core_ed25519_bytes()), - vt = lt.address - if ((ut.push(vt), (0 | nn._crypto_core_ed25519_from_hash(vt, it)) == 0)) { - var Et = mn(lt, ct) - return Tn(ut), Et - } - Gn(ut, 'invalid usage') - } - function lo(ot, ct) { - var ut = [] - kn(ct) - var it = yn((ot = tn(ut, ot, 'r'))) - ot.length, ut.push(it) - var lt = new ln(0 | nn._crypto_core_ed25519_bytes()), - vt = lt.address - if ((ut.push(vt), (0 | nn._crypto_core_ed25519_from_uniform(vt, it)) == 0)) { - var Et = mn(lt, ct) - return Tn(ut), Et - } - Gn(ut, 'invalid usage') - } - function Pn(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'repr')) - var it, - lt = 0 | nn._crypto_core_ed25519_bytes() - ot.length !== lt && Sn(ut, 'invalid repr length'), (it = yn(ot)), ut.push(it) - var vt = (0 | nn._crypto_core_ed25519_is_valid_point(it)) == 1 - return Tn(ut), vt - } - function Xn(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_core_ed25519_bytes()), - it = ut.address - ct.push(it), nn._crypto_core_ed25519_random(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function dt(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'x')) - var lt, - vt = 0 | nn._crypto_core_ed25519_scalarbytes() - ot.length !== vt && Sn(it, 'invalid x length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'y')) - var Et, - Dt = 0 | nn._crypto_core_ed25519_scalarbytes() - ct.length !== Dt && Sn(it, 'invalid y length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - nr = Yt.address - it.push(nr), nn._crypto_core_ed25519_scalar_add(nr, lt, Et) - var ar = mn(Yt, ut) - return Tn(it), ar - } - function Ir(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 's')) - var it, - lt = 0 | nn._crypto_core_ed25519_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid s length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - Et = vt.address - ut.push(Et), nn._crypto_core_ed25519_scalar_complement(Et, it) - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - function Lt(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 's')) - var it, - lt = 0 | nn._crypto_core_ed25519_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid s length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_core_ed25519_scalar_invert(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid reciprocate') - } - function ur(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'x')) - var lt, - vt = 0 | nn._crypto_core_ed25519_scalarbytes() - ot.length !== vt && Sn(it, 'invalid x length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'y')) - var Et, - Dt = 0 | nn._crypto_core_ed25519_scalarbytes() - ct.length !== Dt && Sn(it, 'invalid y length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - nr = Yt.address - it.push(nr), nn._crypto_core_ed25519_scalar_mul(nr, lt, Et) - var ar = mn(Yt, ut) - return Tn(it), ar - } - function ho(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 's')) - var it, - lt = 0 | nn._crypto_core_ed25519_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid s length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - Et = vt.address - ut.push(Et), nn._crypto_core_ed25519_scalar_negate(Et, it) - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - function xo(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - it = ut.address - ct.push(it), nn._crypto_core_ed25519_scalar_random(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function yo(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'sample')) - var it, - lt = 0 | nn._crypto_core_ed25519_nonreducedscalarbytes() - ot.length !== lt && Sn(ut, 'invalid sample length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - Et = vt.address - ut.push(Et), nn._crypto_core_ed25519_scalar_reduce(Et, it) - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - function ga(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'x')) - var lt, - vt = 0 | nn._crypto_core_ed25519_scalarbytes() - ot.length !== vt && Sn(it, 'invalid x length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'y')) - var Et, - Dt = 0 | nn._crypto_core_ed25519_scalarbytes() - ct.length !== Dt && Sn(it, 'invalid y length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ed25519_scalarbytes()), - nr = Yt.address - it.push(nr), nn._crypto_core_ed25519_scalar_sub(nr, lt, Et) - var ar = mn(Yt, ut) - return Tn(it), ar - } - function Zo(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'p')) - var lt, - vt = 0 | nn._crypto_core_ed25519_bytes() - ot.length !== vt && Sn(it, 'invalid p length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'q')) - var Et, - Dt = 0 | nn._crypto_core_ed25519_bytes() - ct.length !== Dt && Sn(it, 'invalid q length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ed25519_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_core_ed25519_sub(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'input is an invalid element') - } - function _o(ot, ct, ut, it) { - var lt = [] - kn(it), (ot = tn(lt, ot, 'input')) - var vt, - Et = 0 | nn._crypto_core_hchacha20_inputbytes() - ot.length !== Et && Sn(lt, 'invalid input length'), - (vt = yn(ot)), - lt.push(vt), - (ct = tn(lt, ct, 'privateKey')) - var Dt, - Yt = 0 | nn._crypto_core_hchacha20_keybytes() - ct.length !== Yt && Sn(lt, 'invalid privateKey length'), (Dt = yn(ct)), lt.push(Dt) - var nr = null - ut != null && ((nr = yn((ut = tn(lt, ut, 'constant')))), ut.length, lt.push(nr)) - var ar = new ln(0 | nn._crypto_core_hchacha20_outputbytes()), - kr = ar.address - if ((lt.push(kr), (0 | nn._crypto_core_hchacha20(kr, vt, Dt, nr)) == 0)) { - var Nr = mn(ar, it) - return Tn(lt), Nr - } - Gn(lt, 'invalid usage') - } - function zo(ot, ct, ut, it) { - var lt = [] - kn(it), (ot = tn(lt, ot, 'input')) - var vt, - Et = 0 | nn._crypto_core_hsalsa20_inputbytes() - ot.length !== Et && Sn(lt, 'invalid input length'), - (vt = yn(ot)), - lt.push(vt), - (ct = tn(lt, ct, 'privateKey')) - var Dt, - Yt = 0 | nn._crypto_core_hsalsa20_keybytes() - ct.length !== Yt && Sn(lt, 'invalid privateKey length'), (Dt = yn(ct)), lt.push(Dt) - var nr = null - ut != null && ((nr = yn((ut = tn(lt, ut, 'constant')))), ut.length, lt.push(nr)) - var ar = new ln(0 | nn._crypto_core_hsalsa20_outputbytes()), - kr = ar.address - if ((lt.push(kr), (0 | nn._crypto_core_hsalsa20(kr, vt, Dt, nr)) == 0)) { - var Nr = mn(ar, it) - return Tn(lt), Nr - } - Gn(lt, 'invalid usage') - } - function $a(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'p')) - var lt, - vt = 0 | nn._crypto_core_ristretto255_bytes() - ot.length !== vt && Sn(it, 'invalid p length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'q')) - var Et, - Dt = 0 | nn._crypto_core_ristretto255_bytes() - ct.length !== Dt && Sn(it, 'invalid q length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ristretto255_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_core_ristretto255_add(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'input is an invalid element') - } - function No(ot, ct) { - var ut = [] - kn(ct) - var it = yn((ot = tn(ut, ot, 'r'))) - ot.length, ut.push(it) - var lt = new ln(0 | nn._crypto_core_ristretto255_bytes()), - vt = lt.address - if ((ut.push(vt), (0 | nn._crypto_core_ristretto255_from_hash(vt, it)) == 0)) { - var Et = mn(lt, ct) - return Tn(ut), Et - } - Gn(ut, 'invalid usage') - } - function us(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'repr')) - var it, - lt = 0 | nn._crypto_core_ristretto255_bytes() - ot.length !== lt && Sn(ut, 'invalid repr length'), (it = yn(ot)), ut.push(it) - var vt = (0 | nn._crypto_core_ristretto255_is_valid_point(it)) == 1 - return Tn(ut), vt - } - function rs(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_core_ristretto255_bytes()), - it = ut.address - ct.push(it), nn._crypto_core_ristretto255_random(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Ro(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'x')) - var lt, - vt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ot.length !== vt && Sn(it, 'invalid x length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'y')) - var Et, - Dt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ct.length !== Dt && Sn(it, 'invalid y length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - nr = Yt.address - it.push(nr), nn._crypto_core_ristretto255_scalar_add(nr, lt, Et) - var ar = mn(Yt, ut) - return Tn(it), ar - } - function is(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 's')) - var it, - lt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid s length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - Et = vt.address - ut.push(Et), nn._crypto_core_ristretto255_scalar_complement(Et, it) - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - function ns(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 's')) - var it, - lt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid s length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_core_ristretto255_scalar_invert(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid reciprocate') - } - function Bo(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'x')) - var lt, - vt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ot.length !== vt && Sn(it, 'invalid x length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'y')) - var Et, - Dt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ct.length !== Dt && Sn(it, 'invalid y length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - nr = Yt.address - it.push(nr), nn._crypto_core_ristretto255_scalar_mul(nr, lt, Et) - var ar = mn(Yt, ut) - return Tn(it), ar - } - function ts(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 's')) - var it, - lt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid s length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - Et = vt.address - ut.push(Et), nn._crypto_core_ristretto255_scalar_negate(Et, it) - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - function Kt(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - it = ut.address - ct.push(it), nn._crypto_core_ristretto255_scalar_random(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Vt(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'sample')) - var it, - lt = 0 | nn._crypto_core_ristretto255_nonreducedscalarbytes() - ot.length !== lt && Sn(ut, 'invalid sample length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - Et = vt.address - ut.push(Et), nn._crypto_core_ristretto255_scalar_reduce(Et, it) - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - function Mt(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'x')) - var lt, - vt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ot.length !== vt && Sn(it, 'invalid x length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'y')) - var Et, - Dt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ct.length !== Dt && Sn(it, 'invalid y length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ristretto255_scalarbytes()), - nr = Yt.address - it.push(nr), nn._crypto_core_ristretto255_scalar_sub(nr, lt, Et) - var ar = mn(Yt, ut) - return Tn(it), ar - } - function $t(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'p')) - var lt, - vt = 0 | nn._crypto_core_ristretto255_bytes() - ot.length !== vt && Sn(it, 'invalid p length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'q')) - var Et, - Dt = 0 | nn._crypto_core_ristretto255_bytes() - ct.length !== Dt && Sn(it, 'invalid q length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_core_ristretto255_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_core_ristretto255_sub(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'input is an invalid element') - } - function qt(ot, ct, ut, it) { - var lt = [] - kn(it), - Zn(lt, ot, 'hash_length'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(lt, 'hash_length must be an unsigned integer') - var vt = yn((ct = tn(lt, ct, 'message'))), - Et = ct.length - lt.push(vt) - var Dt = null, - Yt = 0 - ut != null && ((Dt = yn((ut = tn(lt, ut, 'key')))), (Yt = ut.length), lt.push(Dt)) - var nr = new ln((ot |= 0)), - ar = nr.address - if ((lt.push(ar), (0 | nn._crypto_generichash(ar, ot, vt, Et, 0, Dt, Yt)) == 0)) { - var kr = mn(nr, it) - return Tn(lt), kr - } - Gn(lt, 'invalid usage') - } - function pr(ot, ct, ut, it, lt) { - var vt = [] - kn(lt), - Zn(vt, ot, 'subkey_len'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(vt, 'subkey_len must be an unsigned integer') - var Et = null, - Dt = 0 - ct != null && ((Et = yn((ct = tn(vt, ct, 'key')))), (Dt = ct.length), vt.push(Et)) - var Yt = null, - nr = 0 - ut != null && - ((ut = tn(vt, ut, 'id')), - (nr = 0 | nn._crypto_generichash_blake2b_saltbytes()), - ut.length !== nr && Sn(vt, 'invalid id length'), - (Yt = yn(ut)), - vt.push(Yt)) - var ar = null, - kr = 0 - it != null && - ((it = tn(vt, it, 'ctx')), - (kr = 0 | nn._crypto_generichash_blake2b_personalbytes()), - it.length !== kr && Sn(vt, 'invalid ctx length'), - (ar = yn(it)), - vt.push(ar)) - var Nr = new ln(0 | ot), - Vr = Nr.address - if ( - (vt.push(Vr), - (0 | nn._crypto_generichash_blake2b_salt_personal(Vr, ot, null, 0, 0, Et, Dt, Yt, ar)) == - 0) - ) { - var to = mn(Nr, lt) - return Tn(vt), to - } - Gn(vt, 'invalid usage') - } - function Rr(ot, ct, ut) { - var it = [] - kn(ut), - Zn(it, ot, 'state_address'), - Zn(it, ct, 'hash_length'), - (typeof ct != 'number' || (0 | ct) !== ct || ct < 0) && - Sn(it, 'hash_length must be an unsigned integer') - var lt = new ln((ct |= 0)), - vt = lt.address - if ((it.push(vt), (0 | nn._crypto_generichash_final(ot, vt, ct)) == 0)) { - var Et = (nn._free(ot), mn(lt, ut)) - return Tn(it), Et - } - Gn(it, 'invalid usage') - } - function Sr(ot, ct, ut) { - var it = [] - kn(ut) - var lt = null, - vt = 0 - ot != null && ((lt = yn((ot = tn(it, ot, 'key')))), (vt = ot.length), it.push(lt)), - Zn(it, ct, 'hash_length'), - (typeof ct != 'number' || (0 | ct) !== ct || ct < 0) && - Sn(it, 'hash_length must be an unsigned integer') - var Et = new ln(357).address - if (!(0 | nn._crypto_generichash_init(Et, lt, vt, ct))) { - var Dt = Et - return Tn(it), Dt - } - Gn(it, 'invalid usage') - } - function lr(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_generichash_keybytes()), - it = ut.address - ct.push(it), nn._crypto_generichash_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Jr(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address') - var lt = yn((ct = tn(it, ct, 'message_chunk'))), - vt = ct.length - it.push(lt), - 0 | nn._crypto_generichash_update(ot, lt, vt) && Gn(it, 'invalid usage'), - Tn(it) - } - function co(ot, ct) { - var ut = [] - kn(ct) - var it = yn((ot = tn(ut, ot, 'message'))), - lt = ot.length - ut.push(it) - var vt = new ln(0 | nn._crypto_hash_bytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_hash(Et, it, lt, 0)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid usage') - } - function Po(ot, ct) { - var ut = [] - kn(ct) - var it = yn((ot = tn(ut, ot, 'message'))), - lt = ot.length - ut.push(it) - var vt = new ln(0 | nn._crypto_hash_sha256_bytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_hash_sha256(Et, it, lt, 0)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid usage') - } - function Ho(ot, ct) { - var ut = [] - kn(ct), Zn(ut, ot, 'state_address') - var it = new ln(0 | nn._crypto_hash_sha256_bytes()), - lt = it.address - if ((ut.push(lt), (0 | nn._crypto_hash_sha256_final(ot, lt)) == 0)) { - var vt = (nn._free(ot), mn(it, ct)) - return Tn(ut), vt - } - Gn(ut, 'invalid usage') - } - function Xo(ot) { - var ct = [] - kn(ot) - var ut = new ln(104).address - if (!(0 | nn._crypto_hash_sha256_init(ut))) { - var it = ut - return Tn(ct), it - } - Gn(ct, 'invalid usage') - } - function Mo(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address') - var lt = yn((ct = tn(it, ct, 'message_chunk'))), - vt = ct.length - it.push(lt), - 0 | nn._crypto_hash_sha256_update(ot, lt, vt) && Gn(it, 'invalid usage'), - Tn(it) - } - function vr(ot, ct) { - var ut = [] - kn(ct) - var it = yn((ot = tn(ut, ot, 'message'))), - lt = ot.length - ut.push(it) - var vt = new ln(0 | nn._crypto_hash_sha512_bytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_hash_sha512(Et, it, lt, 0)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid usage') - } - function Wr(ot, ct) { - var ut = [] - kn(ct), Zn(ut, ot, 'state_address') - var it = new ln(0 | nn._crypto_hash_sha512_bytes()), - lt = it.address - if ((ut.push(lt), (0 | nn._crypto_hash_sha512_final(ot, lt)) == 0)) { - var vt = (nn._free(ot), mn(it, ct)) - return Tn(ut), vt - } - Gn(ut, 'invalid usage') - } - function qr(ot) { - var ct = [] - kn(ot) - var ut = new ln(208).address - if (!(0 | nn._crypto_hash_sha512_init(ut))) { - var it = ut - return Tn(ct), it - } - Gn(ct, 'invalid usage') - } - function Xr(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address') - var lt = yn((ct = tn(it, ct, 'message_chunk'))), - vt = ct.length - it.push(lt), - 0 | nn._crypto_hash_sha512_update(ot, lt, vt) && Gn(it, 'invalid usage'), - Tn(it) - } - function Ao(ot, ct, ut, it, lt) { - var vt = [] - kn(lt), - Zn(vt, ot, 'subkey_len'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(vt, 'subkey_len must be an unsigned integer'), - Zn(vt, ct, 'subkey_id'), - (typeof ct != 'number' || (0 | ct) !== ct || ct < 0) && - Sn(vt, 'subkey_id must be an unsigned integer'), - typeof ut != 'string' && Sn(vt, 'ctx must be a string'), - (ut = In(ut + '\0')), - Dt != null && ut.length - 1 !== Dt && Sn(vt, 'invalid ctx length') - var Et = yn(ut), - Dt = ut.length - 1 - vt.push(Et), (it = tn(vt, it, 'key')) - var Yt, - nr = 0 | nn._crypto_kdf_keybytes() - it.length !== nr && Sn(vt, 'invalid key length'), (Yt = yn(it)), vt.push(Yt) - var ar = new ln(0 | ot), - kr = ar.address - vt.push(kr), nn._crypto_kdf_derive_from_key(kr, ot, ct, (ct >>> 24) >>> 8, Et, Yt) - var Nr = mn(ar, lt) - return Tn(vt), Nr - } - function fo(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_kdf_keybytes()), - it = ut.address - ct.push(it), nn._crypto_kdf_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function wo(ot, ct, ut, it) { - var lt = [] - kn(it), (ot = tn(lt, ot, 'clientPublicKey')) - var vt, - Et = 0 | nn._crypto_kx_publickeybytes() - ot.length !== Et && Sn(lt, 'invalid clientPublicKey length'), - (vt = yn(ot)), - lt.push(vt), - (ct = tn(lt, ct, 'clientSecretKey')) - var Dt, - Yt = 0 | nn._crypto_kx_secretkeybytes() - ct.length !== Yt && Sn(lt, 'invalid clientSecretKey length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'serverPublicKey')) - var nr, - ar = 0 | nn._crypto_kx_publickeybytes() - ut.length !== ar && Sn(lt, 'invalid serverPublicKey length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln(0 | nn._crypto_kx_sessionkeybytes()), - Nr = kr.address - lt.push(Nr) - var Vr = new ln(0 | nn._crypto_kx_sessionkeybytes()), - to = Vr.address - if ((lt.push(to), (0 | nn._crypto_kx_client_session_keys(Nr, to, vt, Dt, nr)) == 0)) { - var Io = mn({ sharedRx: kr, sharedTx: Vr }, it) - return Tn(lt), Io - } - Gn(lt, 'invalid usage') - } - function so(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_kx_publickeybytes()), - it = ut.address - ct.push(it) - var lt = new ln(0 | nn._crypto_kx_secretkeybytes()), - vt = lt.address - if ((ct.push(vt), (0 | nn._crypto_kx_keypair(it, vt)) == 0)) { - var Et = { publicKey: mn(ut, ot), privateKey: mn(lt, ot), keyType: 'x25519' } - return Tn(ct), Et - } - Gn(ct, 'internal error') - } - function jo(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'seed')) - var it, - lt = 0 | nn._crypto_kx_seedbytes() - ot.length !== lt && Sn(ut, 'invalid seed length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_kx_publickeybytes()), - Et = vt.address - ut.push(Et) - var Dt = new ln(0 | nn._crypto_kx_secretkeybytes()), - Yt = Dt.address - if ((ut.push(Yt), (0 | nn._crypto_kx_seed_keypair(Et, Yt, it)) == 0)) { - var nr = { publicKey: mn(vt, ct), privateKey: mn(Dt, ct), keyType: 'x25519' } - return Tn(ut), nr - } - Gn(ut, 'internal error') - } - function os(ot, ct, ut, it) { - var lt = [] - kn(it), (ot = tn(lt, ot, 'serverPublicKey')) - var vt, - Et = 0 | nn._crypto_kx_publickeybytes() - ot.length !== Et && Sn(lt, 'invalid serverPublicKey length'), - (vt = yn(ot)), - lt.push(vt), - (ct = tn(lt, ct, 'serverSecretKey')) - var Dt, - Yt = 0 | nn._crypto_kx_secretkeybytes() - ct.length !== Yt && Sn(lt, 'invalid serverSecretKey length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'clientPublicKey')) - var nr, - ar = 0 | nn._crypto_kx_publickeybytes() - ut.length !== ar && Sn(lt, 'invalid clientPublicKey length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln(0 | nn._crypto_kx_sessionkeybytes()), - Nr = kr.address - lt.push(Nr) - var Vr = new ln(0 | nn._crypto_kx_sessionkeybytes()), - to = Vr.address - if ((lt.push(to), (0 | nn._crypto_kx_server_session_keys(Nr, to, vt, Dt, nr)) == 0)) { - var Io = mn({ sharedRx: kr, sharedTx: Vr }, it) - return Tn(lt), Io - } - Gn(lt, 'invalid usage') - } - function as(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'key')) - var Et, - Dt = 0 | nn._crypto_onetimeauth_keybytes() - ct.length !== Dt && Sn(it, 'invalid key length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_onetimeauth_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_onetimeauth(nr, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function ys(ot, ct) { - var ut = [] - kn(ct), Zn(ut, ot, 'state_address') - var it = new ln(0 | nn._crypto_onetimeauth_bytes()), - lt = it.address - if ((ut.push(lt), (0 | nn._crypto_onetimeauth_final(ot, lt)) == 0)) { - var vt = (nn._free(ot), mn(it, ct)) - return Tn(ut), vt - } - Gn(ut, 'invalid usage') - } - function pn(ot, ct) { - var ut = [] - kn(ct) - var it = null - ot != null && ((it = yn((ot = tn(ut, ot, 'key')))), ot.length, ut.push(it)) - var lt = new ln(144).address - if (!(0 | nn._crypto_onetimeauth_init(lt, it))) { - var vt = lt - return Tn(ut), vt - } - Gn(ut, 'invalid usage') - } - function c(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_onetimeauth_keybytes()), - it = ut.address - ct.push(it), nn._crypto_onetimeauth_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function rn(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address') - var lt = yn((ct = tn(it, ct, 'message_chunk'))), - vt = ct.length - it.push(lt), - 0 | nn._crypto_onetimeauth_update(ot, lt, vt) && Gn(it, 'invalid usage'), - Tn(it) - } - function Es(ot, ct, ut) { - var it = [] - ot = tn(it, ot, 'hash') - var lt, - vt = 0 | nn._crypto_onetimeauth_bytes() - ot.length !== vt && Sn(it, 'invalid hash length'), (lt = yn(ot)), it.push(lt) - var Et = yn((ct = tn(it, ct, 'message'))), - Dt = ct.length - it.push(Et), (ut = tn(it, ut, 'key')) - var Yt, - nr = 0 | nn._crypto_onetimeauth_keybytes() - ut.length !== nr && Sn(it, 'invalid key length'), (Yt = yn(ut)), it.push(Yt) - var ar = (0 | nn._crypto_onetimeauth_verify(lt, Et, Dt, 0, Yt)) == 0 - return Tn(it), ar - } - function zr(ot, ct, ut, it, lt, vt, Et) { - var Dt = [] - kn(Et), - Zn(Dt, ot, 'keyLength'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(Dt, 'keyLength must be an unsigned integer') - var Yt = yn((ct = tn(Dt, ct, 'password'))), - nr = ct.length - Dt.push(Yt), (ut = tn(Dt, ut, 'salt')) - var ar, - kr = 0 | nn._crypto_pwhash_saltbytes() - ut.length !== kr && Sn(Dt, 'invalid salt length'), - (ar = yn(ut)), - Dt.push(ar), - Zn(Dt, it, 'opsLimit'), - (typeof it != 'number' || (0 | it) !== it || it < 0) && - Sn(Dt, 'opsLimit must be an unsigned integer'), - Zn(Dt, lt, 'memLimit'), - (typeof lt != 'number' || (0 | lt) !== lt || lt < 0) && - Sn(Dt, 'memLimit must be an unsigned integer'), - Zn(Dt, vt, 'algorithm'), - (typeof vt != 'number' || (0 | vt) !== vt || vt < 0) && - Sn(Dt, 'algorithm must be an unsigned integer') - var Nr = new ln(0 | ot), - Vr = Nr.address - if ((Dt.push(Vr), (0 | nn._crypto_pwhash(Vr, ot, 0, Yt, nr, 0, ar, it, 0, lt, vt)) == 0)) { - var to = mn(Nr, Et) - return Tn(Dt), to - } - Gn(Dt, 'invalid usage') - } - function Ms(ot, ct, ut, it, lt, vt) { - var Et = [] - kn(vt), - Zn(Et, ot, 'keyLength'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(Et, 'keyLength must be an unsigned integer') - var Dt = yn((ct = tn(Et, ct, 'password'))), - Yt = ct.length - Et.push(Dt), (ut = tn(Et, ut, 'salt')) - var nr, - ar = 0 | nn._crypto_pwhash_scryptsalsa208sha256_saltbytes() - ut.length !== ar && Sn(Et, 'invalid salt length'), - (nr = yn(ut)), - Et.push(nr), - Zn(Et, it, 'opsLimit'), - (typeof it != 'number' || (0 | it) !== it || it < 0) && - Sn(Et, 'opsLimit must be an unsigned integer'), - Zn(Et, lt, 'memLimit'), - (typeof lt != 'number' || (0 | lt) !== lt || lt < 0) && - Sn(Et, 'memLimit must be an unsigned integer') - var kr = new ln(0 | ot), - Nr = kr.address - if ( - (Et.push(Nr), - (0 | nn._crypto_pwhash_scryptsalsa208sha256(Nr, ot, 0, Dt, Yt, 0, nr, it, 0, lt)) == 0) - ) { - var Vr = mn(kr, vt) - return Tn(Et), Vr - } - Gn(Et, 'invalid usage') - } - function Ws(ot, ct, ut, it, lt, vt, Et) { - var Dt = [] - kn(Et) - var Yt = yn((ot = tn(Dt, ot, 'password'))), - nr = ot.length - Dt.push(Yt) - var ar = yn((ct = tn(Dt, ct, 'salt'))), - kr = ct.length - Dt.push(ar), - Zn(Dt, ut, 'opsLimit'), - (typeof ut != 'number' || (0 | ut) !== ut || ut < 0) && - Sn(Dt, 'opsLimit must be an unsigned integer'), - Zn(Dt, it, 'r'), - (typeof it != 'number' || (0 | it) !== it || it < 0) && - Sn(Dt, 'r must be an unsigned integer'), - Zn(Dt, lt, 'p'), - (typeof lt != 'number' || (0 | lt) !== lt || lt < 0) && - Sn(Dt, 'p must be an unsigned integer'), - Zn(Dt, vt, 'keyLength'), - (typeof vt != 'number' || (0 | vt) !== vt || vt < 0) && - Sn(Dt, 'keyLength must be an unsigned integer') - var Nr = new ln(0 | vt), - Vr = Nr.address - if ( - (Dt.push(Vr), - (0 | nn._crypto_pwhash_scryptsalsa208sha256_ll(Yt, nr, ar, kr, ut, 0, it, lt, Vr, vt)) == - 0) - ) { - var to = mn(Nr, Et) - return Tn(Dt), to - } - Gn(Dt, 'invalid usage') - } - function ru(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'password'))), - Et = ot.length - lt.push(vt), - Zn(lt, ct, 'opsLimit'), - (typeof ct != 'number' || (0 | ct) !== ct || ct < 0) && - Sn(lt, 'opsLimit must be an unsigned integer'), - Zn(lt, ut, 'memLimit'), - (typeof ut != 'number' || (0 | ut) !== ut || ut < 0) && - Sn(lt, 'memLimit must be an unsigned integer') - var Dt = new ln(0 | nn._crypto_pwhash_scryptsalsa208sha256_strbytes()).address - if ( - (lt.push(Dt), - (0 | nn._crypto_pwhash_scryptsalsa208sha256_str(Dt, vt, Et, 0, ct, 0, ut)) == 0) - ) { - var Yt = nn.UTF8ToString(Dt) - return Tn(lt), Yt - } - Gn(lt, 'invalid usage') - } - function Zs(ot, ct, ut) { - var it = [] - kn(ut), - typeof ot != 'string' && Sn(it, 'hashed_password must be a string'), - (ot = In(ot + '\0')), - vt != null && ot.length - 1 !== vt && Sn(it, 'invalid hashed_password length') - var lt = yn(ot), - vt = ot.length - 1 - it.push(lt) - var Et = yn((ct = tn(it, ct, 'password'))), - Dt = ct.length - it.push(Et) - var Yt = (0 | nn._crypto_pwhash_scryptsalsa208sha256_str_verify(lt, Et, Dt, 0)) == 0 - return Tn(it), Yt - } - function wu(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'password'))), - Et = ot.length - lt.push(vt), - Zn(lt, ct, 'opsLimit'), - (typeof ct != 'number' || (0 | ct) !== ct || ct < 0) && - Sn(lt, 'opsLimit must be an unsigned integer'), - Zn(lt, ut, 'memLimit'), - (typeof ut != 'number' || (0 | ut) !== ut || ut < 0) && - Sn(lt, 'memLimit must be an unsigned integer') - var Dt = new ln(0 | nn._crypto_pwhash_strbytes()).address - if ((lt.push(Dt), (0 | nn._crypto_pwhash_str(Dt, vt, Et, 0, ct, 0, ut)) == 0)) { - var Yt = nn.UTF8ToString(Dt) - return Tn(lt), Yt - } - Gn(lt, 'invalid usage') - } - function St(ot, ct, ut, it) { - var lt = [] - kn(it), - typeof ot != 'string' && Sn(lt, 'hashed_password must be a string'), - (ot = In(ot + '\0')), - Et != null && ot.length - 1 !== Et && Sn(lt, 'invalid hashed_password length') - var vt = yn(ot), - Et = ot.length - 1 - lt.push(vt), - Zn(lt, ct, 'opsLimit'), - (typeof ct != 'number' || (0 | ct) !== ct || ct < 0) && - Sn(lt, 'opsLimit must be an unsigned integer'), - Zn(lt, ut, 'memLimit'), - (typeof ut != 'number' || (0 | ut) !== ut || ut < 0) && - Sn(lt, 'memLimit must be an unsigned integer') - var Dt = (0 | nn._crypto_pwhash_str_needs_rehash(vt, ct, 0, ut)) != 0 - return Tn(lt), Dt - } - function cu(ot, ct, ut) { - var it = [] - kn(ut), - typeof ot != 'string' && Sn(it, 'hashed_password must be a string'), - (ot = In(ot + '\0')), - vt != null && ot.length - 1 !== vt && Sn(it, 'invalid hashed_password length') - var lt = yn(ot), - vt = ot.length - 1 - it.push(lt) - var Et = yn((ct = tn(it, ct, 'password'))), - Dt = ct.length - it.push(Et) - var Yt = (0 | nn._crypto_pwhash_str_verify(lt, Et, Dt, 0)) == 0 - return Tn(it), Yt - } - function lu(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'privateKey')) - var lt, - vt = 0 | nn._crypto_scalarmult_scalarbytes() - ot.length !== vt && Sn(it, 'invalid privateKey length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'publicKey')) - var Et, - Dt = 0 | nn._crypto_scalarmult_bytes() - ct.length !== Dt && Sn(it, 'invalid publicKey length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_scalarmult_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_scalarmult(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'weak public key') - } - function On(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'privateKey')) - var it, - lt = 0 | nn._crypto_scalarmult_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid privateKey length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_scalarmult_bytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_scalarmult_base(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'unknown error') - } - function mu(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'n')) - var lt, - vt = 0 | nn._crypto_scalarmult_ed25519_scalarbytes() - ot.length !== vt && Sn(it, 'invalid n length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'p')) - var Et, - Dt = 0 | nn._crypto_scalarmult_ed25519_bytes() - ct.length !== Dt && Sn(it, 'invalid p length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_scalarmult_ed25519_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_scalarmult_ed25519(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid point or scalar is 0') - } - function xu(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'scalar')) - var it, - lt = 0 | nn._crypto_scalarmult_ed25519_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid scalar length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_scalarmult_ed25519_bytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_scalarmult_ed25519_base(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'scalar is 0') - } - function Cr(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'scalar')) - var it, - lt = 0 | nn._crypto_scalarmult_ed25519_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid scalar length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_scalarmult_ed25519_bytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_scalarmult_ed25519_base_noclamp(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'scalar is 0') - } - function ku(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'n')) - var lt, - vt = 0 | nn._crypto_scalarmult_ed25519_scalarbytes() - ot.length !== vt && Sn(it, 'invalid n length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'p')) - var Et, - Dt = 0 | nn._crypto_scalarmult_ed25519_bytes() - ct.length !== Dt && Sn(it, 'invalid p length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_scalarmult_ed25519_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_scalarmult_ed25519_noclamp(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid point or scalar is 0') - } - function zs(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'scalar')) - var lt, - vt = 0 | nn._crypto_scalarmult_ristretto255_scalarbytes() - ot.length !== vt && Sn(it, 'invalid scalar length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'element')) - var Et, - Dt = 0 | nn._crypto_scalarmult_ristretto255_bytes() - ct.length !== Dt && Sn(it, 'invalid element length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_scalarmult_ristretto255_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_scalarmult_ristretto255(nr, lt, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'result is identity element') - } - function Qu(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'scalar')) - var it, - lt = 0 | nn._crypto_core_ristretto255_scalarbytes() - ot.length !== lt && Sn(ut, 'invalid scalar length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_core_ristretto255_bytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_scalarmult_ristretto255_base(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'scalar is 0') - } - function Hu(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'message'))), - Et = ot.length - lt.push(vt), (ct = tn(lt, ct, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_secretbox_noncebytes() - ct.length !== Yt && Sn(lt, 'invalid nonce length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'key')) - var nr, - ar = 0 | nn._crypto_secretbox_keybytes() - ut.length !== ar && Sn(lt, 'invalid key length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln(0 | Et), - Nr = kr.address - lt.push(Nr) - var Vr = new ln(0 | nn._crypto_secretbox_macbytes()), - to = Vr.address - if ((lt.push(to), (0 | nn._crypto_secretbox_detached(Nr, to, vt, Et, 0, Dt, nr)) == 0)) { - var Io = mn({ mac: Vr, cipher: kr }, it) - return Tn(lt), Io - } - Gn(lt, 'invalid usage') - } - function Ls(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'message'))), - Et = ot.length - lt.push(vt), (ct = tn(lt, ct, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_secretbox_noncebytes() - ct.length !== Yt && Sn(lt, 'invalid nonce length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'key')) - var nr, - ar = 0 | nn._crypto_secretbox_keybytes() - ut.length !== ar && Sn(lt, 'invalid key length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln((Et + nn._crypto_secretbox_macbytes()) | 0), - Nr = kr.address - if ((lt.push(Nr), (0 | nn._crypto_secretbox_easy(Nr, vt, Et, 0, Dt, nr)) == 0)) { - var Vr = mn(kr, it) - return Tn(lt), Vr - } - Gn(lt, 'invalid usage') - } - function $u(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_secretbox_keybytes()), - it = ut.address - ct.push(it), nn._crypto_secretbox_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function l0(ot, ct, ut, it, lt) { - var vt = [] - kn(lt) - var Et = yn((ot = tn(vt, ot, 'ciphertext'))), - Dt = ot.length - vt.push(Et), (ct = tn(vt, ct, 'mac')) - var Yt, - nr = 0 | nn._crypto_secretbox_macbytes() - ct.length !== nr && Sn(vt, 'invalid mac length'), - (Yt = yn(ct)), - vt.push(Yt), - (ut = tn(vt, ut, 'nonce')) - var ar, - kr = 0 | nn._crypto_secretbox_noncebytes() - ut.length !== kr && Sn(vt, 'invalid nonce length'), - (ar = yn(ut)), - vt.push(ar), - (it = tn(vt, it, 'key')) - var Nr, - Vr = 0 | nn._crypto_secretbox_keybytes() - it.length !== Vr && Sn(vt, 'invalid key length'), (Nr = yn(it)), vt.push(Nr) - var to = new ln(0 | Dt), - Io = to.address - if ( - (vt.push(Io), (0 | nn._crypto_secretbox_open_detached(Io, Et, Yt, Dt, 0, ar, Nr)) == 0) - ) { - var $o = mn(to, lt) - return Tn(vt), $o - } - Gn(vt, 'wrong secret key for the given ciphertext') - } - function Gt(ot, ct, ut, it) { - var lt = [] - kn(it), (ot = tn(lt, ot, 'ciphertext')) - var vt, - Et = nn._crypto_secretbox_macbytes(), - Dt = ot.length - Dt < Et && Sn(lt, 'ciphertext is too short'), - (vt = yn(ot)), - lt.push(vt), - (ct = tn(lt, ct, 'nonce')) - var Yt, - nr = 0 | nn._crypto_secretbox_noncebytes() - ct.length !== nr && Sn(lt, 'invalid nonce length'), - (Yt = yn(ct)), - lt.push(Yt), - (ut = tn(lt, ut, 'key')) - var ar, - kr = 0 | nn._crypto_secretbox_keybytes() - ut.length !== kr && Sn(lt, 'invalid key length'), (ar = yn(ut)), lt.push(ar) - var Nr = new ln((Dt - nn._crypto_secretbox_macbytes()) | 0), - Vr = Nr.address - if ((lt.push(Vr), (0 | nn._crypto_secretbox_open_easy(Vr, vt, Dt, 0, Yt, ar)) == 0)) { - var to = mn(Nr, it) - return Tn(lt), to - } - Gn(lt, 'wrong secret key for the given ciphertext') - } - function Pu(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'header')) - var lt, - vt = 0 | nn._crypto_secretstream_xchacha20poly1305_headerbytes() - ot.length !== vt && Sn(it, 'invalid header length'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'key')) - var Et, - Dt = 0 | nn._crypto_secretstream_xchacha20poly1305_keybytes() - ct.length !== Dt && Sn(it, 'invalid key length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(52).address - if (!(0 | nn._crypto_secretstream_xchacha20poly1305_init_pull(Yt, lt, Et))) { - var nr = Yt - return Tn(it), nr - } - Gn(it, 'invalid usage') - } - function A0(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'key')) - var it, - lt = 0 | nn._crypto_secretstream_xchacha20poly1305_keybytes() - ot.length !== lt && Sn(ut, 'invalid key length'), (it = yn(ot)), ut.push(it) - var vt = new ln(52).address, - Et = new ln(0 | nn._crypto_secretstream_xchacha20poly1305_headerbytes()), - Dt = Et.address - if ( - (ut.push(Dt), (0 | nn._crypto_secretstream_xchacha20poly1305_init_push(vt, Dt, it)) == 0) - ) { - var Yt = { state: vt, header: mn(Et, ct) } - return Tn(ut), Yt - } - Gn(ut, 'invalid usage') - } - function f0(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_secretstream_xchacha20poly1305_keybytes()), - it = ut.address - ct.push(it), nn._crypto_secretstream_xchacha20poly1305_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Bt(ot, ct, ut, it) { - var lt = [] - kn(it), Zn(lt, ot, 'state_address'), (ct = tn(lt, ct, 'cipher')) - var vt, - Et = nn._crypto_secretstream_xchacha20poly1305_abytes(), - Dt = ct.length - Dt < Et && Sn(lt, 'cipher is too short'), (vt = yn(ct)), lt.push(vt) - var Yt = null, - nr = 0 - ut != null && ((Yt = yn((ut = tn(lt, ut, 'ad')))), (nr = ut.length), lt.push(Yt)) - var ar = new ln((Dt - nn._crypto_secretstream_xchacha20poly1305_abytes()) | 0), - kr = ar.address - lt.push(kr) - var Nr, - Vr = - ((Nr = Cn(1)), - lt.push(Nr), - (Vr = nn._crypto_secretstream_xchacha20poly1305_pull( - ot, - kr, - 0, - Nr, - vt, - Dt, - 0, - Yt, - nr, - ) === 0 && { tag: nn.HEAPU8[Nr], message: ar }) && { - message: mn(Vr.message, it), - tag: Vr.tag, - }) - return Tn(lt), Vr - } - function Ou(ot, ct, ut, it, lt) { - var vt = [] - kn(lt), Zn(vt, ot, 'state_address') - var Et = yn((ct = tn(vt, ct, 'message_chunk'))), - Dt = ct.length - vt.push(Et) - var Yt = null, - nr = 0 - ut != null && ((Yt = yn((ut = tn(vt, ut, 'ad')))), (nr = ut.length), vt.push(Yt)), - Zn(vt, it, 'tag'), - (typeof it != 'number' || (0 | it) !== it || it < 0) && - Sn(vt, 'tag must be an unsigned integer') - var ar = new ln((Dt + nn._crypto_secretstream_xchacha20poly1305_abytes()) | 0), - kr = ar.address - if ( - (vt.push(kr), - (0 | - nn._crypto_secretstream_xchacha20poly1305_push(ot, kr, 0, Et, Dt, 0, Yt, nr, 0, it)) == - 0) - ) { - var Nr = mn(ar, lt) - return Tn(vt), Nr - } - Gn(vt, 'invalid usage') - } - function Ru(ot, ct) { - var ut = [] - return ( - kn(ct), - Zn(ut, ot, 'state_address'), - nn._crypto_secretstream_xchacha20poly1305_rekey(ot), - Tn(ut), - !0 - ) - } - function Ts(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'key')) - var Et, - Dt = 0 | nn._crypto_shorthash_keybytes() - ct.length !== Dt && Sn(it, 'invalid key length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_shorthash_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_shorthash(nr, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function _u(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_shorthash_keybytes()), - it = ut.address - ct.push(it), nn._crypto_shorthash_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function p0(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'key')) - var Et, - Dt = 0 | nn._crypto_shorthash_siphashx24_keybytes() - ct.length !== Dt && Sn(it, 'invalid key length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_shorthash_siphashx24_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_shorthash_siphashx24(nr, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function h0(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'privateKey')) - var Et, - Dt = 0 | nn._crypto_sign_secretkeybytes() - ct.length !== Dt && Sn(it, 'invalid privateKey length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln((ot.length + nn._crypto_sign_bytes()) | 0), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_sign(nr, null, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function Gu(ot, ct, ut) { - var it = [] - kn(ut) - var lt = yn((ot = tn(it, ot, 'message'))), - vt = ot.length - it.push(lt), (ct = tn(it, ct, 'privateKey')) - var Et, - Dt = 0 | nn._crypto_sign_secretkeybytes() - ct.length !== Dt && Sn(it, 'invalid privateKey length'), (Et = yn(ct)), it.push(Et) - var Yt = new ln(0 | nn._crypto_sign_bytes()), - nr = Yt.address - if ((it.push(nr), (0 | nn._crypto_sign_detached(nr, null, lt, vt, 0, Et)) == 0)) { - var ar = mn(Yt, ut) - return Tn(it), ar - } - Gn(it, 'invalid usage') - } - function qu(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'edPk')) - var it, - lt = 0 | nn._crypto_sign_publickeybytes() - ot.length !== lt && Sn(ut, 'invalid edPk length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_scalarmult_scalarbytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_sign_ed25519_pk_to_curve25519(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid key') - } - function g0(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'edSk')) - var it, - lt = 0 | nn._crypto_sign_secretkeybytes() - ot.length !== lt && Sn(ut, 'invalid edSk length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_scalarmult_scalarbytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_sign_ed25519_sk_to_curve25519(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid key') - } - function fs(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'privateKey')) - var it, - lt = 0 | nn._crypto_sign_secretkeybytes() - ot.length !== lt && Sn(ut, 'invalid privateKey length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_sign_publickeybytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_sign_ed25519_sk_to_pk(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid key') - } - function Vu(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'privateKey')) - var it, - lt = 0 | nn._crypto_sign_secretkeybytes() - ot.length !== lt && Sn(ut, 'invalid privateKey length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_sign_seedbytes()), - Et = vt.address - if ((ut.push(Et), (0 | nn._crypto_sign_ed25519_sk_to_seed(Et, it)) == 0)) { - var Dt = mn(vt, ct) - return Tn(ut), Dt - } - Gn(ut, 'invalid key') - } - function Ku(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address'), (ct = tn(it, ct, 'privateKey')) - var lt, - vt = 0 | nn._crypto_sign_secretkeybytes() - ct.length !== vt && Sn(it, 'invalid privateKey length'), (lt = yn(ct)), it.push(lt) - var Et = new ln(0 | nn._crypto_sign_bytes()), - Dt = Et.address - if ((it.push(Dt), (0 | nn._crypto_sign_final_create(ot, Dt, null, lt)) == 0)) { - var Yt = (nn._free(ot), mn(Et, ut)) - return Tn(it), Yt - } - Gn(it, 'invalid usage') - } - function y0(ot, ct, ut, it) { - var lt = [] - kn(it), Zn(lt, ot, 'state_address'), (ct = tn(lt, ct, 'signature')) - var vt, - Et = 0 | nn._crypto_sign_bytes() - ct.length !== Et && Sn(lt, 'invalid signature length'), - (vt = yn(ct)), - lt.push(vt), - (ut = tn(lt, ut, 'publicKey')) - var Dt, - Yt = 0 | nn._crypto_sign_publickeybytes() - ut.length !== Yt && Sn(lt, 'invalid publicKey length'), (Dt = yn(ut)), lt.push(Dt) - var nr = (0 | nn._crypto_sign_final_verify(ot, vt, Dt)) == 0 - return Tn(lt), nr - } - function m0(ot) { - var ct = [] - kn(ot) - var ut = new ln(208).address - if (!(0 | nn._crypto_sign_init(ut))) { - var it = ut - return Tn(ct), it - } - Gn(ct, 'internal error') - } - function _0(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_sign_publickeybytes()), - it = ut.address - ct.push(it) - var lt = new ln(0 | nn._crypto_sign_secretkeybytes()), - vt = lt.address - if ((ct.push(vt), (0 | nn._crypto_sign_keypair(it, vt)) == 0)) { - var Et = { publicKey: mn(ut, ot), privateKey: mn(lt, ot), keyType: 'ed25519' } - return Tn(ct), Et - } - Gn(ct, 'internal error') - } - function Yu(ot, ct, ut) { - var it = [] - kn(ut), (ot = tn(it, ot, 'signedMessage')) - var lt, - vt = nn._crypto_sign_bytes(), - Et = ot.length - Et < vt && Sn(it, 'signedMessage is too short'), - (lt = yn(ot)), - it.push(lt), - (ct = tn(it, ct, 'publicKey')) - var Dt, - Yt = 0 | nn._crypto_sign_publickeybytes() - ct.length !== Yt && Sn(it, 'invalid publicKey length'), (Dt = yn(ct)), it.push(Dt) - var nr = new ln((Et - nn._crypto_sign_bytes()) | 0), - ar = nr.address - if ((it.push(ar), (0 | nn._crypto_sign_open(ar, null, lt, Et, 0, Dt)) == 0)) { - var kr = mn(nr, ut) - return Tn(it), kr - } - Gn(it, 'incorrect signature for the given public key') - } - function Au(ot, ct) { - var ut = [] - kn(ct), (ot = tn(ut, ot, 'seed')) - var it, - lt = 0 | nn._crypto_sign_seedbytes() - ot.length !== lt && Sn(ut, 'invalid seed length'), (it = yn(ot)), ut.push(it) - var vt = new ln(0 | nn._crypto_sign_publickeybytes()), - Et = vt.address - ut.push(Et) - var Dt = new ln(0 | nn._crypto_sign_secretkeybytes()), - Yt = Dt.address - if ((ut.push(Yt), (0 | nn._crypto_sign_seed_keypair(Et, Yt, it)) == 0)) { - var nr = { publicKey: mn(vt, ct), privateKey: mn(Dt, ct), keyType: 'ed25519' } - return Tn(ut), nr - } - Gn(ut, 'invalid usage') - } - function C0(ot, ct, ut) { - var it = [] - kn(ut), Zn(it, ot, 'state_address') - var lt = yn((ct = tn(it, ct, 'message_chunk'))), - vt = ct.length - it.push(lt), 0 | nn._crypto_sign_update(ot, lt, vt, 0) && Gn(it, 'invalid usage'), Tn(it) - } - function I0(ot, ct, ut) { - var it = [] - ot = tn(it, ot, 'signature') - var lt, - vt = 0 | nn._crypto_sign_bytes() - ot.length !== vt && Sn(it, 'invalid signature length'), (lt = yn(ot)), it.push(lt) - var Et = yn((ct = tn(it, ct, 'message'))), - Dt = ct.length - it.push(Et), (ut = tn(it, ut, 'publicKey')) - var Yt, - nr = 0 | nn._crypto_sign_publickeybytes() - ut.length !== nr && Sn(it, 'invalid publicKey length'), (Yt = yn(ut)), it.push(Yt) - var ar = (0 | nn._crypto_sign_verify_detached(lt, Et, Dt, 0, Yt)) == 0 - return Tn(it), ar - } - function Du(ot, ct, ut, it) { - var lt = [] - kn(it), - Zn(lt, ot, 'outLength'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(lt, 'outLength must be an unsigned integer'), - (ct = tn(lt, ct, 'key')) - var vt, - Et = 0 | nn._crypto_stream_chacha20_keybytes() - ct.length !== Et && Sn(lt, 'invalid key length'), - (vt = yn(ct)), - lt.push(vt), - (ut = tn(lt, ut, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_stream_chacha20_noncebytes() - ut.length !== Yt && Sn(lt, 'invalid nonce length'), (Dt = yn(ut)), lt.push(Dt) - var nr = new ln(0 | ot), - ar = nr.address - lt.push(ar), nn._crypto_stream_chacha20(ar, ot, 0, Dt, vt) - var kr = mn(nr, it) - return Tn(lt), kr - } - function Wu(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'input_message'))), - Et = ot.length - lt.push(vt), (ct = tn(lt, ct, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_stream_chacha20_ietf_noncebytes() - ct.length !== Yt && Sn(lt, 'invalid nonce length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'key')) - var nr, - ar = 0 | nn._crypto_stream_chacha20_ietf_keybytes() - ut.length !== ar && Sn(lt, 'invalid key length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln(0 | Et), - Nr = kr.address - if ((lt.push(Nr), nn._crypto_stream_chacha20_ietf_xor(Nr, vt, Et, 0, Dt, nr) === 0)) { - var Vr = mn(kr, it) - return Tn(lt), Vr - } - Gn(lt, 'invalid usage') - } - function Cu(ot, ct, ut, it, lt) { - var vt = [] - kn(lt) - var Et = yn((ot = tn(vt, ot, 'input_message'))), - Dt = ot.length - vt.push(Et), (ct = tn(vt, ct, 'nonce')) - var Yt, - nr = 0 | nn._crypto_stream_chacha20_ietf_noncebytes() - ct.length !== nr && Sn(vt, 'invalid nonce length'), - (Yt = yn(ct)), - vt.push(Yt), - Zn(vt, ut, 'nonce_increment'), - (typeof ut != 'number' || (0 | ut) !== ut || ut < 0) && - Sn(vt, 'nonce_increment must be an unsigned integer'), - (it = tn(vt, it, 'key')) - var ar, - kr = 0 | nn._crypto_stream_chacha20_ietf_keybytes() - it.length !== kr && Sn(vt, 'invalid key length'), (ar = yn(it)), vt.push(ar) - var Nr = new ln(0 | Dt), - Vr = Nr.address - if ( - (vt.push(Vr), nn._crypto_stream_chacha20_ietf_xor_ic(Vr, Et, Dt, 0, Yt, ut, ar) === 0) - ) { - var to = mn(Nr, lt) - return Tn(vt), to - } - Gn(vt, 'invalid usage') - } - function Rs(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_stream_chacha20_keybytes()), - it = ut.address - ct.push(it), nn._crypto_stream_chacha20_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function hs(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'input_message'))), - Et = ot.length - lt.push(vt), (ct = tn(lt, ct, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_stream_chacha20_noncebytes() - ct.length !== Yt && Sn(lt, 'invalid nonce length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'key')) - var nr, - ar = 0 | nn._crypto_stream_chacha20_keybytes() - ut.length !== ar && Sn(lt, 'invalid key length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln(0 | Et), - Nr = kr.address - if ((lt.push(Nr), nn._crypto_stream_chacha20_xor(Nr, vt, Et, 0, Dt, nr) === 0)) { - var Vr = mn(kr, it) - return Tn(lt), Vr - } - Gn(lt, 'invalid usage') - } - function Nu(ot, ct, ut, it, lt) { - var vt = [] - kn(lt) - var Et = yn((ot = tn(vt, ot, 'input_message'))), - Dt = ot.length - vt.push(Et), (ct = tn(vt, ct, 'nonce')) - var Yt, - nr = 0 | nn._crypto_stream_chacha20_noncebytes() - ct.length !== nr && Sn(vt, 'invalid nonce length'), - (Yt = yn(ct)), - vt.push(Yt), - Zn(vt, ut, 'nonce_increment'), - (typeof ut != 'number' || (0 | ut) !== ut || ut < 0) && - Sn(vt, 'nonce_increment must be an unsigned integer'), - (it = tn(vt, it, 'key')) - var ar, - kr = 0 | nn._crypto_stream_chacha20_keybytes() - it.length !== kr && Sn(vt, 'invalid key length'), (ar = yn(it)), vt.push(ar) - var Nr = new ln(0 | Dt), - Vr = Nr.address - if ((vt.push(Vr), nn._crypto_stream_chacha20_xor_ic(Vr, Et, Dt, 0, Yt, ut, 0, ar) === 0)) { - var to = mn(Nr, lt) - return Tn(vt), to - } - Gn(vt, 'invalid usage') - } - function Zu(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_stream_keybytes()), - it = ut.address - ct.push(it), nn._crypto_stream_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function Xs(ot) { - var ct = [] - kn(ot) - var ut = new ln(0 | nn._crypto_stream_xchacha20_keybytes()), - it = ut.address - ct.push(it), nn._crypto_stream_xchacha20_keygen(it) - var lt = mn(ut, ot) - return Tn(ct), lt - } - function fu(ot, ct, ut, it) { - var lt = [] - kn(it) - var vt = yn((ot = tn(lt, ot, 'input_message'))), - Et = ot.length - lt.push(vt), (ct = tn(lt, ct, 'nonce')) - var Dt, - Yt = 0 | nn._crypto_stream_xchacha20_noncebytes() - ct.length !== Yt && Sn(lt, 'invalid nonce length'), - (Dt = yn(ct)), - lt.push(Dt), - (ut = tn(lt, ut, 'key')) - var nr, - ar = 0 | nn._crypto_stream_xchacha20_keybytes() - ut.length !== ar && Sn(lt, 'invalid key length'), (nr = yn(ut)), lt.push(nr) - var kr = new ln(0 | Et), - Nr = kr.address - if ((lt.push(Nr), nn._crypto_stream_xchacha20_xor(Nr, vt, Et, 0, Dt, nr) === 0)) { - var Vr = mn(kr, it) - return Tn(lt), Vr - } - Gn(lt, 'invalid usage') - } - function zu(ot, ct, ut, it, lt) { - var vt = [] - kn(lt) - var Et = yn((ot = tn(vt, ot, 'input_message'))), - Dt = ot.length - vt.push(Et), (ct = tn(vt, ct, 'nonce')) - var Yt, - nr = 0 | nn._crypto_stream_xchacha20_noncebytes() - ct.length !== nr && Sn(vt, 'invalid nonce length'), - (Yt = yn(ct)), - vt.push(Yt), - Zn(vt, ut, 'nonce_increment'), - (typeof ut != 'number' || (0 | ut) !== ut || ut < 0) && - Sn(vt, 'nonce_increment must be an unsigned integer'), - (it = tn(vt, it, 'key')) - var ar, - kr = 0 | nn._crypto_stream_xchacha20_keybytes() - it.length !== kr && Sn(vt, 'invalid key length'), (ar = yn(it)), vt.push(ar) - var Nr = new ln(0 | Dt), - Vr = Nr.address - if ((vt.push(Vr), nn._crypto_stream_xchacha20_xor_ic(Vr, Et, Dt, 0, Yt, ut, 0, ar) === 0)) { - var to = mn(Nr, lt) - return Tn(vt), to - } - Gn(vt, 'invalid usage') - } - function js(ot, ct) { - var ut = [] - kn(ct), - Zn(ut, ot, 'length'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(ut, 'length must be an unsigned integer') - var it = new ln(0 | ot), - lt = it.address - ut.push(lt), nn._randombytes_buf(lt, ot) - var vt = mn(it, ct) - return Tn(ut), vt - } - function ms(ot, ct, ut) { - var it = [] - kn(ut), - Zn(it, ot, 'length'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(it, 'length must be an unsigned integer'), - (ct = tn(it, ct, 'seed')) - var lt, - vt = 0 | nn._randombytes_seedbytes() - ct.length !== vt && Sn(it, 'invalid seed length'), (lt = yn(ct)), it.push(lt) - var Et = new ln(0 | ot), - Dt = Et.address - it.push(Dt), nn._randombytes_buf_deterministic(Dt, ot, lt) - var Yt = mn(Et, ut) - return Tn(it), Yt - } - function E0(ot) { - kn(ot), nn._randombytes_close() - } - function v0(ot) { - kn(ot) - var ct = nn._randombytes_random() >>> 0 - return Tn([]), ct - } - function eu(ot, ct) { - var ut = [] - kn(ct) - for (var it = nn._malloc(24), lt = 0; lt < 6; lt++) - nn.setValue( - it + 4 * lt, - nn.Runtime.addFunction( - ot[['implementation_name', 'random', 'stir', 'uniform', 'buf', 'close'][lt]], - ), - 'i32', - ) - 0 | nn._randombytes_set_implementation(it) && Gn(ut, 'unsupported implementation'), Tn(ut) - } - function Xu(ot) { - kn(ot), nn._randombytes_stir() - } - function $s(ot, ct) { - var ut = [] - kn(ct), - Zn(ut, ot, 'upper_bound'), - (typeof ot != 'number' || (0 | ot) !== ot || ot < 0) && - Sn(ut, 'upper_bound must be an unsigned integer') - var it = nn._randombytes_uniform(ot) >>> 0 - return Tn(ut), it - } - function su() { - var ot = nn._sodium_version_string(), - ct = nn.UTF8ToString(ot) - return Tn([]), ct - } - return ( - (ln.prototype.to_Uint8Array = function () { - var ot = new Uint8Array(this.length) - return ot.set(nn.HEAPU8.subarray(this.address, this.address + this.length)), ot - }), - ($.add = function (ot, ct) { - if (!(ot instanceof Uint8Array && ct instanceof Uint8Array)) - throw new TypeError('Only Uint8Array instances can added') - var ut = ot.length, - it = 0, - lt = 0 - if (ct.length != ot.length) throw new TypeError('Arguments must have the same length') - for (lt = 0; lt < ut; lt++) (it >>= 8), (it += ot[lt] + ct[lt]), (ot[lt] = 255 & it) - }), - ($.base64_variants = Kn), - ($.compare = function (ot, ct) { - if (!(ot instanceof Uint8Array && ct instanceof Uint8Array)) - throw new TypeError('Only Uint8Array instances can be compared') - if (ot.length !== ct.length) - throw new TypeError('Only instances of identical length can be compared') - for (var ut = 0, it = 1, lt = ot.length; lt-- > 0; ) - (ut |= ((ct[lt] - ot[lt]) >> 8) & it), (it &= ((ct[lt] ^ ot[lt]) - 1) >> 8) - return ut + ut + it - 1 - }), - ($.from_base64 = function (ot, ct) { - ct = an(ct) - var ut, - it = [], - lt = new ln((3 * (ot = tn(it, ot, 'input')).length) / 4), - vt = yn(ot), - Et = Cn(4), - Dt = Cn(4) - return ( - it.push(vt), - it.push(lt.address), - it.push(lt.result_bin_len_p), - it.push(lt.b64_end_p), - nn._sodium_base642bin(lt.address, lt.length, vt, ot.length, 0, Et, Dt, ct) !== 0 && - Gn(it, 'invalid input'), - nn.getValue(Dt, 'i32') - vt !== ot.length && Gn(it, 'incomplete input'), - (lt.length = nn.getValue(Et, 'i32')), - (ut = lt.to_Uint8Array()), - Tn(it), - ut - ) - }), - ($.from_hex = function (ot) { - var ct, - ut = [], - it = new ln((ot = tn(ut, ot, 'input')).length / 2), - lt = yn(ot), - vt = Cn(4) - return ( - ut.push(lt), - ut.push(it.address), - ut.push(it.hex_end_p), - nn._sodium_hex2bin(it.address, it.length, lt, ot.length, 0, 0, vt) !== 0 && - Gn(ut, 'invalid input'), - nn.getValue(vt, 'i32') - lt !== ot.length && Gn(ut, 'incomplete input'), - (ct = it.to_Uint8Array()), - Tn(ut), - ct - ) - }), - ($.from_string = In), - ($.increment = function (ot) { - if (!(ot instanceof Uint8Array)) - throw new TypeError('Only Uint8Array instances can be incremented') - for (var ct = 256, ut = 0, it = ot.length; ut < it; ut++) - (ct >>= 8), (ct += ot[ut]), (ot[ut] = 255 & ct) - }), - ($.is_zero = function (ot) { - if (!(ot instanceof Uint8Array)) - throw new TypeError('Only Uint8Array instances can be checked') - for (var ct = 0, ut = 0, it = ot.length; ut < it; ut++) ct |= ot[ut] - return ct === 0 - }), - ($.libsodium = en), - ($.memcmp = function (ot, ct) { - if (!(ot instanceof Uint8Array && ct instanceof Uint8Array)) - throw new TypeError('Only Uint8Array instances can be compared') - if (ot.length !== ct.length) - throw new TypeError('Only instances of identical length can be compared') - for (var ut = 0, it = 0, lt = ot.length; it < lt; it++) ut |= ot[it] ^ ct[it] - return ut === 0 - }), - ($.memzero = function (ot) { - if (!(ot instanceof Uint8Array)) - throw new TypeError('Only Uint8Array instances can be wiped') - for (var ct = 0, ut = ot.length; ct < ut; ct++) ot[ct] = 0 - }), - ($.output_formats = function () { - return ['uint8array', 'text', 'hex', 'base64'] - }), - ($.pad = function (ot, ct) { - if (!(ot instanceof Uint8Array)) throw new TypeError('buffer must be a Uint8Array') - if ((ct |= 0) <= 0) throw new Error('block size must be > 0') - var ut, - it = [], - lt = Cn(4), - vt = 1, - Et = 0, - Dt = 0 | ot.length, - Yt = new ln(Dt + ct) - it.push(lt), it.push(Yt.address) - for (var nr = Yt.address, ar = Yt.address + Dt + ct; nr < ar; nr++) - (nn.HEAPU8[nr] = ot[Et]), - (Et += vt = - 1 & ~(((65535 & (((Dt -= vt) >>> 48) | (Dt >>> 32) | (Dt >>> 16) | Dt)) - 1) >> 16)) - return ( - nn._sodium_pad(lt, Yt.address, ot.length, ct, Yt.length) !== 0 && - Gn(it, 'internal error'), - (Yt.length = nn.getValue(lt, 'i32')), - (ut = Yt.to_Uint8Array()), - Tn(it), - ut - ) - }), - ($.unpad = function (ot, ct) { - if (!(ot instanceof Uint8Array)) throw new TypeError('buffer must be a Uint8Array') - if ((ct |= 0) <= 0) throw new Error('block size must be > 0') - var ut = [], - it = yn(ot), - lt = Cn(4) - return ( - ut.push(it), - ut.push(lt), - nn._sodium_unpad(lt, it, ot.length, ct) !== 0 && Gn(ut, 'unsupported/invalid padding'), - (ot = (ot = new Uint8Array(ot)).subarray(0, nn.getValue(lt, 'i32'))), - Tn(ut), - ot - ) - }), - ($.ready = gn), - ($.symbols = function () { - return Object.keys($).sort() - }), - ($.to_base64 = xn), - ($.to_hex = qn), - ($.to_string = Jn), - $ - ) - } - var b = - typeof o.sodium == 'object' && typeof o.sodium.onload == 'function' ? o.sodium.onload : null - typeof e.nodeName != 'string' - ? _(e, requireLibsodiumSumo()) - : (o.sodium = _((o.commonJsStrict = {}), o.libsodium)), - b && - o.sodium.ready.then(function () { - b(o.sodium) - }) - })(commonjsGlobal) -})(libsodiumWrappers) -var __importDefault$f = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(libsodium, '__esModule', { value: !0 }) -libsodium.Xchacha20poly1305Ietf = - libsodium.xchacha20NonceLength = - libsodium.Ed25519 = - libsodium.Ed25519Keypair = - libsodium.Argon2id = - libsodium.isArgon2idOptions = - void 0 -const utils_1$g = build$5, - libsodium_wrappers_sumo_1 = __importDefault$f(libsodiumWrappers) -function isArgon2idOptions(e) { - return !( - !(0, utils_1$g.isNonNullObject)(e) || - typeof e.outputLength != 'number' || - typeof e.opsLimit != 'number' || - typeof e.memLimitKib != 'number' - ) -} -libsodium.isArgon2idOptions = isArgon2idOptions -class Argon2id { - static async execute(o, _, b) { - return ( - await libsodium_wrappers_sumo_1.default.ready, - libsodium_wrappers_sumo_1.default.crypto_pwhash( - b.outputLength, - o, - _, - b.opsLimit, - b.memLimitKib * 1024, - libsodium_wrappers_sumo_1.default.crypto_pwhash_ALG_ARGON2ID13, - ) - ) - } -} -libsodium.Argon2id = Argon2id -class Ed25519Keypair { - static fromLibsodiumPrivkey(o) { - if (o.length !== 64) throw new Error(`Unexpected key length ${o.length}. Must be 64.`) - return new Ed25519Keypair(o.slice(0, 32), o.slice(32, 64)) - } - constructor(o, _) { - ;(this.privkey = o), (this.pubkey = _) - } - toLibsodiumPrivkey() { - return new Uint8Array([...this.privkey, ...this.pubkey]) - } -} -libsodium.Ed25519Keypair = Ed25519Keypair -class Ed25519 { - static async makeKeypair(o) { - await libsodium_wrappers_sumo_1.default.ready - const _ = libsodium_wrappers_sumo_1.default.crypto_sign_seed_keypair(o) - return Ed25519Keypair.fromLibsodiumPrivkey(_.privateKey) - } - static async createSignature(o, _) { - return ( - await libsodium_wrappers_sumo_1.default.ready, - libsodium_wrappers_sumo_1.default.crypto_sign_detached(o, _.toLibsodiumPrivkey()) - ) - } - static async verifySignature(o, _, b) { - return ( - await libsodium_wrappers_sumo_1.default.ready, - libsodium_wrappers_sumo_1.default.crypto_sign_verify_detached(o, _, b) - ) - } -} -libsodium.Ed25519 = Ed25519 -libsodium.xchacha20NonceLength = 24 -class Xchacha20poly1305Ietf { - static async encrypt(o, _, b) { - await libsodium_wrappers_sumo_1.default.ready - const $ = null - return libsodium_wrappers_sumo_1.default.crypto_aead_xchacha20poly1305_ietf_encrypt( - o, - $, - null, - b, - _, - ) - } - static async decrypt(o, _, b) { - await libsodium_wrappers_sumo_1.default.ready - const $ = null - return libsodium_wrappers_sumo_1.default.crypto_aead_xchacha20poly1305_ietf_decrypt( - null, - o, - $, - b, - _, - ) - } -} -libsodium.Xchacha20poly1305Ietf = Xchacha20poly1305Ietf -var random = {} -Object.defineProperty(random, '__esModule', { value: !0 }) -random.Random = void 0 -class Random { - static getBytes(o) { - try { - const _ = typeof window == 'object' ? window : self, - b = typeof _.crypto < 'u' ? _.crypto : _.msCrypto, - $ = new Uint8Array(o) - return b.getRandomValues($), $ - } catch { - try { - const _ = require$$0$2 - return new Uint8Array([..._.randomBytes(o)]) - } catch { - throw new Error('No secure random number generator found') - } - } - } -} -random.Random = Random -var ripemd$1 = {}, - ripemd160$1 = {} -Object.defineProperty(ripemd160$1, '__esModule', { value: !0 }) -ripemd160$1.ripemd160 = ripemd160$1.RIPEMD160 = void 0 -const _sha2_js_1 = _sha2, - utils_js_1 = utils$z, - Rho = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]), - Id = Uint8Array.from({ length: 16 }, (e, o) => o), - Pi = Id.map((e) => (9 * e + 5) % 16) -let idxL = [Id], - idxR = [Pi] -for (let e = 0; e < 4; e++) for (let o of [idxL, idxR]) o.push(o[e].map((_) => Rho[_])) -const shifts = [ - [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], - [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], - [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], - [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], - [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5], - ].map((e) => new Uint8Array(e)), - shiftsL = idxL.map((e, o) => e.map((_) => shifts[o][_])), - shiftsR = idxR.map((e, o) => e.map((_) => shifts[o][_])), - Kl = new Uint32Array([0, 1518500249, 1859775393, 2400959708, 2840853838]), - Kr = new Uint32Array([1352829926, 1548603684, 1836072691, 2053994217, 0]), - rotl = (e, o) => (e << o) | (e >>> (32 - o)) -function f$1(e, o, _, b) { - return e === 0 - ? o ^ _ ^ b - : e === 1 - ? (o & _) | (~o & b) - : e === 2 - ? (o | ~_) ^ b - : e === 3 - ? (o & b) | (_ & ~b) - : o ^ (_ | ~b) -} -const BUF = new Uint32Array(16) -let RIPEMD160$1 = class extends _sha2_js_1.SHA2 { - constructor() { - super(64, 20, 8, !0), - (this.h0 = 1732584193), - (this.h1 = -271733879), - (this.h2 = -1732584194), - (this.h3 = 271733878), - (this.h4 = -1009589776) - } - get() { - const { h0: o, h1: _, h2: b, h3: $, h4: en } = this - return [o, _, b, $, en] - } - set(o, _, b, $, en) { - ;(this.h0 = o | 0), (this.h1 = _ | 0), (this.h2 = b | 0), (this.h3 = $ | 0), (this.h4 = en | 0) - } - process(o, _) { - for (let an = 0; an < 16; an++, _ += 4) BUF[an] = o.getUint32(_, !0) - let b = this.h0 | 0, - $ = b, - en = this.h1 | 0, - nn = en, - sn = this.h2 | 0, - gn = sn, - In = this.h3 | 0, - Jn = In, - qn = this.h4 | 0, - Kn = qn - for (let an = 0; an < 5; an++) { - const xn = 4 - an, - mn = Kl[an], - Bn = Kr[an], - kn = idxL[an], - ln = idxR[an], - yn = shiftsL[an], - Cn = shiftsR[an] - for (let Tn = 0; Tn < 16; Tn++) { - const Gn = (rotl(b + f$1(an, en, sn, In) + BUF[kn[Tn]] + mn, yn[Tn]) + qn) | 0 - ;(b = qn), (qn = In), (In = rotl(sn, 10) | 0), (sn = en), (en = Gn) - } - for (let Tn = 0; Tn < 16; Tn++) { - const Gn = (rotl($ + f$1(xn, nn, gn, Jn) + BUF[ln[Tn]] + Bn, Cn[Tn]) + Kn) | 0 - ;($ = Kn), (Kn = Jn), (Jn = rotl(gn, 10) | 0), (gn = nn), (nn = Gn) - } - } - this.set( - (this.h1 + sn + Jn) | 0, - (this.h2 + In + Kn) | 0, - (this.h3 + qn + $) | 0, - (this.h4 + b + nn) | 0, - (this.h0 + en + gn) | 0, - ) - } - roundClean() { - BUF.fill(0) - } - destroy() { - ;(this.destroyed = !0), this.buffer.fill(0), this.set(0, 0, 0, 0, 0) - } -} -ripemd160$1.RIPEMD160 = RIPEMD160$1 -ripemd160$1.ripemd160 = (0, utils_js_1.wrapConstructor)(() => new RIPEMD160$1()) -Object.defineProperty(ripemd$1, '__esModule', { value: !0 }) -ripemd$1.ripemd160 = ripemd$1.Ripemd160 = void 0 -const ripemd160_1$1 = ripemd160$1, - utils_1$f = utils$y -class Ripemd160 { - constructor(o) { - ;(this.blockSize = 512 / 8), (this.impl = ripemd160_1$1.ripemd160.create()), o && this.update(o) - } - update(o) { - return this.impl.update((0, utils_1$f.toRealUint8Array)(o)), this - } - digest() { - return this.impl.digest() - } -} -ripemd$1.Ripemd160 = Ripemd160 -function ripemd160(e) { - return new Ripemd160(e).digest() -} -ripemd$1.ripemd160 = ripemd160 -var secp256k1$2 = {}, - elliptic = {} -const name$1 = 'elliptic', - version$1 = '6.5.4', - description$1 = 'EC cryptography', - main$2 = 'lib/elliptic.js', - files = ['lib'], - scripts$1 = { - lint: 'eslint lib test', - 'lint:fix': 'npm run lint -- --fix', - unit: 'istanbul test _mocha --reporter=spec test/index.js', - test: 'npm run lint && npm run unit', - version: 'grunt dist && git add dist/', - }, - repository$1 = { type: 'git', url: 'git@github.com:indutny/elliptic' }, - keywords$1 = ['EC', 'Elliptic', 'curve', 'Cryptography'], - author$1 = 'Fedor Indutny ', - license$1 = 'MIT', - bugs$1 = { url: 'https://github.com/indutny/elliptic/issues' }, - homepage$1 = 'https://github.com/indutny/elliptic', - devDependencies$1 = { - brfs: '^2.0.2', - coveralls: '^3.1.0', - eslint: '^7.6.0', - grunt: '^1.2.1', - 'grunt-browserify': '^5.3.0', - 'grunt-cli': '^1.3.2', - 'grunt-contrib-connect': '^3.0.0', - 'grunt-contrib-copy': '^1.0.0', - 'grunt-contrib-uglify': '^5.0.0', - 'grunt-mocha-istanbul': '^5.0.2', - 'grunt-saucelabs': '^9.0.1', - istanbul: '^0.4.5', - mocha: '^8.0.1', - }, - dependencies$1 = { - 'bn.js': '^4.11.9', - brorand: '^1.1.0', - 'hash.js': '^1.0.0', - 'hmac-drbg': '^1.0.1', - inherits: '^2.0.4', - 'minimalistic-assert': '^1.0.1', - 'minimalistic-crypto-utils': '^1.0.1', - }, - require$$0$1 = { - name: name$1, - version: version$1, - description: description$1, - main: main$2, - files, - scripts: scripts$1, - repository: repository$1, - keywords: keywords$1, - author: author$1, - license: license$1, - bugs: bugs$1, - homepage: homepage$1, - devDependencies: devDependencies$1, - dependencies: dependencies$1, - } -var utils$x = {}, - bnExports = {}, - bn = { - get exports() { - return bnExports - }, - set exports(e) { - bnExports = e - }, - } -;(function (e) { - ;(function (o, _) { - function b(Mn, Hn) { - if (!Mn) throw new Error(Hn || 'Assertion failed') - } - function $(Mn, Hn) { - Mn.super_ = Hn - var un = function () {} - ;(un.prototype = Hn.prototype), (Mn.prototype = new un()), (Mn.prototype.constructor = Mn) - } - function en(Mn, Hn, un) { - if (en.isBN(Mn)) return Mn - ;(this.negative = 0), - (this.words = null), - (this.length = 0), - (this.red = null), - Mn !== null && - ((Hn === 'le' || Hn === 'be') && ((un = Hn), (Hn = 10)), - this._init(Mn || 0, Hn || 10, un || 'be')) - } - typeof o == 'object' ? (o.exports = en) : (_.BN = en), (en.BN = en), (en.wordSize = 26) - var nn - try { - typeof window < 'u' && typeof window.Buffer < 'u' - ? (nn = window.Buffer) - : (nn = require$$0$2.Buffer) - } catch {} - ;(en.isBN = function (Hn) { - return Hn instanceof en - ? !0 - : Hn !== null && - typeof Hn == 'object' && - Hn.constructor.wordSize === en.wordSize && - Array.isArray(Hn.words) - }), - (en.max = function (Hn, un) { - return Hn.cmp(un) > 0 ? Hn : un - }), - (en.min = function (Hn, un) { - return Hn.cmp(un) < 0 ? Hn : un - }), - (en.prototype._init = function (Hn, un, dn) { - if (typeof Hn == 'number') return this._initNumber(Hn, un, dn) - if (typeof Hn == 'object') return this._initArray(Hn, un, dn) - un === 'hex' && (un = 16), - b(un === (un | 0) && un >= 2 && un <= 36), - (Hn = Hn.toString().replace(/\s+/g, '')) - var Nn = 0 - Hn[0] === '-' && (Nn++, (this.negative = 1)), - Nn < Hn.length && - (un === 16 - ? this._parseHex(Hn, Nn, dn) - : (this._parseBase(Hn, un, Nn), - dn === 'le' && this._initArray(this.toArray(), un, dn))) - }), - (en.prototype._initNumber = function (Hn, un, dn) { - Hn < 0 && ((this.negative = 1), (Hn = -Hn)), - Hn < 67108864 - ? ((this.words = [Hn & 67108863]), (this.length = 1)) - : Hn < 4503599627370496 - ? ((this.words = [Hn & 67108863, (Hn / 67108864) & 67108863]), (this.length = 2)) - : (b(Hn < 9007199254740992), - (this.words = [Hn & 67108863, (Hn / 67108864) & 67108863, 1]), - (this.length = 3)), - dn === 'le' && this._initArray(this.toArray(), un, dn) - }), - (en.prototype._initArray = function (Hn, un, dn) { - if ((b(typeof Hn.length == 'number'), Hn.length <= 0)) - return (this.words = [0]), (this.length = 1), this - ;(this.length = Math.ceil(Hn.length / 3)), (this.words = new Array(this.length)) - for (var Nn = 0; Nn < this.length; Nn++) this.words[Nn] = 0 - var fn, - _n, - Ln = 0 - if (dn === 'be') - for (Nn = Hn.length - 1, fn = 0; Nn >= 0; Nn -= 3) - (_n = Hn[Nn] | (Hn[Nn - 1] << 8) | (Hn[Nn - 2] << 16)), - (this.words[fn] |= (_n << Ln) & 67108863), - (this.words[fn + 1] = (_n >>> (26 - Ln)) & 67108863), - (Ln += 24), - Ln >= 26 && ((Ln -= 26), fn++) - else if (dn === 'le') - for (Nn = 0, fn = 0; Nn < Hn.length; Nn += 3) - (_n = Hn[Nn] | (Hn[Nn + 1] << 8) | (Hn[Nn + 2] << 16)), - (this.words[fn] |= (_n << Ln) & 67108863), - (this.words[fn + 1] = (_n >>> (26 - Ln)) & 67108863), - (Ln += 24), - Ln >= 26 && ((Ln -= 26), fn++) - return this.strip() - }) - function sn(Mn, Hn) { - var un = Mn.charCodeAt(Hn) - return un >= 65 && un <= 70 ? un - 55 : un >= 97 && un <= 102 ? un - 87 : (un - 48) & 15 - } - function gn(Mn, Hn, un) { - var dn = sn(Mn, un) - return un - 1 >= Hn && (dn |= sn(Mn, un - 1) << 4), dn - } - en.prototype._parseHex = function (Hn, un, dn) { - ;(this.length = Math.ceil((Hn.length - un) / 6)), (this.words = new Array(this.length)) - for (var Nn = 0; Nn < this.length; Nn++) this.words[Nn] = 0 - var fn = 0, - _n = 0, - Ln - if (dn === 'be') - for (Nn = Hn.length - 1; Nn >= un; Nn -= 2) - (Ln = gn(Hn, un, Nn) << fn), - (this.words[_n] |= Ln & 67108863), - fn >= 18 ? ((fn -= 18), (_n += 1), (this.words[_n] |= Ln >>> 26)) : (fn += 8) - else { - var zn = Hn.length - un - for (Nn = zn % 2 === 0 ? un + 1 : un; Nn < Hn.length; Nn += 2) - (Ln = gn(Hn, un, Nn) << fn), - (this.words[_n] |= Ln & 67108863), - fn >= 18 ? ((fn -= 18), (_n += 1), (this.words[_n] |= Ln >>> 26)) : (fn += 8) - } - this.strip() - } - function In(Mn, Hn, un, dn) { - for (var Nn = 0, fn = Math.min(Mn.length, un), _n = Hn; _n < fn; _n++) { - var Ln = Mn.charCodeAt(_n) - 48 - ;(Nn *= dn), Ln >= 49 ? (Nn += Ln - 49 + 10) : Ln >= 17 ? (Nn += Ln - 17 + 10) : (Nn += Ln) - } - return Nn - } - ;(en.prototype._parseBase = function (Hn, un, dn) { - ;(this.words = [0]), (this.length = 1) - for (var Nn = 0, fn = 1; fn <= 67108863; fn *= un) Nn++ - Nn--, (fn = (fn / un) | 0) - for ( - var _n = Hn.length - dn, Ln = _n % Nn, zn = Math.min(_n, _n - Ln) + dn, Fn = 0, An = dn; - An < zn; - An += Nn - ) - (Fn = In(Hn, An, An + Nn, un)), - this.imuln(fn), - this.words[0] + Fn < 67108864 ? (this.words[0] += Fn) : this._iaddn(Fn) - if (Ln !== 0) { - var Qn = 1 - for (Fn = In(Hn, An, Hn.length, un), An = 0; An < Ln; An++) Qn *= un - this.imuln(Qn), this.words[0] + Fn < 67108864 ? (this.words[0] += Fn) : this._iaddn(Fn) - } - this.strip() - }), - (en.prototype.copy = function (Hn) { - Hn.words = new Array(this.length) - for (var un = 0; un < this.length; un++) Hn.words[un] = this.words[un] - ;(Hn.length = this.length), (Hn.negative = this.negative), (Hn.red = this.red) - }), - (en.prototype.clone = function () { - var Hn = new en(null) - return this.copy(Hn), Hn - }), - (en.prototype._expand = function (Hn) { - for (; this.length < Hn; ) this.words[this.length++] = 0 - return this - }), - (en.prototype.strip = function () { - for (; this.length > 1 && this.words[this.length - 1] === 0; ) this.length-- - return this._normSign() - }), - (en.prototype._normSign = function () { - return this.length === 1 && this.words[0] === 0 && (this.negative = 0), this - }), - (en.prototype.inspect = function () { - return (this.red ? '' - }) - var Jn = [ - '', - '0', - '00', - '000', - '0000', - '00000', - '000000', - '0000000', - '00000000', - '000000000', - '0000000000', - '00000000000', - '000000000000', - '0000000000000', - '00000000000000', - '000000000000000', - '0000000000000000', - '00000000000000000', - '000000000000000000', - '0000000000000000000', - '00000000000000000000', - '000000000000000000000', - '0000000000000000000000', - '00000000000000000000000', - '000000000000000000000000', - '0000000000000000000000000', - ], - qn = [ - 0, 0, 25, 16, 12, 11, 10, 9, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, - ], - Kn = [ - 0, 0, 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, 43046721, 1e7, - 19487171, 35831808, 62748517, 7529536, 11390625, 16777216, 24137569, 34012224, 47045881, - 64e6, 4084101, 5153632, 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, - 243e5, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176, - ] - ;(en.prototype.toString = function (Hn, un) { - ;(Hn = Hn || 10), (un = un | 0 || 1) - var dn - if (Hn === 16 || Hn === 'hex') { - dn = '' - for (var Nn = 0, fn = 0, _n = 0; _n < this.length; _n++) { - var Ln = this.words[_n], - zn = (((Ln << Nn) | fn) & 16777215).toString(16) - ;(fn = (Ln >>> (24 - Nn)) & 16777215), - fn !== 0 || _n !== this.length - 1 - ? (dn = Jn[6 - zn.length] + zn + dn) - : (dn = zn + dn), - (Nn += 2), - Nn >= 26 && ((Nn -= 26), _n--) - } - for (fn !== 0 && (dn = fn.toString(16) + dn); dn.length % un !== 0; ) dn = '0' + dn - return this.negative !== 0 && (dn = '-' + dn), dn - } - if (Hn === (Hn | 0) && Hn >= 2 && Hn <= 36) { - var Fn = qn[Hn], - An = Kn[Hn] - dn = '' - var Qn = this.clone() - for (Qn.negative = 0; !Qn.isZero(); ) { - var Rn = Qn.modn(An).toString(Hn) - ;(Qn = Qn.idivn(An)), Qn.isZero() ? (dn = Rn + dn) : (dn = Jn[Fn - Rn.length] + Rn + dn) - } - for (this.isZero() && (dn = '0' + dn); dn.length % un !== 0; ) dn = '0' + dn - return this.negative !== 0 && (dn = '-' + dn), dn - } - b(!1, 'Base should be between 2 and 36') - }), - (en.prototype.toNumber = function () { - var Hn = this.words[0] - return ( - this.length === 2 - ? (Hn += this.words[1] * 67108864) - : this.length === 3 && this.words[2] === 1 - ? (Hn += 4503599627370496 + this.words[1] * 67108864) - : this.length > 2 && b(!1, 'Number can only safely store up to 53 bits'), - this.negative !== 0 ? -Hn : Hn - ) - }), - (en.prototype.toJSON = function () { - return this.toString(16) - }), - (en.prototype.toBuffer = function (Hn, un) { - return b(typeof nn < 'u'), this.toArrayLike(nn, Hn, un) - }), - (en.prototype.toArray = function (Hn, un) { - return this.toArrayLike(Array, Hn, un) - }), - (en.prototype.toArrayLike = function (Hn, un, dn) { - var Nn = this.byteLength(), - fn = dn || Math.max(1, Nn) - b(Nn <= fn, 'byte array longer than desired length'), - b(fn > 0, 'Requested array length <= 0'), - this.strip() - var _n = un === 'le', - Ln = new Hn(fn), - zn, - Fn, - An = this.clone() - if (_n) { - for (Fn = 0; !An.isZero(); Fn++) (zn = An.andln(255)), An.iushrn(8), (Ln[Fn] = zn) - for (; Fn < fn; Fn++) Ln[Fn] = 0 - } else { - for (Fn = 0; Fn < fn - Nn; Fn++) Ln[Fn] = 0 - for (Fn = 0; !An.isZero(); Fn++) - (zn = An.andln(255)), An.iushrn(8), (Ln[fn - Fn - 1] = zn) - } - return Ln - }), - Math.clz32 - ? (en.prototype._countBits = function (Hn) { - return 32 - Math.clz32(Hn) - }) - : (en.prototype._countBits = function (Hn) { - var un = Hn, - dn = 0 - return ( - un >= 4096 && ((dn += 13), (un >>>= 13)), - un >= 64 && ((dn += 7), (un >>>= 7)), - un >= 8 && ((dn += 4), (un >>>= 4)), - un >= 2 && ((dn += 2), (un >>>= 2)), - dn + un - ) - }), - (en.prototype._zeroBits = function (Hn) { - if (Hn === 0) return 26 - var un = Hn, - dn = 0 - return ( - un & 8191 || ((dn += 13), (un >>>= 13)), - un & 127 || ((dn += 7), (un >>>= 7)), - un & 15 || ((dn += 4), (un >>>= 4)), - un & 3 || ((dn += 2), (un >>>= 2)), - un & 1 || dn++, - dn - ) - }), - (en.prototype.bitLength = function () { - var Hn = this.words[this.length - 1], - un = this._countBits(Hn) - return (this.length - 1) * 26 + un - }) - function an(Mn) { - for (var Hn = new Array(Mn.bitLength()), un = 0; un < Hn.length; un++) { - var dn = (un / 26) | 0, - Nn = un % 26 - Hn[un] = (Mn.words[dn] & (1 << Nn)) >>> Nn - } - return Hn - } - ;(en.prototype.zeroBits = function () { - if (this.isZero()) return 0 - for (var Hn = 0, un = 0; un < this.length; un++) { - var dn = this._zeroBits(this.words[un]) - if (((Hn += dn), dn !== 26)) break - } - return Hn - }), - (en.prototype.byteLength = function () { - return Math.ceil(this.bitLength() / 8) - }), - (en.prototype.toTwos = function (Hn) { - return this.negative !== 0 ? this.abs().inotn(Hn).iaddn(1) : this.clone() - }), - (en.prototype.fromTwos = function (Hn) { - return this.testn(Hn - 1) ? this.notn(Hn).iaddn(1).ineg() : this.clone() - }), - (en.prototype.isNeg = function () { - return this.negative !== 0 - }), - (en.prototype.neg = function () { - return this.clone().ineg() - }), - (en.prototype.ineg = function () { - return this.isZero() || (this.negative ^= 1), this - }), - (en.prototype.iuor = function (Hn) { - for (; this.length < Hn.length; ) this.words[this.length++] = 0 - for (var un = 0; un < Hn.length; un++) this.words[un] = this.words[un] | Hn.words[un] - return this.strip() - }), - (en.prototype.ior = function (Hn) { - return b((this.negative | Hn.negative) === 0), this.iuor(Hn) - }), - (en.prototype.or = function (Hn) { - return this.length > Hn.length ? this.clone().ior(Hn) : Hn.clone().ior(this) - }), - (en.prototype.uor = function (Hn) { - return this.length > Hn.length ? this.clone().iuor(Hn) : Hn.clone().iuor(this) - }), - (en.prototype.iuand = function (Hn) { - var un - this.length > Hn.length ? (un = Hn) : (un = this) - for (var dn = 0; dn < un.length; dn++) this.words[dn] = this.words[dn] & Hn.words[dn] - return (this.length = un.length), this.strip() - }), - (en.prototype.iand = function (Hn) { - return b((this.negative | Hn.negative) === 0), this.iuand(Hn) - }), - (en.prototype.and = function (Hn) { - return this.length > Hn.length ? this.clone().iand(Hn) : Hn.clone().iand(this) - }), - (en.prototype.uand = function (Hn) { - return this.length > Hn.length ? this.clone().iuand(Hn) : Hn.clone().iuand(this) - }), - (en.prototype.iuxor = function (Hn) { - var un, dn - this.length > Hn.length ? ((un = this), (dn = Hn)) : ((un = Hn), (dn = this)) - for (var Nn = 0; Nn < dn.length; Nn++) this.words[Nn] = un.words[Nn] ^ dn.words[Nn] - if (this !== un) for (; Nn < un.length; Nn++) this.words[Nn] = un.words[Nn] - return (this.length = un.length), this.strip() - }), - (en.prototype.ixor = function (Hn) { - return b((this.negative | Hn.negative) === 0), this.iuxor(Hn) - }), - (en.prototype.xor = function (Hn) { - return this.length > Hn.length ? this.clone().ixor(Hn) : Hn.clone().ixor(this) - }), - (en.prototype.uxor = function (Hn) { - return this.length > Hn.length ? this.clone().iuxor(Hn) : Hn.clone().iuxor(this) - }), - (en.prototype.inotn = function (Hn) { - b(typeof Hn == 'number' && Hn >= 0) - var un = Math.ceil(Hn / 26) | 0, - dn = Hn % 26 - this._expand(un), dn > 0 && un-- - for (var Nn = 0; Nn < un; Nn++) this.words[Nn] = ~this.words[Nn] & 67108863 - return dn > 0 && (this.words[Nn] = ~this.words[Nn] & (67108863 >> (26 - dn))), this.strip() - }), - (en.prototype.notn = function (Hn) { - return this.clone().inotn(Hn) - }), - (en.prototype.setn = function (Hn, un) { - b(typeof Hn == 'number' && Hn >= 0) - var dn = (Hn / 26) | 0, - Nn = Hn % 26 - return ( - this._expand(dn + 1), - un - ? (this.words[dn] = this.words[dn] | (1 << Nn)) - : (this.words[dn] = this.words[dn] & ~(1 << Nn)), - this.strip() - ) - }), - (en.prototype.iadd = function (Hn) { - var un - if (this.negative !== 0 && Hn.negative === 0) - return (this.negative = 0), (un = this.isub(Hn)), (this.negative ^= 1), this._normSign() - if (this.negative === 0 && Hn.negative !== 0) - return (Hn.negative = 0), (un = this.isub(Hn)), (Hn.negative = 1), un._normSign() - var dn, Nn - this.length > Hn.length ? ((dn = this), (Nn = Hn)) : ((dn = Hn), (Nn = this)) - for (var fn = 0, _n = 0; _n < Nn.length; _n++) - (un = (dn.words[_n] | 0) + (Nn.words[_n] | 0) + fn), - (this.words[_n] = un & 67108863), - (fn = un >>> 26) - for (; fn !== 0 && _n < dn.length; _n++) - (un = (dn.words[_n] | 0) + fn), (this.words[_n] = un & 67108863), (fn = un >>> 26) - if (((this.length = dn.length), fn !== 0)) (this.words[this.length] = fn), this.length++ - else if (dn !== this) for (; _n < dn.length; _n++) this.words[_n] = dn.words[_n] - return this - }), - (en.prototype.add = function (Hn) { - var un - return Hn.negative !== 0 && this.negative === 0 - ? ((Hn.negative = 0), (un = this.sub(Hn)), (Hn.negative ^= 1), un) - : Hn.negative === 0 && this.negative !== 0 - ? ((this.negative = 0), (un = Hn.sub(this)), (this.negative = 1), un) - : this.length > Hn.length - ? this.clone().iadd(Hn) - : Hn.clone().iadd(this) - }), - (en.prototype.isub = function (Hn) { - if (Hn.negative !== 0) { - Hn.negative = 0 - var un = this.iadd(Hn) - return (Hn.negative = 1), un._normSign() - } else if (this.negative !== 0) - return (this.negative = 0), this.iadd(Hn), (this.negative = 1), this._normSign() - var dn = this.cmp(Hn) - if (dn === 0) return (this.negative = 0), (this.length = 1), (this.words[0] = 0), this - var Nn, fn - dn > 0 ? ((Nn = this), (fn = Hn)) : ((Nn = Hn), (fn = this)) - for (var _n = 0, Ln = 0; Ln < fn.length; Ln++) - (un = (Nn.words[Ln] | 0) - (fn.words[Ln] | 0) + _n), - (_n = un >> 26), - (this.words[Ln] = un & 67108863) - for (; _n !== 0 && Ln < Nn.length; Ln++) - (un = (Nn.words[Ln] | 0) + _n), (_n = un >> 26), (this.words[Ln] = un & 67108863) - if (_n === 0 && Ln < Nn.length && Nn !== this) - for (; Ln < Nn.length; Ln++) this.words[Ln] = Nn.words[Ln] - return ( - (this.length = Math.max(this.length, Ln)), - Nn !== this && (this.negative = 1), - this.strip() - ) - }), - (en.prototype.sub = function (Hn) { - return this.clone().isub(Hn) - }) - function xn(Mn, Hn, un) { - un.negative = Hn.negative ^ Mn.negative - var dn = (Mn.length + Hn.length) | 0 - ;(un.length = dn), (dn = (dn - 1) | 0) - var Nn = Mn.words[0] | 0, - fn = Hn.words[0] | 0, - _n = Nn * fn, - Ln = _n & 67108863, - zn = (_n / 67108864) | 0 - un.words[0] = Ln - for (var Fn = 1; Fn < dn; Fn++) { - for ( - var An = zn >>> 26, - Qn = zn & 67108863, - Rn = Math.min(Fn, Hn.length - 1), - Vn = Math.max(0, Fn - Mn.length + 1); - Vn <= Rn; - Vn++ - ) { - var Wn = (Fn - Vn) | 0 - ;(Nn = Mn.words[Wn] | 0), - (fn = Hn.words[Vn] | 0), - (_n = Nn * fn + Qn), - (An += (_n / 67108864) | 0), - (Qn = _n & 67108863) - } - ;(un.words[Fn] = Qn | 0), (zn = An | 0) - } - return zn !== 0 ? (un.words[Fn] = zn | 0) : un.length--, un.strip() - } - var mn = function (Hn, un, dn) { - var Nn = Hn.words, - fn = un.words, - _n = dn.words, - Ln = 0, - zn, - Fn, - An, - Qn = Nn[0] | 0, - Rn = Qn & 8191, - Vn = Qn >>> 13, - Wn = Nn[1] | 0, - ht = Wn & 8191, - Wt = Wn >>> 13, - zt = Nn[2] | 0, - mr = zt & 8191, - Uo = zt >>> 13, - Vo = Nn[3] | 0, - ko = Vo & 8191, - na = Vo >>> 13, - Yo = Nn[4] | 0, - vo = Yo & 8191, - Wo = Yo >>> 13, - ba = Nn[5] | 0, - Co = ba & 8191, - Ko = ba >>> 13, - xa = Nn[6] | 0, - bo = xa & 8191, - br = xa >>> 13, - Fr = Nn[7] | 0, - $r = Fr & 8191, - cr = Fr >>> 13, - ir = Nn[8] | 0, - vn = ir & 8191, - gr = ir >>> 13, - Mr = Nn[9] | 0, - Or = Mr & 8191, - _i = Mr >>> 13, - eo = fn[0] | 0, - no = eo & 8191, - Oo = eo >>> 13, - So = fn[1] | 0, - lo = So & 8191, - Pn = So >>> 13, - Xn = fn[2] | 0, - dt = Xn & 8191, - Ir = Xn >>> 13, - Lt = fn[3] | 0, - ur = Lt & 8191, - ho = Lt >>> 13, - xo = fn[4] | 0, - yo = xo & 8191, - ga = xo >>> 13, - Zo = fn[5] | 0, - _o = Zo & 8191, - zo = Zo >>> 13, - $a = fn[6] | 0, - No = $a & 8191, - us = $a >>> 13, - rs = fn[7] | 0, - Ro = rs & 8191, - is = rs >>> 13, - ns = fn[8] | 0, - Bo = ns & 8191, - ts = ns >>> 13, - Kt = fn[9] | 0, - Vt = Kt & 8191, - Mt = Kt >>> 13 - ;(dn.negative = Hn.negative ^ un.negative), - (dn.length = 19), - (zn = Math.imul(Rn, no)), - (Fn = Math.imul(Rn, Oo)), - (Fn = (Fn + Math.imul(Vn, no)) | 0), - (An = Math.imul(Vn, Oo)) - var $t = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + ($t >>> 26)) | 0), - ($t &= 67108863), - (zn = Math.imul(ht, no)), - (Fn = Math.imul(ht, Oo)), - (Fn = (Fn + Math.imul(Wt, no)) | 0), - (An = Math.imul(Wt, Oo)), - (zn = (zn + Math.imul(Rn, lo)) | 0), - (Fn = (Fn + Math.imul(Rn, Pn)) | 0), - (Fn = (Fn + Math.imul(Vn, lo)) | 0), - (An = (An + Math.imul(Vn, Pn)) | 0) - var qt = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (qt >>> 26)) | 0), - (qt &= 67108863), - (zn = Math.imul(mr, no)), - (Fn = Math.imul(mr, Oo)), - (Fn = (Fn + Math.imul(Uo, no)) | 0), - (An = Math.imul(Uo, Oo)), - (zn = (zn + Math.imul(ht, lo)) | 0), - (Fn = (Fn + Math.imul(ht, Pn)) | 0), - (Fn = (Fn + Math.imul(Wt, lo)) | 0), - (An = (An + Math.imul(Wt, Pn)) | 0), - (zn = (zn + Math.imul(Rn, dt)) | 0), - (Fn = (Fn + Math.imul(Rn, Ir)) | 0), - (Fn = (Fn + Math.imul(Vn, dt)) | 0), - (An = (An + Math.imul(Vn, Ir)) | 0) - var pr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (pr >>> 26)) | 0), - (pr &= 67108863), - (zn = Math.imul(ko, no)), - (Fn = Math.imul(ko, Oo)), - (Fn = (Fn + Math.imul(na, no)) | 0), - (An = Math.imul(na, Oo)), - (zn = (zn + Math.imul(mr, lo)) | 0), - (Fn = (Fn + Math.imul(mr, Pn)) | 0), - (Fn = (Fn + Math.imul(Uo, lo)) | 0), - (An = (An + Math.imul(Uo, Pn)) | 0), - (zn = (zn + Math.imul(ht, dt)) | 0), - (Fn = (Fn + Math.imul(ht, Ir)) | 0), - (Fn = (Fn + Math.imul(Wt, dt)) | 0), - (An = (An + Math.imul(Wt, Ir)) | 0), - (zn = (zn + Math.imul(Rn, ur)) | 0), - (Fn = (Fn + Math.imul(Rn, ho)) | 0), - (Fn = (Fn + Math.imul(Vn, ur)) | 0), - (An = (An + Math.imul(Vn, ho)) | 0) - var Rr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Rr >>> 26)) | 0), - (Rr &= 67108863), - (zn = Math.imul(vo, no)), - (Fn = Math.imul(vo, Oo)), - (Fn = (Fn + Math.imul(Wo, no)) | 0), - (An = Math.imul(Wo, Oo)), - (zn = (zn + Math.imul(ko, lo)) | 0), - (Fn = (Fn + Math.imul(ko, Pn)) | 0), - (Fn = (Fn + Math.imul(na, lo)) | 0), - (An = (An + Math.imul(na, Pn)) | 0), - (zn = (zn + Math.imul(mr, dt)) | 0), - (Fn = (Fn + Math.imul(mr, Ir)) | 0), - (Fn = (Fn + Math.imul(Uo, dt)) | 0), - (An = (An + Math.imul(Uo, Ir)) | 0), - (zn = (zn + Math.imul(ht, ur)) | 0), - (Fn = (Fn + Math.imul(ht, ho)) | 0), - (Fn = (Fn + Math.imul(Wt, ur)) | 0), - (An = (An + Math.imul(Wt, ho)) | 0), - (zn = (zn + Math.imul(Rn, yo)) | 0), - (Fn = (Fn + Math.imul(Rn, ga)) | 0), - (Fn = (Fn + Math.imul(Vn, yo)) | 0), - (An = (An + Math.imul(Vn, ga)) | 0) - var Sr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Sr >>> 26)) | 0), - (Sr &= 67108863), - (zn = Math.imul(Co, no)), - (Fn = Math.imul(Co, Oo)), - (Fn = (Fn + Math.imul(Ko, no)) | 0), - (An = Math.imul(Ko, Oo)), - (zn = (zn + Math.imul(vo, lo)) | 0), - (Fn = (Fn + Math.imul(vo, Pn)) | 0), - (Fn = (Fn + Math.imul(Wo, lo)) | 0), - (An = (An + Math.imul(Wo, Pn)) | 0), - (zn = (zn + Math.imul(ko, dt)) | 0), - (Fn = (Fn + Math.imul(ko, Ir)) | 0), - (Fn = (Fn + Math.imul(na, dt)) | 0), - (An = (An + Math.imul(na, Ir)) | 0), - (zn = (zn + Math.imul(mr, ur)) | 0), - (Fn = (Fn + Math.imul(mr, ho)) | 0), - (Fn = (Fn + Math.imul(Uo, ur)) | 0), - (An = (An + Math.imul(Uo, ho)) | 0), - (zn = (zn + Math.imul(ht, yo)) | 0), - (Fn = (Fn + Math.imul(ht, ga)) | 0), - (Fn = (Fn + Math.imul(Wt, yo)) | 0), - (An = (An + Math.imul(Wt, ga)) | 0), - (zn = (zn + Math.imul(Rn, _o)) | 0), - (Fn = (Fn + Math.imul(Rn, zo)) | 0), - (Fn = (Fn + Math.imul(Vn, _o)) | 0), - (An = (An + Math.imul(Vn, zo)) | 0) - var lr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (lr >>> 26)) | 0), - (lr &= 67108863), - (zn = Math.imul(bo, no)), - (Fn = Math.imul(bo, Oo)), - (Fn = (Fn + Math.imul(br, no)) | 0), - (An = Math.imul(br, Oo)), - (zn = (zn + Math.imul(Co, lo)) | 0), - (Fn = (Fn + Math.imul(Co, Pn)) | 0), - (Fn = (Fn + Math.imul(Ko, lo)) | 0), - (An = (An + Math.imul(Ko, Pn)) | 0), - (zn = (zn + Math.imul(vo, dt)) | 0), - (Fn = (Fn + Math.imul(vo, Ir)) | 0), - (Fn = (Fn + Math.imul(Wo, dt)) | 0), - (An = (An + Math.imul(Wo, Ir)) | 0), - (zn = (zn + Math.imul(ko, ur)) | 0), - (Fn = (Fn + Math.imul(ko, ho)) | 0), - (Fn = (Fn + Math.imul(na, ur)) | 0), - (An = (An + Math.imul(na, ho)) | 0), - (zn = (zn + Math.imul(mr, yo)) | 0), - (Fn = (Fn + Math.imul(mr, ga)) | 0), - (Fn = (Fn + Math.imul(Uo, yo)) | 0), - (An = (An + Math.imul(Uo, ga)) | 0), - (zn = (zn + Math.imul(ht, _o)) | 0), - (Fn = (Fn + Math.imul(ht, zo)) | 0), - (Fn = (Fn + Math.imul(Wt, _o)) | 0), - (An = (An + Math.imul(Wt, zo)) | 0), - (zn = (zn + Math.imul(Rn, No)) | 0), - (Fn = (Fn + Math.imul(Rn, us)) | 0), - (Fn = (Fn + Math.imul(Vn, No)) | 0), - (An = (An + Math.imul(Vn, us)) | 0) - var Jr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Jr >>> 26)) | 0), - (Jr &= 67108863), - (zn = Math.imul($r, no)), - (Fn = Math.imul($r, Oo)), - (Fn = (Fn + Math.imul(cr, no)) | 0), - (An = Math.imul(cr, Oo)), - (zn = (zn + Math.imul(bo, lo)) | 0), - (Fn = (Fn + Math.imul(bo, Pn)) | 0), - (Fn = (Fn + Math.imul(br, lo)) | 0), - (An = (An + Math.imul(br, Pn)) | 0), - (zn = (zn + Math.imul(Co, dt)) | 0), - (Fn = (Fn + Math.imul(Co, Ir)) | 0), - (Fn = (Fn + Math.imul(Ko, dt)) | 0), - (An = (An + Math.imul(Ko, Ir)) | 0), - (zn = (zn + Math.imul(vo, ur)) | 0), - (Fn = (Fn + Math.imul(vo, ho)) | 0), - (Fn = (Fn + Math.imul(Wo, ur)) | 0), - (An = (An + Math.imul(Wo, ho)) | 0), - (zn = (zn + Math.imul(ko, yo)) | 0), - (Fn = (Fn + Math.imul(ko, ga)) | 0), - (Fn = (Fn + Math.imul(na, yo)) | 0), - (An = (An + Math.imul(na, ga)) | 0), - (zn = (zn + Math.imul(mr, _o)) | 0), - (Fn = (Fn + Math.imul(mr, zo)) | 0), - (Fn = (Fn + Math.imul(Uo, _o)) | 0), - (An = (An + Math.imul(Uo, zo)) | 0), - (zn = (zn + Math.imul(ht, No)) | 0), - (Fn = (Fn + Math.imul(ht, us)) | 0), - (Fn = (Fn + Math.imul(Wt, No)) | 0), - (An = (An + Math.imul(Wt, us)) | 0), - (zn = (zn + Math.imul(Rn, Ro)) | 0), - (Fn = (Fn + Math.imul(Rn, is)) | 0), - (Fn = (Fn + Math.imul(Vn, Ro)) | 0), - (An = (An + Math.imul(Vn, is)) | 0) - var co = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (co >>> 26)) | 0), - (co &= 67108863), - (zn = Math.imul(vn, no)), - (Fn = Math.imul(vn, Oo)), - (Fn = (Fn + Math.imul(gr, no)) | 0), - (An = Math.imul(gr, Oo)), - (zn = (zn + Math.imul($r, lo)) | 0), - (Fn = (Fn + Math.imul($r, Pn)) | 0), - (Fn = (Fn + Math.imul(cr, lo)) | 0), - (An = (An + Math.imul(cr, Pn)) | 0), - (zn = (zn + Math.imul(bo, dt)) | 0), - (Fn = (Fn + Math.imul(bo, Ir)) | 0), - (Fn = (Fn + Math.imul(br, dt)) | 0), - (An = (An + Math.imul(br, Ir)) | 0), - (zn = (zn + Math.imul(Co, ur)) | 0), - (Fn = (Fn + Math.imul(Co, ho)) | 0), - (Fn = (Fn + Math.imul(Ko, ur)) | 0), - (An = (An + Math.imul(Ko, ho)) | 0), - (zn = (zn + Math.imul(vo, yo)) | 0), - (Fn = (Fn + Math.imul(vo, ga)) | 0), - (Fn = (Fn + Math.imul(Wo, yo)) | 0), - (An = (An + Math.imul(Wo, ga)) | 0), - (zn = (zn + Math.imul(ko, _o)) | 0), - (Fn = (Fn + Math.imul(ko, zo)) | 0), - (Fn = (Fn + Math.imul(na, _o)) | 0), - (An = (An + Math.imul(na, zo)) | 0), - (zn = (zn + Math.imul(mr, No)) | 0), - (Fn = (Fn + Math.imul(mr, us)) | 0), - (Fn = (Fn + Math.imul(Uo, No)) | 0), - (An = (An + Math.imul(Uo, us)) | 0), - (zn = (zn + Math.imul(ht, Ro)) | 0), - (Fn = (Fn + Math.imul(ht, is)) | 0), - (Fn = (Fn + Math.imul(Wt, Ro)) | 0), - (An = (An + Math.imul(Wt, is)) | 0), - (zn = (zn + Math.imul(Rn, Bo)) | 0), - (Fn = (Fn + Math.imul(Rn, ts)) | 0), - (Fn = (Fn + Math.imul(Vn, Bo)) | 0), - (An = (An + Math.imul(Vn, ts)) | 0) - var Po = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Po >>> 26)) | 0), - (Po &= 67108863), - (zn = Math.imul(Or, no)), - (Fn = Math.imul(Or, Oo)), - (Fn = (Fn + Math.imul(_i, no)) | 0), - (An = Math.imul(_i, Oo)), - (zn = (zn + Math.imul(vn, lo)) | 0), - (Fn = (Fn + Math.imul(vn, Pn)) | 0), - (Fn = (Fn + Math.imul(gr, lo)) | 0), - (An = (An + Math.imul(gr, Pn)) | 0), - (zn = (zn + Math.imul($r, dt)) | 0), - (Fn = (Fn + Math.imul($r, Ir)) | 0), - (Fn = (Fn + Math.imul(cr, dt)) | 0), - (An = (An + Math.imul(cr, Ir)) | 0), - (zn = (zn + Math.imul(bo, ur)) | 0), - (Fn = (Fn + Math.imul(bo, ho)) | 0), - (Fn = (Fn + Math.imul(br, ur)) | 0), - (An = (An + Math.imul(br, ho)) | 0), - (zn = (zn + Math.imul(Co, yo)) | 0), - (Fn = (Fn + Math.imul(Co, ga)) | 0), - (Fn = (Fn + Math.imul(Ko, yo)) | 0), - (An = (An + Math.imul(Ko, ga)) | 0), - (zn = (zn + Math.imul(vo, _o)) | 0), - (Fn = (Fn + Math.imul(vo, zo)) | 0), - (Fn = (Fn + Math.imul(Wo, _o)) | 0), - (An = (An + Math.imul(Wo, zo)) | 0), - (zn = (zn + Math.imul(ko, No)) | 0), - (Fn = (Fn + Math.imul(ko, us)) | 0), - (Fn = (Fn + Math.imul(na, No)) | 0), - (An = (An + Math.imul(na, us)) | 0), - (zn = (zn + Math.imul(mr, Ro)) | 0), - (Fn = (Fn + Math.imul(mr, is)) | 0), - (Fn = (Fn + Math.imul(Uo, Ro)) | 0), - (An = (An + Math.imul(Uo, is)) | 0), - (zn = (zn + Math.imul(ht, Bo)) | 0), - (Fn = (Fn + Math.imul(ht, ts)) | 0), - (Fn = (Fn + Math.imul(Wt, Bo)) | 0), - (An = (An + Math.imul(Wt, ts)) | 0), - (zn = (zn + Math.imul(Rn, Vt)) | 0), - (Fn = (Fn + Math.imul(Rn, Mt)) | 0), - (Fn = (Fn + Math.imul(Vn, Vt)) | 0), - (An = (An + Math.imul(Vn, Mt)) | 0) - var Ho = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Ho >>> 26)) | 0), - (Ho &= 67108863), - (zn = Math.imul(Or, lo)), - (Fn = Math.imul(Or, Pn)), - (Fn = (Fn + Math.imul(_i, lo)) | 0), - (An = Math.imul(_i, Pn)), - (zn = (zn + Math.imul(vn, dt)) | 0), - (Fn = (Fn + Math.imul(vn, Ir)) | 0), - (Fn = (Fn + Math.imul(gr, dt)) | 0), - (An = (An + Math.imul(gr, Ir)) | 0), - (zn = (zn + Math.imul($r, ur)) | 0), - (Fn = (Fn + Math.imul($r, ho)) | 0), - (Fn = (Fn + Math.imul(cr, ur)) | 0), - (An = (An + Math.imul(cr, ho)) | 0), - (zn = (zn + Math.imul(bo, yo)) | 0), - (Fn = (Fn + Math.imul(bo, ga)) | 0), - (Fn = (Fn + Math.imul(br, yo)) | 0), - (An = (An + Math.imul(br, ga)) | 0), - (zn = (zn + Math.imul(Co, _o)) | 0), - (Fn = (Fn + Math.imul(Co, zo)) | 0), - (Fn = (Fn + Math.imul(Ko, _o)) | 0), - (An = (An + Math.imul(Ko, zo)) | 0), - (zn = (zn + Math.imul(vo, No)) | 0), - (Fn = (Fn + Math.imul(vo, us)) | 0), - (Fn = (Fn + Math.imul(Wo, No)) | 0), - (An = (An + Math.imul(Wo, us)) | 0), - (zn = (zn + Math.imul(ko, Ro)) | 0), - (Fn = (Fn + Math.imul(ko, is)) | 0), - (Fn = (Fn + Math.imul(na, Ro)) | 0), - (An = (An + Math.imul(na, is)) | 0), - (zn = (zn + Math.imul(mr, Bo)) | 0), - (Fn = (Fn + Math.imul(mr, ts)) | 0), - (Fn = (Fn + Math.imul(Uo, Bo)) | 0), - (An = (An + Math.imul(Uo, ts)) | 0), - (zn = (zn + Math.imul(ht, Vt)) | 0), - (Fn = (Fn + Math.imul(ht, Mt)) | 0), - (Fn = (Fn + Math.imul(Wt, Vt)) | 0), - (An = (An + Math.imul(Wt, Mt)) | 0) - var Xo = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Xo >>> 26)) | 0), - (Xo &= 67108863), - (zn = Math.imul(Or, dt)), - (Fn = Math.imul(Or, Ir)), - (Fn = (Fn + Math.imul(_i, dt)) | 0), - (An = Math.imul(_i, Ir)), - (zn = (zn + Math.imul(vn, ur)) | 0), - (Fn = (Fn + Math.imul(vn, ho)) | 0), - (Fn = (Fn + Math.imul(gr, ur)) | 0), - (An = (An + Math.imul(gr, ho)) | 0), - (zn = (zn + Math.imul($r, yo)) | 0), - (Fn = (Fn + Math.imul($r, ga)) | 0), - (Fn = (Fn + Math.imul(cr, yo)) | 0), - (An = (An + Math.imul(cr, ga)) | 0), - (zn = (zn + Math.imul(bo, _o)) | 0), - (Fn = (Fn + Math.imul(bo, zo)) | 0), - (Fn = (Fn + Math.imul(br, _o)) | 0), - (An = (An + Math.imul(br, zo)) | 0), - (zn = (zn + Math.imul(Co, No)) | 0), - (Fn = (Fn + Math.imul(Co, us)) | 0), - (Fn = (Fn + Math.imul(Ko, No)) | 0), - (An = (An + Math.imul(Ko, us)) | 0), - (zn = (zn + Math.imul(vo, Ro)) | 0), - (Fn = (Fn + Math.imul(vo, is)) | 0), - (Fn = (Fn + Math.imul(Wo, Ro)) | 0), - (An = (An + Math.imul(Wo, is)) | 0), - (zn = (zn + Math.imul(ko, Bo)) | 0), - (Fn = (Fn + Math.imul(ko, ts)) | 0), - (Fn = (Fn + Math.imul(na, Bo)) | 0), - (An = (An + Math.imul(na, ts)) | 0), - (zn = (zn + Math.imul(mr, Vt)) | 0), - (Fn = (Fn + Math.imul(mr, Mt)) | 0), - (Fn = (Fn + Math.imul(Uo, Vt)) | 0), - (An = (An + Math.imul(Uo, Mt)) | 0) - var Mo = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Mo >>> 26)) | 0), - (Mo &= 67108863), - (zn = Math.imul(Or, ur)), - (Fn = Math.imul(Or, ho)), - (Fn = (Fn + Math.imul(_i, ur)) | 0), - (An = Math.imul(_i, ho)), - (zn = (zn + Math.imul(vn, yo)) | 0), - (Fn = (Fn + Math.imul(vn, ga)) | 0), - (Fn = (Fn + Math.imul(gr, yo)) | 0), - (An = (An + Math.imul(gr, ga)) | 0), - (zn = (zn + Math.imul($r, _o)) | 0), - (Fn = (Fn + Math.imul($r, zo)) | 0), - (Fn = (Fn + Math.imul(cr, _o)) | 0), - (An = (An + Math.imul(cr, zo)) | 0), - (zn = (zn + Math.imul(bo, No)) | 0), - (Fn = (Fn + Math.imul(bo, us)) | 0), - (Fn = (Fn + Math.imul(br, No)) | 0), - (An = (An + Math.imul(br, us)) | 0), - (zn = (zn + Math.imul(Co, Ro)) | 0), - (Fn = (Fn + Math.imul(Co, is)) | 0), - (Fn = (Fn + Math.imul(Ko, Ro)) | 0), - (An = (An + Math.imul(Ko, is)) | 0), - (zn = (zn + Math.imul(vo, Bo)) | 0), - (Fn = (Fn + Math.imul(vo, ts)) | 0), - (Fn = (Fn + Math.imul(Wo, Bo)) | 0), - (An = (An + Math.imul(Wo, ts)) | 0), - (zn = (zn + Math.imul(ko, Vt)) | 0), - (Fn = (Fn + Math.imul(ko, Mt)) | 0), - (Fn = (Fn + Math.imul(na, Vt)) | 0), - (An = (An + Math.imul(na, Mt)) | 0) - var vr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (vr >>> 26)) | 0), - (vr &= 67108863), - (zn = Math.imul(Or, yo)), - (Fn = Math.imul(Or, ga)), - (Fn = (Fn + Math.imul(_i, yo)) | 0), - (An = Math.imul(_i, ga)), - (zn = (zn + Math.imul(vn, _o)) | 0), - (Fn = (Fn + Math.imul(vn, zo)) | 0), - (Fn = (Fn + Math.imul(gr, _o)) | 0), - (An = (An + Math.imul(gr, zo)) | 0), - (zn = (zn + Math.imul($r, No)) | 0), - (Fn = (Fn + Math.imul($r, us)) | 0), - (Fn = (Fn + Math.imul(cr, No)) | 0), - (An = (An + Math.imul(cr, us)) | 0), - (zn = (zn + Math.imul(bo, Ro)) | 0), - (Fn = (Fn + Math.imul(bo, is)) | 0), - (Fn = (Fn + Math.imul(br, Ro)) | 0), - (An = (An + Math.imul(br, is)) | 0), - (zn = (zn + Math.imul(Co, Bo)) | 0), - (Fn = (Fn + Math.imul(Co, ts)) | 0), - (Fn = (Fn + Math.imul(Ko, Bo)) | 0), - (An = (An + Math.imul(Ko, ts)) | 0), - (zn = (zn + Math.imul(vo, Vt)) | 0), - (Fn = (Fn + Math.imul(vo, Mt)) | 0), - (Fn = (Fn + Math.imul(Wo, Vt)) | 0), - (An = (An + Math.imul(Wo, Mt)) | 0) - var Wr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Wr >>> 26)) | 0), - (Wr &= 67108863), - (zn = Math.imul(Or, _o)), - (Fn = Math.imul(Or, zo)), - (Fn = (Fn + Math.imul(_i, _o)) | 0), - (An = Math.imul(_i, zo)), - (zn = (zn + Math.imul(vn, No)) | 0), - (Fn = (Fn + Math.imul(vn, us)) | 0), - (Fn = (Fn + Math.imul(gr, No)) | 0), - (An = (An + Math.imul(gr, us)) | 0), - (zn = (zn + Math.imul($r, Ro)) | 0), - (Fn = (Fn + Math.imul($r, is)) | 0), - (Fn = (Fn + Math.imul(cr, Ro)) | 0), - (An = (An + Math.imul(cr, is)) | 0), - (zn = (zn + Math.imul(bo, Bo)) | 0), - (Fn = (Fn + Math.imul(bo, ts)) | 0), - (Fn = (Fn + Math.imul(br, Bo)) | 0), - (An = (An + Math.imul(br, ts)) | 0), - (zn = (zn + Math.imul(Co, Vt)) | 0), - (Fn = (Fn + Math.imul(Co, Mt)) | 0), - (Fn = (Fn + Math.imul(Ko, Vt)) | 0), - (An = (An + Math.imul(Ko, Mt)) | 0) - var qr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (qr >>> 26)) | 0), - (qr &= 67108863), - (zn = Math.imul(Or, No)), - (Fn = Math.imul(Or, us)), - (Fn = (Fn + Math.imul(_i, No)) | 0), - (An = Math.imul(_i, us)), - (zn = (zn + Math.imul(vn, Ro)) | 0), - (Fn = (Fn + Math.imul(vn, is)) | 0), - (Fn = (Fn + Math.imul(gr, Ro)) | 0), - (An = (An + Math.imul(gr, is)) | 0), - (zn = (zn + Math.imul($r, Bo)) | 0), - (Fn = (Fn + Math.imul($r, ts)) | 0), - (Fn = (Fn + Math.imul(cr, Bo)) | 0), - (An = (An + Math.imul(cr, ts)) | 0), - (zn = (zn + Math.imul(bo, Vt)) | 0), - (Fn = (Fn + Math.imul(bo, Mt)) | 0), - (Fn = (Fn + Math.imul(br, Vt)) | 0), - (An = (An + Math.imul(br, Mt)) | 0) - var Xr = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Xr >>> 26)) | 0), - (Xr &= 67108863), - (zn = Math.imul(Or, Ro)), - (Fn = Math.imul(Or, is)), - (Fn = (Fn + Math.imul(_i, Ro)) | 0), - (An = Math.imul(_i, is)), - (zn = (zn + Math.imul(vn, Bo)) | 0), - (Fn = (Fn + Math.imul(vn, ts)) | 0), - (Fn = (Fn + Math.imul(gr, Bo)) | 0), - (An = (An + Math.imul(gr, ts)) | 0), - (zn = (zn + Math.imul($r, Vt)) | 0), - (Fn = (Fn + Math.imul($r, Mt)) | 0), - (Fn = (Fn + Math.imul(cr, Vt)) | 0), - (An = (An + Math.imul(cr, Mt)) | 0) - var Ao = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (Ao >>> 26)) | 0), - (Ao &= 67108863), - (zn = Math.imul(Or, Bo)), - (Fn = Math.imul(Or, ts)), - (Fn = (Fn + Math.imul(_i, Bo)) | 0), - (An = Math.imul(_i, ts)), - (zn = (zn + Math.imul(vn, Vt)) | 0), - (Fn = (Fn + Math.imul(vn, Mt)) | 0), - (Fn = (Fn + Math.imul(gr, Vt)) | 0), - (An = (An + Math.imul(gr, Mt)) | 0) - var fo = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - ;(Ln = (((An + (Fn >>> 13)) | 0) + (fo >>> 26)) | 0), - (fo &= 67108863), - (zn = Math.imul(Or, Vt)), - (Fn = Math.imul(Or, Mt)), - (Fn = (Fn + Math.imul(_i, Vt)) | 0), - (An = Math.imul(_i, Mt)) - var wo = (((Ln + zn) | 0) + ((Fn & 8191) << 13)) | 0 - return ( - (Ln = (((An + (Fn >>> 13)) | 0) + (wo >>> 26)) | 0), - (wo &= 67108863), - (_n[0] = $t), - (_n[1] = qt), - (_n[2] = pr), - (_n[3] = Rr), - (_n[4] = Sr), - (_n[5] = lr), - (_n[6] = Jr), - (_n[7] = co), - (_n[8] = Po), - (_n[9] = Ho), - (_n[10] = Xo), - (_n[11] = Mo), - (_n[12] = vr), - (_n[13] = Wr), - (_n[14] = qr), - (_n[15] = Xr), - (_n[16] = Ao), - (_n[17] = fo), - (_n[18] = wo), - Ln !== 0 && ((_n[19] = Ln), dn.length++), - dn - ) - } - Math.imul || (mn = xn) - function Bn(Mn, Hn, un) { - ;(un.negative = Hn.negative ^ Mn.negative), (un.length = Mn.length + Hn.length) - for (var dn = 0, Nn = 0, fn = 0; fn < un.length - 1; fn++) { - var _n = Nn - Nn = 0 - for ( - var Ln = dn & 67108863, - zn = Math.min(fn, Hn.length - 1), - Fn = Math.max(0, fn - Mn.length + 1); - Fn <= zn; - Fn++ - ) { - var An = fn - Fn, - Qn = Mn.words[An] | 0, - Rn = Hn.words[Fn] | 0, - Vn = Qn * Rn, - Wn = Vn & 67108863 - ;(_n = (_n + ((Vn / 67108864) | 0)) | 0), - (Wn = (Wn + Ln) | 0), - (Ln = Wn & 67108863), - (_n = (_n + (Wn >>> 26)) | 0), - (Nn += _n >>> 26), - (_n &= 67108863) - } - ;(un.words[fn] = Ln), (dn = _n), (_n = Nn) - } - return dn !== 0 ? (un.words[fn] = dn) : un.length--, un.strip() - } - function kn(Mn, Hn, un) { - var dn = new ln() - return dn.mulp(Mn, Hn, un) - } - en.prototype.mulTo = function (Hn, un) { - var dn, - Nn = this.length + Hn.length - return ( - this.length === 10 && Hn.length === 10 - ? (dn = mn(this, Hn, un)) - : Nn < 63 - ? (dn = xn(this, Hn, un)) - : Nn < 1024 - ? (dn = Bn(this, Hn, un)) - : (dn = kn(this, Hn, un)), - dn - ) - } - function ln(Mn, Hn) { - ;(this.x = Mn), (this.y = Hn) - } - ;(ln.prototype.makeRBT = function (Hn) { - for (var un = new Array(Hn), dn = en.prototype._countBits(Hn) - 1, Nn = 0; Nn < Hn; Nn++) - un[Nn] = this.revBin(Nn, dn, Hn) - return un - }), - (ln.prototype.revBin = function (Hn, un, dn) { - if (Hn === 0 || Hn === dn - 1) return Hn - for (var Nn = 0, fn = 0; fn < un; fn++) (Nn |= (Hn & 1) << (un - fn - 1)), (Hn >>= 1) - return Nn - }), - (ln.prototype.permute = function (Hn, un, dn, Nn, fn, _n) { - for (var Ln = 0; Ln < _n; Ln++) (Nn[Ln] = un[Hn[Ln]]), (fn[Ln] = dn[Hn[Ln]]) - }), - (ln.prototype.transform = function (Hn, un, dn, Nn, fn, _n) { - this.permute(_n, Hn, un, dn, Nn, fn) - for (var Ln = 1; Ln < fn; Ln <<= 1) - for ( - var zn = Ln << 1, - Fn = Math.cos((2 * Math.PI) / zn), - An = Math.sin((2 * Math.PI) / zn), - Qn = 0; - Qn < fn; - Qn += zn - ) - for (var Rn = Fn, Vn = An, Wn = 0; Wn < Ln; Wn++) { - var ht = dn[Qn + Wn], - Wt = Nn[Qn + Wn], - zt = dn[Qn + Wn + Ln], - mr = Nn[Qn + Wn + Ln], - Uo = Rn * zt - Vn * mr - ;(mr = Rn * mr + Vn * zt), - (zt = Uo), - (dn[Qn + Wn] = ht + zt), - (Nn[Qn + Wn] = Wt + mr), - (dn[Qn + Wn + Ln] = ht - zt), - (Nn[Qn + Wn + Ln] = Wt - mr), - Wn !== zn && ((Uo = Fn * Rn - An * Vn), (Vn = Fn * Vn + An * Rn), (Rn = Uo)) - } - }), - (ln.prototype.guessLen13b = function (Hn, un) { - var dn = Math.max(un, Hn) | 1, - Nn = dn & 1, - fn = 0 - for (dn = (dn / 2) | 0; dn; dn = dn >>> 1) fn++ - return 1 << (fn + 1 + Nn) - }), - (ln.prototype.conjugate = function (Hn, un, dn) { - if (!(dn <= 1)) - for (var Nn = 0; Nn < dn / 2; Nn++) { - var fn = Hn[Nn] - ;(Hn[Nn] = Hn[dn - Nn - 1]), - (Hn[dn - Nn - 1] = fn), - (fn = un[Nn]), - (un[Nn] = -un[dn - Nn - 1]), - (un[dn - Nn - 1] = -fn) - } - }), - (ln.prototype.normalize13b = function (Hn, un) { - for (var dn = 0, Nn = 0; Nn < un / 2; Nn++) { - var fn = Math.round(Hn[2 * Nn + 1] / un) * 8192 + Math.round(Hn[2 * Nn] / un) + dn - ;(Hn[Nn] = fn & 67108863), fn < 67108864 ? (dn = 0) : (dn = (fn / 67108864) | 0) - } - return Hn - }), - (ln.prototype.convert13b = function (Hn, un, dn, Nn) { - for (var fn = 0, _n = 0; _n < un; _n++) - (fn = fn + (Hn[_n] | 0)), - (dn[2 * _n] = fn & 8191), - (fn = fn >>> 13), - (dn[2 * _n + 1] = fn & 8191), - (fn = fn >>> 13) - for (_n = 2 * un; _n < Nn; ++_n) dn[_n] = 0 - b(fn === 0), b((fn & -8192) === 0) - }), - (ln.prototype.stub = function (Hn) { - for (var un = new Array(Hn), dn = 0; dn < Hn; dn++) un[dn] = 0 - return un - }), - (ln.prototype.mulp = function (Hn, un, dn) { - var Nn = 2 * this.guessLen13b(Hn.length, un.length), - fn = this.makeRBT(Nn), - _n = this.stub(Nn), - Ln = new Array(Nn), - zn = new Array(Nn), - Fn = new Array(Nn), - An = new Array(Nn), - Qn = new Array(Nn), - Rn = new Array(Nn), - Vn = dn.words - ;(Vn.length = Nn), - this.convert13b(Hn.words, Hn.length, Ln, Nn), - this.convert13b(un.words, un.length, An, Nn), - this.transform(Ln, _n, zn, Fn, Nn, fn), - this.transform(An, _n, Qn, Rn, Nn, fn) - for (var Wn = 0; Wn < Nn; Wn++) { - var ht = zn[Wn] * Qn[Wn] - Fn[Wn] * Rn[Wn] - ;(Fn[Wn] = zn[Wn] * Rn[Wn] + Fn[Wn] * Qn[Wn]), (zn[Wn] = ht) - } - return ( - this.conjugate(zn, Fn, Nn), - this.transform(zn, Fn, Vn, _n, Nn, fn), - this.conjugate(Vn, _n, Nn), - this.normalize13b(Vn, Nn), - (dn.negative = Hn.negative ^ un.negative), - (dn.length = Hn.length + un.length), - dn.strip() - ) - }), - (en.prototype.mul = function (Hn) { - var un = new en(null) - return (un.words = new Array(this.length + Hn.length)), this.mulTo(Hn, un) - }), - (en.prototype.mulf = function (Hn) { - var un = new en(null) - return (un.words = new Array(this.length + Hn.length)), kn(this, Hn, un) - }), - (en.prototype.imul = function (Hn) { - return this.clone().mulTo(Hn, this) - }), - (en.prototype.imuln = function (Hn) { - b(typeof Hn == 'number'), b(Hn < 67108864) - for (var un = 0, dn = 0; dn < this.length; dn++) { - var Nn = (this.words[dn] | 0) * Hn, - fn = (Nn & 67108863) + (un & 67108863) - ;(un >>= 26), - (un += (Nn / 67108864) | 0), - (un += fn >>> 26), - (this.words[dn] = fn & 67108863) - } - return un !== 0 && ((this.words[dn] = un), this.length++), this - }), - (en.prototype.muln = function (Hn) { - return this.clone().imuln(Hn) - }), - (en.prototype.sqr = function () { - return this.mul(this) - }), - (en.prototype.isqr = function () { - return this.imul(this.clone()) - }), - (en.prototype.pow = function (Hn) { - var un = an(Hn) - if (un.length === 0) return new en(1) - for (var dn = this, Nn = 0; Nn < un.length && un[Nn] === 0; Nn++, dn = dn.sqr()); - if (++Nn < un.length) - for (var fn = dn.sqr(); Nn < un.length; Nn++, fn = fn.sqr()) - un[Nn] !== 0 && (dn = dn.mul(fn)) - return dn - }), - (en.prototype.iushln = function (Hn) { - b(typeof Hn == 'number' && Hn >= 0) - var un = Hn % 26, - dn = (Hn - un) / 26, - Nn = (67108863 >>> (26 - un)) << (26 - un), - fn - if (un !== 0) { - var _n = 0 - for (fn = 0; fn < this.length; fn++) { - var Ln = this.words[fn] & Nn, - zn = ((this.words[fn] | 0) - Ln) << un - ;(this.words[fn] = zn | _n), (_n = Ln >>> (26 - un)) - } - _n && ((this.words[fn] = _n), this.length++) - } - if (dn !== 0) { - for (fn = this.length - 1; fn >= 0; fn--) this.words[fn + dn] = this.words[fn] - for (fn = 0; fn < dn; fn++) this.words[fn] = 0 - this.length += dn - } - return this.strip() - }), - (en.prototype.ishln = function (Hn) { - return b(this.negative === 0), this.iushln(Hn) - }), - (en.prototype.iushrn = function (Hn, un, dn) { - b(typeof Hn == 'number' && Hn >= 0) - var Nn - un ? (Nn = (un - (un % 26)) / 26) : (Nn = 0) - var fn = Hn % 26, - _n = Math.min((Hn - fn) / 26, this.length), - Ln = 67108863 ^ ((67108863 >>> fn) << fn), - zn = dn - if (((Nn -= _n), (Nn = Math.max(0, Nn)), zn)) { - for (var Fn = 0; Fn < _n; Fn++) zn.words[Fn] = this.words[Fn] - zn.length = _n - } - if (_n !== 0) - if (this.length > _n) - for (this.length -= _n, Fn = 0; Fn < this.length; Fn++) - this.words[Fn] = this.words[Fn + _n] - else (this.words[0] = 0), (this.length = 1) - var An = 0 - for (Fn = this.length - 1; Fn >= 0 && (An !== 0 || Fn >= Nn); Fn--) { - var Qn = this.words[Fn] | 0 - ;(this.words[Fn] = (An << (26 - fn)) | (Qn >>> fn)), (An = Qn & Ln) - } - return ( - zn && An !== 0 && (zn.words[zn.length++] = An), - this.length === 0 && ((this.words[0] = 0), (this.length = 1)), - this.strip() - ) - }), - (en.prototype.ishrn = function (Hn, un, dn) { - return b(this.negative === 0), this.iushrn(Hn, un, dn) - }), - (en.prototype.shln = function (Hn) { - return this.clone().ishln(Hn) - }), - (en.prototype.ushln = function (Hn) { - return this.clone().iushln(Hn) - }), - (en.prototype.shrn = function (Hn) { - return this.clone().ishrn(Hn) - }), - (en.prototype.ushrn = function (Hn) { - return this.clone().iushrn(Hn) - }), - (en.prototype.testn = function (Hn) { - b(typeof Hn == 'number' && Hn >= 0) - var un = Hn % 26, - dn = (Hn - un) / 26, - Nn = 1 << un - if (this.length <= dn) return !1 - var fn = this.words[dn] - return !!(fn & Nn) - }), - (en.prototype.imaskn = function (Hn) { - b(typeof Hn == 'number' && Hn >= 0) - var un = Hn % 26, - dn = (Hn - un) / 26 - if ((b(this.negative === 0, 'imaskn works only with positive numbers'), this.length <= dn)) - return this - if ((un !== 0 && dn++, (this.length = Math.min(dn, this.length)), un !== 0)) { - var Nn = 67108863 ^ ((67108863 >>> un) << un) - this.words[this.length - 1] &= Nn - } - return this.strip() - }), - (en.prototype.maskn = function (Hn) { - return this.clone().imaskn(Hn) - }), - (en.prototype.iaddn = function (Hn) { - return ( - b(typeof Hn == 'number'), - b(Hn < 67108864), - Hn < 0 - ? this.isubn(-Hn) - : this.negative !== 0 - ? this.length === 1 && (this.words[0] | 0) < Hn - ? ((this.words[0] = Hn - (this.words[0] | 0)), (this.negative = 0), this) - : ((this.negative = 0), this.isubn(Hn), (this.negative = 1), this) - : this._iaddn(Hn) - ) - }), - (en.prototype._iaddn = function (Hn) { - this.words[0] += Hn - for (var un = 0; un < this.length && this.words[un] >= 67108864; un++) - (this.words[un] -= 67108864), - un === this.length - 1 ? (this.words[un + 1] = 1) : this.words[un + 1]++ - return (this.length = Math.max(this.length, un + 1)), this - }), - (en.prototype.isubn = function (Hn) { - if ((b(typeof Hn == 'number'), b(Hn < 67108864), Hn < 0)) return this.iaddn(-Hn) - if (this.negative !== 0) - return (this.negative = 0), this.iaddn(Hn), (this.negative = 1), this - if (((this.words[0] -= Hn), this.length === 1 && this.words[0] < 0)) - (this.words[0] = -this.words[0]), (this.negative = 1) - else - for (var un = 0; un < this.length && this.words[un] < 0; un++) - (this.words[un] += 67108864), (this.words[un + 1] -= 1) - return this.strip() - }), - (en.prototype.addn = function (Hn) { - return this.clone().iaddn(Hn) - }), - (en.prototype.subn = function (Hn) { - return this.clone().isubn(Hn) - }), - (en.prototype.iabs = function () { - return (this.negative = 0), this - }), - (en.prototype.abs = function () { - return this.clone().iabs() - }), - (en.prototype._ishlnsubmul = function (Hn, un, dn) { - var Nn = Hn.length + dn, - fn - this._expand(Nn) - var _n, - Ln = 0 - for (fn = 0; fn < Hn.length; fn++) { - _n = (this.words[fn + dn] | 0) + Ln - var zn = (Hn.words[fn] | 0) * un - ;(_n -= zn & 67108863), - (Ln = (_n >> 26) - ((zn / 67108864) | 0)), - (this.words[fn + dn] = _n & 67108863) - } - for (; fn < this.length - dn; fn++) - (_n = (this.words[fn + dn] | 0) + Ln), - (Ln = _n >> 26), - (this.words[fn + dn] = _n & 67108863) - if (Ln === 0) return this.strip() - for (b(Ln === -1), Ln = 0, fn = 0; fn < this.length; fn++) - (_n = -(this.words[fn] | 0) + Ln), (Ln = _n >> 26), (this.words[fn] = _n & 67108863) - return (this.negative = 1), this.strip() - }), - (en.prototype._wordDiv = function (Hn, un) { - var dn = this.length - Hn.length, - Nn = this.clone(), - fn = Hn, - _n = fn.words[fn.length - 1] | 0, - Ln = this._countBits(_n) - ;(dn = 26 - Ln), - dn !== 0 && ((fn = fn.ushln(dn)), Nn.iushln(dn), (_n = fn.words[fn.length - 1] | 0)) - var zn = Nn.length - fn.length, - Fn - if (un !== 'mod') { - ;(Fn = new en(null)), (Fn.length = zn + 1), (Fn.words = new Array(Fn.length)) - for (var An = 0; An < Fn.length; An++) Fn.words[An] = 0 - } - var Qn = Nn.clone()._ishlnsubmul(fn, 1, zn) - Qn.negative === 0 && ((Nn = Qn), Fn && (Fn.words[zn] = 1)) - for (var Rn = zn - 1; Rn >= 0; Rn--) { - var Vn = (Nn.words[fn.length + Rn] | 0) * 67108864 + (Nn.words[fn.length + Rn - 1] | 0) - for ( - Vn = Math.min((Vn / _n) | 0, 67108863), Nn._ishlnsubmul(fn, Vn, Rn); - Nn.negative !== 0; - - ) - Vn--, (Nn.negative = 0), Nn._ishlnsubmul(fn, 1, Rn), Nn.isZero() || (Nn.negative ^= 1) - Fn && (Fn.words[Rn] = Vn) - } - return ( - Fn && Fn.strip(), - Nn.strip(), - un !== 'div' && dn !== 0 && Nn.iushrn(dn), - { div: Fn || null, mod: Nn } - ) - }), - (en.prototype.divmod = function (Hn, un, dn) { - if ((b(!Hn.isZero()), this.isZero())) return { div: new en(0), mod: new en(0) } - var Nn, fn, _n - return this.negative !== 0 && Hn.negative === 0 - ? ((_n = this.neg().divmod(Hn, un)), - un !== 'mod' && (Nn = _n.div.neg()), - un !== 'div' && ((fn = _n.mod.neg()), dn && fn.negative !== 0 && fn.iadd(Hn)), - { div: Nn, mod: fn }) - : this.negative === 0 && Hn.negative !== 0 - ? ((_n = this.divmod(Hn.neg(), un)), - un !== 'mod' && (Nn = _n.div.neg()), - { div: Nn, mod: _n.mod }) - : this.negative & Hn.negative - ? ((_n = this.neg().divmod(Hn.neg(), un)), - un !== 'div' && ((fn = _n.mod.neg()), dn && fn.negative !== 0 && fn.isub(Hn)), - { div: _n.div, mod: fn }) - : Hn.length > this.length || this.cmp(Hn) < 0 - ? { div: new en(0), mod: this } - : Hn.length === 1 - ? un === 'div' - ? { div: this.divn(Hn.words[0]), mod: null } - : un === 'mod' - ? { div: null, mod: new en(this.modn(Hn.words[0])) } - : { div: this.divn(Hn.words[0]), mod: new en(this.modn(Hn.words[0])) } - : this._wordDiv(Hn, un) - }), - (en.prototype.div = function (Hn) { - return this.divmod(Hn, 'div', !1).div - }), - (en.prototype.mod = function (Hn) { - return this.divmod(Hn, 'mod', !1).mod - }), - (en.prototype.umod = function (Hn) { - return this.divmod(Hn, 'mod', !0).mod - }), - (en.prototype.divRound = function (Hn) { - var un = this.divmod(Hn) - if (un.mod.isZero()) return un.div - var dn = un.div.negative !== 0 ? un.mod.isub(Hn) : un.mod, - Nn = Hn.ushrn(1), - fn = Hn.andln(1), - _n = dn.cmp(Nn) - return _n < 0 || (fn === 1 && _n === 0) - ? un.div - : un.div.negative !== 0 - ? un.div.isubn(1) - : un.div.iaddn(1) - }), - (en.prototype.modn = function (Hn) { - b(Hn <= 67108863) - for (var un = (1 << 26) % Hn, dn = 0, Nn = this.length - 1; Nn >= 0; Nn--) - dn = (un * dn + (this.words[Nn] | 0)) % Hn - return dn - }), - (en.prototype.idivn = function (Hn) { - b(Hn <= 67108863) - for (var un = 0, dn = this.length - 1; dn >= 0; dn--) { - var Nn = (this.words[dn] | 0) + un * 67108864 - ;(this.words[dn] = (Nn / Hn) | 0), (un = Nn % Hn) - } - return this.strip() - }), - (en.prototype.divn = function (Hn) { - return this.clone().idivn(Hn) - }), - (en.prototype.egcd = function (Hn) { - b(Hn.negative === 0), b(!Hn.isZero()) - var un = this, - dn = Hn.clone() - un.negative !== 0 ? (un = un.umod(Hn)) : (un = un.clone()) - for ( - var Nn = new en(1), fn = new en(0), _n = new en(0), Ln = new en(1), zn = 0; - un.isEven() && dn.isEven(); - - ) - un.iushrn(1), dn.iushrn(1), ++zn - for (var Fn = dn.clone(), An = un.clone(); !un.isZero(); ) { - for (var Qn = 0, Rn = 1; !(un.words[0] & Rn) && Qn < 26; ++Qn, Rn <<= 1); - if (Qn > 0) - for (un.iushrn(Qn); Qn-- > 0; ) - (Nn.isOdd() || fn.isOdd()) && (Nn.iadd(Fn), fn.isub(An)), Nn.iushrn(1), fn.iushrn(1) - for (var Vn = 0, Wn = 1; !(dn.words[0] & Wn) && Vn < 26; ++Vn, Wn <<= 1); - if (Vn > 0) - for (dn.iushrn(Vn); Vn-- > 0; ) - (_n.isOdd() || Ln.isOdd()) && (_n.iadd(Fn), Ln.isub(An)), _n.iushrn(1), Ln.iushrn(1) - un.cmp(dn) >= 0 - ? (un.isub(dn), Nn.isub(_n), fn.isub(Ln)) - : (dn.isub(un), _n.isub(Nn), Ln.isub(fn)) - } - return { a: _n, b: Ln, gcd: dn.iushln(zn) } - }), - (en.prototype._invmp = function (Hn) { - b(Hn.negative === 0), b(!Hn.isZero()) - var un = this, - dn = Hn.clone() - un.negative !== 0 ? (un = un.umod(Hn)) : (un = un.clone()) - for ( - var Nn = new en(1), fn = new en(0), _n = dn.clone(); - un.cmpn(1) > 0 && dn.cmpn(1) > 0; - - ) { - for (var Ln = 0, zn = 1; !(un.words[0] & zn) && Ln < 26; ++Ln, zn <<= 1); - if (Ln > 0) for (un.iushrn(Ln); Ln-- > 0; ) Nn.isOdd() && Nn.iadd(_n), Nn.iushrn(1) - for (var Fn = 0, An = 1; !(dn.words[0] & An) && Fn < 26; ++Fn, An <<= 1); - if (Fn > 0) for (dn.iushrn(Fn); Fn-- > 0; ) fn.isOdd() && fn.iadd(_n), fn.iushrn(1) - un.cmp(dn) >= 0 ? (un.isub(dn), Nn.isub(fn)) : (dn.isub(un), fn.isub(Nn)) - } - var Qn - return un.cmpn(1) === 0 ? (Qn = Nn) : (Qn = fn), Qn.cmpn(0) < 0 && Qn.iadd(Hn), Qn - }), - (en.prototype.gcd = function (Hn) { - if (this.isZero()) return Hn.abs() - if (Hn.isZero()) return this.abs() - var un = this.clone(), - dn = Hn.clone() - ;(un.negative = 0), (dn.negative = 0) - for (var Nn = 0; un.isEven() && dn.isEven(); Nn++) un.iushrn(1), dn.iushrn(1) - do { - for (; un.isEven(); ) un.iushrn(1) - for (; dn.isEven(); ) dn.iushrn(1) - var fn = un.cmp(dn) - if (fn < 0) { - var _n = un - ;(un = dn), (dn = _n) - } else if (fn === 0 || dn.cmpn(1) === 0) break - un.isub(dn) - } while (!0) - return dn.iushln(Nn) - }), - (en.prototype.invm = function (Hn) { - return this.egcd(Hn).a.umod(Hn) - }), - (en.prototype.isEven = function () { - return (this.words[0] & 1) === 0 - }), - (en.prototype.isOdd = function () { - return (this.words[0] & 1) === 1 - }), - (en.prototype.andln = function (Hn) { - return this.words[0] & Hn - }), - (en.prototype.bincn = function (Hn) { - b(typeof Hn == 'number') - var un = Hn % 26, - dn = (Hn - un) / 26, - Nn = 1 << un - if (this.length <= dn) return this._expand(dn + 1), (this.words[dn] |= Nn), this - for (var fn = Nn, _n = dn; fn !== 0 && _n < this.length; _n++) { - var Ln = this.words[_n] | 0 - ;(Ln += fn), (fn = Ln >>> 26), (Ln &= 67108863), (this.words[_n] = Ln) - } - return fn !== 0 && ((this.words[_n] = fn), this.length++), this - }), - (en.prototype.isZero = function () { - return this.length === 1 && this.words[0] === 0 - }), - (en.prototype.cmpn = function (Hn) { - var un = Hn < 0 - if (this.negative !== 0 && !un) return -1 - if (this.negative === 0 && un) return 1 - this.strip() - var dn - if (this.length > 1) dn = 1 - else { - un && (Hn = -Hn), b(Hn <= 67108863, 'Number is too big') - var Nn = this.words[0] | 0 - dn = Nn === Hn ? 0 : Nn < Hn ? -1 : 1 - } - return this.negative !== 0 ? -dn | 0 : dn - }), - (en.prototype.cmp = function (Hn) { - if (this.negative !== 0 && Hn.negative === 0) return -1 - if (this.negative === 0 && Hn.negative !== 0) return 1 - var un = this.ucmp(Hn) - return this.negative !== 0 ? -un | 0 : un - }), - (en.prototype.ucmp = function (Hn) { - if (this.length > Hn.length) return 1 - if (this.length < Hn.length) return -1 - for (var un = 0, dn = this.length - 1; dn >= 0; dn--) { - var Nn = this.words[dn] | 0, - fn = Hn.words[dn] | 0 - if (Nn !== fn) { - Nn < fn ? (un = -1) : Nn > fn && (un = 1) - break - } - } - return un - }), - (en.prototype.gtn = function (Hn) { - return this.cmpn(Hn) === 1 - }), - (en.prototype.gt = function (Hn) { - return this.cmp(Hn) === 1 - }), - (en.prototype.gten = function (Hn) { - return this.cmpn(Hn) >= 0 - }), - (en.prototype.gte = function (Hn) { - return this.cmp(Hn) >= 0 - }), - (en.prototype.ltn = function (Hn) { - return this.cmpn(Hn) === -1 - }), - (en.prototype.lt = function (Hn) { - return this.cmp(Hn) === -1 - }), - (en.prototype.lten = function (Hn) { - return this.cmpn(Hn) <= 0 - }), - (en.prototype.lte = function (Hn) { - return this.cmp(Hn) <= 0 - }), - (en.prototype.eqn = function (Hn) { - return this.cmpn(Hn) === 0 - }), - (en.prototype.eq = function (Hn) { - return this.cmp(Hn) === 0 - }), - (en.red = function (Hn) { - return new tn(Hn) - }), - (en.prototype.toRed = function (Hn) { - return ( - b(!this.red, 'Already a number in reduction context'), - b(this.negative === 0, 'red works only with positives'), - Hn.convertTo(this)._forceRed(Hn) - ) - }), - (en.prototype.fromRed = function () { - return ( - b(this.red, 'fromRed works only with numbers in reduction context'), - this.red.convertFrom(this) - ) - }), - (en.prototype._forceRed = function (Hn) { - return (this.red = Hn), this - }), - (en.prototype.forceRed = function (Hn) { - return b(!this.red, 'Already a number in reduction context'), this._forceRed(Hn) - }), - (en.prototype.redAdd = function (Hn) { - return b(this.red, 'redAdd works only with red numbers'), this.red.add(this, Hn) - }), - (en.prototype.redIAdd = function (Hn) { - return b(this.red, 'redIAdd works only with red numbers'), this.red.iadd(this, Hn) - }), - (en.prototype.redSub = function (Hn) { - return b(this.red, 'redSub works only with red numbers'), this.red.sub(this, Hn) - }), - (en.prototype.redISub = function (Hn) { - return b(this.red, 'redISub works only with red numbers'), this.red.isub(this, Hn) - }), - (en.prototype.redShl = function (Hn) { - return b(this.red, 'redShl works only with red numbers'), this.red.shl(this, Hn) - }), - (en.prototype.redMul = function (Hn) { - return ( - b(this.red, 'redMul works only with red numbers'), - this.red._verify2(this, Hn), - this.red.mul(this, Hn) - ) - }), - (en.prototype.redIMul = function (Hn) { - return ( - b(this.red, 'redMul works only with red numbers'), - this.red._verify2(this, Hn), - this.red.imul(this, Hn) - ) - }), - (en.prototype.redSqr = function () { - return ( - b(this.red, 'redSqr works only with red numbers'), - this.red._verify1(this), - this.red.sqr(this) - ) - }), - (en.prototype.redISqr = function () { - return ( - b(this.red, 'redISqr works only with red numbers'), - this.red._verify1(this), - this.red.isqr(this) - ) - }), - (en.prototype.redSqrt = function () { - return ( - b(this.red, 'redSqrt works only with red numbers'), - this.red._verify1(this), - this.red.sqrt(this) - ) - }), - (en.prototype.redInvm = function () { - return ( - b(this.red, 'redInvm works only with red numbers'), - this.red._verify1(this), - this.red.invm(this) - ) - }), - (en.prototype.redNeg = function () { - return ( - b(this.red, 'redNeg works only with red numbers'), - this.red._verify1(this), - this.red.neg(this) - ) - }), - (en.prototype.redPow = function (Hn) { - return ( - b(this.red && !Hn.red, 'redPow(normalNum)'), - this.red._verify1(this), - this.red.pow(this, Hn) - ) - }) - var yn = { k256: null, p224: null, p192: null, p25519: null } - function Cn(Mn, Hn) { - ;(this.name = Mn), - (this.p = new en(Hn, 16)), - (this.n = this.p.bitLength()), - (this.k = new en(1).iushln(this.n).isub(this.p)), - (this.tmp = this._tmp()) - } - ;(Cn.prototype._tmp = function () { - var Hn = new en(null) - return (Hn.words = new Array(Math.ceil(this.n / 13))), Hn - }), - (Cn.prototype.ireduce = function (Hn) { - var un = Hn, - dn - do - this.split(un, this.tmp), - (un = this.imulK(un)), - (un = un.iadd(this.tmp)), - (dn = un.bitLength()) - while (dn > this.n) - var Nn = dn < this.n ? -1 : un.ucmp(this.p) - return ( - Nn === 0 - ? ((un.words[0] = 0), (un.length = 1)) - : Nn > 0 - ? un.isub(this.p) - : un.strip !== void 0 - ? un.strip() - : un._strip(), - un - ) - }), - (Cn.prototype.split = function (Hn, un) { - Hn.iushrn(this.n, 0, un) - }), - (Cn.prototype.imulK = function (Hn) { - return Hn.imul(this.k) - }) - function Tn() { - Cn.call( - this, - 'k256', - 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f', - ) - } - $(Tn, Cn), - (Tn.prototype.split = function (Hn, un) { - for (var dn = 4194303, Nn = Math.min(Hn.length, 9), fn = 0; fn < Nn; fn++) - un.words[fn] = Hn.words[fn] - if (((un.length = Nn), Hn.length <= 9)) { - ;(Hn.words[0] = 0), (Hn.length = 1) - return - } - var _n = Hn.words[9] - for (un.words[un.length++] = _n & dn, fn = 10; fn < Hn.length; fn++) { - var Ln = Hn.words[fn] | 0 - ;(Hn.words[fn - 10] = ((Ln & dn) << 4) | (_n >>> 22)), (_n = Ln) - } - ;(_n >>>= 22), - (Hn.words[fn - 10] = _n), - _n === 0 && Hn.length > 10 ? (Hn.length -= 10) : (Hn.length -= 9) - }), - (Tn.prototype.imulK = function (Hn) { - ;(Hn.words[Hn.length] = 0), (Hn.words[Hn.length + 1] = 0), (Hn.length += 2) - for (var un = 0, dn = 0; dn < Hn.length; dn++) { - var Nn = Hn.words[dn] | 0 - ;(un += Nn * 977), (Hn.words[dn] = un & 67108863), (un = Nn * 64 + ((un / 67108864) | 0)) - } - return ( - Hn.words[Hn.length - 1] === 0 && - (Hn.length--, Hn.words[Hn.length - 1] === 0 && Hn.length--), - Hn - ) - }) - function Gn() { - Cn.call(this, 'p224', 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001') - } - $(Gn, Cn) - function Sn() { - Cn.call(this, 'p192', 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff') - } - $(Sn, Cn) - function Zn() { - Cn.call(this, '25519', '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed') - } - $(Zn, Cn), - (Zn.prototype.imulK = function (Hn) { - for (var un = 0, dn = 0; dn < Hn.length; dn++) { - var Nn = (Hn.words[dn] | 0) * 19 + un, - fn = Nn & 67108863 - ;(Nn >>>= 26), (Hn.words[dn] = fn), (un = Nn) - } - return un !== 0 && (Hn.words[Hn.length++] = un), Hn - }), - (en._prime = function (Hn) { - if (yn[Hn]) return yn[Hn] - var un - if (Hn === 'k256') un = new Tn() - else if (Hn === 'p224') un = new Gn() - else if (Hn === 'p192') un = new Sn() - else if (Hn === 'p25519') un = new Zn() - else throw new Error('Unknown prime ' + Hn) - return (yn[Hn] = un), un - }) - function tn(Mn) { - if (typeof Mn == 'string') { - var Hn = en._prime(Mn) - ;(this.m = Hn.p), (this.prime = Hn) - } else b(Mn.gtn(1), 'modulus must be greater than 1'), (this.m = Mn), (this.prime = null) - } - ;(tn.prototype._verify1 = function (Hn) { - b(Hn.negative === 0, 'red works only with positives'), - b(Hn.red, 'red works only with red numbers') - }), - (tn.prototype._verify2 = function (Hn, un) { - b((Hn.negative | un.negative) === 0, 'red works only with positives'), - b(Hn.red && Hn.red === un.red, 'red works only with red numbers') - }), - (tn.prototype.imod = function (Hn) { - return this.prime ? this.prime.ireduce(Hn)._forceRed(this) : Hn.umod(this.m)._forceRed(this) - }), - (tn.prototype.neg = function (Hn) { - return Hn.isZero() ? Hn.clone() : this.m.sub(Hn)._forceRed(this) - }), - (tn.prototype.add = function (Hn, un) { - this._verify2(Hn, un) - var dn = Hn.add(un) - return dn.cmp(this.m) >= 0 && dn.isub(this.m), dn._forceRed(this) - }), - (tn.prototype.iadd = function (Hn, un) { - this._verify2(Hn, un) - var dn = Hn.iadd(un) - return dn.cmp(this.m) >= 0 && dn.isub(this.m), dn - }), - (tn.prototype.sub = function (Hn, un) { - this._verify2(Hn, un) - var dn = Hn.sub(un) - return dn.cmpn(0) < 0 && dn.iadd(this.m), dn._forceRed(this) - }), - (tn.prototype.isub = function (Hn, un) { - this._verify2(Hn, un) - var dn = Hn.isub(un) - return dn.cmpn(0) < 0 && dn.iadd(this.m), dn - }), - (tn.prototype.shl = function (Hn, un) { - return this._verify1(Hn), this.imod(Hn.ushln(un)) - }), - (tn.prototype.imul = function (Hn, un) { - return this._verify2(Hn, un), this.imod(Hn.imul(un)) - }), - (tn.prototype.mul = function (Hn, un) { - return this._verify2(Hn, un), this.imod(Hn.mul(un)) - }), - (tn.prototype.isqr = function (Hn) { - return this.imul(Hn, Hn.clone()) - }), - (tn.prototype.sqr = function (Hn) { - return this.mul(Hn, Hn) - }), - (tn.prototype.sqrt = function (Hn) { - if (Hn.isZero()) return Hn.clone() - var un = this.m.andln(3) - if ((b(un % 2 === 1), un === 3)) { - var dn = this.m.add(new en(1)).iushrn(2) - return this.pow(Hn, dn) - } - for (var Nn = this.m.subn(1), fn = 0; !Nn.isZero() && Nn.andln(1) === 0; ) - fn++, Nn.iushrn(1) - b(!Nn.isZero()) - var _n = new en(1).toRed(this), - Ln = _n.redNeg(), - zn = this.m.subn(1).iushrn(1), - Fn = this.m.bitLength() - for (Fn = new en(2 * Fn * Fn).toRed(this); this.pow(Fn, zn).cmp(Ln) !== 0; ) Fn.redIAdd(Ln) - for ( - var An = this.pow(Fn, Nn), - Qn = this.pow(Hn, Nn.addn(1).iushrn(1)), - Rn = this.pow(Hn, Nn), - Vn = fn; - Rn.cmp(_n) !== 0; - - ) { - for (var Wn = Rn, ht = 0; Wn.cmp(_n) !== 0; ht++) Wn = Wn.redSqr() - b(ht < Vn) - var Wt = this.pow(An, new en(1).iushln(Vn - ht - 1)) - ;(Qn = Qn.redMul(Wt)), (An = Wt.redSqr()), (Rn = Rn.redMul(An)), (Vn = ht) - } - return Qn - }), - (tn.prototype.invm = function (Hn) { - var un = Hn._invmp(this.m) - return un.negative !== 0 ? ((un.negative = 0), this.imod(un).redNeg()) : this.imod(un) - }), - (tn.prototype.pow = function (Hn, un) { - if (un.isZero()) return new en(1).toRed(this) - if (un.cmpn(1) === 0) return Hn.clone() - var dn = 4, - Nn = new Array(1 << dn) - ;(Nn[0] = new en(1).toRed(this)), (Nn[1] = Hn) - for (var fn = 2; fn < Nn.length; fn++) Nn[fn] = this.mul(Nn[fn - 1], Hn) - var _n = Nn[0], - Ln = 0, - zn = 0, - Fn = un.bitLength() % 26 - for (Fn === 0 && (Fn = 26), fn = un.length - 1; fn >= 0; fn--) { - for (var An = un.words[fn], Qn = Fn - 1; Qn >= 0; Qn--) { - var Rn = (An >> Qn) & 1 - if ((_n !== Nn[0] && (_n = this.sqr(_n)), Rn === 0 && Ln === 0)) { - zn = 0 - continue - } - ;(Ln <<= 1), - (Ln |= Rn), - zn++, - !(zn !== dn && (fn !== 0 || Qn !== 0)) && - ((_n = this.mul(_n, Nn[Ln])), (zn = 0), (Ln = 0)) - } - Fn = 26 - } - return _n - }), - (tn.prototype.convertTo = function (Hn) { - var un = Hn.umod(this.m) - return un === Hn ? un.clone() : un - }), - (tn.prototype.convertFrom = function (Hn) { - var un = Hn.clone() - return (un.red = null), un - }), - (en.mont = function (Hn) { - return new En(Hn) - }) - function En(Mn) { - tn.call(this, Mn), - (this.shift = this.m.bitLength()), - this.shift % 26 !== 0 && (this.shift += 26 - (this.shift % 26)), - (this.r = new en(1).iushln(this.shift)), - (this.r2 = this.imod(this.r.sqr())), - (this.rinv = this.r._invmp(this.m)), - (this.minv = this.rinv.mul(this.r).isubn(1).div(this.m)), - (this.minv = this.minv.umod(this.r)), - (this.minv = this.r.sub(this.minv)) - } - $(En, tn), - (En.prototype.convertTo = function (Hn) { - return this.imod(Hn.ushln(this.shift)) - }), - (En.prototype.convertFrom = function (Hn) { - var un = this.imod(Hn.mul(this.rinv)) - return (un.red = null), un - }), - (En.prototype.imul = function (Hn, un) { - if (Hn.isZero() || un.isZero()) return (Hn.words[0] = 0), (Hn.length = 1), Hn - var dn = Hn.imul(un), - Nn = dn.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), - fn = dn.isub(Nn).iushrn(this.shift), - _n = fn - return ( - fn.cmp(this.m) >= 0 ? (_n = fn.isub(this.m)) : fn.cmpn(0) < 0 && (_n = fn.iadd(this.m)), - _n._forceRed(this) - ) - }), - (En.prototype.mul = function (Hn, un) { - if (Hn.isZero() || un.isZero()) return new en(0)._forceRed(this) - var dn = Hn.mul(un), - Nn = dn.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m), - fn = dn.isub(Nn).iushrn(this.shift), - _n = fn - return ( - fn.cmp(this.m) >= 0 ? (_n = fn.isub(this.m)) : fn.cmpn(0) < 0 && (_n = fn.iadd(this.m)), - _n._forceRed(this) - ) - }), - (En.prototype.invm = function (Hn) { - var un = this.imod(Hn._invmp(this.m).mul(this.r2)) - return un._forceRed(this) - }) - })(e, commonjsGlobal) -})(bn) -var minimalisticAssert = assert$f -function assert$f(e, o) { - if (!e) throw new Error(o || 'Assertion failed') -} -assert$f.equal = function e(o, _, b) { - if (o != _) throw new Error(b || 'Assertion failed: ' + o + ' != ' + _) -} -var utils$w = {} -;(function (e) { - var o = e - function _(en, nn) { - if (Array.isArray(en)) return en.slice() - if (!en) return [] - var sn = [] - if (typeof en != 'string') { - for (var gn = 0; gn < en.length; gn++) sn[gn] = en[gn] | 0 - return sn - } - if (nn === 'hex') { - ;(en = en.replace(/[^a-z0-9]+/gi, '')), en.length % 2 !== 0 && (en = '0' + en) - for (var gn = 0; gn < en.length; gn += 2) sn.push(parseInt(en[gn] + en[gn + 1], 16)) - } else - for (var gn = 0; gn < en.length; gn++) { - var In = en.charCodeAt(gn), - Jn = In >> 8, - qn = In & 255 - Jn ? sn.push(Jn, qn) : sn.push(qn) - } - return sn - } - o.toArray = _ - function b(en) { - return en.length === 1 ? '0' + en : en - } - o.zero2 = b - function $(en) { - for (var nn = '', sn = 0; sn < en.length; sn++) nn += b(en[sn].toString(16)) - return nn - } - ;(o.toHex = $), - (o.encode = function (nn, sn) { - return sn === 'hex' ? $(nn) : nn - }) -})(utils$w) -;(function (e) { - var o = e, - _ = bnExports, - b = minimalisticAssert, - $ = utils$w - ;(o.assert = b), - (o.toArray = $.toArray), - (o.zero2 = $.zero2), - (o.toHex = $.toHex), - (o.encode = $.encode) - function en(Jn, qn, Kn) { - var an = new Array(Math.max(Jn.bitLength(), Kn) + 1) - an.fill(0) - for (var xn = 1 << (qn + 1), mn = Jn.clone(), Bn = 0; Bn < an.length; Bn++) { - var kn, - ln = mn.andln(xn - 1) - mn.isOdd() - ? (ln > (xn >> 1) - 1 ? (kn = (xn >> 1) - ln) : (kn = ln), mn.isubn(kn)) - : (kn = 0), - (an[Bn] = kn), - mn.iushrn(1) - } - return an - } - o.getNAF = en - function nn(Jn, qn) { - var Kn = [[], []] - ;(Jn = Jn.clone()), (qn = qn.clone()) - for (var an = 0, xn = 0, mn; Jn.cmpn(-an) > 0 || qn.cmpn(-xn) > 0; ) { - var Bn = (Jn.andln(3) + an) & 3, - kn = (qn.andln(3) + xn) & 3 - Bn === 3 && (Bn = -1), kn === 3 && (kn = -1) - var ln - Bn & 1 - ? ((mn = (Jn.andln(7) + an) & 7), - (mn === 3 || mn === 5) && kn === 2 ? (ln = -Bn) : (ln = Bn)) - : (ln = 0), - Kn[0].push(ln) - var yn - kn & 1 - ? ((mn = (qn.andln(7) + xn) & 7), - (mn === 3 || mn === 5) && Bn === 2 ? (yn = -kn) : (yn = kn)) - : (yn = 0), - Kn[1].push(yn), - 2 * an === ln + 1 && (an = 1 - an), - 2 * xn === yn + 1 && (xn = 1 - xn), - Jn.iushrn(1), - qn.iushrn(1) - } - return Kn - } - o.getJSF = nn - function sn(Jn, qn, Kn) { - var an = '_' + qn - Jn.prototype[qn] = function () { - return this[an] !== void 0 ? this[an] : (this[an] = Kn.call(this)) - } - } - o.cachedProperty = sn - function gn(Jn) { - return typeof Jn == 'string' ? o.toArray(Jn, 'hex') : Jn - } - o.parseBytes = gn - function In(Jn) { - return new _(Jn, 'hex', 'le') - } - o.intFromLE = In -})(utils$x) -var brorandExports = {}, - brorand = { - get exports() { - return brorandExports - }, - set exports(e) { - brorandExports = e - }, - }, - r$1 -brorand.exports = function e(o) { - return r$1 || (r$1 = new Rand(null)), r$1.generate(o) -} -function Rand(e) { - this.rand = e -} -brorandExports.Rand = Rand -Rand.prototype.generate = function e(o) { - return this._rand(o) -} -Rand.prototype._rand = function e(o) { - if (this.rand.getBytes) return this.rand.getBytes(o) - for (var _ = new Uint8Array(o), b = 0; b < _.length; b++) _[b] = this.rand.getByte() - return _ -} -if (typeof self == 'object') - self.crypto && self.crypto.getRandomValues - ? (Rand.prototype._rand = function (o) { - var _ = new Uint8Array(o) - return self.crypto.getRandomValues(_), _ - }) - : self.msCrypto && self.msCrypto.getRandomValues - ? (Rand.prototype._rand = function (o) { - var _ = new Uint8Array(o) - return self.msCrypto.getRandomValues(_), _ - }) - : typeof window == 'object' && - (Rand.prototype._rand = function () { - throw new Error('Not implemented yet') - }) -else - try { - var crypto = require$$0$2 - if (typeof crypto.randomBytes != 'function') throw new Error('Not supported') - Rand.prototype._rand = function (o) { - return crypto.randomBytes(o) - } - } catch {} -var curve = {}, - BN$7 = bnExports, - utils$v = utils$x, - getNAF = utils$v.getNAF, - getJSF = utils$v.getJSF, - assert$e = utils$v.assert -function BaseCurve(e, o) { - ;(this.type = e), - (this.p = new BN$7(o.p, 16)), - (this.red = o.prime ? BN$7.red(o.prime) : BN$7.mont(this.p)), - (this.zero = new BN$7(0).toRed(this.red)), - (this.one = new BN$7(1).toRed(this.red)), - (this.two = new BN$7(2).toRed(this.red)), - (this.n = o.n && new BN$7(o.n, 16)), - (this.g = o.g && this.pointFromJSON(o.g, o.gRed)), - (this._wnafT1 = new Array(4)), - (this._wnafT2 = new Array(4)), - (this._wnafT3 = new Array(4)), - (this._wnafT4 = new Array(4)), - (this._bitLength = this.n ? this.n.bitLength() : 0) - var _ = this.n && this.p.div(this.n) - !_ || _.cmpn(100) > 0 - ? (this.redN = null) - : ((this._maxwellTrick = !0), (this.redN = this.n.toRed(this.red))) -} -var base = BaseCurve -BaseCurve.prototype.point = function e() { - throw new Error('Not implemented') -} -BaseCurve.prototype.validate = function e() { - throw new Error('Not implemented') -} -BaseCurve.prototype._fixedNafMul = function e(o, _) { - assert$e(o.precomputed) - var b = o._getDoubles(), - $ = getNAF(_, 1, this._bitLength), - en = (1 << (b.step + 1)) - (b.step % 2 === 0 ? 2 : 1) - en /= 3 - var nn = [], - sn, - gn - for (sn = 0; sn < $.length; sn += b.step) { - gn = 0 - for (var In = sn + b.step - 1; In >= sn; In--) gn = (gn << 1) + $[In] - nn.push(gn) - } - for ( - var Jn = this.jpoint(null, null, null), qn = this.jpoint(null, null, null), Kn = en; - Kn > 0; - Kn-- - ) { - for (sn = 0; sn < nn.length; sn++) - (gn = nn[sn]), - gn === Kn - ? (qn = qn.mixedAdd(b.points[sn])) - : gn === -Kn && (qn = qn.mixedAdd(b.points[sn].neg())) - Jn = Jn.add(qn) - } - return Jn.toP() -} -BaseCurve.prototype._wnafMul = function e(o, _) { - var b = 4, - $ = o._getNAFPoints(b) - b = $.wnd - for ( - var en = $.points, - nn = getNAF(_, b, this._bitLength), - sn = this.jpoint(null, null, null), - gn = nn.length - 1; - gn >= 0; - gn-- - ) { - for (var In = 0; gn >= 0 && nn[gn] === 0; gn--) In++ - if ((gn >= 0 && In++, (sn = sn.dblp(In)), gn < 0)) break - var Jn = nn[gn] - assert$e(Jn !== 0), - o.type === 'affine' - ? Jn > 0 - ? (sn = sn.mixedAdd(en[(Jn - 1) >> 1])) - : (sn = sn.mixedAdd(en[(-Jn - 1) >> 1].neg())) - : Jn > 0 - ? (sn = sn.add(en[(Jn - 1) >> 1])) - : (sn = sn.add(en[(-Jn - 1) >> 1].neg())) - } - return o.type === 'affine' ? sn.toP() : sn -} -BaseCurve.prototype._wnafMulAdd = function e(o, _, b, $, en) { - var nn = this._wnafT1, - sn = this._wnafT2, - gn = this._wnafT3, - In = 0, - Jn, - qn, - Kn - for (Jn = 0; Jn < $; Jn++) { - Kn = _[Jn] - var an = Kn._getNAFPoints(o) - ;(nn[Jn] = an.wnd), (sn[Jn] = an.points) - } - for (Jn = $ - 1; Jn >= 1; Jn -= 2) { - var xn = Jn - 1, - mn = Jn - if (nn[xn] !== 1 || nn[mn] !== 1) { - ;(gn[xn] = getNAF(b[xn], nn[xn], this._bitLength)), - (gn[mn] = getNAF(b[mn], nn[mn], this._bitLength)), - (In = Math.max(gn[xn].length, In)), - (In = Math.max(gn[mn].length, In)) - continue - } - var Bn = [_[xn], null, null, _[mn]] - _[xn].y.cmp(_[mn].y) === 0 - ? ((Bn[1] = _[xn].add(_[mn])), (Bn[2] = _[xn].toJ().mixedAdd(_[mn].neg()))) - : _[xn].y.cmp(_[mn].y.redNeg()) === 0 - ? ((Bn[1] = _[xn].toJ().mixedAdd(_[mn])), (Bn[2] = _[xn].add(_[mn].neg()))) - : ((Bn[1] = _[xn].toJ().mixedAdd(_[mn])), (Bn[2] = _[xn].toJ().mixedAdd(_[mn].neg()))) - var kn = [-3, -1, -5, -7, 0, 7, 5, 1, 3], - ln = getJSF(b[xn], b[mn]) - for ( - In = Math.max(ln[0].length, In), gn[xn] = new Array(In), gn[mn] = new Array(In), qn = 0; - qn < In; - qn++ - ) { - var yn = ln[0][qn] | 0, - Cn = ln[1][qn] | 0 - ;(gn[xn][qn] = kn[(yn + 1) * 3 + (Cn + 1)]), (gn[mn][qn] = 0), (sn[xn] = Bn) - } - } - var Tn = this.jpoint(null, null, null), - Gn = this._wnafT4 - for (Jn = In; Jn >= 0; Jn--) { - for (var Sn = 0; Jn >= 0; ) { - var Zn = !0 - for (qn = 0; qn < $; qn++) (Gn[qn] = gn[qn][Jn] | 0), Gn[qn] !== 0 && (Zn = !1) - if (!Zn) break - Sn++, Jn-- - } - if ((Jn >= 0 && Sn++, (Tn = Tn.dblp(Sn)), Jn < 0)) break - for (qn = 0; qn < $; qn++) { - var tn = Gn[qn] - tn !== 0 && - (tn > 0 ? (Kn = sn[qn][(tn - 1) >> 1]) : tn < 0 && (Kn = sn[qn][(-tn - 1) >> 1].neg()), - Kn.type === 'affine' ? (Tn = Tn.mixedAdd(Kn)) : (Tn = Tn.add(Kn))) - } - } - for (Jn = 0; Jn < $; Jn++) sn[Jn] = null - return en ? Tn : Tn.toP() -} -function BasePoint(e, o) { - ;(this.curve = e), (this.type = o), (this.precomputed = null) -} -BaseCurve.BasePoint = BasePoint -BasePoint.prototype.eq = function e() { - throw new Error('Not implemented') -} -BasePoint.prototype.validate = function e() { - return this.curve.validate(this) -} -BaseCurve.prototype.decodePoint = function e(o, _) { - o = utils$v.toArray(o, _) - var b = this.p.byteLength() - if ((o[0] === 4 || o[0] === 6 || o[0] === 7) && o.length - 1 === 2 * b) { - o[0] === 6 - ? assert$e(o[o.length - 1] % 2 === 0) - : o[0] === 7 && assert$e(o[o.length - 1] % 2 === 1) - var $ = this.point(o.slice(1, 1 + b), o.slice(1 + b, 1 + 2 * b)) - return $ - } else if ((o[0] === 2 || o[0] === 3) && o.length - 1 === b) - return this.pointFromX(o.slice(1, 1 + b), o[0] === 3) - throw new Error('Unknown point format') -} -BasePoint.prototype.encodeCompressed = function e(o) { - return this.encode(o, !0) -} -BasePoint.prototype._encode = function e(o) { - var _ = this.curve.p.byteLength(), - b = this.getX().toArray('be', _) - return o ? [this.getY().isEven() ? 2 : 3].concat(b) : [4].concat(b, this.getY().toArray('be', _)) -} -BasePoint.prototype.encode = function e(o, _) { - return utils$v.encode(this._encode(_), o) -} -BasePoint.prototype.precompute = function e(o) { - if (this.precomputed) return this - var _ = { doubles: null, naf: null, beta: null } - return ( - (_.naf = this._getNAFPoints(8)), - (_.doubles = this._getDoubles(4, o)), - (_.beta = this._getBeta()), - (this.precomputed = _), - this - ) -} -BasePoint.prototype._hasDoubles = function e(o) { - if (!this.precomputed) return !1 - var _ = this.precomputed.doubles - return _ ? _.points.length >= Math.ceil((o.bitLength() + 1) / _.step) : !1 -} -BasePoint.prototype._getDoubles = function e(o, _) { - if (this.precomputed && this.precomputed.doubles) return this.precomputed.doubles - for (var b = [this], $ = this, en = 0; en < _; en += o) { - for (var nn = 0; nn < o; nn++) $ = $.dbl() - b.push($) - } - return { step: o, points: b } -} -BasePoint.prototype._getNAFPoints = function e(o) { - if (this.precomputed && this.precomputed.naf) return this.precomputed.naf - for (var _ = [this], b = (1 << o) - 1, $ = b === 1 ? null : this.dbl(), en = 1; en < b; en++) - _[en] = _[en - 1].add($) - return { wnd: o, points: _ } -} -BasePoint.prototype._getBeta = function e() { - return null -} -BasePoint.prototype.dblp = function e(o) { - for (var _ = this, b = 0; b < o; b++) _ = _.dbl() - return _ -} -var inherits_browserExports = {}, - inherits_browser = { - get exports() { - return inherits_browserExports - }, - set exports(e) { - inherits_browserExports = e - }, - } -typeof Object.create == 'function' - ? (inherits_browser.exports = function (o, _) { - _ && - ((o.super_ = _), - (o.prototype = Object.create(_.prototype, { - constructor: { value: o, enumerable: !1, writable: !0, configurable: !0 }, - }))) - }) - : (inherits_browser.exports = function (o, _) { - if (_) { - o.super_ = _ - var b = function () {} - ;(b.prototype = _.prototype), (o.prototype = new b()), (o.prototype.constructor = o) - } - }) -var utils$u = utils$x, - BN$6 = bnExports, - inherits$3 = inherits_browserExports, - Base$2 = base, - assert$d = utils$u.assert -function ShortCurve(e) { - Base$2.call(this, 'short', e), - (this.a = new BN$6(e.a, 16).toRed(this.red)), - (this.b = new BN$6(e.b, 16).toRed(this.red)), - (this.tinv = this.two.redInvm()), - (this.zeroA = this.a.fromRed().cmpn(0) === 0), - (this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0), - (this.endo = this._getEndomorphism(e)), - (this._endoWnafT1 = new Array(4)), - (this._endoWnafT2 = new Array(4)) -} -inherits$3(ShortCurve, Base$2) -var short = ShortCurve -ShortCurve.prototype._getEndomorphism = function e(o) { - if (!(!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)) { - var _, b - if (o.beta) _ = new BN$6(o.beta, 16).toRed(this.red) - else { - var $ = this._getEndoRoots(this.p) - ;(_ = $[0].cmp($[1]) < 0 ? $[0] : $[1]), (_ = _.toRed(this.red)) - } - if (o.lambda) b = new BN$6(o.lambda, 16) - else { - var en = this._getEndoRoots(this.n) - this.g.mul(en[0]).x.cmp(this.g.x.redMul(_)) === 0 - ? (b = en[0]) - : ((b = en[1]), assert$d(this.g.mul(b).x.cmp(this.g.x.redMul(_)) === 0)) - } - var nn - return ( - o.basis - ? (nn = o.basis.map(function (sn) { - return { a: new BN$6(sn.a, 16), b: new BN$6(sn.b, 16) } - })) - : (nn = this._getEndoBasis(b)), - { beta: _, lambda: b, basis: nn } - ) - } -} -ShortCurve.prototype._getEndoRoots = function e(o) { - var _ = o === this.p ? this.red : BN$6.mont(o), - b = new BN$6(2).toRed(_).redInvm(), - $ = b.redNeg(), - en = new BN$6(3).toRed(_).redNeg().redSqrt().redMul(b), - nn = $.redAdd(en).fromRed(), - sn = $.redSub(en).fromRed() - return [nn, sn] -} -ShortCurve.prototype._getEndoBasis = function e(o) { - for ( - var _ = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), - b = o, - $ = this.n.clone(), - en = new BN$6(1), - nn = new BN$6(0), - sn = new BN$6(0), - gn = new BN$6(1), - In, - Jn, - qn, - Kn, - an, - xn, - mn, - Bn = 0, - kn, - ln; - b.cmpn(0) !== 0; - - ) { - var yn = $.div(b) - ;(kn = $.sub(yn.mul(b))), (ln = sn.sub(yn.mul(en))) - var Cn = gn.sub(yn.mul(nn)) - if (!qn && kn.cmp(_) < 0) (In = mn.neg()), (Jn = en), (qn = kn.neg()), (Kn = ln) - else if (qn && ++Bn === 2) break - ;(mn = kn), ($ = b), (b = kn), (sn = en), (en = ln), (gn = nn), (nn = Cn) - } - ;(an = kn.neg()), (xn = ln) - var Tn = qn.sqr().add(Kn.sqr()), - Gn = an.sqr().add(xn.sqr()) - return ( - Gn.cmp(Tn) >= 0 && ((an = In), (xn = Jn)), - qn.negative && ((qn = qn.neg()), (Kn = Kn.neg())), - an.negative && ((an = an.neg()), (xn = xn.neg())), - [ - { a: qn, b: Kn }, - { a: an, b: xn }, - ] - ) -} -ShortCurve.prototype._endoSplit = function e(o) { - var _ = this.endo.basis, - b = _[0], - $ = _[1], - en = $.b.mul(o).divRound(this.n), - nn = b.b.neg().mul(o).divRound(this.n), - sn = en.mul(b.a), - gn = nn.mul($.a), - In = en.mul(b.b), - Jn = nn.mul($.b), - qn = o.sub(sn).sub(gn), - Kn = In.add(Jn).neg() - return { k1: qn, k2: Kn } -} -ShortCurve.prototype.pointFromX = function e(o, _) { - ;(o = new BN$6(o, 16)), o.red || (o = o.toRed(this.red)) - var b = o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b), - $ = b.redSqrt() - if ($.redSqr().redSub(b).cmp(this.zero) !== 0) throw new Error('invalid point') - var en = $.fromRed().isOdd() - return ((_ && !en) || (!_ && en)) && ($ = $.redNeg()), this.point(o, $) -} -ShortCurve.prototype.validate = function e(o) { - if (o.inf) return !0 - var _ = o.x, - b = o.y, - $ = this.a.redMul(_), - en = _.redSqr().redMul(_).redIAdd($).redIAdd(this.b) - return b.redSqr().redISub(en).cmpn(0) === 0 -} -ShortCurve.prototype._endoWnafMulAdd = function e(o, _, b) { - for (var $ = this._endoWnafT1, en = this._endoWnafT2, nn = 0; nn < o.length; nn++) { - var sn = this._endoSplit(_[nn]), - gn = o[nn], - In = gn._getBeta() - sn.k1.negative && (sn.k1.ineg(), (gn = gn.neg(!0))), - sn.k2.negative && (sn.k2.ineg(), (In = In.neg(!0))), - ($[nn * 2] = gn), - ($[nn * 2 + 1] = In), - (en[nn * 2] = sn.k1), - (en[nn * 2 + 1] = sn.k2) - } - for (var Jn = this._wnafMulAdd(1, $, en, nn * 2, b), qn = 0; qn < nn * 2; qn++) - ($[qn] = null), (en[qn] = null) - return Jn -} -function Point$2(e, o, _, b) { - Base$2.BasePoint.call(this, e, 'affine'), - o === null && _ === null - ? ((this.x = null), (this.y = null), (this.inf = !0)) - : ((this.x = new BN$6(o, 16)), - (this.y = new BN$6(_, 16)), - b && (this.x.forceRed(this.curve.red), this.y.forceRed(this.curve.red)), - this.x.red || (this.x = this.x.toRed(this.curve.red)), - this.y.red || (this.y = this.y.toRed(this.curve.red)), - (this.inf = !1)) -} -inherits$3(Point$2, Base$2.BasePoint) -ShortCurve.prototype.point = function e(o, _, b) { - return new Point$2(this, o, _, b) -} -ShortCurve.prototype.pointFromJSON = function e(o, _) { - return Point$2.fromJSON(this, o, _) -} -Point$2.prototype._getBeta = function e() { - if (this.curve.endo) { - var o = this.precomputed - if (o && o.beta) return o.beta - var _ = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y) - if (o) { - var b = this.curve, - $ = function (en) { - return b.point(en.x.redMul(b.endo.beta), en.y) - } - ;(o.beta = _), - (_.precomputed = { - beta: null, - naf: o.naf && { wnd: o.naf.wnd, points: o.naf.points.map($) }, - doubles: o.doubles && { step: o.doubles.step, points: o.doubles.points.map($) }, - }) - } - return _ - } -} -Point$2.prototype.toJSON = function e() { - return this.precomputed - ? [ - this.x, - this.y, - this.precomputed && { - doubles: this.precomputed.doubles && { - step: this.precomputed.doubles.step, - points: this.precomputed.doubles.points.slice(1), - }, - naf: this.precomputed.naf && { - wnd: this.precomputed.naf.wnd, - points: this.precomputed.naf.points.slice(1), - }, - }, - ] - : [this.x, this.y] -} -Point$2.fromJSON = function e(o, _, b) { - typeof _ == 'string' && (_ = JSON.parse(_)) - var $ = o.point(_[0], _[1], b) - if (!_[2]) return $ - function en(sn) { - return o.point(sn[0], sn[1], b) - } - var nn = _[2] - return ( - ($.precomputed = { - beta: null, - doubles: nn.doubles && { - step: nn.doubles.step, - points: [$].concat(nn.doubles.points.map(en)), - }, - naf: nn.naf && { wnd: nn.naf.wnd, points: [$].concat(nn.naf.points.map(en)) }, - }), - $ - ) -} -Point$2.prototype.inspect = function e() { - return this.isInfinity() - ? '' - : '' -} -Point$2.prototype.isInfinity = function e() { - return this.inf -} -Point$2.prototype.add = function e(o) { - if (this.inf) return o - if (o.inf) return this - if (this.eq(o)) return this.dbl() - if (this.neg().eq(o)) return this.curve.point(null, null) - if (this.x.cmp(o.x) === 0) return this.curve.point(null, null) - var _ = this.y.redSub(o.y) - _.cmpn(0) !== 0 && (_ = _.redMul(this.x.redSub(o.x).redInvm())) - var b = _.redSqr().redISub(this.x).redISub(o.x), - $ = _.redMul(this.x.redSub(b)).redISub(this.y) - return this.curve.point(b, $) -} -Point$2.prototype.dbl = function e() { - if (this.inf) return this - var o = this.y.redAdd(this.y) - if (o.cmpn(0) === 0) return this.curve.point(null, null) - var _ = this.curve.a, - b = this.x.redSqr(), - $ = o.redInvm(), - en = b.redAdd(b).redIAdd(b).redIAdd(_).redMul($), - nn = en.redSqr().redISub(this.x.redAdd(this.x)), - sn = en.redMul(this.x.redSub(nn)).redISub(this.y) - return this.curve.point(nn, sn) -} -Point$2.prototype.getX = function e() { - return this.x.fromRed() -} -Point$2.prototype.getY = function e() { - return this.y.fromRed() -} -Point$2.prototype.mul = function e(o) { - return ( - (o = new BN$6(o, 16)), - this.isInfinity() - ? this - : this._hasDoubles(o) - ? this.curve._fixedNafMul(this, o) - : this.curve.endo - ? this.curve._endoWnafMulAdd([this], [o]) - : this.curve._wnafMul(this, o) - ) -} -Point$2.prototype.mulAdd = function e(o, _, b) { - var $ = [this, _], - en = [o, b] - return this.curve.endo ? this.curve._endoWnafMulAdd($, en) : this.curve._wnafMulAdd(1, $, en, 2) -} -Point$2.prototype.jmulAdd = function e(o, _, b) { - var $ = [this, _], - en = [o, b] - return this.curve.endo - ? this.curve._endoWnafMulAdd($, en, !0) - : this.curve._wnafMulAdd(1, $, en, 2, !0) -} -Point$2.prototype.eq = function e(o) { - return ( - this === o || - (this.inf === o.inf && (this.inf || (this.x.cmp(o.x) === 0 && this.y.cmp(o.y) === 0))) - ) -} -Point$2.prototype.neg = function e(o) { - if (this.inf) return this - var _ = this.curve.point(this.x, this.y.redNeg()) - if (o && this.precomputed) { - var b = this.precomputed, - $ = function (en) { - return en.neg() - } - _.precomputed = { - naf: b.naf && { wnd: b.naf.wnd, points: b.naf.points.map($) }, - doubles: b.doubles && { step: b.doubles.step, points: b.doubles.points.map($) }, - } - } - return _ -} -Point$2.prototype.toJ = function e() { - if (this.inf) return this.curve.jpoint(null, null, null) - var o = this.curve.jpoint(this.x, this.y, this.curve.one) - return o -} -function JPoint(e, o, _, b) { - Base$2.BasePoint.call(this, e, 'jacobian'), - o === null && _ === null && b === null - ? ((this.x = this.curve.one), (this.y = this.curve.one), (this.z = new BN$6(0))) - : ((this.x = new BN$6(o, 16)), (this.y = new BN$6(_, 16)), (this.z = new BN$6(b, 16))), - this.x.red || (this.x = this.x.toRed(this.curve.red)), - this.y.red || (this.y = this.y.toRed(this.curve.red)), - this.z.red || (this.z = this.z.toRed(this.curve.red)), - (this.zOne = this.z === this.curve.one) -} -inherits$3(JPoint, Base$2.BasePoint) -ShortCurve.prototype.jpoint = function e(o, _, b) { - return new JPoint(this, o, _, b) -} -JPoint.prototype.toP = function e() { - if (this.isInfinity()) return this.curve.point(null, null) - var o = this.z.redInvm(), - _ = o.redSqr(), - b = this.x.redMul(_), - $ = this.y.redMul(_).redMul(o) - return this.curve.point(b, $) -} -JPoint.prototype.neg = function e() { - return this.curve.jpoint(this.x, this.y.redNeg(), this.z) -} -JPoint.prototype.add = function e(o) { - if (this.isInfinity()) return o - if (o.isInfinity()) return this - var _ = o.z.redSqr(), - b = this.z.redSqr(), - $ = this.x.redMul(_), - en = o.x.redMul(b), - nn = this.y.redMul(_.redMul(o.z)), - sn = o.y.redMul(b.redMul(this.z)), - gn = $.redSub(en), - In = nn.redSub(sn) - if (gn.cmpn(0) === 0) return In.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl() - var Jn = gn.redSqr(), - qn = Jn.redMul(gn), - Kn = $.redMul(Jn), - an = In.redSqr().redIAdd(qn).redISub(Kn).redISub(Kn), - xn = In.redMul(Kn.redISub(an)).redISub(nn.redMul(qn)), - mn = this.z.redMul(o.z).redMul(gn) - return this.curve.jpoint(an, xn, mn) -} -JPoint.prototype.mixedAdd = function e(o) { - if (this.isInfinity()) return o.toJ() - if (o.isInfinity()) return this - var _ = this.z.redSqr(), - b = this.x, - $ = o.x.redMul(_), - en = this.y, - nn = o.y.redMul(_).redMul(this.z), - sn = b.redSub($), - gn = en.redSub(nn) - if (sn.cmpn(0) === 0) return gn.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl() - var In = sn.redSqr(), - Jn = In.redMul(sn), - qn = b.redMul(In), - Kn = gn.redSqr().redIAdd(Jn).redISub(qn).redISub(qn), - an = gn.redMul(qn.redISub(Kn)).redISub(en.redMul(Jn)), - xn = this.z.redMul(sn) - return this.curve.jpoint(Kn, an, xn) -} -JPoint.prototype.dblp = function e(o) { - if (o === 0) return this - if (this.isInfinity()) return this - if (!o) return this.dbl() - var _ - if (this.curve.zeroA || this.curve.threeA) { - var b = this - for (_ = 0; _ < o; _++) b = b.dbl() - return b - } - var $ = this.curve.a, - en = this.curve.tinv, - nn = this.x, - sn = this.y, - gn = this.z, - In = gn.redSqr().redSqr(), - Jn = sn.redAdd(sn) - for (_ = 0; _ < o; _++) { - var qn = nn.redSqr(), - Kn = Jn.redSqr(), - an = Kn.redSqr(), - xn = qn.redAdd(qn).redIAdd(qn).redIAdd($.redMul(In)), - mn = nn.redMul(Kn), - Bn = xn.redSqr().redISub(mn.redAdd(mn)), - kn = mn.redISub(Bn), - ln = xn.redMul(kn) - ln = ln.redIAdd(ln).redISub(an) - var yn = Jn.redMul(gn) - _ + 1 < o && (In = In.redMul(an)), (nn = Bn), (gn = yn), (Jn = ln) - } - return this.curve.jpoint(nn, Jn.redMul(en), gn) -} -JPoint.prototype.dbl = function e() { - return this.isInfinity() - ? this - : this.curve.zeroA - ? this._zeroDbl() - : this.curve.threeA - ? this._threeDbl() - : this._dbl() -} -JPoint.prototype._zeroDbl = function e() { - var o, _, b - if (this.zOne) { - var $ = this.x.redSqr(), - en = this.y.redSqr(), - nn = en.redSqr(), - sn = this.x.redAdd(en).redSqr().redISub($).redISub(nn) - sn = sn.redIAdd(sn) - var gn = $.redAdd($).redIAdd($), - In = gn.redSqr().redISub(sn).redISub(sn), - Jn = nn.redIAdd(nn) - ;(Jn = Jn.redIAdd(Jn)), - (Jn = Jn.redIAdd(Jn)), - (o = In), - (_ = gn.redMul(sn.redISub(In)).redISub(Jn)), - (b = this.y.redAdd(this.y)) - } else { - var qn = this.x.redSqr(), - Kn = this.y.redSqr(), - an = Kn.redSqr(), - xn = this.x.redAdd(Kn).redSqr().redISub(qn).redISub(an) - xn = xn.redIAdd(xn) - var mn = qn.redAdd(qn).redIAdd(qn), - Bn = mn.redSqr(), - kn = an.redIAdd(an) - ;(kn = kn.redIAdd(kn)), - (kn = kn.redIAdd(kn)), - (o = Bn.redISub(xn).redISub(xn)), - (_ = mn.redMul(xn.redISub(o)).redISub(kn)), - (b = this.y.redMul(this.z)), - (b = b.redIAdd(b)) - } - return this.curve.jpoint(o, _, b) -} -JPoint.prototype._threeDbl = function e() { - var o, _, b - if (this.zOne) { - var $ = this.x.redSqr(), - en = this.y.redSqr(), - nn = en.redSqr(), - sn = this.x.redAdd(en).redSqr().redISub($).redISub(nn) - sn = sn.redIAdd(sn) - var gn = $.redAdd($).redIAdd($).redIAdd(this.curve.a), - In = gn.redSqr().redISub(sn).redISub(sn) - o = In - var Jn = nn.redIAdd(nn) - ;(Jn = Jn.redIAdd(Jn)), - (Jn = Jn.redIAdd(Jn)), - (_ = gn.redMul(sn.redISub(In)).redISub(Jn)), - (b = this.y.redAdd(this.y)) - } else { - var qn = this.z.redSqr(), - Kn = this.y.redSqr(), - an = this.x.redMul(Kn), - xn = this.x.redSub(qn).redMul(this.x.redAdd(qn)) - xn = xn.redAdd(xn).redIAdd(xn) - var mn = an.redIAdd(an) - mn = mn.redIAdd(mn) - var Bn = mn.redAdd(mn) - ;(o = xn.redSqr().redISub(Bn)), (b = this.y.redAdd(this.z).redSqr().redISub(Kn).redISub(qn)) - var kn = Kn.redSqr() - ;(kn = kn.redIAdd(kn)), - (kn = kn.redIAdd(kn)), - (kn = kn.redIAdd(kn)), - (_ = xn.redMul(mn.redISub(o)).redISub(kn)) - } - return this.curve.jpoint(o, _, b) -} -JPoint.prototype._dbl = function e() { - var o = this.curve.a, - _ = this.x, - b = this.y, - $ = this.z, - en = $.redSqr().redSqr(), - nn = _.redSqr(), - sn = b.redSqr(), - gn = nn.redAdd(nn).redIAdd(nn).redIAdd(o.redMul(en)), - In = _.redAdd(_) - In = In.redIAdd(In) - var Jn = In.redMul(sn), - qn = gn.redSqr().redISub(Jn.redAdd(Jn)), - Kn = Jn.redISub(qn), - an = sn.redSqr() - ;(an = an.redIAdd(an)), (an = an.redIAdd(an)), (an = an.redIAdd(an)) - var xn = gn.redMul(Kn).redISub(an), - mn = b.redAdd(b).redMul($) - return this.curve.jpoint(qn, xn, mn) -} -JPoint.prototype.trpl = function e() { - if (!this.curve.zeroA) return this.dbl().add(this) - var o = this.x.redSqr(), - _ = this.y.redSqr(), - b = this.z.redSqr(), - $ = _.redSqr(), - en = o.redAdd(o).redIAdd(o), - nn = en.redSqr(), - sn = this.x.redAdd(_).redSqr().redISub(o).redISub($) - ;(sn = sn.redIAdd(sn)), (sn = sn.redAdd(sn).redIAdd(sn)), (sn = sn.redISub(nn)) - var gn = sn.redSqr(), - In = $.redIAdd($) - ;(In = In.redIAdd(In)), (In = In.redIAdd(In)), (In = In.redIAdd(In)) - var Jn = en.redIAdd(sn).redSqr().redISub(nn).redISub(gn).redISub(In), - qn = _.redMul(Jn) - ;(qn = qn.redIAdd(qn)), (qn = qn.redIAdd(qn)) - var Kn = this.x.redMul(gn).redISub(qn) - ;(Kn = Kn.redIAdd(Kn)), (Kn = Kn.redIAdd(Kn)) - var an = this.y.redMul(Jn.redMul(In.redISub(Jn)).redISub(sn.redMul(gn))) - ;(an = an.redIAdd(an)), (an = an.redIAdd(an)), (an = an.redIAdd(an)) - var xn = this.z.redAdd(sn).redSqr().redISub(b).redISub(gn) - return this.curve.jpoint(Kn, an, xn) -} -JPoint.prototype.mul = function e(o, _) { - return (o = new BN$6(o, _)), this.curve._wnafMul(this, o) -} -JPoint.prototype.eq = function e(o) { - if (o.type === 'affine') return this.eq(o.toJ()) - if (this === o) return !0 - var _ = this.z.redSqr(), - b = o.z.redSqr() - if (this.x.redMul(b).redISub(o.x.redMul(_)).cmpn(0) !== 0) return !1 - var $ = _.redMul(this.z), - en = b.redMul(o.z) - return this.y.redMul(en).redISub(o.y.redMul($)).cmpn(0) === 0 -} -JPoint.prototype.eqXToP = function e(o) { - var _ = this.z.redSqr(), - b = o.toRed(this.curve.red).redMul(_) - if (this.x.cmp(b) === 0) return !0 - for (var $ = o.clone(), en = this.curve.redN.redMul(_); ; ) { - if (($.iadd(this.curve.n), $.cmp(this.curve.p) >= 0)) return !1 - if ((b.redIAdd(en), this.x.cmp(b) === 0)) return !0 - } -} -JPoint.prototype.inspect = function e() { - return this.isInfinity() - ? '' - : '' -} -JPoint.prototype.isInfinity = function e() { - return this.z.cmpn(0) === 0 -} -var BN$5 = bnExports, - inherits$2 = inherits_browserExports, - Base$1 = base, - utils$t = utils$x -function MontCurve(e) { - Base$1.call(this, 'mont', e), - (this.a = new BN$5(e.a, 16).toRed(this.red)), - (this.b = new BN$5(e.b, 16).toRed(this.red)), - (this.i4 = new BN$5(4).toRed(this.red).redInvm()), - (this.two = new BN$5(2).toRed(this.red)), - (this.a24 = this.i4.redMul(this.a.redAdd(this.two))) -} -inherits$2(MontCurve, Base$1) -var mont = MontCurve -MontCurve.prototype.validate = function e(o) { - var _ = o.normalize().x, - b = _.redSqr(), - $ = b.redMul(_).redAdd(b.redMul(this.a)).redAdd(_), - en = $.redSqrt() - return en.redSqr().cmp($) === 0 -} -function Point$1(e, o, _) { - Base$1.BasePoint.call(this, e, 'projective'), - o === null && _ === null - ? ((this.x = this.curve.one), (this.z = this.curve.zero)) - : ((this.x = new BN$5(o, 16)), - (this.z = new BN$5(_, 16)), - this.x.red || (this.x = this.x.toRed(this.curve.red)), - this.z.red || (this.z = this.z.toRed(this.curve.red))) -} -inherits$2(Point$1, Base$1.BasePoint) -MontCurve.prototype.decodePoint = function e(o, _) { - return this.point(utils$t.toArray(o, _), 1) -} -MontCurve.prototype.point = function e(o, _) { - return new Point$1(this, o, _) -} -MontCurve.prototype.pointFromJSON = function e(o) { - return Point$1.fromJSON(this, o) -} -Point$1.prototype.precompute = function e() {} -Point$1.prototype._encode = function e() { - return this.getX().toArray('be', this.curve.p.byteLength()) -} -Point$1.fromJSON = function e(o, _) { - return new Point$1(o, _[0], _[1] || o.one) -} -Point$1.prototype.inspect = function e() { - return this.isInfinity() - ? '' - : '' -} -Point$1.prototype.isInfinity = function e() { - return this.z.cmpn(0) === 0 -} -Point$1.prototype.dbl = function e() { - var o = this.x.redAdd(this.z), - _ = o.redSqr(), - b = this.x.redSub(this.z), - $ = b.redSqr(), - en = _.redSub($), - nn = _.redMul($), - sn = en.redMul($.redAdd(this.curve.a24.redMul(en))) - return this.curve.point(nn, sn) -} -Point$1.prototype.add = function e() { - throw new Error('Not supported on Montgomery curve') -} -Point$1.prototype.diffAdd = function e(o, _) { - var b = this.x.redAdd(this.z), - $ = this.x.redSub(this.z), - en = o.x.redAdd(o.z), - nn = o.x.redSub(o.z), - sn = nn.redMul(b), - gn = en.redMul($), - In = _.z.redMul(sn.redAdd(gn).redSqr()), - Jn = _.x.redMul(sn.redISub(gn).redSqr()) - return this.curve.point(In, Jn) -} -Point$1.prototype.mul = function e(o) { - for ( - var _ = o.clone(), b = this, $ = this.curve.point(null, null), en = this, nn = []; - _.cmpn(0) !== 0; - _.iushrn(1) - ) - nn.push(_.andln(1)) - for (var sn = nn.length - 1; sn >= 0; sn--) - nn[sn] === 0 ? ((b = b.diffAdd($, en)), ($ = $.dbl())) : (($ = b.diffAdd($, en)), (b = b.dbl())) - return $ -} -Point$1.prototype.mulAdd = function e() { - throw new Error('Not supported on Montgomery curve') -} -Point$1.prototype.jumlAdd = function e() { - throw new Error('Not supported on Montgomery curve') -} -Point$1.prototype.eq = function e(o) { - return this.getX().cmp(o.getX()) === 0 -} -Point$1.prototype.normalize = function e() { - return (this.x = this.x.redMul(this.z.redInvm())), (this.z = this.curve.one), this -} -Point$1.prototype.getX = function e() { - return this.normalize(), this.x.fromRed() -} -var utils$s = utils$x, - BN$4 = bnExports, - inherits$1 = inherits_browserExports, - Base = base, - assert$c = utils$s.assert -function EdwardsCurve(e) { - ;(this.twisted = (e.a | 0) !== 1), - (this.mOneA = this.twisted && (e.a | 0) === -1), - (this.extended = this.mOneA), - Base.call(this, 'edwards', e), - (this.a = new BN$4(e.a, 16).umod(this.red.m)), - (this.a = this.a.toRed(this.red)), - (this.c = new BN$4(e.c, 16).toRed(this.red)), - (this.c2 = this.c.redSqr()), - (this.d = new BN$4(e.d, 16).toRed(this.red)), - (this.dd = this.d.redAdd(this.d)), - assert$c(!this.twisted || this.c.fromRed().cmpn(1) === 0), - (this.oneC = (e.c | 0) === 1) -} -inherits$1(EdwardsCurve, Base) -var edwards = EdwardsCurve -EdwardsCurve.prototype._mulA = function e(o) { - return this.mOneA ? o.redNeg() : this.a.redMul(o) -} -EdwardsCurve.prototype._mulC = function e(o) { - return this.oneC ? o : this.c.redMul(o) -} -EdwardsCurve.prototype.jpoint = function e(o, _, b, $) { - return this.point(o, _, b, $) -} -EdwardsCurve.prototype.pointFromX = function e(o, _) { - ;(o = new BN$4(o, 16)), o.red || (o = o.toRed(this.red)) - var b = o.redSqr(), - $ = this.c2.redSub(this.a.redMul(b)), - en = this.one.redSub(this.c2.redMul(this.d).redMul(b)), - nn = $.redMul(en.redInvm()), - sn = nn.redSqrt() - if (sn.redSqr().redSub(nn).cmp(this.zero) !== 0) throw new Error('invalid point') - var gn = sn.fromRed().isOdd() - return ((_ && !gn) || (!_ && gn)) && (sn = sn.redNeg()), this.point(o, sn) -} -EdwardsCurve.prototype.pointFromY = function e(o, _) { - ;(o = new BN$4(o, 16)), o.red || (o = o.toRed(this.red)) - var b = o.redSqr(), - $ = b.redSub(this.c2), - en = b.redMul(this.d).redMul(this.c2).redSub(this.a), - nn = $.redMul(en.redInvm()) - if (nn.cmp(this.zero) === 0) { - if (_) throw new Error('invalid point') - return this.point(this.zero, o) - } - var sn = nn.redSqrt() - if (sn.redSqr().redSub(nn).cmp(this.zero) !== 0) throw new Error('invalid point') - return sn.fromRed().isOdd() !== _ && (sn = sn.redNeg()), this.point(sn, o) -} -EdwardsCurve.prototype.validate = function e(o) { - if (o.isInfinity()) return !0 - o.normalize() - var _ = o.x.redSqr(), - b = o.y.redSqr(), - $ = _.redMul(this.a).redAdd(b), - en = this.c2.redMul(this.one.redAdd(this.d.redMul(_).redMul(b))) - return $.cmp(en) === 0 -} -function Point(e, o, _, b, $) { - Base.BasePoint.call(this, e, 'projective'), - o === null && _ === null && b === null - ? ((this.x = this.curve.zero), - (this.y = this.curve.one), - (this.z = this.curve.one), - (this.t = this.curve.zero), - (this.zOne = !0)) - : ((this.x = new BN$4(o, 16)), - (this.y = new BN$4(_, 16)), - (this.z = b ? new BN$4(b, 16) : this.curve.one), - (this.t = $ && new BN$4($, 16)), - this.x.red || (this.x = this.x.toRed(this.curve.red)), - this.y.red || (this.y = this.y.toRed(this.curve.red)), - this.z.red || (this.z = this.z.toRed(this.curve.red)), - this.t && !this.t.red && (this.t = this.t.toRed(this.curve.red)), - (this.zOne = this.z === this.curve.one), - this.curve.extended && - !this.t && - ((this.t = this.x.redMul(this.y)), - this.zOne || (this.t = this.t.redMul(this.z.redInvm())))) -} -inherits$1(Point, Base.BasePoint) -EdwardsCurve.prototype.pointFromJSON = function e(o) { - return Point.fromJSON(this, o) -} -EdwardsCurve.prototype.point = function e(o, _, b, $) { - return new Point(this, o, _, b, $) -} -Point.fromJSON = function e(o, _) { - return new Point(o, _[0], _[1], _[2]) -} -Point.prototype.inspect = function e() { - return this.isInfinity() - ? '' - : '' -} -Point.prototype.isInfinity = function e() { - return ( - this.x.cmpn(0) === 0 && - (this.y.cmp(this.z) === 0 || (this.zOne && this.y.cmp(this.curve.c) === 0)) - ) -} -Point.prototype._extDbl = function e() { - var o = this.x.redSqr(), - _ = this.y.redSqr(), - b = this.z.redSqr() - b = b.redIAdd(b) - var $ = this.curve._mulA(o), - en = this.x.redAdd(this.y).redSqr().redISub(o).redISub(_), - nn = $.redAdd(_), - sn = nn.redSub(b), - gn = $.redSub(_), - In = en.redMul(sn), - Jn = nn.redMul(gn), - qn = en.redMul(gn), - Kn = sn.redMul(nn) - return this.curve.point(In, Jn, Kn, qn) -} -Point.prototype._projDbl = function e() { - var o = this.x.redAdd(this.y).redSqr(), - _ = this.x.redSqr(), - b = this.y.redSqr(), - $, - en, - nn, - sn, - gn, - In - if (this.curve.twisted) { - sn = this.curve._mulA(_) - var Jn = sn.redAdd(b) - this.zOne - ? (($ = o.redSub(_).redSub(b).redMul(Jn.redSub(this.curve.two))), - (en = Jn.redMul(sn.redSub(b))), - (nn = Jn.redSqr().redSub(Jn).redSub(Jn))) - : ((gn = this.z.redSqr()), - (In = Jn.redSub(gn).redISub(gn)), - ($ = o.redSub(_).redISub(b).redMul(In)), - (en = Jn.redMul(sn.redSub(b))), - (nn = Jn.redMul(In))) - } else - (sn = _.redAdd(b)), - (gn = this.curve._mulC(this.z).redSqr()), - (In = sn.redSub(gn).redSub(gn)), - ($ = this.curve._mulC(o.redISub(sn)).redMul(In)), - (en = this.curve._mulC(sn).redMul(_.redISub(b))), - (nn = sn.redMul(In)) - return this.curve.point($, en, nn) -} -Point.prototype.dbl = function e() { - return this.isInfinity() ? this : this.curve.extended ? this._extDbl() : this._projDbl() -} -Point.prototype._extAdd = function e(o) { - var _ = this.y.redSub(this.x).redMul(o.y.redSub(o.x)), - b = this.y.redAdd(this.x).redMul(o.y.redAdd(o.x)), - $ = this.t.redMul(this.curve.dd).redMul(o.t), - en = this.z.redMul(o.z.redAdd(o.z)), - nn = b.redSub(_), - sn = en.redSub($), - gn = en.redAdd($), - In = b.redAdd(_), - Jn = nn.redMul(sn), - qn = gn.redMul(In), - Kn = nn.redMul(In), - an = sn.redMul(gn) - return this.curve.point(Jn, qn, an, Kn) -} -Point.prototype._projAdd = function e(o) { - var _ = this.z.redMul(o.z), - b = _.redSqr(), - $ = this.x.redMul(o.x), - en = this.y.redMul(o.y), - nn = this.curve.d.redMul($).redMul(en), - sn = b.redSub(nn), - gn = b.redAdd(nn), - In = this.x.redAdd(this.y).redMul(o.x.redAdd(o.y)).redISub($).redISub(en), - Jn = _.redMul(sn).redMul(In), - qn, - Kn - return ( - this.curve.twisted - ? ((qn = _.redMul(gn).redMul(en.redSub(this.curve._mulA($)))), (Kn = sn.redMul(gn))) - : ((qn = _.redMul(gn).redMul(en.redSub($))), (Kn = this.curve._mulC(sn).redMul(gn))), - this.curve.point(Jn, qn, Kn) - ) -} -Point.prototype.add = function e(o) { - return this.isInfinity() - ? o - : o.isInfinity() - ? this - : this.curve.extended - ? this._extAdd(o) - : this._projAdd(o) -} -Point.prototype.mul = function e(o) { - return this._hasDoubles(o) ? this.curve._fixedNafMul(this, o) : this.curve._wnafMul(this, o) -} -Point.prototype.mulAdd = function e(o, _, b) { - return this.curve._wnafMulAdd(1, [this, _], [o, b], 2, !1) -} -Point.prototype.jmulAdd = function e(o, _, b) { - return this.curve._wnafMulAdd(1, [this, _], [o, b], 2, !0) -} -Point.prototype.normalize = function e() { - if (this.zOne) return this - var o = this.z.redInvm() - return ( - (this.x = this.x.redMul(o)), - (this.y = this.y.redMul(o)), - this.t && (this.t = this.t.redMul(o)), - (this.z = this.curve.one), - (this.zOne = !0), - this - ) -} -Point.prototype.neg = function e() { - return this.curve.point(this.x.redNeg(), this.y, this.z, this.t && this.t.redNeg()) -} -Point.prototype.getX = function e() { - return this.normalize(), this.x.fromRed() -} -Point.prototype.getY = function e() { - return this.normalize(), this.y.fromRed() -} -Point.prototype.eq = function e(o) { - return this === o || (this.getX().cmp(o.getX()) === 0 && this.getY().cmp(o.getY()) === 0) -} -Point.prototype.eqXToP = function e(o) { - var _ = o.toRed(this.curve.red).redMul(this.z) - if (this.x.cmp(_) === 0) return !0 - for (var b = o.clone(), $ = this.curve.redN.redMul(this.z); ; ) { - if ((b.iadd(this.curve.n), b.cmp(this.curve.p) >= 0)) return !1 - if ((_.redIAdd($), this.x.cmp(_) === 0)) return !0 - } -} -Point.prototype.toP = Point.prototype.normalize -Point.prototype.mixedAdd = Point.prototype.add -;(function (e) { - var o = e - ;(o.base = base), (o.short = short), (o.mont = mont), (o.edwards = edwards) -})(curve) -var curves$2 = {}, - hash$2 = {}, - utils$r = {}, - assert$b = minimalisticAssert, - inherits = inherits_browserExports -utils$r.inherits = inherits -function isSurrogatePair(e, o) { - return (e.charCodeAt(o) & 64512) !== 55296 || o < 0 || o + 1 >= e.length - ? !1 - : (e.charCodeAt(o + 1) & 64512) === 56320 -} -function toArray(e, o) { - if (Array.isArray(e)) return e.slice() - if (!e) return [] - var _ = [] - if (typeof e == 'string') - if (o) { - if (o === 'hex') - for ( - e = e.replace(/[^a-z0-9]+/gi, ''), e.length % 2 !== 0 && (e = '0' + e), $ = 0; - $ < e.length; - $ += 2 - ) - _.push(parseInt(e[$] + e[$ + 1], 16)) - } else - for (var b = 0, $ = 0; $ < e.length; $++) { - var en = e.charCodeAt($) - en < 128 - ? (_[b++] = en) - : en < 2048 - ? ((_[b++] = (en >> 6) | 192), (_[b++] = (en & 63) | 128)) - : isSurrogatePair(e, $) - ? ((en = 65536 + ((en & 1023) << 10) + (e.charCodeAt(++$) & 1023)), - (_[b++] = (en >> 18) | 240), - (_[b++] = ((en >> 12) & 63) | 128), - (_[b++] = ((en >> 6) & 63) | 128), - (_[b++] = (en & 63) | 128)) - : ((_[b++] = (en >> 12) | 224), - (_[b++] = ((en >> 6) & 63) | 128), - (_[b++] = (en & 63) | 128)) - } - else for ($ = 0; $ < e.length; $++) _[$] = e[$] | 0 - return _ -} -utils$r.toArray = toArray -function toHex(e) { - for (var o = '', _ = 0; _ < e.length; _++) o += zero2(e[_].toString(16)) - return o -} -utils$r.toHex = toHex -function htonl(e) { - var o = (e >>> 24) | ((e >>> 8) & 65280) | ((e << 8) & 16711680) | ((e & 255) << 24) - return o >>> 0 -} -utils$r.htonl = htonl -function toHex32(e, o) { - for (var _ = '', b = 0; b < e.length; b++) { - var $ = e[b] - o === 'little' && ($ = htonl($)), (_ += zero8($.toString(16))) - } - return _ -} -utils$r.toHex32 = toHex32 -function zero2(e) { - return e.length === 1 ? '0' + e : e -} -utils$r.zero2 = zero2 -function zero8(e) { - return e.length === 7 - ? '0' + e - : e.length === 6 - ? '00' + e - : e.length === 5 - ? '000' + e - : e.length === 4 - ? '0000' + e - : e.length === 3 - ? '00000' + e - : e.length === 2 - ? '000000' + e - : e.length === 1 - ? '0000000' + e - : e -} -utils$r.zero8 = zero8 -function join32(e, o, _, b) { - var $ = _ - o - assert$b($ % 4 === 0) - for (var en = new Array($ / 4), nn = 0, sn = o; nn < en.length; nn++, sn += 4) { - var gn - b === 'big' - ? (gn = (e[sn] << 24) | (e[sn + 1] << 16) | (e[sn + 2] << 8) | e[sn + 3]) - : (gn = (e[sn + 3] << 24) | (e[sn + 2] << 16) | (e[sn + 1] << 8) | e[sn]), - (en[nn] = gn >>> 0) - } - return en -} -utils$r.join32 = join32 -function split32(e, o) { - for (var _ = new Array(e.length * 4), b = 0, $ = 0; b < e.length; b++, $ += 4) { - var en = e[b] - o === 'big' - ? ((_[$] = en >>> 24), - (_[$ + 1] = (en >>> 16) & 255), - (_[$ + 2] = (en >>> 8) & 255), - (_[$ + 3] = en & 255)) - : ((_[$ + 3] = en >>> 24), - (_[$ + 2] = (en >>> 16) & 255), - (_[$ + 1] = (en >>> 8) & 255), - (_[$] = en & 255)) - } - return _ -} -utils$r.split32 = split32 -function rotr32$1(e, o) { - return (e >>> o) | (e << (32 - o)) -} -utils$r.rotr32 = rotr32$1 -function rotl32$2(e, o) { - return (e << o) | (e >>> (32 - o)) -} -utils$r.rotl32 = rotl32$2 -function sum32$3(e, o) { - return (e + o) >>> 0 -} -utils$r.sum32 = sum32$3 -function sum32_3$1(e, o, _) { - return (e + o + _) >>> 0 -} -utils$r.sum32_3 = sum32_3$1 -function sum32_4$2(e, o, _, b) { - return (e + o + _ + b) >>> 0 -} -utils$r.sum32_4 = sum32_4$2 -function sum32_5$2(e, o, _, b, $) { - return (e + o + _ + b + $) >>> 0 -} -utils$r.sum32_5 = sum32_5$2 -function sum64$1(e, o, _, b) { - var $ = e[o], - en = e[o + 1], - nn = (b + en) >>> 0, - sn = (nn < b ? 1 : 0) + _ + $ - ;(e[o] = sn >>> 0), (e[o + 1] = nn) -} -utils$r.sum64 = sum64$1 -function sum64_hi$1(e, o, _, b) { - var $ = (o + b) >>> 0, - en = ($ < o ? 1 : 0) + e + _ - return en >>> 0 -} -utils$r.sum64_hi = sum64_hi$1 -function sum64_lo$1(e, o, _, b) { - var $ = o + b - return $ >>> 0 -} -utils$r.sum64_lo = sum64_lo$1 -function sum64_4_hi$1(e, o, _, b, $, en, nn, sn) { - var gn = 0, - In = o - ;(In = (In + b) >>> 0), - (gn += In < o ? 1 : 0), - (In = (In + en) >>> 0), - (gn += In < en ? 1 : 0), - (In = (In + sn) >>> 0), - (gn += In < sn ? 1 : 0) - var Jn = e + _ + $ + nn + gn - return Jn >>> 0 -} -utils$r.sum64_4_hi = sum64_4_hi$1 -function sum64_4_lo$1(e, o, _, b, $, en, nn, sn) { - var gn = o + b + en + sn - return gn >>> 0 -} -utils$r.sum64_4_lo = sum64_4_lo$1 -function sum64_5_hi$1(e, o, _, b, $, en, nn, sn, gn, In) { - var Jn = 0, - qn = o - ;(qn = (qn + b) >>> 0), - (Jn += qn < o ? 1 : 0), - (qn = (qn + en) >>> 0), - (Jn += qn < en ? 1 : 0), - (qn = (qn + sn) >>> 0), - (Jn += qn < sn ? 1 : 0), - (qn = (qn + In) >>> 0), - (Jn += qn < In ? 1 : 0) - var Kn = e + _ + $ + nn + gn + Jn - return Kn >>> 0 -} -utils$r.sum64_5_hi = sum64_5_hi$1 -function sum64_5_lo$1(e, o, _, b, $, en, nn, sn, gn, In) { - var Jn = o + b + en + sn + In - return Jn >>> 0 -} -utils$r.sum64_5_lo = sum64_5_lo$1 -function rotr64_hi$1(e, o, _) { - var b = (o << (32 - _)) | (e >>> _) - return b >>> 0 -} -utils$r.rotr64_hi = rotr64_hi$1 -function rotr64_lo$1(e, o, _) { - var b = (e << (32 - _)) | (o >>> _) - return b >>> 0 -} -utils$r.rotr64_lo = rotr64_lo$1 -function shr64_hi$1(e, o, _) { - return e >>> _ -} -utils$r.shr64_hi = shr64_hi$1 -function shr64_lo$1(e, o, _) { - var b = (e << (32 - _)) | (o >>> _) - return b >>> 0 -} -utils$r.shr64_lo = shr64_lo$1 -var common$5 = {}, - utils$q = utils$r, - assert$a = minimalisticAssert -function BlockHash$4() { - ;(this.pending = null), - (this.pendingTotal = 0), - (this.blockSize = this.constructor.blockSize), - (this.outSize = this.constructor.outSize), - (this.hmacStrength = this.constructor.hmacStrength), - (this.padLength = this.constructor.padLength / 8), - (this.endian = 'big'), - (this._delta8 = this.blockSize / 8), - (this._delta32 = this.blockSize / 32) -} -common$5.BlockHash = BlockHash$4 -BlockHash$4.prototype.update = function e(o, _) { - if ( - ((o = utils$q.toArray(o, _)), - this.pending ? (this.pending = this.pending.concat(o)) : (this.pending = o), - (this.pendingTotal += o.length), - this.pending.length >= this._delta8) - ) { - o = this.pending - var b = o.length % this._delta8 - ;(this.pending = o.slice(o.length - b, o.length)), - this.pending.length === 0 && (this.pending = null), - (o = utils$q.join32(o, 0, o.length - b, this.endian)) - for (var $ = 0; $ < o.length; $ += this._delta32) this._update(o, $, $ + this._delta32) - } - return this -} -BlockHash$4.prototype.digest = function e(o) { - return this.update(this._pad()), assert$a(this.pending === null), this._digest(o) -} -BlockHash$4.prototype._pad = function e() { - var o = this.pendingTotal, - _ = this._delta8, - b = _ - ((o + this.padLength) % _), - $ = new Array(b + this.padLength) - $[0] = 128 - for (var en = 1; en < b; en++) $[en] = 0 - if (((o <<= 3), this.endian === 'big')) { - for (var nn = 8; nn < this.padLength; nn++) $[en++] = 0 - ;($[en++] = 0), - ($[en++] = 0), - ($[en++] = 0), - ($[en++] = 0), - ($[en++] = (o >>> 24) & 255), - ($[en++] = (o >>> 16) & 255), - ($[en++] = (o >>> 8) & 255), - ($[en++] = o & 255) - } else - for ( - $[en++] = o & 255, - $[en++] = (o >>> 8) & 255, - $[en++] = (o >>> 16) & 255, - $[en++] = (o >>> 24) & 255, - $[en++] = 0, - $[en++] = 0, - $[en++] = 0, - $[en++] = 0, - nn = 8; - nn < this.padLength; - nn++ - ) - $[en++] = 0 - return $ -} -var sha = {}, - common$4 = {}, - utils$p = utils$r, - rotr32 = utils$p.rotr32 -function ft_1$1(e, o, _, b) { - if (e === 0) return ch32$1(o, _, b) - if (e === 1 || e === 3) return p32(o, _, b) - if (e === 2) return maj32$1(o, _, b) -} -common$4.ft_1 = ft_1$1 -function ch32$1(e, o, _) { - return (e & o) ^ (~e & _) -} -common$4.ch32 = ch32$1 -function maj32$1(e, o, _) { - return (e & o) ^ (e & _) ^ (o & _) -} -common$4.maj32 = maj32$1 -function p32(e, o, _) { - return e ^ o ^ _ -} -common$4.p32 = p32 -function s0_256$1(e) { - return rotr32(e, 2) ^ rotr32(e, 13) ^ rotr32(e, 22) -} -common$4.s0_256 = s0_256$1 -function s1_256$1(e) { - return rotr32(e, 6) ^ rotr32(e, 11) ^ rotr32(e, 25) -} -common$4.s1_256 = s1_256$1 -function g0_256$1(e) { - return rotr32(e, 7) ^ rotr32(e, 18) ^ (e >>> 3) -} -common$4.g0_256 = g0_256$1 -function g1_256$1(e) { - return rotr32(e, 17) ^ rotr32(e, 19) ^ (e >>> 10) -} -common$4.g1_256 = g1_256$1 -var utils$o = utils$r, - common$3 = common$5, - shaCommon$1 = common$4, - rotl32$1 = utils$o.rotl32, - sum32$2 = utils$o.sum32, - sum32_5$1 = utils$o.sum32_5, - ft_1 = shaCommon$1.ft_1, - BlockHash$3 = common$3.BlockHash, - sha1_K = [1518500249, 1859775393, 2400959708, 3395469782] -function SHA1() { - if (!(this instanceof SHA1)) return new SHA1() - BlockHash$3.call(this), - (this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]), - (this.W = new Array(80)) -} -utils$o.inherits(SHA1, BlockHash$3) -var _1 = SHA1 -SHA1.blockSize = 512 -SHA1.outSize = 160 -SHA1.hmacStrength = 80 -SHA1.padLength = 64 -SHA1.prototype._update = function e(o, _) { - for (var b = this.W, $ = 0; $ < 16; $++) b[$] = o[_ + $] - for (; $ < b.length; $++) b[$] = rotl32$1(b[$ - 3] ^ b[$ - 8] ^ b[$ - 14] ^ b[$ - 16], 1) - var en = this.h[0], - nn = this.h[1], - sn = this.h[2], - gn = this.h[3], - In = this.h[4] - for ($ = 0; $ < b.length; $++) { - var Jn = ~~($ / 20), - qn = sum32_5$1(rotl32$1(en, 5), ft_1(Jn, nn, sn, gn), In, b[$], sha1_K[Jn]) - ;(In = gn), (gn = sn), (sn = rotl32$1(nn, 30)), (nn = en), (en = qn) - } - ;(this.h[0] = sum32$2(this.h[0], en)), - (this.h[1] = sum32$2(this.h[1], nn)), - (this.h[2] = sum32$2(this.h[2], sn)), - (this.h[3] = sum32$2(this.h[3], gn)), - (this.h[4] = sum32$2(this.h[4], In)) -} -SHA1.prototype._digest = function e(o) { - return o === 'hex' ? utils$o.toHex32(this.h, 'big') : utils$o.split32(this.h, 'big') -} -var utils$n = utils$r, - common$2 = common$5, - shaCommon = common$4, - assert$9 = minimalisticAssert, - sum32$1 = utils$n.sum32, - sum32_4$1 = utils$n.sum32_4, - sum32_5 = utils$n.sum32_5, - ch32 = shaCommon.ch32, - maj32 = shaCommon.maj32, - s0_256 = shaCommon.s0_256, - s1_256 = shaCommon.s1_256, - g0_256 = shaCommon.g0_256, - g1_256 = shaCommon.g1_256, - BlockHash$2 = common$2.BlockHash, - sha256_K = [ - 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, - 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, - 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, - 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, - 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, - 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, - 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, - 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298, - ] -function SHA256$1() { - if (!(this instanceof SHA256$1)) return new SHA256$1() - BlockHash$2.call(this), - (this.h = [ - 1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225, - ]), - (this.k = sha256_K), - (this.W = new Array(64)) -} -utils$n.inherits(SHA256$1, BlockHash$2) -var _256 = SHA256$1 -SHA256$1.blockSize = 512 -SHA256$1.outSize = 256 -SHA256$1.hmacStrength = 192 -SHA256$1.padLength = 64 -SHA256$1.prototype._update = function e(o, _) { - for (var b = this.W, $ = 0; $ < 16; $++) b[$] = o[_ + $] - for (; $ < b.length; $++) - b[$] = sum32_4$1(g1_256(b[$ - 2]), b[$ - 7], g0_256(b[$ - 15]), b[$ - 16]) - var en = this.h[0], - nn = this.h[1], - sn = this.h[2], - gn = this.h[3], - In = this.h[4], - Jn = this.h[5], - qn = this.h[6], - Kn = this.h[7] - for (assert$9(this.k.length === b.length), $ = 0; $ < b.length; $++) { - var an = sum32_5(Kn, s1_256(In), ch32(In, Jn, qn), this.k[$], b[$]), - xn = sum32$1(s0_256(en), maj32(en, nn, sn)) - ;(Kn = qn), - (qn = Jn), - (Jn = In), - (In = sum32$1(gn, an)), - (gn = sn), - (sn = nn), - (nn = en), - (en = sum32$1(an, xn)) - } - ;(this.h[0] = sum32$1(this.h[0], en)), - (this.h[1] = sum32$1(this.h[1], nn)), - (this.h[2] = sum32$1(this.h[2], sn)), - (this.h[3] = sum32$1(this.h[3], gn)), - (this.h[4] = sum32$1(this.h[4], In)), - (this.h[5] = sum32$1(this.h[5], Jn)), - (this.h[6] = sum32$1(this.h[6], qn)), - (this.h[7] = sum32$1(this.h[7], Kn)) -} -SHA256$1.prototype._digest = function e(o) { - return o === 'hex' ? utils$n.toHex32(this.h, 'big') : utils$n.split32(this.h, 'big') -} -var utils$m = utils$r, - SHA256 = _256 -function SHA224() { - if (!(this instanceof SHA224)) return new SHA224() - SHA256.call(this), - (this.h = [ - 3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428, - ]) -} -utils$m.inherits(SHA224, SHA256) -var _224 = SHA224 -SHA224.blockSize = 512 -SHA224.outSize = 224 -SHA224.hmacStrength = 192 -SHA224.padLength = 64 -SHA224.prototype._digest = function e(o) { - return o === 'hex' - ? utils$m.toHex32(this.h.slice(0, 7), 'big') - : utils$m.split32(this.h.slice(0, 7), 'big') -} -var utils$l = utils$r, - common$1 = common$5, - assert$8 = minimalisticAssert, - rotr64_hi = utils$l.rotr64_hi, - rotr64_lo = utils$l.rotr64_lo, - shr64_hi = utils$l.shr64_hi, - shr64_lo = utils$l.shr64_lo, - sum64 = utils$l.sum64, - sum64_hi = utils$l.sum64_hi, - sum64_lo = utils$l.sum64_lo, - sum64_4_hi = utils$l.sum64_4_hi, - sum64_4_lo = utils$l.sum64_4_lo, - sum64_5_hi = utils$l.sum64_5_hi, - sum64_5_lo = utils$l.sum64_5_lo, - BlockHash$1 = common$1.BlockHash, - sha512_K = [ - 1116352408, 3609767458, 1899447441, 602891725, 3049323471, 3964484399, 3921009573, 2173295548, - 961987163, 4081628472, 1508970993, 3053834265, 2453635748, 2937671579, 2870763221, 3664609560, - 3624381080, 2734883394, 310598401, 1164996542, 607225278, 1323610764, 1426881987, 3590304994, - 1925078388, 4068182383, 2162078206, 991336113, 2614888103, 633803317, 3248222580, 3479774868, - 3835390401, 2666613458, 4022224774, 944711139, 264347078, 2341262773, 604807628, 2007800933, - 770255983, 1495990901, 1249150122, 1856431235, 1555081692, 3175218132, 1996064986, 2198950837, - 2554220882, 3999719339, 2821834349, 766784016, 2952996808, 2566594879, 3210313671, 3203337956, - 3336571891, 1034457026, 3584528711, 2466948901, 113926993, 3758326383, 338241895, 168717936, - 666307205, 1188179964, 773529912, 1546045734, 1294757372, 1522805485, 1396182291, 2643833823, - 1695183700, 2343527390, 1986661051, 1014477480, 2177026350, 1206759142, 2456956037, 344077627, - 2730485921, 1290863460, 2820302411, 3158454273, 3259730800, 3505952657, 3345764771, 106217008, - 3516065817, 3606008344, 3600352804, 1432725776, 4094571909, 1467031594, 275423344, 851169720, - 430227734, 3100823752, 506948616, 1363258195, 659060556, 3750685593, 883997877, 3785050280, - 958139571, 3318307427, 1322822218, 3812723403, 1537002063, 2003034995, 1747873779, 3602036899, - 1955562222, 1575990012, 2024104815, 1125592928, 2227730452, 2716904306, 2361852424, 442776044, - 2428436474, 593698344, 2756734187, 3733110249, 3204031479, 2999351573, 3329325298, 3815920427, - 3391569614, 3928383900, 3515267271, 566280711, 3940187606, 3454069534, 4118630271, 4000239992, - 116418474, 1914138554, 174292421, 2731055270, 289380356, 3203993006, 460393269, 320620315, - 685471733, 587496836, 852142971, 1086792851, 1017036298, 365543100, 1126000580, 2618297676, - 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591, - ] -function SHA512$1() { - if (!(this instanceof SHA512$1)) return new SHA512$1() - BlockHash$1.call(this), - (this.h = [ - 1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, - 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, - 327033209, - ]), - (this.k = sha512_K), - (this.W = new Array(160)) -} -utils$l.inherits(SHA512$1, BlockHash$1) -var _512 = SHA512$1 -SHA512$1.blockSize = 1024 -SHA512$1.outSize = 512 -SHA512$1.hmacStrength = 192 -SHA512$1.padLength = 128 -SHA512$1.prototype._prepareBlock = function e(o, _) { - for (var b = this.W, $ = 0; $ < 32; $++) b[$] = o[_ + $] - for (; $ < b.length; $ += 2) { - var en = g1_512_hi(b[$ - 4], b[$ - 3]), - nn = g1_512_lo(b[$ - 4], b[$ - 3]), - sn = b[$ - 14], - gn = b[$ - 13], - In = g0_512_hi(b[$ - 30], b[$ - 29]), - Jn = g0_512_lo(b[$ - 30], b[$ - 29]), - qn = b[$ - 32], - Kn = b[$ - 31] - ;(b[$] = sum64_4_hi(en, nn, sn, gn, In, Jn, qn, Kn)), - (b[$ + 1] = sum64_4_lo(en, nn, sn, gn, In, Jn, qn, Kn)) - } -} -SHA512$1.prototype._update = function e(o, _) { - this._prepareBlock(o, _) - var b = this.W, - $ = this.h[0], - en = this.h[1], - nn = this.h[2], - sn = this.h[3], - gn = this.h[4], - In = this.h[5], - Jn = this.h[6], - qn = this.h[7], - Kn = this.h[8], - an = this.h[9], - xn = this.h[10], - mn = this.h[11], - Bn = this.h[12], - kn = this.h[13], - ln = this.h[14], - yn = this.h[15] - assert$8(this.k.length === b.length) - for (var Cn = 0; Cn < b.length; Cn += 2) { - var Tn = ln, - Gn = yn, - Sn = s1_512_hi(Kn, an), - Zn = s1_512_lo(Kn, an), - tn = ch64_hi(Kn, an, xn, mn, Bn), - En = ch64_lo(Kn, an, xn, mn, Bn, kn), - Mn = this.k[Cn], - Hn = this.k[Cn + 1], - un = b[Cn], - dn = b[Cn + 1], - Nn = sum64_5_hi(Tn, Gn, Sn, Zn, tn, En, Mn, Hn, un, dn), - fn = sum64_5_lo(Tn, Gn, Sn, Zn, tn, En, Mn, Hn, un, dn) - ;(Tn = s0_512_hi($, en)), - (Gn = s0_512_lo($, en)), - (Sn = maj64_hi($, en, nn, sn, gn)), - (Zn = maj64_lo($, en, nn, sn, gn, In)) - var _n = sum64_hi(Tn, Gn, Sn, Zn), - Ln = sum64_lo(Tn, Gn, Sn, Zn) - ;(ln = Bn), - (yn = kn), - (Bn = xn), - (kn = mn), - (xn = Kn), - (mn = an), - (Kn = sum64_hi(Jn, qn, Nn, fn)), - (an = sum64_lo(qn, qn, Nn, fn)), - (Jn = gn), - (qn = In), - (gn = nn), - (In = sn), - (nn = $), - (sn = en), - ($ = sum64_hi(Nn, fn, _n, Ln)), - (en = sum64_lo(Nn, fn, _n, Ln)) - } - sum64(this.h, 0, $, en), - sum64(this.h, 2, nn, sn), - sum64(this.h, 4, gn, In), - sum64(this.h, 6, Jn, qn), - sum64(this.h, 8, Kn, an), - sum64(this.h, 10, xn, mn), - sum64(this.h, 12, Bn, kn), - sum64(this.h, 14, ln, yn) -} -SHA512$1.prototype._digest = function e(o) { - return o === 'hex' ? utils$l.toHex32(this.h, 'big') : utils$l.split32(this.h, 'big') -} -function ch64_hi(e, o, _, b, $) { - var en = (e & _) ^ (~e & $) - return en < 0 && (en += 4294967296), en -} -function ch64_lo(e, o, _, b, $, en) { - var nn = (o & b) ^ (~o & en) - return nn < 0 && (nn += 4294967296), nn -} -function maj64_hi(e, o, _, b, $) { - var en = (e & _) ^ (e & $) ^ (_ & $) - return en < 0 && (en += 4294967296), en -} -function maj64_lo(e, o, _, b, $, en) { - var nn = (o & b) ^ (o & en) ^ (b & en) - return nn < 0 && (nn += 4294967296), nn -} -function s0_512_hi(e, o) { - var _ = rotr64_hi(e, o, 28), - b = rotr64_hi(o, e, 2), - $ = rotr64_hi(o, e, 7), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -function s0_512_lo(e, o) { - var _ = rotr64_lo(e, o, 28), - b = rotr64_lo(o, e, 2), - $ = rotr64_lo(o, e, 7), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -function s1_512_hi(e, o) { - var _ = rotr64_hi(e, o, 14), - b = rotr64_hi(e, o, 18), - $ = rotr64_hi(o, e, 9), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -function s1_512_lo(e, o) { - var _ = rotr64_lo(e, o, 14), - b = rotr64_lo(e, o, 18), - $ = rotr64_lo(o, e, 9), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -function g0_512_hi(e, o) { - var _ = rotr64_hi(e, o, 1), - b = rotr64_hi(e, o, 8), - $ = shr64_hi(e, o, 7), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -function g0_512_lo(e, o) { - var _ = rotr64_lo(e, o, 1), - b = rotr64_lo(e, o, 8), - $ = shr64_lo(e, o, 7), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -function g1_512_hi(e, o) { - var _ = rotr64_hi(e, o, 19), - b = rotr64_hi(o, e, 29), - $ = shr64_hi(e, o, 6), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -function g1_512_lo(e, o) { - var _ = rotr64_lo(e, o, 19), - b = rotr64_lo(o, e, 29), - $ = shr64_lo(e, o, 6), - en = _ ^ b ^ $ - return en < 0 && (en += 4294967296), en -} -var utils$k = utils$r, - SHA512 = _512 -function SHA384() { - if (!(this instanceof SHA384)) return new SHA384() - SHA512.call(this), - (this.h = [ - 3418070365, 3238371032, 1654270250, 914150663, 2438529370, 812702999, 355462360, 4144912697, - 1731405415, 4290775857, 2394180231, 1750603025, 3675008525, 1694076839, 1203062813, - 3204075428, - ]) -} -utils$k.inherits(SHA384, SHA512) -var _384 = SHA384 -SHA384.blockSize = 1024 -SHA384.outSize = 384 -SHA384.hmacStrength = 192 -SHA384.padLength = 128 -SHA384.prototype._digest = function e(o) { - return o === 'hex' - ? utils$k.toHex32(this.h.slice(0, 12), 'big') - : utils$k.split32(this.h.slice(0, 12), 'big') -} -sha.sha1 = _1 -sha.sha224 = _224 -sha.sha256 = _256 -sha.sha384 = _384 -sha.sha512 = _512 -var ripemd = {}, - utils$j = utils$r, - common = common$5, - rotl32 = utils$j.rotl32, - sum32 = utils$j.sum32, - sum32_3 = utils$j.sum32_3, - sum32_4 = utils$j.sum32_4, - BlockHash = common.BlockHash -function RIPEMD160() { - if (!(this instanceof RIPEMD160)) return new RIPEMD160() - BlockHash.call(this), - (this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]), - (this.endian = 'little') -} -utils$j.inherits(RIPEMD160, BlockHash) -ripemd.ripemd160 = RIPEMD160 -RIPEMD160.blockSize = 512 -RIPEMD160.outSize = 160 -RIPEMD160.hmacStrength = 192 -RIPEMD160.padLength = 64 -RIPEMD160.prototype._update = function e(o, _) { - for ( - var b = this.h[0], - $ = this.h[1], - en = this.h[2], - nn = this.h[3], - sn = this.h[4], - gn = b, - In = $, - Jn = en, - qn = nn, - Kn = sn, - an = 0; - an < 80; - an++ - ) { - var xn = sum32(rotl32(sum32_4(b, f(an, $, en, nn), o[r[an] + _], K(an)), s[an]), sn) - ;(b = sn), - (sn = nn), - (nn = rotl32(en, 10)), - (en = $), - ($ = xn), - (xn = sum32(rotl32(sum32_4(gn, f(79 - an, In, Jn, qn), o[rh[an] + _], Kh(an)), sh[an]), Kn)), - (gn = Kn), - (Kn = qn), - (qn = rotl32(Jn, 10)), - (Jn = In), - (In = xn) - } - ;(xn = sum32_3(this.h[1], en, qn)), - (this.h[1] = sum32_3(this.h[2], nn, Kn)), - (this.h[2] = sum32_3(this.h[3], sn, gn)), - (this.h[3] = sum32_3(this.h[4], b, In)), - (this.h[4] = sum32_3(this.h[0], $, Jn)), - (this.h[0] = xn) -} -RIPEMD160.prototype._digest = function e(o) { - return o === 'hex' ? utils$j.toHex32(this.h, 'little') : utils$j.split32(this.h, 'little') -} -function f(e, o, _, b) { - return e <= 15 - ? o ^ _ ^ b - : e <= 31 - ? (o & _) | (~o & b) - : e <= 47 - ? (o | ~_) ^ b - : e <= 63 - ? (o & b) | (_ & ~b) - : o ^ (_ | ~b) -} -function K(e) { - return e <= 15 - ? 0 - : e <= 31 - ? 1518500249 - : e <= 47 - ? 1859775393 - : e <= 63 - ? 2400959708 - : 2840853838 -} -function Kh(e) { - return e <= 15 - ? 1352829926 - : e <= 31 - ? 1548603684 - : e <= 47 - ? 1836072691 - : e <= 63 - ? 2053994217 - : 0 -} -var r = [ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, - 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, - 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13, - ], - rh = [ - 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, - 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, - 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11, - ], - s = [ - 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, - 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, - 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6, - ], - sh = [ - 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, - 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, - 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11, - ], - utils$i = utils$r, - assert$7 = minimalisticAssert -function Hmac(e, o, _) { - if (!(this instanceof Hmac)) return new Hmac(e, o, _) - ;(this.Hash = e), - (this.blockSize = e.blockSize / 8), - (this.outSize = e.outSize / 8), - (this.inner = null), - (this.outer = null), - this._init(utils$i.toArray(o, _)) -} -var hmac = Hmac -Hmac.prototype._init = function e(o) { - o.length > this.blockSize && (o = new this.Hash().update(o).digest()), - assert$7(o.length <= this.blockSize) - for (var _ = o.length; _ < this.blockSize; _++) o.push(0) - for (_ = 0; _ < o.length; _++) o[_] ^= 54 - for (this.inner = new this.Hash().update(o), _ = 0; _ < o.length; _++) o[_] ^= 106 - this.outer = new this.Hash().update(o) -} -Hmac.prototype.update = function e(o, _) { - return this.inner.update(o, _), this -} -Hmac.prototype.digest = function e(o) { - return this.outer.update(this.inner.digest()), this.outer.digest(o) -} -;(function (e) { - var o = e - ;(o.utils = utils$r), - (o.common = common$5), - (o.sha = sha), - (o.ripemd = ripemd), - (o.hmac = hmac), - (o.sha1 = o.sha.sha1), - (o.sha256 = o.sha.sha256), - (o.sha224 = o.sha.sha224), - (o.sha384 = o.sha.sha384), - (o.sha512 = o.sha.sha512), - (o.ripemd160 = o.ripemd.ripemd160) -})(hash$2) -var secp256k1$1, hasRequiredSecp256k1 -function requireSecp256k1() { - return ( - hasRequiredSecp256k1 || - ((hasRequiredSecp256k1 = 1), - (secp256k1$1 = { - doubles: { - step: 4, - points: [ - [ - 'e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a', - 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821', - ], - [ - '8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508', - '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf', - ], - [ - '175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739', - 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695', - ], - [ - '363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640', - '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9', - ], - [ - '8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c', - '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36', - ], - [ - '723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda', - '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f', - ], - [ - 'eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa', - '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999', - ], - [ - '100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0', - 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09', - ], - [ - 'e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d', - '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d', - ], - [ - 'feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d', - 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088', - ], - [ - 'da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1', - '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d', - ], - [ - '53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0', - '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8', - ], - [ - '8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047', - '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a', - ], - [ - '385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862', - '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453', - ], - [ - '6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7', - '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160', - ], - [ - '3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd', - '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0', - ], - [ - '85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83', - '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6', - ], - [ - '948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a', - '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589', - ], - [ - '6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8', - 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17', - ], - [ - 'e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d', - '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda', - ], - [ - 'e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725', - '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd', - ], - [ - '213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754', - '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2', - ], - [ - '4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c', - '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6', - ], - [ - 'fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6', - '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f', - ], - [ - '76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39', - 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01', - ], - [ - 'c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891', - '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3', - ], - [ - 'd895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b', - 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f', - ], - [ - 'b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03', - '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7', - ], - [ - 'e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d', - 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78', - ], - [ - 'a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070', - '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1', - ], - [ - '90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4', - 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150', - ], - [ - '8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da', - '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82', - ], - [ - 'e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11', - '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc', - ], - [ - '8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e', - 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b', - ], - [ - 'e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41', - '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51', - ], - [ - 'b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef', - '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45', - ], - [ - 'd68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8', - 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120', - ], - [ - '324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d', - '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84', - ], - [ - '4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96', - '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d', - ], - [ - '9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd', - 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d', - ], - [ - '6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5', - '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8', - ], - [ - 'a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266', - '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8', - ], - [ - '7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71', - '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac', - ], - [ - '928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac', - 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f', - ], - [ - '85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751', - '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962', - ], - [ - 'ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e', - '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907', - ], - [ - '827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241', - 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec', - ], - [ - 'eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3', - 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d', - ], - [ - 'e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f', - '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414', - ], - [ - '1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19', - 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd', - ], - [ - '146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be', - 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0', - ], - [ - 'fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9', - '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811', - ], - [ - 'da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2', - '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1', - ], - [ - 'a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13', - '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c', - ], - [ - '174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c', - 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73', - ], - [ - '959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba', - '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd', - ], - [ - 'd2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151', - 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405', - ], - [ - '64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073', - 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589', - ], - [ - '8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458', - '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e', - ], - [ - '13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b', - '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27', - ], - [ - 'bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366', - 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1', - ], - [ - '8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa', - '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482', - ], - [ - '8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0', - '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945', - ], - [ - 'dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787', - '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573', - ], - [ - 'f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e', - 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82', - ], - ], - }, - naf: { - wnd: 7, - points: [ - [ - 'f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9', - '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672', - ], - [ - '2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4', - 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6', - ], - [ - '5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc', - '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da', - ], - [ - 'acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe', - 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37', - ], - [ - '774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb', - 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b', - ], - [ - 'f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8', - 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81', - ], - [ - 'd7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e', - '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58', - ], - [ - 'defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34', - '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77', - ], - [ - '2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c', - '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a', - ], - [ - '352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5', - '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c', - ], - [ - '2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f', - '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67', - ], - [ - '9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714', - '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402', - ], - [ - 'daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729', - 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55', - ], - [ - 'c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db', - '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482', - ], - [ - '6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4', - 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82', - ], - [ - '1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5', - 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396', - ], - [ - '605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479', - '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49', - ], - [ - '62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d', - '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf', - ], - [ - '80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f', - '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a', - ], - [ - '7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb', - 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7', - ], - [ - 'd528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9', - 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933', - ], - [ - '49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963', - '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a', - ], - [ - '77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74', - '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6', - ], - [ - 'f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530', - 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37', - ], - [ - '463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b', - '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e', - ], - [ - 'f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247', - 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6', - ], - [ - 'caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1', - 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476', - ], - [ - '2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120', - '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40', - ], - [ - '7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435', - '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61', - ], - [ - '754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18', - '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683', - ], - [ - 'e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8', - '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5', - ], - [ - '186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb', - '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b', - ], - [ - 'df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f', - '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417', - ], - [ - '5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143', - 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868', - ], - [ - '290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba', - 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a', - ], - [ - 'af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45', - 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6', - ], - [ - '766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a', - '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996', - ], - [ - '59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e', - 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e', - ], - [ - 'f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8', - 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d', - ], - [ - '7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c', - '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2', - ], - [ - '948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519', - 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e', - ], - [ - '7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab', - '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437', - ], - [ - '3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca', - 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311', - ], - [ - 'd3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf', - '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4', - ], - [ - '1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610', - '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575', - ], - [ - '733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4', - 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d', - ], - [ - '15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c', - 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d', - ], - [ - 'a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940', - 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629', - ], - [ - 'e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980', - 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06', - ], - [ - '311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3', - '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374', - ], - [ - '34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf', - '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee', - ], - [ - 'f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63', - '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1', - ], - [ - 'd7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448', - 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b', - ], - [ - '32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf', - '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661', - ], - [ - '7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5', - '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6', - ], - [ - 'ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6', - '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e', - ], - [ - '16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5', - '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d', - ], - [ - 'eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99', - 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc', - ], - [ - '78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51', - 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4', - ], - [ - '494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5', - '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c', - ], - [ - 'a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5', - '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b', - ], - [ - 'c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997', - '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913', - ], - [ - '841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881', - '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154', - ], - [ - '5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5', - '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865', - ], - [ - '36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66', - 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc', - ], - [ - '336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726', - 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224', - ], - [ - '8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede', - '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e', - ], - [ - '1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94', - '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6', - ], - [ - '85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31', - '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511', - ], - [ - '29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51', - 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b', - ], - [ - 'a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252', - 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2', - ], - [ - '4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5', - 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c', - ], - [ - 'd24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b', - '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3', - ], - [ - 'ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4', - '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d', - ], - [ - 'af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f', - '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700', - ], - [ - 'e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889', - '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4', - ], - [ - '591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246', - 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196', - ], - [ - '11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984', - '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4', - ], - [ - '3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a', - 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257', - ], - [ - 'cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030', - 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13', - ], - [ - 'c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197', - '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096', - ], - [ - 'c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593', - 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38', - ], - [ - 'a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef', - '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f', - ], - [ - '347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38', - '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448', - ], - [ - 'da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a', - '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a', - ], - [ - 'c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111', - '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4', - ], - [ - '4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502', - '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437', - ], - [ - '3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea', - 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7', - ], - [ - 'cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26', - '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d', - ], - [ - 'b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986', - '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a', - ], - [ - 'd4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e', - '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54', - ], - [ - '48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4', - '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77', - ], - [ - 'dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda', - 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517', - ], - [ - '6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859', - 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10', - ], - [ - 'e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f', - 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125', - ], - [ - 'eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c', - '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e', - ], - [ - '13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942', - 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1', - ], - [ - 'ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a', - '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2', - ], - [ - 'b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80', - '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423', - ], - [ - 'ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d', - '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8', - ], - [ - '8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1', - 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758', - ], - [ - '52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63', - 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375', - ], - [ - 'e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352', - '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d', - ], - [ - '7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193', - 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec', - ], - [ - '5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00', - '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0', - ], - [ - '32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58', - 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c', - ], - [ - 'e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7', - 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4', - ], - [ - '8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8', - 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f', - ], - [ - '4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e', - '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649', - ], - [ - '3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d', - 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826', - ], - [ - '674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b', - '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5', - ], - [ - 'd32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f', - 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87', - ], - [ - '30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6', - '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b', - ], - [ - 'be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297', - '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc', - ], - [ - '93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a', - '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c', - ], - [ - 'b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c', - 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f', - ], - [ - 'd5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52', - '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a', - ], - [ - 'd3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb', - 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46', - ], - [ - '463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065', - 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f', - ], - [ - '7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917', - '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03', - ], - [ - '74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9', - 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08', - ], - [ - '30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3', - '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8', - ], - [ - '9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57', - '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373', - ], - [ - '176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66', - 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3', - ], - [ - '75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8', - '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8', - ], - [ - '809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721', - '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1', - ], - [ - '1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180', - '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9', - ], - ], - }, - })), - secp256k1$1 - ) -} -;(function (e) { - var o = e, - _ = hash$2, - b = curve, - $ = utils$x, - en = $.assert - function nn(In) { - In.type === 'short' - ? (this.curve = new b.short(In)) - : In.type === 'edwards' - ? (this.curve = new b.edwards(In)) - : (this.curve = new b.mont(In)), - (this.g = this.curve.g), - (this.n = this.curve.n), - (this.hash = In.hash), - en(this.g.validate(), 'Invalid curve'), - en(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O') - } - o.PresetCurve = nn - function sn(In, Jn) { - Object.defineProperty(o, In, { - configurable: !0, - enumerable: !0, - get: function () { - var qn = new nn(Jn) - return Object.defineProperty(o, In, { configurable: !0, enumerable: !0, value: qn }), qn - }, - }) - } - sn('p192', { - type: 'short', - prime: 'p192', - p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff', - a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc', - b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1', - n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831', - hash: _.sha256, - gRed: !1, - g: [ - '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012', - '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811', - ], - }), - sn('p224', { - type: 'short', - prime: 'p224', - p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001', - a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe', - b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4', - n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d', - hash: _.sha256, - gRed: !1, - g: [ - 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21', - 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34', - ], - }), - sn('p256', { - type: 'short', - prime: null, - p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff', - a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc', - b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b', - n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551', - hash: _.sha256, - gRed: !1, - g: [ - '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296', - '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5', - ], - }), - sn('p384', { - type: 'short', - prime: null, - p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff', - a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc', - b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef', - n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973', - hash: _.sha384, - gRed: !1, - g: [ - 'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7', - '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f', - ], - }), - sn('p521', { - type: 'short', - prime: null, - p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff', - a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc', - b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00', - n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409', - hash: _.sha512, - gRed: !1, - g: [ - '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66', - '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650', - ], - }), - sn('curve25519', { - type: 'mont', - prime: 'p25519', - p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed', - a: '76d06', - b: '1', - n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', - hash: _.sha256, - gRed: !1, - g: ['9'], - }), - sn('ed25519', { - type: 'edwards', - prime: 'p25519', - p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed', - a: '-1', - c: '1', - d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3', - n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed', - hash: _.sha256, - gRed: !1, - g: [ - '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a', - '6666666666666666666666666666666666666666666666666666666666666658', - ], - }) - var gn - try { - gn = requireSecp256k1() - } catch { - gn = void 0 - } - sn('secp256k1', { - type: 'short', - prime: 'k256', - p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f', - a: '0', - b: '7', - n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141', - h: '1', - hash: _.sha256, - beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee', - lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72', - basis: [ - { a: '3086d221a7d46bcde86c90e49284eb15', b: '-e4437ed6010e88286f547fa90abfe4c3' }, - { a: '114ca50f7a8e2f3f657c1108d9d44cfd8', b: '3086d221a7d46bcde86c90e49284eb15' }, - ], - gRed: !1, - g: [ - '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798', - '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8', - gn, - ], - }) -})(curves$2) -var hash$1 = hash$2, - utils$h = utils$w, - assert$6 = minimalisticAssert -function HmacDRBG$1(e) { - if (!(this instanceof HmacDRBG$1)) return new HmacDRBG$1(e) - ;(this.hash = e.hash), - (this.predResist = !!e.predResist), - (this.outLen = this.hash.outSize), - (this.minEntropy = e.minEntropy || this.hash.hmacStrength), - (this._reseed = null), - (this.reseedInterval = null), - (this.K = null), - (this.V = null) - var o = utils$h.toArray(e.entropy, e.entropyEnc || 'hex'), - _ = utils$h.toArray(e.nonce, e.nonceEnc || 'hex'), - b = utils$h.toArray(e.pers, e.persEnc || 'hex') - assert$6( - o.length >= this.minEntropy / 8, - 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits', - ), - this._init(o, _, b) -} -var hmacDrbg = HmacDRBG$1 -HmacDRBG$1.prototype._init = function e(o, _, b) { - var $ = o.concat(_).concat(b) - ;(this.K = new Array(this.outLen / 8)), (this.V = new Array(this.outLen / 8)) - for (var en = 0; en < this.V.length; en++) (this.K[en] = 0), (this.V[en] = 1) - this._update($), (this._reseed = 1), (this.reseedInterval = 281474976710656) -} -HmacDRBG$1.prototype._hmac = function e() { - return new hash$1.hmac(this.hash, this.K) -} -HmacDRBG$1.prototype._update = function e(o) { - var _ = this._hmac().update(this.V).update([0]) - o && (_ = _.update(o)), - (this.K = _.digest()), - (this.V = this._hmac().update(this.V).digest()), - o && - ((this.K = this._hmac().update(this.V).update([1]).update(o).digest()), - (this.V = this._hmac().update(this.V).digest())) -} -HmacDRBG$1.prototype.reseed = function e(o, _, b, $) { - typeof _ != 'string' && (($ = b), (b = _), (_ = null)), - (o = utils$h.toArray(o, _)), - (b = utils$h.toArray(b, $)), - assert$6( - o.length >= this.minEntropy / 8, - 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits', - ), - this._update(o.concat(b || [])), - (this._reseed = 1) -} -HmacDRBG$1.prototype.generate = function e(o, _, b, $) { - if (this._reseed > this.reseedInterval) throw new Error('Reseed is required') - typeof _ != 'string' && (($ = b), (b = _), (_ = null)), - b && ((b = utils$h.toArray(b, $ || 'hex')), this._update(b)) - for (var en = []; en.length < o; ) - (this.V = this._hmac().update(this.V).digest()), (en = en.concat(this.V)) - var nn = en.slice(0, o) - return this._update(b), this._reseed++, utils$h.encode(nn, _) -} -var BN$3 = bnExports, - utils$g = utils$x, - assert$5 = utils$g.assert -function KeyPair$3(e, o) { - ;(this.ec = e), - (this.priv = null), - (this.pub = null), - o.priv && this._importPrivate(o.priv, o.privEnc), - o.pub && this._importPublic(o.pub, o.pubEnc) -} -var key$1 = KeyPair$3 -KeyPair$3.fromPublic = function e(o, _, b) { - return _ instanceof KeyPair$3 ? _ : new KeyPair$3(o, { pub: _, pubEnc: b }) -} -KeyPair$3.fromPrivate = function e(o, _, b) { - return _ instanceof KeyPair$3 ? _ : new KeyPair$3(o, { priv: _, privEnc: b }) -} -KeyPair$3.prototype.validate = function e() { - var o = this.getPublic() - return o.isInfinity() - ? { result: !1, reason: 'Invalid public key' } - : o.validate() - ? o.mul(this.ec.curve.n).isInfinity() - ? { result: !0, reason: null } - : { result: !1, reason: 'Public key * N != O' } - : { result: !1, reason: 'Public key is not a point' } -} -KeyPair$3.prototype.getPublic = function e(o, _) { - return ( - typeof o == 'string' && ((_ = o), (o = null)), - this.pub || (this.pub = this.ec.g.mul(this.priv)), - _ ? this.pub.encode(_, o) : this.pub - ) -} -KeyPair$3.prototype.getPrivate = function e(o) { - return o === 'hex' ? this.priv.toString(16, 2) : this.priv -} -KeyPair$3.prototype._importPrivate = function e(o, _) { - ;(this.priv = new BN$3(o, _ || 16)), (this.priv = this.priv.umod(this.ec.curve.n)) -} -KeyPair$3.prototype._importPublic = function e(o, _) { - if (o.x || o.y) { - this.ec.curve.type === 'mont' - ? assert$5(o.x, 'Need x coordinate') - : (this.ec.curve.type === 'short' || this.ec.curve.type === 'edwards') && - assert$5(o.x && o.y, 'Need both x and y coordinate'), - (this.pub = this.ec.curve.point(o.x, o.y)) - return - } - this.pub = this.ec.curve.decodePoint(o, _) -} -KeyPair$3.prototype.derive = function e(o) { - return ( - o.validate() || assert$5(o.validate(), 'public point not validated'), o.mul(this.priv).getX() - ) -} -KeyPair$3.prototype.sign = function e(o, _, b) { - return this.ec.sign(o, this, _, b) -} -KeyPair$3.prototype.verify = function e(o, _) { - return this.ec.verify(o, _, this) -} -KeyPair$3.prototype.inspect = function e() { - return ( - '' - ) -} -var BN$2 = bnExports, - utils$f = utils$x, - assert$4 = utils$f.assert -function Signature$3(e, o) { - if (e instanceof Signature$3) return e - this._importDER(e, o) || - (assert$4(e.r && e.s, 'Signature without r or s'), - (this.r = new BN$2(e.r, 16)), - (this.s = new BN$2(e.s, 16)), - e.recoveryParam === void 0 - ? (this.recoveryParam = null) - : (this.recoveryParam = e.recoveryParam)) -} -var signature$2 = Signature$3 -function Position() { - this.place = 0 -} -function getLength(e, o) { - var _ = e[o.place++] - if (!(_ & 128)) return _ - var b = _ & 15 - if (b === 0 || b > 4) return !1 - for (var $ = 0, en = 0, nn = o.place; en < b; en++, nn++) ($ <<= 8), ($ |= e[nn]), ($ >>>= 0) - return $ <= 127 ? !1 : ((o.place = nn), $) -} -function rmPadding(e) { - for (var o = 0, _ = e.length - 1; !e[o] && !(e[o + 1] & 128) && o < _; ) o++ - return o === 0 ? e : e.slice(o) -} -Signature$3.prototype._importDER = function e(o, _) { - o = utils$f.toArray(o, _) - var b = new Position() - if (o[b.place++] !== 48) return !1 - var $ = getLength(o, b) - if ($ === !1 || $ + b.place !== o.length || o[b.place++] !== 2) return !1 - var en = getLength(o, b) - if (en === !1) return !1 - var nn = o.slice(b.place, en + b.place) - if (((b.place += en), o[b.place++] !== 2)) return !1 - var sn = getLength(o, b) - if (sn === !1 || o.length !== sn + b.place) return !1 - var gn = o.slice(b.place, sn + b.place) - if (nn[0] === 0) - if (nn[1] & 128) nn = nn.slice(1) - else return !1 - if (gn[0] === 0) - if (gn[1] & 128) gn = gn.slice(1) - else return !1 - return (this.r = new BN$2(nn)), (this.s = new BN$2(gn)), (this.recoveryParam = null), !0 -} -function constructLength(e, o) { - if (o < 128) { - e.push(o) - return - } - var _ = 1 + ((Math.log(o) / Math.LN2) >>> 3) - for (e.push(_ | 128); --_; ) e.push((o >>> (_ << 3)) & 255) - e.push(o) -} -Signature$3.prototype.toDER = function e(o) { - var _ = this.r.toArray(), - b = this.s.toArray() - for ( - _[0] & 128 && (_ = [0].concat(_)), - b[0] & 128 && (b = [0].concat(b)), - _ = rmPadding(_), - b = rmPadding(b); - !b[0] && !(b[1] & 128); - - ) - b = b.slice(1) - var $ = [2] - constructLength($, _.length), ($ = $.concat(_)), $.push(2), constructLength($, b.length) - var en = $.concat(b), - nn = [48] - return constructLength(nn, en.length), (nn = nn.concat(en)), utils$f.encode(nn, o) -} -var BN$1 = bnExports, - HmacDRBG = hmacDrbg, - utils$e = utils$x, - curves$1 = curves$2, - rand = brorandExports, - assert$3 = utils$e.assert, - KeyPair$2 = key$1, - Signature$2 = signature$2 -function EC(e) { - if (!(this instanceof EC)) return new EC(e) - typeof e == 'string' && - (assert$3(Object.prototype.hasOwnProperty.call(curves$1, e), 'Unknown curve ' + e), - (e = curves$1[e])), - e instanceof curves$1.PresetCurve && (e = { curve: e }), - (this.curve = e.curve.curve), - (this.n = this.curve.n), - (this.nh = this.n.ushrn(1)), - (this.g = this.curve.g), - (this.g = e.curve.g), - this.g.precompute(e.curve.n.bitLength() + 1), - (this.hash = e.hash || e.curve.hash) -} -var ec = EC -EC.prototype.keyPair = function e(o) { - return new KeyPair$2(this, o) -} -EC.prototype.keyFromPrivate = function e(o, _) { - return KeyPair$2.fromPrivate(this, o, _) -} -EC.prototype.keyFromPublic = function e(o, _) { - return KeyPair$2.fromPublic(this, o, _) -} -EC.prototype.genKeyPair = function e(o) { - o || (o = {}) - for ( - var _ = new HmacDRBG({ - hash: this.hash, - pers: o.pers, - persEnc: o.persEnc || 'utf8', - entropy: o.entropy || rand(this.hash.hmacStrength), - entropyEnc: (o.entropy && o.entropyEnc) || 'utf8', - nonce: this.n.toArray(), - }), - b = this.n.byteLength(), - $ = this.n.sub(new BN$1(2)); - ; - - ) { - var en = new BN$1(_.generate(b)) - if (!(en.cmp($) > 0)) return en.iaddn(1), this.keyFromPrivate(en) - } -} -EC.prototype._truncateToN = function e(o, _) { - var b = o.byteLength() * 8 - this.n.bitLength() - return b > 0 && (o = o.ushrn(b)), !_ && o.cmp(this.n) >= 0 ? o.sub(this.n) : o -} -EC.prototype.sign = function e(o, _, b, $) { - typeof b == 'object' && (($ = b), (b = null)), - $ || ($ = {}), - (_ = this.keyFromPrivate(_, b)), - (o = this._truncateToN(new BN$1(o, 16))) - for ( - var en = this.n.byteLength(), - nn = _.getPrivate().toArray('be', en), - sn = o.toArray('be', en), - gn = new HmacDRBG({ - hash: this.hash, - entropy: nn, - nonce: sn, - pers: $.pers, - persEnc: $.persEnc || 'utf8', - }), - In = this.n.sub(new BN$1(1)), - Jn = 0; - ; - Jn++ - ) { - var qn = $.k ? $.k(Jn) : new BN$1(gn.generate(this.n.byteLength())) - if (((qn = this._truncateToN(qn, !0)), !(qn.cmpn(1) <= 0 || qn.cmp(In) >= 0))) { - var Kn = this.g.mul(qn) - if (!Kn.isInfinity()) { - var an = Kn.getX(), - xn = an.umod(this.n) - if (xn.cmpn(0) !== 0) { - var mn = qn.invm(this.n).mul(xn.mul(_.getPrivate()).iadd(o)) - if (((mn = mn.umod(this.n)), mn.cmpn(0) !== 0)) { - var Bn = (Kn.getY().isOdd() ? 1 : 0) | (an.cmp(xn) !== 0 ? 2 : 0) - return ( - $.canonical && mn.cmp(this.nh) > 0 && ((mn = this.n.sub(mn)), (Bn ^= 1)), - new Signature$2({ r: xn, s: mn, recoveryParam: Bn }) - ) - } - } - } - } - } -} -EC.prototype.verify = function e(o, _, b, $) { - ;(o = this._truncateToN(new BN$1(o, 16))), - (b = this.keyFromPublic(b, $)), - (_ = new Signature$2(_, 'hex')) - var en = _.r, - nn = _.s - if (en.cmpn(1) < 0 || en.cmp(this.n) >= 0 || nn.cmpn(1) < 0 || nn.cmp(this.n) >= 0) return !1 - var sn = nn.invm(this.n), - gn = sn.mul(o).umod(this.n), - In = sn.mul(en).umod(this.n), - Jn - return this.curve._maxwellTrick - ? ((Jn = this.g.jmulAdd(gn, b.getPublic(), In)), Jn.isInfinity() ? !1 : Jn.eqXToP(en)) - : ((Jn = this.g.mulAdd(gn, b.getPublic(), In)), - Jn.isInfinity() ? !1 : Jn.getX().umod(this.n).cmp(en) === 0) -} -EC.prototype.recoverPubKey = function (e, o, _, b) { - assert$3((3 & _) === _, 'The recovery param is more than two bits'), (o = new Signature$2(o, b)) - var $ = this.n, - en = new BN$1(e), - nn = o.r, - sn = o.s, - gn = _ & 1, - In = _ >> 1 - if (nn.cmp(this.curve.p.umod(this.curve.n)) >= 0 && In) - throw new Error('Unable to find sencond key candinate') - In ? (nn = this.curve.pointFromX(nn.add(this.curve.n), gn)) : (nn = this.curve.pointFromX(nn, gn)) - var Jn = o.r.invm($), - qn = $.sub(en).mul(Jn).umod($), - Kn = sn.mul(Jn).umod($) - return this.g.mulAdd(qn, nn, Kn) -} -EC.prototype.getKeyRecoveryParam = function (e, o, _, b) { - if (((o = new Signature$2(o, b)), o.recoveryParam !== null)) return o.recoveryParam - for (var $ = 0; $ < 4; $++) { - var en - try { - en = this.recoverPubKey(e, o, $) - } catch { - continue - } - if (en.eq(_)) return $ - } - throw new Error('Unable to find valid recovery factor') -} -var utils$d = utils$x, - assert$2 = utils$d.assert, - parseBytes$2 = utils$d.parseBytes, - cachedProperty$1 = utils$d.cachedProperty -function KeyPair$1(e, o) { - ;(this.eddsa = e), - (this._secret = parseBytes$2(o.secret)), - e.isPoint(o.pub) ? (this._pub = o.pub) : (this._pubBytes = parseBytes$2(o.pub)) -} -KeyPair$1.fromPublic = function e(o, _) { - return _ instanceof KeyPair$1 ? _ : new KeyPair$1(o, { pub: _ }) -} -KeyPair$1.fromSecret = function e(o, _) { - return _ instanceof KeyPair$1 ? _ : new KeyPair$1(o, { secret: _ }) -} -KeyPair$1.prototype.secret = function e() { - return this._secret -} -cachedProperty$1(KeyPair$1, 'pubBytes', function e() { - return this.eddsa.encodePoint(this.pub()) -}) -cachedProperty$1(KeyPair$1, 'pub', function e() { - return this._pubBytes ? this.eddsa.decodePoint(this._pubBytes) : this.eddsa.g.mul(this.priv()) -}) -cachedProperty$1(KeyPair$1, 'privBytes', function e() { - var o = this.eddsa, - _ = this.hash(), - b = o.encodingLength - 1, - $ = _.slice(0, o.encodingLength) - return ($[0] &= 248), ($[b] &= 127), ($[b] |= 64), $ -}) -cachedProperty$1(KeyPair$1, 'priv', function e() { - return this.eddsa.decodeInt(this.privBytes()) -}) -cachedProperty$1(KeyPair$1, 'hash', function e() { - return this.eddsa.hash().update(this.secret()).digest() -}) -cachedProperty$1(KeyPair$1, 'messagePrefix', function e() { - return this.hash().slice(this.eddsa.encodingLength) -}) -KeyPair$1.prototype.sign = function e(o) { - return assert$2(this._secret, 'KeyPair can only verify'), this.eddsa.sign(o, this) -} -KeyPair$1.prototype.verify = function e(o, _) { - return this.eddsa.verify(o, _, this) -} -KeyPair$1.prototype.getSecret = function e(o) { - return assert$2(this._secret, 'KeyPair is public only'), utils$d.encode(this.secret(), o) -} -KeyPair$1.prototype.getPublic = function e(o) { - return utils$d.encode(this.pubBytes(), o) -} -var key = KeyPair$1, - BN = bnExports, - utils$c = utils$x, - assert$1 = utils$c.assert, - cachedProperty = utils$c.cachedProperty, - parseBytes$1 = utils$c.parseBytes -function Signature$1(e, o) { - ;(this.eddsa = e), - typeof o != 'object' && (o = parseBytes$1(o)), - Array.isArray(o) && (o = { R: o.slice(0, e.encodingLength), S: o.slice(e.encodingLength) }), - assert$1(o.R && o.S, 'Signature without R or S'), - e.isPoint(o.R) && (this._R = o.R), - o.S instanceof BN && (this._S = o.S), - (this._Rencoded = Array.isArray(o.R) ? o.R : o.Rencoded), - (this._Sencoded = Array.isArray(o.S) ? o.S : o.Sencoded) -} -cachedProperty(Signature$1, 'S', function e() { - return this.eddsa.decodeInt(this.Sencoded()) -}) -cachedProperty(Signature$1, 'R', function e() { - return this.eddsa.decodePoint(this.Rencoded()) -}) -cachedProperty(Signature$1, 'Rencoded', function e() { - return this.eddsa.encodePoint(this.R()) -}) -cachedProperty(Signature$1, 'Sencoded', function e() { - return this.eddsa.encodeInt(this.S()) -}) -Signature$1.prototype.toBytes = function e() { - return this.Rencoded().concat(this.Sencoded()) -} -Signature$1.prototype.toHex = function e() { - return utils$c.encode(this.toBytes(), 'hex').toUpperCase() -} -var signature$1 = Signature$1, - hash = hash$2, - curves = curves$2, - utils$b = utils$x, - assert = utils$b.assert, - parseBytes = utils$b.parseBytes, - KeyPair = key, - Signature = signature$1 -function EDDSA(e) { - if ((assert(e === 'ed25519', 'only tested with ed25519 so far'), !(this instanceof EDDSA))) - return new EDDSA(e) - ;(e = curves[e].curve), - (this.curve = e), - (this.g = e.g), - this.g.precompute(e.n.bitLength() + 1), - (this.pointClass = e.point().constructor), - (this.encodingLength = Math.ceil(e.n.bitLength() / 8)), - (this.hash = hash.sha512) -} -var eddsa = EDDSA -EDDSA.prototype.sign = function e(o, _) { - o = parseBytes(o) - var b = this.keyFromSecret(_), - $ = this.hashInt(b.messagePrefix(), o), - en = this.g.mul($), - nn = this.encodePoint(en), - sn = this.hashInt(nn, b.pubBytes(), o).mul(b.priv()), - gn = $.add(sn).umod(this.curve.n) - return this.makeSignature({ R: en, S: gn, Rencoded: nn }) -} -EDDSA.prototype.verify = function e(o, _, b) { - ;(o = parseBytes(o)), (_ = this.makeSignature(_)) - var $ = this.keyFromPublic(b), - en = this.hashInt(_.Rencoded(), $.pubBytes(), o), - nn = this.g.mul(_.S()), - sn = _.R().add($.pub().mul(en)) - return sn.eq(nn) -} -EDDSA.prototype.hashInt = function e() { - for (var o = this.hash(), _ = 0; _ < arguments.length; _++) o.update(arguments[_]) - return utils$b.intFromLE(o.digest()).umod(this.curve.n) -} -EDDSA.prototype.keyFromPublic = function e(o) { - return KeyPair.fromPublic(this, o) -} -EDDSA.prototype.keyFromSecret = function e(o) { - return KeyPair.fromSecret(this, o) -} -EDDSA.prototype.makeSignature = function e(o) { - return o instanceof Signature ? o : new Signature(this, o) -} -EDDSA.prototype.encodePoint = function e(o) { - var _ = o.getY().toArray('le', this.encodingLength) - return (_[this.encodingLength - 1] |= o.getX().isOdd() ? 128 : 0), _ -} -EDDSA.prototype.decodePoint = function e(o) { - o = utils$b.parseBytes(o) - var _ = o.length - 1, - b = o.slice(0, _).concat(o[_] & -129), - $ = (o[_] & 128) !== 0, - en = utils$b.intFromLE(b) - return this.curve.pointFromY(en, $) -} -EDDSA.prototype.encodeInt = function e(o) { - return o.toArray('le', this.encodingLength) -} -EDDSA.prototype.decodeInt = function e(o) { - return utils$b.intFromLE(o) -} -EDDSA.prototype.isPoint = function e(o) { - return o instanceof this.pointClass -} -;(function (e) { - var o = e - ;(o.version = require$$0$1.version), - (o.utils = utils$x), - (o.rand = brorandExports), - (o.curve = curve), - (o.curves = curves$2), - (o.ec = ec), - (o.eddsa = eddsa) -})(elliptic) -var secp256k1signature = {} -Object.defineProperty(secp256k1signature, '__esModule', { value: !0 }) -secp256k1signature.ExtendedSecp256k1Signature = secp256k1signature.Secp256k1Signature = void 0 -function trimLeadingNullBytes(e) { - let o = 0 - for (const _ of e) - if (_ === 0) o++ - else break - return e.slice(o) -} -const derTagInteger = 2 -class Secp256k1Signature { - static fromFixedLength(o) { - if (o.length !== 64) - throw new Error( - `Got invalid data length: ${o.length}. Expected 2x 32 bytes for the pair (r, s)`, - ) - return new Secp256k1Signature( - trimLeadingNullBytes(o.slice(0, 32)), - trimLeadingNullBytes(o.slice(32, 64)), - ) - } - static fromDer(o) { - let _ = 0 - if (o[_++] !== 48) throw new Error('Prefix 0x30 expected') - const b = o[_++] - if (o.length - _ !== b) throw new Error('Data length mismatch detected') - if (o[_++] !== derTagInteger) throw new Error('INTEGER tag expected') - const en = o[_++] - if (en >= 128) throw new Error('Decoding length values above 127 not supported') - const nn = o.slice(_, _ + en) - if (((_ += en), o[_++] !== derTagInteger)) throw new Error('INTEGER tag expected') - const gn = o[_++] - if (gn >= 128) throw new Error('Decoding length values above 127 not supported') - const In = o.slice(_, _ + gn) - return (_ += gn), new Secp256k1Signature(trimLeadingNullBytes(nn), trimLeadingNullBytes(In)) - } - constructor(o, _) { - if (o.length > 32 || o.length === 0 || o[0] === 0) - throw new Error('Unsigned integer r must be encoded as unpadded big endian.') - if (_.length > 32 || _.length === 0 || _[0] === 0) - throw new Error('Unsigned integer s must be encoded as unpadded big endian.') - this.data = { r: o, s: _ } - } - r(o) { - if (o === void 0) return this.data.r - { - const _ = o - this.data.r.length - if (_ < 0) throw new Error('Length too small to hold parameter r') - const b = new Uint8Array(_) - return new Uint8Array([...b, ...this.data.r]) - } - } - s(o) { - if (o === void 0) return this.data.s - { - const _ = o - this.data.s.length - if (_ < 0) throw new Error('Length too small to hold parameter s') - const b = new Uint8Array(_) - return new Uint8Array([...b, ...this.data.s]) - } - } - toFixedLength() { - return new Uint8Array([...this.r(32), ...this.s(32)]) - } - toDer() { - const o = this.data.r[0] >= 128 ? new Uint8Array([0, ...this.data.r]) : this.data.r, - _ = this.data.s[0] >= 128 ? new Uint8Array([0, ...this.data.s]) : this.data.s, - b = o.length, - $ = _.length, - en = new Uint8Array([derTagInteger, b, ...o, derTagInteger, $, ..._]) - return new Uint8Array([48, en.length, ...en]) - } -} -secp256k1signature.Secp256k1Signature = Secp256k1Signature -class ExtendedSecp256k1Signature extends Secp256k1Signature { - static fromFixedLength(o) { - if (o.length !== 65) - throw new Error(`Got invalid data length ${o.length}. Expected 32 + 32 + 1`) - return new ExtendedSecp256k1Signature( - trimLeadingNullBytes(o.slice(0, 32)), - trimLeadingNullBytes(o.slice(32, 64)), - o[64], - ) - } - constructor(o, _, b) { - if ((super(o, _), !Number.isInteger(b))) - throw new Error('The recovery parameter must be an integer.') - if (b < 0 || b > 4) throw new Error('The recovery parameter must be one of 0, 1, 2, 3.') - this.recovery = b - } - toFixedLength() { - return new Uint8Array([...this.r(32), ...this.s(32), this.recovery]) - } -} -secp256k1signature.ExtendedSecp256k1Signature = ExtendedSecp256k1Signature -var __importDefault$e = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(secp256k1$2, '__esModule', { value: !0 }) -secp256k1$2.Secp256k1 = void 0 -const encoding_1$r = build$b, - bn_js_1 = __importDefault$e(bnExports$1), - elliptic_1 = __importDefault$e(elliptic), - secp256k1signature_1 = secp256k1signature, - secp256k1 = new elliptic_1.default.ec('secp256k1'), - secp256k1N = new bn_js_1.default( - 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141', - 'hex', - ) -class Secp256k1 { - static async makeKeypair(o) { - if (o.length !== 32) throw new Error('input data is not a valid secp256k1 private key') - const _ = secp256k1.keyFromPrivate(o) - if (_.validate().result !== !0) - throw new Error('input data is not a valid secp256k1 private key') - if (new bn_js_1.default(o).gte(secp256k1N)) - throw new Error('input data is not a valid secp256k1 private key') - return { - privkey: (0, encoding_1$r.fromHex)(_.getPrivate('hex')), - pubkey: Uint8Array.from(_.getPublic('array')), - } - } - static async createSignature(o, _) { - if (o.length === 0) throw new Error('Message hash must not be empty') - if (o.length > 32) throw new Error('Message hash length must not exceed 32 bytes') - const b = secp256k1.keyFromPrivate(_), - { r: $, s: en, recoveryParam: nn } = b.sign(o, { canonical: !0 }) - if (typeof nn != 'number') throw new Error('Recovery param missing') - return new secp256k1signature_1.ExtendedSecp256k1Signature( - Uint8Array.from($.toArray()), - Uint8Array.from(en.toArray()), - nn, - ) - } - static async verifySignature(o, _, b) { - if (_.length === 0) throw new Error('Message hash must not be empty') - if (_.length > 32) throw new Error('Message hash length must not exceed 32 bytes') - const $ = secp256k1.keyFromPublic(b) - try { - return $.verify(_, o.toDer()) - } catch { - return !1 - } - } - static recoverPubkey(o, _) { - const b = { r: (0, encoding_1$r.toHex)(o.r()), s: (0, encoding_1$r.toHex)(o.s()) }, - $ = secp256k1.recoverPubKey(_, b, o.recovery), - en = secp256k1.keyFromPublic($) - return (0, encoding_1$r.fromHex)(en.getPublic(!1, 'hex')) - } - static compressPubkey(o) { - switch (o.length) { - case 33: - return o - case 65: - return Uint8Array.from(secp256k1.keyFromPublic(o).getPublic(!0, 'array')) - default: - throw new Error('Invalid pubkey length') - } - } - static uncompressPubkey(o) { - switch (o.length) { - case 33: - return Uint8Array.from(secp256k1.keyFromPublic(o).getPublic(!1, 'array')) - case 65: - return o - default: - throw new Error('Invalid pubkey length') - } - } - static trimRecoveryByte(o) { - switch (o.length) { - case 64: - return o - case 65: - return o.slice(0, 64) - default: - throw new Error('Invalid signature length') - } - } -} -secp256k1$2.Secp256k1 = Secp256k1 -var slip10 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (mn) { - return mn && mn.__esModule ? mn : { default: mn } - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.stringToPath = - e.pathToString = - e.Slip10 = - e.Slip10RawIndex = - e.slip10CurveFromString = - e.Slip10Curve = - void 0) - const _ = build$b, - b = build$a, - $ = o(bnExports$1), - en = o(elliptic), - nn = hmac$1, - sn = sha$1 - var gn - ;(function (mn) { - ;(mn.Secp256k1 = 'Bitcoin seed'), (mn.Ed25519 = 'ed25519 seed') - })((gn = e.Slip10Curve || (e.Slip10Curve = {}))) - function In(mn) { - switch (mn) { - case gn.Ed25519: - return gn.Ed25519 - case gn.Secp256k1: - return gn.Secp256k1 - default: - throw new Error(`Unknown curve string: '${mn}'`) - } - } - e.slip10CurveFromString = In - class Jn extends b.Uint32 { - static hardened(Bn) { - return new Jn(Bn + 2 ** 31) - } - static normal(Bn) { - return new Jn(Bn) - } - isHardened() { - return this.data >= 2 ** 31 - } - } - e.Slip10RawIndex = Jn - const qn = new en.default.ec('secp256k1') - class Kn { - static derivePath(Bn, kn, ln) { - let yn = this.master(Bn, kn) - for (const Cn of ln) yn = this.child(Bn, yn.privkey, yn.chainCode, Cn) - return yn - } - static master(Bn, kn) { - const ln = new nn.Hmac(sn.Sha512, (0, _.toAscii)(Bn)).update(kn).digest(), - yn = ln.slice(0, 32), - Cn = ln.slice(32, 64) - return Bn !== gn.Ed25519 && (this.isZero(yn) || this.isGteN(Bn, yn)) - ? this.master(Bn, ln) - : { chainCode: Cn, privkey: yn } - } - static child(Bn, kn, ln, yn) { - let Cn - if (yn.isHardened()) { - const Tn = new Uint8Array([0, ...kn, ...yn.toBytesBigEndian()]) - Cn = new nn.Hmac(sn.Sha512, ln).update(Tn).digest() - } else { - if (Bn === gn.Ed25519) throw new Error('Normal keys are not allowed with ed25519') - { - const Tn = new Uint8Array([ - ...Kn.serializedPoint(Bn, new $.default(kn)), - ...yn.toBytesBigEndian(), - ]) - Cn = new nn.Hmac(sn.Sha512, ln).update(Tn).digest() - } - } - return this.childImpl(Bn, kn, ln, yn, Cn) - } - static serializedPoint(Bn, kn) { - switch (Bn) { - case gn.Secp256k1: - return (0, _.fromHex)(qn.g.mul(kn).encodeCompressed('hex')) - default: - throw new Error('curve not supported') - } - } - static childImpl(Bn, kn, ln, yn, Cn) { - const Tn = Cn.slice(0, 32), - Gn = Cn.slice(32, 64), - Sn = Gn - if (Bn === gn.Ed25519) return { chainCode: Sn, privkey: Tn } - const Zn = this.n(Bn), - tn = new $.default(Tn).add(new $.default(kn)).mod(Zn), - En = Uint8Array.from(tn.toArray('be', 32)) - if (this.isGteN(Bn, Tn) || this.isZero(En)) { - const Mn = new nn.Hmac(sn.Sha512, ln) - .update(new Uint8Array([1, ...Gn, ...yn.toBytesBigEndian()])) - .digest() - return this.childImpl(Bn, kn, ln, yn, Mn) - } - return { chainCode: Sn, privkey: En } - } - static isZero(Bn) { - return Bn.every((kn) => kn === 0) - } - static isGteN(Bn, kn) { - return new $.default(kn).gte(this.n(Bn)) - } - static n(Bn) { - switch (Bn) { - case gn.Secp256k1: - return new $.default( - 'FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141', - 16, - ) - default: - throw new Error('curve not supported') - } - } - } - e.Slip10 = Kn - function an(mn) { - return mn.reduce((Bn, kn) => { - const ln = kn.isHardened() ? `${kn.toNumber() - 2147483648}'` : kn.toString() - return Bn + '/' + ln - }, 'm') - } - e.pathToString = an - function xn(mn) { - if (!mn.startsWith('m')) throw new Error("Path string must start with 'm'") - let Bn = mn.slice(1) - const kn = new Array() - for (; Bn; ) { - const ln = Bn.match(/^\/([0-9]+)('?)/) - if (!ln) throw new Error('Syntax error while reading path component') - const [yn, Cn, Tn] = ln, - Gn = b.Uint53.fromString(Cn).toNumber() - if (Gn >= 2 ** 31) throw new Error('Component value too high. Must not exceed 2**31-1.') - Tn ? kn.push(Jn.hardened(Gn)) : kn.push(Jn.normal(Gn)), (Bn = Bn.slice(yn.length)) - } - return kn - } - e.stringToPath = xn -})(slip10) -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.stringToPath = - e.Slip10RawIndex = - e.slip10CurveFromString = - e.Slip10Curve = - e.Slip10 = - e.pathToString = - e.sha512 = - e.Sha512 = - e.sha256 = - e.Sha256 = - e.Secp256k1Signature = - e.ExtendedSecp256k1Signature = - e.Secp256k1 = - e.ripemd160 = - e.Ripemd160 = - e.Random = - e.Xchacha20poly1305Ietf = - e.xchacha20NonceLength = - e.isArgon2idOptions = - e.Ed25519Keypair = - e.Ed25519 = - e.Argon2id = - e.keccak256 = - e.Keccak256 = - e.Hmac = - e.EnglishMnemonic = - e.Bip39 = - void 0) - var o = bip39 - Object.defineProperty(e, 'Bip39', { - enumerable: !0, - get: function () { - return o.Bip39 - }, - }), - Object.defineProperty(e, 'EnglishMnemonic', { - enumerable: !0, - get: function () { - return o.EnglishMnemonic - }, - }) - var _ = hmac$1 - Object.defineProperty(e, 'Hmac', { - enumerable: !0, - get: function () { - return _.Hmac - }, - }) - var b = keccak - Object.defineProperty(e, 'Keccak256', { - enumerable: !0, - get: function () { - return b.Keccak256 - }, - }), - Object.defineProperty(e, 'keccak256', { - enumerable: !0, - get: function () { - return b.keccak256 - }, - }) - var $ = libsodium - Object.defineProperty(e, 'Argon2id', { - enumerable: !0, - get: function () { - return $.Argon2id - }, - }), - Object.defineProperty(e, 'Ed25519', { - enumerable: !0, - get: function () { - return $.Ed25519 - }, - }), - Object.defineProperty(e, 'Ed25519Keypair', { - enumerable: !0, - get: function () { - return $.Ed25519Keypair - }, - }), - Object.defineProperty(e, 'isArgon2idOptions', { - enumerable: !0, - get: function () { - return $.isArgon2idOptions - }, - }), - Object.defineProperty(e, 'xchacha20NonceLength', { - enumerable: !0, - get: function () { - return $.xchacha20NonceLength - }, - }), - Object.defineProperty(e, 'Xchacha20poly1305Ietf', { - enumerable: !0, - get: function () { - return $.Xchacha20poly1305Ietf - }, - }) - var en = random - Object.defineProperty(e, 'Random', { - enumerable: !0, - get: function () { - return en.Random - }, - }) - var nn = ripemd$1 - Object.defineProperty(e, 'Ripemd160', { - enumerable: !0, - get: function () { - return nn.Ripemd160 - }, - }), - Object.defineProperty(e, 'ripemd160', { - enumerable: !0, - get: function () { - return nn.ripemd160 - }, - }) - var sn = secp256k1$2 - Object.defineProperty(e, 'Secp256k1', { - enumerable: !0, - get: function () { - return sn.Secp256k1 - }, - }) - var gn = secp256k1signature - Object.defineProperty(e, 'ExtendedSecp256k1Signature', { - enumerable: !0, - get: function () { - return gn.ExtendedSecp256k1Signature - }, - }), - Object.defineProperty(e, 'Secp256k1Signature', { - enumerable: !0, - get: function () { - return gn.Secp256k1Signature - }, - }) - var In = sha$1 - Object.defineProperty(e, 'Sha256', { - enumerable: !0, - get: function () { - return In.Sha256 - }, - }), - Object.defineProperty(e, 'sha256', { - enumerable: !0, - get: function () { - return In.sha256 - }, - }), - Object.defineProperty(e, 'Sha512', { - enumerable: !0, - get: function () { - return In.Sha512 - }, - }), - Object.defineProperty(e, 'sha512', { - enumerable: !0, - get: function () { - return In.sha512 - }, - }) - var Jn = slip10 - Object.defineProperty(e, 'pathToString', { - enumerable: !0, - get: function () { - return Jn.pathToString - }, - }), - Object.defineProperty(e, 'Slip10', { - enumerable: !0, - get: function () { - return Jn.Slip10 - }, - }), - Object.defineProperty(e, 'Slip10Curve', { - enumerable: !0, - get: function () { - return Jn.Slip10Curve - }, - }), - Object.defineProperty(e, 'slip10CurveFromString', { - enumerable: !0, - get: function () { - return Jn.slip10CurveFromString - }, - }), - Object.defineProperty(e, 'Slip10RawIndex', { - enumerable: !0, - get: function () { - return Jn.Slip10RawIndex - }, - }), - Object.defineProperty(e, 'stringToPath', { - enumerable: !0, - get: function () { - return Jn.stringToPath - }, - }) -})(build$6) -var encoding = {}, - pubkeys = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.isMultisigThresholdPubkey = - e.isSinglePubkey = - e.pubkeyType = - e.isSecp256k1Pubkey = - e.isEd25519Pubkey = - void 0) - function o(en) { - return en.type === 'tendermint/PubKeyEd25519' - } - e.isEd25519Pubkey = o - function _(en) { - return en.type === 'tendermint/PubKeySecp256k1' - } - ;(e.isSecp256k1Pubkey = _), - (e.pubkeyType = { - secp256k1: 'tendermint/PubKeySecp256k1', - ed25519: 'tendermint/PubKeyEd25519', - sr25519: 'tendermint/PubKeySr25519', - multisigThreshold: 'tendermint/PubKeyMultisigThreshold', - }) - function b(en) { - return [e.pubkeyType.ed25519, e.pubkeyType.secp256k1, e.pubkeyType.sr25519].includes(en.type) - } - e.isSinglePubkey = b - function $(en) { - return en.type === 'tendermint/PubKeyMultisigThreshold' - } - e.isMultisigThresholdPubkey = $ -})(pubkeys) -Object.defineProperty(encoding, '__esModule', { value: !0 }) -encoding.encodeBech32Pubkey = - encoding.encodeAminoPubkey = - encoding.decodeBech32Pubkey = - encoding.decodeAminoPubkey = - encoding.encodeEd25519Pubkey = - encoding.encodeSecp256k1Pubkey = - void 0 -const encoding_1$q = build$b, - math_1$e = build$a, - utils_1$e = build$5, - pubkeys_1$2 = pubkeys -function encodeSecp256k1Pubkey(e) { - if (e.length !== 33 || (e[0] !== 2 && e[0] !== 3)) - throw new Error( - 'Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03', - ) - return { type: pubkeys_1$2.pubkeyType.secp256k1, value: (0, encoding_1$q.toBase64)(e) } -} -encoding.encodeSecp256k1Pubkey = encodeSecp256k1Pubkey -function encodeEd25519Pubkey(e) { - if (e.length !== 32) throw new Error('Ed25519 public key must be 32 bytes long') - return { type: pubkeys_1$2.pubkeyType.ed25519, value: (0, encoding_1$q.toBase64)(e) } -} -encoding.encodeEd25519Pubkey = encodeEd25519Pubkey -const pubkeyAminoPrefixSecp256k1 = (0, encoding_1$q.fromHex)('eb5ae98721'), - pubkeyAminoPrefixEd25519 = (0, encoding_1$q.fromHex)('1624de6420'), - pubkeyAminoPrefixSr25519 = (0, encoding_1$q.fromHex)('0dfb100520'), - pubkeyAminoPrefixMultisigThreshold = (0, encoding_1$q.fromHex)('22c1f7e2') -function decodeAminoPubkey(e) { - if ((0, utils_1$e.arrayContentStartsWith)(e, pubkeyAminoPrefixSecp256k1)) { - const o = e.slice(pubkeyAminoPrefixSecp256k1.length) - if (o.length !== 33) - throw new Error('Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).') - return { type: pubkeys_1$2.pubkeyType.secp256k1, value: (0, encoding_1$q.toBase64)(o) } - } else if ((0, utils_1$e.arrayContentStartsWith)(e, pubkeyAminoPrefixEd25519)) { - const o = e.slice(pubkeyAminoPrefixEd25519.length) - if (o.length !== 32) - throw new Error('Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).') - return { type: pubkeys_1$2.pubkeyType.ed25519, value: (0, encoding_1$q.toBase64)(o) } - } else if ((0, utils_1$e.arrayContentStartsWith)(e, pubkeyAminoPrefixSr25519)) { - const o = e.slice(pubkeyAminoPrefixSr25519.length) - if (o.length !== 32) - throw new Error('Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).') - return { type: pubkeys_1$2.pubkeyType.sr25519, value: (0, encoding_1$q.toBase64)(o) } - } else { - if ((0, utils_1$e.arrayContentStartsWith)(e, pubkeyAminoPrefixMultisigThreshold)) - return decodeMultisigPubkey(e) - throw new Error( - 'Unsupported public key type. Amino data starts with: ' + - (0, encoding_1$q.toHex)(e.slice(0, 5)), - ) - } -} -encoding.decodeAminoPubkey = decodeAminoPubkey -function decodeBech32Pubkey(e) { - const { data: o } = (0, encoding_1$q.fromBech32)(e) - return decodeAminoPubkey(o) -} -encoding.decodeBech32Pubkey = decodeBech32Pubkey -function decodeUvarint(e) { - if (e.length < 1) throw new Error("Can't decode varint. EOF") - if (e[0] > 127) - throw new Error( - 'Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.', - ) - return [e[0], 1] -} -function decodeMultisigPubkey(e) { - const o = Array.from(e), - _ = o.splice(0, pubkeyAminoPrefixMultisigThreshold.length) - if (!(0, utils_1$e.arrayContentStartsWith)(_, pubkeyAminoPrefixMultisigThreshold)) - throw new Error('Invalid multisig prefix.') - if (o.shift() != 8) - throw new Error('Invalid multisig data. Expecting 0x08 prefix before threshold.') - const [b, $] = decodeUvarint(o) - o.splice(0, $) - const en = [] - for (; o.length > 0; ) { - if (o.shift() != 18) - throw new Error( - 'Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.', - ) - const [nn, sn] = decodeUvarint(o) - if ((o.splice(0, sn), o.length < nn)) throw new Error('Invalid multisig data length.') - const gn = o.splice(0, nn), - In = decodeAminoPubkey(Uint8Array.from(gn)) - en.push(In) - } - return { - type: pubkeys_1$2.pubkeyType.multisigThreshold, - value: { threshold: b.toString(), pubkeys: en }, - } -} -function encodeUvarint$2(e) { - const o = math_1$e.Uint53.fromString(e.toString()).toNumber() - if (o > 127) - throw new Error( - 'Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.', - ) - return [o] -} -function encodeAminoPubkey(e) { - if ((0, pubkeys_1$2.isMultisigThresholdPubkey)(e)) { - const o = Array.from(pubkeyAminoPrefixMultisigThreshold) - o.push(8), o.push(...encodeUvarint$2(e.value.threshold)) - for (const _ of e.value.pubkeys.map((b) => encodeAminoPubkey(b))) - o.push(18), o.push(...encodeUvarint$2(_.length)), o.push(..._) - return new Uint8Array(o) - } else { - if ((0, pubkeys_1$2.isEd25519Pubkey)(e)) - return new Uint8Array([...pubkeyAminoPrefixEd25519, ...(0, encoding_1$q.fromBase64)(e.value)]) - if ((0, pubkeys_1$2.isSecp256k1Pubkey)(e)) - return new Uint8Array([ - ...pubkeyAminoPrefixSecp256k1, - ...(0, encoding_1$q.fromBase64)(e.value), - ]) - throw new Error('Unsupported pubkey type') - } -} -encoding.encodeAminoPubkey = encodeAminoPubkey -function encodeBech32Pubkey(e, o) { - return (0, encoding_1$q.toBech32)(o, encodeAminoPubkey(e)) -} -encoding.encodeBech32Pubkey = encodeBech32Pubkey -Object.defineProperty(addresses$1, '__esModule', { value: !0 }) -addresses$1.pubkeyToAddress = - addresses$1.pubkeyToRawAddress = - addresses$1.rawSecp256k1PubkeyToRawAddress = - addresses$1.rawEd25519PubkeyToRawAddress = - void 0 -const crypto_1$9 = build$6, - encoding_1$p = build$b, - encoding_2$1 = encoding, - pubkeys_1$1 = pubkeys -function rawEd25519PubkeyToRawAddress$1(e) { - if (e.length !== 32) throw new Error(`Invalid Ed25519 pubkey length: ${e.length}`) - return (0, crypto_1$9.sha256)(e).slice(0, 20) -} -addresses$1.rawEd25519PubkeyToRawAddress = rawEd25519PubkeyToRawAddress$1 -function rawSecp256k1PubkeyToRawAddress$1(e) { - if (e.length !== 33) throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`) - return (0, crypto_1$9.ripemd160)((0, crypto_1$9.sha256)(e)) -} -addresses$1.rawSecp256k1PubkeyToRawAddress = rawSecp256k1PubkeyToRawAddress$1 -function pubkeyToRawAddress$1(e) { - if ((0, pubkeys_1$1.isSecp256k1Pubkey)(e)) { - const o = (0, encoding_1$p.fromBase64)(e.value) - return rawSecp256k1PubkeyToRawAddress$1(o) - } else if ((0, pubkeys_1$1.isEd25519Pubkey)(e)) { - const o = (0, encoding_1$p.fromBase64)(e.value) - return rawEd25519PubkeyToRawAddress$1(o) - } else if ((0, pubkeys_1$1.isMultisigThresholdPubkey)(e)) { - const o = (0, encoding_2$1.encodeAminoPubkey)(e) - return (0, crypto_1$9.sha256)(o).slice(0, 20) - } else throw new Error('Unsupported public key type') -} -addresses$1.pubkeyToRawAddress = pubkeyToRawAddress$1 -function pubkeyToAddress$1(e, o) { - return (0, encoding_1$p.toBech32)(o, pubkeyToRawAddress$1(e)) -} -addresses$1.pubkeyToAddress = pubkeyToAddress$1 -var coins$1 = {} -Object.defineProperty(coins$1, '__esModule', { value: !0 }) -coins$1.addCoins = coins$1.parseCoins = coins$1.coins = coins$1.coin = void 0 -const math_1$d = build$a -function coin(e, o) { - let _ - if (typeof e == 'number') - try { - _ = new math_1$d.Uint53(e).toString() - } catch { - throw new Error( - 'Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.', - ) - } - else { - if (!e.match(/^[0-9]+$/)) throw new Error('Invalid unsigned integer string format') - _ = e.replace(/^0*/, '') || '0' - } - return { amount: _, denom: o } -} -coins$1.coin = coin -function coins(e, o) { - return [coin(e, o)] -} -coins$1.coins = coins -function parseCoins(e) { - return e - .replace(/\s/g, '') - .split(',') - .filter(Boolean) - .map((o) => { - const _ = o.match(/^([0-9]+)([a-zA-Z]+)/) - if (!_) throw new Error('Got an invalid coin string') - return { amount: _[1].replace(/^0+/, '') || '0', denom: _[2] } - }) -} -coins$1.parseCoins = parseCoins -function addCoins(e, o) { - if (e.denom !== o.denom) throw new Error('Trying to add two coins with different denoms') - return { - amount: math_1$d.Decimal.fromAtomics(e.amount, 0).plus( - math_1$d.Decimal.fromAtomics(o.amount, 0), - ).atomics, - denom: e.denom, - } -} -coins$1.addCoins = addCoins -var multisig = {} -Object.defineProperty(multisig, '__esModule', { value: !0 }) -multisig.createMultisigThresholdPubkey = multisig.compareArrays = void 0 -const encoding_1$o = build$b, - math_1$c = build$a, - addresses_1$2 = addresses$1 -function compareArrays(e, o) { - const _ = (0, encoding_1$o.toHex)(e), - b = (0, encoding_1$o.toHex)(o) - return _ === b ? 0 : _ < b ? -1 : 1 -} -multisig.compareArrays = compareArrays -function createMultisigThresholdPubkey(e, o, _ = !1) { - const b = new math_1$c.Uint53(o) - if (b.toNumber() > e.length) - throw new Error(`Threshold k = ${b.toNumber()} exceeds number of keys n = ${e.length}`) - const $ = _ - ? e - : Array.from(e).sort((en, nn) => { - const sn = (0, addresses_1$2.pubkeyToRawAddress)(en), - gn = (0, addresses_1$2.pubkeyToRawAddress)(nn) - return compareArrays(sn, gn) - }) - return { - type: 'tendermint/PubKeyMultisigThreshold', - value: { threshold: b.toString(), pubkeys: $ }, - } -} -multisig.createMultisigThresholdPubkey = createMultisigThresholdPubkey -var paths$1 = {} -Object.defineProperty(paths$1, '__esModule', { value: !0 }) -paths$1.makeCosmoshubPath = void 0 -const crypto_1$8 = build$6 -function makeCosmoshubPath$1(e) { - return [ - crypto_1$8.Slip10RawIndex.hardened(44), - crypto_1$8.Slip10RawIndex.hardened(118), - crypto_1$8.Slip10RawIndex.hardened(0), - crypto_1$8.Slip10RawIndex.normal(0), - crypto_1$8.Slip10RawIndex.normal(e), - ] -} -paths$1.makeCosmoshubPath = makeCosmoshubPath$1 -var secp256k1hdwallet = {}, - signature = {} -Object.defineProperty(signature, '__esModule', { value: !0 }) -signature.decodeSignature = signature.encodeSecp256k1Signature = void 0 -const encoding_1$n = build$b, - encoding_2 = encoding, - pubkeys_1 = pubkeys -function encodeSecp256k1Signature(e, o) { - if (o.length !== 64) - throw new Error( - 'Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.', - ) - return { - pub_key: (0, encoding_2.encodeSecp256k1Pubkey)(e), - signature: (0, encoding_1$n.toBase64)(o), - } -} -signature.encodeSecp256k1Signature = encodeSecp256k1Signature -function decodeSignature(e) { - switch (e.pub_key.type) { - case pubkeys_1.pubkeyType.secp256k1: - return { - pubkey: (0, encoding_1$n.fromBase64)(e.pub_key.value), - signature: (0, encoding_1$n.fromBase64)(e.signature), - } - default: - throw new Error('Unsupported pubkey type') - } -} -signature.decodeSignature = decodeSignature -var signdoc = {} -Object.defineProperty(signdoc, '__esModule', { value: !0 }) -signdoc.serializeSignDoc = - signdoc.escapeCharacters = - signdoc.makeSignDoc = - signdoc.sortedJsonStringify = - void 0 -const encoding_1$m = build$b, - math_1$b = build$a -function sortedObject(e) { - if (typeof e != 'object' || e === null) return e - if (Array.isArray(e)) return e.map(sortedObject) - const o = Object.keys(e).sort(), - _ = {} - return ( - o.forEach((b) => { - _[b] = sortedObject(e[b]) - }), - _ - ) -} -function sortedJsonStringify(e) { - return JSON.stringify(sortedObject(e)) -} -signdoc.sortedJsonStringify = sortedJsonStringify -function makeSignDoc$1(e, o, _, b, $, en) { - return { - chain_id: _, - account_number: math_1$b.Uint53.fromString($.toString()).toString(), - sequence: math_1$b.Uint53.fromString(en.toString()).toString(), - fee: o, - msgs: e, - memo: b || '', - } -} -signdoc.makeSignDoc = makeSignDoc$1 -function escapeCharacters(e) { - const o = /&/g, - _ = //g - return e.replace(o, '\\u0026').replace(_, '\\u003c').replace(b, '\\u003e') -} -signdoc.escapeCharacters = escapeCharacters -function serializeSignDoc(e) { - const o = escapeCharacters(sortedJsonStringify(e)) - return (0, encoding_1$m.toUtf8)(o) -} -signdoc.serializeSignDoc = serializeSignDoc -var wallet$1 = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.decrypt = e.encrypt = e.supportedAlgorithms = e.executeKdf = e.cosmjsSalt = void 0) - const o = build$6, - _ = build$b - e.cosmjsSalt = (0, _.toAscii)('The CosmJS salt.') - async function b(nn, sn) { - switch (sn.algorithm) { - case 'argon2id': { - const gn = sn.params - if (!(0, o.isArgon2idOptions)(gn)) throw new Error('Invalid format of argon2id params') - return o.Argon2id.execute(nn, e.cosmjsSalt, gn) - } - default: - throw new Error('Unsupported KDF algorithm') - } - } - ;(e.executeKdf = b), (e.supportedAlgorithms = { xchacha20poly1305Ietf: 'xchacha20poly1305-ietf' }) - async function $(nn, sn, gn) { - switch (gn.algorithm) { - case e.supportedAlgorithms.xchacha20poly1305Ietf: { - const In = o.Random.getBytes(o.xchacha20NonceLength) - return new Uint8Array([...In, ...(await o.Xchacha20poly1305Ietf.encrypt(nn, sn, In))]) - } - default: - throw new Error(`Unsupported encryption algorithm: '${gn.algorithm}'`) - } - } - e.encrypt = $ - async function en(nn, sn, gn) { - switch (gn.algorithm) { - case e.supportedAlgorithms.xchacha20poly1305Ietf: { - const In = nn.slice(0, o.xchacha20NonceLength) - return o.Xchacha20poly1305Ietf.decrypt(nn.slice(o.xchacha20NonceLength), sn, In) - } - default: - throw new Error(`Unsupported encryption algorithm: '${gn.algorithm}'`) - } - } - e.decrypt = en -})(wallet$1) -Object.defineProperty(secp256k1hdwallet, '__esModule', { value: !0 }) -secp256k1hdwallet.Secp256k1HdWallet = secp256k1hdwallet.extractKdfConfiguration = void 0 -const crypto_1$7 = build$6, - encoding_1$l = build$b, - utils_1$d = build$5, - addresses_1$1 = addresses$1, - paths_1 = paths$1, - signature_1$1 = signature, - signdoc_1$1 = signdoc, - wallet_1$1 = wallet$1, - serializationTypeV1$1 = 'secp256k1wallet-v1', - basicPasswordHashingOptions$1 = { - algorithm: 'argon2id', - params: { outputLength: 32, opsLimit: 24, memLimitKib: 12 * 1024 }, - } -function isDerivationJson$1(e) { - return !( - !(0, utils_1$d.isNonNullObject)(e) || - typeof e.hdPath != 'string' || - typeof e.prefix != 'string' - ) -} -function extractKdfConfigurationV1$1(e) { - return e.kdf -} -function extractKdfConfiguration$1(e) { - const o = JSON.parse(e) - if (!(0, utils_1$d.isNonNullObject)(o)) throw new Error('Root document is not an object.') - switch (o.type) { - case serializationTypeV1$1: - return extractKdfConfigurationV1$1(o) - default: - throw new Error('Unsupported serialization type') - } -} -secp256k1hdwallet.extractKdfConfiguration = extractKdfConfiguration$1 -const defaultOptions$1 = { - bip39Password: '', - hdPaths: [(0, paths_1.makeCosmoshubPath)(0)], - prefix: 'cosmos', -} -class Secp256k1HdWallet { - static async fromMnemonic(o, _ = {}) { - const b = new crypto_1$7.EnglishMnemonic(o), - $ = await crypto_1$7.Bip39.mnemonicToSeed(b, _.bip39Password) - return new Secp256k1HdWallet(b, { ..._, seed: $ }) - } - static async generate(o = 12, _ = {}) { - const b = 4 * Math.floor((11 * o) / 33), - $ = crypto_1$7.Random.getBytes(b), - en = crypto_1$7.Bip39.encode($) - return Secp256k1HdWallet.fromMnemonic(en.toString(), _) - } - static async deserialize(o, _) { - const b = JSON.parse(o) - if (!(0, utils_1$d.isNonNullObject)(b)) throw new Error('Root document is not an object.') - switch (b.type) { - case serializationTypeV1$1: - return Secp256k1HdWallet.deserializeTypeV1(o, _) - default: - throw new Error('Unsupported serialization type') - } - } - static async deserializeWithEncryptionKey(o, _) { - const b = JSON.parse(o) - if (!(0, utils_1$d.isNonNullObject)(b)) throw new Error('Root document is not an object.') - const $ = b - switch ($.type) { - case serializationTypeV1$1: { - const en = await (0, wallet_1$1.decrypt)( - (0, encoding_1$l.fromBase64)($.data), - _, - $.encryption, - ), - nn = JSON.parse((0, encoding_1$l.fromUtf8)(en)), - { mnemonic: sn, accounts: gn } = nn - if (((0, utils_1$d.assert)(typeof sn == 'string'), !Array.isArray(gn))) - throw new Error("Property 'accounts' is not an array") - if (!gn.every((qn) => isDerivationJson$1(qn))) - throw new Error('Account is not in the correct format.') - const In = gn[0].prefix - if (!gn.every(({ prefix: qn }) => qn === In)) - throw new Error('Accounts do not all have the same prefix') - const Jn = gn.map(({ hdPath: qn }) => (0, crypto_1$7.stringToPath)(qn)) - return Secp256k1HdWallet.fromMnemonic(sn, { hdPaths: Jn, prefix: In }) - } - default: - throw new Error('Unsupported serialization type') - } - } - static async deserializeTypeV1(o, _) { - const b = JSON.parse(o) - if (!(0, utils_1$d.isNonNullObject)(b)) throw new Error('Root document is not an object.') - const $ = await (0, wallet_1$1.executeKdf)(_, b.kdf) - return Secp256k1HdWallet.deserializeWithEncryptionKey(o, $) - } - constructor(o, _) { - const b = _.hdPaths ?? defaultOptions$1.hdPaths, - $ = _.prefix ?? defaultOptions$1.prefix - ;(this.secret = o), - (this.seed = _.seed), - (this.accounts = b.map((en) => ({ hdPath: en, prefix: $ }))) - } - get mnemonic() { - return this.secret.toString() - } - async getAccounts() { - return (await this.getAccountsWithPrivkeys()).map(({ algo: _, pubkey: b, address: $ }) => ({ - algo: _, - pubkey: b, - address: $, - })) - } - async signAmino(o, _) { - const $ = (await this.getAccountsWithPrivkeys()).find(({ address: Jn }) => Jn === o) - if ($ === void 0) throw new Error(`Address ${o} not found in wallet`) - const { privkey: en, pubkey: nn } = $, - sn = (0, crypto_1$7.sha256)((0, signdoc_1$1.serializeSignDoc)(_)), - gn = await crypto_1$7.Secp256k1.createSignature(sn, en), - In = new Uint8Array([...gn.r(32), ...gn.s(32)]) - return { signed: _, signature: (0, signature_1$1.encodeSecp256k1Signature)(nn, In) } - } - async serialize(o) { - const _ = basicPasswordHashingOptions$1, - b = await (0, wallet_1$1.executeKdf)(o, _) - return this.serializeWithEncryptionKey(b, _) - } - async serializeWithEncryptionKey(o, _) { - const b = { - mnemonic: this.mnemonic, - accounts: this.accounts.map(({ hdPath: gn, prefix: In }) => ({ - hdPath: (0, crypto_1$7.pathToString)(gn), - prefix: In, - })), - }, - $ = (0, encoding_1$l.toUtf8)(JSON.stringify(b)), - en = { algorithm: wallet_1$1.supportedAlgorithms.xchacha20poly1305Ietf }, - nn = await (0, wallet_1$1.encrypt)($, o, en), - sn = { - type: serializationTypeV1$1, - kdf: _, - encryption: en, - data: (0, encoding_1$l.toBase64)(nn), - } - return JSON.stringify(sn) - } - async getKeyPair(o) { - const { privkey: _ } = crypto_1$7.Slip10.derivePath( - crypto_1$7.Slip10Curve.Secp256k1, - this.seed, - o, - ), - { pubkey: b } = await crypto_1$7.Secp256k1.makeKeypair(_) - return { privkey: _, pubkey: crypto_1$7.Secp256k1.compressPubkey(b) } - } - async getAccountsWithPrivkeys() { - return Promise.all( - this.accounts.map(async ({ hdPath: o, prefix: _ }) => { - const { privkey: b, pubkey: $ } = await this.getKeyPair(o), - en = (0, encoding_1$l.toBech32)(_, (0, addresses_1$1.rawSecp256k1PubkeyToRawAddress)($)) - return { algo: 'secp256k1', privkey: b, pubkey: $, address: en } - }), - ) - } -} -secp256k1hdwallet.Secp256k1HdWallet = Secp256k1HdWallet -var secp256k1wallet = {} -Object.defineProperty(secp256k1wallet, '__esModule', { value: !0 }) -secp256k1wallet.Secp256k1Wallet = void 0 -const crypto_1$6 = build$6, - encoding_1$k = build$b, - addresses_1 = addresses$1, - signature_1 = signature, - signdoc_1 = signdoc -class Secp256k1Wallet { - static async fromKey(o, _ = 'cosmos') { - const b = (await crypto_1$6.Secp256k1.makeKeypair(o)).pubkey - return new Secp256k1Wallet(o, crypto_1$6.Secp256k1.compressPubkey(b), _) - } - constructor(o, _, b) { - ;(this.privkey = o), (this.pubkey = _), (this.prefix = b) - } - get address() { - return (0, encoding_1$k.toBech32)( - this.prefix, - (0, addresses_1.rawSecp256k1PubkeyToRawAddress)(this.pubkey), - ) - } - async getAccounts() { - return [{ algo: 'secp256k1', address: this.address, pubkey: this.pubkey }] - } - async signAmino(o, _) { - if (o !== this.address) throw new Error(`Address ${o} not found in wallet`) - const b = new crypto_1$6.Sha256((0, signdoc_1.serializeSignDoc)(_)).digest(), - $ = await crypto_1$6.Secp256k1.createSignature(b, this.privkey), - en = new Uint8Array([...$.r(32), ...$.s(32)]) - return { signed: _, signature: (0, signature_1.encodeSecp256k1Signature)(this.pubkey, en) } - } -} -secp256k1wallet.Secp256k1Wallet = Secp256k1Wallet -var stdtx = {} -Object.defineProperty(stdtx, '__esModule', { value: !0 }) -stdtx.makeStdTx = stdtx.isStdTx = void 0 -function isStdTx(e) { - const { memo: o, msg: _, fee: b, signatures: $ } = e - return typeof o == 'string' && Array.isArray(_) && typeof b == 'object' && Array.isArray($) -} -stdtx.isStdTx = isStdTx -function makeStdTx(e, o) { - return { msg: e.msgs, fee: e.fee, memo: e.memo, signatures: Array.isArray(o) ? o : [o] } -} -stdtx.makeStdTx = makeStdTx -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.executeKdf = - e.makeStdTx = - e.isStdTx = - e.serializeSignDoc = - e.makeSignDoc = - e.encodeSecp256k1Signature = - e.decodeSignature = - e.Secp256k1Wallet = - e.Secp256k1HdWallet = - e.extractKdfConfiguration = - e.pubkeyType = - e.isSinglePubkey = - e.isSecp256k1Pubkey = - e.isMultisigThresholdPubkey = - e.isEd25519Pubkey = - e.makeCosmoshubPath = - e.createMultisigThresholdPubkey = - e.encodeSecp256k1Pubkey = - e.encodeEd25519Pubkey = - e.encodeBech32Pubkey = - e.encodeAminoPubkey = - e.decodeBech32Pubkey = - e.decodeAminoPubkey = - e.parseCoins = - e.coins = - e.coin = - e.addCoins = - e.rawSecp256k1PubkeyToRawAddress = - e.rawEd25519PubkeyToRawAddress = - e.pubkeyToRawAddress = - e.pubkeyToAddress = - void 0) - var o = addresses$1 - Object.defineProperty(e, 'pubkeyToAddress', { - enumerable: !0, - get: function () { - return o.pubkeyToAddress - }, - }), - Object.defineProperty(e, 'pubkeyToRawAddress', { - enumerable: !0, - get: function () { - return o.pubkeyToRawAddress - }, - }), - Object.defineProperty(e, 'rawEd25519PubkeyToRawAddress', { - enumerable: !0, - get: function () { - return o.rawEd25519PubkeyToRawAddress - }, - }), - Object.defineProperty(e, 'rawSecp256k1PubkeyToRawAddress', { - enumerable: !0, - get: function () { - return o.rawSecp256k1PubkeyToRawAddress - }, - }) - var _ = coins$1 - Object.defineProperty(e, 'addCoins', { - enumerable: !0, - get: function () { - return _.addCoins - }, - }), - Object.defineProperty(e, 'coin', { - enumerable: !0, - get: function () { - return _.coin - }, - }), - Object.defineProperty(e, 'coins', { - enumerable: !0, - get: function () { - return _.coins - }, - }), - Object.defineProperty(e, 'parseCoins', { - enumerable: !0, - get: function () { - return _.parseCoins - }, - }) - var b = encoding - Object.defineProperty(e, 'decodeAminoPubkey', { - enumerable: !0, - get: function () { - return b.decodeAminoPubkey - }, - }), - Object.defineProperty(e, 'decodeBech32Pubkey', { - enumerable: !0, - get: function () { - return b.decodeBech32Pubkey - }, - }), - Object.defineProperty(e, 'encodeAminoPubkey', { - enumerable: !0, - get: function () { - return b.encodeAminoPubkey - }, - }), - Object.defineProperty(e, 'encodeBech32Pubkey', { - enumerable: !0, - get: function () { - return b.encodeBech32Pubkey - }, - }), - Object.defineProperty(e, 'encodeEd25519Pubkey', { - enumerable: !0, - get: function () { - return b.encodeEd25519Pubkey - }, - }), - Object.defineProperty(e, 'encodeSecp256k1Pubkey', { - enumerable: !0, - get: function () { - return b.encodeSecp256k1Pubkey - }, - }) - var $ = multisig - Object.defineProperty(e, 'createMultisigThresholdPubkey', { - enumerable: !0, - get: function () { - return $.createMultisigThresholdPubkey - }, - }) - var en = paths$1 - Object.defineProperty(e, 'makeCosmoshubPath', { - enumerable: !0, - get: function () { - return en.makeCosmoshubPath - }, - }) - var nn = pubkeys - Object.defineProperty(e, 'isEd25519Pubkey', { - enumerable: !0, - get: function () { - return nn.isEd25519Pubkey - }, - }), - Object.defineProperty(e, 'isMultisigThresholdPubkey', { - enumerable: !0, - get: function () { - return nn.isMultisigThresholdPubkey - }, - }), - Object.defineProperty(e, 'isSecp256k1Pubkey', { - enumerable: !0, - get: function () { - return nn.isSecp256k1Pubkey - }, - }), - Object.defineProperty(e, 'isSinglePubkey', { - enumerable: !0, - get: function () { - return nn.isSinglePubkey - }, - }), - Object.defineProperty(e, 'pubkeyType', { - enumerable: !0, - get: function () { - return nn.pubkeyType - }, - }) - var sn = secp256k1hdwallet - Object.defineProperty(e, 'extractKdfConfiguration', { - enumerable: !0, - get: function () { - return sn.extractKdfConfiguration - }, - }), - Object.defineProperty(e, 'Secp256k1HdWallet', { - enumerable: !0, - get: function () { - return sn.Secp256k1HdWallet - }, - }) - var gn = secp256k1wallet - Object.defineProperty(e, 'Secp256k1Wallet', { - enumerable: !0, - get: function () { - return gn.Secp256k1Wallet - }, - }) - var In = signature - Object.defineProperty(e, 'decodeSignature', { - enumerable: !0, - get: function () { - return In.decodeSignature - }, - }), - Object.defineProperty(e, 'encodeSecp256k1Signature', { - enumerable: !0, - get: function () { - return In.encodeSecp256k1Signature - }, - }) - var Jn = signdoc - Object.defineProperty(e, 'makeSignDoc', { - enumerable: !0, - get: function () { - return Jn.makeSignDoc - }, - }), - Object.defineProperty(e, 'serializeSignDoc', { - enumerable: !0, - get: function () { - return Jn.serializeSignDoc - }, - }) - var qn = stdtx - Object.defineProperty(e, 'isStdTx', { - enumerable: !0, - get: function () { - return qn.isStdTx - }, - }), - Object.defineProperty(e, 'makeStdTx', { - enumerable: !0, - get: function () { - return qn.makeStdTx - }, - }) - var Kn = wallet$1 - Object.defineProperty(e, 'executeKdf', { - enumerable: !0, - get: function () { - return Kn.executeKdf - }, - }) -})(build$7) -var signing = {}, - long$2 = Long$2, - wasm$2 = null -try { - wasm$2 = new WebAssembly.Instance( - new WebAssembly.Module( - new Uint8Array([ - 0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, - 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, - 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, - 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, - 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, - 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, - 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, - ]), - ), - {}, - ).exports -} catch (e) {} -function Long$2(e, o, _) { - ;(this.low = e | 0), (this.high = o | 0), (this.unsigned = !!_) -} -Long$2.prototype.__isLong__ -Object.defineProperty(Long$2.prototype, '__isLong__', { value: !0 }) -function isLong$2(e) { - return (e && e.__isLong__) === !0 -} -Long$2.isLong = isLong$2 -var INT_CACHE$2 = {}, - UINT_CACHE$2 = {} -function fromInt$2(e, o) { - var _, b, $ - return o - ? ((e >>>= 0), - ($ = 0 <= e && e < 256) && ((b = UINT_CACHE$2[e]), b) - ? b - : ((_ = fromBits$2(e, (e | 0) < 0 ? -1 : 0, !0)), $ && (UINT_CACHE$2[e] = _), _)) - : ((e |= 0), - ($ = -128 <= e && e < 128) && ((b = INT_CACHE$2[e]), b) - ? b - : ((_ = fromBits$2(e, e < 0 ? -1 : 0, !1)), $ && (INT_CACHE$2[e] = _), _)) -} -Long$2.fromInt = fromInt$2 -function fromNumber$2(e, o) { - if (isNaN(e)) return o ? UZERO$2 : ZERO$2 - if (o) { - if (e < 0) return UZERO$2 - if (e >= TWO_PWR_64_DBL$2) return MAX_UNSIGNED_VALUE$2 - } else { - if (e <= -TWO_PWR_63_DBL$2) return MIN_VALUE$2 - if (e + 1 >= TWO_PWR_63_DBL$2) return MAX_VALUE$2 - } - return e < 0 - ? fromNumber$2(-e, o).neg() - : fromBits$2(e % TWO_PWR_32_DBL$2 | 0, (e / TWO_PWR_32_DBL$2) | 0, o) -} -Long$2.fromNumber = fromNumber$2 -function fromBits$2(e, o, _) { - return new Long$2(e, o, _) -} -Long$2.fromBits = fromBits$2 -var pow_dbl$2 = Math.pow -function fromString$2(e, o, _) { - if (e.length === 0) throw Error('empty string') - if (e === 'NaN' || e === 'Infinity' || e === '+Infinity' || e === '-Infinity') return ZERO$2 - if ((typeof o == 'number' ? ((_ = o), (o = !1)) : (o = !!o), (_ = _ || 10), _ < 2 || 36 < _)) - throw RangeError('radix') - var b - if ((b = e.indexOf('-')) > 0) throw Error('interior hyphen') - if (b === 0) return fromString$2(e.substring(1), o, _).neg() - for (var $ = fromNumber$2(pow_dbl$2(_, 8)), en = ZERO$2, nn = 0; nn < e.length; nn += 8) { - var sn = Math.min(8, e.length - nn), - gn = parseInt(e.substring(nn, nn + sn), _) - if (sn < 8) { - var In = fromNumber$2(pow_dbl$2(_, sn)) - en = en.mul(In).add(fromNumber$2(gn)) - } else (en = en.mul($)), (en = en.add(fromNumber$2(gn))) - } - return (en.unsigned = o), en -} -Long$2.fromString = fromString$2 -function fromValue$2(e, o) { - return typeof e == 'number' - ? fromNumber$2(e, o) - : typeof e == 'string' - ? fromString$2(e, o) - : fromBits$2(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) -} -Long$2.fromValue = fromValue$2 -var TWO_PWR_16_DBL$2 = 1 << 16, - TWO_PWR_24_DBL$2 = 1 << 24, - TWO_PWR_32_DBL$2 = TWO_PWR_16_DBL$2 * TWO_PWR_16_DBL$2, - TWO_PWR_64_DBL$2 = TWO_PWR_32_DBL$2 * TWO_PWR_32_DBL$2, - TWO_PWR_63_DBL$2 = TWO_PWR_64_DBL$2 / 2, - TWO_PWR_24$2 = fromInt$2(TWO_PWR_24_DBL$2), - ZERO$2 = fromInt$2(0) -Long$2.ZERO = ZERO$2 -var UZERO$2 = fromInt$2(0, !0) -Long$2.UZERO = UZERO$2 -var ONE$2 = fromInt$2(1) -Long$2.ONE = ONE$2 -var UONE$2 = fromInt$2(1, !0) -Long$2.UONE = UONE$2 -var NEG_ONE$2 = fromInt$2(-1) -Long$2.NEG_ONE = NEG_ONE$2 -var MAX_VALUE$2 = fromBits$2(-1, 2147483647, !1) -Long$2.MAX_VALUE = MAX_VALUE$2 -var MAX_UNSIGNED_VALUE$2 = fromBits$2(-1, -1, !0) -Long$2.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE$2 -var MIN_VALUE$2 = fromBits$2(0, -2147483648, !1) -Long$2.MIN_VALUE = MIN_VALUE$2 -var LongPrototype$2 = Long$2.prototype -LongPrototype$2.toInt = function e() { - return this.unsigned ? this.low >>> 0 : this.low -} -LongPrototype$2.toNumber = function e() { - return this.unsigned - ? (this.high >>> 0) * TWO_PWR_32_DBL$2 + (this.low >>> 0) - : this.high * TWO_PWR_32_DBL$2 + (this.low >>> 0) -} -LongPrototype$2.toString = function e(o) { - if (((o = o || 10), o < 2 || 36 < o)) throw RangeError('radix') - if (this.isZero()) return '0' - if (this.isNegative()) - if (this.eq(MIN_VALUE$2)) { - var _ = fromNumber$2(o), - b = this.div(_), - $ = b.mul(_).sub(this) - return b.toString(o) + $.toInt().toString(o) - } else return '-' + this.neg().toString(o) - for (var en = fromNumber$2(pow_dbl$2(o, 6), this.unsigned), nn = this, sn = ''; ; ) { - var gn = nn.div(en), - In = nn.sub(gn.mul(en)).toInt() >>> 0, - Jn = In.toString(o) - if (((nn = gn), nn.isZero())) return Jn + sn - for (; Jn.length < 6; ) Jn = '0' + Jn - sn = '' + Jn + sn - } -} -LongPrototype$2.getHighBits = function e() { - return this.high -} -LongPrototype$2.getHighBitsUnsigned = function e() { - return this.high >>> 0 -} -LongPrototype$2.getLowBits = function e() { - return this.low -} -LongPrototype$2.getLowBitsUnsigned = function e() { - return this.low >>> 0 -} -LongPrototype$2.getNumBitsAbs = function e() { - if (this.isNegative()) return this.eq(MIN_VALUE$2) ? 64 : this.neg().getNumBitsAbs() - for (var o = this.high != 0 ? this.high : this.low, _ = 31; _ > 0 && !(o & (1 << _)); _--); - return this.high != 0 ? _ + 33 : _ + 1 -} -LongPrototype$2.isZero = function e() { - return this.high === 0 && this.low === 0 -} -LongPrototype$2.eqz = LongPrototype$2.isZero -LongPrototype$2.isNegative = function e() { - return !this.unsigned && this.high < 0 -} -LongPrototype$2.isPositive = function e() { - return this.unsigned || this.high >= 0 -} -LongPrototype$2.isOdd = function e() { - return (this.low & 1) === 1 -} -LongPrototype$2.isEven = function e() { - return (this.low & 1) === 0 -} -LongPrototype$2.equals = function e(o) { - return ( - isLong$2(o) || (o = fromValue$2(o)), - this.unsigned !== o.unsigned && this.high >>> 31 === 1 && o.high >>> 31 === 1 - ? !1 - : this.high === o.high && this.low === o.low - ) -} -LongPrototype$2.eq = LongPrototype$2.equals -LongPrototype$2.notEquals = function e(o) { - return !this.eq(o) -} -LongPrototype$2.neq = LongPrototype$2.notEquals -LongPrototype$2.ne = LongPrototype$2.notEquals -LongPrototype$2.lessThan = function e(o) { - return this.comp(o) < 0 -} -LongPrototype$2.lt = LongPrototype$2.lessThan -LongPrototype$2.lessThanOrEqual = function e(o) { - return this.comp(o) <= 0 -} -LongPrototype$2.lte = LongPrototype$2.lessThanOrEqual -LongPrototype$2.le = LongPrototype$2.lessThanOrEqual -LongPrototype$2.greaterThan = function e(o) { - return this.comp(o) > 0 -} -LongPrototype$2.gt = LongPrototype$2.greaterThan -LongPrototype$2.greaterThanOrEqual = function e(o) { - return this.comp(o) >= 0 -} -LongPrototype$2.gte = LongPrototype$2.greaterThanOrEqual -LongPrototype$2.ge = LongPrototype$2.greaterThanOrEqual -LongPrototype$2.compare = function e(o) { - if ((isLong$2(o) || (o = fromValue$2(o)), this.eq(o))) return 0 - var _ = this.isNegative(), - b = o.isNegative() - return _ && !b - ? -1 - : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 -} -LongPrototype$2.comp = LongPrototype$2.compare -LongPrototype$2.negate = function e() { - return !this.unsigned && this.eq(MIN_VALUE$2) ? MIN_VALUE$2 : this.not().add(ONE$2) -} -LongPrototype$2.neg = LongPrototype$2.negate -LongPrototype$2.add = function e(o) { - isLong$2(o) || (o = fromValue$2(o)) - var _ = this.high >>> 16, - b = this.high & 65535, - $ = this.low >>> 16, - en = this.low & 65535, - nn = o.high >>> 16, - sn = o.high & 65535, - gn = o.low >>> 16, - In = o.low & 65535, - Jn = 0, - qn = 0, - Kn = 0, - an = 0 - return ( - (an += en + In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ + gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b + sn), - (Jn += qn >>> 16), - (qn &= 65535), - (Jn += _ + nn), - (Jn &= 65535), - fromBits$2((Kn << 16) | an, (Jn << 16) | qn, this.unsigned) - ) -} -LongPrototype$2.subtract = function e(o) { - return isLong$2(o) || (o = fromValue$2(o)), this.add(o.neg()) -} -LongPrototype$2.sub = LongPrototype$2.subtract -LongPrototype$2.multiply = function e(o) { - if (this.isZero()) return ZERO$2 - if ((isLong$2(o) || (o = fromValue$2(o)), wasm$2)) { - var _ = wasm$2.mul(this.low, this.high, o.low, o.high) - return fromBits$2(_, wasm$2.get_high(), this.unsigned) - } - if (o.isZero()) return ZERO$2 - if (this.eq(MIN_VALUE$2)) return o.isOdd() ? MIN_VALUE$2 : ZERO$2 - if (o.eq(MIN_VALUE$2)) return this.isOdd() ? MIN_VALUE$2 : ZERO$2 - if (this.isNegative()) return o.isNegative() ? this.neg().mul(o.neg()) : this.neg().mul(o).neg() - if (o.isNegative()) return this.mul(o.neg()).neg() - if (this.lt(TWO_PWR_24$2) && o.lt(TWO_PWR_24$2)) - return fromNumber$2(this.toNumber() * o.toNumber(), this.unsigned) - var b = this.high >>> 16, - $ = this.high & 65535, - en = this.low >>> 16, - nn = this.low & 65535, - sn = o.high >>> 16, - gn = o.high & 65535, - In = o.low >>> 16, - Jn = o.low & 65535, - qn = 0, - Kn = 0, - an = 0, - xn = 0 - return ( - (xn += nn * Jn), - (an += xn >>> 16), - (xn &= 65535), - (an += en * Jn), - (Kn += an >>> 16), - (an &= 65535), - (an += nn * In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ * Jn), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += en * In), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += nn * gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b * Jn + $ * In + en * gn + nn * sn), - (qn &= 65535), - fromBits$2((an << 16) | xn, (qn << 16) | Kn, this.unsigned) - ) -} -LongPrototype$2.mul = LongPrototype$2.multiply -LongPrototype$2.divide = function e(o) { - if ((isLong$2(o) || (o = fromValue$2(o)), o.isZero())) throw Error('division by zero') - if (wasm$2) { - if (!this.unsigned && this.high === -2147483648 && o.low === -1 && o.high === -1) return this - var _ = (this.unsigned ? wasm$2.div_u : wasm$2.div_s)(this.low, this.high, o.low, o.high) - return fromBits$2(_, wasm$2.get_high(), this.unsigned) - } - if (this.isZero()) return this.unsigned ? UZERO$2 : ZERO$2 - var b, $, en - if (this.unsigned) { - if ((o.unsigned || (o = o.toUnsigned()), o.gt(this))) return UZERO$2 - if (o.gt(this.shru(1))) return UONE$2 - en = UZERO$2 - } else { - if (this.eq(MIN_VALUE$2)) { - if (o.eq(ONE$2) || o.eq(NEG_ONE$2)) return MIN_VALUE$2 - if (o.eq(MIN_VALUE$2)) return ONE$2 - var nn = this.shr(1) - return ( - (b = nn.div(o).shl(1)), - b.eq(ZERO$2) - ? o.isNegative() - ? ONE$2 - : NEG_ONE$2 - : (($ = this.sub(o.mul(b))), (en = b.add($.div(o))), en) - ) - } else if (o.eq(MIN_VALUE$2)) return this.unsigned ? UZERO$2 : ZERO$2 - if (this.isNegative()) return o.isNegative() ? this.neg().div(o.neg()) : this.neg().div(o).neg() - if (o.isNegative()) return this.div(o.neg()).neg() - en = ZERO$2 - } - for ($ = this; $.gte(o); ) { - b = Math.max(1, Math.floor($.toNumber() / o.toNumber())) - for ( - var sn = Math.ceil(Math.log(b) / Math.LN2), - gn = sn <= 48 ? 1 : pow_dbl$2(2, sn - 48), - In = fromNumber$2(b), - Jn = In.mul(o); - Jn.isNegative() || Jn.gt($); - - ) - (b -= gn), (In = fromNumber$2(b, this.unsigned)), (Jn = In.mul(o)) - In.isZero() && (In = ONE$2), (en = en.add(In)), ($ = $.sub(Jn)) - } - return en -} -LongPrototype$2.div = LongPrototype$2.divide -LongPrototype$2.modulo = function e(o) { - if ((isLong$2(o) || (o = fromValue$2(o)), wasm$2)) { - var _ = (this.unsigned ? wasm$2.rem_u : wasm$2.rem_s)(this.low, this.high, o.low, o.high) - return fromBits$2(_, wasm$2.get_high(), this.unsigned) - } - return this.sub(this.div(o).mul(o)) -} -LongPrototype$2.mod = LongPrototype$2.modulo -LongPrototype$2.rem = LongPrototype$2.modulo -LongPrototype$2.not = function e() { - return fromBits$2(~this.low, ~this.high, this.unsigned) -} -LongPrototype$2.and = function e(o) { - return ( - isLong$2(o) || (o = fromValue$2(o)), - fromBits$2(this.low & o.low, this.high & o.high, this.unsigned) - ) -} -LongPrototype$2.or = function e(o) { - return ( - isLong$2(o) || (o = fromValue$2(o)), - fromBits$2(this.low | o.low, this.high | o.high, this.unsigned) - ) -} -LongPrototype$2.xor = function e(o) { - return ( - isLong$2(o) || (o = fromValue$2(o)), - fromBits$2(this.low ^ o.low, this.high ^ o.high, this.unsigned) - ) -} -LongPrototype$2.shiftLeft = function e(o) { - return ( - isLong$2(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits$2(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits$2(0, this.low << (o - 32), this.unsigned) - ) -} -LongPrototype$2.shl = LongPrototype$2.shiftLeft -LongPrototype$2.shiftRight = function e(o) { - return ( - isLong$2(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits$2((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits$2(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) - ) -} -LongPrototype$2.shr = LongPrototype$2.shiftRight -LongPrototype$2.shiftRightUnsigned = function e(o) { - if ((isLong$2(o) && (o = o.toInt()), (o &= 63), o === 0)) return this - var _ = this.high - if (o < 32) { - var b = this.low - return fromBits$2((b >>> o) | (_ << (32 - o)), _ >>> o, this.unsigned) - } else - return o === 32 ? fromBits$2(_, 0, this.unsigned) : fromBits$2(_ >>> (o - 32), 0, this.unsigned) -} -LongPrototype$2.shru = LongPrototype$2.shiftRightUnsigned -LongPrototype$2.shr_u = LongPrototype$2.shiftRightUnsigned -LongPrototype$2.toSigned = function e() { - return this.unsigned ? fromBits$2(this.low, this.high, !1) : this -} -LongPrototype$2.toUnsigned = function e() { - return this.unsigned ? this : fromBits$2(this.low, this.high, !0) -} -LongPrototype$2.toBytes = function e(o) { - return o ? this.toBytesLE() : this.toBytesBE() -} -LongPrototype$2.toBytesLE = function e() { - var o = this.high, - _ = this.low - return [ - _ & 255, - (_ >>> 8) & 255, - (_ >>> 16) & 255, - _ >>> 24, - o & 255, - (o >>> 8) & 255, - (o >>> 16) & 255, - o >>> 24, - ] -} -LongPrototype$2.toBytesBE = function e() { - var o = this.high, - _ = this.low - return [ - o >>> 24, - (o >>> 16) & 255, - (o >>> 8) & 255, - o & 255, - _ >>> 24, - (_ >>> 16) & 255, - (_ >>> 8) & 255, - _ & 255, - ] -} -Long$2.fromBytes = function e(o, _, b) { - return b ? Long$2.fromBytesLE(o, _) : Long$2.fromBytesBE(o, _) -} -Long$2.fromBytesLE = function e(o, _) { - return new Long$2( - o[0] | (o[1] << 8) | (o[2] << 16) | (o[3] << 24), - o[4] | (o[5] << 8) | (o[6] << 16) | (o[7] << 24), - _, - ) -} -Long$2.fromBytesBE = function e(o, _) { - return new Long$2( - (o[4] << 24) | (o[5] << 16) | (o[6] << 8) | o[7], - (o[0] << 24) | (o[1] << 16) | (o[2] << 8) | o[3], - _, - ) -} -var __importDefault$d = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(signing, '__esModule', { value: !0 }) -signing.makeSignBytes = signing.makeSignDoc = signing.makeAuthInfoBytes = void 0 -const utils_1$c = build$5, - signing_1$4 = signing$1, - tx_1$e = tx$e, - long_1$b = __importDefault$d(long$2) -function makeSignerInfos(e, o) { - return e.map(({ pubkey: _, sequence: b }) => ({ - publicKey: _, - modeInfo: { single: { mode: o } }, - sequence: long_1$b.default.fromNumber(b), - })) -} -function makeAuthInfoBytes(e, o, _, b, $, en = signing_1$4.SignMode.SIGN_MODE_DIRECT) { - ;(0, utils_1$c.assert)( - b === void 0 || typeof b == 'string', - 'feeGranter must be undefined or string', - ), - (0, utils_1$c.assert)( - $ === void 0 || typeof $ == 'string', - 'feePayer must be undefined or string', - ) - const nn = tx_1$e.AuthInfo.fromPartial({ - signerInfos: makeSignerInfos(e, en), - fee: { amount: [...o], gasLimit: long_1$b.default.fromNumber(_), granter: b, payer: $ }, - }) - return tx_1$e.AuthInfo.encode(nn).finish() -} -signing.makeAuthInfoBytes = makeAuthInfoBytes -function makeSignDoc(e, o, _, b) { - return { - bodyBytes: e, - authInfoBytes: o, - chainId: _, - accountNumber: long_1$b.default.fromNumber(b), - } -} -signing.makeSignDoc = makeSignDoc -function makeSignBytes({ accountNumber: e, authInfoBytes: o, bodyBytes: _, chainId: b }) { - const $ = tx_1$e.SignDoc.fromPartial({ - accountNumber: e, - authInfoBytes: o, - bodyBytes: _, - chainId: b, - }) - return tx_1$e.SignDoc.encode($).finish() -} -signing.makeSignBytes = makeSignBytes -var wallet = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.decrypt = e.encrypt = e.supportedAlgorithms = e.executeKdf = e.cosmjsSalt = void 0) - const o = build$6, - _ = build$b - e.cosmjsSalt = (0, _.toAscii)('The CosmJS salt.') - async function b(nn, sn) { - switch (sn.algorithm) { - case 'argon2id': { - const gn = sn.params - if (!(0, o.isArgon2idOptions)(gn)) throw new Error('Invalid format of argon2id params') - return o.Argon2id.execute(nn, e.cosmjsSalt, gn) - } - default: - throw new Error('Unsupported KDF algorithm') - } - } - ;(e.executeKdf = b), (e.supportedAlgorithms = { xchacha20poly1305Ietf: 'xchacha20poly1305-ietf' }) - async function $(nn, sn, gn) { - switch (gn.algorithm) { - case e.supportedAlgorithms.xchacha20poly1305Ietf: { - const In = o.Random.getBytes(o.xchacha20NonceLength) - return new Uint8Array([...In, ...(await o.Xchacha20poly1305Ietf.encrypt(nn, sn, In))]) - } - default: - throw new Error(`Unsupported encryption algorithm: '${gn.algorithm}'`) - } - } - e.encrypt = $ - async function en(nn, sn, gn) { - switch (gn.algorithm) { - case e.supportedAlgorithms.xchacha20poly1305Ietf: { - const In = nn.slice(0, o.xchacha20NonceLength) - return o.Xchacha20poly1305Ietf.decrypt(nn.slice(o.xchacha20NonceLength), sn, In) - } - default: - throw new Error(`Unsupported encryption algorithm: '${gn.algorithm}'`) - } - } - e.decrypt = en -})(wallet) -Object.defineProperty(directsecp256k1hdwallet, '__esModule', { value: !0 }) -directsecp256k1hdwallet.DirectSecp256k1HdWallet = directsecp256k1hdwallet.extractKdfConfiguration = - void 0 -const amino_1$4 = build$7, - crypto_1$5 = build$6, - encoding_1$j = build$b, - utils_1$b = build$5, - signing_1$3 = signing, - wallet_1 = wallet, - serializationTypeV1 = 'directsecp256k1hdwallet-v1', - basicPasswordHashingOptions = { - algorithm: 'argon2id', - params: { outputLength: 32, opsLimit: 24, memLimitKib: 12 * 1024 }, - } -function isDerivationJson(e) { - return !( - !(0, utils_1$b.isNonNullObject)(e) || - typeof e.hdPath != 'string' || - typeof e.prefix != 'string' - ) -} -function extractKdfConfigurationV1(e) { - return e.kdf -} -function extractKdfConfiguration(e) { - const o = JSON.parse(e) - if (!(0, utils_1$b.isNonNullObject)(o)) throw new Error('Root document is not an object.') - switch (o.type) { - case serializationTypeV1: - return extractKdfConfigurationV1(o) - default: - throw new Error('Unsupported serialization type') - } -} -directsecp256k1hdwallet.extractKdfConfiguration = extractKdfConfiguration -const defaultOptions = { - bip39Password: '', - hdPaths: [(0, amino_1$4.makeCosmoshubPath)(0)], - prefix: 'cosmos', -} -class DirectSecp256k1HdWallet { - static async fromMnemonic(o, _ = {}) { - const b = new crypto_1$5.EnglishMnemonic(o), - $ = await crypto_1$5.Bip39.mnemonicToSeed(b, _.bip39Password) - return new DirectSecp256k1HdWallet(b, { ..._, seed: $ }) - } - static async generate(o = 12, _ = {}) { - const b = 4 * Math.floor((11 * o) / 33), - $ = crypto_1$5.Random.getBytes(b), - en = crypto_1$5.Bip39.encode($) - return DirectSecp256k1HdWallet.fromMnemonic(en.toString(), _) - } - static async deserialize(o, _) { - const b = JSON.parse(o) - if (!(0, utils_1$b.isNonNullObject)(b)) throw new Error('Root document is not an object.') - switch (b.type) { - case serializationTypeV1: - return DirectSecp256k1HdWallet.deserializeTypeV1(o, _) - default: - throw new Error('Unsupported serialization type') - } - } - static async deserializeWithEncryptionKey(o, _) { - const b = JSON.parse(o) - if (!(0, utils_1$b.isNonNullObject)(b)) throw new Error('Root document is not an object.') - const $ = b - switch ($.type) { - case serializationTypeV1: { - const en = await (0, wallet_1.decrypt)( - (0, encoding_1$j.fromBase64)($.data), - _, - $.encryption, - ), - nn = JSON.parse((0, encoding_1$j.fromUtf8)(en)), - { mnemonic: sn, accounts: gn } = nn - if (((0, utils_1$b.assert)(typeof sn == 'string'), !Array.isArray(gn))) - throw new Error("Property 'accounts' is not an array") - if (!gn.every((qn) => isDerivationJson(qn))) - throw new Error('Account is not in the correct format.') - const In = gn[0].prefix - if (!gn.every(({ prefix: qn }) => qn === In)) - throw new Error('Accounts do not all have the same prefix') - const Jn = gn.map(({ hdPath: qn }) => (0, crypto_1$5.stringToPath)(qn)) - return DirectSecp256k1HdWallet.fromMnemonic(sn, { hdPaths: Jn, prefix: In }) - } - default: - throw new Error('Unsupported serialization type') - } - } - static async deserializeTypeV1(o, _) { - const b = JSON.parse(o) - if (!(0, utils_1$b.isNonNullObject)(b)) throw new Error('Root document is not an object.') - const $ = await (0, wallet_1.executeKdf)(_, b.kdf) - return DirectSecp256k1HdWallet.deserializeWithEncryptionKey(o, $) - } - constructor(o, _) { - const b = _.prefix ?? defaultOptions.prefix, - $ = _.hdPaths ?? defaultOptions.hdPaths - ;(this.secret = o), - (this.seed = _.seed), - (this.accounts = $.map((en) => ({ hdPath: en, prefix: b }))) - } - get mnemonic() { - return this.secret.toString() - } - async getAccounts() { - return (await this.getAccountsWithPrivkeys()).map(({ algo: _, pubkey: b, address: $ }) => ({ - algo: _, - pubkey: b, - address: $, - })) - } - async signDirect(o, _) { - const $ = (await this.getAccountsWithPrivkeys()).find(({ address: Kn }) => Kn === o) - if ($ === void 0) throw new Error(`Address ${o} not found in wallet`) - const { privkey: en, pubkey: nn } = $, - sn = (0, signing_1$3.makeSignBytes)(_), - gn = (0, crypto_1$5.sha256)(sn), - In = await crypto_1$5.Secp256k1.createSignature(gn, en), - Jn = new Uint8Array([...In.r(32), ...In.s(32)]), - qn = (0, amino_1$4.encodeSecp256k1Signature)(nn, Jn) - return { signed: _, signature: qn } - } - async serialize(o) { - const _ = basicPasswordHashingOptions, - b = await (0, wallet_1.executeKdf)(o, _) - return this.serializeWithEncryptionKey(b, _) - } - async serializeWithEncryptionKey(o, _) { - const b = { - mnemonic: this.mnemonic, - accounts: this.accounts.map(({ hdPath: gn, prefix: In }) => ({ - hdPath: (0, crypto_1$5.pathToString)(gn), - prefix: In, - })), - }, - $ = (0, encoding_1$j.toUtf8)(JSON.stringify(b)), - en = { algorithm: wallet_1.supportedAlgorithms.xchacha20poly1305Ietf }, - nn = await (0, wallet_1.encrypt)($, o, en), - sn = { - type: serializationTypeV1, - kdf: _, - encryption: en, - data: (0, encoding_1$j.toBase64)(nn), - } - return JSON.stringify(sn) - } - async getKeyPair(o) { - const { privkey: _ } = crypto_1$5.Slip10.derivePath( - crypto_1$5.Slip10Curve.Secp256k1, - this.seed, - o, - ), - { pubkey: b } = await crypto_1$5.Secp256k1.makeKeypair(_) - return { privkey: _, pubkey: crypto_1$5.Secp256k1.compressPubkey(b) } - } - async getAccountsWithPrivkeys() { - return Promise.all( - this.accounts.map(async ({ hdPath: o, prefix: _ }) => { - const { privkey: b, pubkey: $ } = await this.getKeyPair(o), - en = (0, encoding_1$j.toBech32)(_, (0, amino_1$4.rawSecp256k1PubkeyToRawAddress)($)) - return { algo: 'secp256k1', privkey: b, pubkey: $, address: en } - }), - ) - } -} -directsecp256k1hdwallet.DirectSecp256k1HdWallet = DirectSecp256k1HdWallet -var directsecp256k1wallet = {} -Object.defineProperty(directsecp256k1wallet, '__esModule', { value: !0 }) -directsecp256k1wallet.DirectSecp256k1Wallet = void 0 -const amino_1$3 = build$7, - crypto_1$4 = build$6, - encoding_1$i = build$b, - signing_1$2 = signing -class DirectSecp256k1Wallet { - static async fromKey(o, _ = 'cosmos') { - const b = (await crypto_1$4.Secp256k1.makeKeypair(o)).pubkey - return new DirectSecp256k1Wallet(o, crypto_1$4.Secp256k1.compressPubkey(b), _) - } - constructor(o, _, b) { - ;(this.privkey = o), (this.pubkey = _), (this.prefix = b) - } - get address() { - return (0, encoding_1$i.toBech32)( - this.prefix, - (0, amino_1$3.rawSecp256k1PubkeyToRawAddress)(this.pubkey), - ) - } - async getAccounts() { - return [{ algo: 'secp256k1', address: this.address, pubkey: this.pubkey }] - } - async signDirect(o, _) { - const b = (0, signing_1$2.makeSignBytes)(_) - if (o !== this.address) throw new Error(`Address ${o} not found in wallet`) - const $ = (0, crypto_1$4.sha256)(b), - en = await crypto_1$4.Secp256k1.createSignature($, this.privkey), - nn = new Uint8Array([...en.r(32), ...en.s(32)]), - sn = (0, amino_1$3.encodeSecp256k1Signature)(this.pubkey, nn) - return { signed: _, signature: sn } - } -} -directsecp256k1wallet.DirectSecp256k1Wallet = DirectSecp256k1Wallet -var paths = {} -Object.defineProperty(paths, '__esModule', { value: !0 }) -paths.makeCosmoshubPath = void 0 -const crypto_1$3 = build$6 -function makeCosmoshubPath(e) { - return [ - crypto_1$3.Slip10RawIndex.hardened(44), - crypto_1$3.Slip10RawIndex.hardened(118), - crypto_1$3.Slip10RawIndex.hardened(0), - crypto_1$3.Slip10RawIndex.normal(0), - crypto_1$3.Slip10RawIndex.normal(e), - ] -} -paths.makeCosmoshubPath = makeCosmoshubPath -var pubkey = {}, - keys$4 = {}, - __createBinding$h = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$h = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$h = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$h(o, e, _) - return __setModuleDefault$h(o, e), o - } -Object.defineProperty(keys$4, '__esModule', { value: !0 }) -keys$4.PrivKey = keys$4.PubKey = keys$4.protobufPackage = void 0 -const _m0$d = __importStar$h(minimalExports), - helpers_1$d = helpers -keys$4.protobufPackage = 'cosmos.crypto.ed25519' -function createBasePubKey$1() { - return { key: new Uint8Array() } -} -keys$4.PubKey = { - encode(e, o = _m0$d.Writer.create()) { - return e.key.length !== 0 && o.uint32(10).bytes(e.key), o - }, - decode(e, o) { - const _ = e instanceof _m0$d.Reader ? e : new _m0$d.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBasePubKey$1() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.key = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - key: (0, helpers_1$d.isSet)(e.key) - ? (0, helpers_1$d.bytesFromBase64)(e.key) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.key !== void 0 && - (o.key = (0, helpers_1$d.base64FromBytes)(e.key !== void 0 ? e.key : new Uint8Array())), - o - ) - }, - fromPartial(e) { - const o = createBasePubKey$1() - return (o.key = e.key ?? new Uint8Array()), o - }, -} -function createBasePrivKey$1() { - return { key: new Uint8Array() } -} -keys$4.PrivKey = { - encode(e, o = _m0$d.Writer.create()) { - return e.key.length !== 0 && o.uint32(10).bytes(e.key), o - }, - decode(e, o) { - const _ = e instanceof _m0$d.Reader ? e : new _m0$d.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBasePrivKey$1() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.key = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - key: (0, helpers_1$d.isSet)(e.key) - ? (0, helpers_1$d.bytesFromBase64)(e.key) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.key !== void 0 && - (o.key = (0, helpers_1$d.base64FromBytes)(e.key !== void 0 ? e.key : new Uint8Array())), - o - ) - }, - fromPartial(e) { - const o = createBasePrivKey$1() - return (o.key = e.key ?? new Uint8Array()), o - }, -} -var keys$3 = {}, - __createBinding$g = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$g = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$g = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$g(o, e, _) - return __setModuleDefault$g(o, e), o - } -Object.defineProperty(keys$3, '__esModule', { value: !0 }) -keys$3.LegacyAminoPubKey = keys$3.protobufPackage = void 0 -const any_1$4 = any, - _m0$c = __importStar$g(minimalExports), - helpers_1$c = helpers -keys$3.protobufPackage = 'cosmos.crypto.multisig' -function createBaseLegacyAminoPubKey() { - return { threshold: 0, publicKeys: [] } -} -keys$3.LegacyAminoPubKey = { - encode(e, o = _m0$c.Writer.create()) { - e.threshold !== 0 && o.uint32(8).uint32(e.threshold) - for (const _ of e.publicKeys) any_1$4.Any.encode(_, o.uint32(18).fork()).ldelim() - return o - }, - decode(e, o) { - const _ = e instanceof _m0$c.Reader ? e : new _m0$c.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseLegacyAminoPubKey() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.threshold = _.uint32() - break - case 2: - $.publicKeys.push(any_1$4.Any.decode(_, _.uint32())) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - threshold: (0, helpers_1$c.isSet)(e.threshold) ? Number(e.threshold) : 0, - publicKeys: Array.isArray(e?.publicKeys) - ? e.publicKeys.map((o) => any_1$4.Any.fromJSON(o)) - : [], - } - }, - toJSON(e) { - const o = {} - return ( - e.threshold !== void 0 && (o.threshold = Math.round(e.threshold)), - e.publicKeys - ? (o.publicKeys = e.publicKeys.map((_) => (_ ? any_1$4.Any.toJSON(_) : void 0))) - : (o.publicKeys = []), - o - ) - }, - fromPartial(e) { - const o = createBaseLegacyAminoPubKey() - return ( - (o.threshold = e.threshold ?? 0), - (o.publicKeys = e.publicKeys?.map((_) => any_1$4.Any.fromPartial(_)) || []), - o - ) - }, -} -var keys$2 = {}, - __createBinding$f = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$f = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$f = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$f(o, e, _) - return __setModuleDefault$f(o, e), o - } -Object.defineProperty(keys$2, '__esModule', { value: !0 }) -keys$2.PrivKey = keys$2.PubKey = keys$2.protobufPackage = void 0 -const _m0$b = __importStar$f(minimalExports), - helpers_1$b = helpers -keys$2.protobufPackage = 'cosmos.crypto.secp256k1' -function createBasePubKey() { - return { key: new Uint8Array() } -} -keys$2.PubKey = { - encode(e, o = _m0$b.Writer.create()) { - return e.key.length !== 0 && o.uint32(10).bytes(e.key), o - }, - decode(e, o) { - const _ = e instanceof _m0$b.Reader ? e : new _m0$b.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBasePubKey() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.key = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - key: (0, helpers_1$b.isSet)(e.key) - ? (0, helpers_1$b.bytesFromBase64)(e.key) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.key !== void 0 && - (o.key = (0, helpers_1$b.base64FromBytes)(e.key !== void 0 ? e.key : new Uint8Array())), - o - ) - }, - fromPartial(e) { - const o = createBasePubKey() - return (o.key = e.key ?? new Uint8Array()), o - }, -} -function createBasePrivKey() { - return { key: new Uint8Array() } -} -keys$2.PrivKey = { - encode(e, o = _m0$b.Writer.create()) { - return e.key.length !== 0 && o.uint32(10).bytes(e.key), o - }, - decode(e, o) { - const _ = e instanceof _m0$b.Reader ? e : new _m0$b.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBasePrivKey() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.key = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - key: (0, helpers_1$b.isSet)(e.key) - ? (0, helpers_1$b.bytesFromBase64)(e.key) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.key !== void 0 && - (o.key = (0, helpers_1$b.base64FromBytes)(e.key !== void 0 ? e.key : new Uint8Array())), - o - ) - }, - fromPartial(e) { - const o = createBasePrivKey() - return (o.key = e.key ?? new Uint8Array()), o - }, -} -Object.defineProperty(pubkey, '__esModule', { value: !0 }) -pubkey.decodePubkey = pubkey.anyToSinglePubkey = pubkey.encodePubkey = void 0 -const amino_1$2 = build$7, - encoding_1$h = build$b, - math_1$a = build$a, - keys_1 = keys$4, - keys_2 = keys$3, - keys_3 = keys$2, - any_1$3 = any -function encodePubkey(e) { - if ((0, amino_1$2.isSecp256k1Pubkey)(e)) { - const o = keys_3.PubKey.fromPartial({ key: (0, encoding_1$h.fromBase64)(e.value) }) - return any_1$3.Any.fromPartial({ - typeUrl: '/cosmos.crypto.secp256k1.PubKey', - value: Uint8Array.from(keys_3.PubKey.encode(o).finish()), - }) - } else if ((0, amino_1$2.isEd25519Pubkey)(e)) { - const o = keys_1.PubKey.fromPartial({ key: (0, encoding_1$h.fromBase64)(e.value) }) - return any_1$3.Any.fromPartial({ - typeUrl: '/cosmos.crypto.ed25519.PubKey', - value: Uint8Array.from(keys_1.PubKey.encode(o).finish()), - }) - } else if ((0, amino_1$2.isMultisigThresholdPubkey)(e)) { - const o = keys_2.LegacyAminoPubKey.fromPartial({ - threshold: math_1$a.Uint53.fromString(e.value.threshold).toNumber(), - publicKeys: e.value.pubkeys.map(encodePubkey), - }) - return any_1$3.Any.fromPartial({ - typeUrl: '/cosmos.crypto.multisig.LegacyAminoPubKey', - value: Uint8Array.from(keys_2.LegacyAminoPubKey.encode(o).finish()), - }) - } else throw new Error(`Pubkey type ${e.type} not recognized`) -} -pubkey.encodePubkey = encodePubkey -function anyToSinglePubkey(e) { - switch (e.typeUrl) { - case '/cosmos.crypto.secp256k1.PubKey': { - const { key: o } = keys_3.PubKey.decode(e.value) - return (0, amino_1$2.encodeSecp256k1Pubkey)(o) - } - case '/cosmos.crypto.ed25519.PubKey': { - const { key: o } = keys_1.PubKey.decode(e.value) - return (0, amino_1$2.encodeEd25519Pubkey)(o) - } - default: - throw new Error(`Pubkey type_url ${e.typeUrl} not recognized as single public key type`) - } -} -pubkey.anyToSinglePubkey = anyToSinglePubkey -function decodePubkey$2(e) { - switch (e.typeUrl) { - case '/cosmos.crypto.secp256k1.PubKey': - case '/cosmos.crypto.ed25519.PubKey': - return anyToSinglePubkey(e) - case '/cosmos.crypto.multisig.LegacyAminoPubKey': { - const { threshold: o, publicKeys: _ } = keys_2.LegacyAminoPubKey.decode(e.value) - return { - type: 'tendermint/PubKeyMultisigThreshold', - value: { threshold: o.toString(), pubkeys: _.map(anyToSinglePubkey) }, - } - } - default: - throw new Error(`Pubkey type_url ${e.typeUrl} not recognized`) - } -} -pubkey.decodePubkey = decodePubkey$2 -var registry = {}, - tx$d = {}, - bank = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn) - var ln = Object.getOwnPropertyDescriptor(mn, Bn) - ;(!ln || ('get' in ln ? !mn.__esModule : ln.writable || ln.configurable)) && - (ln = { - enumerable: !0, - get: function () { - return mn[Bn] - }, - }), - Object.defineProperty(xn, kn, ln) - } - : function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn), (xn[kn] = mn[Bn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (xn, mn) { - Object.defineProperty(xn, 'default', { enumerable: !0, value: mn }) - } - : function (xn, mn) { - xn.default = mn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (xn) { - if (xn && xn.__esModule) return xn - var mn = {} - if (xn != null) - for (var Bn in xn) - Bn !== 'default' && Object.prototype.hasOwnProperty.call(xn, Bn) && o(mn, xn, Bn) - return _(mn, xn), mn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Metadata = - e.DenomUnit = - e.Supply = - e.Output = - e.Input = - e.SendEnabled = - e.Params = - e.protobufPackage = - void 0) - const $ = coin$1, - en = b(minimalExports), - nn = helpers - e.protobufPackage = 'cosmos.bank.v1beta1' - function sn() { - return { sendEnabled: [], defaultSendEnabled: !1 } - } - e.Params = { - encode(xn, mn = en.Writer.create()) { - for (const Bn of xn.sendEnabled) e.SendEnabled.encode(Bn, mn.uint32(10).fork()).ldelim() - return xn.defaultSendEnabled === !0 && mn.uint32(16).bool(xn.defaultSendEnabled), mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = sn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.sendEnabled.push(e.SendEnabled.decode(Bn, Bn.uint32())) - break - case 2: - ln.defaultSendEnabled = Bn.bool() - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - sendEnabled: Array.isArray(xn?.sendEnabled) - ? xn.sendEnabled.map((mn) => e.SendEnabled.fromJSON(mn)) - : [], - defaultSendEnabled: (0, nn.isSet)(xn.defaultSendEnabled) - ? Boolean(xn.defaultSendEnabled) - : !1, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.sendEnabled - ? (mn.sendEnabled = xn.sendEnabled.map((Bn) => (Bn ? e.SendEnabled.toJSON(Bn) : void 0))) - : (mn.sendEnabled = []), - xn.defaultSendEnabled !== void 0 && (mn.defaultSendEnabled = xn.defaultSendEnabled), - mn - ) - }, - fromPartial(xn) { - const mn = sn() - return ( - (mn.sendEnabled = xn.sendEnabled?.map((Bn) => e.SendEnabled.fromPartial(Bn)) || []), - (mn.defaultSendEnabled = xn.defaultSendEnabled ?? !1), - mn - ) - }, - } - function gn() { - return { denom: '', enabled: !1 } - } - e.SendEnabled = { - encode(xn, mn = en.Writer.create()) { - return ( - xn.denom !== '' && mn.uint32(10).string(xn.denom), - xn.enabled === !0 && mn.uint32(16).bool(xn.enabled), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = gn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.denom = Bn.string() - break - case 2: - ln.enabled = Bn.bool() - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - denom: (0, nn.isSet)(xn.denom) ? String(xn.denom) : '', - enabled: (0, nn.isSet)(xn.enabled) ? Boolean(xn.enabled) : !1, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.denom !== void 0 && (mn.denom = xn.denom), - xn.enabled !== void 0 && (mn.enabled = xn.enabled), - mn - ) - }, - fromPartial(xn) { - const mn = gn() - return (mn.denom = xn.denom ?? ''), (mn.enabled = xn.enabled ?? !1), mn - }, - } - function In() { - return { address: '', coins: [] } - } - e.Input = { - encode(xn, mn = en.Writer.create()) { - xn.address !== '' && mn.uint32(10).string(xn.address) - for (const Bn of xn.coins) $.Coin.encode(Bn, mn.uint32(18).fork()).ldelim() - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = In() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.address = Bn.string() - break - case 2: - ln.coins.push($.Coin.decode(Bn, Bn.uint32())) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - address: (0, nn.isSet)(xn.address) ? String(xn.address) : '', - coins: Array.isArray(xn?.coins) ? xn.coins.map((mn) => $.Coin.fromJSON(mn)) : [], - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.address !== void 0 && (mn.address = xn.address), - xn.coins - ? (mn.coins = xn.coins.map((Bn) => (Bn ? $.Coin.toJSON(Bn) : void 0))) - : (mn.coins = []), - mn - ) - }, - fromPartial(xn) { - const mn = In() - return ( - (mn.address = xn.address ?? ''), - (mn.coins = xn.coins?.map((Bn) => $.Coin.fromPartial(Bn)) || []), - mn - ) - }, - } - function Jn() { - return { address: '', coins: [] } - } - e.Output = { - encode(xn, mn = en.Writer.create()) { - xn.address !== '' && mn.uint32(10).string(xn.address) - for (const Bn of xn.coins) $.Coin.encode(Bn, mn.uint32(18).fork()).ldelim() - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Jn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.address = Bn.string() - break - case 2: - ln.coins.push($.Coin.decode(Bn, Bn.uint32())) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - address: (0, nn.isSet)(xn.address) ? String(xn.address) : '', - coins: Array.isArray(xn?.coins) ? xn.coins.map((mn) => $.Coin.fromJSON(mn)) : [], - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.address !== void 0 && (mn.address = xn.address), - xn.coins - ? (mn.coins = xn.coins.map((Bn) => (Bn ? $.Coin.toJSON(Bn) : void 0))) - : (mn.coins = []), - mn - ) - }, - fromPartial(xn) { - const mn = Jn() - return ( - (mn.address = xn.address ?? ''), - (mn.coins = xn.coins?.map((Bn) => $.Coin.fromPartial(Bn)) || []), - mn - ) - }, - } - function qn() { - return { total: [] } - } - e.Supply = { - encode(xn, mn = en.Writer.create()) { - for (const Bn of xn.total) $.Coin.encode(Bn, mn.uint32(10).fork()).ldelim() - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = qn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.total.push($.Coin.decode(Bn, Bn.uint32())) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { total: Array.isArray(xn?.total) ? xn.total.map((mn) => $.Coin.fromJSON(mn)) : [] } - }, - toJSON(xn) { - const mn = {} - return ( - xn.total - ? (mn.total = xn.total.map((Bn) => (Bn ? $.Coin.toJSON(Bn) : void 0))) - : (mn.total = []), - mn - ) - }, - fromPartial(xn) { - const mn = qn() - return (mn.total = xn.total?.map((Bn) => $.Coin.fromPartial(Bn)) || []), mn - }, - } - function Kn() { - return { denom: '', exponent: 0, aliases: [] } - } - e.DenomUnit = { - encode(xn, mn = en.Writer.create()) { - xn.denom !== '' && mn.uint32(10).string(xn.denom), - xn.exponent !== 0 && mn.uint32(16).uint32(xn.exponent) - for (const Bn of xn.aliases) mn.uint32(26).string(Bn) - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Kn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.denom = Bn.string() - break - case 2: - ln.exponent = Bn.uint32() - break - case 3: - ln.aliases.push(Bn.string()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - denom: (0, nn.isSet)(xn.denom) ? String(xn.denom) : '', - exponent: (0, nn.isSet)(xn.exponent) ? Number(xn.exponent) : 0, - aliases: Array.isArray(xn?.aliases) ? xn.aliases.map((mn) => String(mn)) : [], - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.denom !== void 0 && (mn.denom = xn.denom), - xn.exponent !== void 0 && (mn.exponent = Math.round(xn.exponent)), - xn.aliases ? (mn.aliases = xn.aliases.map((Bn) => Bn)) : (mn.aliases = []), - mn - ) - }, - fromPartial(xn) { - const mn = Kn() - return ( - (mn.denom = xn.denom ?? ''), - (mn.exponent = xn.exponent ?? 0), - (mn.aliases = xn.aliases?.map((Bn) => Bn) || []), - mn - ) - }, - } - function an() { - return { - description: '', - denomUnits: [], - base: '', - display: '', - name: '', - symbol: '', - uri: '', - uriHash: '', - } - } - e.Metadata = { - encode(xn, mn = en.Writer.create()) { - xn.description !== '' && mn.uint32(10).string(xn.description) - for (const Bn of xn.denomUnits) e.DenomUnit.encode(Bn, mn.uint32(18).fork()).ldelim() - return ( - xn.base !== '' && mn.uint32(26).string(xn.base), - xn.display !== '' && mn.uint32(34).string(xn.display), - xn.name !== '' && mn.uint32(42).string(xn.name), - xn.symbol !== '' && mn.uint32(50).string(xn.symbol), - xn.uri !== '' && mn.uint32(58).string(xn.uri), - xn.uriHash !== '' && mn.uint32(66).string(xn.uriHash), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = an() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.description = Bn.string() - break - case 2: - ln.denomUnits.push(e.DenomUnit.decode(Bn, Bn.uint32())) - break - case 3: - ln.base = Bn.string() - break - case 4: - ln.display = Bn.string() - break - case 5: - ln.name = Bn.string() - break - case 6: - ln.symbol = Bn.string() - break - case 7: - ln.uri = Bn.string() - break - case 8: - ln.uriHash = Bn.string() - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - description: (0, nn.isSet)(xn.description) ? String(xn.description) : '', - denomUnits: Array.isArray(xn?.denomUnits) - ? xn.denomUnits.map((mn) => e.DenomUnit.fromJSON(mn)) - : [], - base: (0, nn.isSet)(xn.base) ? String(xn.base) : '', - display: (0, nn.isSet)(xn.display) ? String(xn.display) : '', - name: (0, nn.isSet)(xn.name) ? String(xn.name) : '', - symbol: (0, nn.isSet)(xn.symbol) ? String(xn.symbol) : '', - uri: (0, nn.isSet)(xn.uri) ? String(xn.uri) : '', - uriHash: (0, nn.isSet)(xn.uriHash) ? String(xn.uriHash) : '', - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.description !== void 0 && (mn.description = xn.description), - xn.denomUnits - ? (mn.denomUnits = xn.denomUnits.map((Bn) => (Bn ? e.DenomUnit.toJSON(Bn) : void 0))) - : (mn.denomUnits = []), - xn.base !== void 0 && (mn.base = xn.base), - xn.display !== void 0 && (mn.display = xn.display), - xn.name !== void 0 && (mn.name = xn.name), - xn.symbol !== void 0 && (mn.symbol = xn.symbol), - xn.uri !== void 0 && (mn.uri = xn.uri), - xn.uriHash !== void 0 && (mn.uriHash = xn.uriHash), - mn - ) - }, - fromPartial(xn) { - const mn = an() - return ( - (mn.description = xn.description ?? ''), - (mn.denomUnits = xn.denomUnits?.map((Bn) => e.DenomUnit.fromPartial(Bn)) || []), - (mn.base = xn.base ?? ''), - (mn.display = xn.display ?? ''), - (mn.name = xn.name ?? ''), - (mn.symbol = xn.symbol ?? ''), - (mn.uri = xn.uri ?? ''), - (mn.uriHash = xn.uriHash ?? ''), - mn - ) - }, - } -})(bank) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (kn, ln, yn, Cn) { - Cn === void 0 && (Cn = yn) - var Tn = Object.getOwnPropertyDescriptor(ln, yn) - ;(!Tn || ('get' in Tn ? !ln.__esModule : Tn.writable || Tn.configurable)) && - (Tn = { - enumerable: !0, - get: function () { - return ln[yn] - }, - }), - Object.defineProperty(kn, Cn, Tn) - } - : function (kn, ln, yn, Cn) { - Cn === void 0 && (Cn = yn), (kn[Cn] = ln[yn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (kn, ln) { - Object.defineProperty(kn, 'default', { enumerable: !0, value: ln }) - } - : function (kn, ln) { - kn.default = ln - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (kn) { - if (kn && kn.__esModule) return kn - var ln = {} - if (kn != null) - for (var yn in kn) - yn !== 'default' && Object.prototype.hasOwnProperty.call(kn, yn) && o(ln, kn, yn) - return _(ln, kn), ln - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgSetSendEnabledResponse = - e.MsgSetSendEnabled = - e.MsgUpdateParamsResponse = - e.MsgUpdateParams = - e.MsgMultiSendResponse = - e.MsgMultiSend = - e.MsgSendResponse = - e.MsgSend = - e.protobufPackage = - void 0) - const $ = coin$1, - en = bank, - nn = b(minimalExports), - sn = helpers - e.protobufPackage = 'cosmos.bank.v1beta1' - function gn() { - return { fromAddress: '', toAddress: '', amount: [] } - } - e.MsgSend = { - encode(kn, ln = nn.Writer.create()) { - kn.fromAddress !== '' && ln.uint32(10).string(kn.fromAddress), - kn.toAddress !== '' && ln.uint32(18).string(kn.toAddress) - for (const yn of kn.amount) $.Coin.encode(yn, ln.uint32(26).fork()).ldelim() - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = gn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.fromAddress = yn.string() - break - case 2: - Tn.toAddress = yn.string() - break - case 3: - Tn.amount.push($.Coin.decode(yn, yn.uint32())) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - fromAddress: (0, sn.isSet)(kn.fromAddress) ? String(kn.fromAddress) : '', - toAddress: (0, sn.isSet)(kn.toAddress) ? String(kn.toAddress) : '', - amount: Array.isArray(kn?.amount) ? kn.amount.map((ln) => $.Coin.fromJSON(ln)) : [], - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.fromAddress !== void 0 && (ln.fromAddress = kn.fromAddress), - kn.toAddress !== void 0 && (ln.toAddress = kn.toAddress), - kn.amount - ? (ln.amount = kn.amount.map((yn) => (yn ? $.Coin.toJSON(yn) : void 0))) - : (ln.amount = []), - ln - ) - }, - fromPartial(kn) { - const ln = gn() - return ( - (ln.fromAddress = kn.fromAddress ?? ''), - (ln.toAddress = kn.toAddress ?? ''), - (ln.amount = kn.amount?.map((yn) => $.Coin.fromPartial(yn)) || []), - ln - ) - }, - } - function In() { - return {} - } - e.MsgSendResponse = { - encode(kn, ln = nn.Writer.create()) { - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = In() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return {} - }, - toJSON(kn) { - return {} - }, - fromPartial(kn) { - return In() - }, - } - function Jn() { - return { inputs: [], outputs: [] } - } - e.MsgMultiSend = { - encode(kn, ln = nn.Writer.create()) { - for (const yn of kn.inputs) en.Input.encode(yn, ln.uint32(10).fork()).ldelim() - for (const yn of kn.outputs) en.Output.encode(yn, ln.uint32(18).fork()).ldelim() - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = Jn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.inputs.push(en.Input.decode(yn, yn.uint32())) - break - case 2: - Tn.outputs.push(en.Output.decode(yn, yn.uint32())) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - inputs: Array.isArray(kn?.inputs) ? kn.inputs.map((ln) => en.Input.fromJSON(ln)) : [], - outputs: Array.isArray(kn?.outputs) ? kn.outputs.map((ln) => en.Output.fromJSON(ln)) : [], - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.inputs - ? (ln.inputs = kn.inputs.map((yn) => (yn ? en.Input.toJSON(yn) : void 0))) - : (ln.inputs = []), - kn.outputs - ? (ln.outputs = kn.outputs.map((yn) => (yn ? en.Output.toJSON(yn) : void 0))) - : (ln.outputs = []), - ln - ) - }, - fromPartial(kn) { - const ln = Jn() - return ( - (ln.inputs = kn.inputs?.map((yn) => en.Input.fromPartial(yn)) || []), - (ln.outputs = kn.outputs?.map((yn) => en.Output.fromPartial(yn)) || []), - ln - ) - }, - } - function qn() { - return {} - } - e.MsgMultiSendResponse = { - encode(kn, ln = nn.Writer.create()) { - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = qn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return {} - }, - toJSON(kn) { - return {} - }, - fromPartial(kn) { - return qn() - }, - } - function Kn() { - return { authority: '', params: void 0 } - } - e.MsgUpdateParams = { - encode(kn, ln = nn.Writer.create()) { - return ( - kn.authority !== '' && ln.uint32(10).string(kn.authority), - kn.params !== void 0 && en.Params.encode(kn.params, ln.uint32(18).fork()).ldelim(), - ln - ) - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = Kn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.authority = yn.string() - break - case 2: - Tn.params = en.Params.decode(yn, yn.uint32()) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - authority: (0, sn.isSet)(kn.authority) ? String(kn.authority) : '', - params: (0, sn.isSet)(kn.params) ? en.Params.fromJSON(kn.params) : void 0, - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.authority !== void 0 && (ln.authority = kn.authority), - kn.params !== void 0 && (ln.params = kn.params ? en.Params.toJSON(kn.params) : void 0), - ln - ) - }, - fromPartial(kn) { - const ln = Kn() - return ( - (ln.authority = kn.authority ?? ''), - (ln.params = - kn.params !== void 0 && kn.params !== null ? en.Params.fromPartial(kn.params) : void 0), - ln - ) - }, - } - function an() { - return {} - } - e.MsgUpdateParamsResponse = { - encode(kn, ln = nn.Writer.create()) { - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = an() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return {} - }, - toJSON(kn) { - return {} - }, - fromPartial(kn) { - return an() - }, - } - function xn() { - return { authority: '', sendEnabled: [], useDefaultFor: [] } - } - e.MsgSetSendEnabled = { - encode(kn, ln = nn.Writer.create()) { - kn.authority !== '' && ln.uint32(10).string(kn.authority) - for (const yn of kn.sendEnabled) en.SendEnabled.encode(yn, ln.uint32(18).fork()).ldelim() - for (const yn of kn.useDefaultFor) ln.uint32(26).string(yn) - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = xn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.authority = yn.string() - break - case 2: - Tn.sendEnabled.push(en.SendEnabled.decode(yn, yn.uint32())) - break - case 3: - Tn.useDefaultFor.push(yn.string()) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - authority: (0, sn.isSet)(kn.authority) ? String(kn.authority) : '', - sendEnabled: Array.isArray(kn?.sendEnabled) - ? kn.sendEnabled.map((ln) => en.SendEnabled.fromJSON(ln)) - : [], - useDefaultFor: Array.isArray(kn?.useDefaultFor) - ? kn.useDefaultFor.map((ln) => String(ln)) - : [], - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.authority !== void 0 && (ln.authority = kn.authority), - kn.sendEnabled - ? (ln.sendEnabled = kn.sendEnabled.map((yn) => (yn ? en.SendEnabled.toJSON(yn) : void 0))) - : (ln.sendEnabled = []), - kn.useDefaultFor - ? (ln.useDefaultFor = kn.useDefaultFor.map((yn) => yn)) - : (ln.useDefaultFor = []), - ln - ) - }, - fromPartial(kn) { - const ln = xn() - return ( - (ln.authority = kn.authority ?? ''), - (ln.sendEnabled = kn.sendEnabled?.map((yn) => en.SendEnabled.fromPartial(yn)) || []), - (ln.useDefaultFor = kn.useDefaultFor?.map((yn) => yn) || []), - ln - ) - }, - } - function mn() { - return {} - } - e.MsgSetSendEnabledResponse = { - encode(kn, ln = nn.Writer.create()) { - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = mn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return {} - }, - toJSON(kn) { - return {} - }, - fromPartial(kn) { - return mn() - }, - } - class Bn { - constructor(ln) { - ;(this.rpc = ln), - (this.Send = this.Send.bind(this)), - (this.MultiSend = this.MultiSend.bind(this)), - (this.UpdateParams = this.UpdateParams.bind(this)), - (this.SetSendEnabled = this.SetSendEnabled.bind(this)) - } - Send(ln) { - const yn = e.MsgSend.encode(ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Msg', 'Send', yn) - .then((Tn) => e.MsgSendResponse.decode(new nn.Reader(Tn))) - } - MultiSend(ln) { - const yn = e.MsgMultiSend.encode(ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Msg', 'MultiSend', yn) - .then((Tn) => e.MsgMultiSendResponse.decode(new nn.Reader(Tn))) - } - UpdateParams(ln) { - const yn = e.MsgUpdateParams.encode(ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Msg', 'UpdateParams', yn) - .then((Tn) => e.MsgUpdateParamsResponse.decode(new nn.Reader(Tn))) - } - SetSendEnabled(ln) { - const yn = e.MsgSetSendEnabled.encode(ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Msg', 'SetSendEnabled', yn) - .then((Tn) => e.MsgSetSendEnabledResponse.decode(new nn.Reader(Tn))) - } - } - e.MsgClientImpl = Bn -})(tx$d) -Object.defineProperty(registry, '__esModule', { value: !0 }) -registry.Registry = - registry.isTxBodyEncodeObject = - registry.isPbjsGeneratedType = - registry.isTsProtoGeneratedType = - void 0 -const tx_1$d = tx$d, - coin_1 = coin$1, - tx_2$3 = tx$e, - any_1$2 = any -function isTsProtoGeneratedType(e) { - return typeof e.fromPartial == 'function' -} -registry.isTsProtoGeneratedType = isTsProtoGeneratedType -function isPbjsGeneratedType(e) { - return !isTsProtoGeneratedType(e) -} -registry.isPbjsGeneratedType = isPbjsGeneratedType -const defaultTypeUrls = { - cosmosCoin: '/cosmos.base.v1beta1.Coin', - cosmosMsgSend: '/cosmos.bank.v1beta1.MsgSend', - cosmosTxBody: '/cosmos.tx.v1beta1.TxBody', - googleAny: '/google.protobuf.Any', -} -function isTxBodyEncodeObject(e) { - return e.typeUrl === '/cosmos.tx.v1beta1.TxBody' -} -registry.isTxBodyEncodeObject = isTxBodyEncodeObject -class Registry { - constructor(o) { - const { cosmosCoin: _, cosmosMsgSend: b } = defaultTypeUrls - this.types = o - ? new Map([...o]) - : new Map([ - [_, coin_1.Coin], - [b, tx_1$d.MsgSend], - ]) - } - register(o, _) { - this.types.set(o, _) - } - lookupType(o) { - return this.types.get(o) - } - lookupTypeWithError(o) { - const _ = this.lookupType(o) - if (!_) throw new Error(`Unregistered type url: ${o}`) - return _ - } - encode(o) { - const { value: _, typeUrl: b } = o - if (isTxBodyEncodeObject(o)) return this.encodeTxBody(_) - const $ = this.lookupTypeWithError(b), - en = isTsProtoGeneratedType($) ? $.fromPartial(_) : $.create(_) - return $.encode(en).finish() - } - encodeAsAny(o) { - const _ = this.encode(o) - return any_1$2.Any.fromPartial({ typeUrl: o.typeUrl, value: _ }) - } - encodeTxBody(o) { - const _ = o.messages.map(($) => this.encodeAsAny($)), - b = tx_2$3.TxBody.fromPartial({ ...o, messages: _ }) - return tx_2$3.TxBody.encode(b).finish() - } - decode({ typeUrl: o, value: _ }) { - if (o === defaultTypeUrls.cosmosTxBody) return this.decodeTxBody(_) - const $ = this.lookupTypeWithError(o).decode(_) - return ( - Object.entries($).forEach(([en, nn]) => { - typeof Buffer < 'u' && - typeof Buffer.isBuffer < 'u' && - Buffer.isBuffer(nn) && - ($[en] = Uint8Array.from(nn)) - }), - $ - ) - } - decodeTxBody(o) { - const _ = tx_2$3.TxBody.decode(o) - return { - ..._, - messages: _.messages.map(({ typeUrl: b, value: $ }) => { - if (!b) throw new Error('Missing type_url in Any') - if (!$) throw new Error('Missing value in Any') - return this.decode({ typeUrl: b, value: $ }) - }), - } - } -} -registry.Registry = Registry -var signer = {} -Object.defineProperty(signer, '__esModule', { value: !0 }) -signer.isOfflineDirectSigner = void 0 -function isOfflineDirectSigner(e) { - return e.signDirect !== void 0 -} -signer.isOfflineDirectSigner = isOfflineDirectSigner -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.coins = - e.coin = - e.executeKdf = - e.makeSignDoc = - e.makeSignBytes = - e.makeAuthInfoBytes = - e.isOfflineDirectSigner = - e.Registry = - e.isTxBodyEncodeObject = - e.isTsProtoGeneratedType = - e.isPbjsGeneratedType = - e.encodePubkey = - e.decodePubkey = - e.anyToSinglePubkey = - e.makeCosmoshubPath = - e.DirectSecp256k1Wallet = - e.extractKdfConfiguration = - e.DirectSecp256k1HdWallet = - e.decodeTxRaw = - e.parseCoins = - void 0) - var o = coins$2 - Object.defineProperty(e, 'parseCoins', { - enumerable: !0, - get: function () { - return o.parseCoins - }, - }) - var _ = decode - Object.defineProperty(e, 'decodeTxRaw', { - enumerable: !0, - get: function () { - return _.decodeTxRaw - }, - }) - var b = directsecp256k1hdwallet - Object.defineProperty(e, 'DirectSecp256k1HdWallet', { - enumerable: !0, - get: function () { - return b.DirectSecp256k1HdWallet - }, - }), - Object.defineProperty(e, 'extractKdfConfiguration', { - enumerable: !0, - get: function () { - return b.extractKdfConfiguration - }, - }) - var $ = directsecp256k1wallet - Object.defineProperty(e, 'DirectSecp256k1Wallet', { - enumerable: !0, - get: function () { - return $.DirectSecp256k1Wallet - }, - }) - var en = paths - Object.defineProperty(e, 'makeCosmoshubPath', { - enumerable: !0, - get: function () { - return en.makeCosmoshubPath - }, - }) - var nn = pubkey - Object.defineProperty(e, 'anyToSinglePubkey', { - enumerable: !0, - get: function () { - return nn.anyToSinglePubkey - }, - }), - Object.defineProperty(e, 'decodePubkey', { - enumerable: !0, - get: function () { - return nn.decodePubkey - }, - }), - Object.defineProperty(e, 'encodePubkey', { - enumerable: !0, - get: function () { - return nn.encodePubkey - }, - }) - var sn = registry - Object.defineProperty(e, 'isPbjsGeneratedType', { - enumerable: !0, - get: function () { - return sn.isPbjsGeneratedType - }, - }), - Object.defineProperty(e, 'isTsProtoGeneratedType', { - enumerable: !0, - get: function () { - return sn.isTsProtoGeneratedType - }, - }), - Object.defineProperty(e, 'isTxBodyEncodeObject', { - enumerable: !0, - get: function () { - return sn.isTxBodyEncodeObject - }, - }), - Object.defineProperty(e, 'Registry', { - enumerable: !0, - get: function () { - return sn.Registry - }, - }) - var gn = signer - Object.defineProperty(e, 'isOfflineDirectSigner', { - enumerable: !0, - get: function () { - return gn.isOfflineDirectSigner - }, - }) - var In = signing - Object.defineProperty(e, 'makeAuthInfoBytes', { - enumerable: !0, - get: function () { - return In.makeAuthInfoBytes - }, - }), - Object.defineProperty(e, 'makeSignBytes', { - enumerable: !0, - get: function () { - return In.makeSignBytes - }, - }), - Object.defineProperty(e, 'makeSignDoc', { - enumerable: !0, - get: function () { - return In.makeSignDoc - }, - }) - var Jn = wallet - Object.defineProperty(e, 'executeKdf', { - enumerable: !0, - get: function () { - return Jn.executeKdf - }, - }) - var qn = build$7 - Object.defineProperty(e, 'coin', { - enumerable: !0, - get: function () { - return qn.coin - }, - }), - Object.defineProperty(e, 'coins', { - enumerable: !0, - get: function () { - return qn.coins - }, - }) -})(build$8) -var auth = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (qn, Kn, an, xn) { - xn === void 0 && (xn = an) - var mn = Object.getOwnPropertyDescriptor(Kn, an) - ;(!mn || ('get' in mn ? !Kn.__esModule : mn.writable || mn.configurable)) && - (mn = { - enumerable: !0, - get: function () { - return Kn[an] - }, - }), - Object.defineProperty(qn, xn, mn) - } - : function (qn, Kn, an, xn) { - xn === void 0 && (xn = an), (qn[xn] = Kn[an]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (qn, Kn) { - Object.defineProperty(qn, 'default', { enumerable: !0, value: Kn }) - } - : function (qn, Kn) { - qn.default = Kn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (qn) { - if (qn && qn.__esModule) return qn - var Kn = {} - if (qn != null) - for (var an in qn) - an !== 'default' && Object.prototype.hasOwnProperty.call(qn, an) && o(Kn, qn, an) - return _(Kn, qn), Kn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Params = e.ModuleCredential = e.ModuleAccount = e.BaseAccount = e.protobufPackage = void 0) - const $ = any, - en = helpers, - nn = b(minimalExports) - e.protobufPackage = 'cosmos.auth.v1beta1' - function sn() { - return { address: '', pubKey: void 0, accountNumber: en.Long.UZERO, sequence: en.Long.UZERO } - } - e.BaseAccount = { - encode(qn, Kn = nn.Writer.create()) { - return ( - qn.address !== '' && Kn.uint32(10).string(qn.address), - qn.pubKey !== void 0 && $.Any.encode(qn.pubKey, Kn.uint32(18).fork()).ldelim(), - qn.accountNumber.isZero() || Kn.uint32(24).uint64(qn.accountNumber), - qn.sequence.isZero() || Kn.uint32(32).uint64(qn.sequence), - Kn - ) - }, - decode(qn, Kn) { - const an = qn instanceof nn.Reader ? qn : new nn.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = sn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.address = an.string() - break - case 2: - mn.pubKey = $.Any.decode(an, an.uint32()) - break - case 3: - mn.accountNumber = an.uint64() - break - case 4: - mn.sequence = an.uint64() - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - address: (0, en.isSet)(qn.address) ? String(qn.address) : '', - pubKey: (0, en.isSet)(qn.pubKey) ? $.Any.fromJSON(qn.pubKey) : void 0, - accountNumber: (0, en.isSet)(qn.accountNumber) - ? en.Long.fromValue(qn.accountNumber) - : en.Long.UZERO, - sequence: (0, en.isSet)(qn.sequence) ? en.Long.fromValue(qn.sequence) : en.Long.UZERO, - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.address !== void 0 && (Kn.address = qn.address), - qn.pubKey !== void 0 && (Kn.pubKey = qn.pubKey ? $.Any.toJSON(qn.pubKey) : void 0), - qn.accountNumber !== void 0 && - (Kn.accountNumber = (qn.accountNumber || en.Long.UZERO).toString()), - qn.sequence !== void 0 && (Kn.sequence = (qn.sequence || en.Long.UZERO).toString()), - Kn - ) - }, - fromPartial(qn) { - const Kn = sn() - return ( - (Kn.address = qn.address ?? ''), - (Kn.pubKey = - qn.pubKey !== void 0 && qn.pubKey !== null ? $.Any.fromPartial(qn.pubKey) : void 0), - (Kn.accountNumber = - qn.accountNumber !== void 0 && qn.accountNumber !== null - ? en.Long.fromValue(qn.accountNumber) - : en.Long.UZERO), - (Kn.sequence = - qn.sequence !== void 0 && qn.sequence !== null - ? en.Long.fromValue(qn.sequence) - : en.Long.UZERO), - Kn - ) - }, - } - function gn() { - return { baseAccount: void 0, name: '', permissions: [] } - } - e.ModuleAccount = { - encode(qn, Kn = nn.Writer.create()) { - qn.baseAccount !== void 0 && - e.BaseAccount.encode(qn.baseAccount, Kn.uint32(10).fork()).ldelim(), - qn.name !== '' && Kn.uint32(18).string(qn.name) - for (const an of qn.permissions) Kn.uint32(26).string(an) - return Kn - }, - decode(qn, Kn) { - const an = qn instanceof nn.Reader ? qn : new nn.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = gn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.baseAccount = e.BaseAccount.decode(an, an.uint32()) - break - case 2: - mn.name = an.string() - break - case 3: - mn.permissions.push(an.string()) - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - baseAccount: (0, en.isSet)(qn.baseAccount) - ? e.BaseAccount.fromJSON(qn.baseAccount) - : void 0, - name: (0, en.isSet)(qn.name) ? String(qn.name) : '', - permissions: Array.isArray(qn?.permissions) ? qn.permissions.map((Kn) => String(Kn)) : [], - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.baseAccount !== void 0 && - (Kn.baseAccount = qn.baseAccount ? e.BaseAccount.toJSON(qn.baseAccount) : void 0), - qn.name !== void 0 && (Kn.name = qn.name), - qn.permissions ? (Kn.permissions = qn.permissions.map((an) => an)) : (Kn.permissions = []), - Kn - ) - }, - fromPartial(qn) { - const Kn = gn() - return ( - (Kn.baseAccount = - qn.baseAccount !== void 0 && qn.baseAccount !== null - ? e.BaseAccount.fromPartial(qn.baseAccount) - : void 0), - (Kn.name = qn.name ?? ''), - (Kn.permissions = qn.permissions?.map((an) => an) || []), - Kn - ) - }, - } - function In() { - return { moduleName: '', derivationKeys: [] } - } - e.ModuleCredential = { - encode(qn, Kn = nn.Writer.create()) { - qn.moduleName !== '' && Kn.uint32(10).string(qn.moduleName) - for (const an of qn.derivationKeys) Kn.uint32(18).bytes(an) - return Kn - }, - decode(qn, Kn) { - const an = qn instanceof nn.Reader ? qn : new nn.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = In() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.moduleName = an.string() - break - case 2: - mn.derivationKeys.push(an.bytes()) - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - moduleName: (0, en.isSet)(qn.moduleName) ? String(qn.moduleName) : '', - derivationKeys: Array.isArray(qn?.derivationKeys) - ? qn.derivationKeys.map((Kn) => (0, en.bytesFromBase64)(Kn)) - : [], - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.moduleName !== void 0 && (Kn.moduleName = qn.moduleName), - qn.derivationKeys - ? (Kn.derivationKeys = qn.derivationKeys.map((an) => - (0, en.base64FromBytes)(an !== void 0 ? an : new Uint8Array()), - )) - : (Kn.derivationKeys = []), - Kn - ) - }, - fromPartial(qn) { - const Kn = In() - return ( - (Kn.moduleName = qn.moduleName ?? ''), - (Kn.derivationKeys = qn.derivationKeys?.map((an) => an) || []), - Kn - ) - }, - } - function Jn() { - return { - maxMemoCharacters: en.Long.UZERO, - txSigLimit: en.Long.UZERO, - txSizeCostPerByte: en.Long.UZERO, - sigVerifyCostEd25519: en.Long.UZERO, - sigVerifyCostSecp256k1: en.Long.UZERO, - } - } - e.Params = { - encode(qn, Kn = nn.Writer.create()) { - return ( - qn.maxMemoCharacters.isZero() || Kn.uint32(8).uint64(qn.maxMemoCharacters), - qn.txSigLimit.isZero() || Kn.uint32(16).uint64(qn.txSigLimit), - qn.txSizeCostPerByte.isZero() || Kn.uint32(24).uint64(qn.txSizeCostPerByte), - qn.sigVerifyCostEd25519.isZero() || Kn.uint32(32).uint64(qn.sigVerifyCostEd25519), - qn.sigVerifyCostSecp256k1.isZero() || Kn.uint32(40).uint64(qn.sigVerifyCostSecp256k1), - Kn - ) - }, - decode(qn, Kn) { - const an = qn instanceof nn.Reader ? qn : new nn.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = Jn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.maxMemoCharacters = an.uint64() - break - case 2: - mn.txSigLimit = an.uint64() - break - case 3: - mn.txSizeCostPerByte = an.uint64() - break - case 4: - mn.sigVerifyCostEd25519 = an.uint64() - break - case 5: - mn.sigVerifyCostSecp256k1 = an.uint64() - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - maxMemoCharacters: (0, en.isSet)(qn.maxMemoCharacters) - ? en.Long.fromValue(qn.maxMemoCharacters) - : en.Long.UZERO, - txSigLimit: (0, en.isSet)(qn.txSigLimit) ? en.Long.fromValue(qn.txSigLimit) : en.Long.UZERO, - txSizeCostPerByte: (0, en.isSet)(qn.txSizeCostPerByte) - ? en.Long.fromValue(qn.txSizeCostPerByte) - : en.Long.UZERO, - sigVerifyCostEd25519: (0, en.isSet)(qn.sigVerifyCostEd25519) - ? en.Long.fromValue(qn.sigVerifyCostEd25519) - : en.Long.UZERO, - sigVerifyCostSecp256k1: (0, en.isSet)(qn.sigVerifyCostSecp256k1) - ? en.Long.fromValue(qn.sigVerifyCostSecp256k1) - : en.Long.UZERO, - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.maxMemoCharacters !== void 0 && - (Kn.maxMemoCharacters = (qn.maxMemoCharacters || en.Long.UZERO).toString()), - qn.txSigLimit !== void 0 && (Kn.txSigLimit = (qn.txSigLimit || en.Long.UZERO).toString()), - qn.txSizeCostPerByte !== void 0 && - (Kn.txSizeCostPerByte = (qn.txSizeCostPerByte || en.Long.UZERO).toString()), - qn.sigVerifyCostEd25519 !== void 0 && - (Kn.sigVerifyCostEd25519 = (qn.sigVerifyCostEd25519 || en.Long.UZERO).toString()), - qn.sigVerifyCostSecp256k1 !== void 0 && - (Kn.sigVerifyCostSecp256k1 = (qn.sigVerifyCostSecp256k1 || en.Long.UZERO).toString()), - Kn - ) - }, - fromPartial(qn) { - const Kn = Jn() - return ( - (Kn.maxMemoCharacters = - qn.maxMemoCharacters !== void 0 && qn.maxMemoCharacters !== null - ? en.Long.fromValue(qn.maxMemoCharacters) - : en.Long.UZERO), - (Kn.txSigLimit = - qn.txSigLimit !== void 0 && qn.txSigLimit !== null - ? en.Long.fromValue(qn.txSigLimit) - : en.Long.UZERO), - (Kn.txSizeCostPerByte = - qn.txSizeCostPerByte !== void 0 && qn.txSizeCostPerByte !== null - ? en.Long.fromValue(qn.txSizeCostPerByte) - : en.Long.UZERO), - (Kn.sigVerifyCostEd25519 = - qn.sigVerifyCostEd25519 !== void 0 && qn.sigVerifyCostEd25519 !== null - ? en.Long.fromValue(qn.sigVerifyCostEd25519) - : en.Long.UZERO), - (Kn.sigVerifyCostSecp256k1 = - qn.sigVerifyCostSecp256k1 !== void 0 && qn.sigVerifyCostSecp256k1 !== null - ? en.Long.fromValue(qn.sigVerifyCostSecp256k1) - : en.Long.UZERO), - Kn - ) - }, - } -})(auth) -var vesting = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn) - var ln = Object.getOwnPropertyDescriptor(mn, Bn) - ;(!ln || ('get' in ln ? !mn.__esModule : ln.writable || ln.configurable)) && - (ln = { - enumerable: !0, - get: function () { - return mn[Bn] - }, - }), - Object.defineProperty(xn, kn, ln) - } - : function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn), (xn[kn] = mn[Bn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (xn, mn) { - Object.defineProperty(xn, 'default', { enumerable: !0, value: mn }) - } - : function (xn, mn) { - xn.default = mn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (xn) { - if (xn && xn.__esModule) return xn - var mn = {} - if (xn != null) - for (var Bn in xn) - Bn !== 'default' && Object.prototype.hasOwnProperty.call(xn, Bn) && o(mn, xn, Bn) - return _(mn, xn), mn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.PermanentLockedAccount = - e.PeriodicVestingAccount = - e.Period = - e.DelayedVestingAccount = - e.ContinuousVestingAccount = - e.BaseVestingAccount = - e.protobufPackage = - void 0) - const $ = auth, - en = coin$1, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.vesting.v1beta1' - function gn() { - return { - baseAccount: void 0, - originalVesting: [], - delegatedFree: [], - delegatedVesting: [], - endTime: nn.Long.ZERO, - } - } - e.BaseVestingAccount = { - encode(xn, mn = sn.Writer.create()) { - xn.baseAccount !== void 0 && - $.BaseAccount.encode(xn.baseAccount, mn.uint32(10).fork()).ldelim() - for (const Bn of xn.originalVesting) en.Coin.encode(Bn, mn.uint32(18).fork()).ldelim() - for (const Bn of xn.delegatedFree) en.Coin.encode(Bn, mn.uint32(26).fork()).ldelim() - for (const Bn of xn.delegatedVesting) en.Coin.encode(Bn, mn.uint32(34).fork()).ldelim() - return xn.endTime.isZero() || mn.uint32(40).int64(xn.endTime), mn - }, - decode(xn, mn) { - const Bn = xn instanceof sn.Reader ? xn : new sn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = gn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.baseAccount = $.BaseAccount.decode(Bn, Bn.uint32()) - break - case 2: - ln.originalVesting.push(en.Coin.decode(Bn, Bn.uint32())) - break - case 3: - ln.delegatedFree.push(en.Coin.decode(Bn, Bn.uint32())) - break - case 4: - ln.delegatedVesting.push(en.Coin.decode(Bn, Bn.uint32())) - break - case 5: - ln.endTime = Bn.int64() - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - baseAccount: (0, nn.isSet)(xn.baseAccount) - ? $.BaseAccount.fromJSON(xn.baseAccount) - : void 0, - originalVesting: Array.isArray(xn?.originalVesting) - ? xn.originalVesting.map((mn) => en.Coin.fromJSON(mn)) - : [], - delegatedFree: Array.isArray(xn?.delegatedFree) - ? xn.delegatedFree.map((mn) => en.Coin.fromJSON(mn)) - : [], - delegatedVesting: Array.isArray(xn?.delegatedVesting) - ? xn.delegatedVesting.map((mn) => en.Coin.fromJSON(mn)) - : [], - endTime: (0, nn.isSet)(xn.endTime) ? nn.Long.fromValue(xn.endTime) : nn.Long.ZERO, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.baseAccount !== void 0 && - (mn.baseAccount = xn.baseAccount ? $.BaseAccount.toJSON(xn.baseAccount) : void 0), - xn.originalVesting - ? (mn.originalVesting = xn.originalVesting.map((Bn) => - Bn ? en.Coin.toJSON(Bn) : void 0, - )) - : (mn.originalVesting = []), - xn.delegatedFree - ? (mn.delegatedFree = xn.delegatedFree.map((Bn) => (Bn ? en.Coin.toJSON(Bn) : void 0))) - : (mn.delegatedFree = []), - xn.delegatedVesting - ? (mn.delegatedVesting = xn.delegatedVesting.map((Bn) => - Bn ? en.Coin.toJSON(Bn) : void 0, - )) - : (mn.delegatedVesting = []), - xn.endTime !== void 0 && (mn.endTime = (xn.endTime || nn.Long.ZERO).toString()), - mn - ) - }, - fromPartial(xn) { - const mn = gn() - return ( - (mn.baseAccount = - xn.baseAccount !== void 0 && xn.baseAccount !== null - ? $.BaseAccount.fromPartial(xn.baseAccount) - : void 0), - (mn.originalVesting = xn.originalVesting?.map((Bn) => en.Coin.fromPartial(Bn)) || []), - (mn.delegatedFree = xn.delegatedFree?.map((Bn) => en.Coin.fromPartial(Bn)) || []), - (mn.delegatedVesting = xn.delegatedVesting?.map((Bn) => en.Coin.fromPartial(Bn)) || []), - (mn.endTime = - xn.endTime !== void 0 && xn.endTime !== null - ? nn.Long.fromValue(xn.endTime) - : nn.Long.ZERO), - mn - ) - }, - } - function In() { - return { baseVestingAccount: void 0, startTime: nn.Long.ZERO } - } - e.ContinuousVestingAccount = { - encode(xn, mn = sn.Writer.create()) { - return ( - xn.baseVestingAccount !== void 0 && - e.BaseVestingAccount.encode(xn.baseVestingAccount, mn.uint32(10).fork()).ldelim(), - xn.startTime.isZero() || mn.uint32(16).int64(xn.startTime), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof sn.Reader ? xn : new sn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = In() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.baseVestingAccount = e.BaseVestingAccount.decode(Bn, Bn.uint32()) - break - case 2: - ln.startTime = Bn.int64() - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - baseVestingAccount: (0, nn.isSet)(xn.baseVestingAccount) - ? e.BaseVestingAccount.fromJSON(xn.baseVestingAccount) - : void 0, - startTime: (0, nn.isSet)(xn.startTime) ? nn.Long.fromValue(xn.startTime) : nn.Long.ZERO, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.baseVestingAccount !== void 0 && - (mn.baseVestingAccount = xn.baseVestingAccount - ? e.BaseVestingAccount.toJSON(xn.baseVestingAccount) - : void 0), - xn.startTime !== void 0 && (mn.startTime = (xn.startTime || nn.Long.ZERO).toString()), - mn - ) - }, - fromPartial(xn) { - const mn = In() - return ( - (mn.baseVestingAccount = - xn.baseVestingAccount !== void 0 && xn.baseVestingAccount !== null - ? e.BaseVestingAccount.fromPartial(xn.baseVestingAccount) - : void 0), - (mn.startTime = - xn.startTime !== void 0 && xn.startTime !== null - ? nn.Long.fromValue(xn.startTime) - : nn.Long.ZERO), - mn - ) - }, - } - function Jn() { - return { baseVestingAccount: void 0 } - } - e.DelayedVestingAccount = { - encode(xn, mn = sn.Writer.create()) { - return ( - xn.baseVestingAccount !== void 0 && - e.BaseVestingAccount.encode(xn.baseVestingAccount, mn.uint32(10).fork()).ldelim(), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof sn.Reader ? xn : new sn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Jn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.baseVestingAccount = e.BaseVestingAccount.decode(Bn, Bn.uint32()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - baseVestingAccount: (0, nn.isSet)(xn.baseVestingAccount) - ? e.BaseVestingAccount.fromJSON(xn.baseVestingAccount) - : void 0, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.baseVestingAccount !== void 0 && - (mn.baseVestingAccount = xn.baseVestingAccount - ? e.BaseVestingAccount.toJSON(xn.baseVestingAccount) - : void 0), - mn - ) - }, - fromPartial(xn) { - const mn = Jn() - return ( - (mn.baseVestingAccount = - xn.baseVestingAccount !== void 0 && xn.baseVestingAccount !== null - ? e.BaseVestingAccount.fromPartial(xn.baseVestingAccount) - : void 0), - mn - ) - }, - } - function qn() { - return { length: nn.Long.ZERO, amount: [] } - } - e.Period = { - encode(xn, mn = sn.Writer.create()) { - xn.length.isZero() || mn.uint32(8).int64(xn.length) - for (const Bn of xn.amount) en.Coin.encode(Bn, mn.uint32(18).fork()).ldelim() - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof sn.Reader ? xn : new sn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = qn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.length = Bn.int64() - break - case 2: - ln.amount.push(en.Coin.decode(Bn, Bn.uint32())) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - length: (0, nn.isSet)(xn.length) ? nn.Long.fromValue(xn.length) : nn.Long.ZERO, - amount: Array.isArray(xn?.amount) ? xn.amount.map((mn) => en.Coin.fromJSON(mn)) : [], - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.length !== void 0 && (mn.length = (xn.length || nn.Long.ZERO).toString()), - xn.amount - ? (mn.amount = xn.amount.map((Bn) => (Bn ? en.Coin.toJSON(Bn) : void 0))) - : (mn.amount = []), - mn - ) - }, - fromPartial(xn) { - const mn = qn() - return ( - (mn.length = - xn.length !== void 0 && xn.length !== null ? nn.Long.fromValue(xn.length) : nn.Long.ZERO), - (mn.amount = xn.amount?.map((Bn) => en.Coin.fromPartial(Bn)) || []), - mn - ) - }, - } - function Kn() { - return { baseVestingAccount: void 0, startTime: nn.Long.ZERO, vestingPeriods: [] } - } - e.PeriodicVestingAccount = { - encode(xn, mn = sn.Writer.create()) { - xn.baseVestingAccount !== void 0 && - e.BaseVestingAccount.encode(xn.baseVestingAccount, mn.uint32(10).fork()).ldelim(), - xn.startTime.isZero() || mn.uint32(16).int64(xn.startTime) - for (const Bn of xn.vestingPeriods) e.Period.encode(Bn, mn.uint32(26).fork()).ldelim() - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof sn.Reader ? xn : new sn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Kn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.baseVestingAccount = e.BaseVestingAccount.decode(Bn, Bn.uint32()) - break - case 2: - ln.startTime = Bn.int64() - break - case 3: - ln.vestingPeriods.push(e.Period.decode(Bn, Bn.uint32())) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - baseVestingAccount: (0, nn.isSet)(xn.baseVestingAccount) - ? e.BaseVestingAccount.fromJSON(xn.baseVestingAccount) - : void 0, - startTime: (0, nn.isSet)(xn.startTime) ? nn.Long.fromValue(xn.startTime) : nn.Long.ZERO, - vestingPeriods: Array.isArray(xn?.vestingPeriods) - ? xn.vestingPeriods.map((mn) => e.Period.fromJSON(mn)) - : [], - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.baseVestingAccount !== void 0 && - (mn.baseVestingAccount = xn.baseVestingAccount - ? e.BaseVestingAccount.toJSON(xn.baseVestingAccount) - : void 0), - xn.startTime !== void 0 && (mn.startTime = (xn.startTime || nn.Long.ZERO).toString()), - xn.vestingPeriods - ? (mn.vestingPeriods = xn.vestingPeriods.map((Bn) => (Bn ? e.Period.toJSON(Bn) : void 0))) - : (mn.vestingPeriods = []), - mn - ) - }, - fromPartial(xn) { - const mn = Kn() - return ( - (mn.baseVestingAccount = - xn.baseVestingAccount !== void 0 && xn.baseVestingAccount !== null - ? e.BaseVestingAccount.fromPartial(xn.baseVestingAccount) - : void 0), - (mn.startTime = - xn.startTime !== void 0 && xn.startTime !== null - ? nn.Long.fromValue(xn.startTime) - : nn.Long.ZERO), - (mn.vestingPeriods = xn.vestingPeriods?.map((Bn) => e.Period.fromPartial(Bn)) || []), - mn - ) - }, - } - function an() { - return { baseVestingAccount: void 0 } - } - e.PermanentLockedAccount = { - encode(xn, mn = sn.Writer.create()) { - return ( - xn.baseVestingAccount !== void 0 && - e.BaseVestingAccount.encode(xn.baseVestingAccount, mn.uint32(10).fork()).ldelim(), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof sn.Reader ? xn : new sn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = an() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.baseVestingAccount = e.BaseVestingAccount.decode(Bn, Bn.uint32()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - baseVestingAccount: (0, nn.isSet)(xn.baseVestingAccount) - ? e.BaseVestingAccount.fromJSON(xn.baseVestingAccount) - : void 0, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.baseVestingAccount !== void 0 && - (mn.baseVestingAccount = xn.baseVestingAccount - ? e.BaseVestingAccount.toJSON(xn.baseVestingAccount) - : void 0), - mn - ) - }, - fromPartial(xn) { - const mn = an() - return ( - (mn.baseVestingAccount = - xn.baseVestingAccount !== void 0 && xn.baseVestingAccount !== null - ? e.BaseVestingAccount.fromPartial(xn.baseVestingAccount) - : void 0), - mn - ) - }, - } -})(vesting) -Object.defineProperty(accounts, '__esModule', { value: !0 }) -accounts.accountFromAny = void 0 -const math_1$9 = build$a, - proto_signing_1$4 = build$8, - utils_1$a = build$5, - auth_1 = auth, - vesting_1 = vesting -function uint64FromProto(e) { - return math_1$9.Uint64.fromString(e.toString()) -} -function accountFromBaseAccount(e) { - const { address: o, pubKey: _, accountNumber: b, sequence: $ } = e, - en = _ ? (0, proto_signing_1$4.decodePubkey)(_) : null - return { - address: o, - pubkey: en, - accountNumber: uint64FromProto(b).toNumber(), - sequence: uint64FromProto($).toNumber(), - } -} -function accountFromAny(e) { - const { typeUrl: o, value: _ } = e - switch (o) { - case '/cosmos.auth.v1beta1.BaseAccount': - return accountFromBaseAccount(auth_1.BaseAccount.decode(_)) - case '/cosmos.auth.v1beta1.ModuleAccount': { - const b = auth_1.ModuleAccount.decode(_).baseAccount - return (0, utils_1$a.assert)(b), accountFromBaseAccount(b) - } - case '/cosmos.vesting.v1beta1.BaseVestingAccount': { - const b = vesting_1.BaseVestingAccount.decode(_)?.baseAccount - return (0, utils_1$a.assert)(b), accountFromBaseAccount(b) - } - case '/cosmos.vesting.v1beta1.ContinuousVestingAccount': { - const b = vesting_1.ContinuousVestingAccount.decode(_)?.baseVestingAccount?.baseAccount - return (0, utils_1$a.assert)(b), accountFromBaseAccount(b) - } - case '/cosmos.vesting.v1beta1.DelayedVestingAccount': { - const b = vesting_1.DelayedVestingAccount.decode(_)?.baseVestingAccount?.baseAccount - return (0, utils_1$a.assert)(b), accountFromBaseAccount(b) - } - case '/cosmos.vesting.v1beta1.PeriodicVestingAccount': { - const b = vesting_1.PeriodicVestingAccount.decode(_)?.baseVestingAccount?.baseAccount - return (0, utils_1$a.assert)(b), accountFromBaseAccount(b) - } - default: - throw new Error(`Unsupported type: '${o}'`) - } -} -accounts.accountFromAny = accountFromAny -var aminotypes = {} -Object.defineProperty(aminotypes, '__esModule', { value: !0 }) -aminotypes.AminoTypes = void 0 -class AminoTypes { - constructor(o) { - this.register = o - } - toAmino({ typeUrl: o, value: _ }) { - const b = this.register[o] - if (!b) - throw new Error( - `Type URL '${o}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`, - ) - return { type: b.aminoType, value: b.toAmino(_) } - } - fromAmino({ type: o, value: _ }) { - const b = Object.entries(this.register).filter(([$, { aminoType: en }]) => en === o) - switch (b.length) { - case 0: - throw new Error( - `Amino type identifier '${o}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`, - ) - case 1: { - const [$, en] = b[0] - return { typeUrl: $, value: en.fromAmino(_) } - } - default: - throw new Error( - `Multiple types are registered with Amino type identifier '${o}': '` + - b - .map(([$, en]) => $) - .sort() - .join("', '") + - "'. Thus fromAmino cannot be performed.", - ) - } - } -} -aminotypes.AminoTypes = AminoTypes -var events = {} -Object.defineProperty(events, '__esModule', { value: !0 }) -events.fromTendermintEvent = void 0 -const encoding_1$g = build$b -function fromTendermintEvent(e) { - return { - type: e.type, - attributes: e.attributes.map((o) => ({ - key: typeof o.key == 'string' ? o.key : (0, encoding_1$g.fromUtf8)(o.key, !0), - value: typeof o.value == 'string' ? o.value : (0, encoding_1$g.fromUtf8)(o.value, !0), - })), - } -} -events.fromTendermintEvent = fromTendermintEvent -var fee = {} -Object.defineProperty(fee, '__esModule', { value: !0 }) -fee.calculateFee = fee.GasPrice = void 0 -const math_1$8 = build$a, - proto_signing_1$3 = build$8 -function checkDenom(e) { - if (e.length < 3 || e.length > 128) throw new Error('Denom must be between 3 and 128 characters') -} -class GasPrice { - constructor(o, _) { - ;(this.amount = o), (this.denom = _) - } - static fromString(o) { - const _ = o.match(/^([0-9.]+)([a-z][a-z0-9]*)$/i) - if (!_) throw new Error('Invalid gas price string') - const [b, $, en] = _ - checkDenom(en) - const nn = 18, - sn = math_1$8.Decimal.fromUserInput($, nn) - return new GasPrice(sn, en) - } - toString() { - return this.amount.toString() + this.denom - } -} -fee.GasPrice = GasPrice -function calculateFee(e, o) { - const _ = typeof o == 'string' ? GasPrice.fromString(o) : o, - { denom: b, amount: $ } = _, - en = $.multiply(new math_1$8.Uint53(e)).ceil().toString() - return { amount: (0, proto_signing_1$3.coins)(en, b), gas: e.toString() } -} -fee.calculateFee = calculateFee -var logs = {} -Object.defineProperty(logs, '__esModule', { value: !0 }) -logs.findAttribute = - logs.parseRawLog = - logs.parseLogs = - logs.parseLog = - logs.parseEvent = - logs.parseAttribute = - void 0 -const utils_1$9 = build$5 -function parseAttribute(e) { - if (!(0, utils_1$9.isNonNullObject)(e)) throw new Error('Attribute must be a non-null object') - const { key: o, value: _ } = e - if (typeof o != 'string' || !o) throw new Error("Attribute's key must be a non-empty string") - if (typeof _ != 'string' && typeof _ < 'u') - throw new Error("Attribute's value must be a string or unset") - return { key: o, value: _ || '' } -} -logs.parseAttribute = parseAttribute -function parseEvent(e) { - if (!(0, utils_1$9.isNonNullObject)(e)) throw new Error('Event must be a non-null object') - const { type: o, attributes: _ } = e - if (typeof o != 'string' || o === '') throw new Error('Event type must be a non-empty string') - if (!Array.isArray(_)) throw new Error("Event's attributes must be an array") - return { type: o, attributes: _.map(parseAttribute) } -} -logs.parseEvent = parseEvent -function parseLog(e) { - if (!(0, utils_1$9.isNonNullObject)(e)) throw new Error('Log must be a non-null object') - const { msg_index: o, log: _, events: b } = e - if (typeof o != 'number') throw new Error("Log's msg_index must be a number") - if (typeof _ != 'string') throw new Error("Log's log must be a string") - if (!Array.isArray(b)) throw new Error("Log's events must be an array") - return { msg_index: o, log: _, events: b.map(parseEvent) } -} -logs.parseLog = parseLog -function parseLogs(e) { - if (!Array.isArray(e)) throw new Error('Logs must be an array') - return e.map(parseLog) -} -logs.parseLogs = parseLogs -function parseRawLog(e = '[]') { - const o = JSON.parse(e).map(({ events: _ }, b) => ({ msg_index: b, events: _, log: '' })) - return parseLogs(o) -} -logs.parseRawLog = parseRawLog -function findAttribute(e, o, _) { - const $ = e - .find(() => !0) - ?.events.find((en) => en.type === o) - ?.attributes.find((en) => en.key === _) - if (!$) - throw new Error(`Could not find attribute '${_}' in first event of type '${o}' in first log.`) - return $ -} -logs.findAttribute = findAttribute -var modules$1 = {}, - queries$b = {}, - query$d = {}, - pagination = {}, - __createBinding$e = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$e = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$e = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$e(o, e, _) - return __setModuleDefault$e(o, e), o - } -Object.defineProperty(pagination, '__esModule', { value: !0 }) -pagination.PageResponse = pagination.PageRequest = pagination.protobufPackage = void 0 -const helpers_1$a = helpers, - _m0$a = __importStar$e(minimalExports) -pagination.protobufPackage = 'cosmos.base.query.v1beta1' -function createBasePageRequest() { - return { - key: new Uint8Array(), - offset: helpers_1$a.Long.UZERO, - limit: helpers_1$a.Long.UZERO, - countTotal: !1, - reverse: !1, - } -} -pagination.PageRequest = { - encode(e, o = _m0$a.Writer.create()) { - return ( - e.key.length !== 0 && o.uint32(10).bytes(e.key), - e.offset.isZero() || o.uint32(16).uint64(e.offset), - e.limit.isZero() || o.uint32(24).uint64(e.limit), - e.countTotal === !0 && o.uint32(32).bool(e.countTotal), - e.reverse === !0 && o.uint32(40).bool(e.reverse), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$a.Reader ? e : new _m0$a.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBasePageRequest() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.key = _.bytes() - break - case 2: - $.offset = _.uint64() - break - case 3: - $.limit = _.uint64() - break - case 4: - $.countTotal = _.bool() - break - case 5: - $.reverse = _.bool() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - key: (0, helpers_1$a.isSet)(e.key) - ? (0, helpers_1$a.bytesFromBase64)(e.key) - : new Uint8Array(), - offset: (0, helpers_1$a.isSet)(e.offset) - ? helpers_1$a.Long.fromValue(e.offset) - : helpers_1$a.Long.UZERO, - limit: (0, helpers_1$a.isSet)(e.limit) - ? helpers_1$a.Long.fromValue(e.limit) - : helpers_1$a.Long.UZERO, - countTotal: (0, helpers_1$a.isSet)(e.countTotal) ? Boolean(e.countTotal) : !1, - reverse: (0, helpers_1$a.isSet)(e.reverse) ? Boolean(e.reverse) : !1, - } - }, - toJSON(e) { - const o = {} - return ( - e.key !== void 0 && - (o.key = (0, helpers_1$a.base64FromBytes)(e.key !== void 0 ? e.key : new Uint8Array())), - e.offset !== void 0 && (o.offset = (e.offset || helpers_1$a.Long.UZERO).toString()), - e.limit !== void 0 && (o.limit = (e.limit || helpers_1$a.Long.UZERO).toString()), - e.countTotal !== void 0 && (o.countTotal = e.countTotal), - e.reverse !== void 0 && (o.reverse = e.reverse), - o - ) - }, - fromPartial(e) { - const o = createBasePageRequest() - return ( - (o.key = e.key ?? new Uint8Array()), - (o.offset = - e.offset !== void 0 && e.offset !== null - ? helpers_1$a.Long.fromValue(e.offset) - : helpers_1$a.Long.UZERO), - (o.limit = - e.limit !== void 0 && e.limit !== null - ? helpers_1$a.Long.fromValue(e.limit) - : helpers_1$a.Long.UZERO), - (o.countTotal = e.countTotal ?? !1), - (o.reverse = e.reverse ?? !1), - o - ) - }, -} -function createBasePageResponse() { - return { nextKey: new Uint8Array(), total: helpers_1$a.Long.UZERO } -} -pagination.PageResponse = { - encode(e, o = _m0$a.Writer.create()) { - return ( - e.nextKey.length !== 0 && o.uint32(10).bytes(e.nextKey), - e.total.isZero() || o.uint32(16).uint64(e.total), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$a.Reader ? e : new _m0$a.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBasePageResponse() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.nextKey = _.bytes() - break - case 2: - $.total = _.uint64() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - nextKey: (0, helpers_1$a.isSet)(e.nextKey) - ? (0, helpers_1$a.bytesFromBase64)(e.nextKey) - : new Uint8Array(), - total: (0, helpers_1$a.isSet)(e.total) - ? helpers_1$a.Long.fromValue(e.total) - : helpers_1$a.Long.UZERO, - } - }, - toJSON(e) { - const o = {} - return ( - e.nextKey !== void 0 && - (o.nextKey = (0, helpers_1$a.base64FromBytes)( - e.nextKey !== void 0 ? e.nextKey : new Uint8Array(), - )), - e.total !== void 0 && (o.total = (e.total || helpers_1$a.Long.UZERO).toString()), - o - ) - }, - fromPartial(e) { - const o = createBasePageResponse() - return ( - (o.nextKey = e.nextKey ?? new Uint8Array()), - (o.total = - e.total !== void 0 && e.total !== null - ? helpers_1$a.Long.fromValue(e.total) - : helpers_1$a.Long.UZERO), - o - ) - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (dn, Nn, fn, _n) { - _n === void 0 && (_n = fn) - var Ln = Object.getOwnPropertyDescriptor(Nn, fn) - ;(!Ln || ('get' in Ln ? !Nn.__esModule : Ln.writable || Ln.configurable)) && - (Ln = { - enumerable: !0, - get: function () { - return Nn[fn] - }, - }), - Object.defineProperty(dn, _n, Ln) - } - : function (dn, Nn, fn, _n) { - _n === void 0 && (_n = fn), (dn[_n] = Nn[fn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (dn, Nn) { - Object.defineProperty(dn, 'default', { enumerable: !0, value: Nn }) - } - : function (dn, Nn) { - dn.default = Nn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (dn) { - if (dn && dn.__esModule) return dn - var Nn = {} - if (dn != null) - for (var fn in dn) - fn !== 'default' && Object.prototype.hasOwnProperty.call(dn, fn) && o(Nn, dn, fn) - return _(Nn, dn), Nn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryAccountInfoResponse = - e.QueryAccountInfoRequest = - e.QueryAccountAddressByIDResponse = - e.QueryAccountAddressByIDRequest = - e.AddressStringToBytesResponse = - e.AddressStringToBytesRequest = - e.AddressBytesToStringResponse = - e.AddressBytesToStringRequest = - e.Bech32PrefixResponse = - e.Bech32PrefixRequest = - e.QueryModuleAccountByNameResponse = - e.QueryModuleAccountByNameRequest = - e.QueryModuleAccountsResponse = - e.QueryModuleAccountsRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.QueryAccountResponse = - e.QueryAccountRequest = - e.QueryAccountsResponse = - e.QueryAccountsRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = any, - nn = auth, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'cosmos.auth.v1beta1' - function In() { - return { pagination: void 0 } - } - e.QueryAccountsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return ( - dn.pagination !== void 0 && - $.PageRequest.encode(dn.pagination, Nn.uint32(10).fork()).ldelim(), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = In() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.pagination = $.PageRequest.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - pagination: (0, sn.isSet)(dn.pagination) ? $.PageRequest.fromJSON(dn.pagination) : void 0, - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.pagination !== void 0 && - (Nn.pagination = dn.pagination ? $.PageRequest.toJSON(dn.pagination) : void 0), - Nn - ) - }, - fromPartial(dn) { - const Nn = In() - return ( - (Nn.pagination = - dn.pagination !== void 0 && dn.pagination !== null - ? $.PageRequest.fromPartial(dn.pagination) - : void 0), - Nn - ) - }, - } - function Jn() { - return { accounts: [], pagination: void 0 } - } - e.QueryAccountsResponse = { - encode(dn, Nn = gn.Writer.create()) { - for (const fn of dn.accounts) en.Any.encode(fn, Nn.uint32(10).fork()).ldelim() - return ( - dn.pagination !== void 0 && - $.PageResponse.encode(dn.pagination, Nn.uint32(18).fork()).ldelim(), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Jn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.accounts.push(en.Any.decode(fn, fn.uint32())) - break - case 2: - Ln.pagination = $.PageResponse.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - accounts: Array.isArray(dn?.accounts) ? dn.accounts.map((Nn) => en.Any.fromJSON(Nn)) : [], - pagination: (0, sn.isSet)(dn.pagination) ? $.PageResponse.fromJSON(dn.pagination) : void 0, - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.accounts - ? (Nn.accounts = dn.accounts.map((fn) => (fn ? en.Any.toJSON(fn) : void 0))) - : (Nn.accounts = []), - dn.pagination !== void 0 && - (Nn.pagination = dn.pagination ? $.PageResponse.toJSON(dn.pagination) : void 0), - Nn - ) - }, - fromPartial(dn) { - const Nn = Jn() - return ( - (Nn.accounts = dn.accounts?.map((fn) => en.Any.fromPartial(fn)) || []), - (Nn.pagination = - dn.pagination !== void 0 && dn.pagination !== null - ? $.PageResponse.fromPartial(dn.pagination) - : void 0), - Nn - ) - }, - } - function qn() { - return { address: '' } - } - e.QueryAccountRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.address !== '' && Nn.uint32(10).string(dn.address), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = qn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.address = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { address: (0, sn.isSet)(dn.address) ? String(dn.address) : '' } - }, - toJSON(dn) { - const Nn = {} - return dn.address !== void 0 && (Nn.address = dn.address), Nn - }, - fromPartial(dn) { - const Nn = qn() - return (Nn.address = dn.address ?? ''), Nn - }, - } - function Kn() { - return { account: void 0 } - } - e.QueryAccountResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.account !== void 0 && en.Any.encode(dn.account, Nn.uint32(10).fork()).ldelim(), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Kn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.account = en.Any.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { account: (0, sn.isSet)(dn.account) ? en.Any.fromJSON(dn.account) : void 0 } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.account !== void 0 && (Nn.account = dn.account ? en.Any.toJSON(dn.account) : void 0), Nn - ) - }, - fromPartial(dn) { - const Nn = Kn() - return ( - (Nn.account = - dn.account !== void 0 && dn.account !== null ? en.Any.fromPartial(dn.account) : void 0), - Nn - ) - }, - } - function an() { - return {} - } - e.QueryParamsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = an() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return {} - }, - toJSON(dn) { - return {} - }, - fromPartial(dn) { - return an() - }, - } - function xn() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.params !== void 0 && nn.Params.encode(dn.params, Nn.uint32(10).fork()).ldelim(), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = xn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.params = nn.Params.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { params: (0, sn.isSet)(dn.params) ? nn.Params.fromJSON(dn.params) : void 0 } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.params !== void 0 && (Nn.params = dn.params ? nn.Params.toJSON(dn.params) : void 0), Nn - ) - }, - fromPartial(dn) { - const Nn = xn() - return ( - (Nn.params = - dn.params !== void 0 && dn.params !== null ? nn.Params.fromPartial(dn.params) : void 0), - Nn - ) - }, - } - function mn() { - return {} - } - e.QueryModuleAccountsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = mn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return {} - }, - toJSON(dn) { - return {} - }, - fromPartial(dn) { - return mn() - }, - } - function Bn() { - return { accounts: [] } - } - e.QueryModuleAccountsResponse = { - encode(dn, Nn = gn.Writer.create()) { - for (const fn of dn.accounts) en.Any.encode(fn, Nn.uint32(10).fork()).ldelim() - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Bn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.accounts.push(en.Any.decode(fn, fn.uint32())) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - accounts: Array.isArray(dn?.accounts) ? dn.accounts.map((Nn) => en.Any.fromJSON(Nn)) : [], - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.accounts - ? (Nn.accounts = dn.accounts.map((fn) => (fn ? en.Any.toJSON(fn) : void 0))) - : (Nn.accounts = []), - Nn - ) - }, - fromPartial(dn) { - const Nn = Bn() - return (Nn.accounts = dn.accounts?.map((fn) => en.Any.fromPartial(fn)) || []), Nn - }, - } - function kn() { - return { name: '' } - } - e.QueryModuleAccountByNameRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.name !== '' && Nn.uint32(10).string(dn.name), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = kn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.name = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { name: (0, sn.isSet)(dn.name) ? String(dn.name) : '' } - }, - toJSON(dn) { - const Nn = {} - return dn.name !== void 0 && (Nn.name = dn.name), Nn - }, - fromPartial(dn) { - const Nn = kn() - return (Nn.name = dn.name ?? ''), Nn - }, - } - function ln() { - return { account: void 0 } - } - e.QueryModuleAccountByNameResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.account !== void 0 && en.Any.encode(dn.account, Nn.uint32(10).fork()).ldelim(), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = ln() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.account = en.Any.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { account: (0, sn.isSet)(dn.account) ? en.Any.fromJSON(dn.account) : void 0 } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.account !== void 0 && (Nn.account = dn.account ? en.Any.toJSON(dn.account) : void 0), Nn - ) - }, - fromPartial(dn) { - const Nn = ln() - return ( - (Nn.account = - dn.account !== void 0 && dn.account !== null ? en.Any.fromPartial(dn.account) : void 0), - Nn - ) - }, - } - function yn() { - return {} - } - e.Bech32PrefixRequest = { - encode(dn, Nn = gn.Writer.create()) { - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = yn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return {} - }, - toJSON(dn) { - return {} - }, - fromPartial(dn) { - return yn() - }, - } - function Cn() { - return { bech32Prefix: '' } - } - e.Bech32PrefixResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.bech32Prefix !== '' && Nn.uint32(10).string(dn.bech32Prefix), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Cn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.bech32Prefix = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { bech32Prefix: (0, sn.isSet)(dn.bech32Prefix) ? String(dn.bech32Prefix) : '' } - }, - toJSON(dn) { - const Nn = {} - return dn.bech32Prefix !== void 0 && (Nn.bech32Prefix = dn.bech32Prefix), Nn - }, - fromPartial(dn) { - const Nn = Cn() - return (Nn.bech32Prefix = dn.bech32Prefix ?? ''), Nn - }, - } - function Tn() { - return { addressBytes: new Uint8Array() } - } - e.AddressBytesToStringRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.addressBytes.length !== 0 && Nn.uint32(10).bytes(dn.addressBytes), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Tn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.addressBytes = fn.bytes() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - addressBytes: (0, sn.isSet)(dn.addressBytes) - ? (0, sn.bytesFromBase64)(dn.addressBytes) - : new Uint8Array(), - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.addressBytes !== void 0 && - (Nn.addressBytes = (0, sn.base64FromBytes)( - dn.addressBytes !== void 0 ? dn.addressBytes : new Uint8Array(), - )), - Nn - ) - }, - fromPartial(dn) { - const Nn = Tn() - return (Nn.addressBytes = dn.addressBytes ?? new Uint8Array()), Nn - }, - } - function Gn() { - return { addressString: '' } - } - e.AddressBytesToStringResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.addressString !== '' && Nn.uint32(10).string(dn.addressString), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Gn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.addressString = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { addressString: (0, sn.isSet)(dn.addressString) ? String(dn.addressString) : '' } - }, - toJSON(dn) { - const Nn = {} - return dn.addressString !== void 0 && (Nn.addressString = dn.addressString), Nn - }, - fromPartial(dn) { - const Nn = Gn() - return (Nn.addressString = dn.addressString ?? ''), Nn - }, - } - function Sn() { - return { addressString: '' } - } - e.AddressStringToBytesRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.addressString !== '' && Nn.uint32(10).string(dn.addressString), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Sn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.addressString = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { addressString: (0, sn.isSet)(dn.addressString) ? String(dn.addressString) : '' } - }, - toJSON(dn) { - const Nn = {} - return dn.addressString !== void 0 && (Nn.addressString = dn.addressString), Nn - }, - fromPartial(dn) { - const Nn = Sn() - return (Nn.addressString = dn.addressString ?? ''), Nn - }, - } - function Zn() { - return { addressBytes: new Uint8Array() } - } - e.AddressStringToBytesResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.addressBytes.length !== 0 && Nn.uint32(10).bytes(dn.addressBytes), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Zn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.addressBytes = fn.bytes() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - addressBytes: (0, sn.isSet)(dn.addressBytes) - ? (0, sn.bytesFromBase64)(dn.addressBytes) - : new Uint8Array(), - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.addressBytes !== void 0 && - (Nn.addressBytes = (0, sn.base64FromBytes)( - dn.addressBytes !== void 0 ? dn.addressBytes : new Uint8Array(), - )), - Nn - ) - }, - fromPartial(dn) { - const Nn = Zn() - return (Nn.addressBytes = dn.addressBytes ?? new Uint8Array()), Nn - }, - } - function tn() { - return { id: sn.Long.ZERO, accountId: sn.Long.UZERO } - } - e.QueryAccountAddressByIDRequest = { - encode(dn, Nn = gn.Writer.create()) { - return ( - dn.id.isZero() || Nn.uint32(8).int64(dn.id), - dn.accountId.isZero() || Nn.uint32(16).uint64(dn.accountId), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = tn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.id = fn.int64() - break - case 2: - Ln.accountId = fn.uint64() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - id: (0, sn.isSet)(dn.id) ? sn.Long.fromValue(dn.id) : sn.Long.ZERO, - accountId: (0, sn.isSet)(dn.accountId) ? sn.Long.fromValue(dn.accountId) : sn.Long.UZERO, - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.id !== void 0 && (Nn.id = (dn.id || sn.Long.ZERO).toString()), - dn.accountId !== void 0 && (Nn.accountId = (dn.accountId || sn.Long.UZERO).toString()), - Nn - ) - }, - fromPartial(dn) { - const Nn = tn() - return ( - (Nn.id = dn.id !== void 0 && dn.id !== null ? sn.Long.fromValue(dn.id) : sn.Long.ZERO), - (Nn.accountId = - dn.accountId !== void 0 && dn.accountId !== null - ? sn.Long.fromValue(dn.accountId) - : sn.Long.UZERO), - Nn - ) - }, - } - function En() { - return { accountAddress: '' } - } - e.QueryAccountAddressByIDResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.accountAddress !== '' && Nn.uint32(10).string(dn.accountAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = En() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.accountAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { accountAddress: (0, sn.isSet)(dn.accountAddress) ? String(dn.accountAddress) : '' } - }, - toJSON(dn) { - const Nn = {} - return dn.accountAddress !== void 0 && (Nn.accountAddress = dn.accountAddress), Nn - }, - fromPartial(dn) { - const Nn = En() - return (Nn.accountAddress = dn.accountAddress ?? ''), Nn - }, - } - function Mn() { - return { address: '' } - } - e.QueryAccountInfoRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.address !== '' && Nn.uint32(10).string(dn.address), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Mn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.address = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { address: (0, sn.isSet)(dn.address) ? String(dn.address) : '' } - }, - toJSON(dn) { - const Nn = {} - return dn.address !== void 0 && (Nn.address = dn.address), Nn - }, - fromPartial(dn) { - const Nn = Mn() - return (Nn.address = dn.address ?? ''), Nn - }, - } - function Hn() { - return { info: void 0 } - } - e.QueryAccountInfoResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.info !== void 0 && nn.BaseAccount.encode(dn.info, Nn.uint32(10).fork()).ldelim(), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Hn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.info = nn.BaseAccount.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { info: (0, sn.isSet)(dn.info) ? nn.BaseAccount.fromJSON(dn.info) : void 0 } - }, - toJSON(dn) { - const Nn = {} - return dn.info !== void 0 && (Nn.info = dn.info ? nn.BaseAccount.toJSON(dn.info) : void 0), Nn - }, - fromPartial(dn) { - const Nn = Hn() - return ( - (Nn.info = - dn.info !== void 0 && dn.info !== null ? nn.BaseAccount.fromPartial(dn.info) : void 0), - Nn - ) - }, - } - class un { - constructor(Nn) { - ;(this.rpc = Nn), - (this.Accounts = this.Accounts.bind(this)), - (this.Account = this.Account.bind(this)), - (this.AccountAddressByID = this.AccountAddressByID.bind(this)), - (this.Params = this.Params.bind(this)), - (this.ModuleAccounts = this.ModuleAccounts.bind(this)), - (this.ModuleAccountByName = this.ModuleAccountByName.bind(this)), - (this.Bech32Prefix = this.Bech32Prefix.bind(this)), - (this.AddressBytesToString = this.AddressBytesToString.bind(this)), - (this.AddressStringToBytes = this.AddressStringToBytes.bind(this)), - (this.AccountInfo = this.AccountInfo.bind(this)) - } - Accounts(Nn = { pagination: void 0 }) { - const fn = e.QueryAccountsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'Accounts', fn) - .then((Ln) => e.QueryAccountsResponse.decode(new gn.Reader(Ln))) - } - Account(Nn) { - const fn = e.QueryAccountRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'Account', fn) - .then((Ln) => e.QueryAccountResponse.decode(new gn.Reader(Ln))) - } - AccountAddressByID(Nn) { - const fn = e.QueryAccountAddressByIDRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'AccountAddressByID', fn) - .then((Ln) => e.QueryAccountAddressByIDResponse.decode(new gn.Reader(Ln))) - } - Params(Nn = {}) { - const fn = e.QueryParamsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'Params', fn) - .then((Ln) => e.QueryParamsResponse.decode(new gn.Reader(Ln))) - } - ModuleAccounts(Nn = {}) { - const fn = e.QueryModuleAccountsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'ModuleAccounts', fn) - .then((Ln) => e.QueryModuleAccountsResponse.decode(new gn.Reader(Ln))) - } - ModuleAccountByName(Nn) { - const fn = e.QueryModuleAccountByNameRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'ModuleAccountByName', fn) - .then((Ln) => e.QueryModuleAccountByNameResponse.decode(new gn.Reader(Ln))) - } - Bech32Prefix(Nn = {}) { - const fn = e.Bech32PrefixRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'Bech32Prefix', fn) - .then((Ln) => e.Bech32PrefixResponse.decode(new gn.Reader(Ln))) - } - AddressBytesToString(Nn) { - const fn = e.AddressBytesToStringRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'AddressBytesToString', fn) - .then((Ln) => e.AddressBytesToStringResponse.decode(new gn.Reader(Ln))) - } - AddressStringToBytes(Nn) { - const fn = e.AddressStringToBytesRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'AddressStringToBytes', fn) - .then((Ln) => e.AddressStringToBytesResponse.decode(new gn.Reader(Ln))) - } - AccountInfo(Nn) { - const fn = e.QueryAccountInfoRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.auth.v1beta1.Query', 'AccountInfo', fn) - .then((Ln) => e.QueryAccountInfoResponse.decode(new gn.Reader(Ln))) - } - } - e.QueryClientImpl = un -})(query$d) -var queryclient$1 = {}, - queryclient = {}, - build$4 = {}, - $protobuf = minimalExports, - $Reader = $protobuf.Reader, - $Writer = $protobuf.Writer, - $util = $protobuf.util, - $root = $protobuf.roots.default || ($protobuf.roots.default = {}) -$root.ics23 = (function () { - var e = {} - return ( - (e.HashOp = (function () { - var o = {}, - _ = Object.create(o) - return ( - (_[(o[0] = 'NO_HASH')] = 0), - (_[(o[1] = 'SHA256')] = 1), - (_[(o[2] = 'SHA512')] = 2), - (_[(o[3] = 'KECCAK')] = 3), - (_[(o[4] = 'RIPEMD160')] = 4), - (_[(o[5] = 'BITCOIN')] = 5), - (_[(o[6] = 'SHA512_256')] = 6), - _ - ) - })()), - (e.LengthOp = (function () { - var o = {}, - _ = Object.create(o) - return ( - (_[(o[0] = 'NO_PREFIX')] = 0), - (_[(o[1] = 'VAR_PROTO')] = 1), - (_[(o[2] = 'VAR_RLP')] = 2), - (_[(o[3] = 'FIXED32_BIG')] = 3), - (_[(o[4] = 'FIXED32_LITTLE')] = 4), - (_[(o[5] = 'FIXED64_BIG')] = 5), - (_[(o[6] = 'FIXED64_LITTLE')] = 6), - (_[(o[7] = 'REQUIRE_32_BYTES')] = 7), - (_[(o[8] = 'REQUIRE_64_BYTES')] = 8), - _ - ) - })()), - (e.ExistenceProof = (function () { - function o(_) { - if (((this.path = []), _)) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.key = $util.newBuffer([])), - (o.prototype.value = $util.newBuffer([])), - (o.prototype.leaf = null), - (o.prototype.path = $util.emptyArray), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - if ( - ($ || ($ = $Writer.create()), - b.key != null && b.hasOwnProperty('key') && $.uint32(10).bytes(b.key), - b.value != null && b.hasOwnProperty('value') && $.uint32(18).bytes(b.value), - b.leaf != null && - b.hasOwnProperty('leaf') && - $root.ics23.LeafOp.encode(b.leaf, $.uint32(26).fork()).ldelim(), - b.path != null && b.path.length) - ) - for (var en = 0; en < b.path.length; ++en) - $root.ics23.InnerOp.encode(b.path[en], $.uint32(34).fork()).ldelim() - return $ - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.ExistenceProof(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - nn.key = b.bytes() - break - case 2: - nn.value = b.bytes() - break - case 3: - nn.leaf = $root.ics23.LeafOp.decode(b, b.uint32()) - break - case 4: - ;(nn.path && nn.path.length) || (nn.path = []), - nn.path.push($root.ics23.InnerOp.decode(b, b.uint32())) - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if ( - b.key != null && - b.hasOwnProperty('key') && - !((b.key && typeof b.key.length == 'number') || $util.isString(b.key)) - ) - return 'key: buffer expected' - if ( - b.value != null && - b.hasOwnProperty('value') && - !((b.value && typeof b.value.length == 'number') || $util.isString(b.value)) - ) - return 'value: buffer expected' - if (b.leaf != null && b.hasOwnProperty('leaf')) { - var $ = $root.ics23.LeafOp.verify(b.leaf) - if ($) return 'leaf.' + $ - } - if (b.path != null && b.hasOwnProperty('path')) { - if (!Array.isArray(b.path)) return 'path: array expected' - for (var en = 0; en < b.path.length; ++en) { - var $ = $root.ics23.InnerOp.verify(b.path[en]) - if ($) return 'path.' + $ - } - } - return null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.ExistenceProof) return b - var $ = new $root.ics23.ExistenceProof() - if ( - (b.key != null && - (typeof b.key == 'string' - ? $util.base64.decode( - b.key, - ($.key = $util.newBuffer($util.base64.length(b.key))), - 0, - ) - : b.key.length && ($.key = b.key)), - b.value != null && - (typeof b.value == 'string' - ? $util.base64.decode( - b.value, - ($.value = $util.newBuffer($util.base64.length(b.value))), - 0, - ) - : b.value.length && ($.value = b.value)), - b.leaf != null) - ) { - if (typeof b.leaf != 'object') - throw TypeError('.ics23.ExistenceProof.leaf: object expected') - $.leaf = $root.ics23.LeafOp.fromObject(b.leaf) - } - if (b.path) { - if (!Array.isArray(b.path)) - throw TypeError('.ics23.ExistenceProof.path: array expected') - $.path = [] - for (var en = 0; en < b.path.length; ++en) { - if (typeof b.path[en] != 'object') - throw TypeError('.ics23.ExistenceProof.path: object expected') - $.path[en] = $root.ics23.InnerOp.fromObject(b.path[en]) - } - } - return $ - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - if ( - (($.arrays || $.defaults) && (en.path = []), - $.defaults && - ($.bytes === String - ? (en.key = '') - : ((en.key = []), $.bytes !== Array && (en.key = $util.newBuffer(en.key))), - $.bytes === String - ? (en.value = '') - : ((en.value = []), $.bytes !== Array && (en.value = $util.newBuffer(en.value))), - (en.leaf = null)), - b.key != null && - b.hasOwnProperty('key') && - (en.key = - $.bytes === String - ? $util.base64.encode(b.key, 0, b.key.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), - b.value != null && - b.hasOwnProperty('value') && - (en.value = - $.bytes === String - ? $util.base64.encode(b.value, 0, b.value.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.value) - : b.value), - b.leaf != null && - b.hasOwnProperty('leaf') && - (en.leaf = $root.ics23.LeafOp.toObject(b.leaf, $)), - b.path && b.path.length) - ) { - en.path = [] - for (var nn = 0; nn < b.path.length; ++nn) - en.path[nn] = $root.ics23.InnerOp.toObject(b.path[nn], $) - } - return en - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.NonExistenceProof = (function () { - function o(_) { - if (_) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.key = $util.newBuffer([])), - (o.prototype.left = null), - (o.prototype.right = null), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - return ( - $ || ($ = $Writer.create()), - b.key != null && b.hasOwnProperty('key') && $.uint32(10).bytes(b.key), - b.left != null && - b.hasOwnProperty('left') && - $root.ics23.ExistenceProof.encode(b.left, $.uint32(18).fork()).ldelim(), - b.right != null && - b.hasOwnProperty('right') && - $root.ics23.ExistenceProof.encode(b.right, $.uint32(26).fork()).ldelim(), - $ - ) - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.NonExistenceProof(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - nn.key = b.bytes() - break - case 2: - nn.left = $root.ics23.ExistenceProof.decode(b, b.uint32()) - break - case 3: - nn.right = $root.ics23.ExistenceProof.decode(b, b.uint32()) - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if ( - b.key != null && - b.hasOwnProperty('key') && - !((b.key && typeof b.key.length == 'number') || $util.isString(b.key)) - ) - return 'key: buffer expected' - if (b.left != null && b.hasOwnProperty('left')) { - var $ = $root.ics23.ExistenceProof.verify(b.left) - if ($) return 'left.' + $ - } - if (b.right != null && b.hasOwnProperty('right')) { - var $ = $root.ics23.ExistenceProof.verify(b.right) - if ($) return 'right.' + $ - } - return null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.NonExistenceProof) return b - var $ = new $root.ics23.NonExistenceProof() - if ( - (b.key != null && - (typeof b.key == 'string' - ? $util.base64.decode( - b.key, - ($.key = $util.newBuffer($util.base64.length(b.key))), - 0, - ) - : b.key.length && ($.key = b.key)), - b.left != null) - ) { - if (typeof b.left != 'object') - throw TypeError('.ics23.NonExistenceProof.left: object expected') - $.left = $root.ics23.ExistenceProof.fromObject(b.left) - } - if (b.right != null) { - if (typeof b.right != 'object') - throw TypeError('.ics23.NonExistenceProof.right: object expected') - $.right = $root.ics23.ExistenceProof.fromObject(b.right) - } - return $ - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - return ( - $.defaults && - ($.bytes === String - ? (en.key = '') - : ((en.key = []), $.bytes !== Array && (en.key = $util.newBuffer(en.key))), - (en.left = null), - (en.right = null)), - b.key != null && - b.hasOwnProperty('key') && - (en.key = - $.bytes === String - ? $util.base64.encode(b.key, 0, b.key.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), - b.left != null && - b.hasOwnProperty('left') && - (en.left = $root.ics23.ExistenceProof.toObject(b.left, $)), - b.right != null && - b.hasOwnProperty('right') && - (en.right = $root.ics23.ExistenceProof.toObject(b.right, $)), - en - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.CommitmentProof = (function () { - function o(b) { - if (b) - for (var $ = Object.keys(b), en = 0; en < $.length; ++en) - b[$[en]] != null && (this[$[en]] = b[$[en]]) - } - ;(o.prototype.exist = null), - (o.prototype.nonexist = null), - (o.prototype.batch = null), - (o.prototype.compressed = null) - var _ - return ( - Object.defineProperty(o.prototype, 'proof', { - get: $util.oneOfGetter((_ = ['exist', 'nonexist', 'batch', 'compressed'])), - set: $util.oneOfSetter(_), - }), - (o.create = function ($) { - return new o($) - }), - (o.encode = function ($, en) { - return ( - en || (en = $Writer.create()), - $.exist != null && - $.hasOwnProperty('exist') && - $root.ics23.ExistenceProof.encode($.exist, en.uint32(10).fork()).ldelim(), - $.nonexist != null && - $.hasOwnProperty('nonexist') && - $root.ics23.NonExistenceProof.encode($.nonexist, en.uint32(18).fork()).ldelim(), - $.batch != null && - $.hasOwnProperty('batch') && - $root.ics23.BatchProof.encode($.batch, en.uint32(26).fork()).ldelim(), - $.compressed != null && - $.hasOwnProperty('compressed') && - $root.ics23.CompressedBatchProof.encode($.compressed, en.uint32(34).fork()).ldelim(), - en - ) - }), - (o.encodeDelimited = function ($, en) { - return this.encode($, en).ldelim() - }), - (o.decode = function ($, en) { - $ instanceof $Reader || ($ = $Reader.create($)) - for ( - var nn = en === void 0 ? $.len : $.pos + en, sn = new $root.ics23.CommitmentProof(); - $.pos < nn; - - ) { - var gn = $.uint32() - switch (gn >>> 3) { - case 1: - sn.exist = $root.ics23.ExistenceProof.decode($, $.uint32()) - break - case 2: - sn.nonexist = $root.ics23.NonExistenceProof.decode($, $.uint32()) - break - case 3: - sn.batch = $root.ics23.BatchProof.decode($, $.uint32()) - break - case 4: - sn.compressed = $root.ics23.CompressedBatchProof.decode($, $.uint32()) - break - default: - $.skipType(gn & 7) - break - } - } - return sn - }), - (o.decodeDelimited = function ($) { - return $ instanceof $Reader || ($ = new $Reader($)), this.decode($, $.uint32()) - }), - (o.verify = function ($) { - if (typeof $ != 'object' || $ === null) return 'object expected' - var en = {} - if ($.exist != null && $.hasOwnProperty('exist')) { - en.proof = 1 - { - var nn = $root.ics23.ExistenceProof.verify($.exist) - if (nn) return 'exist.' + nn - } - } - if ($.nonexist != null && $.hasOwnProperty('nonexist')) { - if (en.proof === 1) return 'proof: multiple values' - en.proof = 1 - { - var nn = $root.ics23.NonExistenceProof.verify($.nonexist) - if (nn) return 'nonexist.' + nn - } - } - if ($.batch != null && $.hasOwnProperty('batch')) { - if (en.proof === 1) return 'proof: multiple values' - en.proof = 1 - { - var nn = $root.ics23.BatchProof.verify($.batch) - if (nn) return 'batch.' + nn - } - } - if ($.compressed != null && $.hasOwnProperty('compressed')) { - if (en.proof === 1) return 'proof: multiple values' - en.proof = 1 - { - var nn = $root.ics23.CompressedBatchProof.verify($.compressed) - if (nn) return 'compressed.' + nn - } - } - return null - }), - (o.fromObject = function ($) { - if ($ instanceof $root.ics23.CommitmentProof) return $ - var en = new $root.ics23.CommitmentProof() - if ($.exist != null) { - if (typeof $.exist != 'object') - throw TypeError('.ics23.CommitmentProof.exist: object expected') - en.exist = $root.ics23.ExistenceProof.fromObject($.exist) - } - if ($.nonexist != null) { - if (typeof $.nonexist != 'object') - throw TypeError('.ics23.CommitmentProof.nonexist: object expected') - en.nonexist = $root.ics23.NonExistenceProof.fromObject($.nonexist) - } - if ($.batch != null) { - if (typeof $.batch != 'object') - throw TypeError('.ics23.CommitmentProof.batch: object expected') - en.batch = $root.ics23.BatchProof.fromObject($.batch) - } - if ($.compressed != null) { - if (typeof $.compressed != 'object') - throw TypeError('.ics23.CommitmentProof.compressed: object expected') - en.compressed = $root.ics23.CompressedBatchProof.fromObject($.compressed) - } - return en - }), - (o.toObject = function ($, en) { - en || (en = {}) - var nn = {} - return ( - $.exist != null && - $.hasOwnProperty('exist') && - ((nn.exist = $root.ics23.ExistenceProof.toObject($.exist, en)), - en.oneofs && (nn.proof = 'exist')), - $.nonexist != null && - $.hasOwnProperty('nonexist') && - ((nn.nonexist = $root.ics23.NonExistenceProof.toObject($.nonexist, en)), - en.oneofs && (nn.proof = 'nonexist')), - $.batch != null && - $.hasOwnProperty('batch') && - ((nn.batch = $root.ics23.BatchProof.toObject($.batch, en)), - en.oneofs && (nn.proof = 'batch')), - $.compressed != null && - $.hasOwnProperty('compressed') && - ((nn.compressed = $root.ics23.CompressedBatchProof.toObject($.compressed, en)), - en.oneofs && (nn.proof = 'compressed')), - nn - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.LeafOp = (function () { - function o(_) { - if (_) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.hash = 0), - (o.prototype.prehashKey = 0), - (o.prototype.prehashValue = 0), - (o.prototype.length = 0), - (o.prototype.prefix = $util.newBuffer([])), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - return ( - $ || ($ = $Writer.create()), - b.hash != null && b.hasOwnProperty('hash') && $.uint32(8).int32(b.hash), - b.prehashKey != null && - b.hasOwnProperty('prehashKey') && - $.uint32(16).int32(b.prehashKey), - b.prehashValue != null && - b.hasOwnProperty('prehashValue') && - $.uint32(24).int32(b.prehashValue), - b.length != null && b.hasOwnProperty('length') && $.uint32(32).int32(b.length), - b.prefix != null && b.hasOwnProperty('prefix') && $.uint32(42).bytes(b.prefix), - $ - ) - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.LeafOp(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - nn.hash = b.int32() - break - case 2: - nn.prehashKey = b.int32() - break - case 3: - nn.prehashValue = b.int32() - break - case 4: - nn.length = b.int32() - break - case 5: - nn.prefix = b.bytes() - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if (b.hash != null && b.hasOwnProperty('hash')) - switch (b.hash) { - default: - return 'hash: enum value expected' - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break - } - if (b.prehashKey != null && b.hasOwnProperty('prehashKey')) - switch (b.prehashKey) { - default: - return 'prehashKey: enum value expected' - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break - } - if (b.prehashValue != null && b.hasOwnProperty('prehashValue')) - switch (b.prehashValue) { - default: - return 'prehashValue: enum value expected' - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break - } - if (b.length != null && b.hasOwnProperty('length')) - switch (b.length) { - default: - return 'length: enum value expected' - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break - } - return b.prefix != null && - b.hasOwnProperty('prefix') && - !((b.prefix && typeof b.prefix.length == 'number') || $util.isString(b.prefix)) - ? 'prefix: buffer expected' - : null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.LeafOp) return b - var $ = new $root.ics23.LeafOp() - switch (b.hash) { - case 'NO_HASH': - case 0: - $.hash = 0 - break - case 'SHA256': - case 1: - $.hash = 1 - break - case 'SHA512': - case 2: - $.hash = 2 - break - case 'KECCAK': - case 3: - $.hash = 3 - break - case 'RIPEMD160': - case 4: - $.hash = 4 - break - case 'BITCOIN': - case 5: - $.hash = 5 - break - case 'SHA512_256': - case 6: - $.hash = 6 - break - } - switch (b.prehashKey) { - case 'NO_HASH': - case 0: - $.prehashKey = 0 - break - case 'SHA256': - case 1: - $.prehashKey = 1 - break - case 'SHA512': - case 2: - $.prehashKey = 2 - break - case 'KECCAK': - case 3: - $.prehashKey = 3 - break - case 'RIPEMD160': - case 4: - $.prehashKey = 4 - break - case 'BITCOIN': - case 5: - $.prehashKey = 5 - break - case 'SHA512_256': - case 6: - $.prehashKey = 6 - break - } - switch (b.prehashValue) { - case 'NO_HASH': - case 0: - $.prehashValue = 0 - break - case 'SHA256': - case 1: - $.prehashValue = 1 - break - case 'SHA512': - case 2: - $.prehashValue = 2 - break - case 'KECCAK': - case 3: - $.prehashValue = 3 - break - case 'RIPEMD160': - case 4: - $.prehashValue = 4 - break - case 'BITCOIN': - case 5: - $.prehashValue = 5 - break - case 'SHA512_256': - case 6: - $.prehashValue = 6 - break - } - switch (b.length) { - case 'NO_PREFIX': - case 0: - $.length = 0 - break - case 'VAR_PROTO': - case 1: - $.length = 1 - break - case 'VAR_RLP': - case 2: - $.length = 2 - break - case 'FIXED32_BIG': - case 3: - $.length = 3 - break - case 'FIXED32_LITTLE': - case 4: - $.length = 4 - break - case 'FIXED64_BIG': - case 5: - $.length = 5 - break - case 'FIXED64_LITTLE': - case 6: - $.length = 6 - break - case 'REQUIRE_32_BYTES': - case 7: - $.length = 7 - break - case 'REQUIRE_64_BYTES': - case 8: - $.length = 8 - break - } - return ( - b.prefix != null && - (typeof b.prefix == 'string' - ? $util.base64.decode( - b.prefix, - ($.prefix = $util.newBuffer($util.base64.length(b.prefix))), - 0, - ) - : b.prefix.length && ($.prefix = b.prefix)), - $ - ) - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - return ( - $.defaults && - ((en.hash = $.enums === String ? 'NO_HASH' : 0), - (en.prehashKey = $.enums === String ? 'NO_HASH' : 0), - (en.prehashValue = $.enums === String ? 'NO_HASH' : 0), - (en.length = $.enums === String ? 'NO_PREFIX' : 0), - $.bytes === String - ? (en.prefix = '') - : ((en.prefix = []), - $.bytes !== Array && (en.prefix = $util.newBuffer(en.prefix)))), - b.hash != null && - b.hasOwnProperty('hash') && - (en.hash = $.enums === String ? $root.ics23.HashOp[b.hash] : b.hash), - b.prehashKey != null && - b.hasOwnProperty('prehashKey') && - (en.prehashKey = - $.enums === String ? $root.ics23.HashOp[b.prehashKey] : b.prehashKey), - b.prehashValue != null && - b.hasOwnProperty('prehashValue') && - (en.prehashValue = - $.enums === String ? $root.ics23.HashOp[b.prehashValue] : b.prehashValue), - b.length != null && - b.hasOwnProperty('length') && - (en.length = $.enums === String ? $root.ics23.LengthOp[b.length] : b.length), - b.prefix != null && - b.hasOwnProperty('prefix') && - (en.prefix = - $.bytes === String - ? $util.base64.encode(b.prefix, 0, b.prefix.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.prefix) - : b.prefix), - en - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.InnerOp = (function () { - function o(_) { - if (_) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.hash = 0), - (o.prototype.prefix = $util.newBuffer([])), - (o.prototype.suffix = $util.newBuffer([])), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - return ( - $ || ($ = $Writer.create()), - b.hash != null && b.hasOwnProperty('hash') && $.uint32(8).int32(b.hash), - b.prefix != null && b.hasOwnProperty('prefix') && $.uint32(18).bytes(b.prefix), - b.suffix != null && b.hasOwnProperty('suffix') && $.uint32(26).bytes(b.suffix), - $ - ) - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.InnerOp(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - nn.hash = b.int32() - break - case 2: - nn.prefix = b.bytes() - break - case 3: - nn.suffix = b.bytes() - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if (b.hash != null && b.hasOwnProperty('hash')) - switch (b.hash) { - default: - return 'hash: enum value expected' - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break - } - return b.prefix != null && - b.hasOwnProperty('prefix') && - !((b.prefix && typeof b.prefix.length == 'number') || $util.isString(b.prefix)) - ? 'prefix: buffer expected' - : b.suffix != null && - b.hasOwnProperty('suffix') && - !((b.suffix && typeof b.suffix.length == 'number') || $util.isString(b.suffix)) - ? 'suffix: buffer expected' - : null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.InnerOp) return b - var $ = new $root.ics23.InnerOp() - switch (b.hash) { - case 'NO_HASH': - case 0: - $.hash = 0 - break - case 'SHA256': - case 1: - $.hash = 1 - break - case 'SHA512': - case 2: - $.hash = 2 - break - case 'KECCAK': - case 3: - $.hash = 3 - break - case 'RIPEMD160': - case 4: - $.hash = 4 - break - case 'BITCOIN': - case 5: - $.hash = 5 - break - case 'SHA512_256': - case 6: - $.hash = 6 - break - } - return ( - b.prefix != null && - (typeof b.prefix == 'string' - ? $util.base64.decode( - b.prefix, - ($.prefix = $util.newBuffer($util.base64.length(b.prefix))), - 0, - ) - : b.prefix.length && ($.prefix = b.prefix)), - b.suffix != null && - (typeof b.suffix == 'string' - ? $util.base64.decode( - b.suffix, - ($.suffix = $util.newBuffer($util.base64.length(b.suffix))), - 0, - ) - : b.suffix.length && ($.suffix = b.suffix)), - $ - ) - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - return ( - $.defaults && - ((en.hash = $.enums === String ? 'NO_HASH' : 0), - $.bytes === String - ? (en.prefix = '') - : ((en.prefix = []), $.bytes !== Array && (en.prefix = $util.newBuffer(en.prefix))), - $.bytes === String - ? (en.suffix = '') - : ((en.suffix = []), - $.bytes !== Array && (en.suffix = $util.newBuffer(en.suffix)))), - b.hash != null && - b.hasOwnProperty('hash') && - (en.hash = $.enums === String ? $root.ics23.HashOp[b.hash] : b.hash), - b.prefix != null && - b.hasOwnProperty('prefix') && - (en.prefix = - $.bytes === String - ? $util.base64.encode(b.prefix, 0, b.prefix.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.prefix) - : b.prefix), - b.suffix != null && - b.hasOwnProperty('suffix') && - (en.suffix = - $.bytes === String - ? $util.base64.encode(b.suffix, 0, b.suffix.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.suffix) - : b.suffix), - en - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.ProofSpec = (function () { - function o(_) { - if (_) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.leafSpec = null), - (o.prototype.innerSpec = null), - (o.prototype.maxDepth = 0), - (o.prototype.minDepth = 0), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - return ( - $ || ($ = $Writer.create()), - b.leafSpec != null && - b.hasOwnProperty('leafSpec') && - $root.ics23.LeafOp.encode(b.leafSpec, $.uint32(10).fork()).ldelim(), - b.innerSpec != null && - b.hasOwnProperty('innerSpec') && - $root.ics23.InnerSpec.encode(b.innerSpec, $.uint32(18).fork()).ldelim(), - b.maxDepth != null && b.hasOwnProperty('maxDepth') && $.uint32(24).int32(b.maxDepth), - b.minDepth != null && b.hasOwnProperty('minDepth') && $.uint32(32).int32(b.minDepth), - $ - ) - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.ProofSpec(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - nn.leafSpec = $root.ics23.LeafOp.decode(b, b.uint32()) - break - case 2: - nn.innerSpec = $root.ics23.InnerSpec.decode(b, b.uint32()) - break - case 3: - nn.maxDepth = b.int32() - break - case 4: - nn.minDepth = b.int32() - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if (b.leafSpec != null && b.hasOwnProperty('leafSpec')) { - var $ = $root.ics23.LeafOp.verify(b.leafSpec) - if ($) return 'leafSpec.' + $ - } - if (b.innerSpec != null && b.hasOwnProperty('innerSpec')) { - var $ = $root.ics23.InnerSpec.verify(b.innerSpec) - if ($) return 'innerSpec.' + $ - } - return b.maxDepth != null && b.hasOwnProperty('maxDepth') && !$util.isInteger(b.maxDepth) - ? 'maxDepth: integer expected' - : b.minDepth != null && b.hasOwnProperty('minDepth') && !$util.isInteger(b.minDepth) - ? 'minDepth: integer expected' - : null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.ProofSpec) return b - var $ = new $root.ics23.ProofSpec() - if (b.leafSpec != null) { - if (typeof b.leafSpec != 'object') - throw TypeError('.ics23.ProofSpec.leafSpec: object expected') - $.leafSpec = $root.ics23.LeafOp.fromObject(b.leafSpec) - } - if (b.innerSpec != null) { - if (typeof b.innerSpec != 'object') - throw TypeError('.ics23.ProofSpec.innerSpec: object expected') - $.innerSpec = $root.ics23.InnerSpec.fromObject(b.innerSpec) - } - return ( - b.maxDepth != null && ($.maxDepth = b.maxDepth | 0), - b.minDepth != null && ($.minDepth = b.minDepth | 0), - $ - ) - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - return ( - $.defaults && - ((en.leafSpec = null), (en.innerSpec = null), (en.maxDepth = 0), (en.minDepth = 0)), - b.leafSpec != null && - b.hasOwnProperty('leafSpec') && - (en.leafSpec = $root.ics23.LeafOp.toObject(b.leafSpec, $)), - b.innerSpec != null && - b.hasOwnProperty('innerSpec') && - (en.innerSpec = $root.ics23.InnerSpec.toObject(b.innerSpec, $)), - b.maxDepth != null && b.hasOwnProperty('maxDepth') && (en.maxDepth = b.maxDepth), - b.minDepth != null && b.hasOwnProperty('minDepth') && (en.minDepth = b.minDepth), - en - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.InnerSpec = (function () { - function o(_) { - if (((this.childOrder = []), _)) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.childOrder = $util.emptyArray), - (o.prototype.childSize = 0), - (o.prototype.minPrefixLength = 0), - (o.prototype.maxPrefixLength = 0), - (o.prototype.emptyChild = $util.newBuffer([])), - (o.prototype.hash = 0), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - if (($ || ($ = $Writer.create()), b.childOrder != null && b.childOrder.length)) { - $.uint32(10).fork() - for (var en = 0; en < b.childOrder.length; ++en) $.int32(b.childOrder[en]) - $.ldelim() - } - return ( - b.childSize != null && b.hasOwnProperty('childSize') && $.uint32(16).int32(b.childSize), - b.minPrefixLength != null && - b.hasOwnProperty('minPrefixLength') && - $.uint32(24).int32(b.minPrefixLength), - b.maxPrefixLength != null && - b.hasOwnProperty('maxPrefixLength') && - $.uint32(32).int32(b.maxPrefixLength), - b.emptyChild != null && - b.hasOwnProperty('emptyChild') && - $.uint32(42).bytes(b.emptyChild), - b.hash != null && b.hasOwnProperty('hash') && $.uint32(48).int32(b.hash), - $ - ) - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.InnerSpec(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - if ( - ((nn.childOrder && nn.childOrder.length) || (nn.childOrder = []), (sn & 7) === 2) - ) - for (var gn = b.uint32() + b.pos; b.pos < gn; ) nn.childOrder.push(b.int32()) - else nn.childOrder.push(b.int32()) - break - case 2: - nn.childSize = b.int32() - break - case 3: - nn.minPrefixLength = b.int32() - break - case 4: - nn.maxPrefixLength = b.int32() - break - case 5: - nn.emptyChild = b.bytes() - break - case 6: - nn.hash = b.int32() - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if (b.childOrder != null && b.hasOwnProperty('childOrder')) { - if (!Array.isArray(b.childOrder)) return 'childOrder: array expected' - for (var $ = 0; $ < b.childOrder.length; ++$) - if (!$util.isInteger(b.childOrder[$])) return 'childOrder: integer[] expected' - } - if (b.childSize != null && b.hasOwnProperty('childSize') && !$util.isInteger(b.childSize)) - return 'childSize: integer expected' - if ( - b.minPrefixLength != null && - b.hasOwnProperty('minPrefixLength') && - !$util.isInteger(b.minPrefixLength) - ) - return 'minPrefixLength: integer expected' - if ( - b.maxPrefixLength != null && - b.hasOwnProperty('maxPrefixLength') && - !$util.isInteger(b.maxPrefixLength) - ) - return 'maxPrefixLength: integer expected' - if ( - b.emptyChild != null && - b.hasOwnProperty('emptyChild') && - !( - (b.emptyChild && typeof b.emptyChild.length == 'number') || - $util.isString(b.emptyChild) - ) - ) - return 'emptyChild: buffer expected' - if (b.hash != null && b.hasOwnProperty('hash')) - switch (b.hash) { - default: - return 'hash: enum value expected' - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break - } - return null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.InnerSpec) return b - var $ = new $root.ics23.InnerSpec() - if (b.childOrder) { - if (!Array.isArray(b.childOrder)) - throw TypeError('.ics23.InnerSpec.childOrder: array expected') - $.childOrder = [] - for (var en = 0; en < b.childOrder.length; ++en) $.childOrder[en] = b.childOrder[en] | 0 - } - switch ( - (b.childSize != null && ($.childSize = b.childSize | 0), - b.minPrefixLength != null && ($.minPrefixLength = b.minPrefixLength | 0), - b.maxPrefixLength != null && ($.maxPrefixLength = b.maxPrefixLength | 0), - b.emptyChild != null && - (typeof b.emptyChild == 'string' - ? $util.base64.decode( - b.emptyChild, - ($.emptyChild = $util.newBuffer($util.base64.length(b.emptyChild))), - 0, - ) - : b.emptyChild.length && ($.emptyChild = b.emptyChild)), - b.hash) - ) { - case 'NO_HASH': - case 0: - $.hash = 0 - break - case 'SHA256': - case 1: - $.hash = 1 - break - case 'SHA512': - case 2: - $.hash = 2 - break - case 'KECCAK': - case 3: - $.hash = 3 - break - case 'RIPEMD160': - case 4: - $.hash = 4 - break - case 'BITCOIN': - case 5: - $.hash = 5 - break - case 'SHA512_256': - case 6: - $.hash = 6 - break - } - return $ - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - if ( - (($.arrays || $.defaults) && (en.childOrder = []), - $.defaults && - ((en.childSize = 0), - (en.minPrefixLength = 0), - (en.maxPrefixLength = 0), - $.bytes === String - ? (en.emptyChild = '') - : ((en.emptyChild = []), - $.bytes !== Array && (en.emptyChild = $util.newBuffer(en.emptyChild))), - (en.hash = $.enums === String ? 'NO_HASH' : 0)), - b.childOrder && b.childOrder.length) - ) { - en.childOrder = [] - for (var nn = 0; nn < b.childOrder.length; ++nn) en.childOrder[nn] = b.childOrder[nn] - } - return ( - b.childSize != null && b.hasOwnProperty('childSize') && (en.childSize = b.childSize), - b.minPrefixLength != null && - b.hasOwnProperty('minPrefixLength') && - (en.minPrefixLength = b.minPrefixLength), - b.maxPrefixLength != null && - b.hasOwnProperty('maxPrefixLength') && - (en.maxPrefixLength = b.maxPrefixLength), - b.emptyChild != null && - b.hasOwnProperty('emptyChild') && - (en.emptyChild = - $.bytes === String - ? $util.base64.encode(b.emptyChild, 0, b.emptyChild.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.emptyChild) - : b.emptyChild), - b.hash != null && - b.hasOwnProperty('hash') && - (en.hash = $.enums === String ? $root.ics23.HashOp[b.hash] : b.hash), - en - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.BatchProof = (function () { - function o(_) { - if (((this.entries = []), _)) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.entries = $util.emptyArray), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - if (($ || ($ = $Writer.create()), b.entries != null && b.entries.length)) - for (var en = 0; en < b.entries.length; ++en) - $root.ics23.BatchEntry.encode(b.entries[en], $.uint32(10).fork()).ldelim() - return $ - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.BatchProof(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - ;(nn.entries && nn.entries.length) || (nn.entries = []), - nn.entries.push($root.ics23.BatchEntry.decode(b, b.uint32())) - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if (b.entries != null && b.hasOwnProperty('entries')) { - if (!Array.isArray(b.entries)) return 'entries: array expected' - for (var $ = 0; $ < b.entries.length; ++$) { - var en = $root.ics23.BatchEntry.verify(b.entries[$]) - if (en) return 'entries.' + en - } - } - return null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.BatchProof) return b - var $ = new $root.ics23.BatchProof() - if (b.entries) { - if (!Array.isArray(b.entries)) - throw TypeError('.ics23.BatchProof.entries: array expected') - $.entries = [] - for (var en = 0; en < b.entries.length; ++en) { - if (typeof b.entries[en] != 'object') - throw TypeError('.ics23.BatchProof.entries: object expected') - $.entries[en] = $root.ics23.BatchEntry.fromObject(b.entries[en]) - } - } - return $ - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - if ((($.arrays || $.defaults) && (en.entries = []), b.entries && b.entries.length)) { - en.entries = [] - for (var nn = 0; nn < b.entries.length; ++nn) - en.entries[nn] = $root.ics23.BatchEntry.toObject(b.entries[nn], $) - } - return en - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.BatchEntry = (function () { - function o(b) { - if (b) - for (var $ = Object.keys(b), en = 0; en < $.length; ++en) - b[$[en]] != null && (this[$[en]] = b[$[en]]) - } - ;(o.prototype.exist = null), (o.prototype.nonexist = null) - var _ - return ( - Object.defineProperty(o.prototype, 'proof', { - get: $util.oneOfGetter((_ = ['exist', 'nonexist'])), - set: $util.oneOfSetter(_), - }), - (o.create = function ($) { - return new o($) - }), - (o.encode = function ($, en) { - return ( - en || (en = $Writer.create()), - $.exist != null && - $.hasOwnProperty('exist') && - $root.ics23.ExistenceProof.encode($.exist, en.uint32(10).fork()).ldelim(), - $.nonexist != null && - $.hasOwnProperty('nonexist') && - $root.ics23.NonExistenceProof.encode($.nonexist, en.uint32(18).fork()).ldelim(), - en - ) - }), - (o.encodeDelimited = function ($, en) { - return this.encode($, en).ldelim() - }), - (o.decode = function ($, en) { - $ instanceof $Reader || ($ = $Reader.create($)) - for ( - var nn = en === void 0 ? $.len : $.pos + en, sn = new $root.ics23.BatchEntry(); - $.pos < nn; - - ) { - var gn = $.uint32() - switch (gn >>> 3) { - case 1: - sn.exist = $root.ics23.ExistenceProof.decode($, $.uint32()) - break - case 2: - sn.nonexist = $root.ics23.NonExistenceProof.decode($, $.uint32()) - break - default: - $.skipType(gn & 7) - break - } - } - return sn - }), - (o.decodeDelimited = function ($) { - return $ instanceof $Reader || ($ = new $Reader($)), this.decode($, $.uint32()) - }), - (o.verify = function ($) { - if (typeof $ != 'object' || $ === null) return 'object expected' - var en = {} - if ($.exist != null && $.hasOwnProperty('exist')) { - en.proof = 1 - { - var nn = $root.ics23.ExistenceProof.verify($.exist) - if (nn) return 'exist.' + nn - } - } - if ($.nonexist != null && $.hasOwnProperty('nonexist')) { - if (en.proof === 1) return 'proof: multiple values' - en.proof = 1 - { - var nn = $root.ics23.NonExistenceProof.verify($.nonexist) - if (nn) return 'nonexist.' + nn - } - } - return null - }), - (o.fromObject = function ($) { - if ($ instanceof $root.ics23.BatchEntry) return $ - var en = new $root.ics23.BatchEntry() - if ($.exist != null) { - if (typeof $.exist != 'object') - throw TypeError('.ics23.BatchEntry.exist: object expected') - en.exist = $root.ics23.ExistenceProof.fromObject($.exist) - } - if ($.nonexist != null) { - if (typeof $.nonexist != 'object') - throw TypeError('.ics23.BatchEntry.nonexist: object expected') - en.nonexist = $root.ics23.NonExistenceProof.fromObject($.nonexist) - } - return en - }), - (o.toObject = function ($, en) { - en || (en = {}) - var nn = {} - return ( - $.exist != null && - $.hasOwnProperty('exist') && - ((nn.exist = $root.ics23.ExistenceProof.toObject($.exist, en)), - en.oneofs && (nn.proof = 'exist')), - $.nonexist != null && - $.hasOwnProperty('nonexist') && - ((nn.nonexist = $root.ics23.NonExistenceProof.toObject($.nonexist, en)), - en.oneofs && (nn.proof = 'nonexist')), - nn - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.CompressedBatchProof = (function () { - function o(_) { - if (((this.entries = []), (this.lookupInners = []), _)) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.entries = $util.emptyArray), - (o.prototype.lookupInners = $util.emptyArray), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - if (($ || ($ = $Writer.create()), b.entries != null && b.entries.length)) - for (var en = 0; en < b.entries.length; ++en) - $root.ics23.CompressedBatchEntry.encode(b.entries[en], $.uint32(10).fork()).ldelim() - if (b.lookupInners != null && b.lookupInners.length) - for (var en = 0; en < b.lookupInners.length; ++en) - $root.ics23.InnerOp.encode(b.lookupInners[en], $.uint32(18).fork()).ldelim() - return $ - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, nn = new $root.ics23.CompressedBatchProof(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - ;(nn.entries && nn.entries.length) || (nn.entries = []), - nn.entries.push($root.ics23.CompressedBatchEntry.decode(b, b.uint32())) - break - case 2: - ;(nn.lookupInners && nn.lookupInners.length) || (nn.lookupInners = []), - nn.lookupInners.push($root.ics23.InnerOp.decode(b, b.uint32())) - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if (b.entries != null && b.hasOwnProperty('entries')) { - if (!Array.isArray(b.entries)) return 'entries: array expected' - for (var $ = 0; $ < b.entries.length; ++$) { - var en = $root.ics23.CompressedBatchEntry.verify(b.entries[$]) - if (en) return 'entries.' + en - } - } - if (b.lookupInners != null && b.hasOwnProperty('lookupInners')) { - if (!Array.isArray(b.lookupInners)) return 'lookupInners: array expected' - for (var $ = 0; $ < b.lookupInners.length; ++$) { - var en = $root.ics23.InnerOp.verify(b.lookupInners[$]) - if (en) return 'lookupInners.' + en - } - } - return null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.CompressedBatchProof) return b - var $ = new $root.ics23.CompressedBatchProof() - if (b.entries) { - if (!Array.isArray(b.entries)) - throw TypeError('.ics23.CompressedBatchProof.entries: array expected') - $.entries = [] - for (var en = 0; en < b.entries.length; ++en) { - if (typeof b.entries[en] != 'object') - throw TypeError('.ics23.CompressedBatchProof.entries: object expected') - $.entries[en] = $root.ics23.CompressedBatchEntry.fromObject(b.entries[en]) - } - } - if (b.lookupInners) { - if (!Array.isArray(b.lookupInners)) - throw TypeError('.ics23.CompressedBatchProof.lookupInners: array expected') - $.lookupInners = [] - for (var en = 0; en < b.lookupInners.length; ++en) { - if (typeof b.lookupInners[en] != 'object') - throw TypeError('.ics23.CompressedBatchProof.lookupInners: object expected') - $.lookupInners[en] = $root.ics23.InnerOp.fromObject(b.lookupInners[en]) - } - } - return $ - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - if ( - (($.arrays || $.defaults) && ((en.entries = []), (en.lookupInners = [])), - b.entries && b.entries.length) - ) { - en.entries = [] - for (var nn = 0; nn < b.entries.length; ++nn) - en.entries[nn] = $root.ics23.CompressedBatchEntry.toObject(b.entries[nn], $) - } - if (b.lookupInners && b.lookupInners.length) { - en.lookupInners = [] - for (var nn = 0; nn < b.lookupInners.length; ++nn) - en.lookupInners[nn] = $root.ics23.InnerOp.toObject(b.lookupInners[nn], $) - } - return en - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.CompressedBatchEntry = (function () { - function o(b) { - if (b) - for (var $ = Object.keys(b), en = 0; en < $.length; ++en) - b[$[en]] != null && (this[$[en]] = b[$[en]]) - } - ;(o.prototype.exist = null), (o.prototype.nonexist = null) - var _ - return ( - Object.defineProperty(o.prototype, 'proof', { - get: $util.oneOfGetter((_ = ['exist', 'nonexist'])), - set: $util.oneOfSetter(_), - }), - (o.create = function ($) { - return new o($) - }), - (o.encode = function ($, en) { - return ( - en || (en = $Writer.create()), - $.exist != null && - $.hasOwnProperty('exist') && - $root.ics23.CompressedExistenceProof.encode($.exist, en.uint32(10).fork()).ldelim(), - $.nonexist != null && - $.hasOwnProperty('nonexist') && - $root.ics23.CompressedNonExistenceProof.encode( - $.nonexist, - en.uint32(18).fork(), - ).ldelim(), - en - ) - }), - (o.encodeDelimited = function ($, en) { - return this.encode($, en).ldelim() - }), - (o.decode = function ($, en) { - $ instanceof $Reader || ($ = $Reader.create($)) - for ( - var nn = en === void 0 ? $.len : $.pos + en, - sn = new $root.ics23.CompressedBatchEntry(); - $.pos < nn; - - ) { - var gn = $.uint32() - switch (gn >>> 3) { - case 1: - sn.exist = $root.ics23.CompressedExistenceProof.decode($, $.uint32()) - break - case 2: - sn.nonexist = $root.ics23.CompressedNonExistenceProof.decode($, $.uint32()) - break - default: - $.skipType(gn & 7) - break - } - } - return sn - }), - (o.decodeDelimited = function ($) { - return $ instanceof $Reader || ($ = new $Reader($)), this.decode($, $.uint32()) - }), - (o.verify = function ($) { - if (typeof $ != 'object' || $ === null) return 'object expected' - var en = {} - if ($.exist != null && $.hasOwnProperty('exist')) { - en.proof = 1 - { - var nn = $root.ics23.CompressedExistenceProof.verify($.exist) - if (nn) return 'exist.' + nn - } - } - if ($.nonexist != null && $.hasOwnProperty('nonexist')) { - if (en.proof === 1) return 'proof: multiple values' - en.proof = 1 - { - var nn = $root.ics23.CompressedNonExistenceProof.verify($.nonexist) - if (nn) return 'nonexist.' + nn - } - } - return null - }), - (o.fromObject = function ($) { - if ($ instanceof $root.ics23.CompressedBatchEntry) return $ - var en = new $root.ics23.CompressedBatchEntry() - if ($.exist != null) { - if (typeof $.exist != 'object') - throw TypeError('.ics23.CompressedBatchEntry.exist: object expected') - en.exist = $root.ics23.CompressedExistenceProof.fromObject($.exist) - } - if ($.nonexist != null) { - if (typeof $.nonexist != 'object') - throw TypeError('.ics23.CompressedBatchEntry.nonexist: object expected') - en.nonexist = $root.ics23.CompressedNonExistenceProof.fromObject($.nonexist) - } - return en - }), - (o.toObject = function ($, en) { - en || (en = {}) - var nn = {} - return ( - $.exist != null && - $.hasOwnProperty('exist') && - ((nn.exist = $root.ics23.CompressedExistenceProof.toObject($.exist, en)), - en.oneofs && (nn.proof = 'exist')), - $.nonexist != null && - $.hasOwnProperty('nonexist') && - ((nn.nonexist = $root.ics23.CompressedNonExistenceProof.toObject($.nonexist, en)), - en.oneofs && (nn.proof = 'nonexist')), - nn - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.CompressedExistenceProof = (function () { - function o(_) { - if (((this.path = []), _)) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.key = $util.newBuffer([])), - (o.prototype.value = $util.newBuffer([])), - (o.prototype.leaf = null), - (o.prototype.path = $util.emptyArray), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - if ( - ($ || ($ = $Writer.create()), - b.key != null && b.hasOwnProperty('key') && $.uint32(10).bytes(b.key), - b.value != null && b.hasOwnProperty('value') && $.uint32(18).bytes(b.value), - b.leaf != null && - b.hasOwnProperty('leaf') && - $root.ics23.LeafOp.encode(b.leaf, $.uint32(26).fork()).ldelim(), - b.path != null && b.path.length) - ) { - $.uint32(34).fork() - for (var en = 0; en < b.path.length; ++en) $.int32(b.path[en]) - $.ldelim() - } - return $ - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, - nn = new $root.ics23.CompressedExistenceProof(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - nn.key = b.bytes() - break - case 2: - nn.value = b.bytes() - break - case 3: - nn.leaf = $root.ics23.LeafOp.decode(b, b.uint32()) - break - case 4: - if (((nn.path && nn.path.length) || (nn.path = []), (sn & 7) === 2)) - for (var gn = b.uint32() + b.pos; b.pos < gn; ) nn.path.push(b.int32()) - else nn.path.push(b.int32()) - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if ( - b.key != null && - b.hasOwnProperty('key') && - !((b.key && typeof b.key.length == 'number') || $util.isString(b.key)) - ) - return 'key: buffer expected' - if ( - b.value != null && - b.hasOwnProperty('value') && - !((b.value && typeof b.value.length == 'number') || $util.isString(b.value)) - ) - return 'value: buffer expected' - if (b.leaf != null && b.hasOwnProperty('leaf')) { - var $ = $root.ics23.LeafOp.verify(b.leaf) - if ($) return 'leaf.' + $ - } - if (b.path != null && b.hasOwnProperty('path')) { - if (!Array.isArray(b.path)) return 'path: array expected' - for (var en = 0; en < b.path.length; ++en) - if (!$util.isInteger(b.path[en])) return 'path: integer[] expected' - } - return null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.CompressedExistenceProof) return b - var $ = new $root.ics23.CompressedExistenceProof() - if ( - (b.key != null && - (typeof b.key == 'string' - ? $util.base64.decode( - b.key, - ($.key = $util.newBuffer($util.base64.length(b.key))), - 0, - ) - : b.key.length && ($.key = b.key)), - b.value != null && - (typeof b.value == 'string' - ? $util.base64.decode( - b.value, - ($.value = $util.newBuffer($util.base64.length(b.value))), - 0, - ) - : b.value.length && ($.value = b.value)), - b.leaf != null) - ) { - if (typeof b.leaf != 'object') - throw TypeError('.ics23.CompressedExistenceProof.leaf: object expected') - $.leaf = $root.ics23.LeafOp.fromObject(b.leaf) - } - if (b.path) { - if (!Array.isArray(b.path)) - throw TypeError('.ics23.CompressedExistenceProof.path: array expected') - $.path = [] - for (var en = 0; en < b.path.length; ++en) $.path[en] = b.path[en] | 0 - } - return $ - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - if ( - (($.arrays || $.defaults) && (en.path = []), - $.defaults && - ($.bytes === String - ? (en.key = '') - : ((en.key = []), $.bytes !== Array && (en.key = $util.newBuffer(en.key))), - $.bytes === String - ? (en.value = '') - : ((en.value = []), $.bytes !== Array && (en.value = $util.newBuffer(en.value))), - (en.leaf = null)), - b.key != null && - b.hasOwnProperty('key') && - (en.key = - $.bytes === String - ? $util.base64.encode(b.key, 0, b.key.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), - b.value != null && - b.hasOwnProperty('value') && - (en.value = - $.bytes === String - ? $util.base64.encode(b.value, 0, b.value.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.value) - : b.value), - b.leaf != null && - b.hasOwnProperty('leaf') && - (en.leaf = $root.ics23.LeafOp.toObject(b.leaf, $)), - b.path && b.path.length) - ) { - en.path = [] - for (var nn = 0; nn < b.path.length; ++nn) en.path[nn] = b.path[nn] - } - return en - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - (e.CompressedNonExistenceProof = (function () { - function o(_) { - if (_) - for (var b = Object.keys(_), $ = 0; $ < b.length; ++$) - _[b[$]] != null && (this[b[$]] = _[b[$]]) - } - return ( - (o.prototype.key = $util.newBuffer([])), - (o.prototype.left = null), - (o.prototype.right = null), - (o.create = function (b) { - return new o(b) - }), - (o.encode = function (b, $) { - return ( - $ || ($ = $Writer.create()), - b.key != null && b.hasOwnProperty('key') && $.uint32(10).bytes(b.key), - b.left != null && - b.hasOwnProperty('left') && - $root.ics23.CompressedExistenceProof.encode(b.left, $.uint32(18).fork()).ldelim(), - b.right != null && - b.hasOwnProperty('right') && - $root.ics23.CompressedExistenceProof.encode(b.right, $.uint32(26).fork()).ldelim(), - $ - ) - }), - (o.encodeDelimited = function (b, $) { - return this.encode(b, $).ldelim() - }), - (o.decode = function (b, $) { - b instanceof $Reader || (b = $Reader.create(b)) - for ( - var en = $ === void 0 ? b.len : b.pos + $, - nn = new $root.ics23.CompressedNonExistenceProof(); - b.pos < en; - - ) { - var sn = b.uint32() - switch (sn >>> 3) { - case 1: - nn.key = b.bytes() - break - case 2: - nn.left = $root.ics23.CompressedExistenceProof.decode(b, b.uint32()) - break - case 3: - nn.right = $root.ics23.CompressedExistenceProof.decode(b, b.uint32()) - break - default: - b.skipType(sn & 7) - break - } - } - return nn - }), - (o.decodeDelimited = function (b) { - return b instanceof $Reader || (b = new $Reader(b)), this.decode(b, b.uint32()) - }), - (o.verify = function (b) { - if (typeof b != 'object' || b === null) return 'object expected' - if ( - b.key != null && - b.hasOwnProperty('key') && - !((b.key && typeof b.key.length == 'number') || $util.isString(b.key)) - ) - return 'key: buffer expected' - if (b.left != null && b.hasOwnProperty('left')) { - var $ = $root.ics23.CompressedExistenceProof.verify(b.left) - if ($) return 'left.' + $ - } - if (b.right != null && b.hasOwnProperty('right')) { - var $ = $root.ics23.CompressedExistenceProof.verify(b.right) - if ($) return 'right.' + $ - } - return null - }), - (o.fromObject = function (b) { - if (b instanceof $root.ics23.CompressedNonExistenceProof) return b - var $ = new $root.ics23.CompressedNonExistenceProof() - if ( - (b.key != null && - (typeof b.key == 'string' - ? $util.base64.decode( - b.key, - ($.key = $util.newBuffer($util.base64.length(b.key))), - 0, - ) - : b.key.length && ($.key = b.key)), - b.left != null) - ) { - if (typeof b.left != 'object') - throw TypeError('.ics23.CompressedNonExistenceProof.left: object expected') - $.left = $root.ics23.CompressedExistenceProof.fromObject(b.left) - } - if (b.right != null) { - if (typeof b.right != 'object') - throw TypeError('.ics23.CompressedNonExistenceProof.right: object expected') - $.right = $root.ics23.CompressedExistenceProof.fromObject(b.right) - } - return $ - }), - (o.toObject = function (b, $) { - $ || ($ = {}) - var en = {} - return ( - $.defaults && - ($.bytes === String - ? (en.key = '') - : ((en.key = []), $.bytes !== Array && (en.key = $util.newBuffer(en.key))), - (en.left = null), - (en.right = null)), - b.key != null && - b.hasOwnProperty('key') && - (en.key = - $.bytes === String - ? $util.base64.encode(b.key, 0, b.key.length) - : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), - b.left != null && - b.hasOwnProperty('left') && - (en.left = $root.ics23.CompressedExistenceProof.toObject(b.left, $)), - b.right != null && - b.hasOwnProperty('right') && - (en.right = $root.ics23.CompressedExistenceProof.toObject(b.right, $)), - en - ) - }), - (o.prototype.toJSON = function () { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions) - }), - o - ) - })()), - e - ) -})() -var codecimpl = $root, - ics23 = {}, - compress$1 = {} -Object.defineProperty(compress$1, '__esModule', { value: !0 }) -compress$1.decompress = compress$1.compress = void 0 -const codecimpl_1$2 = codecimpl -function compress(e) { - return e.batch ? { compressed: compressBatch(e.batch) } : e -} -compress$1.compress = compress -function decompress(e) { - return e.compressed ? { batch: decompressBatch(e.compressed) } : e -} -compress$1.decompress = decompress -function compressBatch(e) { - const o = [], - _ = [], - b = new Map() - for (const $ of e.entries) - if ($.exist) { - const en = { exist: compressExist($.exist, _, b) } - o.push(en) - } else if ($.nonexist) { - const en = $.nonexist, - nn = { - nonexist: { - key: en.key, - left: compressExist(en.left, _, b), - right: compressExist(en.right, _, b), - }, - } - o.push(nn) - } else throw new Error('Unexpected batch entry during compress') - return { entries: o, lookupInners: _ } -} -function compressExist(e, o, _) { - if (!e) return - const b = e.path.map(($) => { - const en = codecimpl_1$2.ics23.InnerOp.encode($).finish() - let nn = _.get(en) - return nn === void 0 && ((nn = o.length), o.push($), _.set(en, nn)), nn - }) - return { key: e.key, value: e.value, leaf: e.leaf, path: b } -} -function decompressBatch(e) { - const o = e.lookupInners - return { - entries: e.entries.map((b) => { - if (b.exist) return { exist: decompressExist(b.exist, o) } - if (b.nonexist) { - const $ = b.nonexist - return { - nonexist: { - key: $.key, - left: decompressExist($.left, o), - right: decompressExist($.right, o), - }, - } - } else throw new Error('Unexpected batch entry during compress') - }), - } -} -function decompressExist(e, o) { - if (!e) return - const { key: _, value: b, leaf: $, path: en } = e, - nn = (en || []).map((sn) => o[sn]) - return { key: _, value: b, leaf: $, path: nn } -} -var proofs$1 = {}, - ops = {} -Object.defineProperty(ops, '__esModule', { value: !0 }) -ops.doHash = ops.applyInner = ops.applyLeaf = void 0 -const ripemd160_1 = ripemd160$1, - sha256_1 = sha256$1, - sha512_1 = sha512$1, - codecimpl_1$1 = codecimpl -function applyLeaf(e, o, _) { - if (o.length === 0) throw new Error('Missing key') - if (_.length === 0) throw new Error('Missing value') - const b = prepareLeafData(ensureHash(e.prehashKey), ensureLength(e.length), o), - $ = prepareLeafData(ensureHash(e.prehashValue), ensureLength(e.length), _), - en = new Uint8Array([...ensureBytes(e.prefix), ...b, ...$]) - return doHash(ensureHash(e.hash), en) -} -ops.applyLeaf = applyLeaf -function applyInner(e, o) { - if (o.length === 0) throw new Error('Inner op needs child value') - const _ = new Uint8Array([...ensureBytes(e.prefix), ...o, ...ensureBytes(e.suffix)]) - return doHash(ensureHash(e.hash), _) -} -ops.applyInner = applyInner -function ensure(e, o) { - return e ?? o -} -const ensureHash = (e) => ensure(e, codecimpl_1$1.ics23.HashOp.NO_HASH), - ensureLength = (e) => ensure(e, codecimpl_1$1.ics23.LengthOp.NO_PREFIX), - ensureBytes = (e) => ensure(e, new Uint8Array([])) -function prepareLeafData(e, o, _) { - const b = doHashOrNoop(e, _) - return doLengthOp(o, b) -} -function doHashOrNoop(e, o) { - return e === codecimpl_1$1.ics23.HashOp.NO_HASH ? o : doHash(e, o) -} -function doHash(e, o) { - switch (e) { - case codecimpl_1$1.ics23.HashOp.SHA256: - return (0, sha256_1.sha256)(o) - case codecimpl_1$1.ics23.HashOp.SHA512: - return (0, sha512_1.sha512)(o) - case codecimpl_1$1.ics23.HashOp.RIPEMD160: - return (0, ripemd160_1.ripemd160)(o) - case codecimpl_1$1.ics23.HashOp.BITCOIN: - return (0, ripemd160_1.ripemd160)((0, sha256_1.sha256)(o)) - case codecimpl_1$1.ics23.HashOp.SHA512_256: - return (0, sha512_1.sha512_256)(o) - } - throw new Error(`Unsupported hashop: ${e}`) -} -ops.doHash = doHash -function doLengthOp(e, o) { - switch (e) { - case codecimpl_1$1.ics23.LengthOp.NO_PREFIX: - return o - case codecimpl_1$1.ics23.LengthOp.VAR_PROTO: - return new Uint8Array([...encodeVarintProto(o.length), ...o]) - case codecimpl_1$1.ics23.LengthOp.REQUIRE_32_BYTES: - if (o.length !== 32) throw new Error(`Length is ${o.length}, not 32 bytes`) - return o - case codecimpl_1$1.ics23.LengthOp.REQUIRE_64_BYTES: - if (o.length !== 64) throw new Error(`Length is ${o.length}, not 64 bytes`) - return o - case codecimpl_1$1.ics23.LengthOp.FIXED32_LITTLE: - return new Uint8Array([...encodeFixed32Le(o.length), ...o]) - } - throw new Error(`Unsupported lengthop: ${e}`) -} -function encodeVarintProto(e) { - let o = [], - _ = e - for (; _ >= 128; ) { - const b = (_ % 128) + 128 - ;(o = [...o, b]), (_ = _ / 128) - } - return (o = [...o, _]), new Uint8Array(o) -} -function encodeFixed32Le(e) { - const o = new Uint8Array(4) - let _ = e - for (let b = o.length; b > 0; b--) - (o[Math.abs(b - o.length)] = _ % 256), (_ = Math.floor(_ / 256)) - return o -} -var specs = {} -Object.defineProperty(specs, '__esModule', { value: !0 }) -specs.bytesBefore = - specs.ensureBytesBefore = - specs.bytesEqual = - specs.ensureBytesEqual = - specs.ensureInner = - specs.ensureLeaf = - void 0 -function ensureLeaf(e, o) { - if (e.hash !== o.hash) throw new Error(`Unexpected hashOp: ${e.hash}`) - if (e.prehashKey !== o.prehashKey) throw new Error(`Unexpected prehashKey: ${e.prehashKey}`) - if (e.prehashValue !== o.prehashValue) - throw new Error(`Unexpected prehashValue: ${e.prehashValue}`) - if (e.length !== o.length) throw new Error(`Unexpected length op: ${e.length}`) - ensurePrefix(e.prefix, o.prefix) -} -specs.ensureLeaf = ensureLeaf -function ensureInner(e, o, _) { - if (e.hash !== _.hash) throw new Error(`Unexpected hashOp: ${e.hash}`) - if (!e.prefix) throw new Error('No prefix set for inner node') - if (hasPrefix(e.prefix, o)) throw new Error('Inner node has leaf prefix') - if (e.prefix.length < (_.minPrefixLength || 0)) - throw new Error(`Prefix too short: ${e.prefix.length} bytes`) - const b = (_.childOrder.length - 1) * _.childSize - if (e.prefix.length > (_.maxPrefixLength || 0) + b) - throw new Error(`Prefix too long: ${e.prefix.length} bytes`) -} -specs.ensureInner = ensureInner -function ensurePrefix(e, o) { - if (!(!o || o.length === 0)) { - if (!e) throw new Error('Target bytes missing') - ensureBytesEqual(o, e.slice(0, o.length)) - } -} -function ensureBytesEqual(e, o) { - if (e.length !== o.length) throw new Error(`Different lengths ${e.length} vs ${o.length}`) - for (let _ = 0; _ < e.length; _++) - if (e[_] !== o[_]) throw new Error(`Arrays differ at index ${_}: ${e[_]} vs ${o[_]}`) -} -specs.ensureBytesEqual = ensureBytesEqual -function bytesEqual(e, o) { - if (e.length !== o.length) return !1 - for (let _ = 0; _ < e.length; _++) if (e[_] !== o[_]) return !1 - return !0 -} -specs.bytesEqual = bytesEqual -function hasPrefix(e, o) { - if (!o || o.length === 0 || !e || e.length <= o.length) return !1 - for (let _ = 0; _ < o.length; _++) if (e[_] !== o[_]) return !1 - throw !0 -} -function ensureBytesBefore(e, o) { - if (!bytesBefore(e, o)) throw new Error('first is after last') -} -specs.ensureBytesBefore = ensureBytesBefore -function bytesBefore(e, o) { - const _ = e.length < o.length ? e.length : o.length - for (let b = 0; b < _; b++) { - if (e[b] < o[b]) return !0 - if (e[b] > o[b]) return !1 - } - return e.length < o.length -} -specs.bytesBefore = bytesBefore -Object.defineProperty(proofs$1, '__esModule', { value: !0 }) -proofs$1.ensureLeftNeighbor = - proofs$1.ensureSpec = - proofs$1.calculateExistenceRoot = - proofs$1.verifyNonExistence = - proofs$1.verifyExistence = - proofs$1.smtSpec = - proofs$1.tendermintSpec = - proofs$1.iavlSpec = - void 0 -const codecimpl_1 = codecimpl, - ops_1 = ops, - specs_1$1 = specs -proofs$1.iavlSpec = { - leafSpec: { - prefix: Uint8Array.from([0]), - hash: codecimpl_1.ics23.HashOp.SHA256, - prehashValue: codecimpl_1.ics23.HashOp.SHA256, - prehashKey: codecimpl_1.ics23.HashOp.NO_HASH, - length: codecimpl_1.ics23.LengthOp.VAR_PROTO, - }, - innerSpec: { - childOrder: [0, 1], - minPrefixLength: 4, - maxPrefixLength: 12, - childSize: 33, - hash: codecimpl_1.ics23.HashOp.SHA256, - }, -} -proofs$1.tendermintSpec = { - leafSpec: { - prefix: Uint8Array.from([0]), - hash: codecimpl_1.ics23.HashOp.SHA256, - prehashValue: codecimpl_1.ics23.HashOp.SHA256, - prehashKey: codecimpl_1.ics23.HashOp.NO_HASH, - length: codecimpl_1.ics23.LengthOp.VAR_PROTO, - }, - innerSpec: { - childOrder: [0, 1], - minPrefixLength: 1, - maxPrefixLength: 1, - childSize: 32, - hash: codecimpl_1.ics23.HashOp.SHA256, - }, -} -proofs$1.smtSpec = { - leafSpec: { - hash: codecimpl_1.ics23.HashOp.SHA256, - prehashKey: codecimpl_1.ics23.HashOp.NO_HASH, - prehashValue: codecimpl_1.ics23.HashOp.SHA256, - length: codecimpl_1.ics23.LengthOp.NO_PREFIX, - prefix: Uint8Array.from([0]), - }, - innerSpec: { - childOrder: [0, 1], - childSize: 32, - minPrefixLength: 1, - maxPrefixLength: 1, - emptyChild: new Uint8Array(32), - hash: codecimpl_1.ics23.HashOp.SHA256, - }, - maxDepth: 256, -} -function verifyExistence(e, o, _, b, $) { - ensureSpec(e, o) - const en = calculateExistenceRoot(e) - ;(0, specs_1$1.ensureBytesEqual)(en, _), - (0, specs_1$1.ensureBytesEqual)(b, e.key), - (0, specs_1$1.ensureBytesEqual)($, e.value) -} -proofs$1.verifyExistence = verifyExistence -function verifyNonExistence(e, o, _, b) { - let $, en - if ( - (e.left && (verifyExistence(e.left, o, _, e.left.key, e.left.value), ($ = e.left.key)), - e.right && (verifyExistence(e.right, o, _, e.right.key, e.right.value), (en = e.right.key)), - !$ && !en) - ) - throw new Error('neither left nor right proof defined') - if ( - ($ && (0, specs_1$1.ensureBytesBefore)($, b), - en && (0, specs_1$1.ensureBytesBefore)(b, en), - !o.innerSpec) - ) - throw new Error('no inner spec') - $ - ? en - ? ensureLeftNeighbor(o.innerSpec, e.left.path, e.right.path) - : ensureRightMost(o.innerSpec, e.left.path) - : ensureLeftMost(o.innerSpec, e.right.path) -} -proofs$1.verifyNonExistence = verifyNonExistence -function calculateExistenceRoot(e) { - if (!e.key || !e.value) throw new Error('Existence proof needs key and value set') - if (!e.leaf) throw new Error('Existence proof must start with a leaf operation') - const o = e.path || [] - let _ = (0, ops_1.applyLeaf)(e.leaf, e.key, e.value) - for (const b of o) _ = (0, ops_1.applyInner)(b, _) - return _ -} -proofs$1.calculateExistenceRoot = calculateExistenceRoot -function ensureSpec(e, o) { - if (!e.leaf) throw new Error('Existence proof must start with a leaf operation') - if (!o.leafSpec) throw new Error('Spec must include leafSpec') - if (!o.innerSpec) throw new Error('Spec must include innerSpec') - ;(0, specs_1$1.ensureLeaf)(e.leaf, o.leafSpec) - const _ = e.path || [] - if (o.minDepth && _.length < o.minDepth) throw new Error(`Too few inner nodes ${_.length}`) - if (o.maxDepth && _.length > o.maxDepth) throw new Error(`Too many inner nodes ${_.length}`) - for (const b of _) (0, specs_1$1.ensureInner)(b, o.leafSpec.prefix, o.innerSpec) -} -proofs$1.ensureSpec = ensureSpec -function ensureLeftMost(e, o) { - const { minPrefix: _, maxPrefix: b, suffix: $ } = getPadding(e, 0) - for (const en of o) if (!hasPadding(en, _, b, $)) throw new Error('Step not leftmost') -} -function ensureRightMost(e, o) { - const _ = e.childOrder.length - 1, - { minPrefix: b, maxPrefix: $, suffix: en } = getPadding(e, _) - for (const nn of o) if (!hasPadding(nn, b, $, en)) throw new Error('Step not leftmost') -} -function ensureLeftNeighbor(e, o, _) { - const b = [...o], - $ = [..._] - let en = b.pop(), - nn = $.pop() - for ( - ; - (0, specs_1$1.bytesEqual)(en.prefix, nn.prefix) && - (0, specs_1$1.bytesEqual)(en.suffix, nn.suffix); - - ) - (en = b.pop()), (nn = $.pop()) - if (!isLeftStep(e, en, nn)) throw new Error('Not left neightbor at first divergent step') - ensureRightMost(e, b), ensureLeftMost(e, $) -} -proofs$1.ensureLeftNeighbor = ensureLeftNeighbor -function isLeftStep(e, o, _) { - const b = orderFromPadding(e, o) - return orderFromPadding(e, _) === b + 1 -} -function orderFromPadding(e, o) { - for (let _ = 0; _ < e.childOrder.length; _++) { - const { minPrefix: b, maxPrefix: $, suffix: en } = getPadding(e, _) - if (hasPadding(o, b, $, en)) return _ - } - throw new Error('Cannot find any valid spacing for this node') -} -function hasPadding(e, o, _, b) { - return (e.prefix || []).length < o || (e.prefix || []).length > _ - ? !1 - : (e.suffix || []).length === b -} -function getPadding(e, o) { - const _ = getPosition(e.childOrder, o), - b = _ * e.childSize, - $ = b + e.minPrefixLength, - en = b + e.maxPrefixLength, - nn = (e.childOrder.length - 1 - _) * e.childSize - return { minPrefix: $, maxPrefix: en, suffix: nn } -} -function getPosition(e, o) { - if (o < 0 || o >= e.length) throw new Error(`Invalid branch: ${o}`) - return e.findIndex((_) => _ === o) -} -Object.defineProperty(ics23, '__esModule', { value: !0 }) -ics23.batchVerifyNonMembership = - ics23.batchVerifyMembership = - ics23.verifyNonMembership = - ics23.verifyMembership = - void 0 -const compress_1 = compress$1, - proofs_1$1 = proofs$1, - specs_1 = specs -function verifyMembership(e, o, _, b, $) { - const en = (0, compress_1.decompress)(e), - nn = getExistForKey(en, b) - if (!nn) return !1 - try { - return (0, proofs_1$1.verifyExistence)(nn, o, _, b, $), !0 - } catch { - return !1 - } -} -ics23.verifyMembership = verifyMembership -function verifyNonMembership(e, o, _, b) { - const $ = (0, compress_1.decompress)(e), - en = getNonExistForKey($, b) - if (!en) return !1 - try { - return (0, proofs_1$1.verifyNonExistence)(en, o, _, b), !0 - } catch { - return !1 - } -} -ics23.verifyNonMembership = verifyNonMembership -function batchVerifyMembership(e, o, _, b) { - const $ = (0, compress_1.decompress)(e) - for (const [en, nn] of b.entries()) if (!verifyMembership($, o, _, en, nn)) return !1 - return !0 -} -ics23.batchVerifyMembership = batchVerifyMembership -function batchVerifyNonMembership(e, o, _, b) { - const $ = (0, compress_1.decompress)(e) - for (const en of b) if (!verifyNonMembership($, o, _, en)) return !1 - return !0 -} -ics23.batchVerifyNonMembership = batchVerifyNonMembership -function getExistForKey(e, o) { - const _ = (b) => !!b && (0, specs_1.bytesEqual)(o, b.key) - if (_(e.exist)) return e.exist - if (e.batch) return e.batch.entries.map((b) => b.exist || null).find(_) -} -function getNonExistForKey(e, o) { - const _ = (b) => - !!b && - (!b.left || (0, specs_1.bytesBefore)(b.left.key, o)) && - (!b.right || (0, specs_1.bytesBefore)(o, b.right.key)) - if (_(e.nonexist)) return e.nonexist - if (e.batch) return e.batch.entries.map((b) => b.nonexist || null).find(_) -} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.verifyNonExistence = - e.verifyExistence = - e.tendermintSpec = - e.iavlSpec = - e.calculateExistenceRoot = - e.verifyNonMembership = - e.verifyMembership = - e.ics23 = - void 0) - var o = codecimpl - Object.defineProperty(e, 'ics23', { - enumerable: !0, - get: function () { - return o.ics23 - }, - }) - var _ = ics23 - Object.defineProperty(e, 'verifyMembership', { - enumerable: !0, - get: function () { - return _.verifyMembership - }, - }), - Object.defineProperty(e, 'verifyNonMembership', { - enumerable: !0, - get: function () { - return _.verifyNonMembership - }, - }) - var b = proofs$1 - Object.defineProperty(e, 'calculateExistenceRoot', { - enumerable: !0, - get: function () { - return b.calculateExistenceRoot - }, - }), - Object.defineProperty(e, 'iavlSpec', { - enumerable: !0, - get: function () { - return b.iavlSpec - }, - }), - Object.defineProperty(e, 'tendermintSpec', { - enumerable: !0, - get: function () { - return b.tendermintSpec - }, - }), - Object.defineProperty(e, 'verifyExistence', { - enumerable: !0, - get: function () { - return b.verifyExistence - }, - }), - Object.defineProperty(e, 'verifyNonExistence', { - enumerable: !0, - get: function () { - return b.verifyNonExistence - }, - }) -})(build$4) -var build$3 = {}, - concat$2 = {}, - xstream = {}, - ponyfillExports = {}, - ponyfill$1 = { - get exports() { - return ponyfillExports - }, - set exports(e) { - ponyfillExports = e - }, - }, - ponyfill = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), (e.default = o) - function o(_) { - var b, - $ = _.Symbol - if (typeof $ == 'function') - if ($.observable) b = $.observable - else { - b = $.for('https://github.com/benlesh/symbol-observable') - try { - $.observable = b - } catch {} - } - else b = '@@observable' - return b - } -})(ponyfill) -;(function (e) { - e.exports = ponyfill -})(ponyfill$1) -var toStr$2 = Object.prototype.toString, - isArguments = function e(o) { - var _ = toStr$2.call(o), - b = _ === '[object Arguments]' - return ( - b || - (b = - _ !== '[object Array]' && - o !== null && - typeof o == 'object' && - typeof o.length == 'number' && - o.length >= 0 && - toStr$2.call(o.callee) === '[object Function]'), - b - ) - }, - implementation$4, - hasRequiredImplementation -function requireImplementation() { - if (hasRequiredImplementation) return implementation$4 - hasRequiredImplementation = 1 - var e - if (!Object.keys) { - var o = Object.prototype.hasOwnProperty, - _ = Object.prototype.toString, - b = isArguments, - $ = Object.prototype.propertyIsEnumerable, - en = !$.call({ toString: null }, 'toString'), - nn = $.call(function () {}, 'prototype'), - sn = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor', - ], - gn = function (Kn) { - var an = Kn.constructor - return an && an.prototype === Kn - }, - In = { - $applicationCache: !0, - $console: !0, - $external: !0, - $frame: !0, - $frameElement: !0, - $frames: !0, - $innerHeight: !0, - $innerWidth: !0, - $onmozfullscreenchange: !0, - $onmozfullscreenerror: !0, - $outerHeight: !0, - $outerWidth: !0, - $pageXOffset: !0, - $pageYOffset: !0, - $parent: !0, - $scrollLeft: !0, - $scrollTop: !0, - $scrollX: !0, - $scrollY: !0, - $self: !0, - $webkitIndexedDB: !0, - $webkitStorageInfo: !0, - $window: !0, - }, - Jn = (function () { - if (typeof window > 'u') return !1 - for (var Kn in window) - try { - if ( - !In['$' + Kn] && - o.call(window, Kn) && - window[Kn] !== null && - typeof window[Kn] == 'object' - ) - try { - gn(window[Kn]) - } catch { - return !0 - } - } catch { - return !0 - } - return !1 - })(), - qn = function (Kn) { - if (typeof window > 'u' || !Jn) return gn(Kn) - try { - return gn(Kn) - } catch { - return !1 - } - } - e = function (an) { - var xn = an !== null && typeof an == 'object', - mn = _.call(an) === '[object Function]', - Bn = b(an), - kn = xn && _.call(an) === '[object String]', - ln = [] - if (!xn && !mn && !Bn) throw new TypeError('Object.keys called on a non-object') - var yn = nn && mn - if (kn && an.length > 0 && !o.call(an, 0)) - for (var Cn = 0; Cn < an.length; ++Cn) ln.push(String(Cn)) - if (Bn && an.length > 0) for (var Tn = 0; Tn < an.length; ++Tn) ln.push(String(Tn)) - else for (var Gn in an) !(yn && Gn === 'prototype') && o.call(an, Gn) && ln.push(String(Gn)) - if (en) - for (var Sn = qn(an), Zn = 0; Zn < sn.length; ++Zn) - !(Sn && sn[Zn] === 'constructor') && o.call(an, sn[Zn]) && ln.push(sn[Zn]) - return ln - } - } - return (implementation$4 = e), implementation$4 -} -var slice$1 = Array.prototype.slice, - isArgs = isArguments, - origKeys = Object.keys, - keysShim = origKeys - ? function e(o) { - return origKeys(o) - } - : requireImplementation(), - originalKeys = Object.keys -keysShim.shim = function e() { - if (Object.keys) { - var o = (function () { - var _ = Object.keys(arguments) - return _ && _.length === arguments.length - })(1, 2) - o || - (Object.keys = function (b) { - return isArgs(b) ? originalKeys(slice$1.call(b)) : originalKeys(b) - }) - } else Object.keys = keysShim - return Object.keys || keysShim -} -var objectKeys = keysShim, - shams = function e() { - if (typeof Symbol != 'function' || typeof Object.getOwnPropertySymbols != 'function') return !1 - if (typeof Symbol.iterator == 'symbol') return !0 - var o = {}, - _ = Symbol('test'), - b = Object(_) - if ( - typeof _ == 'string' || - Object.prototype.toString.call(_) !== '[object Symbol]' || - Object.prototype.toString.call(b) !== '[object Symbol]' - ) - return !1 - var $ = 42 - o[_] = $ - for (_ in o) return !1 - if ( - (typeof Object.keys == 'function' && Object.keys(o).length !== 0) || - (typeof Object.getOwnPropertyNames == 'function' && - Object.getOwnPropertyNames(o).length !== 0) - ) - return !1 - var en = Object.getOwnPropertySymbols(o) - if (en.length !== 1 || en[0] !== _ || !Object.prototype.propertyIsEnumerable.call(o, _)) - return !1 - if (typeof Object.getOwnPropertyDescriptor == 'function') { - var nn = Object.getOwnPropertyDescriptor(o, _) - if (nn.value !== $ || nn.enumerable !== !0) return !1 - } - return !0 - }, - origSymbol = typeof Symbol < 'u' && Symbol, - hasSymbolSham = shams, - hasSymbols$2 = function e() { - return typeof origSymbol != 'function' || - typeof Symbol != 'function' || - typeof origSymbol('foo') != 'symbol' || - typeof Symbol('bar') != 'symbol' - ? !1 - : hasSymbolSham() - }, - test = { foo: {} }, - $Object = Object, - hasProto$1 = function e() { - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object) - }, - ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ', - slice = Array.prototype.slice, - toStr$1 = Object.prototype.toString, - funcType = '[object Function]', - implementation$3 = function e(o) { - var _ = this - if (typeof _ != 'function' || toStr$1.call(_) !== funcType) - throw new TypeError(ERROR_MESSAGE + _) - for ( - var b = slice.call(arguments, 1), - $, - en = function () { - if (this instanceof $) { - var Jn = _.apply(this, b.concat(slice.call(arguments))) - return Object(Jn) === Jn ? Jn : this - } else return _.apply(o, b.concat(slice.call(arguments))) - }, - nn = Math.max(0, _.length - b.length), - sn = [], - gn = 0; - gn < nn; - gn++ - ) - sn.push('$' + gn) - if ( - (($ = Function( - 'binder', - 'return function (' + sn.join(',') + '){ return binder.apply(this,arguments); }', - )(en)), - _.prototype) - ) { - var In = function () {} - ;(In.prototype = _.prototype), ($.prototype = new In()), (In.prototype = null) - } - return $ - }, - implementation$2 = implementation$3, - functionBind = Function.prototype.bind || implementation$2, - bind$4 = functionBind, - src = bind$4.call(Function.call, Object.prototype.hasOwnProperty), - undefined$1, - $SyntaxError = SyntaxError, - $Function = Function, - $TypeError = TypeError, - getEvalledConstructor = function (e) { - try { - return $Function('"use strict"; return (' + e + ').constructor;')() - } catch {} - }, - $gOPD = Object.getOwnPropertyDescriptor -if ($gOPD) - try { - $gOPD({}, '') - } catch { - $gOPD = null - } -var throwTypeError = function () { - throw new $TypeError() - }, - ThrowTypeError = $gOPD - ? (function () { - try { - return arguments.callee, throwTypeError - } catch { - try { - return $gOPD(arguments, 'callee').get - } catch { - return throwTypeError - } - } - })() - : throwTypeError, - hasSymbols$1 = hasSymbols$2(), - hasProto = hasProto$1(), - getProto = - Object.getPrototypeOf || - (hasProto - ? function (e) { - return e.__proto__ - } - : null), - needsEval = {}, - TypedArray = typeof Uint8Array > 'u' || !getProto ? undefined$1 : getProto(Uint8Array), - INTRINSICS = { - '%AggregateError%': typeof AggregateError > 'u' ? undefined$1 : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer > 'u' ? undefined$1 : ArrayBuffer, - '%ArrayIteratorPrototype%': - hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1, - '%AsyncFromSyncIteratorPrototype%': undefined$1, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics > 'u' ? undefined$1 : Atomics, - '%BigInt%': typeof BigInt > 'u' ? undefined$1 : BigInt, - '%BigInt64Array%': typeof BigInt64Array > 'u' ? undefined$1 : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array > 'u' ? undefined$1 : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView > 'u' ? undefined$1 : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array > 'u' ? undefined$1 : Float32Array, - '%Float64Array%': typeof Float64Array > 'u' ? undefined$1 : Float64Array, - '%FinalizationRegistry%': - typeof FinalizationRegistry > 'u' ? undefined$1 : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array > 'u' ? undefined$1 : Int8Array, - '%Int16Array%': typeof Int16Array > 'u' ? undefined$1 : Int16Array, - '%Int32Array%': typeof Int32Array > 'u' ? undefined$1 : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': - hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1, - '%JSON%': typeof JSON == 'object' ? JSON : undefined$1, - '%Map%': typeof Map > 'u' ? undefined$1 : Map, - '%MapIteratorPrototype%': - typeof Map > 'u' || !hasSymbols$1 || !getProto - ? undefined$1 - : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise > 'u' ? undefined$1 : Promise, - '%Proxy%': typeof Proxy > 'u' ? undefined$1 : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect > 'u' ? undefined$1 : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set > 'u' ? undefined$1 : Set, - '%SetIteratorPrototype%': - typeof Set > 'u' || !hasSymbols$1 || !getProto - ? undefined$1 - : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer > 'u' ? undefined$1 : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': - hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1, - '%Symbol%': hasSymbols$1 ? Symbol : undefined$1, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array > 'u' ? undefined$1 : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray > 'u' ? undefined$1 : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array > 'u' ? undefined$1 : Uint16Array, - '%Uint32Array%': typeof Uint32Array > 'u' ? undefined$1 : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap > 'u' ? undefined$1 : WeakMap, - '%WeakRef%': typeof WeakRef > 'u' ? undefined$1 : WeakRef, - '%WeakSet%': typeof WeakSet > 'u' ? undefined$1 : WeakSet, - } -if (getProto) - try { - null.error - } catch (e) { - var errorProto = getProto(getProto(e)) - INTRINSICS['%Error.prototype%'] = errorProto - } -var doEval = function e(o) { - var _ - if (o === '%AsyncFunction%') _ = getEvalledConstructor('async function () {}') - else if (o === '%GeneratorFunction%') _ = getEvalledConstructor('function* () {}') - else if (o === '%AsyncGeneratorFunction%') _ = getEvalledConstructor('async function* () {}') - else if (o === '%AsyncGenerator%') { - var b = e('%AsyncGeneratorFunction%') - b && (_ = b.prototype) - } else if (o === '%AsyncIteratorPrototype%') { - var $ = e('%AsyncGenerator%') - $ && getProto && (_ = getProto($.prototype)) - } - return (INTRINSICS[o] = _), _ - }, - LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'], - }, - bind$3 = functionBind, - hasOwn = src, - $concat = bind$3.call(Function.call, Array.prototype.concat), - $spliceApply = bind$3.call(Function.apply, Array.prototype.splice), - $replace = bind$3.call(Function.call, String.prototype.replace), - $strSlice = bind$3.call(Function.call, String.prototype.slice), - $exec = bind$3.call(Function.call, RegExp.prototype.exec), - rePropName = - /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - reEscapeChar = /\\(\\)?/g, - stringToPath = function e(o) { - var _ = $strSlice(o, 0, 1), - b = $strSlice(o, -1) - if (_ === '%' && b !== '%') - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`') - if (b === '%' && _ !== '%') - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`') - var $ = [] - return ( - $replace(o, rePropName, function (en, nn, sn, gn) { - $[$.length] = sn ? $replace(gn, reEscapeChar, '$1') : nn || en - }), - $ - ) - }, - getBaseIntrinsic = function e(o, _) { - var b = o, - $ - if ( - (hasOwn(LEGACY_ALIASES, b) && (($ = LEGACY_ALIASES[b]), (b = '%' + $[0] + '%')), - hasOwn(INTRINSICS, b)) - ) { - var en = INTRINSICS[b] - if ((en === needsEval && (en = doEval(b)), typeof en > 'u' && !_)) - throw new $TypeError( - 'intrinsic ' + o + ' exists, but is not available. Please file an issue!', - ) - return { alias: $, name: b, value: en } - } - throw new $SyntaxError('intrinsic ' + o + ' does not exist!') - }, - getIntrinsic = function e(o, _) { - if (typeof o != 'string' || o.length === 0) - throw new $TypeError('intrinsic name must be a non-empty string') - if (arguments.length > 1 && typeof _ != 'boolean') - throw new $TypeError('"allowMissing" argument must be a boolean') - if ($exec(/^%?[^%]*%?$/, o) === null) - throw new $SyntaxError( - '`%` may not be present anywhere but at the beginning and end of the intrinsic name', - ) - var b = stringToPath(o), - $ = b.length > 0 ? b[0] : '', - en = getBaseIntrinsic('%' + $ + '%', _), - nn = en.name, - sn = en.value, - gn = !1, - In = en.alias - In && (($ = In[0]), $spliceApply(b, $concat([0, 1], In))) - for (var Jn = 1, qn = !0; Jn < b.length; Jn += 1) { - var Kn = b[Jn], - an = $strSlice(Kn, 0, 1), - xn = $strSlice(Kn, -1) - if ( - (an === '"' || an === "'" || an === '`' || xn === '"' || xn === "'" || xn === '`') && - an !== xn - ) - throw new $SyntaxError('property names with quotes must have matching quotes') - if ( - ((Kn === 'constructor' || !qn) && (gn = !0), - ($ += '.' + Kn), - (nn = '%' + $ + '%'), - hasOwn(INTRINSICS, nn)) - ) - sn = INTRINSICS[nn] - else if (sn != null) { - if (!(Kn in sn)) { - if (!_) - throw new $TypeError( - 'base intrinsic for ' + o + ' exists, but the property is not available.', - ) - return - } - if ($gOPD && Jn + 1 >= b.length) { - var mn = $gOPD(sn, Kn) - ;(qn = !!mn), - qn && 'get' in mn && !('originalValue' in mn.get) ? (sn = mn.get) : (sn = sn[Kn]) - } else (qn = hasOwn(sn, Kn)), (sn = sn[Kn]) - qn && !gn && (INTRINSICS[nn] = sn) - } - } - return sn - }, - GetIntrinsic = getIntrinsic, - $defineProperty = GetIntrinsic('%Object.defineProperty%', !0), - hasPropertyDescriptors$1 = function e() { - if ($defineProperty) - try { - return $defineProperty({}, 'a', { value: 1 }), !0 - } catch { - return !1 - } - return !1 - } -hasPropertyDescriptors$1.hasArrayLengthDefineBug = function e() { - if (!hasPropertyDescriptors$1()) return null - try { - return $defineProperty([], 'length', { value: 1 }).length !== 1 - } catch { - return !0 - } -} -var hasPropertyDescriptors_1 = hasPropertyDescriptors$1, - keys$1 = objectKeys, - hasSymbols = typeof Symbol == 'function' && typeof Symbol('foo') == 'symbol', - toStr = Object.prototype.toString, - concat$1 = Array.prototype.concat, - origDefineProperty = Object.defineProperty, - isFunction$1 = function (e) { - return typeof e == 'function' && toStr.call(e) === '[object Function]' - }, - hasPropertyDescriptors = hasPropertyDescriptors_1(), - supportsDescriptors = origDefineProperty && hasPropertyDescriptors, - defineProperty = function (e, o, _, b) { - if (o in e) { - if (b === !0) { - if (e[o] === _) return - } else if (!isFunction$1(b) || !b()) return - } - supportsDescriptors - ? origDefineProperty(e, o, { configurable: !0, enumerable: !1, value: _, writable: !0 }) - : (e[o] = _) - }, - defineProperties$1 = function (e, o) { - var _ = arguments.length > 2 ? arguments[2] : {}, - b = keys$1(o) - hasSymbols && (b = concat$1.call(b, Object.getOwnPropertySymbols(o))) - for (var $ = 0; $ < b.length; $ += 1) defineProperty(e, b[$], o[b[$]], _[b[$]]) - } -defineProperties$1.supportsDescriptors = !!supportsDescriptors -var defineProperties_1 = defineProperties$1, - implementation_browserExports = {}, - implementation_browser = { - get exports() { - return implementation_browserExports - }, - set exports(e) { - implementation_browserExports = e - }, - } -typeof self < 'u' - ? (implementation_browser.exports = self) - : typeof window < 'u' - ? (implementation_browser.exports = window) - : (implementation_browser.exports = Function('return this')()) -var implementation$1 = implementation_browserExports, - polyfill$1 = function e() { - return typeof commonjsGlobal != 'object' || - !commonjsGlobal || - commonjsGlobal.Math !== Math || - commonjsGlobal.Array !== Array - ? implementation$1 - : commonjsGlobal - }, - define = defineProperties_1, - getPolyfill$1 = polyfill$1, - shim$1 = function e() { - var o = getPolyfill$1() - if (define.supportsDescriptors) { - var _ = Object.getOwnPropertyDescriptor(o, 'globalThis') - ;(!_ || (_.configurable && (_.enumerable || !_.writable || globalThis !== o))) && - Object.defineProperty(o, 'globalThis', { - configurable: !0, - enumerable: !1, - value: o, - writable: !0, - }) - } else (typeof globalThis != 'object' || globalThis !== o) && (o.globalThis = o) - return o - }, - defineProperties = defineProperties_1, - implementation = implementation_browserExports, - getPolyfill = polyfill$1, - shim = shim$1, - polyfill = getPolyfill(), - getGlobal = function () { - return polyfill - } -defineProperties(getGlobal, { getPolyfill, implementation, shim }) -var globalthis = getGlobal, - __extends = - (commonjsGlobal && commonjsGlobal.__extends) || - (function () { - var e = function (o, _) { - return ( - (e = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function (b, $) { - b.__proto__ = $ - }) || - function (b, $) { - for (var en in $) $.hasOwnProperty(en) && (b[en] = $[en]) - }), - e(o, _) - ) - } - return function (o, _) { - e(o, _) - function b() { - this.constructor = o - } - o.prototype = _ === null ? Object.create(_) : ((b.prototype = _.prototype), new b()) - } - })() -Object.defineProperty(xstream, '__esModule', { value: !0 }) -xstream.NO_IL = xstream.NO = xstream.MemoryStream = xstream.Stream = void 0 -var ponyfill_1 = ponyfillExports, - globalthis_1 = globalthis, - $$observable = ponyfill_1.default(globalthis_1.getPolyfill()), - NO = {} -xstream.NO = NO -function noop() {} -function cp(e) { - for (var o = e.length, _ = Array(o), b = 0; b < o; ++b) _[b] = e[b] - return _ -} -function and(e, o) { - return function (b) { - return e(b) && o(b) - } -} -function _try(e, o, _) { - try { - return e.f(o) - } catch (b) { - return _._e(b), NO - } -} -var NO_IL = { _n: noop, _e: noop, _c: noop } -xstream.NO_IL = NO_IL -function internalizeProducer(e) { - ;(e._start = function (_) { - ;(_.next = _._n), (_.error = _._e), (_.complete = _._c), this.start(_) - }), - (e._stop = e.stop) -} -var StreamSub = (function () { - function e(o, _) { - ;(this._stream = o), (this._listener = _) - } - return ( - (e.prototype.unsubscribe = function () { - this._stream._remove(this._listener) - }), - e - ) - })(), - Observer = (function () { - function e(o) { - this._listener = o - } - return ( - (e.prototype.next = function (o) { - this._listener._n(o) - }), - (e.prototype.error = function (o) { - this._listener._e(o) - }), - (e.prototype.complete = function () { - this._listener._c() - }), - e - ) - })(), - FromObservable = (function () { - function e(o) { - ;(this.type = 'fromObservable'), (this.ins = o), (this.active = !1) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), - (this.active = !0), - (this._sub = this.ins.subscribe(new Observer(o))), - this.active || this._sub.unsubscribe() - }), - (e.prototype._stop = function () { - this._sub && this._sub.unsubscribe(), (this.active = !1) - }), - e - ) - })(), - Merge = (function () { - function e(o) { - ;(this.type = 'merge'), (this.insArr = o), (this.out = NO), (this.ac = 0) - } - return ( - (e.prototype._start = function (o) { - this.out = o - var _ = this.insArr, - b = _.length - this.ac = b - for (var $ = 0; $ < b; $++) _[$]._add(this) - }), - (e.prototype._stop = function () { - for (var o = this.insArr, _ = o.length, b = 0; b < _; b++) o[b]._remove(this) - this.out = NO - }), - (e.prototype._n = function (o) { - var _ = this.out - _ !== NO && _._n(o) - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - if (--this.ac <= 0) { - var o = this.out - if (o === NO) return - o._c() - } - }), - e - ) - })(), - CombineListener = (function () { - function e(o, _, b) { - ;(this.i = o), (this.out = _), (this.p = b), b.ils.push(this) - } - return ( - (e.prototype._n = function (o) { - var _ = this.p, - b = this.out - if (b !== NO && _.up(o, this.i)) { - var $ = cp(_.vals) - b._n($) - } - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.p - o.out !== NO && --o.Nc === 0 && o.out._c() - }), - e - ) - })(), - Combine = (function () { - function e(o) { - ;(this.type = 'combine'), - (this.insArr = o), - (this.out = NO), - (this.ils = []), - (this.Nc = this.Nn = 0), - (this.vals = []) - } - return ( - (e.prototype.up = function (o, _) { - var b = this.vals[_], - $ = this.Nn ? (b === NO ? --this.Nn : this.Nn) : 0 - return (this.vals[_] = o), $ === 0 - }), - (e.prototype._start = function (o) { - this.out = o - var _ = this.insArr, - b = (this.Nc = this.Nn = _.length), - $ = (this.vals = new Array(b)) - if (b === 0) o._n([]), o._c() - else - for (var en = 0; en < b; en++) ($[en] = NO), _[en]._add(new CombineListener(en, o, this)) - }), - (e.prototype._stop = function () { - for (var o = this.insArr, _ = o.length, b = this.ils, $ = 0; $ < _; $++) o[$]._remove(b[$]) - ;(this.out = NO), (this.ils = []), (this.vals = []) - }), - e - ) - })(), - FromArray = (function () { - function e(o) { - ;(this.type = 'fromArray'), (this.a = o) - } - return ( - (e.prototype._start = function (o) { - for (var _ = this.a, b = 0, $ = _.length; b < $; b++) o._n(_[b]) - o._c() - }), - (e.prototype._stop = function () {}), - e - ) - })(), - FromPromise = (function () { - function e(o) { - ;(this.type = 'fromPromise'), (this.on = !1), (this.p = o) - } - return ( - (e.prototype._start = function (o) { - var _ = this - ;(this.on = !0), - this.p - .then( - function (b) { - _.on && (o._n(b), o._c()) - }, - function (b) { - o._e(b) - }, - ) - .then(noop, function (b) { - setTimeout(function () { - throw b - }) - }) - }), - (e.prototype._stop = function () { - this.on = !1 - }), - e - ) - })(), - Periodic = (function () { - function e(o) { - ;(this.type = 'periodic'), (this.period = o), (this.intervalID = -1), (this.i = 0) - } - return ( - (e.prototype._start = function (o) { - var _ = this - function b() { - o._n(_.i++) - } - this.intervalID = setInterval(b, this.period) - }), - (e.prototype._stop = function () { - this.intervalID !== -1 && clearInterval(this.intervalID), - (this.intervalID = -1), - (this.i = 0) - }), - e - ) - })(), - Debug = (function () { - function e(o, _) { - ;(this.type = 'debug'), - (this.ins = o), - (this.out = NO), - (this.s = noop), - (this.l = ''), - typeof _ == 'string' ? (this.l = _) : typeof _ == 'function' && (this.s = _) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO) - }), - (e.prototype._n = function (o) { - var _ = this.out - if (_ !== NO) { - var b = this.s, - $ = this.l - if (b !== noop) - try { - b(o) - } catch (en) { - _._e(en) - } - else $ ? console.log($ + ':', o) : console.log(o) - _._n(o) - } - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && o._c() - }), - e - ) - })(), - Drop = (function () { - function e(o, _) { - ;(this.type = 'drop'), (this.ins = _), (this.out = NO), (this.max = o), (this.dropped = 0) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), (this.dropped = 0), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO) - }), - (e.prototype._n = function (o) { - var _ = this.out - _ !== NO && this.dropped++ >= this.max && _._n(o) - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && o._c() - }), - e - ) - })(), - EndWhenListener = (function () { - function e(o, _) { - ;(this.out = o), (this.op = _) - } - return ( - (e.prototype._n = function () { - this.op.end() - }), - (e.prototype._e = function (o) { - this.out._e(o) - }), - (e.prototype._c = function () { - this.op.end() - }), - e - ) - })(), - EndWhen = (function () { - function e(o, _) { - ;(this.type = 'endWhen'), (this.ins = _), (this.out = NO), (this.o = o), (this.oil = NO_IL) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), this.o._add((this.oil = new EndWhenListener(o, this))), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), this.o._remove(this.oil), (this.out = NO), (this.oil = NO_IL) - }), - (e.prototype.end = function () { - var o = this.out - o !== NO && o._c() - }), - (e.prototype._n = function (o) { - var _ = this.out - _ !== NO && _._n(o) - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - this.end() - }), - e - ) - })(), - Filter = (function () { - function e(o, _) { - ;(this.type = 'filter'), (this.ins = _), (this.out = NO), (this.f = o) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO) - }), - (e.prototype._n = function (o) { - var _ = this.out - if (_ !== NO) { - var b = _try(this, o, _) - b === NO || !b || _._n(o) - } - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && o._c() - }), - e - ) - })(), - FlattenListener = (function () { - function e(o, _) { - ;(this.out = o), (this.op = _) - } - return ( - (e.prototype._n = function (o) { - this.out._n(o) - }), - (e.prototype._e = function (o) { - this.out._e(o) - }), - (e.prototype._c = function () { - ;(this.op.inner = NO), this.op.less() - }), - e - ) - })(), - Flatten = (function () { - function e(o) { - ;(this.type = 'flatten'), - (this.ins = o), - (this.out = NO), - (this.open = !0), - (this.inner = NO), - (this.il = NO_IL) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), (this.open = !0), (this.inner = NO), (this.il = NO_IL), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), - this.inner !== NO && this.inner._remove(this.il), - (this.out = NO), - (this.open = !0), - (this.inner = NO), - (this.il = NO_IL) - }), - (e.prototype.less = function () { - var o = this.out - o !== NO && !this.open && this.inner === NO && o._c() - }), - (e.prototype._n = function (o) { - var _ = this.out - if (_ !== NO) { - var b = this, - $ = b.inner, - en = b.il - $ !== NO && en !== NO_IL && $._remove(en), - (this.inner = o)._add((this.il = new FlattenListener(_, this))) - } - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - ;(this.open = !1), this.less() - }), - e - ) - })(), - Fold = (function () { - function e(o, _, b) { - var $ = this - ;(this.type = 'fold'), - (this.ins = b), - (this.out = NO), - (this.f = function (en) { - return o($.acc, en) - }), - (this.acc = this.seed = _) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), (this.acc = this.seed), o._n(this.acc), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO), (this.acc = this.seed) - }), - (e.prototype._n = function (o) { - var _ = this.out - if (_ !== NO) { - var b = _try(this, o, _) - b !== NO && _._n((this.acc = b)) - } - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && o._c() - }), - e - ) - })(), - Last = (function () { - function e(o) { - ;(this.type = 'last'), (this.ins = o), (this.out = NO), (this.has = !1), (this.val = NO) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), (this.has = !1), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO), (this.val = NO) - }), - (e.prototype._n = function (o) { - ;(this.has = !0), (this.val = o) - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && - (this.has - ? (o._n(this.val), o._c()) - : o._e(new Error('last() failed because input stream completed'))) - }), - e - ) - })(), - MapOp = (function () { - function e(o, _) { - ;(this.type = 'map'), (this.ins = _), (this.out = NO), (this.f = o) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO) - }), - (e.prototype._n = function (o) { - var _ = this.out - if (_ !== NO) { - var b = _try(this, o, _) - b !== NO && _._n(b) - } - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && o._c() - }), - e - ) - })(), - Remember = (function () { - function e(o) { - ;(this.type = 'remember'), (this.ins = o), (this.out = NO) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), this.ins._add(o) - }), - (e.prototype._stop = function () { - this.ins._remove(this.out), (this.out = NO) - }), - e - ) - })(), - ReplaceError = (function () { - function e(o, _) { - ;(this.type = 'replaceError'), (this.ins = _), (this.out = NO), (this.f = o) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO) - }), - (e.prototype._n = function (o) { - var _ = this.out - _ !== NO && _._n(o) - }), - (e.prototype._e = function (o) { - var _ = this.out - if (_ !== NO) - try { - this.ins._remove(this), (this.ins = this.f(o))._add(this) - } catch (b) { - _._e(b) - } - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && o._c() - }), - e - ) - })(), - StartWith = (function () { - function e(o, _) { - ;(this.type = 'startWith'), (this.ins = o), (this.out = NO), (this.val = _) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), this.out._n(this.val), this.ins._add(o) - }), - (e.prototype._stop = function () { - this.ins._remove(this.out), (this.out = NO) - }), - e - ) - })(), - Take = (function () { - function e(o, _) { - ;(this.type = 'take'), (this.ins = _), (this.out = NO), (this.max = o), (this.taken = 0) - } - return ( - (e.prototype._start = function (o) { - ;(this.out = o), (this.taken = 0), this.max <= 0 ? o._c() : this.ins._add(this) - }), - (e.prototype._stop = function () { - this.ins._remove(this), (this.out = NO) - }), - (e.prototype._n = function (o) { - var _ = this.out - if (_ !== NO) { - var b = ++this.taken - b < this.max ? _._n(o) : b === this.max && (_._n(o), _._c()) - } - }), - (e.prototype._e = function (o) { - var _ = this.out - _ !== NO && _._e(o) - }), - (e.prototype._c = function () { - var o = this.out - o !== NO && o._c() - }), - e - ) - })(), - Stream = (function () { - function e(o) { - ;(this._prod = o || NO), - (this._ils = []), - (this._stopID = NO), - (this._dl = NO), - (this._d = !1), - (this._target = null), - (this._err = NO) - } - return ( - (e.prototype._n = function (o) { - var _ = this._ils, - b = _.length - if ((this._d && this._dl._n(o), b == 1)) _[0]._n(o) - else { - if (b == 0) return - for (var $ = cp(_), en = 0; en < b; en++) $[en]._n(o) - } - }), - (e.prototype._e = function (o) { - if (this._err === NO) { - this._err = o - var _ = this._ils, - b = _.length - if ((this._x(), this._d && this._dl._e(o), b == 1)) _[0]._e(o) - else { - if (b == 0) return - for (var $ = cp(_), en = 0; en < b; en++) $[en]._e(o) - } - if (!this._d && b == 0) throw this._err - } - }), - (e.prototype._c = function () { - var o = this._ils, - _ = o.length - if ((this._x(), this._d && this._dl._c(), _ == 1)) o[0]._c() - else { - if (_ == 0) return - for (var b = cp(o), $ = 0; $ < _; $++) b[$]._c() - } - }), - (e.prototype._x = function () { - this._ils.length !== 0 && - (this._prod !== NO && this._prod._stop(), (this._err = NO), (this._ils = [])) - }), - (e.prototype._stopNow = function () { - this._prod._stop(), (this._err = NO), (this._stopID = NO) - }), - (e.prototype._add = function (o) { - var _ = this._target - if (_) return _._add(o) - var b = this._ils - if ((b.push(o), !(b.length > 1))) - if (this._stopID !== NO) clearTimeout(this._stopID), (this._stopID = NO) - else { - var $ = this._prod - $ !== NO && $._start(this) - } - }), - (e.prototype._remove = function (o) { - var _ = this, - b = this._target - if (b) return b._remove(o) - var $ = this._ils, - en = $.indexOf(o) - en > -1 && - ($.splice(en, 1), - this._prod !== NO && $.length <= 0 - ? ((this._err = NO), - (this._stopID = setTimeout(function () { - return _._stopNow() - }))) - : $.length === 1 && this._pruneCycles()) - }), - (e.prototype._pruneCycles = function () { - this._hasNoSinks(this, []) && this._remove(this._ils[0]) - }), - (e.prototype._hasNoSinks = function (o, _) { - if (_.indexOf(o) !== -1) return !0 - if (o.out === this) return !0 - if (o.out && o.out !== NO) return this._hasNoSinks(o.out, _.concat(o)) - if (o._ils) { - for (var b = 0, $ = o._ils.length; b < $; b++) - if (!this._hasNoSinks(o._ils[b], _.concat(o))) return !1 - return !0 - } else return !1 - }), - (e.prototype.ctor = function () { - return this instanceof MemoryStream ? MemoryStream : e - }), - (e.prototype.addListener = function (o) { - ;(o._n = o.next || noop), - (o._e = o.error || noop), - (o._c = o.complete || noop), - this._add(o) - }), - (e.prototype.removeListener = function (o) { - this._remove(o) - }), - (e.prototype.subscribe = function (o) { - return this.addListener(o), new StreamSub(this, o) - }), - (e.prototype[$$observable] = function () { - return this - }), - (e.create = function (o) { - if (o) { - if (typeof o.start != 'function' || typeof o.stop != 'function') - throw new Error('producer requires both start and stop functions') - internalizeProducer(o) - } - return new e(o) - }), - (e.createWithMemory = function (o) { - return o && internalizeProducer(o), new MemoryStream(o) - }), - (e.never = function () { - return new e({ _start: noop, _stop: noop }) - }), - (e.empty = function () { - return new e({ - _start: function (o) { - o._c() - }, - _stop: noop, - }) - }), - (e.throw = function (o) { - return new e({ - _start: function (_) { - _._e(o) - }, - _stop: noop, - }) - }), - (e.from = function (o) { - if (typeof o[$$observable] == 'function') return e.fromObservable(o) - if (typeof o.then == 'function') return e.fromPromise(o) - if (Array.isArray(o)) return e.fromArray(o) - throw new TypeError('Type of input to from() must be an Array, Promise, or Observable') - }), - (e.of = function () { - for (var o = [], _ = 0; _ < arguments.length; _++) o[_] = arguments[_] - return e.fromArray(o) - }), - (e.fromArray = function (o) { - return new e(new FromArray(o)) - }), - (e.fromPromise = function (o) { - return new e(new FromPromise(o)) - }), - (e.fromObservable = function (o) { - if (o.endWhen !== void 0) return o - var _ = typeof o[$$observable] == 'function' ? o[$$observable]() : o - return new e(new FromObservable(_)) - }), - (e.periodic = function (o) { - return new e(new Periodic(o)) - }), - (e.prototype._map = function (o) { - return new (this.ctor())(new MapOp(o, this)) - }), - (e.prototype.map = function (o) { - return this._map(o) - }), - (e.prototype.mapTo = function (o) { - var _ = this.map(function () { - return o - }), - b = _._prod - return (b.type = 'mapTo'), _ - }), - (e.prototype.filter = function (o) { - var _ = this._prod - return _ instanceof Filter - ? new e(new Filter(and(_.f, o), _.ins)) - : new e(new Filter(o, this)) - }), - (e.prototype.take = function (o) { - return new (this.ctor())(new Take(o, this)) - }), - (e.prototype.drop = function (o) { - return new e(new Drop(o, this)) - }), - (e.prototype.last = function () { - return new e(new Last(this)) - }), - (e.prototype.startWith = function (o) { - return new MemoryStream(new StartWith(this, o)) - }), - (e.prototype.endWhen = function (o) { - return new (this.ctor())(new EndWhen(o, this)) - }), - (e.prototype.fold = function (o, _) { - return new MemoryStream(new Fold(o, _, this)) - }), - (e.prototype.replaceError = function (o) { - return new (this.ctor())(new ReplaceError(o, this)) - }), - (e.prototype.flatten = function () { - return new e(new Flatten(this)) - }), - (e.prototype.compose = function (o) { - return o(this) - }), - (e.prototype.remember = function () { - return new MemoryStream(new Remember(this)) - }), - (e.prototype.debug = function (o) { - return new (this.ctor())(new Debug(this, o)) - }), - (e.prototype.imitate = function (o) { - if (o instanceof MemoryStream) - throw new Error( - 'A MemoryStream was given to imitate(), but it only supports a Stream. Read more about this restriction here: https://github.com/staltz/xstream#faq', - ) - this._target = o - for (var _ = this._ils, b = _.length, $ = 0; $ < b; $++) o._add(_[$]) - this._ils = [] - }), - (e.prototype.shamefullySendNext = function (o) { - this._n(o) - }), - (e.prototype.shamefullySendError = function (o) { - this._e(o) - }), - (e.prototype.shamefullySendComplete = function () { - this._c() - }), - (e.prototype.setDebugListener = function (o) { - o - ? ((this._d = !0), - (o._n = o.next || noop), - (o._e = o.error || noop), - (o._c = o.complete || noop), - (this._dl = o)) - : ((this._d = !1), (this._dl = NO)) - }), - (e.merge = function () { - for (var _ = [], b = 0; b < arguments.length; b++) _[b] = arguments[b] - return new e(new Merge(_)) - }), - (e.combine = function () { - for (var _ = [], b = 0; b < arguments.length; b++) _[b] = arguments[b] - return new e(new Combine(_)) - }), - e - ) - })() -xstream.Stream = Stream -var MemoryStream = (function (e) { - __extends(o, e) - function o(_) { - var b = e.call(this, _) || this - return (b._has = !1), b - } - return ( - (o.prototype._n = function (_) { - ;(this._v = _), (this._has = !0), e.prototype._n.call(this, _) - }), - (o.prototype._add = function (_) { - var b = this._target - if (b) return b._add(_) - var $ = this._ils - if (($.push(_), $.length > 1)) { - this._has && _._n(this._v) - return - } - if (this._stopID !== NO) - this._has && _._n(this._v), clearTimeout(this._stopID), (this._stopID = NO) - else if (this._has) _._n(this._v) - else { - var en = this._prod - en !== NO && en._start(this) - } - }), - (o.prototype._stopNow = function () { - ;(this._has = !1), e.prototype._stopNow.call(this) - }), - (o.prototype._x = function () { - ;(this._has = !1), e.prototype._x.call(this) - }), - (o.prototype.map = function (_) { - return this._map(_) - }), - (o.prototype.mapTo = function (_) { - return e.prototype.mapTo.call(this, _) - }), - (o.prototype.take = function (_) { - return e.prototype.take.call(this, _) - }), - (o.prototype.endWhen = function (_) { - return e.prototype.endWhen.call(this, _) - }), - (o.prototype.replaceError = function (_) { - return e.prototype.replaceError.call(this, _) - }), - (o.prototype.remember = function () { - return this - }), - (o.prototype.debug = function (_) { - return e.prototype.debug.call(this, _) - }), - o - ) -})(Stream) -xstream.MemoryStream = MemoryStream -var xs = Stream -xstream.default = xs -Object.defineProperty(concat$2, '__esModule', { value: !0 }) -concat$2.concat = void 0 -const xstream_1$5 = xstream -function concat(...e) { - const o = new Array(), - _ = new Array(), - b = new Set() - let $ = 0 - function en() { - for (; o.length > 0; ) o.shift().unsubscribe() - ;(_.length = 0), b.clear(), ($ = 0) - } - const nn = { - start: (sn) => { - e.forEach((Jn) => _.push([])) - function gn(Jn) { - for (;;) { - const qn = _[Jn].shift() - if (qn === void 0) return - sn.next(qn) - } - } - function In() { - return $ >= e.length - } - if (In()) { - sn.complete() - return - } - e.forEach((Jn, qn) => { - o.push( - Jn.subscribe({ - next: (Kn) => { - qn === $ ? sn.next(Kn) : _[qn].push(Kn) - }, - complete: () => { - for (b.add(qn); b.has($); ) gn($), $++ - In() ? sn.complete() : gn($) - }, - error: (Kn) => { - sn.error(Kn), en() - }, - }), - ) - }) - }, - stop: () => { - en() - }, - } - return xstream_1$5.Stream.create(nn) -} -concat$2.concat = concat -var defaultvalueproducer = {} -Object.defineProperty(defaultvalueproducer, '__esModule', { value: !0 }) -defaultvalueproducer.DefaultValueProducer = void 0 -class DefaultValueProducer { - get value() { - return this.internalValue - } - constructor(o, _) { - ;(this.callbacks = _), (this.internalValue = o) - } - update(o) { - ;(this.internalValue = o), this.listener && this.listener.next(o) - } - error(o) { - this.listener && this.listener.error(o) - } - start(o) { - ;(this.listener = o), o.next(this.internalValue), this.callbacks && this.callbacks.onStarted() - } - stop() { - this.callbacks && this.callbacks.onStop(), (this.listener = void 0) - } -} -defaultvalueproducer.DefaultValueProducer = DefaultValueProducer -var dropduplicates = {} -Object.defineProperty(dropduplicates, '__esModule', { value: !0 }) -dropduplicates.dropDuplicates = void 0 -function dropDuplicates(e) { - return (_) => { - const b = new Set() - return _.filter((en) => !b.has(e(en))).debug((en) => b.add(e(en))) - } -} -dropduplicates.dropDuplicates = dropDuplicates -var promise = {} -Object.defineProperty(promise, '__esModule', { value: !0 }) -promise.firstEvent = promise.toListPromise = promise.fromListPromise = void 0 -const xstream_1$4 = xstream -function fromListPromise(e) { - const o = { - start: (_) => { - e.then((b) => { - for (const $ of b) _.next($) - _.complete() - }).catch((b) => _.error(b)) - }, - stop: () => {}, - } - return xstream_1$4.Stream.create(o) -} -promise.fromListPromise = fromListPromise -async function toListPromise(e, o) { - return new Promise((_, b) => { - if (o === 0) { - _([]) - return - } - const $ = new Array() - e.take(o).subscribe({ - next: (en) => { - $.push(en), $.length === o && _($) - }, - complete: () => { - b( - `Stream completed before all events could be collected. Collected ${$.length}, expected ${o}`, - ) - }, - error: (en) => b(en), - }) - }) -} -promise.toListPromise = toListPromise -async function firstEvent(e) { - return (await toListPromise(e, 1))[0] -} -promise.firstEvent = firstEvent -var reducer = {} -Object.defineProperty(reducer, '__esModule', { value: !0 }) -reducer.lastValue = reducer.asArray = reducer.countStream = reducer.Reducer = void 0 -class Reducer { - constructor(o, _, b) { - ;(this.stream = o), - (this.reducer = _), - (this.state = b), - (this.completed = new Promise(($, en) => { - const nn = this.stream.subscribe({ - next: (sn) => { - this.state = this.reducer(this.state, sn) - }, - complete: () => { - $(), nn.unsubscribe() - }, - error: (sn) => { - en(sn), nn.unsubscribe() - }, - }) - })) - } - value() { - return this.state - } - async finished() { - return this.completed - } -} -reducer.Reducer = Reducer -function increment(e, o) { - return e + 1 -} -function countStream(e) { - return new Reducer(e, increment, 0) -} -reducer.countStream = countStream -function append(e, o) { - return [...e, o] -} -function asArray(e) { - return new Reducer(e, append, []) -} -reducer.asArray = asArray -function last(e, o) { - return o -} -function lastValue(e) { - return new Reducer(e, last, void 0) -} -reducer.lastValue = lastValue -var valueandupdates = {} -Object.defineProperty(valueandupdates, '__esModule', { value: !0 }) -valueandupdates.ValueAndUpdates = void 0 -const xstream_1$3 = xstream -class ValueAndUpdates { - get value() { - return this.producer.value - } - constructor(o) { - ;(this.producer = o), (this.updates = xstream_1$3.MemoryStream.createWithMemory(this.producer)) - } - async waitFor(o) { - const _ = typeof o == 'function' ? o : (b) => b === o - return new Promise((b, $) => { - const en = this.updates.subscribe({ - next: (nn) => { - _(nn) && (b(nn), setTimeout(() => en.unsubscribe(), 0)) - }, - complete: () => { - en.unsubscribe(), $('Update stream completed without expected value') - }, - error: (nn) => { - $(nn) - }, - }) - }) - } -} -valueandupdates.ValueAndUpdates = ValueAndUpdates -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (gn, In, Jn, qn) { - qn === void 0 && (qn = Jn) - var Kn = Object.getOwnPropertyDescriptor(In, Jn) - ;(!Kn || ('get' in Kn ? !In.__esModule : Kn.writable || Kn.configurable)) && - (Kn = { - enumerable: !0, - get: function () { - return In[Jn] - }, - }), - Object.defineProperty(gn, qn, Kn) - } - : function (gn, In, Jn, qn) { - qn === void 0 && (qn = Jn), (gn[qn] = In[Jn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__exportStar) || - function (gn, In) { - for (var Jn in gn) - Jn !== 'default' && !Object.prototype.hasOwnProperty.call(In, Jn) && o(In, gn, Jn) - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ValueAndUpdates = - e.toListPromise = - e.fromListPromise = - e.firstEvent = - e.dropDuplicates = - e.DefaultValueProducer = - e.concat = - void 0) - var b = concat$2 - Object.defineProperty(e, 'concat', { - enumerable: !0, - get: function () { - return b.concat - }, - }) - var $ = defaultvalueproducer - Object.defineProperty(e, 'DefaultValueProducer', { - enumerable: !0, - get: function () { - return $.DefaultValueProducer - }, - }) - var en = dropduplicates - Object.defineProperty(e, 'dropDuplicates', { - enumerable: !0, - get: function () { - return en.dropDuplicates - }, - }) - var nn = promise - Object.defineProperty(e, 'firstEvent', { - enumerable: !0, - get: function () { - return nn.firstEvent - }, - }), - Object.defineProperty(e, 'fromListPromise', { - enumerable: !0, - get: function () { - return nn.fromListPromise - }, - }), - Object.defineProperty(e, 'toListPromise', { - enumerable: !0, - get: function () { - return nn.toListPromise - }, - }), - _(reducer, e) - var sn = valueandupdates - Object.defineProperty(e, 'ValueAndUpdates', { - enumerable: !0, - get: function () { - return sn.ValueAndUpdates - }, - }) -})(build$3) -Object.defineProperty(queryclient, '__esModule', { value: !0 }) -queryclient.QueryClient = void 0 -const ics23_1 = build$4, - encoding_1$f = build$b, - stream_1$2 = build$3, - utils_1$8 = build$5 -function checkAndParseOp(e, o, _) { - if (e.type !== o) throw new Error(`Op expected to be ${o}, got "${e.type}`) - if (!(0, utils_1$8.arrayContentEquals)(_, e.key)) - throw new Error(`Proven key different than queried key. -Query: ${(0, encoding_1$f.toHex)(_)} -Proven: ${(0, encoding_1$f.toHex)(e.key)}`) - return ics23_1.ics23.CommitmentProof.decode(e.data) -} -class QueryClient { - static withExtensions(o, ..._) { - const b = new QueryClient(o), - $ = _.map((en) => en(b)) - for (const en of $) { - ;(0, utils_1$8.assert)( - (0, utils_1$8.isNonNullObject)(en), - 'Extension must be a non-null object', - ) - for (const [nn, sn] of Object.entries(en)) { - ;(0, utils_1$8.assert)( - (0, utils_1$8.isNonNullObject)(sn), - `Module must be a non-null object. Found type ${typeof sn} for module "${nn}".`, - ) - const gn = b[nn] || {} - b[nn] = { ...gn, ...sn } - } - } - return b - } - constructor(o) { - this.tmClient = o - } - async queryStoreVerified(o, _, b) { - const { height: $, proof: en, key: nn, value: sn } = await this.queryRawProof(o, _, b), - gn = checkAndParseOp(en.ops[0], 'ics23:iavl', _), - In = checkAndParseOp(en.ops[1], 'ics23:simple', (0, encoding_1$f.toAscii)(o)) - ;(0, utils_1$8.assert)(In.exist), - (0, utils_1$8.assert)(In.exist.value), - !sn || sn.length === 0 - ? ((0, utils_1$8.assert)(gn.nonexist), - (0, ics23_1.verifyNonExistence)(gn.nonexist, ics23_1.iavlSpec, In.exist.value, _)) - : ((0, utils_1$8.assert)(gn.exist), - (0, utils_1$8.assert)(gn.exist.value), - (0, ics23_1.verifyExistence)(gn.exist, ics23_1.iavlSpec, In.exist.value, _, sn)) - const Jn = await this.getNextHeader($) - return ( - (0, ics23_1.verifyExistence)( - In.exist, - ics23_1.tendermintSpec, - Jn.appHash, - (0, encoding_1$f.toAscii)(o), - In.exist.value, - ), - { key: nn, value: sn, height: $ } - ) - } - async queryRawProof(o, _, b) { - const { - key: $, - value: en, - height: nn, - proof: sn, - code: gn, - log: In, - } = await this.tmClient.abciQuery({ path: `/store/${o}/key`, data: _, prove: !0, height: b }) - if (gn) throw new Error(`Query failed with (${gn}): ${In}`) - if (!(0, utils_1$8.arrayContentEquals)(_, $)) - throw new Error( - `Response key ${(0, encoding_1$f.toHex)($)} doesn't match query key ${(0, - encoding_1$f.toHex)(_)}`, - ) - if (!nn) throw new Error('No query height returned') - if (!sn || sn.ops.length !== 2) - throw new Error(`Expected 2 proof ops, got ${sn?.ops.length ?? 0}. Are you using stargate?`) - return ( - checkAndParseOp(sn.ops[0], 'ics23:iavl', $), - checkAndParseOp(sn.ops[1], 'ics23:simple', (0, encoding_1$f.toAscii)(o)), - { key: $, value: en, height: nn, proof: { ops: [...sn.ops] } } - ) - } - async queryAbci(o, _, b) { - const $ = await this.tmClient.abciQuery({ path: o, data: _, prove: !1, height: b }) - if ($.code) throw new Error(`Query failed with (${$.code}): ${$.log}`) - if (!$.height) throw new Error('No query height returned') - return { value: $.value, height: $.height } - } - async getNextHeader(o) { - if (((0, utils_1$8.assertDefined)(o), o === 0)) - throw new Error('Query returned height 0, cannot prove it') - const _ = o + 1 - let b, $ - try { - $ = this.tmClient.subscribeNewBlockHeader() - } catch {} - if ($) { - const en = await (0, stream_1$2.firstEvent)($) - en.height === _ && (b = en) - } - for (; !b; ) { - const en = (await this.tmClient.blockchain(o, _)).blockMetas - .map((nn) => nn.header) - .find((nn) => nn.height === _) - en ? (b = en) : await (0, utils_1$8.sleep)(1e3) - } - return ( - (0, utils_1$8.assert)(b.height === _, 'Got wrong header. This is a bug in the logic above.'), - b - ) - } -} -queryclient.QueryClient = QueryClient -var utils$a = {}, - long$1 = Long$1, - wasm$1 = null -try { - wasm$1 = new WebAssembly.Instance( - new WebAssembly.Module( - new Uint8Array([ - 0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, - 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, - 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, - 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, - 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, - 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, - 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, - ]), - ), - {}, - ).exports -} catch (e) {} -function Long$1(e, o, _) { - ;(this.low = e | 0), (this.high = o | 0), (this.unsigned = !!_) -} -Long$1.prototype.__isLong__ -Object.defineProperty(Long$1.prototype, '__isLong__', { value: !0 }) -function isLong$1(e) { - return (e && e.__isLong__) === !0 -} -Long$1.isLong = isLong$1 -var INT_CACHE$1 = {}, - UINT_CACHE$1 = {} -function fromInt$1(e, o) { - var _, b, $ - return o - ? ((e >>>= 0), - ($ = 0 <= e && e < 256) && ((b = UINT_CACHE$1[e]), b) - ? b - : ((_ = fromBits$1(e, (e | 0) < 0 ? -1 : 0, !0)), $ && (UINT_CACHE$1[e] = _), _)) - : ((e |= 0), - ($ = -128 <= e && e < 128) && ((b = INT_CACHE$1[e]), b) - ? b - : ((_ = fromBits$1(e, e < 0 ? -1 : 0, !1)), $ && (INT_CACHE$1[e] = _), _)) -} -Long$1.fromInt = fromInt$1 -function fromNumber$1(e, o) { - if (isNaN(e)) return o ? UZERO$1 : ZERO$1 - if (o) { - if (e < 0) return UZERO$1 - if (e >= TWO_PWR_64_DBL$1) return MAX_UNSIGNED_VALUE$1 - } else { - if (e <= -TWO_PWR_63_DBL$1) return MIN_VALUE$1 - if (e + 1 >= TWO_PWR_63_DBL$1) return MAX_VALUE$1 - } - return e < 0 - ? fromNumber$1(-e, o).neg() - : fromBits$1(e % TWO_PWR_32_DBL$1 | 0, (e / TWO_PWR_32_DBL$1) | 0, o) -} -Long$1.fromNumber = fromNumber$1 -function fromBits$1(e, o, _) { - return new Long$1(e, o, _) -} -Long$1.fromBits = fromBits$1 -var pow_dbl$1 = Math.pow -function fromString$1(e, o, _) { - if (e.length === 0) throw Error('empty string') - if (e === 'NaN' || e === 'Infinity' || e === '+Infinity' || e === '-Infinity') return ZERO$1 - if ((typeof o == 'number' ? ((_ = o), (o = !1)) : (o = !!o), (_ = _ || 10), _ < 2 || 36 < _)) - throw RangeError('radix') - var b - if ((b = e.indexOf('-')) > 0) throw Error('interior hyphen') - if (b === 0) return fromString$1(e.substring(1), o, _).neg() - for (var $ = fromNumber$1(pow_dbl$1(_, 8)), en = ZERO$1, nn = 0; nn < e.length; nn += 8) { - var sn = Math.min(8, e.length - nn), - gn = parseInt(e.substring(nn, nn + sn), _) - if (sn < 8) { - var In = fromNumber$1(pow_dbl$1(_, sn)) - en = en.mul(In).add(fromNumber$1(gn)) - } else (en = en.mul($)), (en = en.add(fromNumber$1(gn))) - } - return (en.unsigned = o), en -} -Long$1.fromString = fromString$1 -function fromValue$1(e, o) { - return typeof e == 'number' - ? fromNumber$1(e, o) - : typeof e == 'string' - ? fromString$1(e, o) - : fromBits$1(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) -} -Long$1.fromValue = fromValue$1 -var TWO_PWR_16_DBL$1 = 1 << 16, - TWO_PWR_24_DBL$1 = 1 << 24, - TWO_PWR_32_DBL$1 = TWO_PWR_16_DBL$1 * TWO_PWR_16_DBL$1, - TWO_PWR_64_DBL$1 = TWO_PWR_32_DBL$1 * TWO_PWR_32_DBL$1, - TWO_PWR_63_DBL$1 = TWO_PWR_64_DBL$1 / 2, - TWO_PWR_24$1 = fromInt$1(TWO_PWR_24_DBL$1), - ZERO$1 = fromInt$1(0) -Long$1.ZERO = ZERO$1 -var UZERO$1 = fromInt$1(0, !0) -Long$1.UZERO = UZERO$1 -var ONE$1 = fromInt$1(1) -Long$1.ONE = ONE$1 -var UONE$1 = fromInt$1(1, !0) -Long$1.UONE = UONE$1 -var NEG_ONE$1 = fromInt$1(-1) -Long$1.NEG_ONE = NEG_ONE$1 -var MAX_VALUE$1 = fromBits$1(-1, 2147483647, !1) -Long$1.MAX_VALUE = MAX_VALUE$1 -var MAX_UNSIGNED_VALUE$1 = fromBits$1(-1, -1, !0) -Long$1.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE$1 -var MIN_VALUE$1 = fromBits$1(0, -2147483648, !1) -Long$1.MIN_VALUE = MIN_VALUE$1 -var LongPrototype$1 = Long$1.prototype -LongPrototype$1.toInt = function e() { - return this.unsigned ? this.low >>> 0 : this.low -} -LongPrototype$1.toNumber = function e() { - return this.unsigned - ? (this.high >>> 0) * TWO_PWR_32_DBL$1 + (this.low >>> 0) - : this.high * TWO_PWR_32_DBL$1 + (this.low >>> 0) -} -LongPrototype$1.toString = function e(o) { - if (((o = o || 10), o < 2 || 36 < o)) throw RangeError('radix') - if (this.isZero()) return '0' - if (this.isNegative()) - if (this.eq(MIN_VALUE$1)) { - var _ = fromNumber$1(o), - b = this.div(_), - $ = b.mul(_).sub(this) - return b.toString(o) + $.toInt().toString(o) - } else return '-' + this.neg().toString(o) - for (var en = fromNumber$1(pow_dbl$1(o, 6), this.unsigned), nn = this, sn = ''; ; ) { - var gn = nn.div(en), - In = nn.sub(gn.mul(en)).toInt() >>> 0, - Jn = In.toString(o) - if (((nn = gn), nn.isZero())) return Jn + sn - for (; Jn.length < 6; ) Jn = '0' + Jn - sn = '' + Jn + sn - } -} -LongPrototype$1.getHighBits = function e() { - return this.high -} -LongPrototype$1.getHighBitsUnsigned = function e() { - return this.high >>> 0 -} -LongPrototype$1.getLowBits = function e() { - return this.low -} -LongPrototype$1.getLowBitsUnsigned = function e() { - return this.low >>> 0 -} -LongPrototype$1.getNumBitsAbs = function e() { - if (this.isNegative()) return this.eq(MIN_VALUE$1) ? 64 : this.neg().getNumBitsAbs() - for (var o = this.high != 0 ? this.high : this.low, _ = 31; _ > 0 && !(o & (1 << _)); _--); - return this.high != 0 ? _ + 33 : _ + 1 -} -LongPrototype$1.isZero = function e() { - return this.high === 0 && this.low === 0 -} -LongPrototype$1.eqz = LongPrototype$1.isZero -LongPrototype$1.isNegative = function e() { - return !this.unsigned && this.high < 0 -} -LongPrototype$1.isPositive = function e() { - return this.unsigned || this.high >= 0 -} -LongPrototype$1.isOdd = function e() { - return (this.low & 1) === 1 -} -LongPrototype$1.isEven = function e() { - return (this.low & 1) === 0 -} -LongPrototype$1.equals = function e(o) { - return ( - isLong$1(o) || (o = fromValue$1(o)), - this.unsigned !== o.unsigned && this.high >>> 31 === 1 && o.high >>> 31 === 1 - ? !1 - : this.high === o.high && this.low === o.low - ) -} -LongPrototype$1.eq = LongPrototype$1.equals -LongPrototype$1.notEquals = function e(o) { - return !this.eq(o) -} -LongPrototype$1.neq = LongPrototype$1.notEquals -LongPrototype$1.ne = LongPrototype$1.notEquals -LongPrototype$1.lessThan = function e(o) { - return this.comp(o) < 0 -} -LongPrototype$1.lt = LongPrototype$1.lessThan -LongPrototype$1.lessThanOrEqual = function e(o) { - return this.comp(o) <= 0 -} -LongPrototype$1.lte = LongPrototype$1.lessThanOrEqual -LongPrototype$1.le = LongPrototype$1.lessThanOrEqual -LongPrototype$1.greaterThan = function e(o) { - return this.comp(o) > 0 -} -LongPrototype$1.gt = LongPrototype$1.greaterThan -LongPrototype$1.greaterThanOrEqual = function e(o) { - return this.comp(o) >= 0 -} -LongPrototype$1.gte = LongPrototype$1.greaterThanOrEqual -LongPrototype$1.ge = LongPrototype$1.greaterThanOrEqual -LongPrototype$1.compare = function e(o) { - if ((isLong$1(o) || (o = fromValue$1(o)), this.eq(o))) return 0 - var _ = this.isNegative(), - b = o.isNegative() - return _ && !b - ? -1 - : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 -} -LongPrototype$1.comp = LongPrototype$1.compare -LongPrototype$1.negate = function e() { - return !this.unsigned && this.eq(MIN_VALUE$1) ? MIN_VALUE$1 : this.not().add(ONE$1) -} -LongPrototype$1.neg = LongPrototype$1.negate -LongPrototype$1.add = function e(o) { - isLong$1(o) || (o = fromValue$1(o)) - var _ = this.high >>> 16, - b = this.high & 65535, - $ = this.low >>> 16, - en = this.low & 65535, - nn = o.high >>> 16, - sn = o.high & 65535, - gn = o.low >>> 16, - In = o.low & 65535, - Jn = 0, - qn = 0, - Kn = 0, - an = 0 - return ( - (an += en + In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ + gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b + sn), - (Jn += qn >>> 16), - (qn &= 65535), - (Jn += _ + nn), - (Jn &= 65535), - fromBits$1((Kn << 16) | an, (Jn << 16) | qn, this.unsigned) - ) -} -LongPrototype$1.subtract = function e(o) { - return isLong$1(o) || (o = fromValue$1(o)), this.add(o.neg()) -} -LongPrototype$1.sub = LongPrototype$1.subtract -LongPrototype$1.multiply = function e(o) { - if (this.isZero()) return ZERO$1 - if ((isLong$1(o) || (o = fromValue$1(o)), wasm$1)) { - var _ = wasm$1.mul(this.low, this.high, o.low, o.high) - return fromBits$1(_, wasm$1.get_high(), this.unsigned) - } - if (o.isZero()) return ZERO$1 - if (this.eq(MIN_VALUE$1)) return o.isOdd() ? MIN_VALUE$1 : ZERO$1 - if (o.eq(MIN_VALUE$1)) return this.isOdd() ? MIN_VALUE$1 : ZERO$1 - if (this.isNegative()) return o.isNegative() ? this.neg().mul(o.neg()) : this.neg().mul(o).neg() - if (o.isNegative()) return this.mul(o.neg()).neg() - if (this.lt(TWO_PWR_24$1) && o.lt(TWO_PWR_24$1)) - return fromNumber$1(this.toNumber() * o.toNumber(), this.unsigned) - var b = this.high >>> 16, - $ = this.high & 65535, - en = this.low >>> 16, - nn = this.low & 65535, - sn = o.high >>> 16, - gn = o.high & 65535, - In = o.low >>> 16, - Jn = o.low & 65535, - qn = 0, - Kn = 0, - an = 0, - xn = 0 - return ( - (xn += nn * Jn), - (an += xn >>> 16), - (xn &= 65535), - (an += en * Jn), - (Kn += an >>> 16), - (an &= 65535), - (an += nn * In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ * Jn), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += en * In), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += nn * gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b * Jn + $ * In + en * gn + nn * sn), - (qn &= 65535), - fromBits$1((an << 16) | xn, (qn << 16) | Kn, this.unsigned) - ) -} -LongPrototype$1.mul = LongPrototype$1.multiply -LongPrototype$1.divide = function e(o) { - if ((isLong$1(o) || (o = fromValue$1(o)), o.isZero())) throw Error('division by zero') - if (wasm$1) { - if (!this.unsigned && this.high === -2147483648 && o.low === -1 && o.high === -1) return this - var _ = (this.unsigned ? wasm$1.div_u : wasm$1.div_s)(this.low, this.high, o.low, o.high) - return fromBits$1(_, wasm$1.get_high(), this.unsigned) - } - if (this.isZero()) return this.unsigned ? UZERO$1 : ZERO$1 - var b, $, en - if (this.unsigned) { - if ((o.unsigned || (o = o.toUnsigned()), o.gt(this))) return UZERO$1 - if (o.gt(this.shru(1))) return UONE$1 - en = UZERO$1 - } else { - if (this.eq(MIN_VALUE$1)) { - if (o.eq(ONE$1) || o.eq(NEG_ONE$1)) return MIN_VALUE$1 - if (o.eq(MIN_VALUE$1)) return ONE$1 - var nn = this.shr(1) - return ( - (b = nn.div(o).shl(1)), - b.eq(ZERO$1) - ? o.isNegative() - ? ONE$1 - : NEG_ONE$1 - : (($ = this.sub(o.mul(b))), (en = b.add($.div(o))), en) - ) - } else if (o.eq(MIN_VALUE$1)) return this.unsigned ? UZERO$1 : ZERO$1 - if (this.isNegative()) return o.isNegative() ? this.neg().div(o.neg()) : this.neg().div(o).neg() - if (o.isNegative()) return this.div(o.neg()).neg() - en = ZERO$1 - } - for ($ = this; $.gte(o); ) { - b = Math.max(1, Math.floor($.toNumber() / o.toNumber())) - for ( - var sn = Math.ceil(Math.log(b) / Math.LN2), - gn = sn <= 48 ? 1 : pow_dbl$1(2, sn - 48), - In = fromNumber$1(b), - Jn = In.mul(o); - Jn.isNegative() || Jn.gt($); - - ) - (b -= gn), (In = fromNumber$1(b, this.unsigned)), (Jn = In.mul(o)) - In.isZero() && (In = ONE$1), (en = en.add(In)), ($ = $.sub(Jn)) - } - return en -} -LongPrototype$1.div = LongPrototype$1.divide -LongPrototype$1.modulo = function e(o) { - if ((isLong$1(o) || (o = fromValue$1(o)), wasm$1)) { - var _ = (this.unsigned ? wasm$1.rem_u : wasm$1.rem_s)(this.low, this.high, o.low, o.high) - return fromBits$1(_, wasm$1.get_high(), this.unsigned) - } - return this.sub(this.div(o).mul(o)) -} -LongPrototype$1.mod = LongPrototype$1.modulo -LongPrototype$1.rem = LongPrototype$1.modulo -LongPrototype$1.not = function e() { - return fromBits$1(~this.low, ~this.high, this.unsigned) -} -LongPrototype$1.and = function e(o) { - return ( - isLong$1(o) || (o = fromValue$1(o)), - fromBits$1(this.low & o.low, this.high & o.high, this.unsigned) - ) -} -LongPrototype$1.or = function e(o) { - return ( - isLong$1(o) || (o = fromValue$1(o)), - fromBits$1(this.low | o.low, this.high | o.high, this.unsigned) - ) -} -LongPrototype$1.xor = function e(o) { - return ( - isLong$1(o) || (o = fromValue$1(o)), - fromBits$1(this.low ^ o.low, this.high ^ o.high, this.unsigned) - ) -} -LongPrototype$1.shiftLeft = function e(o) { - return ( - isLong$1(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits$1(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits$1(0, this.low << (o - 32), this.unsigned) - ) -} -LongPrototype$1.shl = LongPrototype$1.shiftLeft -LongPrototype$1.shiftRight = function e(o) { - return ( - isLong$1(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits$1((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits$1(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) - ) -} -LongPrototype$1.shr = LongPrototype$1.shiftRight -LongPrototype$1.shiftRightUnsigned = function e(o) { - if ((isLong$1(o) && (o = o.toInt()), (o &= 63), o === 0)) return this - var _ = this.high - if (o < 32) { - var b = this.low - return fromBits$1((b >>> o) | (_ << (32 - o)), _ >>> o, this.unsigned) - } else - return o === 32 ? fromBits$1(_, 0, this.unsigned) : fromBits$1(_ >>> (o - 32), 0, this.unsigned) -} -LongPrototype$1.shru = LongPrototype$1.shiftRightUnsigned -LongPrototype$1.shr_u = LongPrototype$1.shiftRightUnsigned -LongPrototype$1.toSigned = function e() { - return this.unsigned ? fromBits$1(this.low, this.high, !1) : this -} -LongPrototype$1.toUnsigned = function e() { - return this.unsigned ? this : fromBits$1(this.low, this.high, !0) -} -LongPrototype$1.toBytes = function e(o) { - return o ? this.toBytesLE() : this.toBytesBE() -} -LongPrototype$1.toBytesLE = function e() { - var o = this.high, - _ = this.low - return [ - _ & 255, - (_ >>> 8) & 255, - (_ >>> 16) & 255, - _ >>> 24, - o & 255, - (o >>> 8) & 255, - (o >>> 16) & 255, - o >>> 24, - ] -} -LongPrototype$1.toBytesBE = function e() { - var o = this.high, - _ = this.low - return [ - o >>> 24, - (o >>> 16) & 255, - (o >>> 8) & 255, - o & 255, - _ >>> 24, - (_ >>> 16) & 255, - (_ >>> 8) & 255, - _ & 255, - ] -} -Long$1.fromBytes = function e(o, _, b) { - return b ? Long$1.fromBytesLE(o, _) : Long$1.fromBytesBE(o, _) -} -Long$1.fromBytesLE = function e(o, _) { - return new Long$1( - o[0] | (o[1] << 8) | (o[2] << 16) | (o[3] << 24), - o[4] | (o[5] << 8) | (o[6] << 16) | (o[7] << 24), - _, - ) -} -Long$1.fromBytesBE = function e(o, _) { - return new Long$1( - (o[4] << 24) | (o[5] << 16) | (o[6] << 8) | o[7], - (o[0] << 24) | (o[1] << 16) | (o[2] << 8) | o[3], - _, - ) -} -var __importDefault$c = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(utils$a, '__esModule', { value: !0 }) -utils$a.decodeCosmosSdkDecFromProto = - utils$a.longify = - utils$a.createProtobufRpcClient = - utils$a.createPagination = - utils$a.toAccAddress = - void 0 -const encoding_1$e = build$b, - math_1$7 = build$a, - pagination_1 = pagination, - long_1$a = __importDefault$c(long$1) -function toAccAddress(e) { - return (0, encoding_1$e.fromBech32)(e).data -} -utils$a.toAccAddress = toAccAddress -function createPagination(e) { - return e ? pagination_1.PageRequest.fromPartial({ key: e }) : void 0 -} -utils$a.createPagination = createPagination -function createProtobufRpcClient(e) { - return { - request: async (o, _, b) => { - const $ = `/${o}/${_}` - return (await e.queryAbci($, b, void 0)).value - }, - } -} -utils$a.createProtobufRpcClient = createProtobufRpcClient -function longify(e) { - const o = math_1$7.Uint64.fromString(e.toString()) - return long_1$a.default.fromBytesBE([...o.toBytesBigEndian()], !0) -} -utils$a.longify = longify -function decodeCosmosSdkDecFromProto(e) { - const o = typeof e == 'string' ? e : (0, encoding_1$e.fromAscii)(e) - return math_1$7.Decimal.fromAtomics(o, 18) -} -utils$a.decodeCosmosSdkDecFromProto = decodeCosmosSdkDecFromProto -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.longify = - e.decodeCosmosSdkDecFromProto = - e.createProtobufRpcClient = - e.createPagination = - e.QueryClient = - void 0) - var o = queryclient - Object.defineProperty(e, 'QueryClient', { - enumerable: !0, - get: function () { - return o.QueryClient - }, - }) - var _ = utils$a - Object.defineProperty(e, 'createPagination', { - enumerable: !0, - get: function () { - return _.createPagination - }, - }), - Object.defineProperty(e, 'createProtobufRpcClient', { - enumerable: !0, - get: function () { - return _.createProtobufRpcClient - }, - }), - Object.defineProperty(e, 'decodeCosmosSdkDecFromProto', { - enumerable: !0, - get: function () { - return _.decodeCosmosSdkDecFromProto - }, - }), - Object.defineProperty(e, 'longify', { - enumerable: !0, - get: function () { - return _.longify - }, - }) -})(queryclient$1) -Object.defineProperty(queries$b, '__esModule', { value: !0 }) -queries$b.setupAuthExtension = void 0 -const query_1$a = query$d, - queryclient_1$c = queryclient$1 -function setupAuthExtension(e) { - const o = (0, queryclient_1$c.createProtobufRpcClient)(e), - _ = new query_1$a.QueryClientImpl(o) - return { - auth: { - account: async (b) => { - const { account: $ } = await _.Account({ address: b }) - return $ ?? null - }, - }, - } -} -queries$b.setupAuthExtension = setupAuthExtension -var aminomessages$c = {} -Object.defineProperty(aminomessages$c, '__esModule', { value: !0 }) -aminomessages$c.createAuthzAminoConverters = void 0 -function createAuthzAminoConverters() { - return {} -} -aminomessages$c.createAuthzAminoConverters = createAuthzAminoConverters -var messages$9 = {}, - tx$c = {}, - authz = {}, - timestamp = {}, - __createBinding$d = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$d = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$d = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$d(o, e, _) - return __setModuleDefault$d(o, e), o - } -Object.defineProperty(timestamp, '__esModule', { value: !0 }) -timestamp.Timestamp = timestamp.protobufPackage = void 0 -const helpers_1$9 = helpers, - _m0$9 = __importStar$d(minimalExports) -timestamp.protobufPackage = 'google.protobuf' -function createBaseTimestamp() { - return { seconds: helpers_1$9.Long.ZERO, nanos: 0 } -} -timestamp.Timestamp = { - encode(e, o = _m0$9.Writer.create()) { - return ( - e.seconds.isZero() || o.uint32(8).int64(e.seconds), - e.nanos !== 0 && o.uint32(16).int32(e.nanos), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$9.Reader ? e : new _m0$9.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseTimestamp() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.seconds = _.int64() - break - case 2: - $.nanos = _.int32() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - seconds: (0, helpers_1$9.isSet)(e.seconds) - ? helpers_1$9.Long.fromValue(e.seconds) - : helpers_1$9.Long.ZERO, - nanos: (0, helpers_1$9.isSet)(e.nanos) ? Number(e.nanos) : 0, - } - }, - toJSON(e) { - const o = {} - return ( - e.seconds !== void 0 && (o.seconds = (e.seconds || helpers_1$9.Long.ZERO).toString()), - e.nanos !== void 0 && (o.nanos = Math.round(e.nanos)), - o - ) - }, - fromPartial(e) { - const o = createBaseTimestamp() - return ( - (o.seconds = - e.seconds !== void 0 && e.seconds !== null - ? helpers_1$9.Long.fromValue(e.seconds) - : helpers_1$9.Long.ZERO), - (o.nanos = e.nanos ?? 0), - o - ) - }, -} -var __createBinding$c = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$c = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$c = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$c(o, e, _) - return __setModuleDefault$c(o, e), o - } -Object.defineProperty(authz, '__esModule', { value: !0 }) -authz.GrantQueueItem = - authz.GrantAuthorization = - authz.Grant = - authz.GenericAuthorization = - authz.protobufPackage = - void 0 -const any_1$1 = any, - timestamp_1$1 = timestamp, - _m0$8 = __importStar$c(minimalExports), - helpers_1$8 = helpers -authz.protobufPackage = 'cosmos.authz.v1beta1' -function createBaseGenericAuthorization() { - return { msg: '' } -} -authz.GenericAuthorization = { - encode(e, o = _m0$8.Writer.create()) { - return e.msg !== '' && o.uint32(10).string(e.msg), o - }, - decode(e, o) { - const _ = e instanceof _m0$8.Reader ? e : new _m0$8.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseGenericAuthorization() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.msg = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { msg: (0, helpers_1$8.isSet)(e.msg) ? String(e.msg) : '' } - }, - toJSON(e) { - const o = {} - return e.msg !== void 0 && (o.msg = e.msg), o - }, - fromPartial(e) { - const o = createBaseGenericAuthorization() - return (o.msg = e.msg ?? ''), o - }, -} -function createBaseGrant() { - return { authorization: void 0, expiration: void 0 } -} -authz.Grant = { - encode(e, o = _m0$8.Writer.create()) { - return ( - e.authorization !== void 0 && - any_1$1.Any.encode(e.authorization, o.uint32(10).fork()).ldelim(), - e.expiration !== void 0 && - timestamp_1$1.Timestamp.encode(e.expiration, o.uint32(18).fork()).ldelim(), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$8.Reader ? e : new _m0$8.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseGrant() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.authorization = any_1$1.Any.decode(_, _.uint32()) - break - case 2: - $.expiration = timestamp_1$1.Timestamp.decode(_, _.uint32()) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - authorization: (0, helpers_1$8.isSet)(e.authorization) - ? any_1$1.Any.fromJSON(e.authorization) - : void 0, - expiration: (0, helpers_1$8.isSet)(e.expiration) - ? (0, helpers_1$8.fromJsonTimestamp)(e.expiration) - : void 0, - } - }, - toJSON(e) { - const o = {} - return ( - e.authorization !== void 0 && - (o.authorization = e.authorization ? any_1$1.Any.toJSON(e.authorization) : void 0), - e.expiration !== void 0 && - (o.expiration = (0, helpers_1$8.fromTimestamp)(e.expiration).toISOString()), - o - ) - }, - fromPartial(e) { - const o = createBaseGrant() - return ( - (o.authorization = - e.authorization !== void 0 && e.authorization !== null - ? any_1$1.Any.fromPartial(e.authorization) - : void 0), - (o.expiration = - e.expiration !== void 0 && e.expiration !== null - ? timestamp_1$1.Timestamp.fromPartial(e.expiration) - : void 0), - o - ) - }, -} -function createBaseGrantAuthorization() { - return { granter: '', grantee: '', authorization: void 0, expiration: void 0 } -} -authz.GrantAuthorization = { - encode(e, o = _m0$8.Writer.create()) { - return ( - e.granter !== '' && o.uint32(10).string(e.granter), - e.grantee !== '' && o.uint32(18).string(e.grantee), - e.authorization !== void 0 && - any_1$1.Any.encode(e.authorization, o.uint32(26).fork()).ldelim(), - e.expiration !== void 0 && - timestamp_1$1.Timestamp.encode(e.expiration, o.uint32(34).fork()).ldelim(), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$8.Reader ? e : new _m0$8.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseGrantAuthorization() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.granter = _.string() - break - case 2: - $.grantee = _.string() - break - case 3: - $.authorization = any_1$1.Any.decode(_, _.uint32()) - break - case 4: - $.expiration = timestamp_1$1.Timestamp.decode(_, _.uint32()) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - granter: (0, helpers_1$8.isSet)(e.granter) ? String(e.granter) : '', - grantee: (0, helpers_1$8.isSet)(e.grantee) ? String(e.grantee) : '', - authorization: (0, helpers_1$8.isSet)(e.authorization) - ? any_1$1.Any.fromJSON(e.authorization) - : void 0, - expiration: (0, helpers_1$8.isSet)(e.expiration) - ? (0, helpers_1$8.fromJsonTimestamp)(e.expiration) - : void 0, - } - }, - toJSON(e) { - const o = {} - return ( - e.granter !== void 0 && (o.granter = e.granter), - e.grantee !== void 0 && (o.grantee = e.grantee), - e.authorization !== void 0 && - (o.authorization = e.authorization ? any_1$1.Any.toJSON(e.authorization) : void 0), - e.expiration !== void 0 && - (o.expiration = (0, helpers_1$8.fromTimestamp)(e.expiration).toISOString()), - o - ) - }, - fromPartial(e) { - const o = createBaseGrantAuthorization() - return ( - (o.granter = e.granter ?? ''), - (o.grantee = e.grantee ?? ''), - (o.authorization = - e.authorization !== void 0 && e.authorization !== null - ? any_1$1.Any.fromPartial(e.authorization) - : void 0), - (o.expiration = - e.expiration !== void 0 && e.expiration !== null - ? timestamp_1$1.Timestamp.fromPartial(e.expiration) - : void 0), - o - ) - }, -} -function createBaseGrantQueueItem() { - return { msgTypeUrls: [] } -} -authz.GrantQueueItem = { - encode(e, o = _m0$8.Writer.create()) { - for (const _ of e.msgTypeUrls) o.uint32(10).string(_) - return o - }, - decode(e, o) { - const _ = e instanceof _m0$8.Reader ? e : new _m0$8.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseGrantQueueItem() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.msgTypeUrls.push(_.string()) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { msgTypeUrls: Array.isArray(e?.msgTypeUrls) ? e.msgTypeUrls.map((o) => String(o)) : [] } - }, - toJSON(e) { - const o = {} - return e.msgTypeUrls ? (o.msgTypeUrls = e.msgTypeUrls.map((_) => _)) : (o.msgTypeUrls = []), o - }, - fromPartial(e) { - const o = createBaseGrantQueueItem() - return (o.msgTypeUrls = e.msgTypeUrls?.map((_) => _) || []), o - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn) - var yn = Object.getOwnPropertyDescriptor(Bn, kn) - ;(!yn || ('get' in yn ? !Bn.__esModule : yn.writable || yn.configurable)) && - (yn = { - enumerable: !0, - get: function () { - return Bn[kn] - }, - }), - Object.defineProperty(mn, ln, yn) - } - : function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn), (mn[ln] = Bn[kn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (mn, Bn) { - Object.defineProperty(mn, 'default', { enumerable: !0, value: Bn }) - } - : function (mn, Bn) { - mn.default = Bn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (mn) { - if (mn && mn.__esModule) return mn - var Bn = {} - if (mn != null) - for (var kn in mn) - kn !== 'default' && Object.prototype.hasOwnProperty.call(mn, kn) && o(Bn, mn, kn) - return _(Bn, mn), Bn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgRevokeResponse = - e.MsgRevoke = - e.MsgGrantResponse = - e.MsgExec = - e.MsgExecResponse = - e.MsgGrant = - e.protobufPackage = - void 0) - const $ = authz, - en = any, - nn = b(minimalExports), - sn = helpers - e.protobufPackage = 'cosmos.authz.v1beta1' - function gn() { - return { granter: '', grantee: '', grant: void 0 } - } - e.MsgGrant = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.granter !== '' && Bn.uint32(10).string(mn.granter), - mn.grantee !== '' && Bn.uint32(18).string(mn.grantee), - mn.grant !== void 0 && $.Grant.encode(mn.grant, Bn.uint32(26).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = gn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.granter = kn.string() - break - case 2: - yn.grantee = kn.string() - break - case 3: - yn.grant = $.Grant.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - granter: (0, sn.isSet)(mn.granter) ? String(mn.granter) : '', - grantee: (0, sn.isSet)(mn.grantee) ? String(mn.grantee) : '', - grant: (0, sn.isSet)(mn.grant) ? $.Grant.fromJSON(mn.grant) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.granter !== void 0 && (Bn.granter = mn.granter), - mn.grantee !== void 0 && (Bn.grantee = mn.grantee), - mn.grant !== void 0 && (Bn.grant = mn.grant ? $.Grant.toJSON(mn.grant) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = gn() - return ( - (Bn.granter = mn.granter ?? ''), - (Bn.grantee = mn.grantee ?? ''), - (Bn.grant = - mn.grant !== void 0 && mn.grant !== null ? $.Grant.fromPartial(mn.grant) : void 0), - Bn - ) - }, - } - function In() { - return { results: [] } - } - e.MsgExecResponse = { - encode(mn, Bn = nn.Writer.create()) { - for (const kn of mn.results) Bn.uint32(10).bytes(kn) - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = In() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.results.push(kn.bytes()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - results: Array.isArray(mn?.results) - ? mn.results.map((Bn) => (0, sn.bytesFromBase64)(Bn)) - : [], - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.results - ? (Bn.results = mn.results.map((kn) => - (0, sn.base64FromBytes)(kn !== void 0 ? kn : new Uint8Array()), - )) - : (Bn.results = []), - Bn - ) - }, - fromPartial(mn) { - const Bn = In() - return (Bn.results = mn.results?.map((kn) => kn) || []), Bn - }, - } - function Jn() { - return { grantee: '', msgs: [] } - } - e.MsgExec = { - encode(mn, Bn = nn.Writer.create()) { - mn.grantee !== '' && Bn.uint32(10).string(mn.grantee) - for (const kn of mn.msgs) en.Any.encode(kn, Bn.uint32(18).fork()).ldelim() - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Jn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.grantee = kn.string() - break - case 2: - yn.msgs.push(en.Any.decode(kn, kn.uint32())) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - grantee: (0, sn.isSet)(mn.grantee) ? String(mn.grantee) : '', - msgs: Array.isArray(mn?.msgs) ? mn.msgs.map((Bn) => en.Any.fromJSON(Bn)) : [], - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.grantee !== void 0 && (Bn.grantee = mn.grantee), - mn.msgs - ? (Bn.msgs = mn.msgs.map((kn) => (kn ? en.Any.toJSON(kn) : void 0))) - : (Bn.msgs = []), - Bn - ) - }, - fromPartial(mn) { - const Bn = Jn() - return ( - (Bn.grantee = mn.grantee ?? ''), - (Bn.msgs = mn.msgs?.map((kn) => en.Any.fromPartial(kn)) || []), - Bn - ) - }, - } - function qn() { - return {} - } - e.MsgGrantResponse = { - encode(mn, Bn = nn.Writer.create()) { - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = qn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return {} - }, - toJSON(mn) { - return {} - }, - fromPartial(mn) { - return qn() - }, - } - function Kn() { - return { granter: '', grantee: '', msgTypeUrl: '' } - } - e.MsgRevoke = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.granter !== '' && Bn.uint32(10).string(mn.granter), - mn.grantee !== '' && Bn.uint32(18).string(mn.grantee), - mn.msgTypeUrl !== '' && Bn.uint32(26).string(mn.msgTypeUrl), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Kn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.granter = kn.string() - break - case 2: - yn.grantee = kn.string() - break - case 3: - yn.msgTypeUrl = kn.string() - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - granter: (0, sn.isSet)(mn.granter) ? String(mn.granter) : '', - grantee: (0, sn.isSet)(mn.grantee) ? String(mn.grantee) : '', - msgTypeUrl: (0, sn.isSet)(mn.msgTypeUrl) ? String(mn.msgTypeUrl) : '', - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.granter !== void 0 && (Bn.granter = mn.granter), - mn.grantee !== void 0 && (Bn.grantee = mn.grantee), - mn.msgTypeUrl !== void 0 && (Bn.msgTypeUrl = mn.msgTypeUrl), - Bn - ) - }, - fromPartial(mn) { - const Bn = Kn() - return ( - (Bn.granter = mn.granter ?? ''), - (Bn.grantee = mn.grantee ?? ''), - (Bn.msgTypeUrl = mn.msgTypeUrl ?? ''), - Bn - ) - }, - } - function an() { - return {} - } - e.MsgRevokeResponse = { - encode(mn, Bn = nn.Writer.create()) { - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = an() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return {} - }, - toJSON(mn) { - return {} - }, - fromPartial(mn) { - return an() - }, - } - class xn { - constructor(Bn) { - ;(this.rpc = Bn), - (this.Grant = this.Grant.bind(this)), - (this.Exec = this.Exec.bind(this)), - (this.Revoke = this.Revoke.bind(this)) - } - Grant(Bn) { - const kn = e.MsgGrant.encode(Bn).finish() - return this.rpc - .request('cosmos.authz.v1beta1.Msg', 'Grant', kn) - .then((yn) => e.MsgGrantResponse.decode(new nn.Reader(yn))) - } - Exec(Bn) { - const kn = e.MsgExec.encode(Bn).finish() - return this.rpc - .request('cosmos.authz.v1beta1.Msg', 'Exec', kn) - .then((yn) => e.MsgExecResponse.decode(new nn.Reader(yn))) - } - Revoke(Bn) { - const kn = e.MsgRevoke.encode(Bn).finish() - return this.rpc - .request('cosmos.authz.v1beta1.Msg', 'Revoke', kn) - .then((yn) => e.MsgRevokeResponse.decode(new nn.Reader(yn))) - } - } - e.MsgClientImpl = xn -})(tx$c) -Object.defineProperty(messages$9, '__esModule', { value: !0 }) -messages$9.authzTypes = void 0 -const tx_1$c = tx$c -messages$9.authzTypes = [ - ['/cosmos.authz.v1beta1.MsgExec', tx_1$c.MsgExec], - ['/cosmos.authz.v1beta1.MsgGrant', tx_1$c.MsgGrant], - ['/cosmos.authz.v1beta1.MsgRevoke', tx_1$c.MsgRevoke], -] -var queries$a = {}, - query$c = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn) - var yn = Object.getOwnPropertyDescriptor(Bn, kn) - ;(!yn || ('get' in yn ? !Bn.__esModule : yn.writable || yn.configurable)) && - (yn = { - enumerable: !0, - get: function () { - return Bn[kn] - }, - }), - Object.defineProperty(mn, ln, yn) - } - : function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn), (mn[ln] = Bn[kn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (mn, Bn) { - Object.defineProperty(mn, 'default', { enumerable: !0, value: Bn }) - } - : function (mn, Bn) { - mn.default = Bn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (mn) { - if (mn && mn.__esModule) return mn - var Bn = {} - if (mn != null) - for (var kn in mn) - kn !== 'default' && Object.prototype.hasOwnProperty.call(mn, kn) && o(Bn, mn, kn) - return _(Bn, mn), Bn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryGranteeGrantsResponse = - e.QueryGranteeGrantsRequest = - e.QueryGranterGrantsResponse = - e.QueryGranterGrantsRequest = - e.QueryGrantsResponse = - e.QueryGrantsRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = authz, - nn = b(minimalExports), - sn = helpers - e.protobufPackage = 'cosmos.authz.v1beta1' - function gn() { - return { granter: '', grantee: '', msgTypeUrl: '', pagination: void 0 } - } - e.QueryGrantsRequest = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.granter !== '' && Bn.uint32(10).string(mn.granter), - mn.grantee !== '' && Bn.uint32(18).string(mn.grantee), - mn.msgTypeUrl !== '' && Bn.uint32(26).string(mn.msgTypeUrl), - mn.pagination !== void 0 && - $.PageRequest.encode(mn.pagination, Bn.uint32(34).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = gn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.granter = kn.string() - break - case 2: - yn.grantee = kn.string() - break - case 3: - yn.msgTypeUrl = kn.string() - break - case 4: - yn.pagination = $.PageRequest.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - granter: (0, sn.isSet)(mn.granter) ? String(mn.granter) : '', - grantee: (0, sn.isSet)(mn.grantee) ? String(mn.grantee) : '', - msgTypeUrl: (0, sn.isSet)(mn.msgTypeUrl) ? String(mn.msgTypeUrl) : '', - pagination: (0, sn.isSet)(mn.pagination) ? $.PageRequest.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.granter !== void 0 && (Bn.granter = mn.granter), - mn.grantee !== void 0 && (Bn.grantee = mn.grantee), - mn.msgTypeUrl !== void 0 && (Bn.msgTypeUrl = mn.msgTypeUrl), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageRequest.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = gn() - return ( - (Bn.granter = mn.granter ?? ''), - (Bn.grantee = mn.grantee ?? ''), - (Bn.msgTypeUrl = mn.msgTypeUrl ?? ''), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageRequest.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function In() { - return { grants: [], pagination: void 0 } - } - e.QueryGrantsResponse = { - encode(mn, Bn = nn.Writer.create()) { - for (const kn of mn.grants) en.Grant.encode(kn, Bn.uint32(10).fork()).ldelim() - return ( - mn.pagination !== void 0 && - $.PageResponse.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = In() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.grants.push(en.Grant.decode(kn, kn.uint32())) - break - case 2: - yn.pagination = $.PageResponse.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - grants: Array.isArray(mn?.grants) ? mn.grants.map((Bn) => en.Grant.fromJSON(Bn)) : [], - pagination: (0, sn.isSet)(mn.pagination) ? $.PageResponse.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.grants - ? (Bn.grants = mn.grants.map((kn) => (kn ? en.Grant.toJSON(kn) : void 0))) - : (Bn.grants = []), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageResponse.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = In() - return ( - (Bn.grants = mn.grants?.map((kn) => en.Grant.fromPartial(kn)) || []), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageResponse.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function Jn() { - return { granter: '', pagination: void 0 } - } - e.QueryGranterGrantsRequest = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.granter !== '' && Bn.uint32(10).string(mn.granter), - mn.pagination !== void 0 && - $.PageRequest.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Jn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.granter = kn.string() - break - case 2: - yn.pagination = $.PageRequest.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - granter: (0, sn.isSet)(mn.granter) ? String(mn.granter) : '', - pagination: (0, sn.isSet)(mn.pagination) ? $.PageRequest.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.granter !== void 0 && (Bn.granter = mn.granter), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageRequest.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = Jn() - return ( - (Bn.granter = mn.granter ?? ''), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageRequest.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function qn() { - return { grants: [], pagination: void 0 } - } - e.QueryGranterGrantsResponse = { - encode(mn, Bn = nn.Writer.create()) { - for (const kn of mn.grants) en.GrantAuthorization.encode(kn, Bn.uint32(10).fork()).ldelim() - return ( - mn.pagination !== void 0 && - $.PageResponse.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = qn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.grants.push(en.GrantAuthorization.decode(kn, kn.uint32())) - break - case 2: - yn.pagination = $.PageResponse.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - grants: Array.isArray(mn?.grants) - ? mn.grants.map((Bn) => en.GrantAuthorization.fromJSON(Bn)) - : [], - pagination: (0, sn.isSet)(mn.pagination) ? $.PageResponse.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.grants - ? (Bn.grants = mn.grants.map((kn) => (kn ? en.GrantAuthorization.toJSON(kn) : void 0))) - : (Bn.grants = []), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageResponse.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = qn() - return ( - (Bn.grants = mn.grants?.map((kn) => en.GrantAuthorization.fromPartial(kn)) || []), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageResponse.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function Kn() { - return { grantee: '', pagination: void 0 } - } - e.QueryGranteeGrantsRequest = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.grantee !== '' && Bn.uint32(10).string(mn.grantee), - mn.pagination !== void 0 && - $.PageRequest.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Kn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.grantee = kn.string() - break - case 2: - yn.pagination = $.PageRequest.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - grantee: (0, sn.isSet)(mn.grantee) ? String(mn.grantee) : '', - pagination: (0, sn.isSet)(mn.pagination) ? $.PageRequest.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.grantee !== void 0 && (Bn.grantee = mn.grantee), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageRequest.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = Kn() - return ( - (Bn.grantee = mn.grantee ?? ''), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageRequest.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function an() { - return { grants: [], pagination: void 0 } - } - e.QueryGranteeGrantsResponse = { - encode(mn, Bn = nn.Writer.create()) { - for (const kn of mn.grants) en.GrantAuthorization.encode(kn, Bn.uint32(10).fork()).ldelim() - return ( - mn.pagination !== void 0 && - $.PageResponse.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = an() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.grants.push(en.GrantAuthorization.decode(kn, kn.uint32())) - break - case 2: - yn.pagination = $.PageResponse.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - grants: Array.isArray(mn?.grants) - ? mn.grants.map((Bn) => en.GrantAuthorization.fromJSON(Bn)) - : [], - pagination: (0, sn.isSet)(mn.pagination) ? $.PageResponse.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.grants - ? (Bn.grants = mn.grants.map((kn) => (kn ? en.GrantAuthorization.toJSON(kn) : void 0))) - : (Bn.grants = []), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageResponse.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = an() - return ( - (Bn.grants = mn.grants?.map((kn) => en.GrantAuthorization.fromPartial(kn)) || []), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageResponse.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - class xn { - constructor(Bn) { - ;(this.rpc = Bn), - (this.Grants = this.Grants.bind(this)), - (this.GranterGrants = this.GranterGrants.bind(this)), - (this.GranteeGrants = this.GranteeGrants.bind(this)) - } - Grants(Bn) { - const kn = e.QueryGrantsRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.authz.v1beta1.Query', 'Grants', kn) - .then((yn) => e.QueryGrantsResponse.decode(new nn.Reader(yn))) - } - GranterGrants(Bn) { - const kn = e.QueryGranterGrantsRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.authz.v1beta1.Query', 'GranterGrants', kn) - .then((yn) => e.QueryGranterGrantsResponse.decode(new nn.Reader(yn))) - } - GranteeGrants(Bn) { - const kn = e.QueryGranteeGrantsRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.authz.v1beta1.Query', 'GranteeGrants', kn) - .then((yn) => e.QueryGranteeGrantsResponse.decode(new nn.Reader(yn))) - } - } - e.QueryClientImpl = xn -})(query$c) -Object.defineProperty(queries$a, '__esModule', { value: !0 }) -queries$a.setupAuthzExtension = void 0 -const query_1$9 = query$c, - queryclient_1$b = queryclient$1 -function setupAuthzExtension(e) { - const o = (0, queryclient_1$b.createProtobufRpcClient)(e), - _ = new query_1$9.QueryClientImpl(o) - return { - authz: { - grants: async (b, $, en, nn) => - await _.Grants({ - granter: b, - grantee: $, - msgTypeUrl: en, - pagination: (0, queryclient_1$b.createPagination)(nn), - }), - granteeGrants: async (b, $) => - await _.GranteeGrants({ grantee: b, pagination: (0, queryclient_1$b.createPagination)($) }), - granterGrants: async (b, $) => - await _.GranterGrants({ granter: b, pagination: (0, queryclient_1$b.createPagination)($) }), - }, - } -} -queries$a.setupAuthzExtension = setupAuthzExtension -var aminomessages$b = {} -Object.defineProperty(aminomessages$b, '__esModule', { value: !0 }) -aminomessages$b.createBankAminoConverters = - aminomessages$b.isAminoMsgMultiSend = - aminomessages$b.isAminoMsgSend = - void 0 -function isAminoMsgSend(e) { - return e.type === 'cosmos-sdk/MsgSend' -} -aminomessages$b.isAminoMsgSend = isAminoMsgSend -function isAminoMsgMultiSend(e) { - return e.type === 'cosmos-sdk/MsgMultiSend' -} -aminomessages$b.isAminoMsgMultiSend = isAminoMsgMultiSend -function createBankAminoConverters() { - return { - '/cosmos.bank.v1beta1.MsgSend': { - aminoType: 'cosmos-sdk/MsgSend', - toAmino: ({ fromAddress: e, toAddress: o, amount: _ }) => ({ - from_address: e, - to_address: o, - amount: [..._], - }), - fromAmino: ({ from_address: e, to_address: o, amount: _ }) => ({ - fromAddress: e, - toAddress: o, - amount: [..._], - }), - }, - '/cosmos.bank.v1beta1.MsgMultiSend': { - aminoType: 'cosmos-sdk/MsgMultiSend', - toAmino: ({ inputs: e, outputs: o }) => ({ - inputs: e.map((_) => ({ address: _.address, coins: [..._.coins] })), - outputs: o.map((_) => ({ address: _.address, coins: [..._.coins] })), - }), - fromAmino: ({ inputs: e, outputs: o }) => ({ - inputs: e.map((_) => ({ address: _.address, coins: [..._.coins] })), - outputs: o.map((_) => ({ address: _.address, coins: [..._.coins] })), - }), - }, - } -} -aminomessages$b.createBankAminoConverters = createBankAminoConverters -var messages$8 = {} -Object.defineProperty(messages$8, '__esModule', { value: !0 }) -messages$8.isMsgSendEncodeObject = messages$8.bankTypes = void 0 -const tx_1$b = tx$d -messages$8.bankTypes = [ - ['/cosmos.bank.v1beta1.MsgMultiSend', tx_1$b.MsgMultiSend], - ['/cosmos.bank.v1beta1.MsgSend', tx_1$b.MsgSend], -] -function isMsgSendEncodeObject(e) { - return e.typeUrl === '/cosmos.bank.v1beta1.MsgSend' -} -messages$8.isMsgSendEncodeObject = isMsgSendEncodeObject -var queries$9 = {}, - query$b = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (_n, Ln, zn, Fn) { - Fn === void 0 && (Fn = zn) - var An = Object.getOwnPropertyDescriptor(Ln, zn) - ;(!An || ('get' in An ? !Ln.__esModule : An.writable || An.configurable)) && - (An = { - enumerable: !0, - get: function () { - return Ln[zn] - }, - }), - Object.defineProperty(_n, Fn, An) - } - : function (_n, Ln, zn, Fn) { - Fn === void 0 && (Fn = zn), (_n[Fn] = Ln[zn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (_n, Ln) { - Object.defineProperty(_n, 'default', { enumerable: !0, value: Ln }) - } - : function (_n, Ln) { - _n.default = Ln - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (_n) { - if (_n && _n.__esModule) return _n - var Ln = {} - if (_n != null) - for (var zn in _n) - zn !== 'default' && Object.prototype.hasOwnProperty.call(_n, zn) && o(Ln, _n, zn) - return _(Ln, _n), Ln - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QuerySendEnabledResponse = - e.QuerySendEnabledRequest = - e.QueryDenomOwnersResponse = - e.DenomOwner = - e.QueryDenomOwnersRequest = - e.QueryDenomMetadataResponse = - e.QueryDenomMetadataRequest = - e.QueryDenomsMetadataResponse = - e.QueryDenomsMetadataRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.QuerySupplyOfResponse = - e.QuerySupplyOfRequest = - e.QueryTotalSupplyResponse = - e.QueryTotalSupplyRequest = - e.QuerySpendableBalanceByDenomResponse = - e.QuerySpendableBalanceByDenomRequest = - e.QuerySpendableBalancesResponse = - e.QuerySpendableBalancesRequest = - e.QueryAllBalancesResponse = - e.QueryAllBalancesRequest = - e.QueryBalanceResponse = - e.QueryBalanceRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = coin$1, - nn = bank, - sn = b(minimalExports), - gn = helpers - e.protobufPackage = 'cosmos.bank.v1beta1' - function In() { - return { address: '', denom: '' } - } - e.QueryBalanceRequest = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.address !== '' && Ln.uint32(10).string(_n.address), - _n.denom !== '' && Ln.uint32(18).string(_n.denom), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = In() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.address = zn.string() - break - case 2: - An.denom = zn.string() - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - address: (0, gn.isSet)(_n.address) ? String(_n.address) : '', - denom: (0, gn.isSet)(_n.denom) ? String(_n.denom) : '', - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.address !== void 0 && (Ln.address = _n.address), - _n.denom !== void 0 && (Ln.denom = _n.denom), - Ln - ) - }, - fromPartial(_n) { - const Ln = In() - return (Ln.address = _n.address ?? ''), (Ln.denom = _n.denom ?? ''), Ln - }, - } - function Jn() { - return { balance: void 0 } - } - e.QueryBalanceResponse = { - encode(_n, Ln = sn.Writer.create()) { - return _n.balance !== void 0 && en.Coin.encode(_n.balance, Ln.uint32(10).fork()).ldelim(), Ln - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Jn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.balance = en.Coin.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { balance: (0, gn.isSet)(_n.balance) ? en.Coin.fromJSON(_n.balance) : void 0 } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.balance !== void 0 && (Ln.balance = _n.balance ? en.Coin.toJSON(_n.balance) : void 0), Ln - ) - }, - fromPartial(_n) { - const Ln = Jn() - return ( - (Ln.balance = - _n.balance !== void 0 && _n.balance !== null ? en.Coin.fromPartial(_n.balance) : void 0), - Ln - ) - }, - } - function qn() { - return { address: '', pagination: void 0 } - } - e.QueryAllBalancesRequest = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.address !== '' && Ln.uint32(10).string(_n.address), - _n.pagination !== void 0 && - $.PageRequest.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = qn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.address = zn.string() - break - case 2: - An.pagination = $.PageRequest.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - address: (0, gn.isSet)(_n.address) ? String(_n.address) : '', - pagination: (0, gn.isSet)(_n.pagination) ? $.PageRequest.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.address !== void 0 && (Ln.address = _n.address), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageRequest.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = qn() - return ( - (Ln.address = _n.address ?? ''), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageRequest.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function Kn() { - return { balances: [], pagination: void 0 } - } - e.QueryAllBalancesResponse = { - encode(_n, Ln = sn.Writer.create()) { - for (const zn of _n.balances) en.Coin.encode(zn, Ln.uint32(10).fork()).ldelim() - return ( - _n.pagination !== void 0 && - $.PageResponse.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Kn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.balances.push(en.Coin.decode(zn, zn.uint32())) - break - case 2: - An.pagination = $.PageResponse.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - balances: Array.isArray(_n?.balances) ? _n.balances.map((Ln) => en.Coin.fromJSON(Ln)) : [], - pagination: (0, gn.isSet)(_n.pagination) ? $.PageResponse.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.balances - ? (Ln.balances = _n.balances.map((zn) => (zn ? en.Coin.toJSON(zn) : void 0))) - : (Ln.balances = []), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageResponse.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = Kn() - return ( - (Ln.balances = _n.balances?.map((zn) => en.Coin.fromPartial(zn)) || []), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageResponse.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function an() { - return { address: '', pagination: void 0 } - } - e.QuerySpendableBalancesRequest = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.address !== '' && Ln.uint32(10).string(_n.address), - _n.pagination !== void 0 && - $.PageRequest.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = an() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.address = zn.string() - break - case 2: - An.pagination = $.PageRequest.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - address: (0, gn.isSet)(_n.address) ? String(_n.address) : '', - pagination: (0, gn.isSet)(_n.pagination) ? $.PageRequest.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.address !== void 0 && (Ln.address = _n.address), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageRequest.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = an() - return ( - (Ln.address = _n.address ?? ''), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageRequest.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function xn() { - return { balances: [], pagination: void 0 } - } - e.QuerySpendableBalancesResponse = { - encode(_n, Ln = sn.Writer.create()) { - for (const zn of _n.balances) en.Coin.encode(zn, Ln.uint32(10).fork()).ldelim() - return ( - _n.pagination !== void 0 && - $.PageResponse.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = xn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.balances.push(en.Coin.decode(zn, zn.uint32())) - break - case 2: - An.pagination = $.PageResponse.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - balances: Array.isArray(_n?.balances) ? _n.balances.map((Ln) => en.Coin.fromJSON(Ln)) : [], - pagination: (0, gn.isSet)(_n.pagination) ? $.PageResponse.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.balances - ? (Ln.balances = _n.balances.map((zn) => (zn ? en.Coin.toJSON(zn) : void 0))) - : (Ln.balances = []), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageResponse.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = xn() - return ( - (Ln.balances = _n.balances?.map((zn) => en.Coin.fromPartial(zn)) || []), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageResponse.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function mn() { - return { address: '', denom: '' } - } - e.QuerySpendableBalanceByDenomRequest = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.address !== '' && Ln.uint32(10).string(_n.address), - _n.denom !== '' && Ln.uint32(18).string(_n.denom), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = mn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.address = zn.string() - break - case 2: - An.denom = zn.string() - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - address: (0, gn.isSet)(_n.address) ? String(_n.address) : '', - denom: (0, gn.isSet)(_n.denom) ? String(_n.denom) : '', - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.address !== void 0 && (Ln.address = _n.address), - _n.denom !== void 0 && (Ln.denom = _n.denom), - Ln - ) - }, - fromPartial(_n) { - const Ln = mn() - return (Ln.address = _n.address ?? ''), (Ln.denom = _n.denom ?? ''), Ln - }, - } - function Bn() { - return { balance: void 0 } - } - e.QuerySpendableBalanceByDenomResponse = { - encode(_n, Ln = sn.Writer.create()) { - return _n.balance !== void 0 && en.Coin.encode(_n.balance, Ln.uint32(10).fork()).ldelim(), Ln - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Bn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.balance = en.Coin.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { balance: (0, gn.isSet)(_n.balance) ? en.Coin.fromJSON(_n.balance) : void 0 } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.balance !== void 0 && (Ln.balance = _n.balance ? en.Coin.toJSON(_n.balance) : void 0), Ln - ) - }, - fromPartial(_n) { - const Ln = Bn() - return ( - (Ln.balance = - _n.balance !== void 0 && _n.balance !== null ? en.Coin.fromPartial(_n.balance) : void 0), - Ln - ) - }, - } - function kn() { - return { pagination: void 0 } - } - e.QueryTotalSupplyRequest = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.pagination !== void 0 && - $.PageRequest.encode(_n.pagination, Ln.uint32(10).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = kn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.pagination = $.PageRequest.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - pagination: (0, gn.isSet)(_n.pagination) ? $.PageRequest.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageRequest.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = kn() - return ( - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageRequest.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function ln() { - return { supply: [], pagination: void 0 } - } - e.QueryTotalSupplyResponse = { - encode(_n, Ln = sn.Writer.create()) { - for (const zn of _n.supply) en.Coin.encode(zn, Ln.uint32(10).fork()).ldelim() - return ( - _n.pagination !== void 0 && - $.PageResponse.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = ln() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.supply.push(en.Coin.decode(zn, zn.uint32())) - break - case 2: - An.pagination = $.PageResponse.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - supply: Array.isArray(_n?.supply) ? _n.supply.map((Ln) => en.Coin.fromJSON(Ln)) : [], - pagination: (0, gn.isSet)(_n.pagination) ? $.PageResponse.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.supply - ? (Ln.supply = _n.supply.map((zn) => (zn ? en.Coin.toJSON(zn) : void 0))) - : (Ln.supply = []), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageResponse.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = ln() - return ( - (Ln.supply = _n.supply?.map((zn) => en.Coin.fromPartial(zn)) || []), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageResponse.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function yn() { - return { denom: '' } - } - e.QuerySupplyOfRequest = { - encode(_n, Ln = sn.Writer.create()) { - return _n.denom !== '' && Ln.uint32(10).string(_n.denom), Ln - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = yn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.denom = zn.string() - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { denom: (0, gn.isSet)(_n.denom) ? String(_n.denom) : '' } - }, - toJSON(_n) { - const Ln = {} - return _n.denom !== void 0 && (Ln.denom = _n.denom), Ln - }, - fromPartial(_n) { - const Ln = yn() - return (Ln.denom = _n.denom ?? ''), Ln - }, - } - function Cn() { - return { amount: void 0 } - } - e.QuerySupplyOfResponse = { - encode(_n, Ln = sn.Writer.create()) { - return _n.amount !== void 0 && en.Coin.encode(_n.amount, Ln.uint32(10).fork()).ldelim(), Ln - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Cn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.amount = en.Coin.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { amount: (0, gn.isSet)(_n.amount) ? en.Coin.fromJSON(_n.amount) : void 0 } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.amount !== void 0 && (Ln.amount = _n.amount ? en.Coin.toJSON(_n.amount) : void 0), Ln - ) - }, - fromPartial(_n) { - const Ln = Cn() - return ( - (Ln.amount = - _n.amount !== void 0 && _n.amount !== null ? en.Coin.fromPartial(_n.amount) : void 0), - Ln - ) - }, - } - function Tn() { - return {} - } - e.QueryParamsRequest = { - encode(_n, Ln = sn.Writer.create()) { - return Ln - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Tn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return {} - }, - toJSON(_n) { - return {} - }, - fromPartial(_n) { - return Tn() - }, - } - function Gn() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(_n, Ln = sn.Writer.create()) { - return _n.params !== void 0 && nn.Params.encode(_n.params, Ln.uint32(10).fork()).ldelim(), Ln - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Gn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.params = nn.Params.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { params: (0, gn.isSet)(_n.params) ? nn.Params.fromJSON(_n.params) : void 0 } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.params !== void 0 && (Ln.params = _n.params ? nn.Params.toJSON(_n.params) : void 0), Ln - ) - }, - fromPartial(_n) { - const Ln = Gn() - return ( - (Ln.params = - _n.params !== void 0 && _n.params !== null ? nn.Params.fromPartial(_n.params) : void 0), - Ln - ) - }, - } - function Sn() { - return { pagination: void 0 } - } - e.QueryDenomsMetadataRequest = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.pagination !== void 0 && - $.PageRequest.encode(_n.pagination, Ln.uint32(10).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Sn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.pagination = $.PageRequest.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - pagination: (0, gn.isSet)(_n.pagination) ? $.PageRequest.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageRequest.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = Sn() - return ( - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageRequest.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function Zn() { - return { metadatas: [], pagination: void 0 } - } - e.QueryDenomsMetadataResponse = { - encode(_n, Ln = sn.Writer.create()) { - for (const zn of _n.metadatas) nn.Metadata.encode(zn, Ln.uint32(10).fork()).ldelim() - return ( - _n.pagination !== void 0 && - $.PageResponse.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Zn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.metadatas.push(nn.Metadata.decode(zn, zn.uint32())) - break - case 2: - An.pagination = $.PageResponse.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - metadatas: Array.isArray(_n?.metadatas) - ? _n.metadatas.map((Ln) => nn.Metadata.fromJSON(Ln)) - : [], - pagination: (0, gn.isSet)(_n.pagination) ? $.PageResponse.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.metadatas - ? (Ln.metadatas = _n.metadatas.map((zn) => (zn ? nn.Metadata.toJSON(zn) : void 0))) - : (Ln.metadatas = []), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageResponse.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = Zn() - return ( - (Ln.metadatas = _n.metadatas?.map((zn) => nn.Metadata.fromPartial(zn)) || []), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageResponse.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function tn() { - return { denom: '' } - } - e.QueryDenomMetadataRequest = { - encode(_n, Ln = sn.Writer.create()) { - return _n.denom !== '' && Ln.uint32(10).string(_n.denom), Ln - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = tn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.denom = zn.string() - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { denom: (0, gn.isSet)(_n.denom) ? String(_n.denom) : '' } - }, - toJSON(_n) { - const Ln = {} - return _n.denom !== void 0 && (Ln.denom = _n.denom), Ln - }, - fromPartial(_n) { - const Ln = tn() - return (Ln.denom = _n.denom ?? ''), Ln - }, - } - function En() { - return { metadata: void 0 } - } - e.QueryDenomMetadataResponse = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.metadata !== void 0 && nn.Metadata.encode(_n.metadata, Ln.uint32(10).fork()).ldelim(), Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = En() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.metadata = nn.Metadata.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { metadata: (0, gn.isSet)(_n.metadata) ? nn.Metadata.fromJSON(_n.metadata) : void 0 } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.metadata !== void 0 && - (Ln.metadata = _n.metadata ? nn.Metadata.toJSON(_n.metadata) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = En() - return ( - (Ln.metadata = - _n.metadata !== void 0 && _n.metadata !== null - ? nn.Metadata.fromPartial(_n.metadata) - : void 0), - Ln - ) - }, - } - function Mn() { - return { denom: '', pagination: void 0 } - } - e.QueryDenomOwnersRequest = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.denom !== '' && Ln.uint32(10).string(_n.denom), - _n.pagination !== void 0 && - $.PageRequest.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Mn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.denom = zn.string() - break - case 2: - An.pagination = $.PageRequest.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - denom: (0, gn.isSet)(_n.denom) ? String(_n.denom) : '', - pagination: (0, gn.isSet)(_n.pagination) ? $.PageRequest.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.denom !== void 0 && (Ln.denom = _n.denom), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageRequest.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = Mn() - return ( - (Ln.denom = _n.denom ?? ''), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageRequest.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function Hn() { - return { address: '', balance: void 0 } - } - e.DenomOwner = { - encode(_n, Ln = sn.Writer.create()) { - return ( - _n.address !== '' && Ln.uint32(10).string(_n.address), - _n.balance !== void 0 && en.Coin.encode(_n.balance, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Hn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.address = zn.string() - break - case 2: - An.balance = en.Coin.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - address: (0, gn.isSet)(_n.address) ? String(_n.address) : '', - balance: (0, gn.isSet)(_n.balance) ? en.Coin.fromJSON(_n.balance) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.address !== void 0 && (Ln.address = _n.address), - _n.balance !== void 0 && (Ln.balance = _n.balance ? en.Coin.toJSON(_n.balance) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = Hn() - return ( - (Ln.address = _n.address ?? ''), - (Ln.balance = - _n.balance !== void 0 && _n.balance !== null ? en.Coin.fromPartial(_n.balance) : void 0), - Ln - ) - }, - } - function un() { - return { denomOwners: [], pagination: void 0 } - } - e.QueryDenomOwnersResponse = { - encode(_n, Ln = sn.Writer.create()) { - for (const zn of _n.denomOwners) e.DenomOwner.encode(zn, Ln.uint32(10).fork()).ldelim() - return ( - _n.pagination !== void 0 && - $.PageResponse.encode(_n.pagination, Ln.uint32(18).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = un() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.denomOwners.push(e.DenomOwner.decode(zn, zn.uint32())) - break - case 2: - An.pagination = $.PageResponse.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - denomOwners: Array.isArray(_n?.denomOwners) - ? _n.denomOwners.map((Ln) => e.DenomOwner.fromJSON(Ln)) - : [], - pagination: (0, gn.isSet)(_n.pagination) ? $.PageResponse.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.denomOwners - ? (Ln.denomOwners = _n.denomOwners.map((zn) => (zn ? e.DenomOwner.toJSON(zn) : void 0))) - : (Ln.denomOwners = []), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageResponse.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = un() - return ( - (Ln.denomOwners = _n.denomOwners?.map((zn) => e.DenomOwner.fromPartial(zn)) || []), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageResponse.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function dn() { - return { denoms: [], pagination: void 0 } - } - e.QuerySendEnabledRequest = { - encode(_n, Ln = sn.Writer.create()) { - for (const zn of _n.denoms) Ln.uint32(10).string(zn) - return ( - _n.pagination !== void 0 && - $.PageRequest.encode(_n.pagination, Ln.uint32(794).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = dn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.denoms.push(zn.string()) - break - case 99: - An.pagination = $.PageRequest.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - denoms: Array.isArray(_n?.denoms) ? _n.denoms.map((Ln) => String(Ln)) : [], - pagination: (0, gn.isSet)(_n.pagination) ? $.PageRequest.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.denoms ? (Ln.denoms = _n.denoms.map((zn) => zn)) : (Ln.denoms = []), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageRequest.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = dn() - return ( - (Ln.denoms = _n.denoms?.map((zn) => zn) || []), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageRequest.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - function Nn() { - return { sendEnabled: [], pagination: void 0 } - } - e.QuerySendEnabledResponse = { - encode(_n, Ln = sn.Writer.create()) { - for (const zn of _n.sendEnabled) nn.SendEnabled.encode(zn, Ln.uint32(10).fork()).ldelim() - return ( - _n.pagination !== void 0 && - $.PageResponse.encode(_n.pagination, Ln.uint32(794).fork()).ldelim(), - Ln - ) - }, - decode(_n, Ln) { - const zn = _n instanceof sn.Reader ? _n : new sn.Reader(_n) - let Fn = Ln === void 0 ? zn.len : zn.pos + Ln - const An = Nn() - for (; zn.pos < Fn; ) { - const Qn = zn.uint32() - switch (Qn >>> 3) { - case 1: - An.sendEnabled.push(nn.SendEnabled.decode(zn, zn.uint32())) - break - case 99: - An.pagination = $.PageResponse.decode(zn, zn.uint32()) - break - default: - zn.skipType(Qn & 7) - break - } - } - return An - }, - fromJSON(_n) { - return { - sendEnabled: Array.isArray(_n?.sendEnabled) - ? _n.sendEnabled.map((Ln) => nn.SendEnabled.fromJSON(Ln)) - : [], - pagination: (0, gn.isSet)(_n.pagination) ? $.PageResponse.fromJSON(_n.pagination) : void 0, - } - }, - toJSON(_n) { - const Ln = {} - return ( - _n.sendEnabled - ? (Ln.sendEnabled = _n.sendEnabled.map((zn) => (zn ? nn.SendEnabled.toJSON(zn) : void 0))) - : (Ln.sendEnabled = []), - _n.pagination !== void 0 && - (Ln.pagination = _n.pagination ? $.PageResponse.toJSON(_n.pagination) : void 0), - Ln - ) - }, - fromPartial(_n) { - const Ln = Nn() - return ( - (Ln.sendEnabled = _n.sendEnabled?.map((zn) => nn.SendEnabled.fromPartial(zn)) || []), - (Ln.pagination = - _n.pagination !== void 0 && _n.pagination !== null - ? $.PageResponse.fromPartial(_n.pagination) - : void 0), - Ln - ) - }, - } - class fn { - constructor(Ln) { - ;(this.rpc = Ln), - (this.Balance = this.Balance.bind(this)), - (this.AllBalances = this.AllBalances.bind(this)), - (this.SpendableBalances = this.SpendableBalances.bind(this)), - (this.SpendableBalanceByDenom = this.SpendableBalanceByDenom.bind(this)), - (this.TotalSupply = this.TotalSupply.bind(this)), - (this.SupplyOf = this.SupplyOf.bind(this)), - (this.Params = this.Params.bind(this)), - (this.DenomMetadata = this.DenomMetadata.bind(this)), - (this.DenomsMetadata = this.DenomsMetadata.bind(this)), - (this.DenomOwners = this.DenomOwners.bind(this)), - (this.SendEnabled = this.SendEnabled.bind(this)) - } - Balance(Ln) { - const zn = e.QueryBalanceRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'Balance', zn) - .then((An) => e.QueryBalanceResponse.decode(new sn.Reader(An))) - } - AllBalances(Ln) { - const zn = e.QueryAllBalancesRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'AllBalances', zn) - .then((An) => e.QueryAllBalancesResponse.decode(new sn.Reader(An))) - } - SpendableBalances(Ln) { - const zn = e.QuerySpendableBalancesRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'SpendableBalances', zn) - .then((An) => e.QuerySpendableBalancesResponse.decode(new sn.Reader(An))) - } - SpendableBalanceByDenom(Ln) { - const zn = e.QuerySpendableBalanceByDenomRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'SpendableBalanceByDenom', zn) - .then((An) => e.QuerySpendableBalanceByDenomResponse.decode(new sn.Reader(An))) - } - TotalSupply(Ln = { pagination: void 0 }) { - const zn = e.QueryTotalSupplyRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'TotalSupply', zn) - .then((An) => e.QueryTotalSupplyResponse.decode(new sn.Reader(An))) - } - SupplyOf(Ln) { - const zn = e.QuerySupplyOfRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'SupplyOf', zn) - .then((An) => e.QuerySupplyOfResponse.decode(new sn.Reader(An))) - } - Params(Ln = {}) { - const zn = e.QueryParamsRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'Params', zn) - .then((An) => e.QueryParamsResponse.decode(new sn.Reader(An))) - } - DenomMetadata(Ln) { - const zn = e.QueryDenomMetadataRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'DenomMetadata', zn) - .then((An) => e.QueryDenomMetadataResponse.decode(new sn.Reader(An))) - } - DenomsMetadata(Ln = { pagination: void 0 }) { - const zn = e.QueryDenomsMetadataRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'DenomsMetadata', zn) - .then((An) => e.QueryDenomsMetadataResponse.decode(new sn.Reader(An))) - } - DenomOwners(Ln) { - const zn = e.QueryDenomOwnersRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'DenomOwners', zn) - .then((An) => e.QueryDenomOwnersResponse.decode(new sn.Reader(An))) - } - SendEnabled(Ln) { - const zn = e.QuerySendEnabledRequest.encode(Ln).finish() - return this.rpc - .request('cosmos.bank.v1beta1.Query', 'SendEnabled', zn) - .then((An) => e.QuerySendEnabledResponse.decode(new sn.Reader(An))) - } - } - e.QueryClientImpl = fn -})(query$b) -Object.defineProperty(queries$9, '__esModule', { value: !0 }) -queries$9.setupBankExtension = void 0 -const utils_1$7 = build$5, - query_1$8 = query$b, - queryclient_1$a = queryclient$1 -function setupBankExtension(e) { - const o = (0, queryclient_1$a.createProtobufRpcClient)(e), - _ = new query_1$8.QueryClientImpl(o) - return { - bank: { - balance: async (b, $) => { - const { balance: en } = await _.Balance({ address: b, denom: $ }) - return (0, utils_1$7.assert)(en), en - }, - allBalances: async (b) => { - const { balances: $ } = await _.AllBalances({ address: b }) - return $ - }, - totalSupply: async (b) => - await _.TotalSupply({ pagination: (0, queryclient_1$a.createPagination)(b) }), - supplyOf: async (b) => { - const { amount: $ } = await _.SupplyOf({ denom: b }) - return (0, utils_1$7.assert)($), $ - }, - denomMetadata: async (b) => { - const { metadata: $ } = await _.DenomMetadata({ denom: b }) - return (0, utils_1$7.assert)($), $ - }, - denomsMetadata: async () => { - const { metadatas: b } = await _.DenomsMetadata({ pagination: void 0 }) - return b - }, - }, - } -} -queries$9.setupBankExtension = setupBankExtension -var aminomessages$a = {} -Object.defineProperty(aminomessages$a, '__esModule', { value: !0 }) -aminomessages$a.createCrysisAminoConverters = aminomessages$a.isAminoMsgVerifyInvariant = void 0 -function isAminoMsgVerifyInvariant(e) { - return e.type === 'cosmos-sdk/MsgVerifyInvariant' -} -aminomessages$a.isAminoMsgVerifyInvariant = isAminoMsgVerifyInvariant -function createCrysisAminoConverters() { - throw new Error('Not implemented') -} -aminomessages$a.createCrysisAminoConverters = createCrysisAminoConverters -var aminomessages$9 = {} -Object.defineProperty(aminomessages$9, '__esModule', { value: !0 }) -aminomessages$9.createDistributionAminoConverters = - aminomessages$9.isAminoMsgFundCommunityPool = - aminomessages$9.isAminoMsgWithdrawValidatorCommission = - aminomessages$9.isAminoMsgWithdrawDelegatorReward = - aminomessages$9.isAminoMsgSetWithdrawAddress = - void 0 -function isAminoMsgSetWithdrawAddress(e) { - return e.type === 'cosmos-sdk/MsgModifyWithdrawAddress' -} -aminomessages$9.isAminoMsgSetWithdrawAddress = isAminoMsgSetWithdrawAddress -function isAminoMsgWithdrawDelegatorReward(e) { - return e.type === 'cosmos-sdk/MsgWithdrawDelegationReward' -} -aminomessages$9.isAminoMsgWithdrawDelegatorReward = isAminoMsgWithdrawDelegatorReward -function isAminoMsgWithdrawValidatorCommission(e) { - return e.type === 'cosmos-sdk/MsgWithdrawValidatorCommission' -} -aminomessages$9.isAminoMsgWithdrawValidatorCommission = isAminoMsgWithdrawValidatorCommission -function isAminoMsgFundCommunityPool(e) { - return e.type === 'cosmos-sdk/MsgFundCommunityPool' -} -aminomessages$9.isAminoMsgFundCommunityPool = isAminoMsgFundCommunityPool -function createDistributionAminoConverters() { - return { - '/cosmos.distribution.v1beta1.MsgFundCommunityPool': { - aminoType: 'cosmos-sdk/MsgFundCommunityPool', - toAmino: ({ amount: e, depositor: o }) => ({ amount: [...e], depositor: o }), - fromAmino: ({ amount: e, depositor: o }) => ({ amount: [...e], depositor: o }), - }, - '/cosmos.distribution.v1beta1.MsgSetWithdrawAddress': { - aminoType: 'cosmos-sdk/MsgModifyWithdrawAddress', - toAmino: ({ delegatorAddress: e, withdrawAddress: o }) => ({ - delegator_address: e, - withdraw_address: o, - }), - fromAmino: ({ delegator_address: e, withdraw_address: o }) => ({ - delegatorAddress: e, - withdrawAddress: o, - }), - }, - '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward': { - aminoType: 'cosmos-sdk/MsgWithdrawDelegationReward', - toAmino: ({ delegatorAddress: e, validatorAddress: o }) => ({ - delegator_address: e, - validator_address: o, - }), - fromAmino: ({ delegator_address: e, validator_address: o }) => ({ - delegatorAddress: e, - validatorAddress: o, - }), - }, - '/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission': { - aminoType: 'cosmos-sdk/MsgWithdrawValidatorCommission', - toAmino: ({ validatorAddress: e }) => ({ validator_address: e }), - fromAmino: ({ validator_address: e }) => ({ validatorAddress: e }), - }, - } -} -aminomessages$9.createDistributionAminoConverters = createDistributionAminoConverters -var messages$7 = {}, - tx$b = {}, - distribution = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (yn, Cn, Tn, Gn) { - Gn === void 0 && (Gn = Tn) - var Sn = Object.getOwnPropertyDescriptor(Cn, Tn) - ;(!Sn || ('get' in Sn ? !Cn.__esModule : Sn.writable || Sn.configurable)) && - (Sn = { - enumerable: !0, - get: function () { - return Cn[Tn] - }, - }), - Object.defineProperty(yn, Gn, Sn) - } - : function (yn, Cn, Tn, Gn) { - Gn === void 0 && (Gn = Tn), (yn[Gn] = Cn[Tn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (yn, Cn) { - Object.defineProperty(yn, 'default', { enumerable: !0, value: Cn }) - } - : function (yn, Cn) { - yn.default = Cn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (yn) { - if (yn && yn.__esModule) return yn - var Cn = {} - if (yn != null) - for (var Tn in yn) - Tn !== 'default' && Object.prototype.hasOwnProperty.call(yn, Tn) && o(Cn, yn, Tn) - return _(Cn, yn), Cn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.CommunityPoolSpendProposalWithDeposit = - e.DelegationDelegatorReward = - e.DelegatorStartingInfo = - e.CommunityPoolSpendProposal = - e.FeePool = - e.ValidatorSlashEvents = - e.ValidatorSlashEvent = - e.ValidatorOutstandingRewards = - e.ValidatorAccumulatedCommission = - e.ValidatorCurrentRewards = - e.ValidatorHistoricalRewards = - e.Params = - e.protobufPackage = - void 0) - const $ = coin$1, - en = helpers, - nn = b(minimalExports) - e.protobufPackage = 'cosmos.distribution.v1beta1' - function sn() { - return { - communityTax: '', - baseProposerReward: '', - bonusProposerReward: '', - withdrawAddrEnabled: !1, - } - } - e.Params = { - encode(yn, Cn = nn.Writer.create()) { - return ( - yn.communityTax !== '' && Cn.uint32(10).string(yn.communityTax), - yn.baseProposerReward !== '' && Cn.uint32(18).string(yn.baseProposerReward), - yn.bonusProposerReward !== '' && Cn.uint32(26).string(yn.bonusProposerReward), - yn.withdrawAddrEnabled === !0 && Cn.uint32(32).bool(yn.withdrawAddrEnabled), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = sn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.communityTax = Tn.string() - break - case 2: - Sn.baseProposerReward = Tn.string() - break - case 3: - Sn.bonusProposerReward = Tn.string() - break - case 4: - Sn.withdrawAddrEnabled = Tn.bool() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - communityTax: (0, en.isSet)(yn.communityTax) ? String(yn.communityTax) : '', - baseProposerReward: (0, en.isSet)(yn.baseProposerReward) - ? String(yn.baseProposerReward) - : '', - bonusProposerReward: (0, en.isSet)(yn.bonusProposerReward) - ? String(yn.bonusProposerReward) - : '', - withdrawAddrEnabled: (0, en.isSet)(yn.withdrawAddrEnabled) - ? Boolean(yn.withdrawAddrEnabled) - : !1, - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.communityTax !== void 0 && (Cn.communityTax = yn.communityTax), - yn.baseProposerReward !== void 0 && (Cn.baseProposerReward = yn.baseProposerReward), - yn.bonusProposerReward !== void 0 && (Cn.bonusProposerReward = yn.bonusProposerReward), - yn.withdrawAddrEnabled !== void 0 && (Cn.withdrawAddrEnabled = yn.withdrawAddrEnabled), - Cn - ) - }, - fromPartial(yn) { - const Cn = sn() - return ( - (Cn.communityTax = yn.communityTax ?? ''), - (Cn.baseProposerReward = yn.baseProposerReward ?? ''), - (Cn.bonusProposerReward = yn.bonusProposerReward ?? ''), - (Cn.withdrawAddrEnabled = yn.withdrawAddrEnabled ?? !1), - Cn - ) - }, - } - function gn() { - return { cumulativeRewardRatio: [], referenceCount: 0 } - } - e.ValidatorHistoricalRewards = { - encode(yn, Cn = nn.Writer.create()) { - for (const Tn of yn.cumulativeRewardRatio) $.DecCoin.encode(Tn, Cn.uint32(10).fork()).ldelim() - return yn.referenceCount !== 0 && Cn.uint32(16).uint32(yn.referenceCount), Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = gn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.cumulativeRewardRatio.push($.DecCoin.decode(Tn, Tn.uint32())) - break - case 2: - Sn.referenceCount = Tn.uint32() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - cumulativeRewardRatio: Array.isArray(yn?.cumulativeRewardRatio) - ? yn.cumulativeRewardRatio.map((Cn) => $.DecCoin.fromJSON(Cn)) - : [], - referenceCount: (0, en.isSet)(yn.referenceCount) ? Number(yn.referenceCount) : 0, - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.cumulativeRewardRatio - ? (Cn.cumulativeRewardRatio = yn.cumulativeRewardRatio.map((Tn) => - Tn ? $.DecCoin.toJSON(Tn) : void 0, - )) - : (Cn.cumulativeRewardRatio = []), - yn.referenceCount !== void 0 && (Cn.referenceCount = Math.round(yn.referenceCount)), - Cn - ) - }, - fromPartial(yn) { - const Cn = gn() - return ( - (Cn.cumulativeRewardRatio = - yn.cumulativeRewardRatio?.map((Tn) => $.DecCoin.fromPartial(Tn)) || []), - (Cn.referenceCount = yn.referenceCount ?? 0), - Cn - ) - }, - } - function In() { - return { rewards: [], period: en.Long.UZERO } - } - e.ValidatorCurrentRewards = { - encode(yn, Cn = nn.Writer.create()) { - for (const Tn of yn.rewards) $.DecCoin.encode(Tn, Cn.uint32(10).fork()).ldelim() - return yn.period.isZero() || Cn.uint32(16).uint64(yn.period), Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = In() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.rewards.push($.DecCoin.decode(Tn, Tn.uint32())) - break - case 2: - Sn.period = Tn.uint64() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - rewards: Array.isArray(yn?.rewards) ? yn.rewards.map((Cn) => $.DecCoin.fromJSON(Cn)) : [], - period: (0, en.isSet)(yn.period) ? en.Long.fromValue(yn.period) : en.Long.UZERO, - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.rewards - ? (Cn.rewards = yn.rewards.map((Tn) => (Tn ? $.DecCoin.toJSON(Tn) : void 0))) - : (Cn.rewards = []), - yn.period !== void 0 && (Cn.period = (yn.period || en.Long.UZERO).toString()), - Cn - ) - }, - fromPartial(yn) { - const Cn = In() - return ( - (Cn.rewards = yn.rewards?.map((Tn) => $.DecCoin.fromPartial(Tn)) || []), - (Cn.period = - yn.period !== void 0 && yn.period !== null - ? en.Long.fromValue(yn.period) - : en.Long.UZERO), - Cn - ) - }, - } - function Jn() { - return { commission: [] } - } - e.ValidatorAccumulatedCommission = { - encode(yn, Cn = nn.Writer.create()) { - for (const Tn of yn.commission) $.DecCoin.encode(Tn, Cn.uint32(10).fork()).ldelim() - return Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = Jn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.commission.push($.DecCoin.decode(Tn, Tn.uint32())) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - commission: Array.isArray(yn?.commission) - ? yn.commission.map((Cn) => $.DecCoin.fromJSON(Cn)) - : [], - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.commission - ? (Cn.commission = yn.commission.map((Tn) => (Tn ? $.DecCoin.toJSON(Tn) : void 0))) - : (Cn.commission = []), - Cn - ) - }, - fromPartial(yn) { - const Cn = Jn() - return (Cn.commission = yn.commission?.map((Tn) => $.DecCoin.fromPartial(Tn)) || []), Cn - }, - } - function qn() { - return { rewards: [] } - } - e.ValidatorOutstandingRewards = { - encode(yn, Cn = nn.Writer.create()) { - for (const Tn of yn.rewards) $.DecCoin.encode(Tn, Cn.uint32(10).fork()).ldelim() - return Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = qn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.rewards.push($.DecCoin.decode(Tn, Tn.uint32())) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - rewards: Array.isArray(yn?.rewards) ? yn.rewards.map((Cn) => $.DecCoin.fromJSON(Cn)) : [], - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.rewards - ? (Cn.rewards = yn.rewards.map((Tn) => (Tn ? $.DecCoin.toJSON(Tn) : void 0))) - : (Cn.rewards = []), - Cn - ) - }, - fromPartial(yn) { - const Cn = qn() - return (Cn.rewards = yn.rewards?.map((Tn) => $.DecCoin.fromPartial(Tn)) || []), Cn - }, - } - function Kn() { - return { validatorPeriod: en.Long.UZERO, fraction: '' } - } - e.ValidatorSlashEvent = { - encode(yn, Cn = nn.Writer.create()) { - return ( - yn.validatorPeriod.isZero() || Cn.uint32(8).uint64(yn.validatorPeriod), - yn.fraction !== '' && Cn.uint32(18).string(yn.fraction), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = Kn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.validatorPeriod = Tn.uint64() - break - case 2: - Sn.fraction = Tn.string() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - validatorPeriod: (0, en.isSet)(yn.validatorPeriod) - ? en.Long.fromValue(yn.validatorPeriod) - : en.Long.UZERO, - fraction: (0, en.isSet)(yn.fraction) ? String(yn.fraction) : '', - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.validatorPeriod !== void 0 && - (Cn.validatorPeriod = (yn.validatorPeriod || en.Long.UZERO).toString()), - yn.fraction !== void 0 && (Cn.fraction = yn.fraction), - Cn - ) - }, - fromPartial(yn) { - const Cn = Kn() - return ( - (Cn.validatorPeriod = - yn.validatorPeriod !== void 0 && yn.validatorPeriod !== null - ? en.Long.fromValue(yn.validatorPeriod) - : en.Long.UZERO), - (Cn.fraction = yn.fraction ?? ''), - Cn - ) - }, - } - function an() { - return { validatorSlashEvents: [] } - } - e.ValidatorSlashEvents = { - encode(yn, Cn = nn.Writer.create()) { - for (const Tn of yn.validatorSlashEvents) - e.ValidatorSlashEvent.encode(Tn, Cn.uint32(10).fork()).ldelim() - return Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = an() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.validatorSlashEvents.push(e.ValidatorSlashEvent.decode(Tn, Tn.uint32())) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - validatorSlashEvents: Array.isArray(yn?.validatorSlashEvents) - ? yn.validatorSlashEvents.map((Cn) => e.ValidatorSlashEvent.fromJSON(Cn)) - : [], - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.validatorSlashEvents - ? (Cn.validatorSlashEvents = yn.validatorSlashEvents.map((Tn) => - Tn ? e.ValidatorSlashEvent.toJSON(Tn) : void 0, - )) - : (Cn.validatorSlashEvents = []), - Cn - ) - }, - fromPartial(yn) { - const Cn = an() - return ( - (Cn.validatorSlashEvents = - yn.validatorSlashEvents?.map((Tn) => e.ValidatorSlashEvent.fromPartial(Tn)) || []), - Cn - ) - }, - } - function xn() { - return { communityPool: [] } - } - e.FeePool = { - encode(yn, Cn = nn.Writer.create()) { - for (const Tn of yn.communityPool) $.DecCoin.encode(Tn, Cn.uint32(10).fork()).ldelim() - return Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = xn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.communityPool.push($.DecCoin.decode(Tn, Tn.uint32())) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - communityPool: Array.isArray(yn?.communityPool) - ? yn.communityPool.map((Cn) => $.DecCoin.fromJSON(Cn)) - : [], - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.communityPool - ? (Cn.communityPool = yn.communityPool.map((Tn) => (Tn ? $.DecCoin.toJSON(Tn) : void 0))) - : (Cn.communityPool = []), - Cn - ) - }, - fromPartial(yn) { - const Cn = xn() - return (Cn.communityPool = yn.communityPool?.map((Tn) => $.DecCoin.fromPartial(Tn)) || []), Cn - }, - } - function mn() { - return { title: '', description: '', recipient: '', amount: [] } - } - e.CommunityPoolSpendProposal = { - encode(yn, Cn = nn.Writer.create()) { - yn.title !== '' && Cn.uint32(10).string(yn.title), - yn.description !== '' && Cn.uint32(18).string(yn.description), - yn.recipient !== '' && Cn.uint32(26).string(yn.recipient) - for (const Tn of yn.amount) $.Coin.encode(Tn, Cn.uint32(34).fork()).ldelim() - return Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = mn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.title = Tn.string() - break - case 2: - Sn.description = Tn.string() - break - case 3: - Sn.recipient = Tn.string() - break - case 4: - Sn.amount.push($.Coin.decode(Tn, Tn.uint32())) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - title: (0, en.isSet)(yn.title) ? String(yn.title) : '', - description: (0, en.isSet)(yn.description) ? String(yn.description) : '', - recipient: (0, en.isSet)(yn.recipient) ? String(yn.recipient) : '', - amount: Array.isArray(yn?.amount) ? yn.amount.map((Cn) => $.Coin.fromJSON(Cn)) : [], - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.title !== void 0 && (Cn.title = yn.title), - yn.description !== void 0 && (Cn.description = yn.description), - yn.recipient !== void 0 && (Cn.recipient = yn.recipient), - yn.amount - ? (Cn.amount = yn.amount.map((Tn) => (Tn ? $.Coin.toJSON(Tn) : void 0))) - : (Cn.amount = []), - Cn - ) - }, - fromPartial(yn) { - const Cn = mn() - return ( - (Cn.title = yn.title ?? ''), - (Cn.description = yn.description ?? ''), - (Cn.recipient = yn.recipient ?? ''), - (Cn.amount = yn.amount?.map((Tn) => $.Coin.fromPartial(Tn)) || []), - Cn - ) - }, - } - function Bn() { - return { previousPeriod: en.Long.UZERO, stake: '', height: en.Long.UZERO } - } - e.DelegatorStartingInfo = { - encode(yn, Cn = nn.Writer.create()) { - return ( - yn.previousPeriod.isZero() || Cn.uint32(8).uint64(yn.previousPeriod), - yn.stake !== '' && Cn.uint32(18).string(yn.stake), - yn.height.isZero() || Cn.uint32(24).uint64(yn.height), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = Bn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.previousPeriod = Tn.uint64() - break - case 2: - Sn.stake = Tn.string() - break - case 3: - Sn.height = Tn.uint64() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - previousPeriod: (0, en.isSet)(yn.previousPeriod) - ? en.Long.fromValue(yn.previousPeriod) - : en.Long.UZERO, - stake: (0, en.isSet)(yn.stake) ? String(yn.stake) : '', - height: (0, en.isSet)(yn.height) ? en.Long.fromValue(yn.height) : en.Long.UZERO, - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.previousPeriod !== void 0 && - (Cn.previousPeriod = (yn.previousPeriod || en.Long.UZERO).toString()), - yn.stake !== void 0 && (Cn.stake = yn.stake), - yn.height !== void 0 && (Cn.height = (yn.height || en.Long.UZERO).toString()), - Cn - ) - }, - fromPartial(yn) { - const Cn = Bn() - return ( - (Cn.previousPeriod = - yn.previousPeriod !== void 0 && yn.previousPeriod !== null - ? en.Long.fromValue(yn.previousPeriod) - : en.Long.UZERO), - (Cn.stake = yn.stake ?? ''), - (Cn.height = - yn.height !== void 0 && yn.height !== null - ? en.Long.fromValue(yn.height) - : en.Long.UZERO), - Cn - ) - }, - } - function kn() { - return { validatorAddress: '', reward: [] } - } - e.DelegationDelegatorReward = { - encode(yn, Cn = nn.Writer.create()) { - yn.validatorAddress !== '' && Cn.uint32(10).string(yn.validatorAddress) - for (const Tn of yn.reward) $.DecCoin.encode(Tn, Cn.uint32(18).fork()).ldelim() - return Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = kn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.validatorAddress = Tn.string() - break - case 2: - Sn.reward.push($.DecCoin.decode(Tn, Tn.uint32())) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - validatorAddress: (0, en.isSet)(yn.validatorAddress) ? String(yn.validatorAddress) : '', - reward: Array.isArray(yn?.reward) ? yn.reward.map((Cn) => $.DecCoin.fromJSON(Cn)) : [], - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.validatorAddress !== void 0 && (Cn.validatorAddress = yn.validatorAddress), - yn.reward - ? (Cn.reward = yn.reward.map((Tn) => (Tn ? $.DecCoin.toJSON(Tn) : void 0))) - : (Cn.reward = []), - Cn - ) - }, - fromPartial(yn) { - const Cn = kn() - return ( - (Cn.validatorAddress = yn.validatorAddress ?? ''), - (Cn.reward = yn.reward?.map((Tn) => $.DecCoin.fromPartial(Tn)) || []), - Cn - ) - }, - } - function ln() { - return { title: '', description: '', recipient: '', amount: '', deposit: '' } - } - e.CommunityPoolSpendProposalWithDeposit = { - encode(yn, Cn = nn.Writer.create()) { - return ( - yn.title !== '' && Cn.uint32(10).string(yn.title), - yn.description !== '' && Cn.uint32(18).string(yn.description), - yn.recipient !== '' && Cn.uint32(26).string(yn.recipient), - yn.amount !== '' && Cn.uint32(34).string(yn.amount), - yn.deposit !== '' && Cn.uint32(42).string(yn.deposit), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = ln() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.title = Tn.string() - break - case 2: - Sn.description = Tn.string() - break - case 3: - Sn.recipient = Tn.string() - break - case 4: - Sn.amount = Tn.string() - break - case 5: - Sn.deposit = Tn.string() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - title: (0, en.isSet)(yn.title) ? String(yn.title) : '', - description: (0, en.isSet)(yn.description) ? String(yn.description) : '', - recipient: (0, en.isSet)(yn.recipient) ? String(yn.recipient) : '', - amount: (0, en.isSet)(yn.amount) ? String(yn.amount) : '', - deposit: (0, en.isSet)(yn.deposit) ? String(yn.deposit) : '', - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.title !== void 0 && (Cn.title = yn.title), - yn.description !== void 0 && (Cn.description = yn.description), - yn.recipient !== void 0 && (Cn.recipient = yn.recipient), - yn.amount !== void 0 && (Cn.amount = yn.amount), - yn.deposit !== void 0 && (Cn.deposit = yn.deposit), - Cn - ) - }, - fromPartial(yn) { - const Cn = ln() - return ( - (Cn.title = yn.title ?? ''), - (Cn.description = yn.description ?? ''), - (Cn.recipient = yn.recipient ?? ''), - (Cn.amount = yn.amount ?? ''), - (Cn.deposit = yn.deposit ?? ''), - Cn - ) - }, - } -})(distribution) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Tn, Gn, Sn, Zn) { - Zn === void 0 && (Zn = Sn) - var tn = Object.getOwnPropertyDescriptor(Gn, Sn) - ;(!tn || ('get' in tn ? !Gn.__esModule : tn.writable || tn.configurable)) && - (tn = { - enumerable: !0, - get: function () { - return Gn[Sn] - }, - }), - Object.defineProperty(Tn, Zn, tn) - } - : function (Tn, Gn, Sn, Zn) { - Zn === void 0 && (Zn = Sn), (Tn[Zn] = Gn[Sn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Tn, Gn) { - Object.defineProperty(Tn, 'default', { enumerable: !0, value: Gn }) - } - : function (Tn, Gn) { - Tn.default = Gn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Tn) { - if (Tn && Tn.__esModule) return Tn - var Gn = {} - if (Tn != null) - for (var Sn in Tn) - Sn !== 'default' && Object.prototype.hasOwnProperty.call(Tn, Sn) && o(Gn, Tn, Sn) - return _(Gn, Tn), Gn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgCommunityPoolSpendResponse = - e.MsgCommunityPoolSpend = - e.MsgUpdateParamsResponse = - e.MsgUpdateParams = - e.MsgFundCommunityPoolResponse = - e.MsgFundCommunityPool = - e.MsgWithdrawValidatorCommissionResponse = - e.MsgWithdrawValidatorCommission = - e.MsgWithdrawDelegatorRewardResponse = - e.MsgWithdrawDelegatorReward = - e.MsgSetWithdrawAddressResponse = - e.MsgSetWithdrawAddress = - e.protobufPackage = - void 0) - const $ = coin$1, - en = distribution, - nn = b(minimalExports), - sn = helpers - e.protobufPackage = 'cosmos.distribution.v1beta1' - function gn() { - return { delegatorAddress: '', withdrawAddress: '' } - } - e.MsgSetWithdrawAddress = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.delegatorAddress !== '' && Gn.uint32(10).string(Tn.delegatorAddress), - Tn.withdrawAddress !== '' && Gn.uint32(18).string(Tn.withdrawAddress), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = gn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.delegatorAddress = Sn.string() - break - case 2: - tn.withdrawAddress = Sn.string() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - delegatorAddress: (0, sn.isSet)(Tn.delegatorAddress) ? String(Tn.delegatorAddress) : '', - withdrawAddress: (0, sn.isSet)(Tn.withdrawAddress) ? String(Tn.withdrawAddress) : '', - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.delegatorAddress !== void 0 && (Gn.delegatorAddress = Tn.delegatorAddress), - Tn.withdrawAddress !== void 0 && (Gn.withdrawAddress = Tn.withdrawAddress), - Gn - ) - }, - fromPartial(Tn) { - const Gn = gn() - return ( - (Gn.delegatorAddress = Tn.delegatorAddress ?? ''), - (Gn.withdrawAddress = Tn.withdrawAddress ?? ''), - Gn - ) - }, - } - function In() { - return {} - } - e.MsgSetWithdrawAddressResponse = { - encode(Tn, Gn = nn.Writer.create()) { - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = In() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return {} - }, - toJSON(Tn) { - return {} - }, - fromPartial(Tn) { - return In() - }, - } - function Jn() { - return { delegatorAddress: '', validatorAddress: '' } - } - e.MsgWithdrawDelegatorReward = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.delegatorAddress !== '' && Gn.uint32(10).string(Tn.delegatorAddress), - Tn.validatorAddress !== '' && Gn.uint32(18).string(Tn.validatorAddress), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = Jn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.delegatorAddress = Sn.string() - break - case 2: - tn.validatorAddress = Sn.string() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - delegatorAddress: (0, sn.isSet)(Tn.delegatorAddress) ? String(Tn.delegatorAddress) : '', - validatorAddress: (0, sn.isSet)(Tn.validatorAddress) ? String(Tn.validatorAddress) : '', - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.delegatorAddress !== void 0 && (Gn.delegatorAddress = Tn.delegatorAddress), - Tn.validatorAddress !== void 0 && (Gn.validatorAddress = Tn.validatorAddress), - Gn - ) - }, - fromPartial(Tn) { - const Gn = Jn() - return ( - (Gn.delegatorAddress = Tn.delegatorAddress ?? ''), - (Gn.validatorAddress = Tn.validatorAddress ?? ''), - Gn - ) - }, - } - function qn() { - return { amount: [] } - } - e.MsgWithdrawDelegatorRewardResponse = { - encode(Tn, Gn = nn.Writer.create()) { - for (const Sn of Tn.amount) $.Coin.encode(Sn, Gn.uint32(10).fork()).ldelim() - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = qn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.amount.push($.Coin.decode(Sn, Sn.uint32())) - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { amount: Array.isArray(Tn?.amount) ? Tn.amount.map((Gn) => $.Coin.fromJSON(Gn)) : [] } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.amount - ? (Gn.amount = Tn.amount.map((Sn) => (Sn ? $.Coin.toJSON(Sn) : void 0))) - : (Gn.amount = []), - Gn - ) - }, - fromPartial(Tn) { - const Gn = qn() - return (Gn.amount = Tn.amount?.map((Sn) => $.Coin.fromPartial(Sn)) || []), Gn - }, - } - function Kn() { - return { validatorAddress: '' } - } - e.MsgWithdrawValidatorCommission = { - encode(Tn, Gn = nn.Writer.create()) { - return Tn.validatorAddress !== '' && Gn.uint32(10).string(Tn.validatorAddress), Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = Kn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.validatorAddress = Sn.string() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - validatorAddress: (0, sn.isSet)(Tn.validatorAddress) ? String(Tn.validatorAddress) : '', - } - }, - toJSON(Tn) { - const Gn = {} - return Tn.validatorAddress !== void 0 && (Gn.validatorAddress = Tn.validatorAddress), Gn - }, - fromPartial(Tn) { - const Gn = Kn() - return (Gn.validatorAddress = Tn.validatorAddress ?? ''), Gn - }, - } - function an() { - return { amount: [] } - } - e.MsgWithdrawValidatorCommissionResponse = { - encode(Tn, Gn = nn.Writer.create()) { - for (const Sn of Tn.amount) $.Coin.encode(Sn, Gn.uint32(10).fork()).ldelim() - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = an() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.amount.push($.Coin.decode(Sn, Sn.uint32())) - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { amount: Array.isArray(Tn?.amount) ? Tn.amount.map((Gn) => $.Coin.fromJSON(Gn)) : [] } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.amount - ? (Gn.amount = Tn.amount.map((Sn) => (Sn ? $.Coin.toJSON(Sn) : void 0))) - : (Gn.amount = []), - Gn - ) - }, - fromPartial(Tn) { - const Gn = an() - return (Gn.amount = Tn.amount?.map((Sn) => $.Coin.fromPartial(Sn)) || []), Gn - }, - } - function xn() { - return { amount: [], depositor: '' } - } - e.MsgFundCommunityPool = { - encode(Tn, Gn = nn.Writer.create()) { - for (const Sn of Tn.amount) $.Coin.encode(Sn, Gn.uint32(10).fork()).ldelim() - return Tn.depositor !== '' && Gn.uint32(18).string(Tn.depositor), Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = xn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.amount.push($.Coin.decode(Sn, Sn.uint32())) - break - case 2: - tn.depositor = Sn.string() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - amount: Array.isArray(Tn?.amount) ? Tn.amount.map((Gn) => $.Coin.fromJSON(Gn)) : [], - depositor: (0, sn.isSet)(Tn.depositor) ? String(Tn.depositor) : '', - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.amount - ? (Gn.amount = Tn.amount.map((Sn) => (Sn ? $.Coin.toJSON(Sn) : void 0))) - : (Gn.amount = []), - Tn.depositor !== void 0 && (Gn.depositor = Tn.depositor), - Gn - ) - }, - fromPartial(Tn) { - const Gn = xn() - return ( - (Gn.amount = Tn.amount?.map((Sn) => $.Coin.fromPartial(Sn)) || []), - (Gn.depositor = Tn.depositor ?? ''), - Gn - ) - }, - } - function mn() { - return {} - } - e.MsgFundCommunityPoolResponse = { - encode(Tn, Gn = nn.Writer.create()) { - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = mn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return {} - }, - toJSON(Tn) { - return {} - }, - fromPartial(Tn) { - return mn() - }, - } - function Bn() { - return { authority: '', params: void 0 } - } - e.MsgUpdateParams = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.authority !== '' && Gn.uint32(10).string(Tn.authority), - Tn.params !== void 0 && en.Params.encode(Tn.params, Gn.uint32(18).fork()).ldelim(), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = Bn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.authority = Sn.string() - break - case 2: - tn.params = en.Params.decode(Sn, Sn.uint32()) - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - authority: (0, sn.isSet)(Tn.authority) ? String(Tn.authority) : '', - params: (0, sn.isSet)(Tn.params) ? en.Params.fromJSON(Tn.params) : void 0, - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.authority !== void 0 && (Gn.authority = Tn.authority), - Tn.params !== void 0 && (Gn.params = Tn.params ? en.Params.toJSON(Tn.params) : void 0), - Gn - ) - }, - fromPartial(Tn) { - const Gn = Bn() - return ( - (Gn.authority = Tn.authority ?? ''), - (Gn.params = - Tn.params !== void 0 && Tn.params !== null ? en.Params.fromPartial(Tn.params) : void 0), - Gn - ) - }, - } - function kn() { - return {} - } - e.MsgUpdateParamsResponse = { - encode(Tn, Gn = nn.Writer.create()) { - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = kn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return {} - }, - toJSON(Tn) { - return {} - }, - fromPartial(Tn) { - return kn() - }, - } - function ln() { - return { authority: '', recipient: '', amount: [] } - } - e.MsgCommunityPoolSpend = { - encode(Tn, Gn = nn.Writer.create()) { - Tn.authority !== '' && Gn.uint32(10).string(Tn.authority), - Tn.recipient !== '' && Gn.uint32(18).string(Tn.recipient) - for (const Sn of Tn.amount) $.Coin.encode(Sn, Gn.uint32(26).fork()).ldelim() - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = ln() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.authority = Sn.string() - break - case 2: - tn.recipient = Sn.string() - break - case 3: - tn.amount.push($.Coin.decode(Sn, Sn.uint32())) - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - authority: (0, sn.isSet)(Tn.authority) ? String(Tn.authority) : '', - recipient: (0, sn.isSet)(Tn.recipient) ? String(Tn.recipient) : '', - amount: Array.isArray(Tn?.amount) ? Tn.amount.map((Gn) => $.Coin.fromJSON(Gn)) : [], - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.authority !== void 0 && (Gn.authority = Tn.authority), - Tn.recipient !== void 0 && (Gn.recipient = Tn.recipient), - Tn.amount - ? (Gn.amount = Tn.amount.map((Sn) => (Sn ? $.Coin.toJSON(Sn) : void 0))) - : (Gn.amount = []), - Gn - ) - }, - fromPartial(Tn) { - const Gn = ln() - return ( - (Gn.authority = Tn.authority ?? ''), - (Gn.recipient = Tn.recipient ?? ''), - (Gn.amount = Tn.amount?.map((Sn) => $.Coin.fromPartial(Sn)) || []), - Gn - ) - }, - } - function yn() { - return {} - } - e.MsgCommunityPoolSpendResponse = { - encode(Tn, Gn = nn.Writer.create()) { - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = yn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return {} - }, - toJSON(Tn) { - return {} - }, - fromPartial(Tn) { - return yn() - }, - } - class Cn { - constructor(Gn) { - ;(this.rpc = Gn), - (this.SetWithdrawAddress = this.SetWithdrawAddress.bind(this)), - (this.WithdrawDelegatorReward = this.WithdrawDelegatorReward.bind(this)), - (this.WithdrawValidatorCommission = this.WithdrawValidatorCommission.bind(this)), - (this.FundCommunityPool = this.FundCommunityPool.bind(this)), - (this.UpdateParams = this.UpdateParams.bind(this)), - (this.CommunityPoolSpend = this.CommunityPoolSpend.bind(this)) - } - SetWithdrawAddress(Gn) { - const Sn = e.MsgSetWithdrawAddress.encode(Gn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Msg', 'SetWithdrawAddress', Sn) - .then((tn) => e.MsgSetWithdrawAddressResponse.decode(new nn.Reader(tn))) - } - WithdrawDelegatorReward(Gn) { - const Sn = e.MsgWithdrawDelegatorReward.encode(Gn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Msg', 'WithdrawDelegatorReward', Sn) - .then((tn) => e.MsgWithdrawDelegatorRewardResponse.decode(new nn.Reader(tn))) - } - WithdrawValidatorCommission(Gn) { - const Sn = e.MsgWithdrawValidatorCommission.encode(Gn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Msg', 'WithdrawValidatorCommission', Sn) - .then((tn) => e.MsgWithdrawValidatorCommissionResponse.decode(new nn.Reader(tn))) - } - FundCommunityPool(Gn) { - const Sn = e.MsgFundCommunityPool.encode(Gn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Msg', 'FundCommunityPool', Sn) - .then((tn) => e.MsgFundCommunityPoolResponse.decode(new nn.Reader(tn))) - } - UpdateParams(Gn) { - const Sn = e.MsgUpdateParams.encode(Gn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Msg', 'UpdateParams', Sn) - .then((tn) => e.MsgUpdateParamsResponse.decode(new nn.Reader(tn))) - } - CommunityPoolSpend(Gn) { - const Sn = e.MsgCommunityPoolSpend.encode(Gn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Msg', 'CommunityPoolSpend', Sn) - .then((tn) => e.MsgCommunityPoolSpendResponse.decode(new nn.Reader(tn))) - } - } - e.MsgClientImpl = Cn -})(tx$b) -Object.defineProperty(messages$7, '__esModule', { value: !0 }) -messages$7.isMsgWithdrawDelegatorRewardEncodeObject = messages$7.distributionTypes = void 0 -const tx_1$a = tx$b -messages$7.distributionTypes = [ - ['/cosmos.distribution.v1beta1.MsgFundCommunityPool', tx_1$a.MsgFundCommunityPool], - ['/cosmos.distribution.v1beta1.MsgSetWithdrawAddress', tx_1$a.MsgSetWithdrawAddress], - ['/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward', tx_1$a.MsgWithdrawDelegatorReward], - [ - '/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission', - tx_1$a.MsgWithdrawValidatorCommission, - ], -] -function isMsgWithdrawDelegatorRewardEncodeObject(e) { - return e.typeUrl === '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward' -} -messages$7.isMsgWithdrawDelegatorRewardEncodeObject = isMsgWithdrawDelegatorRewardEncodeObject -var queries$8 = {}, - query$a = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (dn, Nn, fn, _n) { - _n === void 0 && (_n = fn) - var Ln = Object.getOwnPropertyDescriptor(Nn, fn) - ;(!Ln || ('get' in Ln ? !Nn.__esModule : Ln.writable || Ln.configurable)) && - (Ln = { - enumerable: !0, - get: function () { - return Nn[fn] - }, - }), - Object.defineProperty(dn, _n, Ln) - } - : function (dn, Nn, fn, _n) { - _n === void 0 && (_n = fn), (dn[_n] = Nn[fn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (dn, Nn) { - Object.defineProperty(dn, 'default', { enumerable: !0, value: Nn }) - } - : function (dn, Nn) { - dn.default = Nn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (dn) { - if (dn && dn.__esModule) return dn - var Nn = {} - if (dn != null) - for (var fn in dn) - fn !== 'default' && Object.prototype.hasOwnProperty.call(dn, fn) && o(Nn, dn, fn) - return _(Nn, dn), Nn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryCommunityPoolResponse = - e.QueryCommunityPoolRequest = - e.QueryDelegatorWithdrawAddressResponse = - e.QueryDelegatorWithdrawAddressRequest = - e.QueryDelegatorValidatorsResponse = - e.QueryDelegatorValidatorsRequest = - e.QueryDelegationTotalRewardsResponse = - e.QueryDelegationTotalRewardsRequest = - e.QueryDelegationRewardsResponse = - e.QueryDelegationRewardsRequest = - e.QueryValidatorSlashesResponse = - e.QueryValidatorSlashesRequest = - e.QueryValidatorCommissionResponse = - e.QueryValidatorCommissionRequest = - e.QueryValidatorOutstandingRewardsResponse = - e.QueryValidatorOutstandingRewardsRequest = - e.QueryValidatorDistributionInfoResponse = - e.QueryValidatorDistributionInfoRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = distribution, - nn = coin$1, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'cosmos.distribution.v1beta1' - function In() { - return {} - } - e.QueryParamsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = In() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return {} - }, - toJSON(dn) { - return {} - }, - fromPartial(dn) { - return In() - }, - } - function Jn() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.params !== void 0 && en.Params.encode(dn.params, Nn.uint32(10).fork()).ldelim(), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Jn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.params = en.Params.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { params: (0, sn.isSet)(dn.params) ? en.Params.fromJSON(dn.params) : void 0 } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.params !== void 0 && (Nn.params = dn.params ? en.Params.toJSON(dn.params) : void 0), Nn - ) - }, - fromPartial(dn) { - const Nn = Jn() - return ( - (Nn.params = - dn.params !== void 0 && dn.params !== null ? en.Params.fromPartial(dn.params) : void 0), - Nn - ) - }, - } - function qn() { - return { validatorAddress: '' } - } - e.QueryValidatorDistributionInfoRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.validatorAddress !== '' && Nn.uint32(10).string(dn.validatorAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = qn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.validatorAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - validatorAddress: (0, sn.isSet)(dn.validatorAddress) ? String(dn.validatorAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return dn.validatorAddress !== void 0 && (Nn.validatorAddress = dn.validatorAddress), Nn - }, - fromPartial(dn) { - const Nn = qn() - return (Nn.validatorAddress = dn.validatorAddress ?? ''), Nn - }, - } - function Kn() { - return { operatorAddress: '', selfBondRewards: [], commission: [] } - } - e.QueryValidatorDistributionInfoResponse = { - encode(dn, Nn = gn.Writer.create()) { - dn.operatorAddress !== '' && Nn.uint32(10).string(dn.operatorAddress) - for (const fn of dn.selfBondRewards) nn.DecCoin.encode(fn, Nn.uint32(18).fork()).ldelim() - for (const fn of dn.commission) nn.DecCoin.encode(fn, Nn.uint32(26).fork()).ldelim() - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Kn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.operatorAddress = fn.string() - break - case 2: - Ln.selfBondRewards.push(nn.DecCoin.decode(fn, fn.uint32())) - break - case 3: - Ln.commission.push(nn.DecCoin.decode(fn, fn.uint32())) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - operatorAddress: (0, sn.isSet)(dn.operatorAddress) ? String(dn.operatorAddress) : '', - selfBondRewards: Array.isArray(dn?.selfBondRewards) - ? dn.selfBondRewards.map((Nn) => nn.DecCoin.fromJSON(Nn)) - : [], - commission: Array.isArray(dn?.commission) - ? dn.commission.map((Nn) => nn.DecCoin.fromJSON(Nn)) - : [], - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.operatorAddress !== void 0 && (Nn.operatorAddress = dn.operatorAddress), - dn.selfBondRewards - ? (Nn.selfBondRewards = dn.selfBondRewards.map((fn) => - fn ? nn.DecCoin.toJSON(fn) : void 0, - )) - : (Nn.selfBondRewards = []), - dn.commission - ? (Nn.commission = dn.commission.map((fn) => (fn ? nn.DecCoin.toJSON(fn) : void 0))) - : (Nn.commission = []), - Nn - ) - }, - fromPartial(dn) { - const Nn = Kn() - return ( - (Nn.operatorAddress = dn.operatorAddress ?? ''), - (Nn.selfBondRewards = dn.selfBondRewards?.map((fn) => nn.DecCoin.fromPartial(fn)) || []), - (Nn.commission = dn.commission?.map((fn) => nn.DecCoin.fromPartial(fn)) || []), - Nn - ) - }, - } - function an() { - return { validatorAddress: '' } - } - e.QueryValidatorOutstandingRewardsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.validatorAddress !== '' && Nn.uint32(10).string(dn.validatorAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = an() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.validatorAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - validatorAddress: (0, sn.isSet)(dn.validatorAddress) ? String(dn.validatorAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return dn.validatorAddress !== void 0 && (Nn.validatorAddress = dn.validatorAddress), Nn - }, - fromPartial(dn) { - const Nn = an() - return (Nn.validatorAddress = dn.validatorAddress ?? ''), Nn - }, - } - function xn() { - return { rewards: void 0 } - } - e.QueryValidatorOutstandingRewardsResponse = { - encode(dn, Nn = gn.Writer.create()) { - return ( - dn.rewards !== void 0 && - en.ValidatorOutstandingRewards.encode(dn.rewards, Nn.uint32(10).fork()).ldelim(), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = xn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.rewards = en.ValidatorOutstandingRewards.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - rewards: (0, sn.isSet)(dn.rewards) - ? en.ValidatorOutstandingRewards.fromJSON(dn.rewards) - : void 0, - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.rewards !== void 0 && - (Nn.rewards = dn.rewards ? en.ValidatorOutstandingRewards.toJSON(dn.rewards) : void 0), - Nn - ) - }, - fromPartial(dn) { - const Nn = xn() - return ( - (Nn.rewards = - dn.rewards !== void 0 && dn.rewards !== null - ? en.ValidatorOutstandingRewards.fromPartial(dn.rewards) - : void 0), - Nn - ) - }, - } - function mn() { - return { validatorAddress: '' } - } - e.QueryValidatorCommissionRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.validatorAddress !== '' && Nn.uint32(10).string(dn.validatorAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = mn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.validatorAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - validatorAddress: (0, sn.isSet)(dn.validatorAddress) ? String(dn.validatorAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return dn.validatorAddress !== void 0 && (Nn.validatorAddress = dn.validatorAddress), Nn - }, - fromPartial(dn) { - const Nn = mn() - return (Nn.validatorAddress = dn.validatorAddress ?? ''), Nn - }, - } - function Bn() { - return { commission: void 0 } - } - e.QueryValidatorCommissionResponse = { - encode(dn, Nn = gn.Writer.create()) { - return ( - dn.commission !== void 0 && - en.ValidatorAccumulatedCommission.encode(dn.commission, Nn.uint32(10).fork()).ldelim(), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Bn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.commission = en.ValidatorAccumulatedCommission.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - commission: (0, sn.isSet)(dn.commission) - ? en.ValidatorAccumulatedCommission.fromJSON(dn.commission) - : void 0, - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.commission !== void 0 && - (Nn.commission = dn.commission - ? en.ValidatorAccumulatedCommission.toJSON(dn.commission) - : void 0), - Nn - ) - }, - fromPartial(dn) { - const Nn = Bn() - return ( - (Nn.commission = - dn.commission !== void 0 && dn.commission !== null - ? en.ValidatorAccumulatedCommission.fromPartial(dn.commission) - : void 0), - Nn - ) - }, - } - function kn() { - return { - validatorAddress: '', - startingHeight: sn.Long.UZERO, - endingHeight: sn.Long.UZERO, - pagination: void 0, - } - } - e.QueryValidatorSlashesRequest = { - encode(dn, Nn = gn.Writer.create()) { - return ( - dn.validatorAddress !== '' && Nn.uint32(10).string(dn.validatorAddress), - dn.startingHeight.isZero() || Nn.uint32(16).uint64(dn.startingHeight), - dn.endingHeight.isZero() || Nn.uint32(24).uint64(dn.endingHeight), - dn.pagination !== void 0 && - $.PageRequest.encode(dn.pagination, Nn.uint32(34).fork()).ldelim(), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = kn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.validatorAddress = fn.string() - break - case 2: - Ln.startingHeight = fn.uint64() - break - case 3: - Ln.endingHeight = fn.uint64() - break - case 4: - Ln.pagination = $.PageRequest.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - validatorAddress: (0, sn.isSet)(dn.validatorAddress) ? String(dn.validatorAddress) : '', - startingHeight: (0, sn.isSet)(dn.startingHeight) - ? sn.Long.fromValue(dn.startingHeight) - : sn.Long.UZERO, - endingHeight: (0, sn.isSet)(dn.endingHeight) - ? sn.Long.fromValue(dn.endingHeight) - : sn.Long.UZERO, - pagination: (0, sn.isSet)(dn.pagination) ? $.PageRequest.fromJSON(dn.pagination) : void 0, - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.validatorAddress !== void 0 && (Nn.validatorAddress = dn.validatorAddress), - dn.startingHeight !== void 0 && - (Nn.startingHeight = (dn.startingHeight || sn.Long.UZERO).toString()), - dn.endingHeight !== void 0 && - (Nn.endingHeight = (dn.endingHeight || sn.Long.UZERO).toString()), - dn.pagination !== void 0 && - (Nn.pagination = dn.pagination ? $.PageRequest.toJSON(dn.pagination) : void 0), - Nn - ) - }, - fromPartial(dn) { - const Nn = kn() - return ( - (Nn.validatorAddress = dn.validatorAddress ?? ''), - (Nn.startingHeight = - dn.startingHeight !== void 0 && dn.startingHeight !== null - ? sn.Long.fromValue(dn.startingHeight) - : sn.Long.UZERO), - (Nn.endingHeight = - dn.endingHeight !== void 0 && dn.endingHeight !== null - ? sn.Long.fromValue(dn.endingHeight) - : sn.Long.UZERO), - (Nn.pagination = - dn.pagination !== void 0 && dn.pagination !== null - ? $.PageRequest.fromPartial(dn.pagination) - : void 0), - Nn - ) - }, - } - function ln() { - return { slashes: [], pagination: void 0 } - } - e.QueryValidatorSlashesResponse = { - encode(dn, Nn = gn.Writer.create()) { - for (const fn of dn.slashes) en.ValidatorSlashEvent.encode(fn, Nn.uint32(10).fork()).ldelim() - return ( - dn.pagination !== void 0 && - $.PageResponse.encode(dn.pagination, Nn.uint32(18).fork()).ldelim(), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = ln() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.slashes.push(en.ValidatorSlashEvent.decode(fn, fn.uint32())) - break - case 2: - Ln.pagination = $.PageResponse.decode(fn, fn.uint32()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - slashes: Array.isArray(dn?.slashes) - ? dn.slashes.map((Nn) => en.ValidatorSlashEvent.fromJSON(Nn)) - : [], - pagination: (0, sn.isSet)(dn.pagination) ? $.PageResponse.fromJSON(dn.pagination) : void 0, - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.slashes - ? (Nn.slashes = dn.slashes.map((fn) => (fn ? en.ValidatorSlashEvent.toJSON(fn) : void 0))) - : (Nn.slashes = []), - dn.pagination !== void 0 && - (Nn.pagination = dn.pagination ? $.PageResponse.toJSON(dn.pagination) : void 0), - Nn - ) - }, - fromPartial(dn) { - const Nn = ln() - return ( - (Nn.slashes = dn.slashes?.map((fn) => en.ValidatorSlashEvent.fromPartial(fn)) || []), - (Nn.pagination = - dn.pagination !== void 0 && dn.pagination !== null - ? $.PageResponse.fromPartial(dn.pagination) - : void 0), - Nn - ) - }, - } - function yn() { - return { delegatorAddress: '', validatorAddress: '' } - } - e.QueryDelegationRewardsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return ( - dn.delegatorAddress !== '' && Nn.uint32(10).string(dn.delegatorAddress), - dn.validatorAddress !== '' && Nn.uint32(18).string(dn.validatorAddress), - Nn - ) - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = yn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.delegatorAddress = fn.string() - break - case 2: - Ln.validatorAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - delegatorAddress: (0, sn.isSet)(dn.delegatorAddress) ? String(dn.delegatorAddress) : '', - validatorAddress: (0, sn.isSet)(dn.validatorAddress) ? String(dn.validatorAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.delegatorAddress !== void 0 && (Nn.delegatorAddress = dn.delegatorAddress), - dn.validatorAddress !== void 0 && (Nn.validatorAddress = dn.validatorAddress), - Nn - ) - }, - fromPartial(dn) { - const Nn = yn() - return ( - (Nn.delegatorAddress = dn.delegatorAddress ?? ''), - (Nn.validatorAddress = dn.validatorAddress ?? ''), - Nn - ) - }, - } - function Cn() { - return { rewards: [] } - } - e.QueryDelegationRewardsResponse = { - encode(dn, Nn = gn.Writer.create()) { - for (const fn of dn.rewards) nn.DecCoin.encode(fn, Nn.uint32(10).fork()).ldelim() - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Cn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.rewards.push(nn.DecCoin.decode(fn, fn.uint32())) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - rewards: Array.isArray(dn?.rewards) ? dn.rewards.map((Nn) => nn.DecCoin.fromJSON(Nn)) : [], - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.rewards - ? (Nn.rewards = dn.rewards.map((fn) => (fn ? nn.DecCoin.toJSON(fn) : void 0))) - : (Nn.rewards = []), - Nn - ) - }, - fromPartial(dn) { - const Nn = Cn() - return (Nn.rewards = dn.rewards?.map((fn) => nn.DecCoin.fromPartial(fn)) || []), Nn - }, - } - function Tn() { - return { delegatorAddress: '' } - } - e.QueryDelegationTotalRewardsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.delegatorAddress !== '' && Nn.uint32(10).string(dn.delegatorAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Tn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.delegatorAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - delegatorAddress: (0, sn.isSet)(dn.delegatorAddress) ? String(dn.delegatorAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return dn.delegatorAddress !== void 0 && (Nn.delegatorAddress = dn.delegatorAddress), Nn - }, - fromPartial(dn) { - const Nn = Tn() - return (Nn.delegatorAddress = dn.delegatorAddress ?? ''), Nn - }, - } - function Gn() { - return { rewards: [], total: [] } - } - e.QueryDelegationTotalRewardsResponse = { - encode(dn, Nn = gn.Writer.create()) { - for (const fn of dn.rewards) - en.DelegationDelegatorReward.encode(fn, Nn.uint32(10).fork()).ldelim() - for (const fn of dn.total) nn.DecCoin.encode(fn, Nn.uint32(18).fork()).ldelim() - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Gn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.rewards.push(en.DelegationDelegatorReward.decode(fn, fn.uint32())) - break - case 2: - Ln.total.push(nn.DecCoin.decode(fn, fn.uint32())) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - rewards: Array.isArray(dn?.rewards) - ? dn.rewards.map((Nn) => en.DelegationDelegatorReward.fromJSON(Nn)) - : [], - total: Array.isArray(dn?.total) ? dn.total.map((Nn) => nn.DecCoin.fromJSON(Nn)) : [], - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.rewards - ? (Nn.rewards = dn.rewards.map((fn) => - fn ? en.DelegationDelegatorReward.toJSON(fn) : void 0, - )) - : (Nn.rewards = []), - dn.total - ? (Nn.total = dn.total.map((fn) => (fn ? nn.DecCoin.toJSON(fn) : void 0))) - : (Nn.total = []), - Nn - ) - }, - fromPartial(dn) { - const Nn = Gn() - return ( - (Nn.rewards = dn.rewards?.map((fn) => en.DelegationDelegatorReward.fromPartial(fn)) || []), - (Nn.total = dn.total?.map((fn) => nn.DecCoin.fromPartial(fn)) || []), - Nn - ) - }, - } - function Sn() { - return { delegatorAddress: '' } - } - e.QueryDelegatorValidatorsRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.delegatorAddress !== '' && Nn.uint32(10).string(dn.delegatorAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Sn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.delegatorAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - delegatorAddress: (0, sn.isSet)(dn.delegatorAddress) ? String(dn.delegatorAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return dn.delegatorAddress !== void 0 && (Nn.delegatorAddress = dn.delegatorAddress), Nn - }, - fromPartial(dn) { - const Nn = Sn() - return (Nn.delegatorAddress = dn.delegatorAddress ?? ''), Nn - }, - } - function Zn() { - return { validators: [] } - } - e.QueryDelegatorValidatorsResponse = { - encode(dn, Nn = gn.Writer.create()) { - for (const fn of dn.validators) Nn.uint32(10).string(fn) - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Zn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.validators.push(fn.string()) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - validators: Array.isArray(dn?.validators) ? dn.validators.map((Nn) => String(Nn)) : [], - } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.validators ? (Nn.validators = dn.validators.map((fn) => fn)) : (Nn.validators = []), Nn - ) - }, - fromPartial(dn) { - const Nn = Zn() - return (Nn.validators = dn.validators?.map((fn) => fn) || []), Nn - }, - } - function tn() { - return { delegatorAddress: '' } - } - e.QueryDelegatorWithdrawAddressRequest = { - encode(dn, Nn = gn.Writer.create()) { - return dn.delegatorAddress !== '' && Nn.uint32(10).string(dn.delegatorAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = tn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.delegatorAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - delegatorAddress: (0, sn.isSet)(dn.delegatorAddress) ? String(dn.delegatorAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return dn.delegatorAddress !== void 0 && (Nn.delegatorAddress = dn.delegatorAddress), Nn - }, - fromPartial(dn) { - const Nn = tn() - return (Nn.delegatorAddress = dn.delegatorAddress ?? ''), Nn - }, - } - function En() { - return { withdrawAddress: '' } - } - e.QueryDelegatorWithdrawAddressResponse = { - encode(dn, Nn = gn.Writer.create()) { - return dn.withdrawAddress !== '' && Nn.uint32(10).string(dn.withdrawAddress), Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = En() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.withdrawAddress = fn.string() - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { - withdrawAddress: (0, sn.isSet)(dn.withdrawAddress) ? String(dn.withdrawAddress) : '', - } - }, - toJSON(dn) { - const Nn = {} - return dn.withdrawAddress !== void 0 && (Nn.withdrawAddress = dn.withdrawAddress), Nn - }, - fromPartial(dn) { - const Nn = En() - return (Nn.withdrawAddress = dn.withdrawAddress ?? ''), Nn - }, - } - function Mn() { - return {} - } - e.QueryCommunityPoolRequest = { - encode(dn, Nn = gn.Writer.create()) { - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Mn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return {} - }, - toJSON(dn) { - return {} - }, - fromPartial(dn) { - return Mn() - }, - } - function Hn() { - return { pool: [] } - } - e.QueryCommunityPoolResponse = { - encode(dn, Nn = gn.Writer.create()) { - for (const fn of dn.pool) nn.DecCoin.encode(fn, Nn.uint32(10).fork()).ldelim() - return Nn - }, - decode(dn, Nn) { - const fn = dn instanceof gn.Reader ? dn : new gn.Reader(dn) - let _n = Nn === void 0 ? fn.len : fn.pos + Nn - const Ln = Hn() - for (; fn.pos < _n; ) { - const zn = fn.uint32() - switch (zn >>> 3) { - case 1: - Ln.pool.push(nn.DecCoin.decode(fn, fn.uint32())) - break - default: - fn.skipType(zn & 7) - break - } - } - return Ln - }, - fromJSON(dn) { - return { pool: Array.isArray(dn?.pool) ? dn.pool.map((Nn) => nn.DecCoin.fromJSON(Nn)) : [] } - }, - toJSON(dn) { - const Nn = {} - return ( - dn.pool - ? (Nn.pool = dn.pool.map((fn) => (fn ? nn.DecCoin.toJSON(fn) : void 0))) - : (Nn.pool = []), - Nn - ) - }, - fromPartial(dn) { - const Nn = Hn() - return (Nn.pool = dn.pool?.map((fn) => nn.DecCoin.fromPartial(fn)) || []), Nn - }, - } - class un { - constructor(Nn) { - ;(this.rpc = Nn), - (this.Params = this.Params.bind(this)), - (this.ValidatorDistributionInfo = this.ValidatorDistributionInfo.bind(this)), - (this.ValidatorOutstandingRewards = this.ValidatorOutstandingRewards.bind(this)), - (this.ValidatorCommission = this.ValidatorCommission.bind(this)), - (this.ValidatorSlashes = this.ValidatorSlashes.bind(this)), - (this.DelegationRewards = this.DelegationRewards.bind(this)), - (this.DelegationTotalRewards = this.DelegationTotalRewards.bind(this)), - (this.DelegatorValidators = this.DelegatorValidators.bind(this)), - (this.DelegatorWithdrawAddress = this.DelegatorWithdrawAddress.bind(this)), - (this.CommunityPool = this.CommunityPool.bind(this)) - } - Params(Nn = {}) { - const fn = e.QueryParamsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'Params', fn) - .then((Ln) => e.QueryParamsResponse.decode(new gn.Reader(Ln))) - } - ValidatorDistributionInfo(Nn) { - const fn = e.QueryValidatorDistributionInfoRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'ValidatorDistributionInfo', fn) - .then((Ln) => e.QueryValidatorDistributionInfoResponse.decode(new gn.Reader(Ln))) - } - ValidatorOutstandingRewards(Nn) { - const fn = e.QueryValidatorOutstandingRewardsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'ValidatorOutstandingRewards', fn) - .then((Ln) => e.QueryValidatorOutstandingRewardsResponse.decode(new gn.Reader(Ln))) - } - ValidatorCommission(Nn) { - const fn = e.QueryValidatorCommissionRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'ValidatorCommission', fn) - .then((Ln) => e.QueryValidatorCommissionResponse.decode(new gn.Reader(Ln))) - } - ValidatorSlashes(Nn) { - const fn = e.QueryValidatorSlashesRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'ValidatorSlashes', fn) - .then((Ln) => e.QueryValidatorSlashesResponse.decode(new gn.Reader(Ln))) - } - DelegationRewards(Nn) { - const fn = e.QueryDelegationRewardsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'DelegationRewards', fn) - .then((Ln) => e.QueryDelegationRewardsResponse.decode(new gn.Reader(Ln))) - } - DelegationTotalRewards(Nn) { - const fn = e.QueryDelegationTotalRewardsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'DelegationTotalRewards', fn) - .then((Ln) => e.QueryDelegationTotalRewardsResponse.decode(new gn.Reader(Ln))) - } - DelegatorValidators(Nn) { - const fn = e.QueryDelegatorValidatorsRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'DelegatorValidators', fn) - .then((Ln) => e.QueryDelegatorValidatorsResponse.decode(new gn.Reader(Ln))) - } - DelegatorWithdrawAddress(Nn) { - const fn = e.QueryDelegatorWithdrawAddressRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'DelegatorWithdrawAddress', fn) - .then((Ln) => e.QueryDelegatorWithdrawAddressResponse.decode(new gn.Reader(Ln))) - } - CommunityPool(Nn = {}) { - const fn = e.QueryCommunityPoolRequest.encode(Nn).finish() - return this.rpc - .request('cosmos.distribution.v1beta1.Query', 'CommunityPool', fn) - .then((Ln) => e.QueryCommunityPoolResponse.decode(new gn.Reader(Ln))) - } - } - e.QueryClientImpl = un -})(query$a) -var __importDefault$b = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(queries$8, '__esModule', { value: !0 }) -queries$8.setupDistributionExtension = void 0 -const query_1$7 = query$a, - long_1$9 = __importDefault$b(long$1), - queryclient_1$9 = queryclient$1 -function setupDistributionExtension(e) { - const o = (0, queryclient_1$9.createProtobufRpcClient)(e), - _ = new query_1$7.QueryClientImpl(o) - return { - distribution: { - communityPool: async () => await _.CommunityPool({}), - delegationRewards: async (b, $) => - await _.DelegationRewards({ delegatorAddress: b, validatorAddress: $ }), - delegationTotalRewards: async (b) => await _.DelegationTotalRewards({ delegatorAddress: b }), - delegatorValidators: async (b) => await _.DelegatorValidators({ delegatorAddress: b }), - delegatorWithdrawAddress: async (b) => - await _.DelegatorWithdrawAddress({ delegatorAddress: b }), - params: async () => await _.Params({}), - validatorCommission: async (b) => await _.ValidatorCommission({ validatorAddress: b }), - validatorOutstandingRewards: async (b) => - await _.ValidatorOutstandingRewards({ validatorAddress: b }), - validatorSlashes: async (b, $, en, nn) => - await _.ValidatorSlashes({ - validatorAddress: b, - startingHeight: long_1$9.default.fromNumber($, !0), - endingHeight: long_1$9.default.fromNumber(en, !0), - pagination: (0, queryclient_1$9.createPagination)(nn), - }), - }, - } -} -queries$8.setupDistributionExtension = setupDistributionExtension -var aminomessages$8 = {} -Object.defineProperty(aminomessages$8, '__esModule', { value: !0 }) -aminomessages$8.createEvidenceAminoConverters = aminomessages$8.isAminoMsgSubmitEvidence = void 0 -function isAminoMsgSubmitEvidence(e) { - return e.type === 'cosmos-sdk/MsgSubmitEvidence' -} -aminomessages$8.isAminoMsgSubmitEvidence = isAminoMsgSubmitEvidence -function createEvidenceAminoConverters() { - throw new Error('Not implemented') -} -aminomessages$8.createEvidenceAminoConverters = createEvidenceAminoConverters -var aminomessages$7 = {} -Object.defineProperty(aminomessages$7, '__esModule', { value: !0 }) -aminomessages$7.createFeegrantAminoConverters = void 0 -function createFeegrantAminoConverters() { - return {} -} -aminomessages$7.createFeegrantAminoConverters = createFeegrantAminoConverters -var messages$6 = {}, - tx$a = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Kn, an, xn, mn) { - mn === void 0 && (mn = xn) - var Bn = Object.getOwnPropertyDescriptor(an, xn) - ;(!Bn || ('get' in Bn ? !an.__esModule : Bn.writable || Bn.configurable)) && - (Bn = { - enumerable: !0, - get: function () { - return an[xn] - }, - }), - Object.defineProperty(Kn, mn, Bn) - } - : function (Kn, an, xn, mn) { - mn === void 0 && (mn = xn), (Kn[mn] = an[xn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Kn, an) { - Object.defineProperty(Kn, 'default', { enumerable: !0, value: an }) - } - : function (Kn, an) { - Kn.default = an - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Kn) { - if (Kn && Kn.__esModule) return Kn - var an = {} - if (Kn != null) - for (var xn in Kn) - xn !== 'default' && Object.prototype.hasOwnProperty.call(Kn, xn) && o(an, Kn, xn) - return _(an, Kn), an - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgRevokeAllowanceResponse = - e.MsgRevokeAllowance = - e.MsgGrantAllowanceResponse = - e.MsgGrantAllowance = - e.protobufPackage = - void 0) - const $ = any, - en = b(minimalExports), - nn = helpers - e.protobufPackage = 'cosmos.feegrant.v1beta1' - function sn() { - return { granter: '', grantee: '', allowance: void 0 } - } - e.MsgGrantAllowance = { - encode(Kn, an = en.Writer.create()) { - return ( - Kn.granter !== '' && an.uint32(10).string(Kn.granter), - Kn.grantee !== '' && an.uint32(18).string(Kn.grantee), - Kn.allowance !== void 0 && $.Any.encode(Kn.allowance, an.uint32(26).fork()).ldelim(), - an - ) - }, - decode(Kn, an) { - const xn = Kn instanceof en.Reader ? Kn : new en.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = sn() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - case 1: - Bn.granter = xn.string() - break - case 2: - Bn.grantee = xn.string() - break - case 3: - Bn.allowance = $.Any.decode(xn, xn.uint32()) - break - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return { - granter: (0, nn.isSet)(Kn.granter) ? String(Kn.granter) : '', - grantee: (0, nn.isSet)(Kn.grantee) ? String(Kn.grantee) : '', - allowance: (0, nn.isSet)(Kn.allowance) ? $.Any.fromJSON(Kn.allowance) : void 0, - } - }, - toJSON(Kn) { - const an = {} - return ( - Kn.granter !== void 0 && (an.granter = Kn.granter), - Kn.grantee !== void 0 && (an.grantee = Kn.grantee), - Kn.allowance !== void 0 && - (an.allowance = Kn.allowance ? $.Any.toJSON(Kn.allowance) : void 0), - an - ) - }, - fromPartial(Kn) { - const an = sn() - return ( - (an.granter = Kn.granter ?? ''), - (an.grantee = Kn.grantee ?? ''), - (an.allowance = - Kn.allowance !== void 0 && Kn.allowance !== null - ? $.Any.fromPartial(Kn.allowance) - : void 0), - an - ) - }, - } - function gn() { - return {} - } - e.MsgGrantAllowanceResponse = { - encode(Kn, an = en.Writer.create()) { - return an - }, - decode(Kn, an) { - const xn = Kn instanceof en.Reader ? Kn : new en.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = gn() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return {} - }, - toJSON(Kn) { - return {} - }, - fromPartial(Kn) { - return gn() - }, - } - function In() { - return { granter: '', grantee: '' } - } - e.MsgRevokeAllowance = { - encode(Kn, an = en.Writer.create()) { - return ( - Kn.granter !== '' && an.uint32(10).string(Kn.granter), - Kn.grantee !== '' && an.uint32(18).string(Kn.grantee), - an - ) - }, - decode(Kn, an) { - const xn = Kn instanceof en.Reader ? Kn : new en.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = In() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - case 1: - Bn.granter = xn.string() - break - case 2: - Bn.grantee = xn.string() - break - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return { - granter: (0, nn.isSet)(Kn.granter) ? String(Kn.granter) : '', - grantee: (0, nn.isSet)(Kn.grantee) ? String(Kn.grantee) : '', - } - }, - toJSON(Kn) { - const an = {} - return ( - Kn.granter !== void 0 && (an.granter = Kn.granter), - Kn.grantee !== void 0 && (an.grantee = Kn.grantee), - an - ) - }, - fromPartial(Kn) { - const an = In() - return (an.granter = Kn.granter ?? ''), (an.grantee = Kn.grantee ?? ''), an - }, - } - function Jn() { - return {} - } - e.MsgRevokeAllowanceResponse = { - encode(Kn, an = en.Writer.create()) { - return an - }, - decode(Kn, an) { - const xn = Kn instanceof en.Reader ? Kn : new en.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = Jn() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return {} - }, - toJSON(Kn) { - return {} - }, - fromPartial(Kn) { - return Jn() - }, - } - class qn { - constructor(an) { - ;(this.rpc = an), - (this.GrantAllowance = this.GrantAllowance.bind(this)), - (this.RevokeAllowance = this.RevokeAllowance.bind(this)) - } - GrantAllowance(an) { - const xn = e.MsgGrantAllowance.encode(an).finish() - return this.rpc - .request('cosmos.feegrant.v1beta1.Msg', 'GrantAllowance', xn) - .then((Bn) => e.MsgGrantAllowanceResponse.decode(new en.Reader(Bn))) - } - RevokeAllowance(an) { - const xn = e.MsgRevokeAllowance.encode(an).finish() - return this.rpc - .request('cosmos.feegrant.v1beta1.Msg', 'RevokeAllowance', xn) - .then((Bn) => e.MsgRevokeAllowanceResponse.decode(new en.Reader(Bn))) - } - } - e.MsgClientImpl = qn -})(tx$a) -Object.defineProperty(messages$6, '__esModule', { value: !0 }) -messages$6.feegrantTypes = void 0 -const tx_1$9 = tx$a -messages$6.feegrantTypes = [ - ['/cosmos.feegrant.v1beta1.MsgGrantAllowance', tx_1$9.MsgGrantAllowance], - ['/cosmos.feegrant.v1beta1.MsgRevokeAllowance', tx_1$9.MsgRevokeAllowance], -] -var queries$7 = {}, - query$9 = {}, - feegrant = {}, - duration = {}, - __createBinding$b = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$b = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$b(o, e, _) - return __setModuleDefault$b(o, e), o - } -Object.defineProperty(duration, '__esModule', { value: !0 }) -duration.Duration = duration.protobufPackage = void 0 -const helpers_1$7 = helpers, - _m0$7 = __importStar$b(minimalExports) -duration.protobufPackage = 'google.protobuf' -function createBaseDuration() { - return { seconds: helpers_1$7.Long.ZERO, nanos: 0 } -} -duration.Duration = { - encode(e, o = _m0$7.Writer.create()) { - return ( - e.seconds.isZero() || o.uint32(8).int64(e.seconds), - e.nanos !== 0 && o.uint32(16).int32(e.nanos), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$7.Reader ? e : new _m0$7.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseDuration() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.seconds = _.int64() - break - case 2: - $.nanos = _.int32() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - seconds: (0, helpers_1$7.isSet)(e.seconds) - ? helpers_1$7.Long.fromValue(e.seconds) - : helpers_1$7.Long.ZERO, - nanos: (0, helpers_1$7.isSet)(e.nanos) ? Number(e.nanos) : 0, - } - }, - toJSON(e) { - const o = {} - return ( - e.seconds !== void 0 && (o.seconds = (e.seconds || helpers_1$7.Long.ZERO).toString()), - e.nanos !== void 0 && (o.nanos = Math.round(e.nanos)), - o - ) - }, - fromPartial(e) { - const o = createBaseDuration() - return ( - (o.seconds = - e.seconds !== void 0 && e.seconds !== null - ? helpers_1$7.Long.fromValue(e.seconds) - : helpers_1$7.Long.ZERO), - (o.nanos = e.nanos ?? 0), - o - ) - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn) - var ln = Object.getOwnPropertyDescriptor(mn, Bn) - ;(!ln || ('get' in ln ? !mn.__esModule : ln.writable || ln.configurable)) && - (ln = { - enumerable: !0, - get: function () { - return mn[Bn] - }, - }), - Object.defineProperty(xn, kn, ln) - } - : function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn), (xn[kn] = mn[Bn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (xn, mn) { - Object.defineProperty(xn, 'default', { enumerable: !0, value: mn }) - } - : function (xn, mn) { - xn.default = mn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (xn) { - if (xn && xn.__esModule) return xn - var mn = {} - if (xn != null) - for (var Bn in xn) - Bn !== 'default' && Object.prototype.hasOwnProperty.call(xn, Bn) && o(mn, xn, Bn) - return _(mn, xn), mn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Grant = - e.AllowedMsgAllowance = - e.PeriodicAllowance = - e.BasicAllowance = - e.protobufPackage = - void 0) - const $ = coin$1, - en = timestamp, - nn = duration, - sn = any, - gn = b(minimalExports), - In = helpers - e.protobufPackage = 'cosmos.feegrant.v1beta1' - function Jn() { - return { spendLimit: [], expiration: void 0 } - } - e.BasicAllowance = { - encode(xn, mn = gn.Writer.create()) { - for (const Bn of xn.spendLimit) $.Coin.encode(Bn, mn.uint32(10).fork()).ldelim() - return ( - xn.expiration !== void 0 && - en.Timestamp.encode(xn.expiration, mn.uint32(18).fork()).ldelim(), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof gn.Reader ? xn : new gn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Jn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.spendLimit.push($.Coin.decode(Bn, Bn.uint32())) - break - case 2: - ln.expiration = en.Timestamp.decode(Bn, Bn.uint32()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - spendLimit: Array.isArray(xn?.spendLimit) - ? xn.spendLimit.map((mn) => $.Coin.fromJSON(mn)) - : [], - expiration: (0, In.isSet)(xn.expiration) - ? (0, In.fromJsonTimestamp)(xn.expiration) - : void 0, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.spendLimit - ? (mn.spendLimit = xn.spendLimit.map((Bn) => (Bn ? $.Coin.toJSON(Bn) : void 0))) - : (mn.spendLimit = []), - xn.expiration !== void 0 && - (mn.expiration = (0, In.fromTimestamp)(xn.expiration).toISOString()), - mn - ) - }, - fromPartial(xn) { - const mn = Jn() - return ( - (mn.spendLimit = xn.spendLimit?.map((Bn) => $.Coin.fromPartial(Bn)) || []), - (mn.expiration = - xn.expiration !== void 0 && xn.expiration !== null - ? en.Timestamp.fromPartial(xn.expiration) - : void 0), - mn - ) - }, - } - function qn() { - return { - basic: void 0, - period: void 0, - periodSpendLimit: [], - periodCanSpend: [], - periodReset: void 0, - } - } - e.PeriodicAllowance = { - encode(xn, mn = gn.Writer.create()) { - xn.basic !== void 0 && e.BasicAllowance.encode(xn.basic, mn.uint32(10).fork()).ldelim(), - xn.period !== void 0 && nn.Duration.encode(xn.period, mn.uint32(18).fork()).ldelim() - for (const Bn of xn.periodSpendLimit) $.Coin.encode(Bn, mn.uint32(26).fork()).ldelim() - for (const Bn of xn.periodCanSpend) $.Coin.encode(Bn, mn.uint32(34).fork()).ldelim() - return ( - xn.periodReset !== void 0 && - en.Timestamp.encode(xn.periodReset, mn.uint32(42).fork()).ldelim(), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof gn.Reader ? xn : new gn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = qn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.basic = e.BasicAllowance.decode(Bn, Bn.uint32()) - break - case 2: - ln.period = nn.Duration.decode(Bn, Bn.uint32()) - break - case 3: - ln.periodSpendLimit.push($.Coin.decode(Bn, Bn.uint32())) - break - case 4: - ln.periodCanSpend.push($.Coin.decode(Bn, Bn.uint32())) - break - case 5: - ln.periodReset = en.Timestamp.decode(Bn, Bn.uint32()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - basic: (0, In.isSet)(xn.basic) ? e.BasicAllowance.fromJSON(xn.basic) : void 0, - period: (0, In.isSet)(xn.period) ? nn.Duration.fromJSON(xn.period) : void 0, - periodSpendLimit: Array.isArray(xn?.periodSpendLimit) - ? xn.periodSpendLimit.map((mn) => $.Coin.fromJSON(mn)) - : [], - periodCanSpend: Array.isArray(xn?.periodCanSpend) - ? xn.periodCanSpend.map((mn) => $.Coin.fromJSON(mn)) - : [], - periodReset: (0, In.isSet)(xn.periodReset) - ? (0, In.fromJsonTimestamp)(xn.periodReset) - : void 0, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.basic !== void 0 && (mn.basic = xn.basic ? e.BasicAllowance.toJSON(xn.basic) : void 0), - xn.period !== void 0 && (mn.period = xn.period ? nn.Duration.toJSON(xn.period) : void 0), - xn.periodSpendLimit - ? (mn.periodSpendLimit = xn.periodSpendLimit.map((Bn) => - Bn ? $.Coin.toJSON(Bn) : void 0, - )) - : (mn.periodSpendLimit = []), - xn.periodCanSpend - ? (mn.periodCanSpend = xn.periodCanSpend.map((Bn) => (Bn ? $.Coin.toJSON(Bn) : void 0))) - : (mn.periodCanSpend = []), - xn.periodReset !== void 0 && - (mn.periodReset = (0, In.fromTimestamp)(xn.periodReset).toISOString()), - mn - ) - }, - fromPartial(xn) { - const mn = qn() - return ( - (mn.basic = - xn.basic !== void 0 && xn.basic !== null - ? e.BasicAllowance.fromPartial(xn.basic) - : void 0), - (mn.period = - xn.period !== void 0 && xn.period !== null ? nn.Duration.fromPartial(xn.period) : void 0), - (mn.periodSpendLimit = xn.periodSpendLimit?.map((Bn) => $.Coin.fromPartial(Bn)) || []), - (mn.periodCanSpend = xn.periodCanSpend?.map((Bn) => $.Coin.fromPartial(Bn)) || []), - (mn.periodReset = - xn.periodReset !== void 0 && xn.periodReset !== null - ? en.Timestamp.fromPartial(xn.periodReset) - : void 0), - mn - ) - }, - } - function Kn() { - return { allowance: void 0, allowedMessages: [] } - } - e.AllowedMsgAllowance = { - encode(xn, mn = gn.Writer.create()) { - xn.allowance !== void 0 && sn.Any.encode(xn.allowance, mn.uint32(10).fork()).ldelim() - for (const Bn of xn.allowedMessages) mn.uint32(18).string(Bn) - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof gn.Reader ? xn : new gn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Kn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.allowance = sn.Any.decode(Bn, Bn.uint32()) - break - case 2: - ln.allowedMessages.push(Bn.string()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - allowance: (0, In.isSet)(xn.allowance) ? sn.Any.fromJSON(xn.allowance) : void 0, - allowedMessages: Array.isArray(xn?.allowedMessages) - ? xn.allowedMessages.map((mn) => String(mn)) - : [], - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.allowance !== void 0 && - (mn.allowance = xn.allowance ? sn.Any.toJSON(xn.allowance) : void 0), - xn.allowedMessages - ? (mn.allowedMessages = xn.allowedMessages.map((Bn) => Bn)) - : (mn.allowedMessages = []), - mn - ) - }, - fromPartial(xn) { - const mn = Kn() - return ( - (mn.allowance = - xn.allowance !== void 0 && xn.allowance !== null - ? sn.Any.fromPartial(xn.allowance) - : void 0), - (mn.allowedMessages = xn.allowedMessages?.map((Bn) => Bn) || []), - mn - ) - }, - } - function an() { - return { granter: '', grantee: '', allowance: void 0 } - } - e.Grant = { - encode(xn, mn = gn.Writer.create()) { - return ( - xn.granter !== '' && mn.uint32(10).string(xn.granter), - xn.grantee !== '' && mn.uint32(18).string(xn.grantee), - xn.allowance !== void 0 && sn.Any.encode(xn.allowance, mn.uint32(26).fork()).ldelim(), - mn - ) - }, - decode(xn, mn) { - const Bn = xn instanceof gn.Reader ? xn : new gn.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = an() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.granter = Bn.string() - break - case 2: - ln.grantee = Bn.string() - break - case 3: - ln.allowance = sn.Any.decode(Bn, Bn.uint32()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - granter: (0, In.isSet)(xn.granter) ? String(xn.granter) : '', - grantee: (0, In.isSet)(xn.grantee) ? String(xn.grantee) : '', - allowance: (0, In.isSet)(xn.allowance) ? sn.Any.fromJSON(xn.allowance) : void 0, - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.granter !== void 0 && (mn.granter = xn.granter), - xn.grantee !== void 0 && (mn.grantee = xn.grantee), - xn.allowance !== void 0 && - (mn.allowance = xn.allowance ? sn.Any.toJSON(xn.allowance) : void 0), - mn - ) - }, - fromPartial(xn) { - const mn = an() - return ( - (mn.granter = xn.granter ?? ''), - (mn.grantee = xn.grantee ?? ''), - (mn.allowance = - xn.allowance !== void 0 && xn.allowance !== null - ? sn.Any.fromPartial(xn.allowance) - : void 0), - mn - ) - }, - } -})(feegrant) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn) - var yn = Object.getOwnPropertyDescriptor(Bn, kn) - ;(!yn || ('get' in yn ? !Bn.__esModule : yn.writable || yn.configurable)) && - (yn = { - enumerable: !0, - get: function () { - return Bn[kn] - }, - }), - Object.defineProperty(mn, ln, yn) - } - : function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn), (mn[ln] = Bn[kn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (mn, Bn) { - Object.defineProperty(mn, 'default', { enumerable: !0, value: Bn }) - } - : function (mn, Bn) { - mn.default = Bn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (mn) { - if (mn && mn.__esModule) return mn - var Bn = {} - if (mn != null) - for (var kn in mn) - kn !== 'default' && Object.prototype.hasOwnProperty.call(mn, kn) && o(Bn, mn, kn) - return _(Bn, mn), Bn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryAllowancesByGranterResponse = - e.QueryAllowancesByGranterRequest = - e.QueryAllowancesResponse = - e.QueryAllowancesRequest = - e.QueryAllowanceResponse = - e.QueryAllowanceRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = feegrant, - nn = b(minimalExports), - sn = helpers - e.protobufPackage = 'cosmos.feegrant.v1beta1' - function gn() { - return { granter: '', grantee: '' } - } - e.QueryAllowanceRequest = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.granter !== '' && Bn.uint32(10).string(mn.granter), - mn.grantee !== '' && Bn.uint32(18).string(mn.grantee), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = gn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.granter = kn.string() - break - case 2: - yn.grantee = kn.string() - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - granter: (0, sn.isSet)(mn.granter) ? String(mn.granter) : '', - grantee: (0, sn.isSet)(mn.grantee) ? String(mn.grantee) : '', - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.granter !== void 0 && (Bn.granter = mn.granter), - mn.grantee !== void 0 && (Bn.grantee = mn.grantee), - Bn - ) - }, - fromPartial(mn) { - const Bn = gn() - return (Bn.granter = mn.granter ?? ''), (Bn.grantee = mn.grantee ?? ''), Bn - }, - } - function In() { - return { allowance: void 0 } - } - e.QueryAllowanceResponse = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.allowance !== void 0 && en.Grant.encode(mn.allowance, Bn.uint32(10).fork()).ldelim(), Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = In() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.allowance = en.Grant.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { allowance: (0, sn.isSet)(mn.allowance) ? en.Grant.fromJSON(mn.allowance) : void 0 } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.allowance !== void 0 && - (Bn.allowance = mn.allowance ? en.Grant.toJSON(mn.allowance) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = In() - return ( - (Bn.allowance = - mn.allowance !== void 0 && mn.allowance !== null - ? en.Grant.fromPartial(mn.allowance) - : void 0), - Bn - ) - }, - } - function Jn() { - return { grantee: '', pagination: void 0 } - } - e.QueryAllowancesRequest = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.grantee !== '' && Bn.uint32(10).string(mn.grantee), - mn.pagination !== void 0 && - $.PageRequest.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Jn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.grantee = kn.string() - break - case 2: - yn.pagination = $.PageRequest.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - grantee: (0, sn.isSet)(mn.grantee) ? String(mn.grantee) : '', - pagination: (0, sn.isSet)(mn.pagination) ? $.PageRequest.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.grantee !== void 0 && (Bn.grantee = mn.grantee), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageRequest.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = Jn() - return ( - (Bn.grantee = mn.grantee ?? ''), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageRequest.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function qn() { - return { allowances: [], pagination: void 0 } - } - e.QueryAllowancesResponse = { - encode(mn, Bn = nn.Writer.create()) { - for (const kn of mn.allowances) en.Grant.encode(kn, Bn.uint32(10).fork()).ldelim() - return ( - mn.pagination !== void 0 && - $.PageResponse.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = qn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.allowances.push(en.Grant.decode(kn, kn.uint32())) - break - case 2: - yn.pagination = $.PageResponse.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - allowances: Array.isArray(mn?.allowances) - ? mn.allowances.map((Bn) => en.Grant.fromJSON(Bn)) - : [], - pagination: (0, sn.isSet)(mn.pagination) ? $.PageResponse.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.allowances - ? (Bn.allowances = mn.allowances.map((kn) => (kn ? en.Grant.toJSON(kn) : void 0))) - : (Bn.allowances = []), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageResponse.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = qn() - return ( - (Bn.allowances = mn.allowances?.map((kn) => en.Grant.fromPartial(kn)) || []), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageResponse.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function Kn() { - return { granter: '', pagination: void 0 } - } - e.QueryAllowancesByGranterRequest = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.granter !== '' && Bn.uint32(10).string(mn.granter), - mn.pagination !== void 0 && - $.PageRequest.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Kn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.granter = kn.string() - break - case 2: - yn.pagination = $.PageRequest.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - granter: (0, sn.isSet)(mn.granter) ? String(mn.granter) : '', - pagination: (0, sn.isSet)(mn.pagination) ? $.PageRequest.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.granter !== void 0 && (Bn.granter = mn.granter), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageRequest.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = Kn() - return ( - (Bn.granter = mn.granter ?? ''), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageRequest.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function an() { - return { allowances: [], pagination: void 0 } - } - e.QueryAllowancesByGranterResponse = { - encode(mn, Bn = nn.Writer.create()) { - for (const kn of mn.allowances) en.Grant.encode(kn, Bn.uint32(10).fork()).ldelim() - return ( - mn.pagination !== void 0 && - $.PageResponse.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = an() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.allowances.push(en.Grant.decode(kn, kn.uint32())) - break - case 2: - yn.pagination = $.PageResponse.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - allowances: Array.isArray(mn?.allowances) - ? mn.allowances.map((Bn) => en.Grant.fromJSON(Bn)) - : [], - pagination: (0, sn.isSet)(mn.pagination) ? $.PageResponse.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.allowances - ? (Bn.allowances = mn.allowances.map((kn) => (kn ? en.Grant.toJSON(kn) : void 0))) - : (Bn.allowances = []), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageResponse.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = an() - return ( - (Bn.allowances = mn.allowances?.map((kn) => en.Grant.fromPartial(kn)) || []), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageResponse.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - class xn { - constructor(Bn) { - ;(this.rpc = Bn), - (this.Allowance = this.Allowance.bind(this)), - (this.Allowances = this.Allowances.bind(this)), - (this.AllowancesByGranter = this.AllowancesByGranter.bind(this)) - } - Allowance(Bn) { - const kn = e.QueryAllowanceRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.feegrant.v1beta1.Query', 'Allowance', kn) - .then((yn) => e.QueryAllowanceResponse.decode(new nn.Reader(yn))) - } - Allowances(Bn) { - const kn = e.QueryAllowancesRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.feegrant.v1beta1.Query', 'Allowances', kn) - .then((yn) => e.QueryAllowancesResponse.decode(new nn.Reader(yn))) - } - AllowancesByGranter(Bn) { - const kn = e.QueryAllowancesByGranterRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.feegrant.v1beta1.Query', 'AllowancesByGranter', kn) - .then((yn) => e.QueryAllowancesByGranterResponse.decode(new nn.Reader(yn))) - } - } - e.QueryClientImpl = xn -})(query$9) -Object.defineProperty(queries$7, '__esModule', { value: !0 }) -queries$7.setupFeegrantExtension = void 0 -const query_1$6 = query$9, - queryclient_1$8 = queryclient$1 -function setupFeegrantExtension(e) { - const o = (0, queryclient_1$8.createProtobufRpcClient)(e), - _ = new query_1$6.QueryClientImpl(o) - return { - feegrant: { - allowance: async (b, $) => await _.Allowance({ granter: b, grantee: $ }), - allowances: async (b, $) => - await _.Allowances({ grantee: b, pagination: (0, queryclient_1$8.createPagination)($) }), - }, - } -} -queries$7.setupFeegrantExtension = setupFeegrantExtension -var aminomessages$6 = {}, - gov$1 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn) - var un = Object.getOwnPropertyDescriptor(En, Mn) - ;(!un || ('get' in un ? !En.__esModule : un.writable || un.configurable)) && - (un = { - enumerable: !0, - get: function () { - return En[Mn] - }, - }), - Object.defineProperty(tn, Hn, un) - } - : function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn), (tn[Hn] = En[Mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (tn, En) { - Object.defineProperty(tn, 'default', { enumerable: !0, value: En }) - } - : function (tn, En) { - tn.default = En - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (tn) { - if (tn && tn.__esModule) return tn - var En = {} - if (tn != null) - for (var Mn in tn) - Mn !== 'default' && Object.prototype.hasOwnProperty.call(tn, Mn) && o(En, tn, Mn) - return _(En, tn), En - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.TallyParams = - e.VotingParams = - e.DepositParams = - e.Vote = - e.TallyResult = - e.Proposal = - e.Deposit = - e.TextProposal = - e.WeightedVoteOption = - e.proposalStatusToJSON = - e.proposalStatusFromJSON = - e.ProposalStatus = - e.voteOptionToJSON = - e.voteOptionFromJSON = - e.VoteOption = - e.protobufPackage = - void 0) - const $ = coin$1, - en = any, - nn = timestamp, - sn = duration, - gn = helpers, - In = b(minimalExports) - e.protobufPackage = 'cosmos.gov.v1beta1' - var Jn - ;(function (tn) { - ;(tn[(tn.VOTE_OPTION_UNSPECIFIED = 0)] = 'VOTE_OPTION_UNSPECIFIED'), - (tn[(tn.VOTE_OPTION_YES = 1)] = 'VOTE_OPTION_YES'), - (tn[(tn.VOTE_OPTION_ABSTAIN = 2)] = 'VOTE_OPTION_ABSTAIN'), - (tn[(tn.VOTE_OPTION_NO = 3)] = 'VOTE_OPTION_NO'), - (tn[(tn.VOTE_OPTION_NO_WITH_VETO = 4)] = 'VOTE_OPTION_NO_WITH_VETO'), - (tn[(tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Jn = e.VoteOption || (e.VoteOption = {}))) - function qn(tn) { - switch (tn) { - case 0: - case 'VOTE_OPTION_UNSPECIFIED': - return Jn.VOTE_OPTION_UNSPECIFIED - case 1: - case 'VOTE_OPTION_YES': - return Jn.VOTE_OPTION_YES - case 2: - case 'VOTE_OPTION_ABSTAIN': - return Jn.VOTE_OPTION_ABSTAIN - case 3: - case 'VOTE_OPTION_NO': - return Jn.VOTE_OPTION_NO - case 4: - case 'VOTE_OPTION_NO_WITH_VETO': - return Jn.VOTE_OPTION_NO_WITH_VETO - case -1: - case 'UNRECOGNIZED': - default: - return Jn.UNRECOGNIZED - } - } - e.voteOptionFromJSON = qn - function Kn(tn) { - switch (tn) { - case Jn.VOTE_OPTION_UNSPECIFIED: - return 'VOTE_OPTION_UNSPECIFIED' - case Jn.VOTE_OPTION_YES: - return 'VOTE_OPTION_YES' - case Jn.VOTE_OPTION_ABSTAIN: - return 'VOTE_OPTION_ABSTAIN' - case Jn.VOTE_OPTION_NO: - return 'VOTE_OPTION_NO' - case Jn.VOTE_OPTION_NO_WITH_VETO: - return 'VOTE_OPTION_NO_WITH_VETO' - case Jn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.voteOptionToJSON = Kn - var an - ;(function (tn) { - ;(tn[(tn.PROPOSAL_STATUS_UNSPECIFIED = 0)] = 'PROPOSAL_STATUS_UNSPECIFIED'), - (tn[(tn.PROPOSAL_STATUS_DEPOSIT_PERIOD = 1)] = 'PROPOSAL_STATUS_DEPOSIT_PERIOD'), - (tn[(tn.PROPOSAL_STATUS_VOTING_PERIOD = 2)] = 'PROPOSAL_STATUS_VOTING_PERIOD'), - (tn[(tn.PROPOSAL_STATUS_PASSED = 3)] = 'PROPOSAL_STATUS_PASSED'), - (tn[(tn.PROPOSAL_STATUS_REJECTED = 4)] = 'PROPOSAL_STATUS_REJECTED'), - (tn[(tn.PROPOSAL_STATUS_FAILED = 5)] = 'PROPOSAL_STATUS_FAILED'), - (tn[(tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((an = e.ProposalStatus || (e.ProposalStatus = {}))) - function xn(tn) { - switch (tn) { - case 0: - case 'PROPOSAL_STATUS_UNSPECIFIED': - return an.PROPOSAL_STATUS_UNSPECIFIED - case 1: - case 'PROPOSAL_STATUS_DEPOSIT_PERIOD': - return an.PROPOSAL_STATUS_DEPOSIT_PERIOD - case 2: - case 'PROPOSAL_STATUS_VOTING_PERIOD': - return an.PROPOSAL_STATUS_VOTING_PERIOD - case 3: - case 'PROPOSAL_STATUS_PASSED': - return an.PROPOSAL_STATUS_PASSED - case 4: - case 'PROPOSAL_STATUS_REJECTED': - return an.PROPOSAL_STATUS_REJECTED - case 5: - case 'PROPOSAL_STATUS_FAILED': - return an.PROPOSAL_STATUS_FAILED - case -1: - case 'UNRECOGNIZED': - default: - return an.UNRECOGNIZED - } - } - e.proposalStatusFromJSON = xn - function mn(tn) { - switch (tn) { - case an.PROPOSAL_STATUS_UNSPECIFIED: - return 'PROPOSAL_STATUS_UNSPECIFIED' - case an.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - case an.PROPOSAL_STATUS_VOTING_PERIOD: - return 'PROPOSAL_STATUS_VOTING_PERIOD' - case an.PROPOSAL_STATUS_PASSED: - return 'PROPOSAL_STATUS_PASSED' - case an.PROPOSAL_STATUS_REJECTED: - return 'PROPOSAL_STATUS_REJECTED' - case an.PROPOSAL_STATUS_FAILED: - return 'PROPOSAL_STATUS_FAILED' - case an.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.proposalStatusToJSON = mn - function Bn() { - return { option: 0, weight: '' } - } - e.WeightedVoteOption = { - encode(tn, En = In.Writer.create()) { - return ( - tn.option !== 0 && En.uint32(8).int32(tn.option), - tn.weight !== '' && En.uint32(18).string(tn.weight), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Bn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.option = Mn.int32() - break - case 2: - un.weight = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - option: (0, gn.isSet)(tn.option) ? qn(tn.option) : 0, - weight: (0, gn.isSet)(tn.weight) ? String(tn.weight) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.option !== void 0 && (En.option = Kn(tn.option)), - tn.weight !== void 0 && (En.weight = tn.weight), - En - ) - }, - fromPartial(tn) { - const En = Bn() - return (En.option = tn.option ?? 0), (En.weight = tn.weight ?? ''), En - }, - } - function kn() { - return { title: '', description: '' } - } - e.TextProposal = { - encode(tn, En = In.Writer.create()) { - return ( - tn.title !== '' && En.uint32(10).string(tn.title), - tn.description !== '' && En.uint32(18).string(tn.description), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.title = Mn.string() - break - case 2: - un.description = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - title: (0, gn.isSet)(tn.title) ? String(tn.title) : '', - description: (0, gn.isSet)(tn.description) ? String(tn.description) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.title !== void 0 && (En.title = tn.title), - tn.description !== void 0 && (En.description = tn.description), - En - ) - }, - fromPartial(tn) { - const En = kn() - return (En.title = tn.title ?? ''), (En.description = tn.description ?? ''), En - }, - } - function ln() { - return { proposalId: gn.Long.UZERO, depositor: '', amount: [] } - } - e.Deposit = { - encode(tn, En = In.Writer.create()) { - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.depositor !== '' && En.uint32(18).string(tn.depositor) - for (const Mn of tn.amount) $.Coin.encode(Mn, En.uint32(26).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = ln() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.depositor = Mn.string() - break - case 3: - un.amount.push($.Coin.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, gn.isSet)(tn.proposalId) ? gn.Long.fromValue(tn.proposalId) : gn.Long.UZERO, - depositor: (0, gn.isSet)(tn.depositor) ? String(tn.depositor) : '', - amount: Array.isArray(tn?.amount) ? tn.amount.map((En) => $.Coin.fromJSON(En)) : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || gn.Long.UZERO).toString()), - tn.depositor !== void 0 && (En.depositor = tn.depositor), - tn.amount - ? (En.amount = tn.amount.map((Mn) => (Mn ? $.Coin.toJSON(Mn) : void 0))) - : (En.amount = []), - En - ) - }, - fromPartial(tn) { - const En = ln() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? gn.Long.fromValue(tn.proposalId) - : gn.Long.UZERO), - (En.depositor = tn.depositor ?? ''), - (En.amount = tn.amount?.map((Mn) => $.Coin.fromPartial(Mn)) || []), - En - ) - }, - } - function yn() { - return { - proposalId: gn.Long.UZERO, - content: void 0, - status: 0, - finalTallyResult: void 0, - submitTime: void 0, - depositEndTime: void 0, - totalDeposit: [], - votingStartTime: void 0, - votingEndTime: void 0, - } - } - e.Proposal = { - encode(tn, En = In.Writer.create()) { - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.content !== void 0 && en.Any.encode(tn.content, En.uint32(18).fork()).ldelim(), - tn.status !== 0 && En.uint32(24).int32(tn.status), - tn.finalTallyResult !== void 0 && - e.TallyResult.encode(tn.finalTallyResult, En.uint32(34).fork()).ldelim(), - tn.submitTime !== void 0 && - nn.Timestamp.encode(tn.submitTime, En.uint32(42).fork()).ldelim(), - tn.depositEndTime !== void 0 && - nn.Timestamp.encode(tn.depositEndTime, En.uint32(50).fork()).ldelim() - for (const Mn of tn.totalDeposit) $.Coin.encode(Mn, En.uint32(58).fork()).ldelim() - return ( - tn.votingStartTime !== void 0 && - nn.Timestamp.encode(tn.votingStartTime, En.uint32(66).fork()).ldelim(), - tn.votingEndTime !== void 0 && - nn.Timestamp.encode(tn.votingEndTime, En.uint32(74).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = yn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.content = en.Any.decode(Mn, Mn.uint32()) - break - case 3: - un.status = Mn.int32() - break - case 4: - un.finalTallyResult = e.TallyResult.decode(Mn, Mn.uint32()) - break - case 5: - un.submitTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - case 6: - un.depositEndTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - case 7: - un.totalDeposit.push($.Coin.decode(Mn, Mn.uint32())) - break - case 8: - un.votingStartTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - case 9: - un.votingEndTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, gn.isSet)(tn.proposalId) ? gn.Long.fromValue(tn.proposalId) : gn.Long.UZERO, - content: (0, gn.isSet)(tn.content) ? en.Any.fromJSON(tn.content) : void 0, - status: (0, gn.isSet)(tn.status) ? xn(tn.status) : 0, - finalTallyResult: (0, gn.isSet)(tn.finalTallyResult) - ? e.TallyResult.fromJSON(tn.finalTallyResult) - : void 0, - submitTime: (0, gn.isSet)(tn.submitTime) - ? (0, gn.fromJsonTimestamp)(tn.submitTime) - : void 0, - depositEndTime: (0, gn.isSet)(tn.depositEndTime) - ? (0, gn.fromJsonTimestamp)(tn.depositEndTime) - : void 0, - totalDeposit: Array.isArray(tn?.totalDeposit) - ? tn.totalDeposit.map((En) => $.Coin.fromJSON(En)) - : [], - votingStartTime: (0, gn.isSet)(tn.votingStartTime) - ? (0, gn.fromJsonTimestamp)(tn.votingStartTime) - : void 0, - votingEndTime: (0, gn.isSet)(tn.votingEndTime) - ? (0, gn.fromJsonTimestamp)(tn.votingEndTime) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || gn.Long.UZERO).toString()), - tn.content !== void 0 && (En.content = tn.content ? en.Any.toJSON(tn.content) : void 0), - tn.status !== void 0 && (En.status = mn(tn.status)), - tn.finalTallyResult !== void 0 && - (En.finalTallyResult = tn.finalTallyResult - ? e.TallyResult.toJSON(tn.finalTallyResult) - : void 0), - tn.submitTime !== void 0 && - (En.submitTime = (0, gn.fromTimestamp)(tn.submitTime).toISOString()), - tn.depositEndTime !== void 0 && - (En.depositEndTime = (0, gn.fromTimestamp)(tn.depositEndTime).toISOString()), - tn.totalDeposit - ? (En.totalDeposit = tn.totalDeposit.map((Mn) => (Mn ? $.Coin.toJSON(Mn) : void 0))) - : (En.totalDeposit = []), - tn.votingStartTime !== void 0 && - (En.votingStartTime = (0, gn.fromTimestamp)(tn.votingStartTime).toISOString()), - tn.votingEndTime !== void 0 && - (En.votingEndTime = (0, gn.fromTimestamp)(tn.votingEndTime).toISOString()), - En - ) - }, - fromPartial(tn) { - const En = yn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? gn.Long.fromValue(tn.proposalId) - : gn.Long.UZERO), - (En.content = - tn.content !== void 0 && tn.content !== null ? en.Any.fromPartial(tn.content) : void 0), - (En.status = tn.status ?? 0), - (En.finalTallyResult = - tn.finalTallyResult !== void 0 && tn.finalTallyResult !== null - ? e.TallyResult.fromPartial(tn.finalTallyResult) - : void 0), - (En.submitTime = - tn.submitTime !== void 0 && tn.submitTime !== null - ? nn.Timestamp.fromPartial(tn.submitTime) - : void 0), - (En.depositEndTime = - tn.depositEndTime !== void 0 && tn.depositEndTime !== null - ? nn.Timestamp.fromPartial(tn.depositEndTime) - : void 0), - (En.totalDeposit = tn.totalDeposit?.map((Mn) => $.Coin.fromPartial(Mn)) || []), - (En.votingStartTime = - tn.votingStartTime !== void 0 && tn.votingStartTime !== null - ? nn.Timestamp.fromPartial(tn.votingStartTime) - : void 0), - (En.votingEndTime = - tn.votingEndTime !== void 0 && tn.votingEndTime !== null - ? nn.Timestamp.fromPartial(tn.votingEndTime) - : void 0), - En - ) - }, - } - function Cn() { - return { yes: '', abstain: '', no: '', noWithVeto: '' } - } - e.TallyResult = { - encode(tn, En = In.Writer.create()) { - return ( - tn.yes !== '' && En.uint32(10).string(tn.yes), - tn.abstain !== '' && En.uint32(18).string(tn.abstain), - tn.no !== '' && En.uint32(26).string(tn.no), - tn.noWithVeto !== '' && En.uint32(34).string(tn.noWithVeto), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Cn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.yes = Mn.string() - break - case 2: - un.abstain = Mn.string() - break - case 3: - un.no = Mn.string() - break - case 4: - un.noWithVeto = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - yes: (0, gn.isSet)(tn.yes) ? String(tn.yes) : '', - abstain: (0, gn.isSet)(tn.abstain) ? String(tn.abstain) : '', - no: (0, gn.isSet)(tn.no) ? String(tn.no) : '', - noWithVeto: (0, gn.isSet)(tn.noWithVeto) ? String(tn.noWithVeto) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.yes !== void 0 && (En.yes = tn.yes), - tn.abstain !== void 0 && (En.abstain = tn.abstain), - tn.no !== void 0 && (En.no = tn.no), - tn.noWithVeto !== void 0 && (En.noWithVeto = tn.noWithVeto), - En - ) - }, - fromPartial(tn) { - const En = Cn() - return ( - (En.yes = tn.yes ?? ''), - (En.abstain = tn.abstain ?? ''), - (En.no = tn.no ?? ''), - (En.noWithVeto = tn.noWithVeto ?? ''), - En - ) - }, - } - function Tn() { - return { proposalId: gn.Long.UZERO, voter: '', option: 0, options: [] } - } - e.Vote = { - encode(tn, En = In.Writer.create()) { - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.voter !== '' && En.uint32(18).string(tn.voter), - tn.option !== 0 && En.uint32(24).int32(tn.option) - for (const Mn of tn.options) e.WeightedVoteOption.encode(Mn, En.uint32(34).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Tn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.voter = Mn.string() - break - case 3: - un.option = Mn.int32() - break - case 4: - un.options.push(e.WeightedVoteOption.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, gn.isSet)(tn.proposalId) ? gn.Long.fromValue(tn.proposalId) : gn.Long.UZERO, - voter: (0, gn.isSet)(tn.voter) ? String(tn.voter) : '', - option: (0, gn.isSet)(tn.option) ? qn(tn.option) : 0, - options: Array.isArray(tn?.options) - ? tn.options.map((En) => e.WeightedVoteOption.fromJSON(En)) - : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || gn.Long.UZERO).toString()), - tn.voter !== void 0 && (En.voter = tn.voter), - tn.option !== void 0 && (En.option = Kn(tn.option)), - tn.options - ? (En.options = tn.options.map((Mn) => (Mn ? e.WeightedVoteOption.toJSON(Mn) : void 0))) - : (En.options = []), - En - ) - }, - fromPartial(tn) { - const En = Tn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? gn.Long.fromValue(tn.proposalId) - : gn.Long.UZERO), - (En.voter = tn.voter ?? ''), - (En.option = tn.option ?? 0), - (En.options = tn.options?.map((Mn) => e.WeightedVoteOption.fromPartial(Mn)) || []), - En - ) - }, - } - function Gn() { - return { minDeposit: [], maxDepositPeriod: void 0 } - } - e.DepositParams = { - encode(tn, En = In.Writer.create()) { - for (const Mn of tn.minDeposit) $.Coin.encode(Mn, En.uint32(10).fork()).ldelim() - return ( - tn.maxDepositPeriod !== void 0 && - sn.Duration.encode(tn.maxDepositPeriod, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.minDeposit.push($.Coin.decode(Mn, Mn.uint32())) - break - case 2: - un.maxDepositPeriod = sn.Duration.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - minDeposit: Array.isArray(tn?.minDeposit) - ? tn.minDeposit.map((En) => $.Coin.fromJSON(En)) - : [], - maxDepositPeriod: (0, gn.isSet)(tn.maxDepositPeriod) - ? sn.Duration.fromJSON(tn.maxDepositPeriod) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.minDeposit - ? (En.minDeposit = tn.minDeposit.map((Mn) => (Mn ? $.Coin.toJSON(Mn) : void 0))) - : (En.minDeposit = []), - tn.maxDepositPeriod !== void 0 && - (En.maxDepositPeriod = tn.maxDepositPeriod - ? sn.Duration.toJSON(tn.maxDepositPeriod) - : void 0), - En - ) - }, - fromPartial(tn) { - const En = Gn() - return ( - (En.minDeposit = tn.minDeposit?.map((Mn) => $.Coin.fromPartial(Mn)) || []), - (En.maxDepositPeriod = - tn.maxDepositPeriod !== void 0 && tn.maxDepositPeriod !== null - ? sn.Duration.fromPartial(tn.maxDepositPeriod) - : void 0), - En - ) - }, - } - function Sn() { - return { votingPeriod: void 0 } - } - e.VotingParams = { - encode(tn, En = In.Writer.create()) { - return ( - tn.votingPeriod !== void 0 && - sn.Duration.encode(tn.votingPeriod, En.uint32(10).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Sn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.votingPeriod = sn.Duration.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - votingPeriod: (0, gn.isSet)(tn.votingPeriod) - ? sn.Duration.fromJSON(tn.votingPeriod) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.votingPeriod !== void 0 && - (En.votingPeriod = tn.votingPeriod ? sn.Duration.toJSON(tn.votingPeriod) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Sn() - return ( - (En.votingPeriod = - tn.votingPeriod !== void 0 && tn.votingPeriod !== null - ? sn.Duration.fromPartial(tn.votingPeriod) - : void 0), - En - ) - }, - } - function Zn() { - return { - quorum: new Uint8Array(), - threshold: new Uint8Array(), - vetoThreshold: new Uint8Array(), - } - } - e.TallyParams = { - encode(tn, En = In.Writer.create()) { - return ( - tn.quorum.length !== 0 && En.uint32(10).bytes(tn.quorum), - tn.threshold.length !== 0 && En.uint32(18).bytes(tn.threshold), - tn.vetoThreshold.length !== 0 && En.uint32(26).bytes(tn.vetoThreshold), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Zn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.quorum = Mn.bytes() - break - case 2: - un.threshold = Mn.bytes() - break - case 3: - un.vetoThreshold = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - quorum: (0, gn.isSet)(tn.quorum) ? (0, gn.bytesFromBase64)(tn.quorum) : new Uint8Array(), - threshold: (0, gn.isSet)(tn.threshold) - ? (0, gn.bytesFromBase64)(tn.threshold) - : new Uint8Array(), - vetoThreshold: (0, gn.isSet)(tn.vetoThreshold) - ? (0, gn.bytesFromBase64)(tn.vetoThreshold) - : new Uint8Array(), - } - }, - toJSON(tn) { - const En = {} - return ( - tn.quorum !== void 0 && - (En.quorum = (0, gn.base64FromBytes)( - tn.quorum !== void 0 ? tn.quorum : new Uint8Array(), - )), - tn.threshold !== void 0 && - (En.threshold = (0, gn.base64FromBytes)( - tn.threshold !== void 0 ? tn.threshold : new Uint8Array(), - )), - tn.vetoThreshold !== void 0 && - (En.vetoThreshold = (0, gn.base64FromBytes)( - tn.vetoThreshold !== void 0 ? tn.vetoThreshold : new Uint8Array(), - )), - En - ) - }, - fromPartial(tn) { - const En = Zn() - return ( - (En.quorum = tn.quorum ?? new Uint8Array()), - (En.threshold = tn.threshold ?? new Uint8Array()), - (En.vetoThreshold = tn.vetoThreshold ?? new Uint8Array()), - En - ) - }, - } -})(gov$1) -var __importDefault$a = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(aminomessages$6, '__esModule', { value: !0 }) -aminomessages$6.createGovAminoConverters = - aminomessages$6.isAminoMsgDeposit = - aminomessages$6.isAminoMsgVoteWeighted = - aminomessages$6.isAminoMsgVote = - aminomessages$6.isAminoMsgSubmitProposal = - void 0 -const math_1$6 = build$a, - utils_1$6 = build$5, - gov_1 = gov$1, - any_1 = any, - long_1$8 = __importDefault$a(long$1), - queryclient_1$7 = queryclient$1 -function isAminoMsgSubmitProposal(e) { - return e.type === 'cosmos-sdk/MsgSubmitProposal' -} -aminomessages$6.isAminoMsgSubmitProposal = isAminoMsgSubmitProposal -function isAminoMsgVote(e) { - return e.type === 'cosmos-sdk/MsgVote' -} -aminomessages$6.isAminoMsgVote = isAminoMsgVote -function isAminoMsgVoteWeighted(e) { - return e.type === 'cosmos-sdk/MsgVoteWeighted' -} -aminomessages$6.isAminoMsgVoteWeighted = isAminoMsgVoteWeighted -function isAminoMsgDeposit(e) { - return e.type === 'cosmos-sdk/MsgDeposit' -} -aminomessages$6.isAminoMsgDeposit = isAminoMsgDeposit -function createGovAminoConverters() { - return { - '/cosmos.gov.v1beta1.MsgDeposit': { - aminoType: 'cosmos-sdk/MsgDeposit', - toAmino: ({ amount: e, depositor: o, proposalId: _ }) => ({ - amount: e, - depositor: o, - proposal_id: _.toString(), - }), - fromAmino: ({ amount: e, depositor: o, proposal_id: _ }) => ({ - amount: Array.from(e), - depositor: o, - proposalId: long_1$8.default.fromString(_), - }), - }, - '/cosmos.gov.v1beta1.MsgVote': { - aminoType: 'cosmos-sdk/MsgVote', - toAmino: ({ option: e, proposalId: o, voter: _ }) => ({ - option: e, - proposal_id: o.toString(), - voter: _, - }), - fromAmino: ({ option: e, proposal_id: o, voter: _ }) => ({ - option: (0, gov_1.voteOptionFromJSON)(e), - proposalId: long_1$8.default.fromString(o), - voter: _, - }), - }, - '/cosmos.gov.v1beta1.MsgVoteWeighted': { - aminoType: 'cosmos-sdk/MsgVoteWeighted', - toAmino: ({ options: e, proposalId: o, voter: _ }) => ({ - options: e.map((b) => ({ - option: b.option, - weight: (0, queryclient_1$7.decodeCosmosSdkDecFromProto)(b.weight) - .toString() - .padEnd(20, '0'), - })), - proposal_id: o.toString(), - voter: _, - }), - fromAmino: ({ options: e, proposal_id: o, voter: _ }) => ({ - proposalId: long_1$8.default.fromString(o), - voter: _, - options: e.map((b) => ({ - option: (0, gov_1.voteOptionFromJSON)(b.option), - weight: math_1$6.Decimal.fromUserInput(b.weight, 18).atomics, - })), - }), - }, - '/cosmos.gov.v1beta1.MsgSubmitProposal': { - aminoType: 'cosmos-sdk/MsgSubmitProposal', - toAmino: ({ initialDeposit: e, proposer: o, content: _ }) => { - ;(0, utils_1$6.assertDefinedAndNotNull)(_) - let b - switch (_.typeUrl) { - case '/cosmos.gov.v1beta1.TextProposal': { - const $ = gov_1.TextProposal.decode(_.value) - b = { - type: 'cosmos-sdk/TextProposal', - value: { description: $.description, title: $.title }, - } - break - } - default: - throw new Error(`Unsupported proposal type: '${_.typeUrl}'`) - } - return { initial_deposit: e, proposer: o, content: b } - }, - fromAmino: ({ initial_deposit: e, proposer: o, content: _ }) => { - let b - switch (_.type) { - case 'cosmos-sdk/TextProposal': { - const { value: $ } = _ - ;(0, utils_1$6.assert)((0, utils_1$6.isNonNullObject)($)) - const { title: en, description: nn } = $ - ;(0, utils_1$6.assert)(typeof en == 'string'), - (0, utils_1$6.assert)(typeof nn == 'string'), - (b = any_1.Any.fromPartial({ - typeUrl: '/cosmos.gov.v1beta1.TextProposal', - value: gov_1.TextProposal.encode( - gov_1.TextProposal.fromPartial({ title: en, description: nn }), - ).finish(), - })) - break - } - default: - throw new Error(`Unsupported proposal type: '${_.type}'`) - } - return { initialDeposit: Array.from(e), proposer: o, content: b } - }, - }, - } -} -aminomessages$6.createGovAminoConverters = createGovAminoConverters -var messages$5 = {}, - tx$9 = {}, - gov = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn) - var un = Object.getOwnPropertyDescriptor(En, Mn) - ;(!un || ('get' in un ? !En.__esModule : un.writable || un.configurable)) && - (un = { - enumerable: !0, - get: function () { - return En[Mn] - }, - }), - Object.defineProperty(tn, Hn, un) - } - : function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn), (tn[Hn] = En[Mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (tn, En) { - Object.defineProperty(tn, 'default', { enumerable: !0, value: En }) - } - : function (tn, En) { - tn.default = En - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (tn) { - if (tn && tn.__esModule) return tn - var En = {} - if (tn != null) - for (var Mn in tn) - Mn !== 'default' && Object.prototype.hasOwnProperty.call(tn, Mn) && o(En, tn, Mn) - return _(En, tn), En - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Params = - e.TallyParams = - e.VotingParams = - e.DepositParams = - e.Vote = - e.TallyResult = - e.Proposal = - e.Deposit = - e.WeightedVoteOption = - e.proposalStatusToJSON = - e.proposalStatusFromJSON = - e.ProposalStatus = - e.voteOptionToJSON = - e.voteOptionFromJSON = - e.VoteOption = - e.protobufPackage = - void 0) - const $ = coin$1, - en = any, - nn = timestamp, - sn = duration, - gn = helpers, - In = b(minimalExports) - e.protobufPackage = 'cosmos.gov.v1' - var Jn - ;(function (tn) { - ;(tn[(tn.VOTE_OPTION_UNSPECIFIED = 0)] = 'VOTE_OPTION_UNSPECIFIED'), - (tn[(tn.VOTE_OPTION_YES = 1)] = 'VOTE_OPTION_YES'), - (tn[(tn.VOTE_OPTION_ABSTAIN = 2)] = 'VOTE_OPTION_ABSTAIN'), - (tn[(tn.VOTE_OPTION_NO = 3)] = 'VOTE_OPTION_NO'), - (tn[(tn.VOTE_OPTION_NO_WITH_VETO = 4)] = 'VOTE_OPTION_NO_WITH_VETO'), - (tn[(tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Jn = e.VoteOption || (e.VoteOption = {}))) - function qn(tn) { - switch (tn) { - case 0: - case 'VOTE_OPTION_UNSPECIFIED': - return Jn.VOTE_OPTION_UNSPECIFIED - case 1: - case 'VOTE_OPTION_YES': - return Jn.VOTE_OPTION_YES - case 2: - case 'VOTE_OPTION_ABSTAIN': - return Jn.VOTE_OPTION_ABSTAIN - case 3: - case 'VOTE_OPTION_NO': - return Jn.VOTE_OPTION_NO - case 4: - case 'VOTE_OPTION_NO_WITH_VETO': - return Jn.VOTE_OPTION_NO_WITH_VETO - case -1: - case 'UNRECOGNIZED': - default: - return Jn.UNRECOGNIZED - } - } - e.voteOptionFromJSON = qn - function Kn(tn) { - switch (tn) { - case Jn.VOTE_OPTION_UNSPECIFIED: - return 'VOTE_OPTION_UNSPECIFIED' - case Jn.VOTE_OPTION_YES: - return 'VOTE_OPTION_YES' - case Jn.VOTE_OPTION_ABSTAIN: - return 'VOTE_OPTION_ABSTAIN' - case Jn.VOTE_OPTION_NO: - return 'VOTE_OPTION_NO' - case Jn.VOTE_OPTION_NO_WITH_VETO: - return 'VOTE_OPTION_NO_WITH_VETO' - case Jn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.voteOptionToJSON = Kn - var an - ;(function (tn) { - ;(tn[(tn.PROPOSAL_STATUS_UNSPECIFIED = 0)] = 'PROPOSAL_STATUS_UNSPECIFIED'), - (tn[(tn.PROPOSAL_STATUS_DEPOSIT_PERIOD = 1)] = 'PROPOSAL_STATUS_DEPOSIT_PERIOD'), - (tn[(tn.PROPOSAL_STATUS_VOTING_PERIOD = 2)] = 'PROPOSAL_STATUS_VOTING_PERIOD'), - (tn[(tn.PROPOSAL_STATUS_PASSED = 3)] = 'PROPOSAL_STATUS_PASSED'), - (tn[(tn.PROPOSAL_STATUS_REJECTED = 4)] = 'PROPOSAL_STATUS_REJECTED'), - (tn[(tn.PROPOSAL_STATUS_FAILED = 5)] = 'PROPOSAL_STATUS_FAILED'), - (tn[(tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((an = e.ProposalStatus || (e.ProposalStatus = {}))) - function xn(tn) { - switch (tn) { - case 0: - case 'PROPOSAL_STATUS_UNSPECIFIED': - return an.PROPOSAL_STATUS_UNSPECIFIED - case 1: - case 'PROPOSAL_STATUS_DEPOSIT_PERIOD': - return an.PROPOSAL_STATUS_DEPOSIT_PERIOD - case 2: - case 'PROPOSAL_STATUS_VOTING_PERIOD': - return an.PROPOSAL_STATUS_VOTING_PERIOD - case 3: - case 'PROPOSAL_STATUS_PASSED': - return an.PROPOSAL_STATUS_PASSED - case 4: - case 'PROPOSAL_STATUS_REJECTED': - return an.PROPOSAL_STATUS_REJECTED - case 5: - case 'PROPOSAL_STATUS_FAILED': - return an.PROPOSAL_STATUS_FAILED - case -1: - case 'UNRECOGNIZED': - default: - return an.UNRECOGNIZED - } - } - e.proposalStatusFromJSON = xn - function mn(tn) { - switch (tn) { - case an.PROPOSAL_STATUS_UNSPECIFIED: - return 'PROPOSAL_STATUS_UNSPECIFIED' - case an.PROPOSAL_STATUS_DEPOSIT_PERIOD: - return 'PROPOSAL_STATUS_DEPOSIT_PERIOD' - case an.PROPOSAL_STATUS_VOTING_PERIOD: - return 'PROPOSAL_STATUS_VOTING_PERIOD' - case an.PROPOSAL_STATUS_PASSED: - return 'PROPOSAL_STATUS_PASSED' - case an.PROPOSAL_STATUS_REJECTED: - return 'PROPOSAL_STATUS_REJECTED' - case an.PROPOSAL_STATUS_FAILED: - return 'PROPOSAL_STATUS_FAILED' - case an.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.proposalStatusToJSON = mn - function Bn() { - return { option: 0, weight: '' } - } - e.WeightedVoteOption = { - encode(tn, En = In.Writer.create()) { - return ( - tn.option !== 0 && En.uint32(8).int32(tn.option), - tn.weight !== '' && En.uint32(18).string(tn.weight), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Bn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.option = Mn.int32() - break - case 2: - un.weight = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - option: (0, gn.isSet)(tn.option) ? qn(tn.option) : 0, - weight: (0, gn.isSet)(tn.weight) ? String(tn.weight) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.option !== void 0 && (En.option = Kn(tn.option)), - tn.weight !== void 0 && (En.weight = tn.weight), - En - ) - }, - fromPartial(tn) { - const En = Bn() - return (En.option = tn.option ?? 0), (En.weight = tn.weight ?? ''), En - }, - } - function kn() { - return { proposalId: gn.Long.UZERO, depositor: '', amount: [] } - } - e.Deposit = { - encode(tn, En = In.Writer.create()) { - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.depositor !== '' && En.uint32(18).string(tn.depositor) - for (const Mn of tn.amount) $.Coin.encode(Mn, En.uint32(26).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.depositor = Mn.string() - break - case 3: - un.amount.push($.Coin.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, gn.isSet)(tn.proposalId) ? gn.Long.fromValue(tn.proposalId) : gn.Long.UZERO, - depositor: (0, gn.isSet)(tn.depositor) ? String(tn.depositor) : '', - amount: Array.isArray(tn?.amount) ? tn.amount.map((En) => $.Coin.fromJSON(En)) : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || gn.Long.UZERO).toString()), - tn.depositor !== void 0 && (En.depositor = tn.depositor), - tn.amount - ? (En.amount = tn.amount.map((Mn) => (Mn ? $.Coin.toJSON(Mn) : void 0))) - : (En.amount = []), - En - ) - }, - fromPartial(tn) { - const En = kn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? gn.Long.fromValue(tn.proposalId) - : gn.Long.UZERO), - (En.depositor = tn.depositor ?? ''), - (En.amount = tn.amount?.map((Mn) => $.Coin.fromPartial(Mn)) || []), - En - ) - }, - } - function ln() { - return { - id: gn.Long.UZERO, - messages: [], - status: 0, - finalTallyResult: void 0, - submitTime: void 0, - depositEndTime: void 0, - totalDeposit: [], - votingStartTime: void 0, - votingEndTime: void 0, - metadata: '', - title: '', - summary: '', - proposer: '', - } - } - e.Proposal = { - encode(tn, En = In.Writer.create()) { - tn.id.isZero() || En.uint32(8).uint64(tn.id) - for (const Mn of tn.messages) en.Any.encode(Mn, En.uint32(18).fork()).ldelim() - tn.status !== 0 && En.uint32(24).int32(tn.status), - tn.finalTallyResult !== void 0 && - e.TallyResult.encode(tn.finalTallyResult, En.uint32(34).fork()).ldelim(), - tn.submitTime !== void 0 && - nn.Timestamp.encode(tn.submitTime, En.uint32(42).fork()).ldelim(), - tn.depositEndTime !== void 0 && - nn.Timestamp.encode(tn.depositEndTime, En.uint32(50).fork()).ldelim() - for (const Mn of tn.totalDeposit) $.Coin.encode(Mn, En.uint32(58).fork()).ldelim() - return ( - tn.votingStartTime !== void 0 && - nn.Timestamp.encode(tn.votingStartTime, En.uint32(66).fork()).ldelim(), - tn.votingEndTime !== void 0 && - nn.Timestamp.encode(tn.votingEndTime, En.uint32(74).fork()).ldelim(), - tn.metadata !== '' && En.uint32(82).string(tn.metadata), - tn.title !== '' && En.uint32(90).string(tn.title), - tn.summary !== '' && En.uint32(98).string(tn.summary), - tn.proposer !== '' && En.uint32(106).string(tn.proposer), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = ln() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.id = Mn.uint64() - break - case 2: - un.messages.push(en.Any.decode(Mn, Mn.uint32())) - break - case 3: - un.status = Mn.int32() - break - case 4: - un.finalTallyResult = e.TallyResult.decode(Mn, Mn.uint32()) - break - case 5: - un.submitTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - case 6: - un.depositEndTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - case 7: - un.totalDeposit.push($.Coin.decode(Mn, Mn.uint32())) - break - case 8: - un.votingStartTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - case 9: - un.votingEndTime = nn.Timestamp.decode(Mn, Mn.uint32()) - break - case 10: - un.metadata = Mn.string() - break - case 11: - un.title = Mn.string() - break - case 12: - un.summary = Mn.string() - break - case 13: - un.proposer = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - id: (0, gn.isSet)(tn.id) ? gn.Long.fromValue(tn.id) : gn.Long.UZERO, - messages: Array.isArray(tn?.messages) ? tn.messages.map((En) => en.Any.fromJSON(En)) : [], - status: (0, gn.isSet)(tn.status) ? xn(tn.status) : 0, - finalTallyResult: (0, gn.isSet)(tn.finalTallyResult) - ? e.TallyResult.fromJSON(tn.finalTallyResult) - : void 0, - submitTime: (0, gn.isSet)(tn.submitTime) - ? (0, gn.fromJsonTimestamp)(tn.submitTime) - : void 0, - depositEndTime: (0, gn.isSet)(tn.depositEndTime) - ? (0, gn.fromJsonTimestamp)(tn.depositEndTime) - : void 0, - totalDeposit: Array.isArray(tn?.totalDeposit) - ? tn.totalDeposit.map((En) => $.Coin.fromJSON(En)) - : [], - votingStartTime: (0, gn.isSet)(tn.votingStartTime) - ? (0, gn.fromJsonTimestamp)(tn.votingStartTime) - : void 0, - votingEndTime: (0, gn.isSet)(tn.votingEndTime) - ? (0, gn.fromJsonTimestamp)(tn.votingEndTime) - : void 0, - metadata: (0, gn.isSet)(tn.metadata) ? String(tn.metadata) : '', - title: (0, gn.isSet)(tn.title) ? String(tn.title) : '', - summary: (0, gn.isSet)(tn.summary) ? String(tn.summary) : '', - proposer: (0, gn.isSet)(tn.proposer) ? String(tn.proposer) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.id !== void 0 && (En.id = (tn.id || gn.Long.UZERO).toString()), - tn.messages - ? (En.messages = tn.messages.map((Mn) => (Mn ? en.Any.toJSON(Mn) : void 0))) - : (En.messages = []), - tn.status !== void 0 && (En.status = mn(tn.status)), - tn.finalTallyResult !== void 0 && - (En.finalTallyResult = tn.finalTallyResult - ? e.TallyResult.toJSON(tn.finalTallyResult) - : void 0), - tn.submitTime !== void 0 && - (En.submitTime = (0, gn.fromTimestamp)(tn.submitTime).toISOString()), - tn.depositEndTime !== void 0 && - (En.depositEndTime = (0, gn.fromTimestamp)(tn.depositEndTime).toISOString()), - tn.totalDeposit - ? (En.totalDeposit = tn.totalDeposit.map((Mn) => (Mn ? $.Coin.toJSON(Mn) : void 0))) - : (En.totalDeposit = []), - tn.votingStartTime !== void 0 && - (En.votingStartTime = (0, gn.fromTimestamp)(tn.votingStartTime).toISOString()), - tn.votingEndTime !== void 0 && - (En.votingEndTime = (0, gn.fromTimestamp)(tn.votingEndTime).toISOString()), - tn.metadata !== void 0 && (En.metadata = tn.metadata), - tn.title !== void 0 && (En.title = tn.title), - tn.summary !== void 0 && (En.summary = tn.summary), - tn.proposer !== void 0 && (En.proposer = tn.proposer), - En - ) - }, - fromPartial(tn) { - const En = ln() - return ( - (En.id = tn.id !== void 0 && tn.id !== null ? gn.Long.fromValue(tn.id) : gn.Long.UZERO), - (En.messages = tn.messages?.map((Mn) => en.Any.fromPartial(Mn)) || []), - (En.status = tn.status ?? 0), - (En.finalTallyResult = - tn.finalTallyResult !== void 0 && tn.finalTallyResult !== null - ? e.TallyResult.fromPartial(tn.finalTallyResult) - : void 0), - (En.submitTime = - tn.submitTime !== void 0 && tn.submitTime !== null - ? nn.Timestamp.fromPartial(tn.submitTime) - : void 0), - (En.depositEndTime = - tn.depositEndTime !== void 0 && tn.depositEndTime !== null - ? nn.Timestamp.fromPartial(tn.depositEndTime) - : void 0), - (En.totalDeposit = tn.totalDeposit?.map((Mn) => $.Coin.fromPartial(Mn)) || []), - (En.votingStartTime = - tn.votingStartTime !== void 0 && tn.votingStartTime !== null - ? nn.Timestamp.fromPartial(tn.votingStartTime) - : void 0), - (En.votingEndTime = - tn.votingEndTime !== void 0 && tn.votingEndTime !== null - ? nn.Timestamp.fromPartial(tn.votingEndTime) - : void 0), - (En.metadata = tn.metadata ?? ''), - (En.title = tn.title ?? ''), - (En.summary = tn.summary ?? ''), - (En.proposer = tn.proposer ?? ''), - En - ) - }, - } - function yn() { - return { yesCount: '', abstainCount: '', noCount: '', noWithVetoCount: '' } - } - e.TallyResult = { - encode(tn, En = In.Writer.create()) { - return ( - tn.yesCount !== '' && En.uint32(10).string(tn.yesCount), - tn.abstainCount !== '' && En.uint32(18).string(tn.abstainCount), - tn.noCount !== '' && En.uint32(26).string(tn.noCount), - tn.noWithVetoCount !== '' && En.uint32(34).string(tn.noWithVetoCount), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = yn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.yesCount = Mn.string() - break - case 2: - un.abstainCount = Mn.string() - break - case 3: - un.noCount = Mn.string() - break - case 4: - un.noWithVetoCount = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - yesCount: (0, gn.isSet)(tn.yesCount) ? String(tn.yesCount) : '', - abstainCount: (0, gn.isSet)(tn.abstainCount) ? String(tn.abstainCount) : '', - noCount: (0, gn.isSet)(tn.noCount) ? String(tn.noCount) : '', - noWithVetoCount: (0, gn.isSet)(tn.noWithVetoCount) ? String(tn.noWithVetoCount) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.yesCount !== void 0 && (En.yesCount = tn.yesCount), - tn.abstainCount !== void 0 && (En.abstainCount = tn.abstainCount), - tn.noCount !== void 0 && (En.noCount = tn.noCount), - tn.noWithVetoCount !== void 0 && (En.noWithVetoCount = tn.noWithVetoCount), - En - ) - }, - fromPartial(tn) { - const En = yn() - return ( - (En.yesCount = tn.yesCount ?? ''), - (En.abstainCount = tn.abstainCount ?? ''), - (En.noCount = tn.noCount ?? ''), - (En.noWithVetoCount = tn.noWithVetoCount ?? ''), - En - ) - }, - } - function Cn() { - return { proposalId: gn.Long.UZERO, voter: '', options: [], metadata: '' } - } - e.Vote = { - encode(tn, En = In.Writer.create()) { - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.voter !== '' && En.uint32(18).string(tn.voter) - for (const Mn of tn.options) e.WeightedVoteOption.encode(Mn, En.uint32(34).fork()).ldelim() - return tn.metadata !== '' && En.uint32(42).string(tn.metadata), En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Cn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.voter = Mn.string() - break - case 4: - un.options.push(e.WeightedVoteOption.decode(Mn, Mn.uint32())) - break - case 5: - un.metadata = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, gn.isSet)(tn.proposalId) ? gn.Long.fromValue(tn.proposalId) : gn.Long.UZERO, - voter: (0, gn.isSet)(tn.voter) ? String(tn.voter) : '', - options: Array.isArray(tn?.options) - ? tn.options.map((En) => e.WeightedVoteOption.fromJSON(En)) - : [], - metadata: (0, gn.isSet)(tn.metadata) ? String(tn.metadata) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || gn.Long.UZERO).toString()), - tn.voter !== void 0 && (En.voter = tn.voter), - tn.options - ? (En.options = tn.options.map((Mn) => (Mn ? e.WeightedVoteOption.toJSON(Mn) : void 0))) - : (En.options = []), - tn.metadata !== void 0 && (En.metadata = tn.metadata), - En - ) - }, - fromPartial(tn) { - const En = Cn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? gn.Long.fromValue(tn.proposalId) - : gn.Long.UZERO), - (En.voter = tn.voter ?? ''), - (En.options = tn.options?.map((Mn) => e.WeightedVoteOption.fromPartial(Mn)) || []), - (En.metadata = tn.metadata ?? ''), - En - ) - }, - } - function Tn() { - return { minDeposit: [], maxDepositPeriod: void 0 } - } - e.DepositParams = { - encode(tn, En = In.Writer.create()) { - for (const Mn of tn.minDeposit) $.Coin.encode(Mn, En.uint32(10).fork()).ldelim() - return ( - tn.maxDepositPeriod !== void 0 && - sn.Duration.encode(tn.maxDepositPeriod, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Tn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.minDeposit.push($.Coin.decode(Mn, Mn.uint32())) - break - case 2: - un.maxDepositPeriod = sn.Duration.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - minDeposit: Array.isArray(tn?.minDeposit) - ? tn.minDeposit.map((En) => $.Coin.fromJSON(En)) - : [], - maxDepositPeriod: (0, gn.isSet)(tn.maxDepositPeriod) - ? sn.Duration.fromJSON(tn.maxDepositPeriod) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.minDeposit - ? (En.minDeposit = tn.minDeposit.map((Mn) => (Mn ? $.Coin.toJSON(Mn) : void 0))) - : (En.minDeposit = []), - tn.maxDepositPeriod !== void 0 && - (En.maxDepositPeriod = tn.maxDepositPeriod - ? sn.Duration.toJSON(tn.maxDepositPeriod) - : void 0), - En - ) - }, - fromPartial(tn) { - const En = Tn() - return ( - (En.minDeposit = tn.minDeposit?.map((Mn) => $.Coin.fromPartial(Mn)) || []), - (En.maxDepositPeriod = - tn.maxDepositPeriod !== void 0 && tn.maxDepositPeriod !== null - ? sn.Duration.fromPartial(tn.maxDepositPeriod) - : void 0), - En - ) - }, - } - function Gn() { - return { votingPeriod: void 0 } - } - e.VotingParams = { - encode(tn, En = In.Writer.create()) { - return ( - tn.votingPeriod !== void 0 && - sn.Duration.encode(tn.votingPeriod, En.uint32(10).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.votingPeriod = sn.Duration.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - votingPeriod: (0, gn.isSet)(tn.votingPeriod) - ? sn.Duration.fromJSON(tn.votingPeriod) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.votingPeriod !== void 0 && - (En.votingPeriod = tn.votingPeriod ? sn.Duration.toJSON(tn.votingPeriod) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Gn() - return ( - (En.votingPeriod = - tn.votingPeriod !== void 0 && tn.votingPeriod !== null - ? sn.Duration.fromPartial(tn.votingPeriod) - : void 0), - En - ) - }, - } - function Sn() { - return { quorum: '', threshold: '', vetoThreshold: '' } - } - e.TallyParams = { - encode(tn, En = In.Writer.create()) { - return ( - tn.quorum !== '' && En.uint32(10).string(tn.quorum), - tn.threshold !== '' && En.uint32(18).string(tn.threshold), - tn.vetoThreshold !== '' && En.uint32(26).string(tn.vetoThreshold), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Sn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.quorum = Mn.string() - break - case 2: - un.threshold = Mn.string() - break - case 3: - un.vetoThreshold = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - quorum: (0, gn.isSet)(tn.quorum) ? String(tn.quorum) : '', - threshold: (0, gn.isSet)(tn.threshold) ? String(tn.threshold) : '', - vetoThreshold: (0, gn.isSet)(tn.vetoThreshold) ? String(tn.vetoThreshold) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.quorum !== void 0 && (En.quorum = tn.quorum), - tn.threshold !== void 0 && (En.threshold = tn.threshold), - tn.vetoThreshold !== void 0 && (En.vetoThreshold = tn.vetoThreshold), - En - ) - }, - fromPartial(tn) { - const En = Sn() - return ( - (En.quorum = tn.quorum ?? ''), - (En.threshold = tn.threshold ?? ''), - (En.vetoThreshold = tn.vetoThreshold ?? ''), - En - ) - }, - } - function Zn() { - return { - minDeposit: [], - maxDepositPeriod: void 0, - votingPeriod: void 0, - quorum: '', - threshold: '', - vetoThreshold: '', - minInitialDepositRatio: '', - burnVoteQuorum: !1, - burnProposalDepositPrevote: !1, - burnVoteVeto: !1, - } - } - e.Params = { - encode(tn, En = In.Writer.create()) { - for (const Mn of tn.minDeposit) $.Coin.encode(Mn, En.uint32(10).fork()).ldelim() - return ( - tn.maxDepositPeriod !== void 0 && - sn.Duration.encode(tn.maxDepositPeriod, En.uint32(18).fork()).ldelim(), - tn.votingPeriod !== void 0 && - sn.Duration.encode(tn.votingPeriod, En.uint32(26).fork()).ldelim(), - tn.quorum !== '' && En.uint32(34).string(tn.quorum), - tn.threshold !== '' && En.uint32(42).string(tn.threshold), - tn.vetoThreshold !== '' && En.uint32(50).string(tn.vetoThreshold), - tn.minInitialDepositRatio !== '' && En.uint32(58).string(tn.minInitialDepositRatio), - tn.burnVoteQuorum === !0 && En.uint32(104).bool(tn.burnVoteQuorum), - tn.burnProposalDepositPrevote === !0 && En.uint32(112).bool(tn.burnProposalDepositPrevote), - tn.burnVoteVeto === !0 && En.uint32(120).bool(tn.burnVoteVeto), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Zn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.minDeposit.push($.Coin.decode(Mn, Mn.uint32())) - break - case 2: - un.maxDepositPeriod = sn.Duration.decode(Mn, Mn.uint32()) - break - case 3: - un.votingPeriod = sn.Duration.decode(Mn, Mn.uint32()) - break - case 4: - un.quorum = Mn.string() - break - case 5: - un.threshold = Mn.string() - break - case 6: - un.vetoThreshold = Mn.string() - break - case 7: - un.minInitialDepositRatio = Mn.string() - break - case 13: - un.burnVoteQuorum = Mn.bool() - break - case 14: - un.burnProposalDepositPrevote = Mn.bool() - break - case 15: - un.burnVoteVeto = Mn.bool() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - minDeposit: Array.isArray(tn?.minDeposit) - ? tn.minDeposit.map((En) => $.Coin.fromJSON(En)) - : [], - maxDepositPeriod: (0, gn.isSet)(tn.maxDepositPeriod) - ? sn.Duration.fromJSON(tn.maxDepositPeriod) - : void 0, - votingPeriod: (0, gn.isSet)(tn.votingPeriod) - ? sn.Duration.fromJSON(tn.votingPeriod) - : void 0, - quorum: (0, gn.isSet)(tn.quorum) ? String(tn.quorum) : '', - threshold: (0, gn.isSet)(tn.threshold) ? String(tn.threshold) : '', - vetoThreshold: (0, gn.isSet)(tn.vetoThreshold) ? String(tn.vetoThreshold) : '', - minInitialDepositRatio: (0, gn.isSet)(tn.minInitialDepositRatio) - ? String(tn.minInitialDepositRatio) - : '', - burnVoteQuorum: (0, gn.isSet)(tn.burnVoteQuorum) ? Boolean(tn.burnVoteQuorum) : !1, - burnProposalDepositPrevote: (0, gn.isSet)(tn.burnProposalDepositPrevote) - ? Boolean(tn.burnProposalDepositPrevote) - : !1, - burnVoteVeto: (0, gn.isSet)(tn.burnVoteVeto) ? Boolean(tn.burnVoteVeto) : !1, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.minDeposit - ? (En.minDeposit = tn.minDeposit.map((Mn) => (Mn ? $.Coin.toJSON(Mn) : void 0))) - : (En.minDeposit = []), - tn.maxDepositPeriod !== void 0 && - (En.maxDepositPeriod = tn.maxDepositPeriod - ? sn.Duration.toJSON(tn.maxDepositPeriod) - : void 0), - tn.votingPeriod !== void 0 && - (En.votingPeriod = tn.votingPeriod ? sn.Duration.toJSON(tn.votingPeriod) : void 0), - tn.quorum !== void 0 && (En.quorum = tn.quorum), - tn.threshold !== void 0 && (En.threshold = tn.threshold), - tn.vetoThreshold !== void 0 && (En.vetoThreshold = tn.vetoThreshold), - tn.minInitialDepositRatio !== void 0 && - (En.minInitialDepositRatio = tn.minInitialDepositRatio), - tn.burnVoteQuorum !== void 0 && (En.burnVoteQuorum = tn.burnVoteQuorum), - tn.burnProposalDepositPrevote !== void 0 && - (En.burnProposalDepositPrevote = tn.burnProposalDepositPrevote), - tn.burnVoteVeto !== void 0 && (En.burnVoteVeto = tn.burnVoteVeto), - En - ) - }, - fromPartial(tn) { - const En = Zn() - return ( - (En.minDeposit = tn.minDeposit?.map((Mn) => $.Coin.fromPartial(Mn)) || []), - (En.maxDepositPeriod = - tn.maxDepositPeriod !== void 0 && tn.maxDepositPeriod !== null - ? sn.Duration.fromPartial(tn.maxDepositPeriod) - : void 0), - (En.votingPeriod = - tn.votingPeriod !== void 0 && tn.votingPeriod !== null - ? sn.Duration.fromPartial(tn.votingPeriod) - : void 0), - (En.quorum = tn.quorum ?? ''), - (En.threshold = tn.threshold ?? ''), - (En.vetoThreshold = tn.vetoThreshold ?? ''), - (En.minInitialDepositRatio = tn.minInitialDepositRatio ?? ''), - (En.burnVoteQuorum = tn.burnVoteQuorum ?? !1), - (En.burnProposalDepositPrevote = tn.burnProposalDepositPrevote ?? !1), - (En.burnVoteVeto = tn.burnVoteVeto ?? !1), - En - ) - }, - } -})(gov) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Gn, Sn, Zn, tn) { - tn === void 0 && (tn = Zn) - var En = Object.getOwnPropertyDescriptor(Sn, Zn) - ;(!En || ('get' in En ? !Sn.__esModule : En.writable || En.configurable)) && - (En = { - enumerable: !0, - get: function () { - return Sn[Zn] - }, - }), - Object.defineProperty(Gn, tn, En) - } - : function (Gn, Sn, Zn, tn) { - tn === void 0 && (tn = Zn), (Gn[tn] = Sn[Zn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Gn, Sn) { - Object.defineProperty(Gn, 'default', { enumerable: !0, value: Sn }) - } - : function (Gn, Sn) { - Gn.default = Sn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Gn) { - if (Gn && Gn.__esModule) return Gn - var Sn = {} - if (Gn != null) - for (var Zn in Gn) - Zn !== 'default' && Object.prototype.hasOwnProperty.call(Gn, Zn) && o(Sn, Gn, Zn) - return _(Sn, Gn), Sn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgUpdateParamsResponse = - e.MsgUpdateParams = - e.MsgDepositResponse = - e.MsgDeposit = - e.MsgVoteWeightedResponse = - e.MsgVoteWeighted = - e.MsgVoteResponse = - e.MsgVote = - e.MsgExecLegacyContentResponse = - e.MsgExecLegacyContent = - e.MsgSubmitProposalResponse = - e.MsgSubmitProposal = - e.protobufPackage = - void 0) - const $ = any, - en = coin$1, - nn = gov, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'cosmos.gov.v1' - function In() { - return { messages: [], initialDeposit: [], proposer: '', metadata: '', title: '', summary: '' } - } - e.MsgSubmitProposal = { - encode(Gn, Sn = gn.Writer.create()) { - for (const Zn of Gn.messages) $.Any.encode(Zn, Sn.uint32(10).fork()).ldelim() - for (const Zn of Gn.initialDeposit) en.Coin.encode(Zn, Sn.uint32(18).fork()).ldelim() - return ( - Gn.proposer !== '' && Sn.uint32(26).string(Gn.proposer), - Gn.metadata !== '' && Sn.uint32(34).string(Gn.metadata), - Gn.title !== '' && Sn.uint32(42).string(Gn.title), - Gn.summary !== '' && Sn.uint32(50).string(Gn.summary), - Sn - ) - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = In() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - case 1: - En.messages.push($.Any.decode(Zn, Zn.uint32())) - break - case 2: - En.initialDeposit.push(en.Coin.decode(Zn, Zn.uint32())) - break - case 3: - En.proposer = Zn.string() - break - case 4: - En.metadata = Zn.string() - break - case 5: - En.title = Zn.string() - break - case 6: - En.summary = Zn.string() - break - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return { - messages: Array.isArray(Gn?.messages) ? Gn.messages.map((Sn) => $.Any.fromJSON(Sn)) : [], - initialDeposit: Array.isArray(Gn?.initialDeposit) - ? Gn.initialDeposit.map((Sn) => en.Coin.fromJSON(Sn)) - : [], - proposer: (0, sn.isSet)(Gn.proposer) ? String(Gn.proposer) : '', - metadata: (0, sn.isSet)(Gn.metadata) ? String(Gn.metadata) : '', - title: (0, sn.isSet)(Gn.title) ? String(Gn.title) : '', - summary: (0, sn.isSet)(Gn.summary) ? String(Gn.summary) : '', - } - }, - toJSON(Gn) { - const Sn = {} - return ( - Gn.messages - ? (Sn.messages = Gn.messages.map((Zn) => (Zn ? $.Any.toJSON(Zn) : void 0))) - : (Sn.messages = []), - Gn.initialDeposit - ? (Sn.initialDeposit = Gn.initialDeposit.map((Zn) => (Zn ? en.Coin.toJSON(Zn) : void 0))) - : (Sn.initialDeposit = []), - Gn.proposer !== void 0 && (Sn.proposer = Gn.proposer), - Gn.metadata !== void 0 && (Sn.metadata = Gn.metadata), - Gn.title !== void 0 && (Sn.title = Gn.title), - Gn.summary !== void 0 && (Sn.summary = Gn.summary), - Sn - ) - }, - fromPartial(Gn) { - const Sn = In() - return ( - (Sn.messages = Gn.messages?.map((Zn) => $.Any.fromPartial(Zn)) || []), - (Sn.initialDeposit = Gn.initialDeposit?.map((Zn) => en.Coin.fromPartial(Zn)) || []), - (Sn.proposer = Gn.proposer ?? ''), - (Sn.metadata = Gn.metadata ?? ''), - (Sn.title = Gn.title ?? ''), - (Sn.summary = Gn.summary ?? ''), - Sn - ) - }, - } - function Jn() { - return { proposalId: sn.Long.UZERO } - } - e.MsgSubmitProposalResponse = { - encode(Gn, Sn = gn.Writer.create()) { - return Gn.proposalId.isZero() || Sn.uint32(8).uint64(Gn.proposalId), Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = Jn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - case 1: - En.proposalId = Zn.uint64() - break - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return { - proposalId: (0, sn.isSet)(Gn.proposalId) ? sn.Long.fromValue(Gn.proposalId) : sn.Long.UZERO, - } - }, - toJSON(Gn) { - const Sn = {} - return ( - Gn.proposalId !== void 0 && (Sn.proposalId = (Gn.proposalId || sn.Long.UZERO).toString()), - Sn - ) - }, - fromPartial(Gn) { - const Sn = Jn() - return ( - (Sn.proposalId = - Gn.proposalId !== void 0 && Gn.proposalId !== null - ? sn.Long.fromValue(Gn.proposalId) - : sn.Long.UZERO), - Sn - ) - }, - } - function qn() { - return { content: void 0, authority: '' } - } - e.MsgExecLegacyContent = { - encode(Gn, Sn = gn.Writer.create()) { - return ( - Gn.content !== void 0 && $.Any.encode(Gn.content, Sn.uint32(10).fork()).ldelim(), - Gn.authority !== '' && Sn.uint32(18).string(Gn.authority), - Sn - ) - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = qn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - case 1: - En.content = $.Any.decode(Zn, Zn.uint32()) - break - case 2: - En.authority = Zn.string() - break - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return { - content: (0, sn.isSet)(Gn.content) ? $.Any.fromJSON(Gn.content) : void 0, - authority: (0, sn.isSet)(Gn.authority) ? String(Gn.authority) : '', - } - }, - toJSON(Gn) { - const Sn = {} - return ( - Gn.content !== void 0 && (Sn.content = Gn.content ? $.Any.toJSON(Gn.content) : void 0), - Gn.authority !== void 0 && (Sn.authority = Gn.authority), - Sn - ) - }, - fromPartial(Gn) { - const Sn = qn() - return ( - (Sn.content = - Gn.content !== void 0 && Gn.content !== null ? $.Any.fromPartial(Gn.content) : void 0), - (Sn.authority = Gn.authority ?? ''), - Sn - ) - }, - } - function Kn() { - return {} - } - e.MsgExecLegacyContentResponse = { - encode(Gn, Sn = gn.Writer.create()) { - return Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = Kn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return {} - }, - toJSON(Gn) { - return {} - }, - fromPartial(Gn) { - return Kn() - }, - } - function an() { - return { proposalId: sn.Long.UZERO, voter: '', option: 0, metadata: '' } - } - e.MsgVote = { - encode(Gn, Sn = gn.Writer.create()) { - return ( - Gn.proposalId.isZero() || Sn.uint32(8).uint64(Gn.proposalId), - Gn.voter !== '' && Sn.uint32(18).string(Gn.voter), - Gn.option !== 0 && Sn.uint32(24).int32(Gn.option), - Gn.metadata !== '' && Sn.uint32(34).string(Gn.metadata), - Sn - ) - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = an() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - case 1: - En.proposalId = Zn.uint64() - break - case 2: - En.voter = Zn.string() - break - case 3: - En.option = Zn.int32() - break - case 4: - En.metadata = Zn.string() - break - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return { - proposalId: (0, sn.isSet)(Gn.proposalId) ? sn.Long.fromValue(Gn.proposalId) : sn.Long.UZERO, - voter: (0, sn.isSet)(Gn.voter) ? String(Gn.voter) : '', - option: (0, sn.isSet)(Gn.option) ? (0, nn.voteOptionFromJSON)(Gn.option) : 0, - metadata: (0, sn.isSet)(Gn.metadata) ? String(Gn.metadata) : '', - } - }, - toJSON(Gn) { - const Sn = {} - return ( - Gn.proposalId !== void 0 && (Sn.proposalId = (Gn.proposalId || sn.Long.UZERO).toString()), - Gn.voter !== void 0 && (Sn.voter = Gn.voter), - Gn.option !== void 0 && (Sn.option = (0, nn.voteOptionToJSON)(Gn.option)), - Gn.metadata !== void 0 && (Sn.metadata = Gn.metadata), - Sn - ) - }, - fromPartial(Gn) { - const Sn = an() - return ( - (Sn.proposalId = - Gn.proposalId !== void 0 && Gn.proposalId !== null - ? sn.Long.fromValue(Gn.proposalId) - : sn.Long.UZERO), - (Sn.voter = Gn.voter ?? ''), - (Sn.option = Gn.option ?? 0), - (Sn.metadata = Gn.metadata ?? ''), - Sn - ) - }, - } - function xn() { - return {} - } - e.MsgVoteResponse = { - encode(Gn, Sn = gn.Writer.create()) { - return Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = xn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return {} - }, - toJSON(Gn) { - return {} - }, - fromPartial(Gn) { - return xn() - }, - } - function mn() { - return { proposalId: sn.Long.UZERO, voter: '', options: [], metadata: '' } - } - e.MsgVoteWeighted = { - encode(Gn, Sn = gn.Writer.create()) { - Gn.proposalId.isZero() || Sn.uint32(8).uint64(Gn.proposalId), - Gn.voter !== '' && Sn.uint32(18).string(Gn.voter) - for (const Zn of Gn.options) nn.WeightedVoteOption.encode(Zn, Sn.uint32(26).fork()).ldelim() - return Gn.metadata !== '' && Sn.uint32(34).string(Gn.metadata), Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = mn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - case 1: - En.proposalId = Zn.uint64() - break - case 2: - En.voter = Zn.string() - break - case 3: - En.options.push(nn.WeightedVoteOption.decode(Zn, Zn.uint32())) - break - case 4: - En.metadata = Zn.string() - break - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return { - proposalId: (0, sn.isSet)(Gn.proposalId) ? sn.Long.fromValue(Gn.proposalId) : sn.Long.UZERO, - voter: (0, sn.isSet)(Gn.voter) ? String(Gn.voter) : '', - options: Array.isArray(Gn?.options) - ? Gn.options.map((Sn) => nn.WeightedVoteOption.fromJSON(Sn)) - : [], - metadata: (0, sn.isSet)(Gn.metadata) ? String(Gn.metadata) : '', - } - }, - toJSON(Gn) { - const Sn = {} - return ( - Gn.proposalId !== void 0 && (Sn.proposalId = (Gn.proposalId || sn.Long.UZERO).toString()), - Gn.voter !== void 0 && (Sn.voter = Gn.voter), - Gn.options - ? (Sn.options = Gn.options.map((Zn) => (Zn ? nn.WeightedVoteOption.toJSON(Zn) : void 0))) - : (Sn.options = []), - Gn.metadata !== void 0 && (Sn.metadata = Gn.metadata), - Sn - ) - }, - fromPartial(Gn) { - const Sn = mn() - return ( - (Sn.proposalId = - Gn.proposalId !== void 0 && Gn.proposalId !== null - ? sn.Long.fromValue(Gn.proposalId) - : sn.Long.UZERO), - (Sn.voter = Gn.voter ?? ''), - (Sn.options = Gn.options?.map((Zn) => nn.WeightedVoteOption.fromPartial(Zn)) || []), - (Sn.metadata = Gn.metadata ?? ''), - Sn - ) - }, - } - function Bn() { - return {} - } - e.MsgVoteWeightedResponse = { - encode(Gn, Sn = gn.Writer.create()) { - return Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = Bn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return {} - }, - toJSON(Gn) { - return {} - }, - fromPartial(Gn) { - return Bn() - }, - } - function kn() { - return { proposalId: sn.Long.UZERO, depositor: '', amount: [] } - } - e.MsgDeposit = { - encode(Gn, Sn = gn.Writer.create()) { - Gn.proposalId.isZero() || Sn.uint32(8).uint64(Gn.proposalId), - Gn.depositor !== '' && Sn.uint32(18).string(Gn.depositor) - for (const Zn of Gn.amount) en.Coin.encode(Zn, Sn.uint32(26).fork()).ldelim() - return Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = kn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - case 1: - En.proposalId = Zn.uint64() - break - case 2: - En.depositor = Zn.string() - break - case 3: - En.amount.push(en.Coin.decode(Zn, Zn.uint32())) - break - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return { - proposalId: (0, sn.isSet)(Gn.proposalId) ? sn.Long.fromValue(Gn.proposalId) : sn.Long.UZERO, - depositor: (0, sn.isSet)(Gn.depositor) ? String(Gn.depositor) : '', - amount: Array.isArray(Gn?.amount) ? Gn.amount.map((Sn) => en.Coin.fromJSON(Sn)) : [], - } - }, - toJSON(Gn) { - const Sn = {} - return ( - Gn.proposalId !== void 0 && (Sn.proposalId = (Gn.proposalId || sn.Long.UZERO).toString()), - Gn.depositor !== void 0 && (Sn.depositor = Gn.depositor), - Gn.amount - ? (Sn.amount = Gn.amount.map((Zn) => (Zn ? en.Coin.toJSON(Zn) : void 0))) - : (Sn.amount = []), - Sn - ) - }, - fromPartial(Gn) { - const Sn = kn() - return ( - (Sn.proposalId = - Gn.proposalId !== void 0 && Gn.proposalId !== null - ? sn.Long.fromValue(Gn.proposalId) - : sn.Long.UZERO), - (Sn.depositor = Gn.depositor ?? ''), - (Sn.amount = Gn.amount?.map((Zn) => en.Coin.fromPartial(Zn)) || []), - Sn - ) - }, - } - function ln() { - return {} - } - e.MsgDepositResponse = { - encode(Gn, Sn = gn.Writer.create()) { - return Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = ln() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return {} - }, - toJSON(Gn) { - return {} - }, - fromPartial(Gn) { - return ln() - }, - } - function yn() { - return { authority: '', params: void 0 } - } - e.MsgUpdateParams = { - encode(Gn, Sn = gn.Writer.create()) { - return ( - Gn.authority !== '' && Sn.uint32(10).string(Gn.authority), - Gn.params !== void 0 && nn.Params.encode(Gn.params, Sn.uint32(18).fork()).ldelim(), - Sn - ) - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = yn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - case 1: - En.authority = Zn.string() - break - case 2: - En.params = nn.Params.decode(Zn, Zn.uint32()) - break - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return { - authority: (0, sn.isSet)(Gn.authority) ? String(Gn.authority) : '', - params: (0, sn.isSet)(Gn.params) ? nn.Params.fromJSON(Gn.params) : void 0, - } - }, - toJSON(Gn) { - const Sn = {} - return ( - Gn.authority !== void 0 && (Sn.authority = Gn.authority), - Gn.params !== void 0 && (Sn.params = Gn.params ? nn.Params.toJSON(Gn.params) : void 0), - Sn - ) - }, - fromPartial(Gn) { - const Sn = yn() - return ( - (Sn.authority = Gn.authority ?? ''), - (Sn.params = - Gn.params !== void 0 && Gn.params !== null ? nn.Params.fromPartial(Gn.params) : void 0), - Sn - ) - }, - } - function Cn() { - return {} - } - e.MsgUpdateParamsResponse = { - encode(Gn, Sn = gn.Writer.create()) { - return Sn - }, - decode(Gn, Sn) { - const Zn = Gn instanceof gn.Reader ? Gn : new gn.Reader(Gn) - let tn = Sn === void 0 ? Zn.len : Zn.pos + Sn - const En = Cn() - for (; Zn.pos < tn; ) { - const Mn = Zn.uint32() - switch (Mn >>> 3) { - default: - Zn.skipType(Mn & 7) - break - } - } - return En - }, - fromJSON(Gn) { - return {} - }, - toJSON(Gn) { - return {} - }, - fromPartial(Gn) { - return Cn() - }, - } - class Tn { - constructor(Sn) { - ;(this.rpc = Sn), - (this.SubmitProposal = this.SubmitProposal.bind(this)), - (this.ExecLegacyContent = this.ExecLegacyContent.bind(this)), - (this.Vote = this.Vote.bind(this)), - (this.VoteWeighted = this.VoteWeighted.bind(this)), - (this.Deposit = this.Deposit.bind(this)), - (this.UpdateParams = this.UpdateParams.bind(this)) - } - SubmitProposal(Sn) { - const Zn = e.MsgSubmitProposal.encode(Sn).finish() - return this.rpc - .request('cosmos.gov.v1.Msg', 'SubmitProposal', Zn) - .then((En) => e.MsgSubmitProposalResponse.decode(new gn.Reader(En))) - } - ExecLegacyContent(Sn) { - const Zn = e.MsgExecLegacyContent.encode(Sn).finish() - return this.rpc - .request('cosmos.gov.v1.Msg', 'ExecLegacyContent', Zn) - .then((En) => e.MsgExecLegacyContentResponse.decode(new gn.Reader(En))) - } - Vote(Sn) { - const Zn = e.MsgVote.encode(Sn).finish() - return this.rpc - .request('cosmos.gov.v1.Msg', 'Vote', Zn) - .then((En) => e.MsgVoteResponse.decode(new gn.Reader(En))) - } - VoteWeighted(Sn) { - const Zn = e.MsgVoteWeighted.encode(Sn).finish() - return this.rpc - .request('cosmos.gov.v1.Msg', 'VoteWeighted', Zn) - .then((En) => e.MsgVoteWeightedResponse.decode(new gn.Reader(En))) - } - Deposit(Sn) { - const Zn = e.MsgDeposit.encode(Sn).finish() - return this.rpc - .request('cosmos.gov.v1.Msg', 'Deposit', Zn) - .then((En) => e.MsgDepositResponse.decode(new gn.Reader(En))) - } - UpdateParams(Sn) { - const Zn = e.MsgUpdateParams.encode(Sn).finish() - return this.rpc - .request('cosmos.gov.v1.Msg', 'UpdateParams', Zn) - .then((En) => e.MsgUpdateParamsResponse.decode(new gn.Reader(En))) - } - } - e.MsgClientImpl = Tn -})(tx$9) -var tx$8 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn) - var Gn = Object.getOwnPropertyDescriptor(yn, Cn) - ;(!Gn || ('get' in Gn ? !yn.__esModule : Gn.writable || Gn.configurable)) && - (Gn = { - enumerable: !0, - get: function () { - return yn[Cn] - }, - }), - Object.defineProperty(ln, Tn, Gn) - } - : function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn), (ln[Tn] = yn[Cn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (ln, yn) { - Object.defineProperty(ln, 'default', { enumerable: !0, value: yn }) - } - : function (ln, yn) { - ln.default = yn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (ln) { - if (ln && ln.__esModule) return ln - var yn = {} - if (ln != null) - for (var Cn in ln) - Cn !== 'default' && Object.prototype.hasOwnProperty.call(ln, Cn) && o(yn, ln, Cn) - return _(yn, ln), yn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgDepositResponse = - e.MsgDeposit = - e.MsgVoteWeightedResponse = - e.MsgVoteWeighted = - e.MsgVoteResponse = - e.MsgVote = - e.MsgSubmitProposalResponse = - e.MsgSubmitProposal = - e.protobufPackage = - void 0) - const $ = any, - en = coin$1, - nn = gov$1, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'cosmos.gov.v1beta1' - function In() { - return { content: void 0, initialDeposit: [], proposer: '' } - } - e.MsgSubmitProposal = { - encode(ln, yn = gn.Writer.create()) { - ln.content !== void 0 && $.Any.encode(ln.content, yn.uint32(10).fork()).ldelim() - for (const Cn of ln.initialDeposit) en.Coin.encode(Cn, yn.uint32(18).fork()).ldelim() - return ln.proposer !== '' && yn.uint32(26).string(ln.proposer), yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = In() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.content = $.Any.decode(Cn, Cn.uint32()) - break - case 2: - Gn.initialDeposit.push(en.Coin.decode(Cn, Cn.uint32())) - break - case 3: - Gn.proposer = Cn.string() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - content: (0, sn.isSet)(ln.content) ? $.Any.fromJSON(ln.content) : void 0, - initialDeposit: Array.isArray(ln?.initialDeposit) - ? ln.initialDeposit.map((yn) => en.Coin.fromJSON(yn)) - : [], - proposer: (0, sn.isSet)(ln.proposer) ? String(ln.proposer) : '', - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.content !== void 0 && (yn.content = ln.content ? $.Any.toJSON(ln.content) : void 0), - ln.initialDeposit - ? (yn.initialDeposit = ln.initialDeposit.map((Cn) => (Cn ? en.Coin.toJSON(Cn) : void 0))) - : (yn.initialDeposit = []), - ln.proposer !== void 0 && (yn.proposer = ln.proposer), - yn - ) - }, - fromPartial(ln) { - const yn = In() - return ( - (yn.content = - ln.content !== void 0 && ln.content !== null ? $.Any.fromPartial(ln.content) : void 0), - (yn.initialDeposit = ln.initialDeposit?.map((Cn) => en.Coin.fromPartial(Cn)) || []), - (yn.proposer = ln.proposer ?? ''), - yn - ) - }, - } - function Jn() { - return { proposalId: sn.Long.UZERO } - } - e.MsgSubmitProposalResponse = { - encode(ln, yn = gn.Writer.create()) { - return ln.proposalId.isZero() || yn.uint32(8).uint64(ln.proposalId), yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Jn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.proposalId = Cn.uint64() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - proposalId: (0, sn.isSet)(ln.proposalId) ? sn.Long.fromValue(ln.proposalId) : sn.Long.UZERO, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.proposalId !== void 0 && (yn.proposalId = (ln.proposalId || sn.Long.UZERO).toString()), - yn - ) - }, - fromPartial(ln) { - const yn = Jn() - return ( - (yn.proposalId = - ln.proposalId !== void 0 && ln.proposalId !== null - ? sn.Long.fromValue(ln.proposalId) - : sn.Long.UZERO), - yn - ) - }, - } - function qn() { - return { proposalId: sn.Long.UZERO, voter: '', option: 0 } - } - e.MsgVote = { - encode(ln, yn = gn.Writer.create()) { - return ( - ln.proposalId.isZero() || yn.uint32(8).uint64(ln.proposalId), - ln.voter !== '' && yn.uint32(18).string(ln.voter), - ln.option !== 0 && yn.uint32(24).int32(ln.option), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = qn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.proposalId = Cn.uint64() - break - case 2: - Gn.voter = Cn.string() - break - case 3: - Gn.option = Cn.int32() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - proposalId: (0, sn.isSet)(ln.proposalId) ? sn.Long.fromValue(ln.proposalId) : sn.Long.UZERO, - voter: (0, sn.isSet)(ln.voter) ? String(ln.voter) : '', - option: (0, sn.isSet)(ln.option) ? (0, nn.voteOptionFromJSON)(ln.option) : 0, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.proposalId !== void 0 && (yn.proposalId = (ln.proposalId || sn.Long.UZERO).toString()), - ln.voter !== void 0 && (yn.voter = ln.voter), - ln.option !== void 0 && (yn.option = (0, nn.voteOptionToJSON)(ln.option)), - yn - ) - }, - fromPartial(ln) { - const yn = qn() - return ( - (yn.proposalId = - ln.proposalId !== void 0 && ln.proposalId !== null - ? sn.Long.fromValue(ln.proposalId) - : sn.Long.UZERO), - (yn.voter = ln.voter ?? ''), - (yn.option = ln.option ?? 0), - yn - ) - }, - } - function Kn() { - return {} - } - e.MsgVoteResponse = { - encode(ln, yn = gn.Writer.create()) { - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Kn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return {} - }, - toJSON(ln) { - return {} - }, - fromPartial(ln) { - return Kn() - }, - } - function an() { - return { proposalId: sn.Long.UZERO, voter: '', options: [] } - } - e.MsgVoteWeighted = { - encode(ln, yn = gn.Writer.create()) { - ln.proposalId.isZero() || yn.uint32(8).uint64(ln.proposalId), - ln.voter !== '' && yn.uint32(18).string(ln.voter) - for (const Cn of ln.options) nn.WeightedVoteOption.encode(Cn, yn.uint32(26).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = an() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.proposalId = Cn.uint64() - break - case 2: - Gn.voter = Cn.string() - break - case 3: - Gn.options.push(nn.WeightedVoteOption.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - proposalId: (0, sn.isSet)(ln.proposalId) ? sn.Long.fromValue(ln.proposalId) : sn.Long.UZERO, - voter: (0, sn.isSet)(ln.voter) ? String(ln.voter) : '', - options: Array.isArray(ln?.options) - ? ln.options.map((yn) => nn.WeightedVoteOption.fromJSON(yn)) - : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.proposalId !== void 0 && (yn.proposalId = (ln.proposalId || sn.Long.UZERO).toString()), - ln.voter !== void 0 && (yn.voter = ln.voter), - ln.options - ? (yn.options = ln.options.map((Cn) => (Cn ? nn.WeightedVoteOption.toJSON(Cn) : void 0))) - : (yn.options = []), - yn - ) - }, - fromPartial(ln) { - const yn = an() - return ( - (yn.proposalId = - ln.proposalId !== void 0 && ln.proposalId !== null - ? sn.Long.fromValue(ln.proposalId) - : sn.Long.UZERO), - (yn.voter = ln.voter ?? ''), - (yn.options = ln.options?.map((Cn) => nn.WeightedVoteOption.fromPartial(Cn)) || []), - yn - ) - }, - } - function xn() { - return {} - } - e.MsgVoteWeightedResponse = { - encode(ln, yn = gn.Writer.create()) { - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = xn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return {} - }, - toJSON(ln) { - return {} - }, - fromPartial(ln) { - return xn() - }, - } - function mn() { - return { proposalId: sn.Long.UZERO, depositor: '', amount: [] } - } - e.MsgDeposit = { - encode(ln, yn = gn.Writer.create()) { - ln.proposalId.isZero() || yn.uint32(8).uint64(ln.proposalId), - ln.depositor !== '' && yn.uint32(18).string(ln.depositor) - for (const Cn of ln.amount) en.Coin.encode(Cn, yn.uint32(26).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = mn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.proposalId = Cn.uint64() - break - case 2: - Gn.depositor = Cn.string() - break - case 3: - Gn.amount.push(en.Coin.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - proposalId: (0, sn.isSet)(ln.proposalId) ? sn.Long.fromValue(ln.proposalId) : sn.Long.UZERO, - depositor: (0, sn.isSet)(ln.depositor) ? String(ln.depositor) : '', - amount: Array.isArray(ln?.amount) ? ln.amount.map((yn) => en.Coin.fromJSON(yn)) : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.proposalId !== void 0 && (yn.proposalId = (ln.proposalId || sn.Long.UZERO).toString()), - ln.depositor !== void 0 && (yn.depositor = ln.depositor), - ln.amount - ? (yn.amount = ln.amount.map((Cn) => (Cn ? en.Coin.toJSON(Cn) : void 0))) - : (yn.amount = []), - yn - ) - }, - fromPartial(ln) { - const yn = mn() - return ( - (yn.proposalId = - ln.proposalId !== void 0 && ln.proposalId !== null - ? sn.Long.fromValue(ln.proposalId) - : sn.Long.UZERO), - (yn.depositor = ln.depositor ?? ''), - (yn.amount = ln.amount?.map((Cn) => en.Coin.fromPartial(Cn)) || []), - yn - ) - }, - } - function Bn() { - return {} - } - e.MsgDepositResponse = { - encode(ln, yn = gn.Writer.create()) { - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Bn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return {} - }, - toJSON(ln) { - return {} - }, - fromPartial(ln) { - return Bn() - }, - } - class kn { - constructor(yn) { - ;(this.rpc = yn), - (this.SubmitProposal = this.SubmitProposal.bind(this)), - (this.Vote = this.Vote.bind(this)), - (this.VoteWeighted = this.VoteWeighted.bind(this)), - (this.Deposit = this.Deposit.bind(this)) - } - SubmitProposal(yn) { - const Cn = e.MsgSubmitProposal.encode(yn).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Msg', 'SubmitProposal', Cn) - .then((Gn) => e.MsgSubmitProposalResponse.decode(new gn.Reader(Gn))) - } - Vote(yn) { - const Cn = e.MsgVote.encode(yn).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Msg', 'Vote', Cn) - .then((Gn) => e.MsgVoteResponse.decode(new gn.Reader(Gn))) - } - VoteWeighted(yn) { - const Cn = e.MsgVoteWeighted.encode(yn).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Msg', 'VoteWeighted', Cn) - .then((Gn) => e.MsgVoteWeightedResponse.decode(new gn.Reader(Gn))) - } - Deposit(yn) { - const Cn = e.MsgDeposit.encode(yn).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Msg', 'Deposit', Cn) - .then((Gn) => e.MsgDepositResponse.decode(new gn.Reader(Gn))) - } - } - e.MsgClientImpl = kn -})(tx$8) -Object.defineProperty(messages$5, '__esModule', { value: !0 }) -messages$5.isMsgVoteWeightedEncodeObject = - messages$5.isMsgVoteEncodeObject = - messages$5.isMsgSubmitProposalEncodeObject = - messages$5.isMsgDepositEncodeObject = - messages$5.govTypes = - void 0 -const tx_1$8 = tx$9, - tx_2$2 = tx$8 -messages$5.govTypes = [ - ['/cosmos.gov.v1.MsgDeposit', tx_1$8.MsgDeposit], - ['/cosmos.gov.v1.MsgSubmitProposal', tx_1$8.MsgSubmitProposal], - ['/cosmos.gov.v1.MsgUpdateParams', tx_1$8.MsgUpdateParams], - ['/cosmos.gov.v1.MsgVote', tx_1$8.MsgVote], - ['/cosmos.gov.v1.MsgVoteWeighted', tx_1$8.MsgVoteWeighted], - ['/cosmos.gov.v1beta1.MsgDeposit', tx_2$2.MsgDeposit], - ['/cosmos.gov.v1beta1.MsgSubmitProposal', tx_2$2.MsgSubmitProposal], - ['/cosmos.gov.v1beta1.MsgVote', tx_2$2.MsgVote], - ['/cosmos.gov.v1beta1.MsgVoteWeighted', tx_2$2.MsgVoteWeighted], -] -function isMsgDepositEncodeObject(e) { - return e.typeUrl === '/cosmos.gov.v1beta1.MsgDeposit' -} -messages$5.isMsgDepositEncodeObject = isMsgDepositEncodeObject -function isMsgSubmitProposalEncodeObject(e) { - return e.typeUrl === '/cosmos.gov.v1beta1.MsgSubmitProposal' -} -messages$5.isMsgSubmitProposalEncodeObject = isMsgSubmitProposalEncodeObject -function isMsgVoteEncodeObject(e) { - return e.typeUrl === '/cosmos.gov.v1beta1.MsgVote' -} -messages$5.isMsgVoteEncodeObject = isMsgVoteEncodeObject -function isMsgVoteWeightedEncodeObject(e) { - return e.typeUrl === '/cosmos.gov.v1beta1.MsgVoteWeighted' -} -messages$5.isMsgVoteWeightedEncodeObject = isMsgVoteWeightedEncodeObject -var queries$6 = {}, - query$8 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn) - var un = Object.getOwnPropertyDescriptor(En, Mn) - ;(!un || ('get' in un ? !En.__esModule : un.writable || un.configurable)) && - (un = { - enumerable: !0, - get: function () { - return En[Mn] - }, - }), - Object.defineProperty(tn, Hn, un) - } - : function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn), (tn[Hn] = En[Mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (tn, En) { - Object.defineProperty(tn, 'default', { enumerable: !0, value: En }) - } - : function (tn, En) { - tn.default = En - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (tn) { - if (tn && tn.__esModule) return tn - var En = {} - if (tn != null) - for (var Mn in tn) - Mn !== 'default' && Object.prototype.hasOwnProperty.call(tn, Mn) && o(En, tn, Mn) - return _(En, tn), En - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryTallyResultResponse = - e.QueryTallyResultRequest = - e.QueryDepositsResponse = - e.QueryDepositsRequest = - e.QueryDepositResponse = - e.QueryDepositRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.QueryVotesResponse = - e.QueryVotesRequest = - e.QueryVoteResponse = - e.QueryVoteRequest = - e.QueryProposalsResponse = - e.QueryProposalsRequest = - e.QueryProposalResponse = - e.QueryProposalRequest = - e.protobufPackage = - void 0) - const $ = gov$1, - en = pagination, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.gov.v1beta1' - function gn() { - return { proposalId: nn.Long.UZERO } - } - e.QueryProposalRequest = { - encode(tn, En = sn.Writer.create()) { - return tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, nn.isSet)(tn.proposalId) ? nn.Long.fromValue(tn.proposalId) : nn.Long.UZERO, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || nn.Long.UZERO).toString()), - En - ) - }, - fromPartial(tn) { - const En = gn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? nn.Long.fromValue(tn.proposalId) - : nn.Long.UZERO), - En - ) - }, - } - function In() { - return { proposal: void 0 } - } - e.QueryProposalResponse = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.proposal !== void 0 && $.Proposal.encode(tn.proposal, En.uint32(10).fork()).ldelim(), En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = In() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposal = $.Proposal.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { proposal: (0, nn.isSet)(tn.proposal) ? $.Proposal.fromJSON(tn.proposal) : void 0 } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposal !== void 0 && - (En.proposal = tn.proposal ? $.Proposal.toJSON(tn.proposal) : void 0), - En - ) - }, - fromPartial(tn) { - const En = In() - return ( - (En.proposal = - tn.proposal !== void 0 && tn.proposal !== null - ? $.Proposal.fromPartial(tn.proposal) - : void 0), - En - ) - }, - } - function Jn() { - return { proposalStatus: 0, voter: '', depositor: '', pagination: void 0 } - } - e.QueryProposalsRequest = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.proposalStatus !== 0 && En.uint32(8).int32(tn.proposalStatus), - tn.voter !== '' && En.uint32(18).string(tn.voter), - tn.depositor !== '' && En.uint32(26).string(tn.depositor), - tn.pagination !== void 0 && - en.PageRequest.encode(tn.pagination, En.uint32(34).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Jn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalStatus = Mn.int32() - break - case 2: - un.voter = Mn.string() - break - case 3: - un.depositor = Mn.string() - break - case 4: - un.pagination = en.PageRequest.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalStatus: (0, nn.isSet)(tn.proposalStatus) - ? (0, $.proposalStatusFromJSON)(tn.proposalStatus) - : 0, - voter: (0, nn.isSet)(tn.voter) ? String(tn.voter) : '', - depositor: (0, nn.isSet)(tn.depositor) ? String(tn.depositor) : '', - pagination: (0, nn.isSet)(tn.pagination) ? en.PageRequest.fromJSON(tn.pagination) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalStatus !== void 0 && - (En.proposalStatus = (0, $.proposalStatusToJSON)(tn.proposalStatus)), - tn.voter !== void 0 && (En.voter = tn.voter), - tn.depositor !== void 0 && (En.depositor = tn.depositor), - tn.pagination !== void 0 && - (En.pagination = tn.pagination ? en.PageRequest.toJSON(tn.pagination) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Jn() - return ( - (En.proposalStatus = tn.proposalStatus ?? 0), - (En.voter = tn.voter ?? ''), - (En.depositor = tn.depositor ?? ''), - (En.pagination = - tn.pagination !== void 0 && tn.pagination !== null - ? en.PageRequest.fromPartial(tn.pagination) - : void 0), - En - ) - }, - } - function qn() { - return { proposals: [], pagination: void 0 } - } - e.QueryProposalsResponse = { - encode(tn, En = sn.Writer.create()) { - for (const Mn of tn.proposals) $.Proposal.encode(Mn, En.uint32(10).fork()).ldelim() - return ( - tn.pagination !== void 0 && - en.PageResponse.encode(tn.pagination, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = qn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposals.push($.Proposal.decode(Mn, Mn.uint32())) - break - case 2: - un.pagination = en.PageResponse.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposals: Array.isArray(tn?.proposals) - ? tn.proposals.map((En) => $.Proposal.fromJSON(En)) - : [], - pagination: (0, nn.isSet)(tn.pagination) ? en.PageResponse.fromJSON(tn.pagination) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposals - ? (En.proposals = tn.proposals.map((Mn) => (Mn ? $.Proposal.toJSON(Mn) : void 0))) - : (En.proposals = []), - tn.pagination !== void 0 && - (En.pagination = tn.pagination ? en.PageResponse.toJSON(tn.pagination) : void 0), - En - ) - }, - fromPartial(tn) { - const En = qn() - return ( - (En.proposals = tn.proposals?.map((Mn) => $.Proposal.fromPartial(Mn)) || []), - (En.pagination = - tn.pagination !== void 0 && tn.pagination !== null - ? en.PageResponse.fromPartial(tn.pagination) - : void 0), - En - ) - }, - } - function Kn() { - return { proposalId: nn.Long.UZERO, voter: '' } - } - e.QueryVoteRequest = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.voter !== '' && En.uint32(18).string(tn.voter), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.voter = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, nn.isSet)(tn.proposalId) ? nn.Long.fromValue(tn.proposalId) : nn.Long.UZERO, - voter: (0, nn.isSet)(tn.voter) ? String(tn.voter) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || nn.Long.UZERO).toString()), - tn.voter !== void 0 && (En.voter = tn.voter), - En - ) - }, - fromPartial(tn) { - const En = Kn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? nn.Long.fromValue(tn.proposalId) - : nn.Long.UZERO), - (En.voter = tn.voter ?? ''), - En - ) - }, - } - function an() { - return { vote: void 0 } - } - e.QueryVoteResponse = { - encode(tn, En = sn.Writer.create()) { - return tn.vote !== void 0 && $.Vote.encode(tn.vote, En.uint32(10).fork()).ldelim(), En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = an() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.vote = $.Vote.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { vote: (0, nn.isSet)(tn.vote) ? $.Vote.fromJSON(tn.vote) : void 0 } - }, - toJSON(tn) { - const En = {} - return tn.vote !== void 0 && (En.vote = tn.vote ? $.Vote.toJSON(tn.vote) : void 0), En - }, - fromPartial(tn) { - const En = an() - return ( - (En.vote = tn.vote !== void 0 && tn.vote !== null ? $.Vote.fromPartial(tn.vote) : void 0), - En - ) - }, - } - function xn() { - return { proposalId: nn.Long.UZERO, pagination: void 0 } - } - e.QueryVotesRequest = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.pagination !== void 0 && - en.PageRequest.encode(tn.pagination, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = xn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.pagination = en.PageRequest.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, nn.isSet)(tn.proposalId) ? nn.Long.fromValue(tn.proposalId) : nn.Long.UZERO, - pagination: (0, nn.isSet)(tn.pagination) ? en.PageRequest.fromJSON(tn.pagination) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || nn.Long.UZERO).toString()), - tn.pagination !== void 0 && - (En.pagination = tn.pagination ? en.PageRequest.toJSON(tn.pagination) : void 0), - En - ) - }, - fromPartial(tn) { - const En = xn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? nn.Long.fromValue(tn.proposalId) - : nn.Long.UZERO), - (En.pagination = - tn.pagination !== void 0 && tn.pagination !== null - ? en.PageRequest.fromPartial(tn.pagination) - : void 0), - En - ) - }, - } - function mn() { - return { votes: [], pagination: void 0 } - } - e.QueryVotesResponse = { - encode(tn, En = sn.Writer.create()) { - for (const Mn of tn.votes) $.Vote.encode(Mn, En.uint32(10).fork()).ldelim() - return ( - tn.pagination !== void 0 && - en.PageResponse.encode(tn.pagination, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = mn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.votes.push($.Vote.decode(Mn, Mn.uint32())) - break - case 2: - un.pagination = en.PageResponse.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - votes: Array.isArray(tn?.votes) ? tn.votes.map((En) => $.Vote.fromJSON(En)) : [], - pagination: (0, nn.isSet)(tn.pagination) ? en.PageResponse.fromJSON(tn.pagination) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.votes - ? (En.votes = tn.votes.map((Mn) => (Mn ? $.Vote.toJSON(Mn) : void 0))) - : (En.votes = []), - tn.pagination !== void 0 && - (En.pagination = tn.pagination ? en.PageResponse.toJSON(tn.pagination) : void 0), - En - ) - }, - fromPartial(tn) { - const En = mn() - return ( - (En.votes = tn.votes?.map((Mn) => $.Vote.fromPartial(Mn)) || []), - (En.pagination = - tn.pagination !== void 0 && tn.pagination !== null - ? en.PageResponse.fromPartial(tn.pagination) - : void 0), - En - ) - }, - } - function Bn() { - return { paramsType: '' } - } - e.QueryParamsRequest = { - encode(tn, En = sn.Writer.create()) { - return tn.paramsType !== '' && En.uint32(10).string(tn.paramsType), En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Bn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.paramsType = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { paramsType: (0, nn.isSet)(tn.paramsType) ? String(tn.paramsType) : '' } - }, - toJSON(tn) { - const En = {} - return tn.paramsType !== void 0 && (En.paramsType = tn.paramsType), En - }, - fromPartial(tn) { - const En = Bn() - return (En.paramsType = tn.paramsType ?? ''), En - }, - } - function kn() { - return { votingParams: void 0, depositParams: void 0, tallyParams: void 0 } - } - e.QueryParamsResponse = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.votingParams !== void 0 && - $.VotingParams.encode(tn.votingParams, En.uint32(10).fork()).ldelim(), - tn.depositParams !== void 0 && - $.DepositParams.encode(tn.depositParams, En.uint32(18).fork()).ldelim(), - tn.tallyParams !== void 0 && - $.TallyParams.encode(tn.tallyParams, En.uint32(26).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.votingParams = $.VotingParams.decode(Mn, Mn.uint32()) - break - case 2: - un.depositParams = $.DepositParams.decode(Mn, Mn.uint32()) - break - case 3: - un.tallyParams = $.TallyParams.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - votingParams: (0, nn.isSet)(tn.votingParams) - ? $.VotingParams.fromJSON(tn.votingParams) - : void 0, - depositParams: (0, nn.isSet)(tn.depositParams) - ? $.DepositParams.fromJSON(tn.depositParams) - : void 0, - tallyParams: (0, nn.isSet)(tn.tallyParams) - ? $.TallyParams.fromJSON(tn.tallyParams) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.votingParams !== void 0 && - (En.votingParams = tn.votingParams ? $.VotingParams.toJSON(tn.votingParams) : void 0), - tn.depositParams !== void 0 && - (En.depositParams = tn.depositParams ? $.DepositParams.toJSON(tn.depositParams) : void 0), - tn.tallyParams !== void 0 && - (En.tallyParams = tn.tallyParams ? $.TallyParams.toJSON(tn.tallyParams) : void 0), - En - ) - }, - fromPartial(tn) { - const En = kn() - return ( - (En.votingParams = - tn.votingParams !== void 0 && tn.votingParams !== null - ? $.VotingParams.fromPartial(tn.votingParams) - : void 0), - (En.depositParams = - tn.depositParams !== void 0 && tn.depositParams !== null - ? $.DepositParams.fromPartial(tn.depositParams) - : void 0), - (En.tallyParams = - tn.tallyParams !== void 0 && tn.tallyParams !== null - ? $.TallyParams.fromPartial(tn.tallyParams) - : void 0), - En - ) - }, - } - function ln() { - return { proposalId: nn.Long.UZERO, depositor: '' } - } - e.QueryDepositRequest = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.depositor !== '' && En.uint32(18).string(tn.depositor), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = ln() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.depositor = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, nn.isSet)(tn.proposalId) ? nn.Long.fromValue(tn.proposalId) : nn.Long.UZERO, - depositor: (0, nn.isSet)(tn.depositor) ? String(tn.depositor) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || nn.Long.UZERO).toString()), - tn.depositor !== void 0 && (En.depositor = tn.depositor), - En - ) - }, - fromPartial(tn) { - const En = ln() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? nn.Long.fromValue(tn.proposalId) - : nn.Long.UZERO), - (En.depositor = tn.depositor ?? ''), - En - ) - }, - } - function yn() { - return { deposit: void 0 } - } - e.QueryDepositResponse = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.deposit !== void 0 && $.Deposit.encode(tn.deposit, En.uint32(10).fork()).ldelim(), En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = yn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.deposit = $.Deposit.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { deposit: (0, nn.isSet)(tn.deposit) ? $.Deposit.fromJSON(tn.deposit) : void 0 } - }, - toJSON(tn) { - const En = {} - return ( - tn.deposit !== void 0 && (En.deposit = tn.deposit ? $.Deposit.toJSON(tn.deposit) : void 0), - En - ) - }, - fromPartial(tn) { - const En = yn() - return ( - (En.deposit = - tn.deposit !== void 0 && tn.deposit !== null - ? $.Deposit.fromPartial(tn.deposit) - : void 0), - En - ) - }, - } - function Cn() { - return { proposalId: nn.Long.UZERO, pagination: void 0 } - } - e.QueryDepositsRequest = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), - tn.pagination !== void 0 && - en.PageRequest.encode(tn.pagination, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Cn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - case 2: - un.pagination = en.PageRequest.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, nn.isSet)(tn.proposalId) ? nn.Long.fromValue(tn.proposalId) : nn.Long.UZERO, - pagination: (0, nn.isSet)(tn.pagination) ? en.PageRequest.fromJSON(tn.pagination) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || nn.Long.UZERO).toString()), - tn.pagination !== void 0 && - (En.pagination = tn.pagination ? en.PageRequest.toJSON(tn.pagination) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Cn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? nn.Long.fromValue(tn.proposalId) - : nn.Long.UZERO), - (En.pagination = - tn.pagination !== void 0 && tn.pagination !== null - ? en.PageRequest.fromPartial(tn.pagination) - : void 0), - En - ) - }, - } - function Tn() { - return { deposits: [], pagination: void 0 } - } - e.QueryDepositsResponse = { - encode(tn, En = sn.Writer.create()) { - for (const Mn of tn.deposits) $.Deposit.encode(Mn, En.uint32(10).fork()).ldelim() - return ( - tn.pagination !== void 0 && - en.PageResponse.encode(tn.pagination, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Tn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.deposits.push($.Deposit.decode(Mn, Mn.uint32())) - break - case 2: - un.pagination = en.PageResponse.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - deposits: Array.isArray(tn?.deposits) - ? tn.deposits.map((En) => $.Deposit.fromJSON(En)) - : [], - pagination: (0, nn.isSet)(tn.pagination) ? en.PageResponse.fromJSON(tn.pagination) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.deposits - ? (En.deposits = tn.deposits.map((Mn) => (Mn ? $.Deposit.toJSON(Mn) : void 0))) - : (En.deposits = []), - tn.pagination !== void 0 && - (En.pagination = tn.pagination ? en.PageResponse.toJSON(tn.pagination) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Tn() - return ( - (En.deposits = tn.deposits?.map((Mn) => $.Deposit.fromPartial(Mn)) || []), - (En.pagination = - tn.pagination !== void 0 && tn.pagination !== null - ? en.PageResponse.fromPartial(tn.pagination) - : void 0), - En - ) - }, - } - function Gn() { - return { proposalId: nn.Long.UZERO } - } - e.QueryTallyResultRequest = { - encode(tn, En = sn.Writer.create()) { - return tn.proposalId.isZero() || En.uint32(8).uint64(tn.proposalId), En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.proposalId = Mn.uint64() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - proposalId: (0, nn.isSet)(tn.proposalId) ? nn.Long.fromValue(tn.proposalId) : nn.Long.UZERO, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.proposalId !== void 0 && (En.proposalId = (tn.proposalId || nn.Long.UZERO).toString()), - En - ) - }, - fromPartial(tn) { - const En = Gn() - return ( - (En.proposalId = - tn.proposalId !== void 0 && tn.proposalId !== null - ? nn.Long.fromValue(tn.proposalId) - : nn.Long.UZERO), - En - ) - }, - } - function Sn() { - return { tally: void 0 } - } - e.QueryTallyResultResponse = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.tally !== void 0 && $.TallyResult.encode(tn.tally, En.uint32(10).fork()).ldelim(), En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Sn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.tally = $.TallyResult.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { tally: (0, nn.isSet)(tn.tally) ? $.TallyResult.fromJSON(tn.tally) : void 0 } - }, - toJSON(tn) { - const En = {} - return ( - tn.tally !== void 0 && (En.tally = tn.tally ? $.TallyResult.toJSON(tn.tally) : void 0), En - ) - }, - fromPartial(tn) { - const En = Sn() - return ( - (En.tally = - tn.tally !== void 0 && tn.tally !== null ? $.TallyResult.fromPartial(tn.tally) : void 0), - En - ) - }, - } - class Zn { - constructor(En) { - ;(this.rpc = En), - (this.Proposal = this.Proposal.bind(this)), - (this.Proposals = this.Proposals.bind(this)), - (this.Vote = this.Vote.bind(this)), - (this.Votes = this.Votes.bind(this)), - (this.Params = this.Params.bind(this)), - (this.Deposit = this.Deposit.bind(this)), - (this.Deposits = this.Deposits.bind(this)), - (this.TallyResult = this.TallyResult.bind(this)) - } - Proposal(En) { - const Mn = e.QueryProposalRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'Proposal', Mn) - .then((un) => e.QueryProposalResponse.decode(new sn.Reader(un))) - } - Proposals(En) { - const Mn = e.QueryProposalsRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'Proposals', Mn) - .then((un) => e.QueryProposalsResponse.decode(new sn.Reader(un))) - } - Vote(En) { - const Mn = e.QueryVoteRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'Vote', Mn) - .then((un) => e.QueryVoteResponse.decode(new sn.Reader(un))) - } - Votes(En) { - const Mn = e.QueryVotesRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'Votes', Mn) - .then((un) => e.QueryVotesResponse.decode(new sn.Reader(un))) - } - Params(En) { - const Mn = e.QueryParamsRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'Params', Mn) - .then((un) => e.QueryParamsResponse.decode(new sn.Reader(un))) - } - Deposit(En) { - const Mn = e.QueryDepositRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'Deposit', Mn) - .then((un) => e.QueryDepositResponse.decode(new sn.Reader(un))) - } - Deposits(En) { - const Mn = e.QueryDepositsRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'Deposits', Mn) - .then((un) => e.QueryDepositsResponse.decode(new sn.Reader(un))) - } - TallyResult(En) { - const Mn = e.QueryTallyResultRequest.encode(En).finish() - return this.rpc - .request('cosmos.gov.v1beta1.Query', 'TallyResult', Mn) - .then((un) => e.QueryTallyResultResponse.decode(new sn.Reader(un))) - } - } - e.QueryClientImpl = Zn -})(query$8) -Object.defineProperty(queries$6, '__esModule', { value: !0 }) -queries$6.setupGovExtension = void 0 -const query_1$5 = query$8, - queryclient_1$6 = queryclient$1 -function setupGovExtension(e) { - const o = (0, queryclient_1$6.createProtobufRpcClient)(e), - _ = new query_1$5.QueryClientImpl(o) - return { - gov: { - params: async (b) => await _.Params({ paramsType: b }), - proposals: async (b, $, en, nn) => - await _.Proposals({ - proposalStatus: b, - depositor: $, - voter: en, - pagination: (0, queryclient_1$6.createPagination)(nn), - }), - proposal: async (b) => await _.Proposal({ proposalId: (0, queryclient_1$6.longify)(b) }), - deposits: async (b, $) => - await _.Deposits({ - proposalId: (0, queryclient_1$6.longify)(b), - pagination: (0, queryclient_1$6.createPagination)($), - }), - deposit: async (b, $) => - await _.Deposit({ proposalId: (0, queryclient_1$6.longify)(b), depositor: $ }), - tally: async (b) => await _.TallyResult({ proposalId: (0, queryclient_1$6.longify)(b) }), - votes: async (b, $) => - await _.Votes({ - proposalId: (0, queryclient_1$6.longify)(b), - pagination: (0, queryclient_1$6.createPagination)($), - }), - vote: async (b, $) => await _.Vote({ proposalId: (0, queryclient_1$6.longify)(b), voter: $ }), - }, - } -} -queries$6.setupGovExtension = setupGovExtension -var aminomessages$5 = {} -Object.defineProperty(aminomessages$5, '__esModule', { value: !0 }) -aminomessages$5.createGroupAminoConverters = void 0 -function createGroupAminoConverters() { - return {} -} -aminomessages$5.createGroupAminoConverters = createGroupAminoConverters -var messages$4 = {}, - tx$7 = {}, - types$6 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (un, dn, Nn, fn) { - fn === void 0 && (fn = Nn) - var _n = Object.getOwnPropertyDescriptor(dn, Nn) - ;(!_n || ('get' in _n ? !dn.__esModule : _n.writable || _n.configurable)) && - (_n = { - enumerable: !0, - get: function () { - return dn[Nn] - }, - }), - Object.defineProperty(un, fn, _n) - } - : function (un, dn, Nn, fn) { - fn === void 0 && (fn = Nn), (un[fn] = dn[Nn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (un, dn) { - Object.defineProperty(un, 'default', { enumerable: !0, value: dn }) - } - : function (un, dn) { - un.default = dn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (un) { - if (un && un.__esModule) return un - var dn = {} - if (un != null) - for (var Nn in un) - Nn !== 'default' && Object.prototype.hasOwnProperty.call(un, Nn) && o(dn, un, Nn) - return _(dn, un), dn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Vote = - e.TallyResult = - e.Proposal = - e.GroupPolicyInfo = - e.GroupMember = - e.GroupInfo = - e.DecisionPolicyWindows = - e.PercentageDecisionPolicy = - e.ThresholdDecisionPolicy = - e.MemberRequest = - e.Member = - e.proposalExecutorResultToJSON = - e.proposalExecutorResultFromJSON = - e.ProposalExecutorResult = - e.proposalStatusToJSON = - e.proposalStatusFromJSON = - e.ProposalStatus = - e.voteOptionToJSON = - e.voteOptionFromJSON = - e.VoteOption = - e.protobufPackage = - void 0) - const $ = timestamp, - en = duration, - nn = any, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'cosmos.group.v1' - var In - ;(function (un) { - ;(un[(un.VOTE_OPTION_UNSPECIFIED = 0)] = 'VOTE_OPTION_UNSPECIFIED'), - (un[(un.VOTE_OPTION_YES = 1)] = 'VOTE_OPTION_YES'), - (un[(un.VOTE_OPTION_ABSTAIN = 2)] = 'VOTE_OPTION_ABSTAIN'), - (un[(un.VOTE_OPTION_NO = 3)] = 'VOTE_OPTION_NO'), - (un[(un.VOTE_OPTION_NO_WITH_VETO = 4)] = 'VOTE_OPTION_NO_WITH_VETO'), - (un[(un.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((In = e.VoteOption || (e.VoteOption = {}))) - function Jn(un) { - switch (un) { - case 0: - case 'VOTE_OPTION_UNSPECIFIED': - return In.VOTE_OPTION_UNSPECIFIED - case 1: - case 'VOTE_OPTION_YES': - return In.VOTE_OPTION_YES - case 2: - case 'VOTE_OPTION_ABSTAIN': - return In.VOTE_OPTION_ABSTAIN - case 3: - case 'VOTE_OPTION_NO': - return In.VOTE_OPTION_NO - case 4: - case 'VOTE_OPTION_NO_WITH_VETO': - return In.VOTE_OPTION_NO_WITH_VETO - case -1: - case 'UNRECOGNIZED': - default: - return In.UNRECOGNIZED - } - } - e.voteOptionFromJSON = Jn - function qn(un) { - switch (un) { - case In.VOTE_OPTION_UNSPECIFIED: - return 'VOTE_OPTION_UNSPECIFIED' - case In.VOTE_OPTION_YES: - return 'VOTE_OPTION_YES' - case In.VOTE_OPTION_ABSTAIN: - return 'VOTE_OPTION_ABSTAIN' - case In.VOTE_OPTION_NO: - return 'VOTE_OPTION_NO' - case In.VOTE_OPTION_NO_WITH_VETO: - return 'VOTE_OPTION_NO_WITH_VETO' - case In.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.voteOptionToJSON = qn - var Kn - ;(function (un) { - ;(un[(un.PROPOSAL_STATUS_UNSPECIFIED = 0)] = 'PROPOSAL_STATUS_UNSPECIFIED'), - (un[(un.PROPOSAL_STATUS_SUBMITTED = 1)] = 'PROPOSAL_STATUS_SUBMITTED'), - (un[(un.PROPOSAL_STATUS_ACCEPTED = 2)] = 'PROPOSAL_STATUS_ACCEPTED'), - (un[(un.PROPOSAL_STATUS_REJECTED = 3)] = 'PROPOSAL_STATUS_REJECTED'), - (un[(un.PROPOSAL_STATUS_ABORTED = 4)] = 'PROPOSAL_STATUS_ABORTED'), - (un[(un.PROPOSAL_STATUS_WITHDRAWN = 5)] = 'PROPOSAL_STATUS_WITHDRAWN'), - (un[(un.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Kn = e.ProposalStatus || (e.ProposalStatus = {}))) - function an(un) { - switch (un) { - case 0: - case 'PROPOSAL_STATUS_UNSPECIFIED': - return Kn.PROPOSAL_STATUS_UNSPECIFIED - case 1: - case 'PROPOSAL_STATUS_SUBMITTED': - return Kn.PROPOSAL_STATUS_SUBMITTED - case 2: - case 'PROPOSAL_STATUS_ACCEPTED': - return Kn.PROPOSAL_STATUS_ACCEPTED - case 3: - case 'PROPOSAL_STATUS_REJECTED': - return Kn.PROPOSAL_STATUS_REJECTED - case 4: - case 'PROPOSAL_STATUS_ABORTED': - return Kn.PROPOSAL_STATUS_ABORTED - case 5: - case 'PROPOSAL_STATUS_WITHDRAWN': - return Kn.PROPOSAL_STATUS_WITHDRAWN - case -1: - case 'UNRECOGNIZED': - default: - return Kn.UNRECOGNIZED - } - } - e.proposalStatusFromJSON = an - function xn(un) { - switch (un) { - case Kn.PROPOSAL_STATUS_UNSPECIFIED: - return 'PROPOSAL_STATUS_UNSPECIFIED' - case Kn.PROPOSAL_STATUS_SUBMITTED: - return 'PROPOSAL_STATUS_SUBMITTED' - case Kn.PROPOSAL_STATUS_ACCEPTED: - return 'PROPOSAL_STATUS_ACCEPTED' - case Kn.PROPOSAL_STATUS_REJECTED: - return 'PROPOSAL_STATUS_REJECTED' - case Kn.PROPOSAL_STATUS_ABORTED: - return 'PROPOSAL_STATUS_ABORTED' - case Kn.PROPOSAL_STATUS_WITHDRAWN: - return 'PROPOSAL_STATUS_WITHDRAWN' - case Kn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.proposalStatusToJSON = xn - var mn - ;(function (un) { - ;(un[(un.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED = 0)] = 'PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED'), - (un[(un.PROPOSAL_EXECUTOR_RESULT_NOT_RUN = 1)] = 'PROPOSAL_EXECUTOR_RESULT_NOT_RUN'), - (un[(un.PROPOSAL_EXECUTOR_RESULT_SUCCESS = 2)] = 'PROPOSAL_EXECUTOR_RESULT_SUCCESS'), - (un[(un.PROPOSAL_EXECUTOR_RESULT_FAILURE = 3)] = 'PROPOSAL_EXECUTOR_RESULT_FAILURE'), - (un[(un.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((mn = e.ProposalExecutorResult || (e.ProposalExecutorResult = {}))) - function Bn(un) { - switch (un) { - case 0: - case 'PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED': - return mn.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED - case 1: - case 'PROPOSAL_EXECUTOR_RESULT_NOT_RUN': - return mn.PROPOSAL_EXECUTOR_RESULT_NOT_RUN - case 2: - case 'PROPOSAL_EXECUTOR_RESULT_SUCCESS': - return mn.PROPOSAL_EXECUTOR_RESULT_SUCCESS - case 3: - case 'PROPOSAL_EXECUTOR_RESULT_FAILURE': - return mn.PROPOSAL_EXECUTOR_RESULT_FAILURE - case -1: - case 'UNRECOGNIZED': - default: - return mn.UNRECOGNIZED - } - } - e.proposalExecutorResultFromJSON = Bn - function kn(un) { - switch (un) { - case mn.PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED: - return 'PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED' - case mn.PROPOSAL_EXECUTOR_RESULT_NOT_RUN: - return 'PROPOSAL_EXECUTOR_RESULT_NOT_RUN' - case mn.PROPOSAL_EXECUTOR_RESULT_SUCCESS: - return 'PROPOSAL_EXECUTOR_RESULT_SUCCESS' - case mn.PROPOSAL_EXECUTOR_RESULT_FAILURE: - return 'PROPOSAL_EXECUTOR_RESULT_FAILURE' - case mn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.proposalExecutorResultToJSON = kn - function ln() { - return { address: '', weight: '', metadata: '', addedAt: void 0 } - } - e.Member = { - encode(un, dn = gn.Writer.create()) { - return ( - un.address !== '' && dn.uint32(10).string(un.address), - un.weight !== '' && dn.uint32(18).string(un.weight), - un.metadata !== '' && dn.uint32(26).string(un.metadata), - un.addedAt !== void 0 && $.Timestamp.encode(un.addedAt, dn.uint32(34).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = ln() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.address = Nn.string() - break - case 2: - _n.weight = Nn.string() - break - case 3: - _n.metadata = Nn.string() - break - case 4: - _n.addedAt = $.Timestamp.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - address: (0, sn.isSet)(un.address) ? String(un.address) : '', - weight: (0, sn.isSet)(un.weight) ? String(un.weight) : '', - metadata: (0, sn.isSet)(un.metadata) ? String(un.metadata) : '', - addedAt: (0, sn.isSet)(un.addedAt) ? (0, sn.fromJsonTimestamp)(un.addedAt) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.address !== void 0 && (dn.address = un.address), - un.weight !== void 0 && (dn.weight = un.weight), - un.metadata !== void 0 && (dn.metadata = un.metadata), - un.addedAt !== void 0 && (dn.addedAt = (0, sn.fromTimestamp)(un.addedAt).toISOString()), - dn - ) - }, - fromPartial(un) { - const dn = ln() - return ( - (dn.address = un.address ?? ''), - (dn.weight = un.weight ?? ''), - (dn.metadata = un.metadata ?? ''), - (dn.addedAt = - un.addedAt !== void 0 && un.addedAt !== null - ? $.Timestamp.fromPartial(un.addedAt) - : void 0), - dn - ) - }, - } - function yn() { - return { address: '', weight: '', metadata: '' } - } - e.MemberRequest = { - encode(un, dn = gn.Writer.create()) { - return ( - un.address !== '' && dn.uint32(10).string(un.address), - un.weight !== '' && dn.uint32(18).string(un.weight), - un.metadata !== '' && dn.uint32(26).string(un.metadata), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = yn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.address = Nn.string() - break - case 2: - _n.weight = Nn.string() - break - case 3: - _n.metadata = Nn.string() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - address: (0, sn.isSet)(un.address) ? String(un.address) : '', - weight: (0, sn.isSet)(un.weight) ? String(un.weight) : '', - metadata: (0, sn.isSet)(un.metadata) ? String(un.metadata) : '', - } - }, - toJSON(un) { - const dn = {} - return ( - un.address !== void 0 && (dn.address = un.address), - un.weight !== void 0 && (dn.weight = un.weight), - un.metadata !== void 0 && (dn.metadata = un.metadata), - dn - ) - }, - fromPartial(un) { - const dn = yn() - return ( - (dn.address = un.address ?? ''), - (dn.weight = un.weight ?? ''), - (dn.metadata = un.metadata ?? ''), - dn - ) - }, - } - function Cn() { - return { threshold: '', windows: void 0 } - } - e.ThresholdDecisionPolicy = { - encode(un, dn = gn.Writer.create()) { - return ( - un.threshold !== '' && dn.uint32(10).string(un.threshold), - un.windows !== void 0 && - e.DecisionPolicyWindows.encode(un.windows, dn.uint32(18).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Cn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.threshold = Nn.string() - break - case 2: - _n.windows = e.DecisionPolicyWindows.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - threshold: (0, sn.isSet)(un.threshold) ? String(un.threshold) : '', - windows: (0, sn.isSet)(un.windows) ? e.DecisionPolicyWindows.fromJSON(un.windows) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.threshold !== void 0 && (dn.threshold = un.threshold), - un.windows !== void 0 && - (dn.windows = un.windows ? e.DecisionPolicyWindows.toJSON(un.windows) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = Cn() - return ( - (dn.threshold = un.threshold ?? ''), - (dn.windows = - un.windows !== void 0 && un.windows !== null - ? e.DecisionPolicyWindows.fromPartial(un.windows) - : void 0), - dn - ) - }, - } - function Tn() { - return { percentage: '', windows: void 0 } - } - e.PercentageDecisionPolicy = { - encode(un, dn = gn.Writer.create()) { - return ( - un.percentage !== '' && dn.uint32(10).string(un.percentage), - un.windows !== void 0 && - e.DecisionPolicyWindows.encode(un.windows, dn.uint32(18).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Tn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.percentage = Nn.string() - break - case 2: - _n.windows = e.DecisionPolicyWindows.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - percentage: (0, sn.isSet)(un.percentage) ? String(un.percentage) : '', - windows: (0, sn.isSet)(un.windows) ? e.DecisionPolicyWindows.fromJSON(un.windows) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.percentage !== void 0 && (dn.percentage = un.percentage), - un.windows !== void 0 && - (dn.windows = un.windows ? e.DecisionPolicyWindows.toJSON(un.windows) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = Tn() - return ( - (dn.percentage = un.percentage ?? ''), - (dn.windows = - un.windows !== void 0 && un.windows !== null - ? e.DecisionPolicyWindows.fromPartial(un.windows) - : void 0), - dn - ) - }, - } - function Gn() { - return { votingPeriod: void 0, minExecutionPeriod: void 0 } - } - e.DecisionPolicyWindows = { - encode(un, dn = gn.Writer.create()) { - return ( - un.votingPeriod !== void 0 && - en.Duration.encode(un.votingPeriod, dn.uint32(10).fork()).ldelim(), - un.minExecutionPeriod !== void 0 && - en.Duration.encode(un.minExecutionPeriod, dn.uint32(18).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Gn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.votingPeriod = en.Duration.decode(Nn, Nn.uint32()) - break - case 2: - _n.minExecutionPeriod = en.Duration.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - votingPeriod: (0, sn.isSet)(un.votingPeriod) - ? en.Duration.fromJSON(un.votingPeriod) - : void 0, - minExecutionPeriod: (0, sn.isSet)(un.minExecutionPeriod) - ? en.Duration.fromJSON(un.minExecutionPeriod) - : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.votingPeriod !== void 0 && - (dn.votingPeriod = un.votingPeriod ? en.Duration.toJSON(un.votingPeriod) : void 0), - un.minExecutionPeriod !== void 0 && - (dn.minExecutionPeriod = un.minExecutionPeriod - ? en.Duration.toJSON(un.minExecutionPeriod) - : void 0), - dn - ) - }, - fromPartial(un) { - const dn = Gn() - return ( - (dn.votingPeriod = - un.votingPeriod !== void 0 && un.votingPeriod !== null - ? en.Duration.fromPartial(un.votingPeriod) - : void 0), - (dn.minExecutionPeriod = - un.minExecutionPeriod !== void 0 && un.minExecutionPeriod !== null - ? en.Duration.fromPartial(un.minExecutionPeriod) - : void 0), - dn - ) - }, - } - function Sn() { - return { - id: sn.Long.UZERO, - admin: '', - metadata: '', - version: sn.Long.UZERO, - totalWeight: '', - createdAt: void 0, - } - } - e.GroupInfo = { - encode(un, dn = gn.Writer.create()) { - return ( - un.id.isZero() || dn.uint32(8).uint64(un.id), - un.admin !== '' && dn.uint32(18).string(un.admin), - un.metadata !== '' && dn.uint32(26).string(un.metadata), - un.version.isZero() || dn.uint32(32).uint64(un.version), - un.totalWeight !== '' && dn.uint32(42).string(un.totalWeight), - un.createdAt !== void 0 && $.Timestamp.encode(un.createdAt, dn.uint32(50).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Sn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.id = Nn.uint64() - break - case 2: - _n.admin = Nn.string() - break - case 3: - _n.metadata = Nn.string() - break - case 4: - _n.version = Nn.uint64() - break - case 5: - _n.totalWeight = Nn.string() - break - case 6: - _n.createdAt = $.Timestamp.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - id: (0, sn.isSet)(un.id) ? sn.Long.fromValue(un.id) : sn.Long.UZERO, - admin: (0, sn.isSet)(un.admin) ? String(un.admin) : '', - metadata: (0, sn.isSet)(un.metadata) ? String(un.metadata) : '', - version: (0, sn.isSet)(un.version) ? sn.Long.fromValue(un.version) : sn.Long.UZERO, - totalWeight: (0, sn.isSet)(un.totalWeight) ? String(un.totalWeight) : '', - createdAt: (0, sn.isSet)(un.createdAt) ? (0, sn.fromJsonTimestamp)(un.createdAt) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.id !== void 0 && (dn.id = (un.id || sn.Long.UZERO).toString()), - un.admin !== void 0 && (dn.admin = un.admin), - un.metadata !== void 0 && (dn.metadata = un.metadata), - un.version !== void 0 && (dn.version = (un.version || sn.Long.UZERO).toString()), - un.totalWeight !== void 0 && (dn.totalWeight = un.totalWeight), - un.createdAt !== void 0 && - (dn.createdAt = (0, sn.fromTimestamp)(un.createdAt).toISOString()), - dn - ) - }, - fromPartial(un) { - const dn = Sn() - return ( - (dn.id = un.id !== void 0 && un.id !== null ? sn.Long.fromValue(un.id) : sn.Long.UZERO), - (dn.admin = un.admin ?? ''), - (dn.metadata = un.metadata ?? ''), - (dn.version = - un.version !== void 0 && un.version !== null - ? sn.Long.fromValue(un.version) - : sn.Long.UZERO), - (dn.totalWeight = un.totalWeight ?? ''), - (dn.createdAt = - un.createdAt !== void 0 && un.createdAt !== null - ? $.Timestamp.fromPartial(un.createdAt) - : void 0), - dn - ) - }, - } - function Zn() { - return { groupId: sn.Long.UZERO, member: void 0 } - } - e.GroupMember = { - encode(un, dn = gn.Writer.create()) { - return ( - un.groupId.isZero() || dn.uint32(8).uint64(un.groupId), - un.member !== void 0 && e.Member.encode(un.member, dn.uint32(18).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Zn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.groupId = Nn.uint64() - break - case 2: - _n.member = e.Member.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - groupId: (0, sn.isSet)(un.groupId) ? sn.Long.fromValue(un.groupId) : sn.Long.UZERO, - member: (0, sn.isSet)(un.member) ? e.Member.fromJSON(un.member) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.groupId !== void 0 && (dn.groupId = (un.groupId || sn.Long.UZERO).toString()), - un.member !== void 0 && (dn.member = un.member ? e.Member.toJSON(un.member) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = Zn() - return ( - (dn.groupId = - un.groupId !== void 0 && un.groupId !== null - ? sn.Long.fromValue(un.groupId) - : sn.Long.UZERO), - (dn.member = - un.member !== void 0 && un.member !== null ? e.Member.fromPartial(un.member) : void 0), - dn - ) - }, - } - function tn() { - return { - address: '', - groupId: sn.Long.UZERO, - admin: '', - metadata: '', - version: sn.Long.UZERO, - decisionPolicy: void 0, - createdAt: void 0, - } - } - e.GroupPolicyInfo = { - encode(un, dn = gn.Writer.create()) { - return ( - un.address !== '' && dn.uint32(10).string(un.address), - un.groupId.isZero() || dn.uint32(16).uint64(un.groupId), - un.admin !== '' && dn.uint32(26).string(un.admin), - un.metadata !== '' && dn.uint32(34).string(un.metadata), - un.version.isZero() || dn.uint32(40).uint64(un.version), - un.decisionPolicy !== void 0 && - nn.Any.encode(un.decisionPolicy, dn.uint32(50).fork()).ldelim(), - un.createdAt !== void 0 && $.Timestamp.encode(un.createdAt, dn.uint32(58).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = tn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.address = Nn.string() - break - case 2: - _n.groupId = Nn.uint64() - break - case 3: - _n.admin = Nn.string() - break - case 4: - _n.metadata = Nn.string() - break - case 5: - _n.version = Nn.uint64() - break - case 6: - _n.decisionPolicy = nn.Any.decode(Nn, Nn.uint32()) - break - case 7: - _n.createdAt = $.Timestamp.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - address: (0, sn.isSet)(un.address) ? String(un.address) : '', - groupId: (0, sn.isSet)(un.groupId) ? sn.Long.fromValue(un.groupId) : sn.Long.UZERO, - admin: (0, sn.isSet)(un.admin) ? String(un.admin) : '', - metadata: (0, sn.isSet)(un.metadata) ? String(un.metadata) : '', - version: (0, sn.isSet)(un.version) ? sn.Long.fromValue(un.version) : sn.Long.UZERO, - decisionPolicy: (0, sn.isSet)(un.decisionPolicy) - ? nn.Any.fromJSON(un.decisionPolicy) - : void 0, - createdAt: (0, sn.isSet)(un.createdAt) ? (0, sn.fromJsonTimestamp)(un.createdAt) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.address !== void 0 && (dn.address = un.address), - un.groupId !== void 0 && (dn.groupId = (un.groupId || sn.Long.UZERO).toString()), - un.admin !== void 0 && (dn.admin = un.admin), - un.metadata !== void 0 && (dn.metadata = un.metadata), - un.version !== void 0 && (dn.version = (un.version || sn.Long.UZERO).toString()), - un.decisionPolicy !== void 0 && - (dn.decisionPolicy = un.decisionPolicy ? nn.Any.toJSON(un.decisionPolicy) : void 0), - un.createdAt !== void 0 && - (dn.createdAt = (0, sn.fromTimestamp)(un.createdAt).toISOString()), - dn - ) - }, - fromPartial(un) { - const dn = tn() - return ( - (dn.address = un.address ?? ''), - (dn.groupId = - un.groupId !== void 0 && un.groupId !== null - ? sn.Long.fromValue(un.groupId) - : sn.Long.UZERO), - (dn.admin = un.admin ?? ''), - (dn.metadata = un.metadata ?? ''), - (dn.version = - un.version !== void 0 && un.version !== null - ? sn.Long.fromValue(un.version) - : sn.Long.UZERO), - (dn.decisionPolicy = - un.decisionPolicy !== void 0 && un.decisionPolicy !== null - ? nn.Any.fromPartial(un.decisionPolicy) - : void 0), - (dn.createdAt = - un.createdAt !== void 0 && un.createdAt !== null - ? $.Timestamp.fromPartial(un.createdAt) - : void 0), - dn - ) - }, - } - function En() { - return { - id: sn.Long.UZERO, - groupPolicyAddress: '', - metadata: '', - proposers: [], - submitTime: void 0, - groupVersion: sn.Long.UZERO, - groupPolicyVersion: sn.Long.UZERO, - status: 0, - finalTallyResult: void 0, - votingPeriodEnd: void 0, - executorResult: 0, - messages: [], - title: '', - summary: '', - } - } - e.Proposal = { - encode(un, dn = gn.Writer.create()) { - un.id.isZero() || dn.uint32(8).uint64(un.id), - un.groupPolicyAddress !== '' && dn.uint32(18).string(un.groupPolicyAddress), - un.metadata !== '' && dn.uint32(26).string(un.metadata) - for (const Nn of un.proposers) dn.uint32(34).string(Nn) - un.submitTime !== void 0 && $.Timestamp.encode(un.submitTime, dn.uint32(42).fork()).ldelim(), - un.groupVersion.isZero() || dn.uint32(48).uint64(un.groupVersion), - un.groupPolicyVersion.isZero() || dn.uint32(56).uint64(un.groupPolicyVersion), - un.status !== 0 && dn.uint32(64).int32(un.status), - un.finalTallyResult !== void 0 && - e.TallyResult.encode(un.finalTallyResult, dn.uint32(74).fork()).ldelim(), - un.votingPeriodEnd !== void 0 && - $.Timestamp.encode(un.votingPeriodEnd, dn.uint32(82).fork()).ldelim(), - un.executorResult !== 0 && dn.uint32(88).int32(un.executorResult) - for (const Nn of un.messages) nn.Any.encode(Nn, dn.uint32(98).fork()).ldelim() - return ( - un.title !== '' && dn.uint32(106).string(un.title), - un.summary !== '' && dn.uint32(114).string(un.summary), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = En() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.id = Nn.uint64() - break - case 2: - _n.groupPolicyAddress = Nn.string() - break - case 3: - _n.metadata = Nn.string() - break - case 4: - _n.proposers.push(Nn.string()) - break - case 5: - _n.submitTime = $.Timestamp.decode(Nn, Nn.uint32()) - break - case 6: - _n.groupVersion = Nn.uint64() - break - case 7: - _n.groupPolicyVersion = Nn.uint64() - break - case 8: - _n.status = Nn.int32() - break - case 9: - _n.finalTallyResult = e.TallyResult.decode(Nn, Nn.uint32()) - break - case 10: - _n.votingPeriodEnd = $.Timestamp.decode(Nn, Nn.uint32()) - break - case 11: - _n.executorResult = Nn.int32() - break - case 12: - _n.messages.push(nn.Any.decode(Nn, Nn.uint32())) - break - case 13: - _n.title = Nn.string() - break - case 14: - _n.summary = Nn.string() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - id: (0, sn.isSet)(un.id) ? sn.Long.fromValue(un.id) : sn.Long.UZERO, - groupPolicyAddress: (0, sn.isSet)(un.groupPolicyAddress) - ? String(un.groupPolicyAddress) - : '', - metadata: (0, sn.isSet)(un.metadata) ? String(un.metadata) : '', - proposers: Array.isArray(un?.proposers) ? un.proposers.map((dn) => String(dn)) : [], - submitTime: (0, sn.isSet)(un.submitTime) - ? (0, sn.fromJsonTimestamp)(un.submitTime) - : void 0, - groupVersion: (0, sn.isSet)(un.groupVersion) - ? sn.Long.fromValue(un.groupVersion) - : sn.Long.UZERO, - groupPolicyVersion: (0, sn.isSet)(un.groupPolicyVersion) - ? sn.Long.fromValue(un.groupPolicyVersion) - : sn.Long.UZERO, - status: (0, sn.isSet)(un.status) ? an(un.status) : 0, - finalTallyResult: (0, sn.isSet)(un.finalTallyResult) - ? e.TallyResult.fromJSON(un.finalTallyResult) - : void 0, - votingPeriodEnd: (0, sn.isSet)(un.votingPeriodEnd) - ? (0, sn.fromJsonTimestamp)(un.votingPeriodEnd) - : void 0, - executorResult: (0, sn.isSet)(un.executorResult) ? Bn(un.executorResult) : 0, - messages: Array.isArray(un?.messages) ? un.messages.map((dn) => nn.Any.fromJSON(dn)) : [], - title: (0, sn.isSet)(un.title) ? String(un.title) : '', - summary: (0, sn.isSet)(un.summary) ? String(un.summary) : '', - } - }, - toJSON(un) { - const dn = {} - return ( - un.id !== void 0 && (dn.id = (un.id || sn.Long.UZERO).toString()), - un.groupPolicyAddress !== void 0 && (dn.groupPolicyAddress = un.groupPolicyAddress), - un.metadata !== void 0 && (dn.metadata = un.metadata), - un.proposers ? (dn.proposers = un.proposers.map((Nn) => Nn)) : (dn.proposers = []), - un.submitTime !== void 0 && - (dn.submitTime = (0, sn.fromTimestamp)(un.submitTime).toISOString()), - un.groupVersion !== void 0 && - (dn.groupVersion = (un.groupVersion || sn.Long.UZERO).toString()), - un.groupPolicyVersion !== void 0 && - (dn.groupPolicyVersion = (un.groupPolicyVersion || sn.Long.UZERO).toString()), - un.status !== void 0 && (dn.status = xn(un.status)), - un.finalTallyResult !== void 0 && - (dn.finalTallyResult = un.finalTallyResult - ? e.TallyResult.toJSON(un.finalTallyResult) - : void 0), - un.votingPeriodEnd !== void 0 && - (dn.votingPeriodEnd = (0, sn.fromTimestamp)(un.votingPeriodEnd).toISOString()), - un.executorResult !== void 0 && (dn.executorResult = kn(un.executorResult)), - un.messages - ? (dn.messages = un.messages.map((Nn) => (Nn ? nn.Any.toJSON(Nn) : void 0))) - : (dn.messages = []), - un.title !== void 0 && (dn.title = un.title), - un.summary !== void 0 && (dn.summary = un.summary), - dn - ) - }, - fromPartial(un) { - const dn = En() - return ( - (dn.id = un.id !== void 0 && un.id !== null ? sn.Long.fromValue(un.id) : sn.Long.UZERO), - (dn.groupPolicyAddress = un.groupPolicyAddress ?? ''), - (dn.metadata = un.metadata ?? ''), - (dn.proposers = un.proposers?.map((Nn) => Nn) || []), - (dn.submitTime = - un.submitTime !== void 0 && un.submitTime !== null - ? $.Timestamp.fromPartial(un.submitTime) - : void 0), - (dn.groupVersion = - un.groupVersion !== void 0 && un.groupVersion !== null - ? sn.Long.fromValue(un.groupVersion) - : sn.Long.UZERO), - (dn.groupPolicyVersion = - un.groupPolicyVersion !== void 0 && un.groupPolicyVersion !== null - ? sn.Long.fromValue(un.groupPolicyVersion) - : sn.Long.UZERO), - (dn.status = un.status ?? 0), - (dn.finalTallyResult = - un.finalTallyResult !== void 0 && un.finalTallyResult !== null - ? e.TallyResult.fromPartial(un.finalTallyResult) - : void 0), - (dn.votingPeriodEnd = - un.votingPeriodEnd !== void 0 && un.votingPeriodEnd !== null - ? $.Timestamp.fromPartial(un.votingPeriodEnd) - : void 0), - (dn.executorResult = un.executorResult ?? 0), - (dn.messages = un.messages?.map((Nn) => nn.Any.fromPartial(Nn)) || []), - (dn.title = un.title ?? ''), - (dn.summary = un.summary ?? ''), - dn - ) - }, - } - function Mn() { - return { yesCount: '', abstainCount: '', noCount: '', noWithVetoCount: '' } - } - e.TallyResult = { - encode(un, dn = gn.Writer.create()) { - return ( - un.yesCount !== '' && dn.uint32(10).string(un.yesCount), - un.abstainCount !== '' && dn.uint32(18).string(un.abstainCount), - un.noCount !== '' && dn.uint32(26).string(un.noCount), - un.noWithVetoCount !== '' && dn.uint32(34).string(un.noWithVetoCount), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Mn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.yesCount = Nn.string() - break - case 2: - _n.abstainCount = Nn.string() - break - case 3: - _n.noCount = Nn.string() - break - case 4: - _n.noWithVetoCount = Nn.string() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - yesCount: (0, sn.isSet)(un.yesCount) ? String(un.yesCount) : '', - abstainCount: (0, sn.isSet)(un.abstainCount) ? String(un.abstainCount) : '', - noCount: (0, sn.isSet)(un.noCount) ? String(un.noCount) : '', - noWithVetoCount: (0, sn.isSet)(un.noWithVetoCount) ? String(un.noWithVetoCount) : '', - } - }, - toJSON(un) { - const dn = {} - return ( - un.yesCount !== void 0 && (dn.yesCount = un.yesCount), - un.abstainCount !== void 0 && (dn.abstainCount = un.abstainCount), - un.noCount !== void 0 && (dn.noCount = un.noCount), - un.noWithVetoCount !== void 0 && (dn.noWithVetoCount = un.noWithVetoCount), - dn - ) - }, - fromPartial(un) { - const dn = Mn() - return ( - (dn.yesCount = un.yesCount ?? ''), - (dn.abstainCount = un.abstainCount ?? ''), - (dn.noCount = un.noCount ?? ''), - (dn.noWithVetoCount = un.noWithVetoCount ?? ''), - dn - ) - }, - } - function Hn() { - return { proposalId: sn.Long.UZERO, voter: '', option: 0, metadata: '', submitTime: void 0 } - } - e.Vote = { - encode(un, dn = gn.Writer.create()) { - return ( - un.proposalId.isZero() || dn.uint32(8).uint64(un.proposalId), - un.voter !== '' && dn.uint32(18).string(un.voter), - un.option !== 0 && dn.uint32(24).int32(un.option), - un.metadata !== '' && dn.uint32(34).string(un.metadata), - un.submitTime !== void 0 && - $.Timestamp.encode(un.submitTime, dn.uint32(42).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof gn.Reader ? un : new gn.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Hn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.proposalId = Nn.uint64() - break - case 2: - _n.voter = Nn.string() - break - case 3: - _n.option = Nn.int32() - break - case 4: - _n.metadata = Nn.string() - break - case 5: - _n.submitTime = $.Timestamp.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - proposalId: (0, sn.isSet)(un.proposalId) ? sn.Long.fromValue(un.proposalId) : sn.Long.UZERO, - voter: (0, sn.isSet)(un.voter) ? String(un.voter) : '', - option: (0, sn.isSet)(un.option) ? Jn(un.option) : 0, - metadata: (0, sn.isSet)(un.metadata) ? String(un.metadata) : '', - submitTime: (0, sn.isSet)(un.submitTime) - ? (0, sn.fromJsonTimestamp)(un.submitTime) - : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.proposalId !== void 0 && (dn.proposalId = (un.proposalId || sn.Long.UZERO).toString()), - un.voter !== void 0 && (dn.voter = un.voter), - un.option !== void 0 && (dn.option = qn(un.option)), - un.metadata !== void 0 && (dn.metadata = un.metadata), - un.submitTime !== void 0 && - (dn.submitTime = (0, sn.fromTimestamp)(un.submitTime).toISOString()), - dn - ) - }, - fromPartial(un) { - const dn = Hn() - return ( - (dn.proposalId = - un.proposalId !== void 0 && un.proposalId !== null - ? sn.Long.fromValue(un.proposalId) - : sn.Long.UZERO), - (dn.voter = un.voter ?? ''), - (dn.option = un.option ?? 0), - (dn.metadata = un.metadata ?? ''), - (dn.submitTime = - un.submitTime !== void 0 && un.submitTime !== null - ? $.Timestamp.fromPartial(un.submitTime) - : void 0), - dn - ) - }, - } -})(types$6) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Vn, Wn, ht, Wt) { - Wt === void 0 && (Wt = ht) - var zt = Object.getOwnPropertyDescriptor(Wn, ht) - ;(!zt || ('get' in zt ? !Wn.__esModule : zt.writable || zt.configurable)) && - (zt = { - enumerable: !0, - get: function () { - return Wn[ht] - }, - }), - Object.defineProperty(Vn, Wt, zt) - } - : function (Vn, Wn, ht, Wt) { - Wt === void 0 && (Wt = ht), (Vn[Wt] = Wn[ht]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Vn, Wn) { - Object.defineProperty(Vn, 'default', { enumerable: !0, value: Wn }) - } - : function (Vn, Wn) { - Vn.default = Wn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Vn) { - if (Vn && Vn.__esModule) return Vn - var Wn = {} - if (Vn != null) - for (var ht in Vn) - ht !== 'default' && Object.prototype.hasOwnProperty.call(Vn, ht) && o(Wn, Vn, ht) - return _(Wn, Vn), Wn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgLeaveGroupResponse = - e.MsgLeaveGroup = - e.MsgExecResponse = - e.MsgExec = - e.MsgVoteResponse = - e.MsgVote = - e.MsgWithdrawProposalResponse = - e.MsgWithdrawProposal = - e.MsgSubmitProposalResponse = - e.MsgSubmitProposal = - e.MsgUpdateGroupPolicyMetadataResponse = - e.MsgUpdateGroupPolicyMetadata = - e.MsgUpdateGroupPolicyDecisionPolicyResponse = - e.MsgUpdateGroupPolicyDecisionPolicy = - e.MsgCreateGroupWithPolicyResponse = - e.MsgCreateGroupWithPolicy = - e.MsgUpdateGroupPolicyAdminResponse = - e.MsgUpdateGroupPolicyAdmin = - e.MsgCreateGroupPolicyResponse = - e.MsgCreateGroupPolicy = - e.MsgUpdateGroupMetadataResponse = - e.MsgUpdateGroupMetadata = - e.MsgUpdateGroupAdminResponse = - e.MsgUpdateGroupAdmin = - e.MsgUpdateGroupMembersResponse = - e.MsgUpdateGroupMembers = - e.MsgCreateGroupResponse = - e.MsgCreateGroup = - e.execToJSON = - e.execFromJSON = - e.Exec = - e.protobufPackage = - void 0) - const $ = types$6, - en = any, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.group.v1' - var gn - ;(function (Vn) { - ;(Vn[(Vn.EXEC_UNSPECIFIED = 0)] = 'EXEC_UNSPECIFIED'), - (Vn[(Vn.EXEC_TRY = 1)] = 'EXEC_TRY'), - (Vn[(Vn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((gn = e.Exec || (e.Exec = {}))) - function In(Vn) { - switch (Vn) { - case 0: - case 'EXEC_UNSPECIFIED': - return gn.EXEC_UNSPECIFIED - case 1: - case 'EXEC_TRY': - return gn.EXEC_TRY - case -1: - case 'UNRECOGNIZED': - default: - return gn.UNRECOGNIZED - } - } - e.execFromJSON = In - function Jn(Vn) { - switch (Vn) { - case gn.EXEC_UNSPECIFIED: - return 'EXEC_UNSPECIFIED' - case gn.EXEC_TRY: - return 'EXEC_TRY' - case gn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.execToJSON = Jn - function qn() { - return { admin: '', members: [], metadata: '' } - } - e.MsgCreateGroup = { - encode(Vn, Wn = sn.Writer.create()) { - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin) - for (const ht of Vn.members) $.MemberRequest.encode(ht, Wn.uint32(18).fork()).ldelim() - return Vn.metadata !== '' && Wn.uint32(26).string(Vn.metadata), Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = qn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.members.push($.MemberRequest.decode(ht, ht.uint32())) - break - case 3: - zt.metadata = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - members: Array.isArray(Vn?.members) - ? Vn.members.map((Wn) => $.MemberRequest.fromJSON(Wn)) - : [], - metadata: (0, nn.isSet)(Vn.metadata) ? String(Vn.metadata) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.members - ? (Wn.members = Vn.members.map((ht) => (ht ? $.MemberRequest.toJSON(ht) : void 0))) - : (Wn.members = []), - Vn.metadata !== void 0 && (Wn.metadata = Vn.metadata), - Wn - ) - }, - fromPartial(Vn) { - const Wn = qn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.members = Vn.members?.map((ht) => $.MemberRequest.fromPartial(ht)) || []), - (Wn.metadata = Vn.metadata ?? ''), - Wn - ) - }, - } - function Kn() { - return { groupId: nn.Long.UZERO } - } - e.MsgCreateGroupResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Vn.groupId.isZero() || Wn.uint32(8).uint64(Vn.groupId), Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Kn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.groupId = ht.uint64() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { groupId: (0, nn.isSet)(Vn.groupId) ? nn.Long.fromValue(Vn.groupId) : nn.Long.UZERO } - }, - toJSON(Vn) { - const Wn = {} - return Vn.groupId !== void 0 && (Wn.groupId = (Vn.groupId || nn.Long.UZERO).toString()), Wn - }, - fromPartial(Vn) { - const Wn = Kn() - return ( - (Wn.groupId = - Vn.groupId !== void 0 && Vn.groupId !== null - ? nn.Long.fromValue(Vn.groupId) - : nn.Long.UZERO), - Wn - ) - }, - } - function an() { - return { admin: '', groupId: nn.Long.UZERO, memberUpdates: [] } - } - e.MsgUpdateGroupMembers = { - encode(Vn, Wn = sn.Writer.create()) { - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin), - Vn.groupId.isZero() || Wn.uint32(16).uint64(Vn.groupId) - for (const ht of Vn.memberUpdates) $.MemberRequest.encode(ht, Wn.uint32(26).fork()).ldelim() - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = an() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.groupId = ht.uint64() - break - case 3: - zt.memberUpdates.push($.MemberRequest.decode(ht, ht.uint32())) - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - groupId: (0, nn.isSet)(Vn.groupId) ? nn.Long.fromValue(Vn.groupId) : nn.Long.UZERO, - memberUpdates: Array.isArray(Vn?.memberUpdates) - ? Vn.memberUpdates.map((Wn) => $.MemberRequest.fromJSON(Wn)) - : [], - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.groupId !== void 0 && (Wn.groupId = (Vn.groupId || nn.Long.UZERO).toString()), - Vn.memberUpdates - ? (Wn.memberUpdates = Vn.memberUpdates.map((ht) => - ht ? $.MemberRequest.toJSON(ht) : void 0, - )) - : (Wn.memberUpdates = []), - Wn - ) - }, - fromPartial(Vn) { - const Wn = an() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.groupId = - Vn.groupId !== void 0 && Vn.groupId !== null - ? nn.Long.fromValue(Vn.groupId) - : nn.Long.UZERO), - (Wn.memberUpdates = Vn.memberUpdates?.map((ht) => $.MemberRequest.fromPartial(ht)) || []), - Wn - ) - }, - } - function xn() { - return {} - } - e.MsgUpdateGroupMembersResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = xn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return xn() - }, - } - function mn() { - return { admin: '', groupId: nn.Long.UZERO, newAdmin: '' } - } - e.MsgUpdateGroupAdmin = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin), - Vn.groupId.isZero() || Wn.uint32(16).uint64(Vn.groupId), - Vn.newAdmin !== '' && Wn.uint32(26).string(Vn.newAdmin), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = mn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.groupId = ht.uint64() - break - case 3: - zt.newAdmin = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - groupId: (0, nn.isSet)(Vn.groupId) ? nn.Long.fromValue(Vn.groupId) : nn.Long.UZERO, - newAdmin: (0, nn.isSet)(Vn.newAdmin) ? String(Vn.newAdmin) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.groupId !== void 0 && (Wn.groupId = (Vn.groupId || nn.Long.UZERO).toString()), - Vn.newAdmin !== void 0 && (Wn.newAdmin = Vn.newAdmin), - Wn - ) - }, - fromPartial(Vn) { - const Wn = mn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.groupId = - Vn.groupId !== void 0 && Vn.groupId !== null - ? nn.Long.fromValue(Vn.groupId) - : nn.Long.UZERO), - (Wn.newAdmin = Vn.newAdmin ?? ''), - Wn - ) - }, - } - function Bn() { - return {} - } - e.MsgUpdateGroupAdminResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Bn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return Bn() - }, - } - function kn() { - return { admin: '', groupId: nn.Long.UZERO, metadata: '' } - } - e.MsgUpdateGroupMetadata = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin), - Vn.groupId.isZero() || Wn.uint32(16).uint64(Vn.groupId), - Vn.metadata !== '' && Wn.uint32(26).string(Vn.metadata), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = kn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.groupId = ht.uint64() - break - case 3: - zt.metadata = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - groupId: (0, nn.isSet)(Vn.groupId) ? nn.Long.fromValue(Vn.groupId) : nn.Long.UZERO, - metadata: (0, nn.isSet)(Vn.metadata) ? String(Vn.metadata) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.groupId !== void 0 && (Wn.groupId = (Vn.groupId || nn.Long.UZERO).toString()), - Vn.metadata !== void 0 && (Wn.metadata = Vn.metadata), - Wn - ) - }, - fromPartial(Vn) { - const Wn = kn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.groupId = - Vn.groupId !== void 0 && Vn.groupId !== null - ? nn.Long.fromValue(Vn.groupId) - : nn.Long.UZERO), - (Wn.metadata = Vn.metadata ?? ''), - Wn - ) - }, - } - function ln() { - return {} - } - e.MsgUpdateGroupMetadataResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = ln() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return ln() - }, - } - function yn() { - return { admin: '', groupId: nn.Long.UZERO, metadata: '', decisionPolicy: void 0 } - } - e.MsgCreateGroupPolicy = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin), - Vn.groupId.isZero() || Wn.uint32(16).uint64(Vn.groupId), - Vn.metadata !== '' && Wn.uint32(26).string(Vn.metadata), - Vn.decisionPolicy !== void 0 && - en.Any.encode(Vn.decisionPolicy, Wn.uint32(34).fork()).ldelim(), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = yn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.groupId = ht.uint64() - break - case 3: - zt.metadata = ht.string() - break - case 4: - zt.decisionPolicy = en.Any.decode(ht, ht.uint32()) - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - groupId: (0, nn.isSet)(Vn.groupId) ? nn.Long.fromValue(Vn.groupId) : nn.Long.UZERO, - metadata: (0, nn.isSet)(Vn.metadata) ? String(Vn.metadata) : '', - decisionPolicy: (0, nn.isSet)(Vn.decisionPolicy) - ? en.Any.fromJSON(Vn.decisionPolicy) - : void 0, - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.groupId !== void 0 && (Wn.groupId = (Vn.groupId || nn.Long.UZERO).toString()), - Vn.metadata !== void 0 && (Wn.metadata = Vn.metadata), - Vn.decisionPolicy !== void 0 && - (Wn.decisionPolicy = Vn.decisionPolicy ? en.Any.toJSON(Vn.decisionPolicy) : void 0), - Wn - ) - }, - fromPartial(Vn) { - const Wn = yn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.groupId = - Vn.groupId !== void 0 && Vn.groupId !== null - ? nn.Long.fromValue(Vn.groupId) - : nn.Long.UZERO), - (Wn.metadata = Vn.metadata ?? ''), - (Wn.decisionPolicy = - Vn.decisionPolicy !== void 0 && Vn.decisionPolicy !== null - ? en.Any.fromPartial(Vn.decisionPolicy) - : void 0), - Wn - ) - }, - } - function Cn() { - return { address: '' } - } - e.MsgCreateGroupPolicyResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Vn.address !== '' && Wn.uint32(10).string(Vn.address), Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Cn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.address = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { address: (0, nn.isSet)(Vn.address) ? String(Vn.address) : '' } - }, - toJSON(Vn) { - const Wn = {} - return Vn.address !== void 0 && (Wn.address = Vn.address), Wn - }, - fromPartial(Vn) { - const Wn = Cn() - return (Wn.address = Vn.address ?? ''), Wn - }, - } - function Tn() { - return { admin: '', groupPolicyAddress: '', newAdmin: '' } - } - e.MsgUpdateGroupPolicyAdmin = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin), - Vn.groupPolicyAddress !== '' && Wn.uint32(18).string(Vn.groupPolicyAddress), - Vn.newAdmin !== '' && Wn.uint32(26).string(Vn.newAdmin), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Tn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.groupPolicyAddress = ht.string() - break - case 3: - zt.newAdmin = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - groupPolicyAddress: (0, nn.isSet)(Vn.groupPolicyAddress) - ? String(Vn.groupPolicyAddress) - : '', - newAdmin: (0, nn.isSet)(Vn.newAdmin) ? String(Vn.newAdmin) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.groupPolicyAddress !== void 0 && (Wn.groupPolicyAddress = Vn.groupPolicyAddress), - Vn.newAdmin !== void 0 && (Wn.newAdmin = Vn.newAdmin), - Wn - ) - }, - fromPartial(Vn) { - const Wn = Tn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.groupPolicyAddress = Vn.groupPolicyAddress ?? ''), - (Wn.newAdmin = Vn.newAdmin ?? ''), - Wn - ) - }, - } - function Gn() { - return {} - } - e.MsgUpdateGroupPolicyAdminResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Gn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return Gn() - }, - } - function Sn() { - return { - admin: '', - members: [], - groupMetadata: '', - groupPolicyMetadata: '', - groupPolicyAsAdmin: !1, - decisionPolicy: void 0, - } - } - e.MsgCreateGroupWithPolicy = { - encode(Vn, Wn = sn.Writer.create()) { - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin) - for (const ht of Vn.members) $.MemberRequest.encode(ht, Wn.uint32(18).fork()).ldelim() - return ( - Vn.groupMetadata !== '' && Wn.uint32(26).string(Vn.groupMetadata), - Vn.groupPolicyMetadata !== '' && Wn.uint32(34).string(Vn.groupPolicyMetadata), - Vn.groupPolicyAsAdmin === !0 && Wn.uint32(40).bool(Vn.groupPolicyAsAdmin), - Vn.decisionPolicy !== void 0 && - en.Any.encode(Vn.decisionPolicy, Wn.uint32(50).fork()).ldelim(), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Sn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.members.push($.MemberRequest.decode(ht, ht.uint32())) - break - case 3: - zt.groupMetadata = ht.string() - break - case 4: - zt.groupPolicyMetadata = ht.string() - break - case 5: - zt.groupPolicyAsAdmin = ht.bool() - break - case 6: - zt.decisionPolicy = en.Any.decode(ht, ht.uint32()) - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - members: Array.isArray(Vn?.members) - ? Vn.members.map((Wn) => $.MemberRequest.fromJSON(Wn)) - : [], - groupMetadata: (0, nn.isSet)(Vn.groupMetadata) ? String(Vn.groupMetadata) : '', - groupPolicyMetadata: (0, nn.isSet)(Vn.groupPolicyMetadata) - ? String(Vn.groupPolicyMetadata) - : '', - groupPolicyAsAdmin: (0, nn.isSet)(Vn.groupPolicyAsAdmin) - ? Boolean(Vn.groupPolicyAsAdmin) - : !1, - decisionPolicy: (0, nn.isSet)(Vn.decisionPolicy) - ? en.Any.fromJSON(Vn.decisionPolicy) - : void 0, - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.members - ? (Wn.members = Vn.members.map((ht) => (ht ? $.MemberRequest.toJSON(ht) : void 0))) - : (Wn.members = []), - Vn.groupMetadata !== void 0 && (Wn.groupMetadata = Vn.groupMetadata), - Vn.groupPolicyMetadata !== void 0 && (Wn.groupPolicyMetadata = Vn.groupPolicyMetadata), - Vn.groupPolicyAsAdmin !== void 0 && (Wn.groupPolicyAsAdmin = Vn.groupPolicyAsAdmin), - Vn.decisionPolicy !== void 0 && - (Wn.decisionPolicy = Vn.decisionPolicy ? en.Any.toJSON(Vn.decisionPolicy) : void 0), - Wn - ) - }, - fromPartial(Vn) { - const Wn = Sn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.members = Vn.members?.map((ht) => $.MemberRequest.fromPartial(ht)) || []), - (Wn.groupMetadata = Vn.groupMetadata ?? ''), - (Wn.groupPolicyMetadata = Vn.groupPolicyMetadata ?? ''), - (Wn.groupPolicyAsAdmin = Vn.groupPolicyAsAdmin ?? !1), - (Wn.decisionPolicy = - Vn.decisionPolicy !== void 0 && Vn.decisionPolicy !== null - ? en.Any.fromPartial(Vn.decisionPolicy) - : void 0), - Wn - ) - }, - } - function Zn() { - return { groupId: nn.Long.UZERO, groupPolicyAddress: '' } - } - e.MsgCreateGroupWithPolicyResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.groupId.isZero() || Wn.uint32(8).uint64(Vn.groupId), - Vn.groupPolicyAddress !== '' && Wn.uint32(18).string(Vn.groupPolicyAddress), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Zn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.groupId = ht.uint64() - break - case 2: - zt.groupPolicyAddress = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - groupId: (0, nn.isSet)(Vn.groupId) ? nn.Long.fromValue(Vn.groupId) : nn.Long.UZERO, - groupPolicyAddress: (0, nn.isSet)(Vn.groupPolicyAddress) - ? String(Vn.groupPolicyAddress) - : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.groupId !== void 0 && (Wn.groupId = (Vn.groupId || nn.Long.UZERO).toString()), - Vn.groupPolicyAddress !== void 0 && (Wn.groupPolicyAddress = Vn.groupPolicyAddress), - Wn - ) - }, - fromPartial(Vn) { - const Wn = Zn() - return ( - (Wn.groupId = - Vn.groupId !== void 0 && Vn.groupId !== null - ? nn.Long.fromValue(Vn.groupId) - : nn.Long.UZERO), - (Wn.groupPolicyAddress = Vn.groupPolicyAddress ?? ''), - Wn - ) - }, - } - function tn() { - return { admin: '', groupPolicyAddress: '', decisionPolicy: void 0 } - } - e.MsgUpdateGroupPolicyDecisionPolicy = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin), - Vn.groupPolicyAddress !== '' && Wn.uint32(18).string(Vn.groupPolicyAddress), - Vn.decisionPolicy !== void 0 && - en.Any.encode(Vn.decisionPolicy, Wn.uint32(26).fork()).ldelim(), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = tn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.groupPolicyAddress = ht.string() - break - case 3: - zt.decisionPolicy = en.Any.decode(ht, ht.uint32()) - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - groupPolicyAddress: (0, nn.isSet)(Vn.groupPolicyAddress) - ? String(Vn.groupPolicyAddress) - : '', - decisionPolicy: (0, nn.isSet)(Vn.decisionPolicy) - ? en.Any.fromJSON(Vn.decisionPolicy) - : void 0, - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.groupPolicyAddress !== void 0 && (Wn.groupPolicyAddress = Vn.groupPolicyAddress), - Vn.decisionPolicy !== void 0 && - (Wn.decisionPolicy = Vn.decisionPolicy ? en.Any.toJSON(Vn.decisionPolicy) : void 0), - Wn - ) - }, - fromPartial(Vn) { - const Wn = tn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.groupPolicyAddress = Vn.groupPolicyAddress ?? ''), - (Wn.decisionPolicy = - Vn.decisionPolicy !== void 0 && Vn.decisionPolicy !== null - ? en.Any.fromPartial(Vn.decisionPolicy) - : void 0), - Wn - ) - }, - } - function En() { - return {} - } - e.MsgUpdateGroupPolicyDecisionPolicyResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = En() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return En() - }, - } - function Mn() { - return { admin: '', groupPolicyAddress: '', metadata: '' } - } - e.MsgUpdateGroupPolicyMetadata = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.admin !== '' && Wn.uint32(10).string(Vn.admin), - Vn.groupPolicyAddress !== '' && Wn.uint32(18).string(Vn.groupPolicyAddress), - Vn.metadata !== '' && Wn.uint32(26).string(Vn.metadata), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Mn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.admin = ht.string() - break - case 2: - zt.groupPolicyAddress = ht.string() - break - case 3: - zt.metadata = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - admin: (0, nn.isSet)(Vn.admin) ? String(Vn.admin) : '', - groupPolicyAddress: (0, nn.isSet)(Vn.groupPolicyAddress) - ? String(Vn.groupPolicyAddress) - : '', - metadata: (0, nn.isSet)(Vn.metadata) ? String(Vn.metadata) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.admin !== void 0 && (Wn.admin = Vn.admin), - Vn.groupPolicyAddress !== void 0 && (Wn.groupPolicyAddress = Vn.groupPolicyAddress), - Vn.metadata !== void 0 && (Wn.metadata = Vn.metadata), - Wn - ) - }, - fromPartial(Vn) { - const Wn = Mn() - return ( - (Wn.admin = Vn.admin ?? ''), - (Wn.groupPolicyAddress = Vn.groupPolicyAddress ?? ''), - (Wn.metadata = Vn.metadata ?? ''), - Wn - ) - }, - } - function Hn() { - return {} - } - e.MsgUpdateGroupPolicyMetadataResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Hn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return Hn() - }, - } - function un() { - return { - groupPolicyAddress: '', - proposers: [], - metadata: '', - messages: [], - exec: 0, - title: '', - summary: '', - } - } - e.MsgSubmitProposal = { - encode(Vn, Wn = sn.Writer.create()) { - Vn.groupPolicyAddress !== '' && Wn.uint32(10).string(Vn.groupPolicyAddress) - for (const ht of Vn.proposers) Wn.uint32(18).string(ht) - Vn.metadata !== '' && Wn.uint32(26).string(Vn.metadata) - for (const ht of Vn.messages) en.Any.encode(ht, Wn.uint32(34).fork()).ldelim() - return ( - Vn.exec !== 0 && Wn.uint32(40).int32(Vn.exec), - Vn.title !== '' && Wn.uint32(50).string(Vn.title), - Vn.summary !== '' && Wn.uint32(58).string(Vn.summary), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = un() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.groupPolicyAddress = ht.string() - break - case 2: - zt.proposers.push(ht.string()) - break - case 3: - zt.metadata = ht.string() - break - case 4: - zt.messages.push(en.Any.decode(ht, ht.uint32())) - break - case 5: - zt.exec = ht.int32() - break - case 6: - zt.title = ht.string() - break - case 7: - zt.summary = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - groupPolicyAddress: (0, nn.isSet)(Vn.groupPolicyAddress) - ? String(Vn.groupPolicyAddress) - : '', - proposers: Array.isArray(Vn?.proposers) ? Vn.proposers.map((Wn) => String(Wn)) : [], - metadata: (0, nn.isSet)(Vn.metadata) ? String(Vn.metadata) : '', - messages: Array.isArray(Vn?.messages) ? Vn.messages.map((Wn) => en.Any.fromJSON(Wn)) : [], - exec: (0, nn.isSet)(Vn.exec) ? In(Vn.exec) : 0, - title: (0, nn.isSet)(Vn.title) ? String(Vn.title) : '', - summary: (0, nn.isSet)(Vn.summary) ? String(Vn.summary) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.groupPolicyAddress !== void 0 && (Wn.groupPolicyAddress = Vn.groupPolicyAddress), - Vn.proposers ? (Wn.proposers = Vn.proposers.map((ht) => ht)) : (Wn.proposers = []), - Vn.metadata !== void 0 && (Wn.metadata = Vn.metadata), - Vn.messages - ? (Wn.messages = Vn.messages.map((ht) => (ht ? en.Any.toJSON(ht) : void 0))) - : (Wn.messages = []), - Vn.exec !== void 0 && (Wn.exec = Jn(Vn.exec)), - Vn.title !== void 0 && (Wn.title = Vn.title), - Vn.summary !== void 0 && (Wn.summary = Vn.summary), - Wn - ) - }, - fromPartial(Vn) { - const Wn = un() - return ( - (Wn.groupPolicyAddress = Vn.groupPolicyAddress ?? ''), - (Wn.proposers = Vn.proposers?.map((ht) => ht) || []), - (Wn.metadata = Vn.metadata ?? ''), - (Wn.messages = Vn.messages?.map((ht) => en.Any.fromPartial(ht)) || []), - (Wn.exec = Vn.exec ?? 0), - (Wn.title = Vn.title ?? ''), - (Wn.summary = Vn.summary ?? ''), - Wn - ) - }, - } - function dn() { - return { proposalId: nn.Long.UZERO } - } - e.MsgSubmitProposalResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Vn.proposalId.isZero() || Wn.uint32(8).uint64(Vn.proposalId), Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = dn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.proposalId = ht.uint64() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - proposalId: (0, nn.isSet)(Vn.proposalId) ? nn.Long.fromValue(Vn.proposalId) : nn.Long.UZERO, - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.proposalId !== void 0 && (Wn.proposalId = (Vn.proposalId || nn.Long.UZERO).toString()), - Wn - ) - }, - fromPartial(Vn) { - const Wn = dn() - return ( - (Wn.proposalId = - Vn.proposalId !== void 0 && Vn.proposalId !== null - ? nn.Long.fromValue(Vn.proposalId) - : nn.Long.UZERO), - Wn - ) - }, - } - function Nn() { - return { proposalId: nn.Long.UZERO, address: '' } - } - e.MsgWithdrawProposal = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.proposalId.isZero() || Wn.uint32(8).uint64(Vn.proposalId), - Vn.address !== '' && Wn.uint32(18).string(Vn.address), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Nn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.proposalId = ht.uint64() - break - case 2: - zt.address = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - proposalId: (0, nn.isSet)(Vn.proposalId) ? nn.Long.fromValue(Vn.proposalId) : nn.Long.UZERO, - address: (0, nn.isSet)(Vn.address) ? String(Vn.address) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.proposalId !== void 0 && (Wn.proposalId = (Vn.proposalId || nn.Long.UZERO).toString()), - Vn.address !== void 0 && (Wn.address = Vn.address), - Wn - ) - }, - fromPartial(Vn) { - const Wn = Nn() - return ( - (Wn.proposalId = - Vn.proposalId !== void 0 && Vn.proposalId !== null - ? nn.Long.fromValue(Vn.proposalId) - : nn.Long.UZERO), - (Wn.address = Vn.address ?? ''), - Wn - ) - }, - } - function fn() { - return {} - } - e.MsgWithdrawProposalResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = fn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return fn() - }, - } - function _n() { - return { proposalId: nn.Long.UZERO, voter: '', option: 0, metadata: '', exec: 0 } - } - e.MsgVote = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.proposalId.isZero() || Wn.uint32(8).uint64(Vn.proposalId), - Vn.voter !== '' && Wn.uint32(18).string(Vn.voter), - Vn.option !== 0 && Wn.uint32(24).int32(Vn.option), - Vn.metadata !== '' && Wn.uint32(34).string(Vn.metadata), - Vn.exec !== 0 && Wn.uint32(40).int32(Vn.exec), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = _n() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.proposalId = ht.uint64() - break - case 2: - zt.voter = ht.string() - break - case 3: - zt.option = ht.int32() - break - case 4: - zt.metadata = ht.string() - break - case 5: - zt.exec = ht.int32() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - proposalId: (0, nn.isSet)(Vn.proposalId) ? nn.Long.fromValue(Vn.proposalId) : nn.Long.UZERO, - voter: (0, nn.isSet)(Vn.voter) ? String(Vn.voter) : '', - option: (0, nn.isSet)(Vn.option) ? (0, $.voteOptionFromJSON)(Vn.option) : 0, - metadata: (0, nn.isSet)(Vn.metadata) ? String(Vn.metadata) : '', - exec: (0, nn.isSet)(Vn.exec) ? In(Vn.exec) : 0, - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.proposalId !== void 0 && (Wn.proposalId = (Vn.proposalId || nn.Long.UZERO).toString()), - Vn.voter !== void 0 && (Wn.voter = Vn.voter), - Vn.option !== void 0 && (Wn.option = (0, $.voteOptionToJSON)(Vn.option)), - Vn.metadata !== void 0 && (Wn.metadata = Vn.metadata), - Vn.exec !== void 0 && (Wn.exec = Jn(Vn.exec)), - Wn - ) - }, - fromPartial(Vn) { - const Wn = _n() - return ( - (Wn.proposalId = - Vn.proposalId !== void 0 && Vn.proposalId !== null - ? nn.Long.fromValue(Vn.proposalId) - : nn.Long.UZERO), - (Wn.voter = Vn.voter ?? ''), - (Wn.option = Vn.option ?? 0), - (Wn.metadata = Vn.metadata ?? ''), - (Wn.exec = Vn.exec ?? 0), - Wn - ) - }, - } - function Ln() { - return {} - } - e.MsgVoteResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Ln() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return Ln() - }, - } - function zn() { - return { proposalId: nn.Long.UZERO, executor: '' } - } - e.MsgExec = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.proposalId.isZero() || Wn.uint32(8).uint64(Vn.proposalId), - Vn.executor !== '' && Wn.uint32(18).string(Vn.executor), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = zn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.proposalId = ht.uint64() - break - case 2: - zt.executor = ht.string() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - proposalId: (0, nn.isSet)(Vn.proposalId) ? nn.Long.fromValue(Vn.proposalId) : nn.Long.UZERO, - executor: (0, nn.isSet)(Vn.executor) ? String(Vn.executor) : '', - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.proposalId !== void 0 && (Wn.proposalId = (Vn.proposalId || nn.Long.UZERO).toString()), - Vn.executor !== void 0 && (Wn.executor = Vn.executor), - Wn - ) - }, - fromPartial(Vn) { - const Wn = zn() - return ( - (Wn.proposalId = - Vn.proposalId !== void 0 && Vn.proposalId !== null - ? nn.Long.fromValue(Vn.proposalId) - : nn.Long.UZERO), - (Wn.executor = Vn.executor ?? ''), - Wn - ) - }, - } - function Fn() { - return { result: 0 } - } - e.MsgExecResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Vn.result !== 0 && Wn.uint32(16).int32(Vn.result), Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Fn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 2: - zt.result = ht.int32() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - result: (0, nn.isSet)(Vn.result) ? (0, $.proposalExecutorResultFromJSON)(Vn.result) : 0, - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.result !== void 0 && (Wn.result = (0, $.proposalExecutorResultToJSON)(Vn.result)), Wn - ) - }, - fromPartial(Vn) { - const Wn = Fn() - return (Wn.result = Vn.result ?? 0), Wn - }, - } - function An() { - return { address: '', groupId: nn.Long.UZERO } - } - e.MsgLeaveGroup = { - encode(Vn, Wn = sn.Writer.create()) { - return ( - Vn.address !== '' && Wn.uint32(10).string(Vn.address), - Vn.groupId.isZero() || Wn.uint32(16).uint64(Vn.groupId), - Wn - ) - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = An() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - case 1: - zt.address = ht.string() - break - case 2: - zt.groupId = ht.uint64() - break - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return { - address: (0, nn.isSet)(Vn.address) ? String(Vn.address) : '', - groupId: (0, nn.isSet)(Vn.groupId) ? nn.Long.fromValue(Vn.groupId) : nn.Long.UZERO, - } - }, - toJSON(Vn) { - const Wn = {} - return ( - Vn.address !== void 0 && (Wn.address = Vn.address), - Vn.groupId !== void 0 && (Wn.groupId = (Vn.groupId || nn.Long.UZERO).toString()), - Wn - ) - }, - fromPartial(Vn) { - const Wn = An() - return ( - (Wn.address = Vn.address ?? ''), - (Wn.groupId = - Vn.groupId !== void 0 && Vn.groupId !== null - ? nn.Long.fromValue(Vn.groupId) - : nn.Long.UZERO), - Wn - ) - }, - } - function Qn() { - return {} - } - e.MsgLeaveGroupResponse = { - encode(Vn, Wn = sn.Writer.create()) { - return Wn - }, - decode(Vn, Wn) { - const ht = Vn instanceof sn.Reader ? Vn : new sn.Reader(Vn) - let Wt = Wn === void 0 ? ht.len : ht.pos + Wn - const zt = Qn() - for (; ht.pos < Wt; ) { - const mr = ht.uint32() - switch (mr >>> 3) { - default: - ht.skipType(mr & 7) - break - } - } - return zt - }, - fromJSON(Vn) { - return {} - }, - toJSON(Vn) { - return {} - }, - fromPartial(Vn) { - return Qn() - }, - } - class Rn { - constructor(Wn) { - ;(this.rpc = Wn), - (this.CreateGroup = this.CreateGroup.bind(this)), - (this.UpdateGroupMembers = this.UpdateGroupMembers.bind(this)), - (this.UpdateGroupAdmin = this.UpdateGroupAdmin.bind(this)), - (this.UpdateGroupMetadata = this.UpdateGroupMetadata.bind(this)), - (this.CreateGroupPolicy = this.CreateGroupPolicy.bind(this)), - (this.CreateGroupWithPolicy = this.CreateGroupWithPolicy.bind(this)), - (this.UpdateGroupPolicyAdmin = this.UpdateGroupPolicyAdmin.bind(this)), - (this.UpdateGroupPolicyDecisionPolicy = this.UpdateGroupPolicyDecisionPolicy.bind(this)), - (this.UpdateGroupPolicyMetadata = this.UpdateGroupPolicyMetadata.bind(this)), - (this.SubmitProposal = this.SubmitProposal.bind(this)), - (this.WithdrawProposal = this.WithdrawProposal.bind(this)), - (this.Vote = this.Vote.bind(this)), - (this.Exec = this.Exec.bind(this)), - (this.LeaveGroup = this.LeaveGroup.bind(this)) - } - CreateGroup(Wn) { - const ht = e.MsgCreateGroup.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'CreateGroup', ht) - .then((zt) => e.MsgCreateGroupResponse.decode(new sn.Reader(zt))) - } - UpdateGroupMembers(Wn) { - const ht = e.MsgUpdateGroupMembers.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'UpdateGroupMembers', ht) - .then((zt) => e.MsgUpdateGroupMembersResponse.decode(new sn.Reader(zt))) - } - UpdateGroupAdmin(Wn) { - const ht = e.MsgUpdateGroupAdmin.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'UpdateGroupAdmin', ht) - .then((zt) => e.MsgUpdateGroupAdminResponse.decode(new sn.Reader(zt))) - } - UpdateGroupMetadata(Wn) { - const ht = e.MsgUpdateGroupMetadata.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'UpdateGroupMetadata', ht) - .then((zt) => e.MsgUpdateGroupMetadataResponse.decode(new sn.Reader(zt))) - } - CreateGroupPolicy(Wn) { - const ht = e.MsgCreateGroupPolicy.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'CreateGroupPolicy', ht) - .then((zt) => e.MsgCreateGroupPolicyResponse.decode(new sn.Reader(zt))) - } - CreateGroupWithPolicy(Wn) { - const ht = e.MsgCreateGroupWithPolicy.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'CreateGroupWithPolicy', ht) - .then((zt) => e.MsgCreateGroupWithPolicyResponse.decode(new sn.Reader(zt))) - } - UpdateGroupPolicyAdmin(Wn) { - const ht = e.MsgUpdateGroupPolicyAdmin.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'UpdateGroupPolicyAdmin', ht) - .then((zt) => e.MsgUpdateGroupPolicyAdminResponse.decode(new sn.Reader(zt))) - } - UpdateGroupPolicyDecisionPolicy(Wn) { - const ht = e.MsgUpdateGroupPolicyDecisionPolicy.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'UpdateGroupPolicyDecisionPolicy', ht) - .then((zt) => e.MsgUpdateGroupPolicyDecisionPolicyResponse.decode(new sn.Reader(zt))) - } - UpdateGroupPolicyMetadata(Wn) { - const ht = e.MsgUpdateGroupPolicyMetadata.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'UpdateGroupPolicyMetadata', ht) - .then((zt) => e.MsgUpdateGroupPolicyMetadataResponse.decode(new sn.Reader(zt))) - } - SubmitProposal(Wn) { - const ht = e.MsgSubmitProposal.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'SubmitProposal', ht) - .then((zt) => e.MsgSubmitProposalResponse.decode(new sn.Reader(zt))) - } - WithdrawProposal(Wn) { - const ht = e.MsgWithdrawProposal.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'WithdrawProposal', ht) - .then((zt) => e.MsgWithdrawProposalResponse.decode(new sn.Reader(zt))) - } - Vote(Wn) { - const ht = e.MsgVote.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'Vote', ht) - .then((zt) => e.MsgVoteResponse.decode(new sn.Reader(zt))) - } - Exec(Wn) { - const ht = e.MsgExec.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'Exec', ht) - .then((zt) => e.MsgExecResponse.decode(new sn.Reader(zt))) - } - LeaveGroup(Wn) { - const ht = e.MsgLeaveGroup.encode(Wn).finish() - return this.rpc - .request('cosmos.group.v1.Msg', 'LeaveGroup', ht) - .then((zt) => e.MsgLeaveGroupResponse.decode(new sn.Reader(zt))) - } - } - e.MsgClientImpl = Rn -})(tx$7) -Object.defineProperty(messages$4, '__esModule', { value: !0 }) -messages$4.groupTypes = void 0 -const tx_1$7 = tx$7 -messages$4.groupTypes = [ - ['/cosmos.group.v1.MsgCreateGroup', tx_1$7.MsgCreateGroup], - ['/cosmos.group.v1.MsgCreateGroupPolicy', tx_1$7.MsgCreateGroupPolicy], - ['/cosmos.group.v1.MsgCreateGroupWithPolicy', tx_1$7.MsgCreateGroupWithPolicy], - ['/cosmos.group.v1.MsgExec', tx_1$7.MsgExec], - ['/cosmos.group.v1.MsgLeaveGroup', tx_1$7.MsgLeaveGroup], - ['/cosmos.group.v1.MsgSubmitProposal', tx_1$7.MsgSubmitProposal], - ['/cosmos.group.v1.MsgUpdateGroupAdmin', tx_1$7.MsgUpdateGroupAdmin], - ['/cosmos.group.v1.MsgUpdateGroupMembers', tx_1$7.MsgUpdateGroupMembers], - ['/cosmos.group.v1.MsgUpdateGroupMetadata', tx_1$7.MsgUpdateGroupMetadata], - ['/cosmos.group.v1.MsgUpdateGroupPolicyAdmin', tx_1$7.MsgUpdateGroupPolicyAdmin], - [ - '/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy', - tx_1$7.MsgUpdateGroupPolicyDecisionPolicy, - ], - ['/cosmos.group.v1.MsgUpdateGroupPolicyMetadata', tx_1$7.MsgUpdateGroupPolicyMetadata], - ['/cosmos.group.v1.MsgVote', tx_1$7.MsgVote], - ['/cosmos.group.v1.MsgWithdrawProposal', tx_1$7.MsgWithdrawProposal], -] -var aminomessages$4 = {}, - tx$6 = {}, - client = {}, - upgrade = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Kn, an, xn, mn) { - mn === void 0 && (mn = xn) - var Bn = Object.getOwnPropertyDescriptor(an, xn) - ;(!Bn || ('get' in Bn ? !an.__esModule : Bn.writable || Bn.configurable)) && - (Bn = { - enumerable: !0, - get: function () { - return an[xn] - }, - }), - Object.defineProperty(Kn, mn, Bn) - } - : function (Kn, an, xn, mn) { - mn === void 0 && (mn = xn), (Kn[mn] = an[xn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Kn, an) { - Object.defineProperty(Kn, 'default', { enumerable: !0, value: an }) - } - : function (Kn, an) { - Kn.default = an - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Kn) { - if (Kn && Kn.__esModule) return Kn - var an = {} - if (Kn != null) - for (var xn in Kn) - xn !== 'default' && Object.prototype.hasOwnProperty.call(Kn, xn) && o(an, Kn, xn) - return _(an, Kn), an - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ModuleVersion = - e.CancelSoftwareUpgradeProposal = - e.SoftwareUpgradeProposal = - e.Plan = - e.protobufPackage = - void 0) - const $ = timestamp, - en = any, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.upgrade.v1beta1' - function gn() { - return { name: '', time: void 0, height: nn.Long.ZERO, info: '', upgradedClientState: void 0 } - } - e.Plan = { - encode(Kn, an = sn.Writer.create()) { - return ( - Kn.name !== '' && an.uint32(10).string(Kn.name), - Kn.time !== void 0 && $.Timestamp.encode(Kn.time, an.uint32(18).fork()).ldelim(), - Kn.height.isZero() || an.uint32(24).int64(Kn.height), - Kn.info !== '' && an.uint32(34).string(Kn.info), - Kn.upgradedClientState !== void 0 && - en.Any.encode(Kn.upgradedClientState, an.uint32(42).fork()).ldelim(), - an - ) - }, - decode(Kn, an) { - const xn = Kn instanceof sn.Reader ? Kn : new sn.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = gn() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - case 1: - Bn.name = xn.string() - break - case 2: - Bn.time = $.Timestamp.decode(xn, xn.uint32()) - break - case 3: - Bn.height = xn.int64() - break - case 4: - Bn.info = xn.string() - break - case 5: - Bn.upgradedClientState = en.Any.decode(xn, xn.uint32()) - break - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return { - name: (0, nn.isSet)(Kn.name) ? String(Kn.name) : '', - time: (0, nn.isSet)(Kn.time) ? (0, nn.fromJsonTimestamp)(Kn.time) : void 0, - height: (0, nn.isSet)(Kn.height) ? nn.Long.fromValue(Kn.height) : nn.Long.ZERO, - info: (0, nn.isSet)(Kn.info) ? String(Kn.info) : '', - upgradedClientState: (0, nn.isSet)(Kn.upgradedClientState) - ? en.Any.fromJSON(Kn.upgradedClientState) - : void 0, - } - }, - toJSON(Kn) { - const an = {} - return ( - Kn.name !== void 0 && (an.name = Kn.name), - Kn.time !== void 0 && (an.time = (0, nn.fromTimestamp)(Kn.time).toISOString()), - Kn.height !== void 0 && (an.height = (Kn.height || nn.Long.ZERO).toString()), - Kn.info !== void 0 && (an.info = Kn.info), - Kn.upgradedClientState !== void 0 && - (an.upgradedClientState = Kn.upgradedClientState - ? en.Any.toJSON(Kn.upgradedClientState) - : void 0), - an - ) - }, - fromPartial(Kn) { - const an = gn() - return ( - (an.name = Kn.name ?? ''), - (an.time = - Kn.time !== void 0 && Kn.time !== null ? $.Timestamp.fromPartial(Kn.time) : void 0), - (an.height = - Kn.height !== void 0 && Kn.height !== null ? nn.Long.fromValue(Kn.height) : nn.Long.ZERO), - (an.info = Kn.info ?? ''), - (an.upgradedClientState = - Kn.upgradedClientState !== void 0 && Kn.upgradedClientState !== null - ? en.Any.fromPartial(Kn.upgradedClientState) - : void 0), - an - ) - }, - } - function In() { - return { title: '', description: '', plan: void 0 } - } - e.SoftwareUpgradeProposal = { - encode(Kn, an = sn.Writer.create()) { - return ( - Kn.title !== '' && an.uint32(10).string(Kn.title), - Kn.description !== '' && an.uint32(18).string(Kn.description), - Kn.plan !== void 0 && e.Plan.encode(Kn.plan, an.uint32(26).fork()).ldelim(), - an - ) - }, - decode(Kn, an) { - const xn = Kn instanceof sn.Reader ? Kn : new sn.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = In() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - case 1: - Bn.title = xn.string() - break - case 2: - Bn.description = xn.string() - break - case 3: - Bn.plan = e.Plan.decode(xn, xn.uint32()) - break - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return { - title: (0, nn.isSet)(Kn.title) ? String(Kn.title) : '', - description: (0, nn.isSet)(Kn.description) ? String(Kn.description) : '', - plan: (0, nn.isSet)(Kn.plan) ? e.Plan.fromJSON(Kn.plan) : void 0, - } - }, - toJSON(Kn) { - const an = {} - return ( - Kn.title !== void 0 && (an.title = Kn.title), - Kn.description !== void 0 && (an.description = Kn.description), - Kn.plan !== void 0 && (an.plan = Kn.plan ? e.Plan.toJSON(Kn.plan) : void 0), - an - ) - }, - fromPartial(Kn) { - const an = In() - return ( - (an.title = Kn.title ?? ''), - (an.description = Kn.description ?? ''), - (an.plan = Kn.plan !== void 0 && Kn.plan !== null ? e.Plan.fromPartial(Kn.plan) : void 0), - an - ) - }, - } - function Jn() { - return { title: '', description: '' } - } - e.CancelSoftwareUpgradeProposal = { - encode(Kn, an = sn.Writer.create()) { - return ( - Kn.title !== '' && an.uint32(10).string(Kn.title), - Kn.description !== '' && an.uint32(18).string(Kn.description), - an - ) - }, - decode(Kn, an) { - const xn = Kn instanceof sn.Reader ? Kn : new sn.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = Jn() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - case 1: - Bn.title = xn.string() - break - case 2: - Bn.description = xn.string() - break - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return { - title: (0, nn.isSet)(Kn.title) ? String(Kn.title) : '', - description: (0, nn.isSet)(Kn.description) ? String(Kn.description) : '', - } - }, - toJSON(Kn) { - const an = {} - return ( - Kn.title !== void 0 && (an.title = Kn.title), - Kn.description !== void 0 && (an.description = Kn.description), - an - ) - }, - fromPartial(Kn) { - const an = Jn() - return (an.title = Kn.title ?? ''), (an.description = Kn.description ?? ''), an - }, - } - function qn() { - return { name: '', version: nn.Long.UZERO } - } - e.ModuleVersion = { - encode(Kn, an = sn.Writer.create()) { - return ( - Kn.name !== '' && an.uint32(10).string(Kn.name), - Kn.version.isZero() || an.uint32(16).uint64(Kn.version), - an - ) - }, - decode(Kn, an) { - const xn = Kn instanceof sn.Reader ? Kn : new sn.Reader(Kn) - let mn = an === void 0 ? xn.len : xn.pos + an - const Bn = qn() - for (; xn.pos < mn; ) { - const kn = xn.uint32() - switch (kn >>> 3) { - case 1: - Bn.name = xn.string() - break - case 2: - Bn.version = xn.uint64() - break - default: - xn.skipType(kn & 7) - break - } - } - return Bn - }, - fromJSON(Kn) { - return { - name: (0, nn.isSet)(Kn.name) ? String(Kn.name) : '', - version: (0, nn.isSet)(Kn.version) ? nn.Long.fromValue(Kn.version) : nn.Long.UZERO, - } - }, - toJSON(Kn) { - const an = {} - return ( - Kn.name !== void 0 && (an.name = Kn.name), - Kn.version !== void 0 && (an.version = (Kn.version || nn.Long.UZERO).toString()), - an - ) - }, - fromPartial(Kn) { - const an = qn() - return ( - (an.name = Kn.name ?? ''), - (an.version = - Kn.version !== void 0 && Kn.version !== null - ? nn.Long.fromValue(Kn.version) - : nn.Long.UZERO), - an - ) - }, - } -})(upgrade) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn) - var yn = Object.getOwnPropertyDescriptor(Bn, kn) - ;(!yn || ('get' in yn ? !Bn.__esModule : yn.writable || yn.configurable)) && - (yn = { - enumerable: !0, - get: function () { - return Bn[kn] - }, - }), - Object.defineProperty(mn, ln, yn) - } - : function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn), (mn[ln] = Bn[kn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (mn, Bn) { - Object.defineProperty(mn, 'default', { enumerable: !0, value: Bn }) - } - : function (mn, Bn) { - mn.default = Bn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (mn) { - if (mn && mn.__esModule) return mn - var Bn = {} - if (mn != null) - for (var kn in mn) - kn !== 'default' && Object.prototype.hasOwnProperty.call(mn, kn) && o(Bn, mn, kn) - return _(Bn, mn), Bn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Params = - e.Height = - e.UpgradeProposal = - e.ClientUpdateProposal = - e.ClientConsensusStates = - e.ConsensusStateWithHeight = - e.IdentifiedClientState = - e.protobufPackage = - void 0) - const $ = any, - en = upgrade, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'ibc.core.client.v1' - function gn() { - return { clientId: '', clientState: void 0 } - } - e.IdentifiedClientState = { - encode(mn, Bn = sn.Writer.create()) { - return ( - mn.clientId !== '' && Bn.uint32(10).string(mn.clientId), - mn.clientState !== void 0 && $.Any.encode(mn.clientState, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = gn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.clientId = kn.string() - break - case 2: - yn.clientState = $.Any.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - clientId: (0, nn.isSet)(mn.clientId) ? String(mn.clientId) : '', - clientState: (0, nn.isSet)(mn.clientState) ? $.Any.fromJSON(mn.clientState) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.clientId !== void 0 && (Bn.clientId = mn.clientId), - mn.clientState !== void 0 && - (Bn.clientState = mn.clientState ? $.Any.toJSON(mn.clientState) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = gn() - return ( - (Bn.clientId = mn.clientId ?? ''), - (Bn.clientState = - mn.clientState !== void 0 && mn.clientState !== null - ? $.Any.fromPartial(mn.clientState) - : void 0), - Bn - ) - }, - } - function In() { - return { height: void 0, consensusState: void 0 } - } - e.ConsensusStateWithHeight = { - encode(mn, Bn = sn.Writer.create()) { - return ( - mn.height !== void 0 && e.Height.encode(mn.height, Bn.uint32(10).fork()).ldelim(), - mn.consensusState !== void 0 && - $.Any.encode(mn.consensusState, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = In() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.height = e.Height.decode(kn, kn.uint32()) - break - case 2: - yn.consensusState = $.Any.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - height: (0, nn.isSet)(mn.height) ? e.Height.fromJSON(mn.height) : void 0, - consensusState: (0, nn.isSet)(mn.consensusState) - ? $.Any.fromJSON(mn.consensusState) - : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.height !== void 0 && (Bn.height = mn.height ? e.Height.toJSON(mn.height) : void 0), - mn.consensusState !== void 0 && - (Bn.consensusState = mn.consensusState ? $.Any.toJSON(mn.consensusState) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = In() - return ( - (Bn.height = - mn.height !== void 0 && mn.height !== null ? e.Height.fromPartial(mn.height) : void 0), - (Bn.consensusState = - mn.consensusState !== void 0 && mn.consensusState !== null - ? $.Any.fromPartial(mn.consensusState) - : void 0), - Bn - ) - }, - } - function Jn() { - return { clientId: '', consensusStates: [] } - } - e.ClientConsensusStates = { - encode(mn, Bn = sn.Writer.create()) { - mn.clientId !== '' && Bn.uint32(10).string(mn.clientId) - for (const kn of mn.consensusStates) - e.ConsensusStateWithHeight.encode(kn, Bn.uint32(18).fork()).ldelim() - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Jn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.clientId = kn.string() - break - case 2: - yn.consensusStates.push(e.ConsensusStateWithHeight.decode(kn, kn.uint32())) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - clientId: (0, nn.isSet)(mn.clientId) ? String(mn.clientId) : '', - consensusStates: Array.isArray(mn?.consensusStates) - ? mn.consensusStates.map((Bn) => e.ConsensusStateWithHeight.fromJSON(Bn)) - : [], - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.clientId !== void 0 && (Bn.clientId = mn.clientId), - mn.consensusStates - ? (Bn.consensusStates = mn.consensusStates.map((kn) => - kn ? e.ConsensusStateWithHeight.toJSON(kn) : void 0, - )) - : (Bn.consensusStates = []), - Bn - ) - }, - fromPartial(mn) { - const Bn = Jn() - return ( - (Bn.clientId = mn.clientId ?? ''), - (Bn.consensusStates = - mn.consensusStates?.map((kn) => e.ConsensusStateWithHeight.fromPartial(kn)) || []), - Bn - ) - }, - } - function qn() { - return { title: '', description: '', subjectClientId: '', substituteClientId: '' } - } - e.ClientUpdateProposal = { - encode(mn, Bn = sn.Writer.create()) { - return ( - mn.title !== '' && Bn.uint32(10).string(mn.title), - mn.description !== '' && Bn.uint32(18).string(mn.description), - mn.subjectClientId !== '' && Bn.uint32(26).string(mn.subjectClientId), - mn.substituteClientId !== '' && Bn.uint32(34).string(mn.substituteClientId), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = qn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.title = kn.string() - break - case 2: - yn.description = kn.string() - break - case 3: - yn.subjectClientId = kn.string() - break - case 4: - yn.substituteClientId = kn.string() - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - title: (0, nn.isSet)(mn.title) ? String(mn.title) : '', - description: (0, nn.isSet)(mn.description) ? String(mn.description) : '', - subjectClientId: (0, nn.isSet)(mn.subjectClientId) ? String(mn.subjectClientId) : '', - substituteClientId: (0, nn.isSet)(mn.substituteClientId) - ? String(mn.substituteClientId) - : '', - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.title !== void 0 && (Bn.title = mn.title), - mn.description !== void 0 && (Bn.description = mn.description), - mn.subjectClientId !== void 0 && (Bn.subjectClientId = mn.subjectClientId), - mn.substituteClientId !== void 0 && (Bn.substituteClientId = mn.substituteClientId), - Bn - ) - }, - fromPartial(mn) { - const Bn = qn() - return ( - (Bn.title = mn.title ?? ''), - (Bn.description = mn.description ?? ''), - (Bn.subjectClientId = mn.subjectClientId ?? ''), - (Bn.substituteClientId = mn.substituteClientId ?? ''), - Bn - ) - }, - } - function Kn() { - return { title: '', description: '', plan: void 0, upgradedClientState: void 0 } - } - e.UpgradeProposal = { - encode(mn, Bn = sn.Writer.create()) { - return ( - mn.title !== '' && Bn.uint32(10).string(mn.title), - mn.description !== '' && Bn.uint32(18).string(mn.description), - mn.plan !== void 0 && en.Plan.encode(mn.plan, Bn.uint32(26).fork()).ldelim(), - mn.upgradedClientState !== void 0 && - $.Any.encode(mn.upgradedClientState, Bn.uint32(34).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Kn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.title = kn.string() - break - case 2: - yn.description = kn.string() - break - case 3: - yn.plan = en.Plan.decode(kn, kn.uint32()) - break - case 4: - yn.upgradedClientState = $.Any.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - title: (0, nn.isSet)(mn.title) ? String(mn.title) : '', - description: (0, nn.isSet)(mn.description) ? String(mn.description) : '', - plan: (0, nn.isSet)(mn.plan) ? en.Plan.fromJSON(mn.plan) : void 0, - upgradedClientState: (0, nn.isSet)(mn.upgradedClientState) - ? $.Any.fromJSON(mn.upgradedClientState) - : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.title !== void 0 && (Bn.title = mn.title), - mn.description !== void 0 && (Bn.description = mn.description), - mn.plan !== void 0 && (Bn.plan = mn.plan ? en.Plan.toJSON(mn.plan) : void 0), - mn.upgradedClientState !== void 0 && - (Bn.upgradedClientState = mn.upgradedClientState - ? $.Any.toJSON(mn.upgradedClientState) - : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = Kn() - return ( - (Bn.title = mn.title ?? ''), - (Bn.description = mn.description ?? ''), - (Bn.plan = mn.plan !== void 0 && mn.plan !== null ? en.Plan.fromPartial(mn.plan) : void 0), - (Bn.upgradedClientState = - mn.upgradedClientState !== void 0 && mn.upgradedClientState !== null - ? $.Any.fromPartial(mn.upgradedClientState) - : void 0), - Bn - ) - }, - } - function an() { - return { revisionNumber: nn.Long.UZERO, revisionHeight: nn.Long.UZERO } - } - e.Height = { - encode(mn, Bn = sn.Writer.create()) { - return ( - mn.revisionNumber.isZero() || Bn.uint32(8).uint64(mn.revisionNumber), - mn.revisionHeight.isZero() || Bn.uint32(16).uint64(mn.revisionHeight), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = an() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.revisionNumber = kn.uint64() - break - case 2: - yn.revisionHeight = kn.uint64() - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - revisionNumber: (0, nn.isSet)(mn.revisionNumber) - ? nn.Long.fromValue(mn.revisionNumber) - : nn.Long.UZERO, - revisionHeight: (0, nn.isSet)(mn.revisionHeight) - ? nn.Long.fromValue(mn.revisionHeight) - : nn.Long.UZERO, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.revisionNumber !== void 0 && - (Bn.revisionNumber = (mn.revisionNumber || nn.Long.UZERO).toString()), - mn.revisionHeight !== void 0 && - (Bn.revisionHeight = (mn.revisionHeight || nn.Long.UZERO).toString()), - Bn - ) - }, - fromPartial(mn) { - const Bn = an() - return ( - (Bn.revisionNumber = - mn.revisionNumber !== void 0 && mn.revisionNumber !== null - ? nn.Long.fromValue(mn.revisionNumber) - : nn.Long.UZERO), - (Bn.revisionHeight = - mn.revisionHeight !== void 0 && mn.revisionHeight !== null - ? nn.Long.fromValue(mn.revisionHeight) - : nn.Long.UZERO), - Bn - ) - }, - } - function xn() { - return { allowedClients: [] } - } - e.Params = { - encode(mn, Bn = sn.Writer.create()) { - for (const kn of mn.allowedClients) Bn.uint32(10).string(kn) - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = xn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.allowedClients.push(kn.string()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - allowedClients: Array.isArray(mn?.allowedClients) - ? mn.allowedClients.map((Bn) => String(Bn)) - : [], - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.allowedClients - ? (Bn.allowedClients = mn.allowedClients.map((kn) => kn)) - : (Bn.allowedClients = []), - Bn - ) - }, - fromPartial(mn) { - const Bn = xn() - return (Bn.allowedClients = mn.allowedClients?.map((kn) => kn) || []), Bn - }, - } -})(client) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (qn, Kn, an, xn) { - xn === void 0 && (xn = an) - var mn = Object.getOwnPropertyDescriptor(Kn, an) - ;(!mn || ('get' in mn ? !Kn.__esModule : mn.writable || mn.configurable)) && - (mn = { - enumerable: !0, - get: function () { - return Kn[an] - }, - }), - Object.defineProperty(qn, xn, mn) - } - : function (qn, Kn, an, xn) { - xn === void 0 && (xn = an), (qn[xn] = Kn[an]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (qn, Kn) { - Object.defineProperty(qn, 'default', { enumerable: !0, value: Kn }) - } - : function (qn, Kn) { - qn.default = Kn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (qn) { - if (qn && qn.__esModule) return qn - var Kn = {} - if (qn != null) - for (var an in qn) - an !== 'default' && Object.prototype.hasOwnProperty.call(qn, an) && o(Kn, qn, an) - return _(Kn, qn), Kn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = e.MsgTransferResponse = e.MsgTransfer = e.protobufPackage = void 0) - const $ = coin$1, - en = client, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'ibc.applications.transfer.v1' - function gn() { - return { - sourcePort: '', - sourceChannel: '', - token: void 0, - sender: '', - receiver: '', - timeoutHeight: void 0, - timeoutTimestamp: nn.Long.UZERO, - memo: '', - } - } - e.MsgTransfer = { - encode(qn, Kn = sn.Writer.create()) { - return ( - qn.sourcePort !== '' && Kn.uint32(10).string(qn.sourcePort), - qn.sourceChannel !== '' && Kn.uint32(18).string(qn.sourceChannel), - qn.token !== void 0 && $.Coin.encode(qn.token, Kn.uint32(26).fork()).ldelim(), - qn.sender !== '' && Kn.uint32(34).string(qn.sender), - qn.receiver !== '' && Kn.uint32(42).string(qn.receiver), - qn.timeoutHeight !== void 0 && - en.Height.encode(qn.timeoutHeight, Kn.uint32(50).fork()).ldelim(), - qn.timeoutTimestamp.isZero() || Kn.uint32(56).uint64(qn.timeoutTimestamp), - qn.memo !== '' && Kn.uint32(66).string(qn.memo), - Kn - ) - }, - decode(qn, Kn) { - const an = qn instanceof sn.Reader ? qn : new sn.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = gn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.sourcePort = an.string() - break - case 2: - mn.sourceChannel = an.string() - break - case 3: - mn.token = $.Coin.decode(an, an.uint32()) - break - case 4: - mn.sender = an.string() - break - case 5: - mn.receiver = an.string() - break - case 6: - mn.timeoutHeight = en.Height.decode(an, an.uint32()) - break - case 7: - mn.timeoutTimestamp = an.uint64() - break - case 8: - mn.memo = an.string() - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - sourcePort: (0, nn.isSet)(qn.sourcePort) ? String(qn.sourcePort) : '', - sourceChannel: (0, nn.isSet)(qn.sourceChannel) ? String(qn.sourceChannel) : '', - token: (0, nn.isSet)(qn.token) ? $.Coin.fromJSON(qn.token) : void 0, - sender: (0, nn.isSet)(qn.sender) ? String(qn.sender) : '', - receiver: (0, nn.isSet)(qn.receiver) ? String(qn.receiver) : '', - timeoutHeight: (0, nn.isSet)(qn.timeoutHeight) - ? en.Height.fromJSON(qn.timeoutHeight) - : void 0, - timeoutTimestamp: (0, nn.isSet)(qn.timeoutTimestamp) - ? nn.Long.fromValue(qn.timeoutTimestamp) - : nn.Long.UZERO, - memo: (0, nn.isSet)(qn.memo) ? String(qn.memo) : '', - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.sourcePort !== void 0 && (Kn.sourcePort = qn.sourcePort), - qn.sourceChannel !== void 0 && (Kn.sourceChannel = qn.sourceChannel), - qn.token !== void 0 && (Kn.token = qn.token ? $.Coin.toJSON(qn.token) : void 0), - qn.sender !== void 0 && (Kn.sender = qn.sender), - qn.receiver !== void 0 && (Kn.receiver = qn.receiver), - qn.timeoutHeight !== void 0 && - (Kn.timeoutHeight = qn.timeoutHeight ? en.Height.toJSON(qn.timeoutHeight) : void 0), - qn.timeoutTimestamp !== void 0 && - (Kn.timeoutTimestamp = (qn.timeoutTimestamp || nn.Long.UZERO).toString()), - qn.memo !== void 0 && (Kn.memo = qn.memo), - Kn - ) - }, - fromPartial(qn) { - const Kn = gn() - return ( - (Kn.sourcePort = qn.sourcePort ?? ''), - (Kn.sourceChannel = qn.sourceChannel ?? ''), - (Kn.token = - qn.token !== void 0 && qn.token !== null ? $.Coin.fromPartial(qn.token) : void 0), - (Kn.sender = qn.sender ?? ''), - (Kn.receiver = qn.receiver ?? ''), - (Kn.timeoutHeight = - qn.timeoutHeight !== void 0 && qn.timeoutHeight !== null - ? en.Height.fromPartial(qn.timeoutHeight) - : void 0), - (Kn.timeoutTimestamp = - qn.timeoutTimestamp !== void 0 && qn.timeoutTimestamp !== null - ? nn.Long.fromValue(qn.timeoutTimestamp) - : nn.Long.UZERO), - (Kn.memo = qn.memo ?? ''), - Kn - ) - }, - } - function In() { - return { sequence: nn.Long.UZERO } - } - e.MsgTransferResponse = { - encode(qn, Kn = sn.Writer.create()) { - return qn.sequence.isZero() || Kn.uint32(8).uint64(qn.sequence), Kn - }, - decode(qn, Kn) { - const an = qn instanceof sn.Reader ? qn : new sn.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = In() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.sequence = an.uint64() - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - sequence: (0, nn.isSet)(qn.sequence) ? nn.Long.fromValue(qn.sequence) : nn.Long.UZERO, - } - }, - toJSON(qn) { - const Kn = {} - return qn.sequence !== void 0 && (Kn.sequence = (qn.sequence || nn.Long.UZERO).toString()), Kn - }, - fromPartial(qn) { - const Kn = In() - return ( - (Kn.sequence = - qn.sequence !== void 0 && qn.sequence !== null - ? nn.Long.fromValue(qn.sequence) - : nn.Long.UZERO), - Kn - ) - }, - } - class Jn { - constructor(Kn) { - ;(this.rpc = Kn), (this.Transfer = this.Transfer.bind(this)) - } - Transfer(Kn) { - const an = e.MsgTransfer.encode(Kn).finish() - return this.rpc - .request('ibc.applications.transfer.v1.Msg', 'Transfer', an) - .then((mn) => e.MsgTransferResponse.decode(new sn.Reader(mn))) - } - } - e.MsgClientImpl = Jn -})(tx$6) -var __importDefault$9 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(aminomessages$4, '__esModule', { value: !0 }) -aminomessages$4.createIbcAminoConverters = aminomessages$4.isAminoMsgTransfer = void 0 -const tx_1$6 = tx$6, - long_1$7 = __importDefault$9(long$1) -function isAminoMsgTransfer(e) { - return e.type === 'cosmos-sdk/MsgTransfer' -} -aminomessages$4.isAminoMsgTransfer = isAminoMsgTransfer -function omitDefault(e) { - if (typeof e == 'string') return e === '' ? void 0 : e - if (typeof e == 'number') return e === 0 ? void 0 : e - if (long_1$7.default.isLong(e)) return e.isZero() ? void 0 : e - throw new Error(`Got unsupported type '${typeof e}'`) -} -function createIbcAminoConverters() { - return { - '/ibc.applications.transfer.v1.MsgTransfer': { - aminoType: 'cosmos-sdk/MsgTransfer', - toAmino: ({ - sourcePort: e, - sourceChannel: o, - token: _, - sender: b, - receiver: $, - timeoutHeight: en, - timeoutTimestamp: nn, - }) => ({ - source_port: e, - source_channel: o, - token: _, - sender: b, - receiver: $, - timeout_height: en - ? { - revision_height: omitDefault(en.revisionHeight)?.toString(), - revision_number: omitDefault(en.revisionNumber)?.toString(), - } - : {}, - timeout_timestamp: omitDefault(nn)?.toString(), - }), - fromAmino: ({ - source_port: e, - source_channel: o, - token: _, - sender: b, - receiver: $, - timeout_height: en, - timeout_timestamp: nn, - }) => - tx_1$6.MsgTransfer.fromPartial({ - sourcePort: e, - sourceChannel: o, - token: _, - sender: b, - receiver: $, - timeoutHeight: en - ? { - revisionHeight: long_1$7.default.fromString(en.revision_height || '0', !0), - revisionNumber: long_1$7.default.fromString(en.revision_number || '0', !0), - } - : void 0, - timeoutTimestamp: long_1$7.default.fromString(nn || '0', !0), - }), - }, - } -} -aminomessages$4.createIbcAminoConverters = createIbcAminoConverters -var messages$3 = {}, - tx$5 = {}, - channel = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Cn, Tn, Gn, Sn) { - Sn === void 0 && (Sn = Gn) - var Zn = Object.getOwnPropertyDescriptor(Tn, Gn) - ;(!Zn || ('get' in Zn ? !Tn.__esModule : Zn.writable || Zn.configurable)) && - (Zn = { - enumerable: !0, - get: function () { - return Tn[Gn] - }, - }), - Object.defineProperty(Cn, Sn, Zn) - } - : function (Cn, Tn, Gn, Sn) { - Sn === void 0 && (Sn = Gn), (Cn[Sn] = Tn[Gn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Cn, Tn) { - Object.defineProperty(Cn, 'default', { enumerable: !0, value: Tn }) - } - : function (Cn, Tn) { - Cn.default = Tn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Cn) { - if (Cn && Cn.__esModule) return Cn - var Tn = {} - if (Cn != null) - for (var Gn in Cn) - Gn !== 'default' && Object.prototype.hasOwnProperty.call(Cn, Gn) && o(Tn, Cn, Gn) - return _(Tn, Cn), Tn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Acknowledgement = - e.PacketId = - e.PacketState = - e.Packet = - e.Counterparty = - e.IdentifiedChannel = - e.Channel = - e.orderToJSON = - e.orderFromJSON = - e.Order = - e.stateToJSON = - e.stateFromJSON = - e.State = - e.protobufPackage = - void 0) - const $ = client, - en = helpers, - nn = b(minimalExports) - e.protobufPackage = 'ibc.core.channel.v1' - var sn - ;(function (Cn) { - ;(Cn[(Cn.STATE_UNINITIALIZED_UNSPECIFIED = 0)] = 'STATE_UNINITIALIZED_UNSPECIFIED'), - (Cn[(Cn.STATE_INIT = 1)] = 'STATE_INIT'), - (Cn[(Cn.STATE_TRYOPEN = 2)] = 'STATE_TRYOPEN'), - (Cn[(Cn.STATE_OPEN = 3)] = 'STATE_OPEN'), - (Cn[(Cn.STATE_CLOSED = 4)] = 'STATE_CLOSED'), - (Cn[(Cn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((sn = e.State || (e.State = {}))) - function gn(Cn) { - switch (Cn) { - case 0: - case 'STATE_UNINITIALIZED_UNSPECIFIED': - return sn.STATE_UNINITIALIZED_UNSPECIFIED - case 1: - case 'STATE_INIT': - return sn.STATE_INIT - case 2: - case 'STATE_TRYOPEN': - return sn.STATE_TRYOPEN - case 3: - case 'STATE_OPEN': - return sn.STATE_OPEN - case 4: - case 'STATE_CLOSED': - return sn.STATE_CLOSED - case -1: - case 'UNRECOGNIZED': - default: - return sn.UNRECOGNIZED - } - } - e.stateFromJSON = gn - function In(Cn) { - switch (Cn) { - case sn.STATE_UNINITIALIZED_UNSPECIFIED: - return 'STATE_UNINITIALIZED_UNSPECIFIED' - case sn.STATE_INIT: - return 'STATE_INIT' - case sn.STATE_TRYOPEN: - return 'STATE_TRYOPEN' - case sn.STATE_OPEN: - return 'STATE_OPEN' - case sn.STATE_CLOSED: - return 'STATE_CLOSED' - case sn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.stateToJSON = In - var Jn - ;(function (Cn) { - ;(Cn[(Cn.ORDER_NONE_UNSPECIFIED = 0)] = 'ORDER_NONE_UNSPECIFIED'), - (Cn[(Cn.ORDER_UNORDERED = 1)] = 'ORDER_UNORDERED'), - (Cn[(Cn.ORDER_ORDERED = 2)] = 'ORDER_ORDERED'), - (Cn[(Cn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Jn = e.Order || (e.Order = {}))) - function qn(Cn) { - switch (Cn) { - case 0: - case 'ORDER_NONE_UNSPECIFIED': - return Jn.ORDER_NONE_UNSPECIFIED - case 1: - case 'ORDER_UNORDERED': - return Jn.ORDER_UNORDERED - case 2: - case 'ORDER_ORDERED': - return Jn.ORDER_ORDERED - case -1: - case 'UNRECOGNIZED': - default: - return Jn.UNRECOGNIZED - } - } - e.orderFromJSON = qn - function Kn(Cn) { - switch (Cn) { - case Jn.ORDER_NONE_UNSPECIFIED: - return 'ORDER_NONE_UNSPECIFIED' - case Jn.ORDER_UNORDERED: - return 'ORDER_UNORDERED' - case Jn.ORDER_ORDERED: - return 'ORDER_ORDERED' - case Jn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.orderToJSON = Kn - function an() { - return { state: 0, ordering: 0, counterparty: void 0, connectionHops: [], version: '' } - } - e.Channel = { - encode(Cn, Tn = nn.Writer.create()) { - Cn.state !== 0 && Tn.uint32(8).int32(Cn.state), - Cn.ordering !== 0 && Tn.uint32(16).int32(Cn.ordering), - Cn.counterparty !== void 0 && - e.Counterparty.encode(Cn.counterparty, Tn.uint32(26).fork()).ldelim() - for (const Gn of Cn.connectionHops) Tn.uint32(34).string(Gn) - return Cn.version !== '' && Tn.uint32(42).string(Cn.version), Tn - }, - decode(Cn, Tn) { - const Gn = Cn instanceof nn.Reader ? Cn : new nn.Reader(Cn) - let Sn = Tn === void 0 ? Gn.len : Gn.pos + Tn - const Zn = an() - for (; Gn.pos < Sn; ) { - const tn = Gn.uint32() - switch (tn >>> 3) { - case 1: - Zn.state = Gn.int32() - break - case 2: - Zn.ordering = Gn.int32() - break - case 3: - Zn.counterparty = e.Counterparty.decode(Gn, Gn.uint32()) - break - case 4: - Zn.connectionHops.push(Gn.string()) - break - case 5: - Zn.version = Gn.string() - break - default: - Gn.skipType(tn & 7) - break - } - } - return Zn - }, - fromJSON(Cn) { - return { - state: (0, en.isSet)(Cn.state) ? gn(Cn.state) : 0, - ordering: (0, en.isSet)(Cn.ordering) ? qn(Cn.ordering) : 0, - counterparty: (0, en.isSet)(Cn.counterparty) - ? e.Counterparty.fromJSON(Cn.counterparty) - : void 0, - connectionHops: Array.isArray(Cn?.connectionHops) - ? Cn.connectionHops.map((Tn) => String(Tn)) - : [], - version: (0, en.isSet)(Cn.version) ? String(Cn.version) : '', - } - }, - toJSON(Cn) { - const Tn = {} - return ( - Cn.state !== void 0 && (Tn.state = In(Cn.state)), - Cn.ordering !== void 0 && (Tn.ordering = Kn(Cn.ordering)), - Cn.counterparty !== void 0 && - (Tn.counterparty = Cn.counterparty ? e.Counterparty.toJSON(Cn.counterparty) : void 0), - Cn.connectionHops - ? (Tn.connectionHops = Cn.connectionHops.map((Gn) => Gn)) - : (Tn.connectionHops = []), - Cn.version !== void 0 && (Tn.version = Cn.version), - Tn - ) - }, - fromPartial(Cn) { - const Tn = an() - return ( - (Tn.state = Cn.state ?? 0), - (Tn.ordering = Cn.ordering ?? 0), - (Tn.counterparty = - Cn.counterparty !== void 0 && Cn.counterparty !== null - ? e.Counterparty.fromPartial(Cn.counterparty) - : void 0), - (Tn.connectionHops = Cn.connectionHops?.map((Gn) => Gn) || []), - (Tn.version = Cn.version ?? ''), - Tn - ) - }, - } - function xn() { - return { - state: 0, - ordering: 0, - counterparty: void 0, - connectionHops: [], - version: '', - portId: '', - channelId: '', - } - } - e.IdentifiedChannel = { - encode(Cn, Tn = nn.Writer.create()) { - Cn.state !== 0 && Tn.uint32(8).int32(Cn.state), - Cn.ordering !== 0 && Tn.uint32(16).int32(Cn.ordering), - Cn.counterparty !== void 0 && - e.Counterparty.encode(Cn.counterparty, Tn.uint32(26).fork()).ldelim() - for (const Gn of Cn.connectionHops) Tn.uint32(34).string(Gn) - return ( - Cn.version !== '' && Tn.uint32(42).string(Cn.version), - Cn.portId !== '' && Tn.uint32(50).string(Cn.portId), - Cn.channelId !== '' && Tn.uint32(58).string(Cn.channelId), - Tn - ) - }, - decode(Cn, Tn) { - const Gn = Cn instanceof nn.Reader ? Cn : new nn.Reader(Cn) - let Sn = Tn === void 0 ? Gn.len : Gn.pos + Tn - const Zn = xn() - for (; Gn.pos < Sn; ) { - const tn = Gn.uint32() - switch (tn >>> 3) { - case 1: - Zn.state = Gn.int32() - break - case 2: - Zn.ordering = Gn.int32() - break - case 3: - Zn.counterparty = e.Counterparty.decode(Gn, Gn.uint32()) - break - case 4: - Zn.connectionHops.push(Gn.string()) - break - case 5: - Zn.version = Gn.string() - break - case 6: - Zn.portId = Gn.string() - break - case 7: - Zn.channelId = Gn.string() - break - default: - Gn.skipType(tn & 7) - break - } - } - return Zn - }, - fromJSON(Cn) { - return { - state: (0, en.isSet)(Cn.state) ? gn(Cn.state) : 0, - ordering: (0, en.isSet)(Cn.ordering) ? qn(Cn.ordering) : 0, - counterparty: (0, en.isSet)(Cn.counterparty) - ? e.Counterparty.fromJSON(Cn.counterparty) - : void 0, - connectionHops: Array.isArray(Cn?.connectionHops) - ? Cn.connectionHops.map((Tn) => String(Tn)) - : [], - version: (0, en.isSet)(Cn.version) ? String(Cn.version) : '', - portId: (0, en.isSet)(Cn.portId) ? String(Cn.portId) : '', - channelId: (0, en.isSet)(Cn.channelId) ? String(Cn.channelId) : '', - } - }, - toJSON(Cn) { - const Tn = {} - return ( - Cn.state !== void 0 && (Tn.state = In(Cn.state)), - Cn.ordering !== void 0 && (Tn.ordering = Kn(Cn.ordering)), - Cn.counterparty !== void 0 && - (Tn.counterparty = Cn.counterparty ? e.Counterparty.toJSON(Cn.counterparty) : void 0), - Cn.connectionHops - ? (Tn.connectionHops = Cn.connectionHops.map((Gn) => Gn)) - : (Tn.connectionHops = []), - Cn.version !== void 0 && (Tn.version = Cn.version), - Cn.portId !== void 0 && (Tn.portId = Cn.portId), - Cn.channelId !== void 0 && (Tn.channelId = Cn.channelId), - Tn - ) - }, - fromPartial(Cn) { - const Tn = xn() - return ( - (Tn.state = Cn.state ?? 0), - (Tn.ordering = Cn.ordering ?? 0), - (Tn.counterparty = - Cn.counterparty !== void 0 && Cn.counterparty !== null - ? e.Counterparty.fromPartial(Cn.counterparty) - : void 0), - (Tn.connectionHops = Cn.connectionHops?.map((Gn) => Gn) || []), - (Tn.version = Cn.version ?? ''), - (Tn.portId = Cn.portId ?? ''), - (Tn.channelId = Cn.channelId ?? ''), - Tn - ) - }, - } - function mn() { - return { portId: '', channelId: '' } - } - e.Counterparty = { - encode(Cn, Tn = nn.Writer.create()) { - return ( - Cn.portId !== '' && Tn.uint32(10).string(Cn.portId), - Cn.channelId !== '' && Tn.uint32(18).string(Cn.channelId), - Tn - ) - }, - decode(Cn, Tn) { - const Gn = Cn instanceof nn.Reader ? Cn : new nn.Reader(Cn) - let Sn = Tn === void 0 ? Gn.len : Gn.pos + Tn - const Zn = mn() - for (; Gn.pos < Sn; ) { - const tn = Gn.uint32() - switch (tn >>> 3) { - case 1: - Zn.portId = Gn.string() - break - case 2: - Zn.channelId = Gn.string() - break - default: - Gn.skipType(tn & 7) - break - } - } - return Zn - }, - fromJSON(Cn) { - return { - portId: (0, en.isSet)(Cn.portId) ? String(Cn.portId) : '', - channelId: (0, en.isSet)(Cn.channelId) ? String(Cn.channelId) : '', - } - }, - toJSON(Cn) { - const Tn = {} - return ( - Cn.portId !== void 0 && (Tn.portId = Cn.portId), - Cn.channelId !== void 0 && (Tn.channelId = Cn.channelId), - Tn - ) - }, - fromPartial(Cn) { - const Tn = mn() - return (Tn.portId = Cn.portId ?? ''), (Tn.channelId = Cn.channelId ?? ''), Tn - }, - } - function Bn() { - return { - sequence: en.Long.UZERO, - sourcePort: '', - sourceChannel: '', - destinationPort: '', - destinationChannel: '', - data: new Uint8Array(), - timeoutHeight: void 0, - timeoutTimestamp: en.Long.UZERO, - } - } - e.Packet = { - encode(Cn, Tn = nn.Writer.create()) { - return ( - Cn.sequence.isZero() || Tn.uint32(8).uint64(Cn.sequence), - Cn.sourcePort !== '' && Tn.uint32(18).string(Cn.sourcePort), - Cn.sourceChannel !== '' && Tn.uint32(26).string(Cn.sourceChannel), - Cn.destinationPort !== '' && Tn.uint32(34).string(Cn.destinationPort), - Cn.destinationChannel !== '' && Tn.uint32(42).string(Cn.destinationChannel), - Cn.data.length !== 0 && Tn.uint32(50).bytes(Cn.data), - Cn.timeoutHeight !== void 0 && - $.Height.encode(Cn.timeoutHeight, Tn.uint32(58).fork()).ldelim(), - Cn.timeoutTimestamp.isZero() || Tn.uint32(64).uint64(Cn.timeoutTimestamp), - Tn - ) - }, - decode(Cn, Tn) { - const Gn = Cn instanceof nn.Reader ? Cn : new nn.Reader(Cn) - let Sn = Tn === void 0 ? Gn.len : Gn.pos + Tn - const Zn = Bn() - for (; Gn.pos < Sn; ) { - const tn = Gn.uint32() - switch (tn >>> 3) { - case 1: - Zn.sequence = Gn.uint64() - break - case 2: - Zn.sourcePort = Gn.string() - break - case 3: - Zn.sourceChannel = Gn.string() - break - case 4: - Zn.destinationPort = Gn.string() - break - case 5: - Zn.destinationChannel = Gn.string() - break - case 6: - Zn.data = Gn.bytes() - break - case 7: - Zn.timeoutHeight = $.Height.decode(Gn, Gn.uint32()) - break - case 8: - Zn.timeoutTimestamp = Gn.uint64() - break - default: - Gn.skipType(tn & 7) - break - } - } - return Zn - }, - fromJSON(Cn) { - return { - sequence: (0, en.isSet)(Cn.sequence) ? en.Long.fromValue(Cn.sequence) : en.Long.UZERO, - sourcePort: (0, en.isSet)(Cn.sourcePort) ? String(Cn.sourcePort) : '', - sourceChannel: (0, en.isSet)(Cn.sourceChannel) ? String(Cn.sourceChannel) : '', - destinationPort: (0, en.isSet)(Cn.destinationPort) ? String(Cn.destinationPort) : '', - destinationChannel: (0, en.isSet)(Cn.destinationChannel) - ? String(Cn.destinationChannel) - : '', - data: (0, en.isSet)(Cn.data) ? (0, en.bytesFromBase64)(Cn.data) : new Uint8Array(), - timeoutHeight: (0, en.isSet)(Cn.timeoutHeight) - ? $.Height.fromJSON(Cn.timeoutHeight) - : void 0, - timeoutTimestamp: (0, en.isSet)(Cn.timeoutTimestamp) - ? en.Long.fromValue(Cn.timeoutTimestamp) - : en.Long.UZERO, - } - }, - toJSON(Cn) { - const Tn = {} - return ( - Cn.sequence !== void 0 && (Tn.sequence = (Cn.sequence || en.Long.UZERO).toString()), - Cn.sourcePort !== void 0 && (Tn.sourcePort = Cn.sourcePort), - Cn.sourceChannel !== void 0 && (Tn.sourceChannel = Cn.sourceChannel), - Cn.destinationPort !== void 0 && (Tn.destinationPort = Cn.destinationPort), - Cn.destinationChannel !== void 0 && (Tn.destinationChannel = Cn.destinationChannel), - Cn.data !== void 0 && - (Tn.data = (0, en.base64FromBytes)(Cn.data !== void 0 ? Cn.data : new Uint8Array())), - Cn.timeoutHeight !== void 0 && - (Tn.timeoutHeight = Cn.timeoutHeight ? $.Height.toJSON(Cn.timeoutHeight) : void 0), - Cn.timeoutTimestamp !== void 0 && - (Tn.timeoutTimestamp = (Cn.timeoutTimestamp || en.Long.UZERO).toString()), - Tn - ) - }, - fromPartial(Cn) { - const Tn = Bn() - return ( - (Tn.sequence = - Cn.sequence !== void 0 && Cn.sequence !== null - ? en.Long.fromValue(Cn.sequence) - : en.Long.UZERO), - (Tn.sourcePort = Cn.sourcePort ?? ''), - (Tn.sourceChannel = Cn.sourceChannel ?? ''), - (Tn.destinationPort = Cn.destinationPort ?? ''), - (Tn.destinationChannel = Cn.destinationChannel ?? ''), - (Tn.data = Cn.data ?? new Uint8Array()), - (Tn.timeoutHeight = - Cn.timeoutHeight !== void 0 && Cn.timeoutHeight !== null - ? $.Height.fromPartial(Cn.timeoutHeight) - : void 0), - (Tn.timeoutTimestamp = - Cn.timeoutTimestamp !== void 0 && Cn.timeoutTimestamp !== null - ? en.Long.fromValue(Cn.timeoutTimestamp) - : en.Long.UZERO), - Tn - ) - }, - } - function kn() { - return { portId: '', channelId: '', sequence: en.Long.UZERO, data: new Uint8Array() } - } - e.PacketState = { - encode(Cn, Tn = nn.Writer.create()) { - return ( - Cn.portId !== '' && Tn.uint32(10).string(Cn.portId), - Cn.channelId !== '' && Tn.uint32(18).string(Cn.channelId), - Cn.sequence.isZero() || Tn.uint32(24).uint64(Cn.sequence), - Cn.data.length !== 0 && Tn.uint32(34).bytes(Cn.data), - Tn - ) - }, - decode(Cn, Tn) { - const Gn = Cn instanceof nn.Reader ? Cn : new nn.Reader(Cn) - let Sn = Tn === void 0 ? Gn.len : Gn.pos + Tn - const Zn = kn() - for (; Gn.pos < Sn; ) { - const tn = Gn.uint32() - switch (tn >>> 3) { - case 1: - Zn.portId = Gn.string() - break - case 2: - Zn.channelId = Gn.string() - break - case 3: - Zn.sequence = Gn.uint64() - break - case 4: - Zn.data = Gn.bytes() - break - default: - Gn.skipType(tn & 7) - break - } - } - return Zn - }, - fromJSON(Cn) { - return { - portId: (0, en.isSet)(Cn.portId) ? String(Cn.portId) : '', - channelId: (0, en.isSet)(Cn.channelId) ? String(Cn.channelId) : '', - sequence: (0, en.isSet)(Cn.sequence) ? en.Long.fromValue(Cn.sequence) : en.Long.UZERO, - data: (0, en.isSet)(Cn.data) ? (0, en.bytesFromBase64)(Cn.data) : new Uint8Array(), - } - }, - toJSON(Cn) { - const Tn = {} - return ( - Cn.portId !== void 0 && (Tn.portId = Cn.portId), - Cn.channelId !== void 0 && (Tn.channelId = Cn.channelId), - Cn.sequence !== void 0 && (Tn.sequence = (Cn.sequence || en.Long.UZERO).toString()), - Cn.data !== void 0 && - (Tn.data = (0, en.base64FromBytes)(Cn.data !== void 0 ? Cn.data : new Uint8Array())), - Tn - ) - }, - fromPartial(Cn) { - const Tn = kn() - return ( - (Tn.portId = Cn.portId ?? ''), - (Tn.channelId = Cn.channelId ?? ''), - (Tn.sequence = - Cn.sequence !== void 0 && Cn.sequence !== null - ? en.Long.fromValue(Cn.sequence) - : en.Long.UZERO), - (Tn.data = Cn.data ?? new Uint8Array()), - Tn - ) - }, - } - function ln() { - return { portId: '', channelId: '', sequence: en.Long.UZERO } - } - e.PacketId = { - encode(Cn, Tn = nn.Writer.create()) { - return ( - Cn.portId !== '' && Tn.uint32(10).string(Cn.portId), - Cn.channelId !== '' && Tn.uint32(18).string(Cn.channelId), - Cn.sequence.isZero() || Tn.uint32(24).uint64(Cn.sequence), - Tn - ) - }, - decode(Cn, Tn) { - const Gn = Cn instanceof nn.Reader ? Cn : new nn.Reader(Cn) - let Sn = Tn === void 0 ? Gn.len : Gn.pos + Tn - const Zn = ln() - for (; Gn.pos < Sn; ) { - const tn = Gn.uint32() - switch (tn >>> 3) { - case 1: - Zn.portId = Gn.string() - break - case 2: - Zn.channelId = Gn.string() - break - case 3: - Zn.sequence = Gn.uint64() - break - default: - Gn.skipType(tn & 7) - break - } - } - return Zn - }, - fromJSON(Cn) { - return { - portId: (0, en.isSet)(Cn.portId) ? String(Cn.portId) : '', - channelId: (0, en.isSet)(Cn.channelId) ? String(Cn.channelId) : '', - sequence: (0, en.isSet)(Cn.sequence) ? en.Long.fromValue(Cn.sequence) : en.Long.UZERO, - } - }, - toJSON(Cn) { - const Tn = {} - return ( - Cn.portId !== void 0 && (Tn.portId = Cn.portId), - Cn.channelId !== void 0 && (Tn.channelId = Cn.channelId), - Cn.sequence !== void 0 && (Tn.sequence = (Cn.sequence || en.Long.UZERO).toString()), - Tn - ) - }, - fromPartial(Cn) { - const Tn = ln() - return ( - (Tn.portId = Cn.portId ?? ''), - (Tn.channelId = Cn.channelId ?? ''), - (Tn.sequence = - Cn.sequence !== void 0 && Cn.sequence !== null - ? en.Long.fromValue(Cn.sequence) - : en.Long.UZERO), - Tn - ) - }, - } - function yn() { - return { result: void 0, error: void 0 } - } - e.Acknowledgement = { - encode(Cn, Tn = nn.Writer.create()) { - return ( - Cn.result !== void 0 && Tn.uint32(170).bytes(Cn.result), - Cn.error !== void 0 && Tn.uint32(178).string(Cn.error), - Tn - ) - }, - decode(Cn, Tn) { - const Gn = Cn instanceof nn.Reader ? Cn : new nn.Reader(Cn) - let Sn = Tn === void 0 ? Gn.len : Gn.pos + Tn - const Zn = yn() - for (; Gn.pos < Sn; ) { - const tn = Gn.uint32() - switch (tn >>> 3) { - case 21: - Zn.result = Gn.bytes() - break - case 22: - Zn.error = Gn.string() - break - default: - Gn.skipType(tn & 7) - break - } - } - return Zn - }, - fromJSON(Cn) { - return { - result: (0, en.isSet)(Cn.result) ? (0, en.bytesFromBase64)(Cn.result) : void 0, - error: (0, en.isSet)(Cn.error) ? String(Cn.error) : void 0, - } - }, - toJSON(Cn) { - const Tn = {} - return ( - Cn.result !== void 0 && - (Tn.result = Cn.result !== void 0 ? (0, en.base64FromBytes)(Cn.result) : void 0), - Cn.error !== void 0 && (Tn.error = Cn.error), - Tn - ) - }, - fromPartial(Cn) { - const Tn = yn() - return (Tn.result = Cn.result ?? void 0), (Tn.error = Cn.error ?? void 0), Tn - }, - } -})(channel) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (fn, _n, Ln, zn) { - zn === void 0 && (zn = Ln) - var Fn = Object.getOwnPropertyDescriptor(_n, Ln) - ;(!Fn || ('get' in Fn ? !_n.__esModule : Fn.writable || Fn.configurable)) && - (Fn = { - enumerable: !0, - get: function () { - return _n[Ln] - }, - }), - Object.defineProperty(fn, zn, Fn) - } - : function (fn, _n, Ln, zn) { - zn === void 0 && (zn = Ln), (fn[zn] = _n[Ln]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (fn, _n) { - Object.defineProperty(fn, 'default', { enumerable: !0, value: _n }) - } - : function (fn, _n) { - fn.default = _n - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (fn) { - if (fn && fn.__esModule) return fn - var _n = {} - if (fn != null) - for (var Ln in fn) - Ln !== 'default' && Object.prototype.hasOwnProperty.call(fn, Ln) && o(_n, fn, Ln) - return _(_n, fn), _n - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgAcknowledgementResponse = - e.MsgAcknowledgement = - e.MsgTimeoutOnCloseResponse = - e.MsgTimeoutOnClose = - e.MsgTimeoutResponse = - e.MsgTimeout = - e.MsgRecvPacketResponse = - e.MsgRecvPacket = - e.MsgChannelCloseConfirmResponse = - e.MsgChannelCloseConfirm = - e.MsgChannelCloseInitResponse = - e.MsgChannelCloseInit = - e.MsgChannelOpenConfirmResponse = - e.MsgChannelOpenConfirm = - e.MsgChannelOpenAckResponse = - e.MsgChannelOpenAck = - e.MsgChannelOpenTryResponse = - e.MsgChannelOpenTry = - e.MsgChannelOpenInitResponse = - e.MsgChannelOpenInit = - e.responseResultTypeToJSON = - e.responseResultTypeFromJSON = - e.ResponseResultType = - e.protobufPackage = - void 0) - const $ = channel, - en = client, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'ibc.core.channel.v1' - var gn - ;(function (fn) { - ;(fn[(fn.RESPONSE_RESULT_TYPE_UNSPECIFIED = 0)] = 'RESPONSE_RESULT_TYPE_UNSPECIFIED'), - (fn[(fn.RESPONSE_RESULT_TYPE_NOOP = 1)] = 'RESPONSE_RESULT_TYPE_NOOP'), - (fn[(fn.RESPONSE_RESULT_TYPE_SUCCESS = 2)] = 'RESPONSE_RESULT_TYPE_SUCCESS'), - (fn[(fn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((gn = e.ResponseResultType || (e.ResponseResultType = {}))) - function In(fn) { - switch (fn) { - case 0: - case 'RESPONSE_RESULT_TYPE_UNSPECIFIED': - return gn.RESPONSE_RESULT_TYPE_UNSPECIFIED - case 1: - case 'RESPONSE_RESULT_TYPE_NOOP': - return gn.RESPONSE_RESULT_TYPE_NOOP - case 2: - case 'RESPONSE_RESULT_TYPE_SUCCESS': - return gn.RESPONSE_RESULT_TYPE_SUCCESS - case -1: - case 'UNRECOGNIZED': - default: - return gn.UNRECOGNIZED - } - } - e.responseResultTypeFromJSON = In - function Jn(fn) { - switch (fn) { - case gn.RESPONSE_RESULT_TYPE_UNSPECIFIED: - return 'RESPONSE_RESULT_TYPE_UNSPECIFIED' - case gn.RESPONSE_RESULT_TYPE_NOOP: - return 'RESPONSE_RESULT_TYPE_NOOP' - case gn.RESPONSE_RESULT_TYPE_SUCCESS: - return 'RESPONSE_RESULT_TYPE_SUCCESS' - case gn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.responseResultTypeToJSON = Jn - function qn() { - return { portId: '', channel: void 0, signer: '' } - } - e.MsgChannelOpenInit = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.portId !== '' && _n.uint32(10).string(fn.portId), - fn.channel !== void 0 && $.Channel.encode(fn.channel, _n.uint32(18).fork()).ldelim(), - fn.signer !== '' && _n.uint32(26).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = qn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.portId = Ln.string() - break - case 2: - Fn.channel = $.Channel.decode(Ln, Ln.uint32()) - break - case 3: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - portId: (0, nn.isSet)(fn.portId) ? String(fn.portId) : '', - channel: (0, nn.isSet)(fn.channel) ? $.Channel.fromJSON(fn.channel) : void 0, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.portId !== void 0 && (_n.portId = fn.portId), - fn.channel !== void 0 && (_n.channel = fn.channel ? $.Channel.toJSON(fn.channel) : void 0), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = qn() - return ( - (_n.portId = fn.portId ?? ''), - (_n.channel = - fn.channel !== void 0 && fn.channel !== null - ? $.Channel.fromPartial(fn.channel) - : void 0), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function Kn() { - return { channelId: '', version: '' } - } - e.MsgChannelOpenInitResponse = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.channelId !== '' && _n.uint32(10).string(fn.channelId), - fn.version !== '' && _n.uint32(18).string(fn.version), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Kn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.channelId = Ln.string() - break - case 2: - Fn.version = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - channelId: (0, nn.isSet)(fn.channelId) ? String(fn.channelId) : '', - version: (0, nn.isSet)(fn.version) ? String(fn.version) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.channelId !== void 0 && (_n.channelId = fn.channelId), - fn.version !== void 0 && (_n.version = fn.version), - _n - ) - }, - fromPartial(fn) { - const _n = Kn() - return (_n.channelId = fn.channelId ?? ''), (_n.version = fn.version ?? ''), _n - }, - } - function an() { - return { - portId: '', - previousChannelId: '', - channel: void 0, - counterpartyVersion: '', - proofInit: new Uint8Array(), - proofHeight: void 0, - signer: '', - } - } - e.MsgChannelOpenTry = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.portId !== '' && _n.uint32(10).string(fn.portId), - fn.previousChannelId !== '' && _n.uint32(18).string(fn.previousChannelId), - fn.channel !== void 0 && $.Channel.encode(fn.channel, _n.uint32(26).fork()).ldelim(), - fn.counterpartyVersion !== '' && _n.uint32(34).string(fn.counterpartyVersion), - fn.proofInit.length !== 0 && _n.uint32(42).bytes(fn.proofInit), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(50).fork()).ldelim(), - fn.signer !== '' && _n.uint32(58).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = an() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.portId = Ln.string() - break - case 2: - Fn.previousChannelId = Ln.string() - break - case 3: - Fn.channel = $.Channel.decode(Ln, Ln.uint32()) - break - case 4: - Fn.counterpartyVersion = Ln.string() - break - case 5: - Fn.proofInit = Ln.bytes() - break - case 6: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 7: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - portId: (0, nn.isSet)(fn.portId) ? String(fn.portId) : '', - previousChannelId: (0, nn.isSet)(fn.previousChannelId) ? String(fn.previousChannelId) : '', - channel: (0, nn.isSet)(fn.channel) ? $.Channel.fromJSON(fn.channel) : void 0, - counterpartyVersion: (0, nn.isSet)(fn.counterpartyVersion) - ? String(fn.counterpartyVersion) - : '', - proofInit: (0, nn.isSet)(fn.proofInit) - ? (0, nn.bytesFromBase64)(fn.proofInit) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.portId !== void 0 && (_n.portId = fn.portId), - fn.previousChannelId !== void 0 && (_n.previousChannelId = fn.previousChannelId), - fn.channel !== void 0 && (_n.channel = fn.channel ? $.Channel.toJSON(fn.channel) : void 0), - fn.counterpartyVersion !== void 0 && (_n.counterpartyVersion = fn.counterpartyVersion), - fn.proofInit !== void 0 && - (_n.proofInit = (0, nn.base64FromBytes)( - fn.proofInit !== void 0 ? fn.proofInit : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = an() - return ( - (_n.portId = fn.portId ?? ''), - (_n.previousChannelId = fn.previousChannelId ?? ''), - (_n.channel = - fn.channel !== void 0 && fn.channel !== null - ? $.Channel.fromPartial(fn.channel) - : void 0), - (_n.counterpartyVersion = fn.counterpartyVersion ?? ''), - (_n.proofInit = fn.proofInit ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function xn() { - return { version: '' } - } - e.MsgChannelOpenTryResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.version !== '' && _n.uint32(10).string(fn.version), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = xn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.version = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { version: (0, nn.isSet)(fn.version) ? String(fn.version) : '' } - }, - toJSON(fn) { - const _n = {} - return fn.version !== void 0 && (_n.version = fn.version), _n - }, - fromPartial(fn) { - const _n = xn() - return (_n.version = fn.version ?? ''), _n - }, - } - function mn() { - return { - portId: '', - channelId: '', - counterpartyChannelId: '', - counterpartyVersion: '', - proofTry: new Uint8Array(), - proofHeight: void 0, - signer: '', - } - } - e.MsgChannelOpenAck = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.portId !== '' && _n.uint32(10).string(fn.portId), - fn.channelId !== '' && _n.uint32(18).string(fn.channelId), - fn.counterpartyChannelId !== '' && _n.uint32(26).string(fn.counterpartyChannelId), - fn.counterpartyVersion !== '' && _n.uint32(34).string(fn.counterpartyVersion), - fn.proofTry.length !== 0 && _n.uint32(42).bytes(fn.proofTry), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(50).fork()).ldelim(), - fn.signer !== '' && _n.uint32(58).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = mn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.portId = Ln.string() - break - case 2: - Fn.channelId = Ln.string() - break - case 3: - Fn.counterpartyChannelId = Ln.string() - break - case 4: - Fn.counterpartyVersion = Ln.string() - break - case 5: - Fn.proofTry = Ln.bytes() - break - case 6: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 7: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - portId: (0, nn.isSet)(fn.portId) ? String(fn.portId) : '', - channelId: (0, nn.isSet)(fn.channelId) ? String(fn.channelId) : '', - counterpartyChannelId: (0, nn.isSet)(fn.counterpartyChannelId) - ? String(fn.counterpartyChannelId) - : '', - counterpartyVersion: (0, nn.isSet)(fn.counterpartyVersion) - ? String(fn.counterpartyVersion) - : '', - proofTry: (0, nn.isSet)(fn.proofTry) - ? (0, nn.bytesFromBase64)(fn.proofTry) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.portId !== void 0 && (_n.portId = fn.portId), - fn.channelId !== void 0 && (_n.channelId = fn.channelId), - fn.counterpartyChannelId !== void 0 && - (_n.counterpartyChannelId = fn.counterpartyChannelId), - fn.counterpartyVersion !== void 0 && (_n.counterpartyVersion = fn.counterpartyVersion), - fn.proofTry !== void 0 && - (_n.proofTry = (0, nn.base64FromBytes)( - fn.proofTry !== void 0 ? fn.proofTry : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = mn() - return ( - (_n.portId = fn.portId ?? ''), - (_n.channelId = fn.channelId ?? ''), - (_n.counterpartyChannelId = fn.counterpartyChannelId ?? ''), - (_n.counterpartyVersion = fn.counterpartyVersion ?? ''), - (_n.proofTry = fn.proofTry ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function Bn() { - return {} - } - e.MsgChannelOpenAckResponse = { - encode(fn, _n = sn.Writer.create()) { - return _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Bn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return {} - }, - toJSON(fn) { - return {} - }, - fromPartial(fn) { - return Bn() - }, - } - function kn() { - return { - portId: '', - channelId: '', - proofAck: new Uint8Array(), - proofHeight: void 0, - signer: '', - } - } - e.MsgChannelOpenConfirm = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.portId !== '' && _n.uint32(10).string(fn.portId), - fn.channelId !== '' && _n.uint32(18).string(fn.channelId), - fn.proofAck.length !== 0 && _n.uint32(26).bytes(fn.proofAck), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(34).fork()).ldelim(), - fn.signer !== '' && _n.uint32(42).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = kn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.portId = Ln.string() - break - case 2: - Fn.channelId = Ln.string() - break - case 3: - Fn.proofAck = Ln.bytes() - break - case 4: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 5: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - portId: (0, nn.isSet)(fn.portId) ? String(fn.portId) : '', - channelId: (0, nn.isSet)(fn.channelId) ? String(fn.channelId) : '', - proofAck: (0, nn.isSet)(fn.proofAck) - ? (0, nn.bytesFromBase64)(fn.proofAck) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.portId !== void 0 && (_n.portId = fn.portId), - fn.channelId !== void 0 && (_n.channelId = fn.channelId), - fn.proofAck !== void 0 && - (_n.proofAck = (0, nn.base64FromBytes)( - fn.proofAck !== void 0 ? fn.proofAck : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = kn() - return ( - (_n.portId = fn.portId ?? ''), - (_n.channelId = fn.channelId ?? ''), - (_n.proofAck = fn.proofAck ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function ln() { - return {} - } - e.MsgChannelOpenConfirmResponse = { - encode(fn, _n = sn.Writer.create()) { - return _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = ln() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return {} - }, - toJSON(fn) { - return {} - }, - fromPartial(fn) { - return ln() - }, - } - function yn() { - return { portId: '', channelId: '', signer: '' } - } - e.MsgChannelCloseInit = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.portId !== '' && _n.uint32(10).string(fn.portId), - fn.channelId !== '' && _n.uint32(18).string(fn.channelId), - fn.signer !== '' && _n.uint32(26).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = yn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.portId = Ln.string() - break - case 2: - Fn.channelId = Ln.string() - break - case 3: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - portId: (0, nn.isSet)(fn.portId) ? String(fn.portId) : '', - channelId: (0, nn.isSet)(fn.channelId) ? String(fn.channelId) : '', - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.portId !== void 0 && (_n.portId = fn.portId), - fn.channelId !== void 0 && (_n.channelId = fn.channelId), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = yn() - return ( - (_n.portId = fn.portId ?? ''), - (_n.channelId = fn.channelId ?? ''), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function Cn() { - return {} - } - e.MsgChannelCloseInitResponse = { - encode(fn, _n = sn.Writer.create()) { - return _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Cn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return {} - }, - toJSON(fn) { - return {} - }, - fromPartial(fn) { - return Cn() - }, - } - function Tn() { - return { - portId: '', - channelId: '', - proofInit: new Uint8Array(), - proofHeight: void 0, - signer: '', - } - } - e.MsgChannelCloseConfirm = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.portId !== '' && _n.uint32(10).string(fn.portId), - fn.channelId !== '' && _n.uint32(18).string(fn.channelId), - fn.proofInit.length !== 0 && _n.uint32(26).bytes(fn.proofInit), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(34).fork()).ldelim(), - fn.signer !== '' && _n.uint32(42).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Tn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.portId = Ln.string() - break - case 2: - Fn.channelId = Ln.string() - break - case 3: - Fn.proofInit = Ln.bytes() - break - case 4: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 5: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - portId: (0, nn.isSet)(fn.portId) ? String(fn.portId) : '', - channelId: (0, nn.isSet)(fn.channelId) ? String(fn.channelId) : '', - proofInit: (0, nn.isSet)(fn.proofInit) - ? (0, nn.bytesFromBase64)(fn.proofInit) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.portId !== void 0 && (_n.portId = fn.portId), - fn.channelId !== void 0 && (_n.channelId = fn.channelId), - fn.proofInit !== void 0 && - (_n.proofInit = (0, nn.base64FromBytes)( - fn.proofInit !== void 0 ? fn.proofInit : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = Tn() - return ( - (_n.portId = fn.portId ?? ''), - (_n.channelId = fn.channelId ?? ''), - (_n.proofInit = fn.proofInit ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function Gn() { - return {} - } - e.MsgChannelCloseConfirmResponse = { - encode(fn, _n = sn.Writer.create()) { - return _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Gn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return {} - }, - toJSON(fn) { - return {} - }, - fromPartial(fn) { - return Gn() - }, - } - function Sn() { - return { packet: void 0, proofCommitment: new Uint8Array(), proofHeight: void 0, signer: '' } - } - e.MsgRecvPacket = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.packet !== void 0 && $.Packet.encode(fn.packet, _n.uint32(10).fork()).ldelim(), - fn.proofCommitment.length !== 0 && _n.uint32(18).bytes(fn.proofCommitment), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(26).fork()).ldelim(), - fn.signer !== '' && _n.uint32(34).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Sn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.packet = $.Packet.decode(Ln, Ln.uint32()) - break - case 2: - Fn.proofCommitment = Ln.bytes() - break - case 3: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 4: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - packet: (0, nn.isSet)(fn.packet) ? $.Packet.fromJSON(fn.packet) : void 0, - proofCommitment: (0, nn.isSet)(fn.proofCommitment) - ? (0, nn.bytesFromBase64)(fn.proofCommitment) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.packet !== void 0 && (_n.packet = fn.packet ? $.Packet.toJSON(fn.packet) : void 0), - fn.proofCommitment !== void 0 && - (_n.proofCommitment = (0, nn.base64FromBytes)( - fn.proofCommitment !== void 0 ? fn.proofCommitment : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = Sn() - return ( - (_n.packet = - fn.packet !== void 0 && fn.packet !== null ? $.Packet.fromPartial(fn.packet) : void 0), - (_n.proofCommitment = fn.proofCommitment ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function Zn() { - return { result: 0 } - } - e.MsgRecvPacketResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.result !== 0 && _n.uint32(8).int32(fn.result), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Zn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.result = Ln.int32() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { result: (0, nn.isSet)(fn.result) ? In(fn.result) : 0 } - }, - toJSON(fn) { - const _n = {} - return fn.result !== void 0 && (_n.result = Jn(fn.result)), _n - }, - fromPartial(fn) { - const _n = Zn() - return (_n.result = fn.result ?? 0), _n - }, - } - function tn() { - return { - packet: void 0, - proofUnreceived: new Uint8Array(), - proofHeight: void 0, - nextSequenceRecv: nn.Long.UZERO, - signer: '', - } - } - e.MsgTimeout = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.packet !== void 0 && $.Packet.encode(fn.packet, _n.uint32(10).fork()).ldelim(), - fn.proofUnreceived.length !== 0 && _n.uint32(18).bytes(fn.proofUnreceived), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(26).fork()).ldelim(), - fn.nextSequenceRecv.isZero() || _n.uint32(32).uint64(fn.nextSequenceRecv), - fn.signer !== '' && _n.uint32(42).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = tn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.packet = $.Packet.decode(Ln, Ln.uint32()) - break - case 2: - Fn.proofUnreceived = Ln.bytes() - break - case 3: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 4: - Fn.nextSequenceRecv = Ln.uint64() - break - case 5: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - packet: (0, nn.isSet)(fn.packet) ? $.Packet.fromJSON(fn.packet) : void 0, - proofUnreceived: (0, nn.isSet)(fn.proofUnreceived) - ? (0, nn.bytesFromBase64)(fn.proofUnreceived) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - nextSequenceRecv: (0, nn.isSet)(fn.nextSequenceRecv) - ? nn.Long.fromValue(fn.nextSequenceRecv) - : nn.Long.UZERO, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.packet !== void 0 && (_n.packet = fn.packet ? $.Packet.toJSON(fn.packet) : void 0), - fn.proofUnreceived !== void 0 && - (_n.proofUnreceived = (0, nn.base64FromBytes)( - fn.proofUnreceived !== void 0 ? fn.proofUnreceived : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.nextSequenceRecv !== void 0 && - (_n.nextSequenceRecv = (fn.nextSequenceRecv || nn.Long.UZERO).toString()), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = tn() - return ( - (_n.packet = - fn.packet !== void 0 && fn.packet !== null ? $.Packet.fromPartial(fn.packet) : void 0), - (_n.proofUnreceived = fn.proofUnreceived ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.nextSequenceRecv = - fn.nextSequenceRecv !== void 0 && fn.nextSequenceRecv !== null - ? nn.Long.fromValue(fn.nextSequenceRecv) - : nn.Long.UZERO), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function En() { - return { result: 0 } - } - e.MsgTimeoutResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.result !== 0 && _n.uint32(8).int32(fn.result), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = En() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.result = Ln.int32() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { result: (0, nn.isSet)(fn.result) ? In(fn.result) : 0 } - }, - toJSON(fn) { - const _n = {} - return fn.result !== void 0 && (_n.result = Jn(fn.result)), _n - }, - fromPartial(fn) { - const _n = En() - return (_n.result = fn.result ?? 0), _n - }, - } - function Mn() { - return { - packet: void 0, - proofUnreceived: new Uint8Array(), - proofClose: new Uint8Array(), - proofHeight: void 0, - nextSequenceRecv: nn.Long.UZERO, - signer: '', - } - } - e.MsgTimeoutOnClose = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.packet !== void 0 && $.Packet.encode(fn.packet, _n.uint32(10).fork()).ldelim(), - fn.proofUnreceived.length !== 0 && _n.uint32(18).bytes(fn.proofUnreceived), - fn.proofClose.length !== 0 && _n.uint32(26).bytes(fn.proofClose), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(34).fork()).ldelim(), - fn.nextSequenceRecv.isZero() || _n.uint32(40).uint64(fn.nextSequenceRecv), - fn.signer !== '' && _n.uint32(50).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Mn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.packet = $.Packet.decode(Ln, Ln.uint32()) - break - case 2: - Fn.proofUnreceived = Ln.bytes() - break - case 3: - Fn.proofClose = Ln.bytes() - break - case 4: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 5: - Fn.nextSequenceRecv = Ln.uint64() - break - case 6: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - packet: (0, nn.isSet)(fn.packet) ? $.Packet.fromJSON(fn.packet) : void 0, - proofUnreceived: (0, nn.isSet)(fn.proofUnreceived) - ? (0, nn.bytesFromBase64)(fn.proofUnreceived) - : new Uint8Array(), - proofClose: (0, nn.isSet)(fn.proofClose) - ? (0, nn.bytesFromBase64)(fn.proofClose) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - nextSequenceRecv: (0, nn.isSet)(fn.nextSequenceRecv) - ? nn.Long.fromValue(fn.nextSequenceRecv) - : nn.Long.UZERO, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.packet !== void 0 && (_n.packet = fn.packet ? $.Packet.toJSON(fn.packet) : void 0), - fn.proofUnreceived !== void 0 && - (_n.proofUnreceived = (0, nn.base64FromBytes)( - fn.proofUnreceived !== void 0 ? fn.proofUnreceived : new Uint8Array(), - )), - fn.proofClose !== void 0 && - (_n.proofClose = (0, nn.base64FromBytes)( - fn.proofClose !== void 0 ? fn.proofClose : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.nextSequenceRecv !== void 0 && - (_n.nextSequenceRecv = (fn.nextSequenceRecv || nn.Long.UZERO).toString()), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = Mn() - return ( - (_n.packet = - fn.packet !== void 0 && fn.packet !== null ? $.Packet.fromPartial(fn.packet) : void 0), - (_n.proofUnreceived = fn.proofUnreceived ?? new Uint8Array()), - (_n.proofClose = fn.proofClose ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.nextSequenceRecv = - fn.nextSequenceRecv !== void 0 && fn.nextSequenceRecv !== null - ? nn.Long.fromValue(fn.nextSequenceRecv) - : nn.Long.UZERO), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function Hn() { - return { result: 0 } - } - e.MsgTimeoutOnCloseResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.result !== 0 && _n.uint32(8).int32(fn.result), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Hn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.result = Ln.int32() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { result: (0, nn.isSet)(fn.result) ? In(fn.result) : 0 } - }, - toJSON(fn) { - const _n = {} - return fn.result !== void 0 && (_n.result = Jn(fn.result)), _n - }, - fromPartial(fn) { - const _n = Hn() - return (_n.result = fn.result ?? 0), _n - }, - } - function un() { - return { - packet: void 0, - acknowledgement: new Uint8Array(), - proofAcked: new Uint8Array(), - proofHeight: void 0, - signer: '', - } - } - e.MsgAcknowledgement = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.packet !== void 0 && $.Packet.encode(fn.packet, _n.uint32(10).fork()).ldelim(), - fn.acknowledgement.length !== 0 && _n.uint32(18).bytes(fn.acknowledgement), - fn.proofAcked.length !== 0 && _n.uint32(26).bytes(fn.proofAcked), - fn.proofHeight !== void 0 && - en.Height.encode(fn.proofHeight, _n.uint32(34).fork()).ldelim(), - fn.signer !== '' && _n.uint32(42).string(fn.signer), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = un() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.packet = $.Packet.decode(Ln, Ln.uint32()) - break - case 2: - Fn.acknowledgement = Ln.bytes() - break - case 3: - Fn.proofAcked = Ln.bytes() - break - case 4: - Fn.proofHeight = en.Height.decode(Ln, Ln.uint32()) - break - case 5: - Fn.signer = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - packet: (0, nn.isSet)(fn.packet) ? $.Packet.fromJSON(fn.packet) : void 0, - acknowledgement: (0, nn.isSet)(fn.acknowledgement) - ? (0, nn.bytesFromBase64)(fn.acknowledgement) - : new Uint8Array(), - proofAcked: (0, nn.isSet)(fn.proofAcked) - ? (0, nn.bytesFromBase64)(fn.proofAcked) - : new Uint8Array(), - proofHeight: (0, nn.isSet)(fn.proofHeight) ? en.Height.fromJSON(fn.proofHeight) : void 0, - signer: (0, nn.isSet)(fn.signer) ? String(fn.signer) : '', - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.packet !== void 0 && (_n.packet = fn.packet ? $.Packet.toJSON(fn.packet) : void 0), - fn.acknowledgement !== void 0 && - (_n.acknowledgement = (0, nn.base64FromBytes)( - fn.acknowledgement !== void 0 ? fn.acknowledgement : new Uint8Array(), - )), - fn.proofAcked !== void 0 && - (_n.proofAcked = (0, nn.base64FromBytes)( - fn.proofAcked !== void 0 ? fn.proofAcked : new Uint8Array(), - )), - fn.proofHeight !== void 0 && - (_n.proofHeight = fn.proofHeight ? en.Height.toJSON(fn.proofHeight) : void 0), - fn.signer !== void 0 && (_n.signer = fn.signer), - _n - ) - }, - fromPartial(fn) { - const _n = un() - return ( - (_n.packet = - fn.packet !== void 0 && fn.packet !== null ? $.Packet.fromPartial(fn.packet) : void 0), - (_n.acknowledgement = fn.acknowledgement ?? new Uint8Array()), - (_n.proofAcked = fn.proofAcked ?? new Uint8Array()), - (_n.proofHeight = - fn.proofHeight !== void 0 && fn.proofHeight !== null - ? en.Height.fromPartial(fn.proofHeight) - : void 0), - (_n.signer = fn.signer ?? ''), - _n - ) - }, - } - function dn() { - return { result: 0 } - } - e.MsgAcknowledgementResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.result !== 0 && _n.uint32(8).int32(fn.result), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = dn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.result = Ln.int32() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { result: (0, nn.isSet)(fn.result) ? In(fn.result) : 0 } - }, - toJSON(fn) { - const _n = {} - return fn.result !== void 0 && (_n.result = Jn(fn.result)), _n - }, - fromPartial(fn) { - const _n = dn() - return (_n.result = fn.result ?? 0), _n - }, - } - class Nn { - constructor(_n) { - ;(this.rpc = _n), - (this.ChannelOpenInit = this.ChannelOpenInit.bind(this)), - (this.ChannelOpenTry = this.ChannelOpenTry.bind(this)), - (this.ChannelOpenAck = this.ChannelOpenAck.bind(this)), - (this.ChannelOpenConfirm = this.ChannelOpenConfirm.bind(this)), - (this.ChannelCloseInit = this.ChannelCloseInit.bind(this)), - (this.ChannelCloseConfirm = this.ChannelCloseConfirm.bind(this)), - (this.RecvPacket = this.RecvPacket.bind(this)), - (this.Timeout = this.Timeout.bind(this)), - (this.TimeoutOnClose = this.TimeoutOnClose.bind(this)), - (this.Acknowledgement = this.Acknowledgement.bind(this)) - } - ChannelOpenInit(_n) { - const Ln = e.MsgChannelOpenInit.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'ChannelOpenInit', Ln) - .then((Fn) => e.MsgChannelOpenInitResponse.decode(new sn.Reader(Fn))) - } - ChannelOpenTry(_n) { - const Ln = e.MsgChannelOpenTry.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'ChannelOpenTry', Ln) - .then((Fn) => e.MsgChannelOpenTryResponse.decode(new sn.Reader(Fn))) - } - ChannelOpenAck(_n) { - const Ln = e.MsgChannelOpenAck.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'ChannelOpenAck', Ln) - .then((Fn) => e.MsgChannelOpenAckResponse.decode(new sn.Reader(Fn))) - } - ChannelOpenConfirm(_n) { - const Ln = e.MsgChannelOpenConfirm.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'ChannelOpenConfirm', Ln) - .then((Fn) => e.MsgChannelOpenConfirmResponse.decode(new sn.Reader(Fn))) - } - ChannelCloseInit(_n) { - const Ln = e.MsgChannelCloseInit.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'ChannelCloseInit', Ln) - .then((Fn) => e.MsgChannelCloseInitResponse.decode(new sn.Reader(Fn))) - } - ChannelCloseConfirm(_n) { - const Ln = e.MsgChannelCloseConfirm.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'ChannelCloseConfirm', Ln) - .then((Fn) => e.MsgChannelCloseConfirmResponse.decode(new sn.Reader(Fn))) - } - RecvPacket(_n) { - const Ln = e.MsgRecvPacket.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'RecvPacket', Ln) - .then((Fn) => e.MsgRecvPacketResponse.decode(new sn.Reader(Fn))) - } - Timeout(_n) { - const Ln = e.MsgTimeout.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'Timeout', Ln) - .then((Fn) => e.MsgTimeoutResponse.decode(new sn.Reader(Fn))) - } - TimeoutOnClose(_n) { - const Ln = e.MsgTimeoutOnClose.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'TimeoutOnClose', Ln) - .then((Fn) => e.MsgTimeoutOnCloseResponse.decode(new sn.Reader(Fn))) - } - Acknowledgement(_n) { - const Ln = e.MsgAcknowledgement.encode(_n).finish() - return this.rpc - .request('ibc.core.channel.v1.Msg', 'Acknowledgement', Ln) - .then((Fn) => e.MsgAcknowledgementResponse.decode(new sn.Reader(Fn))) - } - } - e.MsgClientImpl = Nn -})(tx$5) -var tx$4 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Bn, kn, ln, yn) { - yn === void 0 && (yn = ln) - var Cn = Object.getOwnPropertyDescriptor(kn, ln) - ;(!Cn || ('get' in Cn ? !kn.__esModule : Cn.writable || Cn.configurable)) && - (Cn = { - enumerable: !0, - get: function () { - return kn[ln] - }, - }), - Object.defineProperty(Bn, yn, Cn) - } - : function (Bn, kn, ln, yn) { - yn === void 0 && (yn = ln), (Bn[yn] = kn[ln]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Bn, kn) { - Object.defineProperty(Bn, 'default', { enumerable: !0, value: kn }) - } - : function (Bn, kn) { - Bn.default = kn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Bn) { - if (Bn && Bn.__esModule) return Bn - var kn = {} - if (Bn != null) - for (var ln in Bn) - ln !== 'default' && Object.prototype.hasOwnProperty.call(Bn, ln) && o(kn, Bn, ln) - return _(kn, Bn), kn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgSubmitMisbehaviourResponse = - e.MsgSubmitMisbehaviour = - e.MsgUpgradeClientResponse = - e.MsgUpgradeClient = - e.MsgUpdateClientResponse = - e.MsgUpdateClient = - e.MsgCreateClientResponse = - e.MsgCreateClient = - e.protobufPackage = - void 0) - const $ = any, - en = b(minimalExports), - nn = helpers - e.protobufPackage = 'ibc.core.client.v1' - function sn() { - return { clientState: void 0, consensusState: void 0, signer: '' } - } - e.MsgCreateClient = { - encode(Bn, kn = en.Writer.create()) { - return ( - Bn.clientState !== void 0 && $.Any.encode(Bn.clientState, kn.uint32(10).fork()).ldelim(), - Bn.consensusState !== void 0 && - $.Any.encode(Bn.consensusState, kn.uint32(18).fork()).ldelim(), - Bn.signer !== '' && kn.uint32(26).string(Bn.signer), - kn - ) - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = sn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.clientState = $.Any.decode(ln, ln.uint32()) - break - case 2: - Cn.consensusState = $.Any.decode(ln, ln.uint32()) - break - case 3: - Cn.signer = ln.string() - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - clientState: (0, nn.isSet)(Bn.clientState) ? $.Any.fromJSON(Bn.clientState) : void 0, - consensusState: (0, nn.isSet)(Bn.consensusState) - ? $.Any.fromJSON(Bn.consensusState) - : void 0, - signer: (0, nn.isSet)(Bn.signer) ? String(Bn.signer) : '', - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.clientState !== void 0 && - (kn.clientState = Bn.clientState ? $.Any.toJSON(Bn.clientState) : void 0), - Bn.consensusState !== void 0 && - (kn.consensusState = Bn.consensusState ? $.Any.toJSON(Bn.consensusState) : void 0), - Bn.signer !== void 0 && (kn.signer = Bn.signer), - kn - ) - }, - fromPartial(Bn) { - const kn = sn() - return ( - (kn.clientState = - Bn.clientState !== void 0 && Bn.clientState !== null - ? $.Any.fromPartial(Bn.clientState) - : void 0), - (kn.consensusState = - Bn.consensusState !== void 0 && Bn.consensusState !== null - ? $.Any.fromPartial(Bn.consensusState) - : void 0), - (kn.signer = Bn.signer ?? ''), - kn - ) - }, - } - function gn() { - return {} - } - e.MsgCreateClientResponse = { - encode(Bn, kn = en.Writer.create()) { - return kn - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = gn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return {} - }, - toJSON(Bn) { - return {} - }, - fromPartial(Bn) { - return gn() - }, - } - function In() { - return { clientId: '', clientMessage: void 0, signer: '' } - } - e.MsgUpdateClient = { - encode(Bn, kn = en.Writer.create()) { - return ( - Bn.clientId !== '' && kn.uint32(10).string(Bn.clientId), - Bn.clientMessage !== void 0 && - $.Any.encode(Bn.clientMessage, kn.uint32(18).fork()).ldelim(), - Bn.signer !== '' && kn.uint32(26).string(Bn.signer), - kn - ) - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = In() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.clientId = ln.string() - break - case 2: - Cn.clientMessage = $.Any.decode(ln, ln.uint32()) - break - case 3: - Cn.signer = ln.string() - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - clientId: (0, nn.isSet)(Bn.clientId) ? String(Bn.clientId) : '', - clientMessage: (0, nn.isSet)(Bn.clientMessage) ? $.Any.fromJSON(Bn.clientMessage) : void 0, - signer: (0, nn.isSet)(Bn.signer) ? String(Bn.signer) : '', - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.clientId !== void 0 && (kn.clientId = Bn.clientId), - Bn.clientMessage !== void 0 && - (kn.clientMessage = Bn.clientMessage ? $.Any.toJSON(Bn.clientMessage) : void 0), - Bn.signer !== void 0 && (kn.signer = Bn.signer), - kn - ) - }, - fromPartial(Bn) { - const kn = In() - return ( - (kn.clientId = Bn.clientId ?? ''), - (kn.clientMessage = - Bn.clientMessage !== void 0 && Bn.clientMessage !== null - ? $.Any.fromPartial(Bn.clientMessage) - : void 0), - (kn.signer = Bn.signer ?? ''), - kn - ) - }, - } - function Jn() { - return {} - } - e.MsgUpdateClientResponse = { - encode(Bn, kn = en.Writer.create()) { - return kn - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = Jn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return {} - }, - toJSON(Bn) { - return {} - }, - fromPartial(Bn) { - return Jn() - }, - } - function qn() { - return { - clientId: '', - clientState: void 0, - consensusState: void 0, - proofUpgradeClient: new Uint8Array(), - proofUpgradeConsensusState: new Uint8Array(), - signer: '', - } - } - e.MsgUpgradeClient = { - encode(Bn, kn = en.Writer.create()) { - return ( - Bn.clientId !== '' && kn.uint32(10).string(Bn.clientId), - Bn.clientState !== void 0 && $.Any.encode(Bn.clientState, kn.uint32(18).fork()).ldelim(), - Bn.consensusState !== void 0 && - $.Any.encode(Bn.consensusState, kn.uint32(26).fork()).ldelim(), - Bn.proofUpgradeClient.length !== 0 && kn.uint32(34).bytes(Bn.proofUpgradeClient), - Bn.proofUpgradeConsensusState.length !== 0 && - kn.uint32(42).bytes(Bn.proofUpgradeConsensusState), - Bn.signer !== '' && kn.uint32(50).string(Bn.signer), - kn - ) - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = qn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.clientId = ln.string() - break - case 2: - Cn.clientState = $.Any.decode(ln, ln.uint32()) - break - case 3: - Cn.consensusState = $.Any.decode(ln, ln.uint32()) - break - case 4: - Cn.proofUpgradeClient = ln.bytes() - break - case 5: - Cn.proofUpgradeConsensusState = ln.bytes() - break - case 6: - Cn.signer = ln.string() - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - clientId: (0, nn.isSet)(Bn.clientId) ? String(Bn.clientId) : '', - clientState: (0, nn.isSet)(Bn.clientState) ? $.Any.fromJSON(Bn.clientState) : void 0, - consensusState: (0, nn.isSet)(Bn.consensusState) - ? $.Any.fromJSON(Bn.consensusState) - : void 0, - proofUpgradeClient: (0, nn.isSet)(Bn.proofUpgradeClient) - ? (0, nn.bytesFromBase64)(Bn.proofUpgradeClient) - : new Uint8Array(), - proofUpgradeConsensusState: (0, nn.isSet)(Bn.proofUpgradeConsensusState) - ? (0, nn.bytesFromBase64)(Bn.proofUpgradeConsensusState) - : new Uint8Array(), - signer: (0, nn.isSet)(Bn.signer) ? String(Bn.signer) : '', - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.clientId !== void 0 && (kn.clientId = Bn.clientId), - Bn.clientState !== void 0 && - (kn.clientState = Bn.clientState ? $.Any.toJSON(Bn.clientState) : void 0), - Bn.consensusState !== void 0 && - (kn.consensusState = Bn.consensusState ? $.Any.toJSON(Bn.consensusState) : void 0), - Bn.proofUpgradeClient !== void 0 && - (kn.proofUpgradeClient = (0, nn.base64FromBytes)( - Bn.proofUpgradeClient !== void 0 ? Bn.proofUpgradeClient : new Uint8Array(), - )), - Bn.proofUpgradeConsensusState !== void 0 && - (kn.proofUpgradeConsensusState = (0, nn.base64FromBytes)( - Bn.proofUpgradeConsensusState !== void 0 - ? Bn.proofUpgradeConsensusState - : new Uint8Array(), - )), - Bn.signer !== void 0 && (kn.signer = Bn.signer), - kn - ) - }, - fromPartial(Bn) { - const kn = qn() - return ( - (kn.clientId = Bn.clientId ?? ''), - (kn.clientState = - Bn.clientState !== void 0 && Bn.clientState !== null - ? $.Any.fromPartial(Bn.clientState) - : void 0), - (kn.consensusState = - Bn.consensusState !== void 0 && Bn.consensusState !== null - ? $.Any.fromPartial(Bn.consensusState) - : void 0), - (kn.proofUpgradeClient = Bn.proofUpgradeClient ?? new Uint8Array()), - (kn.proofUpgradeConsensusState = Bn.proofUpgradeConsensusState ?? new Uint8Array()), - (kn.signer = Bn.signer ?? ''), - kn - ) - }, - } - function Kn() { - return {} - } - e.MsgUpgradeClientResponse = { - encode(Bn, kn = en.Writer.create()) { - return kn - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = Kn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return {} - }, - toJSON(Bn) { - return {} - }, - fromPartial(Bn) { - return Kn() - }, - } - function an() { - return { clientId: '', misbehaviour: void 0, signer: '' } - } - e.MsgSubmitMisbehaviour = { - encode(Bn, kn = en.Writer.create()) { - return ( - Bn.clientId !== '' && kn.uint32(10).string(Bn.clientId), - Bn.misbehaviour !== void 0 && $.Any.encode(Bn.misbehaviour, kn.uint32(18).fork()).ldelim(), - Bn.signer !== '' && kn.uint32(26).string(Bn.signer), - kn - ) - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = an() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - case 1: - Cn.clientId = ln.string() - break - case 2: - Cn.misbehaviour = $.Any.decode(ln, ln.uint32()) - break - case 3: - Cn.signer = ln.string() - break - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return { - clientId: (0, nn.isSet)(Bn.clientId) ? String(Bn.clientId) : '', - misbehaviour: (0, nn.isSet)(Bn.misbehaviour) ? $.Any.fromJSON(Bn.misbehaviour) : void 0, - signer: (0, nn.isSet)(Bn.signer) ? String(Bn.signer) : '', - } - }, - toJSON(Bn) { - const kn = {} - return ( - Bn.clientId !== void 0 && (kn.clientId = Bn.clientId), - Bn.misbehaviour !== void 0 && - (kn.misbehaviour = Bn.misbehaviour ? $.Any.toJSON(Bn.misbehaviour) : void 0), - Bn.signer !== void 0 && (kn.signer = Bn.signer), - kn - ) - }, - fromPartial(Bn) { - const kn = an() - return ( - (kn.clientId = Bn.clientId ?? ''), - (kn.misbehaviour = - Bn.misbehaviour !== void 0 && Bn.misbehaviour !== null - ? $.Any.fromPartial(Bn.misbehaviour) - : void 0), - (kn.signer = Bn.signer ?? ''), - kn - ) - }, - } - function xn() { - return {} - } - e.MsgSubmitMisbehaviourResponse = { - encode(Bn, kn = en.Writer.create()) { - return kn - }, - decode(Bn, kn) { - const ln = Bn instanceof en.Reader ? Bn : new en.Reader(Bn) - let yn = kn === void 0 ? ln.len : ln.pos + kn - const Cn = xn() - for (; ln.pos < yn; ) { - const Tn = ln.uint32() - switch (Tn >>> 3) { - default: - ln.skipType(Tn & 7) - break - } - } - return Cn - }, - fromJSON(Bn) { - return {} - }, - toJSON(Bn) { - return {} - }, - fromPartial(Bn) { - return xn() - }, - } - class mn { - constructor(kn) { - ;(this.rpc = kn), - (this.CreateClient = this.CreateClient.bind(this)), - (this.UpdateClient = this.UpdateClient.bind(this)), - (this.UpgradeClient = this.UpgradeClient.bind(this)), - (this.SubmitMisbehaviour = this.SubmitMisbehaviour.bind(this)) - } - CreateClient(kn) { - const ln = e.MsgCreateClient.encode(kn).finish() - return this.rpc - .request('ibc.core.client.v1.Msg', 'CreateClient', ln) - .then((Cn) => e.MsgCreateClientResponse.decode(new en.Reader(Cn))) - } - UpdateClient(kn) { - const ln = e.MsgUpdateClient.encode(kn).finish() - return this.rpc - .request('ibc.core.client.v1.Msg', 'UpdateClient', ln) - .then((Cn) => e.MsgUpdateClientResponse.decode(new en.Reader(Cn))) - } - UpgradeClient(kn) { - const ln = e.MsgUpgradeClient.encode(kn).finish() - return this.rpc - .request('ibc.core.client.v1.Msg', 'UpgradeClient', ln) - .then((Cn) => e.MsgUpgradeClientResponse.decode(new en.Reader(Cn))) - } - SubmitMisbehaviour(kn) { - const ln = e.MsgSubmitMisbehaviour.encode(kn).finish() - return this.rpc - .request('ibc.core.client.v1.Msg', 'SubmitMisbehaviour', ln) - .then((Cn) => e.MsgSubmitMisbehaviourResponse.decode(new en.Reader(Cn))) - } - } - e.MsgClientImpl = mn -})(tx$4) -var tx$3 = {}, - connection = {}, - commitment = {}, - proofs = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn) - var un = Object.getOwnPropertyDescriptor(En, Mn) - ;(!un || ('get' in un ? !En.__esModule : un.writable || un.configurable)) && - (un = { - enumerable: !0, - get: function () { - return En[Mn] - }, - }), - Object.defineProperty(tn, Hn, un) - } - : function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn), (tn[Hn] = En[Mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (tn, En) { - Object.defineProperty(tn, 'default', { enumerable: !0, value: En }) - } - : function (tn, En) { - tn.default = En - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (tn) { - if (tn && tn.__esModule) return tn - var En = {} - if (tn != null) - for (var Mn in tn) - Mn !== 'default' && Object.prototype.hasOwnProperty.call(tn, Mn) && o(En, tn, Mn) - return _(En, tn), En - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.CompressedNonExistenceProof = - e.CompressedExistenceProof = - e.CompressedBatchEntry = - e.CompressedBatchProof = - e.BatchEntry = - e.BatchProof = - e.InnerSpec = - e.ProofSpec = - e.InnerOp = - e.LeafOp = - e.CommitmentProof = - e.NonExistenceProof = - e.ExistenceProof = - e.lengthOpToJSON = - e.lengthOpFromJSON = - e.LengthOp = - e.hashOpToJSON = - e.hashOpFromJSON = - e.HashOp = - e.protobufPackage = - void 0) - const $ = b(minimalExports), - en = helpers - e.protobufPackage = 'cosmos.ics23.v1' - var nn - ;(function (tn) { - ;(tn[(tn.NO_HASH = 0)] = 'NO_HASH'), - (tn[(tn.SHA256 = 1)] = 'SHA256'), - (tn[(tn.SHA512 = 2)] = 'SHA512'), - (tn[(tn.KECCAK = 3)] = 'KECCAK'), - (tn[(tn.RIPEMD160 = 4)] = 'RIPEMD160'), - (tn[(tn.BITCOIN = 5)] = 'BITCOIN'), - (tn[(tn.SHA512_256 = 6)] = 'SHA512_256'), - (tn[(tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((nn = e.HashOp || (e.HashOp = {}))) - function sn(tn) { - switch (tn) { - case 0: - case 'NO_HASH': - return nn.NO_HASH - case 1: - case 'SHA256': - return nn.SHA256 - case 2: - case 'SHA512': - return nn.SHA512 - case 3: - case 'KECCAK': - return nn.KECCAK - case 4: - case 'RIPEMD160': - return nn.RIPEMD160 - case 5: - case 'BITCOIN': - return nn.BITCOIN - case 6: - case 'SHA512_256': - return nn.SHA512_256 - case -1: - case 'UNRECOGNIZED': - default: - return nn.UNRECOGNIZED - } - } - e.hashOpFromJSON = sn - function gn(tn) { - switch (tn) { - case nn.NO_HASH: - return 'NO_HASH' - case nn.SHA256: - return 'SHA256' - case nn.SHA512: - return 'SHA512' - case nn.KECCAK: - return 'KECCAK' - case nn.RIPEMD160: - return 'RIPEMD160' - case nn.BITCOIN: - return 'BITCOIN' - case nn.SHA512_256: - return 'SHA512_256' - case nn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.hashOpToJSON = gn - var In - ;(function (tn) { - ;(tn[(tn.NO_PREFIX = 0)] = 'NO_PREFIX'), - (tn[(tn.VAR_PROTO = 1)] = 'VAR_PROTO'), - (tn[(tn.VAR_RLP = 2)] = 'VAR_RLP'), - (tn[(tn.FIXED32_BIG = 3)] = 'FIXED32_BIG'), - (tn[(tn.FIXED32_LITTLE = 4)] = 'FIXED32_LITTLE'), - (tn[(tn.FIXED64_BIG = 5)] = 'FIXED64_BIG'), - (tn[(tn.FIXED64_LITTLE = 6)] = 'FIXED64_LITTLE'), - (tn[(tn.REQUIRE_32_BYTES = 7)] = 'REQUIRE_32_BYTES'), - (tn[(tn.REQUIRE_64_BYTES = 8)] = 'REQUIRE_64_BYTES'), - (tn[(tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((In = e.LengthOp || (e.LengthOp = {}))) - function Jn(tn) { - switch (tn) { - case 0: - case 'NO_PREFIX': - return In.NO_PREFIX - case 1: - case 'VAR_PROTO': - return In.VAR_PROTO - case 2: - case 'VAR_RLP': - return In.VAR_RLP - case 3: - case 'FIXED32_BIG': - return In.FIXED32_BIG - case 4: - case 'FIXED32_LITTLE': - return In.FIXED32_LITTLE - case 5: - case 'FIXED64_BIG': - return In.FIXED64_BIG - case 6: - case 'FIXED64_LITTLE': - return In.FIXED64_LITTLE - case 7: - case 'REQUIRE_32_BYTES': - return In.REQUIRE_32_BYTES - case 8: - case 'REQUIRE_64_BYTES': - return In.REQUIRE_64_BYTES - case -1: - case 'UNRECOGNIZED': - default: - return In.UNRECOGNIZED - } - } - e.lengthOpFromJSON = Jn - function qn(tn) { - switch (tn) { - case In.NO_PREFIX: - return 'NO_PREFIX' - case In.VAR_PROTO: - return 'VAR_PROTO' - case In.VAR_RLP: - return 'VAR_RLP' - case In.FIXED32_BIG: - return 'FIXED32_BIG' - case In.FIXED32_LITTLE: - return 'FIXED32_LITTLE' - case In.FIXED64_BIG: - return 'FIXED64_BIG' - case In.FIXED64_LITTLE: - return 'FIXED64_LITTLE' - case In.REQUIRE_32_BYTES: - return 'REQUIRE_32_BYTES' - case In.REQUIRE_64_BYTES: - return 'REQUIRE_64_BYTES' - case In.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.lengthOpToJSON = qn - function Kn() { - return { key: new Uint8Array(), value: new Uint8Array(), leaf: void 0, path: [] } - } - e.ExistenceProof = { - encode(tn, En = $.Writer.create()) { - tn.key.length !== 0 && En.uint32(10).bytes(tn.key), - tn.value.length !== 0 && En.uint32(18).bytes(tn.value), - tn.leaf !== void 0 && e.LeafOp.encode(tn.leaf, En.uint32(26).fork()).ldelim() - for (const Mn of tn.path) e.InnerOp.encode(Mn, En.uint32(34).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.key = Mn.bytes() - break - case 2: - un.value = Mn.bytes() - break - case 3: - un.leaf = e.LeafOp.decode(Mn, Mn.uint32()) - break - case 4: - un.path.push(e.InnerOp.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - key: (0, en.isSet)(tn.key) ? (0, en.bytesFromBase64)(tn.key) : new Uint8Array(), - value: (0, en.isSet)(tn.value) ? (0, en.bytesFromBase64)(tn.value) : new Uint8Array(), - leaf: (0, en.isSet)(tn.leaf) ? e.LeafOp.fromJSON(tn.leaf) : void 0, - path: Array.isArray(tn?.path) ? tn.path.map((En) => e.InnerOp.fromJSON(En)) : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.key !== void 0 && - (En.key = (0, en.base64FromBytes)(tn.key !== void 0 ? tn.key : new Uint8Array())), - tn.value !== void 0 && - (En.value = (0, en.base64FromBytes)(tn.value !== void 0 ? tn.value : new Uint8Array())), - tn.leaf !== void 0 && (En.leaf = tn.leaf ? e.LeafOp.toJSON(tn.leaf) : void 0), - tn.path - ? (En.path = tn.path.map((Mn) => (Mn ? e.InnerOp.toJSON(Mn) : void 0))) - : (En.path = []), - En - ) - }, - fromPartial(tn) { - const En = Kn() - return ( - (En.key = tn.key ?? new Uint8Array()), - (En.value = tn.value ?? new Uint8Array()), - (En.leaf = tn.leaf !== void 0 && tn.leaf !== null ? e.LeafOp.fromPartial(tn.leaf) : void 0), - (En.path = tn.path?.map((Mn) => e.InnerOp.fromPartial(Mn)) || []), - En - ) - }, - } - function an() { - return { key: new Uint8Array(), left: void 0, right: void 0 } - } - e.NonExistenceProof = { - encode(tn, En = $.Writer.create()) { - return ( - tn.key.length !== 0 && En.uint32(10).bytes(tn.key), - tn.left !== void 0 && e.ExistenceProof.encode(tn.left, En.uint32(18).fork()).ldelim(), - tn.right !== void 0 && e.ExistenceProof.encode(tn.right, En.uint32(26).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = an() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.key = Mn.bytes() - break - case 2: - un.left = e.ExistenceProof.decode(Mn, Mn.uint32()) - break - case 3: - un.right = e.ExistenceProof.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - key: (0, en.isSet)(tn.key) ? (0, en.bytesFromBase64)(tn.key) : new Uint8Array(), - left: (0, en.isSet)(tn.left) ? e.ExistenceProof.fromJSON(tn.left) : void 0, - right: (0, en.isSet)(tn.right) ? e.ExistenceProof.fromJSON(tn.right) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.key !== void 0 && - (En.key = (0, en.base64FromBytes)(tn.key !== void 0 ? tn.key : new Uint8Array())), - tn.left !== void 0 && (En.left = tn.left ? e.ExistenceProof.toJSON(tn.left) : void 0), - tn.right !== void 0 && (En.right = tn.right ? e.ExistenceProof.toJSON(tn.right) : void 0), - En - ) - }, - fromPartial(tn) { - const En = an() - return ( - (En.key = tn.key ?? new Uint8Array()), - (En.left = - tn.left !== void 0 && tn.left !== null ? e.ExistenceProof.fromPartial(tn.left) : void 0), - (En.right = - tn.right !== void 0 && tn.right !== null - ? e.ExistenceProof.fromPartial(tn.right) - : void 0), - En - ) - }, - } - function xn() { - return { exist: void 0, nonexist: void 0, batch: void 0, compressed: void 0 } - } - e.CommitmentProof = { - encode(tn, En = $.Writer.create()) { - return ( - tn.exist !== void 0 && e.ExistenceProof.encode(tn.exist, En.uint32(10).fork()).ldelim(), - tn.nonexist !== void 0 && - e.NonExistenceProof.encode(tn.nonexist, En.uint32(18).fork()).ldelim(), - tn.batch !== void 0 && e.BatchProof.encode(tn.batch, En.uint32(26).fork()).ldelim(), - tn.compressed !== void 0 && - e.CompressedBatchProof.encode(tn.compressed, En.uint32(34).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = xn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.exist = e.ExistenceProof.decode(Mn, Mn.uint32()) - break - case 2: - un.nonexist = e.NonExistenceProof.decode(Mn, Mn.uint32()) - break - case 3: - un.batch = e.BatchProof.decode(Mn, Mn.uint32()) - break - case 4: - un.compressed = e.CompressedBatchProof.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - exist: (0, en.isSet)(tn.exist) ? e.ExistenceProof.fromJSON(tn.exist) : void 0, - nonexist: (0, en.isSet)(tn.nonexist) ? e.NonExistenceProof.fromJSON(tn.nonexist) : void 0, - batch: (0, en.isSet)(tn.batch) ? e.BatchProof.fromJSON(tn.batch) : void 0, - compressed: (0, en.isSet)(tn.compressed) - ? e.CompressedBatchProof.fromJSON(tn.compressed) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.exist !== void 0 && (En.exist = tn.exist ? e.ExistenceProof.toJSON(tn.exist) : void 0), - tn.nonexist !== void 0 && - (En.nonexist = tn.nonexist ? e.NonExistenceProof.toJSON(tn.nonexist) : void 0), - tn.batch !== void 0 && (En.batch = tn.batch ? e.BatchProof.toJSON(tn.batch) : void 0), - tn.compressed !== void 0 && - (En.compressed = tn.compressed ? e.CompressedBatchProof.toJSON(tn.compressed) : void 0), - En - ) - }, - fromPartial(tn) { - const En = xn() - return ( - (En.exist = - tn.exist !== void 0 && tn.exist !== null - ? e.ExistenceProof.fromPartial(tn.exist) - : void 0), - (En.nonexist = - tn.nonexist !== void 0 && tn.nonexist !== null - ? e.NonExistenceProof.fromPartial(tn.nonexist) - : void 0), - (En.batch = - tn.batch !== void 0 && tn.batch !== null ? e.BatchProof.fromPartial(tn.batch) : void 0), - (En.compressed = - tn.compressed !== void 0 && tn.compressed !== null - ? e.CompressedBatchProof.fromPartial(tn.compressed) - : void 0), - En - ) - }, - } - function mn() { - return { hash: 0, prehashKey: 0, prehashValue: 0, length: 0, prefix: new Uint8Array() } - } - e.LeafOp = { - encode(tn, En = $.Writer.create()) { - return ( - tn.hash !== 0 && En.uint32(8).int32(tn.hash), - tn.prehashKey !== 0 && En.uint32(16).int32(tn.prehashKey), - tn.prehashValue !== 0 && En.uint32(24).int32(tn.prehashValue), - tn.length !== 0 && En.uint32(32).int32(tn.length), - tn.prefix.length !== 0 && En.uint32(42).bytes(tn.prefix), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = mn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.hash = Mn.int32() - break - case 2: - un.prehashKey = Mn.int32() - break - case 3: - un.prehashValue = Mn.int32() - break - case 4: - un.length = Mn.int32() - break - case 5: - un.prefix = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - hash: (0, en.isSet)(tn.hash) ? sn(tn.hash) : 0, - prehashKey: (0, en.isSet)(tn.prehashKey) ? sn(tn.prehashKey) : 0, - prehashValue: (0, en.isSet)(tn.prehashValue) ? sn(tn.prehashValue) : 0, - length: (0, en.isSet)(tn.length) ? Jn(tn.length) : 0, - prefix: (0, en.isSet)(tn.prefix) ? (0, en.bytesFromBase64)(tn.prefix) : new Uint8Array(), - } - }, - toJSON(tn) { - const En = {} - return ( - tn.hash !== void 0 && (En.hash = gn(tn.hash)), - tn.prehashKey !== void 0 && (En.prehashKey = gn(tn.prehashKey)), - tn.prehashValue !== void 0 && (En.prehashValue = gn(tn.prehashValue)), - tn.length !== void 0 && (En.length = qn(tn.length)), - tn.prefix !== void 0 && - (En.prefix = (0, en.base64FromBytes)( - tn.prefix !== void 0 ? tn.prefix : new Uint8Array(), - )), - En - ) - }, - fromPartial(tn) { - const En = mn() - return ( - (En.hash = tn.hash ?? 0), - (En.prehashKey = tn.prehashKey ?? 0), - (En.prehashValue = tn.prehashValue ?? 0), - (En.length = tn.length ?? 0), - (En.prefix = tn.prefix ?? new Uint8Array()), - En - ) - }, - } - function Bn() { - return { hash: 0, prefix: new Uint8Array(), suffix: new Uint8Array() } - } - e.InnerOp = { - encode(tn, En = $.Writer.create()) { - return ( - tn.hash !== 0 && En.uint32(8).int32(tn.hash), - tn.prefix.length !== 0 && En.uint32(18).bytes(tn.prefix), - tn.suffix.length !== 0 && En.uint32(26).bytes(tn.suffix), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Bn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.hash = Mn.int32() - break - case 2: - un.prefix = Mn.bytes() - break - case 3: - un.suffix = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - hash: (0, en.isSet)(tn.hash) ? sn(tn.hash) : 0, - prefix: (0, en.isSet)(tn.prefix) ? (0, en.bytesFromBase64)(tn.prefix) : new Uint8Array(), - suffix: (0, en.isSet)(tn.suffix) ? (0, en.bytesFromBase64)(tn.suffix) : new Uint8Array(), - } - }, - toJSON(tn) { - const En = {} - return ( - tn.hash !== void 0 && (En.hash = gn(tn.hash)), - tn.prefix !== void 0 && - (En.prefix = (0, en.base64FromBytes)( - tn.prefix !== void 0 ? tn.prefix : new Uint8Array(), - )), - tn.suffix !== void 0 && - (En.suffix = (0, en.base64FromBytes)( - tn.suffix !== void 0 ? tn.suffix : new Uint8Array(), - )), - En - ) - }, - fromPartial(tn) { - const En = Bn() - return ( - (En.hash = tn.hash ?? 0), - (En.prefix = tn.prefix ?? new Uint8Array()), - (En.suffix = tn.suffix ?? new Uint8Array()), - En - ) - }, - } - function kn() { - return { leafSpec: void 0, innerSpec: void 0, maxDepth: 0, minDepth: 0 } - } - e.ProofSpec = { - encode(tn, En = $.Writer.create()) { - return ( - tn.leafSpec !== void 0 && e.LeafOp.encode(tn.leafSpec, En.uint32(10).fork()).ldelim(), - tn.innerSpec !== void 0 && e.InnerSpec.encode(tn.innerSpec, En.uint32(18).fork()).ldelim(), - tn.maxDepth !== 0 && En.uint32(24).int32(tn.maxDepth), - tn.minDepth !== 0 && En.uint32(32).int32(tn.minDepth), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.leafSpec = e.LeafOp.decode(Mn, Mn.uint32()) - break - case 2: - un.innerSpec = e.InnerSpec.decode(Mn, Mn.uint32()) - break - case 3: - un.maxDepth = Mn.int32() - break - case 4: - un.minDepth = Mn.int32() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - leafSpec: (0, en.isSet)(tn.leafSpec) ? e.LeafOp.fromJSON(tn.leafSpec) : void 0, - innerSpec: (0, en.isSet)(tn.innerSpec) ? e.InnerSpec.fromJSON(tn.innerSpec) : void 0, - maxDepth: (0, en.isSet)(tn.maxDepth) ? Number(tn.maxDepth) : 0, - minDepth: (0, en.isSet)(tn.minDepth) ? Number(tn.minDepth) : 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.leafSpec !== void 0 && - (En.leafSpec = tn.leafSpec ? e.LeafOp.toJSON(tn.leafSpec) : void 0), - tn.innerSpec !== void 0 && - (En.innerSpec = tn.innerSpec ? e.InnerSpec.toJSON(tn.innerSpec) : void 0), - tn.maxDepth !== void 0 && (En.maxDepth = Math.round(tn.maxDepth)), - tn.minDepth !== void 0 && (En.minDepth = Math.round(tn.minDepth)), - En - ) - }, - fromPartial(tn) { - const En = kn() - return ( - (En.leafSpec = - tn.leafSpec !== void 0 && tn.leafSpec !== null - ? e.LeafOp.fromPartial(tn.leafSpec) - : void 0), - (En.innerSpec = - tn.innerSpec !== void 0 && tn.innerSpec !== null - ? e.InnerSpec.fromPartial(tn.innerSpec) - : void 0), - (En.maxDepth = tn.maxDepth ?? 0), - (En.minDepth = tn.minDepth ?? 0), - En - ) - }, - } - function ln() { - return { - childOrder: [], - childSize: 0, - minPrefixLength: 0, - maxPrefixLength: 0, - emptyChild: new Uint8Array(), - hash: 0, - } - } - e.InnerSpec = { - encode(tn, En = $.Writer.create()) { - En.uint32(10).fork() - for (const Mn of tn.childOrder) En.int32(Mn) - return ( - En.ldelim(), - tn.childSize !== 0 && En.uint32(16).int32(tn.childSize), - tn.minPrefixLength !== 0 && En.uint32(24).int32(tn.minPrefixLength), - tn.maxPrefixLength !== 0 && En.uint32(32).int32(tn.maxPrefixLength), - tn.emptyChild.length !== 0 && En.uint32(42).bytes(tn.emptyChild), - tn.hash !== 0 && En.uint32(48).int32(tn.hash), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = ln() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - if ((dn & 7) === 2) { - const Nn = Mn.uint32() + Mn.pos - for (; Mn.pos < Nn; ) un.childOrder.push(Mn.int32()) - } else un.childOrder.push(Mn.int32()) - break - case 2: - un.childSize = Mn.int32() - break - case 3: - un.minPrefixLength = Mn.int32() - break - case 4: - un.maxPrefixLength = Mn.int32() - break - case 5: - un.emptyChild = Mn.bytes() - break - case 6: - un.hash = Mn.int32() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - childOrder: Array.isArray(tn?.childOrder) ? tn.childOrder.map((En) => Number(En)) : [], - childSize: (0, en.isSet)(tn.childSize) ? Number(tn.childSize) : 0, - minPrefixLength: (0, en.isSet)(tn.minPrefixLength) ? Number(tn.minPrefixLength) : 0, - maxPrefixLength: (0, en.isSet)(tn.maxPrefixLength) ? Number(tn.maxPrefixLength) : 0, - emptyChild: (0, en.isSet)(tn.emptyChild) - ? (0, en.bytesFromBase64)(tn.emptyChild) - : new Uint8Array(), - hash: (0, en.isSet)(tn.hash) ? sn(tn.hash) : 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.childOrder - ? (En.childOrder = tn.childOrder.map((Mn) => Math.round(Mn))) - : (En.childOrder = []), - tn.childSize !== void 0 && (En.childSize = Math.round(tn.childSize)), - tn.minPrefixLength !== void 0 && (En.minPrefixLength = Math.round(tn.minPrefixLength)), - tn.maxPrefixLength !== void 0 && (En.maxPrefixLength = Math.round(tn.maxPrefixLength)), - tn.emptyChild !== void 0 && - (En.emptyChild = (0, en.base64FromBytes)( - tn.emptyChild !== void 0 ? tn.emptyChild : new Uint8Array(), - )), - tn.hash !== void 0 && (En.hash = gn(tn.hash)), - En - ) - }, - fromPartial(tn) { - const En = ln() - return ( - (En.childOrder = tn.childOrder?.map((Mn) => Mn) || []), - (En.childSize = tn.childSize ?? 0), - (En.minPrefixLength = tn.minPrefixLength ?? 0), - (En.maxPrefixLength = tn.maxPrefixLength ?? 0), - (En.emptyChild = tn.emptyChild ?? new Uint8Array()), - (En.hash = tn.hash ?? 0), - En - ) - }, - } - function yn() { - return { entries: [] } - } - e.BatchProof = { - encode(tn, En = $.Writer.create()) { - for (const Mn of tn.entries) e.BatchEntry.encode(Mn, En.uint32(10).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = yn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.entries.push(e.BatchEntry.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - entries: Array.isArray(tn?.entries) - ? tn.entries.map((En) => e.BatchEntry.fromJSON(En)) - : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.entries - ? (En.entries = tn.entries.map((Mn) => (Mn ? e.BatchEntry.toJSON(Mn) : void 0))) - : (En.entries = []), - En - ) - }, - fromPartial(tn) { - const En = yn() - return (En.entries = tn.entries?.map((Mn) => e.BatchEntry.fromPartial(Mn)) || []), En - }, - } - function Cn() { - return { exist: void 0, nonexist: void 0 } - } - e.BatchEntry = { - encode(tn, En = $.Writer.create()) { - return ( - tn.exist !== void 0 && e.ExistenceProof.encode(tn.exist, En.uint32(10).fork()).ldelim(), - tn.nonexist !== void 0 && - e.NonExistenceProof.encode(tn.nonexist, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Cn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.exist = e.ExistenceProof.decode(Mn, Mn.uint32()) - break - case 2: - un.nonexist = e.NonExistenceProof.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - exist: (0, en.isSet)(tn.exist) ? e.ExistenceProof.fromJSON(tn.exist) : void 0, - nonexist: (0, en.isSet)(tn.nonexist) ? e.NonExistenceProof.fromJSON(tn.nonexist) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.exist !== void 0 && (En.exist = tn.exist ? e.ExistenceProof.toJSON(tn.exist) : void 0), - tn.nonexist !== void 0 && - (En.nonexist = tn.nonexist ? e.NonExistenceProof.toJSON(tn.nonexist) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Cn() - return ( - (En.exist = - tn.exist !== void 0 && tn.exist !== null - ? e.ExistenceProof.fromPartial(tn.exist) - : void 0), - (En.nonexist = - tn.nonexist !== void 0 && tn.nonexist !== null - ? e.NonExistenceProof.fromPartial(tn.nonexist) - : void 0), - En - ) - }, - } - function Tn() { - return { entries: [], lookupInners: [] } - } - e.CompressedBatchProof = { - encode(tn, En = $.Writer.create()) { - for (const Mn of tn.entries) e.CompressedBatchEntry.encode(Mn, En.uint32(10).fork()).ldelim() - for (const Mn of tn.lookupInners) e.InnerOp.encode(Mn, En.uint32(18).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Tn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.entries.push(e.CompressedBatchEntry.decode(Mn, Mn.uint32())) - break - case 2: - un.lookupInners.push(e.InnerOp.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - entries: Array.isArray(tn?.entries) - ? tn.entries.map((En) => e.CompressedBatchEntry.fromJSON(En)) - : [], - lookupInners: Array.isArray(tn?.lookupInners) - ? tn.lookupInners.map((En) => e.InnerOp.fromJSON(En)) - : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.entries - ? (En.entries = tn.entries.map((Mn) => (Mn ? e.CompressedBatchEntry.toJSON(Mn) : void 0))) - : (En.entries = []), - tn.lookupInners - ? (En.lookupInners = tn.lookupInners.map((Mn) => (Mn ? e.InnerOp.toJSON(Mn) : void 0))) - : (En.lookupInners = []), - En - ) - }, - fromPartial(tn) { - const En = Tn() - return ( - (En.entries = tn.entries?.map((Mn) => e.CompressedBatchEntry.fromPartial(Mn)) || []), - (En.lookupInners = tn.lookupInners?.map((Mn) => e.InnerOp.fromPartial(Mn)) || []), - En - ) - }, - } - function Gn() { - return { exist: void 0, nonexist: void 0 } - } - e.CompressedBatchEntry = { - encode(tn, En = $.Writer.create()) { - return ( - tn.exist !== void 0 && - e.CompressedExistenceProof.encode(tn.exist, En.uint32(10).fork()).ldelim(), - tn.nonexist !== void 0 && - e.CompressedNonExistenceProof.encode(tn.nonexist, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.exist = e.CompressedExistenceProof.decode(Mn, Mn.uint32()) - break - case 2: - un.nonexist = e.CompressedNonExistenceProof.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - exist: (0, en.isSet)(tn.exist) ? e.CompressedExistenceProof.fromJSON(tn.exist) : void 0, - nonexist: (0, en.isSet)(tn.nonexist) - ? e.CompressedNonExistenceProof.fromJSON(tn.nonexist) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.exist !== void 0 && - (En.exist = tn.exist ? e.CompressedExistenceProof.toJSON(tn.exist) : void 0), - tn.nonexist !== void 0 && - (En.nonexist = tn.nonexist ? e.CompressedNonExistenceProof.toJSON(tn.nonexist) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Gn() - return ( - (En.exist = - tn.exist !== void 0 && tn.exist !== null - ? e.CompressedExistenceProof.fromPartial(tn.exist) - : void 0), - (En.nonexist = - tn.nonexist !== void 0 && tn.nonexist !== null - ? e.CompressedNonExistenceProof.fromPartial(tn.nonexist) - : void 0), - En - ) - }, - } - function Sn() { - return { key: new Uint8Array(), value: new Uint8Array(), leaf: void 0, path: [] } - } - e.CompressedExistenceProof = { - encode(tn, En = $.Writer.create()) { - tn.key.length !== 0 && En.uint32(10).bytes(tn.key), - tn.value.length !== 0 && En.uint32(18).bytes(tn.value), - tn.leaf !== void 0 && e.LeafOp.encode(tn.leaf, En.uint32(26).fork()).ldelim(), - En.uint32(34).fork() - for (const Mn of tn.path) En.int32(Mn) - return En.ldelim(), En - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Sn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.key = Mn.bytes() - break - case 2: - un.value = Mn.bytes() - break - case 3: - un.leaf = e.LeafOp.decode(Mn, Mn.uint32()) - break - case 4: - if ((dn & 7) === 2) { - const Nn = Mn.uint32() + Mn.pos - for (; Mn.pos < Nn; ) un.path.push(Mn.int32()) - } else un.path.push(Mn.int32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - key: (0, en.isSet)(tn.key) ? (0, en.bytesFromBase64)(tn.key) : new Uint8Array(), - value: (0, en.isSet)(tn.value) ? (0, en.bytesFromBase64)(tn.value) : new Uint8Array(), - leaf: (0, en.isSet)(tn.leaf) ? e.LeafOp.fromJSON(tn.leaf) : void 0, - path: Array.isArray(tn?.path) ? tn.path.map((En) => Number(En)) : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.key !== void 0 && - (En.key = (0, en.base64FromBytes)(tn.key !== void 0 ? tn.key : new Uint8Array())), - tn.value !== void 0 && - (En.value = (0, en.base64FromBytes)(tn.value !== void 0 ? tn.value : new Uint8Array())), - tn.leaf !== void 0 && (En.leaf = tn.leaf ? e.LeafOp.toJSON(tn.leaf) : void 0), - tn.path ? (En.path = tn.path.map((Mn) => Math.round(Mn))) : (En.path = []), - En - ) - }, - fromPartial(tn) { - const En = Sn() - return ( - (En.key = tn.key ?? new Uint8Array()), - (En.value = tn.value ?? new Uint8Array()), - (En.leaf = tn.leaf !== void 0 && tn.leaf !== null ? e.LeafOp.fromPartial(tn.leaf) : void 0), - (En.path = tn.path?.map((Mn) => Mn) || []), - En - ) - }, - } - function Zn() { - return { key: new Uint8Array(), left: void 0, right: void 0 } - } - e.CompressedNonExistenceProof = { - encode(tn, En = $.Writer.create()) { - return ( - tn.key.length !== 0 && En.uint32(10).bytes(tn.key), - tn.left !== void 0 && - e.CompressedExistenceProof.encode(tn.left, En.uint32(18).fork()).ldelim(), - tn.right !== void 0 && - e.CompressedExistenceProof.encode(tn.right, En.uint32(26).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof $.Reader ? tn : new $.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Zn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.key = Mn.bytes() - break - case 2: - un.left = e.CompressedExistenceProof.decode(Mn, Mn.uint32()) - break - case 3: - un.right = e.CompressedExistenceProof.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - key: (0, en.isSet)(tn.key) ? (0, en.bytesFromBase64)(tn.key) : new Uint8Array(), - left: (0, en.isSet)(tn.left) ? e.CompressedExistenceProof.fromJSON(tn.left) : void 0, - right: (0, en.isSet)(tn.right) ? e.CompressedExistenceProof.fromJSON(tn.right) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.key !== void 0 && - (En.key = (0, en.base64FromBytes)(tn.key !== void 0 ? tn.key : new Uint8Array())), - tn.left !== void 0 && - (En.left = tn.left ? e.CompressedExistenceProof.toJSON(tn.left) : void 0), - tn.right !== void 0 && - (En.right = tn.right ? e.CompressedExistenceProof.toJSON(tn.right) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Zn() - return ( - (En.key = tn.key ?? new Uint8Array()), - (En.left = - tn.left !== void 0 && tn.left !== null - ? e.CompressedExistenceProof.fromPartial(tn.left) - : void 0), - (En.right = - tn.right !== void 0 && tn.right !== null - ? e.CompressedExistenceProof.fromPartial(tn.right) - : void 0), - En - ) - }, - } -})(proofs) -var __createBinding$a = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$a = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$a = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$a(o, e, _) - return __setModuleDefault$a(o, e), o - } -Object.defineProperty(commitment, '__esModule', { value: !0 }) -commitment.MerkleProof = - commitment.MerklePath = - commitment.MerklePrefix = - commitment.MerkleRoot = - commitment.protobufPackage = - void 0 -const proofs_1 = proofs, - _m0$6 = __importStar$a(minimalExports), - helpers_1$6 = helpers -commitment.protobufPackage = 'ibc.core.commitment.v1' -function createBaseMerkleRoot() { - return { hash: new Uint8Array() } -} -commitment.MerkleRoot = { - encode(e, o = _m0$6.Writer.create()) { - return e.hash.length !== 0 && o.uint32(10).bytes(e.hash), o - }, - decode(e, o) { - const _ = e instanceof _m0$6.Reader ? e : new _m0$6.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseMerkleRoot() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.hash = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - hash: (0, helpers_1$6.isSet)(e.hash) - ? (0, helpers_1$6.bytesFromBase64)(e.hash) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.hash !== void 0 && - (o.hash = (0, helpers_1$6.base64FromBytes)(e.hash !== void 0 ? e.hash : new Uint8Array())), - o - ) - }, - fromPartial(e) { - const o = createBaseMerkleRoot() - return (o.hash = e.hash ?? new Uint8Array()), o - }, -} -function createBaseMerklePrefix() { - return { keyPrefix: new Uint8Array() } -} -commitment.MerklePrefix = { - encode(e, o = _m0$6.Writer.create()) { - return e.keyPrefix.length !== 0 && o.uint32(10).bytes(e.keyPrefix), o - }, - decode(e, o) { - const _ = e instanceof _m0$6.Reader ? e : new _m0$6.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseMerklePrefix() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.keyPrefix = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - keyPrefix: (0, helpers_1$6.isSet)(e.keyPrefix) - ? (0, helpers_1$6.bytesFromBase64)(e.keyPrefix) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.keyPrefix !== void 0 && - (o.keyPrefix = (0, helpers_1$6.base64FromBytes)( - e.keyPrefix !== void 0 ? e.keyPrefix : new Uint8Array(), - )), - o - ) - }, - fromPartial(e) { - const o = createBaseMerklePrefix() - return (o.keyPrefix = e.keyPrefix ?? new Uint8Array()), o - }, -} -function createBaseMerklePath() { - return { keyPath: [] } -} -commitment.MerklePath = { - encode(e, o = _m0$6.Writer.create()) { - for (const _ of e.keyPath) o.uint32(10).string(_) - return o - }, - decode(e, o) { - const _ = e instanceof _m0$6.Reader ? e : new _m0$6.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseMerklePath() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.keyPath.push(_.string()) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { keyPath: Array.isArray(e?.keyPath) ? e.keyPath.map((o) => String(o)) : [] } - }, - toJSON(e) { - const o = {} - return e.keyPath ? (o.keyPath = e.keyPath.map((_) => _)) : (o.keyPath = []), o - }, - fromPartial(e) { - const o = createBaseMerklePath() - return (o.keyPath = e.keyPath?.map((_) => _) || []), o - }, -} -function createBaseMerkleProof() { - return { proofs: [] } -} -commitment.MerkleProof = { - encode(e, o = _m0$6.Writer.create()) { - for (const _ of e.proofs) proofs_1.CommitmentProof.encode(_, o.uint32(10).fork()).ldelim() - return o - }, - decode(e, o) { - const _ = e instanceof _m0$6.Reader ? e : new _m0$6.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseMerkleProof() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.proofs.push(proofs_1.CommitmentProof.decode(_, _.uint32())) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - proofs: Array.isArray(e?.proofs) - ? e.proofs.map((o) => proofs_1.CommitmentProof.fromJSON(o)) - : [], - } - }, - toJSON(e) { - const o = {} - return ( - e.proofs - ? (o.proofs = e.proofs.map((_) => (_ ? proofs_1.CommitmentProof.toJSON(_) : void 0))) - : (o.proofs = []), - o - ) - }, - fromPartial(e) { - const o = createBaseMerkleProof() - return (o.proofs = e.proofs?.map((_) => proofs_1.CommitmentProof.fromPartial(_)) || []), o - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (kn, ln, yn, Cn) { - Cn === void 0 && (Cn = yn) - var Tn = Object.getOwnPropertyDescriptor(ln, yn) - ;(!Tn || ('get' in Tn ? !ln.__esModule : Tn.writable || Tn.configurable)) && - (Tn = { - enumerable: !0, - get: function () { - return ln[yn] - }, - }), - Object.defineProperty(kn, Cn, Tn) - } - : function (kn, ln, yn, Cn) { - Cn === void 0 && (Cn = yn), (kn[Cn] = ln[yn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (kn, ln) { - Object.defineProperty(kn, 'default', { enumerable: !0, value: ln }) - } - : function (kn, ln) { - kn.default = ln - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (kn) { - if (kn && kn.__esModule) return kn - var ln = {} - if (kn != null) - for (var yn in kn) - yn !== 'default' && Object.prototype.hasOwnProperty.call(kn, yn) && o(ln, kn, yn) - return _(ln, kn), ln - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Params = - e.Version = - e.ConnectionPaths = - e.ClientPaths = - e.Counterparty = - e.IdentifiedConnection = - e.ConnectionEnd = - e.stateToJSON = - e.stateFromJSON = - e.State = - e.protobufPackage = - void 0) - const $ = commitment, - en = helpers, - nn = b(minimalExports) - e.protobufPackage = 'ibc.core.connection.v1' - var sn - ;(function (kn) { - ;(kn[(kn.STATE_UNINITIALIZED_UNSPECIFIED = 0)] = 'STATE_UNINITIALIZED_UNSPECIFIED'), - (kn[(kn.STATE_INIT = 1)] = 'STATE_INIT'), - (kn[(kn.STATE_TRYOPEN = 2)] = 'STATE_TRYOPEN'), - (kn[(kn.STATE_OPEN = 3)] = 'STATE_OPEN'), - (kn[(kn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((sn = e.State || (e.State = {}))) - function gn(kn) { - switch (kn) { - case 0: - case 'STATE_UNINITIALIZED_UNSPECIFIED': - return sn.STATE_UNINITIALIZED_UNSPECIFIED - case 1: - case 'STATE_INIT': - return sn.STATE_INIT - case 2: - case 'STATE_TRYOPEN': - return sn.STATE_TRYOPEN - case 3: - case 'STATE_OPEN': - return sn.STATE_OPEN - case -1: - case 'UNRECOGNIZED': - default: - return sn.UNRECOGNIZED - } - } - e.stateFromJSON = gn - function In(kn) { - switch (kn) { - case sn.STATE_UNINITIALIZED_UNSPECIFIED: - return 'STATE_UNINITIALIZED_UNSPECIFIED' - case sn.STATE_INIT: - return 'STATE_INIT' - case sn.STATE_TRYOPEN: - return 'STATE_TRYOPEN' - case sn.STATE_OPEN: - return 'STATE_OPEN' - case sn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.stateToJSON = In - function Jn() { - return { - clientId: '', - versions: [], - state: 0, - counterparty: void 0, - delayPeriod: en.Long.UZERO, - } - } - e.ConnectionEnd = { - encode(kn, ln = nn.Writer.create()) { - kn.clientId !== '' && ln.uint32(10).string(kn.clientId) - for (const yn of kn.versions) e.Version.encode(yn, ln.uint32(18).fork()).ldelim() - return ( - kn.state !== 0 && ln.uint32(24).int32(kn.state), - kn.counterparty !== void 0 && - e.Counterparty.encode(kn.counterparty, ln.uint32(34).fork()).ldelim(), - kn.delayPeriod.isZero() || ln.uint32(40).uint64(kn.delayPeriod), - ln - ) - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = Jn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.clientId = yn.string() - break - case 2: - Tn.versions.push(e.Version.decode(yn, yn.uint32())) - break - case 3: - Tn.state = yn.int32() - break - case 4: - Tn.counterparty = e.Counterparty.decode(yn, yn.uint32()) - break - case 5: - Tn.delayPeriod = yn.uint64() - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - clientId: (0, en.isSet)(kn.clientId) ? String(kn.clientId) : '', - versions: Array.isArray(kn?.versions) - ? kn.versions.map((ln) => e.Version.fromJSON(ln)) - : [], - state: (0, en.isSet)(kn.state) ? gn(kn.state) : 0, - counterparty: (0, en.isSet)(kn.counterparty) - ? e.Counterparty.fromJSON(kn.counterparty) - : void 0, - delayPeriod: (0, en.isSet)(kn.delayPeriod) - ? en.Long.fromValue(kn.delayPeriod) - : en.Long.UZERO, - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.clientId !== void 0 && (ln.clientId = kn.clientId), - kn.versions - ? (ln.versions = kn.versions.map((yn) => (yn ? e.Version.toJSON(yn) : void 0))) - : (ln.versions = []), - kn.state !== void 0 && (ln.state = In(kn.state)), - kn.counterparty !== void 0 && - (ln.counterparty = kn.counterparty ? e.Counterparty.toJSON(kn.counterparty) : void 0), - kn.delayPeriod !== void 0 && - (ln.delayPeriod = (kn.delayPeriod || en.Long.UZERO).toString()), - ln - ) - }, - fromPartial(kn) { - const ln = Jn() - return ( - (ln.clientId = kn.clientId ?? ''), - (ln.versions = kn.versions?.map((yn) => e.Version.fromPartial(yn)) || []), - (ln.state = kn.state ?? 0), - (ln.counterparty = - kn.counterparty !== void 0 && kn.counterparty !== null - ? e.Counterparty.fromPartial(kn.counterparty) - : void 0), - (ln.delayPeriod = - kn.delayPeriod !== void 0 && kn.delayPeriod !== null - ? en.Long.fromValue(kn.delayPeriod) - : en.Long.UZERO), - ln - ) - }, - } - function qn() { - return { - id: '', - clientId: '', - versions: [], - state: 0, - counterparty: void 0, - delayPeriod: en.Long.UZERO, - } - } - e.IdentifiedConnection = { - encode(kn, ln = nn.Writer.create()) { - kn.id !== '' && ln.uint32(10).string(kn.id), - kn.clientId !== '' && ln.uint32(18).string(kn.clientId) - for (const yn of kn.versions) e.Version.encode(yn, ln.uint32(26).fork()).ldelim() - return ( - kn.state !== 0 && ln.uint32(32).int32(kn.state), - kn.counterparty !== void 0 && - e.Counterparty.encode(kn.counterparty, ln.uint32(42).fork()).ldelim(), - kn.delayPeriod.isZero() || ln.uint32(48).uint64(kn.delayPeriod), - ln - ) - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = qn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.id = yn.string() - break - case 2: - Tn.clientId = yn.string() - break - case 3: - Tn.versions.push(e.Version.decode(yn, yn.uint32())) - break - case 4: - Tn.state = yn.int32() - break - case 5: - Tn.counterparty = e.Counterparty.decode(yn, yn.uint32()) - break - case 6: - Tn.delayPeriod = yn.uint64() - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - id: (0, en.isSet)(kn.id) ? String(kn.id) : '', - clientId: (0, en.isSet)(kn.clientId) ? String(kn.clientId) : '', - versions: Array.isArray(kn?.versions) - ? kn.versions.map((ln) => e.Version.fromJSON(ln)) - : [], - state: (0, en.isSet)(kn.state) ? gn(kn.state) : 0, - counterparty: (0, en.isSet)(kn.counterparty) - ? e.Counterparty.fromJSON(kn.counterparty) - : void 0, - delayPeriod: (0, en.isSet)(kn.delayPeriod) - ? en.Long.fromValue(kn.delayPeriod) - : en.Long.UZERO, - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.id !== void 0 && (ln.id = kn.id), - kn.clientId !== void 0 && (ln.clientId = kn.clientId), - kn.versions - ? (ln.versions = kn.versions.map((yn) => (yn ? e.Version.toJSON(yn) : void 0))) - : (ln.versions = []), - kn.state !== void 0 && (ln.state = In(kn.state)), - kn.counterparty !== void 0 && - (ln.counterparty = kn.counterparty ? e.Counterparty.toJSON(kn.counterparty) : void 0), - kn.delayPeriod !== void 0 && - (ln.delayPeriod = (kn.delayPeriod || en.Long.UZERO).toString()), - ln - ) - }, - fromPartial(kn) { - const ln = qn() - return ( - (ln.id = kn.id ?? ''), - (ln.clientId = kn.clientId ?? ''), - (ln.versions = kn.versions?.map((yn) => e.Version.fromPartial(yn)) || []), - (ln.state = kn.state ?? 0), - (ln.counterparty = - kn.counterparty !== void 0 && kn.counterparty !== null - ? e.Counterparty.fromPartial(kn.counterparty) - : void 0), - (ln.delayPeriod = - kn.delayPeriod !== void 0 && kn.delayPeriod !== null - ? en.Long.fromValue(kn.delayPeriod) - : en.Long.UZERO), - ln - ) - }, - } - function Kn() { - return { clientId: '', connectionId: '', prefix: void 0 } - } - e.Counterparty = { - encode(kn, ln = nn.Writer.create()) { - return ( - kn.clientId !== '' && ln.uint32(10).string(kn.clientId), - kn.connectionId !== '' && ln.uint32(18).string(kn.connectionId), - kn.prefix !== void 0 && $.MerklePrefix.encode(kn.prefix, ln.uint32(26).fork()).ldelim(), - ln - ) - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = Kn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.clientId = yn.string() - break - case 2: - Tn.connectionId = yn.string() - break - case 3: - Tn.prefix = $.MerklePrefix.decode(yn, yn.uint32()) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - clientId: (0, en.isSet)(kn.clientId) ? String(kn.clientId) : '', - connectionId: (0, en.isSet)(kn.connectionId) ? String(kn.connectionId) : '', - prefix: (0, en.isSet)(kn.prefix) ? $.MerklePrefix.fromJSON(kn.prefix) : void 0, - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.clientId !== void 0 && (ln.clientId = kn.clientId), - kn.connectionId !== void 0 && (ln.connectionId = kn.connectionId), - kn.prefix !== void 0 && (ln.prefix = kn.prefix ? $.MerklePrefix.toJSON(kn.prefix) : void 0), - ln - ) - }, - fromPartial(kn) { - const ln = Kn() - return ( - (ln.clientId = kn.clientId ?? ''), - (ln.connectionId = kn.connectionId ?? ''), - (ln.prefix = - kn.prefix !== void 0 && kn.prefix !== null - ? $.MerklePrefix.fromPartial(kn.prefix) - : void 0), - ln - ) - }, - } - function an() { - return { paths: [] } - } - e.ClientPaths = { - encode(kn, ln = nn.Writer.create()) { - for (const yn of kn.paths) ln.uint32(10).string(yn) - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = an() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.paths.push(yn.string()) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { paths: Array.isArray(kn?.paths) ? kn.paths.map((ln) => String(ln)) : [] } - }, - toJSON(kn) { - const ln = {} - return kn.paths ? (ln.paths = kn.paths.map((yn) => yn)) : (ln.paths = []), ln - }, - fromPartial(kn) { - const ln = an() - return (ln.paths = kn.paths?.map((yn) => yn) || []), ln - }, - } - function xn() { - return { clientId: '', paths: [] } - } - e.ConnectionPaths = { - encode(kn, ln = nn.Writer.create()) { - kn.clientId !== '' && ln.uint32(10).string(kn.clientId) - for (const yn of kn.paths) ln.uint32(18).string(yn) - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = xn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.clientId = yn.string() - break - case 2: - Tn.paths.push(yn.string()) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - clientId: (0, en.isSet)(kn.clientId) ? String(kn.clientId) : '', - paths: Array.isArray(kn?.paths) ? kn.paths.map((ln) => String(ln)) : [], - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.clientId !== void 0 && (ln.clientId = kn.clientId), - kn.paths ? (ln.paths = kn.paths.map((yn) => yn)) : (ln.paths = []), - ln - ) - }, - fromPartial(kn) { - const ln = xn() - return (ln.clientId = kn.clientId ?? ''), (ln.paths = kn.paths?.map((yn) => yn) || []), ln - }, - } - function mn() { - return { identifier: '', features: [] } - } - e.Version = { - encode(kn, ln = nn.Writer.create()) { - kn.identifier !== '' && ln.uint32(10).string(kn.identifier) - for (const yn of kn.features) ln.uint32(18).string(yn) - return ln - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = mn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.identifier = yn.string() - break - case 2: - Tn.features.push(yn.string()) - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - identifier: (0, en.isSet)(kn.identifier) ? String(kn.identifier) : '', - features: Array.isArray(kn?.features) ? kn.features.map((ln) => String(ln)) : [], - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.identifier !== void 0 && (ln.identifier = kn.identifier), - kn.features ? (ln.features = kn.features.map((yn) => yn)) : (ln.features = []), - ln - ) - }, - fromPartial(kn) { - const ln = mn() - return ( - (ln.identifier = kn.identifier ?? ''), - (ln.features = kn.features?.map((yn) => yn) || []), - ln - ) - }, - } - function Bn() { - return { maxExpectedTimePerBlock: en.Long.UZERO } - } - e.Params = { - encode(kn, ln = nn.Writer.create()) { - return ( - kn.maxExpectedTimePerBlock.isZero() || ln.uint32(8).uint64(kn.maxExpectedTimePerBlock), ln - ) - }, - decode(kn, ln) { - const yn = kn instanceof nn.Reader ? kn : new nn.Reader(kn) - let Cn = ln === void 0 ? yn.len : yn.pos + ln - const Tn = Bn() - for (; yn.pos < Cn; ) { - const Gn = yn.uint32() - switch (Gn >>> 3) { - case 1: - Tn.maxExpectedTimePerBlock = yn.uint64() - break - default: - yn.skipType(Gn & 7) - break - } - } - return Tn - }, - fromJSON(kn) { - return { - maxExpectedTimePerBlock: (0, en.isSet)(kn.maxExpectedTimePerBlock) - ? en.Long.fromValue(kn.maxExpectedTimePerBlock) - : en.Long.UZERO, - } - }, - toJSON(kn) { - const ln = {} - return ( - kn.maxExpectedTimePerBlock !== void 0 && - (ln.maxExpectedTimePerBlock = (kn.maxExpectedTimePerBlock || en.Long.UZERO).toString()), - ln - ) - }, - fromPartial(kn) { - const ln = Bn() - return ( - (ln.maxExpectedTimePerBlock = - kn.maxExpectedTimePerBlock !== void 0 && kn.maxExpectedTimePerBlock !== null - ? en.Long.fromValue(kn.maxExpectedTimePerBlock) - : en.Long.UZERO), - ln - ) - }, - } -})(connection) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn) - var Gn = Object.getOwnPropertyDescriptor(yn, Cn) - ;(!Gn || ('get' in Gn ? !yn.__esModule : Gn.writable || Gn.configurable)) && - (Gn = { - enumerable: !0, - get: function () { - return yn[Cn] - }, - }), - Object.defineProperty(ln, Tn, Gn) - } - : function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn), (ln[Tn] = yn[Cn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (ln, yn) { - Object.defineProperty(ln, 'default', { enumerable: !0, value: yn }) - } - : function (ln, yn) { - ln.default = yn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (ln) { - if (ln && ln.__esModule) return ln - var yn = {} - if (ln != null) - for (var Cn in ln) - Cn !== 'default' && Object.prototype.hasOwnProperty.call(ln, Cn) && o(yn, ln, Cn) - return _(yn, ln), yn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgConnectionOpenConfirmResponse = - e.MsgConnectionOpenConfirm = - e.MsgConnectionOpenAckResponse = - e.MsgConnectionOpenAck = - e.MsgConnectionOpenTryResponse = - e.MsgConnectionOpenTry = - e.MsgConnectionOpenInitResponse = - e.MsgConnectionOpenInit = - e.protobufPackage = - void 0) - const $ = connection, - en = any, - nn = client, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'ibc.core.connection.v1' - function In() { - return { - clientId: '', - counterparty: void 0, - version: void 0, - delayPeriod: sn.Long.UZERO, - signer: '', - } - } - e.MsgConnectionOpenInit = { - encode(ln, yn = gn.Writer.create()) { - return ( - ln.clientId !== '' && yn.uint32(10).string(ln.clientId), - ln.counterparty !== void 0 && - $.Counterparty.encode(ln.counterparty, yn.uint32(18).fork()).ldelim(), - ln.version !== void 0 && $.Version.encode(ln.version, yn.uint32(26).fork()).ldelim(), - ln.delayPeriod.isZero() || yn.uint32(32).uint64(ln.delayPeriod), - ln.signer !== '' && yn.uint32(42).string(ln.signer), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = In() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.clientId = Cn.string() - break - case 2: - Gn.counterparty = $.Counterparty.decode(Cn, Cn.uint32()) - break - case 3: - Gn.version = $.Version.decode(Cn, Cn.uint32()) - break - case 4: - Gn.delayPeriod = Cn.uint64() - break - case 5: - Gn.signer = Cn.string() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - clientId: (0, sn.isSet)(ln.clientId) ? String(ln.clientId) : '', - counterparty: (0, sn.isSet)(ln.counterparty) - ? $.Counterparty.fromJSON(ln.counterparty) - : void 0, - version: (0, sn.isSet)(ln.version) ? $.Version.fromJSON(ln.version) : void 0, - delayPeriod: (0, sn.isSet)(ln.delayPeriod) - ? sn.Long.fromValue(ln.delayPeriod) - : sn.Long.UZERO, - signer: (0, sn.isSet)(ln.signer) ? String(ln.signer) : '', - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.clientId !== void 0 && (yn.clientId = ln.clientId), - ln.counterparty !== void 0 && - (yn.counterparty = ln.counterparty ? $.Counterparty.toJSON(ln.counterparty) : void 0), - ln.version !== void 0 && (yn.version = ln.version ? $.Version.toJSON(ln.version) : void 0), - ln.delayPeriod !== void 0 && - (yn.delayPeriod = (ln.delayPeriod || sn.Long.UZERO).toString()), - ln.signer !== void 0 && (yn.signer = ln.signer), - yn - ) - }, - fromPartial(ln) { - const yn = In() - return ( - (yn.clientId = ln.clientId ?? ''), - (yn.counterparty = - ln.counterparty !== void 0 && ln.counterparty !== null - ? $.Counterparty.fromPartial(ln.counterparty) - : void 0), - (yn.version = - ln.version !== void 0 && ln.version !== null - ? $.Version.fromPartial(ln.version) - : void 0), - (yn.delayPeriod = - ln.delayPeriod !== void 0 && ln.delayPeriod !== null - ? sn.Long.fromValue(ln.delayPeriod) - : sn.Long.UZERO), - (yn.signer = ln.signer ?? ''), - yn - ) - }, - } - function Jn() { - return {} - } - e.MsgConnectionOpenInitResponse = { - encode(ln, yn = gn.Writer.create()) { - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Jn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return {} - }, - toJSON(ln) { - return {} - }, - fromPartial(ln) { - return Jn() - }, - } - function qn() { - return { - clientId: '', - previousConnectionId: '', - clientState: void 0, - counterparty: void 0, - delayPeriod: sn.Long.UZERO, - counterpartyVersions: [], - proofHeight: void 0, - proofInit: new Uint8Array(), - proofClient: new Uint8Array(), - proofConsensus: new Uint8Array(), - consensusHeight: void 0, - signer: '', - hostConsensusStateProof: new Uint8Array(), - } - } - e.MsgConnectionOpenTry = { - encode(ln, yn = gn.Writer.create()) { - ln.clientId !== '' && yn.uint32(10).string(ln.clientId), - ln.previousConnectionId !== '' && yn.uint32(18).string(ln.previousConnectionId), - ln.clientState !== void 0 && en.Any.encode(ln.clientState, yn.uint32(26).fork()).ldelim(), - ln.counterparty !== void 0 && - $.Counterparty.encode(ln.counterparty, yn.uint32(34).fork()).ldelim(), - ln.delayPeriod.isZero() || yn.uint32(40).uint64(ln.delayPeriod) - for (const Cn of ln.counterpartyVersions) $.Version.encode(Cn, yn.uint32(50).fork()).ldelim() - return ( - ln.proofHeight !== void 0 && - nn.Height.encode(ln.proofHeight, yn.uint32(58).fork()).ldelim(), - ln.proofInit.length !== 0 && yn.uint32(66).bytes(ln.proofInit), - ln.proofClient.length !== 0 && yn.uint32(74).bytes(ln.proofClient), - ln.proofConsensus.length !== 0 && yn.uint32(82).bytes(ln.proofConsensus), - ln.consensusHeight !== void 0 && - nn.Height.encode(ln.consensusHeight, yn.uint32(90).fork()).ldelim(), - ln.signer !== '' && yn.uint32(98).string(ln.signer), - ln.hostConsensusStateProof.length !== 0 && yn.uint32(106).bytes(ln.hostConsensusStateProof), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = qn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.clientId = Cn.string() - break - case 2: - Gn.previousConnectionId = Cn.string() - break - case 3: - Gn.clientState = en.Any.decode(Cn, Cn.uint32()) - break - case 4: - Gn.counterparty = $.Counterparty.decode(Cn, Cn.uint32()) - break - case 5: - Gn.delayPeriod = Cn.uint64() - break - case 6: - Gn.counterpartyVersions.push($.Version.decode(Cn, Cn.uint32())) - break - case 7: - Gn.proofHeight = nn.Height.decode(Cn, Cn.uint32()) - break - case 8: - Gn.proofInit = Cn.bytes() - break - case 9: - Gn.proofClient = Cn.bytes() - break - case 10: - Gn.proofConsensus = Cn.bytes() - break - case 11: - Gn.consensusHeight = nn.Height.decode(Cn, Cn.uint32()) - break - case 12: - Gn.signer = Cn.string() - break - case 13: - Gn.hostConsensusStateProof = Cn.bytes() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - clientId: (0, sn.isSet)(ln.clientId) ? String(ln.clientId) : '', - previousConnectionId: (0, sn.isSet)(ln.previousConnectionId) - ? String(ln.previousConnectionId) - : '', - clientState: (0, sn.isSet)(ln.clientState) ? en.Any.fromJSON(ln.clientState) : void 0, - counterparty: (0, sn.isSet)(ln.counterparty) - ? $.Counterparty.fromJSON(ln.counterparty) - : void 0, - delayPeriod: (0, sn.isSet)(ln.delayPeriod) - ? sn.Long.fromValue(ln.delayPeriod) - : sn.Long.UZERO, - counterpartyVersions: Array.isArray(ln?.counterpartyVersions) - ? ln.counterpartyVersions.map((yn) => $.Version.fromJSON(yn)) - : [], - proofHeight: (0, sn.isSet)(ln.proofHeight) ? nn.Height.fromJSON(ln.proofHeight) : void 0, - proofInit: (0, sn.isSet)(ln.proofInit) - ? (0, sn.bytesFromBase64)(ln.proofInit) - : new Uint8Array(), - proofClient: (0, sn.isSet)(ln.proofClient) - ? (0, sn.bytesFromBase64)(ln.proofClient) - : new Uint8Array(), - proofConsensus: (0, sn.isSet)(ln.proofConsensus) - ? (0, sn.bytesFromBase64)(ln.proofConsensus) - : new Uint8Array(), - consensusHeight: (0, sn.isSet)(ln.consensusHeight) - ? nn.Height.fromJSON(ln.consensusHeight) - : void 0, - signer: (0, sn.isSet)(ln.signer) ? String(ln.signer) : '', - hostConsensusStateProof: (0, sn.isSet)(ln.hostConsensusStateProof) - ? (0, sn.bytesFromBase64)(ln.hostConsensusStateProof) - : new Uint8Array(), - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.clientId !== void 0 && (yn.clientId = ln.clientId), - ln.previousConnectionId !== void 0 && (yn.previousConnectionId = ln.previousConnectionId), - ln.clientState !== void 0 && - (yn.clientState = ln.clientState ? en.Any.toJSON(ln.clientState) : void 0), - ln.counterparty !== void 0 && - (yn.counterparty = ln.counterparty ? $.Counterparty.toJSON(ln.counterparty) : void 0), - ln.delayPeriod !== void 0 && - (yn.delayPeriod = (ln.delayPeriod || sn.Long.UZERO).toString()), - ln.counterpartyVersions - ? (yn.counterpartyVersions = ln.counterpartyVersions.map((Cn) => - Cn ? $.Version.toJSON(Cn) : void 0, - )) - : (yn.counterpartyVersions = []), - ln.proofHeight !== void 0 && - (yn.proofHeight = ln.proofHeight ? nn.Height.toJSON(ln.proofHeight) : void 0), - ln.proofInit !== void 0 && - (yn.proofInit = (0, sn.base64FromBytes)( - ln.proofInit !== void 0 ? ln.proofInit : new Uint8Array(), - )), - ln.proofClient !== void 0 && - (yn.proofClient = (0, sn.base64FromBytes)( - ln.proofClient !== void 0 ? ln.proofClient : new Uint8Array(), - )), - ln.proofConsensus !== void 0 && - (yn.proofConsensus = (0, sn.base64FromBytes)( - ln.proofConsensus !== void 0 ? ln.proofConsensus : new Uint8Array(), - )), - ln.consensusHeight !== void 0 && - (yn.consensusHeight = ln.consensusHeight ? nn.Height.toJSON(ln.consensusHeight) : void 0), - ln.signer !== void 0 && (yn.signer = ln.signer), - ln.hostConsensusStateProof !== void 0 && - (yn.hostConsensusStateProof = (0, sn.base64FromBytes)( - ln.hostConsensusStateProof !== void 0 ? ln.hostConsensusStateProof : new Uint8Array(), - )), - yn - ) - }, - fromPartial(ln) { - const yn = qn() - return ( - (yn.clientId = ln.clientId ?? ''), - (yn.previousConnectionId = ln.previousConnectionId ?? ''), - (yn.clientState = - ln.clientState !== void 0 && ln.clientState !== null - ? en.Any.fromPartial(ln.clientState) - : void 0), - (yn.counterparty = - ln.counterparty !== void 0 && ln.counterparty !== null - ? $.Counterparty.fromPartial(ln.counterparty) - : void 0), - (yn.delayPeriod = - ln.delayPeriod !== void 0 && ln.delayPeriod !== null - ? sn.Long.fromValue(ln.delayPeriod) - : sn.Long.UZERO), - (yn.counterpartyVersions = - ln.counterpartyVersions?.map((Cn) => $.Version.fromPartial(Cn)) || []), - (yn.proofHeight = - ln.proofHeight !== void 0 && ln.proofHeight !== null - ? nn.Height.fromPartial(ln.proofHeight) - : void 0), - (yn.proofInit = ln.proofInit ?? new Uint8Array()), - (yn.proofClient = ln.proofClient ?? new Uint8Array()), - (yn.proofConsensus = ln.proofConsensus ?? new Uint8Array()), - (yn.consensusHeight = - ln.consensusHeight !== void 0 && ln.consensusHeight !== null - ? nn.Height.fromPartial(ln.consensusHeight) - : void 0), - (yn.signer = ln.signer ?? ''), - (yn.hostConsensusStateProof = ln.hostConsensusStateProof ?? new Uint8Array()), - yn - ) - }, - } - function Kn() { - return {} - } - e.MsgConnectionOpenTryResponse = { - encode(ln, yn = gn.Writer.create()) { - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Kn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return {} - }, - toJSON(ln) { - return {} - }, - fromPartial(ln) { - return Kn() - }, - } - function an() { - return { - connectionId: '', - counterpartyConnectionId: '', - version: void 0, - clientState: void 0, - proofHeight: void 0, - proofTry: new Uint8Array(), - proofClient: new Uint8Array(), - proofConsensus: new Uint8Array(), - consensusHeight: void 0, - signer: '', - hostConsensusStateProof: new Uint8Array(), - } - } - e.MsgConnectionOpenAck = { - encode(ln, yn = gn.Writer.create()) { - return ( - ln.connectionId !== '' && yn.uint32(10).string(ln.connectionId), - ln.counterpartyConnectionId !== '' && yn.uint32(18).string(ln.counterpartyConnectionId), - ln.version !== void 0 && $.Version.encode(ln.version, yn.uint32(26).fork()).ldelim(), - ln.clientState !== void 0 && en.Any.encode(ln.clientState, yn.uint32(34).fork()).ldelim(), - ln.proofHeight !== void 0 && - nn.Height.encode(ln.proofHeight, yn.uint32(42).fork()).ldelim(), - ln.proofTry.length !== 0 && yn.uint32(50).bytes(ln.proofTry), - ln.proofClient.length !== 0 && yn.uint32(58).bytes(ln.proofClient), - ln.proofConsensus.length !== 0 && yn.uint32(66).bytes(ln.proofConsensus), - ln.consensusHeight !== void 0 && - nn.Height.encode(ln.consensusHeight, yn.uint32(74).fork()).ldelim(), - ln.signer !== '' && yn.uint32(82).string(ln.signer), - ln.hostConsensusStateProof.length !== 0 && yn.uint32(90).bytes(ln.hostConsensusStateProof), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = an() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.connectionId = Cn.string() - break - case 2: - Gn.counterpartyConnectionId = Cn.string() - break - case 3: - Gn.version = $.Version.decode(Cn, Cn.uint32()) - break - case 4: - Gn.clientState = en.Any.decode(Cn, Cn.uint32()) - break - case 5: - Gn.proofHeight = nn.Height.decode(Cn, Cn.uint32()) - break - case 6: - Gn.proofTry = Cn.bytes() - break - case 7: - Gn.proofClient = Cn.bytes() - break - case 8: - Gn.proofConsensus = Cn.bytes() - break - case 9: - Gn.consensusHeight = nn.Height.decode(Cn, Cn.uint32()) - break - case 10: - Gn.signer = Cn.string() - break - case 11: - Gn.hostConsensusStateProof = Cn.bytes() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - connectionId: (0, sn.isSet)(ln.connectionId) ? String(ln.connectionId) : '', - counterpartyConnectionId: (0, sn.isSet)(ln.counterpartyConnectionId) - ? String(ln.counterpartyConnectionId) - : '', - version: (0, sn.isSet)(ln.version) ? $.Version.fromJSON(ln.version) : void 0, - clientState: (0, sn.isSet)(ln.clientState) ? en.Any.fromJSON(ln.clientState) : void 0, - proofHeight: (0, sn.isSet)(ln.proofHeight) ? nn.Height.fromJSON(ln.proofHeight) : void 0, - proofTry: (0, sn.isSet)(ln.proofTry) - ? (0, sn.bytesFromBase64)(ln.proofTry) - : new Uint8Array(), - proofClient: (0, sn.isSet)(ln.proofClient) - ? (0, sn.bytesFromBase64)(ln.proofClient) - : new Uint8Array(), - proofConsensus: (0, sn.isSet)(ln.proofConsensus) - ? (0, sn.bytesFromBase64)(ln.proofConsensus) - : new Uint8Array(), - consensusHeight: (0, sn.isSet)(ln.consensusHeight) - ? nn.Height.fromJSON(ln.consensusHeight) - : void 0, - signer: (0, sn.isSet)(ln.signer) ? String(ln.signer) : '', - hostConsensusStateProof: (0, sn.isSet)(ln.hostConsensusStateProof) - ? (0, sn.bytesFromBase64)(ln.hostConsensusStateProof) - : new Uint8Array(), - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.connectionId !== void 0 && (yn.connectionId = ln.connectionId), - ln.counterpartyConnectionId !== void 0 && - (yn.counterpartyConnectionId = ln.counterpartyConnectionId), - ln.version !== void 0 && (yn.version = ln.version ? $.Version.toJSON(ln.version) : void 0), - ln.clientState !== void 0 && - (yn.clientState = ln.clientState ? en.Any.toJSON(ln.clientState) : void 0), - ln.proofHeight !== void 0 && - (yn.proofHeight = ln.proofHeight ? nn.Height.toJSON(ln.proofHeight) : void 0), - ln.proofTry !== void 0 && - (yn.proofTry = (0, sn.base64FromBytes)( - ln.proofTry !== void 0 ? ln.proofTry : new Uint8Array(), - )), - ln.proofClient !== void 0 && - (yn.proofClient = (0, sn.base64FromBytes)( - ln.proofClient !== void 0 ? ln.proofClient : new Uint8Array(), - )), - ln.proofConsensus !== void 0 && - (yn.proofConsensus = (0, sn.base64FromBytes)( - ln.proofConsensus !== void 0 ? ln.proofConsensus : new Uint8Array(), - )), - ln.consensusHeight !== void 0 && - (yn.consensusHeight = ln.consensusHeight ? nn.Height.toJSON(ln.consensusHeight) : void 0), - ln.signer !== void 0 && (yn.signer = ln.signer), - ln.hostConsensusStateProof !== void 0 && - (yn.hostConsensusStateProof = (0, sn.base64FromBytes)( - ln.hostConsensusStateProof !== void 0 ? ln.hostConsensusStateProof : new Uint8Array(), - )), - yn - ) - }, - fromPartial(ln) { - const yn = an() - return ( - (yn.connectionId = ln.connectionId ?? ''), - (yn.counterpartyConnectionId = ln.counterpartyConnectionId ?? ''), - (yn.version = - ln.version !== void 0 && ln.version !== null - ? $.Version.fromPartial(ln.version) - : void 0), - (yn.clientState = - ln.clientState !== void 0 && ln.clientState !== null - ? en.Any.fromPartial(ln.clientState) - : void 0), - (yn.proofHeight = - ln.proofHeight !== void 0 && ln.proofHeight !== null - ? nn.Height.fromPartial(ln.proofHeight) - : void 0), - (yn.proofTry = ln.proofTry ?? new Uint8Array()), - (yn.proofClient = ln.proofClient ?? new Uint8Array()), - (yn.proofConsensus = ln.proofConsensus ?? new Uint8Array()), - (yn.consensusHeight = - ln.consensusHeight !== void 0 && ln.consensusHeight !== null - ? nn.Height.fromPartial(ln.consensusHeight) - : void 0), - (yn.signer = ln.signer ?? ''), - (yn.hostConsensusStateProof = ln.hostConsensusStateProof ?? new Uint8Array()), - yn - ) - }, - } - function xn() { - return {} - } - e.MsgConnectionOpenAckResponse = { - encode(ln, yn = gn.Writer.create()) { - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = xn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return {} - }, - toJSON(ln) { - return {} - }, - fromPartial(ln) { - return xn() - }, - } - function mn() { - return { connectionId: '', proofAck: new Uint8Array(), proofHeight: void 0, signer: '' } - } - e.MsgConnectionOpenConfirm = { - encode(ln, yn = gn.Writer.create()) { - return ( - ln.connectionId !== '' && yn.uint32(10).string(ln.connectionId), - ln.proofAck.length !== 0 && yn.uint32(18).bytes(ln.proofAck), - ln.proofHeight !== void 0 && - nn.Height.encode(ln.proofHeight, yn.uint32(26).fork()).ldelim(), - ln.signer !== '' && yn.uint32(34).string(ln.signer), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = mn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.connectionId = Cn.string() - break - case 2: - Gn.proofAck = Cn.bytes() - break - case 3: - Gn.proofHeight = nn.Height.decode(Cn, Cn.uint32()) - break - case 4: - Gn.signer = Cn.string() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - connectionId: (0, sn.isSet)(ln.connectionId) ? String(ln.connectionId) : '', - proofAck: (0, sn.isSet)(ln.proofAck) - ? (0, sn.bytesFromBase64)(ln.proofAck) - : new Uint8Array(), - proofHeight: (0, sn.isSet)(ln.proofHeight) ? nn.Height.fromJSON(ln.proofHeight) : void 0, - signer: (0, sn.isSet)(ln.signer) ? String(ln.signer) : '', - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.connectionId !== void 0 && (yn.connectionId = ln.connectionId), - ln.proofAck !== void 0 && - (yn.proofAck = (0, sn.base64FromBytes)( - ln.proofAck !== void 0 ? ln.proofAck : new Uint8Array(), - )), - ln.proofHeight !== void 0 && - (yn.proofHeight = ln.proofHeight ? nn.Height.toJSON(ln.proofHeight) : void 0), - ln.signer !== void 0 && (yn.signer = ln.signer), - yn - ) - }, - fromPartial(ln) { - const yn = mn() - return ( - (yn.connectionId = ln.connectionId ?? ''), - (yn.proofAck = ln.proofAck ?? new Uint8Array()), - (yn.proofHeight = - ln.proofHeight !== void 0 && ln.proofHeight !== null - ? nn.Height.fromPartial(ln.proofHeight) - : void 0), - (yn.signer = ln.signer ?? ''), - yn - ) - }, - } - function Bn() { - return {} - } - e.MsgConnectionOpenConfirmResponse = { - encode(ln, yn = gn.Writer.create()) { - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof gn.Reader ? ln : new gn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Bn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return {} - }, - toJSON(ln) { - return {} - }, - fromPartial(ln) { - return Bn() - }, - } - class kn { - constructor(yn) { - ;(this.rpc = yn), - (this.ConnectionOpenInit = this.ConnectionOpenInit.bind(this)), - (this.ConnectionOpenTry = this.ConnectionOpenTry.bind(this)), - (this.ConnectionOpenAck = this.ConnectionOpenAck.bind(this)), - (this.ConnectionOpenConfirm = this.ConnectionOpenConfirm.bind(this)) - } - ConnectionOpenInit(yn) { - const Cn = e.MsgConnectionOpenInit.encode(yn).finish() - return this.rpc - .request('ibc.core.connection.v1.Msg', 'ConnectionOpenInit', Cn) - .then((Gn) => e.MsgConnectionOpenInitResponse.decode(new gn.Reader(Gn))) - } - ConnectionOpenTry(yn) { - const Cn = e.MsgConnectionOpenTry.encode(yn).finish() - return this.rpc - .request('ibc.core.connection.v1.Msg', 'ConnectionOpenTry', Cn) - .then((Gn) => e.MsgConnectionOpenTryResponse.decode(new gn.Reader(Gn))) - } - ConnectionOpenAck(yn) { - const Cn = e.MsgConnectionOpenAck.encode(yn).finish() - return this.rpc - .request('ibc.core.connection.v1.Msg', 'ConnectionOpenAck', Cn) - .then((Gn) => e.MsgConnectionOpenAckResponse.decode(new gn.Reader(Gn))) - } - ConnectionOpenConfirm(yn) { - const Cn = e.MsgConnectionOpenConfirm.encode(yn).finish() - return this.rpc - .request('ibc.core.connection.v1.Msg', 'ConnectionOpenConfirm', Cn) - .then((Gn) => e.MsgConnectionOpenConfirmResponse.decode(new gn.Reader(Gn))) - } - } - e.MsgClientImpl = kn -})(tx$3) -Object.defineProperty(messages$3, '__esModule', { value: !0 }) -messages$3.isMsgTransferEncodeObject = messages$3.ibcTypes = void 0 -const tx_1$5 = tx$6, - tx_2$1 = tx$5, - tx_3 = tx$4, - tx_4 = tx$3 -messages$3.ibcTypes = [ - ['/ibc.applications.transfer.v1.MsgTransfer', tx_1$5.MsgTransfer], - ['/ibc.core.channel.v1.MsgAcknowledgement', tx_2$1.MsgAcknowledgement], - ['/ibc.core.channel.v1.MsgChannelCloseConfirm', tx_2$1.MsgChannelCloseConfirm], - ['/ibc.core.channel.v1.MsgChannelCloseInit', tx_2$1.MsgChannelCloseInit], - ['/ibc.core.channel.v1.MsgChannelOpenAck', tx_2$1.MsgChannelOpenAck], - ['/ibc.core.channel.v1.MsgChannelOpenConfirm', tx_2$1.MsgChannelOpenConfirm], - ['/ibc.core.channel.v1.MsgChannelOpenInit', tx_2$1.MsgChannelOpenInit], - ['/ibc.core.channel.v1.MsgChannelOpenTry', tx_2$1.MsgChannelOpenTry], - ['/ibc.core.channel.v1.MsgRecvPacket', tx_2$1.MsgRecvPacket], - ['/ibc.core.channel.v1.MsgTimeout', tx_2$1.MsgTimeout], - ['/ibc.core.channel.v1.MsgTimeoutOnClose', tx_2$1.MsgTimeoutOnClose], - ['/ibc.core.client.v1.MsgCreateClient', tx_3.MsgCreateClient], - ['/ibc.core.client.v1.MsgSubmitMisbehaviour', tx_3.MsgSubmitMisbehaviour], - ['/ibc.core.client.v1.MsgUpdateClient', tx_3.MsgUpdateClient], - ['/ibc.core.client.v1.MsgUpgradeClient', tx_3.MsgUpgradeClient], - ['/ibc.core.connection.v1.MsgConnectionOpenAck', tx_4.MsgConnectionOpenAck], - ['/ibc.core.connection.v1.MsgConnectionOpenConfirm', tx_4.MsgConnectionOpenConfirm], - ['/ibc.core.connection.v1.MsgConnectionOpenInit', tx_4.MsgConnectionOpenInit], - ['/ibc.core.connection.v1.MsgConnectionOpenTry', tx_4.MsgConnectionOpenTry], -] -function isMsgTransferEncodeObject(e) { - return e.typeUrl === '/ibc.applications.transfer.v1.MsgTransfer' -} -messages$3.isMsgTransferEncodeObject = isMsgTransferEncodeObject -var queries$5 = {}, - query$7 = {}, - transfer = {}, - __createBinding$9 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$9 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$9 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$9(o, e, _) - return __setModuleDefault$9(o, e), o - } -Object.defineProperty(transfer, '__esModule', { value: !0 }) -transfer.Params = transfer.DenomTrace = transfer.protobufPackage = void 0 -const _m0$5 = __importStar$9(minimalExports), - helpers_1$5 = helpers -transfer.protobufPackage = 'ibc.applications.transfer.v1' -function createBaseDenomTrace() { - return { path: '', baseDenom: '' } -} -transfer.DenomTrace = { - encode(e, o = _m0$5.Writer.create()) { - return ( - e.path !== '' && o.uint32(10).string(e.path), - e.baseDenom !== '' && o.uint32(18).string(e.baseDenom), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$5.Reader ? e : new _m0$5.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseDenomTrace() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.path = _.string() - break - case 2: - $.baseDenom = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - path: (0, helpers_1$5.isSet)(e.path) ? String(e.path) : '', - baseDenom: (0, helpers_1$5.isSet)(e.baseDenom) ? String(e.baseDenom) : '', - } - }, - toJSON(e) { - const o = {} - return ( - e.path !== void 0 && (o.path = e.path), - e.baseDenom !== void 0 && (o.baseDenom = e.baseDenom), - o - ) - }, - fromPartial(e) { - const o = createBaseDenomTrace() - return (o.path = e.path ?? ''), (o.baseDenom = e.baseDenom ?? ''), o - }, -} -function createBaseParams$2() { - return { sendEnabled: !1, receiveEnabled: !1 } -} -transfer.Params = { - encode(e, o = _m0$5.Writer.create()) { - return ( - e.sendEnabled === !0 && o.uint32(8).bool(e.sendEnabled), - e.receiveEnabled === !0 && o.uint32(16).bool(e.receiveEnabled), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$5.Reader ? e : new _m0$5.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseParams$2() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.sendEnabled = _.bool() - break - case 2: - $.receiveEnabled = _.bool() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - sendEnabled: (0, helpers_1$5.isSet)(e.sendEnabled) ? Boolean(e.sendEnabled) : !1, - receiveEnabled: (0, helpers_1$5.isSet)(e.receiveEnabled) ? Boolean(e.receiveEnabled) : !1, - } - }, - toJSON(e) { - const o = {} - return ( - e.sendEnabled !== void 0 && (o.sendEnabled = e.sendEnabled), - e.receiveEnabled !== void 0 && (o.receiveEnabled = e.receiveEnabled), - o - ) - }, - fromPartial(e) { - const o = createBaseParams$2() - return (o.sendEnabled = e.sendEnabled ?? !1), (o.receiveEnabled = e.receiveEnabled ?? !1), o - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (yn, Cn, Tn, Gn) { - Gn === void 0 && (Gn = Tn) - var Sn = Object.getOwnPropertyDescriptor(Cn, Tn) - ;(!Sn || ('get' in Sn ? !Cn.__esModule : Sn.writable || Sn.configurable)) && - (Sn = { - enumerable: !0, - get: function () { - return Cn[Tn] - }, - }), - Object.defineProperty(yn, Gn, Sn) - } - : function (yn, Cn, Tn, Gn) { - Gn === void 0 && (Gn = Tn), (yn[Gn] = Cn[Tn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (yn, Cn) { - Object.defineProperty(yn, 'default', { enumerable: !0, value: Cn }) - } - : function (yn, Cn) { - yn.default = Cn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (yn) { - if (yn && yn.__esModule) return yn - var Cn = {} - if (yn != null) - for (var Tn in yn) - Tn !== 'default' && Object.prototype.hasOwnProperty.call(yn, Tn) && o(Cn, yn, Tn) - return _(Cn, yn), Cn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryEscrowAddressResponse = - e.QueryEscrowAddressRequest = - e.QueryDenomHashResponse = - e.QueryDenomHashRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.QueryDenomTracesResponse = - e.QueryDenomTracesRequest = - e.QueryDenomTraceResponse = - e.QueryDenomTraceRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = transfer, - nn = b(minimalExports), - sn = helpers - e.protobufPackage = 'ibc.applications.transfer.v1' - function gn() { - return { hash: '' } - } - e.QueryDenomTraceRequest = { - encode(yn, Cn = nn.Writer.create()) { - return yn.hash !== '' && Cn.uint32(10).string(yn.hash), Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = gn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.hash = Tn.string() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { hash: (0, sn.isSet)(yn.hash) ? String(yn.hash) : '' } - }, - toJSON(yn) { - const Cn = {} - return yn.hash !== void 0 && (Cn.hash = yn.hash), Cn - }, - fromPartial(yn) { - const Cn = gn() - return (Cn.hash = yn.hash ?? ''), Cn - }, - } - function In() { - return { denomTrace: void 0 } - } - e.QueryDenomTraceResponse = { - encode(yn, Cn = nn.Writer.create()) { - return ( - yn.denomTrace !== void 0 && - en.DenomTrace.encode(yn.denomTrace, Cn.uint32(10).fork()).ldelim(), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = In() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.denomTrace = en.DenomTrace.decode(Tn, Tn.uint32()) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - denomTrace: (0, sn.isSet)(yn.denomTrace) ? en.DenomTrace.fromJSON(yn.denomTrace) : void 0, - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.denomTrace !== void 0 && - (Cn.denomTrace = yn.denomTrace ? en.DenomTrace.toJSON(yn.denomTrace) : void 0), - Cn - ) - }, - fromPartial(yn) { - const Cn = In() - return ( - (Cn.denomTrace = - yn.denomTrace !== void 0 && yn.denomTrace !== null - ? en.DenomTrace.fromPartial(yn.denomTrace) - : void 0), - Cn - ) - }, - } - function Jn() { - return { pagination: void 0 } - } - e.QueryDenomTracesRequest = { - encode(yn, Cn = nn.Writer.create()) { - return ( - yn.pagination !== void 0 && - $.PageRequest.encode(yn.pagination, Cn.uint32(10).fork()).ldelim(), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = Jn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.pagination = $.PageRequest.decode(Tn, Tn.uint32()) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - pagination: (0, sn.isSet)(yn.pagination) ? $.PageRequest.fromJSON(yn.pagination) : void 0, - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.pagination !== void 0 && - (Cn.pagination = yn.pagination ? $.PageRequest.toJSON(yn.pagination) : void 0), - Cn - ) - }, - fromPartial(yn) { - const Cn = Jn() - return ( - (Cn.pagination = - yn.pagination !== void 0 && yn.pagination !== null - ? $.PageRequest.fromPartial(yn.pagination) - : void 0), - Cn - ) - }, - } - function qn() { - return { denomTraces: [], pagination: void 0 } - } - e.QueryDenomTracesResponse = { - encode(yn, Cn = nn.Writer.create()) { - for (const Tn of yn.denomTraces) en.DenomTrace.encode(Tn, Cn.uint32(10).fork()).ldelim() - return ( - yn.pagination !== void 0 && - $.PageResponse.encode(yn.pagination, Cn.uint32(18).fork()).ldelim(), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = qn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.denomTraces.push(en.DenomTrace.decode(Tn, Tn.uint32())) - break - case 2: - Sn.pagination = $.PageResponse.decode(Tn, Tn.uint32()) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - denomTraces: Array.isArray(yn?.denomTraces) - ? yn.denomTraces.map((Cn) => en.DenomTrace.fromJSON(Cn)) - : [], - pagination: (0, sn.isSet)(yn.pagination) ? $.PageResponse.fromJSON(yn.pagination) : void 0, - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.denomTraces - ? (Cn.denomTraces = yn.denomTraces.map((Tn) => (Tn ? en.DenomTrace.toJSON(Tn) : void 0))) - : (Cn.denomTraces = []), - yn.pagination !== void 0 && - (Cn.pagination = yn.pagination ? $.PageResponse.toJSON(yn.pagination) : void 0), - Cn - ) - }, - fromPartial(yn) { - const Cn = qn() - return ( - (Cn.denomTraces = yn.denomTraces?.map((Tn) => en.DenomTrace.fromPartial(Tn)) || []), - (Cn.pagination = - yn.pagination !== void 0 && yn.pagination !== null - ? $.PageResponse.fromPartial(yn.pagination) - : void 0), - Cn - ) - }, - } - function Kn() { - return {} - } - e.QueryParamsRequest = { - encode(yn, Cn = nn.Writer.create()) { - return Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = Kn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return {} - }, - toJSON(yn) { - return {} - }, - fromPartial(yn) { - return Kn() - }, - } - function an() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(yn, Cn = nn.Writer.create()) { - return yn.params !== void 0 && en.Params.encode(yn.params, Cn.uint32(10).fork()).ldelim(), Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = an() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.params = en.Params.decode(Tn, Tn.uint32()) - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { params: (0, sn.isSet)(yn.params) ? en.Params.fromJSON(yn.params) : void 0 } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.params !== void 0 && (Cn.params = yn.params ? en.Params.toJSON(yn.params) : void 0), Cn - ) - }, - fromPartial(yn) { - const Cn = an() - return ( - (Cn.params = - yn.params !== void 0 && yn.params !== null ? en.Params.fromPartial(yn.params) : void 0), - Cn - ) - }, - } - function xn() { - return { trace: '' } - } - e.QueryDenomHashRequest = { - encode(yn, Cn = nn.Writer.create()) { - return yn.trace !== '' && Cn.uint32(10).string(yn.trace), Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = xn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.trace = Tn.string() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { trace: (0, sn.isSet)(yn.trace) ? String(yn.trace) : '' } - }, - toJSON(yn) { - const Cn = {} - return yn.trace !== void 0 && (Cn.trace = yn.trace), Cn - }, - fromPartial(yn) { - const Cn = xn() - return (Cn.trace = yn.trace ?? ''), Cn - }, - } - function mn() { - return { hash: '' } - } - e.QueryDenomHashResponse = { - encode(yn, Cn = nn.Writer.create()) { - return yn.hash !== '' && Cn.uint32(10).string(yn.hash), Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = mn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.hash = Tn.string() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { hash: (0, sn.isSet)(yn.hash) ? String(yn.hash) : '' } - }, - toJSON(yn) { - const Cn = {} - return yn.hash !== void 0 && (Cn.hash = yn.hash), Cn - }, - fromPartial(yn) { - const Cn = mn() - return (Cn.hash = yn.hash ?? ''), Cn - }, - } - function Bn() { - return { portId: '', channelId: '' } - } - e.QueryEscrowAddressRequest = { - encode(yn, Cn = nn.Writer.create()) { - return ( - yn.portId !== '' && Cn.uint32(10).string(yn.portId), - yn.channelId !== '' && Cn.uint32(18).string(yn.channelId), - Cn - ) - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = Bn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.portId = Tn.string() - break - case 2: - Sn.channelId = Tn.string() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { - portId: (0, sn.isSet)(yn.portId) ? String(yn.portId) : '', - channelId: (0, sn.isSet)(yn.channelId) ? String(yn.channelId) : '', - } - }, - toJSON(yn) { - const Cn = {} - return ( - yn.portId !== void 0 && (Cn.portId = yn.portId), - yn.channelId !== void 0 && (Cn.channelId = yn.channelId), - Cn - ) - }, - fromPartial(yn) { - const Cn = Bn() - return (Cn.portId = yn.portId ?? ''), (Cn.channelId = yn.channelId ?? ''), Cn - }, - } - function kn() { - return { escrowAddress: '' } - } - e.QueryEscrowAddressResponse = { - encode(yn, Cn = nn.Writer.create()) { - return yn.escrowAddress !== '' && Cn.uint32(10).string(yn.escrowAddress), Cn - }, - decode(yn, Cn) { - const Tn = yn instanceof nn.Reader ? yn : new nn.Reader(yn) - let Gn = Cn === void 0 ? Tn.len : Tn.pos + Cn - const Sn = kn() - for (; Tn.pos < Gn; ) { - const Zn = Tn.uint32() - switch (Zn >>> 3) { - case 1: - Sn.escrowAddress = Tn.string() - break - default: - Tn.skipType(Zn & 7) - break - } - } - return Sn - }, - fromJSON(yn) { - return { escrowAddress: (0, sn.isSet)(yn.escrowAddress) ? String(yn.escrowAddress) : '' } - }, - toJSON(yn) { - const Cn = {} - return yn.escrowAddress !== void 0 && (Cn.escrowAddress = yn.escrowAddress), Cn - }, - fromPartial(yn) { - const Cn = kn() - return (Cn.escrowAddress = yn.escrowAddress ?? ''), Cn - }, - } - class ln { - constructor(Cn) { - ;(this.rpc = Cn), - (this.DenomTrace = this.DenomTrace.bind(this)), - (this.DenomTraces = this.DenomTraces.bind(this)), - (this.Params = this.Params.bind(this)), - (this.DenomHash = this.DenomHash.bind(this)), - (this.EscrowAddress = this.EscrowAddress.bind(this)) - } - DenomTrace(Cn) { - const Tn = e.QueryDenomTraceRequest.encode(Cn).finish() - return this.rpc - .request('ibc.applications.transfer.v1.Query', 'DenomTrace', Tn) - .then((Sn) => e.QueryDenomTraceResponse.decode(new nn.Reader(Sn))) - } - DenomTraces(Cn = { pagination: void 0 }) { - const Tn = e.QueryDenomTracesRequest.encode(Cn).finish() - return this.rpc - .request('ibc.applications.transfer.v1.Query', 'DenomTraces', Tn) - .then((Sn) => e.QueryDenomTracesResponse.decode(new nn.Reader(Sn))) - } - Params(Cn = {}) { - const Tn = e.QueryParamsRequest.encode(Cn).finish() - return this.rpc - .request('ibc.applications.transfer.v1.Query', 'Params', Tn) - .then((Sn) => e.QueryParamsResponse.decode(new nn.Reader(Sn))) - } - DenomHash(Cn) { - const Tn = e.QueryDenomHashRequest.encode(Cn).finish() - return this.rpc - .request('ibc.applications.transfer.v1.Query', 'DenomHash', Tn) - .then((Sn) => e.QueryDenomHashResponse.decode(new nn.Reader(Sn))) - } - EscrowAddress(Cn) { - const Tn = e.QueryEscrowAddressRequest.encode(Cn).finish() - return this.rpc - .request('ibc.applications.transfer.v1.Query', 'EscrowAddress', Tn) - .then((Sn) => e.QueryEscrowAddressResponse.decode(new nn.Reader(Sn))) - } - } - e.QueryClientImpl = ln -})(query$7) -var query$6 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (An, Qn, Rn, Vn) { - Vn === void 0 && (Vn = Rn) - var Wn = Object.getOwnPropertyDescriptor(Qn, Rn) - ;(!Wn || ('get' in Wn ? !Qn.__esModule : Wn.writable || Wn.configurable)) && - (Wn = { - enumerable: !0, - get: function () { - return Qn[Rn] - }, - }), - Object.defineProperty(An, Vn, Wn) - } - : function (An, Qn, Rn, Vn) { - Vn === void 0 && (Vn = Rn), (An[Vn] = Qn[Rn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (An, Qn) { - Object.defineProperty(An, 'default', { enumerable: !0, value: Qn }) - } - : function (An, Qn) { - An.default = Qn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (An) { - if (An && An.__esModule) return An - var Qn = {} - if (An != null) - for (var Rn in An) - Rn !== 'default' && Object.prototype.hasOwnProperty.call(An, Rn) && o(Qn, An, Rn) - return _(Qn, An), Qn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryNextSequenceReceiveResponse = - e.QueryNextSequenceReceiveRequest = - e.QueryUnreceivedAcksResponse = - e.QueryUnreceivedAcksRequest = - e.QueryUnreceivedPacketsResponse = - e.QueryUnreceivedPacketsRequest = - e.QueryPacketAcknowledgementsResponse = - e.QueryPacketAcknowledgementsRequest = - e.QueryPacketAcknowledgementResponse = - e.QueryPacketAcknowledgementRequest = - e.QueryPacketReceiptResponse = - e.QueryPacketReceiptRequest = - e.QueryPacketCommitmentsResponse = - e.QueryPacketCommitmentsRequest = - e.QueryPacketCommitmentResponse = - e.QueryPacketCommitmentRequest = - e.QueryChannelConsensusStateResponse = - e.QueryChannelConsensusStateRequest = - e.QueryChannelClientStateResponse = - e.QueryChannelClientStateRequest = - e.QueryConnectionChannelsResponse = - e.QueryConnectionChannelsRequest = - e.QueryChannelsResponse = - e.QueryChannelsRequest = - e.QueryChannelResponse = - e.QueryChannelRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = channel, - nn = client, - sn = any, - gn = helpers, - In = b(minimalExports) - e.protobufPackage = 'ibc.core.channel.v1' - function Jn() { - return { portId: '', channelId: '' } - } - e.QueryChannelRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Jn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - Qn - ) - }, - fromPartial(An) { - const Qn = Jn() - return (Qn.portId = An.portId ?? ''), (Qn.channelId = An.channelId ?? ''), Qn - }, - } - function qn() { - return { channel: void 0, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryChannelResponse = { - encode(An, Qn = In.Writer.create()) { - return ( - An.channel !== void 0 && en.Channel.encode(An.channel, Qn.uint32(10).fork()).ldelim(), - An.proof.length !== 0 && Qn.uint32(18).bytes(An.proof), - An.proofHeight !== void 0 && - nn.Height.encode(An.proofHeight, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = qn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.channel = en.Channel.decode(Rn, Rn.uint32()) - break - case 2: - Wn.proof = Rn.bytes() - break - case 3: - Wn.proofHeight = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - channel: (0, gn.isSet)(An.channel) ? en.Channel.fromJSON(An.channel) : void 0, - proof: (0, gn.isSet)(An.proof) ? (0, gn.bytesFromBase64)(An.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(An.proofHeight) ? nn.Height.fromJSON(An.proofHeight) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.channel !== void 0 && (Qn.channel = An.channel ? en.Channel.toJSON(An.channel) : void 0), - An.proof !== void 0 && - (Qn.proof = (0, gn.base64FromBytes)(An.proof !== void 0 ? An.proof : new Uint8Array())), - An.proofHeight !== void 0 && - (Qn.proofHeight = An.proofHeight ? nn.Height.toJSON(An.proofHeight) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = qn() - return ( - (Qn.channel = - An.channel !== void 0 && An.channel !== null - ? en.Channel.fromPartial(An.channel) - : void 0), - (Qn.proof = An.proof ?? new Uint8Array()), - (Qn.proofHeight = - An.proofHeight !== void 0 && An.proofHeight !== null - ? nn.Height.fromPartial(An.proofHeight) - : void 0), - Qn - ) - }, - } - function Kn() { - return { pagination: void 0 } - } - e.QueryChannelsRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(10).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Kn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - pagination: (0, gn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Kn() - return ( - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function an() { - return { channels: [], pagination: void 0, height: void 0 } - } - e.QueryChannelsResponse = { - encode(An, Qn = In.Writer.create()) { - for (const Rn of An.channels) en.IdentifiedChannel.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - An.height !== void 0 && nn.Height.encode(An.height, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = an() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.channels.push(en.IdentifiedChannel.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - case 3: - Wn.height = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - channels: Array.isArray(An?.channels) - ? An.channels.map((Qn) => en.IdentifiedChannel.fromJSON(Qn)) - : [], - pagination: (0, gn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - height: (0, gn.isSet)(An.height) ? nn.Height.fromJSON(An.height) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.channels - ? (Qn.channels = An.channels.map((Rn) => (Rn ? en.IdentifiedChannel.toJSON(Rn) : void 0))) - : (Qn.channels = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - An.height !== void 0 && (Qn.height = An.height ? nn.Height.toJSON(An.height) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = an() - return ( - (Qn.channels = An.channels?.map((Rn) => en.IdentifiedChannel.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - (Qn.height = - An.height !== void 0 && An.height !== null ? nn.Height.fromPartial(An.height) : void 0), - Qn - ) - }, - } - function xn() { - return { connection: '', pagination: void 0 } - } - e.QueryConnectionChannelsRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.connection !== '' && Qn.uint32(10).string(An.connection), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = xn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.connection = Rn.string() - break - case 2: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - connection: (0, gn.isSet)(An.connection) ? String(An.connection) : '', - pagination: (0, gn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.connection !== void 0 && (Qn.connection = An.connection), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = xn() - return ( - (Qn.connection = An.connection ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function mn() { - return { channels: [], pagination: void 0, height: void 0 } - } - e.QueryConnectionChannelsResponse = { - encode(An, Qn = In.Writer.create()) { - for (const Rn of An.channels) en.IdentifiedChannel.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - An.height !== void 0 && nn.Height.encode(An.height, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = mn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.channels.push(en.IdentifiedChannel.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - case 3: - Wn.height = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - channels: Array.isArray(An?.channels) - ? An.channels.map((Qn) => en.IdentifiedChannel.fromJSON(Qn)) - : [], - pagination: (0, gn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - height: (0, gn.isSet)(An.height) ? nn.Height.fromJSON(An.height) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.channels - ? (Qn.channels = An.channels.map((Rn) => (Rn ? en.IdentifiedChannel.toJSON(Rn) : void 0))) - : (Qn.channels = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - An.height !== void 0 && (Qn.height = An.height ? nn.Height.toJSON(An.height) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = mn() - return ( - (Qn.channels = An.channels?.map((Rn) => en.IdentifiedChannel.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - (Qn.height = - An.height !== void 0 && An.height !== null ? nn.Height.fromPartial(An.height) : void 0), - Qn - ) - }, - } - function Bn() { - return { portId: '', channelId: '' } - } - e.QueryChannelClientStateRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Bn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - Qn - ) - }, - fromPartial(An) { - const Qn = Bn() - return (Qn.portId = An.portId ?? ''), (Qn.channelId = An.channelId ?? ''), Qn - }, - } - function kn() { - return { identifiedClientState: void 0, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryChannelClientStateResponse = { - encode(An, Qn = In.Writer.create()) { - return ( - An.identifiedClientState !== void 0 && - nn.IdentifiedClientState.encode(An.identifiedClientState, Qn.uint32(10).fork()).ldelim(), - An.proof.length !== 0 && Qn.uint32(18).bytes(An.proof), - An.proofHeight !== void 0 && - nn.Height.encode(An.proofHeight, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = kn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.identifiedClientState = nn.IdentifiedClientState.decode(Rn, Rn.uint32()) - break - case 2: - Wn.proof = Rn.bytes() - break - case 3: - Wn.proofHeight = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - identifiedClientState: (0, gn.isSet)(An.identifiedClientState) - ? nn.IdentifiedClientState.fromJSON(An.identifiedClientState) - : void 0, - proof: (0, gn.isSet)(An.proof) ? (0, gn.bytesFromBase64)(An.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(An.proofHeight) ? nn.Height.fromJSON(An.proofHeight) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.identifiedClientState !== void 0 && - (Qn.identifiedClientState = An.identifiedClientState - ? nn.IdentifiedClientState.toJSON(An.identifiedClientState) - : void 0), - An.proof !== void 0 && - (Qn.proof = (0, gn.base64FromBytes)(An.proof !== void 0 ? An.proof : new Uint8Array())), - An.proofHeight !== void 0 && - (Qn.proofHeight = An.proofHeight ? nn.Height.toJSON(An.proofHeight) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = kn() - return ( - (Qn.identifiedClientState = - An.identifiedClientState !== void 0 && An.identifiedClientState !== null - ? nn.IdentifiedClientState.fromPartial(An.identifiedClientState) - : void 0), - (Qn.proof = An.proof ?? new Uint8Array()), - (Qn.proofHeight = - An.proofHeight !== void 0 && An.proofHeight !== null - ? nn.Height.fromPartial(An.proofHeight) - : void 0), - Qn - ) - }, - } - function ln() { - return { - portId: '', - channelId: '', - revisionNumber: gn.Long.UZERO, - revisionHeight: gn.Long.UZERO, - } - } - e.QueryChannelConsensusStateRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - An.revisionNumber.isZero() || Qn.uint32(24).uint64(An.revisionNumber), - An.revisionHeight.isZero() || Qn.uint32(32).uint64(An.revisionHeight), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = ln() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - Wn.revisionNumber = Rn.uint64() - break - case 4: - Wn.revisionHeight = Rn.uint64() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - revisionNumber: (0, gn.isSet)(An.revisionNumber) - ? gn.Long.fromValue(An.revisionNumber) - : gn.Long.UZERO, - revisionHeight: (0, gn.isSet)(An.revisionHeight) - ? gn.Long.fromValue(An.revisionHeight) - : gn.Long.UZERO, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.revisionNumber !== void 0 && - (Qn.revisionNumber = (An.revisionNumber || gn.Long.UZERO).toString()), - An.revisionHeight !== void 0 && - (Qn.revisionHeight = (An.revisionHeight || gn.Long.UZERO).toString()), - Qn - ) - }, - fromPartial(An) { - const Qn = ln() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.revisionNumber = - An.revisionNumber !== void 0 && An.revisionNumber !== null - ? gn.Long.fromValue(An.revisionNumber) - : gn.Long.UZERO), - (Qn.revisionHeight = - An.revisionHeight !== void 0 && An.revisionHeight !== null - ? gn.Long.fromValue(An.revisionHeight) - : gn.Long.UZERO), - Qn - ) - }, - } - function yn() { - return { consensusState: void 0, clientId: '', proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryChannelConsensusStateResponse = { - encode(An, Qn = In.Writer.create()) { - return ( - An.consensusState !== void 0 && - sn.Any.encode(An.consensusState, Qn.uint32(10).fork()).ldelim(), - An.clientId !== '' && Qn.uint32(18).string(An.clientId), - An.proof.length !== 0 && Qn.uint32(26).bytes(An.proof), - An.proofHeight !== void 0 && - nn.Height.encode(An.proofHeight, Qn.uint32(34).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = yn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.consensusState = sn.Any.decode(Rn, Rn.uint32()) - break - case 2: - Wn.clientId = Rn.string() - break - case 3: - Wn.proof = Rn.bytes() - break - case 4: - Wn.proofHeight = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - consensusState: (0, gn.isSet)(An.consensusState) - ? sn.Any.fromJSON(An.consensusState) - : void 0, - clientId: (0, gn.isSet)(An.clientId) ? String(An.clientId) : '', - proof: (0, gn.isSet)(An.proof) ? (0, gn.bytesFromBase64)(An.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(An.proofHeight) ? nn.Height.fromJSON(An.proofHeight) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.consensusState !== void 0 && - (Qn.consensusState = An.consensusState ? sn.Any.toJSON(An.consensusState) : void 0), - An.clientId !== void 0 && (Qn.clientId = An.clientId), - An.proof !== void 0 && - (Qn.proof = (0, gn.base64FromBytes)(An.proof !== void 0 ? An.proof : new Uint8Array())), - An.proofHeight !== void 0 && - (Qn.proofHeight = An.proofHeight ? nn.Height.toJSON(An.proofHeight) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = yn() - return ( - (Qn.consensusState = - An.consensusState !== void 0 && An.consensusState !== null - ? sn.Any.fromPartial(An.consensusState) - : void 0), - (Qn.clientId = An.clientId ?? ''), - (Qn.proof = An.proof ?? new Uint8Array()), - (Qn.proofHeight = - An.proofHeight !== void 0 && An.proofHeight !== null - ? nn.Height.fromPartial(An.proofHeight) - : void 0), - Qn - ) - }, - } - function Cn() { - return { portId: '', channelId: '', sequence: gn.Long.UZERO } - } - e.QueryPacketCommitmentRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - An.sequence.isZero() || Qn.uint32(24).uint64(An.sequence), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Cn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - Wn.sequence = Rn.uint64() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - sequence: (0, gn.isSet)(An.sequence) ? gn.Long.fromValue(An.sequence) : gn.Long.UZERO, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.sequence !== void 0 && (Qn.sequence = (An.sequence || gn.Long.UZERO).toString()), - Qn - ) - }, - fromPartial(An) { - const Qn = Cn() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.sequence = - An.sequence !== void 0 && An.sequence !== null - ? gn.Long.fromValue(An.sequence) - : gn.Long.UZERO), - Qn - ) - }, - } - function Tn() { - return { commitment: new Uint8Array(), proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryPacketCommitmentResponse = { - encode(An, Qn = In.Writer.create()) { - return ( - An.commitment.length !== 0 && Qn.uint32(10).bytes(An.commitment), - An.proof.length !== 0 && Qn.uint32(18).bytes(An.proof), - An.proofHeight !== void 0 && - nn.Height.encode(An.proofHeight, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Tn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.commitment = Rn.bytes() - break - case 2: - Wn.proof = Rn.bytes() - break - case 3: - Wn.proofHeight = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - commitment: (0, gn.isSet)(An.commitment) - ? (0, gn.bytesFromBase64)(An.commitment) - : new Uint8Array(), - proof: (0, gn.isSet)(An.proof) ? (0, gn.bytesFromBase64)(An.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(An.proofHeight) ? nn.Height.fromJSON(An.proofHeight) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.commitment !== void 0 && - (Qn.commitment = (0, gn.base64FromBytes)( - An.commitment !== void 0 ? An.commitment : new Uint8Array(), - )), - An.proof !== void 0 && - (Qn.proof = (0, gn.base64FromBytes)(An.proof !== void 0 ? An.proof : new Uint8Array())), - An.proofHeight !== void 0 && - (Qn.proofHeight = An.proofHeight ? nn.Height.toJSON(An.proofHeight) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Tn() - return ( - (Qn.commitment = An.commitment ?? new Uint8Array()), - (Qn.proof = An.proof ?? new Uint8Array()), - (Qn.proofHeight = - An.proofHeight !== void 0 && An.proofHeight !== null - ? nn.Height.fromPartial(An.proofHeight) - : void 0), - Qn - ) - }, - } - function Gn() { - return { portId: '', channelId: '', pagination: void 0 } - } - e.QueryPacketCommitmentsRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Gn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - pagination: (0, gn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Gn() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Sn() { - return { commitments: [], pagination: void 0, height: void 0 } - } - e.QueryPacketCommitmentsResponse = { - encode(An, Qn = In.Writer.create()) { - for (const Rn of An.commitments) en.PacketState.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - An.height !== void 0 && nn.Height.encode(An.height, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Sn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.commitments.push(en.PacketState.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - case 3: - Wn.height = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - commitments: Array.isArray(An?.commitments) - ? An.commitments.map((Qn) => en.PacketState.fromJSON(Qn)) - : [], - pagination: (0, gn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - height: (0, gn.isSet)(An.height) ? nn.Height.fromJSON(An.height) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.commitments - ? (Qn.commitments = An.commitments.map((Rn) => (Rn ? en.PacketState.toJSON(Rn) : void 0))) - : (Qn.commitments = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - An.height !== void 0 && (Qn.height = An.height ? nn.Height.toJSON(An.height) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Sn() - return ( - (Qn.commitments = An.commitments?.map((Rn) => en.PacketState.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - (Qn.height = - An.height !== void 0 && An.height !== null ? nn.Height.fromPartial(An.height) : void 0), - Qn - ) - }, - } - function Zn() { - return { portId: '', channelId: '', sequence: gn.Long.UZERO } - } - e.QueryPacketReceiptRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - An.sequence.isZero() || Qn.uint32(24).uint64(An.sequence), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Zn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - Wn.sequence = Rn.uint64() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - sequence: (0, gn.isSet)(An.sequence) ? gn.Long.fromValue(An.sequence) : gn.Long.UZERO, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.sequence !== void 0 && (Qn.sequence = (An.sequence || gn.Long.UZERO).toString()), - Qn - ) - }, - fromPartial(An) { - const Qn = Zn() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.sequence = - An.sequence !== void 0 && An.sequence !== null - ? gn.Long.fromValue(An.sequence) - : gn.Long.UZERO), - Qn - ) - }, - } - function tn() { - return { received: !1, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryPacketReceiptResponse = { - encode(An, Qn = In.Writer.create()) { - return ( - An.received === !0 && Qn.uint32(16).bool(An.received), - An.proof.length !== 0 && Qn.uint32(26).bytes(An.proof), - An.proofHeight !== void 0 && - nn.Height.encode(An.proofHeight, Qn.uint32(34).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = tn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 2: - Wn.received = Rn.bool() - break - case 3: - Wn.proof = Rn.bytes() - break - case 4: - Wn.proofHeight = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - received: (0, gn.isSet)(An.received) ? Boolean(An.received) : !1, - proof: (0, gn.isSet)(An.proof) ? (0, gn.bytesFromBase64)(An.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(An.proofHeight) ? nn.Height.fromJSON(An.proofHeight) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.received !== void 0 && (Qn.received = An.received), - An.proof !== void 0 && - (Qn.proof = (0, gn.base64FromBytes)(An.proof !== void 0 ? An.proof : new Uint8Array())), - An.proofHeight !== void 0 && - (Qn.proofHeight = An.proofHeight ? nn.Height.toJSON(An.proofHeight) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = tn() - return ( - (Qn.received = An.received ?? !1), - (Qn.proof = An.proof ?? new Uint8Array()), - (Qn.proofHeight = - An.proofHeight !== void 0 && An.proofHeight !== null - ? nn.Height.fromPartial(An.proofHeight) - : void 0), - Qn - ) - }, - } - function En() { - return { portId: '', channelId: '', sequence: gn.Long.UZERO } - } - e.QueryPacketAcknowledgementRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - An.sequence.isZero() || Qn.uint32(24).uint64(An.sequence), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = En() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - Wn.sequence = Rn.uint64() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - sequence: (0, gn.isSet)(An.sequence) ? gn.Long.fromValue(An.sequence) : gn.Long.UZERO, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.sequence !== void 0 && (Qn.sequence = (An.sequence || gn.Long.UZERO).toString()), - Qn - ) - }, - fromPartial(An) { - const Qn = En() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.sequence = - An.sequence !== void 0 && An.sequence !== null - ? gn.Long.fromValue(An.sequence) - : gn.Long.UZERO), - Qn - ) - }, - } - function Mn() { - return { acknowledgement: new Uint8Array(), proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryPacketAcknowledgementResponse = { - encode(An, Qn = In.Writer.create()) { - return ( - An.acknowledgement.length !== 0 && Qn.uint32(10).bytes(An.acknowledgement), - An.proof.length !== 0 && Qn.uint32(18).bytes(An.proof), - An.proofHeight !== void 0 && - nn.Height.encode(An.proofHeight, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Mn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.acknowledgement = Rn.bytes() - break - case 2: - Wn.proof = Rn.bytes() - break - case 3: - Wn.proofHeight = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - acknowledgement: (0, gn.isSet)(An.acknowledgement) - ? (0, gn.bytesFromBase64)(An.acknowledgement) - : new Uint8Array(), - proof: (0, gn.isSet)(An.proof) ? (0, gn.bytesFromBase64)(An.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(An.proofHeight) ? nn.Height.fromJSON(An.proofHeight) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.acknowledgement !== void 0 && - (Qn.acknowledgement = (0, gn.base64FromBytes)( - An.acknowledgement !== void 0 ? An.acknowledgement : new Uint8Array(), - )), - An.proof !== void 0 && - (Qn.proof = (0, gn.base64FromBytes)(An.proof !== void 0 ? An.proof : new Uint8Array())), - An.proofHeight !== void 0 && - (Qn.proofHeight = An.proofHeight ? nn.Height.toJSON(An.proofHeight) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Mn() - return ( - (Qn.acknowledgement = An.acknowledgement ?? new Uint8Array()), - (Qn.proof = An.proof ?? new Uint8Array()), - (Qn.proofHeight = - An.proofHeight !== void 0 && An.proofHeight !== null - ? nn.Height.fromPartial(An.proofHeight) - : void 0), - Qn - ) - }, - } - function Hn() { - return { portId: '', channelId: '', pagination: void 0, packetCommitmentSequences: [] } - } - e.QueryPacketAcknowledgementsRequest = { - encode(An, Qn = In.Writer.create()) { - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(26).fork()).ldelim(), - Qn.uint32(34).fork() - for (const Rn of An.packetCommitmentSequences) Qn.uint64(Rn) - return Qn.ldelim(), Qn - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Hn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - case 4: - if ((ht & 7) === 2) { - const Wt = Rn.uint32() + Rn.pos - for (; Rn.pos < Wt; ) Wn.packetCommitmentSequences.push(Rn.uint64()) - } else Wn.packetCommitmentSequences.push(Rn.uint64()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - pagination: (0, gn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - packetCommitmentSequences: Array.isArray(An?.packetCommitmentSequences) - ? An.packetCommitmentSequences.map((Qn) => gn.Long.fromValue(Qn)) - : [], - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - An.packetCommitmentSequences - ? (Qn.packetCommitmentSequences = An.packetCommitmentSequences.map((Rn) => - (Rn || gn.Long.UZERO).toString(), - )) - : (Qn.packetCommitmentSequences = []), - Qn - ) - }, - fromPartial(An) { - const Qn = Hn() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - (Qn.packetCommitmentSequences = - An.packetCommitmentSequences?.map((Rn) => gn.Long.fromValue(Rn)) || []), - Qn - ) - }, - } - function un() { - return { acknowledgements: [], pagination: void 0, height: void 0 } - } - e.QueryPacketAcknowledgementsResponse = { - encode(An, Qn = In.Writer.create()) { - for (const Rn of An.acknowledgements) en.PacketState.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - An.height !== void 0 && nn.Height.encode(An.height, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = un() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.acknowledgements.push(en.PacketState.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - case 3: - Wn.height = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - acknowledgements: Array.isArray(An?.acknowledgements) - ? An.acknowledgements.map((Qn) => en.PacketState.fromJSON(Qn)) - : [], - pagination: (0, gn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - height: (0, gn.isSet)(An.height) ? nn.Height.fromJSON(An.height) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.acknowledgements - ? (Qn.acknowledgements = An.acknowledgements.map((Rn) => - Rn ? en.PacketState.toJSON(Rn) : void 0, - )) - : (Qn.acknowledgements = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - An.height !== void 0 && (Qn.height = An.height ? nn.Height.toJSON(An.height) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = un() - return ( - (Qn.acknowledgements = - An.acknowledgements?.map((Rn) => en.PacketState.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - (Qn.height = - An.height !== void 0 && An.height !== null ? nn.Height.fromPartial(An.height) : void 0), - Qn - ) - }, - } - function dn() { - return { portId: '', channelId: '', packetCommitmentSequences: [] } - } - e.QueryUnreceivedPacketsRequest = { - encode(An, Qn = In.Writer.create()) { - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - Qn.uint32(26).fork() - for (const Rn of An.packetCommitmentSequences) Qn.uint64(Rn) - return Qn.ldelim(), Qn - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = dn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - if ((ht & 7) === 2) { - const Wt = Rn.uint32() + Rn.pos - for (; Rn.pos < Wt; ) Wn.packetCommitmentSequences.push(Rn.uint64()) - } else Wn.packetCommitmentSequences.push(Rn.uint64()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - packetCommitmentSequences: Array.isArray(An?.packetCommitmentSequences) - ? An.packetCommitmentSequences.map((Qn) => gn.Long.fromValue(Qn)) - : [], - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.packetCommitmentSequences - ? (Qn.packetCommitmentSequences = An.packetCommitmentSequences.map((Rn) => - (Rn || gn.Long.UZERO).toString(), - )) - : (Qn.packetCommitmentSequences = []), - Qn - ) - }, - fromPartial(An) { - const Qn = dn() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.packetCommitmentSequences = - An.packetCommitmentSequences?.map((Rn) => gn.Long.fromValue(Rn)) || []), - Qn - ) - }, - } - function Nn() { - return { sequences: [], height: void 0 } - } - e.QueryUnreceivedPacketsResponse = { - encode(An, Qn = In.Writer.create()) { - Qn.uint32(10).fork() - for (const Rn of An.sequences) Qn.uint64(Rn) - return ( - Qn.ldelim(), - An.height !== void 0 && nn.Height.encode(An.height, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Nn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - if ((ht & 7) === 2) { - const Wt = Rn.uint32() + Rn.pos - for (; Rn.pos < Wt; ) Wn.sequences.push(Rn.uint64()) - } else Wn.sequences.push(Rn.uint64()) - break - case 2: - Wn.height = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - sequences: Array.isArray(An?.sequences) - ? An.sequences.map((Qn) => gn.Long.fromValue(Qn)) - : [], - height: (0, gn.isSet)(An.height) ? nn.Height.fromJSON(An.height) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.sequences - ? (Qn.sequences = An.sequences.map((Rn) => (Rn || gn.Long.UZERO).toString())) - : (Qn.sequences = []), - An.height !== void 0 && (Qn.height = An.height ? nn.Height.toJSON(An.height) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Nn() - return ( - (Qn.sequences = An.sequences?.map((Rn) => gn.Long.fromValue(Rn)) || []), - (Qn.height = - An.height !== void 0 && An.height !== null ? nn.Height.fromPartial(An.height) : void 0), - Qn - ) - }, - } - function fn() { - return { portId: '', channelId: '', packetAckSequences: [] } - } - e.QueryUnreceivedAcksRequest = { - encode(An, Qn = In.Writer.create()) { - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - Qn.uint32(26).fork() - for (const Rn of An.packetAckSequences) Qn.uint64(Rn) - return Qn.ldelim(), Qn - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = fn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - case 3: - if ((ht & 7) === 2) { - const Wt = Rn.uint32() + Rn.pos - for (; Rn.pos < Wt; ) Wn.packetAckSequences.push(Rn.uint64()) - } else Wn.packetAckSequences.push(Rn.uint64()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - packetAckSequences: Array.isArray(An?.packetAckSequences) - ? An.packetAckSequences.map((Qn) => gn.Long.fromValue(Qn)) - : [], - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - An.packetAckSequences - ? (Qn.packetAckSequences = An.packetAckSequences.map((Rn) => - (Rn || gn.Long.UZERO).toString(), - )) - : (Qn.packetAckSequences = []), - Qn - ) - }, - fromPartial(An) { - const Qn = fn() - return ( - (Qn.portId = An.portId ?? ''), - (Qn.channelId = An.channelId ?? ''), - (Qn.packetAckSequences = An.packetAckSequences?.map((Rn) => gn.Long.fromValue(Rn)) || []), - Qn - ) - }, - } - function _n() { - return { sequences: [], height: void 0 } - } - e.QueryUnreceivedAcksResponse = { - encode(An, Qn = In.Writer.create()) { - Qn.uint32(10).fork() - for (const Rn of An.sequences) Qn.uint64(Rn) - return ( - Qn.ldelim(), - An.height !== void 0 && nn.Height.encode(An.height, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = _n() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - if ((ht & 7) === 2) { - const Wt = Rn.uint32() + Rn.pos - for (; Rn.pos < Wt; ) Wn.sequences.push(Rn.uint64()) - } else Wn.sequences.push(Rn.uint64()) - break - case 2: - Wn.height = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - sequences: Array.isArray(An?.sequences) - ? An.sequences.map((Qn) => gn.Long.fromValue(Qn)) - : [], - height: (0, gn.isSet)(An.height) ? nn.Height.fromJSON(An.height) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.sequences - ? (Qn.sequences = An.sequences.map((Rn) => (Rn || gn.Long.UZERO).toString())) - : (Qn.sequences = []), - An.height !== void 0 && (Qn.height = An.height ? nn.Height.toJSON(An.height) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = _n() - return ( - (Qn.sequences = An.sequences?.map((Rn) => gn.Long.fromValue(Rn)) || []), - (Qn.height = - An.height !== void 0 && An.height !== null ? nn.Height.fromPartial(An.height) : void 0), - Qn - ) - }, - } - function Ln() { - return { portId: '', channelId: '' } - } - e.QueryNextSequenceReceiveRequest = { - encode(An, Qn = In.Writer.create()) { - return ( - An.portId !== '' && Qn.uint32(10).string(An.portId), - An.channelId !== '' && Qn.uint32(18).string(An.channelId), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Ln() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.portId = Rn.string() - break - case 2: - Wn.channelId = Rn.string() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - portId: (0, gn.isSet)(An.portId) ? String(An.portId) : '', - channelId: (0, gn.isSet)(An.channelId) ? String(An.channelId) : '', - } - }, - toJSON(An) { - const Qn = {} - return ( - An.portId !== void 0 && (Qn.portId = An.portId), - An.channelId !== void 0 && (Qn.channelId = An.channelId), - Qn - ) - }, - fromPartial(An) { - const Qn = Ln() - return (Qn.portId = An.portId ?? ''), (Qn.channelId = An.channelId ?? ''), Qn - }, - } - function zn() { - return { nextSequenceReceive: gn.Long.UZERO, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryNextSequenceReceiveResponse = { - encode(An, Qn = In.Writer.create()) { - return ( - An.nextSequenceReceive.isZero() || Qn.uint32(8).uint64(An.nextSequenceReceive), - An.proof.length !== 0 && Qn.uint32(18).bytes(An.proof), - An.proofHeight !== void 0 && - nn.Height.encode(An.proofHeight, Qn.uint32(26).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof In.Reader ? An : new In.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = zn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.nextSequenceReceive = Rn.uint64() - break - case 2: - Wn.proof = Rn.bytes() - break - case 3: - Wn.proofHeight = nn.Height.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - nextSequenceReceive: (0, gn.isSet)(An.nextSequenceReceive) - ? gn.Long.fromValue(An.nextSequenceReceive) - : gn.Long.UZERO, - proof: (0, gn.isSet)(An.proof) ? (0, gn.bytesFromBase64)(An.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(An.proofHeight) ? nn.Height.fromJSON(An.proofHeight) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.nextSequenceReceive !== void 0 && - (Qn.nextSequenceReceive = (An.nextSequenceReceive || gn.Long.UZERO).toString()), - An.proof !== void 0 && - (Qn.proof = (0, gn.base64FromBytes)(An.proof !== void 0 ? An.proof : new Uint8Array())), - An.proofHeight !== void 0 && - (Qn.proofHeight = An.proofHeight ? nn.Height.toJSON(An.proofHeight) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = zn() - return ( - (Qn.nextSequenceReceive = - An.nextSequenceReceive !== void 0 && An.nextSequenceReceive !== null - ? gn.Long.fromValue(An.nextSequenceReceive) - : gn.Long.UZERO), - (Qn.proof = An.proof ?? new Uint8Array()), - (Qn.proofHeight = - An.proofHeight !== void 0 && An.proofHeight !== null - ? nn.Height.fromPartial(An.proofHeight) - : void 0), - Qn - ) - }, - } - class Fn { - constructor(Qn) { - ;(this.rpc = Qn), - (this.Channel = this.Channel.bind(this)), - (this.Channels = this.Channels.bind(this)), - (this.ConnectionChannels = this.ConnectionChannels.bind(this)), - (this.ChannelClientState = this.ChannelClientState.bind(this)), - (this.ChannelConsensusState = this.ChannelConsensusState.bind(this)), - (this.PacketCommitment = this.PacketCommitment.bind(this)), - (this.PacketCommitments = this.PacketCommitments.bind(this)), - (this.PacketReceipt = this.PacketReceipt.bind(this)), - (this.PacketAcknowledgement = this.PacketAcknowledgement.bind(this)), - (this.PacketAcknowledgements = this.PacketAcknowledgements.bind(this)), - (this.UnreceivedPackets = this.UnreceivedPackets.bind(this)), - (this.UnreceivedAcks = this.UnreceivedAcks.bind(this)), - (this.NextSequenceReceive = this.NextSequenceReceive.bind(this)) - } - Channel(Qn) { - const Rn = e.QueryChannelRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'Channel', Rn) - .then((Wn) => e.QueryChannelResponse.decode(new In.Reader(Wn))) - } - Channels(Qn = { pagination: void 0 }) { - const Rn = e.QueryChannelsRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'Channels', Rn) - .then((Wn) => e.QueryChannelsResponse.decode(new In.Reader(Wn))) - } - ConnectionChannels(Qn) { - const Rn = e.QueryConnectionChannelsRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'ConnectionChannels', Rn) - .then((Wn) => e.QueryConnectionChannelsResponse.decode(new In.Reader(Wn))) - } - ChannelClientState(Qn) { - const Rn = e.QueryChannelClientStateRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'ChannelClientState', Rn) - .then((Wn) => e.QueryChannelClientStateResponse.decode(new In.Reader(Wn))) - } - ChannelConsensusState(Qn) { - const Rn = e.QueryChannelConsensusStateRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'ChannelConsensusState', Rn) - .then((Wn) => e.QueryChannelConsensusStateResponse.decode(new In.Reader(Wn))) - } - PacketCommitment(Qn) { - const Rn = e.QueryPacketCommitmentRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'PacketCommitment', Rn) - .then((Wn) => e.QueryPacketCommitmentResponse.decode(new In.Reader(Wn))) - } - PacketCommitments(Qn) { - const Rn = e.QueryPacketCommitmentsRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'PacketCommitments', Rn) - .then((Wn) => e.QueryPacketCommitmentsResponse.decode(new In.Reader(Wn))) - } - PacketReceipt(Qn) { - const Rn = e.QueryPacketReceiptRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'PacketReceipt', Rn) - .then((Wn) => e.QueryPacketReceiptResponse.decode(new In.Reader(Wn))) - } - PacketAcknowledgement(Qn) { - const Rn = e.QueryPacketAcknowledgementRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'PacketAcknowledgement', Rn) - .then((Wn) => e.QueryPacketAcknowledgementResponse.decode(new In.Reader(Wn))) - } - PacketAcknowledgements(Qn) { - const Rn = e.QueryPacketAcknowledgementsRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'PacketAcknowledgements', Rn) - .then((Wn) => e.QueryPacketAcknowledgementsResponse.decode(new In.Reader(Wn))) - } - UnreceivedPackets(Qn) { - const Rn = e.QueryUnreceivedPacketsRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'UnreceivedPackets', Rn) - .then((Wn) => e.QueryUnreceivedPacketsResponse.decode(new In.Reader(Wn))) - } - UnreceivedAcks(Qn) { - const Rn = e.QueryUnreceivedAcksRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'UnreceivedAcks', Rn) - .then((Wn) => e.QueryUnreceivedAcksResponse.decode(new In.Reader(Wn))) - } - NextSequenceReceive(Qn) { - const Rn = e.QueryNextSequenceReceiveRequest.encode(Qn).finish() - return this.rpc - .request('ibc.core.channel.v1.Query', 'NextSequenceReceive', Rn) - .then((Wn) => e.QueryNextSequenceReceiveResponse.decode(new In.Reader(Wn))) - } - } - e.QueryClientImpl = Fn -})(query$6) -var query$5 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Hn, un, dn, Nn) { - Nn === void 0 && (Nn = dn) - var fn = Object.getOwnPropertyDescriptor(un, dn) - ;(!fn || ('get' in fn ? !un.__esModule : fn.writable || fn.configurable)) && - (fn = { - enumerable: !0, - get: function () { - return un[dn] - }, - }), - Object.defineProperty(Hn, Nn, fn) - } - : function (Hn, un, dn, Nn) { - Nn === void 0 && (Nn = dn), (Hn[Nn] = un[dn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Hn, un) { - Object.defineProperty(Hn, 'default', { enumerable: !0, value: un }) - } - : function (Hn, un) { - Hn.default = un - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Hn) { - if (Hn && Hn.__esModule) return Hn - var un = {} - if (Hn != null) - for (var dn in Hn) - dn !== 'default' && Object.prototype.hasOwnProperty.call(Hn, dn) && o(un, Hn, dn) - return _(un, Hn), un - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryUpgradedConsensusStateResponse = - e.QueryUpgradedConsensusStateRequest = - e.QueryUpgradedClientStateResponse = - e.QueryUpgradedClientStateRequest = - e.QueryClientParamsResponse = - e.QueryClientParamsRequest = - e.QueryClientStatusResponse = - e.QueryClientStatusRequest = - e.QueryConsensusStateHeightsResponse = - e.QueryConsensusStateHeightsRequest = - e.QueryConsensusStatesResponse = - e.QueryConsensusStatesRequest = - e.QueryConsensusStateResponse = - e.QueryConsensusStateRequest = - e.QueryClientStatesResponse = - e.QueryClientStatesRequest = - e.QueryClientStateResponse = - e.QueryClientStateRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = any, - nn = client, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'ibc.core.client.v1' - function In() { - return { clientId: '' } - } - e.QueryClientStateRequest = { - encode(Hn, un = gn.Writer.create()) { - return Hn.clientId !== '' && un.uint32(10).string(Hn.clientId), un - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = In() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.clientId = dn.string() - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { clientId: (0, sn.isSet)(Hn.clientId) ? String(Hn.clientId) : '' } - }, - toJSON(Hn) { - const un = {} - return Hn.clientId !== void 0 && (un.clientId = Hn.clientId), un - }, - fromPartial(Hn) { - const un = In() - return (un.clientId = Hn.clientId ?? ''), un - }, - } - function Jn() { - return { clientState: void 0, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryClientStateResponse = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.clientState !== void 0 && en.Any.encode(Hn.clientState, un.uint32(10).fork()).ldelim(), - Hn.proof.length !== 0 && un.uint32(18).bytes(Hn.proof), - Hn.proofHeight !== void 0 && - nn.Height.encode(Hn.proofHeight, un.uint32(26).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Jn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.clientState = en.Any.decode(dn, dn.uint32()) - break - case 2: - fn.proof = dn.bytes() - break - case 3: - fn.proofHeight = nn.Height.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - clientState: (0, sn.isSet)(Hn.clientState) ? en.Any.fromJSON(Hn.clientState) : void 0, - proof: (0, sn.isSet)(Hn.proof) ? (0, sn.bytesFromBase64)(Hn.proof) : new Uint8Array(), - proofHeight: (0, sn.isSet)(Hn.proofHeight) ? nn.Height.fromJSON(Hn.proofHeight) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.clientState !== void 0 && - (un.clientState = Hn.clientState ? en.Any.toJSON(Hn.clientState) : void 0), - Hn.proof !== void 0 && - (un.proof = (0, sn.base64FromBytes)(Hn.proof !== void 0 ? Hn.proof : new Uint8Array())), - Hn.proofHeight !== void 0 && - (un.proofHeight = Hn.proofHeight ? nn.Height.toJSON(Hn.proofHeight) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = Jn() - return ( - (un.clientState = - Hn.clientState !== void 0 && Hn.clientState !== null - ? en.Any.fromPartial(Hn.clientState) - : void 0), - (un.proof = Hn.proof ?? new Uint8Array()), - (un.proofHeight = - Hn.proofHeight !== void 0 && Hn.proofHeight !== null - ? nn.Height.fromPartial(Hn.proofHeight) - : void 0), - un - ) - }, - } - function qn() { - return { pagination: void 0 } - } - e.QueryClientStatesRequest = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.pagination !== void 0 && - $.PageRequest.encode(Hn.pagination, un.uint32(10).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = qn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.pagination = $.PageRequest.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - pagination: (0, sn.isSet)(Hn.pagination) ? $.PageRequest.fromJSON(Hn.pagination) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.pagination !== void 0 && - (un.pagination = Hn.pagination ? $.PageRequest.toJSON(Hn.pagination) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = qn() - return ( - (un.pagination = - Hn.pagination !== void 0 && Hn.pagination !== null - ? $.PageRequest.fromPartial(Hn.pagination) - : void 0), - un - ) - }, - } - function Kn() { - return { clientStates: [], pagination: void 0 } - } - e.QueryClientStatesResponse = { - encode(Hn, un = gn.Writer.create()) { - for (const dn of Hn.clientStates) - nn.IdentifiedClientState.encode(dn, un.uint32(10).fork()).ldelim() - return ( - Hn.pagination !== void 0 && - $.PageResponse.encode(Hn.pagination, un.uint32(18).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Kn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.clientStates.push(nn.IdentifiedClientState.decode(dn, dn.uint32())) - break - case 2: - fn.pagination = $.PageResponse.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - clientStates: Array.isArray(Hn?.clientStates) - ? Hn.clientStates.map((un) => nn.IdentifiedClientState.fromJSON(un)) - : [], - pagination: (0, sn.isSet)(Hn.pagination) ? $.PageResponse.fromJSON(Hn.pagination) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.clientStates - ? (un.clientStates = Hn.clientStates.map((dn) => - dn ? nn.IdentifiedClientState.toJSON(dn) : void 0, - )) - : (un.clientStates = []), - Hn.pagination !== void 0 && - (un.pagination = Hn.pagination ? $.PageResponse.toJSON(Hn.pagination) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = Kn() - return ( - (un.clientStates = - Hn.clientStates?.map((dn) => nn.IdentifiedClientState.fromPartial(dn)) || []), - (un.pagination = - Hn.pagination !== void 0 && Hn.pagination !== null - ? $.PageResponse.fromPartial(Hn.pagination) - : void 0), - un - ) - }, - } - function an() { - return { - clientId: '', - revisionNumber: sn.Long.UZERO, - revisionHeight: sn.Long.UZERO, - latestHeight: !1, - } - } - e.QueryConsensusStateRequest = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.clientId !== '' && un.uint32(10).string(Hn.clientId), - Hn.revisionNumber.isZero() || un.uint32(16).uint64(Hn.revisionNumber), - Hn.revisionHeight.isZero() || un.uint32(24).uint64(Hn.revisionHeight), - Hn.latestHeight === !0 && un.uint32(32).bool(Hn.latestHeight), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = an() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.clientId = dn.string() - break - case 2: - fn.revisionNumber = dn.uint64() - break - case 3: - fn.revisionHeight = dn.uint64() - break - case 4: - fn.latestHeight = dn.bool() - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - clientId: (0, sn.isSet)(Hn.clientId) ? String(Hn.clientId) : '', - revisionNumber: (0, sn.isSet)(Hn.revisionNumber) - ? sn.Long.fromValue(Hn.revisionNumber) - : sn.Long.UZERO, - revisionHeight: (0, sn.isSet)(Hn.revisionHeight) - ? sn.Long.fromValue(Hn.revisionHeight) - : sn.Long.UZERO, - latestHeight: (0, sn.isSet)(Hn.latestHeight) ? Boolean(Hn.latestHeight) : !1, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.clientId !== void 0 && (un.clientId = Hn.clientId), - Hn.revisionNumber !== void 0 && - (un.revisionNumber = (Hn.revisionNumber || sn.Long.UZERO).toString()), - Hn.revisionHeight !== void 0 && - (un.revisionHeight = (Hn.revisionHeight || sn.Long.UZERO).toString()), - Hn.latestHeight !== void 0 && (un.latestHeight = Hn.latestHeight), - un - ) - }, - fromPartial(Hn) { - const un = an() - return ( - (un.clientId = Hn.clientId ?? ''), - (un.revisionNumber = - Hn.revisionNumber !== void 0 && Hn.revisionNumber !== null - ? sn.Long.fromValue(Hn.revisionNumber) - : sn.Long.UZERO), - (un.revisionHeight = - Hn.revisionHeight !== void 0 && Hn.revisionHeight !== null - ? sn.Long.fromValue(Hn.revisionHeight) - : sn.Long.UZERO), - (un.latestHeight = Hn.latestHeight ?? !1), - un - ) - }, - } - function xn() { - return { consensusState: void 0, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryConsensusStateResponse = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.consensusState !== void 0 && - en.Any.encode(Hn.consensusState, un.uint32(10).fork()).ldelim(), - Hn.proof.length !== 0 && un.uint32(18).bytes(Hn.proof), - Hn.proofHeight !== void 0 && - nn.Height.encode(Hn.proofHeight, un.uint32(26).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = xn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.consensusState = en.Any.decode(dn, dn.uint32()) - break - case 2: - fn.proof = dn.bytes() - break - case 3: - fn.proofHeight = nn.Height.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - consensusState: (0, sn.isSet)(Hn.consensusState) - ? en.Any.fromJSON(Hn.consensusState) - : void 0, - proof: (0, sn.isSet)(Hn.proof) ? (0, sn.bytesFromBase64)(Hn.proof) : new Uint8Array(), - proofHeight: (0, sn.isSet)(Hn.proofHeight) ? nn.Height.fromJSON(Hn.proofHeight) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.consensusState !== void 0 && - (un.consensusState = Hn.consensusState ? en.Any.toJSON(Hn.consensusState) : void 0), - Hn.proof !== void 0 && - (un.proof = (0, sn.base64FromBytes)(Hn.proof !== void 0 ? Hn.proof : new Uint8Array())), - Hn.proofHeight !== void 0 && - (un.proofHeight = Hn.proofHeight ? nn.Height.toJSON(Hn.proofHeight) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = xn() - return ( - (un.consensusState = - Hn.consensusState !== void 0 && Hn.consensusState !== null - ? en.Any.fromPartial(Hn.consensusState) - : void 0), - (un.proof = Hn.proof ?? new Uint8Array()), - (un.proofHeight = - Hn.proofHeight !== void 0 && Hn.proofHeight !== null - ? nn.Height.fromPartial(Hn.proofHeight) - : void 0), - un - ) - }, - } - function mn() { - return { clientId: '', pagination: void 0 } - } - e.QueryConsensusStatesRequest = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.clientId !== '' && un.uint32(10).string(Hn.clientId), - Hn.pagination !== void 0 && - $.PageRequest.encode(Hn.pagination, un.uint32(18).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = mn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.clientId = dn.string() - break - case 2: - fn.pagination = $.PageRequest.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - clientId: (0, sn.isSet)(Hn.clientId) ? String(Hn.clientId) : '', - pagination: (0, sn.isSet)(Hn.pagination) ? $.PageRequest.fromJSON(Hn.pagination) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.clientId !== void 0 && (un.clientId = Hn.clientId), - Hn.pagination !== void 0 && - (un.pagination = Hn.pagination ? $.PageRequest.toJSON(Hn.pagination) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = mn() - return ( - (un.clientId = Hn.clientId ?? ''), - (un.pagination = - Hn.pagination !== void 0 && Hn.pagination !== null - ? $.PageRequest.fromPartial(Hn.pagination) - : void 0), - un - ) - }, - } - function Bn() { - return { consensusStates: [], pagination: void 0 } - } - e.QueryConsensusStatesResponse = { - encode(Hn, un = gn.Writer.create()) { - for (const dn of Hn.consensusStates) - nn.ConsensusStateWithHeight.encode(dn, un.uint32(10).fork()).ldelim() - return ( - Hn.pagination !== void 0 && - $.PageResponse.encode(Hn.pagination, un.uint32(18).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Bn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.consensusStates.push(nn.ConsensusStateWithHeight.decode(dn, dn.uint32())) - break - case 2: - fn.pagination = $.PageResponse.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - consensusStates: Array.isArray(Hn?.consensusStates) - ? Hn.consensusStates.map((un) => nn.ConsensusStateWithHeight.fromJSON(un)) - : [], - pagination: (0, sn.isSet)(Hn.pagination) ? $.PageResponse.fromJSON(Hn.pagination) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.consensusStates - ? (un.consensusStates = Hn.consensusStates.map((dn) => - dn ? nn.ConsensusStateWithHeight.toJSON(dn) : void 0, - )) - : (un.consensusStates = []), - Hn.pagination !== void 0 && - (un.pagination = Hn.pagination ? $.PageResponse.toJSON(Hn.pagination) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = Bn() - return ( - (un.consensusStates = - Hn.consensusStates?.map((dn) => nn.ConsensusStateWithHeight.fromPartial(dn)) || []), - (un.pagination = - Hn.pagination !== void 0 && Hn.pagination !== null - ? $.PageResponse.fromPartial(Hn.pagination) - : void 0), - un - ) - }, - } - function kn() { - return { clientId: '', pagination: void 0 } - } - e.QueryConsensusStateHeightsRequest = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.clientId !== '' && un.uint32(10).string(Hn.clientId), - Hn.pagination !== void 0 && - $.PageRequest.encode(Hn.pagination, un.uint32(18).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = kn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.clientId = dn.string() - break - case 2: - fn.pagination = $.PageRequest.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - clientId: (0, sn.isSet)(Hn.clientId) ? String(Hn.clientId) : '', - pagination: (0, sn.isSet)(Hn.pagination) ? $.PageRequest.fromJSON(Hn.pagination) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.clientId !== void 0 && (un.clientId = Hn.clientId), - Hn.pagination !== void 0 && - (un.pagination = Hn.pagination ? $.PageRequest.toJSON(Hn.pagination) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = kn() - return ( - (un.clientId = Hn.clientId ?? ''), - (un.pagination = - Hn.pagination !== void 0 && Hn.pagination !== null - ? $.PageRequest.fromPartial(Hn.pagination) - : void 0), - un - ) - }, - } - function ln() { - return { consensusStateHeights: [], pagination: void 0 } - } - e.QueryConsensusStateHeightsResponse = { - encode(Hn, un = gn.Writer.create()) { - for (const dn of Hn.consensusStateHeights) nn.Height.encode(dn, un.uint32(10).fork()).ldelim() - return ( - Hn.pagination !== void 0 && - $.PageResponse.encode(Hn.pagination, un.uint32(18).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = ln() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.consensusStateHeights.push(nn.Height.decode(dn, dn.uint32())) - break - case 2: - fn.pagination = $.PageResponse.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - consensusStateHeights: Array.isArray(Hn?.consensusStateHeights) - ? Hn.consensusStateHeights.map((un) => nn.Height.fromJSON(un)) - : [], - pagination: (0, sn.isSet)(Hn.pagination) ? $.PageResponse.fromJSON(Hn.pagination) : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.consensusStateHeights - ? (un.consensusStateHeights = Hn.consensusStateHeights.map((dn) => - dn ? nn.Height.toJSON(dn) : void 0, - )) - : (un.consensusStateHeights = []), - Hn.pagination !== void 0 && - (un.pagination = Hn.pagination ? $.PageResponse.toJSON(Hn.pagination) : void 0), - un - ) - }, - fromPartial(Hn) { - const un = ln() - return ( - (un.consensusStateHeights = - Hn.consensusStateHeights?.map((dn) => nn.Height.fromPartial(dn)) || []), - (un.pagination = - Hn.pagination !== void 0 && Hn.pagination !== null - ? $.PageResponse.fromPartial(Hn.pagination) - : void 0), - un - ) - }, - } - function yn() { - return { clientId: '' } - } - e.QueryClientStatusRequest = { - encode(Hn, un = gn.Writer.create()) { - return Hn.clientId !== '' && un.uint32(10).string(Hn.clientId), un - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = yn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.clientId = dn.string() - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { clientId: (0, sn.isSet)(Hn.clientId) ? String(Hn.clientId) : '' } - }, - toJSON(Hn) { - const un = {} - return Hn.clientId !== void 0 && (un.clientId = Hn.clientId), un - }, - fromPartial(Hn) { - const un = yn() - return (un.clientId = Hn.clientId ?? ''), un - }, - } - function Cn() { - return { status: '' } - } - e.QueryClientStatusResponse = { - encode(Hn, un = gn.Writer.create()) { - return Hn.status !== '' && un.uint32(10).string(Hn.status), un - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Cn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.status = dn.string() - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { status: (0, sn.isSet)(Hn.status) ? String(Hn.status) : '' } - }, - toJSON(Hn) { - const un = {} - return Hn.status !== void 0 && (un.status = Hn.status), un - }, - fromPartial(Hn) { - const un = Cn() - return (un.status = Hn.status ?? ''), un - }, - } - function Tn() { - return {} - } - e.QueryClientParamsRequest = { - encode(Hn, un = gn.Writer.create()) { - return un - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Tn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return {} - }, - toJSON(Hn) { - return {} - }, - fromPartial(Hn) { - return Tn() - }, - } - function Gn() { - return { params: void 0 } - } - e.QueryClientParamsResponse = { - encode(Hn, un = gn.Writer.create()) { - return Hn.params !== void 0 && nn.Params.encode(Hn.params, un.uint32(10).fork()).ldelim(), un - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Gn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.params = nn.Params.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { params: (0, sn.isSet)(Hn.params) ? nn.Params.fromJSON(Hn.params) : void 0 } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.params !== void 0 && (un.params = Hn.params ? nn.Params.toJSON(Hn.params) : void 0), un - ) - }, - fromPartial(Hn) { - const un = Gn() - return ( - (un.params = - Hn.params !== void 0 && Hn.params !== null ? nn.Params.fromPartial(Hn.params) : void 0), - un - ) - }, - } - function Sn() { - return {} - } - e.QueryUpgradedClientStateRequest = { - encode(Hn, un = gn.Writer.create()) { - return un - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Sn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return {} - }, - toJSON(Hn) { - return {} - }, - fromPartial(Hn) { - return Sn() - }, - } - function Zn() { - return { upgradedClientState: void 0 } - } - e.QueryUpgradedClientStateResponse = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.upgradedClientState !== void 0 && - en.Any.encode(Hn.upgradedClientState, un.uint32(10).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = Zn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.upgradedClientState = en.Any.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - upgradedClientState: (0, sn.isSet)(Hn.upgradedClientState) - ? en.Any.fromJSON(Hn.upgradedClientState) - : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.upgradedClientState !== void 0 && - (un.upgradedClientState = Hn.upgradedClientState - ? en.Any.toJSON(Hn.upgradedClientState) - : void 0), - un - ) - }, - fromPartial(Hn) { - const un = Zn() - return ( - (un.upgradedClientState = - Hn.upgradedClientState !== void 0 && Hn.upgradedClientState !== null - ? en.Any.fromPartial(Hn.upgradedClientState) - : void 0), - un - ) - }, - } - function tn() { - return {} - } - e.QueryUpgradedConsensusStateRequest = { - encode(Hn, un = gn.Writer.create()) { - return un - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = tn() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return {} - }, - toJSON(Hn) { - return {} - }, - fromPartial(Hn) { - return tn() - }, - } - function En() { - return { upgradedConsensusState: void 0 } - } - e.QueryUpgradedConsensusStateResponse = { - encode(Hn, un = gn.Writer.create()) { - return ( - Hn.upgradedConsensusState !== void 0 && - en.Any.encode(Hn.upgradedConsensusState, un.uint32(10).fork()).ldelim(), - un - ) - }, - decode(Hn, un) { - const dn = Hn instanceof gn.Reader ? Hn : new gn.Reader(Hn) - let Nn = un === void 0 ? dn.len : dn.pos + un - const fn = En() - for (; dn.pos < Nn; ) { - const _n = dn.uint32() - switch (_n >>> 3) { - case 1: - fn.upgradedConsensusState = en.Any.decode(dn, dn.uint32()) - break - default: - dn.skipType(_n & 7) - break - } - } - return fn - }, - fromJSON(Hn) { - return { - upgradedConsensusState: (0, sn.isSet)(Hn.upgradedConsensusState) - ? en.Any.fromJSON(Hn.upgradedConsensusState) - : void 0, - } - }, - toJSON(Hn) { - const un = {} - return ( - Hn.upgradedConsensusState !== void 0 && - (un.upgradedConsensusState = Hn.upgradedConsensusState - ? en.Any.toJSON(Hn.upgradedConsensusState) - : void 0), - un - ) - }, - fromPartial(Hn) { - const un = En() - return ( - (un.upgradedConsensusState = - Hn.upgradedConsensusState !== void 0 && Hn.upgradedConsensusState !== null - ? en.Any.fromPartial(Hn.upgradedConsensusState) - : void 0), - un - ) - }, - } - class Mn { - constructor(un) { - ;(this.rpc = un), - (this.ClientState = this.ClientState.bind(this)), - (this.ClientStates = this.ClientStates.bind(this)), - (this.ConsensusState = this.ConsensusState.bind(this)), - (this.ConsensusStates = this.ConsensusStates.bind(this)), - (this.ConsensusStateHeights = this.ConsensusStateHeights.bind(this)), - (this.ClientStatus = this.ClientStatus.bind(this)), - (this.ClientParams = this.ClientParams.bind(this)), - (this.UpgradedClientState = this.UpgradedClientState.bind(this)), - (this.UpgradedConsensusState = this.UpgradedConsensusState.bind(this)) - } - ClientState(un) { - const dn = e.QueryClientStateRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'ClientState', dn) - .then((fn) => e.QueryClientStateResponse.decode(new gn.Reader(fn))) - } - ClientStates(un = { pagination: void 0 }) { - const dn = e.QueryClientStatesRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'ClientStates', dn) - .then((fn) => e.QueryClientStatesResponse.decode(new gn.Reader(fn))) - } - ConsensusState(un) { - const dn = e.QueryConsensusStateRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'ConsensusState', dn) - .then((fn) => e.QueryConsensusStateResponse.decode(new gn.Reader(fn))) - } - ConsensusStates(un) { - const dn = e.QueryConsensusStatesRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'ConsensusStates', dn) - .then((fn) => e.QueryConsensusStatesResponse.decode(new gn.Reader(fn))) - } - ConsensusStateHeights(un) { - const dn = e.QueryConsensusStateHeightsRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'ConsensusStateHeights', dn) - .then((fn) => e.QueryConsensusStateHeightsResponse.decode(new gn.Reader(fn))) - } - ClientStatus(un) { - const dn = e.QueryClientStatusRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'ClientStatus', dn) - .then((fn) => e.QueryClientStatusResponse.decode(new gn.Reader(fn))) - } - ClientParams(un = {}) { - const dn = e.QueryClientParamsRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'ClientParams', dn) - .then((fn) => e.QueryClientParamsResponse.decode(new gn.Reader(fn))) - } - UpgradedClientState(un = {}) { - const dn = e.QueryUpgradedClientStateRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'UpgradedClientState', dn) - .then((fn) => e.QueryUpgradedClientStateResponse.decode(new gn.Reader(fn))) - } - UpgradedConsensusState(un = {}) { - const dn = e.QueryUpgradedConsensusStateRequest.encode(un).finish() - return this.rpc - .request('ibc.core.client.v1.Query', 'UpgradedConsensusState', dn) - .then((fn) => e.QueryUpgradedConsensusStateResponse.decode(new gn.Reader(fn))) - } - } - e.QueryClientImpl = Mn -})(query$5) -var query$4 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Sn, Zn, tn, En) { - En === void 0 && (En = tn) - var Mn = Object.getOwnPropertyDescriptor(Zn, tn) - ;(!Mn || ('get' in Mn ? !Zn.__esModule : Mn.writable || Mn.configurable)) && - (Mn = { - enumerable: !0, - get: function () { - return Zn[tn] - }, - }), - Object.defineProperty(Sn, En, Mn) - } - : function (Sn, Zn, tn, En) { - En === void 0 && (En = tn), (Sn[En] = Zn[tn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Sn, Zn) { - Object.defineProperty(Sn, 'default', { enumerable: !0, value: Zn }) - } - : function (Sn, Zn) { - Sn.default = Zn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Sn) { - if (Sn && Sn.__esModule) return Sn - var Zn = {} - if (Sn != null) - for (var tn in Sn) - tn !== 'default' && Object.prototype.hasOwnProperty.call(Sn, tn) && o(Zn, Sn, tn) - return _(Zn, Sn), Zn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryConnectionParamsResponse = - e.QueryConnectionParamsRequest = - e.QueryConnectionConsensusStateResponse = - e.QueryConnectionConsensusStateRequest = - e.QueryConnectionClientStateResponse = - e.QueryConnectionClientStateRequest = - e.QueryClientConnectionsResponse = - e.QueryClientConnectionsRequest = - e.QueryConnectionsResponse = - e.QueryConnectionsRequest = - e.QueryConnectionResponse = - e.QueryConnectionRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = connection, - nn = client, - sn = any, - gn = helpers, - In = b(minimalExports) - e.protobufPackage = 'ibc.core.connection.v1' - function Jn() { - return { connectionId: '' } - } - e.QueryConnectionRequest = { - encode(Sn, Zn = In.Writer.create()) { - return Sn.connectionId !== '' && Zn.uint32(10).string(Sn.connectionId), Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Jn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.connectionId = tn.string() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { connectionId: (0, gn.isSet)(Sn.connectionId) ? String(Sn.connectionId) : '' } - }, - toJSON(Sn) { - const Zn = {} - return Sn.connectionId !== void 0 && (Zn.connectionId = Sn.connectionId), Zn - }, - fromPartial(Sn) { - const Zn = Jn() - return (Zn.connectionId = Sn.connectionId ?? ''), Zn - }, - } - function qn() { - return { connection: void 0, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryConnectionResponse = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.connection !== void 0 && - en.ConnectionEnd.encode(Sn.connection, Zn.uint32(10).fork()).ldelim(), - Sn.proof.length !== 0 && Zn.uint32(18).bytes(Sn.proof), - Sn.proofHeight !== void 0 && - nn.Height.encode(Sn.proofHeight, Zn.uint32(26).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = qn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.connection = en.ConnectionEnd.decode(tn, tn.uint32()) - break - case 2: - Mn.proof = tn.bytes() - break - case 3: - Mn.proofHeight = nn.Height.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - connection: (0, gn.isSet)(Sn.connection) - ? en.ConnectionEnd.fromJSON(Sn.connection) - : void 0, - proof: (0, gn.isSet)(Sn.proof) ? (0, gn.bytesFromBase64)(Sn.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(Sn.proofHeight) ? nn.Height.fromJSON(Sn.proofHeight) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.connection !== void 0 && - (Zn.connection = Sn.connection ? en.ConnectionEnd.toJSON(Sn.connection) : void 0), - Sn.proof !== void 0 && - (Zn.proof = (0, gn.base64FromBytes)(Sn.proof !== void 0 ? Sn.proof : new Uint8Array())), - Sn.proofHeight !== void 0 && - (Zn.proofHeight = Sn.proofHeight ? nn.Height.toJSON(Sn.proofHeight) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = qn() - return ( - (Zn.connection = - Sn.connection !== void 0 && Sn.connection !== null - ? en.ConnectionEnd.fromPartial(Sn.connection) - : void 0), - (Zn.proof = Sn.proof ?? new Uint8Array()), - (Zn.proofHeight = - Sn.proofHeight !== void 0 && Sn.proofHeight !== null - ? nn.Height.fromPartial(Sn.proofHeight) - : void 0), - Zn - ) - }, - } - function Kn() { - return { pagination: void 0 } - } - e.QueryConnectionsRequest = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.pagination !== void 0 && - $.PageRequest.encode(Sn.pagination, Zn.uint32(10).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Kn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.pagination = $.PageRequest.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - pagination: (0, gn.isSet)(Sn.pagination) ? $.PageRequest.fromJSON(Sn.pagination) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.pagination !== void 0 && - (Zn.pagination = Sn.pagination ? $.PageRequest.toJSON(Sn.pagination) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = Kn() - return ( - (Zn.pagination = - Sn.pagination !== void 0 && Sn.pagination !== null - ? $.PageRequest.fromPartial(Sn.pagination) - : void 0), - Zn - ) - }, - } - function an() { - return { connections: [], pagination: void 0, height: void 0 } - } - e.QueryConnectionsResponse = { - encode(Sn, Zn = In.Writer.create()) { - for (const tn of Sn.connections) - en.IdentifiedConnection.encode(tn, Zn.uint32(10).fork()).ldelim() - return ( - Sn.pagination !== void 0 && - $.PageResponse.encode(Sn.pagination, Zn.uint32(18).fork()).ldelim(), - Sn.height !== void 0 && nn.Height.encode(Sn.height, Zn.uint32(26).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = an() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.connections.push(en.IdentifiedConnection.decode(tn, tn.uint32())) - break - case 2: - Mn.pagination = $.PageResponse.decode(tn, tn.uint32()) - break - case 3: - Mn.height = nn.Height.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - connections: Array.isArray(Sn?.connections) - ? Sn.connections.map((Zn) => en.IdentifiedConnection.fromJSON(Zn)) - : [], - pagination: (0, gn.isSet)(Sn.pagination) ? $.PageResponse.fromJSON(Sn.pagination) : void 0, - height: (0, gn.isSet)(Sn.height) ? nn.Height.fromJSON(Sn.height) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.connections - ? (Zn.connections = Sn.connections.map((tn) => - tn ? en.IdentifiedConnection.toJSON(tn) : void 0, - )) - : (Zn.connections = []), - Sn.pagination !== void 0 && - (Zn.pagination = Sn.pagination ? $.PageResponse.toJSON(Sn.pagination) : void 0), - Sn.height !== void 0 && (Zn.height = Sn.height ? nn.Height.toJSON(Sn.height) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = an() - return ( - (Zn.connections = - Sn.connections?.map((tn) => en.IdentifiedConnection.fromPartial(tn)) || []), - (Zn.pagination = - Sn.pagination !== void 0 && Sn.pagination !== null - ? $.PageResponse.fromPartial(Sn.pagination) - : void 0), - (Zn.height = - Sn.height !== void 0 && Sn.height !== null ? nn.Height.fromPartial(Sn.height) : void 0), - Zn - ) - }, - } - function xn() { - return { clientId: '' } - } - e.QueryClientConnectionsRequest = { - encode(Sn, Zn = In.Writer.create()) { - return Sn.clientId !== '' && Zn.uint32(10).string(Sn.clientId), Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = xn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.clientId = tn.string() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { clientId: (0, gn.isSet)(Sn.clientId) ? String(Sn.clientId) : '' } - }, - toJSON(Sn) { - const Zn = {} - return Sn.clientId !== void 0 && (Zn.clientId = Sn.clientId), Zn - }, - fromPartial(Sn) { - const Zn = xn() - return (Zn.clientId = Sn.clientId ?? ''), Zn - }, - } - function mn() { - return { connectionPaths: [], proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryClientConnectionsResponse = { - encode(Sn, Zn = In.Writer.create()) { - for (const tn of Sn.connectionPaths) Zn.uint32(10).string(tn) - return ( - Sn.proof.length !== 0 && Zn.uint32(18).bytes(Sn.proof), - Sn.proofHeight !== void 0 && - nn.Height.encode(Sn.proofHeight, Zn.uint32(26).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = mn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.connectionPaths.push(tn.string()) - break - case 2: - Mn.proof = tn.bytes() - break - case 3: - Mn.proofHeight = nn.Height.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - connectionPaths: Array.isArray(Sn?.connectionPaths) - ? Sn.connectionPaths.map((Zn) => String(Zn)) - : [], - proof: (0, gn.isSet)(Sn.proof) ? (0, gn.bytesFromBase64)(Sn.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(Sn.proofHeight) ? nn.Height.fromJSON(Sn.proofHeight) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.connectionPaths - ? (Zn.connectionPaths = Sn.connectionPaths.map((tn) => tn)) - : (Zn.connectionPaths = []), - Sn.proof !== void 0 && - (Zn.proof = (0, gn.base64FromBytes)(Sn.proof !== void 0 ? Sn.proof : new Uint8Array())), - Sn.proofHeight !== void 0 && - (Zn.proofHeight = Sn.proofHeight ? nn.Height.toJSON(Sn.proofHeight) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = mn() - return ( - (Zn.connectionPaths = Sn.connectionPaths?.map((tn) => tn) || []), - (Zn.proof = Sn.proof ?? new Uint8Array()), - (Zn.proofHeight = - Sn.proofHeight !== void 0 && Sn.proofHeight !== null - ? nn.Height.fromPartial(Sn.proofHeight) - : void 0), - Zn - ) - }, - } - function Bn() { - return { connectionId: '' } - } - e.QueryConnectionClientStateRequest = { - encode(Sn, Zn = In.Writer.create()) { - return Sn.connectionId !== '' && Zn.uint32(10).string(Sn.connectionId), Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Bn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.connectionId = tn.string() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { connectionId: (0, gn.isSet)(Sn.connectionId) ? String(Sn.connectionId) : '' } - }, - toJSON(Sn) { - const Zn = {} - return Sn.connectionId !== void 0 && (Zn.connectionId = Sn.connectionId), Zn - }, - fromPartial(Sn) { - const Zn = Bn() - return (Zn.connectionId = Sn.connectionId ?? ''), Zn - }, - } - function kn() { - return { identifiedClientState: void 0, proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryConnectionClientStateResponse = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.identifiedClientState !== void 0 && - nn.IdentifiedClientState.encode(Sn.identifiedClientState, Zn.uint32(10).fork()).ldelim(), - Sn.proof.length !== 0 && Zn.uint32(18).bytes(Sn.proof), - Sn.proofHeight !== void 0 && - nn.Height.encode(Sn.proofHeight, Zn.uint32(26).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = kn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.identifiedClientState = nn.IdentifiedClientState.decode(tn, tn.uint32()) - break - case 2: - Mn.proof = tn.bytes() - break - case 3: - Mn.proofHeight = nn.Height.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - identifiedClientState: (0, gn.isSet)(Sn.identifiedClientState) - ? nn.IdentifiedClientState.fromJSON(Sn.identifiedClientState) - : void 0, - proof: (0, gn.isSet)(Sn.proof) ? (0, gn.bytesFromBase64)(Sn.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(Sn.proofHeight) ? nn.Height.fromJSON(Sn.proofHeight) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.identifiedClientState !== void 0 && - (Zn.identifiedClientState = Sn.identifiedClientState - ? nn.IdentifiedClientState.toJSON(Sn.identifiedClientState) - : void 0), - Sn.proof !== void 0 && - (Zn.proof = (0, gn.base64FromBytes)(Sn.proof !== void 0 ? Sn.proof : new Uint8Array())), - Sn.proofHeight !== void 0 && - (Zn.proofHeight = Sn.proofHeight ? nn.Height.toJSON(Sn.proofHeight) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = kn() - return ( - (Zn.identifiedClientState = - Sn.identifiedClientState !== void 0 && Sn.identifiedClientState !== null - ? nn.IdentifiedClientState.fromPartial(Sn.identifiedClientState) - : void 0), - (Zn.proof = Sn.proof ?? new Uint8Array()), - (Zn.proofHeight = - Sn.proofHeight !== void 0 && Sn.proofHeight !== null - ? nn.Height.fromPartial(Sn.proofHeight) - : void 0), - Zn - ) - }, - } - function ln() { - return { connectionId: '', revisionNumber: gn.Long.UZERO, revisionHeight: gn.Long.UZERO } - } - e.QueryConnectionConsensusStateRequest = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.connectionId !== '' && Zn.uint32(10).string(Sn.connectionId), - Sn.revisionNumber.isZero() || Zn.uint32(16).uint64(Sn.revisionNumber), - Sn.revisionHeight.isZero() || Zn.uint32(24).uint64(Sn.revisionHeight), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = ln() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.connectionId = tn.string() - break - case 2: - Mn.revisionNumber = tn.uint64() - break - case 3: - Mn.revisionHeight = tn.uint64() - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - connectionId: (0, gn.isSet)(Sn.connectionId) ? String(Sn.connectionId) : '', - revisionNumber: (0, gn.isSet)(Sn.revisionNumber) - ? gn.Long.fromValue(Sn.revisionNumber) - : gn.Long.UZERO, - revisionHeight: (0, gn.isSet)(Sn.revisionHeight) - ? gn.Long.fromValue(Sn.revisionHeight) - : gn.Long.UZERO, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.connectionId !== void 0 && (Zn.connectionId = Sn.connectionId), - Sn.revisionNumber !== void 0 && - (Zn.revisionNumber = (Sn.revisionNumber || gn.Long.UZERO).toString()), - Sn.revisionHeight !== void 0 && - (Zn.revisionHeight = (Sn.revisionHeight || gn.Long.UZERO).toString()), - Zn - ) - }, - fromPartial(Sn) { - const Zn = ln() - return ( - (Zn.connectionId = Sn.connectionId ?? ''), - (Zn.revisionNumber = - Sn.revisionNumber !== void 0 && Sn.revisionNumber !== null - ? gn.Long.fromValue(Sn.revisionNumber) - : gn.Long.UZERO), - (Zn.revisionHeight = - Sn.revisionHeight !== void 0 && Sn.revisionHeight !== null - ? gn.Long.fromValue(Sn.revisionHeight) - : gn.Long.UZERO), - Zn - ) - }, - } - function yn() { - return { consensusState: void 0, clientId: '', proof: new Uint8Array(), proofHeight: void 0 } - } - e.QueryConnectionConsensusStateResponse = { - encode(Sn, Zn = In.Writer.create()) { - return ( - Sn.consensusState !== void 0 && - sn.Any.encode(Sn.consensusState, Zn.uint32(10).fork()).ldelim(), - Sn.clientId !== '' && Zn.uint32(18).string(Sn.clientId), - Sn.proof.length !== 0 && Zn.uint32(26).bytes(Sn.proof), - Sn.proofHeight !== void 0 && - nn.Height.encode(Sn.proofHeight, Zn.uint32(34).fork()).ldelim(), - Zn - ) - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = yn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.consensusState = sn.Any.decode(tn, tn.uint32()) - break - case 2: - Mn.clientId = tn.string() - break - case 3: - Mn.proof = tn.bytes() - break - case 4: - Mn.proofHeight = nn.Height.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { - consensusState: (0, gn.isSet)(Sn.consensusState) - ? sn.Any.fromJSON(Sn.consensusState) - : void 0, - clientId: (0, gn.isSet)(Sn.clientId) ? String(Sn.clientId) : '', - proof: (0, gn.isSet)(Sn.proof) ? (0, gn.bytesFromBase64)(Sn.proof) : new Uint8Array(), - proofHeight: (0, gn.isSet)(Sn.proofHeight) ? nn.Height.fromJSON(Sn.proofHeight) : void 0, - } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.consensusState !== void 0 && - (Zn.consensusState = Sn.consensusState ? sn.Any.toJSON(Sn.consensusState) : void 0), - Sn.clientId !== void 0 && (Zn.clientId = Sn.clientId), - Sn.proof !== void 0 && - (Zn.proof = (0, gn.base64FromBytes)(Sn.proof !== void 0 ? Sn.proof : new Uint8Array())), - Sn.proofHeight !== void 0 && - (Zn.proofHeight = Sn.proofHeight ? nn.Height.toJSON(Sn.proofHeight) : void 0), - Zn - ) - }, - fromPartial(Sn) { - const Zn = yn() - return ( - (Zn.consensusState = - Sn.consensusState !== void 0 && Sn.consensusState !== null - ? sn.Any.fromPartial(Sn.consensusState) - : void 0), - (Zn.clientId = Sn.clientId ?? ''), - (Zn.proof = Sn.proof ?? new Uint8Array()), - (Zn.proofHeight = - Sn.proofHeight !== void 0 && Sn.proofHeight !== null - ? nn.Height.fromPartial(Sn.proofHeight) - : void 0), - Zn - ) - }, - } - function Cn() { - return {} - } - e.QueryConnectionParamsRequest = { - encode(Sn, Zn = In.Writer.create()) { - return Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Cn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return {} - }, - toJSON(Sn) { - return {} - }, - fromPartial(Sn) { - return Cn() - }, - } - function Tn() { - return { params: void 0 } - } - e.QueryConnectionParamsResponse = { - encode(Sn, Zn = In.Writer.create()) { - return Sn.params !== void 0 && nn.Params.encode(Sn.params, Zn.uint32(10).fork()).ldelim(), Zn - }, - decode(Sn, Zn) { - const tn = Sn instanceof In.Reader ? Sn : new In.Reader(Sn) - let En = Zn === void 0 ? tn.len : tn.pos + Zn - const Mn = Tn() - for (; tn.pos < En; ) { - const Hn = tn.uint32() - switch (Hn >>> 3) { - case 1: - Mn.params = nn.Params.decode(tn, tn.uint32()) - break - default: - tn.skipType(Hn & 7) - break - } - } - return Mn - }, - fromJSON(Sn) { - return { params: (0, gn.isSet)(Sn.params) ? nn.Params.fromJSON(Sn.params) : void 0 } - }, - toJSON(Sn) { - const Zn = {} - return ( - Sn.params !== void 0 && (Zn.params = Sn.params ? nn.Params.toJSON(Sn.params) : void 0), Zn - ) - }, - fromPartial(Sn) { - const Zn = Tn() - return ( - (Zn.params = - Sn.params !== void 0 && Sn.params !== null ? nn.Params.fromPartial(Sn.params) : void 0), - Zn - ) - }, - } - class Gn { - constructor(Zn) { - ;(this.rpc = Zn), - (this.Connection = this.Connection.bind(this)), - (this.Connections = this.Connections.bind(this)), - (this.ClientConnections = this.ClientConnections.bind(this)), - (this.ConnectionClientState = this.ConnectionClientState.bind(this)), - (this.ConnectionConsensusState = this.ConnectionConsensusState.bind(this)), - (this.ConnectionParams = this.ConnectionParams.bind(this)) - } - Connection(Zn) { - const tn = e.QueryConnectionRequest.encode(Zn).finish() - return this.rpc - .request('ibc.core.connection.v1.Query', 'Connection', tn) - .then((Mn) => e.QueryConnectionResponse.decode(new In.Reader(Mn))) - } - Connections(Zn = { pagination: void 0 }) { - const tn = e.QueryConnectionsRequest.encode(Zn).finish() - return this.rpc - .request('ibc.core.connection.v1.Query', 'Connections', tn) - .then((Mn) => e.QueryConnectionsResponse.decode(new In.Reader(Mn))) - } - ClientConnections(Zn) { - const tn = e.QueryClientConnectionsRequest.encode(Zn).finish() - return this.rpc - .request('ibc.core.connection.v1.Query', 'ClientConnections', tn) - .then((Mn) => e.QueryClientConnectionsResponse.decode(new In.Reader(Mn))) - } - ConnectionClientState(Zn) { - const tn = e.QueryConnectionClientStateRequest.encode(Zn).finish() - return this.rpc - .request('ibc.core.connection.v1.Query', 'ConnectionClientState', tn) - .then((Mn) => e.QueryConnectionClientStateResponse.decode(new In.Reader(Mn))) - } - ConnectionConsensusState(Zn) { - const tn = e.QueryConnectionConsensusStateRequest.encode(Zn).finish() - return this.rpc - .request('ibc.core.connection.v1.Query', 'ConnectionConsensusState', tn) - .then((Mn) => e.QueryConnectionConsensusStateResponse.decode(new In.Reader(Mn))) - } - ConnectionParams(Zn = {}) { - const tn = e.QueryConnectionParamsRequest.encode(Zn).finish() - return this.rpc - .request('ibc.core.connection.v1.Query', 'ConnectionParams', tn) - .then((Mn) => e.QueryConnectionParamsResponse.decode(new In.Reader(Mn))) - } - } - e.QueryClientImpl = Gn -})(query$4) -var tendermint = {}, - types$5 = {}, - proof = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (qn, Kn, an, xn) { - xn === void 0 && (xn = an) - var mn = Object.getOwnPropertyDescriptor(Kn, an) - ;(!mn || ('get' in mn ? !Kn.__esModule : mn.writable || mn.configurable)) && - (mn = { - enumerable: !0, - get: function () { - return Kn[an] - }, - }), - Object.defineProperty(qn, xn, mn) - } - : function (qn, Kn, an, xn) { - xn === void 0 && (xn = an), (qn[xn] = Kn[an]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (qn, Kn) { - Object.defineProperty(qn, 'default', { enumerable: !0, value: Kn }) - } - : function (qn, Kn) { - qn.default = Kn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (qn) { - if (qn && qn.__esModule) return qn - var Kn = {} - if (qn != null) - for (var an in qn) - an !== 'default' && Object.prototype.hasOwnProperty.call(qn, an) && o(Kn, qn, an) - return _(Kn, qn), Kn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ProofOps = e.ProofOp = e.DominoOp = e.ValueOp = e.Proof = e.protobufPackage = void 0) - const $ = helpers, - en = b(minimalExports) - e.protobufPackage = 'tendermint.crypto' - function nn() { - return { total: $.Long.ZERO, index: $.Long.ZERO, leafHash: new Uint8Array(), aunts: [] } - } - e.Proof = { - encode(qn, Kn = en.Writer.create()) { - qn.total.isZero() || Kn.uint32(8).int64(qn.total), - qn.index.isZero() || Kn.uint32(16).int64(qn.index), - qn.leafHash.length !== 0 && Kn.uint32(26).bytes(qn.leafHash) - for (const an of qn.aunts) Kn.uint32(34).bytes(an) - return Kn - }, - decode(qn, Kn) { - const an = qn instanceof en.Reader ? qn : new en.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = nn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.total = an.int64() - break - case 2: - mn.index = an.int64() - break - case 3: - mn.leafHash = an.bytes() - break - case 4: - mn.aunts.push(an.bytes()) - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - total: (0, $.isSet)(qn.total) ? $.Long.fromValue(qn.total) : $.Long.ZERO, - index: (0, $.isSet)(qn.index) ? $.Long.fromValue(qn.index) : $.Long.ZERO, - leafHash: (0, $.isSet)(qn.leafHash) - ? (0, $.bytesFromBase64)(qn.leafHash) - : new Uint8Array(), - aunts: Array.isArray(qn?.aunts) ? qn.aunts.map((Kn) => (0, $.bytesFromBase64)(Kn)) : [], - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.total !== void 0 && (Kn.total = (qn.total || $.Long.ZERO).toString()), - qn.index !== void 0 && (Kn.index = (qn.index || $.Long.ZERO).toString()), - qn.leafHash !== void 0 && - (Kn.leafHash = (0, $.base64FromBytes)( - qn.leafHash !== void 0 ? qn.leafHash : new Uint8Array(), - )), - qn.aunts - ? (Kn.aunts = qn.aunts.map((an) => - (0, $.base64FromBytes)(an !== void 0 ? an : new Uint8Array()), - )) - : (Kn.aunts = []), - Kn - ) - }, - fromPartial(qn) { - const Kn = nn() - return ( - (Kn.total = - qn.total !== void 0 && qn.total !== null ? $.Long.fromValue(qn.total) : $.Long.ZERO), - (Kn.index = - qn.index !== void 0 && qn.index !== null ? $.Long.fromValue(qn.index) : $.Long.ZERO), - (Kn.leafHash = qn.leafHash ?? new Uint8Array()), - (Kn.aunts = qn.aunts?.map((an) => an) || []), - Kn - ) - }, - } - function sn() { - return { key: new Uint8Array(), proof: void 0 } - } - e.ValueOp = { - encode(qn, Kn = en.Writer.create()) { - return ( - qn.key.length !== 0 && Kn.uint32(10).bytes(qn.key), - qn.proof !== void 0 && e.Proof.encode(qn.proof, Kn.uint32(18).fork()).ldelim(), - Kn - ) - }, - decode(qn, Kn) { - const an = qn instanceof en.Reader ? qn : new en.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = sn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.key = an.bytes() - break - case 2: - mn.proof = e.Proof.decode(an, an.uint32()) - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - key: (0, $.isSet)(qn.key) ? (0, $.bytesFromBase64)(qn.key) : new Uint8Array(), - proof: (0, $.isSet)(qn.proof) ? e.Proof.fromJSON(qn.proof) : void 0, - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.key !== void 0 && - (Kn.key = (0, $.base64FromBytes)(qn.key !== void 0 ? qn.key : new Uint8Array())), - qn.proof !== void 0 && (Kn.proof = qn.proof ? e.Proof.toJSON(qn.proof) : void 0), - Kn - ) - }, - fromPartial(qn) { - const Kn = sn() - return ( - (Kn.key = qn.key ?? new Uint8Array()), - (Kn.proof = - qn.proof !== void 0 && qn.proof !== null ? e.Proof.fromPartial(qn.proof) : void 0), - Kn - ) - }, - } - function gn() { - return { key: '', input: '', output: '' } - } - e.DominoOp = { - encode(qn, Kn = en.Writer.create()) { - return ( - qn.key !== '' && Kn.uint32(10).string(qn.key), - qn.input !== '' && Kn.uint32(18).string(qn.input), - qn.output !== '' && Kn.uint32(26).string(qn.output), - Kn - ) - }, - decode(qn, Kn) { - const an = qn instanceof en.Reader ? qn : new en.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = gn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.key = an.string() - break - case 2: - mn.input = an.string() - break - case 3: - mn.output = an.string() - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - key: (0, $.isSet)(qn.key) ? String(qn.key) : '', - input: (0, $.isSet)(qn.input) ? String(qn.input) : '', - output: (0, $.isSet)(qn.output) ? String(qn.output) : '', - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.key !== void 0 && (Kn.key = qn.key), - qn.input !== void 0 && (Kn.input = qn.input), - qn.output !== void 0 && (Kn.output = qn.output), - Kn - ) - }, - fromPartial(qn) { - const Kn = gn() - return (Kn.key = qn.key ?? ''), (Kn.input = qn.input ?? ''), (Kn.output = qn.output ?? ''), Kn - }, - } - function In() { - return { type: '', key: new Uint8Array(), data: new Uint8Array() } - } - e.ProofOp = { - encode(qn, Kn = en.Writer.create()) { - return ( - qn.type !== '' && Kn.uint32(10).string(qn.type), - qn.key.length !== 0 && Kn.uint32(18).bytes(qn.key), - qn.data.length !== 0 && Kn.uint32(26).bytes(qn.data), - Kn - ) - }, - decode(qn, Kn) { - const an = qn instanceof en.Reader ? qn : new en.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = In() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.type = an.string() - break - case 2: - mn.key = an.bytes() - break - case 3: - mn.data = an.bytes() - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { - type: (0, $.isSet)(qn.type) ? String(qn.type) : '', - key: (0, $.isSet)(qn.key) ? (0, $.bytesFromBase64)(qn.key) : new Uint8Array(), - data: (0, $.isSet)(qn.data) ? (0, $.bytesFromBase64)(qn.data) : new Uint8Array(), - } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.type !== void 0 && (Kn.type = qn.type), - qn.key !== void 0 && - (Kn.key = (0, $.base64FromBytes)(qn.key !== void 0 ? qn.key : new Uint8Array())), - qn.data !== void 0 && - (Kn.data = (0, $.base64FromBytes)(qn.data !== void 0 ? qn.data : new Uint8Array())), - Kn - ) - }, - fromPartial(qn) { - const Kn = In() - return ( - (Kn.type = qn.type ?? ''), - (Kn.key = qn.key ?? new Uint8Array()), - (Kn.data = qn.data ?? new Uint8Array()), - Kn - ) - }, - } - function Jn() { - return { ops: [] } - } - e.ProofOps = { - encode(qn, Kn = en.Writer.create()) { - for (const an of qn.ops) e.ProofOp.encode(an, Kn.uint32(10).fork()).ldelim() - return Kn - }, - decode(qn, Kn) { - const an = qn instanceof en.Reader ? qn : new en.Reader(qn) - let xn = Kn === void 0 ? an.len : an.pos + Kn - const mn = Jn() - for (; an.pos < xn; ) { - const Bn = an.uint32() - switch (Bn >>> 3) { - case 1: - mn.ops.push(e.ProofOp.decode(an, an.uint32())) - break - default: - an.skipType(Bn & 7) - break - } - } - return mn - }, - fromJSON(qn) { - return { ops: Array.isArray(qn?.ops) ? qn.ops.map((Kn) => e.ProofOp.fromJSON(Kn)) : [] } - }, - toJSON(qn) { - const Kn = {} - return ( - qn.ops - ? (Kn.ops = qn.ops.map((an) => (an ? e.ProofOp.toJSON(an) : void 0))) - : (Kn.ops = []), - Kn - ) - }, - fromPartial(qn) { - const Kn = Jn() - return (Kn.ops = qn.ops?.map((an) => e.ProofOp.fromPartial(an)) || []), Kn - }, - } -})(proof) -var types$4 = {}, - __createBinding$8 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$8 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$8 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$8(o, e, _) - return __setModuleDefault$8(o, e), o - } -Object.defineProperty(types$4, '__esModule', { value: !0 }) -types$4.Consensus = types$4.App = types$4.protobufPackage = void 0 -const helpers_1$4 = helpers, - _m0$4 = __importStar$8(minimalExports) -types$4.protobufPackage = 'tendermint.version' -function createBaseApp() { - return { protocol: helpers_1$4.Long.UZERO, software: '' } -} -types$4.App = { - encode(e, o = _m0$4.Writer.create()) { - return ( - e.protocol.isZero() || o.uint32(8).uint64(e.protocol), - e.software !== '' && o.uint32(18).string(e.software), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$4.Reader ? e : new _m0$4.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseApp() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.protocol = _.uint64() - break - case 2: - $.software = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - protocol: (0, helpers_1$4.isSet)(e.protocol) - ? helpers_1$4.Long.fromValue(e.protocol) - : helpers_1$4.Long.UZERO, - software: (0, helpers_1$4.isSet)(e.software) ? String(e.software) : '', - } - }, - toJSON(e) { - const o = {} - return ( - e.protocol !== void 0 && (o.protocol = (e.protocol || helpers_1$4.Long.UZERO).toString()), - e.software !== void 0 && (o.software = e.software), - o - ) - }, - fromPartial(e) { - const o = createBaseApp() - return ( - (o.protocol = - e.protocol !== void 0 && e.protocol !== null - ? helpers_1$4.Long.fromValue(e.protocol) - : helpers_1$4.Long.UZERO), - (o.software = e.software ?? ''), - o - ) - }, -} -function createBaseConsensus() { - return { block: helpers_1$4.Long.UZERO, app: helpers_1$4.Long.UZERO } -} -types$4.Consensus = { - encode(e, o = _m0$4.Writer.create()) { - return ( - e.block.isZero() || o.uint32(8).uint64(e.block), - e.app.isZero() || o.uint32(16).uint64(e.app), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$4.Reader ? e : new _m0$4.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseConsensus() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.block = _.uint64() - break - case 2: - $.app = _.uint64() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - block: (0, helpers_1$4.isSet)(e.block) - ? helpers_1$4.Long.fromValue(e.block) - : helpers_1$4.Long.UZERO, - app: (0, helpers_1$4.isSet)(e.app) - ? helpers_1$4.Long.fromValue(e.app) - : helpers_1$4.Long.UZERO, - } - }, - toJSON(e) { - const o = {} - return ( - e.block !== void 0 && (o.block = (e.block || helpers_1$4.Long.UZERO).toString()), - e.app !== void 0 && (o.app = (e.app || helpers_1$4.Long.UZERO).toString()), - o - ) - }, - fromPartial(e) { - const o = createBaseConsensus() - return ( - (o.block = - e.block !== void 0 && e.block !== null - ? helpers_1$4.Long.fromValue(e.block) - : helpers_1$4.Long.UZERO), - (o.app = - e.app !== void 0 && e.app !== null - ? helpers_1$4.Long.fromValue(e.app) - : helpers_1$4.Long.UZERO), - o - ) - }, -} -var validator$2 = {}, - keys = {}, - __createBinding$7 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$7 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$7 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$7(o, e, _) - return __setModuleDefault$7(o, e), o - } -Object.defineProperty(keys, '__esModule', { value: !0 }) -keys.PublicKey = keys.protobufPackage = void 0 -const _m0$3 = __importStar$7(minimalExports), - helpers_1$3 = helpers -keys.protobufPackage = 'tendermint.crypto' -function createBasePublicKey() { - return { ed25519: void 0, secp256k1: void 0 } -} -keys.PublicKey = { - encode(e, o = _m0$3.Writer.create()) { - return ( - e.ed25519 !== void 0 && o.uint32(10).bytes(e.ed25519), - e.secp256k1 !== void 0 && o.uint32(18).bytes(e.secp256k1), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$3.Reader ? e : new _m0$3.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBasePublicKey() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.ed25519 = _.bytes() - break - case 2: - $.secp256k1 = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - ed25519: (0, helpers_1$3.isSet)(e.ed25519) - ? (0, helpers_1$3.bytesFromBase64)(e.ed25519) - : void 0, - secp256k1: (0, helpers_1$3.isSet)(e.secp256k1) - ? (0, helpers_1$3.bytesFromBase64)(e.secp256k1) - : void 0, - } - }, - toJSON(e) { - const o = {} - return ( - e.ed25519 !== void 0 && - (o.ed25519 = e.ed25519 !== void 0 ? (0, helpers_1$3.base64FromBytes)(e.ed25519) : void 0), - e.secp256k1 !== void 0 && - (o.secp256k1 = - e.secp256k1 !== void 0 ? (0, helpers_1$3.base64FromBytes)(e.secp256k1) : void 0), - o - ) - }, - fromPartial(e) { - const o = createBasePublicKey() - return (o.ed25519 = e.ed25519 ?? void 0), (o.secp256k1 = e.secp256k1 ?? void 0), o - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Jn, qn, Kn, an) { - an === void 0 && (an = Kn) - var xn = Object.getOwnPropertyDescriptor(qn, Kn) - ;(!xn || ('get' in xn ? !qn.__esModule : xn.writable || xn.configurable)) && - (xn = { - enumerable: !0, - get: function () { - return qn[Kn] - }, - }), - Object.defineProperty(Jn, an, xn) - } - : function (Jn, qn, Kn, an) { - an === void 0 && (an = Kn), (Jn[an] = qn[Kn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Jn, qn) { - Object.defineProperty(Jn, 'default', { enumerable: !0, value: qn }) - } - : function (Jn, qn) { - Jn.default = qn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Jn) { - if (Jn && Jn.__esModule) return Jn - var qn = {} - if (Jn != null) - for (var Kn in Jn) - Kn !== 'default' && Object.prototype.hasOwnProperty.call(Jn, Kn) && o(qn, Jn, Kn) - return _(qn, Jn), qn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SimpleValidator = e.Validator = e.ValidatorSet = e.protobufPackage = void 0) - const $ = keys, - en = helpers, - nn = b(minimalExports) - e.protobufPackage = 'tendermint.types' - function sn() { - return { validators: [], proposer: void 0, totalVotingPower: en.Long.ZERO } - } - e.ValidatorSet = { - encode(Jn, qn = nn.Writer.create()) { - for (const Kn of Jn.validators) e.Validator.encode(Kn, qn.uint32(10).fork()).ldelim() - return ( - Jn.proposer !== void 0 && e.Validator.encode(Jn.proposer, qn.uint32(18).fork()).ldelim(), - Jn.totalVotingPower.isZero() || qn.uint32(24).int64(Jn.totalVotingPower), - qn - ) - }, - decode(Jn, qn) { - const Kn = Jn instanceof nn.Reader ? Jn : new nn.Reader(Jn) - let an = qn === void 0 ? Kn.len : Kn.pos + qn - const xn = sn() - for (; Kn.pos < an; ) { - const mn = Kn.uint32() - switch (mn >>> 3) { - case 1: - xn.validators.push(e.Validator.decode(Kn, Kn.uint32())) - break - case 2: - xn.proposer = e.Validator.decode(Kn, Kn.uint32()) - break - case 3: - xn.totalVotingPower = Kn.int64() - break - default: - Kn.skipType(mn & 7) - break - } - } - return xn - }, - fromJSON(Jn) { - return { - validators: Array.isArray(Jn?.validators) - ? Jn.validators.map((qn) => e.Validator.fromJSON(qn)) - : [], - proposer: (0, en.isSet)(Jn.proposer) ? e.Validator.fromJSON(Jn.proposer) : void 0, - totalVotingPower: (0, en.isSet)(Jn.totalVotingPower) - ? en.Long.fromValue(Jn.totalVotingPower) - : en.Long.ZERO, - } - }, - toJSON(Jn) { - const qn = {} - return ( - Jn.validators - ? (qn.validators = Jn.validators.map((Kn) => (Kn ? e.Validator.toJSON(Kn) : void 0))) - : (qn.validators = []), - Jn.proposer !== void 0 && - (qn.proposer = Jn.proposer ? e.Validator.toJSON(Jn.proposer) : void 0), - Jn.totalVotingPower !== void 0 && - (qn.totalVotingPower = (Jn.totalVotingPower || en.Long.ZERO).toString()), - qn - ) - }, - fromPartial(Jn) { - const qn = sn() - return ( - (qn.validators = Jn.validators?.map((Kn) => e.Validator.fromPartial(Kn)) || []), - (qn.proposer = - Jn.proposer !== void 0 && Jn.proposer !== null - ? e.Validator.fromPartial(Jn.proposer) - : void 0), - (qn.totalVotingPower = - Jn.totalVotingPower !== void 0 && Jn.totalVotingPower !== null - ? en.Long.fromValue(Jn.totalVotingPower) - : en.Long.ZERO), - qn - ) - }, - } - function gn() { - return { - address: new Uint8Array(), - pubKey: void 0, - votingPower: en.Long.ZERO, - proposerPriority: en.Long.ZERO, - } - } - e.Validator = { - encode(Jn, qn = nn.Writer.create()) { - return ( - Jn.address.length !== 0 && qn.uint32(10).bytes(Jn.address), - Jn.pubKey !== void 0 && $.PublicKey.encode(Jn.pubKey, qn.uint32(18).fork()).ldelim(), - Jn.votingPower.isZero() || qn.uint32(24).int64(Jn.votingPower), - Jn.proposerPriority.isZero() || qn.uint32(32).int64(Jn.proposerPriority), - qn - ) - }, - decode(Jn, qn) { - const Kn = Jn instanceof nn.Reader ? Jn : new nn.Reader(Jn) - let an = qn === void 0 ? Kn.len : Kn.pos + qn - const xn = gn() - for (; Kn.pos < an; ) { - const mn = Kn.uint32() - switch (mn >>> 3) { - case 1: - xn.address = Kn.bytes() - break - case 2: - xn.pubKey = $.PublicKey.decode(Kn, Kn.uint32()) - break - case 3: - xn.votingPower = Kn.int64() - break - case 4: - xn.proposerPriority = Kn.int64() - break - default: - Kn.skipType(mn & 7) - break - } - } - return xn - }, - fromJSON(Jn) { - return { - address: (0, en.isSet)(Jn.address) ? (0, en.bytesFromBase64)(Jn.address) : new Uint8Array(), - pubKey: (0, en.isSet)(Jn.pubKey) ? $.PublicKey.fromJSON(Jn.pubKey) : void 0, - votingPower: (0, en.isSet)(Jn.votingPower) - ? en.Long.fromValue(Jn.votingPower) - : en.Long.ZERO, - proposerPriority: (0, en.isSet)(Jn.proposerPriority) - ? en.Long.fromValue(Jn.proposerPriority) - : en.Long.ZERO, - } - }, - toJSON(Jn) { - const qn = {} - return ( - Jn.address !== void 0 && - (qn.address = (0, en.base64FromBytes)( - Jn.address !== void 0 ? Jn.address : new Uint8Array(), - )), - Jn.pubKey !== void 0 && (qn.pubKey = Jn.pubKey ? $.PublicKey.toJSON(Jn.pubKey) : void 0), - Jn.votingPower !== void 0 && (qn.votingPower = (Jn.votingPower || en.Long.ZERO).toString()), - Jn.proposerPriority !== void 0 && - (qn.proposerPriority = (Jn.proposerPriority || en.Long.ZERO).toString()), - qn - ) - }, - fromPartial(Jn) { - const qn = gn() - return ( - (qn.address = Jn.address ?? new Uint8Array()), - (qn.pubKey = - Jn.pubKey !== void 0 && Jn.pubKey !== null ? $.PublicKey.fromPartial(Jn.pubKey) : void 0), - (qn.votingPower = - Jn.votingPower !== void 0 && Jn.votingPower !== null - ? en.Long.fromValue(Jn.votingPower) - : en.Long.ZERO), - (qn.proposerPriority = - Jn.proposerPriority !== void 0 && Jn.proposerPriority !== null - ? en.Long.fromValue(Jn.proposerPriority) - : en.Long.ZERO), - qn - ) - }, - } - function In() { - return { pubKey: void 0, votingPower: en.Long.ZERO } - } - e.SimpleValidator = { - encode(Jn, qn = nn.Writer.create()) { - return ( - Jn.pubKey !== void 0 && $.PublicKey.encode(Jn.pubKey, qn.uint32(10).fork()).ldelim(), - Jn.votingPower.isZero() || qn.uint32(16).int64(Jn.votingPower), - qn - ) - }, - decode(Jn, qn) { - const Kn = Jn instanceof nn.Reader ? Jn : new nn.Reader(Jn) - let an = qn === void 0 ? Kn.len : Kn.pos + qn - const xn = In() - for (; Kn.pos < an; ) { - const mn = Kn.uint32() - switch (mn >>> 3) { - case 1: - xn.pubKey = $.PublicKey.decode(Kn, Kn.uint32()) - break - case 2: - xn.votingPower = Kn.int64() - break - default: - Kn.skipType(mn & 7) - break - } - } - return xn - }, - fromJSON(Jn) { - return { - pubKey: (0, en.isSet)(Jn.pubKey) ? $.PublicKey.fromJSON(Jn.pubKey) : void 0, - votingPower: (0, en.isSet)(Jn.votingPower) - ? en.Long.fromValue(Jn.votingPower) - : en.Long.ZERO, - } - }, - toJSON(Jn) { - const qn = {} - return ( - Jn.pubKey !== void 0 && (qn.pubKey = Jn.pubKey ? $.PublicKey.toJSON(Jn.pubKey) : void 0), - Jn.votingPower !== void 0 && (qn.votingPower = (Jn.votingPower || en.Long.ZERO).toString()), - qn - ) - }, - fromPartial(Jn) { - const qn = In() - return ( - (qn.pubKey = - Jn.pubKey !== void 0 && Jn.pubKey !== null ? $.PublicKey.fromPartial(Jn.pubKey) : void 0), - (qn.votingPower = - Jn.votingPower !== void 0 && Jn.votingPower !== null - ? en.Long.fromValue(Jn.votingPower) - : en.Long.ZERO), - qn - ) - }, - } -})(validator$2) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (un, dn, Nn, fn) { - fn === void 0 && (fn = Nn) - var _n = Object.getOwnPropertyDescriptor(dn, Nn) - ;(!_n || ('get' in _n ? !dn.__esModule : _n.writable || _n.configurable)) && - (_n = { - enumerable: !0, - get: function () { - return dn[Nn] - }, - }), - Object.defineProperty(un, fn, _n) - } - : function (un, dn, Nn, fn) { - fn === void 0 && (fn = Nn), (un[fn] = dn[Nn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (un, dn) { - Object.defineProperty(un, 'default', { enumerable: !0, value: dn }) - } - : function (un, dn) { - un.default = dn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (un) { - if (un && un.__esModule) return un - var dn = {} - if (un != null) - for (var Nn in un) - Nn !== 'default' && Object.prototype.hasOwnProperty.call(un, Nn) && o(dn, un, Nn) - return _(dn, un), dn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.TxProof = - e.BlockMeta = - e.LightBlock = - e.SignedHeader = - e.Proposal = - e.CommitSig = - e.Commit = - e.Vote = - e.Data = - e.Header = - e.BlockID = - e.Part = - e.PartSetHeader = - e.signedMsgTypeToJSON = - e.signedMsgTypeFromJSON = - e.SignedMsgType = - e.blockIDFlagToJSON = - e.blockIDFlagFromJSON = - e.BlockIDFlag = - e.protobufPackage = - void 0) - const $ = proof, - en = types$4, - nn = timestamp, - sn = validator$2, - gn = helpers, - In = b(minimalExports) - e.protobufPackage = 'tendermint.types' - var Jn - ;(function (un) { - ;(un[(un.BLOCK_ID_FLAG_UNKNOWN = 0)] = 'BLOCK_ID_FLAG_UNKNOWN'), - (un[(un.BLOCK_ID_FLAG_ABSENT = 1)] = 'BLOCK_ID_FLAG_ABSENT'), - (un[(un.BLOCK_ID_FLAG_COMMIT = 2)] = 'BLOCK_ID_FLAG_COMMIT'), - (un[(un.BLOCK_ID_FLAG_NIL = 3)] = 'BLOCK_ID_FLAG_NIL'), - (un[(un.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Jn = e.BlockIDFlag || (e.BlockIDFlag = {}))) - function qn(un) { - switch (un) { - case 0: - case 'BLOCK_ID_FLAG_UNKNOWN': - return Jn.BLOCK_ID_FLAG_UNKNOWN - case 1: - case 'BLOCK_ID_FLAG_ABSENT': - return Jn.BLOCK_ID_FLAG_ABSENT - case 2: - case 'BLOCK_ID_FLAG_COMMIT': - return Jn.BLOCK_ID_FLAG_COMMIT - case 3: - case 'BLOCK_ID_FLAG_NIL': - return Jn.BLOCK_ID_FLAG_NIL - case -1: - case 'UNRECOGNIZED': - default: - return Jn.UNRECOGNIZED - } - } - e.blockIDFlagFromJSON = qn - function Kn(un) { - switch (un) { - case Jn.BLOCK_ID_FLAG_UNKNOWN: - return 'BLOCK_ID_FLAG_UNKNOWN' - case Jn.BLOCK_ID_FLAG_ABSENT: - return 'BLOCK_ID_FLAG_ABSENT' - case Jn.BLOCK_ID_FLAG_COMMIT: - return 'BLOCK_ID_FLAG_COMMIT' - case Jn.BLOCK_ID_FLAG_NIL: - return 'BLOCK_ID_FLAG_NIL' - case Jn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.blockIDFlagToJSON = Kn - var an - ;(function (un) { - ;(un[(un.SIGNED_MSG_TYPE_UNKNOWN = 0)] = 'SIGNED_MSG_TYPE_UNKNOWN'), - (un[(un.SIGNED_MSG_TYPE_PREVOTE = 1)] = 'SIGNED_MSG_TYPE_PREVOTE'), - (un[(un.SIGNED_MSG_TYPE_PRECOMMIT = 2)] = 'SIGNED_MSG_TYPE_PRECOMMIT'), - (un[(un.SIGNED_MSG_TYPE_PROPOSAL = 32)] = 'SIGNED_MSG_TYPE_PROPOSAL'), - (un[(un.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((an = e.SignedMsgType || (e.SignedMsgType = {}))) - function xn(un) { - switch (un) { - case 0: - case 'SIGNED_MSG_TYPE_UNKNOWN': - return an.SIGNED_MSG_TYPE_UNKNOWN - case 1: - case 'SIGNED_MSG_TYPE_PREVOTE': - return an.SIGNED_MSG_TYPE_PREVOTE - case 2: - case 'SIGNED_MSG_TYPE_PRECOMMIT': - return an.SIGNED_MSG_TYPE_PRECOMMIT - case 32: - case 'SIGNED_MSG_TYPE_PROPOSAL': - return an.SIGNED_MSG_TYPE_PROPOSAL - case -1: - case 'UNRECOGNIZED': - default: - return an.UNRECOGNIZED - } - } - e.signedMsgTypeFromJSON = xn - function mn(un) { - switch (un) { - case an.SIGNED_MSG_TYPE_UNKNOWN: - return 'SIGNED_MSG_TYPE_UNKNOWN' - case an.SIGNED_MSG_TYPE_PREVOTE: - return 'SIGNED_MSG_TYPE_PREVOTE' - case an.SIGNED_MSG_TYPE_PRECOMMIT: - return 'SIGNED_MSG_TYPE_PRECOMMIT' - case an.SIGNED_MSG_TYPE_PROPOSAL: - return 'SIGNED_MSG_TYPE_PROPOSAL' - case an.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.signedMsgTypeToJSON = mn - function Bn() { - return { total: 0, hash: new Uint8Array() } - } - e.PartSetHeader = { - encode(un, dn = In.Writer.create()) { - return ( - un.total !== 0 && dn.uint32(8).uint32(un.total), - un.hash.length !== 0 && dn.uint32(18).bytes(un.hash), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Bn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.total = Nn.uint32() - break - case 2: - _n.hash = Nn.bytes() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - total: (0, gn.isSet)(un.total) ? Number(un.total) : 0, - hash: (0, gn.isSet)(un.hash) ? (0, gn.bytesFromBase64)(un.hash) : new Uint8Array(), - } - }, - toJSON(un) { - const dn = {} - return ( - un.total !== void 0 && (dn.total = Math.round(un.total)), - un.hash !== void 0 && - (dn.hash = (0, gn.base64FromBytes)(un.hash !== void 0 ? un.hash : new Uint8Array())), - dn - ) - }, - fromPartial(un) { - const dn = Bn() - return (dn.total = un.total ?? 0), (dn.hash = un.hash ?? new Uint8Array()), dn - }, - } - function kn() { - return { index: 0, bytes: new Uint8Array(), proof: void 0 } - } - e.Part = { - encode(un, dn = In.Writer.create()) { - return ( - un.index !== 0 && dn.uint32(8).uint32(un.index), - un.bytes.length !== 0 && dn.uint32(18).bytes(un.bytes), - un.proof !== void 0 && $.Proof.encode(un.proof, dn.uint32(26).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = kn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.index = Nn.uint32() - break - case 2: - _n.bytes = Nn.bytes() - break - case 3: - _n.proof = $.Proof.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - index: (0, gn.isSet)(un.index) ? Number(un.index) : 0, - bytes: (0, gn.isSet)(un.bytes) ? (0, gn.bytesFromBase64)(un.bytes) : new Uint8Array(), - proof: (0, gn.isSet)(un.proof) ? $.Proof.fromJSON(un.proof) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.index !== void 0 && (dn.index = Math.round(un.index)), - un.bytes !== void 0 && - (dn.bytes = (0, gn.base64FromBytes)(un.bytes !== void 0 ? un.bytes : new Uint8Array())), - un.proof !== void 0 && (dn.proof = un.proof ? $.Proof.toJSON(un.proof) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = kn() - return ( - (dn.index = un.index ?? 0), - (dn.bytes = un.bytes ?? new Uint8Array()), - (dn.proof = - un.proof !== void 0 && un.proof !== null ? $.Proof.fromPartial(un.proof) : void 0), - dn - ) - }, - } - function ln() { - return { hash: new Uint8Array(), partSetHeader: void 0 } - } - e.BlockID = { - encode(un, dn = In.Writer.create()) { - return ( - un.hash.length !== 0 && dn.uint32(10).bytes(un.hash), - un.partSetHeader !== void 0 && - e.PartSetHeader.encode(un.partSetHeader, dn.uint32(18).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = ln() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.hash = Nn.bytes() - break - case 2: - _n.partSetHeader = e.PartSetHeader.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - hash: (0, gn.isSet)(un.hash) ? (0, gn.bytesFromBase64)(un.hash) : new Uint8Array(), - partSetHeader: (0, gn.isSet)(un.partSetHeader) - ? e.PartSetHeader.fromJSON(un.partSetHeader) - : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.hash !== void 0 && - (dn.hash = (0, gn.base64FromBytes)(un.hash !== void 0 ? un.hash : new Uint8Array())), - un.partSetHeader !== void 0 && - (dn.partSetHeader = un.partSetHeader ? e.PartSetHeader.toJSON(un.partSetHeader) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = ln() - return ( - (dn.hash = un.hash ?? new Uint8Array()), - (dn.partSetHeader = - un.partSetHeader !== void 0 && un.partSetHeader !== null - ? e.PartSetHeader.fromPartial(un.partSetHeader) - : void 0), - dn - ) - }, - } - function yn() { - return { - version: void 0, - chainId: '', - height: gn.Long.ZERO, - time: void 0, - lastBlockId: void 0, - lastCommitHash: new Uint8Array(), - dataHash: new Uint8Array(), - validatorsHash: new Uint8Array(), - nextValidatorsHash: new Uint8Array(), - consensusHash: new Uint8Array(), - appHash: new Uint8Array(), - lastResultsHash: new Uint8Array(), - evidenceHash: new Uint8Array(), - proposerAddress: new Uint8Array(), - } - } - e.Header = { - encode(un, dn = In.Writer.create()) { - return ( - un.version !== void 0 && en.Consensus.encode(un.version, dn.uint32(10).fork()).ldelim(), - un.chainId !== '' && dn.uint32(18).string(un.chainId), - un.height.isZero() || dn.uint32(24).int64(un.height), - un.time !== void 0 && nn.Timestamp.encode(un.time, dn.uint32(34).fork()).ldelim(), - un.lastBlockId !== void 0 && - e.BlockID.encode(un.lastBlockId, dn.uint32(42).fork()).ldelim(), - un.lastCommitHash.length !== 0 && dn.uint32(50).bytes(un.lastCommitHash), - un.dataHash.length !== 0 && dn.uint32(58).bytes(un.dataHash), - un.validatorsHash.length !== 0 && dn.uint32(66).bytes(un.validatorsHash), - un.nextValidatorsHash.length !== 0 && dn.uint32(74).bytes(un.nextValidatorsHash), - un.consensusHash.length !== 0 && dn.uint32(82).bytes(un.consensusHash), - un.appHash.length !== 0 && dn.uint32(90).bytes(un.appHash), - un.lastResultsHash.length !== 0 && dn.uint32(98).bytes(un.lastResultsHash), - un.evidenceHash.length !== 0 && dn.uint32(106).bytes(un.evidenceHash), - un.proposerAddress.length !== 0 && dn.uint32(114).bytes(un.proposerAddress), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = yn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.version = en.Consensus.decode(Nn, Nn.uint32()) - break - case 2: - _n.chainId = Nn.string() - break - case 3: - _n.height = Nn.int64() - break - case 4: - _n.time = nn.Timestamp.decode(Nn, Nn.uint32()) - break - case 5: - _n.lastBlockId = e.BlockID.decode(Nn, Nn.uint32()) - break - case 6: - _n.lastCommitHash = Nn.bytes() - break - case 7: - _n.dataHash = Nn.bytes() - break - case 8: - _n.validatorsHash = Nn.bytes() - break - case 9: - _n.nextValidatorsHash = Nn.bytes() - break - case 10: - _n.consensusHash = Nn.bytes() - break - case 11: - _n.appHash = Nn.bytes() - break - case 12: - _n.lastResultsHash = Nn.bytes() - break - case 13: - _n.evidenceHash = Nn.bytes() - break - case 14: - _n.proposerAddress = Nn.bytes() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - version: (0, gn.isSet)(un.version) ? en.Consensus.fromJSON(un.version) : void 0, - chainId: (0, gn.isSet)(un.chainId) ? String(un.chainId) : '', - height: (0, gn.isSet)(un.height) ? gn.Long.fromValue(un.height) : gn.Long.ZERO, - time: (0, gn.isSet)(un.time) ? (0, gn.fromJsonTimestamp)(un.time) : void 0, - lastBlockId: (0, gn.isSet)(un.lastBlockId) ? e.BlockID.fromJSON(un.lastBlockId) : void 0, - lastCommitHash: (0, gn.isSet)(un.lastCommitHash) - ? (0, gn.bytesFromBase64)(un.lastCommitHash) - : new Uint8Array(), - dataHash: (0, gn.isSet)(un.dataHash) - ? (0, gn.bytesFromBase64)(un.dataHash) - : new Uint8Array(), - validatorsHash: (0, gn.isSet)(un.validatorsHash) - ? (0, gn.bytesFromBase64)(un.validatorsHash) - : new Uint8Array(), - nextValidatorsHash: (0, gn.isSet)(un.nextValidatorsHash) - ? (0, gn.bytesFromBase64)(un.nextValidatorsHash) - : new Uint8Array(), - consensusHash: (0, gn.isSet)(un.consensusHash) - ? (0, gn.bytesFromBase64)(un.consensusHash) - : new Uint8Array(), - appHash: (0, gn.isSet)(un.appHash) ? (0, gn.bytesFromBase64)(un.appHash) : new Uint8Array(), - lastResultsHash: (0, gn.isSet)(un.lastResultsHash) - ? (0, gn.bytesFromBase64)(un.lastResultsHash) - : new Uint8Array(), - evidenceHash: (0, gn.isSet)(un.evidenceHash) - ? (0, gn.bytesFromBase64)(un.evidenceHash) - : new Uint8Array(), - proposerAddress: (0, gn.isSet)(un.proposerAddress) - ? (0, gn.bytesFromBase64)(un.proposerAddress) - : new Uint8Array(), - } - }, - toJSON(un) { - const dn = {} - return ( - un.version !== void 0 && - (dn.version = un.version ? en.Consensus.toJSON(un.version) : void 0), - un.chainId !== void 0 && (dn.chainId = un.chainId), - un.height !== void 0 && (dn.height = (un.height || gn.Long.ZERO).toString()), - un.time !== void 0 && (dn.time = (0, gn.fromTimestamp)(un.time).toISOString()), - un.lastBlockId !== void 0 && - (dn.lastBlockId = un.lastBlockId ? e.BlockID.toJSON(un.lastBlockId) : void 0), - un.lastCommitHash !== void 0 && - (dn.lastCommitHash = (0, gn.base64FromBytes)( - un.lastCommitHash !== void 0 ? un.lastCommitHash : new Uint8Array(), - )), - un.dataHash !== void 0 && - (dn.dataHash = (0, gn.base64FromBytes)( - un.dataHash !== void 0 ? un.dataHash : new Uint8Array(), - )), - un.validatorsHash !== void 0 && - (dn.validatorsHash = (0, gn.base64FromBytes)( - un.validatorsHash !== void 0 ? un.validatorsHash : new Uint8Array(), - )), - un.nextValidatorsHash !== void 0 && - (dn.nextValidatorsHash = (0, gn.base64FromBytes)( - un.nextValidatorsHash !== void 0 ? un.nextValidatorsHash : new Uint8Array(), - )), - un.consensusHash !== void 0 && - (dn.consensusHash = (0, gn.base64FromBytes)( - un.consensusHash !== void 0 ? un.consensusHash : new Uint8Array(), - )), - un.appHash !== void 0 && - (dn.appHash = (0, gn.base64FromBytes)( - un.appHash !== void 0 ? un.appHash : new Uint8Array(), - )), - un.lastResultsHash !== void 0 && - (dn.lastResultsHash = (0, gn.base64FromBytes)( - un.lastResultsHash !== void 0 ? un.lastResultsHash : new Uint8Array(), - )), - un.evidenceHash !== void 0 && - (dn.evidenceHash = (0, gn.base64FromBytes)( - un.evidenceHash !== void 0 ? un.evidenceHash : new Uint8Array(), - )), - un.proposerAddress !== void 0 && - (dn.proposerAddress = (0, gn.base64FromBytes)( - un.proposerAddress !== void 0 ? un.proposerAddress : new Uint8Array(), - )), - dn - ) - }, - fromPartial(un) { - const dn = yn() - return ( - (dn.version = - un.version !== void 0 && un.version !== null - ? en.Consensus.fromPartial(un.version) - : void 0), - (dn.chainId = un.chainId ?? ''), - (dn.height = - un.height !== void 0 && un.height !== null ? gn.Long.fromValue(un.height) : gn.Long.ZERO), - (dn.time = - un.time !== void 0 && un.time !== null ? nn.Timestamp.fromPartial(un.time) : void 0), - (dn.lastBlockId = - un.lastBlockId !== void 0 && un.lastBlockId !== null - ? e.BlockID.fromPartial(un.lastBlockId) - : void 0), - (dn.lastCommitHash = un.lastCommitHash ?? new Uint8Array()), - (dn.dataHash = un.dataHash ?? new Uint8Array()), - (dn.validatorsHash = un.validatorsHash ?? new Uint8Array()), - (dn.nextValidatorsHash = un.nextValidatorsHash ?? new Uint8Array()), - (dn.consensusHash = un.consensusHash ?? new Uint8Array()), - (dn.appHash = un.appHash ?? new Uint8Array()), - (dn.lastResultsHash = un.lastResultsHash ?? new Uint8Array()), - (dn.evidenceHash = un.evidenceHash ?? new Uint8Array()), - (dn.proposerAddress = un.proposerAddress ?? new Uint8Array()), - dn - ) - }, - } - function Cn() { - return { txs: [] } - } - e.Data = { - encode(un, dn = In.Writer.create()) { - for (const Nn of un.txs) dn.uint32(10).bytes(Nn) - return dn - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Cn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.txs.push(Nn.bytes()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { txs: Array.isArray(un?.txs) ? un.txs.map((dn) => (0, gn.bytesFromBase64)(dn)) : [] } - }, - toJSON(un) { - const dn = {} - return ( - un.txs - ? (dn.txs = un.txs.map((Nn) => - (0, gn.base64FromBytes)(Nn !== void 0 ? Nn : new Uint8Array()), - )) - : (dn.txs = []), - dn - ) - }, - fromPartial(un) { - const dn = Cn() - return (dn.txs = un.txs?.map((Nn) => Nn) || []), dn - }, - } - function Tn() { - return { - type: 0, - height: gn.Long.ZERO, - round: 0, - blockId: void 0, - timestamp: void 0, - validatorAddress: new Uint8Array(), - validatorIndex: 0, - signature: new Uint8Array(), - } - } - e.Vote = { - encode(un, dn = In.Writer.create()) { - return ( - un.type !== 0 && dn.uint32(8).int32(un.type), - un.height.isZero() || dn.uint32(16).int64(un.height), - un.round !== 0 && dn.uint32(24).int32(un.round), - un.blockId !== void 0 && e.BlockID.encode(un.blockId, dn.uint32(34).fork()).ldelim(), - un.timestamp !== void 0 && nn.Timestamp.encode(un.timestamp, dn.uint32(42).fork()).ldelim(), - un.validatorAddress.length !== 0 && dn.uint32(50).bytes(un.validatorAddress), - un.validatorIndex !== 0 && dn.uint32(56).int32(un.validatorIndex), - un.signature.length !== 0 && dn.uint32(66).bytes(un.signature), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Tn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.type = Nn.int32() - break - case 2: - _n.height = Nn.int64() - break - case 3: - _n.round = Nn.int32() - break - case 4: - _n.blockId = e.BlockID.decode(Nn, Nn.uint32()) - break - case 5: - _n.timestamp = nn.Timestamp.decode(Nn, Nn.uint32()) - break - case 6: - _n.validatorAddress = Nn.bytes() - break - case 7: - _n.validatorIndex = Nn.int32() - break - case 8: - _n.signature = Nn.bytes() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - type: (0, gn.isSet)(un.type) ? xn(un.type) : 0, - height: (0, gn.isSet)(un.height) ? gn.Long.fromValue(un.height) : gn.Long.ZERO, - round: (0, gn.isSet)(un.round) ? Number(un.round) : 0, - blockId: (0, gn.isSet)(un.blockId) ? e.BlockID.fromJSON(un.blockId) : void 0, - timestamp: (0, gn.isSet)(un.timestamp) ? (0, gn.fromJsonTimestamp)(un.timestamp) : void 0, - validatorAddress: (0, gn.isSet)(un.validatorAddress) - ? (0, gn.bytesFromBase64)(un.validatorAddress) - : new Uint8Array(), - validatorIndex: (0, gn.isSet)(un.validatorIndex) ? Number(un.validatorIndex) : 0, - signature: (0, gn.isSet)(un.signature) - ? (0, gn.bytesFromBase64)(un.signature) - : new Uint8Array(), - } - }, - toJSON(un) { - const dn = {} - return ( - un.type !== void 0 && (dn.type = mn(un.type)), - un.height !== void 0 && (dn.height = (un.height || gn.Long.ZERO).toString()), - un.round !== void 0 && (dn.round = Math.round(un.round)), - un.blockId !== void 0 && (dn.blockId = un.blockId ? e.BlockID.toJSON(un.blockId) : void 0), - un.timestamp !== void 0 && - (dn.timestamp = (0, gn.fromTimestamp)(un.timestamp).toISOString()), - un.validatorAddress !== void 0 && - (dn.validatorAddress = (0, gn.base64FromBytes)( - un.validatorAddress !== void 0 ? un.validatorAddress : new Uint8Array(), - )), - un.validatorIndex !== void 0 && (dn.validatorIndex = Math.round(un.validatorIndex)), - un.signature !== void 0 && - (dn.signature = (0, gn.base64FromBytes)( - un.signature !== void 0 ? un.signature : new Uint8Array(), - )), - dn - ) - }, - fromPartial(un) { - const dn = Tn() - return ( - (dn.type = un.type ?? 0), - (dn.height = - un.height !== void 0 && un.height !== null ? gn.Long.fromValue(un.height) : gn.Long.ZERO), - (dn.round = un.round ?? 0), - (dn.blockId = - un.blockId !== void 0 && un.blockId !== null - ? e.BlockID.fromPartial(un.blockId) - : void 0), - (dn.timestamp = - un.timestamp !== void 0 && un.timestamp !== null - ? nn.Timestamp.fromPartial(un.timestamp) - : void 0), - (dn.validatorAddress = un.validatorAddress ?? new Uint8Array()), - (dn.validatorIndex = un.validatorIndex ?? 0), - (dn.signature = un.signature ?? new Uint8Array()), - dn - ) - }, - } - function Gn() { - return { height: gn.Long.ZERO, round: 0, blockId: void 0, signatures: [] } - } - e.Commit = { - encode(un, dn = In.Writer.create()) { - un.height.isZero() || dn.uint32(8).int64(un.height), - un.round !== 0 && dn.uint32(16).int32(un.round), - un.blockId !== void 0 && e.BlockID.encode(un.blockId, dn.uint32(26).fork()).ldelim() - for (const Nn of un.signatures) e.CommitSig.encode(Nn, dn.uint32(34).fork()).ldelim() - return dn - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Gn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.height = Nn.int64() - break - case 2: - _n.round = Nn.int32() - break - case 3: - _n.blockId = e.BlockID.decode(Nn, Nn.uint32()) - break - case 4: - _n.signatures.push(e.CommitSig.decode(Nn, Nn.uint32())) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - height: (0, gn.isSet)(un.height) ? gn.Long.fromValue(un.height) : gn.Long.ZERO, - round: (0, gn.isSet)(un.round) ? Number(un.round) : 0, - blockId: (0, gn.isSet)(un.blockId) ? e.BlockID.fromJSON(un.blockId) : void 0, - signatures: Array.isArray(un?.signatures) - ? un.signatures.map((dn) => e.CommitSig.fromJSON(dn)) - : [], - } - }, - toJSON(un) { - const dn = {} - return ( - un.height !== void 0 && (dn.height = (un.height || gn.Long.ZERO).toString()), - un.round !== void 0 && (dn.round = Math.round(un.round)), - un.blockId !== void 0 && (dn.blockId = un.blockId ? e.BlockID.toJSON(un.blockId) : void 0), - un.signatures - ? (dn.signatures = un.signatures.map((Nn) => (Nn ? e.CommitSig.toJSON(Nn) : void 0))) - : (dn.signatures = []), - dn - ) - }, - fromPartial(un) { - const dn = Gn() - return ( - (dn.height = - un.height !== void 0 && un.height !== null ? gn.Long.fromValue(un.height) : gn.Long.ZERO), - (dn.round = un.round ?? 0), - (dn.blockId = - un.blockId !== void 0 && un.blockId !== null - ? e.BlockID.fromPartial(un.blockId) - : void 0), - (dn.signatures = un.signatures?.map((Nn) => e.CommitSig.fromPartial(Nn)) || []), - dn - ) - }, - } - function Sn() { - return { - blockIdFlag: 0, - validatorAddress: new Uint8Array(), - timestamp: void 0, - signature: new Uint8Array(), - } - } - e.CommitSig = { - encode(un, dn = In.Writer.create()) { - return ( - un.blockIdFlag !== 0 && dn.uint32(8).int32(un.blockIdFlag), - un.validatorAddress.length !== 0 && dn.uint32(18).bytes(un.validatorAddress), - un.timestamp !== void 0 && nn.Timestamp.encode(un.timestamp, dn.uint32(26).fork()).ldelim(), - un.signature.length !== 0 && dn.uint32(34).bytes(un.signature), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Sn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.blockIdFlag = Nn.int32() - break - case 2: - _n.validatorAddress = Nn.bytes() - break - case 3: - _n.timestamp = nn.Timestamp.decode(Nn, Nn.uint32()) - break - case 4: - _n.signature = Nn.bytes() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - blockIdFlag: (0, gn.isSet)(un.blockIdFlag) ? qn(un.blockIdFlag) : 0, - validatorAddress: (0, gn.isSet)(un.validatorAddress) - ? (0, gn.bytesFromBase64)(un.validatorAddress) - : new Uint8Array(), - timestamp: (0, gn.isSet)(un.timestamp) ? (0, gn.fromJsonTimestamp)(un.timestamp) : void 0, - signature: (0, gn.isSet)(un.signature) - ? (0, gn.bytesFromBase64)(un.signature) - : new Uint8Array(), - } - }, - toJSON(un) { - const dn = {} - return ( - un.blockIdFlag !== void 0 && (dn.blockIdFlag = Kn(un.blockIdFlag)), - un.validatorAddress !== void 0 && - (dn.validatorAddress = (0, gn.base64FromBytes)( - un.validatorAddress !== void 0 ? un.validatorAddress : new Uint8Array(), - )), - un.timestamp !== void 0 && - (dn.timestamp = (0, gn.fromTimestamp)(un.timestamp).toISOString()), - un.signature !== void 0 && - (dn.signature = (0, gn.base64FromBytes)( - un.signature !== void 0 ? un.signature : new Uint8Array(), - )), - dn - ) - }, - fromPartial(un) { - const dn = Sn() - return ( - (dn.blockIdFlag = un.blockIdFlag ?? 0), - (dn.validatorAddress = un.validatorAddress ?? new Uint8Array()), - (dn.timestamp = - un.timestamp !== void 0 && un.timestamp !== null - ? nn.Timestamp.fromPartial(un.timestamp) - : void 0), - (dn.signature = un.signature ?? new Uint8Array()), - dn - ) - }, - } - function Zn() { - return { - type: 0, - height: gn.Long.ZERO, - round: 0, - polRound: 0, - blockId: void 0, - timestamp: void 0, - signature: new Uint8Array(), - } - } - e.Proposal = { - encode(un, dn = In.Writer.create()) { - return ( - un.type !== 0 && dn.uint32(8).int32(un.type), - un.height.isZero() || dn.uint32(16).int64(un.height), - un.round !== 0 && dn.uint32(24).int32(un.round), - un.polRound !== 0 && dn.uint32(32).int32(un.polRound), - un.blockId !== void 0 && e.BlockID.encode(un.blockId, dn.uint32(42).fork()).ldelim(), - un.timestamp !== void 0 && nn.Timestamp.encode(un.timestamp, dn.uint32(50).fork()).ldelim(), - un.signature.length !== 0 && dn.uint32(58).bytes(un.signature), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Zn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.type = Nn.int32() - break - case 2: - _n.height = Nn.int64() - break - case 3: - _n.round = Nn.int32() - break - case 4: - _n.polRound = Nn.int32() - break - case 5: - _n.blockId = e.BlockID.decode(Nn, Nn.uint32()) - break - case 6: - _n.timestamp = nn.Timestamp.decode(Nn, Nn.uint32()) - break - case 7: - _n.signature = Nn.bytes() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - type: (0, gn.isSet)(un.type) ? xn(un.type) : 0, - height: (0, gn.isSet)(un.height) ? gn.Long.fromValue(un.height) : gn.Long.ZERO, - round: (0, gn.isSet)(un.round) ? Number(un.round) : 0, - polRound: (0, gn.isSet)(un.polRound) ? Number(un.polRound) : 0, - blockId: (0, gn.isSet)(un.blockId) ? e.BlockID.fromJSON(un.blockId) : void 0, - timestamp: (0, gn.isSet)(un.timestamp) ? (0, gn.fromJsonTimestamp)(un.timestamp) : void 0, - signature: (0, gn.isSet)(un.signature) - ? (0, gn.bytesFromBase64)(un.signature) - : new Uint8Array(), - } - }, - toJSON(un) { - const dn = {} - return ( - un.type !== void 0 && (dn.type = mn(un.type)), - un.height !== void 0 && (dn.height = (un.height || gn.Long.ZERO).toString()), - un.round !== void 0 && (dn.round = Math.round(un.round)), - un.polRound !== void 0 && (dn.polRound = Math.round(un.polRound)), - un.blockId !== void 0 && (dn.blockId = un.blockId ? e.BlockID.toJSON(un.blockId) : void 0), - un.timestamp !== void 0 && - (dn.timestamp = (0, gn.fromTimestamp)(un.timestamp).toISOString()), - un.signature !== void 0 && - (dn.signature = (0, gn.base64FromBytes)( - un.signature !== void 0 ? un.signature : new Uint8Array(), - )), - dn - ) - }, - fromPartial(un) { - const dn = Zn() - return ( - (dn.type = un.type ?? 0), - (dn.height = - un.height !== void 0 && un.height !== null ? gn.Long.fromValue(un.height) : gn.Long.ZERO), - (dn.round = un.round ?? 0), - (dn.polRound = un.polRound ?? 0), - (dn.blockId = - un.blockId !== void 0 && un.blockId !== null - ? e.BlockID.fromPartial(un.blockId) - : void 0), - (dn.timestamp = - un.timestamp !== void 0 && un.timestamp !== null - ? nn.Timestamp.fromPartial(un.timestamp) - : void 0), - (dn.signature = un.signature ?? new Uint8Array()), - dn - ) - }, - } - function tn() { - return { header: void 0, commit: void 0 } - } - e.SignedHeader = { - encode(un, dn = In.Writer.create()) { - return ( - un.header !== void 0 && e.Header.encode(un.header, dn.uint32(10).fork()).ldelim(), - un.commit !== void 0 && e.Commit.encode(un.commit, dn.uint32(18).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = tn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.header = e.Header.decode(Nn, Nn.uint32()) - break - case 2: - _n.commit = e.Commit.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - header: (0, gn.isSet)(un.header) ? e.Header.fromJSON(un.header) : void 0, - commit: (0, gn.isSet)(un.commit) ? e.Commit.fromJSON(un.commit) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.header !== void 0 && (dn.header = un.header ? e.Header.toJSON(un.header) : void 0), - un.commit !== void 0 && (dn.commit = un.commit ? e.Commit.toJSON(un.commit) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = tn() - return ( - (dn.header = - un.header !== void 0 && un.header !== null ? e.Header.fromPartial(un.header) : void 0), - (dn.commit = - un.commit !== void 0 && un.commit !== null ? e.Commit.fromPartial(un.commit) : void 0), - dn - ) - }, - } - function En() { - return { signedHeader: void 0, validatorSet: void 0 } - } - e.LightBlock = { - encode(un, dn = In.Writer.create()) { - return ( - un.signedHeader !== void 0 && - e.SignedHeader.encode(un.signedHeader, dn.uint32(10).fork()).ldelim(), - un.validatorSet !== void 0 && - sn.ValidatorSet.encode(un.validatorSet, dn.uint32(18).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = En() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.signedHeader = e.SignedHeader.decode(Nn, Nn.uint32()) - break - case 2: - _n.validatorSet = sn.ValidatorSet.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - signedHeader: (0, gn.isSet)(un.signedHeader) - ? e.SignedHeader.fromJSON(un.signedHeader) - : void 0, - validatorSet: (0, gn.isSet)(un.validatorSet) - ? sn.ValidatorSet.fromJSON(un.validatorSet) - : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.signedHeader !== void 0 && - (dn.signedHeader = un.signedHeader ? e.SignedHeader.toJSON(un.signedHeader) : void 0), - un.validatorSet !== void 0 && - (dn.validatorSet = un.validatorSet ? sn.ValidatorSet.toJSON(un.validatorSet) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = En() - return ( - (dn.signedHeader = - un.signedHeader !== void 0 && un.signedHeader !== null - ? e.SignedHeader.fromPartial(un.signedHeader) - : void 0), - (dn.validatorSet = - un.validatorSet !== void 0 && un.validatorSet !== null - ? sn.ValidatorSet.fromPartial(un.validatorSet) - : void 0), - dn - ) - }, - } - function Mn() { - return { blockId: void 0, blockSize: gn.Long.ZERO, header: void 0, numTxs: gn.Long.ZERO } - } - e.BlockMeta = { - encode(un, dn = In.Writer.create()) { - return ( - un.blockId !== void 0 && e.BlockID.encode(un.blockId, dn.uint32(10).fork()).ldelim(), - un.blockSize.isZero() || dn.uint32(16).int64(un.blockSize), - un.header !== void 0 && e.Header.encode(un.header, dn.uint32(26).fork()).ldelim(), - un.numTxs.isZero() || dn.uint32(32).int64(un.numTxs), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Mn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.blockId = e.BlockID.decode(Nn, Nn.uint32()) - break - case 2: - _n.blockSize = Nn.int64() - break - case 3: - _n.header = e.Header.decode(Nn, Nn.uint32()) - break - case 4: - _n.numTxs = Nn.int64() - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - blockId: (0, gn.isSet)(un.blockId) ? e.BlockID.fromJSON(un.blockId) : void 0, - blockSize: (0, gn.isSet)(un.blockSize) ? gn.Long.fromValue(un.blockSize) : gn.Long.ZERO, - header: (0, gn.isSet)(un.header) ? e.Header.fromJSON(un.header) : void 0, - numTxs: (0, gn.isSet)(un.numTxs) ? gn.Long.fromValue(un.numTxs) : gn.Long.ZERO, - } - }, - toJSON(un) { - const dn = {} - return ( - un.blockId !== void 0 && (dn.blockId = un.blockId ? e.BlockID.toJSON(un.blockId) : void 0), - un.blockSize !== void 0 && (dn.blockSize = (un.blockSize || gn.Long.ZERO).toString()), - un.header !== void 0 && (dn.header = un.header ? e.Header.toJSON(un.header) : void 0), - un.numTxs !== void 0 && (dn.numTxs = (un.numTxs || gn.Long.ZERO).toString()), - dn - ) - }, - fromPartial(un) { - const dn = Mn() - return ( - (dn.blockId = - un.blockId !== void 0 && un.blockId !== null - ? e.BlockID.fromPartial(un.blockId) - : void 0), - (dn.blockSize = - un.blockSize !== void 0 && un.blockSize !== null - ? gn.Long.fromValue(un.blockSize) - : gn.Long.ZERO), - (dn.header = - un.header !== void 0 && un.header !== null ? e.Header.fromPartial(un.header) : void 0), - (dn.numTxs = - un.numTxs !== void 0 && un.numTxs !== null ? gn.Long.fromValue(un.numTxs) : gn.Long.ZERO), - dn - ) - }, - } - function Hn() { - return { rootHash: new Uint8Array(), data: new Uint8Array(), proof: void 0 } - } - e.TxProof = { - encode(un, dn = In.Writer.create()) { - return ( - un.rootHash.length !== 0 && dn.uint32(10).bytes(un.rootHash), - un.data.length !== 0 && dn.uint32(18).bytes(un.data), - un.proof !== void 0 && $.Proof.encode(un.proof, dn.uint32(26).fork()).ldelim(), - dn - ) - }, - decode(un, dn) { - const Nn = un instanceof In.Reader ? un : new In.Reader(un) - let fn = dn === void 0 ? Nn.len : Nn.pos + dn - const _n = Hn() - for (; Nn.pos < fn; ) { - const Ln = Nn.uint32() - switch (Ln >>> 3) { - case 1: - _n.rootHash = Nn.bytes() - break - case 2: - _n.data = Nn.bytes() - break - case 3: - _n.proof = $.Proof.decode(Nn, Nn.uint32()) - break - default: - Nn.skipType(Ln & 7) - break - } - } - return _n - }, - fromJSON(un) { - return { - rootHash: (0, gn.isSet)(un.rootHash) - ? (0, gn.bytesFromBase64)(un.rootHash) - : new Uint8Array(), - data: (0, gn.isSet)(un.data) ? (0, gn.bytesFromBase64)(un.data) : new Uint8Array(), - proof: (0, gn.isSet)(un.proof) ? $.Proof.fromJSON(un.proof) : void 0, - } - }, - toJSON(un) { - const dn = {} - return ( - un.rootHash !== void 0 && - (dn.rootHash = (0, gn.base64FromBytes)( - un.rootHash !== void 0 ? un.rootHash : new Uint8Array(), - )), - un.data !== void 0 && - (dn.data = (0, gn.base64FromBytes)(un.data !== void 0 ? un.data : new Uint8Array())), - un.proof !== void 0 && (dn.proof = un.proof ? $.Proof.toJSON(un.proof) : void 0), - dn - ) - }, - fromPartial(un) { - const dn = Hn() - return ( - (dn.rootHash = un.rootHash ?? new Uint8Array()), - (dn.data = un.data ?? new Uint8Array()), - (dn.proof = - un.proof !== void 0 && un.proof !== null ? $.Proof.fromPartial(un.proof) : void 0), - dn - ) - }, - } -})(types$5) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn) - var Gn = Object.getOwnPropertyDescriptor(yn, Cn) - ;(!Gn || ('get' in Gn ? !yn.__esModule : Gn.writable || Gn.configurable)) && - (Gn = { - enumerable: !0, - get: function () { - return yn[Cn] - }, - }), - Object.defineProperty(ln, Tn, Gn) - } - : function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn), (ln[Tn] = yn[Cn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (ln, yn) { - Object.defineProperty(ln, 'default', { enumerable: !0, value: yn }) - } - : function (ln, yn) { - ln.default = yn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (ln) { - if (ln && ln.__esModule) return ln - var yn = {} - if (ln != null) - for (var Cn in ln) - Cn !== 'default' && Object.prototype.hasOwnProperty.call(ln, Cn) && o(yn, ln, Cn) - return _(yn, ln), yn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Fraction = - e.Header = - e.Misbehaviour = - e.ConsensusState = - e.ClientState = - e.protobufPackage = - void 0) - const $ = duration, - en = client, - nn = proofs, - sn = timestamp, - gn = commitment, - In = types$5, - Jn = validator$2, - qn = helpers, - Kn = b(minimalExports) - e.protobufPackage = 'ibc.lightclients.tendermint.v1' - function an() { - return { - chainId: '', - trustLevel: void 0, - trustingPeriod: void 0, - unbondingPeriod: void 0, - maxClockDrift: void 0, - frozenHeight: void 0, - latestHeight: void 0, - proofSpecs: [], - upgradePath: [], - allowUpdateAfterExpiry: !1, - allowUpdateAfterMisbehaviour: !1, - } - } - e.ClientState = { - encode(ln, yn = Kn.Writer.create()) { - ln.chainId !== '' && yn.uint32(10).string(ln.chainId), - ln.trustLevel !== void 0 && e.Fraction.encode(ln.trustLevel, yn.uint32(18).fork()).ldelim(), - ln.trustingPeriod !== void 0 && - $.Duration.encode(ln.trustingPeriod, yn.uint32(26).fork()).ldelim(), - ln.unbondingPeriod !== void 0 && - $.Duration.encode(ln.unbondingPeriod, yn.uint32(34).fork()).ldelim(), - ln.maxClockDrift !== void 0 && - $.Duration.encode(ln.maxClockDrift, yn.uint32(42).fork()).ldelim(), - ln.frozenHeight !== void 0 && - en.Height.encode(ln.frozenHeight, yn.uint32(50).fork()).ldelim(), - ln.latestHeight !== void 0 && - en.Height.encode(ln.latestHeight, yn.uint32(58).fork()).ldelim() - for (const Cn of ln.proofSpecs) nn.ProofSpec.encode(Cn, yn.uint32(66).fork()).ldelim() - for (const Cn of ln.upgradePath) yn.uint32(74).string(Cn) - return ( - ln.allowUpdateAfterExpiry === !0 && yn.uint32(80).bool(ln.allowUpdateAfterExpiry), - ln.allowUpdateAfterMisbehaviour === !0 && - yn.uint32(88).bool(ln.allowUpdateAfterMisbehaviour), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof Kn.Reader ? ln : new Kn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = an() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.chainId = Cn.string() - break - case 2: - Gn.trustLevel = e.Fraction.decode(Cn, Cn.uint32()) - break - case 3: - Gn.trustingPeriod = $.Duration.decode(Cn, Cn.uint32()) - break - case 4: - Gn.unbondingPeriod = $.Duration.decode(Cn, Cn.uint32()) - break - case 5: - Gn.maxClockDrift = $.Duration.decode(Cn, Cn.uint32()) - break - case 6: - Gn.frozenHeight = en.Height.decode(Cn, Cn.uint32()) - break - case 7: - Gn.latestHeight = en.Height.decode(Cn, Cn.uint32()) - break - case 8: - Gn.proofSpecs.push(nn.ProofSpec.decode(Cn, Cn.uint32())) - break - case 9: - Gn.upgradePath.push(Cn.string()) - break - case 10: - Gn.allowUpdateAfterExpiry = Cn.bool() - break - case 11: - Gn.allowUpdateAfterMisbehaviour = Cn.bool() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - chainId: (0, qn.isSet)(ln.chainId) ? String(ln.chainId) : '', - trustLevel: (0, qn.isSet)(ln.trustLevel) ? e.Fraction.fromJSON(ln.trustLevel) : void 0, - trustingPeriod: (0, qn.isSet)(ln.trustingPeriod) - ? $.Duration.fromJSON(ln.trustingPeriod) - : void 0, - unbondingPeriod: (0, qn.isSet)(ln.unbondingPeriod) - ? $.Duration.fromJSON(ln.unbondingPeriod) - : void 0, - maxClockDrift: (0, qn.isSet)(ln.maxClockDrift) - ? $.Duration.fromJSON(ln.maxClockDrift) - : void 0, - frozenHeight: (0, qn.isSet)(ln.frozenHeight) ? en.Height.fromJSON(ln.frozenHeight) : void 0, - latestHeight: (0, qn.isSet)(ln.latestHeight) ? en.Height.fromJSON(ln.latestHeight) : void 0, - proofSpecs: Array.isArray(ln?.proofSpecs) - ? ln.proofSpecs.map((yn) => nn.ProofSpec.fromJSON(yn)) - : [], - upgradePath: Array.isArray(ln?.upgradePath) ? ln.upgradePath.map((yn) => String(yn)) : [], - allowUpdateAfterExpiry: (0, qn.isSet)(ln.allowUpdateAfterExpiry) - ? Boolean(ln.allowUpdateAfterExpiry) - : !1, - allowUpdateAfterMisbehaviour: (0, qn.isSet)(ln.allowUpdateAfterMisbehaviour) - ? Boolean(ln.allowUpdateAfterMisbehaviour) - : !1, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.chainId !== void 0 && (yn.chainId = ln.chainId), - ln.trustLevel !== void 0 && - (yn.trustLevel = ln.trustLevel ? e.Fraction.toJSON(ln.trustLevel) : void 0), - ln.trustingPeriod !== void 0 && - (yn.trustingPeriod = ln.trustingPeriod ? $.Duration.toJSON(ln.trustingPeriod) : void 0), - ln.unbondingPeriod !== void 0 && - (yn.unbondingPeriod = ln.unbondingPeriod - ? $.Duration.toJSON(ln.unbondingPeriod) - : void 0), - ln.maxClockDrift !== void 0 && - (yn.maxClockDrift = ln.maxClockDrift ? $.Duration.toJSON(ln.maxClockDrift) : void 0), - ln.frozenHeight !== void 0 && - (yn.frozenHeight = ln.frozenHeight ? en.Height.toJSON(ln.frozenHeight) : void 0), - ln.latestHeight !== void 0 && - (yn.latestHeight = ln.latestHeight ? en.Height.toJSON(ln.latestHeight) : void 0), - ln.proofSpecs - ? (yn.proofSpecs = ln.proofSpecs.map((Cn) => (Cn ? nn.ProofSpec.toJSON(Cn) : void 0))) - : (yn.proofSpecs = []), - ln.upgradePath ? (yn.upgradePath = ln.upgradePath.map((Cn) => Cn)) : (yn.upgradePath = []), - ln.allowUpdateAfterExpiry !== void 0 && - (yn.allowUpdateAfterExpiry = ln.allowUpdateAfterExpiry), - ln.allowUpdateAfterMisbehaviour !== void 0 && - (yn.allowUpdateAfterMisbehaviour = ln.allowUpdateAfterMisbehaviour), - yn - ) - }, - fromPartial(ln) { - const yn = an() - return ( - (yn.chainId = ln.chainId ?? ''), - (yn.trustLevel = - ln.trustLevel !== void 0 && ln.trustLevel !== null - ? e.Fraction.fromPartial(ln.trustLevel) - : void 0), - (yn.trustingPeriod = - ln.trustingPeriod !== void 0 && ln.trustingPeriod !== null - ? $.Duration.fromPartial(ln.trustingPeriod) - : void 0), - (yn.unbondingPeriod = - ln.unbondingPeriod !== void 0 && ln.unbondingPeriod !== null - ? $.Duration.fromPartial(ln.unbondingPeriod) - : void 0), - (yn.maxClockDrift = - ln.maxClockDrift !== void 0 && ln.maxClockDrift !== null - ? $.Duration.fromPartial(ln.maxClockDrift) - : void 0), - (yn.frozenHeight = - ln.frozenHeight !== void 0 && ln.frozenHeight !== null - ? en.Height.fromPartial(ln.frozenHeight) - : void 0), - (yn.latestHeight = - ln.latestHeight !== void 0 && ln.latestHeight !== null - ? en.Height.fromPartial(ln.latestHeight) - : void 0), - (yn.proofSpecs = ln.proofSpecs?.map((Cn) => nn.ProofSpec.fromPartial(Cn)) || []), - (yn.upgradePath = ln.upgradePath?.map((Cn) => Cn) || []), - (yn.allowUpdateAfterExpiry = ln.allowUpdateAfterExpiry ?? !1), - (yn.allowUpdateAfterMisbehaviour = ln.allowUpdateAfterMisbehaviour ?? !1), - yn - ) - }, - } - function xn() { - return { timestamp: void 0, root: void 0, nextValidatorsHash: new Uint8Array() } - } - e.ConsensusState = { - encode(ln, yn = Kn.Writer.create()) { - return ( - ln.timestamp !== void 0 && sn.Timestamp.encode(ln.timestamp, yn.uint32(10).fork()).ldelim(), - ln.root !== void 0 && gn.MerkleRoot.encode(ln.root, yn.uint32(18).fork()).ldelim(), - ln.nextValidatorsHash.length !== 0 && yn.uint32(26).bytes(ln.nextValidatorsHash), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof Kn.Reader ? ln : new Kn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = xn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.timestamp = sn.Timestamp.decode(Cn, Cn.uint32()) - break - case 2: - Gn.root = gn.MerkleRoot.decode(Cn, Cn.uint32()) - break - case 3: - Gn.nextValidatorsHash = Cn.bytes() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - timestamp: (0, qn.isSet)(ln.timestamp) ? (0, qn.fromJsonTimestamp)(ln.timestamp) : void 0, - root: (0, qn.isSet)(ln.root) ? gn.MerkleRoot.fromJSON(ln.root) : void 0, - nextValidatorsHash: (0, qn.isSet)(ln.nextValidatorsHash) - ? (0, qn.bytesFromBase64)(ln.nextValidatorsHash) - : new Uint8Array(), - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.timestamp !== void 0 && - (yn.timestamp = (0, qn.fromTimestamp)(ln.timestamp).toISOString()), - ln.root !== void 0 && (yn.root = ln.root ? gn.MerkleRoot.toJSON(ln.root) : void 0), - ln.nextValidatorsHash !== void 0 && - (yn.nextValidatorsHash = (0, qn.base64FromBytes)( - ln.nextValidatorsHash !== void 0 ? ln.nextValidatorsHash : new Uint8Array(), - )), - yn - ) - }, - fromPartial(ln) { - const yn = xn() - return ( - (yn.timestamp = - ln.timestamp !== void 0 && ln.timestamp !== null - ? sn.Timestamp.fromPartial(ln.timestamp) - : void 0), - (yn.root = - ln.root !== void 0 && ln.root !== null ? gn.MerkleRoot.fromPartial(ln.root) : void 0), - (yn.nextValidatorsHash = ln.nextValidatorsHash ?? new Uint8Array()), - yn - ) - }, - } - function mn() { - return { clientId: '', header1: void 0, header2: void 0 } - } - e.Misbehaviour = { - encode(ln, yn = Kn.Writer.create()) { - return ( - ln.clientId !== '' && yn.uint32(10).string(ln.clientId), - ln.header1 !== void 0 && e.Header.encode(ln.header1, yn.uint32(18).fork()).ldelim(), - ln.header2 !== void 0 && e.Header.encode(ln.header2, yn.uint32(26).fork()).ldelim(), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof Kn.Reader ? ln : new Kn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = mn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.clientId = Cn.string() - break - case 2: - Gn.header1 = e.Header.decode(Cn, Cn.uint32()) - break - case 3: - Gn.header2 = e.Header.decode(Cn, Cn.uint32()) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - clientId: (0, qn.isSet)(ln.clientId) ? String(ln.clientId) : '', - header1: (0, qn.isSet)(ln.header1) ? e.Header.fromJSON(ln.header1) : void 0, - header2: (0, qn.isSet)(ln.header2) ? e.Header.fromJSON(ln.header2) : void 0, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.clientId !== void 0 && (yn.clientId = ln.clientId), - ln.header1 !== void 0 && (yn.header1 = ln.header1 ? e.Header.toJSON(ln.header1) : void 0), - ln.header2 !== void 0 && (yn.header2 = ln.header2 ? e.Header.toJSON(ln.header2) : void 0), - yn - ) - }, - fromPartial(ln) { - const yn = mn() - return ( - (yn.clientId = ln.clientId ?? ''), - (yn.header1 = - ln.header1 !== void 0 && ln.header1 !== null ? e.Header.fromPartial(ln.header1) : void 0), - (yn.header2 = - ln.header2 !== void 0 && ln.header2 !== null ? e.Header.fromPartial(ln.header2) : void 0), - yn - ) - }, - } - function Bn() { - return { - signedHeader: void 0, - validatorSet: void 0, - trustedHeight: void 0, - trustedValidators: void 0, - } - } - e.Header = { - encode(ln, yn = Kn.Writer.create()) { - return ( - ln.signedHeader !== void 0 && - In.SignedHeader.encode(ln.signedHeader, yn.uint32(10).fork()).ldelim(), - ln.validatorSet !== void 0 && - Jn.ValidatorSet.encode(ln.validatorSet, yn.uint32(18).fork()).ldelim(), - ln.trustedHeight !== void 0 && - en.Height.encode(ln.trustedHeight, yn.uint32(26).fork()).ldelim(), - ln.trustedValidators !== void 0 && - Jn.ValidatorSet.encode(ln.trustedValidators, yn.uint32(34).fork()).ldelim(), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof Kn.Reader ? ln : new Kn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Bn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.signedHeader = In.SignedHeader.decode(Cn, Cn.uint32()) - break - case 2: - Gn.validatorSet = Jn.ValidatorSet.decode(Cn, Cn.uint32()) - break - case 3: - Gn.trustedHeight = en.Height.decode(Cn, Cn.uint32()) - break - case 4: - Gn.trustedValidators = Jn.ValidatorSet.decode(Cn, Cn.uint32()) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - signedHeader: (0, qn.isSet)(ln.signedHeader) - ? In.SignedHeader.fromJSON(ln.signedHeader) - : void 0, - validatorSet: (0, qn.isSet)(ln.validatorSet) - ? Jn.ValidatorSet.fromJSON(ln.validatorSet) - : void 0, - trustedHeight: (0, qn.isSet)(ln.trustedHeight) - ? en.Height.fromJSON(ln.trustedHeight) - : void 0, - trustedValidators: (0, qn.isSet)(ln.trustedValidators) - ? Jn.ValidatorSet.fromJSON(ln.trustedValidators) - : void 0, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.signedHeader !== void 0 && - (yn.signedHeader = ln.signedHeader ? In.SignedHeader.toJSON(ln.signedHeader) : void 0), - ln.validatorSet !== void 0 && - (yn.validatorSet = ln.validatorSet ? Jn.ValidatorSet.toJSON(ln.validatorSet) : void 0), - ln.trustedHeight !== void 0 && - (yn.trustedHeight = ln.trustedHeight ? en.Height.toJSON(ln.trustedHeight) : void 0), - ln.trustedValidators !== void 0 && - (yn.trustedValidators = ln.trustedValidators - ? Jn.ValidatorSet.toJSON(ln.trustedValidators) - : void 0), - yn - ) - }, - fromPartial(ln) { - const yn = Bn() - return ( - (yn.signedHeader = - ln.signedHeader !== void 0 && ln.signedHeader !== null - ? In.SignedHeader.fromPartial(ln.signedHeader) - : void 0), - (yn.validatorSet = - ln.validatorSet !== void 0 && ln.validatorSet !== null - ? Jn.ValidatorSet.fromPartial(ln.validatorSet) - : void 0), - (yn.trustedHeight = - ln.trustedHeight !== void 0 && ln.trustedHeight !== null - ? en.Height.fromPartial(ln.trustedHeight) - : void 0), - (yn.trustedValidators = - ln.trustedValidators !== void 0 && ln.trustedValidators !== null - ? Jn.ValidatorSet.fromPartial(ln.trustedValidators) - : void 0), - yn - ) - }, - } - function kn() { - return { numerator: qn.Long.UZERO, denominator: qn.Long.UZERO } - } - e.Fraction = { - encode(ln, yn = Kn.Writer.create()) { - return ( - ln.numerator.isZero() || yn.uint32(8).uint64(ln.numerator), - ln.denominator.isZero() || yn.uint32(16).uint64(ln.denominator), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof Kn.Reader ? ln : new Kn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = kn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.numerator = Cn.uint64() - break - case 2: - Gn.denominator = Cn.uint64() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - numerator: (0, qn.isSet)(ln.numerator) ? qn.Long.fromValue(ln.numerator) : qn.Long.UZERO, - denominator: (0, qn.isSet)(ln.denominator) - ? qn.Long.fromValue(ln.denominator) - : qn.Long.UZERO, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.numerator !== void 0 && (yn.numerator = (ln.numerator || qn.Long.UZERO).toString()), - ln.denominator !== void 0 && - (yn.denominator = (ln.denominator || qn.Long.UZERO).toString()), - yn - ) - }, - fromPartial(ln) { - const yn = kn() - return ( - (yn.numerator = - ln.numerator !== void 0 && ln.numerator !== null - ? qn.Long.fromValue(ln.numerator) - : qn.Long.UZERO), - (yn.denominator = - ln.denominator !== void 0 && ln.denominator !== null - ? qn.Long.fromValue(ln.denominator) - : qn.Long.UZERO), - yn - ) - }, - } -})(tendermint) -var __importDefault$8 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(queries$5, '__esModule', { value: !0 }) -queries$5.setupIbcExtension = void 0 -const encoding_1$d = build$b, - math_1$5 = build$a, - query_1$4 = query$7, - channel_1 = channel, - query_2 = query$6, - query_3 = query$5, - query_4 = query$4, - tendermint_1 = tendermint, - long_1$6 = __importDefault$8(long$1), - queryclient_1$5 = queryclient$1 -function decodeTendermintClientStateAny(e) { - if (e?.typeUrl !== '/ibc.lightclients.tendermint.v1.ClientState') - throw new Error(`Unexpected client state type: ${e?.typeUrl}`) - return tendermint_1.ClientState.decode(e.value) -} -function decodeTendermintConsensusStateAny(e) { - if (e?.typeUrl !== '/ibc.lightclients.tendermint.v1.ConsensusState') - throw new Error(`Unexpected client state type: ${e?.typeUrl}`) - return tendermint_1.ConsensusState.decode(e.value) -} -function setupIbcExtension(e) { - const o = (0, queryclient_1$5.createProtobufRpcClient)(e), - _ = new query_2.QueryClientImpl(o), - b = new query_3.QueryClientImpl(o), - $ = new query_4.QueryClientImpl(o), - en = new query_1$4.QueryClientImpl(o) - return { - ibc: { - channel: { - channel: async (nn, sn) => _.Channel({ portId: nn, channelId: sn }), - channels: async (nn) => - _.Channels({ pagination: (0, queryclient_1$5.createPagination)(nn) }), - allChannels: async () => { - const nn = [] - let sn, gn - do - (sn = await _.Channels({ pagination: (0, queryclient_1$5.createPagination)(gn) })), - nn.push(...sn.channels), - (gn = sn.pagination?.nextKey) - while (gn && gn.length) - return { channels: nn, height: sn.height } - }, - connectionChannels: async (nn, sn) => - _.ConnectionChannels({ - connection: nn, - pagination: (0, queryclient_1$5.createPagination)(sn), - }), - allConnectionChannels: async (nn) => { - const sn = [] - let gn, In - do - (gn = await _.ConnectionChannels({ - connection: nn, - pagination: (0, queryclient_1$5.createPagination)(In), - })), - sn.push(...gn.channels), - (In = gn.pagination?.nextKey) - while (In && In.length) - return { channels: sn, height: gn.height } - }, - clientState: async (nn, sn) => _.ChannelClientState({ portId: nn, channelId: sn }), - consensusState: async (nn, sn, gn, In) => - _.ChannelConsensusState({ - portId: nn, - channelId: sn, - revisionNumber: long_1$6.default.fromNumber(gn, !0), - revisionHeight: long_1$6.default.fromNumber(In, !0), - }), - packetCommitment: async (nn, sn, gn) => - _.PacketCommitment({ - portId: nn, - channelId: sn, - sequence: long_1$6.default.fromNumber(gn, !0), - }), - packetCommitments: async (nn, sn, gn) => - _.PacketCommitments({ - channelId: sn, - portId: nn, - pagination: (0, queryclient_1$5.createPagination)(gn), - }), - allPacketCommitments: async (nn, sn) => { - const gn = [] - let In, Jn - do - (In = await _.PacketCommitments({ - channelId: sn, - portId: nn, - pagination: (0, queryclient_1$5.createPagination)(Jn), - })), - gn.push(...In.commitments), - (Jn = In.pagination?.nextKey) - while (Jn && Jn.length) - return { commitments: gn, height: In.height } - }, - packetReceipt: async (nn, sn, gn) => - _.PacketReceipt({ - portId: nn, - channelId: sn, - sequence: long_1$6.default.fromNumber(gn, !0), - }), - packetAcknowledgement: async (nn, sn, gn) => - _.PacketAcknowledgement({ - portId: nn, - channelId: sn, - sequence: long_1$6.default.fromNumber(gn, !0), - }), - packetAcknowledgements: async (nn, sn, gn) => { - const In = query_2.QueryPacketAcknowledgementsRequest.fromPartial({ - portId: nn, - channelId: sn, - pagination: (0, queryclient_1$5.createPagination)(gn), - }) - return _.PacketAcknowledgements(In) - }, - allPacketAcknowledgements: async (nn, sn) => { - const gn = [] - let In, Jn - do { - const qn = query_2.QueryPacketAcknowledgementsRequest.fromPartial({ - channelId: sn, - portId: nn, - pagination: (0, queryclient_1$5.createPagination)(Jn), - }) - ;(In = await _.PacketAcknowledgements(qn)), - gn.push(...In.acknowledgements), - (Jn = In.pagination?.nextKey) - } while (Jn && Jn.length) - return { acknowledgements: gn, height: In.height } - }, - unreceivedPackets: async (nn, sn, gn) => - _.UnreceivedPackets({ - portId: nn, - channelId: sn, - packetCommitmentSequences: gn.map((In) => long_1$6.default.fromNumber(In, !0)), - }), - unreceivedAcks: async (nn, sn, gn) => - _.UnreceivedAcks({ - portId: nn, - channelId: sn, - packetAckSequences: gn.map((In) => long_1$6.default.fromNumber(In, !0)), - }), - nextSequenceReceive: async (nn, sn) => _.NextSequenceReceive({ portId: nn, channelId: sn }), - }, - client: { - state: async (nn) => b.ClientState({ clientId: nn }), - states: async (nn) => - b.ClientStates({ pagination: (0, queryclient_1$5.createPagination)(nn) }), - allStates: async () => { - const nn = [] - let sn, gn - do - (sn = await b.ClientStates({ pagination: (0, queryclient_1$5.createPagination)(gn) })), - nn.push(...sn.clientStates), - (gn = sn.pagination?.nextKey) - while (gn && gn.length) - return { clientStates: nn } - }, - consensusState: async (nn, sn) => - b.ConsensusState( - query_3.QueryConsensusStateRequest.fromPartial({ - clientId: nn, - revisionHeight: sn !== void 0 ? long_1$6.default.fromNumber(sn, !0) : void 0, - latestHeight: sn === void 0, - }), - ), - consensusStates: async (nn, sn) => - b.ConsensusStates({ - clientId: nn, - pagination: (0, queryclient_1$5.createPagination)(sn), - }), - allConsensusStates: async (nn) => { - const sn = [] - let gn, In - do - (gn = await b.ConsensusStates({ - clientId: nn, - pagination: (0, queryclient_1$5.createPagination)(In), - })), - sn.push(...gn.consensusStates), - (In = gn.pagination?.nextKey) - while (In && In.length) - return { consensusStates: sn } - }, - params: async () => b.ClientParams({}), - stateTm: async (nn) => { - const sn = await b.ClientState({ clientId: nn }) - return decodeTendermintClientStateAny(sn.clientState) - }, - statesTm: async (nn) => { - const { clientStates: sn } = await b.ClientStates({ - pagination: (0, queryclient_1$5.createPagination)(nn), - }) - return sn.map(({ clientState: gn }) => decodeTendermintClientStateAny(gn)) - }, - allStatesTm: async () => { - const nn = [] - let sn, gn - do - (sn = await b.ClientStates({ pagination: (0, queryclient_1$5.createPagination)(gn) })), - nn.push(...sn.clientStates), - (gn = sn.pagination?.nextKey) - while (gn && gn.length) - return nn.map(({ clientState: In }) => decodeTendermintClientStateAny(In)) - }, - consensusStateTm: async (nn, sn) => { - const gn = await b.ConsensusState( - query_3.QueryConsensusStateRequest.fromPartial({ - clientId: nn, - revisionHeight: sn?.revisionHeight, - revisionNumber: sn?.revisionNumber, - latestHeight: sn === void 0, - }), - ) - return decodeTendermintConsensusStateAny(gn.consensusState) - }, - }, - connection: { - connection: async (nn) => $.Connection({ connectionId: nn }), - connections: async (nn) => - $.Connections({ pagination: (0, queryclient_1$5.createPagination)(nn) }), - allConnections: async () => { - const nn = [] - let sn, gn - do - (sn = await $.Connections({ pagination: (0, queryclient_1$5.createPagination)(gn) })), - nn.push(...sn.connections), - (gn = sn.pagination?.nextKey) - while (gn && gn.length) - return { connections: nn, height: sn.height } - }, - clientConnections: async (nn) => $.ClientConnections({ clientId: nn }), - clientState: async (nn) => $.ConnectionClientState({ connectionId: nn }), - consensusState: async (nn, sn) => - $.ConnectionConsensusState( - query_4.QueryConnectionConsensusStateRequest.fromPartial({ - connectionId: nn, - revisionHeight: long_1$6.default.fromNumber(sn, !0), - }), - ), - }, - transfer: { - denomTrace: async (nn) => en.DenomTrace({ hash: nn }), - denomTraces: async (nn) => - en.DenomTraces({ pagination: (0, queryclient_1$5.createPagination)(nn) }), - allDenomTraces: async () => { - const nn = [] - let sn, gn - do - (sn = await en.DenomTraces({ pagination: (0, queryclient_1$5.createPagination)(gn) })), - nn.push(...sn.denomTraces), - (gn = sn.pagination?.nextKey) - while (gn && gn.length) - return { denomTraces: nn } - }, - params: async () => en.Params({}), - }, - verified: { - channel: { - channel: async (nn, sn) => { - const gn = (0, encoding_1$d.toAscii)(`channelEnds/ports/${nn}/channels/${sn}`), - { value: In } = await e.queryStoreVerified('ibc', gn) - return In.length ? channel_1.Channel.decode(In) : null - }, - packetCommitment: async (nn, sn, gn) => { - const In = (0, encoding_1$d.toAscii)( - `commitments/ports/${nn}/channels/${sn}/packets/${gn}`, - ), - { value: Jn } = await e.queryStoreVerified('ibc', In) - return Jn - }, - packetAcknowledgement: async (nn, sn, gn) => { - const In = (0, encoding_1$d.toAscii)( - `acks/ports/${nn}/channels/${sn}/acknowledgements/${gn}`, - ), - { value: Jn } = await e.queryStoreVerified('ibc', In) - return Jn - }, - nextSequenceReceive: async (nn, sn) => { - const gn = (0, encoding_1$d.toAscii)( - `seqAcks/ports/${nn}/channels/${sn}/nextSequenceAck`, - ), - { value: In } = await e.queryStoreVerified('ibc', gn) - return In.length ? math_1$5.Uint64.fromBytes(In).toNumber() : null - }, - }, - }, - }, - } -} -queries$5.setupIbcExtension = setupIbcExtension -var queries$4 = {}, - query$3 = {}, - mint = {}, - __createBinding$6 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$6 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$6 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$6(o, e, _) - return __setModuleDefault$6(o, e), o - } -Object.defineProperty(mint, '__esModule', { value: !0 }) -mint.Params = mint.Minter = mint.protobufPackage = void 0 -const helpers_1$2 = helpers, - _m0$2 = __importStar$6(minimalExports) -mint.protobufPackage = 'cosmos.mint.v1beta1' -function createBaseMinter() { - return { inflation: '', annualProvisions: '' } -} -mint.Minter = { - encode(e, o = _m0$2.Writer.create()) { - return ( - e.inflation !== '' && o.uint32(10).string(e.inflation), - e.annualProvisions !== '' && o.uint32(18).string(e.annualProvisions), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$2.Reader ? e : new _m0$2.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseMinter() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.inflation = _.string() - break - case 2: - $.annualProvisions = _.string() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - inflation: (0, helpers_1$2.isSet)(e.inflation) ? String(e.inflation) : '', - annualProvisions: (0, helpers_1$2.isSet)(e.annualProvisions) - ? String(e.annualProvisions) - : '', - } - }, - toJSON(e) { - const o = {} - return ( - e.inflation !== void 0 && (o.inflation = e.inflation), - e.annualProvisions !== void 0 && (o.annualProvisions = e.annualProvisions), - o - ) - }, - fromPartial(e) { - const o = createBaseMinter() - return (o.inflation = e.inflation ?? ''), (o.annualProvisions = e.annualProvisions ?? ''), o - }, -} -function createBaseParams$1() { - return { - mintDenom: '', - inflationRateChange: '', - inflationMax: '', - inflationMin: '', - goalBonded: '', - blocksPerYear: helpers_1$2.Long.UZERO, - } -} -mint.Params = { - encode(e, o = _m0$2.Writer.create()) { - return ( - e.mintDenom !== '' && o.uint32(10).string(e.mintDenom), - e.inflationRateChange !== '' && o.uint32(18).string(e.inflationRateChange), - e.inflationMax !== '' && o.uint32(26).string(e.inflationMax), - e.inflationMin !== '' && o.uint32(34).string(e.inflationMin), - e.goalBonded !== '' && o.uint32(42).string(e.goalBonded), - e.blocksPerYear.isZero() || o.uint32(48).uint64(e.blocksPerYear), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$2.Reader ? e : new _m0$2.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseParams$1() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.mintDenom = _.string() - break - case 2: - $.inflationRateChange = _.string() - break - case 3: - $.inflationMax = _.string() - break - case 4: - $.inflationMin = _.string() - break - case 5: - $.goalBonded = _.string() - break - case 6: - $.blocksPerYear = _.uint64() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - mintDenom: (0, helpers_1$2.isSet)(e.mintDenom) ? String(e.mintDenom) : '', - inflationRateChange: (0, helpers_1$2.isSet)(e.inflationRateChange) - ? String(e.inflationRateChange) - : '', - inflationMax: (0, helpers_1$2.isSet)(e.inflationMax) ? String(e.inflationMax) : '', - inflationMin: (0, helpers_1$2.isSet)(e.inflationMin) ? String(e.inflationMin) : '', - goalBonded: (0, helpers_1$2.isSet)(e.goalBonded) ? String(e.goalBonded) : '', - blocksPerYear: (0, helpers_1$2.isSet)(e.blocksPerYear) - ? helpers_1$2.Long.fromValue(e.blocksPerYear) - : helpers_1$2.Long.UZERO, - } - }, - toJSON(e) { - const o = {} - return ( - e.mintDenom !== void 0 && (o.mintDenom = e.mintDenom), - e.inflationRateChange !== void 0 && (o.inflationRateChange = e.inflationRateChange), - e.inflationMax !== void 0 && (o.inflationMax = e.inflationMax), - e.inflationMin !== void 0 && (o.inflationMin = e.inflationMin), - e.goalBonded !== void 0 && (o.goalBonded = e.goalBonded), - e.blocksPerYear !== void 0 && - (o.blocksPerYear = (e.blocksPerYear || helpers_1$2.Long.UZERO).toString()), - o - ) - }, - fromPartial(e) { - const o = createBaseParams$1() - return ( - (o.mintDenom = e.mintDenom ?? ''), - (o.inflationRateChange = e.inflationRateChange ?? ''), - (o.inflationMax = e.inflationMax ?? ''), - (o.inflationMin = e.inflationMin ?? ''), - (o.goalBonded = e.goalBonded ?? ''), - (o.blocksPerYear = - e.blocksPerYear !== void 0 && e.blocksPerYear !== null - ? helpers_1$2.Long.fromValue(e.blocksPerYear) - : helpers_1$2.Long.UZERO), - o - ) - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn) - var ln = Object.getOwnPropertyDescriptor(mn, Bn) - ;(!ln || ('get' in ln ? !mn.__esModule : ln.writable || ln.configurable)) && - (ln = { - enumerable: !0, - get: function () { - return mn[Bn] - }, - }), - Object.defineProperty(xn, kn, ln) - } - : function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn), (xn[kn] = mn[Bn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (xn, mn) { - Object.defineProperty(xn, 'default', { enumerable: !0, value: mn }) - } - : function (xn, mn) { - xn.default = mn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (xn) { - if (xn && xn.__esModule) return xn - var mn = {} - if (xn != null) - for (var Bn in xn) - Bn !== 'default' && Object.prototype.hasOwnProperty.call(xn, Bn) && o(mn, xn, Bn) - return _(mn, xn), mn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryAnnualProvisionsResponse = - e.QueryAnnualProvisionsRequest = - e.QueryInflationResponse = - e.QueryInflationRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.protobufPackage = - void 0) - const $ = mint, - en = b(minimalExports), - nn = helpers - e.protobufPackage = 'cosmos.mint.v1beta1' - function sn() { - return {} - } - e.QueryParamsRequest = { - encode(xn, mn = en.Writer.create()) { - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = sn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return {} - }, - toJSON(xn) { - return {} - }, - fromPartial(xn) { - return sn() - }, - } - function gn() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(xn, mn = en.Writer.create()) { - return xn.params !== void 0 && $.Params.encode(xn.params, mn.uint32(10).fork()).ldelim(), mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = gn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.params = $.Params.decode(Bn, Bn.uint32()) - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { params: (0, nn.isSet)(xn.params) ? $.Params.fromJSON(xn.params) : void 0 } - }, - toJSON(xn) { - const mn = {} - return ( - xn.params !== void 0 && (mn.params = xn.params ? $.Params.toJSON(xn.params) : void 0), mn - ) - }, - fromPartial(xn) { - const mn = gn() - return ( - (mn.params = - xn.params !== void 0 && xn.params !== null ? $.Params.fromPartial(xn.params) : void 0), - mn - ) - }, - } - function In() { - return {} - } - e.QueryInflationRequest = { - encode(xn, mn = en.Writer.create()) { - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = In() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return {} - }, - toJSON(xn) { - return {} - }, - fromPartial(xn) { - return In() - }, - } - function Jn() { - return { inflation: new Uint8Array() } - } - e.QueryInflationResponse = { - encode(xn, mn = en.Writer.create()) { - return xn.inflation.length !== 0 && mn.uint32(10).bytes(xn.inflation), mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Jn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.inflation = Bn.bytes() - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - inflation: (0, nn.isSet)(xn.inflation) - ? (0, nn.bytesFromBase64)(xn.inflation) - : new Uint8Array(), - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.inflation !== void 0 && - (mn.inflation = (0, nn.base64FromBytes)( - xn.inflation !== void 0 ? xn.inflation : new Uint8Array(), - )), - mn - ) - }, - fromPartial(xn) { - const mn = Jn() - return (mn.inflation = xn.inflation ?? new Uint8Array()), mn - }, - } - function qn() { - return {} - } - e.QueryAnnualProvisionsRequest = { - encode(xn, mn = en.Writer.create()) { - return mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = qn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return {} - }, - toJSON(xn) { - return {} - }, - fromPartial(xn) { - return qn() - }, - } - function Kn() { - return { annualProvisions: new Uint8Array() } - } - e.QueryAnnualProvisionsResponse = { - encode(xn, mn = en.Writer.create()) { - return xn.annualProvisions.length !== 0 && mn.uint32(10).bytes(xn.annualProvisions), mn - }, - decode(xn, mn) { - const Bn = xn instanceof en.Reader ? xn : new en.Reader(xn) - let kn = mn === void 0 ? Bn.len : Bn.pos + mn - const ln = Kn() - for (; Bn.pos < kn; ) { - const yn = Bn.uint32() - switch (yn >>> 3) { - case 1: - ln.annualProvisions = Bn.bytes() - break - default: - Bn.skipType(yn & 7) - break - } - } - return ln - }, - fromJSON(xn) { - return { - annualProvisions: (0, nn.isSet)(xn.annualProvisions) - ? (0, nn.bytesFromBase64)(xn.annualProvisions) - : new Uint8Array(), - } - }, - toJSON(xn) { - const mn = {} - return ( - xn.annualProvisions !== void 0 && - (mn.annualProvisions = (0, nn.base64FromBytes)( - xn.annualProvisions !== void 0 ? xn.annualProvisions : new Uint8Array(), - )), - mn - ) - }, - fromPartial(xn) { - const mn = Kn() - return (mn.annualProvisions = xn.annualProvisions ?? new Uint8Array()), mn - }, - } - class an { - constructor(mn) { - ;(this.rpc = mn), - (this.Params = this.Params.bind(this)), - (this.Inflation = this.Inflation.bind(this)), - (this.AnnualProvisions = this.AnnualProvisions.bind(this)) - } - Params(mn = {}) { - const Bn = e.QueryParamsRequest.encode(mn).finish() - return this.rpc - .request('cosmos.mint.v1beta1.Query', 'Params', Bn) - .then((ln) => e.QueryParamsResponse.decode(new en.Reader(ln))) - } - Inflation(mn = {}) { - const Bn = e.QueryInflationRequest.encode(mn).finish() - return this.rpc - .request('cosmos.mint.v1beta1.Query', 'Inflation', Bn) - .then((ln) => e.QueryInflationResponse.decode(new en.Reader(ln))) - } - AnnualProvisions(mn = {}) { - const Bn = e.QueryAnnualProvisionsRequest.encode(mn).finish() - return this.rpc - .request('cosmos.mint.v1beta1.Query', 'AnnualProvisions', Bn) - .then((ln) => e.QueryAnnualProvisionsResponse.decode(new en.Reader(ln))) - } - } - e.QueryClientImpl = an -})(query$3) -Object.defineProperty(queries$4, '__esModule', { value: !0 }) -queries$4.setupMintExtension = void 0 -const utils_1$5 = build$5, - query_1$3 = query$3, - queryclient_1$4 = queryclient$1 -function setupMintExtension(e) { - const o = (0, queryclient_1$4.createProtobufRpcClient)(e), - _ = new query_1$3.QueryClientImpl(o) - return { - mint: { - params: async () => { - const { params: b } = await _.Params({}) - return ( - (0, utils_1$5.assert)(b), - { - blocksPerYear: b.blocksPerYear, - goalBonded: (0, queryclient_1$4.decodeCosmosSdkDecFromProto)(b.goalBonded), - inflationMin: (0, queryclient_1$4.decodeCosmosSdkDecFromProto)(b.inflationMin), - inflationMax: (0, queryclient_1$4.decodeCosmosSdkDecFromProto)(b.inflationMax), - inflationRateChange: (0, queryclient_1$4.decodeCosmosSdkDecFromProto)( - b.inflationRateChange, - ), - mintDenom: b.mintDenom, - } - ) - }, - inflation: async () => { - const { inflation: b } = await _.Inflation({}) - return (0, queryclient_1$4.decodeCosmosSdkDecFromProto)(b) - }, - annualProvisions: async () => { - const { annualProvisions: b } = await _.AnnualProvisions({}) - return (0, queryclient_1$4.decodeCosmosSdkDecFromProto)(b) - }, - }, - } -} -queries$4.setupMintExtension = setupMintExtension -var aminomessages$3 = {} -Object.defineProperty(aminomessages$3, '__esModule', { value: !0 }) -aminomessages$3.createSlashingAminoConverters = aminomessages$3.isAminoMsgUnjail = void 0 -function isAminoMsgUnjail(e) { - return e.type === 'cosmos-sdk/MsgUnjail' -} -aminomessages$3.isAminoMsgUnjail = isAminoMsgUnjail -function createSlashingAminoConverters() { - throw new Error('Not implemented') -} -aminomessages$3.createSlashingAminoConverters = createSlashingAminoConverters -var queries$3 = {}, - query$2 = {}, - slashing = {}, - __createBinding$5 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$5 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$5 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$5(o, e, _) - return __setModuleDefault$5(o, e), o - } -Object.defineProperty(slashing, '__esModule', { value: !0 }) -slashing.Params = slashing.ValidatorSigningInfo = slashing.protobufPackage = void 0 -const timestamp_1 = timestamp, - duration_1 = duration, - helpers_1$1 = helpers, - _m0$1 = __importStar$5(minimalExports) -slashing.protobufPackage = 'cosmos.slashing.v1beta1' -function createBaseValidatorSigningInfo() { - return { - address: '', - startHeight: helpers_1$1.Long.ZERO, - indexOffset: helpers_1$1.Long.ZERO, - jailedUntil: void 0, - tombstoned: !1, - missedBlocksCounter: helpers_1$1.Long.ZERO, - } -} -slashing.ValidatorSigningInfo = { - encode(e, o = _m0$1.Writer.create()) { - return ( - e.address !== '' && o.uint32(10).string(e.address), - e.startHeight.isZero() || o.uint32(16).int64(e.startHeight), - e.indexOffset.isZero() || o.uint32(24).int64(e.indexOffset), - e.jailedUntil !== void 0 && - timestamp_1.Timestamp.encode(e.jailedUntil, o.uint32(34).fork()).ldelim(), - e.tombstoned === !0 && o.uint32(40).bool(e.tombstoned), - e.missedBlocksCounter.isZero() || o.uint32(48).int64(e.missedBlocksCounter), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$1.Reader ? e : new _m0$1.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseValidatorSigningInfo() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.address = _.string() - break - case 2: - $.startHeight = _.int64() - break - case 3: - $.indexOffset = _.int64() - break - case 4: - $.jailedUntil = timestamp_1.Timestamp.decode(_, _.uint32()) - break - case 5: - $.tombstoned = _.bool() - break - case 6: - $.missedBlocksCounter = _.int64() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - address: (0, helpers_1$1.isSet)(e.address) ? String(e.address) : '', - startHeight: (0, helpers_1$1.isSet)(e.startHeight) - ? helpers_1$1.Long.fromValue(e.startHeight) - : helpers_1$1.Long.ZERO, - indexOffset: (0, helpers_1$1.isSet)(e.indexOffset) - ? helpers_1$1.Long.fromValue(e.indexOffset) - : helpers_1$1.Long.ZERO, - jailedUntil: (0, helpers_1$1.isSet)(e.jailedUntil) - ? (0, helpers_1$1.fromJsonTimestamp)(e.jailedUntil) - : void 0, - tombstoned: (0, helpers_1$1.isSet)(e.tombstoned) ? Boolean(e.tombstoned) : !1, - missedBlocksCounter: (0, helpers_1$1.isSet)(e.missedBlocksCounter) - ? helpers_1$1.Long.fromValue(e.missedBlocksCounter) - : helpers_1$1.Long.ZERO, - } - }, - toJSON(e) { - const o = {} - return ( - e.address !== void 0 && (o.address = e.address), - e.startHeight !== void 0 && - (o.startHeight = (e.startHeight || helpers_1$1.Long.ZERO).toString()), - e.indexOffset !== void 0 && - (o.indexOffset = (e.indexOffset || helpers_1$1.Long.ZERO).toString()), - e.jailedUntil !== void 0 && - (o.jailedUntil = (0, helpers_1$1.fromTimestamp)(e.jailedUntil).toISOString()), - e.tombstoned !== void 0 && (o.tombstoned = e.tombstoned), - e.missedBlocksCounter !== void 0 && - (o.missedBlocksCounter = (e.missedBlocksCounter || helpers_1$1.Long.ZERO).toString()), - o - ) - }, - fromPartial(e) { - const o = createBaseValidatorSigningInfo() - return ( - (o.address = e.address ?? ''), - (o.startHeight = - e.startHeight !== void 0 && e.startHeight !== null - ? helpers_1$1.Long.fromValue(e.startHeight) - : helpers_1$1.Long.ZERO), - (o.indexOffset = - e.indexOffset !== void 0 && e.indexOffset !== null - ? helpers_1$1.Long.fromValue(e.indexOffset) - : helpers_1$1.Long.ZERO), - (o.jailedUntil = - e.jailedUntil !== void 0 && e.jailedUntil !== null - ? timestamp_1.Timestamp.fromPartial(e.jailedUntil) - : void 0), - (o.tombstoned = e.tombstoned ?? !1), - (o.missedBlocksCounter = - e.missedBlocksCounter !== void 0 && e.missedBlocksCounter !== null - ? helpers_1$1.Long.fromValue(e.missedBlocksCounter) - : helpers_1$1.Long.ZERO), - o - ) - }, -} -function createBaseParams() { - return { - signedBlocksWindow: helpers_1$1.Long.ZERO, - minSignedPerWindow: new Uint8Array(), - downtimeJailDuration: void 0, - slashFractionDoubleSign: new Uint8Array(), - slashFractionDowntime: new Uint8Array(), - } -} -slashing.Params = { - encode(e, o = _m0$1.Writer.create()) { - return ( - e.signedBlocksWindow.isZero() || o.uint32(8).int64(e.signedBlocksWindow), - e.minSignedPerWindow.length !== 0 && o.uint32(18).bytes(e.minSignedPerWindow), - e.downtimeJailDuration !== void 0 && - duration_1.Duration.encode(e.downtimeJailDuration, o.uint32(26).fork()).ldelim(), - e.slashFractionDoubleSign.length !== 0 && o.uint32(34).bytes(e.slashFractionDoubleSign), - e.slashFractionDowntime.length !== 0 && o.uint32(42).bytes(e.slashFractionDowntime), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0$1.Reader ? e : new _m0$1.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseParams() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.signedBlocksWindow = _.int64() - break - case 2: - $.minSignedPerWindow = _.bytes() - break - case 3: - $.downtimeJailDuration = duration_1.Duration.decode(_, _.uint32()) - break - case 4: - $.slashFractionDoubleSign = _.bytes() - break - case 5: - $.slashFractionDowntime = _.bytes() - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - signedBlocksWindow: (0, helpers_1$1.isSet)(e.signedBlocksWindow) - ? helpers_1$1.Long.fromValue(e.signedBlocksWindow) - : helpers_1$1.Long.ZERO, - minSignedPerWindow: (0, helpers_1$1.isSet)(e.minSignedPerWindow) - ? (0, helpers_1$1.bytesFromBase64)(e.minSignedPerWindow) - : new Uint8Array(), - downtimeJailDuration: (0, helpers_1$1.isSet)(e.downtimeJailDuration) - ? duration_1.Duration.fromJSON(e.downtimeJailDuration) - : void 0, - slashFractionDoubleSign: (0, helpers_1$1.isSet)(e.slashFractionDoubleSign) - ? (0, helpers_1$1.bytesFromBase64)(e.slashFractionDoubleSign) - : new Uint8Array(), - slashFractionDowntime: (0, helpers_1$1.isSet)(e.slashFractionDowntime) - ? (0, helpers_1$1.bytesFromBase64)(e.slashFractionDowntime) - : new Uint8Array(), - } - }, - toJSON(e) { - const o = {} - return ( - e.signedBlocksWindow !== void 0 && - (o.signedBlocksWindow = (e.signedBlocksWindow || helpers_1$1.Long.ZERO).toString()), - e.minSignedPerWindow !== void 0 && - (o.minSignedPerWindow = (0, helpers_1$1.base64FromBytes)( - e.minSignedPerWindow !== void 0 ? e.minSignedPerWindow : new Uint8Array(), - )), - e.downtimeJailDuration !== void 0 && - (o.downtimeJailDuration = e.downtimeJailDuration - ? duration_1.Duration.toJSON(e.downtimeJailDuration) - : void 0), - e.slashFractionDoubleSign !== void 0 && - (o.slashFractionDoubleSign = (0, helpers_1$1.base64FromBytes)( - e.slashFractionDoubleSign !== void 0 ? e.slashFractionDoubleSign : new Uint8Array(), - )), - e.slashFractionDowntime !== void 0 && - (o.slashFractionDowntime = (0, helpers_1$1.base64FromBytes)( - e.slashFractionDowntime !== void 0 ? e.slashFractionDowntime : new Uint8Array(), - )), - o - ) - }, - fromPartial(e) { - const o = createBaseParams() - return ( - (o.signedBlocksWindow = - e.signedBlocksWindow !== void 0 && e.signedBlocksWindow !== null - ? helpers_1$1.Long.fromValue(e.signedBlocksWindow) - : helpers_1$1.Long.ZERO), - (o.minSignedPerWindow = e.minSignedPerWindow ?? new Uint8Array()), - (o.downtimeJailDuration = - e.downtimeJailDuration !== void 0 && e.downtimeJailDuration !== null - ? duration_1.Duration.fromPartial(e.downtimeJailDuration) - : void 0), - (o.slashFractionDoubleSign = e.slashFractionDoubleSign ?? new Uint8Array()), - (o.slashFractionDowntime = e.slashFractionDowntime ?? new Uint8Array()), - o - ) - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn) - var yn = Object.getOwnPropertyDescriptor(Bn, kn) - ;(!yn || ('get' in yn ? !Bn.__esModule : yn.writable || yn.configurable)) && - (yn = { - enumerable: !0, - get: function () { - return Bn[kn] - }, - }), - Object.defineProperty(mn, ln, yn) - } - : function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn), (mn[ln] = Bn[kn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (mn, Bn) { - Object.defineProperty(mn, 'default', { enumerable: !0, value: Bn }) - } - : function (mn, Bn) { - mn.default = Bn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (mn) { - if (mn && mn.__esModule) return mn - var Bn = {} - if (mn != null) - for (var kn in mn) - kn !== 'default' && Object.prototype.hasOwnProperty.call(mn, kn) && o(Bn, mn, kn) - return _(Bn, mn), Bn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QuerySigningInfosResponse = - e.QuerySigningInfosRequest = - e.QuerySigningInfoResponse = - e.QuerySigningInfoRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = slashing, - nn = b(minimalExports), - sn = helpers - e.protobufPackage = 'cosmos.slashing.v1beta1' - function gn() { - return {} - } - e.QueryParamsRequest = { - encode(mn, Bn = nn.Writer.create()) { - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = gn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return {} - }, - toJSON(mn) { - return {} - }, - fromPartial(mn) { - return gn() - }, - } - function In() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(mn, Bn = nn.Writer.create()) { - return mn.params !== void 0 && en.Params.encode(mn.params, Bn.uint32(10).fork()).ldelim(), Bn - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = In() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.params = en.Params.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { params: (0, sn.isSet)(mn.params) ? en.Params.fromJSON(mn.params) : void 0 } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.params !== void 0 && (Bn.params = mn.params ? en.Params.toJSON(mn.params) : void 0), Bn - ) - }, - fromPartial(mn) { - const Bn = In() - return ( - (Bn.params = - mn.params !== void 0 && mn.params !== null ? en.Params.fromPartial(mn.params) : void 0), - Bn - ) - }, - } - function Jn() { - return { consAddress: '' } - } - e.QuerySigningInfoRequest = { - encode(mn, Bn = nn.Writer.create()) { - return mn.consAddress !== '' && Bn.uint32(10).string(mn.consAddress), Bn - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Jn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.consAddress = kn.string() - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { consAddress: (0, sn.isSet)(mn.consAddress) ? String(mn.consAddress) : '' } - }, - toJSON(mn) { - const Bn = {} - return mn.consAddress !== void 0 && (Bn.consAddress = mn.consAddress), Bn - }, - fromPartial(mn) { - const Bn = Jn() - return (Bn.consAddress = mn.consAddress ?? ''), Bn - }, - } - function qn() { - return { valSigningInfo: void 0 } - } - e.QuerySigningInfoResponse = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.valSigningInfo !== void 0 && - en.ValidatorSigningInfo.encode(mn.valSigningInfo, Bn.uint32(10).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = qn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.valSigningInfo = en.ValidatorSigningInfo.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - valSigningInfo: (0, sn.isSet)(mn.valSigningInfo) - ? en.ValidatorSigningInfo.fromJSON(mn.valSigningInfo) - : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.valSigningInfo !== void 0 && - (Bn.valSigningInfo = mn.valSigningInfo - ? en.ValidatorSigningInfo.toJSON(mn.valSigningInfo) - : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = qn() - return ( - (Bn.valSigningInfo = - mn.valSigningInfo !== void 0 && mn.valSigningInfo !== null - ? en.ValidatorSigningInfo.fromPartial(mn.valSigningInfo) - : void 0), - Bn - ) - }, - } - function Kn() { - return { pagination: void 0 } - } - e.QuerySigningInfosRequest = { - encode(mn, Bn = nn.Writer.create()) { - return ( - mn.pagination !== void 0 && - $.PageRequest.encode(mn.pagination, Bn.uint32(10).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Kn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.pagination = $.PageRequest.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - pagination: (0, sn.isSet)(mn.pagination) ? $.PageRequest.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageRequest.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = Kn() - return ( - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageRequest.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - function an() { - return { info: [], pagination: void 0 } - } - e.QuerySigningInfosResponse = { - encode(mn, Bn = nn.Writer.create()) { - for (const kn of mn.info) en.ValidatorSigningInfo.encode(kn, Bn.uint32(10).fork()).ldelim() - return ( - mn.pagination !== void 0 && - $.PageResponse.encode(mn.pagination, Bn.uint32(18).fork()).ldelim(), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof nn.Reader ? mn : new nn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = an() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.info.push(en.ValidatorSigningInfo.decode(kn, kn.uint32())) - break - case 2: - yn.pagination = $.PageResponse.decode(kn, kn.uint32()) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - info: Array.isArray(mn?.info) - ? mn.info.map((Bn) => en.ValidatorSigningInfo.fromJSON(Bn)) - : [], - pagination: (0, sn.isSet)(mn.pagination) ? $.PageResponse.fromJSON(mn.pagination) : void 0, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.info - ? (Bn.info = mn.info.map((kn) => (kn ? en.ValidatorSigningInfo.toJSON(kn) : void 0))) - : (Bn.info = []), - mn.pagination !== void 0 && - (Bn.pagination = mn.pagination ? $.PageResponse.toJSON(mn.pagination) : void 0), - Bn - ) - }, - fromPartial(mn) { - const Bn = an() - return ( - (Bn.info = mn.info?.map((kn) => en.ValidatorSigningInfo.fromPartial(kn)) || []), - (Bn.pagination = - mn.pagination !== void 0 && mn.pagination !== null - ? $.PageResponse.fromPartial(mn.pagination) - : void 0), - Bn - ) - }, - } - class xn { - constructor(Bn) { - ;(this.rpc = Bn), - (this.Params = this.Params.bind(this)), - (this.SigningInfo = this.SigningInfo.bind(this)), - (this.SigningInfos = this.SigningInfos.bind(this)) - } - Params(Bn = {}) { - const kn = e.QueryParamsRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.slashing.v1beta1.Query', 'Params', kn) - .then((yn) => e.QueryParamsResponse.decode(new nn.Reader(yn))) - } - SigningInfo(Bn) { - const kn = e.QuerySigningInfoRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.slashing.v1beta1.Query', 'SigningInfo', kn) - .then((yn) => e.QuerySigningInfoResponse.decode(new nn.Reader(yn))) - } - SigningInfos(Bn = { pagination: void 0 }) { - const kn = e.QuerySigningInfosRequest.encode(Bn).finish() - return this.rpc - .request('cosmos.slashing.v1beta1.Query', 'SigningInfos', kn) - .then((yn) => e.QuerySigningInfosResponse.decode(new nn.Reader(yn))) - } - } - e.QueryClientImpl = xn -})(query$2) -Object.defineProperty(queries$3, '__esModule', { value: !0 }) -queries$3.setupSlashingExtension = void 0 -const query_1$2 = query$2, - queryclient_1$3 = queryclient$1 -function setupSlashingExtension(e) { - const o = (0, queryclient_1$3.createProtobufRpcClient)(e), - _ = new query_1$2.QueryClientImpl(o) - return { - slashing: { - signingInfo: async (b) => await _.SigningInfo({ consAddress: b }), - signingInfos: async (b) => - await _.SigningInfos({ pagination: (0, queryclient_1$3.createPagination)(b) }), - params: async () => await _.Params({}), - }, - } -} -queries$3.setupSlashingExtension = setupSlashingExtension -var aminomessages$2 = {} -Object.defineProperty(aminomessages$2, '__esModule', { value: !0 }) -aminomessages$2.createStakingAminoConverters = - aminomessages$2.isAminoMsgUndelegate = - aminomessages$2.isAminoMsgBeginRedelegate = - aminomessages$2.isAminoMsgDelegate = - aminomessages$2.isAminoMsgEditValidator = - aminomessages$2.isAminoMsgCreateValidator = - aminomessages$2.protoDecimalToJson = - void 0 -const math_1$4 = build$a, - proto_signing_1$2 = build$8, - utils_1$4 = build$5 -function protoDecimalToJson(e) { - const o = math_1$4.Decimal.fromAtomics(e, 18), - [_, b] = o.toString().split('.') - return `${_}.${(b ?? '').padEnd(18, '0')}` -} -aminomessages$2.protoDecimalToJson = protoDecimalToJson -function jsonDecimalToProto(e) { - return math_1$4.Decimal.fromUserInput(e, 18).atomics -} -function isAminoMsgCreateValidator(e) { - return e.type === 'cosmos-sdk/MsgCreateValidator' -} -aminomessages$2.isAminoMsgCreateValidator = isAminoMsgCreateValidator -function isAminoMsgEditValidator(e) { - return e.type === 'cosmos-sdk/MsgEditValidator' -} -aminomessages$2.isAminoMsgEditValidator = isAminoMsgEditValidator -function isAminoMsgDelegate(e) { - return e.type === 'cosmos-sdk/MsgDelegate' -} -aminomessages$2.isAminoMsgDelegate = isAminoMsgDelegate -function isAminoMsgBeginRedelegate(e) { - return e.type === 'cosmos-sdk/MsgBeginRedelegate' -} -aminomessages$2.isAminoMsgBeginRedelegate = isAminoMsgBeginRedelegate -function isAminoMsgUndelegate(e) { - return e.type === 'cosmos-sdk/MsgUndelegate' -} -aminomessages$2.isAminoMsgUndelegate = isAminoMsgUndelegate -function createStakingAminoConverters() { - return { - '/cosmos.staking.v1beta1.MsgBeginRedelegate': { - aminoType: 'cosmos-sdk/MsgBeginRedelegate', - toAmino: ({ - delegatorAddress: e, - validatorSrcAddress: o, - validatorDstAddress: _, - amount: b, - }) => ( - (0, utils_1$4.assertDefinedAndNotNull)(b, 'missing amount'), - { delegator_address: e, validator_src_address: o, validator_dst_address: _, amount: b } - ), - fromAmino: ({ - delegator_address: e, - validator_src_address: o, - validator_dst_address: _, - amount: b, - }) => ({ delegatorAddress: e, validatorSrcAddress: o, validatorDstAddress: _, amount: b }), - }, - '/cosmos.staking.v1beta1.MsgCreateValidator': { - aminoType: 'cosmos-sdk/MsgCreateValidator', - toAmino: ({ - description: e, - commission: o, - minSelfDelegation: _, - delegatorAddress: b, - validatorAddress: $, - pubkey: en, - value: nn, - }) => ( - (0, utils_1$4.assertDefinedAndNotNull)(e, 'missing description'), - (0, utils_1$4.assertDefinedAndNotNull)(o, 'missing commission'), - (0, utils_1$4.assertDefinedAndNotNull)(en, 'missing pubkey'), - (0, utils_1$4.assertDefinedAndNotNull)(nn, 'missing value'), - { - description: { - moniker: e.moniker, - identity: e.identity, - website: e.website, - security_contact: e.securityContact, - details: e.details, - }, - commission: { - rate: protoDecimalToJson(o.rate), - max_rate: protoDecimalToJson(o.maxRate), - max_change_rate: protoDecimalToJson(o.maxChangeRate), - }, - min_self_delegation: _, - delegator_address: b, - validator_address: $, - pubkey: (0, proto_signing_1$2.decodePubkey)(en), - value: nn, - } - ), - fromAmino: ({ - description: e, - commission: o, - min_self_delegation: _, - delegator_address: b, - validator_address: $, - pubkey: en, - value: nn, - }) => ({ - description: { - moniker: e.moniker, - identity: e.identity, - website: e.website, - securityContact: e.security_contact, - details: e.details, - }, - commission: { - rate: jsonDecimalToProto(o.rate), - maxRate: jsonDecimalToProto(o.max_rate), - maxChangeRate: jsonDecimalToProto(o.max_change_rate), - }, - minSelfDelegation: _, - delegatorAddress: b, - validatorAddress: $, - pubkey: (0, proto_signing_1$2.encodePubkey)(en), - value: nn, - }), - }, - '/cosmos.staking.v1beta1.MsgDelegate': { - aminoType: 'cosmos-sdk/MsgDelegate', - toAmino: ({ delegatorAddress: e, validatorAddress: o, amount: _ }) => ( - (0, utils_1$4.assertDefinedAndNotNull)(_, 'missing amount'), - { delegator_address: e, validator_address: o, amount: _ } - ), - fromAmino: ({ delegator_address: e, validator_address: o, amount: _ }) => ({ - delegatorAddress: e, - validatorAddress: o, - amount: _, - }), - }, - '/cosmos.staking.v1beta1.MsgEditValidator': { - aminoType: 'cosmos-sdk/MsgEditValidator', - toAmino: ({ - description: e, - commissionRate: o, - minSelfDelegation: _, - validatorAddress: b, - }) => ( - (0, utils_1$4.assertDefinedAndNotNull)(e, 'missing description'), - { - description: { - moniker: e.moniker, - identity: e.identity, - website: e.website, - security_contact: e.securityContact, - details: e.details, - }, - commission_rate: o ? protoDecimalToJson(o) : void 0, - min_self_delegation: _ || void 0, - validator_address: b, - } - ), - fromAmino: ({ - description: e, - commission_rate: o, - min_self_delegation: _, - validator_address: b, - }) => ({ - description: { - moniker: e.moniker, - identity: e.identity, - website: e.website, - securityContact: e.security_contact, - details: e.details, - }, - commissionRate: o ? jsonDecimalToProto(o) : '', - minSelfDelegation: _ ?? '', - validatorAddress: b, - }), - }, - '/cosmos.staking.v1beta1.MsgUndelegate': { - aminoType: 'cosmos-sdk/MsgUndelegate', - toAmino: ({ delegatorAddress: e, validatorAddress: o, amount: _ }) => ( - (0, utils_1$4.assertDefinedAndNotNull)(_, 'missing amount'), - { delegator_address: e, validator_address: o, amount: _ } - ), - fromAmino: ({ delegator_address: e, validator_address: o, amount: _ }) => ({ - delegatorAddress: e, - validatorAddress: o, - amount: _, - }), - }, - } -} -aminomessages$2.createStakingAminoConverters = createStakingAminoConverters -var messages$2 = {}, - tx$2 = {}, - staking = {}, - types$3 = {}, - params = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (an, xn, mn, Bn) { - Bn === void 0 && (Bn = mn) - var kn = Object.getOwnPropertyDescriptor(xn, mn) - ;(!kn || ('get' in kn ? !xn.__esModule : kn.writable || kn.configurable)) && - (kn = { - enumerable: !0, - get: function () { - return xn[mn] - }, - }), - Object.defineProperty(an, Bn, kn) - } - : function (an, xn, mn, Bn) { - Bn === void 0 && (Bn = mn), (an[Bn] = xn[mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (an, xn) { - Object.defineProperty(an, 'default', { enumerable: !0, value: xn }) - } - : function (an, xn) { - an.default = xn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (an) { - if (an && an.__esModule) return an - var xn = {} - if (an != null) - for (var mn in an) - mn !== 'default' && Object.prototype.hasOwnProperty.call(an, mn) && o(xn, an, mn) - return _(xn, an), xn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.HashedParams = - e.VersionParams = - e.ValidatorParams = - e.EvidenceParams = - e.BlockParams = - e.ConsensusParams = - e.protobufPackage = - void 0) - const $ = duration, - en = helpers, - nn = b(minimalExports) - e.protobufPackage = 'tendermint.types' - function sn() { - return { block: void 0, evidence: void 0, validator: void 0, version: void 0 } - } - e.ConsensusParams = { - encode(an, xn = nn.Writer.create()) { - return ( - an.block !== void 0 && e.BlockParams.encode(an.block, xn.uint32(10).fork()).ldelim(), - an.evidence !== void 0 && - e.EvidenceParams.encode(an.evidence, xn.uint32(18).fork()).ldelim(), - an.validator !== void 0 && - e.ValidatorParams.encode(an.validator, xn.uint32(26).fork()).ldelim(), - an.version !== void 0 && e.VersionParams.encode(an.version, xn.uint32(34).fork()).ldelim(), - xn - ) - }, - decode(an, xn) { - const mn = an instanceof nn.Reader ? an : new nn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = sn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.block = e.BlockParams.decode(mn, mn.uint32()) - break - case 2: - kn.evidence = e.EvidenceParams.decode(mn, mn.uint32()) - break - case 3: - kn.validator = e.ValidatorParams.decode(mn, mn.uint32()) - break - case 4: - kn.version = e.VersionParams.decode(mn, mn.uint32()) - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - block: (0, en.isSet)(an.block) ? e.BlockParams.fromJSON(an.block) : void 0, - evidence: (0, en.isSet)(an.evidence) ? e.EvidenceParams.fromJSON(an.evidence) : void 0, - validator: (0, en.isSet)(an.validator) ? e.ValidatorParams.fromJSON(an.validator) : void 0, - version: (0, en.isSet)(an.version) ? e.VersionParams.fromJSON(an.version) : void 0, - } - }, - toJSON(an) { - const xn = {} - return ( - an.block !== void 0 && (xn.block = an.block ? e.BlockParams.toJSON(an.block) : void 0), - an.evidence !== void 0 && - (xn.evidence = an.evidence ? e.EvidenceParams.toJSON(an.evidence) : void 0), - an.validator !== void 0 && - (xn.validator = an.validator ? e.ValidatorParams.toJSON(an.validator) : void 0), - an.version !== void 0 && - (xn.version = an.version ? e.VersionParams.toJSON(an.version) : void 0), - xn - ) - }, - fromPartial(an) { - const xn = sn() - return ( - (xn.block = - an.block !== void 0 && an.block !== null ? e.BlockParams.fromPartial(an.block) : void 0), - (xn.evidence = - an.evidence !== void 0 && an.evidence !== null - ? e.EvidenceParams.fromPartial(an.evidence) - : void 0), - (xn.validator = - an.validator !== void 0 && an.validator !== null - ? e.ValidatorParams.fromPartial(an.validator) - : void 0), - (xn.version = - an.version !== void 0 && an.version !== null - ? e.VersionParams.fromPartial(an.version) - : void 0), - xn - ) - }, - } - function gn() { - return { maxBytes: en.Long.ZERO, maxGas: en.Long.ZERO } - } - e.BlockParams = { - encode(an, xn = nn.Writer.create()) { - return ( - an.maxBytes.isZero() || xn.uint32(8).int64(an.maxBytes), - an.maxGas.isZero() || xn.uint32(16).int64(an.maxGas), - xn - ) - }, - decode(an, xn) { - const mn = an instanceof nn.Reader ? an : new nn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = gn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.maxBytes = mn.int64() - break - case 2: - kn.maxGas = mn.int64() - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - maxBytes: (0, en.isSet)(an.maxBytes) ? en.Long.fromValue(an.maxBytes) : en.Long.ZERO, - maxGas: (0, en.isSet)(an.maxGas) ? en.Long.fromValue(an.maxGas) : en.Long.ZERO, - } - }, - toJSON(an) { - const xn = {} - return ( - an.maxBytes !== void 0 && (xn.maxBytes = (an.maxBytes || en.Long.ZERO).toString()), - an.maxGas !== void 0 && (xn.maxGas = (an.maxGas || en.Long.ZERO).toString()), - xn - ) - }, - fromPartial(an) { - const xn = gn() - return ( - (xn.maxBytes = - an.maxBytes !== void 0 && an.maxBytes !== null - ? en.Long.fromValue(an.maxBytes) - : en.Long.ZERO), - (xn.maxGas = - an.maxGas !== void 0 && an.maxGas !== null ? en.Long.fromValue(an.maxGas) : en.Long.ZERO), - xn - ) - }, - } - function In() { - return { maxAgeNumBlocks: en.Long.ZERO, maxAgeDuration: void 0, maxBytes: en.Long.ZERO } - } - e.EvidenceParams = { - encode(an, xn = nn.Writer.create()) { - return ( - an.maxAgeNumBlocks.isZero() || xn.uint32(8).int64(an.maxAgeNumBlocks), - an.maxAgeDuration !== void 0 && - $.Duration.encode(an.maxAgeDuration, xn.uint32(18).fork()).ldelim(), - an.maxBytes.isZero() || xn.uint32(24).int64(an.maxBytes), - xn - ) - }, - decode(an, xn) { - const mn = an instanceof nn.Reader ? an : new nn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = In() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.maxAgeNumBlocks = mn.int64() - break - case 2: - kn.maxAgeDuration = $.Duration.decode(mn, mn.uint32()) - break - case 3: - kn.maxBytes = mn.int64() - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - maxAgeNumBlocks: (0, en.isSet)(an.maxAgeNumBlocks) - ? en.Long.fromValue(an.maxAgeNumBlocks) - : en.Long.ZERO, - maxAgeDuration: (0, en.isSet)(an.maxAgeDuration) - ? $.Duration.fromJSON(an.maxAgeDuration) - : void 0, - maxBytes: (0, en.isSet)(an.maxBytes) ? en.Long.fromValue(an.maxBytes) : en.Long.ZERO, - } - }, - toJSON(an) { - const xn = {} - return ( - an.maxAgeNumBlocks !== void 0 && - (xn.maxAgeNumBlocks = (an.maxAgeNumBlocks || en.Long.ZERO).toString()), - an.maxAgeDuration !== void 0 && - (xn.maxAgeDuration = an.maxAgeDuration ? $.Duration.toJSON(an.maxAgeDuration) : void 0), - an.maxBytes !== void 0 && (xn.maxBytes = (an.maxBytes || en.Long.ZERO).toString()), - xn - ) - }, - fromPartial(an) { - const xn = In() - return ( - (xn.maxAgeNumBlocks = - an.maxAgeNumBlocks !== void 0 && an.maxAgeNumBlocks !== null - ? en.Long.fromValue(an.maxAgeNumBlocks) - : en.Long.ZERO), - (xn.maxAgeDuration = - an.maxAgeDuration !== void 0 && an.maxAgeDuration !== null - ? $.Duration.fromPartial(an.maxAgeDuration) - : void 0), - (xn.maxBytes = - an.maxBytes !== void 0 && an.maxBytes !== null - ? en.Long.fromValue(an.maxBytes) - : en.Long.ZERO), - xn - ) - }, - } - function Jn() { - return { pubKeyTypes: [] } - } - e.ValidatorParams = { - encode(an, xn = nn.Writer.create()) { - for (const mn of an.pubKeyTypes) xn.uint32(10).string(mn) - return xn - }, - decode(an, xn) { - const mn = an instanceof nn.Reader ? an : new nn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = Jn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.pubKeyTypes.push(mn.string()) - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - pubKeyTypes: Array.isArray(an?.pubKeyTypes) ? an.pubKeyTypes.map((xn) => String(xn)) : [], - } - }, - toJSON(an) { - const xn = {} - return ( - an.pubKeyTypes ? (xn.pubKeyTypes = an.pubKeyTypes.map((mn) => mn)) : (xn.pubKeyTypes = []), - xn - ) - }, - fromPartial(an) { - const xn = Jn() - return (xn.pubKeyTypes = an.pubKeyTypes?.map((mn) => mn) || []), xn - }, - } - function qn() { - return { app: en.Long.UZERO } - } - e.VersionParams = { - encode(an, xn = nn.Writer.create()) { - return an.app.isZero() || xn.uint32(8).uint64(an.app), xn - }, - decode(an, xn) { - const mn = an instanceof nn.Reader ? an : new nn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = qn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.app = mn.uint64() - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { app: (0, en.isSet)(an.app) ? en.Long.fromValue(an.app) : en.Long.UZERO } - }, - toJSON(an) { - const xn = {} - return an.app !== void 0 && (xn.app = (an.app || en.Long.UZERO).toString()), xn - }, - fromPartial(an) { - const xn = qn() - return ( - (xn.app = an.app !== void 0 && an.app !== null ? en.Long.fromValue(an.app) : en.Long.UZERO), - xn - ) - }, - } - function Kn() { - return { blockMaxBytes: en.Long.ZERO, blockMaxGas: en.Long.ZERO } - } - e.HashedParams = { - encode(an, xn = nn.Writer.create()) { - return ( - an.blockMaxBytes.isZero() || xn.uint32(8).int64(an.blockMaxBytes), - an.blockMaxGas.isZero() || xn.uint32(16).int64(an.blockMaxGas), - xn - ) - }, - decode(an, xn) { - const mn = an instanceof nn.Reader ? an : new nn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = Kn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.blockMaxBytes = mn.int64() - break - case 2: - kn.blockMaxGas = mn.int64() - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - blockMaxBytes: (0, en.isSet)(an.blockMaxBytes) - ? en.Long.fromValue(an.blockMaxBytes) - : en.Long.ZERO, - blockMaxGas: (0, en.isSet)(an.blockMaxGas) - ? en.Long.fromValue(an.blockMaxGas) - : en.Long.ZERO, - } - }, - toJSON(an) { - const xn = {} - return ( - an.blockMaxBytes !== void 0 && - (xn.blockMaxBytes = (an.blockMaxBytes || en.Long.ZERO).toString()), - an.blockMaxGas !== void 0 && (xn.blockMaxGas = (an.blockMaxGas || en.Long.ZERO).toString()), - xn - ) - }, - fromPartial(an) { - const xn = Kn() - return ( - (xn.blockMaxBytes = - an.blockMaxBytes !== void 0 && an.blockMaxBytes !== null - ? en.Long.fromValue(an.blockMaxBytes) - : en.Long.ZERO), - (xn.blockMaxGas = - an.blockMaxGas !== void 0 && an.blockMaxGas !== null - ? en.Long.fromValue(an.blockMaxGas) - : en.Long.ZERO), - xn - ) - }, - } -})(params) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Pn, Xn, dt, Ir) { - Ir === void 0 && (Ir = dt) - var Lt = Object.getOwnPropertyDescriptor(Xn, dt) - ;(!Lt || ('get' in Lt ? !Xn.__esModule : Lt.writable || Lt.configurable)) && - (Lt = { - enumerable: !0, - get: function () { - return Xn[dt] - }, - }), - Object.defineProperty(Pn, Ir, Lt) - } - : function (Pn, Xn, dt, Ir) { - Ir === void 0 && (Ir = dt), (Pn[Ir] = Xn[dt]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Pn, Xn) { - Object.defineProperty(Pn, 'default', { enumerable: !0, value: Xn }) - } - : function (Pn, Xn) { - Pn.default = Xn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Pn) { - if (Pn && Pn.__esModule) return Pn - var Xn = {} - if (Pn != null) - for (var dt in Pn) - dt !== 'default' && Object.prototype.hasOwnProperty.call(Pn, dt) && o(Xn, Pn, dt) - return _(Xn, Pn), Xn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ResponsePrepareProposal = - e.ResponseApplySnapshotChunk = - e.ResponseLoadSnapshotChunk = - e.ResponseOfferSnapshot = - e.ResponseListSnapshots = - e.ResponseCommit = - e.ResponseEndBlock = - e.ResponseDeliverTx = - e.ResponseCheckTx = - e.ResponseBeginBlock = - e.ResponseQuery = - e.ResponseInitChain = - e.ResponseInfo = - e.ResponseFlush = - e.ResponseEcho = - e.ResponseException = - e.Response = - e.RequestProcessProposal = - e.RequestPrepareProposal = - e.RequestApplySnapshotChunk = - e.RequestLoadSnapshotChunk = - e.RequestOfferSnapshot = - e.RequestListSnapshots = - e.RequestCommit = - e.RequestEndBlock = - e.RequestDeliverTx = - e.RequestCheckTx = - e.RequestBeginBlock = - e.RequestQuery = - e.RequestInitChain = - e.RequestInfo = - e.RequestFlush = - e.RequestEcho = - e.Request = - e.misbehaviorTypeToJSON = - e.misbehaviorTypeFromJSON = - e.MisbehaviorType = - e.responseProcessProposal_ProposalStatusToJSON = - e.responseProcessProposal_ProposalStatusFromJSON = - e.ResponseProcessProposal_ProposalStatus = - e.responseApplySnapshotChunk_ResultToJSON = - e.responseApplySnapshotChunk_ResultFromJSON = - e.ResponseApplySnapshotChunk_Result = - e.responseOfferSnapshot_ResultToJSON = - e.responseOfferSnapshot_ResultFromJSON = - e.ResponseOfferSnapshot_Result = - e.checkTxTypeToJSON = - e.checkTxTypeFromJSON = - e.CheckTxType = - e.protobufPackage = - void 0), - (e.ABCIApplicationClientImpl = - e.Snapshot = - e.Misbehavior = - e.ExtendedVoteInfo = - e.VoteInfo = - e.ValidatorUpdate = - e.Validator = - e.TxResult = - e.EventAttribute = - e.Event = - e.ExtendedCommitInfo = - e.CommitInfo = - e.ResponseProcessProposal = - void 0) - const $ = timestamp, - en = params, - nn = types$5, - sn = proof, - gn = keys, - In = helpers, - Jn = b(minimalExports) - e.protobufPackage = 'tendermint.abci' - var qn - ;(function (Pn) { - ;(Pn[(Pn.NEW = 0)] = 'NEW'), - (Pn[(Pn.RECHECK = 1)] = 'RECHECK'), - (Pn[(Pn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((qn = e.CheckTxType || (e.CheckTxType = {}))) - function Kn(Pn) { - switch (Pn) { - case 0: - case 'NEW': - return qn.NEW - case 1: - case 'RECHECK': - return qn.RECHECK - case -1: - case 'UNRECOGNIZED': - default: - return qn.UNRECOGNIZED - } - } - e.checkTxTypeFromJSON = Kn - function an(Pn) { - switch (Pn) { - case qn.NEW: - return 'NEW' - case qn.RECHECK: - return 'RECHECK' - case qn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.checkTxTypeToJSON = an - var xn - ;(function (Pn) { - ;(Pn[(Pn.UNKNOWN = 0)] = 'UNKNOWN'), - (Pn[(Pn.ACCEPT = 1)] = 'ACCEPT'), - (Pn[(Pn.ABORT = 2)] = 'ABORT'), - (Pn[(Pn.REJECT = 3)] = 'REJECT'), - (Pn[(Pn.REJECT_FORMAT = 4)] = 'REJECT_FORMAT'), - (Pn[(Pn.REJECT_SENDER = 5)] = 'REJECT_SENDER'), - (Pn[(Pn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((xn = e.ResponseOfferSnapshot_Result || (e.ResponseOfferSnapshot_Result = {}))) - function mn(Pn) { - switch (Pn) { - case 0: - case 'UNKNOWN': - return xn.UNKNOWN - case 1: - case 'ACCEPT': - return xn.ACCEPT - case 2: - case 'ABORT': - return xn.ABORT - case 3: - case 'REJECT': - return xn.REJECT - case 4: - case 'REJECT_FORMAT': - return xn.REJECT_FORMAT - case 5: - case 'REJECT_SENDER': - return xn.REJECT_SENDER - case -1: - case 'UNRECOGNIZED': - default: - return xn.UNRECOGNIZED - } - } - e.responseOfferSnapshot_ResultFromJSON = mn - function Bn(Pn) { - switch (Pn) { - case xn.UNKNOWN: - return 'UNKNOWN' - case xn.ACCEPT: - return 'ACCEPT' - case xn.ABORT: - return 'ABORT' - case xn.REJECT: - return 'REJECT' - case xn.REJECT_FORMAT: - return 'REJECT_FORMAT' - case xn.REJECT_SENDER: - return 'REJECT_SENDER' - case xn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.responseOfferSnapshot_ResultToJSON = Bn - var kn - ;(function (Pn) { - ;(Pn[(Pn.UNKNOWN = 0)] = 'UNKNOWN'), - (Pn[(Pn.ACCEPT = 1)] = 'ACCEPT'), - (Pn[(Pn.ABORT = 2)] = 'ABORT'), - (Pn[(Pn.RETRY = 3)] = 'RETRY'), - (Pn[(Pn.RETRY_SNAPSHOT = 4)] = 'RETRY_SNAPSHOT'), - (Pn[(Pn.REJECT_SNAPSHOT = 5)] = 'REJECT_SNAPSHOT'), - (Pn[(Pn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((kn = e.ResponseApplySnapshotChunk_Result || (e.ResponseApplySnapshotChunk_Result = {}))) - function ln(Pn) { - switch (Pn) { - case 0: - case 'UNKNOWN': - return kn.UNKNOWN - case 1: - case 'ACCEPT': - return kn.ACCEPT - case 2: - case 'ABORT': - return kn.ABORT - case 3: - case 'RETRY': - return kn.RETRY - case 4: - case 'RETRY_SNAPSHOT': - return kn.RETRY_SNAPSHOT - case 5: - case 'REJECT_SNAPSHOT': - return kn.REJECT_SNAPSHOT - case -1: - case 'UNRECOGNIZED': - default: - return kn.UNRECOGNIZED - } - } - e.responseApplySnapshotChunk_ResultFromJSON = ln - function yn(Pn) { - switch (Pn) { - case kn.UNKNOWN: - return 'UNKNOWN' - case kn.ACCEPT: - return 'ACCEPT' - case kn.ABORT: - return 'ABORT' - case kn.RETRY: - return 'RETRY' - case kn.RETRY_SNAPSHOT: - return 'RETRY_SNAPSHOT' - case kn.REJECT_SNAPSHOT: - return 'REJECT_SNAPSHOT' - case kn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.responseApplySnapshotChunk_ResultToJSON = yn - var Cn - ;(function (Pn) { - ;(Pn[(Pn.UNKNOWN = 0)] = 'UNKNOWN'), - (Pn[(Pn.ACCEPT = 1)] = 'ACCEPT'), - (Pn[(Pn.REJECT = 2)] = 'REJECT'), - (Pn[(Pn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })( - (Cn = - e.ResponseProcessProposal_ProposalStatus || (e.ResponseProcessProposal_ProposalStatus = {})), - ) - function Tn(Pn) { - switch (Pn) { - case 0: - case 'UNKNOWN': - return Cn.UNKNOWN - case 1: - case 'ACCEPT': - return Cn.ACCEPT - case 2: - case 'REJECT': - return Cn.REJECT - case -1: - case 'UNRECOGNIZED': - default: - return Cn.UNRECOGNIZED - } - } - e.responseProcessProposal_ProposalStatusFromJSON = Tn - function Gn(Pn) { - switch (Pn) { - case Cn.UNKNOWN: - return 'UNKNOWN' - case Cn.ACCEPT: - return 'ACCEPT' - case Cn.REJECT: - return 'REJECT' - case Cn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.responseProcessProposal_ProposalStatusToJSON = Gn - var Sn - ;(function (Pn) { - ;(Pn[(Pn.UNKNOWN = 0)] = 'UNKNOWN'), - (Pn[(Pn.DUPLICATE_VOTE = 1)] = 'DUPLICATE_VOTE'), - (Pn[(Pn.LIGHT_CLIENT_ATTACK = 2)] = 'LIGHT_CLIENT_ATTACK'), - (Pn[(Pn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Sn = e.MisbehaviorType || (e.MisbehaviorType = {}))) - function Zn(Pn) { - switch (Pn) { - case 0: - case 'UNKNOWN': - return Sn.UNKNOWN - case 1: - case 'DUPLICATE_VOTE': - return Sn.DUPLICATE_VOTE - case 2: - case 'LIGHT_CLIENT_ATTACK': - return Sn.LIGHT_CLIENT_ATTACK - case -1: - case 'UNRECOGNIZED': - default: - return Sn.UNRECOGNIZED - } - } - e.misbehaviorTypeFromJSON = Zn - function tn(Pn) { - switch (Pn) { - case Sn.UNKNOWN: - return 'UNKNOWN' - case Sn.DUPLICATE_VOTE: - return 'DUPLICATE_VOTE' - case Sn.LIGHT_CLIENT_ATTACK: - return 'LIGHT_CLIENT_ATTACK' - case Sn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.misbehaviorTypeToJSON = tn - function En() { - return { - echo: void 0, - flush: void 0, - info: void 0, - initChain: void 0, - query: void 0, - beginBlock: void 0, - checkTx: void 0, - deliverTx: void 0, - endBlock: void 0, - commit: void 0, - listSnapshots: void 0, - offerSnapshot: void 0, - loadSnapshotChunk: void 0, - applySnapshotChunk: void 0, - prepareProposal: void 0, - processProposal: void 0, - } - } - e.Request = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.echo !== void 0 && e.RequestEcho.encode(Pn.echo, Xn.uint32(10).fork()).ldelim(), - Pn.flush !== void 0 && e.RequestFlush.encode(Pn.flush, Xn.uint32(18).fork()).ldelim(), - Pn.info !== void 0 && e.RequestInfo.encode(Pn.info, Xn.uint32(26).fork()).ldelim(), - Pn.initChain !== void 0 && - e.RequestInitChain.encode(Pn.initChain, Xn.uint32(42).fork()).ldelim(), - Pn.query !== void 0 && e.RequestQuery.encode(Pn.query, Xn.uint32(50).fork()).ldelim(), - Pn.beginBlock !== void 0 && - e.RequestBeginBlock.encode(Pn.beginBlock, Xn.uint32(58).fork()).ldelim(), - Pn.checkTx !== void 0 && e.RequestCheckTx.encode(Pn.checkTx, Xn.uint32(66).fork()).ldelim(), - Pn.deliverTx !== void 0 && - e.RequestDeliverTx.encode(Pn.deliverTx, Xn.uint32(74).fork()).ldelim(), - Pn.endBlock !== void 0 && - e.RequestEndBlock.encode(Pn.endBlock, Xn.uint32(82).fork()).ldelim(), - Pn.commit !== void 0 && e.RequestCommit.encode(Pn.commit, Xn.uint32(90).fork()).ldelim(), - Pn.listSnapshots !== void 0 && - e.RequestListSnapshots.encode(Pn.listSnapshots, Xn.uint32(98).fork()).ldelim(), - Pn.offerSnapshot !== void 0 && - e.RequestOfferSnapshot.encode(Pn.offerSnapshot, Xn.uint32(106).fork()).ldelim(), - Pn.loadSnapshotChunk !== void 0 && - e.RequestLoadSnapshotChunk.encode(Pn.loadSnapshotChunk, Xn.uint32(114).fork()).ldelim(), - Pn.applySnapshotChunk !== void 0 && - e.RequestApplySnapshotChunk.encode(Pn.applySnapshotChunk, Xn.uint32(122).fork()).ldelim(), - Pn.prepareProposal !== void 0 && - e.RequestPrepareProposal.encode(Pn.prepareProposal, Xn.uint32(130).fork()).ldelim(), - Pn.processProposal !== void 0 && - e.RequestProcessProposal.encode(Pn.processProposal, Xn.uint32(138).fork()).ldelim(), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = En() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.echo = e.RequestEcho.decode(dt, dt.uint32()) - break - case 2: - Lt.flush = e.RequestFlush.decode(dt, dt.uint32()) - break - case 3: - Lt.info = e.RequestInfo.decode(dt, dt.uint32()) - break - case 5: - Lt.initChain = e.RequestInitChain.decode(dt, dt.uint32()) - break - case 6: - Lt.query = e.RequestQuery.decode(dt, dt.uint32()) - break - case 7: - Lt.beginBlock = e.RequestBeginBlock.decode(dt, dt.uint32()) - break - case 8: - Lt.checkTx = e.RequestCheckTx.decode(dt, dt.uint32()) - break - case 9: - Lt.deliverTx = e.RequestDeliverTx.decode(dt, dt.uint32()) - break - case 10: - Lt.endBlock = e.RequestEndBlock.decode(dt, dt.uint32()) - break - case 11: - Lt.commit = e.RequestCommit.decode(dt, dt.uint32()) - break - case 12: - Lt.listSnapshots = e.RequestListSnapshots.decode(dt, dt.uint32()) - break - case 13: - Lt.offerSnapshot = e.RequestOfferSnapshot.decode(dt, dt.uint32()) - break - case 14: - Lt.loadSnapshotChunk = e.RequestLoadSnapshotChunk.decode(dt, dt.uint32()) - break - case 15: - Lt.applySnapshotChunk = e.RequestApplySnapshotChunk.decode(dt, dt.uint32()) - break - case 16: - Lt.prepareProposal = e.RequestPrepareProposal.decode(dt, dt.uint32()) - break - case 17: - Lt.processProposal = e.RequestProcessProposal.decode(dt, dt.uint32()) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - echo: (0, In.isSet)(Pn.echo) ? e.RequestEcho.fromJSON(Pn.echo) : void 0, - flush: (0, In.isSet)(Pn.flush) ? e.RequestFlush.fromJSON(Pn.flush) : void 0, - info: (0, In.isSet)(Pn.info) ? e.RequestInfo.fromJSON(Pn.info) : void 0, - initChain: (0, In.isSet)(Pn.initChain) ? e.RequestInitChain.fromJSON(Pn.initChain) : void 0, - query: (0, In.isSet)(Pn.query) ? e.RequestQuery.fromJSON(Pn.query) : void 0, - beginBlock: (0, In.isSet)(Pn.beginBlock) - ? e.RequestBeginBlock.fromJSON(Pn.beginBlock) - : void 0, - checkTx: (0, In.isSet)(Pn.checkTx) ? e.RequestCheckTx.fromJSON(Pn.checkTx) : void 0, - deliverTx: (0, In.isSet)(Pn.deliverTx) ? e.RequestDeliverTx.fromJSON(Pn.deliverTx) : void 0, - endBlock: (0, In.isSet)(Pn.endBlock) ? e.RequestEndBlock.fromJSON(Pn.endBlock) : void 0, - commit: (0, In.isSet)(Pn.commit) ? e.RequestCommit.fromJSON(Pn.commit) : void 0, - listSnapshots: (0, In.isSet)(Pn.listSnapshots) - ? e.RequestListSnapshots.fromJSON(Pn.listSnapshots) - : void 0, - offerSnapshot: (0, In.isSet)(Pn.offerSnapshot) - ? e.RequestOfferSnapshot.fromJSON(Pn.offerSnapshot) - : void 0, - loadSnapshotChunk: (0, In.isSet)(Pn.loadSnapshotChunk) - ? e.RequestLoadSnapshotChunk.fromJSON(Pn.loadSnapshotChunk) - : void 0, - applySnapshotChunk: (0, In.isSet)(Pn.applySnapshotChunk) - ? e.RequestApplySnapshotChunk.fromJSON(Pn.applySnapshotChunk) - : void 0, - prepareProposal: (0, In.isSet)(Pn.prepareProposal) - ? e.RequestPrepareProposal.fromJSON(Pn.prepareProposal) - : void 0, - processProposal: (0, In.isSet)(Pn.processProposal) - ? e.RequestProcessProposal.fromJSON(Pn.processProposal) - : void 0, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.echo !== void 0 && (Xn.echo = Pn.echo ? e.RequestEcho.toJSON(Pn.echo) : void 0), - Pn.flush !== void 0 && (Xn.flush = Pn.flush ? e.RequestFlush.toJSON(Pn.flush) : void 0), - Pn.info !== void 0 && (Xn.info = Pn.info ? e.RequestInfo.toJSON(Pn.info) : void 0), - Pn.initChain !== void 0 && - (Xn.initChain = Pn.initChain ? e.RequestInitChain.toJSON(Pn.initChain) : void 0), - Pn.query !== void 0 && (Xn.query = Pn.query ? e.RequestQuery.toJSON(Pn.query) : void 0), - Pn.beginBlock !== void 0 && - (Xn.beginBlock = Pn.beginBlock ? e.RequestBeginBlock.toJSON(Pn.beginBlock) : void 0), - Pn.checkTx !== void 0 && - (Xn.checkTx = Pn.checkTx ? e.RequestCheckTx.toJSON(Pn.checkTx) : void 0), - Pn.deliverTx !== void 0 && - (Xn.deliverTx = Pn.deliverTx ? e.RequestDeliverTx.toJSON(Pn.deliverTx) : void 0), - Pn.endBlock !== void 0 && - (Xn.endBlock = Pn.endBlock ? e.RequestEndBlock.toJSON(Pn.endBlock) : void 0), - Pn.commit !== void 0 && - (Xn.commit = Pn.commit ? e.RequestCommit.toJSON(Pn.commit) : void 0), - Pn.listSnapshots !== void 0 && - (Xn.listSnapshots = Pn.listSnapshots - ? e.RequestListSnapshots.toJSON(Pn.listSnapshots) - : void 0), - Pn.offerSnapshot !== void 0 && - (Xn.offerSnapshot = Pn.offerSnapshot - ? e.RequestOfferSnapshot.toJSON(Pn.offerSnapshot) - : void 0), - Pn.loadSnapshotChunk !== void 0 && - (Xn.loadSnapshotChunk = Pn.loadSnapshotChunk - ? e.RequestLoadSnapshotChunk.toJSON(Pn.loadSnapshotChunk) - : void 0), - Pn.applySnapshotChunk !== void 0 && - (Xn.applySnapshotChunk = Pn.applySnapshotChunk - ? e.RequestApplySnapshotChunk.toJSON(Pn.applySnapshotChunk) - : void 0), - Pn.prepareProposal !== void 0 && - (Xn.prepareProposal = Pn.prepareProposal - ? e.RequestPrepareProposal.toJSON(Pn.prepareProposal) - : void 0), - Pn.processProposal !== void 0 && - (Xn.processProposal = Pn.processProposal - ? e.RequestProcessProposal.toJSON(Pn.processProposal) - : void 0), - Xn - ) - }, - fromPartial(Pn) { - const Xn = En() - return ( - (Xn.echo = - Pn.echo !== void 0 && Pn.echo !== null ? e.RequestEcho.fromPartial(Pn.echo) : void 0), - (Xn.flush = - Pn.flush !== void 0 && Pn.flush !== null ? e.RequestFlush.fromPartial(Pn.flush) : void 0), - (Xn.info = - Pn.info !== void 0 && Pn.info !== null ? e.RequestInfo.fromPartial(Pn.info) : void 0), - (Xn.initChain = - Pn.initChain !== void 0 && Pn.initChain !== null - ? e.RequestInitChain.fromPartial(Pn.initChain) - : void 0), - (Xn.query = - Pn.query !== void 0 && Pn.query !== null ? e.RequestQuery.fromPartial(Pn.query) : void 0), - (Xn.beginBlock = - Pn.beginBlock !== void 0 && Pn.beginBlock !== null - ? e.RequestBeginBlock.fromPartial(Pn.beginBlock) - : void 0), - (Xn.checkTx = - Pn.checkTx !== void 0 && Pn.checkTx !== null - ? e.RequestCheckTx.fromPartial(Pn.checkTx) - : void 0), - (Xn.deliverTx = - Pn.deliverTx !== void 0 && Pn.deliverTx !== null - ? e.RequestDeliverTx.fromPartial(Pn.deliverTx) - : void 0), - (Xn.endBlock = - Pn.endBlock !== void 0 && Pn.endBlock !== null - ? e.RequestEndBlock.fromPartial(Pn.endBlock) - : void 0), - (Xn.commit = - Pn.commit !== void 0 && Pn.commit !== null - ? e.RequestCommit.fromPartial(Pn.commit) - : void 0), - (Xn.listSnapshots = - Pn.listSnapshots !== void 0 && Pn.listSnapshots !== null - ? e.RequestListSnapshots.fromPartial(Pn.listSnapshots) - : void 0), - (Xn.offerSnapshot = - Pn.offerSnapshot !== void 0 && Pn.offerSnapshot !== null - ? e.RequestOfferSnapshot.fromPartial(Pn.offerSnapshot) - : void 0), - (Xn.loadSnapshotChunk = - Pn.loadSnapshotChunk !== void 0 && Pn.loadSnapshotChunk !== null - ? e.RequestLoadSnapshotChunk.fromPartial(Pn.loadSnapshotChunk) - : void 0), - (Xn.applySnapshotChunk = - Pn.applySnapshotChunk !== void 0 && Pn.applySnapshotChunk !== null - ? e.RequestApplySnapshotChunk.fromPartial(Pn.applySnapshotChunk) - : void 0), - (Xn.prepareProposal = - Pn.prepareProposal !== void 0 && Pn.prepareProposal !== null - ? e.RequestPrepareProposal.fromPartial(Pn.prepareProposal) - : void 0), - (Xn.processProposal = - Pn.processProposal !== void 0 && Pn.processProposal !== null - ? e.RequestProcessProposal.fromPartial(Pn.processProposal) - : void 0), - Xn - ) - }, - } - function Mn() { - return { message: '' } - } - e.RequestEcho = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.message !== '' && Xn.uint32(10).string(Pn.message), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Mn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.message = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { message: (0, In.isSet)(Pn.message) ? String(Pn.message) : '' } - }, - toJSON(Pn) { - const Xn = {} - return Pn.message !== void 0 && (Xn.message = Pn.message), Xn - }, - fromPartial(Pn) { - const Xn = Mn() - return (Xn.message = Pn.message ?? ''), Xn - }, - } - function Hn() { - return {} - } - e.RequestFlush = { - encode(Pn, Xn = Jn.Writer.create()) { - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Hn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return {} - }, - toJSON(Pn) { - return {} - }, - fromPartial(Pn) { - return Hn() - }, - } - function un() { - return { version: '', blockVersion: In.Long.UZERO, p2pVersion: In.Long.UZERO, abciVersion: '' } - } - e.RequestInfo = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.version !== '' && Xn.uint32(10).string(Pn.version), - Pn.blockVersion.isZero() || Xn.uint32(16).uint64(Pn.blockVersion), - Pn.p2pVersion.isZero() || Xn.uint32(24).uint64(Pn.p2pVersion), - Pn.abciVersion !== '' && Xn.uint32(34).string(Pn.abciVersion), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = un() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.version = dt.string() - break - case 2: - Lt.blockVersion = dt.uint64() - break - case 3: - Lt.p2pVersion = dt.uint64() - break - case 4: - Lt.abciVersion = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - version: (0, In.isSet)(Pn.version) ? String(Pn.version) : '', - blockVersion: (0, In.isSet)(Pn.blockVersion) - ? In.Long.fromValue(Pn.blockVersion) - : In.Long.UZERO, - p2pVersion: (0, In.isSet)(Pn.p2pVersion) ? In.Long.fromValue(Pn.p2pVersion) : In.Long.UZERO, - abciVersion: (0, In.isSet)(Pn.abciVersion) ? String(Pn.abciVersion) : '', - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.version !== void 0 && (Xn.version = Pn.version), - Pn.blockVersion !== void 0 && - (Xn.blockVersion = (Pn.blockVersion || In.Long.UZERO).toString()), - Pn.p2pVersion !== void 0 && (Xn.p2pVersion = (Pn.p2pVersion || In.Long.UZERO).toString()), - Pn.abciVersion !== void 0 && (Xn.abciVersion = Pn.abciVersion), - Xn - ) - }, - fromPartial(Pn) { - const Xn = un() - return ( - (Xn.version = Pn.version ?? ''), - (Xn.blockVersion = - Pn.blockVersion !== void 0 && Pn.blockVersion !== null - ? In.Long.fromValue(Pn.blockVersion) - : In.Long.UZERO), - (Xn.p2pVersion = - Pn.p2pVersion !== void 0 && Pn.p2pVersion !== null - ? In.Long.fromValue(Pn.p2pVersion) - : In.Long.UZERO), - (Xn.abciVersion = Pn.abciVersion ?? ''), - Xn - ) - }, - } - function dn() { - return { - time: void 0, - chainId: '', - consensusParams: void 0, - validators: [], - appStateBytes: new Uint8Array(), - initialHeight: In.Long.ZERO, - } - } - e.RequestInitChain = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.time !== void 0 && $.Timestamp.encode(Pn.time, Xn.uint32(10).fork()).ldelim(), - Pn.chainId !== '' && Xn.uint32(18).string(Pn.chainId), - Pn.consensusParams !== void 0 && - en.ConsensusParams.encode(Pn.consensusParams, Xn.uint32(26).fork()).ldelim() - for (const dt of Pn.validators) e.ValidatorUpdate.encode(dt, Xn.uint32(34).fork()).ldelim() - return ( - Pn.appStateBytes.length !== 0 && Xn.uint32(42).bytes(Pn.appStateBytes), - Pn.initialHeight.isZero() || Xn.uint32(48).int64(Pn.initialHeight), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = dn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.time = $.Timestamp.decode(dt, dt.uint32()) - break - case 2: - Lt.chainId = dt.string() - break - case 3: - Lt.consensusParams = en.ConsensusParams.decode(dt, dt.uint32()) - break - case 4: - Lt.validators.push(e.ValidatorUpdate.decode(dt, dt.uint32())) - break - case 5: - Lt.appStateBytes = dt.bytes() - break - case 6: - Lt.initialHeight = dt.int64() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - time: (0, In.isSet)(Pn.time) ? (0, In.fromJsonTimestamp)(Pn.time) : void 0, - chainId: (0, In.isSet)(Pn.chainId) ? String(Pn.chainId) : '', - consensusParams: (0, In.isSet)(Pn.consensusParams) - ? en.ConsensusParams.fromJSON(Pn.consensusParams) - : void 0, - validators: Array.isArray(Pn?.validators) - ? Pn.validators.map((Xn) => e.ValidatorUpdate.fromJSON(Xn)) - : [], - appStateBytes: (0, In.isSet)(Pn.appStateBytes) - ? (0, In.bytesFromBase64)(Pn.appStateBytes) - : new Uint8Array(), - initialHeight: (0, In.isSet)(Pn.initialHeight) - ? In.Long.fromValue(Pn.initialHeight) - : In.Long.ZERO, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.time !== void 0 && (Xn.time = (0, In.fromTimestamp)(Pn.time).toISOString()), - Pn.chainId !== void 0 && (Xn.chainId = Pn.chainId), - Pn.consensusParams !== void 0 && - (Xn.consensusParams = Pn.consensusParams - ? en.ConsensusParams.toJSON(Pn.consensusParams) - : void 0), - Pn.validators - ? (Xn.validators = Pn.validators.map((dt) => - dt ? e.ValidatorUpdate.toJSON(dt) : void 0, - )) - : (Xn.validators = []), - Pn.appStateBytes !== void 0 && - (Xn.appStateBytes = (0, In.base64FromBytes)( - Pn.appStateBytes !== void 0 ? Pn.appStateBytes : new Uint8Array(), - )), - Pn.initialHeight !== void 0 && - (Xn.initialHeight = (Pn.initialHeight || In.Long.ZERO).toString()), - Xn - ) - }, - fromPartial(Pn) { - const Xn = dn() - return ( - (Xn.time = - Pn.time !== void 0 && Pn.time !== null ? $.Timestamp.fromPartial(Pn.time) : void 0), - (Xn.chainId = Pn.chainId ?? ''), - (Xn.consensusParams = - Pn.consensusParams !== void 0 && Pn.consensusParams !== null - ? en.ConsensusParams.fromPartial(Pn.consensusParams) - : void 0), - (Xn.validators = Pn.validators?.map((dt) => e.ValidatorUpdate.fromPartial(dt)) || []), - (Xn.appStateBytes = Pn.appStateBytes ?? new Uint8Array()), - (Xn.initialHeight = - Pn.initialHeight !== void 0 && Pn.initialHeight !== null - ? In.Long.fromValue(Pn.initialHeight) - : In.Long.ZERO), - Xn - ) - }, - } - function Nn() { - return { data: new Uint8Array(), path: '', height: In.Long.ZERO, prove: !1 } - } - e.RequestQuery = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.data.length !== 0 && Xn.uint32(10).bytes(Pn.data), - Pn.path !== '' && Xn.uint32(18).string(Pn.path), - Pn.height.isZero() || Xn.uint32(24).int64(Pn.height), - Pn.prove === !0 && Xn.uint32(32).bool(Pn.prove), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Nn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.data = dt.bytes() - break - case 2: - Lt.path = dt.string() - break - case 3: - Lt.height = dt.int64() - break - case 4: - Lt.prove = dt.bool() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - data: (0, In.isSet)(Pn.data) ? (0, In.bytesFromBase64)(Pn.data) : new Uint8Array(), - path: (0, In.isSet)(Pn.path) ? String(Pn.path) : '', - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.ZERO, - prove: (0, In.isSet)(Pn.prove) ? Boolean(Pn.prove) : !1, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.data !== void 0 && - (Xn.data = (0, In.base64FromBytes)(Pn.data !== void 0 ? Pn.data : new Uint8Array())), - Pn.path !== void 0 && (Xn.path = Pn.path), - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.ZERO).toString()), - Pn.prove !== void 0 && (Xn.prove = Pn.prove), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Nn() - return ( - (Xn.data = Pn.data ?? new Uint8Array()), - (Xn.path = Pn.path ?? ''), - (Xn.height = - Pn.height !== void 0 && Pn.height !== null ? In.Long.fromValue(Pn.height) : In.Long.ZERO), - (Xn.prove = Pn.prove ?? !1), - Xn - ) - }, - } - function fn() { - return { - hash: new Uint8Array(), - header: void 0, - lastCommitInfo: void 0, - byzantineValidators: [], - } - } - e.RequestBeginBlock = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.hash.length !== 0 && Xn.uint32(10).bytes(Pn.hash), - Pn.header !== void 0 && nn.Header.encode(Pn.header, Xn.uint32(18).fork()).ldelim(), - Pn.lastCommitInfo !== void 0 && - e.CommitInfo.encode(Pn.lastCommitInfo, Xn.uint32(26).fork()).ldelim() - for (const dt of Pn.byzantineValidators) - e.Misbehavior.encode(dt, Xn.uint32(34).fork()).ldelim() - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = fn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.hash = dt.bytes() - break - case 2: - Lt.header = nn.Header.decode(dt, dt.uint32()) - break - case 3: - Lt.lastCommitInfo = e.CommitInfo.decode(dt, dt.uint32()) - break - case 4: - Lt.byzantineValidators.push(e.Misbehavior.decode(dt, dt.uint32())) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - hash: (0, In.isSet)(Pn.hash) ? (0, In.bytesFromBase64)(Pn.hash) : new Uint8Array(), - header: (0, In.isSet)(Pn.header) ? nn.Header.fromJSON(Pn.header) : void 0, - lastCommitInfo: (0, In.isSet)(Pn.lastCommitInfo) - ? e.CommitInfo.fromJSON(Pn.lastCommitInfo) - : void 0, - byzantineValidators: Array.isArray(Pn?.byzantineValidators) - ? Pn.byzantineValidators.map((Xn) => e.Misbehavior.fromJSON(Xn)) - : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.hash !== void 0 && - (Xn.hash = (0, In.base64FromBytes)(Pn.hash !== void 0 ? Pn.hash : new Uint8Array())), - Pn.header !== void 0 && (Xn.header = Pn.header ? nn.Header.toJSON(Pn.header) : void 0), - Pn.lastCommitInfo !== void 0 && - (Xn.lastCommitInfo = Pn.lastCommitInfo ? e.CommitInfo.toJSON(Pn.lastCommitInfo) : void 0), - Pn.byzantineValidators - ? (Xn.byzantineValidators = Pn.byzantineValidators.map((dt) => - dt ? e.Misbehavior.toJSON(dt) : void 0, - )) - : (Xn.byzantineValidators = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = fn() - return ( - (Xn.hash = Pn.hash ?? new Uint8Array()), - (Xn.header = - Pn.header !== void 0 && Pn.header !== null ? nn.Header.fromPartial(Pn.header) : void 0), - (Xn.lastCommitInfo = - Pn.lastCommitInfo !== void 0 && Pn.lastCommitInfo !== null - ? e.CommitInfo.fromPartial(Pn.lastCommitInfo) - : void 0), - (Xn.byzantineValidators = - Pn.byzantineValidators?.map((dt) => e.Misbehavior.fromPartial(dt)) || []), - Xn - ) - }, - } - function _n() { - return { tx: new Uint8Array(), type: 0 } - } - e.RequestCheckTx = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.tx.length !== 0 && Xn.uint32(10).bytes(Pn.tx), - Pn.type !== 0 && Xn.uint32(16).int32(Pn.type), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = _n() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.tx = dt.bytes() - break - case 2: - Lt.type = dt.int32() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - tx: (0, In.isSet)(Pn.tx) ? (0, In.bytesFromBase64)(Pn.tx) : new Uint8Array(), - type: (0, In.isSet)(Pn.type) ? Kn(Pn.type) : 0, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.tx !== void 0 && - (Xn.tx = (0, In.base64FromBytes)(Pn.tx !== void 0 ? Pn.tx : new Uint8Array())), - Pn.type !== void 0 && (Xn.type = an(Pn.type)), - Xn - ) - }, - fromPartial(Pn) { - const Xn = _n() - return (Xn.tx = Pn.tx ?? new Uint8Array()), (Xn.type = Pn.type ?? 0), Xn - }, - } - function Ln() { - return { tx: new Uint8Array() } - } - e.RequestDeliverTx = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.tx.length !== 0 && Xn.uint32(10).bytes(Pn.tx), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Ln() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.tx = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { tx: (0, In.isSet)(Pn.tx) ? (0, In.bytesFromBase64)(Pn.tx) : new Uint8Array() } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.tx !== void 0 && - (Xn.tx = (0, In.base64FromBytes)(Pn.tx !== void 0 ? Pn.tx : new Uint8Array())), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Ln() - return (Xn.tx = Pn.tx ?? new Uint8Array()), Xn - }, - } - function zn() { - return { height: In.Long.ZERO } - } - e.RequestEndBlock = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.height.isZero() || Xn.uint32(8).int64(Pn.height), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = zn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.height = dt.int64() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.ZERO } - }, - toJSON(Pn) { - const Xn = {} - return Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.ZERO).toString()), Xn - }, - fromPartial(Pn) { - const Xn = zn() - return ( - (Xn.height = - Pn.height !== void 0 && Pn.height !== null ? In.Long.fromValue(Pn.height) : In.Long.ZERO), - Xn - ) - }, - } - function Fn() { - return {} - } - e.RequestCommit = { - encode(Pn, Xn = Jn.Writer.create()) { - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Fn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return {} - }, - toJSON(Pn) { - return {} - }, - fromPartial(Pn) { - return Fn() - }, - } - function An() { - return {} - } - e.RequestListSnapshots = { - encode(Pn, Xn = Jn.Writer.create()) { - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = An() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return {} - }, - toJSON(Pn) { - return {} - }, - fromPartial(Pn) { - return An() - }, - } - function Qn() { - return { snapshot: void 0, appHash: new Uint8Array() } - } - e.RequestOfferSnapshot = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.snapshot !== void 0 && e.Snapshot.encode(Pn.snapshot, Xn.uint32(10).fork()).ldelim(), - Pn.appHash.length !== 0 && Xn.uint32(18).bytes(Pn.appHash), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Qn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.snapshot = e.Snapshot.decode(dt, dt.uint32()) - break - case 2: - Lt.appHash = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - snapshot: (0, In.isSet)(Pn.snapshot) ? e.Snapshot.fromJSON(Pn.snapshot) : void 0, - appHash: (0, In.isSet)(Pn.appHash) ? (0, In.bytesFromBase64)(Pn.appHash) : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.snapshot !== void 0 && - (Xn.snapshot = Pn.snapshot ? e.Snapshot.toJSON(Pn.snapshot) : void 0), - Pn.appHash !== void 0 && - (Xn.appHash = (0, In.base64FromBytes)( - Pn.appHash !== void 0 ? Pn.appHash : new Uint8Array(), - )), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Qn() - return ( - (Xn.snapshot = - Pn.snapshot !== void 0 && Pn.snapshot !== null - ? e.Snapshot.fromPartial(Pn.snapshot) - : void 0), - (Xn.appHash = Pn.appHash ?? new Uint8Array()), - Xn - ) - }, - } - function Rn() { - return { height: In.Long.UZERO, format: 0, chunk: 0 } - } - e.RequestLoadSnapshotChunk = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.height.isZero() || Xn.uint32(8).uint64(Pn.height), - Pn.format !== 0 && Xn.uint32(16).uint32(Pn.format), - Pn.chunk !== 0 && Xn.uint32(24).uint32(Pn.chunk), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Rn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.height = dt.uint64() - break - case 2: - Lt.format = dt.uint32() - break - case 3: - Lt.chunk = dt.uint32() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.UZERO, - format: (0, In.isSet)(Pn.format) ? Number(Pn.format) : 0, - chunk: (0, In.isSet)(Pn.chunk) ? Number(Pn.chunk) : 0, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.UZERO).toString()), - Pn.format !== void 0 && (Xn.format = Math.round(Pn.format)), - Pn.chunk !== void 0 && (Xn.chunk = Math.round(Pn.chunk)), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Rn() - return ( - (Xn.height = - Pn.height !== void 0 && Pn.height !== null - ? In.Long.fromValue(Pn.height) - : In.Long.UZERO), - (Xn.format = Pn.format ?? 0), - (Xn.chunk = Pn.chunk ?? 0), - Xn - ) - }, - } - function Vn() { - return { index: 0, chunk: new Uint8Array(), sender: '' } - } - e.RequestApplySnapshotChunk = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.index !== 0 && Xn.uint32(8).uint32(Pn.index), - Pn.chunk.length !== 0 && Xn.uint32(18).bytes(Pn.chunk), - Pn.sender !== '' && Xn.uint32(26).string(Pn.sender), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Vn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.index = dt.uint32() - break - case 2: - Lt.chunk = dt.bytes() - break - case 3: - Lt.sender = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - index: (0, In.isSet)(Pn.index) ? Number(Pn.index) : 0, - chunk: (0, In.isSet)(Pn.chunk) ? (0, In.bytesFromBase64)(Pn.chunk) : new Uint8Array(), - sender: (0, In.isSet)(Pn.sender) ? String(Pn.sender) : '', - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.index !== void 0 && (Xn.index = Math.round(Pn.index)), - Pn.chunk !== void 0 && - (Xn.chunk = (0, In.base64FromBytes)(Pn.chunk !== void 0 ? Pn.chunk : new Uint8Array())), - Pn.sender !== void 0 && (Xn.sender = Pn.sender), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Vn() - return ( - (Xn.index = Pn.index ?? 0), - (Xn.chunk = Pn.chunk ?? new Uint8Array()), - (Xn.sender = Pn.sender ?? ''), - Xn - ) - }, - } - function Wn() { - return { - maxTxBytes: In.Long.ZERO, - txs: [], - localLastCommit: void 0, - misbehavior: [], - height: In.Long.ZERO, - time: void 0, - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array(), - } - } - e.RequestPrepareProposal = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.maxTxBytes.isZero() || Xn.uint32(8).int64(Pn.maxTxBytes) - for (const dt of Pn.txs) Xn.uint32(18).bytes(dt) - Pn.localLastCommit !== void 0 && - e.ExtendedCommitInfo.encode(Pn.localLastCommit, Xn.uint32(26).fork()).ldelim() - for (const dt of Pn.misbehavior) e.Misbehavior.encode(dt, Xn.uint32(34).fork()).ldelim() - return ( - Pn.height.isZero() || Xn.uint32(40).int64(Pn.height), - Pn.time !== void 0 && $.Timestamp.encode(Pn.time, Xn.uint32(50).fork()).ldelim(), - Pn.nextValidatorsHash.length !== 0 && Xn.uint32(58).bytes(Pn.nextValidatorsHash), - Pn.proposerAddress.length !== 0 && Xn.uint32(66).bytes(Pn.proposerAddress), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Wn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.maxTxBytes = dt.int64() - break - case 2: - Lt.txs.push(dt.bytes()) - break - case 3: - Lt.localLastCommit = e.ExtendedCommitInfo.decode(dt, dt.uint32()) - break - case 4: - Lt.misbehavior.push(e.Misbehavior.decode(dt, dt.uint32())) - break - case 5: - Lt.height = dt.int64() - break - case 6: - Lt.time = $.Timestamp.decode(dt, dt.uint32()) - break - case 7: - Lt.nextValidatorsHash = dt.bytes() - break - case 8: - Lt.proposerAddress = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - maxTxBytes: (0, In.isSet)(Pn.maxTxBytes) ? In.Long.fromValue(Pn.maxTxBytes) : In.Long.ZERO, - txs: Array.isArray(Pn?.txs) ? Pn.txs.map((Xn) => (0, In.bytesFromBase64)(Xn)) : [], - localLastCommit: (0, In.isSet)(Pn.localLastCommit) - ? e.ExtendedCommitInfo.fromJSON(Pn.localLastCommit) - : void 0, - misbehavior: Array.isArray(Pn?.misbehavior) - ? Pn.misbehavior.map((Xn) => e.Misbehavior.fromJSON(Xn)) - : [], - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.ZERO, - time: (0, In.isSet)(Pn.time) ? (0, In.fromJsonTimestamp)(Pn.time) : void 0, - nextValidatorsHash: (0, In.isSet)(Pn.nextValidatorsHash) - ? (0, In.bytesFromBase64)(Pn.nextValidatorsHash) - : new Uint8Array(), - proposerAddress: (0, In.isSet)(Pn.proposerAddress) - ? (0, In.bytesFromBase64)(Pn.proposerAddress) - : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.maxTxBytes !== void 0 && (Xn.maxTxBytes = (Pn.maxTxBytes || In.Long.ZERO).toString()), - Pn.txs - ? (Xn.txs = Pn.txs.map((dt) => - (0, In.base64FromBytes)(dt !== void 0 ? dt : new Uint8Array()), - )) - : (Xn.txs = []), - Pn.localLastCommit !== void 0 && - (Xn.localLastCommit = Pn.localLastCommit - ? e.ExtendedCommitInfo.toJSON(Pn.localLastCommit) - : void 0), - Pn.misbehavior - ? (Xn.misbehavior = Pn.misbehavior.map((dt) => (dt ? e.Misbehavior.toJSON(dt) : void 0))) - : (Xn.misbehavior = []), - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.ZERO).toString()), - Pn.time !== void 0 && (Xn.time = (0, In.fromTimestamp)(Pn.time).toISOString()), - Pn.nextValidatorsHash !== void 0 && - (Xn.nextValidatorsHash = (0, In.base64FromBytes)( - Pn.nextValidatorsHash !== void 0 ? Pn.nextValidatorsHash : new Uint8Array(), - )), - Pn.proposerAddress !== void 0 && - (Xn.proposerAddress = (0, In.base64FromBytes)( - Pn.proposerAddress !== void 0 ? Pn.proposerAddress : new Uint8Array(), - )), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Wn() - return ( - (Xn.maxTxBytes = - Pn.maxTxBytes !== void 0 && Pn.maxTxBytes !== null - ? In.Long.fromValue(Pn.maxTxBytes) - : In.Long.ZERO), - (Xn.txs = Pn.txs?.map((dt) => dt) || []), - (Xn.localLastCommit = - Pn.localLastCommit !== void 0 && Pn.localLastCommit !== null - ? e.ExtendedCommitInfo.fromPartial(Pn.localLastCommit) - : void 0), - (Xn.misbehavior = Pn.misbehavior?.map((dt) => e.Misbehavior.fromPartial(dt)) || []), - (Xn.height = - Pn.height !== void 0 && Pn.height !== null ? In.Long.fromValue(Pn.height) : In.Long.ZERO), - (Xn.time = - Pn.time !== void 0 && Pn.time !== null ? $.Timestamp.fromPartial(Pn.time) : void 0), - (Xn.nextValidatorsHash = Pn.nextValidatorsHash ?? new Uint8Array()), - (Xn.proposerAddress = Pn.proposerAddress ?? new Uint8Array()), - Xn - ) - }, - } - function ht() { - return { - txs: [], - proposedLastCommit: void 0, - misbehavior: [], - hash: new Uint8Array(), - height: In.Long.ZERO, - time: void 0, - nextValidatorsHash: new Uint8Array(), - proposerAddress: new Uint8Array(), - } - } - e.RequestProcessProposal = { - encode(Pn, Xn = Jn.Writer.create()) { - for (const dt of Pn.txs) Xn.uint32(10).bytes(dt) - Pn.proposedLastCommit !== void 0 && - e.CommitInfo.encode(Pn.proposedLastCommit, Xn.uint32(18).fork()).ldelim() - for (const dt of Pn.misbehavior) e.Misbehavior.encode(dt, Xn.uint32(26).fork()).ldelim() - return ( - Pn.hash.length !== 0 && Xn.uint32(34).bytes(Pn.hash), - Pn.height.isZero() || Xn.uint32(40).int64(Pn.height), - Pn.time !== void 0 && $.Timestamp.encode(Pn.time, Xn.uint32(50).fork()).ldelim(), - Pn.nextValidatorsHash.length !== 0 && Xn.uint32(58).bytes(Pn.nextValidatorsHash), - Pn.proposerAddress.length !== 0 && Xn.uint32(66).bytes(Pn.proposerAddress), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = ht() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.txs.push(dt.bytes()) - break - case 2: - Lt.proposedLastCommit = e.CommitInfo.decode(dt, dt.uint32()) - break - case 3: - Lt.misbehavior.push(e.Misbehavior.decode(dt, dt.uint32())) - break - case 4: - Lt.hash = dt.bytes() - break - case 5: - Lt.height = dt.int64() - break - case 6: - Lt.time = $.Timestamp.decode(dt, dt.uint32()) - break - case 7: - Lt.nextValidatorsHash = dt.bytes() - break - case 8: - Lt.proposerAddress = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - txs: Array.isArray(Pn?.txs) ? Pn.txs.map((Xn) => (0, In.bytesFromBase64)(Xn)) : [], - proposedLastCommit: (0, In.isSet)(Pn.proposedLastCommit) - ? e.CommitInfo.fromJSON(Pn.proposedLastCommit) - : void 0, - misbehavior: Array.isArray(Pn?.misbehavior) - ? Pn.misbehavior.map((Xn) => e.Misbehavior.fromJSON(Xn)) - : [], - hash: (0, In.isSet)(Pn.hash) ? (0, In.bytesFromBase64)(Pn.hash) : new Uint8Array(), - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.ZERO, - time: (0, In.isSet)(Pn.time) ? (0, In.fromJsonTimestamp)(Pn.time) : void 0, - nextValidatorsHash: (0, In.isSet)(Pn.nextValidatorsHash) - ? (0, In.bytesFromBase64)(Pn.nextValidatorsHash) - : new Uint8Array(), - proposerAddress: (0, In.isSet)(Pn.proposerAddress) - ? (0, In.bytesFromBase64)(Pn.proposerAddress) - : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.txs - ? (Xn.txs = Pn.txs.map((dt) => - (0, In.base64FromBytes)(dt !== void 0 ? dt : new Uint8Array()), - )) - : (Xn.txs = []), - Pn.proposedLastCommit !== void 0 && - (Xn.proposedLastCommit = Pn.proposedLastCommit - ? e.CommitInfo.toJSON(Pn.proposedLastCommit) - : void 0), - Pn.misbehavior - ? (Xn.misbehavior = Pn.misbehavior.map((dt) => (dt ? e.Misbehavior.toJSON(dt) : void 0))) - : (Xn.misbehavior = []), - Pn.hash !== void 0 && - (Xn.hash = (0, In.base64FromBytes)(Pn.hash !== void 0 ? Pn.hash : new Uint8Array())), - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.ZERO).toString()), - Pn.time !== void 0 && (Xn.time = (0, In.fromTimestamp)(Pn.time).toISOString()), - Pn.nextValidatorsHash !== void 0 && - (Xn.nextValidatorsHash = (0, In.base64FromBytes)( - Pn.nextValidatorsHash !== void 0 ? Pn.nextValidatorsHash : new Uint8Array(), - )), - Pn.proposerAddress !== void 0 && - (Xn.proposerAddress = (0, In.base64FromBytes)( - Pn.proposerAddress !== void 0 ? Pn.proposerAddress : new Uint8Array(), - )), - Xn - ) - }, - fromPartial(Pn) { - const Xn = ht() - return ( - (Xn.txs = Pn.txs?.map((dt) => dt) || []), - (Xn.proposedLastCommit = - Pn.proposedLastCommit !== void 0 && Pn.proposedLastCommit !== null - ? e.CommitInfo.fromPartial(Pn.proposedLastCommit) - : void 0), - (Xn.misbehavior = Pn.misbehavior?.map((dt) => e.Misbehavior.fromPartial(dt)) || []), - (Xn.hash = Pn.hash ?? new Uint8Array()), - (Xn.height = - Pn.height !== void 0 && Pn.height !== null ? In.Long.fromValue(Pn.height) : In.Long.ZERO), - (Xn.time = - Pn.time !== void 0 && Pn.time !== null ? $.Timestamp.fromPartial(Pn.time) : void 0), - (Xn.nextValidatorsHash = Pn.nextValidatorsHash ?? new Uint8Array()), - (Xn.proposerAddress = Pn.proposerAddress ?? new Uint8Array()), - Xn - ) - }, - } - function Wt() { - return { - exception: void 0, - echo: void 0, - flush: void 0, - info: void 0, - initChain: void 0, - query: void 0, - beginBlock: void 0, - checkTx: void 0, - deliverTx: void 0, - endBlock: void 0, - commit: void 0, - listSnapshots: void 0, - offerSnapshot: void 0, - loadSnapshotChunk: void 0, - applySnapshotChunk: void 0, - prepareProposal: void 0, - processProposal: void 0, - } - } - e.Response = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.exception !== void 0 && - e.ResponseException.encode(Pn.exception, Xn.uint32(10).fork()).ldelim(), - Pn.echo !== void 0 && e.ResponseEcho.encode(Pn.echo, Xn.uint32(18).fork()).ldelim(), - Pn.flush !== void 0 && e.ResponseFlush.encode(Pn.flush, Xn.uint32(26).fork()).ldelim(), - Pn.info !== void 0 && e.ResponseInfo.encode(Pn.info, Xn.uint32(34).fork()).ldelim(), - Pn.initChain !== void 0 && - e.ResponseInitChain.encode(Pn.initChain, Xn.uint32(50).fork()).ldelim(), - Pn.query !== void 0 && e.ResponseQuery.encode(Pn.query, Xn.uint32(58).fork()).ldelim(), - Pn.beginBlock !== void 0 && - e.ResponseBeginBlock.encode(Pn.beginBlock, Xn.uint32(66).fork()).ldelim(), - Pn.checkTx !== void 0 && - e.ResponseCheckTx.encode(Pn.checkTx, Xn.uint32(74).fork()).ldelim(), - Pn.deliverTx !== void 0 && - e.ResponseDeliverTx.encode(Pn.deliverTx, Xn.uint32(82).fork()).ldelim(), - Pn.endBlock !== void 0 && - e.ResponseEndBlock.encode(Pn.endBlock, Xn.uint32(90).fork()).ldelim(), - Pn.commit !== void 0 && e.ResponseCommit.encode(Pn.commit, Xn.uint32(98).fork()).ldelim(), - Pn.listSnapshots !== void 0 && - e.ResponseListSnapshots.encode(Pn.listSnapshots, Xn.uint32(106).fork()).ldelim(), - Pn.offerSnapshot !== void 0 && - e.ResponseOfferSnapshot.encode(Pn.offerSnapshot, Xn.uint32(114).fork()).ldelim(), - Pn.loadSnapshotChunk !== void 0 && - e.ResponseLoadSnapshotChunk.encode(Pn.loadSnapshotChunk, Xn.uint32(122).fork()).ldelim(), - Pn.applySnapshotChunk !== void 0 && - e.ResponseApplySnapshotChunk.encode( - Pn.applySnapshotChunk, - Xn.uint32(130).fork(), - ).ldelim(), - Pn.prepareProposal !== void 0 && - e.ResponsePrepareProposal.encode(Pn.prepareProposal, Xn.uint32(138).fork()).ldelim(), - Pn.processProposal !== void 0 && - e.ResponseProcessProposal.encode(Pn.processProposal, Xn.uint32(146).fork()).ldelim(), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Wt() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.exception = e.ResponseException.decode(dt, dt.uint32()) - break - case 2: - Lt.echo = e.ResponseEcho.decode(dt, dt.uint32()) - break - case 3: - Lt.flush = e.ResponseFlush.decode(dt, dt.uint32()) - break - case 4: - Lt.info = e.ResponseInfo.decode(dt, dt.uint32()) - break - case 6: - Lt.initChain = e.ResponseInitChain.decode(dt, dt.uint32()) - break - case 7: - Lt.query = e.ResponseQuery.decode(dt, dt.uint32()) - break - case 8: - Lt.beginBlock = e.ResponseBeginBlock.decode(dt, dt.uint32()) - break - case 9: - Lt.checkTx = e.ResponseCheckTx.decode(dt, dt.uint32()) - break - case 10: - Lt.deliverTx = e.ResponseDeliverTx.decode(dt, dt.uint32()) - break - case 11: - Lt.endBlock = e.ResponseEndBlock.decode(dt, dt.uint32()) - break - case 12: - Lt.commit = e.ResponseCommit.decode(dt, dt.uint32()) - break - case 13: - Lt.listSnapshots = e.ResponseListSnapshots.decode(dt, dt.uint32()) - break - case 14: - Lt.offerSnapshot = e.ResponseOfferSnapshot.decode(dt, dt.uint32()) - break - case 15: - Lt.loadSnapshotChunk = e.ResponseLoadSnapshotChunk.decode(dt, dt.uint32()) - break - case 16: - Lt.applySnapshotChunk = e.ResponseApplySnapshotChunk.decode(dt, dt.uint32()) - break - case 17: - Lt.prepareProposal = e.ResponsePrepareProposal.decode(dt, dt.uint32()) - break - case 18: - Lt.processProposal = e.ResponseProcessProposal.decode(dt, dt.uint32()) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - exception: (0, In.isSet)(Pn.exception) - ? e.ResponseException.fromJSON(Pn.exception) - : void 0, - echo: (0, In.isSet)(Pn.echo) ? e.ResponseEcho.fromJSON(Pn.echo) : void 0, - flush: (0, In.isSet)(Pn.flush) ? e.ResponseFlush.fromJSON(Pn.flush) : void 0, - info: (0, In.isSet)(Pn.info) ? e.ResponseInfo.fromJSON(Pn.info) : void 0, - initChain: (0, In.isSet)(Pn.initChain) - ? e.ResponseInitChain.fromJSON(Pn.initChain) - : void 0, - query: (0, In.isSet)(Pn.query) ? e.ResponseQuery.fromJSON(Pn.query) : void 0, - beginBlock: (0, In.isSet)(Pn.beginBlock) - ? e.ResponseBeginBlock.fromJSON(Pn.beginBlock) - : void 0, - checkTx: (0, In.isSet)(Pn.checkTx) ? e.ResponseCheckTx.fromJSON(Pn.checkTx) : void 0, - deliverTx: (0, In.isSet)(Pn.deliverTx) - ? e.ResponseDeliverTx.fromJSON(Pn.deliverTx) - : void 0, - endBlock: (0, In.isSet)(Pn.endBlock) ? e.ResponseEndBlock.fromJSON(Pn.endBlock) : void 0, - commit: (0, In.isSet)(Pn.commit) ? e.ResponseCommit.fromJSON(Pn.commit) : void 0, - listSnapshots: (0, In.isSet)(Pn.listSnapshots) - ? e.ResponseListSnapshots.fromJSON(Pn.listSnapshots) - : void 0, - offerSnapshot: (0, In.isSet)(Pn.offerSnapshot) - ? e.ResponseOfferSnapshot.fromJSON(Pn.offerSnapshot) - : void 0, - loadSnapshotChunk: (0, In.isSet)(Pn.loadSnapshotChunk) - ? e.ResponseLoadSnapshotChunk.fromJSON(Pn.loadSnapshotChunk) - : void 0, - applySnapshotChunk: (0, In.isSet)(Pn.applySnapshotChunk) - ? e.ResponseApplySnapshotChunk.fromJSON(Pn.applySnapshotChunk) - : void 0, - prepareProposal: (0, In.isSet)(Pn.prepareProposal) - ? e.ResponsePrepareProposal.fromJSON(Pn.prepareProposal) - : void 0, - processProposal: (0, In.isSet)(Pn.processProposal) - ? e.ResponseProcessProposal.fromJSON(Pn.processProposal) - : void 0, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.exception !== void 0 && - (Xn.exception = Pn.exception ? e.ResponseException.toJSON(Pn.exception) : void 0), - Pn.echo !== void 0 && (Xn.echo = Pn.echo ? e.ResponseEcho.toJSON(Pn.echo) : void 0), - Pn.flush !== void 0 && (Xn.flush = Pn.flush ? e.ResponseFlush.toJSON(Pn.flush) : void 0), - Pn.info !== void 0 && (Xn.info = Pn.info ? e.ResponseInfo.toJSON(Pn.info) : void 0), - Pn.initChain !== void 0 && - (Xn.initChain = Pn.initChain ? e.ResponseInitChain.toJSON(Pn.initChain) : void 0), - Pn.query !== void 0 && (Xn.query = Pn.query ? e.ResponseQuery.toJSON(Pn.query) : void 0), - Pn.beginBlock !== void 0 && - (Xn.beginBlock = Pn.beginBlock ? e.ResponseBeginBlock.toJSON(Pn.beginBlock) : void 0), - Pn.checkTx !== void 0 && - (Xn.checkTx = Pn.checkTx ? e.ResponseCheckTx.toJSON(Pn.checkTx) : void 0), - Pn.deliverTx !== void 0 && - (Xn.deliverTx = Pn.deliverTx ? e.ResponseDeliverTx.toJSON(Pn.deliverTx) : void 0), - Pn.endBlock !== void 0 && - (Xn.endBlock = Pn.endBlock ? e.ResponseEndBlock.toJSON(Pn.endBlock) : void 0), - Pn.commit !== void 0 && - (Xn.commit = Pn.commit ? e.ResponseCommit.toJSON(Pn.commit) : void 0), - Pn.listSnapshots !== void 0 && - (Xn.listSnapshots = Pn.listSnapshots - ? e.ResponseListSnapshots.toJSON(Pn.listSnapshots) - : void 0), - Pn.offerSnapshot !== void 0 && - (Xn.offerSnapshot = Pn.offerSnapshot - ? e.ResponseOfferSnapshot.toJSON(Pn.offerSnapshot) - : void 0), - Pn.loadSnapshotChunk !== void 0 && - (Xn.loadSnapshotChunk = Pn.loadSnapshotChunk - ? e.ResponseLoadSnapshotChunk.toJSON(Pn.loadSnapshotChunk) - : void 0), - Pn.applySnapshotChunk !== void 0 && - (Xn.applySnapshotChunk = Pn.applySnapshotChunk - ? e.ResponseApplySnapshotChunk.toJSON(Pn.applySnapshotChunk) - : void 0), - Pn.prepareProposal !== void 0 && - (Xn.prepareProposal = Pn.prepareProposal - ? e.ResponsePrepareProposal.toJSON(Pn.prepareProposal) - : void 0), - Pn.processProposal !== void 0 && - (Xn.processProposal = Pn.processProposal - ? e.ResponseProcessProposal.toJSON(Pn.processProposal) - : void 0), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Wt() - return ( - (Xn.exception = - Pn.exception !== void 0 && Pn.exception !== null - ? e.ResponseException.fromPartial(Pn.exception) - : void 0), - (Xn.echo = - Pn.echo !== void 0 && Pn.echo !== null ? e.ResponseEcho.fromPartial(Pn.echo) : void 0), - (Xn.flush = - Pn.flush !== void 0 && Pn.flush !== null - ? e.ResponseFlush.fromPartial(Pn.flush) - : void 0), - (Xn.info = - Pn.info !== void 0 && Pn.info !== null ? e.ResponseInfo.fromPartial(Pn.info) : void 0), - (Xn.initChain = - Pn.initChain !== void 0 && Pn.initChain !== null - ? e.ResponseInitChain.fromPartial(Pn.initChain) - : void 0), - (Xn.query = - Pn.query !== void 0 && Pn.query !== null - ? e.ResponseQuery.fromPartial(Pn.query) - : void 0), - (Xn.beginBlock = - Pn.beginBlock !== void 0 && Pn.beginBlock !== null - ? e.ResponseBeginBlock.fromPartial(Pn.beginBlock) - : void 0), - (Xn.checkTx = - Pn.checkTx !== void 0 && Pn.checkTx !== null - ? e.ResponseCheckTx.fromPartial(Pn.checkTx) - : void 0), - (Xn.deliverTx = - Pn.deliverTx !== void 0 && Pn.deliverTx !== null - ? e.ResponseDeliverTx.fromPartial(Pn.deliverTx) - : void 0), - (Xn.endBlock = - Pn.endBlock !== void 0 && Pn.endBlock !== null - ? e.ResponseEndBlock.fromPartial(Pn.endBlock) - : void 0), - (Xn.commit = - Pn.commit !== void 0 && Pn.commit !== null - ? e.ResponseCommit.fromPartial(Pn.commit) - : void 0), - (Xn.listSnapshots = - Pn.listSnapshots !== void 0 && Pn.listSnapshots !== null - ? e.ResponseListSnapshots.fromPartial(Pn.listSnapshots) - : void 0), - (Xn.offerSnapshot = - Pn.offerSnapshot !== void 0 && Pn.offerSnapshot !== null - ? e.ResponseOfferSnapshot.fromPartial(Pn.offerSnapshot) - : void 0), - (Xn.loadSnapshotChunk = - Pn.loadSnapshotChunk !== void 0 && Pn.loadSnapshotChunk !== null - ? e.ResponseLoadSnapshotChunk.fromPartial(Pn.loadSnapshotChunk) - : void 0), - (Xn.applySnapshotChunk = - Pn.applySnapshotChunk !== void 0 && Pn.applySnapshotChunk !== null - ? e.ResponseApplySnapshotChunk.fromPartial(Pn.applySnapshotChunk) - : void 0), - (Xn.prepareProposal = - Pn.prepareProposal !== void 0 && Pn.prepareProposal !== null - ? e.ResponsePrepareProposal.fromPartial(Pn.prepareProposal) - : void 0), - (Xn.processProposal = - Pn.processProposal !== void 0 && Pn.processProposal !== null - ? e.ResponseProcessProposal.fromPartial(Pn.processProposal) - : void 0), - Xn - ) - }, - } - function zt() { - return { error: '' } - } - e.ResponseException = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.error !== '' && Xn.uint32(10).string(Pn.error), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = zt() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.error = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { error: (0, In.isSet)(Pn.error) ? String(Pn.error) : '' } - }, - toJSON(Pn) { - const Xn = {} - return Pn.error !== void 0 && (Xn.error = Pn.error), Xn - }, - fromPartial(Pn) { - const Xn = zt() - return (Xn.error = Pn.error ?? ''), Xn - }, - } - function mr() { - return { message: '' } - } - e.ResponseEcho = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.message !== '' && Xn.uint32(10).string(Pn.message), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = mr() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.message = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { message: (0, In.isSet)(Pn.message) ? String(Pn.message) : '' } - }, - toJSON(Pn) { - const Xn = {} - return Pn.message !== void 0 && (Xn.message = Pn.message), Xn - }, - fromPartial(Pn) { - const Xn = mr() - return (Xn.message = Pn.message ?? ''), Xn - }, - } - function Uo() { - return {} - } - e.ResponseFlush = { - encode(Pn, Xn = Jn.Writer.create()) { - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Uo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return {} - }, - toJSON(Pn) { - return {} - }, - fromPartial(Pn) { - return Uo() - }, - } - function Vo() { - return { - data: '', - version: '', - appVersion: In.Long.UZERO, - lastBlockHeight: In.Long.ZERO, - lastBlockAppHash: new Uint8Array(), - } - } - e.ResponseInfo = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.data !== '' && Xn.uint32(10).string(Pn.data), - Pn.version !== '' && Xn.uint32(18).string(Pn.version), - Pn.appVersion.isZero() || Xn.uint32(24).uint64(Pn.appVersion), - Pn.lastBlockHeight.isZero() || Xn.uint32(32).int64(Pn.lastBlockHeight), - Pn.lastBlockAppHash.length !== 0 && Xn.uint32(42).bytes(Pn.lastBlockAppHash), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Vo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.data = dt.string() - break - case 2: - Lt.version = dt.string() - break - case 3: - Lt.appVersion = dt.uint64() - break - case 4: - Lt.lastBlockHeight = dt.int64() - break - case 5: - Lt.lastBlockAppHash = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - data: (0, In.isSet)(Pn.data) ? String(Pn.data) : '', - version: (0, In.isSet)(Pn.version) ? String(Pn.version) : '', - appVersion: (0, In.isSet)(Pn.appVersion) ? In.Long.fromValue(Pn.appVersion) : In.Long.UZERO, - lastBlockHeight: (0, In.isSet)(Pn.lastBlockHeight) - ? In.Long.fromValue(Pn.lastBlockHeight) - : In.Long.ZERO, - lastBlockAppHash: (0, In.isSet)(Pn.lastBlockAppHash) - ? (0, In.bytesFromBase64)(Pn.lastBlockAppHash) - : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.data !== void 0 && (Xn.data = Pn.data), - Pn.version !== void 0 && (Xn.version = Pn.version), - Pn.appVersion !== void 0 && (Xn.appVersion = (Pn.appVersion || In.Long.UZERO).toString()), - Pn.lastBlockHeight !== void 0 && - (Xn.lastBlockHeight = (Pn.lastBlockHeight || In.Long.ZERO).toString()), - Pn.lastBlockAppHash !== void 0 && - (Xn.lastBlockAppHash = (0, In.base64FromBytes)( - Pn.lastBlockAppHash !== void 0 ? Pn.lastBlockAppHash : new Uint8Array(), - )), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Vo() - return ( - (Xn.data = Pn.data ?? ''), - (Xn.version = Pn.version ?? ''), - (Xn.appVersion = - Pn.appVersion !== void 0 && Pn.appVersion !== null - ? In.Long.fromValue(Pn.appVersion) - : In.Long.UZERO), - (Xn.lastBlockHeight = - Pn.lastBlockHeight !== void 0 && Pn.lastBlockHeight !== null - ? In.Long.fromValue(Pn.lastBlockHeight) - : In.Long.ZERO), - (Xn.lastBlockAppHash = Pn.lastBlockAppHash ?? new Uint8Array()), - Xn - ) - }, - } - function ko() { - return { consensusParams: void 0, validators: [], appHash: new Uint8Array() } - } - e.ResponseInitChain = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.consensusParams !== void 0 && - en.ConsensusParams.encode(Pn.consensusParams, Xn.uint32(10).fork()).ldelim() - for (const dt of Pn.validators) e.ValidatorUpdate.encode(dt, Xn.uint32(18).fork()).ldelim() - return Pn.appHash.length !== 0 && Xn.uint32(26).bytes(Pn.appHash), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = ko() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.consensusParams = en.ConsensusParams.decode(dt, dt.uint32()) - break - case 2: - Lt.validators.push(e.ValidatorUpdate.decode(dt, dt.uint32())) - break - case 3: - Lt.appHash = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - consensusParams: (0, In.isSet)(Pn.consensusParams) - ? en.ConsensusParams.fromJSON(Pn.consensusParams) - : void 0, - validators: Array.isArray(Pn?.validators) - ? Pn.validators.map((Xn) => e.ValidatorUpdate.fromJSON(Xn)) - : [], - appHash: (0, In.isSet)(Pn.appHash) ? (0, In.bytesFromBase64)(Pn.appHash) : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.consensusParams !== void 0 && - (Xn.consensusParams = Pn.consensusParams - ? en.ConsensusParams.toJSON(Pn.consensusParams) - : void 0), - Pn.validators - ? (Xn.validators = Pn.validators.map((dt) => - dt ? e.ValidatorUpdate.toJSON(dt) : void 0, - )) - : (Xn.validators = []), - Pn.appHash !== void 0 && - (Xn.appHash = (0, In.base64FromBytes)( - Pn.appHash !== void 0 ? Pn.appHash : new Uint8Array(), - )), - Xn - ) - }, - fromPartial(Pn) { - const Xn = ko() - return ( - (Xn.consensusParams = - Pn.consensusParams !== void 0 && Pn.consensusParams !== null - ? en.ConsensusParams.fromPartial(Pn.consensusParams) - : void 0), - (Xn.validators = Pn.validators?.map((dt) => e.ValidatorUpdate.fromPartial(dt)) || []), - (Xn.appHash = Pn.appHash ?? new Uint8Array()), - Xn - ) - }, - } - function na() { - return { - code: 0, - log: '', - info: '', - index: In.Long.ZERO, - key: new Uint8Array(), - value: new Uint8Array(), - proofOps: void 0, - height: In.Long.ZERO, - codespace: '', - } - } - e.ResponseQuery = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.code !== 0 && Xn.uint32(8).uint32(Pn.code), - Pn.log !== '' && Xn.uint32(26).string(Pn.log), - Pn.info !== '' && Xn.uint32(34).string(Pn.info), - Pn.index.isZero() || Xn.uint32(40).int64(Pn.index), - Pn.key.length !== 0 && Xn.uint32(50).bytes(Pn.key), - Pn.value.length !== 0 && Xn.uint32(58).bytes(Pn.value), - Pn.proofOps !== void 0 && sn.ProofOps.encode(Pn.proofOps, Xn.uint32(66).fork()).ldelim(), - Pn.height.isZero() || Xn.uint32(72).int64(Pn.height), - Pn.codespace !== '' && Xn.uint32(82).string(Pn.codespace), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = na() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.code = dt.uint32() - break - case 3: - Lt.log = dt.string() - break - case 4: - Lt.info = dt.string() - break - case 5: - Lt.index = dt.int64() - break - case 6: - Lt.key = dt.bytes() - break - case 7: - Lt.value = dt.bytes() - break - case 8: - Lt.proofOps = sn.ProofOps.decode(dt, dt.uint32()) - break - case 9: - Lt.height = dt.int64() - break - case 10: - Lt.codespace = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - code: (0, In.isSet)(Pn.code) ? Number(Pn.code) : 0, - log: (0, In.isSet)(Pn.log) ? String(Pn.log) : '', - info: (0, In.isSet)(Pn.info) ? String(Pn.info) : '', - index: (0, In.isSet)(Pn.index) ? In.Long.fromValue(Pn.index) : In.Long.ZERO, - key: (0, In.isSet)(Pn.key) ? (0, In.bytesFromBase64)(Pn.key) : new Uint8Array(), - value: (0, In.isSet)(Pn.value) ? (0, In.bytesFromBase64)(Pn.value) : new Uint8Array(), - proofOps: (0, In.isSet)(Pn.proofOps) ? sn.ProofOps.fromJSON(Pn.proofOps) : void 0, - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.ZERO, - codespace: (0, In.isSet)(Pn.codespace) ? String(Pn.codespace) : '', - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.code !== void 0 && (Xn.code = Math.round(Pn.code)), - Pn.log !== void 0 && (Xn.log = Pn.log), - Pn.info !== void 0 && (Xn.info = Pn.info), - Pn.index !== void 0 && (Xn.index = (Pn.index || In.Long.ZERO).toString()), - Pn.key !== void 0 && - (Xn.key = (0, In.base64FromBytes)(Pn.key !== void 0 ? Pn.key : new Uint8Array())), - Pn.value !== void 0 && - (Xn.value = (0, In.base64FromBytes)(Pn.value !== void 0 ? Pn.value : new Uint8Array())), - Pn.proofOps !== void 0 && - (Xn.proofOps = Pn.proofOps ? sn.ProofOps.toJSON(Pn.proofOps) : void 0), - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.ZERO).toString()), - Pn.codespace !== void 0 && (Xn.codespace = Pn.codespace), - Xn - ) - }, - fromPartial(Pn) { - const Xn = na() - return ( - (Xn.code = Pn.code ?? 0), - (Xn.log = Pn.log ?? ''), - (Xn.info = Pn.info ?? ''), - (Xn.index = - Pn.index !== void 0 && Pn.index !== null ? In.Long.fromValue(Pn.index) : In.Long.ZERO), - (Xn.key = Pn.key ?? new Uint8Array()), - (Xn.value = Pn.value ?? new Uint8Array()), - (Xn.proofOps = - Pn.proofOps !== void 0 && Pn.proofOps !== null - ? sn.ProofOps.fromPartial(Pn.proofOps) - : void 0), - (Xn.height = - Pn.height !== void 0 && Pn.height !== null ? In.Long.fromValue(Pn.height) : In.Long.ZERO), - (Xn.codespace = Pn.codespace ?? ''), - Xn - ) - }, - } - function Yo() { - return { events: [] } - } - e.ResponseBeginBlock = { - encode(Pn, Xn = Jn.Writer.create()) { - for (const dt of Pn.events) e.Event.encode(dt, Xn.uint32(10).fork()).ldelim() - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Yo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.events.push(e.Event.decode(dt, dt.uint32())) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - events: Array.isArray(Pn?.events) ? Pn.events.map((Xn) => e.Event.fromJSON(Xn)) : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.events - ? (Xn.events = Pn.events.map((dt) => (dt ? e.Event.toJSON(dt) : void 0))) - : (Xn.events = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Yo() - return (Xn.events = Pn.events?.map((dt) => e.Event.fromPartial(dt)) || []), Xn - }, - } - function vo() { - return { - code: 0, - data: new Uint8Array(), - log: '', - info: '', - gasWanted: In.Long.ZERO, - gasUsed: In.Long.ZERO, - events: [], - codespace: '', - sender: '', - priority: In.Long.ZERO, - mempoolError: '', - } - } - e.ResponseCheckTx = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.code !== 0 && Xn.uint32(8).uint32(Pn.code), - Pn.data.length !== 0 && Xn.uint32(18).bytes(Pn.data), - Pn.log !== '' && Xn.uint32(26).string(Pn.log), - Pn.info !== '' && Xn.uint32(34).string(Pn.info), - Pn.gasWanted.isZero() || Xn.uint32(40).int64(Pn.gasWanted), - Pn.gasUsed.isZero() || Xn.uint32(48).int64(Pn.gasUsed) - for (const dt of Pn.events) e.Event.encode(dt, Xn.uint32(58).fork()).ldelim() - return ( - Pn.codespace !== '' && Xn.uint32(66).string(Pn.codespace), - Pn.sender !== '' && Xn.uint32(74).string(Pn.sender), - Pn.priority.isZero() || Xn.uint32(80).int64(Pn.priority), - Pn.mempoolError !== '' && Xn.uint32(90).string(Pn.mempoolError), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = vo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.code = dt.uint32() - break - case 2: - Lt.data = dt.bytes() - break - case 3: - Lt.log = dt.string() - break - case 4: - Lt.info = dt.string() - break - case 5: - Lt.gasWanted = dt.int64() - break - case 6: - Lt.gasUsed = dt.int64() - break - case 7: - Lt.events.push(e.Event.decode(dt, dt.uint32())) - break - case 8: - Lt.codespace = dt.string() - break - case 9: - Lt.sender = dt.string() - break - case 10: - Lt.priority = dt.int64() - break - case 11: - Lt.mempoolError = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - code: (0, In.isSet)(Pn.code) ? Number(Pn.code) : 0, - data: (0, In.isSet)(Pn.data) ? (0, In.bytesFromBase64)(Pn.data) : new Uint8Array(), - log: (0, In.isSet)(Pn.log) ? String(Pn.log) : '', - info: (0, In.isSet)(Pn.info) ? String(Pn.info) : '', - gasWanted: (0, In.isSet)(Pn.gas_wanted) ? In.Long.fromValue(Pn.gas_wanted) : In.Long.ZERO, - gasUsed: (0, In.isSet)(Pn.gas_used) ? In.Long.fromValue(Pn.gas_used) : In.Long.ZERO, - events: Array.isArray(Pn?.events) ? Pn.events.map((Xn) => e.Event.fromJSON(Xn)) : [], - codespace: (0, In.isSet)(Pn.codespace) ? String(Pn.codespace) : '', - sender: (0, In.isSet)(Pn.sender) ? String(Pn.sender) : '', - priority: (0, In.isSet)(Pn.priority) ? In.Long.fromValue(Pn.priority) : In.Long.ZERO, - mempoolError: (0, In.isSet)(Pn.mempoolError) ? String(Pn.mempoolError) : '', - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.code !== void 0 && (Xn.code = Math.round(Pn.code)), - Pn.data !== void 0 && - (Xn.data = (0, In.base64FromBytes)(Pn.data !== void 0 ? Pn.data : new Uint8Array())), - Pn.log !== void 0 && (Xn.log = Pn.log), - Pn.info !== void 0 && (Xn.info = Pn.info), - Pn.gasWanted !== void 0 && (Xn.gas_wanted = (Pn.gasWanted || In.Long.ZERO).toString()), - Pn.gasUsed !== void 0 && (Xn.gas_used = (Pn.gasUsed || In.Long.ZERO).toString()), - Pn.events - ? (Xn.events = Pn.events.map((dt) => (dt ? e.Event.toJSON(dt) : void 0))) - : (Xn.events = []), - Pn.codespace !== void 0 && (Xn.codespace = Pn.codespace), - Pn.sender !== void 0 && (Xn.sender = Pn.sender), - Pn.priority !== void 0 && (Xn.priority = (Pn.priority || In.Long.ZERO).toString()), - Pn.mempoolError !== void 0 && (Xn.mempoolError = Pn.mempoolError), - Xn - ) - }, - fromPartial(Pn) { - const Xn = vo() - return ( - (Xn.code = Pn.code ?? 0), - (Xn.data = Pn.data ?? new Uint8Array()), - (Xn.log = Pn.log ?? ''), - (Xn.info = Pn.info ?? ''), - (Xn.gasWanted = - Pn.gasWanted !== void 0 && Pn.gasWanted !== null - ? In.Long.fromValue(Pn.gasWanted) - : In.Long.ZERO), - (Xn.gasUsed = - Pn.gasUsed !== void 0 && Pn.gasUsed !== null - ? In.Long.fromValue(Pn.gasUsed) - : In.Long.ZERO), - (Xn.events = Pn.events?.map((dt) => e.Event.fromPartial(dt)) || []), - (Xn.codespace = Pn.codespace ?? ''), - (Xn.sender = Pn.sender ?? ''), - (Xn.priority = - Pn.priority !== void 0 && Pn.priority !== null - ? In.Long.fromValue(Pn.priority) - : In.Long.ZERO), - (Xn.mempoolError = Pn.mempoolError ?? ''), - Xn - ) - }, - } - function Wo() { - return { - code: 0, - data: new Uint8Array(), - log: '', - info: '', - gasWanted: In.Long.ZERO, - gasUsed: In.Long.ZERO, - events: [], - codespace: '', - } - } - e.ResponseDeliverTx = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.code !== 0 && Xn.uint32(8).uint32(Pn.code), - Pn.data.length !== 0 && Xn.uint32(18).bytes(Pn.data), - Pn.log !== '' && Xn.uint32(26).string(Pn.log), - Pn.info !== '' && Xn.uint32(34).string(Pn.info), - Pn.gasWanted.isZero() || Xn.uint32(40).int64(Pn.gasWanted), - Pn.gasUsed.isZero() || Xn.uint32(48).int64(Pn.gasUsed) - for (const dt of Pn.events) e.Event.encode(dt, Xn.uint32(58).fork()).ldelim() - return Pn.codespace !== '' && Xn.uint32(66).string(Pn.codespace), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Wo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.code = dt.uint32() - break - case 2: - Lt.data = dt.bytes() - break - case 3: - Lt.log = dt.string() - break - case 4: - Lt.info = dt.string() - break - case 5: - Lt.gasWanted = dt.int64() - break - case 6: - Lt.gasUsed = dt.int64() - break - case 7: - Lt.events.push(e.Event.decode(dt, dt.uint32())) - break - case 8: - Lt.codespace = dt.string() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - code: (0, In.isSet)(Pn.code) ? Number(Pn.code) : 0, - data: (0, In.isSet)(Pn.data) ? (0, In.bytesFromBase64)(Pn.data) : new Uint8Array(), - log: (0, In.isSet)(Pn.log) ? String(Pn.log) : '', - info: (0, In.isSet)(Pn.info) ? String(Pn.info) : '', - gasWanted: (0, In.isSet)(Pn.gas_wanted) ? In.Long.fromValue(Pn.gas_wanted) : In.Long.ZERO, - gasUsed: (0, In.isSet)(Pn.gas_used) ? In.Long.fromValue(Pn.gas_used) : In.Long.ZERO, - events: Array.isArray(Pn?.events) ? Pn.events.map((Xn) => e.Event.fromJSON(Xn)) : [], - codespace: (0, In.isSet)(Pn.codespace) ? String(Pn.codespace) : '', - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.code !== void 0 && (Xn.code = Math.round(Pn.code)), - Pn.data !== void 0 && - (Xn.data = (0, In.base64FromBytes)(Pn.data !== void 0 ? Pn.data : new Uint8Array())), - Pn.log !== void 0 && (Xn.log = Pn.log), - Pn.info !== void 0 && (Xn.info = Pn.info), - Pn.gasWanted !== void 0 && (Xn.gas_wanted = (Pn.gasWanted || In.Long.ZERO).toString()), - Pn.gasUsed !== void 0 && (Xn.gas_used = (Pn.gasUsed || In.Long.ZERO).toString()), - Pn.events - ? (Xn.events = Pn.events.map((dt) => (dt ? e.Event.toJSON(dt) : void 0))) - : (Xn.events = []), - Pn.codespace !== void 0 && (Xn.codespace = Pn.codespace), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Wo() - return ( - (Xn.code = Pn.code ?? 0), - (Xn.data = Pn.data ?? new Uint8Array()), - (Xn.log = Pn.log ?? ''), - (Xn.info = Pn.info ?? ''), - (Xn.gasWanted = - Pn.gasWanted !== void 0 && Pn.gasWanted !== null - ? In.Long.fromValue(Pn.gasWanted) - : In.Long.ZERO), - (Xn.gasUsed = - Pn.gasUsed !== void 0 && Pn.gasUsed !== null - ? In.Long.fromValue(Pn.gasUsed) - : In.Long.ZERO), - (Xn.events = Pn.events?.map((dt) => e.Event.fromPartial(dt)) || []), - (Xn.codespace = Pn.codespace ?? ''), - Xn - ) - }, - } - function ba() { - return { validatorUpdates: [], consensusParamUpdates: void 0, events: [] } - } - e.ResponseEndBlock = { - encode(Pn, Xn = Jn.Writer.create()) { - for (const dt of Pn.validatorUpdates) - e.ValidatorUpdate.encode(dt, Xn.uint32(10).fork()).ldelim() - Pn.consensusParamUpdates !== void 0 && - en.ConsensusParams.encode(Pn.consensusParamUpdates, Xn.uint32(18).fork()).ldelim() - for (const dt of Pn.events) e.Event.encode(dt, Xn.uint32(26).fork()).ldelim() - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = ba() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.validatorUpdates.push(e.ValidatorUpdate.decode(dt, dt.uint32())) - break - case 2: - Lt.consensusParamUpdates = en.ConsensusParams.decode(dt, dt.uint32()) - break - case 3: - Lt.events.push(e.Event.decode(dt, dt.uint32())) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - validatorUpdates: Array.isArray(Pn?.validatorUpdates) - ? Pn.validatorUpdates.map((Xn) => e.ValidatorUpdate.fromJSON(Xn)) - : [], - consensusParamUpdates: (0, In.isSet)(Pn.consensusParamUpdates) - ? en.ConsensusParams.fromJSON(Pn.consensusParamUpdates) - : void 0, - events: Array.isArray(Pn?.events) ? Pn.events.map((Xn) => e.Event.fromJSON(Xn)) : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.validatorUpdates - ? (Xn.validatorUpdates = Pn.validatorUpdates.map((dt) => - dt ? e.ValidatorUpdate.toJSON(dt) : void 0, - )) - : (Xn.validatorUpdates = []), - Pn.consensusParamUpdates !== void 0 && - (Xn.consensusParamUpdates = Pn.consensusParamUpdates - ? en.ConsensusParams.toJSON(Pn.consensusParamUpdates) - : void 0), - Pn.events - ? (Xn.events = Pn.events.map((dt) => (dt ? e.Event.toJSON(dt) : void 0))) - : (Xn.events = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = ba() - return ( - (Xn.validatorUpdates = - Pn.validatorUpdates?.map((dt) => e.ValidatorUpdate.fromPartial(dt)) || []), - (Xn.consensusParamUpdates = - Pn.consensusParamUpdates !== void 0 && Pn.consensusParamUpdates !== null - ? en.ConsensusParams.fromPartial(Pn.consensusParamUpdates) - : void 0), - (Xn.events = Pn.events?.map((dt) => e.Event.fromPartial(dt)) || []), - Xn - ) - }, - } - function Co() { - return { data: new Uint8Array(), retainHeight: In.Long.ZERO } - } - e.ResponseCommit = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.data.length !== 0 && Xn.uint32(18).bytes(Pn.data), - Pn.retainHeight.isZero() || Xn.uint32(24).int64(Pn.retainHeight), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Co() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 2: - Lt.data = dt.bytes() - break - case 3: - Lt.retainHeight = dt.int64() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - data: (0, In.isSet)(Pn.data) ? (0, In.bytesFromBase64)(Pn.data) : new Uint8Array(), - retainHeight: (0, In.isSet)(Pn.retainHeight) - ? In.Long.fromValue(Pn.retainHeight) - : In.Long.ZERO, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.data !== void 0 && - (Xn.data = (0, In.base64FromBytes)(Pn.data !== void 0 ? Pn.data : new Uint8Array())), - Pn.retainHeight !== void 0 && - (Xn.retainHeight = (Pn.retainHeight || In.Long.ZERO).toString()), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Co() - return ( - (Xn.data = Pn.data ?? new Uint8Array()), - (Xn.retainHeight = - Pn.retainHeight !== void 0 && Pn.retainHeight !== null - ? In.Long.fromValue(Pn.retainHeight) - : In.Long.ZERO), - Xn - ) - }, - } - function Ko() { - return { snapshots: [] } - } - e.ResponseListSnapshots = { - encode(Pn, Xn = Jn.Writer.create()) { - for (const dt of Pn.snapshots) e.Snapshot.encode(dt, Xn.uint32(10).fork()).ldelim() - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Ko() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.snapshots.push(e.Snapshot.decode(dt, dt.uint32())) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - snapshots: Array.isArray(Pn?.snapshots) - ? Pn.snapshots.map((Xn) => e.Snapshot.fromJSON(Xn)) - : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.snapshots - ? (Xn.snapshots = Pn.snapshots.map((dt) => (dt ? e.Snapshot.toJSON(dt) : void 0))) - : (Xn.snapshots = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Ko() - return (Xn.snapshots = Pn.snapshots?.map((dt) => e.Snapshot.fromPartial(dt)) || []), Xn - }, - } - function xa() { - return { result: 0 } - } - e.ResponseOfferSnapshot = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.result !== 0 && Xn.uint32(8).int32(Pn.result), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = xa() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.result = dt.int32() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { result: (0, In.isSet)(Pn.result) ? mn(Pn.result) : 0 } - }, - toJSON(Pn) { - const Xn = {} - return Pn.result !== void 0 && (Xn.result = Bn(Pn.result)), Xn - }, - fromPartial(Pn) { - const Xn = xa() - return (Xn.result = Pn.result ?? 0), Xn - }, - } - function bo() { - return { chunk: new Uint8Array() } - } - e.ResponseLoadSnapshotChunk = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.chunk.length !== 0 && Xn.uint32(10).bytes(Pn.chunk), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = bo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.chunk = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - chunk: (0, In.isSet)(Pn.chunk) ? (0, In.bytesFromBase64)(Pn.chunk) : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.chunk !== void 0 && - (Xn.chunk = (0, In.base64FromBytes)(Pn.chunk !== void 0 ? Pn.chunk : new Uint8Array())), - Xn - ) - }, - fromPartial(Pn) { - const Xn = bo() - return (Xn.chunk = Pn.chunk ?? new Uint8Array()), Xn - }, - } - function br() { - return { result: 0, refetchChunks: [], rejectSenders: [] } - } - e.ResponseApplySnapshotChunk = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.result !== 0 && Xn.uint32(8).int32(Pn.result), Xn.uint32(18).fork() - for (const dt of Pn.refetchChunks) Xn.uint32(dt) - Xn.ldelim() - for (const dt of Pn.rejectSenders) Xn.uint32(26).string(dt) - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = br() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.result = dt.int32() - break - case 2: - if ((ur & 7) === 2) { - const ho = dt.uint32() + dt.pos - for (; dt.pos < ho; ) Lt.refetchChunks.push(dt.uint32()) - } else Lt.refetchChunks.push(dt.uint32()) - break - case 3: - Lt.rejectSenders.push(dt.string()) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - result: (0, In.isSet)(Pn.result) ? ln(Pn.result) : 0, - refetchChunks: Array.isArray(Pn?.refetchChunks) - ? Pn.refetchChunks.map((Xn) => Number(Xn)) - : [], - rejectSenders: Array.isArray(Pn?.rejectSenders) - ? Pn.rejectSenders.map((Xn) => String(Xn)) - : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.result !== void 0 && (Xn.result = yn(Pn.result)), - Pn.refetchChunks - ? (Xn.refetchChunks = Pn.refetchChunks.map((dt) => Math.round(dt))) - : (Xn.refetchChunks = []), - Pn.rejectSenders - ? (Xn.rejectSenders = Pn.rejectSenders.map((dt) => dt)) - : (Xn.rejectSenders = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = br() - return ( - (Xn.result = Pn.result ?? 0), - (Xn.refetchChunks = Pn.refetchChunks?.map((dt) => dt) || []), - (Xn.rejectSenders = Pn.rejectSenders?.map((dt) => dt) || []), - Xn - ) - }, - } - function Fr() { - return { txs: [] } - } - e.ResponsePrepareProposal = { - encode(Pn, Xn = Jn.Writer.create()) { - for (const dt of Pn.txs) Xn.uint32(10).bytes(dt) - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Fr() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.txs.push(dt.bytes()) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { txs: Array.isArray(Pn?.txs) ? Pn.txs.map((Xn) => (0, In.bytesFromBase64)(Xn)) : [] } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.txs - ? (Xn.txs = Pn.txs.map((dt) => - (0, In.base64FromBytes)(dt !== void 0 ? dt : new Uint8Array()), - )) - : (Xn.txs = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Fr() - return (Xn.txs = Pn.txs?.map((dt) => dt) || []), Xn - }, - } - function $r() { - return { status: 0 } - } - e.ResponseProcessProposal = { - encode(Pn, Xn = Jn.Writer.create()) { - return Pn.status !== 0 && Xn.uint32(8).int32(Pn.status), Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = $r() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.status = dt.int32() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { status: (0, In.isSet)(Pn.status) ? Tn(Pn.status) : 0 } - }, - toJSON(Pn) { - const Xn = {} - return Pn.status !== void 0 && (Xn.status = Gn(Pn.status)), Xn - }, - fromPartial(Pn) { - const Xn = $r() - return (Xn.status = Pn.status ?? 0), Xn - }, - } - function cr() { - return { round: 0, votes: [] } - } - e.CommitInfo = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.round !== 0 && Xn.uint32(8).int32(Pn.round) - for (const dt of Pn.votes) e.VoteInfo.encode(dt, Xn.uint32(18).fork()).ldelim() - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = cr() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.round = dt.int32() - break - case 2: - Lt.votes.push(e.VoteInfo.decode(dt, dt.uint32())) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - round: (0, In.isSet)(Pn.round) ? Number(Pn.round) : 0, - votes: Array.isArray(Pn?.votes) ? Pn.votes.map((Xn) => e.VoteInfo.fromJSON(Xn)) : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.round !== void 0 && (Xn.round = Math.round(Pn.round)), - Pn.votes - ? (Xn.votes = Pn.votes.map((dt) => (dt ? e.VoteInfo.toJSON(dt) : void 0))) - : (Xn.votes = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = cr() - return ( - (Xn.round = Pn.round ?? 0), - (Xn.votes = Pn.votes?.map((dt) => e.VoteInfo.fromPartial(dt)) || []), - Xn - ) - }, - } - function ir() { - return { round: 0, votes: [] } - } - e.ExtendedCommitInfo = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.round !== 0 && Xn.uint32(8).int32(Pn.round) - for (const dt of Pn.votes) e.ExtendedVoteInfo.encode(dt, Xn.uint32(18).fork()).ldelim() - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = ir() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.round = dt.int32() - break - case 2: - Lt.votes.push(e.ExtendedVoteInfo.decode(dt, dt.uint32())) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - round: (0, In.isSet)(Pn.round) ? Number(Pn.round) : 0, - votes: Array.isArray(Pn?.votes) - ? Pn.votes.map((Xn) => e.ExtendedVoteInfo.fromJSON(Xn)) - : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.round !== void 0 && (Xn.round = Math.round(Pn.round)), - Pn.votes - ? (Xn.votes = Pn.votes.map((dt) => (dt ? e.ExtendedVoteInfo.toJSON(dt) : void 0))) - : (Xn.votes = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = ir() - return ( - (Xn.round = Pn.round ?? 0), - (Xn.votes = Pn.votes?.map((dt) => e.ExtendedVoteInfo.fromPartial(dt)) || []), - Xn - ) - }, - } - function vn() { - return { type: '', attributes: [] } - } - e.Event = { - encode(Pn, Xn = Jn.Writer.create()) { - Pn.type !== '' && Xn.uint32(10).string(Pn.type) - for (const dt of Pn.attributes) e.EventAttribute.encode(dt, Xn.uint32(18).fork()).ldelim() - return Xn - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = vn() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.type = dt.string() - break - case 2: - Lt.attributes.push(e.EventAttribute.decode(dt, dt.uint32())) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - type: (0, In.isSet)(Pn.type) ? String(Pn.type) : '', - attributes: Array.isArray(Pn?.attributes) - ? Pn.attributes.map((Xn) => e.EventAttribute.fromJSON(Xn)) - : [], - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.type !== void 0 && (Xn.type = Pn.type), - Pn.attributes - ? (Xn.attributes = Pn.attributes.map((dt) => (dt ? e.EventAttribute.toJSON(dt) : void 0))) - : (Xn.attributes = []), - Xn - ) - }, - fromPartial(Pn) { - const Xn = vn() - return ( - (Xn.type = Pn.type ?? ''), - (Xn.attributes = Pn.attributes?.map((dt) => e.EventAttribute.fromPartial(dt)) || []), - Xn - ) - }, - } - function gr() { - return { key: '', value: '', index: !1 } - } - e.EventAttribute = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.key !== '' && Xn.uint32(10).string(Pn.key), - Pn.value !== '' && Xn.uint32(18).string(Pn.value), - Pn.index === !0 && Xn.uint32(24).bool(Pn.index), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = gr() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.key = dt.string() - break - case 2: - Lt.value = dt.string() - break - case 3: - Lt.index = dt.bool() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - key: (0, In.isSet)(Pn.key) ? String(Pn.key) : '', - value: (0, In.isSet)(Pn.value) ? String(Pn.value) : '', - index: (0, In.isSet)(Pn.index) ? Boolean(Pn.index) : !1, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.key !== void 0 && (Xn.key = Pn.key), - Pn.value !== void 0 && (Xn.value = Pn.value), - Pn.index !== void 0 && (Xn.index = Pn.index), - Xn - ) - }, - fromPartial(Pn) { - const Xn = gr() - return (Xn.key = Pn.key ?? ''), (Xn.value = Pn.value ?? ''), (Xn.index = Pn.index ?? !1), Xn - }, - } - function Mr() { - return { height: In.Long.ZERO, index: 0, tx: new Uint8Array(), result: void 0 } - } - e.TxResult = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.height.isZero() || Xn.uint32(8).int64(Pn.height), - Pn.index !== 0 && Xn.uint32(16).uint32(Pn.index), - Pn.tx.length !== 0 && Xn.uint32(26).bytes(Pn.tx), - Pn.result !== void 0 && - e.ResponseDeliverTx.encode(Pn.result, Xn.uint32(34).fork()).ldelim(), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Mr() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.height = dt.int64() - break - case 2: - Lt.index = dt.uint32() - break - case 3: - Lt.tx = dt.bytes() - break - case 4: - Lt.result = e.ResponseDeliverTx.decode(dt, dt.uint32()) - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.ZERO, - index: (0, In.isSet)(Pn.index) ? Number(Pn.index) : 0, - tx: (0, In.isSet)(Pn.tx) ? (0, In.bytesFromBase64)(Pn.tx) : new Uint8Array(), - result: (0, In.isSet)(Pn.result) ? e.ResponseDeliverTx.fromJSON(Pn.result) : void 0, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.ZERO).toString()), - Pn.index !== void 0 && (Xn.index = Math.round(Pn.index)), - Pn.tx !== void 0 && - (Xn.tx = (0, In.base64FromBytes)(Pn.tx !== void 0 ? Pn.tx : new Uint8Array())), - Pn.result !== void 0 && - (Xn.result = Pn.result ? e.ResponseDeliverTx.toJSON(Pn.result) : void 0), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Mr() - return ( - (Xn.height = - Pn.height !== void 0 && Pn.height !== null ? In.Long.fromValue(Pn.height) : In.Long.ZERO), - (Xn.index = Pn.index ?? 0), - (Xn.tx = Pn.tx ?? new Uint8Array()), - (Xn.result = - Pn.result !== void 0 && Pn.result !== null - ? e.ResponseDeliverTx.fromPartial(Pn.result) - : void 0), - Xn - ) - }, - } - function Or() { - return { address: new Uint8Array(), power: In.Long.ZERO } - } - e.Validator = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.address.length !== 0 && Xn.uint32(10).bytes(Pn.address), - Pn.power.isZero() || Xn.uint32(24).int64(Pn.power), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Or() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.address = dt.bytes() - break - case 3: - Lt.power = dt.int64() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - address: (0, In.isSet)(Pn.address) ? (0, In.bytesFromBase64)(Pn.address) : new Uint8Array(), - power: (0, In.isSet)(Pn.power) ? In.Long.fromValue(Pn.power) : In.Long.ZERO, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.address !== void 0 && - (Xn.address = (0, In.base64FromBytes)( - Pn.address !== void 0 ? Pn.address : new Uint8Array(), - )), - Pn.power !== void 0 && (Xn.power = (Pn.power || In.Long.ZERO).toString()), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Or() - return ( - (Xn.address = Pn.address ?? new Uint8Array()), - (Xn.power = - Pn.power !== void 0 && Pn.power !== null ? In.Long.fromValue(Pn.power) : In.Long.ZERO), - Xn - ) - }, - } - function _i() { - return { pubKey: void 0, power: In.Long.ZERO } - } - e.ValidatorUpdate = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.pubKey !== void 0 && gn.PublicKey.encode(Pn.pubKey, Xn.uint32(10).fork()).ldelim(), - Pn.power.isZero() || Xn.uint32(16).int64(Pn.power), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = _i() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.pubKey = gn.PublicKey.decode(dt, dt.uint32()) - break - case 2: - Lt.power = dt.int64() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - pubKey: (0, In.isSet)(Pn.pubKey) ? gn.PublicKey.fromJSON(Pn.pubKey) : void 0, - power: (0, In.isSet)(Pn.power) ? In.Long.fromValue(Pn.power) : In.Long.ZERO, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.pubKey !== void 0 && (Xn.pubKey = Pn.pubKey ? gn.PublicKey.toJSON(Pn.pubKey) : void 0), - Pn.power !== void 0 && (Xn.power = (Pn.power || In.Long.ZERO).toString()), - Xn - ) - }, - fromPartial(Pn) { - const Xn = _i() - return ( - (Xn.pubKey = - Pn.pubKey !== void 0 && Pn.pubKey !== null - ? gn.PublicKey.fromPartial(Pn.pubKey) - : void 0), - (Xn.power = - Pn.power !== void 0 && Pn.power !== null ? In.Long.fromValue(Pn.power) : In.Long.ZERO), - Xn - ) - }, - } - function eo() { - return { validator: void 0, signedLastBlock: !1 } - } - e.VoteInfo = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.validator !== void 0 && e.Validator.encode(Pn.validator, Xn.uint32(10).fork()).ldelim(), - Pn.signedLastBlock === !0 && Xn.uint32(16).bool(Pn.signedLastBlock), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = eo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.validator = e.Validator.decode(dt, dt.uint32()) - break - case 2: - Lt.signedLastBlock = dt.bool() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - validator: (0, In.isSet)(Pn.validator) ? e.Validator.fromJSON(Pn.validator) : void 0, - signedLastBlock: (0, In.isSet)(Pn.signedLastBlock) ? Boolean(Pn.signedLastBlock) : !1, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.validator !== void 0 && - (Xn.validator = Pn.validator ? e.Validator.toJSON(Pn.validator) : void 0), - Pn.signedLastBlock !== void 0 && (Xn.signedLastBlock = Pn.signedLastBlock), - Xn - ) - }, - fromPartial(Pn) { - const Xn = eo() - return ( - (Xn.validator = - Pn.validator !== void 0 && Pn.validator !== null - ? e.Validator.fromPartial(Pn.validator) - : void 0), - (Xn.signedLastBlock = Pn.signedLastBlock ?? !1), - Xn - ) - }, - } - function no() { - return { validator: void 0, signedLastBlock: !1, voteExtension: new Uint8Array() } - } - e.ExtendedVoteInfo = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.validator !== void 0 && e.Validator.encode(Pn.validator, Xn.uint32(10).fork()).ldelim(), - Pn.signedLastBlock === !0 && Xn.uint32(16).bool(Pn.signedLastBlock), - Pn.voteExtension.length !== 0 && Xn.uint32(26).bytes(Pn.voteExtension), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = no() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.validator = e.Validator.decode(dt, dt.uint32()) - break - case 2: - Lt.signedLastBlock = dt.bool() - break - case 3: - Lt.voteExtension = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - validator: (0, In.isSet)(Pn.validator) ? e.Validator.fromJSON(Pn.validator) : void 0, - signedLastBlock: (0, In.isSet)(Pn.signedLastBlock) ? Boolean(Pn.signedLastBlock) : !1, - voteExtension: (0, In.isSet)(Pn.voteExtension) - ? (0, In.bytesFromBase64)(Pn.voteExtension) - : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.validator !== void 0 && - (Xn.validator = Pn.validator ? e.Validator.toJSON(Pn.validator) : void 0), - Pn.signedLastBlock !== void 0 && (Xn.signedLastBlock = Pn.signedLastBlock), - Pn.voteExtension !== void 0 && - (Xn.voteExtension = (0, In.base64FromBytes)( - Pn.voteExtension !== void 0 ? Pn.voteExtension : new Uint8Array(), - )), - Xn - ) - }, - fromPartial(Pn) { - const Xn = no() - return ( - (Xn.validator = - Pn.validator !== void 0 && Pn.validator !== null - ? e.Validator.fromPartial(Pn.validator) - : void 0), - (Xn.signedLastBlock = Pn.signedLastBlock ?? !1), - (Xn.voteExtension = Pn.voteExtension ?? new Uint8Array()), - Xn - ) - }, - } - function Oo() { - return { - type: 0, - validator: void 0, - height: In.Long.ZERO, - time: void 0, - totalVotingPower: In.Long.ZERO, - } - } - e.Misbehavior = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.type !== 0 && Xn.uint32(8).int32(Pn.type), - Pn.validator !== void 0 && e.Validator.encode(Pn.validator, Xn.uint32(18).fork()).ldelim(), - Pn.height.isZero() || Xn.uint32(24).int64(Pn.height), - Pn.time !== void 0 && $.Timestamp.encode(Pn.time, Xn.uint32(34).fork()).ldelim(), - Pn.totalVotingPower.isZero() || Xn.uint32(40).int64(Pn.totalVotingPower), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = Oo() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.type = dt.int32() - break - case 2: - Lt.validator = e.Validator.decode(dt, dt.uint32()) - break - case 3: - Lt.height = dt.int64() - break - case 4: - Lt.time = $.Timestamp.decode(dt, dt.uint32()) - break - case 5: - Lt.totalVotingPower = dt.int64() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - type: (0, In.isSet)(Pn.type) ? Zn(Pn.type) : 0, - validator: (0, In.isSet)(Pn.validator) ? e.Validator.fromJSON(Pn.validator) : void 0, - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.ZERO, - time: (0, In.isSet)(Pn.time) ? (0, In.fromJsonTimestamp)(Pn.time) : void 0, - totalVotingPower: (0, In.isSet)(Pn.totalVotingPower) - ? In.Long.fromValue(Pn.totalVotingPower) - : In.Long.ZERO, - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.type !== void 0 && (Xn.type = tn(Pn.type)), - Pn.validator !== void 0 && - (Xn.validator = Pn.validator ? e.Validator.toJSON(Pn.validator) : void 0), - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.ZERO).toString()), - Pn.time !== void 0 && (Xn.time = (0, In.fromTimestamp)(Pn.time).toISOString()), - Pn.totalVotingPower !== void 0 && - (Xn.totalVotingPower = (Pn.totalVotingPower || In.Long.ZERO).toString()), - Xn - ) - }, - fromPartial(Pn) { - const Xn = Oo() - return ( - (Xn.type = Pn.type ?? 0), - (Xn.validator = - Pn.validator !== void 0 && Pn.validator !== null - ? e.Validator.fromPartial(Pn.validator) - : void 0), - (Xn.height = - Pn.height !== void 0 && Pn.height !== null ? In.Long.fromValue(Pn.height) : In.Long.ZERO), - (Xn.time = - Pn.time !== void 0 && Pn.time !== null ? $.Timestamp.fromPartial(Pn.time) : void 0), - (Xn.totalVotingPower = - Pn.totalVotingPower !== void 0 && Pn.totalVotingPower !== null - ? In.Long.fromValue(Pn.totalVotingPower) - : In.Long.ZERO), - Xn - ) - }, - } - function So() { - return { - height: In.Long.UZERO, - format: 0, - chunks: 0, - hash: new Uint8Array(), - metadata: new Uint8Array(), - } - } - e.Snapshot = { - encode(Pn, Xn = Jn.Writer.create()) { - return ( - Pn.height.isZero() || Xn.uint32(8).uint64(Pn.height), - Pn.format !== 0 && Xn.uint32(16).uint32(Pn.format), - Pn.chunks !== 0 && Xn.uint32(24).uint32(Pn.chunks), - Pn.hash.length !== 0 && Xn.uint32(34).bytes(Pn.hash), - Pn.metadata.length !== 0 && Xn.uint32(42).bytes(Pn.metadata), - Xn - ) - }, - decode(Pn, Xn) { - const dt = Pn instanceof Jn.Reader ? Pn : new Jn.Reader(Pn) - let Ir = Xn === void 0 ? dt.len : dt.pos + Xn - const Lt = So() - for (; dt.pos < Ir; ) { - const ur = dt.uint32() - switch (ur >>> 3) { - case 1: - Lt.height = dt.uint64() - break - case 2: - Lt.format = dt.uint32() - break - case 3: - Lt.chunks = dt.uint32() - break - case 4: - Lt.hash = dt.bytes() - break - case 5: - Lt.metadata = dt.bytes() - break - default: - dt.skipType(ur & 7) - break - } - } - return Lt - }, - fromJSON(Pn) { - return { - height: (0, In.isSet)(Pn.height) ? In.Long.fromValue(Pn.height) : In.Long.UZERO, - format: (0, In.isSet)(Pn.format) ? Number(Pn.format) : 0, - chunks: (0, In.isSet)(Pn.chunks) ? Number(Pn.chunks) : 0, - hash: (0, In.isSet)(Pn.hash) ? (0, In.bytesFromBase64)(Pn.hash) : new Uint8Array(), - metadata: (0, In.isSet)(Pn.metadata) - ? (0, In.bytesFromBase64)(Pn.metadata) - : new Uint8Array(), - } - }, - toJSON(Pn) { - const Xn = {} - return ( - Pn.height !== void 0 && (Xn.height = (Pn.height || In.Long.UZERO).toString()), - Pn.format !== void 0 && (Xn.format = Math.round(Pn.format)), - Pn.chunks !== void 0 && (Xn.chunks = Math.round(Pn.chunks)), - Pn.hash !== void 0 && - (Xn.hash = (0, In.base64FromBytes)(Pn.hash !== void 0 ? Pn.hash : new Uint8Array())), - Pn.metadata !== void 0 && - (Xn.metadata = (0, In.base64FromBytes)( - Pn.metadata !== void 0 ? Pn.metadata : new Uint8Array(), - )), - Xn - ) - }, - fromPartial(Pn) { - const Xn = So() - return ( - (Xn.height = - Pn.height !== void 0 && Pn.height !== null - ? In.Long.fromValue(Pn.height) - : In.Long.UZERO), - (Xn.format = Pn.format ?? 0), - (Xn.chunks = Pn.chunks ?? 0), - (Xn.hash = Pn.hash ?? new Uint8Array()), - (Xn.metadata = Pn.metadata ?? new Uint8Array()), - Xn - ) - }, - } - class lo { - constructor(Xn) { - ;(this.rpc = Xn), - (this.Echo = this.Echo.bind(this)), - (this.Flush = this.Flush.bind(this)), - (this.Info = this.Info.bind(this)), - (this.DeliverTx = this.DeliverTx.bind(this)), - (this.CheckTx = this.CheckTx.bind(this)), - (this.Query = this.Query.bind(this)), - (this.Commit = this.Commit.bind(this)), - (this.InitChain = this.InitChain.bind(this)), - (this.BeginBlock = this.BeginBlock.bind(this)), - (this.EndBlock = this.EndBlock.bind(this)), - (this.ListSnapshots = this.ListSnapshots.bind(this)), - (this.OfferSnapshot = this.OfferSnapshot.bind(this)), - (this.LoadSnapshotChunk = this.LoadSnapshotChunk.bind(this)), - (this.ApplySnapshotChunk = this.ApplySnapshotChunk.bind(this)), - (this.PrepareProposal = this.PrepareProposal.bind(this)), - (this.ProcessProposal = this.ProcessProposal.bind(this)) - } - Echo(Xn) { - const dt = e.RequestEcho.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'Echo', dt) - .then((Lt) => e.ResponseEcho.decode(new Jn.Reader(Lt))) - } - Flush(Xn = {}) { - const dt = e.RequestFlush.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'Flush', dt) - .then((Lt) => e.ResponseFlush.decode(new Jn.Reader(Lt))) - } - Info(Xn) { - const dt = e.RequestInfo.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'Info', dt) - .then((Lt) => e.ResponseInfo.decode(new Jn.Reader(Lt))) - } - DeliverTx(Xn) { - const dt = e.RequestDeliverTx.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'DeliverTx', dt) - .then((Lt) => e.ResponseDeliverTx.decode(new Jn.Reader(Lt))) - } - CheckTx(Xn) { - const dt = e.RequestCheckTx.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'CheckTx', dt) - .then((Lt) => e.ResponseCheckTx.decode(new Jn.Reader(Lt))) - } - Query(Xn) { - const dt = e.RequestQuery.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'Query', dt) - .then((Lt) => e.ResponseQuery.decode(new Jn.Reader(Lt))) - } - Commit(Xn = {}) { - const dt = e.RequestCommit.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'Commit', dt) - .then((Lt) => e.ResponseCommit.decode(new Jn.Reader(Lt))) - } - InitChain(Xn) { - const dt = e.RequestInitChain.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'InitChain', dt) - .then((Lt) => e.ResponseInitChain.decode(new Jn.Reader(Lt))) - } - BeginBlock(Xn) { - const dt = e.RequestBeginBlock.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'BeginBlock', dt) - .then((Lt) => e.ResponseBeginBlock.decode(new Jn.Reader(Lt))) - } - EndBlock(Xn) { - const dt = e.RequestEndBlock.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'EndBlock', dt) - .then((Lt) => e.ResponseEndBlock.decode(new Jn.Reader(Lt))) - } - ListSnapshots(Xn = {}) { - const dt = e.RequestListSnapshots.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'ListSnapshots', dt) - .then((Lt) => e.ResponseListSnapshots.decode(new Jn.Reader(Lt))) - } - OfferSnapshot(Xn) { - const dt = e.RequestOfferSnapshot.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'OfferSnapshot', dt) - .then((Lt) => e.ResponseOfferSnapshot.decode(new Jn.Reader(Lt))) - } - LoadSnapshotChunk(Xn) { - const dt = e.RequestLoadSnapshotChunk.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'LoadSnapshotChunk', dt) - .then((Lt) => e.ResponseLoadSnapshotChunk.decode(new Jn.Reader(Lt))) - } - ApplySnapshotChunk(Xn) { - const dt = e.RequestApplySnapshotChunk.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'ApplySnapshotChunk', dt) - .then((Lt) => e.ResponseApplySnapshotChunk.decode(new Jn.Reader(Lt))) - } - PrepareProposal(Xn) { - const dt = e.RequestPrepareProposal.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'PrepareProposal', dt) - .then((Lt) => e.ResponsePrepareProposal.decode(new Jn.Reader(Lt))) - } - ProcessProposal(Xn) { - const dt = e.RequestProcessProposal.encode(Xn).finish() - return this.rpc - .request('tendermint.abci.ABCIApplication', 'ProcessProposal', dt) - .then((Lt) => e.ResponseProcessProposal.decode(new Jn.Reader(Lt))) - } - } - e.ABCIApplicationClientImpl = lo -})(types$3) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Rn, Vn, Wn, ht) { - ht === void 0 && (ht = Wn) - var Wt = Object.getOwnPropertyDescriptor(Vn, Wn) - ;(!Wt || ('get' in Wt ? !Vn.__esModule : Wt.writable || Wt.configurable)) && - (Wt = { - enumerable: !0, - get: function () { - return Vn[Wn] - }, - }), - Object.defineProperty(Rn, ht, Wt) - } - : function (Rn, Vn, Wn, ht) { - ht === void 0 && (ht = Wn), (Rn[ht] = Vn[Wn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Rn, Vn) { - Object.defineProperty(Rn, 'default', { enumerable: !0, value: Vn }) - } - : function (Rn, Vn) { - Rn.default = Vn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Rn) { - if (Rn && Rn.__esModule) return Rn - var Vn = {} - if (Rn != null) - for (var Wn in Rn) - Wn !== 'default' && Object.prototype.hasOwnProperty.call(Rn, Wn) && o(Vn, Rn, Wn) - return _(Vn, Rn), Vn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ValidatorUpdates = - e.Pool = - e.RedelegationResponse = - e.RedelegationEntryResponse = - e.DelegationResponse = - e.Params = - e.Redelegation = - e.RedelegationEntry = - e.UnbondingDelegationEntry = - e.UnbondingDelegation = - e.Delegation = - e.DVVTriplets = - e.DVVTriplet = - e.DVPairs = - e.DVPair = - e.ValAddresses = - e.Validator = - e.Description = - e.Commission = - e.CommissionRates = - e.HistoricalInfo = - e.infractionToJSON = - e.infractionFromJSON = - e.Infraction = - e.bondStatusToJSON = - e.bondStatusFromJSON = - e.BondStatus = - e.protobufPackage = - void 0) - const $ = types$5, - en = timestamp, - nn = any, - sn = duration, - gn = coin$1, - In = types$3, - Jn = helpers, - qn = b(minimalExports) - e.protobufPackage = 'cosmos.staking.v1beta1' - var Kn - ;(function (Rn) { - ;(Rn[(Rn.BOND_STATUS_UNSPECIFIED = 0)] = 'BOND_STATUS_UNSPECIFIED'), - (Rn[(Rn.BOND_STATUS_UNBONDED = 1)] = 'BOND_STATUS_UNBONDED'), - (Rn[(Rn.BOND_STATUS_UNBONDING = 2)] = 'BOND_STATUS_UNBONDING'), - (Rn[(Rn.BOND_STATUS_BONDED = 3)] = 'BOND_STATUS_BONDED'), - (Rn[(Rn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Kn = e.BondStatus || (e.BondStatus = {}))) - function an(Rn) { - switch (Rn) { - case 0: - case 'BOND_STATUS_UNSPECIFIED': - return Kn.BOND_STATUS_UNSPECIFIED - case 1: - case 'BOND_STATUS_UNBONDED': - return Kn.BOND_STATUS_UNBONDED - case 2: - case 'BOND_STATUS_UNBONDING': - return Kn.BOND_STATUS_UNBONDING - case 3: - case 'BOND_STATUS_BONDED': - return Kn.BOND_STATUS_BONDED - case -1: - case 'UNRECOGNIZED': - default: - return Kn.UNRECOGNIZED - } - } - e.bondStatusFromJSON = an - function xn(Rn) { - switch (Rn) { - case Kn.BOND_STATUS_UNSPECIFIED: - return 'BOND_STATUS_UNSPECIFIED' - case Kn.BOND_STATUS_UNBONDED: - return 'BOND_STATUS_UNBONDED' - case Kn.BOND_STATUS_UNBONDING: - return 'BOND_STATUS_UNBONDING' - case Kn.BOND_STATUS_BONDED: - return 'BOND_STATUS_BONDED' - case Kn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.bondStatusToJSON = xn - var mn - ;(function (Rn) { - ;(Rn[(Rn.INFRACTION_UNSPECIFIED = 0)] = 'INFRACTION_UNSPECIFIED'), - (Rn[(Rn.INFRACTION_DOUBLE_SIGN = 1)] = 'INFRACTION_DOUBLE_SIGN'), - (Rn[(Rn.INFRACTION_DOWNTIME = 2)] = 'INFRACTION_DOWNTIME'), - (Rn[(Rn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((mn = e.Infraction || (e.Infraction = {}))) - function Bn(Rn) { - switch (Rn) { - case 0: - case 'INFRACTION_UNSPECIFIED': - return mn.INFRACTION_UNSPECIFIED - case 1: - case 'INFRACTION_DOUBLE_SIGN': - return mn.INFRACTION_DOUBLE_SIGN - case 2: - case 'INFRACTION_DOWNTIME': - return mn.INFRACTION_DOWNTIME - case -1: - case 'UNRECOGNIZED': - default: - return mn.UNRECOGNIZED - } - } - e.infractionFromJSON = Bn - function kn(Rn) { - switch (Rn) { - case mn.INFRACTION_UNSPECIFIED: - return 'INFRACTION_UNSPECIFIED' - case mn.INFRACTION_DOUBLE_SIGN: - return 'INFRACTION_DOUBLE_SIGN' - case mn.INFRACTION_DOWNTIME: - return 'INFRACTION_DOWNTIME' - case mn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.infractionToJSON = kn - function ln() { - return { header: void 0, valset: [] } - } - e.HistoricalInfo = { - encode(Rn, Vn = qn.Writer.create()) { - Rn.header !== void 0 && $.Header.encode(Rn.header, Vn.uint32(10).fork()).ldelim() - for (const Wn of Rn.valset) e.Validator.encode(Wn, Vn.uint32(18).fork()).ldelim() - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = ln() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.header = $.Header.decode(Wn, Wn.uint32()) - break - case 2: - Wt.valset.push(e.Validator.decode(Wn, Wn.uint32())) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - header: (0, Jn.isSet)(Rn.header) ? $.Header.fromJSON(Rn.header) : void 0, - valset: Array.isArray(Rn?.valset) ? Rn.valset.map((Vn) => e.Validator.fromJSON(Vn)) : [], - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.header !== void 0 && (Vn.header = Rn.header ? $.Header.toJSON(Rn.header) : void 0), - Rn.valset - ? (Vn.valset = Rn.valset.map((Wn) => (Wn ? e.Validator.toJSON(Wn) : void 0))) - : (Vn.valset = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = ln() - return ( - (Vn.header = - Rn.header !== void 0 && Rn.header !== null ? $.Header.fromPartial(Rn.header) : void 0), - (Vn.valset = Rn.valset?.map((Wn) => e.Validator.fromPartial(Wn)) || []), - Vn - ) - }, - } - function yn() { - return { rate: '', maxRate: '', maxChangeRate: '' } - } - e.CommissionRates = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.rate !== '' && Vn.uint32(10).string(Rn.rate), - Rn.maxRate !== '' && Vn.uint32(18).string(Rn.maxRate), - Rn.maxChangeRate !== '' && Vn.uint32(26).string(Rn.maxChangeRate), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = yn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.rate = Wn.string() - break - case 2: - Wt.maxRate = Wn.string() - break - case 3: - Wt.maxChangeRate = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - rate: (0, Jn.isSet)(Rn.rate) ? String(Rn.rate) : '', - maxRate: (0, Jn.isSet)(Rn.maxRate) ? String(Rn.maxRate) : '', - maxChangeRate: (0, Jn.isSet)(Rn.maxChangeRate) ? String(Rn.maxChangeRate) : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.rate !== void 0 && (Vn.rate = Rn.rate), - Rn.maxRate !== void 0 && (Vn.maxRate = Rn.maxRate), - Rn.maxChangeRate !== void 0 && (Vn.maxChangeRate = Rn.maxChangeRate), - Vn - ) - }, - fromPartial(Rn) { - const Vn = yn() - return ( - (Vn.rate = Rn.rate ?? ''), - (Vn.maxRate = Rn.maxRate ?? ''), - (Vn.maxChangeRate = Rn.maxChangeRate ?? ''), - Vn - ) - }, - } - function Cn() { - return { commissionRates: void 0, updateTime: void 0 } - } - e.Commission = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.commissionRates !== void 0 && - e.CommissionRates.encode(Rn.commissionRates, Vn.uint32(10).fork()).ldelim(), - Rn.updateTime !== void 0 && - en.Timestamp.encode(Rn.updateTime, Vn.uint32(18).fork()).ldelim(), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Cn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.commissionRates = e.CommissionRates.decode(Wn, Wn.uint32()) - break - case 2: - Wt.updateTime = en.Timestamp.decode(Wn, Wn.uint32()) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - commissionRates: (0, Jn.isSet)(Rn.commissionRates) - ? e.CommissionRates.fromJSON(Rn.commissionRates) - : void 0, - updateTime: (0, Jn.isSet)(Rn.updateTime) - ? (0, Jn.fromJsonTimestamp)(Rn.updateTime) - : void 0, - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.commissionRates !== void 0 && - (Vn.commissionRates = Rn.commissionRates - ? e.CommissionRates.toJSON(Rn.commissionRates) - : void 0), - Rn.updateTime !== void 0 && - (Vn.updateTime = (0, Jn.fromTimestamp)(Rn.updateTime).toISOString()), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Cn() - return ( - (Vn.commissionRates = - Rn.commissionRates !== void 0 && Rn.commissionRates !== null - ? e.CommissionRates.fromPartial(Rn.commissionRates) - : void 0), - (Vn.updateTime = - Rn.updateTime !== void 0 && Rn.updateTime !== null - ? en.Timestamp.fromPartial(Rn.updateTime) - : void 0), - Vn - ) - }, - } - function Tn() { - return { moniker: '', identity: '', website: '', securityContact: '', details: '' } - } - e.Description = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.moniker !== '' && Vn.uint32(10).string(Rn.moniker), - Rn.identity !== '' && Vn.uint32(18).string(Rn.identity), - Rn.website !== '' && Vn.uint32(26).string(Rn.website), - Rn.securityContact !== '' && Vn.uint32(34).string(Rn.securityContact), - Rn.details !== '' && Vn.uint32(42).string(Rn.details), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Tn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.moniker = Wn.string() - break - case 2: - Wt.identity = Wn.string() - break - case 3: - Wt.website = Wn.string() - break - case 4: - Wt.securityContact = Wn.string() - break - case 5: - Wt.details = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - moniker: (0, Jn.isSet)(Rn.moniker) ? String(Rn.moniker) : '', - identity: (0, Jn.isSet)(Rn.identity) ? String(Rn.identity) : '', - website: (0, Jn.isSet)(Rn.website) ? String(Rn.website) : '', - securityContact: (0, Jn.isSet)(Rn.securityContact) ? String(Rn.securityContact) : '', - details: (0, Jn.isSet)(Rn.details) ? String(Rn.details) : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.moniker !== void 0 && (Vn.moniker = Rn.moniker), - Rn.identity !== void 0 && (Vn.identity = Rn.identity), - Rn.website !== void 0 && (Vn.website = Rn.website), - Rn.securityContact !== void 0 && (Vn.securityContact = Rn.securityContact), - Rn.details !== void 0 && (Vn.details = Rn.details), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Tn() - return ( - (Vn.moniker = Rn.moniker ?? ''), - (Vn.identity = Rn.identity ?? ''), - (Vn.website = Rn.website ?? ''), - (Vn.securityContact = Rn.securityContact ?? ''), - (Vn.details = Rn.details ?? ''), - Vn - ) - }, - } - function Gn() { - return { - operatorAddress: '', - consensusPubkey: void 0, - jailed: !1, - status: 0, - tokens: '', - delegatorShares: '', - description: void 0, - unbondingHeight: Jn.Long.ZERO, - unbondingTime: void 0, - commission: void 0, - minSelfDelegation: '', - unbondingOnHoldRefCount: Jn.Long.ZERO, - unbondingIds: [], - } - } - e.Validator = { - encode(Rn, Vn = qn.Writer.create()) { - Rn.operatorAddress !== '' && Vn.uint32(10).string(Rn.operatorAddress), - Rn.consensusPubkey !== void 0 && - nn.Any.encode(Rn.consensusPubkey, Vn.uint32(18).fork()).ldelim(), - Rn.jailed === !0 && Vn.uint32(24).bool(Rn.jailed), - Rn.status !== 0 && Vn.uint32(32).int32(Rn.status), - Rn.tokens !== '' && Vn.uint32(42).string(Rn.tokens), - Rn.delegatorShares !== '' && Vn.uint32(50).string(Rn.delegatorShares), - Rn.description !== void 0 && - e.Description.encode(Rn.description, Vn.uint32(58).fork()).ldelim(), - Rn.unbondingHeight.isZero() || Vn.uint32(64).int64(Rn.unbondingHeight), - Rn.unbondingTime !== void 0 && - en.Timestamp.encode(Rn.unbondingTime, Vn.uint32(74).fork()).ldelim(), - Rn.commission !== void 0 && - e.Commission.encode(Rn.commission, Vn.uint32(82).fork()).ldelim(), - Rn.minSelfDelegation !== '' && Vn.uint32(90).string(Rn.minSelfDelegation), - Rn.unbondingOnHoldRefCount.isZero() || Vn.uint32(96).int64(Rn.unbondingOnHoldRefCount), - Vn.uint32(106).fork() - for (const Wn of Rn.unbondingIds) Vn.uint64(Wn) - return Vn.ldelim(), Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Gn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.operatorAddress = Wn.string() - break - case 2: - Wt.consensusPubkey = nn.Any.decode(Wn, Wn.uint32()) - break - case 3: - Wt.jailed = Wn.bool() - break - case 4: - Wt.status = Wn.int32() - break - case 5: - Wt.tokens = Wn.string() - break - case 6: - Wt.delegatorShares = Wn.string() - break - case 7: - Wt.description = e.Description.decode(Wn, Wn.uint32()) - break - case 8: - Wt.unbondingHeight = Wn.int64() - break - case 9: - Wt.unbondingTime = en.Timestamp.decode(Wn, Wn.uint32()) - break - case 10: - Wt.commission = e.Commission.decode(Wn, Wn.uint32()) - break - case 11: - Wt.minSelfDelegation = Wn.string() - break - case 12: - Wt.unbondingOnHoldRefCount = Wn.int64() - break - case 13: - if ((zt & 7) === 2) { - const mr = Wn.uint32() + Wn.pos - for (; Wn.pos < mr; ) Wt.unbondingIds.push(Wn.uint64()) - } else Wt.unbondingIds.push(Wn.uint64()) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - operatorAddress: (0, Jn.isSet)(Rn.operatorAddress) ? String(Rn.operatorAddress) : '', - consensusPubkey: (0, Jn.isSet)(Rn.consensusPubkey) - ? nn.Any.fromJSON(Rn.consensusPubkey) - : void 0, - jailed: (0, Jn.isSet)(Rn.jailed) ? Boolean(Rn.jailed) : !1, - status: (0, Jn.isSet)(Rn.status) ? an(Rn.status) : 0, - tokens: (0, Jn.isSet)(Rn.tokens) ? String(Rn.tokens) : '', - delegatorShares: (0, Jn.isSet)(Rn.delegatorShares) ? String(Rn.delegatorShares) : '', - description: (0, Jn.isSet)(Rn.description) - ? e.Description.fromJSON(Rn.description) - : void 0, - unbondingHeight: (0, Jn.isSet)(Rn.unbondingHeight) - ? Jn.Long.fromValue(Rn.unbondingHeight) - : Jn.Long.ZERO, - unbondingTime: (0, Jn.isSet)(Rn.unbondingTime) - ? (0, Jn.fromJsonTimestamp)(Rn.unbondingTime) - : void 0, - commission: (0, Jn.isSet)(Rn.commission) ? e.Commission.fromJSON(Rn.commission) : void 0, - minSelfDelegation: (0, Jn.isSet)(Rn.minSelfDelegation) ? String(Rn.minSelfDelegation) : '', - unbondingOnHoldRefCount: (0, Jn.isSet)(Rn.unbondingOnHoldRefCount) - ? Jn.Long.fromValue(Rn.unbondingOnHoldRefCount) - : Jn.Long.ZERO, - unbondingIds: Array.isArray(Rn?.unbondingIds) - ? Rn.unbondingIds.map((Vn) => Jn.Long.fromValue(Vn)) - : [], - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.operatorAddress !== void 0 && (Vn.operatorAddress = Rn.operatorAddress), - Rn.consensusPubkey !== void 0 && - (Vn.consensusPubkey = Rn.consensusPubkey ? nn.Any.toJSON(Rn.consensusPubkey) : void 0), - Rn.jailed !== void 0 && (Vn.jailed = Rn.jailed), - Rn.status !== void 0 && (Vn.status = xn(Rn.status)), - Rn.tokens !== void 0 && (Vn.tokens = Rn.tokens), - Rn.delegatorShares !== void 0 && (Vn.delegatorShares = Rn.delegatorShares), - Rn.description !== void 0 && - (Vn.description = Rn.description ? e.Description.toJSON(Rn.description) : void 0), - Rn.unbondingHeight !== void 0 && - (Vn.unbondingHeight = (Rn.unbondingHeight || Jn.Long.ZERO).toString()), - Rn.unbondingTime !== void 0 && - (Vn.unbondingTime = (0, Jn.fromTimestamp)(Rn.unbondingTime).toISOString()), - Rn.commission !== void 0 && - (Vn.commission = Rn.commission ? e.Commission.toJSON(Rn.commission) : void 0), - Rn.minSelfDelegation !== void 0 && (Vn.minSelfDelegation = Rn.minSelfDelegation), - Rn.unbondingOnHoldRefCount !== void 0 && - (Vn.unbondingOnHoldRefCount = (Rn.unbondingOnHoldRefCount || Jn.Long.ZERO).toString()), - Rn.unbondingIds - ? (Vn.unbondingIds = Rn.unbondingIds.map((Wn) => (Wn || Jn.Long.UZERO).toString())) - : (Vn.unbondingIds = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Gn() - return ( - (Vn.operatorAddress = Rn.operatorAddress ?? ''), - (Vn.consensusPubkey = - Rn.consensusPubkey !== void 0 && Rn.consensusPubkey !== null - ? nn.Any.fromPartial(Rn.consensusPubkey) - : void 0), - (Vn.jailed = Rn.jailed ?? !1), - (Vn.status = Rn.status ?? 0), - (Vn.tokens = Rn.tokens ?? ''), - (Vn.delegatorShares = Rn.delegatorShares ?? ''), - (Vn.description = - Rn.description !== void 0 && Rn.description !== null - ? e.Description.fromPartial(Rn.description) - : void 0), - (Vn.unbondingHeight = - Rn.unbondingHeight !== void 0 && Rn.unbondingHeight !== null - ? Jn.Long.fromValue(Rn.unbondingHeight) - : Jn.Long.ZERO), - (Vn.unbondingTime = - Rn.unbondingTime !== void 0 && Rn.unbondingTime !== null - ? en.Timestamp.fromPartial(Rn.unbondingTime) - : void 0), - (Vn.commission = - Rn.commission !== void 0 && Rn.commission !== null - ? e.Commission.fromPartial(Rn.commission) - : void 0), - (Vn.minSelfDelegation = Rn.minSelfDelegation ?? ''), - (Vn.unbondingOnHoldRefCount = - Rn.unbondingOnHoldRefCount !== void 0 && Rn.unbondingOnHoldRefCount !== null - ? Jn.Long.fromValue(Rn.unbondingOnHoldRefCount) - : Jn.Long.ZERO), - (Vn.unbondingIds = Rn.unbondingIds?.map((Wn) => Jn.Long.fromValue(Wn)) || []), - Vn - ) - }, - } - function Sn() { - return { addresses: [] } - } - e.ValAddresses = { - encode(Rn, Vn = qn.Writer.create()) { - for (const Wn of Rn.addresses) Vn.uint32(10).string(Wn) - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Sn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.addresses.push(Wn.string()) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { addresses: Array.isArray(Rn?.addresses) ? Rn.addresses.map((Vn) => String(Vn)) : [] } - }, - toJSON(Rn) { - const Vn = {} - return Rn.addresses ? (Vn.addresses = Rn.addresses.map((Wn) => Wn)) : (Vn.addresses = []), Vn - }, - fromPartial(Rn) { - const Vn = Sn() - return (Vn.addresses = Rn.addresses?.map((Wn) => Wn) || []), Vn - }, - } - function Zn() { - return { delegatorAddress: '', validatorAddress: '' } - } - e.DVPair = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.delegatorAddress !== '' && Vn.uint32(10).string(Rn.delegatorAddress), - Rn.validatorAddress !== '' && Vn.uint32(18).string(Rn.validatorAddress), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Zn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.delegatorAddress = Wn.string() - break - case 2: - Wt.validatorAddress = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - delegatorAddress: (0, Jn.isSet)(Rn.delegatorAddress) ? String(Rn.delegatorAddress) : '', - validatorAddress: (0, Jn.isSet)(Rn.validatorAddress) ? String(Rn.validatorAddress) : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.delegatorAddress !== void 0 && (Vn.delegatorAddress = Rn.delegatorAddress), - Rn.validatorAddress !== void 0 && (Vn.validatorAddress = Rn.validatorAddress), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Zn() - return ( - (Vn.delegatorAddress = Rn.delegatorAddress ?? ''), - (Vn.validatorAddress = Rn.validatorAddress ?? ''), - Vn - ) - }, - } - function tn() { - return { pairs: [] } - } - e.DVPairs = { - encode(Rn, Vn = qn.Writer.create()) { - for (const Wn of Rn.pairs) e.DVPair.encode(Wn, Vn.uint32(10).fork()).ldelim() - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = tn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.pairs.push(e.DVPair.decode(Wn, Wn.uint32())) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { pairs: Array.isArray(Rn?.pairs) ? Rn.pairs.map((Vn) => e.DVPair.fromJSON(Vn)) : [] } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.pairs - ? (Vn.pairs = Rn.pairs.map((Wn) => (Wn ? e.DVPair.toJSON(Wn) : void 0))) - : (Vn.pairs = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = tn() - return (Vn.pairs = Rn.pairs?.map((Wn) => e.DVPair.fromPartial(Wn)) || []), Vn - }, - } - function En() { - return { delegatorAddress: '', validatorSrcAddress: '', validatorDstAddress: '' } - } - e.DVVTriplet = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.delegatorAddress !== '' && Vn.uint32(10).string(Rn.delegatorAddress), - Rn.validatorSrcAddress !== '' && Vn.uint32(18).string(Rn.validatorSrcAddress), - Rn.validatorDstAddress !== '' && Vn.uint32(26).string(Rn.validatorDstAddress), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = En() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.delegatorAddress = Wn.string() - break - case 2: - Wt.validatorSrcAddress = Wn.string() - break - case 3: - Wt.validatorDstAddress = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - delegatorAddress: (0, Jn.isSet)(Rn.delegatorAddress) ? String(Rn.delegatorAddress) : '', - validatorSrcAddress: (0, Jn.isSet)(Rn.validatorSrcAddress) - ? String(Rn.validatorSrcAddress) - : '', - validatorDstAddress: (0, Jn.isSet)(Rn.validatorDstAddress) - ? String(Rn.validatorDstAddress) - : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.delegatorAddress !== void 0 && (Vn.delegatorAddress = Rn.delegatorAddress), - Rn.validatorSrcAddress !== void 0 && (Vn.validatorSrcAddress = Rn.validatorSrcAddress), - Rn.validatorDstAddress !== void 0 && (Vn.validatorDstAddress = Rn.validatorDstAddress), - Vn - ) - }, - fromPartial(Rn) { - const Vn = En() - return ( - (Vn.delegatorAddress = Rn.delegatorAddress ?? ''), - (Vn.validatorSrcAddress = Rn.validatorSrcAddress ?? ''), - (Vn.validatorDstAddress = Rn.validatorDstAddress ?? ''), - Vn - ) - }, - } - function Mn() { - return { triplets: [] } - } - e.DVVTriplets = { - encode(Rn, Vn = qn.Writer.create()) { - for (const Wn of Rn.triplets) e.DVVTriplet.encode(Wn, Vn.uint32(10).fork()).ldelim() - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Mn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.triplets.push(e.DVVTriplet.decode(Wn, Wn.uint32())) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - triplets: Array.isArray(Rn?.triplets) - ? Rn.triplets.map((Vn) => e.DVVTriplet.fromJSON(Vn)) - : [], - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.triplets - ? (Vn.triplets = Rn.triplets.map((Wn) => (Wn ? e.DVVTriplet.toJSON(Wn) : void 0))) - : (Vn.triplets = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Mn() - return (Vn.triplets = Rn.triplets?.map((Wn) => e.DVVTriplet.fromPartial(Wn)) || []), Vn - }, - } - function Hn() { - return { delegatorAddress: '', validatorAddress: '', shares: '' } - } - e.Delegation = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.delegatorAddress !== '' && Vn.uint32(10).string(Rn.delegatorAddress), - Rn.validatorAddress !== '' && Vn.uint32(18).string(Rn.validatorAddress), - Rn.shares !== '' && Vn.uint32(26).string(Rn.shares), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Hn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.delegatorAddress = Wn.string() - break - case 2: - Wt.validatorAddress = Wn.string() - break - case 3: - Wt.shares = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - delegatorAddress: (0, Jn.isSet)(Rn.delegatorAddress) ? String(Rn.delegatorAddress) : '', - validatorAddress: (0, Jn.isSet)(Rn.validatorAddress) ? String(Rn.validatorAddress) : '', - shares: (0, Jn.isSet)(Rn.shares) ? String(Rn.shares) : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.delegatorAddress !== void 0 && (Vn.delegatorAddress = Rn.delegatorAddress), - Rn.validatorAddress !== void 0 && (Vn.validatorAddress = Rn.validatorAddress), - Rn.shares !== void 0 && (Vn.shares = Rn.shares), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Hn() - return ( - (Vn.delegatorAddress = Rn.delegatorAddress ?? ''), - (Vn.validatorAddress = Rn.validatorAddress ?? ''), - (Vn.shares = Rn.shares ?? ''), - Vn - ) - }, - } - function un() { - return { delegatorAddress: '', validatorAddress: '', entries: [] } - } - e.UnbondingDelegation = { - encode(Rn, Vn = qn.Writer.create()) { - Rn.delegatorAddress !== '' && Vn.uint32(10).string(Rn.delegatorAddress), - Rn.validatorAddress !== '' && Vn.uint32(18).string(Rn.validatorAddress) - for (const Wn of Rn.entries) - e.UnbondingDelegationEntry.encode(Wn, Vn.uint32(26).fork()).ldelim() - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = un() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.delegatorAddress = Wn.string() - break - case 2: - Wt.validatorAddress = Wn.string() - break - case 3: - Wt.entries.push(e.UnbondingDelegationEntry.decode(Wn, Wn.uint32())) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - delegatorAddress: (0, Jn.isSet)(Rn.delegatorAddress) ? String(Rn.delegatorAddress) : '', - validatorAddress: (0, Jn.isSet)(Rn.validatorAddress) ? String(Rn.validatorAddress) : '', - entries: Array.isArray(Rn?.entries) - ? Rn.entries.map((Vn) => e.UnbondingDelegationEntry.fromJSON(Vn)) - : [], - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.delegatorAddress !== void 0 && (Vn.delegatorAddress = Rn.delegatorAddress), - Rn.validatorAddress !== void 0 && (Vn.validatorAddress = Rn.validatorAddress), - Rn.entries - ? (Vn.entries = Rn.entries.map((Wn) => - Wn ? e.UnbondingDelegationEntry.toJSON(Wn) : void 0, - )) - : (Vn.entries = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = un() - return ( - (Vn.delegatorAddress = Rn.delegatorAddress ?? ''), - (Vn.validatorAddress = Rn.validatorAddress ?? ''), - (Vn.entries = Rn.entries?.map((Wn) => e.UnbondingDelegationEntry.fromPartial(Wn)) || []), - Vn - ) - }, - } - function dn() { - return { - creationHeight: Jn.Long.ZERO, - completionTime: void 0, - initialBalance: '', - balance: '', - unbondingId: Jn.Long.UZERO, - unbondingOnHoldRefCount: Jn.Long.ZERO, - } - } - e.UnbondingDelegationEntry = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.creationHeight.isZero() || Vn.uint32(8).int64(Rn.creationHeight), - Rn.completionTime !== void 0 && - en.Timestamp.encode(Rn.completionTime, Vn.uint32(18).fork()).ldelim(), - Rn.initialBalance !== '' && Vn.uint32(26).string(Rn.initialBalance), - Rn.balance !== '' && Vn.uint32(34).string(Rn.balance), - Rn.unbondingId.isZero() || Vn.uint32(40).uint64(Rn.unbondingId), - Rn.unbondingOnHoldRefCount.isZero() || Vn.uint32(48).int64(Rn.unbondingOnHoldRefCount), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = dn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.creationHeight = Wn.int64() - break - case 2: - Wt.completionTime = en.Timestamp.decode(Wn, Wn.uint32()) - break - case 3: - Wt.initialBalance = Wn.string() - break - case 4: - Wt.balance = Wn.string() - break - case 5: - Wt.unbondingId = Wn.uint64() - break - case 6: - Wt.unbondingOnHoldRefCount = Wn.int64() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - creationHeight: (0, Jn.isSet)(Rn.creationHeight) - ? Jn.Long.fromValue(Rn.creationHeight) - : Jn.Long.ZERO, - completionTime: (0, Jn.isSet)(Rn.completionTime) - ? (0, Jn.fromJsonTimestamp)(Rn.completionTime) - : void 0, - initialBalance: (0, Jn.isSet)(Rn.initialBalance) ? String(Rn.initialBalance) : '', - balance: (0, Jn.isSet)(Rn.balance) ? String(Rn.balance) : '', - unbondingId: (0, Jn.isSet)(Rn.unbondingId) - ? Jn.Long.fromValue(Rn.unbondingId) - : Jn.Long.UZERO, - unbondingOnHoldRefCount: (0, Jn.isSet)(Rn.unbondingOnHoldRefCount) - ? Jn.Long.fromValue(Rn.unbondingOnHoldRefCount) - : Jn.Long.ZERO, - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.creationHeight !== void 0 && - (Vn.creationHeight = (Rn.creationHeight || Jn.Long.ZERO).toString()), - Rn.completionTime !== void 0 && - (Vn.completionTime = (0, Jn.fromTimestamp)(Rn.completionTime).toISOString()), - Rn.initialBalance !== void 0 && (Vn.initialBalance = Rn.initialBalance), - Rn.balance !== void 0 && (Vn.balance = Rn.balance), - Rn.unbondingId !== void 0 && - (Vn.unbondingId = (Rn.unbondingId || Jn.Long.UZERO).toString()), - Rn.unbondingOnHoldRefCount !== void 0 && - (Vn.unbondingOnHoldRefCount = (Rn.unbondingOnHoldRefCount || Jn.Long.ZERO).toString()), - Vn - ) - }, - fromPartial(Rn) { - const Vn = dn() - return ( - (Vn.creationHeight = - Rn.creationHeight !== void 0 && Rn.creationHeight !== null - ? Jn.Long.fromValue(Rn.creationHeight) - : Jn.Long.ZERO), - (Vn.completionTime = - Rn.completionTime !== void 0 && Rn.completionTime !== null - ? en.Timestamp.fromPartial(Rn.completionTime) - : void 0), - (Vn.initialBalance = Rn.initialBalance ?? ''), - (Vn.balance = Rn.balance ?? ''), - (Vn.unbondingId = - Rn.unbondingId !== void 0 && Rn.unbondingId !== null - ? Jn.Long.fromValue(Rn.unbondingId) - : Jn.Long.UZERO), - (Vn.unbondingOnHoldRefCount = - Rn.unbondingOnHoldRefCount !== void 0 && Rn.unbondingOnHoldRefCount !== null - ? Jn.Long.fromValue(Rn.unbondingOnHoldRefCount) - : Jn.Long.ZERO), - Vn - ) - }, - } - function Nn() { - return { - creationHeight: Jn.Long.ZERO, - completionTime: void 0, - initialBalance: '', - sharesDst: '', - unbondingId: Jn.Long.UZERO, - unbondingOnHoldRefCount: Jn.Long.ZERO, - } - } - e.RedelegationEntry = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.creationHeight.isZero() || Vn.uint32(8).int64(Rn.creationHeight), - Rn.completionTime !== void 0 && - en.Timestamp.encode(Rn.completionTime, Vn.uint32(18).fork()).ldelim(), - Rn.initialBalance !== '' && Vn.uint32(26).string(Rn.initialBalance), - Rn.sharesDst !== '' && Vn.uint32(34).string(Rn.sharesDst), - Rn.unbondingId.isZero() || Vn.uint32(40).uint64(Rn.unbondingId), - Rn.unbondingOnHoldRefCount.isZero() || Vn.uint32(48).int64(Rn.unbondingOnHoldRefCount), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Nn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.creationHeight = Wn.int64() - break - case 2: - Wt.completionTime = en.Timestamp.decode(Wn, Wn.uint32()) - break - case 3: - Wt.initialBalance = Wn.string() - break - case 4: - Wt.sharesDst = Wn.string() - break - case 5: - Wt.unbondingId = Wn.uint64() - break - case 6: - Wt.unbondingOnHoldRefCount = Wn.int64() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - creationHeight: (0, Jn.isSet)(Rn.creationHeight) - ? Jn.Long.fromValue(Rn.creationHeight) - : Jn.Long.ZERO, - completionTime: (0, Jn.isSet)(Rn.completionTime) - ? (0, Jn.fromJsonTimestamp)(Rn.completionTime) - : void 0, - initialBalance: (0, Jn.isSet)(Rn.initialBalance) ? String(Rn.initialBalance) : '', - sharesDst: (0, Jn.isSet)(Rn.sharesDst) ? String(Rn.sharesDst) : '', - unbondingId: (0, Jn.isSet)(Rn.unbondingId) - ? Jn.Long.fromValue(Rn.unbondingId) - : Jn.Long.UZERO, - unbondingOnHoldRefCount: (0, Jn.isSet)(Rn.unbondingOnHoldRefCount) - ? Jn.Long.fromValue(Rn.unbondingOnHoldRefCount) - : Jn.Long.ZERO, - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.creationHeight !== void 0 && - (Vn.creationHeight = (Rn.creationHeight || Jn.Long.ZERO).toString()), - Rn.completionTime !== void 0 && - (Vn.completionTime = (0, Jn.fromTimestamp)(Rn.completionTime).toISOString()), - Rn.initialBalance !== void 0 && (Vn.initialBalance = Rn.initialBalance), - Rn.sharesDst !== void 0 && (Vn.sharesDst = Rn.sharesDst), - Rn.unbondingId !== void 0 && - (Vn.unbondingId = (Rn.unbondingId || Jn.Long.UZERO).toString()), - Rn.unbondingOnHoldRefCount !== void 0 && - (Vn.unbondingOnHoldRefCount = (Rn.unbondingOnHoldRefCount || Jn.Long.ZERO).toString()), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Nn() - return ( - (Vn.creationHeight = - Rn.creationHeight !== void 0 && Rn.creationHeight !== null - ? Jn.Long.fromValue(Rn.creationHeight) - : Jn.Long.ZERO), - (Vn.completionTime = - Rn.completionTime !== void 0 && Rn.completionTime !== null - ? en.Timestamp.fromPartial(Rn.completionTime) - : void 0), - (Vn.initialBalance = Rn.initialBalance ?? ''), - (Vn.sharesDst = Rn.sharesDst ?? ''), - (Vn.unbondingId = - Rn.unbondingId !== void 0 && Rn.unbondingId !== null - ? Jn.Long.fromValue(Rn.unbondingId) - : Jn.Long.UZERO), - (Vn.unbondingOnHoldRefCount = - Rn.unbondingOnHoldRefCount !== void 0 && Rn.unbondingOnHoldRefCount !== null - ? Jn.Long.fromValue(Rn.unbondingOnHoldRefCount) - : Jn.Long.ZERO), - Vn - ) - }, - } - function fn() { - return { delegatorAddress: '', validatorSrcAddress: '', validatorDstAddress: '', entries: [] } - } - e.Redelegation = { - encode(Rn, Vn = qn.Writer.create()) { - Rn.delegatorAddress !== '' && Vn.uint32(10).string(Rn.delegatorAddress), - Rn.validatorSrcAddress !== '' && Vn.uint32(18).string(Rn.validatorSrcAddress), - Rn.validatorDstAddress !== '' && Vn.uint32(26).string(Rn.validatorDstAddress) - for (const Wn of Rn.entries) e.RedelegationEntry.encode(Wn, Vn.uint32(34).fork()).ldelim() - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = fn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.delegatorAddress = Wn.string() - break - case 2: - Wt.validatorSrcAddress = Wn.string() - break - case 3: - Wt.validatorDstAddress = Wn.string() - break - case 4: - Wt.entries.push(e.RedelegationEntry.decode(Wn, Wn.uint32())) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - delegatorAddress: (0, Jn.isSet)(Rn.delegatorAddress) ? String(Rn.delegatorAddress) : '', - validatorSrcAddress: (0, Jn.isSet)(Rn.validatorSrcAddress) - ? String(Rn.validatorSrcAddress) - : '', - validatorDstAddress: (0, Jn.isSet)(Rn.validatorDstAddress) - ? String(Rn.validatorDstAddress) - : '', - entries: Array.isArray(Rn?.entries) - ? Rn.entries.map((Vn) => e.RedelegationEntry.fromJSON(Vn)) - : [], - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.delegatorAddress !== void 0 && (Vn.delegatorAddress = Rn.delegatorAddress), - Rn.validatorSrcAddress !== void 0 && (Vn.validatorSrcAddress = Rn.validatorSrcAddress), - Rn.validatorDstAddress !== void 0 && (Vn.validatorDstAddress = Rn.validatorDstAddress), - Rn.entries - ? (Vn.entries = Rn.entries.map((Wn) => (Wn ? e.RedelegationEntry.toJSON(Wn) : void 0))) - : (Vn.entries = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = fn() - return ( - (Vn.delegatorAddress = Rn.delegatorAddress ?? ''), - (Vn.validatorSrcAddress = Rn.validatorSrcAddress ?? ''), - (Vn.validatorDstAddress = Rn.validatorDstAddress ?? ''), - (Vn.entries = Rn.entries?.map((Wn) => e.RedelegationEntry.fromPartial(Wn)) || []), - Vn - ) - }, - } - function _n() { - return { - unbondingTime: void 0, - maxValidators: 0, - maxEntries: 0, - historicalEntries: 0, - bondDenom: '', - minCommissionRate: '', - } - } - e.Params = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.unbondingTime !== void 0 && - sn.Duration.encode(Rn.unbondingTime, Vn.uint32(10).fork()).ldelim(), - Rn.maxValidators !== 0 && Vn.uint32(16).uint32(Rn.maxValidators), - Rn.maxEntries !== 0 && Vn.uint32(24).uint32(Rn.maxEntries), - Rn.historicalEntries !== 0 && Vn.uint32(32).uint32(Rn.historicalEntries), - Rn.bondDenom !== '' && Vn.uint32(42).string(Rn.bondDenom), - Rn.minCommissionRate !== '' && Vn.uint32(50).string(Rn.minCommissionRate), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = _n() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.unbondingTime = sn.Duration.decode(Wn, Wn.uint32()) - break - case 2: - Wt.maxValidators = Wn.uint32() - break - case 3: - Wt.maxEntries = Wn.uint32() - break - case 4: - Wt.historicalEntries = Wn.uint32() - break - case 5: - Wt.bondDenom = Wn.string() - break - case 6: - Wt.minCommissionRate = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - unbondingTime: (0, Jn.isSet)(Rn.unbondingTime) - ? sn.Duration.fromJSON(Rn.unbondingTime) - : void 0, - maxValidators: (0, Jn.isSet)(Rn.maxValidators) ? Number(Rn.maxValidators) : 0, - maxEntries: (0, Jn.isSet)(Rn.maxEntries) ? Number(Rn.maxEntries) : 0, - historicalEntries: (0, Jn.isSet)(Rn.historicalEntries) ? Number(Rn.historicalEntries) : 0, - bondDenom: (0, Jn.isSet)(Rn.bondDenom) ? String(Rn.bondDenom) : '', - minCommissionRate: (0, Jn.isSet)(Rn.minCommissionRate) ? String(Rn.minCommissionRate) : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.unbondingTime !== void 0 && - (Vn.unbondingTime = Rn.unbondingTime ? sn.Duration.toJSON(Rn.unbondingTime) : void 0), - Rn.maxValidators !== void 0 && (Vn.maxValidators = Math.round(Rn.maxValidators)), - Rn.maxEntries !== void 0 && (Vn.maxEntries = Math.round(Rn.maxEntries)), - Rn.historicalEntries !== void 0 && - (Vn.historicalEntries = Math.round(Rn.historicalEntries)), - Rn.bondDenom !== void 0 && (Vn.bondDenom = Rn.bondDenom), - Rn.minCommissionRate !== void 0 && (Vn.minCommissionRate = Rn.minCommissionRate), - Vn - ) - }, - fromPartial(Rn) { - const Vn = _n() - return ( - (Vn.unbondingTime = - Rn.unbondingTime !== void 0 && Rn.unbondingTime !== null - ? sn.Duration.fromPartial(Rn.unbondingTime) - : void 0), - (Vn.maxValidators = Rn.maxValidators ?? 0), - (Vn.maxEntries = Rn.maxEntries ?? 0), - (Vn.historicalEntries = Rn.historicalEntries ?? 0), - (Vn.bondDenom = Rn.bondDenom ?? ''), - (Vn.minCommissionRate = Rn.minCommissionRate ?? ''), - Vn - ) - }, - } - function Ln() { - return { delegation: void 0, balance: void 0 } - } - e.DelegationResponse = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.delegation !== void 0 && - e.Delegation.encode(Rn.delegation, Vn.uint32(10).fork()).ldelim(), - Rn.balance !== void 0 && gn.Coin.encode(Rn.balance, Vn.uint32(18).fork()).ldelim(), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Ln() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.delegation = e.Delegation.decode(Wn, Wn.uint32()) - break - case 2: - Wt.balance = gn.Coin.decode(Wn, Wn.uint32()) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - delegation: (0, Jn.isSet)(Rn.delegation) ? e.Delegation.fromJSON(Rn.delegation) : void 0, - balance: (0, Jn.isSet)(Rn.balance) ? gn.Coin.fromJSON(Rn.balance) : void 0, - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.delegation !== void 0 && - (Vn.delegation = Rn.delegation ? e.Delegation.toJSON(Rn.delegation) : void 0), - Rn.balance !== void 0 && (Vn.balance = Rn.balance ? gn.Coin.toJSON(Rn.balance) : void 0), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Ln() - return ( - (Vn.delegation = - Rn.delegation !== void 0 && Rn.delegation !== null - ? e.Delegation.fromPartial(Rn.delegation) - : void 0), - (Vn.balance = - Rn.balance !== void 0 && Rn.balance !== null ? gn.Coin.fromPartial(Rn.balance) : void 0), - Vn - ) - }, - } - function zn() { - return { redelegationEntry: void 0, balance: '' } - } - e.RedelegationEntryResponse = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.redelegationEntry !== void 0 && - e.RedelegationEntry.encode(Rn.redelegationEntry, Vn.uint32(10).fork()).ldelim(), - Rn.balance !== '' && Vn.uint32(34).string(Rn.balance), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = zn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.redelegationEntry = e.RedelegationEntry.decode(Wn, Wn.uint32()) - break - case 4: - Wt.balance = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - redelegationEntry: (0, Jn.isSet)(Rn.redelegationEntry) - ? e.RedelegationEntry.fromJSON(Rn.redelegationEntry) - : void 0, - balance: (0, Jn.isSet)(Rn.balance) ? String(Rn.balance) : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.redelegationEntry !== void 0 && - (Vn.redelegationEntry = Rn.redelegationEntry - ? e.RedelegationEntry.toJSON(Rn.redelegationEntry) - : void 0), - Rn.balance !== void 0 && (Vn.balance = Rn.balance), - Vn - ) - }, - fromPartial(Rn) { - const Vn = zn() - return ( - (Vn.redelegationEntry = - Rn.redelegationEntry !== void 0 && Rn.redelegationEntry !== null - ? e.RedelegationEntry.fromPartial(Rn.redelegationEntry) - : void 0), - (Vn.balance = Rn.balance ?? ''), - Vn - ) - }, - } - function Fn() { - return { redelegation: void 0, entries: [] } - } - e.RedelegationResponse = { - encode(Rn, Vn = qn.Writer.create()) { - Rn.redelegation !== void 0 && - e.Redelegation.encode(Rn.redelegation, Vn.uint32(10).fork()).ldelim() - for (const Wn of Rn.entries) - e.RedelegationEntryResponse.encode(Wn, Vn.uint32(18).fork()).ldelim() - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Fn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.redelegation = e.Redelegation.decode(Wn, Wn.uint32()) - break - case 2: - Wt.entries.push(e.RedelegationEntryResponse.decode(Wn, Wn.uint32())) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - redelegation: (0, Jn.isSet)(Rn.redelegation) - ? e.Redelegation.fromJSON(Rn.redelegation) - : void 0, - entries: Array.isArray(Rn?.entries) - ? Rn.entries.map((Vn) => e.RedelegationEntryResponse.fromJSON(Vn)) - : [], - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.redelegation !== void 0 && - (Vn.redelegation = Rn.redelegation ? e.Redelegation.toJSON(Rn.redelegation) : void 0), - Rn.entries - ? (Vn.entries = Rn.entries.map((Wn) => - Wn ? e.RedelegationEntryResponse.toJSON(Wn) : void 0, - )) - : (Vn.entries = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Fn() - return ( - (Vn.redelegation = - Rn.redelegation !== void 0 && Rn.redelegation !== null - ? e.Redelegation.fromPartial(Rn.redelegation) - : void 0), - (Vn.entries = Rn.entries?.map((Wn) => e.RedelegationEntryResponse.fromPartial(Wn)) || []), - Vn - ) - }, - } - function An() { - return { notBondedTokens: '', bondedTokens: '' } - } - e.Pool = { - encode(Rn, Vn = qn.Writer.create()) { - return ( - Rn.notBondedTokens !== '' && Vn.uint32(10).string(Rn.notBondedTokens), - Rn.bondedTokens !== '' && Vn.uint32(18).string(Rn.bondedTokens), - Vn - ) - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = An() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.notBondedTokens = Wn.string() - break - case 2: - Wt.bondedTokens = Wn.string() - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - notBondedTokens: (0, Jn.isSet)(Rn.notBondedTokens) ? String(Rn.notBondedTokens) : '', - bondedTokens: (0, Jn.isSet)(Rn.bondedTokens) ? String(Rn.bondedTokens) : '', - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.notBondedTokens !== void 0 && (Vn.notBondedTokens = Rn.notBondedTokens), - Rn.bondedTokens !== void 0 && (Vn.bondedTokens = Rn.bondedTokens), - Vn - ) - }, - fromPartial(Rn) { - const Vn = An() - return ( - (Vn.notBondedTokens = Rn.notBondedTokens ?? ''), - (Vn.bondedTokens = Rn.bondedTokens ?? ''), - Vn - ) - }, - } - function Qn() { - return { updates: [] } - } - e.ValidatorUpdates = { - encode(Rn, Vn = qn.Writer.create()) { - for (const Wn of Rn.updates) In.ValidatorUpdate.encode(Wn, Vn.uint32(10).fork()).ldelim() - return Vn - }, - decode(Rn, Vn) { - const Wn = Rn instanceof qn.Reader ? Rn : new qn.Reader(Rn) - let ht = Vn === void 0 ? Wn.len : Wn.pos + Vn - const Wt = Qn() - for (; Wn.pos < ht; ) { - const zt = Wn.uint32() - switch (zt >>> 3) { - case 1: - Wt.updates.push(In.ValidatorUpdate.decode(Wn, Wn.uint32())) - break - default: - Wn.skipType(zt & 7) - break - } - } - return Wt - }, - fromJSON(Rn) { - return { - updates: Array.isArray(Rn?.updates) - ? Rn.updates.map((Vn) => In.ValidatorUpdate.fromJSON(Vn)) - : [], - } - }, - toJSON(Rn) { - const Vn = {} - return ( - Rn.updates - ? (Vn.updates = Rn.updates.map((Wn) => (Wn ? In.ValidatorUpdate.toJSON(Wn) : void 0))) - : (Vn.updates = []), - Vn - ) - }, - fromPartial(Rn) { - const Vn = Qn() - return (Vn.updates = Rn.updates?.map((Wn) => In.ValidatorUpdate.fromPartial(Wn)) || []), Vn - }, - } -})(staking) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn) - var un = Object.getOwnPropertyDescriptor(En, Mn) - ;(!un || ('get' in un ? !En.__esModule : un.writable || un.configurable)) && - (un = { - enumerable: !0, - get: function () { - return En[Mn] - }, - }), - Object.defineProperty(tn, Hn, un) - } - : function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn), (tn[Hn] = En[Mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (tn, En) { - Object.defineProperty(tn, 'default', { enumerable: !0, value: En }) - } - : function (tn, En) { - tn.default = En - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (tn) { - if (tn && tn.__esModule) return tn - var En = {} - if (tn != null) - for (var Mn in tn) - Mn !== 'default' && Object.prototype.hasOwnProperty.call(tn, Mn) && o(En, tn, Mn) - return _(En, tn), En - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgUpdateParamsResponse = - e.MsgUpdateParams = - e.MsgCancelUnbondingDelegationResponse = - e.MsgCancelUnbondingDelegation = - e.MsgUndelegateResponse = - e.MsgUndelegate = - e.MsgBeginRedelegateResponse = - e.MsgBeginRedelegate = - e.MsgDelegateResponse = - e.MsgDelegate = - e.MsgEditValidatorResponse = - e.MsgEditValidator = - e.MsgCreateValidatorResponse = - e.MsgCreateValidator = - e.protobufPackage = - void 0) - const $ = staking, - en = any, - nn = coin$1, - sn = timestamp, - gn = helpers, - In = b(minimalExports) - e.protobufPackage = 'cosmos.staking.v1beta1' - function Jn() { - return { - description: void 0, - commission: void 0, - minSelfDelegation: '', - delegatorAddress: '', - validatorAddress: '', - pubkey: void 0, - value: void 0, - } - } - e.MsgCreateValidator = { - encode(tn, En = In.Writer.create()) { - return ( - tn.description !== void 0 && - $.Description.encode(tn.description, En.uint32(10).fork()).ldelim(), - tn.commission !== void 0 && - $.CommissionRates.encode(tn.commission, En.uint32(18).fork()).ldelim(), - tn.minSelfDelegation !== '' && En.uint32(26).string(tn.minSelfDelegation), - tn.delegatorAddress !== '' && En.uint32(34).string(tn.delegatorAddress), - tn.validatorAddress !== '' && En.uint32(42).string(tn.validatorAddress), - tn.pubkey !== void 0 && en.Any.encode(tn.pubkey, En.uint32(50).fork()).ldelim(), - tn.value !== void 0 && nn.Coin.encode(tn.value, En.uint32(58).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Jn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.description = $.Description.decode(Mn, Mn.uint32()) - break - case 2: - un.commission = $.CommissionRates.decode(Mn, Mn.uint32()) - break - case 3: - un.minSelfDelegation = Mn.string() - break - case 4: - un.delegatorAddress = Mn.string() - break - case 5: - un.validatorAddress = Mn.string() - break - case 6: - un.pubkey = en.Any.decode(Mn, Mn.uint32()) - break - case 7: - un.value = nn.Coin.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - description: (0, gn.isSet)(tn.description) - ? $.Description.fromJSON(tn.description) - : void 0, - commission: (0, gn.isSet)(tn.commission) - ? $.CommissionRates.fromJSON(tn.commission) - : void 0, - minSelfDelegation: (0, gn.isSet)(tn.minSelfDelegation) ? String(tn.minSelfDelegation) : '', - delegatorAddress: (0, gn.isSet)(tn.delegatorAddress) ? String(tn.delegatorAddress) : '', - validatorAddress: (0, gn.isSet)(tn.validatorAddress) ? String(tn.validatorAddress) : '', - pubkey: (0, gn.isSet)(tn.pubkey) ? en.Any.fromJSON(tn.pubkey) : void 0, - value: (0, gn.isSet)(tn.value) ? nn.Coin.fromJSON(tn.value) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.description !== void 0 && - (En.description = tn.description ? $.Description.toJSON(tn.description) : void 0), - tn.commission !== void 0 && - (En.commission = tn.commission ? $.CommissionRates.toJSON(tn.commission) : void 0), - tn.minSelfDelegation !== void 0 && (En.minSelfDelegation = tn.minSelfDelegation), - tn.delegatorAddress !== void 0 && (En.delegatorAddress = tn.delegatorAddress), - tn.validatorAddress !== void 0 && (En.validatorAddress = tn.validatorAddress), - tn.pubkey !== void 0 && (En.pubkey = tn.pubkey ? en.Any.toJSON(tn.pubkey) : void 0), - tn.value !== void 0 && (En.value = tn.value ? nn.Coin.toJSON(tn.value) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Jn() - return ( - (En.description = - tn.description !== void 0 && tn.description !== null - ? $.Description.fromPartial(tn.description) - : void 0), - (En.commission = - tn.commission !== void 0 && tn.commission !== null - ? $.CommissionRates.fromPartial(tn.commission) - : void 0), - (En.minSelfDelegation = tn.minSelfDelegation ?? ''), - (En.delegatorAddress = tn.delegatorAddress ?? ''), - (En.validatorAddress = tn.validatorAddress ?? ''), - (En.pubkey = - tn.pubkey !== void 0 && tn.pubkey !== null ? en.Any.fromPartial(tn.pubkey) : void 0), - (En.value = - tn.value !== void 0 && tn.value !== null ? nn.Coin.fromPartial(tn.value) : void 0), - En - ) - }, - } - function qn() { - return {} - } - e.MsgCreateValidatorResponse = { - encode(tn, En = In.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = qn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return qn() - }, - } - function Kn() { - return { description: void 0, validatorAddress: '', commissionRate: '', minSelfDelegation: '' } - } - e.MsgEditValidator = { - encode(tn, En = In.Writer.create()) { - return ( - tn.description !== void 0 && - $.Description.encode(tn.description, En.uint32(10).fork()).ldelim(), - tn.validatorAddress !== '' && En.uint32(18).string(tn.validatorAddress), - tn.commissionRate !== '' && En.uint32(26).string(tn.commissionRate), - tn.minSelfDelegation !== '' && En.uint32(34).string(tn.minSelfDelegation), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.description = $.Description.decode(Mn, Mn.uint32()) - break - case 2: - un.validatorAddress = Mn.string() - break - case 3: - un.commissionRate = Mn.string() - break - case 4: - un.minSelfDelegation = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - description: (0, gn.isSet)(tn.description) - ? $.Description.fromJSON(tn.description) - : void 0, - validatorAddress: (0, gn.isSet)(tn.validatorAddress) ? String(tn.validatorAddress) : '', - commissionRate: (0, gn.isSet)(tn.commissionRate) ? String(tn.commissionRate) : '', - minSelfDelegation: (0, gn.isSet)(tn.minSelfDelegation) ? String(tn.minSelfDelegation) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.description !== void 0 && - (En.description = tn.description ? $.Description.toJSON(tn.description) : void 0), - tn.validatorAddress !== void 0 && (En.validatorAddress = tn.validatorAddress), - tn.commissionRate !== void 0 && (En.commissionRate = tn.commissionRate), - tn.minSelfDelegation !== void 0 && (En.minSelfDelegation = tn.minSelfDelegation), - En - ) - }, - fromPartial(tn) { - const En = Kn() - return ( - (En.description = - tn.description !== void 0 && tn.description !== null - ? $.Description.fromPartial(tn.description) - : void 0), - (En.validatorAddress = tn.validatorAddress ?? ''), - (En.commissionRate = tn.commissionRate ?? ''), - (En.minSelfDelegation = tn.minSelfDelegation ?? ''), - En - ) - }, - } - function an() { - return {} - } - e.MsgEditValidatorResponse = { - encode(tn, En = In.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = an() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return an() - }, - } - function xn() { - return { delegatorAddress: '', validatorAddress: '', amount: void 0 } - } - e.MsgDelegate = { - encode(tn, En = In.Writer.create()) { - return ( - tn.delegatorAddress !== '' && En.uint32(10).string(tn.delegatorAddress), - tn.validatorAddress !== '' && En.uint32(18).string(tn.validatorAddress), - tn.amount !== void 0 && nn.Coin.encode(tn.amount, En.uint32(26).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = xn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.delegatorAddress = Mn.string() - break - case 2: - un.validatorAddress = Mn.string() - break - case 3: - un.amount = nn.Coin.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - delegatorAddress: (0, gn.isSet)(tn.delegatorAddress) ? String(tn.delegatorAddress) : '', - validatorAddress: (0, gn.isSet)(tn.validatorAddress) ? String(tn.validatorAddress) : '', - amount: (0, gn.isSet)(tn.amount) ? nn.Coin.fromJSON(tn.amount) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.delegatorAddress !== void 0 && (En.delegatorAddress = tn.delegatorAddress), - tn.validatorAddress !== void 0 && (En.validatorAddress = tn.validatorAddress), - tn.amount !== void 0 && (En.amount = tn.amount ? nn.Coin.toJSON(tn.amount) : void 0), - En - ) - }, - fromPartial(tn) { - const En = xn() - return ( - (En.delegatorAddress = tn.delegatorAddress ?? ''), - (En.validatorAddress = tn.validatorAddress ?? ''), - (En.amount = - tn.amount !== void 0 && tn.amount !== null ? nn.Coin.fromPartial(tn.amount) : void 0), - En - ) - }, - } - function mn() { - return {} - } - e.MsgDelegateResponse = { - encode(tn, En = In.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = mn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return mn() - }, - } - function Bn() { - return { - delegatorAddress: '', - validatorSrcAddress: '', - validatorDstAddress: '', - amount: void 0, - } - } - e.MsgBeginRedelegate = { - encode(tn, En = In.Writer.create()) { - return ( - tn.delegatorAddress !== '' && En.uint32(10).string(tn.delegatorAddress), - tn.validatorSrcAddress !== '' && En.uint32(18).string(tn.validatorSrcAddress), - tn.validatorDstAddress !== '' && En.uint32(26).string(tn.validatorDstAddress), - tn.amount !== void 0 && nn.Coin.encode(tn.amount, En.uint32(34).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Bn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.delegatorAddress = Mn.string() - break - case 2: - un.validatorSrcAddress = Mn.string() - break - case 3: - un.validatorDstAddress = Mn.string() - break - case 4: - un.amount = nn.Coin.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - delegatorAddress: (0, gn.isSet)(tn.delegatorAddress) ? String(tn.delegatorAddress) : '', - validatorSrcAddress: (0, gn.isSet)(tn.validatorSrcAddress) - ? String(tn.validatorSrcAddress) - : '', - validatorDstAddress: (0, gn.isSet)(tn.validatorDstAddress) - ? String(tn.validatorDstAddress) - : '', - amount: (0, gn.isSet)(tn.amount) ? nn.Coin.fromJSON(tn.amount) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.delegatorAddress !== void 0 && (En.delegatorAddress = tn.delegatorAddress), - tn.validatorSrcAddress !== void 0 && (En.validatorSrcAddress = tn.validatorSrcAddress), - tn.validatorDstAddress !== void 0 && (En.validatorDstAddress = tn.validatorDstAddress), - tn.amount !== void 0 && (En.amount = tn.amount ? nn.Coin.toJSON(tn.amount) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Bn() - return ( - (En.delegatorAddress = tn.delegatorAddress ?? ''), - (En.validatorSrcAddress = tn.validatorSrcAddress ?? ''), - (En.validatorDstAddress = tn.validatorDstAddress ?? ''), - (En.amount = - tn.amount !== void 0 && tn.amount !== null ? nn.Coin.fromPartial(tn.amount) : void 0), - En - ) - }, - } - function kn() { - return { completionTime: void 0 } - } - e.MsgBeginRedelegateResponse = { - encode(tn, En = In.Writer.create()) { - return ( - tn.completionTime !== void 0 && - sn.Timestamp.encode(tn.completionTime, En.uint32(10).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.completionTime = sn.Timestamp.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - completionTime: (0, gn.isSet)(tn.completionTime) - ? (0, gn.fromJsonTimestamp)(tn.completionTime) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.completionTime !== void 0 && - (En.completionTime = (0, gn.fromTimestamp)(tn.completionTime).toISOString()), - En - ) - }, - fromPartial(tn) { - const En = kn() - return ( - (En.completionTime = - tn.completionTime !== void 0 && tn.completionTime !== null - ? sn.Timestamp.fromPartial(tn.completionTime) - : void 0), - En - ) - }, - } - function ln() { - return { delegatorAddress: '', validatorAddress: '', amount: void 0 } - } - e.MsgUndelegate = { - encode(tn, En = In.Writer.create()) { - return ( - tn.delegatorAddress !== '' && En.uint32(10).string(tn.delegatorAddress), - tn.validatorAddress !== '' && En.uint32(18).string(tn.validatorAddress), - tn.amount !== void 0 && nn.Coin.encode(tn.amount, En.uint32(26).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = ln() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.delegatorAddress = Mn.string() - break - case 2: - un.validatorAddress = Mn.string() - break - case 3: - un.amount = nn.Coin.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - delegatorAddress: (0, gn.isSet)(tn.delegatorAddress) ? String(tn.delegatorAddress) : '', - validatorAddress: (0, gn.isSet)(tn.validatorAddress) ? String(tn.validatorAddress) : '', - amount: (0, gn.isSet)(tn.amount) ? nn.Coin.fromJSON(tn.amount) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.delegatorAddress !== void 0 && (En.delegatorAddress = tn.delegatorAddress), - tn.validatorAddress !== void 0 && (En.validatorAddress = tn.validatorAddress), - tn.amount !== void 0 && (En.amount = tn.amount ? nn.Coin.toJSON(tn.amount) : void 0), - En - ) - }, - fromPartial(tn) { - const En = ln() - return ( - (En.delegatorAddress = tn.delegatorAddress ?? ''), - (En.validatorAddress = tn.validatorAddress ?? ''), - (En.amount = - tn.amount !== void 0 && tn.amount !== null ? nn.Coin.fromPartial(tn.amount) : void 0), - En - ) - }, - } - function yn() { - return { completionTime: void 0 } - } - e.MsgUndelegateResponse = { - encode(tn, En = In.Writer.create()) { - return ( - tn.completionTime !== void 0 && - sn.Timestamp.encode(tn.completionTime, En.uint32(10).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = yn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.completionTime = sn.Timestamp.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - completionTime: (0, gn.isSet)(tn.completionTime) - ? (0, gn.fromJsonTimestamp)(tn.completionTime) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.completionTime !== void 0 && - (En.completionTime = (0, gn.fromTimestamp)(tn.completionTime).toISOString()), - En - ) - }, - fromPartial(tn) { - const En = yn() - return ( - (En.completionTime = - tn.completionTime !== void 0 && tn.completionTime !== null - ? sn.Timestamp.fromPartial(tn.completionTime) - : void 0), - En - ) - }, - } - function Cn() { - return { - delegatorAddress: '', - validatorAddress: '', - amount: void 0, - creationHeight: gn.Long.ZERO, - } - } - e.MsgCancelUnbondingDelegation = { - encode(tn, En = In.Writer.create()) { - return ( - tn.delegatorAddress !== '' && En.uint32(10).string(tn.delegatorAddress), - tn.validatorAddress !== '' && En.uint32(18).string(tn.validatorAddress), - tn.amount !== void 0 && nn.Coin.encode(tn.amount, En.uint32(26).fork()).ldelim(), - tn.creationHeight.isZero() || En.uint32(32).int64(tn.creationHeight), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Cn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.delegatorAddress = Mn.string() - break - case 2: - un.validatorAddress = Mn.string() - break - case 3: - un.amount = nn.Coin.decode(Mn, Mn.uint32()) - break - case 4: - un.creationHeight = Mn.int64() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - delegatorAddress: (0, gn.isSet)(tn.delegatorAddress) ? String(tn.delegatorAddress) : '', - validatorAddress: (0, gn.isSet)(tn.validatorAddress) ? String(tn.validatorAddress) : '', - amount: (0, gn.isSet)(tn.amount) ? nn.Coin.fromJSON(tn.amount) : void 0, - creationHeight: (0, gn.isSet)(tn.creationHeight) - ? gn.Long.fromValue(tn.creationHeight) - : gn.Long.ZERO, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.delegatorAddress !== void 0 && (En.delegatorAddress = tn.delegatorAddress), - tn.validatorAddress !== void 0 && (En.validatorAddress = tn.validatorAddress), - tn.amount !== void 0 && (En.amount = tn.amount ? nn.Coin.toJSON(tn.amount) : void 0), - tn.creationHeight !== void 0 && - (En.creationHeight = (tn.creationHeight || gn.Long.ZERO).toString()), - En - ) - }, - fromPartial(tn) { - const En = Cn() - return ( - (En.delegatorAddress = tn.delegatorAddress ?? ''), - (En.validatorAddress = tn.validatorAddress ?? ''), - (En.amount = - tn.amount !== void 0 && tn.amount !== null ? nn.Coin.fromPartial(tn.amount) : void 0), - (En.creationHeight = - tn.creationHeight !== void 0 && tn.creationHeight !== null - ? gn.Long.fromValue(tn.creationHeight) - : gn.Long.ZERO), - En - ) - }, - } - function Tn() { - return {} - } - e.MsgCancelUnbondingDelegationResponse = { - encode(tn, En = In.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Tn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return Tn() - }, - } - function Gn() { - return { authority: '', params: void 0 } - } - e.MsgUpdateParams = { - encode(tn, En = In.Writer.create()) { - return ( - tn.authority !== '' && En.uint32(10).string(tn.authority), - tn.params !== void 0 && $.Params.encode(tn.params, En.uint32(18).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.authority = Mn.string() - break - case 2: - un.params = $.Params.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - authority: (0, gn.isSet)(tn.authority) ? String(tn.authority) : '', - params: (0, gn.isSet)(tn.params) ? $.Params.fromJSON(tn.params) : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.authority !== void 0 && (En.authority = tn.authority), - tn.params !== void 0 && (En.params = tn.params ? $.Params.toJSON(tn.params) : void 0), - En - ) - }, - fromPartial(tn) { - const En = Gn() - return ( - (En.authority = tn.authority ?? ''), - (En.params = - tn.params !== void 0 && tn.params !== null ? $.Params.fromPartial(tn.params) : void 0), - En - ) - }, - } - function Sn() { - return {} - } - e.MsgUpdateParamsResponse = { - encode(tn, En = In.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof In.Reader ? tn : new In.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Sn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return Sn() - }, - } - class Zn { - constructor(En) { - ;(this.rpc = En), - (this.CreateValidator = this.CreateValidator.bind(this)), - (this.EditValidator = this.EditValidator.bind(this)), - (this.Delegate = this.Delegate.bind(this)), - (this.BeginRedelegate = this.BeginRedelegate.bind(this)), - (this.Undelegate = this.Undelegate.bind(this)), - (this.CancelUnbondingDelegation = this.CancelUnbondingDelegation.bind(this)), - (this.UpdateParams = this.UpdateParams.bind(this)) - } - CreateValidator(En) { - const Mn = e.MsgCreateValidator.encode(En).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Msg', 'CreateValidator', Mn) - .then((un) => e.MsgCreateValidatorResponse.decode(new In.Reader(un))) - } - EditValidator(En) { - const Mn = e.MsgEditValidator.encode(En).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Msg', 'EditValidator', Mn) - .then((un) => e.MsgEditValidatorResponse.decode(new In.Reader(un))) - } - Delegate(En) { - const Mn = e.MsgDelegate.encode(En).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Msg', 'Delegate', Mn) - .then((un) => e.MsgDelegateResponse.decode(new In.Reader(un))) - } - BeginRedelegate(En) { - const Mn = e.MsgBeginRedelegate.encode(En).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Msg', 'BeginRedelegate', Mn) - .then((un) => e.MsgBeginRedelegateResponse.decode(new In.Reader(un))) - } - Undelegate(En) { - const Mn = e.MsgUndelegate.encode(En).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Msg', 'Undelegate', Mn) - .then((un) => e.MsgUndelegateResponse.decode(new In.Reader(un))) - } - CancelUnbondingDelegation(En) { - const Mn = e.MsgCancelUnbondingDelegation.encode(En).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Msg', 'CancelUnbondingDelegation', Mn) - .then((un) => e.MsgCancelUnbondingDelegationResponse.decode(new In.Reader(un))) - } - UpdateParams(En) { - const Mn = e.MsgUpdateParams.encode(En).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Msg', 'UpdateParams', Mn) - .then((un) => e.MsgUpdateParamsResponse.decode(new In.Reader(un))) - } - } - e.MsgClientImpl = Zn -})(tx$2) -Object.defineProperty(messages$2, '__esModule', { value: !0 }) -messages$2.isMsgUndelegateEncodeObject = - messages$2.isMsgEditValidatorEncodeObject = - messages$2.isMsgDelegateEncodeObject = - messages$2.isMsgCreateValidatorEncodeObject = - messages$2.isMsgBeginRedelegateEncodeObject = - messages$2.stakingTypes = - void 0 -const tx_1$4 = tx$2 -messages$2.stakingTypes = [ - ['/cosmos.staking.v1beta1.MsgBeginRedelegate', tx_1$4.MsgBeginRedelegate], - ['/cosmos.staking.v1beta1.MsgCreateValidator', tx_1$4.MsgCreateValidator], - ['/cosmos.staking.v1beta1.MsgDelegate', tx_1$4.MsgDelegate], - ['/cosmos.staking.v1beta1.MsgEditValidator', tx_1$4.MsgEditValidator], - ['/cosmos.staking.v1beta1.MsgUndelegate', tx_1$4.MsgUndelegate], -] -function isMsgBeginRedelegateEncodeObject(e) { - return e.typeUrl === '/cosmos.staking.v1beta1.MsgBeginRedelegate' -} -messages$2.isMsgBeginRedelegateEncodeObject = isMsgBeginRedelegateEncodeObject -function isMsgCreateValidatorEncodeObject(e) { - return e.typeUrl === '/cosmos.staking.v1beta1.MsgCreateValidator' -} -messages$2.isMsgCreateValidatorEncodeObject = isMsgCreateValidatorEncodeObject -function isMsgDelegateEncodeObject(e) { - return e.typeUrl === '/cosmos.staking.v1beta1.MsgDelegate' -} -messages$2.isMsgDelegateEncodeObject = isMsgDelegateEncodeObject -function isMsgEditValidatorEncodeObject(e) { - return e.typeUrl === '/cosmos.staking.v1beta1.MsgEditValidator' -} -messages$2.isMsgEditValidatorEncodeObject = isMsgEditValidatorEncodeObject -function isMsgUndelegateEncodeObject(e) { - return e.typeUrl === '/cosmos.staking.v1beta1.MsgUndelegate' -} -messages$2.isMsgUndelegateEncodeObject = isMsgUndelegateEncodeObject -var queries$2 = {}, - query$1 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (An, Qn, Rn, Vn) { - Vn === void 0 && (Vn = Rn) - var Wn = Object.getOwnPropertyDescriptor(Qn, Rn) - ;(!Wn || ('get' in Wn ? !Qn.__esModule : Wn.writable || Wn.configurable)) && - (Wn = { - enumerable: !0, - get: function () { - return Qn[Rn] - }, - }), - Object.defineProperty(An, Vn, Wn) - } - : function (An, Qn, Rn, Vn) { - Vn === void 0 && (Vn = Rn), (An[Vn] = Qn[Rn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (An, Qn) { - Object.defineProperty(An, 'default', { enumerable: !0, value: Qn }) - } - : function (An, Qn) { - An.default = Qn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (An) { - if (An && An.__esModule) return An - var Qn = {} - if (An != null) - for (var Rn in An) - Rn !== 'default' && Object.prototype.hasOwnProperty.call(An, Rn) && o(Qn, An, Rn) - return _(Qn, An), Qn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.QueryPoolResponse = - e.QueryPoolRequest = - e.QueryHistoricalInfoResponse = - e.QueryHistoricalInfoRequest = - e.QueryDelegatorValidatorResponse = - e.QueryDelegatorValidatorRequest = - e.QueryDelegatorValidatorsResponse = - e.QueryDelegatorValidatorsRequest = - e.QueryRedelegationsResponse = - e.QueryRedelegationsRequest = - e.QueryDelegatorUnbondingDelegationsResponse = - e.QueryDelegatorUnbondingDelegationsRequest = - e.QueryDelegatorDelegationsResponse = - e.QueryDelegatorDelegationsRequest = - e.QueryUnbondingDelegationResponse = - e.QueryUnbondingDelegationRequest = - e.QueryDelegationResponse = - e.QueryDelegationRequest = - e.QueryValidatorUnbondingDelegationsResponse = - e.QueryValidatorUnbondingDelegationsRequest = - e.QueryValidatorDelegationsResponse = - e.QueryValidatorDelegationsRequest = - e.QueryValidatorResponse = - e.QueryValidatorRequest = - e.QueryValidatorsResponse = - e.QueryValidatorsRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = staking, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.staking.v1beta1' - function gn() { - return { status: '', pagination: void 0 } - } - e.QueryValidatorsRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.status !== '' && Qn.uint32(10).string(An.status), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = gn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.status = Rn.string() - break - case 2: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - status: (0, nn.isSet)(An.status) ? String(An.status) : '', - pagination: (0, nn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.status !== void 0 && (Qn.status = An.status), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = gn() - return ( - (Qn.status = An.status ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function In() { - return { validators: [], pagination: void 0 } - } - e.QueryValidatorsResponse = { - encode(An, Qn = sn.Writer.create()) { - for (const Rn of An.validators) en.Validator.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = In() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.validators.push(en.Validator.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - validators: Array.isArray(An?.validators) - ? An.validators.map((Qn) => en.Validator.fromJSON(Qn)) - : [], - pagination: (0, nn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.validators - ? (Qn.validators = An.validators.map((Rn) => (Rn ? en.Validator.toJSON(Rn) : void 0))) - : (Qn.validators = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = In() - return ( - (Qn.validators = An.validators?.map((Rn) => en.Validator.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Jn() { - return { validatorAddr: '' } - } - e.QueryValidatorRequest = { - encode(An, Qn = sn.Writer.create()) { - return An.validatorAddr !== '' && Qn.uint32(10).string(An.validatorAddr), Qn - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Jn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.validatorAddr = Rn.string() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { validatorAddr: (0, nn.isSet)(An.validatorAddr) ? String(An.validatorAddr) : '' } - }, - toJSON(An) { - const Qn = {} - return An.validatorAddr !== void 0 && (Qn.validatorAddr = An.validatorAddr), Qn - }, - fromPartial(An) { - const Qn = Jn() - return (Qn.validatorAddr = An.validatorAddr ?? ''), Qn - }, - } - function qn() { - return { validator: void 0 } - } - e.QueryValidatorResponse = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.validator !== void 0 && en.Validator.encode(An.validator, Qn.uint32(10).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = qn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.validator = en.Validator.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - validator: (0, nn.isSet)(An.validator) ? en.Validator.fromJSON(An.validator) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.validator !== void 0 && - (Qn.validator = An.validator ? en.Validator.toJSON(An.validator) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = qn() - return ( - (Qn.validator = - An.validator !== void 0 && An.validator !== null - ? en.Validator.fromPartial(An.validator) - : void 0), - Qn - ) - }, - } - function Kn() { - return { validatorAddr: '', pagination: void 0 } - } - e.QueryValidatorDelegationsRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.validatorAddr !== '' && Qn.uint32(10).string(An.validatorAddr), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Kn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.validatorAddr = Rn.string() - break - case 2: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - validatorAddr: (0, nn.isSet)(An.validatorAddr) ? String(An.validatorAddr) : '', - pagination: (0, nn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.validatorAddr !== void 0 && (Qn.validatorAddr = An.validatorAddr), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Kn() - return ( - (Qn.validatorAddr = An.validatorAddr ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function an() { - return { delegationResponses: [], pagination: void 0 } - } - e.QueryValidatorDelegationsResponse = { - encode(An, Qn = sn.Writer.create()) { - for (const Rn of An.delegationResponses) - en.DelegationResponse.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = an() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegationResponses.push(en.DelegationResponse.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegationResponses: Array.isArray(An?.delegationResponses) - ? An.delegationResponses.map((Qn) => en.DelegationResponse.fromJSON(Qn)) - : [], - pagination: (0, nn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegationResponses - ? (Qn.delegationResponses = An.delegationResponses.map((Rn) => - Rn ? en.DelegationResponse.toJSON(Rn) : void 0, - )) - : (Qn.delegationResponses = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = an() - return ( - (Qn.delegationResponses = - An.delegationResponses?.map((Rn) => en.DelegationResponse.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function xn() { - return { validatorAddr: '', pagination: void 0 } - } - e.QueryValidatorUnbondingDelegationsRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.validatorAddr !== '' && Qn.uint32(10).string(An.validatorAddr), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = xn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.validatorAddr = Rn.string() - break - case 2: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - validatorAddr: (0, nn.isSet)(An.validatorAddr) ? String(An.validatorAddr) : '', - pagination: (0, nn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.validatorAddr !== void 0 && (Qn.validatorAddr = An.validatorAddr), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = xn() - return ( - (Qn.validatorAddr = An.validatorAddr ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function mn() { - return { unbondingResponses: [], pagination: void 0 } - } - e.QueryValidatorUnbondingDelegationsResponse = { - encode(An, Qn = sn.Writer.create()) { - for (const Rn of An.unbondingResponses) - en.UnbondingDelegation.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = mn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.unbondingResponses.push(en.UnbondingDelegation.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - unbondingResponses: Array.isArray(An?.unbondingResponses) - ? An.unbondingResponses.map((Qn) => en.UnbondingDelegation.fromJSON(Qn)) - : [], - pagination: (0, nn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.unbondingResponses - ? (Qn.unbondingResponses = An.unbondingResponses.map((Rn) => - Rn ? en.UnbondingDelegation.toJSON(Rn) : void 0, - )) - : (Qn.unbondingResponses = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = mn() - return ( - (Qn.unbondingResponses = - An.unbondingResponses?.map((Rn) => en.UnbondingDelegation.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Bn() { - return { delegatorAddr: '', validatorAddr: '' } - } - e.QueryDelegationRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegatorAddr !== '' && Qn.uint32(10).string(An.delegatorAddr), - An.validatorAddr !== '' && Qn.uint32(18).string(An.validatorAddr), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Bn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegatorAddr = Rn.string() - break - case 2: - Wn.validatorAddr = Rn.string() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegatorAddr: (0, nn.isSet)(An.delegatorAddr) ? String(An.delegatorAddr) : '', - validatorAddr: (0, nn.isSet)(An.validatorAddr) ? String(An.validatorAddr) : '', - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegatorAddr !== void 0 && (Qn.delegatorAddr = An.delegatorAddr), - An.validatorAddr !== void 0 && (Qn.validatorAddr = An.validatorAddr), - Qn - ) - }, - fromPartial(An) { - const Qn = Bn() - return ( - (Qn.delegatorAddr = An.delegatorAddr ?? ''), (Qn.validatorAddr = An.validatorAddr ?? ''), Qn - ) - }, - } - function kn() { - return { delegationResponse: void 0 } - } - e.QueryDelegationResponse = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegationResponse !== void 0 && - en.DelegationResponse.encode(An.delegationResponse, Qn.uint32(10).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = kn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegationResponse = en.DelegationResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegationResponse: (0, nn.isSet)(An.delegationResponse) - ? en.DelegationResponse.fromJSON(An.delegationResponse) - : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegationResponse !== void 0 && - (Qn.delegationResponse = An.delegationResponse - ? en.DelegationResponse.toJSON(An.delegationResponse) - : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = kn() - return ( - (Qn.delegationResponse = - An.delegationResponse !== void 0 && An.delegationResponse !== null - ? en.DelegationResponse.fromPartial(An.delegationResponse) - : void 0), - Qn - ) - }, - } - function ln() { - return { delegatorAddr: '', validatorAddr: '' } - } - e.QueryUnbondingDelegationRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegatorAddr !== '' && Qn.uint32(10).string(An.delegatorAddr), - An.validatorAddr !== '' && Qn.uint32(18).string(An.validatorAddr), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = ln() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegatorAddr = Rn.string() - break - case 2: - Wn.validatorAddr = Rn.string() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegatorAddr: (0, nn.isSet)(An.delegatorAddr) ? String(An.delegatorAddr) : '', - validatorAddr: (0, nn.isSet)(An.validatorAddr) ? String(An.validatorAddr) : '', - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegatorAddr !== void 0 && (Qn.delegatorAddr = An.delegatorAddr), - An.validatorAddr !== void 0 && (Qn.validatorAddr = An.validatorAddr), - Qn - ) - }, - fromPartial(An) { - const Qn = ln() - return ( - (Qn.delegatorAddr = An.delegatorAddr ?? ''), (Qn.validatorAddr = An.validatorAddr ?? ''), Qn - ) - }, - } - function yn() { - return { unbond: void 0 } - } - e.QueryUnbondingDelegationResponse = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.unbond !== void 0 && - en.UnbondingDelegation.encode(An.unbond, Qn.uint32(10).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = yn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.unbond = en.UnbondingDelegation.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - unbond: (0, nn.isSet)(An.unbond) ? en.UnbondingDelegation.fromJSON(An.unbond) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.unbond !== void 0 && - (Qn.unbond = An.unbond ? en.UnbondingDelegation.toJSON(An.unbond) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = yn() - return ( - (Qn.unbond = - An.unbond !== void 0 && An.unbond !== null - ? en.UnbondingDelegation.fromPartial(An.unbond) - : void 0), - Qn - ) - }, - } - function Cn() { - return { delegatorAddr: '', pagination: void 0 } - } - e.QueryDelegatorDelegationsRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegatorAddr !== '' && Qn.uint32(10).string(An.delegatorAddr), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Cn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegatorAddr = Rn.string() - break - case 2: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegatorAddr: (0, nn.isSet)(An.delegatorAddr) ? String(An.delegatorAddr) : '', - pagination: (0, nn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegatorAddr !== void 0 && (Qn.delegatorAddr = An.delegatorAddr), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Cn() - return ( - (Qn.delegatorAddr = An.delegatorAddr ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Tn() { - return { delegationResponses: [], pagination: void 0 } - } - e.QueryDelegatorDelegationsResponse = { - encode(An, Qn = sn.Writer.create()) { - for (const Rn of An.delegationResponses) - en.DelegationResponse.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Tn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegationResponses.push(en.DelegationResponse.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegationResponses: Array.isArray(An?.delegationResponses) - ? An.delegationResponses.map((Qn) => en.DelegationResponse.fromJSON(Qn)) - : [], - pagination: (0, nn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegationResponses - ? (Qn.delegationResponses = An.delegationResponses.map((Rn) => - Rn ? en.DelegationResponse.toJSON(Rn) : void 0, - )) - : (Qn.delegationResponses = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Tn() - return ( - (Qn.delegationResponses = - An.delegationResponses?.map((Rn) => en.DelegationResponse.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Gn() { - return { delegatorAddr: '', pagination: void 0 } - } - e.QueryDelegatorUnbondingDelegationsRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegatorAddr !== '' && Qn.uint32(10).string(An.delegatorAddr), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Gn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegatorAddr = Rn.string() - break - case 2: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegatorAddr: (0, nn.isSet)(An.delegatorAddr) ? String(An.delegatorAddr) : '', - pagination: (0, nn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegatorAddr !== void 0 && (Qn.delegatorAddr = An.delegatorAddr), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Gn() - return ( - (Qn.delegatorAddr = An.delegatorAddr ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Sn() { - return { unbondingResponses: [], pagination: void 0 } - } - e.QueryDelegatorUnbondingDelegationsResponse = { - encode(An, Qn = sn.Writer.create()) { - for (const Rn of An.unbondingResponses) - en.UnbondingDelegation.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Sn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.unbondingResponses.push(en.UnbondingDelegation.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - unbondingResponses: Array.isArray(An?.unbondingResponses) - ? An.unbondingResponses.map((Qn) => en.UnbondingDelegation.fromJSON(Qn)) - : [], - pagination: (0, nn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.unbondingResponses - ? (Qn.unbondingResponses = An.unbondingResponses.map((Rn) => - Rn ? en.UnbondingDelegation.toJSON(Rn) : void 0, - )) - : (Qn.unbondingResponses = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Sn() - return ( - (Qn.unbondingResponses = - An.unbondingResponses?.map((Rn) => en.UnbondingDelegation.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Zn() { - return { delegatorAddr: '', srcValidatorAddr: '', dstValidatorAddr: '', pagination: void 0 } - } - e.QueryRedelegationsRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegatorAddr !== '' && Qn.uint32(10).string(An.delegatorAddr), - An.srcValidatorAddr !== '' && Qn.uint32(18).string(An.srcValidatorAddr), - An.dstValidatorAddr !== '' && Qn.uint32(26).string(An.dstValidatorAddr), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(34).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Zn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegatorAddr = Rn.string() - break - case 2: - Wn.srcValidatorAddr = Rn.string() - break - case 3: - Wn.dstValidatorAddr = Rn.string() - break - case 4: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegatorAddr: (0, nn.isSet)(An.delegatorAddr) ? String(An.delegatorAddr) : '', - srcValidatorAddr: (0, nn.isSet)(An.srcValidatorAddr) ? String(An.srcValidatorAddr) : '', - dstValidatorAddr: (0, nn.isSet)(An.dstValidatorAddr) ? String(An.dstValidatorAddr) : '', - pagination: (0, nn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegatorAddr !== void 0 && (Qn.delegatorAddr = An.delegatorAddr), - An.srcValidatorAddr !== void 0 && (Qn.srcValidatorAddr = An.srcValidatorAddr), - An.dstValidatorAddr !== void 0 && (Qn.dstValidatorAddr = An.dstValidatorAddr), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Zn() - return ( - (Qn.delegatorAddr = An.delegatorAddr ?? ''), - (Qn.srcValidatorAddr = An.srcValidatorAddr ?? ''), - (Qn.dstValidatorAddr = An.dstValidatorAddr ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function tn() { - return { redelegationResponses: [], pagination: void 0 } - } - e.QueryRedelegationsResponse = { - encode(An, Qn = sn.Writer.create()) { - for (const Rn of An.redelegationResponses) - en.RedelegationResponse.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = tn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.redelegationResponses.push(en.RedelegationResponse.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - redelegationResponses: Array.isArray(An?.redelegationResponses) - ? An.redelegationResponses.map((Qn) => en.RedelegationResponse.fromJSON(Qn)) - : [], - pagination: (0, nn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.redelegationResponses - ? (Qn.redelegationResponses = An.redelegationResponses.map((Rn) => - Rn ? en.RedelegationResponse.toJSON(Rn) : void 0, - )) - : (Qn.redelegationResponses = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = tn() - return ( - (Qn.redelegationResponses = - An.redelegationResponses?.map((Rn) => en.RedelegationResponse.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function En() { - return { delegatorAddr: '', pagination: void 0 } - } - e.QueryDelegatorValidatorsRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegatorAddr !== '' && Qn.uint32(10).string(An.delegatorAddr), - An.pagination !== void 0 && - $.PageRequest.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = En() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegatorAddr = Rn.string() - break - case 2: - Wn.pagination = $.PageRequest.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegatorAddr: (0, nn.isSet)(An.delegatorAddr) ? String(An.delegatorAddr) : '', - pagination: (0, nn.isSet)(An.pagination) ? $.PageRequest.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegatorAddr !== void 0 && (Qn.delegatorAddr = An.delegatorAddr), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageRequest.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = En() - return ( - (Qn.delegatorAddr = An.delegatorAddr ?? ''), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageRequest.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Mn() { - return { validators: [], pagination: void 0 } - } - e.QueryDelegatorValidatorsResponse = { - encode(An, Qn = sn.Writer.create()) { - for (const Rn of An.validators) en.Validator.encode(Rn, Qn.uint32(10).fork()).ldelim() - return ( - An.pagination !== void 0 && - $.PageResponse.encode(An.pagination, Qn.uint32(18).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Mn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.validators.push(en.Validator.decode(Rn, Rn.uint32())) - break - case 2: - Wn.pagination = $.PageResponse.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - validators: Array.isArray(An?.validators) - ? An.validators.map((Qn) => en.Validator.fromJSON(Qn)) - : [], - pagination: (0, nn.isSet)(An.pagination) ? $.PageResponse.fromJSON(An.pagination) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.validators - ? (Qn.validators = An.validators.map((Rn) => (Rn ? en.Validator.toJSON(Rn) : void 0))) - : (Qn.validators = []), - An.pagination !== void 0 && - (Qn.pagination = An.pagination ? $.PageResponse.toJSON(An.pagination) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = Mn() - return ( - (Qn.validators = An.validators?.map((Rn) => en.Validator.fromPartial(Rn)) || []), - (Qn.pagination = - An.pagination !== void 0 && An.pagination !== null - ? $.PageResponse.fromPartial(An.pagination) - : void 0), - Qn - ) - }, - } - function Hn() { - return { delegatorAddr: '', validatorAddr: '' } - } - e.QueryDelegatorValidatorRequest = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.delegatorAddr !== '' && Qn.uint32(10).string(An.delegatorAddr), - An.validatorAddr !== '' && Qn.uint32(18).string(An.validatorAddr), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Hn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.delegatorAddr = Rn.string() - break - case 2: - Wn.validatorAddr = Rn.string() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - delegatorAddr: (0, nn.isSet)(An.delegatorAddr) ? String(An.delegatorAddr) : '', - validatorAddr: (0, nn.isSet)(An.validatorAddr) ? String(An.validatorAddr) : '', - } - }, - toJSON(An) { - const Qn = {} - return ( - An.delegatorAddr !== void 0 && (Qn.delegatorAddr = An.delegatorAddr), - An.validatorAddr !== void 0 && (Qn.validatorAddr = An.validatorAddr), - Qn - ) - }, - fromPartial(An) { - const Qn = Hn() - return ( - (Qn.delegatorAddr = An.delegatorAddr ?? ''), (Qn.validatorAddr = An.validatorAddr ?? ''), Qn - ) - }, - } - function un() { - return { validator: void 0 } - } - e.QueryDelegatorValidatorResponse = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.validator !== void 0 && en.Validator.encode(An.validator, Qn.uint32(10).fork()).ldelim(), - Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = un() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.validator = en.Validator.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { - validator: (0, nn.isSet)(An.validator) ? en.Validator.fromJSON(An.validator) : void 0, - } - }, - toJSON(An) { - const Qn = {} - return ( - An.validator !== void 0 && - (Qn.validator = An.validator ? en.Validator.toJSON(An.validator) : void 0), - Qn - ) - }, - fromPartial(An) { - const Qn = un() - return ( - (Qn.validator = - An.validator !== void 0 && An.validator !== null - ? en.Validator.fromPartial(An.validator) - : void 0), - Qn - ) - }, - } - function dn() { - return { height: nn.Long.ZERO } - } - e.QueryHistoricalInfoRequest = { - encode(An, Qn = sn.Writer.create()) { - return An.height.isZero() || Qn.uint32(8).int64(An.height), Qn - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = dn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.height = Rn.int64() - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { height: (0, nn.isSet)(An.height) ? nn.Long.fromValue(An.height) : nn.Long.ZERO } - }, - toJSON(An) { - const Qn = {} - return An.height !== void 0 && (Qn.height = (An.height || nn.Long.ZERO).toString()), Qn - }, - fromPartial(An) { - const Qn = dn() - return ( - (Qn.height = - An.height !== void 0 && An.height !== null ? nn.Long.fromValue(An.height) : nn.Long.ZERO), - Qn - ) - }, - } - function Nn() { - return { hist: void 0 } - } - e.QueryHistoricalInfoResponse = { - encode(An, Qn = sn.Writer.create()) { - return ( - An.hist !== void 0 && en.HistoricalInfo.encode(An.hist, Qn.uint32(10).fork()).ldelim(), Qn - ) - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Nn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.hist = en.HistoricalInfo.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { hist: (0, nn.isSet)(An.hist) ? en.HistoricalInfo.fromJSON(An.hist) : void 0 } - }, - toJSON(An) { - const Qn = {} - return ( - An.hist !== void 0 && (Qn.hist = An.hist ? en.HistoricalInfo.toJSON(An.hist) : void 0), Qn - ) - }, - fromPartial(An) { - const Qn = Nn() - return ( - (Qn.hist = - An.hist !== void 0 && An.hist !== null ? en.HistoricalInfo.fromPartial(An.hist) : void 0), - Qn - ) - }, - } - function fn() { - return {} - } - e.QueryPoolRequest = { - encode(An, Qn = sn.Writer.create()) { - return Qn - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = fn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return {} - }, - toJSON(An) { - return {} - }, - fromPartial(An) { - return fn() - }, - } - function _n() { - return { pool: void 0 } - } - e.QueryPoolResponse = { - encode(An, Qn = sn.Writer.create()) { - return An.pool !== void 0 && en.Pool.encode(An.pool, Qn.uint32(10).fork()).ldelim(), Qn - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = _n() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.pool = en.Pool.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { pool: (0, nn.isSet)(An.pool) ? en.Pool.fromJSON(An.pool) : void 0 } - }, - toJSON(An) { - const Qn = {} - return An.pool !== void 0 && (Qn.pool = An.pool ? en.Pool.toJSON(An.pool) : void 0), Qn - }, - fromPartial(An) { - const Qn = _n() - return ( - (Qn.pool = An.pool !== void 0 && An.pool !== null ? en.Pool.fromPartial(An.pool) : void 0), - Qn - ) - }, - } - function Ln() { - return {} - } - e.QueryParamsRequest = { - encode(An, Qn = sn.Writer.create()) { - return Qn - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = Ln() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return {} - }, - toJSON(An) { - return {} - }, - fromPartial(An) { - return Ln() - }, - } - function zn() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(An, Qn = sn.Writer.create()) { - return An.params !== void 0 && en.Params.encode(An.params, Qn.uint32(10).fork()).ldelim(), Qn - }, - decode(An, Qn) { - const Rn = An instanceof sn.Reader ? An : new sn.Reader(An) - let Vn = Qn === void 0 ? Rn.len : Rn.pos + Qn - const Wn = zn() - for (; Rn.pos < Vn; ) { - const ht = Rn.uint32() - switch (ht >>> 3) { - case 1: - Wn.params = en.Params.decode(Rn, Rn.uint32()) - break - default: - Rn.skipType(ht & 7) - break - } - } - return Wn - }, - fromJSON(An) { - return { params: (0, nn.isSet)(An.params) ? en.Params.fromJSON(An.params) : void 0 } - }, - toJSON(An) { - const Qn = {} - return ( - An.params !== void 0 && (Qn.params = An.params ? en.Params.toJSON(An.params) : void 0), Qn - ) - }, - fromPartial(An) { - const Qn = zn() - return ( - (Qn.params = - An.params !== void 0 && An.params !== null ? en.Params.fromPartial(An.params) : void 0), - Qn - ) - }, - } - class Fn { - constructor(Qn) { - ;(this.rpc = Qn), - (this.Validators = this.Validators.bind(this)), - (this.Validator = this.Validator.bind(this)), - (this.ValidatorDelegations = this.ValidatorDelegations.bind(this)), - (this.ValidatorUnbondingDelegations = this.ValidatorUnbondingDelegations.bind(this)), - (this.Delegation = this.Delegation.bind(this)), - (this.UnbondingDelegation = this.UnbondingDelegation.bind(this)), - (this.DelegatorDelegations = this.DelegatorDelegations.bind(this)), - (this.DelegatorUnbondingDelegations = this.DelegatorUnbondingDelegations.bind(this)), - (this.Redelegations = this.Redelegations.bind(this)), - (this.DelegatorValidators = this.DelegatorValidators.bind(this)), - (this.DelegatorValidator = this.DelegatorValidator.bind(this)), - (this.HistoricalInfo = this.HistoricalInfo.bind(this)), - (this.Pool = this.Pool.bind(this)), - (this.Params = this.Params.bind(this)) - } - Validators(Qn) { - const Rn = e.QueryValidatorsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'Validators', Rn) - .then((Wn) => e.QueryValidatorsResponse.decode(new sn.Reader(Wn))) - } - Validator(Qn) { - const Rn = e.QueryValidatorRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'Validator', Rn) - .then((Wn) => e.QueryValidatorResponse.decode(new sn.Reader(Wn))) - } - ValidatorDelegations(Qn) { - const Rn = e.QueryValidatorDelegationsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'ValidatorDelegations', Rn) - .then((Wn) => e.QueryValidatorDelegationsResponse.decode(new sn.Reader(Wn))) - } - ValidatorUnbondingDelegations(Qn) { - const Rn = e.QueryValidatorUnbondingDelegationsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'ValidatorUnbondingDelegations', Rn) - .then((Wn) => e.QueryValidatorUnbondingDelegationsResponse.decode(new sn.Reader(Wn))) - } - Delegation(Qn) { - const Rn = e.QueryDelegationRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'Delegation', Rn) - .then((Wn) => e.QueryDelegationResponse.decode(new sn.Reader(Wn))) - } - UnbondingDelegation(Qn) { - const Rn = e.QueryUnbondingDelegationRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'UnbondingDelegation', Rn) - .then((Wn) => e.QueryUnbondingDelegationResponse.decode(new sn.Reader(Wn))) - } - DelegatorDelegations(Qn) { - const Rn = e.QueryDelegatorDelegationsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'DelegatorDelegations', Rn) - .then((Wn) => e.QueryDelegatorDelegationsResponse.decode(new sn.Reader(Wn))) - } - DelegatorUnbondingDelegations(Qn) { - const Rn = e.QueryDelegatorUnbondingDelegationsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'DelegatorUnbondingDelegations', Rn) - .then((Wn) => e.QueryDelegatorUnbondingDelegationsResponse.decode(new sn.Reader(Wn))) - } - Redelegations(Qn) { - const Rn = e.QueryRedelegationsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'Redelegations', Rn) - .then((Wn) => e.QueryRedelegationsResponse.decode(new sn.Reader(Wn))) - } - DelegatorValidators(Qn) { - const Rn = e.QueryDelegatorValidatorsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'DelegatorValidators', Rn) - .then((Wn) => e.QueryDelegatorValidatorsResponse.decode(new sn.Reader(Wn))) - } - DelegatorValidator(Qn) { - const Rn = e.QueryDelegatorValidatorRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'DelegatorValidator', Rn) - .then((Wn) => e.QueryDelegatorValidatorResponse.decode(new sn.Reader(Wn))) - } - HistoricalInfo(Qn) { - const Rn = e.QueryHistoricalInfoRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'HistoricalInfo', Rn) - .then((Wn) => e.QueryHistoricalInfoResponse.decode(new sn.Reader(Wn))) - } - Pool(Qn = {}) { - const Rn = e.QueryPoolRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'Pool', Rn) - .then((Wn) => e.QueryPoolResponse.decode(new sn.Reader(Wn))) - } - Params(Qn = {}) { - const Rn = e.QueryParamsRequest.encode(Qn).finish() - return this.rpc - .request('cosmos.staking.v1beta1.Query', 'Params', Rn) - .then((Wn) => e.QueryParamsResponse.decode(new sn.Reader(Wn))) - } - } - e.QueryClientImpl = Fn -})(query$1) -var __importDefault$7 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(queries$2, '__esModule', { value: !0 }) -queries$2.setupStakingExtension = void 0 -const query_1$1 = query$1, - long_1$5 = __importDefault$7(long$1), - queryclient_1$2 = queryclient$1 -function setupStakingExtension(e) { - const o = (0, queryclient_1$2.createProtobufRpcClient)(e), - _ = new query_1$1.QueryClientImpl(o) - return { - staking: { - delegation: async (b, $) => await _.Delegation({ delegatorAddr: b, validatorAddr: $ }), - delegatorDelegations: async (b, $) => - await _.DelegatorDelegations({ - delegatorAddr: b, - pagination: (0, queryclient_1$2.createPagination)($), - }), - delegatorUnbondingDelegations: async (b, $) => - await _.DelegatorUnbondingDelegations({ - delegatorAddr: b, - pagination: (0, queryclient_1$2.createPagination)($), - }), - delegatorValidator: async (b, $) => - await _.DelegatorValidator({ delegatorAddr: b, validatorAddr: $ }), - delegatorValidators: async (b, $) => - await _.DelegatorValidators({ - delegatorAddr: b, - pagination: (0, queryclient_1$2.createPagination)($), - }), - historicalInfo: async (b) => - await _.HistoricalInfo({ height: long_1$5.default.fromNumber(b, !0) }), - params: async () => await _.Params({}), - pool: async () => await _.Pool({}), - redelegations: async (b, $, en, nn) => - await _.Redelegations({ - delegatorAddr: b, - srcValidatorAddr: $, - dstValidatorAddr: en, - pagination: (0, queryclient_1$2.createPagination)(nn), - }), - unbondingDelegation: async (b, $) => - await _.UnbondingDelegation({ delegatorAddr: b, validatorAddr: $ }), - validator: async (b) => await _.Validator({ validatorAddr: b }), - validatorDelegations: async (b, $) => - await _.ValidatorDelegations({ - validatorAddr: b, - pagination: (0, queryclient_1$2.createPagination)($), - }), - validators: async (b, $) => - await _.Validators({ status: b, pagination: (0, queryclient_1$2.createPagination)($) }), - validatorUnbondingDelegations: async (b, $) => - await _.ValidatorUnbondingDelegations({ - validatorAddr: b, - pagination: (0, queryclient_1$2.createPagination)($), - }), - }, - } -} -queries$2.setupStakingExtension = setupStakingExtension -var queries$1 = {}, - service = {}, - abci = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn) - var Gn = Object.getOwnPropertyDescriptor(yn, Cn) - ;(!Gn || ('get' in Gn ? !yn.__esModule : Gn.writable || Gn.configurable)) && - (Gn = { - enumerable: !0, - get: function () { - return yn[Cn] - }, - }), - Object.defineProperty(ln, Tn, Gn) - } - : function (ln, yn, Cn, Tn) { - Tn === void 0 && (Tn = Cn), (ln[Tn] = yn[Cn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (ln, yn) { - Object.defineProperty(ln, 'default', { enumerable: !0, value: yn }) - } - : function (ln, yn) { - ln.default = yn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (ln) { - if (ln && ln.__esModule) return ln - var yn = {} - if (ln != null) - for (var Cn in ln) - Cn !== 'default' && Object.prototype.hasOwnProperty.call(ln, Cn) && o(yn, ln, Cn) - return _(yn, ln), yn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SearchTxsResult = - e.TxMsgData = - e.MsgData = - e.SimulationResponse = - e.Result = - e.GasInfo = - e.Attribute = - e.StringEvent = - e.ABCIMessageLog = - e.TxResponse = - e.protobufPackage = - void 0) - const $ = any, - en = types$3, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.base.abci.v1beta1' - function gn() { - return { - height: nn.Long.ZERO, - txhash: '', - codespace: '', - code: 0, - data: '', - rawLog: '', - logs: [], - info: '', - gasWanted: nn.Long.ZERO, - gasUsed: nn.Long.ZERO, - tx: void 0, - timestamp: '', - events: [], - } - } - e.TxResponse = { - encode(ln, yn = sn.Writer.create()) { - ln.height.isZero() || yn.uint32(8).int64(ln.height), - ln.txhash !== '' && yn.uint32(18).string(ln.txhash), - ln.codespace !== '' && yn.uint32(26).string(ln.codespace), - ln.code !== 0 && yn.uint32(32).uint32(ln.code), - ln.data !== '' && yn.uint32(42).string(ln.data), - ln.rawLog !== '' && yn.uint32(50).string(ln.rawLog) - for (const Cn of ln.logs) e.ABCIMessageLog.encode(Cn, yn.uint32(58).fork()).ldelim() - ln.info !== '' && yn.uint32(66).string(ln.info), - ln.gasWanted.isZero() || yn.uint32(72).int64(ln.gasWanted), - ln.gasUsed.isZero() || yn.uint32(80).int64(ln.gasUsed), - ln.tx !== void 0 && $.Any.encode(ln.tx, yn.uint32(90).fork()).ldelim(), - ln.timestamp !== '' && yn.uint32(98).string(ln.timestamp) - for (const Cn of ln.events) en.Event.encode(Cn, yn.uint32(106).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = gn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.height = Cn.int64() - break - case 2: - Gn.txhash = Cn.string() - break - case 3: - Gn.codespace = Cn.string() - break - case 4: - Gn.code = Cn.uint32() - break - case 5: - Gn.data = Cn.string() - break - case 6: - Gn.rawLog = Cn.string() - break - case 7: - Gn.logs.push(e.ABCIMessageLog.decode(Cn, Cn.uint32())) - break - case 8: - Gn.info = Cn.string() - break - case 9: - Gn.gasWanted = Cn.int64() - break - case 10: - Gn.gasUsed = Cn.int64() - break - case 11: - Gn.tx = $.Any.decode(Cn, Cn.uint32()) - break - case 12: - Gn.timestamp = Cn.string() - break - case 13: - Gn.events.push(en.Event.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - height: (0, nn.isSet)(ln.height) ? nn.Long.fromValue(ln.height) : nn.Long.ZERO, - txhash: (0, nn.isSet)(ln.txhash) ? String(ln.txhash) : '', - codespace: (0, nn.isSet)(ln.codespace) ? String(ln.codespace) : '', - code: (0, nn.isSet)(ln.code) ? Number(ln.code) : 0, - data: (0, nn.isSet)(ln.data) ? String(ln.data) : '', - rawLog: (0, nn.isSet)(ln.rawLog) ? String(ln.rawLog) : '', - logs: Array.isArray(ln?.logs) ? ln.logs.map((yn) => e.ABCIMessageLog.fromJSON(yn)) : [], - info: (0, nn.isSet)(ln.info) ? String(ln.info) : '', - gasWanted: (0, nn.isSet)(ln.gasWanted) ? nn.Long.fromValue(ln.gasWanted) : nn.Long.ZERO, - gasUsed: (0, nn.isSet)(ln.gasUsed) ? nn.Long.fromValue(ln.gasUsed) : nn.Long.ZERO, - tx: (0, nn.isSet)(ln.tx) ? $.Any.fromJSON(ln.tx) : void 0, - timestamp: (0, nn.isSet)(ln.timestamp) ? String(ln.timestamp) : '', - events: Array.isArray(ln?.events) ? ln.events.map((yn) => en.Event.fromJSON(yn)) : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.height !== void 0 && (yn.height = (ln.height || nn.Long.ZERO).toString()), - ln.txhash !== void 0 && (yn.txhash = ln.txhash), - ln.codespace !== void 0 && (yn.codespace = ln.codespace), - ln.code !== void 0 && (yn.code = Math.round(ln.code)), - ln.data !== void 0 && (yn.data = ln.data), - ln.rawLog !== void 0 && (yn.rawLog = ln.rawLog), - ln.logs - ? (yn.logs = ln.logs.map((Cn) => (Cn ? e.ABCIMessageLog.toJSON(Cn) : void 0))) - : (yn.logs = []), - ln.info !== void 0 && (yn.info = ln.info), - ln.gasWanted !== void 0 && (yn.gasWanted = (ln.gasWanted || nn.Long.ZERO).toString()), - ln.gasUsed !== void 0 && (yn.gasUsed = (ln.gasUsed || nn.Long.ZERO).toString()), - ln.tx !== void 0 && (yn.tx = ln.tx ? $.Any.toJSON(ln.tx) : void 0), - ln.timestamp !== void 0 && (yn.timestamp = ln.timestamp), - ln.events - ? (yn.events = ln.events.map((Cn) => (Cn ? en.Event.toJSON(Cn) : void 0))) - : (yn.events = []), - yn - ) - }, - fromPartial(ln) { - const yn = gn() - return ( - (yn.height = - ln.height !== void 0 && ln.height !== null ? nn.Long.fromValue(ln.height) : nn.Long.ZERO), - (yn.txhash = ln.txhash ?? ''), - (yn.codespace = ln.codespace ?? ''), - (yn.code = ln.code ?? 0), - (yn.data = ln.data ?? ''), - (yn.rawLog = ln.rawLog ?? ''), - (yn.logs = ln.logs?.map((Cn) => e.ABCIMessageLog.fromPartial(Cn)) || []), - (yn.info = ln.info ?? ''), - (yn.gasWanted = - ln.gasWanted !== void 0 && ln.gasWanted !== null - ? nn.Long.fromValue(ln.gasWanted) - : nn.Long.ZERO), - (yn.gasUsed = - ln.gasUsed !== void 0 && ln.gasUsed !== null - ? nn.Long.fromValue(ln.gasUsed) - : nn.Long.ZERO), - (yn.tx = ln.tx !== void 0 && ln.tx !== null ? $.Any.fromPartial(ln.tx) : void 0), - (yn.timestamp = ln.timestamp ?? ''), - (yn.events = ln.events?.map((Cn) => en.Event.fromPartial(Cn)) || []), - yn - ) - }, - } - function In() { - return { msgIndex: 0, log: '', events: [] } - } - e.ABCIMessageLog = { - encode(ln, yn = sn.Writer.create()) { - ln.msgIndex !== 0 && yn.uint32(8).uint32(ln.msgIndex), - ln.log !== '' && yn.uint32(18).string(ln.log) - for (const Cn of ln.events) e.StringEvent.encode(Cn, yn.uint32(26).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = In() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.msgIndex = Cn.uint32() - break - case 2: - Gn.log = Cn.string() - break - case 3: - Gn.events.push(e.StringEvent.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - msgIndex: (0, nn.isSet)(ln.msgIndex) ? Number(ln.msgIndex) : 0, - log: (0, nn.isSet)(ln.log) ? String(ln.log) : '', - events: Array.isArray(ln?.events) ? ln.events.map((yn) => e.StringEvent.fromJSON(yn)) : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.msgIndex !== void 0 && (yn.msgIndex = Math.round(ln.msgIndex)), - ln.log !== void 0 && (yn.log = ln.log), - ln.events - ? (yn.events = ln.events.map((Cn) => (Cn ? e.StringEvent.toJSON(Cn) : void 0))) - : (yn.events = []), - yn - ) - }, - fromPartial(ln) { - const yn = In() - return ( - (yn.msgIndex = ln.msgIndex ?? 0), - (yn.log = ln.log ?? ''), - (yn.events = ln.events?.map((Cn) => e.StringEvent.fromPartial(Cn)) || []), - yn - ) - }, - } - function Jn() { - return { type: '', attributes: [] } - } - e.StringEvent = { - encode(ln, yn = sn.Writer.create()) { - ln.type !== '' && yn.uint32(10).string(ln.type) - for (const Cn of ln.attributes) e.Attribute.encode(Cn, yn.uint32(18).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Jn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.type = Cn.string() - break - case 2: - Gn.attributes.push(e.Attribute.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - type: (0, nn.isSet)(ln.type) ? String(ln.type) : '', - attributes: Array.isArray(ln?.attributes) - ? ln.attributes.map((yn) => e.Attribute.fromJSON(yn)) - : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.type !== void 0 && (yn.type = ln.type), - ln.attributes - ? (yn.attributes = ln.attributes.map((Cn) => (Cn ? e.Attribute.toJSON(Cn) : void 0))) - : (yn.attributes = []), - yn - ) - }, - fromPartial(ln) { - const yn = Jn() - return ( - (yn.type = ln.type ?? ''), - (yn.attributes = ln.attributes?.map((Cn) => e.Attribute.fromPartial(Cn)) || []), - yn - ) - }, - } - function qn() { - return { key: '', value: '' } - } - e.Attribute = { - encode(ln, yn = sn.Writer.create()) { - return ( - ln.key !== '' && yn.uint32(10).string(ln.key), - ln.value !== '' && yn.uint32(18).string(ln.value), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = qn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.key = Cn.string() - break - case 2: - Gn.value = Cn.string() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - key: (0, nn.isSet)(ln.key) ? String(ln.key) : '', - value: (0, nn.isSet)(ln.value) ? String(ln.value) : '', - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.key !== void 0 && (yn.key = ln.key), ln.value !== void 0 && (yn.value = ln.value), yn - ) - }, - fromPartial(ln) { - const yn = qn() - return (yn.key = ln.key ?? ''), (yn.value = ln.value ?? ''), yn - }, - } - function Kn() { - return { gasWanted: nn.Long.UZERO, gasUsed: nn.Long.UZERO } - } - e.GasInfo = { - encode(ln, yn = sn.Writer.create()) { - return ( - ln.gasWanted.isZero() || yn.uint32(8).uint64(ln.gasWanted), - ln.gasUsed.isZero() || yn.uint32(16).uint64(ln.gasUsed), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Kn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.gasWanted = Cn.uint64() - break - case 2: - Gn.gasUsed = Cn.uint64() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - gasWanted: (0, nn.isSet)(ln.gasWanted) ? nn.Long.fromValue(ln.gasWanted) : nn.Long.UZERO, - gasUsed: (0, nn.isSet)(ln.gasUsed) ? nn.Long.fromValue(ln.gasUsed) : nn.Long.UZERO, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.gasWanted !== void 0 && (yn.gasWanted = (ln.gasWanted || nn.Long.UZERO).toString()), - ln.gasUsed !== void 0 && (yn.gasUsed = (ln.gasUsed || nn.Long.UZERO).toString()), - yn - ) - }, - fromPartial(ln) { - const yn = Kn() - return ( - (yn.gasWanted = - ln.gasWanted !== void 0 && ln.gasWanted !== null - ? nn.Long.fromValue(ln.gasWanted) - : nn.Long.UZERO), - (yn.gasUsed = - ln.gasUsed !== void 0 && ln.gasUsed !== null - ? nn.Long.fromValue(ln.gasUsed) - : nn.Long.UZERO), - yn - ) - }, - } - function an() { - return { data: new Uint8Array(), log: '', events: [], msgResponses: [] } - } - e.Result = { - encode(ln, yn = sn.Writer.create()) { - ln.data.length !== 0 && yn.uint32(10).bytes(ln.data), - ln.log !== '' && yn.uint32(18).string(ln.log) - for (const Cn of ln.events) en.Event.encode(Cn, yn.uint32(26).fork()).ldelim() - for (const Cn of ln.msgResponses) $.Any.encode(Cn, yn.uint32(34).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = an() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.data = Cn.bytes() - break - case 2: - Gn.log = Cn.string() - break - case 3: - Gn.events.push(en.Event.decode(Cn, Cn.uint32())) - break - case 4: - Gn.msgResponses.push($.Any.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - data: (0, nn.isSet)(ln.data) ? (0, nn.bytesFromBase64)(ln.data) : new Uint8Array(), - log: (0, nn.isSet)(ln.log) ? String(ln.log) : '', - events: Array.isArray(ln?.events) ? ln.events.map((yn) => en.Event.fromJSON(yn)) : [], - msgResponses: Array.isArray(ln?.msgResponses) - ? ln.msgResponses.map((yn) => $.Any.fromJSON(yn)) - : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.data !== void 0 && - (yn.data = (0, nn.base64FromBytes)(ln.data !== void 0 ? ln.data : new Uint8Array())), - ln.log !== void 0 && (yn.log = ln.log), - ln.events - ? (yn.events = ln.events.map((Cn) => (Cn ? en.Event.toJSON(Cn) : void 0))) - : (yn.events = []), - ln.msgResponses - ? (yn.msgResponses = ln.msgResponses.map((Cn) => (Cn ? $.Any.toJSON(Cn) : void 0))) - : (yn.msgResponses = []), - yn - ) - }, - fromPartial(ln) { - const yn = an() - return ( - (yn.data = ln.data ?? new Uint8Array()), - (yn.log = ln.log ?? ''), - (yn.events = ln.events?.map((Cn) => en.Event.fromPartial(Cn)) || []), - (yn.msgResponses = ln.msgResponses?.map((Cn) => $.Any.fromPartial(Cn)) || []), - yn - ) - }, - } - function xn() { - return { gasInfo: void 0, result: void 0 } - } - e.SimulationResponse = { - encode(ln, yn = sn.Writer.create()) { - return ( - ln.gasInfo !== void 0 && e.GasInfo.encode(ln.gasInfo, yn.uint32(10).fork()).ldelim(), - ln.result !== void 0 && e.Result.encode(ln.result, yn.uint32(18).fork()).ldelim(), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = xn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.gasInfo = e.GasInfo.decode(Cn, Cn.uint32()) - break - case 2: - Gn.result = e.Result.decode(Cn, Cn.uint32()) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - gasInfo: (0, nn.isSet)(ln.gasInfo) ? e.GasInfo.fromJSON(ln.gasInfo) : void 0, - result: (0, nn.isSet)(ln.result) ? e.Result.fromJSON(ln.result) : void 0, - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.gasInfo !== void 0 && (yn.gasInfo = ln.gasInfo ? e.GasInfo.toJSON(ln.gasInfo) : void 0), - ln.result !== void 0 && (yn.result = ln.result ? e.Result.toJSON(ln.result) : void 0), - yn - ) - }, - fromPartial(ln) { - const yn = xn() - return ( - (yn.gasInfo = - ln.gasInfo !== void 0 && ln.gasInfo !== null - ? e.GasInfo.fromPartial(ln.gasInfo) - : void 0), - (yn.result = - ln.result !== void 0 && ln.result !== null ? e.Result.fromPartial(ln.result) : void 0), - yn - ) - }, - } - function mn() { - return { msgType: '', data: new Uint8Array() } - } - e.MsgData = { - encode(ln, yn = sn.Writer.create()) { - return ( - ln.msgType !== '' && yn.uint32(10).string(ln.msgType), - ln.data.length !== 0 && yn.uint32(18).bytes(ln.data), - yn - ) - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = mn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.msgType = Cn.string() - break - case 2: - Gn.data = Cn.bytes() - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - msgType: (0, nn.isSet)(ln.msgType) ? String(ln.msgType) : '', - data: (0, nn.isSet)(ln.data) ? (0, nn.bytesFromBase64)(ln.data) : new Uint8Array(), - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.msgType !== void 0 && (yn.msgType = ln.msgType), - ln.data !== void 0 && - (yn.data = (0, nn.base64FromBytes)(ln.data !== void 0 ? ln.data : new Uint8Array())), - yn - ) - }, - fromPartial(ln) { - const yn = mn() - return (yn.msgType = ln.msgType ?? ''), (yn.data = ln.data ?? new Uint8Array()), yn - }, - } - function Bn() { - return { data: [], msgResponses: [] } - } - e.TxMsgData = { - encode(ln, yn = sn.Writer.create()) { - for (const Cn of ln.data) e.MsgData.encode(Cn, yn.uint32(10).fork()).ldelim() - for (const Cn of ln.msgResponses) $.Any.encode(Cn, yn.uint32(18).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = Bn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.data.push(e.MsgData.decode(Cn, Cn.uint32())) - break - case 2: - Gn.msgResponses.push($.Any.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - data: Array.isArray(ln?.data) ? ln.data.map((yn) => e.MsgData.fromJSON(yn)) : [], - msgResponses: Array.isArray(ln?.msgResponses) - ? ln.msgResponses.map((yn) => $.Any.fromJSON(yn)) - : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.data - ? (yn.data = ln.data.map((Cn) => (Cn ? e.MsgData.toJSON(Cn) : void 0))) - : (yn.data = []), - ln.msgResponses - ? (yn.msgResponses = ln.msgResponses.map((Cn) => (Cn ? $.Any.toJSON(Cn) : void 0))) - : (yn.msgResponses = []), - yn - ) - }, - fromPartial(ln) { - const yn = Bn() - return ( - (yn.data = ln.data?.map((Cn) => e.MsgData.fromPartial(Cn)) || []), - (yn.msgResponses = ln.msgResponses?.map((Cn) => $.Any.fromPartial(Cn)) || []), - yn - ) - }, - } - function kn() { - return { - totalCount: nn.Long.UZERO, - count: nn.Long.UZERO, - pageNumber: nn.Long.UZERO, - pageTotal: nn.Long.UZERO, - limit: nn.Long.UZERO, - txs: [], - } - } - e.SearchTxsResult = { - encode(ln, yn = sn.Writer.create()) { - ln.totalCount.isZero() || yn.uint32(8).uint64(ln.totalCount), - ln.count.isZero() || yn.uint32(16).uint64(ln.count), - ln.pageNumber.isZero() || yn.uint32(24).uint64(ln.pageNumber), - ln.pageTotal.isZero() || yn.uint32(32).uint64(ln.pageTotal), - ln.limit.isZero() || yn.uint32(40).uint64(ln.limit) - for (const Cn of ln.txs) e.TxResponse.encode(Cn, yn.uint32(50).fork()).ldelim() - return yn - }, - decode(ln, yn) { - const Cn = ln instanceof sn.Reader ? ln : new sn.Reader(ln) - let Tn = yn === void 0 ? Cn.len : Cn.pos + yn - const Gn = kn() - for (; Cn.pos < Tn; ) { - const Sn = Cn.uint32() - switch (Sn >>> 3) { - case 1: - Gn.totalCount = Cn.uint64() - break - case 2: - Gn.count = Cn.uint64() - break - case 3: - Gn.pageNumber = Cn.uint64() - break - case 4: - Gn.pageTotal = Cn.uint64() - break - case 5: - Gn.limit = Cn.uint64() - break - case 6: - Gn.txs.push(e.TxResponse.decode(Cn, Cn.uint32())) - break - default: - Cn.skipType(Sn & 7) - break - } - } - return Gn - }, - fromJSON(ln) { - return { - totalCount: (0, nn.isSet)(ln.totalCount) ? nn.Long.fromValue(ln.totalCount) : nn.Long.UZERO, - count: (0, nn.isSet)(ln.count) ? nn.Long.fromValue(ln.count) : nn.Long.UZERO, - pageNumber: (0, nn.isSet)(ln.pageNumber) ? nn.Long.fromValue(ln.pageNumber) : nn.Long.UZERO, - pageTotal: (0, nn.isSet)(ln.pageTotal) ? nn.Long.fromValue(ln.pageTotal) : nn.Long.UZERO, - limit: (0, nn.isSet)(ln.limit) ? nn.Long.fromValue(ln.limit) : nn.Long.UZERO, - txs: Array.isArray(ln?.txs) ? ln.txs.map((yn) => e.TxResponse.fromJSON(yn)) : [], - } - }, - toJSON(ln) { - const yn = {} - return ( - ln.totalCount !== void 0 && (yn.totalCount = (ln.totalCount || nn.Long.UZERO).toString()), - ln.count !== void 0 && (yn.count = (ln.count || nn.Long.UZERO).toString()), - ln.pageNumber !== void 0 && (yn.pageNumber = (ln.pageNumber || nn.Long.UZERO).toString()), - ln.pageTotal !== void 0 && (yn.pageTotal = (ln.pageTotal || nn.Long.UZERO).toString()), - ln.limit !== void 0 && (yn.limit = (ln.limit || nn.Long.UZERO).toString()), - ln.txs - ? (yn.txs = ln.txs.map((Cn) => (Cn ? e.TxResponse.toJSON(Cn) : void 0))) - : (yn.txs = []), - yn - ) - }, - fromPartial(ln) { - const yn = kn() - return ( - (yn.totalCount = - ln.totalCount !== void 0 && ln.totalCount !== null - ? nn.Long.fromValue(ln.totalCount) - : nn.Long.UZERO), - (yn.count = - ln.count !== void 0 && ln.count !== null ? nn.Long.fromValue(ln.count) : nn.Long.UZERO), - (yn.pageNumber = - ln.pageNumber !== void 0 && ln.pageNumber !== null - ? nn.Long.fromValue(ln.pageNumber) - : nn.Long.UZERO), - (yn.pageTotal = - ln.pageTotal !== void 0 && ln.pageTotal !== null - ? nn.Long.fromValue(ln.pageTotal) - : nn.Long.UZERO), - (yn.limit = - ln.limit !== void 0 && ln.limit !== null ? nn.Long.fromValue(ln.limit) : nn.Long.UZERO), - (yn.txs = ln.txs?.map((Cn) => e.TxResponse.fromPartial(Cn)) || []), - yn - ) - }, - } -})(abci) -var block = {}, - evidence = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (an, xn, mn, Bn) { - Bn === void 0 && (Bn = mn) - var kn = Object.getOwnPropertyDescriptor(xn, mn) - ;(!kn || ('get' in kn ? !xn.__esModule : kn.writable || kn.configurable)) && - (kn = { - enumerable: !0, - get: function () { - return xn[mn] - }, - }), - Object.defineProperty(an, Bn, kn) - } - : function (an, xn, mn, Bn) { - Bn === void 0 && (Bn = mn), (an[Bn] = xn[mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (an, xn) { - Object.defineProperty(an, 'default', { enumerable: !0, value: xn }) - } - : function (an, xn) { - an.default = xn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (an) { - if (an && an.__esModule) return an - var xn = {} - if (an != null) - for (var mn in an) - mn !== 'default' && Object.prototype.hasOwnProperty.call(an, mn) && o(xn, an, mn) - return _(xn, an), xn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.EvidenceList = - e.LightClientAttackEvidence = - e.DuplicateVoteEvidence = - e.Evidence = - e.protobufPackage = - void 0) - const $ = types$5, - en = timestamp, - nn = validator$2, - sn = helpers, - gn = b(minimalExports) - e.protobufPackage = 'tendermint.types' - function In() { - return { duplicateVoteEvidence: void 0, lightClientAttackEvidence: void 0 } - } - e.Evidence = { - encode(an, xn = gn.Writer.create()) { - return ( - an.duplicateVoteEvidence !== void 0 && - e.DuplicateVoteEvidence.encode(an.duplicateVoteEvidence, xn.uint32(10).fork()).ldelim(), - an.lightClientAttackEvidence !== void 0 && - e.LightClientAttackEvidence.encode( - an.lightClientAttackEvidence, - xn.uint32(18).fork(), - ).ldelim(), - xn - ) - }, - decode(an, xn) { - const mn = an instanceof gn.Reader ? an : new gn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = In() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.duplicateVoteEvidence = e.DuplicateVoteEvidence.decode(mn, mn.uint32()) - break - case 2: - kn.lightClientAttackEvidence = e.LightClientAttackEvidence.decode(mn, mn.uint32()) - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - duplicateVoteEvidence: (0, sn.isSet)(an.duplicateVoteEvidence) - ? e.DuplicateVoteEvidence.fromJSON(an.duplicateVoteEvidence) - : void 0, - lightClientAttackEvidence: (0, sn.isSet)(an.lightClientAttackEvidence) - ? e.LightClientAttackEvidence.fromJSON(an.lightClientAttackEvidence) - : void 0, - } - }, - toJSON(an) { - const xn = {} - return ( - an.duplicateVoteEvidence !== void 0 && - (xn.duplicateVoteEvidence = an.duplicateVoteEvidence - ? e.DuplicateVoteEvidence.toJSON(an.duplicateVoteEvidence) - : void 0), - an.lightClientAttackEvidence !== void 0 && - (xn.lightClientAttackEvidence = an.lightClientAttackEvidence - ? e.LightClientAttackEvidence.toJSON(an.lightClientAttackEvidence) - : void 0), - xn - ) - }, - fromPartial(an) { - const xn = In() - return ( - (xn.duplicateVoteEvidence = - an.duplicateVoteEvidence !== void 0 && an.duplicateVoteEvidence !== null - ? e.DuplicateVoteEvidence.fromPartial(an.duplicateVoteEvidence) - : void 0), - (xn.lightClientAttackEvidence = - an.lightClientAttackEvidence !== void 0 && an.lightClientAttackEvidence !== null - ? e.LightClientAttackEvidence.fromPartial(an.lightClientAttackEvidence) - : void 0), - xn - ) - }, - } - function Jn() { - return { - voteA: void 0, - voteB: void 0, - totalVotingPower: sn.Long.ZERO, - validatorPower: sn.Long.ZERO, - timestamp: void 0, - } - } - e.DuplicateVoteEvidence = { - encode(an, xn = gn.Writer.create()) { - return ( - an.voteA !== void 0 && $.Vote.encode(an.voteA, xn.uint32(10).fork()).ldelim(), - an.voteB !== void 0 && $.Vote.encode(an.voteB, xn.uint32(18).fork()).ldelim(), - an.totalVotingPower.isZero() || xn.uint32(24).int64(an.totalVotingPower), - an.validatorPower.isZero() || xn.uint32(32).int64(an.validatorPower), - an.timestamp !== void 0 && en.Timestamp.encode(an.timestamp, xn.uint32(42).fork()).ldelim(), - xn - ) - }, - decode(an, xn) { - const mn = an instanceof gn.Reader ? an : new gn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = Jn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.voteA = $.Vote.decode(mn, mn.uint32()) - break - case 2: - kn.voteB = $.Vote.decode(mn, mn.uint32()) - break - case 3: - kn.totalVotingPower = mn.int64() - break - case 4: - kn.validatorPower = mn.int64() - break - case 5: - kn.timestamp = en.Timestamp.decode(mn, mn.uint32()) - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - voteA: (0, sn.isSet)(an.voteA) ? $.Vote.fromJSON(an.voteA) : void 0, - voteB: (0, sn.isSet)(an.voteB) ? $.Vote.fromJSON(an.voteB) : void 0, - totalVotingPower: (0, sn.isSet)(an.totalVotingPower) - ? sn.Long.fromValue(an.totalVotingPower) - : sn.Long.ZERO, - validatorPower: (0, sn.isSet)(an.validatorPower) - ? sn.Long.fromValue(an.validatorPower) - : sn.Long.ZERO, - timestamp: (0, sn.isSet)(an.timestamp) ? (0, sn.fromJsonTimestamp)(an.timestamp) : void 0, - } - }, - toJSON(an) { - const xn = {} - return ( - an.voteA !== void 0 && (xn.voteA = an.voteA ? $.Vote.toJSON(an.voteA) : void 0), - an.voteB !== void 0 && (xn.voteB = an.voteB ? $.Vote.toJSON(an.voteB) : void 0), - an.totalVotingPower !== void 0 && - (xn.totalVotingPower = (an.totalVotingPower || sn.Long.ZERO).toString()), - an.validatorPower !== void 0 && - (xn.validatorPower = (an.validatorPower || sn.Long.ZERO).toString()), - an.timestamp !== void 0 && - (xn.timestamp = (0, sn.fromTimestamp)(an.timestamp).toISOString()), - xn - ) - }, - fromPartial(an) { - const xn = Jn() - return ( - (xn.voteA = - an.voteA !== void 0 && an.voteA !== null ? $.Vote.fromPartial(an.voteA) : void 0), - (xn.voteB = - an.voteB !== void 0 && an.voteB !== null ? $.Vote.fromPartial(an.voteB) : void 0), - (xn.totalVotingPower = - an.totalVotingPower !== void 0 && an.totalVotingPower !== null - ? sn.Long.fromValue(an.totalVotingPower) - : sn.Long.ZERO), - (xn.validatorPower = - an.validatorPower !== void 0 && an.validatorPower !== null - ? sn.Long.fromValue(an.validatorPower) - : sn.Long.ZERO), - (xn.timestamp = - an.timestamp !== void 0 && an.timestamp !== null - ? en.Timestamp.fromPartial(an.timestamp) - : void 0), - xn - ) - }, - } - function qn() { - return { - conflictingBlock: void 0, - commonHeight: sn.Long.ZERO, - byzantineValidators: [], - totalVotingPower: sn.Long.ZERO, - timestamp: void 0, - } - } - e.LightClientAttackEvidence = { - encode(an, xn = gn.Writer.create()) { - an.conflictingBlock !== void 0 && - $.LightBlock.encode(an.conflictingBlock, xn.uint32(10).fork()).ldelim(), - an.commonHeight.isZero() || xn.uint32(16).int64(an.commonHeight) - for (const mn of an.byzantineValidators) - nn.Validator.encode(mn, xn.uint32(26).fork()).ldelim() - return ( - an.totalVotingPower.isZero() || xn.uint32(32).int64(an.totalVotingPower), - an.timestamp !== void 0 && en.Timestamp.encode(an.timestamp, xn.uint32(42).fork()).ldelim(), - xn - ) - }, - decode(an, xn) { - const mn = an instanceof gn.Reader ? an : new gn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = qn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.conflictingBlock = $.LightBlock.decode(mn, mn.uint32()) - break - case 2: - kn.commonHeight = mn.int64() - break - case 3: - kn.byzantineValidators.push(nn.Validator.decode(mn, mn.uint32())) - break - case 4: - kn.totalVotingPower = mn.int64() - break - case 5: - kn.timestamp = en.Timestamp.decode(mn, mn.uint32()) - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - conflictingBlock: (0, sn.isSet)(an.conflictingBlock) - ? $.LightBlock.fromJSON(an.conflictingBlock) - : void 0, - commonHeight: (0, sn.isSet)(an.commonHeight) - ? sn.Long.fromValue(an.commonHeight) - : sn.Long.ZERO, - byzantineValidators: Array.isArray(an?.byzantineValidators) - ? an.byzantineValidators.map((xn) => nn.Validator.fromJSON(xn)) - : [], - totalVotingPower: (0, sn.isSet)(an.totalVotingPower) - ? sn.Long.fromValue(an.totalVotingPower) - : sn.Long.ZERO, - timestamp: (0, sn.isSet)(an.timestamp) ? (0, sn.fromJsonTimestamp)(an.timestamp) : void 0, - } - }, - toJSON(an) { - const xn = {} - return ( - an.conflictingBlock !== void 0 && - (xn.conflictingBlock = an.conflictingBlock - ? $.LightBlock.toJSON(an.conflictingBlock) - : void 0), - an.commonHeight !== void 0 && - (xn.commonHeight = (an.commonHeight || sn.Long.ZERO).toString()), - an.byzantineValidators - ? (xn.byzantineValidators = an.byzantineValidators.map((mn) => - mn ? nn.Validator.toJSON(mn) : void 0, - )) - : (xn.byzantineValidators = []), - an.totalVotingPower !== void 0 && - (xn.totalVotingPower = (an.totalVotingPower || sn.Long.ZERO).toString()), - an.timestamp !== void 0 && - (xn.timestamp = (0, sn.fromTimestamp)(an.timestamp).toISOString()), - xn - ) - }, - fromPartial(an) { - const xn = qn() - return ( - (xn.conflictingBlock = - an.conflictingBlock !== void 0 && an.conflictingBlock !== null - ? $.LightBlock.fromPartial(an.conflictingBlock) - : void 0), - (xn.commonHeight = - an.commonHeight !== void 0 && an.commonHeight !== null - ? sn.Long.fromValue(an.commonHeight) - : sn.Long.ZERO), - (xn.byzantineValidators = - an.byzantineValidators?.map((mn) => nn.Validator.fromPartial(mn)) || []), - (xn.totalVotingPower = - an.totalVotingPower !== void 0 && an.totalVotingPower !== null - ? sn.Long.fromValue(an.totalVotingPower) - : sn.Long.ZERO), - (xn.timestamp = - an.timestamp !== void 0 && an.timestamp !== null - ? en.Timestamp.fromPartial(an.timestamp) - : void 0), - xn - ) - }, - } - function Kn() { - return { evidence: [] } - } - e.EvidenceList = { - encode(an, xn = gn.Writer.create()) { - for (const mn of an.evidence) e.Evidence.encode(mn, xn.uint32(10).fork()).ldelim() - return xn - }, - decode(an, xn) { - const mn = an instanceof gn.Reader ? an : new gn.Reader(an) - let Bn = xn === void 0 ? mn.len : mn.pos + xn - const kn = Kn() - for (; mn.pos < Bn; ) { - const ln = mn.uint32() - switch (ln >>> 3) { - case 1: - kn.evidence.push(e.Evidence.decode(mn, mn.uint32())) - break - default: - mn.skipType(ln & 7) - break - } - } - return kn - }, - fromJSON(an) { - return { - evidence: Array.isArray(an?.evidence) - ? an.evidence.map((xn) => e.Evidence.fromJSON(xn)) - : [], - } - }, - toJSON(an) { - const xn = {} - return ( - an.evidence - ? (xn.evidence = an.evidence.map((mn) => (mn ? e.Evidence.toJSON(mn) : void 0))) - : (xn.evidence = []), - xn - ) - }, - fromPartial(an) { - const xn = Kn() - return (xn.evidence = an.evidence?.map((mn) => e.Evidence.fromPartial(mn)) || []), xn - }, - } -})(evidence) -var __createBinding$4 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$4 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$4 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$4(o, e, _) - return __setModuleDefault$4(o, e), o - } -Object.defineProperty(block, '__esModule', { value: !0 }) -block.Block = block.protobufPackage = void 0 -const types_1$5 = types$5, - evidence_1 = evidence, - _m0 = __importStar$4(minimalExports), - helpers_1 = helpers -block.protobufPackage = 'tendermint.types' -function createBaseBlock() { - return { header: void 0, data: void 0, evidence: void 0, lastCommit: void 0 } -} -block.Block = { - encode(e, o = _m0.Writer.create()) { - return ( - e.header !== void 0 && types_1$5.Header.encode(e.header, o.uint32(10).fork()).ldelim(), - e.data !== void 0 && types_1$5.Data.encode(e.data, o.uint32(18).fork()).ldelim(), - e.evidence !== void 0 && - evidence_1.EvidenceList.encode(e.evidence, o.uint32(26).fork()).ldelim(), - e.lastCommit !== void 0 && - types_1$5.Commit.encode(e.lastCommit, o.uint32(34).fork()).ldelim(), - o - ) - }, - decode(e, o) { - const _ = e instanceof _m0.Reader ? e : new _m0.Reader(e) - let b = o === void 0 ? _.len : _.pos + o - const $ = createBaseBlock() - for (; _.pos < b; ) { - const en = _.uint32() - switch (en >>> 3) { - case 1: - $.header = types_1$5.Header.decode(_, _.uint32()) - break - case 2: - $.data = types_1$5.Data.decode(_, _.uint32()) - break - case 3: - $.evidence = evidence_1.EvidenceList.decode(_, _.uint32()) - break - case 4: - $.lastCommit = types_1$5.Commit.decode(_, _.uint32()) - break - default: - _.skipType(en & 7) - break - } - } - return $ - }, - fromJSON(e) { - return { - header: (0, helpers_1.isSet)(e.header) ? types_1$5.Header.fromJSON(e.header) : void 0, - data: (0, helpers_1.isSet)(e.data) ? types_1$5.Data.fromJSON(e.data) : void 0, - evidence: (0, helpers_1.isSet)(e.evidence) - ? evidence_1.EvidenceList.fromJSON(e.evidence) - : void 0, - lastCommit: (0, helpers_1.isSet)(e.lastCommit) - ? types_1$5.Commit.fromJSON(e.lastCommit) - : void 0, - } - }, - toJSON(e) { - const o = {} - return ( - e.header !== void 0 && (o.header = e.header ? types_1$5.Header.toJSON(e.header) : void 0), - e.data !== void 0 && (o.data = e.data ? types_1$5.Data.toJSON(e.data) : void 0), - e.evidence !== void 0 && - (o.evidence = e.evidence ? evidence_1.EvidenceList.toJSON(e.evidence) : void 0), - e.lastCommit !== void 0 && - (o.lastCommit = e.lastCommit ? types_1$5.Commit.toJSON(e.lastCommit) : void 0), - o - ) - }, - fromPartial(e) { - const o = createBaseBlock() - return ( - (o.header = - e.header !== void 0 && e.header !== null ? types_1$5.Header.fromPartial(e.header) : void 0), - (o.data = e.data !== void 0 && e.data !== null ? types_1$5.Data.fromPartial(e.data) : void 0), - (o.evidence = - e.evidence !== void 0 && e.evidence !== null - ? evidence_1.EvidenceList.fromPartial(e.evidence) - : void 0), - (o.lastCommit = - e.lastCommit !== void 0 && e.lastCommit !== null - ? types_1$5.Commit.fromPartial(e.lastCommit) - : void 0), - o - ) - }, -} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Fn, An, Qn, Rn) { - Rn === void 0 && (Rn = Qn) - var Vn = Object.getOwnPropertyDescriptor(An, Qn) - ;(!Vn || ('get' in Vn ? !An.__esModule : Vn.writable || Vn.configurable)) && - (Vn = { - enumerable: !0, - get: function () { - return An[Qn] - }, - }), - Object.defineProperty(Fn, Rn, Vn) - } - : function (Fn, An, Qn, Rn) { - Rn === void 0 && (Rn = Qn), (Fn[Rn] = An[Qn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Fn, An) { - Object.defineProperty(Fn, 'default', { enumerable: !0, value: An }) - } - : function (Fn, An) { - Fn.default = An - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Fn) { - if (Fn && Fn.__esModule) return Fn - var An = {} - if (Fn != null) - for (var Qn in Fn) - Qn !== 'default' && Object.prototype.hasOwnProperty.call(Fn, Qn) && o(An, Fn, Qn) - return _(An, Fn), An - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.ServiceClientImpl = - e.TxDecodeAminoResponse = - e.TxDecodeAminoRequest = - e.TxEncodeAminoResponse = - e.TxEncodeAminoRequest = - e.TxEncodeResponse = - e.TxEncodeRequest = - e.TxDecodeResponse = - e.TxDecodeRequest = - e.GetBlockWithTxsResponse = - e.GetBlockWithTxsRequest = - e.GetTxResponse = - e.GetTxRequest = - e.SimulateResponse = - e.SimulateRequest = - e.BroadcastTxResponse = - e.BroadcastTxRequest = - e.GetTxsEventResponse = - e.GetTxsEventRequest = - e.broadcastModeToJSON = - e.broadcastModeFromJSON = - e.BroadcastMode = - e.orderByToJSON = - e.orderByFromJSON = - e.OrderBy = - e.protobufPackage = - void 0) - const $ = tx$e, - en = pagination, - nn = abci, - sn = types$5, - gn = block, - In = helpers, - Jn = b(minimalExports) - e.protobufPackage = 'cosmos.tx.v1beta1' - var qn - ;(function (Fn) { - ;(Fn[(Fn.ORDER_BY_UNSPECIFIED = 0)] = 'ORDER_BY_UNSPECIFIED'), - (Fn[(Fn.ORDER_BY_ASC = 1)] = 'ORDER_BY_ASC'), - (Fn[(Fn.ORDER_BY_DESC = 2)] = 'ORDER_BY_DESC'), - (Fn[(Fn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((qn = e.OrderBy || (e.OrderBy = {}))) - function Kn(Fn) { - switch (Fn) { - case 0: - case 'ORDER_BY_UNSPECIFIED': - return qn.ORDER_BY_UNSPECIFIED - case 1: - case 'ORDER_BY_ASC': - return qn.ORDER_BY_ASC - case 2: - case 'ORDER_BY_DESC': - return qn.ORDER_BY_DESC - case -1: - case 'UNRECOGNIZED': - default: - return qn.UNRECOGNIZED - } - } - e.orderByFromJSON = Kn - function an(Fn) { - switch (Fn) { - case qn.ORDER_BY_UNSPECIFIED: - return 'ORDER_BY_UNSPECIFIED' - case qn.ORDER_BY_ASC: - return 'ORDER_BY_ASC' - case qn.ORDER_BY_DESC: - return 'ORDER_BY_DESC' - case qn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.orderByToJSON = an - var xn - ;(function (Fn) { - ;(Fn[(Fn.BROADCAST_MODE_UNSPECIFIED = 0)] = 'BROADCAST_MODE_UNSPECIFIED'), - (Fn[(Fn.BROADCAST_MODE_BLOCK = 1)] = 'BROADCAST_MODE_BLOCK'), - (Fn[(Fn.BROADCAST_MODE_SYNC = 2)] = 'BROADCAST_MODE_SYNC'), - (Fn[(Fn.BROADCAST_MODE_ASYNC = 3)] = 'BROADCAST_MODE_ASYNC'), - (Fn[(Fn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((xn = e.BroadcastMode || (e.BroadcastMode = {}))) - function mn(Fn) { - switch (Fn) { - case 0: - case 'BROADCAST_MODE_UNSPECIFIED': - return xn.BROADCAST_MODE_UNSPECIFIED - case 1: - case 'BROADCAST_MODE_BLOCK': - return xn.BROADCAST_MODE_BLOCK - case 2: - case 'BROADCAST_MODE_SYNC': - return xn.BROADCAST_MODE_SYNC - case 3: - case 'BROADCAST_MODE_ASYNC': - return xn.BROADCAST_MODE_ASYNC - case -1: - case 'UNRECOGNIZED': - default: - return xn.UNRECOGNIZED - } - } - e.broadcastModeFromJSON = mn - function Bn(Fn) { - switch (Fn) { - case xn.BROADCAST_MODE_UNSPECIFIED: - return 'BROADCAST_MODE_UNSPECIFIED' - case xn.BROADCAST_MODE_BLOCK: - return 'BROADCAST_MODE_BLOCK' - case xn.BROADCAST_MODE_SYNC: - return 'BROADCAST_MODE_SYNC' - case xn.BROADCAST_MODE_ASYNC: - return 'BROADCAST_MODE_ASYNC' - case xn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.broadcastModeToJSON = Bn - function kn() { - return { events: [], pagination: void 0, orderBy: 0, page: In.Long.UZERO, limit: In.Long.UZERO } - } - e.GetTxsEventRequest = { - encode(Fn, An = Jn.Writer.create()) { - for (const Qn of Fn.events) An.uint32(10).string(Qn) - return ( - Fn.pagination !== void 0 && - en.PageRequest.encode(Fn.pagination, An.uint32(18).fork()).ldelim(), - Fn.orderBy !== 0 && An.uint32(24).int32(Fn.orderBy), - Fn.page.isZero() || An.uint32(32).uint64(Fn.page), - Fn.limit.isZero() || An.uint32(40).uint64(Fn.limit), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = kn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.events.push(Qn.string()) - break - case 2: - Vn.pagination = en.PageRequest.decode(Qn, Qn.uint32()) - break - case 3: - Vn.orderBy = Qn.int32() - break - case 4: - Vn.page = Qn.uint64() - break - case 5: - Vn.limit = Qn.uint64() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - events: Array.isArray(Fn?.events) ? Fn.events.map((An) => String(An)) : [], - pagination: (0, In.isSet)(Fn.pagination) ? en.PageRequest.fromJSON(Fn.pagination) : void 0, - orderBy: (0, In.isSet)(Fn.orderBy) ? Kn(Fn.orderBy) : 0, - page: (0, In.isSet)(Fn.page) ? In.Long.fromValue(Fn.page) : In.Long.UZERO, - limit: (0, In.isSet)(Fn.limit) ? In.Long.fromValue(Fn.limit) : In.Long.UZERO, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.events ? (An.events = Fn.events.map((Qn) => Qn)) : (An.events = []), - Fn.pagination !== void 0 && - (An.pagination = Fn.pagination ? en.PageRequest.toJSON(Fn.pagination) : void 0), - Fn.orderBy !== void 0 && (An.orderBy = an(Fn.orderBy)), - Fn.page !== void 0 && (An.page = (Fn.page || In.Long.UZERO).toString()), - Fn.limit !== void 0 && (An.limit = (Fn.limit || In.Long.UZERO).toString()), - An - ) - }, - fromPartial(Fn) { - const An = kn() - return ( - (An.events = Fn.events?.map((Qn) => Qn) || []), - (An.pagination = - Fn.pagination !== void 0 && Fn.pagination !== null - ? en.PageRequest.fromPartial(Fn.pagination) - : void 0), - (An.orderBy = Fn.orderBy ?? 0), - (An.page = - Fn.page !== void 0 && Fn.page !== null ? In.Long.fromValue(Fn.page) : In.Long.UZERO), - (An.limit = - Fn.limit !== void 0 && Fn.limit !== null ? In.Long.fromValue(Fn.limit) : In.Long.UZERO), - An - ) - }, - } - function ln() { - return { txs: [], txResponses: [], pagination: void 0, total: In.Long.UZERO } - } - e.GetTxsEventResponse = { - encode(Fn, An = Jn.Writer.create()) { - for (const Qn of Fn.txs) $.Tx.encode(Qn, An.uint32(10).fork()).ldelim() - for (const Qn of Fn.txResponses) nn.TxResponse.encode(Qn, An.uint32(18).fork()).ldelim() - return ( - Fn.pagination !== void 0 && - en.PageResponse.encode(Fn.pagination, An.uint32(26).fork()).ldelim(), - Fn.total.isZero() || An.uint32(32).uint64(Fn.total), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = ln() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.txs.push($.Tx.decode(Qn, Qn.uint32())) - break - case 2: - Vn.txResponses.push(nn.TxResponse.decode(Qn, Qn.uint32())) - break - case 3: - Vn.pagination = en.PageResponse.decode(Qn, Qn.uint32()) - break - case 4: - Vn.total = Qn.uint64() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - txs: Array.isArray(Fn?.txs) ? Fn.txs.map((An) => $.Tx.fromJSON(An)) : [], - txResponses: Array.isArray(Fn?.txResponses) - ? Fn.txResponses.map((An) => nn.TxResponse.fromJSON(An)) - : [], - pagination: (0, In.isSet)(Fn.pagination) ? en.PageResponse.fromJSON(Fn.pagination) : void 0, - total: (0, In.isSet)(Fn.total) ? In.Long.fromValue(Fn.total) : In.Long.UZERO, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.txs ? (An.txs = Fn.txs.map((Qn) => (Qn ? $.Tx.toJSON(Qn) : void 0))) : (An.txs = []), - Fn.txResponses - ? (An.txResponses = Fn.txResponses.map((Qn) => (Qn ? nn.TxResponse.toJSON(Qn) : void 0))) - : (An.txResponses = []), - Fn.pagination !== void 0 && - (An.pagination = Fn.pagination ? en.PageResponse.toJSON(Fn.pagination) : void 0), - Fn.total !== void 0 && (An.total = (Fn.total || In.Long.UZERO).toString()), - An - ) - }, - fromPartial(Fn) { - const An = ln() - return ( - (An.txs = Fn.txs?.map((Qn) => $.Tx.fromPartial(Qn)) || []), - (An.txResponses = Fn.txResponses?.map((Qn) => nn.TxResponse.fromPartial(Qn)) || []), - (An.pagination = - Fn.pagination !== void 0 && Fn.pagination !== null - ? en.PageResponse.fromPartial(Fn.pagination) - : void 0), - (An.total = - Fn.total !== void 0 && Fn.total !== null ? In.Long.fromValue(Fn.total) : In.Long.UZERO), - An - ) - }, - } - function yn() { - return { txBytes: new Uint8Array(), mode: 0 } - } - e.BroadcastTxRequest = { - encode(Fn, An = Jn.Writer.create()) { - return ( - Fn.txBytes.length !== 0 && An.uint32(10).bytes(Fn.txBytes), - Fn.mode !== 0 && An.uint32(16).int32(Fn.mode), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = yn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.txBytes = Qn.bytes() - break - case 2: - Vn.mode = Qn.int32() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - txBytes: (0, In.isSet)(Fn.txBytes) ? (0, In.bytesFromBase64)(Fn.txBytes) : new Uint8Array(), - mode: (0, In.isSet)(Fn.mode) ? mn(Fn.mode) : 0, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.txBytes !== void 0 && - (An.txBytes = (0, In.base64FromBytes)( - Fn.txBytes !== void 0 ? Fn.txBytes : new Uint8Array(), - )), - Fn.mode !== void 0 && (An.mode = Bn(Fn.mode)), - An - ) - }, - fromPartial(Fn) { - const An = yn() - return (An.txBytes = Fn.txBytes ?? new Uint8Array()), (An.mode = Fn.mode ?? 0), An - }, - } - function Cn() { - return { txResponse: void 0 } - } - e.BroadcastTxResponse = { - encode(Fn, An = Jn.Writer.create()) { - return ( - Fn.txResponse !== void 0 && - nn.TxResponse.encode(Fn.txResponse, An.uint32(10).fork()).ldelim(), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Cn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.txResponse = nn.TxResponse.decode(Qn, Qn.uint32()) - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - txResponse: (0, In.isSet)(Fn.txResponse) ? nn.TxResponse.fromJSON(Fn.txResponse) : void 0, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.txResponse !== void 0 && - (An.txResponse = Fn.txResponse ? nn.TxResponse.toJSON(Fn.txResponse) : void 0), - An - ) - }, - fromPartial(Fn) { - const An = Cn() - return ( - (An.txResponse = - Fn.txResponse !== void 0 && Fn.txResponse !== null - ? nn.TxResponse.fromPartial(Fn.txResponse) - : void 0), - An - ) - }, - } - function Tn() { - return { tx: void 0, txBytes: new Uint8Array() } - } - e.SimulateRequest = { - encode(Fn, An = Jn.Writer.create()) { - return ( - Fn.tx !== void 0 && $.Tx.encode(Fn.tx, An.uint32(10).fork()).ldelim(), - Fn.txBytes.length !== 0 && An.uint32(18).bytes(Fn.txBytes), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Tn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.tx = $.Tx.decode(Qn, Qn.uint32()) - break - case 2: - Vn.txBytes = Qn.bytes() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - tx: (0, In.isSet)(Fn.tx) ? $.Tx.fromJSON(Fn.tx) : void 0, - txBytes: (0, In.isSet)(Fn.txBytes) ? (0, In.bytesFromBase64)(Fn.txBytes) : new Uint8Array(), - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.tx !== void 0 && (An.tx = Fn.tx ? $.Tx.toJSON(Fn.tx) : void 0), - Fn.txBytes !== void 0 && - (An.txBytes = (0, In.base64FromBytes)( - Fn.txBytes !== void 0 ? Fn.txBytes : new Uint8Array(), - )), - An - ) - }, - fromPartial(Fn) { - const An = Tn() - return ( - (An.tx = Fn.tx !== void 0 && Fn.tx !== null ? $.Tx.fromPartial(Fn.tx) : void 0), - (An.txBytes = Fn.txBytes ?? new Uint8Array()), - An - ) - }, - } - function Gn() { - return { gasInfo: void 0, result: void 0 } - } - e.SimulateResponse = { - encode(Fn, An = Jn.Writer.create()) { - return ( - Fn.gasInfo !== void 0 && nn.GasInfo.encode(Fn.gasInfo, An.uint32(10).fork()).ldelim(), - Fn.result !== void 0 && nn.Result.encode(Fn.result, An.uint32(18).fork()).ldelim(), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Gn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.gasInfo = nn.GasInfo.decode(Qn, Qn.uint32()) - break - case 2: - Vn.result = nn.Result.decode(Qn, Qn.uint32()) - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - gasInfo: (0, In.isSet)(Fn.gasInfo) ? nn.GasInfo.fromJSON(Fn.gasInfo) : void 0, - result: (0, In.isSet)(Fn.result) ? nn.Result.fromJSON(Fn.result) : void 0, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.gasInfo !== void 0 && (An.gasInfo = Fn.gasInfo ? nn.GasInfo.toJSON(Fn.gasInfo) : void 0), - Fn.result !== void 0 && (An.result = Fn.result ? nn.Result.toJSON(Fn.result) : void 0), - An - ) - }, - fromPartial(Fn) { - const An = Gn() - return ( - (An.gasInfo = - Fn.gasInfo !== void 0 && Fn.gasInfo !== null - ? nn.GasInfo.fromPartial(Fn.gasInfo) - : void 0), - (An.result = - Fn.result !== void 0 && Fn.result !== null ? nn.Result.fromPartial(Fn.result) : void 0), - An - ) - }, - } - function Sn() { - return { hash: '' } - } - e.GetTxRequest = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.hash !== '' && An.uint32(10).string(Fn.hash), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Sn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.hash = Qn.string() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { hash: (0, In.isSet)(Fn.hash) ? String(Fn.hash) : '' } - }, - toJSON(Fn) { - const An = {} - return Fn.hash !== void 0 && (An.hash = Fn.hash), An - }, - fromPartial(Fn) { - const An = Sn() - return (An.hash = Fn.hash ?? ''), An - }, - } - function Zn() { - return { tx: void 0, txResponse: void 0 } - } - e.GetTxResponse = { - encode(Fn, An = Jn.Writer.create()) { - return ( - Fn.tx !== void 0 && $.Tx.encode(Fn.tx, An.uint32(10).fork()).ldelim(), - Fn.txResponse !== void 0 && - nn.TxResponse.encode(Fn.txResponse, An.uint32(18).fork()).ldelim(), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Zn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.tx = $.Tx.decode(Qn, Qn.uint32()) - break - case 2: - Vn.txResponse = nn.TxResponse.decode(Qn, Qn.uint32()) - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - tx: (0, In.isSet)(Fn.tx) ? $.Tx.fromJSON(Fn.tx) : void 0, - txResponse: (0, In.isSet)(Fn.txResponse) ? nn.TxResponse.fromJSON(Fn.txResponse) : void 0, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.tx !== void 0 && (An.tx = Fn.tx ? $.Tx.toJSON(Fn.tx) : void 0), - Fn.txResponse !== void 0 && - (An.txResponse = Fn.txResponse ? nn.TxResponse.toJSON(Fn.txResponse) : void 0), - An - ) - }, - fromPartial(Fn) { - const An = Zn() - return ( - (An.tx = Fn.tx !== void 0 && Fn.tx !== null ? $.Tx.fromPartial(Fn.tx) : void 0), - (An.txResponse = - Fn.txResponse !== void 0 && Fn.txResponse !== null - ? nn.TxResponse.fromPartial(Fn.txResponse) - : void 0), - An - ) - }, - } - function tn() { - return { height: In.Long.ZERO, pagination: void 0 } - } - e.GetBlockWithTxsRequest = { - encode(Fn, An = Jn.Writer.create()) { - return ( - Fn.height.isZero() || An.uint32(8).int64(Fn.height), - Fn.pagination !== void 0 && - en.PageRequest.encode(Fn.pagination, An.uint32(18).fork()).ldelim(), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = tn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.height = Qn.int64() - break - case 2: - Vn.pagination = en.PageRequest.decode(Qn, Qn.uint32()) - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - height: (0, In.isSet)(Fn.height) ? In.Long.fromValue(Fn.height) : In.Long.ZERO, - pagination: (0, In.isSet)(Fn.pagination) ? en.PageRequest.fromJSON(Fn.pagination) : void 0, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.height !== void 0 && (An.height = (Fn.height || In.Long.ZERO).toString()), - Fn.pagination !== void 0 && - (An.pagination = Fn.pagination ? en.PageRequest.toJSON(Fn.pagination) : void 0), - An - ) - }, - fromPartial(Fn) { - const An = tn() - return ( - (An.height = - Fn.height !== void 0 && Fn.height !== null ? In.Long.fromValue(Fn.height) : In.Long.ZERO), - (An.pagination = - Fn.pagination !== void 0 && Fn.pagination !== null - ? en.PageRequest.fromPartial(Fn.pagination) - : void 0), - An - ) - }, - } - function En() { - return { txs: [], blockId: void 0, block: void 0, pagination: void 0 } - } - e.GetBlockWithTxsResponse = { - encode(Fn, An = Jn.Writer.create()) { - for (const Qn of Fn.txs) $.Tx.encode(Qn, An.uint32(10).fork()).ldelim() - return ( - Fn.blockId !== void 0 && sn.BlockID.encode(Fn.blockId, An.uint32(18).fork()).ldelim(), - Fn.block !== void 0 && gn.Block.encode(Fn.block, An.uint32(26).fork()).ldelim(), - Fn.pagination !== void 0 && - en.PageResponse.encode(Fn.pagination, An.uint32(34).fork()).ldelim(), - An - ) - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = En() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.txs.push($.Tx.decode(Qn, Qn.uint32())) - break - case 2: - Vn.blockId = sn.BlockID.decode(Qn, Qn.uint32()) - break - case 3: - Vn.block = gn.Block.decode(Qn, Qn.uint32()) - break - case 4: - Vn.pagination = en.PageResponse.decode(Qn, Qn.uint32()) - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - txs: Array.isArray(Fn?.txs) ? Fn.txs.map((An) => $.Tx.fromJSON(An)) : [], - blockId: (0, In.isSet)(Fn.blockId) ? sn.BlockID.fromJSON(Fn.blockId) : void 0, - block: (0, In.isSet)(Fn.block) ? gn.Block.fromJSON(Fn.block) : void 0, - pagination: (0, In.isSet)(Fn.pagination) ? en.PageResponse.fromJSON(Fn.pagination) : void 0, - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.txs ? (An.txs = Fn.txs.map((Qn) => (Qn ? $.Tx.toJSON(Qn) : void 0))) : (An.txs = []), - Fn.blockId !== void 0 && (An.blockId = Fn.blockId ? sn.BlockID.toJSON(Fn.blockId) : void 0), - Fn.block !== void 0 && (An.block = Fn.block ? gn.Block.toJSON(Fn.block) : void 0), - Fn.pagination !== void 0 && - (An.pagination = Fn.pagination ? en.PageResponse.toJSON(Fn.pagination) : void 0), - An - ) - }, - fromPartial(Fn) { - const An = En() - return ( - (An.txs = Fn.txs?.map((Qn) => $.Tx.fromPartial(Qn)) || []), - (An.blockId = - Fn.blockId !== void 0 && Fn.blockId !== null - ? sn.BlockID.fromPartial(Fn.blockId) - : void 0), - (An.block = - Fn.block !== void 0 && Fn.block !== null ? gn.Block.fromPartial(Fn.block) : void 0), - (An.pagination = - Fn.pagination !== void 0 && Fn.pagination !== null - ? en.PageResponse.fromPartial(Fn.pagination) - : void 0), - An - ) - }, - } - function Mn() { - return { txBytes: new Uint8Array() } - } - e.TxDecodeRequest = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.txBytes.length !== 0 && An.uint32(10).bytes(Fn.txBytes), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Mn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.txBytes = Qn.bytes() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - txBytes: (0, In.isSet)(Fn.txBytes) ? (0, In.bytesFromBase64)(Fn.txBytes) : new Uint8Array(), - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.txBytes !== void 0 && - (An.txBytes = (0, In.base64FromBytes)( - Fn.txBytes !== void 0 ? Fn.txBytes : new Uint8Array(), - )), - An - ) - }, - fromPartial(Fn) { - const An = Mn() - return (An.txBytes = Fn.txBytes ?? new Uint8Array()), An - }, - } - function Hn() { - return { tx: void 0 } - } - e.TxDecodeResponse = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.tx !== void 0 && $.Tx.encode(Fn.tx, An.uint32(10).fork()).ldelim(), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Hn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.tx = $.Tx.decode(Qn, Qn.uint32()) - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { tx: (0, In.isSet)(Fn.tx) ? $.Tx.fromJSON(Fn.tx) : void 0 } - }, - toJSON(Fn) { - const An = {} - return Fn.tx !== void 0 && (An.tx = Fn.tx ? $.Tx.toJSON(Fn.tx) : void 0), An - }, - fromPartial(Fn) { - const An = Hn() - return (An.tx = Fn.tx !== void 0 && Fn.tx !== null ? $.Tx.fromPartial(Fn.tx) : void 0), An - }, - } - function un() { - return { tx: void 0 } - } - e.TxEncodeRequest = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.tx !== void 0 && $.Tx.encode(Fn.tx, An.uint32(10).fork()).ldelim(), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = un() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.tx = $.Tx.decode(Qn, Qn.uint32()) - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { tx: (0, In.isSet)(Fn.tx) ? $.Tx.fromJSON(Fn.tx) : void 0 } - }, - toJSON(Fn) { - const An = {} - return Fn.tx !== void 0 && (An.tx = Fn.tx ? $.Tx.toJSON(Fn.tx) : void 0), An - }, - fromPartial(Fn) { - const An = un() - return (An.tx = Fn.tx !== void 0 && Fn.tx !== null ? $.Tx.fromPartial(Fn.tx) : void 0), An - }, - } - function dn() { - return { txBytes: new Uint8Array() } - } - e.TxEncodeResponse = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.txBytes.length !== 0 && An.uint32(10).bytes(Fn.txBytes), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = dn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.txBytes = Qn.bytes() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - txBytes: (0, In.isSet)(Fn.txBytes) ? (0, In.bytesFromBase64)(Fn.txBytes) : new Uint8Array(), - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.txBytes !== void 0 && - (An.txBytes = (0, In.base64FromBytes)( - Fn.txBytes !== void 0 ? Fn.txBytes : new Uint8Array(), - )), - An - ) - }, - fromPartial(Fn) { - const An = dn() - return (An.txBytes = Fn.txBytes ?? new Uint8Array()), An - }, - } - function Nn() { - return { aminoJson: '' } - } - e.TxEncodeAminoRequest = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.aminoJson !== '' && An.uint32(10).string(Fn.aminoJson), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Nn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.aminoJson = Qn.string() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { aminoJson: (0, In.isSet)(Fn.aminoJson) ? String(Fn.aminoJson) : '' } - }, - toJSON(Fn) { - const An = {} - return Fn.aminoJson !== void 0 && (An.aminoJson = Fn.aminoJson), An - }, - fromPartial(Fn) { - const An = Nn() - return (An.aminoJson = Fn.aminoJson ?? ''), An - }, - } - function fn() { - return { aminoBinary: new Uint8Array() } - } - e.TxEncodeAminoResponse = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.aminoBinary.length !== 0 && An.uint32(10).bytes(Fn.aminoBinary), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = fn() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.aminoBinary = Qn.bytes() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - aminoBinary: (0, In.isSet)(Fn.aminoBinary) - ? (0, In.bytesFromBase64)(Fn.aminoBinary) - : new Uint8Array(), - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.aminoBinary !== void 0 && - (An.aminoBinary = (0, In.base64FromBytes)( - Fn.aminoBinary !== void 0 ? Fn.aminoBinary : new Uint8Array(), - )), - An - ) - }, - fromPartial(Fn) { - const An = fn() - return (An.aminoBinary = Fn.aminoBinary ?? new Uint8Array()), An - }, - } - function _n() { - return { aminoBinary: new Uint8Array() } - } - e.TxDecodeAminoRequest = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.aminoBinary.length !== 0 && An.uint32(10).bytes(Fn.aminoBinary), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = _n() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.aminoBinary = Qn.bytes() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { - aminoBinary: (0, In.isSet)(Fn.aminoBinary) - ? (0, In.bytesFromBase64)(Fn.aminoBinary) - : new Uint8Array(), - } - }, - toJSON(Fn) { - const An = {} - return ( - Fn.aminoBinary !== void 0 && - (An.aminoBinary = (0, In.base64FromBytes)( - Fn.aminoBinary !== void 0 ? Fn.aminoBinary : new Uint8Array(), - )), - An - ) - }, - fromPartial(Fn) { - const An = _n() - return (An.aminoBinary = Fn.aminoBinary ?? new Uint8Array()), An - }, - } - function Ln() { - return { aminoJson: '' } - } - e.TxDecodeAminoResponse = { - encode(Fn, An = Jn.Writer.create()) { - return Fn.aminoJson !== '' && An.uint32(10).string(Fn.aminoJson), An - }, - decode(Fn, An) { - const Qn = Fn instanceof Jn.Reader ? Fn : new Jn.Reader(Fn) - let Rn = An === void 0 ? Qn.len : Qn.pos + An - const Vn = Ln() - for (; Qn.pos < Rn; ) { - const Wn = Qn.uint32() - switch (Wn >>> 3) { - case 1: - Vn.aminoJson = Qn.string() - break - default: - Qn.skipType(Wn & 7) - break - } - } - return Vn - }, - fromJSON(Fn) { - return { aminoJson: (0, In.isSet)(Fn.aminoJson) ? String(Fn.aminoJson) : '' } - }, - toJSON(Fn) { - const An = {} - return Fn.aminoJson !== void 0 && (An.aminoJson = Fn.aminoJson), An - }, - fromPartial(Fn) { - const An = Ln() - return (An.aminoJson = Fn.aminoJson ?? ''), An - }, - } - class zn { - constructor(An) { - ;(this.rpc = An), - (this.Simulate = this.Simulate.bind(this)), - (this.GetTx = this.GetTx.bind(this)), - (this.BroadcastTx = this.BroadcastTx.bind(this)), - (this.GetTxsEvent = this.GetTxsEvent.bind(this)), - (this.GetBlockWithTxs = this.GetBlockWithTxs.bind(this)), - (this.TxDecode = this.TxDecode.bind(this)), - (this.TxEncode = this.TxEncode.bind(this)), - (this.TxEncodeAmino = this.TxEncodeAmino.bind(this)), - (this.TxDecodeAmino = this.TxDecodeAmino.bind(this)) - } - Simulate(An) { - const Qn = e.SimulateRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'Simulate', Qn) - .then((Vn) => e.SimulateResponse.decode(new Jn.Reader(Vn))) - } - GetTx(An) { - const Qn = e.GetTxRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'GetTx', Qn) - .then((Vn) => e.GetTxResponse.decode(new Jn.Reader(Vn))) - } - BroadcastTx(An) { - const Qn = e.BroadcastTxRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'BroadcastTx', Qn) - .then((Vn) => e.BroadcastTxResponse.decode(new Jn.Reader(Vn))) - } - GetTxsEvent(An) { - const Qn = e.GetTxsEventRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'GetTxsEvent', Qn) - .then((Vn) => e.GetTxsEventResponse.decode(new Jn.Reader(Vn))) - } - GetBlockWithTxs(An) { - const Qn = e.GetBlockWithTxsRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'GetBlockWithTxs', Qn) - .then((Vn) => e.GetBlockWithTxsResponse.decode(new Jn.Reader(Vn))) - } - TxDecode(An) { - const Qn = e.TxDecodeRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'TxDecode', Qn) - .then((Vn) => e.TxDecodeResponse.decode(new Jn.Reader(Vn))) - } - TxEncode(An) { - const Qn = e.TxEncodeRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'TxEncode', Qn) - .then((Vn) => e.TxEncodeResponse.decode(new Jn.Reader(Vn))) - } - TxEncodeAmino(An) { - const Qn = e.TxEncodeAminoRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'TxEncodeAmino', Qn) - .then((Vn) => e.TxEncodeAminoResponse.decode(new Jn.Reader(Vn))) - } - TxDecodeAmino(An) { - const Qn = e.TxDecodeAminoRequest.encode(An).finish() - return this.rpc - .request('cosmos.tx.v1beta1.Service', 'TxDecodeAmino', Qn) - .then((Vn) => e.TxDecodeAminoResponse.decode(new Jn.Reader(Vn))) - } - } - e.ServiceClientImpl = zn -})(service) -var __importDefault$6 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(queries$1, '__esModule', { value: !0 }) -queries$1.setupTxExtension = void 0 -const proto_signing_1$1 = build$8, - signing_1$1 = signing$1, - service_1 = service, - tx_1$3 = tx$e, - long_1$4 = __importDefault$6(long$1), - queryclient_1$1 = queryclient$1 -function setupTxExtension(e) { - const o = (0, queryclient_1$1.createProtobufRpcClient)(e), - _ = new service_1.ServiceClientImpl(o) - return { - tx: { - getTx: async (b) => { - const $ = { hash: b } - return await _.GetTx($) - }, - simulate: async (b, $, en, nn) => { - const sn = tx_1$3.Tx.fromPartial({ - authInfo: tx_1$3.AuthInfo.fromPartial({ - fee: tx_1$3.Fee.fromPartial({}), - signerInfos: [ - { - publicKey: (0, proto_signing_1$1.encodePubkey)(en), - sequence: long_1$4.default.fromNumber(nn, !0), - modeInfo: { single: { mode: signing_1$1.SignMode.SIGN_MODE_UNSPECIFIED } }, - }, - ], - }), - body: tx_1$3.TxBody.fromPartial({ messages: Array.from(b), memo: $ }), - signatures: [new Uint8Array()], - }), - gn = service_1.SimulateRequest.fromPartial({ txBytes: tx_1$3.Tx.encode(sn).finish() }) - return await _.Simulate(gn) - }, - }, - } -} -queries$1.setupTxExtension = setupTxExtension -var aminomessages$1 = {}, - __importDefault$5 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(aminomessages$1, '__esModule', { value: !0 }) -aminomessages$1.createVestingAminoConverters = aminomessages$1.isAminoMsgCreateVestingAccount = - void 0 -const long_1$3 = __importDefault$5(long$1) -function isAminoMsgCreateVestingAccount(e) { - return e.type === 'cosmos-sdk/MsgCreateVestingAccount' -} -aminomessages$1.isAminoMsgCreateVestingAccount = isAminoMsgCreateVestingAccount -function createVestingAminoConverters() { - return { - '/cosmos.vesting.v1beta1.MsgCreateVestingAccount': { - aminoType: 'cosmos-sdk/MsgCreateVestingAccount', - toAmino: ({ fromAddress: e, toAddress: o, amount: _, endTime: b, delayed: $ }) => ({ - from_address: e, - to_address: o, - amount: [..._], - end_time: b.toString(), - delayed: $, - }), - fromAmino: ({ from_address: e, to_address: o, amount: _, end_time: b, delayed: $ }) => ({ - fromAddress: e, - toAddress: o, - amount: [..._], - endTime: long_1$3.default.fromString(b), - delayed: $, - }), - }, - } -} -aminomessages$1.createVestingAminoConverters = createVestingAminoConverters -var messages$1 = {}, - tx$1 = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn) - var yn = Object.getOwnPropertyDescriptor(Bn, kn) - ;(!yn || ('get' in yn ? !Bn.__esModule : yn.writable || yn.configurable)) && - (yn = { - enumerable: !0, - get: function () { - return Bn[kn] - }, - }), - Object.defineProperty(mn, ln, yn) - } - : function (mn, Bn, kn, ln) { - ln === void 0 && (ln = kn), (mn[ln] = Bn[kn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (mn, Bn) { - Object.defineProperty(mn, 'default', { enumerable: !0, value: Bn }) - } - : function (mn, Bn) { - mn.default = Bn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (mn) { - if (mn && mn.__esModule) return mn - var Bn = {} - if (mn != null) - for (var kn in mn) - kn !== 'default' && Object.prototype.hasOwnProperty.call(mn, kn) && o(Bn, mn, kn) - return _(Bn, mn), Bn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgCreatePeriodicVestingAccountResponse = - e.MsgCreatePeriodicVestingAccount = - e.MsgCreatePermanentLockedAccountResponse = - e.MsgCreatePermanentLockedAccount = - e.MsgCreateVestingAccountResponse = - e.MsgCreateVestingAccount = - e.protobufPackage = - void 0) - const $ = coin$1, - en = vesting, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmos.vesting.v1beta1' - function gn() { - return { fromAddress: '', toAddress: '', amount: [], endTime: nn.Long.ZERO, delayed: !1 } - } - e.MsgCreateVestingAccount = { - encode(mn, Bn = sn.Writer.create()) { - mn.fromAddress !== '' && Bn.uint32(10).string(mn.fromAddress), - mn.toAddress !== '' && Bn.uint32(18).string(mn.toAddress) - for (const kn of mn.amount) $.Coin.encode(kn, Bn.uint32(26).fork()).ldelim() - return ( - mn.endTime.isZero() || Bn.uint32(32).int64(mn.endTime), - mn.delayed === !0 && Bn.uint32(40).bool(mn.delayed), - Bn - ) - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = gn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.fromAddress = kn.string() - break - case 2: - yn.toAddress = kn.string() - break - case 3: - yn.amount.push($.Coin.decode(kn, kn.uint32())) - break - case 4: - yn.endTime = kn.int64() - break - case 5: - yn.delayed = kn.bool() - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - fromAddress: (0, nn.isSet)(mn.fromAddress) ? String(mn.fromAddress) : '', - toAddress: (0, nn.isSet)(mn.toAddress) ? String(mn.toAddress) : '', - amount: Array.isArray(mn?.amount) ? mn.amount.map((Bn) => $.Coin.fromJSON(Bn)) : [], - endTime: (0, nn.isSet)(mn.endTime) ? nn.Long.fromValue(mn.endTime) : nn.Long.ZERO, - delayed: (0, nn.isSet)(mn.delayed) ? Boolean(mn.delayed) : !1, - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.fromAddress !== void 0 && (Bn.fromAddress = mn.fromAddress), - mn.toAddress !== void 0 && (Bn.toAddress = mn.toAddress), - mn.amount - ? (Bn.amount = mn.amount.map((kn) => (kn ? $.Coin.toJSON(kn) : void 0))) - : (Bn.amount = []), - mn.endTime !== void 0 && (Bn.endTime = (mn.endTime || nn.Long.ZERO).toString()), - mn.delayed !== void 0 && (Bn.delayed = mn.delayed), - Bn - ) - }, - fromPartial(mn) { - const Bn = gn() - return ( - (Bn.fromAddress = mn.fromAddress ?? ''), - (Bn.toAddress = mn.toAddress ?? ''), - (Bn.amount = mn.amount?.map((kn) => $.Coin.fromPartial(kn)) || []), - (Bn.endTime = - mn.endTime !== void 0 && mn.endTime !== null - ? nn.Long.fromValue(mn.endTime) - : nn.Long.ZERO), - (Bn.delayed = mn.delayed ?? !1), - Bn - ) - }, - } - function In() { - return {} - } - e.MsgCreateVestingAccountResponse = { - encode(mn, Bn = sn.Writer.create()) { - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = In() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return {} - }, - toJSON(mn) { - return {} - }, - fromPartial(mn) { - return In() - }, - } - function Jn() { - return { fromAddress: '', toAddress: '', amount: [] } - } - e.MsgCreatePermanentLockedAccount = { - encode(mn, Bn = sn.Writer.create()) { - mn.fromAddress !== '' && Bn.uint32(10).string(mn.fromAddress), - mn.toAddress !== '' && Bn.uint32(18).string(mn.toAddress) - for (const kn of mn.amount) $.Coin.encode(kn, Bn.uint32(26).fork()).ldelim() - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Jn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.fromAddress = kn.string() - break - case 2: - yn.toAddress = kn.string() - break - case 3: - yn.amount.push($.Coin.decode(kn, kn.uint32())) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - fromAddress: (0, nn.isSet)(mn.fromAddress) ? String(mn.fromAddress) : '', - toAddress: (0, nn.isSet)(mn.toAddress) ? String(mn.toAddress) : '', - amount: Array.isArray(mn?.amount) ? mn.amount.map((Bn) => $.Coin.fromJSON(Bn)) : [], - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.fromAddress !== void 0 && (Bn.fromAddress = mn.fromAddress), - mn.toAddress !== void 0 && (Bn.toAddress = mn.toAddress), - mn.amount - ? (Bn.amount = mn.amount.map((kn) => (kn ? $.Coin.toJSON(kn) : void 0))) - : (Bn.amount = []), - Bn - ) - }, - fromPartial(mn) { - const Bn = Jn() - return ( - (Bn.fromAddress = mn.fromAddress ?? ''), - (Bn.toAddress = mn.toAddress ?? ''), - (Bn.amount = mn.amount?.map((kn) => $.Coin.fromPartial(kn)) || []), - Bn - ) - }, - } - function qn() { - return {} - } - e.MsgCreatePermanentLockedAccountResponse = { - encode(mn, Bn = sn.Writer.create()) { - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = qn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return {} - }, - toJSON(mn) { - return {} - }, - fromPartial(mn) { - return qn() - }, - } - function Kn() { - return { fromAddress: '', toAddress: '', startTime: nn.Long.ZERO, vestingPeriods: [] } - } - e.MsgCreatePeriodicVestingAccount = { - encode(mn, Bn = sn.Writer.create()) { - mn.fromAddress !== '' && Bn.uint32(10).string(mn.fromAddress), - mn.toAddress !== '' && Bn.uint32(18).string(mn.toAddress), - mn.startTime.isZero() || Bn.uint32(24).int64(mn.startTime) - for (const kn of mn.vestingPeriods) en.Period.encode(kn, Bn.uint32(34).fork()).ldelim() - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = Kn() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - case 1: - yn.fromAddress = kn.string() - break - case 2: - yn.toAddress = kn.string() - break - case 3: - yn.startTime = kn.int64() - break - case 4: - yn.vestingPeriods.push(en.Period.decode(kn, kn.uint32())) - break - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return { - fromAddress: (0, nn.isSet)(mn.fromAddress) ? String(mn.fromAddress) : '', - toAddress: (0, nn.isSet)(mn.toAddress) ? String(mn.toAddress) : '', - startTime: (0, nn.isSet)(mn.startTime) ? nn.Long.fromValue(mn.startTime) : nn.Long.ZERO, - vestingPeriods: Array.isArray(mn?.vestingPeriods) - ? mn.vestingPeriods.map((Bn) => en.Period.fromJSON(Bn)) - : [], - } - }, - toJSON(mn) { - const Bn = {} - return ( - mn.fromAddress !== void 0 && (Bn.fromAddress = mn.fromAddress), - mn.toAddress !== void 0 && (Bn.toAddress = mn.toAddress), - mn.startTime !== void 0 && (Bn.startTime = (mn.startTime || nn.Long.ZERO).toString()), - mn.vestingPeriods - ? (Bn.vestingPeriods = mn.vestingPeriods.map((kn) => - kn ? en.Period.toJSON(kn) : void 0, - )) - : (Bn.vestingPeriods = []), - Bn - ) - }, - fromPartial(mn) { - const Bn = Kn() - return ( - (Bn.fromAddress = mn.fromAddress ?? ''), - (Bn.toAddress = mn.toAddress ?? ''), - (Bn.startTime = - mn.startTime !== void 0 && mn.startTime !== null - ? nn.Long.fromValue(mn.startTime) - : nn.Long.ZERO), - (Bn.vestingPeriods = mn.vestingPeriods?.map((kn) => en.Period.fromPartial(kn)) || []), - Bn - ) - }, - } - function an() { - return {} - } - e.MsgCreatePeriodicVestingAccountResponse = { - encode(mn, Bn = sn.Writer.create()) { - return Bn - }, - decode(mn, Bn) { - const kn = mn instanceof sn.Reader ? mn : new sn.Reader(mn) - let ln = Bn === void 0 ? kn.len : kn.pos + Bn - const yn = an() - for (; kn.pos < ln; ) { - const Cn = kn.uint32() - switch (Cn >>> 3) { - default: - kn.skipType(Cn & 7) - break - } - } - return yn - }, - fromJSON(mn) { - return {} - }, - toJSON(mn) { - return {} - }, - fromPartial(mn) { - return an() - }, - } - class xn { - constructor(Bn) { - ;(this.rpc = Bn), - (this.CreateVestingAccount = this.CreateVestingAccount.bind(this)), - (this.CreatePermanentLockedAccount = this.CreatePermanentLockedAccount.bind(this)), - (this.CreatePeriodicVestingAccount = this.CreatePeriodicVestingAccount.bind(this)) - } - CreateVestingAccount(Bn) { - const kn = e.MsgCreateVestingAccount.encode(Bn).finish() - return this.rpc - .request('cosmos.vesting.v1beta1.Msg', 'CreateVestingAccount', kn) - .then((yn) => e.MsgCreateVestingAccountResponse.decode(new sn.Reader(yn))) - } - CreatePermanentLockedAccount(Bn) { - const kn = e.MsgCreatePermanentLockedAccount.encode(Bn).finish() - return this.rpc - .request('cosmos.vesting.v1beta1.Msg', 'CreatePermanentLockedAccount', kn) - .then((yn) => e.MsgCreatePermanentLockedAccountResponse.decode(new sn.Reader(yn))) - } - CreatePeriodicVestingAccount(Bn) { - const kn = e.MsgCreatePeriodicVestingAccount.encode(Bn).finish() - return this.rpc - .request('cosmos.vesting.v1beta1.Msg', 'CreatePeriodicVestingAccount', kn) - .then((yn) => e.MsgCreatePeriodicVestingAccountResponse.decode(new sn.Reader(yn))) - } - } - e.MsgClientImpl = xn -})(tx$1) -Object.defineProperty(messages$1, '__esModule', { value: !0 }) -messages$1.vestingTypes = void 0 -const tx_1$2 = tx$1 -messages$1.vestingTypes = [ - ['/cosmos.vesting.v1beta1.MsgCreateVestingAccount', tx_1$2.MsgCreateVestingAccount], -] -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.isAminoMsgCreateValidator = - e.isAminoMsgBeginRedelegate = - e.createStakingAminoConverters = - e.setupSlashingExtension = - e.isAminoMsgUnjail = - e.createSlashingAminoConverters = - e.setupMintExtension = - e.setupIbcExtension = - e.isMsgTransferEncodeObject = - e.ibcTypes = - e.isAminoMsgTransfer = - e.createIbcAminoConverters = - e.groupTypes = - e.createGroupAminoConverters = - e.setupGovExtension = - e.isMsgVoteWeightedEncodeObject = - e.isMsgVoteEncodeObject = - e.isMsgSubmitProposalEncodeObject = - e.isMsgDepositEncodeObject = - e.govTypes = - e.isAminoMsgVoteWeighted = - e.isAminoMsgVote = - e.isAminoMsgSubmitProposal = - e.isAminoMsgDeposit = - e.createGovAminoConverters = - e.setupFeegrantExtension = - e.feegrantTypes = - e.createFeegrantAminoConverters = - e.isAminoMsgSubmitEvidence = - e.createEvidenceAminoConverters = - e.setupDistributionExtension = - e.isMsgWithdrawDelegatorRewardEncodeObject = - e.distributionTypes = - e.isAminoMsgWithdrawValidatorCommission = - e.isAminoMsgWithdrawDelegatorReward = - e.isAminoMsgSetWithdrawAddress = - e.isAminoMsgFundCommunityPool = - e.createDistributionAminoConverters = - e.isAminoMsgVerifyInvariant = - e.createCrysisAminoConverters = - e.setupBankExtension = - e.isMsgSendEncodeObject = - e.bankTypes = - e.isAminoMsgSend = - e.isAminoMsgMultiSend = - e.createBankAminoConverters = - e.setupAuthzExtension = - e.authzTypes = - e.createAuthzAminoConverters = - e.setupAuthExtension = - void 0), - (e.vestingTypes = - e.isAminoMsgCreateVestingAccount = - e.createVestingAminoConverters = - e.setupTxExtension = - e.setupStakingExtension = - e.stakingTypes = - e.isMsgUndelegateEncodeObject = - e.isMsgEditValidatorEncodeObject = - e.isMsgDelegateEncodeObject = - e.isMsgCreateValidatorEncodeObject = - e.isMsgBeginRedelegateEncodeObject = - e.isAminoMsgUndelegate = - e.isAminoMsgEditValidator = - e.isAminoMsgDelegate = - void 0) - var o = queries$b - Object.defineProperty(e, 'setupAuthExtension', { - enumerable: !0, - get: function () { - return o.setupAuthExtension - }, - }) - var _ = aminomessages$c - Object.defineProperty(e, 'createAuthzAminoConverters', { - enumerable: !0, - get: function () { - return _.createAuthzAminoConverters - }, - }) - var b = messages$9 - Object.defineProperty(e, 'authzTypes', { - enumerable: !0, - get: function () { - return b.authzTypes - }, - }) - var $ = queries$a - Object.defineProperty(e, 'setupAuthzExtension', { - enumerable: !0, - get: function () { - return $.setupAuthzExtension - }, - }) - var en = aminomessages$b - Object.defineProperty(e, 'createBankAminoConverters', { - enumerable: !0, - get: function () { - return en.createBankAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgMultiSend', { - enumerable: !0, - get: function () { - return en.isAminoMsgMultiSend - }, - }), - Object.defineProperty(e, 'isAminoMsgSend', { - enumerable: !0, - get: function () { - return en.isAminoMsgSend - }, - }) - var nn = messages$8 - Object.defineProperty(e, 'bankTypes', { - enumerable: !0, - get: function () { - return nn.bankTypes - }, - }), - Object.defineProperty(e, 'isMsgSendEncodeObject', { - enumerable: !0, - get: function () { - return nn.isMsgSendEncodeObject - }, - }) - var sn = queries$9 - Object.defineProperty(e, 'setupBankExtension', { - enumerable: !0, - get: function () { - return sn.setupBankExtension - }, - }) - var gn = aminomessages$a - Object.defineProperty(e, 'createCrysisAminoConverters', { - enumerable: !0, - get: function () { - return gn.createCrysisAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgVerifyInvariant', { - enumerable: !0, - get: function () { - return gn.isAminoMsgVerifyInvariant - }, - }) - var In = aminomessages$9 - Object.defineProperty(e, 'createDistributionAminoConverters', { - enumerable: !0, - get: function () { - return In.createDistributionAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgFundCommunityPool', { - enumerable: !0, - get: function () { - return In.isAminoMsgFundCommunityPool - }, - }), - Object.defineProperty(e, 'isAminoMsgSetWithdrawAddress', { - enumerable: !0, - get: function () { - return In.isAminoMsgSetWithdrawAddress - }, - }), - Object.defineProperty(e, 'isAminoMsgWithdrawDelegatorReward', { - enumerable: !0, - get: function () { - return In.isAminoMsgWithdrawDelegatorReward - }, - }), - Object.defineProperty(e, 'isAminoMsgWithdrawValidatorCommission', { - enumerable: !0, - get: function () { - return In.isAminoMsgWithdrawValidatorCommission - }, - }) - var Jn = messages$7 - Object.defineProperty(e, 'distributionTypes', { - enumerable: !0, - get: function () { - return Jn.distributionTypes - }, - }), - Object.defineProperty(e, 'isMsgWithdrawDelegatorRewardEncodeObject', { - enumerable: !0, - get: function () { - return Jn.isMsgWithdrawDelegatorRewardEncodeObject - }, - }) - var qn = queries$8 - Object.defineProperty(e, 'setupDistributionExtension', { - enumerable: !0, - get: function () { - return qn.setupDistributionExtension - }, - }) - var Kn = aminomessages$8 - Object.defineProperty(e, 'createEvidenceAminoConverters', { - enumerable: !0, - get: function () { - return Kn.createEvidenceAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgSubmitEvidence', { - enumerable: !0, - get: function () { - return Kn.isAminoMsgSubmitEvidence - }, - }) - var an = aminomessages$7 - Object.defineProperty(e, 'createFeegrantAminoConverters', { - enumerable: !0, - get: function () { - return an.createFeegrantAminoConverters - }, - }) - var xn = messages$6 - Object.defineProperty(e, 'feegrantTypes', { - enumerable: !0, - get: function () { - return xn.feegrantTypes - }, - }) - var mn = queries$7 - Object.defineProperty(e, 'setupFeegrantExtension', { - enumerable: !0, - get: function () { - return mn.setupFeegrantExtension - }, - }) - var Bn = aminomessages$6 - Object.defineProperty(e, 'createGovAminoConverters', { - enumerable: !0, - get: function () { - return Bn.createGovAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgDeposit', { - enumerable: !0, - get: function () { - return Bn.isAminoMsgDeposit - }, - }), - Object.defineProperty(e, 'isAminoMsgSubmitProposal', { - enumerable: !0, - get: function () { - return Bn.isAminoMsgSubmitProposal - }, - }), - Object.defineProperty(e, 'isAminoMsgVote', { - enumerable: !0, - get: function () { - return Bn.isAminoMsgVote - }, - }), - Object.defineProperty(e, 'isAminoMsgVoteWeighted', { - enumerable: !0, - get: function () { - return Bn.isAminoMsgVoteWeighted - }, - }) - var kn = messages$5 - Object.defineProperty(e, 'govTypes', { - enumerable: !0, - get: function () { - return kn.govTypes - }, - }), - Object.defineProperty(e, 'isMsgDepositEncodeObject', { - enumerable: !0, - get: function () { - return kn.isMsgDepositEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgSubmitProposalEncodeObject', { - enumerable: !0, - get: function () { - return kn.isMsgSubmitProposalEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgVoteEncodeObject', { - enumerable: !0, - get: function () { - return kn.isMsgVoteEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgVoteWeightedEncodeObject', { - enumerable: !0, - get: function () { - return kn.isMsgVoteWeightedEncodeObject - }, - }) - var ln = queries$6 - Object.defineProperty(e, 'setupGovExtension', { - enumerable: !0, - get: function () { - return ln.setupGovExtension - }, - }) - var yn = aminomessages$5 - Object.defineProperty(e, 'createGroupAminoConverters', { - enumerable: !0, - get: function () { - return yn.createGroupAminoConverters - }, - }) - var Cn = messages$4 - Object.defineProperty(e, 'groupTypes', { - enumerable: !0, - get: function () { - return Cn.groupTypes - }, - }) - var Tn = aminomessages$4 - Object.defineProperty(e, 'createIbcAminoConverters', { - enumerable: !0, - get: function () { - return Tn.createIbcAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgTransfer', { - enumerable: !0, - get: function () { - return Tn.isAminoMsgTransfer - }, - }) - var Gn = messages$3 - Object.defineProperty(e, 'ibcTypes', { - enumerable: !0, - get: function () { - return Gn.ibcTypes - }, - }), - Object.defineProperty(e, 'isMsgTransferEncodeObject', { - enumerable: !0, - get: function () { - return Gn.isMsgTransferEncodeObject - }, - }) - var Sn = queries$5 - Object.defineProperty(e, 'setupIbcExtension', { - enumerable: !0, - get: function () { - return Sn.setupIbcExtension - }, - }) - var Zn = queries$4 - Object.defineProperty(e, 'setupMintExtension', { - enumerable: !0, - get: function () { - return Zn.setupMintExtension - }, - }) - var tn = aminomessages$3 - Object.defineProperty(e, 'createSlashingAminoConverters', { - enumerable: !0, - get: function () { - return tn.createSlashingAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgUnjail', { - enumerable: !0, - get: function () { - return tn.isAminoMsgUnjail - }, - }) - var En = queries$3 - Object.defineProperty(e, 'setupSlashingExtension', { - enumerable: !0, - get: function () { - return En.setupSlashingExtension - }, - }) - var Mn = aminomessages$2 - Object.defineProperty(e, 'createStakingAminoConverters', { - enumerable: !0, - get: function () { - return Mn.createStakingAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgBeginRedelegate', { - enumerable: !0, - get: function () { - return Mn.isAminoMsgBeginRedelegate - }, - }), - Object.defineProperty(e, 'isAminoMsgCreateValidator', { - enumerable: !0, - get: function () { - return Mn.isAminoMsgCreateValidator - }, - }), - Object.defineProperty(e, 'isAminoMsgDelegate', { - enumerable: !0, - get: function () { - return Mn.isAminoMsgDelegate - }, - }), - Object.defineProperty(e, 'isAminoMsgEditValidator', { - enumerable: !0, - get: function () { - return Mn.isAminoMsgEditValidator - }, - }), - Object.defineProperty(e, 'isAminoMsgUndelegate', { - enumerable: !0, - get: function () { - return Mn.isAminoMsgUndelegate - }, - }) - var Hn = messages$2 - Object.defineProperty(e, 'isMsgBeginRedelegateEncodeObject', { - enumerable: !0, - get: function () { - return Hn.isMsgBeginRedelegateEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgCreateValidatorEncodeObject', { - enumerable: !0, - get: function () { - return Hn.isMsgCreateValidatorEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgDelegateEncodeObject', { - enumerable: !0, - get: function () { - return Hn.isMsgDelegateEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgEditValidatorEncodeObject', { - enumerable: !0, - get: function () { - return Hn.isMsgEditValidatorEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgUndelegateEncodeObject', { - enumerable: !0, - get: function () { - return Hn.isMsgUndelegateEncodeObject - }, - }), - Object.defineProperty(e, 'stakingTypes', { - enumerable: !0, - get: function () { - return Hn.stakingTypes - }, - }) - var un = queries$2 - Object.defineProperty(e, 'setupStakingExtension', { - enumerable: !0, - get: function () { - return un.setupStakingExtension - }, - }) - var dn = queries$1 - Object.defineProperty(e, 'setupTxExtension', { - enumerable: !0, - get: function () { - return dn.setupTxExtension - }, - }) - var Nn = aminomessages$1 - Object.defineProperty(e, 'createVestingAminoConverters', { - enumerable: !0, - get: function () { - return Nn.createVestingAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgCreateVestingAccount', { - enumerable: !0, - get: function () { - return Nn.isAminoMsgCreateVestingAccount - }, - }) - var fn = messages$1 - Object.defineProperty(e, 'vestingTypes', { - enumerable: !0, - get: function () { - return fn.vestingTypes - }, - }) -})(modules$1) -var multisignature = {}, - __importDefault$4 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(multisignature, '__esModule', { value: !0 }) -multisignature.makeMultisignedTxBytes = - multisignature.makeMultisignedTx = - multisignature.makeCompactBitArray = - void 0 -const amino_1$1 = build$7, - encoding_1$c = build$b, - proto_signing_1 = build$8, - multisig_1 = multisig$1, - signing_1 = signing$1, - tx_1$1 = tx$e, - tx_2 = tx$e, - long_1$2 = __importDefault$4(long$1) -function makeCompactBitArray(e) { - const o = Math.ceil(e.length / 8), - _ = e.length - Math.floor(e.length / 8) * 8, - b = new Uint8Array(o) - return ( - e.forEach(($, en) => { - const nn = Math.floor(en / 8), - sn = en % 8 - $ && (b[nn] |= 1 << (8 - 1 - sn)) - }), - multisig_1.CompactBitArray.fromPartial({ elems: b, extraBitsStored: _ }) - ) -} -multisignature.makeCompactBitArray = makeCompactBitArray -function makeMultisignedTx(e, o, _, b, $) { - const en = Array.from($.keys()), - nn = (0, encoding_1$c.fromBech32)(en[0]).prefix, - sn = Array(e.value.pubkeys.length).fill(!1), - gn = new Array() - for (let an = 0; an < e.value.pubkeys.length; an++) { - const xn = (0, amino_1$1.pubkeyToAddress)(e.value.pubkeys[an], nn), - mn = $.get(xn) - mn && ((sn[an] = !0), gn.push(mn)) - } - const In = { - publicKey: (0, proto_signing_1.encodePubkey)(e), - modeInfo: { - multi: { - bitarray: makeCompactBitArray(sn), - modeInfos: gn.map((an) => ({ - single: { mode: signing_1.SignMode.SIGN_MODE_LEGACY_AMINO_JSON }, - })), - }, - }, - sequence: long_1$2.default.fromNumber(o), - }, - Jn = tx_1$1.AuthInfo.fromPartial({ - signerInfos: [In], - fee: { amount: [..._.amount], gasLimit: long_1$2.default.fromString(_.gas) }, - }), - qn = tx_1$1.AuthInfo.encode(Jn).finish() - return tx_2.TxRaw.fromPartial({ - bodyBytes: b, - authInfoBytes: qn, - signatures: [ - multisig_1.MultiSignature.encode( - multisig_1.MultiSignature.fromPartial({ signatures: gn }), - ).finish(), - ], - }) -} -multisignature.makeMultisignedTx = makeMultisignedTx -function makeMultisignedTxBytes(e, o, _, b, $) { - const en = makeMultisignedTx(e, o, _, b, $) - return Uint8Array.from(tx_2.TxRaw.encode(en).finish()) -} -multisignature.makeMultisignedTxBytes = makeMultisignedTxBytes -var signingstargateclient = {}, - build$2 = {}, - addresses = {} -Object.defineProperty(addresses, '__esModule', { value: !0 }) -addresses.pubkeyToAddress = - addresses.pubkeyToRawAddress = - addresses.rawSecp256k1PubkeyToRawAddress = - addresses.rawEd25519PubkeyToRawAddress = - void 0 -const crypto_1$2 = build$6, - encoding_1$b = build$b -function rawEd25519PubkeyToRawAddress(e) { - if (e.length !== 32) throw new Error(`Invalid Ed25519 pubkey length: ${e.length}`) - return (0, crypto_1$2.sha256)(e).slice(0, 20) -} -addresses.rawEd25519PubkeyToRawAddress = rawEd25519PubkeyToRawAddress -function rawSecp256k1PubkeyToRawAddress(e) { - if (e.length !== 33) throw new Error(`Invalid Secp256k1 pubkey length (compressed): ${e.length}`) - return (0, crypto_1$2.ripemd160)((0, crypto_1$2.sha256)(e)) -} -addresses.rawSecp256k1PubkeyToRawAddress = rawSecp256k1PubkeyToRawAddress -function pubkeyToRawAddress(e, o) { - switch (e) { - case 'ed25519': - return rawEd25519PubkeyToRawAddress(o) - case 'secp256k1': - return rawSecp256k1PubkeyToRawAddress(o) - default: - throw new Error(`Pubkey type ${e} not supported`) - } -} -addresses.pubkeyToRawAddress = pubkeyToRawAddress -function pubkeyToAddress(e, o) { - return (0, encoding_1$b.toHex)(pubkeyToRawAddress(e, o)).toUpperCase() -} -addresses.pubkeyToAddress = pubkeyToAddress -var dates = {} -Object.defineProperty(dates, '__esModule', { value: !0 }) -dates.DateTime = - dates.toSeconds = - dates.fromSeconds = - dates.toRfc3339WithNanoseconds = - dates.fromRfc3339WithNanoseconds = - void 0 -const encoding_1$a = build$b, - math_1$3 = build$a -function fromRfc3339WithNanoseconds(e) { - const o = (0, encoding_1$a.fromRfc3339)(e), - _ = e.match(/\.(\d+)Z$/), - b = _ ? _[1].slice(3) : '' - return (o.nanoseconds = parseInt(b.padEnd(6, '0'), 10)), o -} -dates.fromRfc3339WithNanoseconds = fromRfc3339WithNanoseconds -function toRfc3339WithNanoseconds(e) { - const o = e.toISOString(), - _ = e.nanoseconds?.toString() ?? '' - return `${o.slice(0, -1)}${_.padStart(6, '0')}Z` -} -dates.toRfc3339WithNanoseconds = toRfc3339WithNanoseconds -function fromSeconds(e, o = 0) { - const _ = new math_1$3.Uint32(o).toNumber() - if (_ > 999999999) throw new Error('Nano seconds must not exceed 999999999') - const b = new Date(e * 1e3 + Math.floor(_ / 1e6)) - return (b.nanoseconds = _ % 1e6), b -} -dates.fromSeconds = fromSeconds -function toSeconds(e) { - return { - seconds: Math.floor(e.getTime() / 1e3), - nanos: (e.getTime() % 1e3) * 1e6 + (e.nanoseconds ?? 0), - } -} -dates.toSeconds = toSeconds -class DateTime { - static decode(o) { - return fromRfc3339WithNanoseconds(o) - } - static encode(o) { - return toRfc3339WithNanoseconds(o) - } -} -dates.DateTime = DateTime -var rpcclients = {}, - httpbatchclient = {}, - build$1 = {}, - id = {} -Object.defineProperty(id, '__esModule', { value: !0 }) -id.makeJsonRpcId = void 0 -let counter = 1e4 -function makeJsonRpcId() { - return (counter += 1) -} -id.makeJsonRpcId = makeJsonRpcId -var jsonrpcclient = {}, - types$2 = {} -Object.defineProperty(types$2, '__esModule', { value: !0 }) -types$2.jsonRpcCode = types$2.isJsonRpcSuccessResponse = types$2.isJsonRpcErrorResponse = void 0 -function isJsonRpcErrorResponse(e) { - return typeof e.error == 'object' -} -types$2.isJsonRpcErrorResponse = isJsonRpcErrorResponse -function isJsonRpcSuccessResponse(e) { - return !isJsonRpcErrorResponse(e) -} -types$2.isJsonRpcSuccessResponse = isJsonRpcSuccessResponse -types$2.jsonRpcCode = { - parseError: -32700, - invalidRequest: -32600, - methodNotFound: -32601, - invalidParams: -32602, - internalError: -32603, - serverError: { default: -32e3 }, -} -Object.defineProperty(jsonrpcclient, '__esModule', { value: !0 }) -jsonrpcclient.JsonRpcClient = void 0 -const stream_1$1 = build$3, - types_1$4 = types$2 -class JsonRpcClient { - constructor(o) { - this.connection = o - } - async run(o) { - const _ = this.connection.responseStream.filter((en) => en.id === o.id), - b = (0, stream_1$1.firstEvent)(_) - this.connection.sendRequest(o) - const $ = await b - if ((0, types_1$4.isJsonRpcErrorResponse)($)) { - const en = $.error - throw new Error(`JSON RPC error: code=${en.code}; message='${en.message}'`) - } - return $ - } -} -jsonrpcclient.JsonRpcClient = JsonRpcClient -var parse = {}, - compatibility = {} -Object.defineProperty(compatibility, '__esModule', { value: !0 }) -compatibility.isJsonCompatibleDictionary = - compatibility.isJsonCompatibleArray = - compatibility.isJsonCompatibleValue = - void 0 -function isJsonCompatibleValue(e) { - return !!( - typeof e == 'string' || - typeof e == 'number' || - typeof e == 'boolean' || - e === null || - isJsonCompatibleArray(e) || - isJsonCompatibleDictionary(e) - ) -} -compatibility.isJsonCompatibleValue = isJsonCompatibleValue -function isJsonCompatibleArray(e) { - if (!Array.isArray(e)) return !1 - for (const o of e) if (!isJsonCompatibleValue(o)) return !1 - return !0 -} -compatibility.isJsonCompatibleArray = isJsonCompatibleArray -function isJsonCompatibleDictionary(e) { - return typeof e != 'object' || - e === null || - Object.prototype.toString.call(e) !== '[object Object]' - ? !1 - : Object.values(e).every(isJsonCompatibleValue) -} -compatibility.isJsonCompatibleDictionary = isJsonCompatibleDictionary -Object.defineProperty(parse, '__esModule', { value: !0 }) -parse.parseJsonRpcResponse = - parse.parseJsonRpcSuccessResponse = - parse.parseJsonRpcErrorResponse = - parse.parseJsonRpcRequest = - parse.parseJsonRpcId = - void 0 -const compatibility_1 = compatibility -function parseJsonRpcId(e) { - if (!(0, compatibility_1.isJsonCompatibleDictionary)(e)) - throw new Error('Data must be JSON compatible dictionary') - const o = e.id - return typeof o != 'number' && typeof o != 'string' ? null : o -} -parse.parseJsonRpcId = parseJsonRpcId -function parseJsonRpcRequest(e) { - if (!(0, compatibility_1.isJsonCompatibleDictionary)(e)) - throw new Error('Data must be JSON compatible dictionary') - if (e.jsonrpc !== '2.0') throw new Error(`Got unexpected jsonrpc version: ${e.jsonrpc}`) - const o = parseJsonRpcId(e) - if (o === null) throw new Error('Invalid id field') - const _ = e.method - if (typeof _ != 'string') throw new Error('Invalid method field') - if ( - !(0, compatibility_1.isJsonCompatibleArray)(e.params) && - !(0, compatibility_1.isJsonCompatibleDictionary)(e.params) - ) - throw new Error('Invalid params field') - return { jsonrpc: '2.0', id: o, method: _, params: e.params } -} -parse.parseJsonRpcRequest = parseJsonRpcRequest -function parseError(e) { - if (typeof e.code != 'number') throw new Error("Error property 'code' is not a number") - if (typeof e.message != 'string') throw new Error("Error property 'message' is not a string") - let o - if (e.data === void 0) o = void 0 - else if ((0, compatibility_1.isJsonCompatibleValue)(e.data)) o = e.data - else throw new Error("Error property 'data' is defined but not a JSON compatible value.") - return { code: e.code, message: e.message, ...(o !== void 0 ? { data: o } : {}) } -} -function parseJsonRpcErrorResponse(e) { - if (!(0, compatibility_1.isJsonCompatibleDictionary)(e)) - throw new Error('Data must be JSON compatible dictionary') - if (e.jsonrpc !== '2.0') throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(e)}`) - const o = e.id - if (typeof o != 'number' && typeof o != 'string' && o !== null) - throw new Error('Invalid id field') - if (typeof e.error > 'u' || !(0, compatibility_1.isJsonCompatibleDictionary)(e.error)) - throw new Error('Invalid error field') - return { jsonrpc: '2.0', id: o, error: parseError(e.error) } -} -parse.parseJsonRpcErrorResponse = parseJsonRpcErrorResponse -function parseJsonRpcSuccessResponse(e) { - if (!(0, compatibility_1.isJsonCompatibleDictionary)(e)) - throw new Error('Data must be JSON compatible dictionary') - if (e.jsonrpc !== '2.0') throw new Error(`Got unexpected jsonrpc version: ${JSON.stringify(e)}`) - const o = e.id - if (typeof o != 'number' && typeof o != 'string') throw new Error('Invalid id field') - if (typeof e.result > 'u') throw new Error('Invalid result field') - const _ = e.result - return { jsonrpc: '2.0', id: o, result: _ } -} -parse.parseJsonRpcSuccessResponse = parseJsonRpcSuccessResponse -function parseJsonRpcResponse(e) { - let o - try { - o = parseJsonRpcErrorResponse(e) - } catch { - o = parseJsonRpcSuccessResponse(e) - } - return o -} -parse.parseJsonRpcResponse = parseJsonRpcResponse -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.jsonRpcCode = - e.isJsonRpcSuccessResponse = - e.isJsonRpcErrorResponse = - e.parseJsonRpcSuccessResponse = - e.parseJsonRpcResponse = - e.parseJsonRpcRequest = - e.parseJsonRpcId = - e.parseJsonRpcErrorResponse = - e.JsonRpcClient = - e.makeJsonRpcId = - void 0) - var o = id - Object.defineProperty(e, 'makeJsonRpcId', { - enumerable: !0, - get: function () { - return o.makeJsonRpcId - }, - }) - var _ = jsonrpcclient - Object.defineProperty(e, 'JsonRpcClient', { - enumerable: !0, - get: function () { - return _.JsonRpcClient - }, - }) - var b = parse - Object.defineProperty(e, 'parseJsonRpcErrorResponse', { - enumerable: !0, - get: function () { - return b.parseJsonRpcErrorResponse - }, - }), - Object.defineProperty(e, 'parseJsonRpcId', { - enumerable: !0, - get: function () { - return b.parseJsonRpcId - }, - }), - Object.defineProperty(e, 'parseJsonRpcRequest', { - enumerable: !0, - get: function () { - return b.parseJsonRpcRequest - }, - }), - Object.defineProperty(e, 'parseJsonRpcResponse', { - enumerable: !0, - get: function () { - return b.parseJsonRpcResponse - }, - }), - Object.defineProperty(e, 'parseJsonRpcSuccessResponse', { - enumerable: !0, - get: function () { - return b.parseJsonRpcSuccessResponse - }, - }) - var $ = types$2 - Object.defineProperty(e, 'isJsonRpcErrorResponse', { - enumerable: !0, - get: function () { - return $.isJsonRpcErrorResponse - }, - }), - Object.defineProperty(e, 'isJsonRpcSuccessResponse', { - enumerable: !0, - get: function () { - return $.isJsonRpcSuccessResponse - }, - }), - Object.defineProperty(e, 'jsonRpcCode', { - enumerable: !0, - get: function () { - return $.jsonRpcCode - }, - }) -})(build$1) -var http$1 = {}, - axiosExports$1 = {}, - axios$2 = { - get exports() { - return axiosExports$1 - }, - set exports(e) { - axiosExports$1 = e - }, - }, - axiosExports = {}, - axios$1 = { - get exports() { - return axiosExports - }, - set exports(e) { - axiosExports = e - }, - }, - bind$2 = function e(o, _) { - return function () { - for (var $ = new Array(arguments.length), en = 0; en < $.length; en++) $[en] = arguments[en] - return o.apply(_, $) - } - }, - bind$1 = bind$2, - toString = Object.prototype.toString -function isArray(e) { - return toString.call(e) === '[object Array]' -} -function isUndefined(e) { - return typeof e > 'u' -} -function isBuffer(e) { - return ( - e !== null && - !isUndefined(e) && - e.constructor !== null && - !isUndefined(e.constructor) && - typeof e.constructor.isBuffer == 'function' && - e.constructor.isBuffer(e) - ) -} -function isArrayBuffer(e) { - return toString.call(e) === '[object ArrayBuffer]' -} -function isFormData(e) { - return typeof FormData < 'u' && e instanceof FormData -} -function isArrayBufferView(e) { - var o - return ( - typeof ArrayBuffer < 'u' && ArrayBuffer.isView - ? (o = ArrayBuffer.isView(e)) - : (o = e && e.buffer && e.buffer instanceof ArrayBuffer), - o - ) -} -function isString(e) { - return typeof e == 'string' -} -function isNumber(e) { - return typeof e == 'number' -} -function isObject(e) { - return e !== null && typeof e == 'object' -} -function isPlainObject(e) { - if (toString.call(e) !== '[object Object]') return !1 - var o = Object.getPrototypeOf(e) - return o === null || o === Object.prototype -} -function isDate(e) { - return toString.call(e) === '[object Date]' -} -function isFile(e) { - return toString.call(e) === '[object File]' -} -function isBlob(e) { - return toString.call(e) === '[object Blob]' -} -function isFunction(e) { - return toString.call(e) === '[object Function]' -} -function isStream(e) { - return isObject(e) && isFunction(e.pipe) -} -function isURLSearchParams(e) { - return typeof URLSearchParams < 'u' && e instanceof URLSearchParams -} -function trim(e) { - return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, '') -} -function isStandardBrowserEnv() { - return typeof navigator < 'u' && - (navigator.product === 'ReactNative' || - navigator.product === 'NativeScript' || - navigator.product === 'NS') - ? !1 - : typeof window < 'u' && typeof document < 'u' -} -function forEach(e, o) { - if (!(e === null || typeof e > 'u')) - if ((typeof e != 'object' && (e = [e]), isArray(e))) - for (var _ = 0, b = e.length; _ < b; _++) o.call(null, e[_], _, e) - else for (var $ in e) Object.prototype.hasOwnProperty.call(e, $) && o.call(null, e[$], $, e) -} -function merge() { - var e = {} - function o($, en) { - isPlainObject(e[en]) && isPlainObject($) - ? (e[en] = merge(e[en], $)) - : isPlainObject($) - ? (e[en] = merge({}, $)) - : isArray($) - ? (e[en] = $.slice()) - : (e[en] = $) - } - for (var _ = 0, b = arguments.length; _ < b; _++) forEach(arguments[_], o) - return e -} -function extend(e, o, _) { - return ( - forEach(o, function ($, en) { - _ && typeof $ == 'function' ? (e[en] = bind$1($, _)) : (e[en] = $) - }), - e - ) -} -function stripBOM(e) { - return e.charCodeAt(0) === 65279 && (e = e.slice(1)), e -} -var utils$9 = { - isArray, - isArrayBuffer, - isBuffer, - isFormData, - isArrayBufferView, - isString, - isNumber, - isObject, - isPlainObject, - isUndefined, - isDate, - isFile, - isBlob, - isFunction, - isStream, - isURLSearchParams, - isStandardBrowserEnv, - forEach, - merge, - extend, - trim, - stripBOM, - }, - utils$8 = utils$9 -function encode(e) { - return encodeURIComponent(e) - .replace(/%3A/gi, ':') - .replace(/%24/g, '$') - .replace(/%2C/gi, ',') - .replace(/%20/g, '+') - .replace(/%5B/gi, '[') - .replace(/%5D/gi, ']') -} -var buildURL$1 = function e(o, _, b) { - if (!_) return o - var $ - if (b) $ = b(_) - else if (utils$8.isURLSearchParams(_)) $ = _.toString() - else { - var en = [] - utils$8.forEach(_, function (gn, In) { - gn === null || - typeof gn > 'u' || - (utils$8.isArray(gn) ? (In = In + '[]') : (gn = [gn]), - utils$8.forEach(gn, function (qn) { - utils$8.isDate(qn) - ? (qn = qn.toISOString()) - : utils$8.isObject(qn) && (qn = JSON.stringify(qn)), - en.push(encode(In) + '=' + encode(qn)) - })) - }), - ($ = en.join('&')) - } - if ($) { - var nn = o.indexOf('#') - nn !== -1 && (o = o.slice(0, nn)), (o += (o.indexOf('?') === -1 ? '?' : '&') + $) - } - return o - }, - utils$7 = utils$9 -function InterceptorManager$1() { - this.handlers = [] -} -InterceptorManager$1.prototype.use = function e(o, _, b) { - return ( - this.handlers.push({ - fulfilled: o, - rejected: _, - synchronous: b ? b.synchronous : !1, - runWhen: b ? b.runWhen : null, - }), - this.handlers.length - 1 - ) -} -InterceptorManager$1.prototype.eject = function e(o) { - this.handlers[o] && (this.handlers[o] = null) -} -InterceptorManager$1.prototype.forEach = function e(o) { - utils$7.forEach(this.handlers, function (b) { - b !== null && o(b) - }) -} -var InterceptorManager_1 = InterceptorManager$1, - utils$6 = utils$9, - normalizeHeaderName$1 = function e(o, _) { - utils$6.forEach(o, function ($, en) { - en !== _ && en.toUpperCase() === _.toUpperCase() && ((o[_] = $), delete o[en]) - }) - }, - enhanceError$1 = function e(o, _, b, $, en) { - return ( - (o.config = _), - b && (o.code = b), - (o.request = $), - (o.response = en), - (o.isAxiosError = !0), - (o.toJSON = function () { - return { - message: this.message, - name: this.name, - description: this.description, - number: this.number, - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - config: this.config, - code: this.code, - } - }), - o - ) - }, - createError, - hasRequiredCreateError -function requireCreateError() { - if (hasRequiredCreateError) return createError - hasRequiredCreateError = 1 - var e = enhanceError$1 - return ( - (createError = function (_, b, $, en, nn) { - var sn = new Error(_) - return e(sn, b, $, en, nn) - }), - createError - ) -} -var settle, hasRequiredSettle -function requireSettle() { - if (hasRequiredSettle) return settle - hasRequiredSettle = 1 - var e = requireCreateError() - return ( - (settle = function (_, b, $) { - var en = $.config.validateStatus - !$.status || !en || en($.status) - ? _($) - : b(e('Request failed with status code ' + $.status, $.config, null, $.request, $)) - }), - settle - ) -} -var cookies, hasRequiredCookies -function requireCookies() { - if (hasRequiredCookies) return cookies - hasRequiredCookies = 1 - var e = utils$9 - return ( - (cookies = e.isStandardBrowserEnv() - ? (function () { - return { - write: function (b, $, en, nn, sn, gn) { - var In = [] - In.push(b + '=' + encodeURIComponent($)), - e.isNumber(en) && In.push('expires=' + new Date(en).toGMTString()), - e.isString(nn) && In.push('path=' + nn), - e.isString(sn) && In.push('domain=' + sn), - gn === !0 && In.push('secure'), - (document.cookie = In.join('; ')) - }, - read: function (b) { - var $ = document.cookie.match(new RegExp('(^|;\\s*)(' + b + ')=([^;]*)')) - return $ ? decodeURIComponent($[3]) : null - }, - remove: function (b) { - this.write(b, '', Date.now() - 864e5) - }, - } - })() - : (function () { - return { - write: function () {}, - read: function () { - return null - }, - remove: function () {}, - } - })()), - cookies - ) -} -var isAbsoluteURL, hasRequiredIsAbsoluteURL -function requireIsAbsoluteURL() { - return ( - hasRequiredIsAbsoluteURL || - ((hasRequiredIsAbsoluteURL = 1), - (isAbsoluteURL = function (o) { - return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(o) - })), - isAbsoluteURL - ) -} -var combineURLs, hasRequiredCombineURLs -function requireCombineURLs() { - return ( - hasRequiredCombineURLs || - ((hasRequiredCombineURLs = 1), - (combineURLs = function (o, _) { - return _ ? o.replace(/\/+$/, '') + '/' + _.replace(/^\/+/, '') : o - })), - combineURLs - ) -} -var buildFullPath, hasRequiredBuildFullPath -function requireBuildFullPath() { - if (hasRequiredBuildFullPath) return buildFullPath - hasRequiredBuildFullPath = 1 - var e = requireIsAbsoluteURL(), - o = requireCombineURLs() - return ( - (buildFullPath = function (b, $) { - return b && !e($) ? o(b, $) : $ - }), - buildFullPath - ) -} -var parseHeaders, hasRequiredParseHeaders -function requireParseHeaders() { - if (hasRequiredParseHeaders) return parseHeaders - hasRequiredParseHeaders = 1 - var e = utils$9, - o = [ - 'age', - 'authorization', - 'content-length', - 'content-type', - 'etag', - 'expires', - 'from', - 'host', - 'if-modified-since', - 'if-unmodified-since', - 'last-modified', - 'location', - 'max-forwards', - 'proxy-authorization', - 'referer', - 'retry-after', - 'user-agent', - ] - return ( - (parseHeaders = function (b) { - var $ = {}, - en, - nn, - sn - return ( - b && - e.forEach( - b.split(` -`), - function (In) { - if ( - ((sn = In.indexOf(':')), - (en = e.trim(In.substr(0, sn)).toLowerCase()), - (nn = e.trim(In.substr(sn + 1))), - en) - ) { - if ($[en] && o.indexOf(en) >= 0) return - en === 'set-cookie' - ? ($[en] = ($[en] ? $[en] : []).concat([nn])) - : ($[en] = $[en] ? $[en] + ', ' + nn : nn) - } - }, - ), - $ - ) - }), - parseHeaders - ) -} -var isURLSameOrigin, hasRequiredIsURLSameOrigin -function requireIsURLSameOrigin() { - if (hasRequiredIsURLSameOrigin) return isURLSameOrigin - hasRequiredIsURLSameOrigin = 1 - var e = utils$9 - return ( - (isURLSameOrigin = e.isStandardBrowserEnv() - ? (function () { - var _ = /(msie|trident)/i.test(navigator.userAgent), - b = document.createElement('a'), - $ - function en(nn) { - var sn = nn - return ( - _ && (b.setAttribute('href', sn), (sn = b.href)), - b.setAttribute('href', sn), - { - href: b.href, - protocol: b.protocol ? b.protocol.replace(/:$/, '') : '', - host: b.host, - search: b.search ? b.search.replace(/^\?/, '') : '', - hash: b.hash ? b.hash.replace(/^#/, '') : '', - hostname: b.hostname, - port: b.port, - pathname: b.pathname.charAt(0) === '/' ? b.pathname : '/' + b.pathname, - } - ) - } - return ( - ($ = en(window.location.href)), - function (sn) { - var gn = e.isString(sn) ? en(sn) : sn - return gn.protocol === $.protocol && gn.host === $.host - } - ) - })() - : (function () { - return function () { - return !0 - } - })()), - isURLSameOrigin - ) -} -var xhr, hasRequiredXhr -function requireXhr() { - if (hasRequiredXhr) return xhr - hasRequiredXhr = 1 - var e = utils$9, - o = requireSettle(), - _ = requireCookies(), - b = buildURL$1, - $ = requireBuildFullPath(), - en = requireParseHeaders(), - nn = requireIsURLSameOrigin(), - sn = requireCreateError() - return ( - (xhr = function (In) { - return new Promise(function (qn, Kn) { - var an = In.data, - xn = In.headers, - mn = In.responseType - e.isFormData(an) && delete xn['Content-Type'] - var Bn = new XMLHttpRequest() - if (In.auth) { - var kn = In.auth.username || '', - ln = In.auth.password ? unescape(encodeURIComponent(In.auth.password)) : '' - xn.Authorization = 'Basic ' + btoa(kn + ':' + ln) - } - var yn = $(In.baseURL, In.url) - Bn.open(In.method.toUpperCase(), b(yn, In.params, In.paramsSerializer), !0), - (Bn.timeout = In.timeout) - function Cn() { - if (Bn) { - var Gn = 'getAllResponseHeaders' in Bn ? en(Bn.getAllResponseHeaders()) : null, - Sn = !mn || mn === 'text' || mn === 'json' ? Bn.responseText : Bn.response, - Zn = { - data: Sn, - status: Bn.status, - statusText: Bn.statusText, - headers: Gn, - config: In, - request: Bn, - } - o(qn, Kn, Zn), (Bn = null) - } - } - if ( - ('onloadend' in Bn - ? (Bn.onloadend = Cn) - : (Bn.onreadystatechange = function () { - !Bn || - Bn.readyState !== 4 || - (Bn.status === 0 && !(Bn.responseURL && Bn.responseURL.indexOf('file:') === 0)) || - setTimeout(Cn) - }), - (Bn.onabort = function () { - Bn && (Kn(sn('Request aborted', In, 'ECONNABORTED', Bn)), (Bn = null)) - }), - (Bn.onerror = function () { - Kn(sn('Network Error', In, null, Bn)), (Bn = null) - }), - (Bn.ontimeout = function () { - var Sn = 'timeout of ' + In.timeout + 'ms exceeded' - In.timeoutErrorMessage && (Sn = In.timeoutErrorMessage), - Kn( - sn( - Sn, - In, - In.transitional && In.transitional.clarifyTimeoutError - ? 'ETIMEDOUT' - : 'ECONNABORTED', - Bn, - ), - ), - (Bn = null) - }), - e.isStandardBrowserEnv()) - ) { - var Tn = - (In.withCredentials || nn(yn)) && In.xsrfCookieName ? _.read(In.xsrfCookieName) : void 0 - Tn && (xn[In.xsrfHeaderName] = Tn) - } - 'setRequestHeader' in Bn && - e.forEach(xn, function (Sn, Zn) { - typeof an > 'u' && Zn.toLowerCase() === 'content-type' - ? delete xn[Zn] - : Bn.setRequestHeader(Zn, Sn) - }), - e.isUndefined(In.withCredentials) || (Bn.withCredentials = !!In.withCredentials), - mn && mn !== 'json' && (Bn.responseType = In.responseType), - typeof In.onDownloadProgress == 'function' && - Bn.addEventListener('progress', In.onDownloadProgress), - typeof In.onUploadProgress == 'function' && - Bn.upload && - Bn.upload.addEventListener('progress', In.onUploadProgress), - In.cancelToken && - In.cancelToken.promise.then(function (Sn) { - Bn && (Bn.abort(), Kn(Sn), (Bn = null)) - }), - an || (an = null), - Bn.send(an) - }) - }), - xhr - ) -} -var utils$5 = utils$9, - normalizeHeaderName = normalizeHeaderName$1, - enhanceError = enhanceError$1, - DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' } -function setContentTypeIfUnset(e, o) { - !utils$5.isUndefined(e) && utils$5.isUndefined(e['Content-Type']) && (e['Content-Type'] = o) -} -function getDefaultAdapter() { - var e - return ( - (typeof XMLHttpRequest < 'u' || - (typeof process < 'u' && Object.prototype.toString.call(process) === '[object process]')) && - (e = requireXhr()), - e - ) -} -function stringifySafely(e, o, _) { - if (utils$5.isString(e)) - try { - return (o || JSON.parse)(e), utils$5.trim(e) - } catch (b) { - if (b.name !== 'SyntaxError') throw b - } - return (_ || JSON.stringify)(e) -} -var defaults$3 = { - transitional: { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, - adapter: getDefaultAdapter(), - transformRequest: [ - function e(o, _) { - return ( - normalizeHeaderName(_, 'Accept'), - normalizeHeaderName(_, 'Content-Type'), - utils$5.isFormData(o) || - utils$5.isArrayBuffer(o) || - utils$5.isBuffer(o) || - utils$5.isStream(o) || - utils$5.isFile(o) || - utils$5.isBlob(o) - ? o - : utils$5.isArrayBufferView(o) - ? o.buffer - : utils$5.isURLSearchParams(o) - ? (setContentTypeIfUnset(_, 'application/x-www-form-urlencoded;charset=utf-8'), - o.toString()) - : utils$5.isObject(o) || (_ && _['Content-Type'] === 'application/json') - ? (setContentTypeIfUnset(_, 'application/json'), stringifySafely(o)) - : o - ) - }, - ], - transformResponse: [ - function e(o) { - var _ = this.transitional, - b = _ && _.silentJSONParsing, - $ = _ && _.forcedJSONParsing, - en = !b && this.responseType === 'json' - if (en || ($ && utils$5.isString(o) && o.length)) - try { - return JSON.parse(o) - } catch (nn) { - if (en) throw nn.name === 'SyntaxError' ? enhanceError(nn, this, 'E_JSON_PARSE') : nn - } - return o - }, - ], - timeout: 0, - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - maxContentLength: -1, - maxBodyLength: -1, - validateStatus: function e(o) { - return o >= 200 && o < 300 - }, -} -defaults$3.headers = { common: { Accept: 'application/json, text/plain, */*' } } -utils$5.forEach(['delete', 'get', 'head'], function e(o) { - defaults$3.headers[o] = {} -}) -utils$5.forEach(['post', 'put', 'patch'], function e(o) { - defaults$3.headers[o] = utils$5.merge(DEFAULT_CONTENT_TYPE) -}) -var defaults_1 = defaults$3, - utils$4 = utils$9, - defaults$2 = defaults_1, - transformData$1 = function e(o, _, b) { - var $ = this || defaults$2 - return ( - utils$4.forEach(b, function (nn) { - o = nn.call($, o, _) - }), - o - ) - }, - isCancel$1, - hasRequiredIsCancel -function requireIsCancel() { - return ( - hasRequiredIsCancel || - ((hasRequiredIsCancel = 1), - (isCancel$1 = function (o) { - return !!(o && o.__CANCEL__) - })), - isCancel$1 - ) -} -var utils$3 = utils$9, - transformData = transformData$1, - isCancel = requireIsCancel(), - defaults$1 = defaults_1 -function throwIfCancellationRequested(e) { - e.cancelToken && e.cancelToken.throwIfRequested() -} -var dispatchRequest$1 = function e(o) { - throwIfCancellationRequested(o), - (o.headers = o.headers || {}), - (o.data = transformData.call(o, o.data, o.headers, o.transformRequest)), - (o.headers = utils$3.merge(o.headers.common || {}, o.headers[o.method] || {}, o.headers)), - utils$3.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function ($) { - delete o.headers[$] - }) - var _ = o.adapter || defaults$1.adapter - return _(o).then( - function ($) { - return ( - throwIfCancellationRequested(o), - ($.data = transformData.call(o, $.data, $.headers, o.transformResponse)), - $ - ) - }, - function ($) { - return ( - isCancel($) || - (throwIfCancellationRequested(o), - $ && - $.response && - ($.response.data = transformData.call( - o, - $.response.data, - $.response.headers, - o.transformResponse, - ))), - Promise.reject($) - ) - }, - ) - }, - utils$2 = utils$9, - mergeConfig$2 = function e(o, _) { - _ = _ || {} - var b = {}, - $ = ['url', 'method', 'data'], - en = ['headers', 'auth', 'proxy', 'params'], - nn = [ - 'baseURL', - 'transformRequest', - 'transformResponse', - 'paramsSerializer', - 'timeout', - 'timeoutMessage', - 'withCredentials', - 'adapter', - 'responseType', - 'xsrfCookieName', - 'xsrfHeaderName', - 'onUploadProgress', - 'onDownloadProgress', - 'decompress', - 'maxContentLength', - 'maxBodyLength', - 'maxRedirects', - 'transport', - 'httpAgent', - 'httpsAgent', - 'cancelToken', - 'socketPath', - 'responseEncoding', - ], - sn = ['validateStatus'] - function gn(Kn, an) { - return utils$2.isPlainObject(Kn) && utils$2.isPlainObject(an) - ? utils$2.merge(Kn, an) - : utils$2.isPlainObject(an) - ? utils$2.merge({}, an) - : utils$2.isArray(an) - ? an.slice() - : an - } - function In(Kn) { - utils$2.isUndefined(_[Kn]) - ? utils$2.isUndefined(o[Kn]) || (b[Kn] = gn(void 0, o[Kn])) - : (b[Kn] = gn(o[Kn], _[Kn])) - } - utils$2.forEach($, function (an) { - utils$2.isUndefined(_[an]) || (b[an] = gn(void 0, _[an])) - }), - utils$2.forEach(en, In), - utils$2.forEach(nn, function (an) { - utils$2.isUndefined(_[an]) - ? utils$2.isUndefined(o[an]) || (b[an] = gn(void 0, o[an])) - : (b[an] = gn(void 0, _[an])) - }), - utils$2.forEach(sn, function (an) { - an in _ ? (b[an] = gn(o[an], _[an])) : an in o && (b[an] = gn(void 0, o[an])) - }) - var Jn = $.concat(en).concat(nn).concat(sn), - qn = Object.keys(o) - .concat(Object.keys(_)) - .filter(function (an) { - return Jn.indexOf(an) === -1 - }) - return utils$2.forEach(qn, In), b - } -const name = 'axios', - version = '0.21.4', - description = 'Promise based HTTP client for the browser and node.js', - main$1 = 'index.js', - scripts = { - test: 'grunt test', - start: 'node ./sandbox/server.js', - build: 'NODE_ENV=production grunt build', - preversion: 'npm test', - version: - 'npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json', - postversion: 'git push && git push --tags', - examples: 'node ./examples/server.js', - coveralls: 'cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js', - fix: 'eslint --fix lib/**/*.js', - }, - repository = { type: 'git', url: 'https://github.com/axios/axios.git' }, - keywords = ['xhr', 'http', 'ajax', 'promise', 'node'], - author = 'Matt Zabriskie', - license = 'MIT', - bugs = { url: 'https://github.com/axios/axios/issues' }, - homepage = 'https://axios-http.com', - devDependencies = { - coveralls: '^3.0.0', - 'es6-promise': '^4.2.4', - grunt: '^1.3.0', - 'grunt-banner': '^0.6.0', - 'grunt-cli': '^1.2.0', - 'grunt-contrib-clean': '^1.1.0', - 'grunt-contrib-watch': '^1.0.0', - 'grunt-eslint': '^23.0.0', - 'grunt-karma': '^4.0.0', - 'grunt-mocha-test': '^0.13.3', - 'grunt-ts': '^6.0.0-beta.19', - 'grunt-webpack': '^4.0.2', - 'istanbul-instrumenter-loader': '^1.0.0', - 'jasmine-core': '^2.4.1', - karma: '^6.3.2', - 'karma-chrome-launcher': '^3.1.0', - 'karma-firefox-launcher': '^2.1.0', - 'karma-jasmine': '^1.1.1', - 'karma-jasmine-ajax': '^0.1.13', - 'karma-safari-launcher': '^1.0.0', - 'karma-sauce-launcher': '^4.3.6', - 'karma-sinon': '^1.0.5', - 'karma-sourcemap-loader': '^0.3.8', - 'karma-webpack': '^4.0.2', - 'load-grunt-tasks': '^3.5.2', - minimist: '^1.2.0', - mocha: '^8.2.1', - sinon: '^4.5.0', - 'terser-webpack-plugin': '^4.2.3', - typescript: '^4.0.5', - 'url-search-params': '^0.10.0', - webpack: '^4.44.2', - 'webpack-dev-server': '^3.11.0', - }, - browser$1 = { './lib/adapters/http.js': './lib/adapters/xhr.js' }, - jsdelivr = 'dist/axios.min.js', - unpkg = 'dist/axios.min.js', - typings = './index.d.ts', - dependencies = { 'follow-redirects': '^1.14.0' }, - bundlesize = [{ path: './dist/axios.min.js', threshold: '5kB' }], - require$$0 = { - name, - version, - description, - main: main$1, - scripts, - repository, - keywords, - author, - license, - bugs, - homepage, - devDependencies, - browser: browser$1, - jsdelivr, - unpkg, - typings, - dependencies, - bundlesize, - } -var pkg = require$$0, - validators$1 = {} -;['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (e, o) { - validators$1[e] = function (b) { - return typeof b === e || 'a' + (o < 1 ? 'n ' : ' ') + e - } -}) -var deprecatedWarnings = {}, - currentVerArr = pkg.version.split('.') -function isOlderVersion(e, o) { - for (var _ = o ? o.split('.') : currentVerArr, b = e.split('.'), $ = 0; $ < 3; $++) { - if (_[$] > b[$]) return !0 - if (_[$] < b[$]) return !1 - } - return !1 -} -validators$1.transitional = function e(o, _, b) { - var $ = _ && isOlderVersion(_) - function en(nn, sn) { - return ( - '[Axios v' + pkg.version + "] Transitional option '" + nn + "'" + sn + (b ? '. ' + b : '') - ) - } - return function (nn, sn, gn) { - if (o === !1) throw new Error(en(sn, ' has been removed in ' + _)) - return ( - $ && - !deprecatedWarnings[sn] && - ((deprecatedWarnings[sn] = !0), - console.warn( - en(sn, ' has been deprecated since v' + _ + ' and will be removed in the near future'), - )), - o ? o(nn, sn, gn) : !0 - ) - } -} -function assertOptions(e, o, _) { - if (typeof e != 'object') throw new TypeError('options must be an object') - for (var b = Object.keys(e), $ = b.length; $-- > 0; ) { - var en = b[$], - nn = o[en] - if (nn) { - var sn = e[en], - gn = sn === void 0 || nn(sn, en, e) - if (gn !== !0) throw new TypeError('option ' + en + ' must be ' + gn) - continue - } - if (_ !== !0) throw Error('Unknown option ' + en) - } -} -var validator$1 = { isOlderVersion, assertOptions, validators: validators$1 }, - utils$1 = utils$9, - buildURL = buildURL$1, - InterceptorManager = InterceptorManager_1, - dispatchRequest = dispatchRequest$1, - mergeConfig$1 = mergeConfig$2, - validator = validator$1, - validators = validator.validators -function Axios$1(e) { - ;(this.defaults = e), - (this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }) -} -Axios$1.prototype.request = function e(o) { - typeof o == 'string' ? ((o = arguments[1] || {}), (o.url = arguments[0])) : (o = o || {}), - (o = mergeConfig$1(this.defaults, o)), - o.method - ? (o.method = o.method.toLowerCase()) - : this.defaults.method - ? (o.method = this.defaults.method.toLowerCase()) - : (o.method = 'get') - var _ = o.transitional - _ !== void 0 && - validator.assertOptions( - _, - { - silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'), - forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'), - clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0'), - }, - !1, - ) - var b = [], - $ = !0 - this.interceptors.request.forEach(function (Kn) { - ;(typeof Kn.runWhen == 'function' && Kn.runWhen(o) === !1) || - (($ = $ && Kn.synchronous), b.unshift(Kn.fulfilled, Kn.rejected)) - }) - var en = [] - this.interceptors.response.forEach(function (Kn) { - en.push(Kn.fulfilled, Kn.rejected) - }) - var nn - if (!$) { - var sn = [dispatchRequest, void 0] - for ( - Array.prototype.unshift.apply(sn, b), sn = sn.concat(en), nn = Promise.resolve(o); - sn.length; - - ) - nn = nn.then(sn.shift(), sn.shift()) - return nn - } - for (var gn = o; b.length; ) { - var In = b.shift(), - Jn = b.shift() - try { - gn = In(gn) - } catch (qn) { - Jn(qn) - break - } - } - try { - nn = dispatchRequest(gn) - } catch (qn) { - return Promise.reject(qn) - } - for (; en.length; ) nn = nn.then(en.shift(), en.shift()) - return nn -} -Axios$1.prototype.getUri = function e(o) { - return ( - (o = mergeConfig$1(this.defaults, o)), - buildURL(o.url, o.params, o.paramsSerializer).replace(/^\?/, '') - ) -} -utils$1.forEach(['delete', 'get', 'head', 'options'], function e(o) { - Axios$1.prototype[o] = function (_, b) { - return this.request(mergeConfig$1(b || {}, { method: o, url: _, data: (b || {}).data })) - } -}) -utils$1.forEach(['post', 'put', 'patch'], function e(o) { - Axios$1.prototype[o] = function (_, b, $) { - return this.request(mergeConfig$1($ || {}, { method: o, url: _, data: b })) - } -}) -var Axios_1 = Axios$1, - Cancel_1, - hasRequiredCancel -function requireCancel() { - if (hasRequiredCancel) return Cancel_1 - hasRequiredCancel = 1 - function e(o) { - this.message = o - } - return ( - (e.prototype.toString = function () { - return 'Cancel' + (this.message ? ': ' + this.message : '') - }), - (e.prototype.__CANCEL__ = !0), - (Cancel_1 = e), - Cancel_1 - ) -} -var CancelToken_1, hasRequiredCancelToken -function requireCancelToken() { - if (hasRequiredCancelToken) return CancelToken_1 - hasRequiredCancelToken = 1 - var e = requireCancel() - function o(_) { - if (typeof _ != 'function') throw new TypeError('executor must be a function.') - var b - this.promise = new Promise(function (nn) { - b = nn - }) - var $ = this - _(function (nn) { - $.reason || (($.reason = new e(nn)), b($.reason)) - }) - } - return ( - (o.prototype.throwIfRequested = function () { - if (this.reason) throw this.reason - }), - (o.source = function () { - var b, - $ = new o(function (nn) { - b = nn - }) - return { token: $, cancel: b } - }), - (CancelToken_1 = o), - CancelToken_1 - ) -} -var spread, hasRequiredSpread -function requireSpread() { - return ( - hasRequiredSpread || - ((hasRequiredSpread = 1), - (spread = function (o) { - return function (b) { - return o.apply(null, b) - } - })), - spread - ) -} -var isAxiosError, hasRequiredIsAxiosError -function requireIsAxiosError() { - return ( - hasRequiredIsAxiosError || - ((hasRequiredIsAxiosError = 1), - (isAxiosError = function (o) { - return typeof o == 'object' && o.isAxiosError === !0 - })), - isAxiosError - ) -} -var utils = utils$9, - bind = bind$2, - Axios = Axios_1, - mergeConfig = mergeConfig$2, - defaults = defaults_1 -function createInstance(e) { - var o = new Axios(e), - _ = bind(Axios.prototype.request, o) - return utils.extend(_, Axios.prototype, o), utils.extend(_, o), _ -} -var axios = createInstance(defaults) -axios.Axios = Axios -axios.create = function e(o) { - return createInstance(mergeConfig(axios.defaults, o)) -} -axios.Cancel = requireCancel() -axios.CancelToken = requireCancelToken() -axios.isCancel = requireIsCancel() -axios.all = function e(o) { - return Promise.all(o) -} -axios.spread = requireSpread() -axios.isAxiosError = requireIsAxiosError() -axios$1.exports = axios -axiosExports.default = axios -;(function (e) { - e.exports = axiosExports -})(axios$2) -var __importDefault$3 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(http$1, '__esModule', { value: !0 }) -http$1.http = void 0 -const axios_1 = __importDefault$3(axiosExports$1) -function filterBadStatus(e) { - if (e.status >= 400) throw new Error(`Bad status on response: ${e.status}`) - return e -} -function isExperimental(e) { - return e.toString().includes('emitExperimentalWarning') -} -async function http(e, o, _, b) { - if (typeof fetch == 'function' && !isExperimental(fetch)) { - const $ = { - method: e, - body: b ? JSON.stringify(b) : void 0, - headers: { 'Content-Type': 'application/json', ..._ }, - } - return fetch(o, $) - .then(filterBadStatus) - .then((en) => en.json()) - } else - return axios_1.default.request({ url: o, method: e, data: b, headers: _ }).then(($) => $.data) -} -http$1.http = http -var rpcclient = {} -Object.defineProperty(rpcclient, '__esModule', { value: !0 }) -rpcclient.hasProtocol = rpcclient.instanceOfRpcStreamingClient = void 0 -function instanceOfRpcStreamingClient(e) { - return typeof e.listen == 'function' -} -rpcclient.instanceOfRpcStreamingClient = instanceOfRpcStreamingClient -function hasProtocol(e) { - return e.search('://') !== -1 -} -rpcclient.hasProtocol = hasProtocol -Object.defineProperty(httpbatchclient, '__esModule', { value: !0 }) -httpbatchclient.HttpBatchClient = void 0 -const json_rpc_1$2 = build$1, - http_1$1 = http$1, - rpcclient_1$2 = rpcclient, - defaultHttpBatchClientOptions = { dispatchInterval: 20, batchSizeLimit: 20 } -class HttpBatchClient { - constructor(o, _ = {}) { - ;(this.queue = []), - (this.options = { - batchSizeLimit: _.batchSizeLimit ?? defaultHttpBatchClientOptions.batchSizeLimit, - dispatchInterval: _.dispatchInterval ?? defaultHttpBatchClientOptions.dispatchInterval, - }), - typeof o == 'string' - ? (this.url = (0, rpcclient_1$2.hasProtocol)(o) ? o : 'http://' + o) - : ((this.url = o.url), (this.headers = o.headers)), - (this.timer = setInterval(() => this.tick(), _.dispatchInterval)), - this.validate() - } - disconnect() { - this.timer && clearInterval(this.timer), (this.timer = void 0) - } - async execute(o) { - return new Promise((_, b) => { - this.queue.push({ request: o, resolve: _, reject: b }), - this.queue.length >= this.options.batchSizeLimit && this.tick() - }) - } - validate() { - if ( - !this.options.batchSizeLimit || - !Number.isSafeInteger(this.options.batchSizeLimit) || - this.options.batchSizeLimit < 1 - ) - throw new Error('batchSizeLimit must be a safe integer >= 1') - } - tick() { - const o = this.queue.splice(0, this.options.batchSizeLimit) - if (!o.length) return - const _ = o.map(($) => $.request), - b = _.map(($) => $.id) - ;(0, http_1$1.http)('POST', this.url, this.headers, _).then( - ($) => { - ;(Array.isArray($) ? $ : [$]).forEach((nn) => { - const sn = o.find((qn) => qn.request.id === nn.id) - if (!sn) return - const { reject: gn, resolve: In } = sn, - Jn = (0, json_rpc_1$2.parseJsonRpcResponse)(nn) - ;(0, json_rpc_1$2.isJsonRpcErrorResponse)(Jn) - ? gn(new Error(JSON.stringify(Jn.error))) - : In(Jn) - }) - }, - ($) => { - for (const en of b) { - const nn = o.find((sn) => sn.request.id === en) - if (!nn) return - nn.reject($) - } - }, - ) - } -} -httpbatchclient.HttpBatchClient = HttpBatchClient -var httpclient = {} -Object.defineProperty(httpclient, '__esModule', { value: !0 }) -httpclient.HttpClient = void 0 -const json_rpc_1$1 = build$1, - http_1 = http$1, - rpcclient_1$1 = rpcclient -class HttpClient { - constructor(o) { - typeof o == 'string' - ? (this.url = (0, rpcclient_1$1.hasProtocol)(o) ? o : 'http://' + o) - : ((this.url = o.url), (this.headers = o.headers)) - } - disconnect() {} - async execute(o) { - const _ = (0, json_rpc_1$1.parseJsonRpcResponse)( - await (0, http_1.http)('POST', this.url, this.headers, o), - ) - if ((0, json_rpc_1$1.isJsonRpcErrorResponse)(_)) throw new Error(JSON.stringify(_.error)) - return _ - } -} -httpclient.HttpClient = HttpClient -var websocketclient = {}, - build = {}, - queueingstreamingsocket = {}, - streamingsocket = {}, - socketwrapper = {}, - ws = null -typeof WebSocket < 'u' - ? (ws = WebSocket) - : typeof MozWebSocket < 'u' - ? (ws = MozWebSocket) - : typeof commonjsGlobal < 'u' - ? (ws = commonjsGlobal.WebSocket || commonjsGlobal.MozWebSocket) - : typeof window < 'u' - ? (ws = window.WebSocket || window.MozWebSocket) - : typeof self < 'u' && (ws = self.WebSocket || self.MozWebSocket) -var browser = ws, - __importDefault$2 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(socketwrapper, '__esModule', { value: !0 }) -socketwrapper.SocketWrapper = void 0 -const isomorphic_ws_1 = __importDefault$2(browser) -function environmentIsNodeJs() { - return typeof process < 'u' && typeof process.versions < 'u' && typeof process.versions.node < 'u' -} -class SocketWrapper { - constructor(o, _, b, $, en, nn = 1e4) { - ;(this.closed = !1), - (this.connected = new Promise((sn, gn) => { - ;(this.connectedResolver = sn), (this.connectedRejecter = gn) - })), - (this.url = o), - (this.messageHandler = _), - (this.errorHandler = b), - (this.openHandler = $), - (this.closeHandler = en), - (this.timeout = nn) - } - connect() { - const o = new isomorphic_ws_1.default(this.url) - ;(o.onerror = (b) => { - this.clearTimeout(), this.errorHandler && this.errorHandler(b) - }), - (o.onmessage = (b) => { - this.messageHandler({ type: b.type, data: b.data }) - }), - (o.onopen = (b) => { - this.clearTimeout(), this.connectedResolver(), this.openHandler && this.openHandler() - }), - (o.onclose = (b) => { - ;(this.closed = !0), this.closeHandler && this.closeHandler(b) - }) - const _ = Date.now() - ;(this.timeoutId = setTimeout(() => { - ;(o.onmessage = () => 0), - (o.onerror = () => 0), - (o.onopen = () => 0), - (o.onclose = () => 0), - o.close(), - (this.socket = void 0) - const b = Math.floor(Date.now() - _) - this.connectedRejecter(`Connection attempt timed out after ${b} ms`) - }, this.timeout)), - (this.socket = o) - } - disconnect() { - if (!this.socket) throw new Error('Socket undefined. This must be called after connecting.') - switch ((this.clearTimeout(), this.socket.readyState)) { - case isomorphic_ws_1.default.OPEN: - this.socket.close(1e3) - break - case isomorphic_ws_1.default.CLOSED: - break - case isomorphic_ws_1.default.CONNECTING: - ;(this.socket.onopen = () => 0), - (this.socket.onclose = () => 0), - (this.socket.onerror = () => 0), - (this.socket.onmessage = () => 0), - (this.socket = void 0), - this.closeHandler && this.closeHandler({ wasClean: !1, code: 4001 }) - break - case isomorphic_ws_1.default.CLOSING: - break - default: - throw new Error(`Unknown readyState: ${this.socket.readyState}`) - } - } - async send(o) { - return new Promise((_, b) => { - if (!this.socket) throw new Error('Socket undefined. This must be called after connecting.') - if (this.closed) throw new Error('Socket was closed, so no data can be sent anymore.') - if (this.socket.readyState !== isomorphic_ws_1.default.OPEN) - throw new Error('Websocket is not open') - environmentIsNodeJs() - ? this.socket.send(o, ($) => ($ ? b($) : _())) - : (this.socket.send(o), _()) - }) - } - clearTimeout() { - if (!this.timeoutId) - throw new Error( - 'Timeout ID not set. This should not happen and usually means connect() was not called.', - ) - clearTimeout(this.timeoutId) - } -} -socketwrapper.SocketWrapper = SocketWrapper -Object.defineProperty(streamingsocket, '__esModule', { value: !0 }) -streamingsocket.StreamingSocket = void 0 -const xstream_1$2 = xstream, - socketwrapper_1 = socketwrapper -class StreamingSocket { - constructor(o, _ = 1e4) { - ;(this.socket = new socketwrapper_1.SocketWrapper( - o, - ($) => { - this.eventProducerListener && this.eventProducerListener.next($) - }, - ($) => { - this.eventProducerListener && this.eventProducerListener.error($) - }, - () => {}, - ($) => { - this.eventProducerListener && - ($.wasClean - ? this.eventProducerListener.complete() - : this.eventProducerListener.error('Socket was closed unclean')) - }, - _, - )), - (this.connected = this.socket.connected) - const b = { - start: ($) => (this.eventProducerListener = $), - stop: () => (this.eventProducerListener = void 0), - } - this.events = xstream_1$2.Stream.create(b) - } - connect() { - this.socket.connect() - } - disconnect() { - this.socket.disconnect() - } - async send(o) { - return this.socket.send(o) - } -} -streamingsocket.StreamingSocket = StreamingSocket -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueueingStreamingSocket = e.ConnectionStatus = void 0) - const o = build$3, - _ = xstream, - b = streamingsocket - var $ - ;(function (nn) { - ;(nn[(nn.Unconnected = 0)] = 'Unconnected'), - (nn[(nn.Connecting = 1)] = 'Connecting'), - (nn[(nn.Connected = 2)] = 'Connected'), - (nn[(nn.Disconnected = 3)] = 'Disconnected') - })(($ = e.ConnectionStatus || (e.ConnectionStatus = {}))) - class en { - constructor(sn, gn = 1e4, In) { - ;(this.queue = []), - (this.isProcessingQueue = !1), - (this.url = sn), - (this.timeout = gn), - (this.reconnectedHandler = In) - const Jn = { - start: (qn) => (this.eventProducerListener = qn), - stop: () => (this.eventProducerListener = void 0), - } - ;(this.events = _.Stream.create(Jn)), - (this.connectionStatusProducer = new o.DefaultValueProducer($.Unconnected)), - (this.connectionStatus = new o.ValueAndUpdates(this.connectionStatusProducer)), - (this.socket = new b.StreamingSocket(this.url, this.timeout)), - this.socket.events.subscribe({ - next: (qn) => { - if (!this.eventProducerListener) throw new Error('No event producer listener set') - this.eventProducerListener.next(qn) - }, - error: () => this.connectionStatusProducer.update($.Disconnected), - }) - } - connect() { - this.connectionStatusProducer.update($.Connecting), - this.socket.connected.then( - async () => (this.connectionStatusProducer.update($.Connected), this.processQueue()), - () => this.connectionStatusProducer.update($.Disconnected), - ), - this.socket.connect() - } - disconnect() { - this.connectionStatusProducer.update($.Disconnected), this.socket.disconnect() - } - reconnect() { - ;(this.socket = new b.StreamingSocket(this.url, this.timeout)), - this.socket.events.subscribe({ - next: (sn) => { - if (!this.eventProducerListener) throw new Error('No event producer listener set') - this.eventProducerListener.next(sn) - }, - error: () => this.connectionStatusProducer.update($.Disconnected), - }), - this.socket.connected.then(() => { - this.reconnectedHandler && this.reconnectedHandler() - }), - this.connect() - } - getQueueLength() { - return this.queue.length - } - queueRequest(sn) { - this.queue.push(sn), this.processQueue() - } - async processQueue() { - if (this.isProcessingQueue || this.connectionStatus.value !== $.Connected) return - this.isProcessingQueue = !0 - let sn - for (; (sn = this.queue.shift()); ) - try { - await this.socket.send(sn), (this.isProcessingQueue = !1) - } catch { - this.queue.unshift(sn), (this.isProcessingQueue = !1) - return - } - } - } - e.QueueingStreamingSocket = en -})(queueingstreamingsocket) -var reconnectingsocket = {} -Object.defineProperty(reconnectingsocket, '__esModule', { value: !0 }) -reconnectingsocket.ReconnectingSocket = void 0 -const xstream_1$1 = xstream, - queueingstreamingsocket_1 = queueingstreamingsocket -class ReconnectingSocket { - static calculateTimeout(o) { - return Math.min(2 ** o * 100, 5e3) - } - constructor(o, _ = 1e4, b) { - ;(this.unconnected = !0), - (this.disconnected = !1), - (this.timeoutIndex = 0), - (this.reconnectTimeout = null) - const $ = { - start: (en) => (this.eventProducerListener = en), - stop: () => (this.eventProducerListener = void 0), - } - ;(this.events = xstream_1$1.Stream.create($)), - (this.socket = new queueingstreamingsocket_1.QueueingStreamingSocket(o, _, b)), - this.socket.events.subscribe({ - next: (en) => { - this.eventProducerListener && this.eventProducerListener.next(en) - }, - error: (en) => { - this.eventProducerListener && this.eventProducerListener.error(en) - }, - }), - (this.connectionStatus = this.socket.connectionStatus), - this.connectionStatus.updates.subscribe({ - next: (en) => { - en === queueingstreamingsocket_1.ConnectionStatus.Connected && (this.timeoutIndex = 0), - en === queueingstreamingsocket_1.ConnectionStatus.Disconnected && - (this.reconnectTimeout && - (clearTimeout(this.reconnectTimeout), (this.reconnectTimeout = null)), - (this.reconnectTimeout = setTimeout( - () => this.socket.reconnect(), - ReconnectingSocket.calculateTimeout(this.timeoutIndex++), - ))) - }, - }) - } - connect() { - if (!this.unconnected) throw new Error('Cannot connect: socket has already connected') - this.socket.connect(), (this.unconnected = !1) - } - disconnect() { - if (this.unconnected) throw new Error('Cannot disconnect: socket has not yet connected') - this.socket.disconnect(), - this.eventProducerListener && this.eventProducerListener.complete(), - (this.disconnected = !0) - } - queueRequest(o) { - if (this.disconnected) throw new Error('Cannot queue request: socket has disconnected') - this.socket.queueRequest(o) - } -} -reconnectingsocket.ReconnectingSocket = ReconnectingSocket -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.StreamingSocket = - e.SocketWrapper = - e.ReconnectingSocket = - e.QueueingStreamingSocket = - e.ConnectionStatus = - void 0) - var o = queueingstreamingsocket - Object.defineProperty(e, 'ConnectionStatus', { - enumerable: !0, - get: function () { - return o.ConnectionStatus - }, - }), - Object.defineProperty(e, 'QueueingStreamingSocket', { - enumerable: !0, - get: function () { - return o.QueueingStreamingSocket - }, - }) - var _ = reconnectingsocket - Object.defineProperty(e, 'ReconnectingSocket', { - enumerable: !0, - get: function () { - return _.ReconnectingSocket - }, - }) - var b = socketwrapper - Object.defineProperty(e, 'SocketWrapper', { - enumerable: !0, - get: function () { - return b.SocketWrapper - }, - }) - var $ = streamingsocket - Object.defineProperty(e, 'StreamingSocket', { - enumerable: !0, - get: function () { - return $.StreamingSocket - }, - }) -})(build) -Object.defineProperty(websocketclient, '__esModule', { value: !0 }) -websocketclient.WebsocketClient = void 0 -const json_rpc_1 = build$1, - socket_1 = build, - stream_1 = build$3, - xstream_1 = xstream, - rpcclient_1 = rpcclient -function defaultErrorHandler(e) { - throw e -} -function toJsonRpcResponse(e) { - if (e.type !== 'message') throw new Error(`Unexcepted message type on websocket: ${e.type}`) - return (0, json_rpc_1.parseJsonRpcResponse)(JSON.parse(e.data)) -} -class RpcEventProducer { - constructor(o, _) { - ;(this.running = !1), (this.subscriptions = []), (this.request = o), (this.socket = _) - } - start(o) { - if (this.running) throw Error('Already started. Please stop first before restarting.') - ;(this.running = !0), - this.connectToClient(o), - this.socket.queueRequest(JSON.stringify(this.request)) - } - stop() { - this.running = !1 - const o = { ...this.request, method: 'unsubscribe' } - try { - this.socket.queueRequest(JSON.stringify(o)) - } catch (_) { - if (!(_ instanceof Error && _.message.match(/socket has disconnected/i))) throw _ - } - } - connectToClient(o) { - const _ = this.socket.events.map(toJsonRpcResponse), - b = _.filter((nn) => nn.id === this.request.id).subscribe({ - next: (nn) => { - ;(0, json_rpc_1.isJsonRpcErrorResponse)(nn) && - (this.closeSubscriptions(), o.error(JSON.stringify(nn.error))), - b.unsubscribe() - }, - }), - $ = _.filter((nn) => nn.id === this.request.id).subscribe({ - next: (nn) => { - ;(0, json_rpc_1.isJsonRpcErrorResponse)(nn) - ? (this.closeSubscriptions(), o.error(JSON.stringify(nn.error))) - : o.next(nn.result) - }, - }), - en = _.subscribe({ - error: (nn) => { - this.closeSubscriptions(), o.error(nn) - }, - complete: () => { - this.closeSubscriptions(), o.complete() - }, - }) - this.subscriptions.push(b, $, en) - } - closeSubscriptions() { - for (const o of this.subscriptions) o.unsubscribe() - this.subscriptions = [] - } -} -class WebsocketClient { - constructor(o, _ = defaultErrorHandler) { - this.subscriptionStreams = new Map() - const b = o.endsWith('/') ? 'websocket' : '/websocket', - $ = (0, rpcclient_1.hasProtocol)(o) ? o : 'ws://' + o - ;(this.url = $ + b), (this.socket = new socket_1.ReconnectingSocket(this.url)) - const en = this.socket.events.subscribe({ - error: (nn) => { - _(nn), en.unsubscribe() - }, - }) - ;(this.jsonRpcResponseStream = this.socket.events.map(toJsonRpcResponse)), this.socket.connect() - } - async execute(o) { - const _ = this.responseForRequestId(o.id) - this.socket.queueRequest(JSON.stringify(o)) - const b = await _ - if ((0, json_rpc_1.isJsonRpcErrorResponse)(b)) throw new Error(JSON.stringify(b.error)) - return b - } - listen(o) { - if (o.method !== 'subscribe') - throw new Error('Request method must be "subscribe" to start event listening') - const _ = o.params.query - if (typeof _ != 'string') throw new Error('request.params.query must be a string') - if (!this.subscriptionStreams.has(_)) { - const b = new RpcEventProducer(o, this.socket), - $ = xstream_1.Stream.create(b) - this.subscriptionStreams.set(_, $) - } - return this.subscriptionStreams.get(_).filter((b) => b.query !== void 0) - } - async connected() { - await this.socket.connectionStatus.waitFor(socket_1.ConnectionStatus.Connected) - } - disconnect() { - this.socket.disconnect() - } - async responseForRequestId(o) { - return (0, stream_1.firstEvent)(this.jsonRpcResponseStream.filter((_) => _.id === o)) - } -} -websocketclient.WebsocketClient = WebsocketClient -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.WebsocketClient = e.instanceOfRpcStreamingClient = e.HttpClient = e.HttpBatchClient = void 0) - var o = httpbatchclient - Object.defineProperty(e, 'HttpBatchClient', { - enumerable: !0, - get: function () { - return o.HttpBatchClient - }, - }) - var _ = httpclient - Object.defineProperty(e, 'HttpClient', { - enumerable: !0, - get: function () { - return _.HttpClient - }, - }) - var b = rpcclient - Object.defineProperty(e, 'instanceOfRpcStreamingClient', { - enumerable: !0, - get: function () { - return b.instanceOfRpcStreamingClient - }, - }) - var $ = websocketclient - Object.defineProperty(e, 'WebsocketClient', { - enumerable: !0, - get: function () { - return $.WebsocketClient - }, - }) -})(rpcclients) -var tendermint34 = {}, - requests$7 = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.buildQuery = e.SubscriptionEventType = e.Method = void 0), - (function (_) { - ;(_.AbciInfo = 'abci_info'), - (_.AbciQuery = 'abci_query'), - (_.Block = 'block'), - (_.Blockchain = 'blockchain'), - (_.BlockResults = 'block_results'), - (_.BlockSearch = 'block_search'), - (_.BroadcastTxAsync = 'broadcast_tx_async'), - (_.BroadcastTxSync = 'broadcast_tx_sync'), - (_.BroadcastTxCommit = 'broadcast_tx_commit'), - (_.Commit = 'commit'), - (_.Genesis = 'genesis'), - (_.Health = 'health'), - (_.NumUnconfirmedTxs = 'num_unconfirmed_txs'), - (_.Status = 'status'), - (_.Subscribe = 'subscribe'), - (_.Tx = 'tx'), - (_.TxSearch = 'tx_search'), - (_.Validators = 'validators'), - (_.Unsubscribe = 'unsubscribe') - })(e.Method || (e.Method = {})), - (function (_) { - ;(_.NewBlock = 'NewBlock'), (_.NewBlockHeader = 'NewBlockHeader'), (_.Tx = 'Tx') - })(e.SubscriptionEventType || (e.SubscriptionEventType = {})) - function o(_) { - const $ = (_.tags ? _.tags : []).map((nn) => `${nn.key}='${nn.value}'`), - en = _.raw ? [_.raw] : [] - return [...$, ...en].join(' AND ') - } - e.buildQuery = o -})(requests$7) -var responses$3 = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.VoteType = e.broadcastTxCommitSuccess = e.broadcastTxSyncSuccess = void 0) - function o(b) { - return b.code === 0 - } - e.broadcastTxSyncSuccess = o - function _(b) { - return b.checkTx.code === 0 && !!b.deliverTx && b.deliverTx.code === 0 - } - ;(e.broadcastTxCommitSuccess = _), - (function (b) { - ;(b[(b.PreVote = 1)] = 'PreVote'), (b[(b.PreCommit = 2)] = 'PreCommit') - })(e.VoteType || (e.VoteType = {})) -})(responses$3) -var tendermint34client = {}, - jsonrpc = {} -Object.defineProperty(jsonrpc, '__esModule', { value: !0 }) -jsonrpc.createJsonRpcRequest = void 0 -const numbersWithoutZero = '123456789' -function randomNumericChar() { - return numbersWithoutZero[Math.floor(Math.random() * numbersWithoutZero.length)] -} -function randomId() { - return parseInt( - Array.from({ length: 12 }) - .map(() => randomNumericChar()) - .join(''), - 10, - ) -} -function createJsonRpcRequest(e, o) { - const _ = o ? { ...o } : {} - return { jsonrpc: '2.0', id: randomId(), method: e, params: _ } -} -jsonrpc.createJsonRpcRequest = createJsonRpcRequest -var adaptor$1 = {}, - hasher$1 = {}, - encodings$1 = {} -Object.defineProperty(encodings$1, '__esModule', { value: !0 }) -encodings$1.encodeBlockId = - encodings$1.encodeVersion = - encodings$1.encodeBytes = - encodings$1.encodeTime = - encodings$1.encodeUvarint = - encodings$1.encodeString = - encodings$1.dictionaryToStringMap = - encodings$1.may = - encodings$1.assertNotEmpty = - encodings$1.assertObject = - encodings$1.assertArray = - encodings$1.assertNumber = - encodings$1.assertString = - encodings$1.assertBoolean = - encodings$1.assertSet = - void 0 -const encoding_1$9 = build$b -function assertSet$1(e) { - if (e === void 0) throw new Error('Value must not be undefined') - if (e === null) throw new Error('Value must not be null') - return e -} -encodings$1.assertSet = assertSet$1 -function assertBoolean$1(e) { - if ((assertSet$1(e), typeof e != 'boolean')) throw new Error('Value must be a boolean') - return e -} -encodings$1.assertBoolean = assertBoolean$1 -function assertString$1(e) { - if ((assertSet$1(e), typeof e != 'string')) throw new Error('Value must be a string') - return e -} -encodings$1.assertString = assertString$1 -function assertNumber$1(e) { - if ((assertSet$1(e), typeof e != 'number')) throw new Error('Value must be a number') - return e -} -encodings$1.assertNumber = assertNumber$1 -function assertArray$1(e) { - if ((assertSet$1(e), !Array.isArray(e))) throw new Error('Value must be a an array') - return e -} -encodings$1.assertArray = assertArray$1 -function assertObject$1(e) { - if ((assertSet$1(e), typeof e != 'object')) throw new Error('Value must be an object') - if (Object.prototype.toString.call(e) !== '[object Object]') - throw new Error('Value must be a simple object') - return e -} -encodings$1.assertObject = assertObject$1 -function assertNotEmpty$1(e) { - if ((assertSet$1(e), typeof e == 'number' && e === 0)) - throw new Error('must provide a non-zero value') - if (e.length === 0) throw new Error('must provide a non-empty value') - return e -} -encodings$1.assertNotEmpty = assertNotEmpty$1 -function may$1(e, o) { - return o == null ? void 0 : e(o) -} -encodings$1.may = may$1 -function dictionaryToStringMap$1(e) { - const o = new Map() - for (const _ of Object.keys(e)) { - const b = e[_] - if (typeof b != 'string') throw new Error('Found dictionary value of type other than string') - o.set(_, b) - } - return o -} -encodings$1.dictionaryToStringMap = dictionaryToStringMap$1 -function encodeString$1(e) { - const o = (0, encoding_1$9.toUtf8)(e) - return Uint8Array.from([o.length, ...o]) -} -encodings$1.encodeString = encodeString$1 -function encodeUvarint$1(e) { - return e >= 128 - ? Uint8Array.from([(e & 255) | 128, ...encodeUvarint$1(e >> 7)]) - : Uint8Array.from([e & 255]) -} -encodings$1.encodeUvarint = encodeUvarint$1 -function encodeTime$1(e) { - const o = e.getTime(), - _ = Math.floor(o / 1e3), - b = _ ? [8, ...encodeUvarint$1(_)] : new Uint8Array(), - $ = (e.nanoseconds || 0) + (o % 1e3) * 1e6, - en = $ ? [16, ...encodeUvarint$1($)] : new Uint8Array() - return Uint8Array.from([...b, ...en]) -} -encodings$1.encodeTime = encodeTime$1 -function encodeBytes$1(e) { - if (e.length >= 128) throw new Error('Not implemented for byte arrays of length 128 or more') - return e.length ? Uint8Array.from([e.length, ...e]) : new Uint8Array() -} -encodings$1.encodeBytes = encodeBytes$1 -function encodeVersion$1(e) { - const o = e.block ? Uint8Array.from([8, ...encodeUvarint$1(e.block)]) : new Uint8Array(), - _ = e.app ? Uint8Array.from([16, ...encodeUvarint$1(e.app)]) : new Uint8Array() - return Uint8Array.from([...o, ..._]) -} -encodings$1.encodeVersion = encodeVersion$1 -function encodeBlockId$1(e) { - return Uint8Array.from([ - 10, - e.hash.length, - ...e.hash, - 18, - e.parts.hash.length + 4, - 8, - e.parts.total, - 18, - e.parts.hash.length, - ...e.parts.hash, - ]) -} -encodings$1.encodeBlockId = encodeBlockId$1 -Object.defineProperty(hasher$1, '__esModule', { value: !0 }) -hasher$1.hashBlock = hasher$1.hashTx = void 0 -const crypto_1$1 = build$6, - encodings_1$6 = encodings$1 -function hashTx$1(e) { - return (0, crypto_1$1.sha256)(e) -} -hasher$1.hashTx = hashTx$1 -function getSplitPoint$1(e) { - if (e < 1) throw new Error('Cannot split an empty tree') - const o = 2 ** Math.floor(Math.log2(e)) - return o < e ? o : o / 2 -} -function hashLeaf$1(e) { - const o = new crypto_1$1.Sha256(Uint8Array.from([0])) - return o.update(e), o.digest() -} -function hashInner$1(e, o) { - const _ = new crypto_1$1.Sha256(Uint8Array.from([1])) - return _.update(e), _.update(o), _.digest() -} -function hashTree$1(e) { - switch (e.length) { - case 0: - throw new Error('Cannot hash empty tree') - case 1: - return hashLeaf$1(e[0]) - default: { - const o = getSplitPoint$1(e.length), - _ = hashTree$1(e.slice(0, o)), - b = hashTree$1(e.slice(o)) - return hashInner$1(_, b) - } - } -} -function hashBlock$1(e) { - if (!e.lastBlockId) - throw new Error( - 'Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.', - ) - const o = [ - (0, encodings_1$6.encodeVersion)(e.version), - (0, encodings_1$6.encodeString)(e.chainId), - (0, encodings_1$6.encodeUvarint)(e.height), - (0, encodings_1$6.encodeTime)(e.time), - (0, encodings_1$6.encodeBlockId)(e.lastBlockId), - (0, encodings_1$6.encodeBytes)(e.lastCommitHash), - (0, encodings_1$6.encodeBytes)(e.dataHash), - (0, encodings_1$6.encodeBytes)(e.validatorsHash), - (0, encodings_1$6.encodeBytes)(e.nextValidatorsHash), - (0, encodings_1$6.encodeBytes)(e.consensusHash), - (0, encodings_1$6.encodeBytes)(e.appHash), - (0, encodings_1$6.encodeBytes)(e.lastResultsHash), - (0, encodings_1$6.encodeBytes)(e.evidenceHash), - (0, encodings_1$6.encodeBytes)(e.proposerAddress), - ] - return hashTree$1(o) -} -hasher$1.hashBlock = hashBlock$1 -var requests$6 = {}, - inthelpers = {} -Object.defineProperty(inthelpers, '__esModule', { value: !0 }) -inthelpers.smallIntToApi = inthelpers.apiToBigInt = inthelpers.apiToSmallInt = void 0 -const math_1$2 = build$a, - encodings_1$5 = encodings$1 -function apiToSmallInt(e) { - return (typeof e == 'number' ? new math_1$2.Int53(e) : math_1$2.Int53.fromString(e)).toNumber() -} -inthelpers.apiToSmallInt = apiToSmallInt -function apiToBigInt(e) { - if (((0, encodings_1$5.assertString)(e), !e.match(/^-?[0-9]+$/))) - throw new Error('Invalid string format') - return BigInt(e) -} -inthelpers.apiToBigInt = apiToBigInt -function smallIntToApi(e) { - return new math_1$2.Int53(e).toString() -} -inthelpers.smallIntToApi = smallIntToApi -var __createBinding$3 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$3 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$3 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$3(o, e, _) - return __setModuleDefault$3(o, e), o - } -Object.defineProperty(requests$6, '__esModule', { value: !0 }) -requests$6.Params = void 0 -const encoding_1$8 = build$b, - inthelpers_1$3 = inthelpers, - jsonrpc_1$3 = jsonrpc, - encodings_1$4 = encodings$1, - requests$5 = __importStar$3(requests$7) -function encodeHeightParam$1(e) { - return { height: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.height) } -} -function encodeBlockchainRequestParams$1(e) { - return { - minHeight: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.minHeight), - maxHeight: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.maxHeight), - } -} -function encodeBlockSearchParams$1(e) { - return { - query: e.query, - page: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.page), - per_page: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.per_page), - order_by: e.order_by, - } -} -function encodeAbciQueryParams$1(e) { - return { - path: (0, encodings_1$4.assertNotEmpty)(e.path), - data: (0, encoding_1$8.toHex)(e.data), - height: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.height), - prove: e.prove, - } -} -function encodeBroadcastTxParams$1(e) { - return { tx: (0, encoding_1$8.toBase64)((0, encodings_1$4.assertNotEmpty)(e.tx)) } -} -function encodeTxParams$1(e) { - return { - hash: (0, encoding_1$8.toBase64)((0, encodings_1$4.assertNotEmpty)(e.hash)), - prove: e.prove, - } -} -function encodeTxSearchParams$1(e) { - return { - query: e.query, - prove: e.prove, - page: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.page), - per_page: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.per_page), - order_by: e.order_by, - } -} -function encodeValidatorsParams$1(e) { - return { - height: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.height), - page: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.page), - per_page: (0, encodings_1$4.may)(inthelpers_1$3.smallIntToApi, e.per_page), - } -} -let Params$1 = class { - static encodeAbciInfo(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method) - } - static encodeAbciQuery(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeAbciQueryParams$1(o.params)) - } - static encodeBlock(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeHeightParam$1(o.params)) - } - static encodeBlockchain(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)( - o.method, - encodeBlockchainRequestParams$1(o.params), - ) - } - static encodeBlockResults(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeHeightParam$1(o.params)) - } - static encodeBlockSearch(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeBlockSearchParams$1(o.params)) - } - static encodeBroadcastTx(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeBroadcastTxParams$1(o.params)) - } - static encodeCommit(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeHeightParam$1(o.params)) - } - static encodeGenesis(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method) - } - static encodeHealth(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method) - } - static encodeNumUnconfirmedTxs(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method) - } - static encodeStatus(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method) - } - static encodeSubscribe(o) { - const _ = { key: 'tm.event', value: o.query.type }, - b = requests$5.buildQuery({ tags: [_], raw: o.query.raw }) - return (0, jsonrpc_1$3.createJsonRpcRequest)('subscribe', { query: b }) - } - static encodeTx(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeTxParams$1(o.params)) - } - static encodeTxSearch(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeTxSearchParams$1(o.params)) - } - static encodeValidators(o) { - return (0, jsonrpc_1$3.createJsonRpcRequest)(o.method, encodeValidatorsParams$1(o.params)) - } -} -requests$6.Params = Params$1 -var responses$2 = {}, - types$1 = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.BlockIdFlag = void 0), - (function (o) { - ;(o[(o.Unknown = 0)] = 'Unknown'), - (o[(o.Absent = 1)] = 'Absent'), - (o[(o.Commit = 2)] = 'Commit'), - (o[(o.Nil = 3)] = 'Nil'), - (o[(o.Unrecognized = -1)] = 'Unrecognized') - })(e.BlockIdFlag || (e.BlockIdFlag = {})) -})(types$1) -Object.defineProperty(responses$2, '__esModule', { value: !0 }) -responses$2.Responses = - responses$2.decodeValidatorInfo = - responses$2.decodeValidatorGenesis = - responses$2.decodeValidatorUpdate = - responses$2.decodeEvent = - void 0 -const encoding_1$7 = build$b, - utils_1$3 = build$5, - dates_1$1 = dates, - inthelpers_1$2 = inthelpers, - types_1$3 = types$1, - encodings_1$3 = encodings$1, - hasher_1$3 = hasher$1 -function decodeAbciInfo$1(e) { - return { - data: e.data, - lastBlockHeight: (0, encodings_1$3.may)(inthelpers_1$2.apiToSmallInt, e.last_block_height), - lastBlockAppHash: (0, encodings_1$3.may)(encoding_1$7.fromBase64, e.last_block_app_hash), - } -} -function decodeQueryProof$1(e) { - return { - ops: e.ops.map((o) => ({ - type: o.type, - key: (0, encoding_1$7.fromBase64)(o.key), - data: (0, encoding_1$7.fromBase64)(o.data), - })), - } -} -function decodeAbciQuery$1(e) { - return { - key: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertString)(e.key ?? '')), - value: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertString)(e.value ?? '')), - proof: (0, encodings_1$3.may)(decodeQueryProof$1, e.proofOps), - height: (0, encodings_1$3.may)(inthelpers_1$2.apiToSmallInt, e.height), - code: (0, encodings_1$3.may)(inthelpers_1$2.apiToSmallInt, e.code), - codespace: (0, encodings_1$3.assertString)(e.codespace ?? ''), - index: (0, encodings_1$3.may)(inthelpers_1$2.apiToSmallInt, e.index), - log: e.log, - info: (0, encodings_1$3.assertString)(e.info ?? ''), - } -} -function decodeAttribute(e) { - return { - key: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(e.key)), - value: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertString)(e.value ?? '')), - } -} -function decodeAttributes$1(e) { - return (0, encodings_1$3.assertArray)(e).map(decodeAttribute) -} -function decodeEvent$1(e) { - return { type: e.type, attributes: e.attributes ? decodeAttributes$1(e.attributes) : [] } -} -responses$2.decodeEvent = decodeEvent$1 -function decodeEvents$1(e) { - return (0, encodings_1$3.assertArray)(e).map(decodeEvent$1) -} -function decodeTxData$1(e) { - return { - code: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNumber)(e.code ?? 0)), - codespace: e.codespace, - log: e.log, - data: (0, encodings_1$3.may)(encoding_1$7.fromBase64, e.data), - events: e.events ? decodeEvents$1(e.events) : [], - gasWanted: (0, inthelpers_1$2.apiToSmallInt)(e.gas_wanted ?? '0'), - gasUsed: (0, inthelpers_1$2.apiToSmallInt)(e.gas_used ?? '0'), - } -} -function decodePubkey$1(e) { - if ('Sum' in e) { - const [[o, _]] = Object.entries(e.Sum.value) - return ( - (0, utils_1$3.assert)(o === 'ed25519' || o === 'secp256k1', `unknown pubkey type: ${o}`), - { algorithm: o, data: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(_)) } - ) - } else - switch (e.type) { - case 'tendermint/PubKeyEd25519': - return { - algorithm: 'ed25519', - data: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(e.value)), - } - case 'tendermint/PubKeySecp256k1': - return { - algorithm: 'secp256k1', - data: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(e.value)), - } - default: - throw new Error(`unknown pubkey type: ${e.type}`) - } -} -function decodeBlockParams$1(e) { - return { - maxBytes: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.max_bytes)), - maxGas: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.max_gas)), - } -} -function decodeEvidenceParams$1(e) { - return { - maxAgeNumBlocks: (0, inthelpers_1$2.apiToSmallInt)( - (0, encodings_1$3.assertNotEmpty)(e.max_age_num_blocks), - ), - maxAgeDuration: (0, inthelpers_1$2.apiToSmallInt)( - (0, encodings_1$3.assertNotEmpty)(e.max_age_duration), - ), - } -} -function decodeConsensusParams$1(e) { - return { - block: decodeBlockParams$1((0, encodings_1$3.assertObject)(e.block)), - evidence: decodeEvidenceParams$1((0, encodings_1$3.assertObject)(e.evidence)), - } -} -function decodeValidatorUpdate$1(e) { - return { - pubkey: decodePubkey$1((0, encodings_1$3.assertObject)(e.pub_key)), - votingPower: (0, inthelpers_1$2.apiToBigInt)(e.power ?? '0'), - } -} -responses$2.decodeValidatorUpdate = decodeValidatorUpdate$1 -function decodeBlockResults$1(e) { - return { - height: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.height)), - results: (e.txs_results || []).map(decodeTxData$1), - validatorUpdates: (e.validator_updates || []).map(decodeValidatorUpdate$1), - consensusUpdates: (0, encodings_1$3.may)(decodeConsensusParams$1, e.consensus_param_updates), - beginBlockEvents: decodeEvents$1(e.begin_block_events || []), - endBlockEvents: decodeEvents$1(e.end_block_events || []), - } -} -function decodeBlockId$1(e) { - return { - hash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.hash)), - parts: { - total: (0, encodings_1$3.assertNotEmpty)(e.parts.total), - hash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.parts.hash)), - }, - } -} -function decodeBlockVersion$1(e) { - return { - block: (0, inthelpers_1$2.apiToSmallInt)(e.block), - app: (0, inthelpers_1$2.apiToSmallInt)(e.app ?? 0), - } -} -function decodeHeader$1(e) { - return { - version: decodeBlockVersion$1(e.version), - chainId: (0, encodings_1$3.assertNotEmpty)(e.chain_id), - height: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.height)), - time: (0, dates_1$1.fromRfc3339WithNanoseconds)((0, encodings_1$3.assertNotEmpty)(e.time)), - lastBlockId: e.last_block_id.hash ? decodeBlockId$1(e.last_block_id) : null, - lastCommitHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.last_commit_hash)), - dataHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.data_hash)), - validatorsHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.validators_hash)), - nextValidatorsHash: (0, encoding_1$7.fromHex)( - (0, encodings_1$3.assertSet)(e.next_validators_hash), - ), - consensusHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.consensus_hash)), - appHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.app_hash)), - lastResultsHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.last_results_hash)), - evidenceHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.evidence_hash)), - proposerAddress: (0, encoding_1$7.fromHex)( - (0, encodings_1$3.assertNotEmpty)(e.proposer_address), - ), - } -} -function decodeBlockMeta$1(e) { - return { - blockId: decodeBlockId$1(e.block_id), - blockSize: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.block_size)), - header: decodeHeader$1(e.header), - numTxs: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.num_txs)), - } -} -function decodeBlockchain$1(e) { - return { - lastHeight: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.last_height)), - blockMetas: (0, encodings_1$3.assertArray)(e.block_metas).map(decodeBlockMeta$1), - } -} -function decodeBroadcastTxSync$1(e) { - return { - ...decodeTxData$1(e), - hash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.hash)), - } -} -function decodeBroadcastTxCommit$1(e) { - return { - height: (0, inthelpers_1$2.apiToSmallInt)(e.height), - hash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.hash)), - checkTx: decodeTxData$1((0, encodings_1$3.assertObject)(e.check_tx)), - deliverTx: (0, encodings_1$3.may)(decodeTxData$1, e.deliver_tx), - } -} -function decodeBlockIdFlag$1(e) { - return (0, utils_1$3.assert)(e in types_1$3.BlockIdFlag), e -} -function decodeOptionalTime$1(e) { - return e && !e.startsWith('0001-01-01') ? (0, dates_1$1.fromRfc3339WithNanoseconds)(e) : void 0 -} -function decodeCommitSignature$1(e) { - return { - blockIdFlag: decodeBlockIdFlag$1(e.block_id_flag), - validatorAddress: e.validator_address ? (0, encoding_1$7.fromHex)(e.validator_address) : void 0, - timestamp: decodeOptionalTime$1(e.timestamp), - signature: e.signature ? (0, encoding_1$7.fromBase64)(e.signature) : void 0, - } -} -function decodeCommit$1(e) { - return { - blockId: decodeBlockId$1((0, encodings_1$3.assertObject)(e.block_id)), - height: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.height)), - round: (0, inthelpers_1$2.apiToSmallInt)(e.round), - signatures: (0, encodings_1$3.assertArray)(e.signatures).map(decodeCommitSignature$1), - } -} -function decodeCommitResponse$1(e) { - return { - canonical: (0, encodings_1$3.assertBoolean)(e.canonical), - header: decodeHeader$1(e.signed_header.header), - commit: decodeCommit$1(e.signed_header.commit), - } -} -function decodeValidatorGenesis$1(e) { - return { - address: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.address)), - pubkey: decodePubkey$1((0, encodings_1$3.assertObject)(e.pub_key)), - votingPower: (0, inthelpers_1$2.apiToBigInt)((0, encodings_1$3.assertNotEmpty)(e.power)), - } -} -responses$2.decodeValidatorGenesis = decodeValidatorGenesis$1 -function decodeGenesis$1(e) { - return { - genesisTime: (0, dates_1$1.fromRfc3339WithNanoseconds)( - (0, encodings_1$3.assertNotEmpty)(e.genesis_time), - ), - chainId: (0, encodings_1$3.assertNotEmpty)(e.chain_id), - consensusParams: decodeConsensusParams$1(e.consensus_params), - validators: e.validators - ? (0, encodings_1$3.assertArray)(e.validators).map(decodeValidatorGenesis$1) - : [], - appHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertSet)(e.app_hash)), - appState: e.app_state, - } -} -function decodeValidatorInfo$1(e) { - return { - pubkey: decodePubkey$1((0, encodings_1$3.assertObject)(e.pub_key)), - votingPower: (0, inthelpers_1$2.apiToBigInt)((0, encodings_1$3.assertNotEmpty)(e.voting_power)), - address: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.address)), - proposerPriority: e.proposer_priority - ? (0, inthelpers_1$2.apiToSmallInt)(e.proposer_priority) - : void 0, - } -} -responses$2.decodeValidatorInfo = decodeValidatorInfo$1 -function decodeNodeInfo$1(e) { - return { - id: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.id)), - listenAddr: (0, encodings_1$3.assertNotEmpty)(e.listen_addr), - network: (0, encodings_1$3.assertNotEmpty)(e.network), - version: (0, encodings_1$3.assertString)(e.version), - channels: (0, encodings_1$3.assertNotEmpty)(e.channels), - moniker: (0, encodings_1$3.assertNotEmpty)(e.moniker), - other: (0, encodings_1$3.dictionaryToStringMap)(e.other), - protocolVersion: { - app: (0, inthelpers_1$2.apiToSmallInt)( - (0, encodings_1$3.assertNotEmpty)(e.protocol_version.app), - ), - block: (0, inthelpers_1$2.apiToSmallInt)( - (0, encodings_1$3.assertNotEmpty)(e.protocol_version.block), - ), - p2p: (0, inthelpers_1$2.apiToSmallInt)( - (0, encodings_1$3.assertNotEmpty)(e.protocol_version.p2p), - ), - }, - } -} -function decodeSyncInfo$1(e) { - const o = e.earliest_block_height - ? (0, inthelpers_1$2.apiToSmallInt)(e.earliest_block_height) - : void 0, - _ = e.earliest_block_time - ? (0, dates_1$1.fromRfc3339WithNanoseconds)(e.earliest_block_time) - : void 0 - return { - earliestAppHash: e.earliest_app_hash ? (0, encoding_1$7.fromHex)(e.earliest_app_hash) : void 0, - earliestBlockHash: e.earliest_block_hash - ? (0, encoding_1$7.fromHex)(e.earliest_block_hash) - : void 0, - earliestBlockHeight: o || void 0, - earliestBlockTime: _?.getTime() ? _ : void 0, - latestBlockHash: (0, encoding_1$7.fromHex)( - (0, encodings_1$3.assertNotEmpty)(e.latest_block_hash), - ), - latestAppHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.latest_app_hash)), - latestBlockTime: (0, dates_1$1.fromRfc3339WithNanoseconds)( - (0, encodings_1$3.assertNotEmpty)(e.latest_block_time), - ), - latestBlockHeight: (0, inthelpers_1$2.apiToSmallInt)( - (0, encodings_1$3.assertNotEmpty)(e.latest_block_height), - ), - catchingUp: (0, encodings_1$3.assertBoolean)(e.catching_up), - } -} -function decodeStatus$1(e) { - return { - nodeInfo: decodeNodeInfo$1(e.node_info), - syncInfo: decodeSyncInfo$1(e.sync_info), - validatorInfo: decodeValidatorInfo$1(e.validator_info), - } -} -function decodeTxProof$1(e) { - return { - data: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(e.data)), - rootHash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.root_hash)), - proof: { - total: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.proof.total)), - index: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.proof.index)), - leafHash: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(e.proof.leaf_hash)), - aunts: (0, encodings_1$3.assertArray)(e.proof.aunts).map(encoding_1$7.fromBase64), - }, - } -} -function decodeTxResponse$1(e) { - return { - tx: (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(e.tx)), - result: decodeTxData$1((0, encodings_1$3.assertObject)(e.tx_result)), - height: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.height)), - index: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNumber)(e.index)), - hash: (0, encoding_1$7.fromHex)((0, encodings_1$3.assertNotEmpty)(e.hash)), - proof: (0, encodings_1$3.may)(decodeTxProof$1, e.proof), - } -} -function decodeTxSearch$1(e) { - return { - totalCount: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.total_count)), - txs: (0, encodings_1$3.assertArray)(e.txs).map(decodeTxResponse$1), - } -} -function decodeTxEvent$1(e) { - const o = (0, encoding_1$7.fromBase64)((0, encodings_1$3.assertNotEmpty)(e.tx)) - return { - tx: o, - hash: (0, hasher_1$3.hashTx)(o), - result: decodeTxData$1(e.result), - height: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.height)), - } -} -function decodeValidators$1(e) { - return { - blockHeight: (0, inthelpers_1$2.apiToSmallInt)( - (0, encodings_1$3.assertNotEmpty)(e.block_height), - ), - validators: (0, encodings_1$3.assertArray)(e.validators).map(decodeValidatorInfo$1), - count: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.count)), - total: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.total)), - } -} -function decodeBlock$1(e) { - return { - header: decodeHeader$1((0, encodings_1$3.assertObject)(e.header)), - lastCommit: e.last_commit.block_id.hash - ? decodeCommit$1((0, encodings_1$3.assertObject)(e.last_commit)) - : null, - txs: e.data.txs ? (0, encodings_1$3.assertArray)(e.data.txs).map(encoding_1$7.fromBase64) : [], - evidence: e.evidence?.evidence ?? [], - } -} -function decodeBlockResponse$1(e) { - return { blockId: decodeBlockId$1(e.block_id), block: decodeBlock$1(e.block) } -} -function decodeBlockSearch$1(e) { - return { - totalCount: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.total_count)), - blocks: (0, encodings_1$3.assertArray)(e.blocks).map(decodeBlockResponse$1), - } -} -function decodeNumUnconfirmedTxs$1(e) { - return { - total: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.total)), - totalBytes: (0, inthelpers_1$2.apiToSmallInt)((0, encodings_1$3.assertNotEmpty)(e.total_bytes)), - } -} -let Responses$1 = class Ap { - static decodeAbciInfo(o) { - return decodeAbciInfo$1((0, encodings_1$3.assertObject)(o.result.response)) - } - static decodeAbciQuery(o) { - return decodeAbciQuery$1((0, encodings_1$3.assertObject)(o.result.response)) - } - static decodeBlock(o) { - return decodeBlockResponse$1(o.result) - } - static decodeBlockResults(o) { - return decodeBlockResults$1(o.result) - } - static decodeBlockSearch(o) { - return decodeBlockSearch$1(o.result) - } - static decodeBlockchain(o) { - return decodeBlockchain$1(o.result) - } - static decodeBroadcastTxSync(o) { - return decodeBroadcastTxSync$1(o.result) - } - static decodeBroadcastTxAsync(o) { - return Ap.decodeBroadcastTxSync(o) - } - static decodeBroadcastTxCommit(o) { - return decodeBroadcastTxCommit$1(o.result) - } - static decodeCommit(o) { - return decodeCommitResponse$1(o.result) - } - static decodeGenesis(o) { - return decodeGenesis$1((0, encodings_1$3.assertObject)(o.result.genesis)) - } - static decodeHealth() { - return null - } - static decodeNumUnconfirmedTxs(o) { - return decodeNumUnconfirmedTxs$1(o.result) - } - static decodeStatus(o) { - return decodeStatus$1(o.result) - } - static decodeNewBlockEvent(o) { - return decodeBlock$1(o.data.value.block) - } - static decodeNewBlockHeaderEvent(o) { - return decodeHeader$1(o.data.value.header) - } - static decodeTxEvent(o) { - return decodeTxEvent$1(o.data.value.TxResult) - } - static decodeTx(o) { - return decodeTxResponse$1(o.result) - } - static decodeTxSearch(o) { - return decodeTxSearch$1(o.result) - } - static decodeValidators(o) { - return decodeValidators$1(o.result) - } -} -responses$2.Responses = Responses$1 -Object.defineProperty(adaptor$1, '__esModule', { value: !0 }) -adaptor$1.adaptor34 = void 0 -const hasher_1$2 = hasher$1, - requests_1$1 = requests$6, - responses_1$1 = responses$2 -adaptor$1.adaptor34 = { - params: requests_1$1.Params, - responses: responses_1$1.Responses, - hashTx: hasher_1$2.hashTx, - hashBlock: hasher_1$2.hashBlock, -} -var __createBinding$2 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$2 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$2 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$2(o, e, _) - return __setModuleDefault$2(o, e), o - } -Object.defineProperty(tendermint34client, '__esModule', { value: !0 }) -tendermint34client.Tendermint34Client = void 0 -const jsonrpc_1$2 = jsonrpc, - rpcclients_1$1 = rpcclients, - adaptor_1$1 = adaptor$1, - requests$4 = __importStar$2(requests$7) -class Tendermint34Client { - static async connect(o) { - let _ - return ( - typeof o == 'object' - ? (_ = new rpcclients_1$1.HttpClient(o)) - : (_ = - o.startsWith('http://') || o.startsWith('https://') - ? new rpcclients_1$1.HttpClient(o) - : new rpcclients_1$1.WebsocketClient(o)), - await this.detectVersion(_), - Tendermint34Client.create(_) - ) - } - static async create(o) { - return new Tendermint34Client(o) - } - static async detectVersion(o) { - const _ = (0, jsonrpc_1$2.createJsonRpcRequest)(requests$4.Method.Status), - $ = (await o.execute(_)).result - if (!$ || !$.node_info) throw new Error('Unrecognized format for status response') - const en = $.node_info.version - if (typeof en != 'string') throw new Error('Unrecognized version format: must be string') - return en - } - constructor(o) { - ;(this.client = o), - (this.p = adaptor_1$1.adaptor34.params), - (this.r = adaptor_1$1.adaptor34.responses) - } - disconnect() { - this.client.disconnect() - } - async abciInfo() { - const o = { method: requests$4.Method.AbciInfo } - return this.doCall(o, this.p.encodeAbciInfo, this.r.decodeAbciInfo) - } - async abciQuery(o) { - const _ = { params: o, method: requests$4.Method.AbciQuery } - return this.doCall(_, this.p.encodeAbciQuery, this.r.decodeAbciQuery) - } - async block(o) { - const _ = { method: requests$4.Method.Block, params: { height: o } } - return this.doCall(_, this.p.encodeBlock, this.r.decodeBlock) - } - async blockResults(o) { - const _ = { method: requests$4.Method.BlockResults, params: { height: o } } - return this.doCall(_, this.p.encodeBlockResults, this.r.decodeBlockResults) - } - async blockSearch(o) { - const _ = { params: o, method: requests$4.Method.BlockSearch }, - b = await this.doCall(_, this.p.encodeBlockSearch, this.r.decodeBlockSearch) - return { - ...b, - blocks: [...b.blocks].sort(($, en) => $.block.header.height - en.block.header.height), - } - } - async blockSearchAll(o) { - let _ = o.page || 1 - const b = [] - let $ = !1 - for (; !$; ) { - const en = await this.blockSearch({ ...o, page: _ }) - b.push(...en.blocks), b.length < en.totalCount ? _++ : ($ = !0) - } - return ( - b.sort((en, nn) => en.block.header.height - nn.block.header.height), - { totalCount: b.length, blocks: b } - ) - } - async blockchain(o, _) { - const b = { method: requests$4.Method.Blockchain, params: { minHeight: o, maxHeight: _ } } - return this.doCall(b, this.p.encodeBlockchain, this.r.decodeBlockchain) - } - async broadcastTxSync(o) { - const _ = { params: o, method: requests$4.Method.BroadcastTxSync } - return this.doCall(_, this.p.encodeBroadcastTx, this.r.decodeBroadcastTxSync) - } - async broadcastTxAsync(o) { - const _ = { params: o, method: requests$4.Method.BroadcastTxAsync } - return this.doCall(_, this.p.encodeBroadcastTx, this.r.decodeBroadcastTxAsync) - } - async broadcastTxCommit(o) { - const _ = { params: o, method: requests$4.Method.BroadcastTxCommit } - return this.doCall(_, this.p.encodeBroadcastTx, this.r.decodeBroadcastTxCommit) - } - async commit(o) { - const _ = { method: requests$4.Method.Commit, params: { height: o } } - return this.doCall(_, this.p.encodeCommit, this.r.decodeCommit) - } - async genesis() { - const o = { method: requests$4.Method.Genesis } - return this.doCall(o, this.p.encodeGenesis, this.r.decodeGenesis) - } - async health() { - const o = { method: requests$4.Method.Health } - return this.doCall(o, this.p.encodeHealth, this.r.decodeHealth) - } - async numUnconfirmedTxs() { - const o = { method: requests$4.Method.NumUnconfirmedTxs } - return this.doCall(o, this.p.encodeNumUnconfirmedTxs, this.r.decodeNumUnconfirmedTxs) - } - async status() { - const o = { method: requests$4.Method.Status } - return this.doCall(o, this.p.encodeStatus, this.r.decodeStatus) - } - subscribeNewBlock() { - const o = { - method: requests$4.Method.Subscribe, - query: { type: requests$4.SubscriptionEventType.NewBlock }, - } - return this.subscribe(o, this.r.decodeNewBlockEvent) - } - subscribeNewBlockHeader() { - const o = { - method: requests$4.Method.Subscribe, - query: { type: requests$4.SubscriptionEventType.NewBlockHeader }, - } - return this.subscribe(o, this.r.decodeNewBlockHeaderEvent) - } - subscribeTx(o) { - const _ = { - method: requests$4.Method.Subscribe, - query: { type: requests$4.SubscriptionEventType.Tx, raw: o }, - } - return this.subscribe(_, this.r.decodeTxEvent) - } - async tx(o) { - const _ = { params: o, method: requests$4.Method.Tx } - return this.doCall(_, this.p.encodeTx, this.r.decodeTx) - } - async txSearch(o) { - const _ = { params: o, method: requests$4.Method.TxSearch } - return this.doCall(_, this.p.encodeTxSearch, this.r.decodeTxSearch) - } - async txSearchAll(o) { - let _ = o.page || 1 - const b = [] - let $ = !1 - for (; !$; ) { - const en = await this.txSearch({ ...o, page: _ }) - b.push(...en.txs), b.length < en.totalCount ? _++ : ($ = !0) - } - return { totalCount: b.length, txs: b } - } - async validators(o) { - const _ = { method: requests$4.Method.Validators, params: o } - return this.doCall(_, this.p.encodeValidators, this.r.decodeValidators) - } - async validatorsAll(o) { - const _ = [] - let b = 1, - $ = !1, - en = o - for (; !$; ) { - const nn = await this.validators({ per_page: 50, height: en, page: b }) - _.push(...nn.validators), (en = en || nn.blockHeight), _.length < nn.total ? b++ : ($ = !0) - } - return { blockHeight: en ?? 0, count: _.length, total: _.length, validators: _ } - } - async doCall(o, _, b) { - const $ = _(o), - en = await this.client.execute($) - return b(en) - } - subscribe(o, _) { - if (!(0, rpcclients_1$1.instanceOfRpcStreamingClient)(this.client)) - throw new Error('This RPC client type cannot subscribe to events') - const b = this.p.encodeSubscribe(o) - return this.client.listen(b).map((en) => _(en)) - } -} -tendermint34client.Tendermint34Client = Tendermint34Client -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Tendermint34Client = - e.VoteType = - e.broadcastTxSyncSuccess = - e.broadcastTxCommitSuccess = - e.SubscriptionEventType = - e.Method = - void 0) - var o = requests$7 - Object.defineProperty(e, 'Method', { - enumerable: !0, - get: function () { - return o.Method - }, - }), - Object.defineProperty(e, 'SubscriptionEventType', { - enumerable: !0, - get: function () { - return o.SubscriptionEventType - }, - }) - var _ = responses$3 - Object.defineProperty(e, 'broadcastTxCommitSuccess', { - enumerable: !0, - get: function () { - return _.broadcastTxCommitSuccess - }, - }), - Object.defineProperty(e, 'broadcastTxSyncSuccess', { - enumerable: !0, - get: function () { - return _.broadcastTxSyncSuccess - }, - }), - Object.defineProperty(e, 'VoteType', { - enumerable: !0, - get: function () { - return _.VoteType - }, - }) - var b = tendermint34client - Object.defineProperty(e, 'Tendermint34Client', { - enumerable: !0, - get: function () { - return b.Tendermint34Client - }, - }) -})(tendermint34) -var tendermint37 = {}, - requests$3 = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.buildQuery = e.SubscriptionEventType = e.Method = void 0), - (function (_) { - ;(_.AbciInfo = 'abci_info'), - (_.AbciQuery = 'abci_query'), - (_.Block = 'block'), - (_.Blockchain = 'blockchain'), - (_.BlockResults = 'block_results'), - (_.BlockSearch = 'block_search'), - (_.BroadcastTxAsync = 'broadcast_tx_async'), - (_.BroadcastTxSync = 'broadcast_tx_sync'), - (_.BroadcastTxCommit = 'broadcast_tx_commit'), - (_.Commit = 'commit'), - (_.Genesis = 'genesis'), - (_.Health = 'health'), - (_.NumUnconfirmedTxs = 'num_unconfirmed_txs'), - (_.Status = 'status'), - (_.Subscribe = 'subscribe'), - (_.Tx = 'tx'), - (_.TxSearch = 'tx_search'), - (_.Validators = 'validators'), - (_.Unsubscribe = 'unsubscribe') - })(e.Method || (e.Method = {})), - (function (_) { - ;(_.NewBlock = 'NewBlock'), (_.NewBlockHeader = 'NewBlockHeader'), (_.Tx = 'Tx') - })(e.SubscriptionEventType || (e.SubscriptionEventType = {})) - function o(_) { - const $ = (_.tags ? _.tags : []).map((nn) => `${nn.key}='${nn.value}'`), - en = _.raw ? [_.raw] : [] - return [...$, ...en].join(' AND ') - } - e.buildQuery = o -})(requests$3) -var responses$1 = {} -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.VoteType = e.broadcastTxCommitSuccess = e.broadcastTxSyncSuccess = void 0) - function o(b) { - return b.code === 0 - } - e.broadcastTxSyncSuccess = o - function _(b) { - return b.checkTx.code === 0 && !!b.deliverTx && b.deliverTx.code === 0 - } - ;(e.broadcastTxCommitSuccess = _), - (function (b) { - ;(b[(b.PreVote = 1)] = 'PreVote'), (b[(b.PreCommit = 2)] = 'PreCommit') - })(e.VoteType || (e.VoteType = {})) -})(responses$1) -var tendermint37client = {}, - adaptor = {}, - hasher = {}, - encodings = {} -Object.defineProperty(encodings, '__esModule', { value: !0 }) -encodings.encodeBlockId = - encodings.encodeVersion = - encodings.encodeBytes = - encodings.encodeTime = - encodings.encodeUvarint = - encodings.encodeString = - encodings.dictionaryToStringMap = - encodings.may = - encodings.assertNotEmpty = - encodings.assertObject = - encodings.assertArray = - encodings.assertNumber = - encodings.assertString = - encodings.assertBoolean = - encodings.assertSet = - void 0 -const encoding_1$6 = build$b -function assertSet(e) { - if (e === void 0) throw new Error('Value must not be undefined') - if (e === null) throw new Error('Value must not be null') - return e -} -encodings.assertSet = assertSet -function assertBoolean(e) { - if ((assertSet(e), typeof e != 'boolean')) throw new Error('Value must be a boolean') - return e -} -encodings.assertBoolean = assertBoolean -function assertString(e) { - if ((assertSet(e), typeof e != 'string')) throw new Error('Value must be a string') - return e -} -encodings.assertString = assertString -function assertNumber(e) { - if ((assertSet(e), typeof e != 'number')) throw new Error('Value must be a number') - return e -} -encodings.assertNumber = assertNumber -function assertArray(e) { - if ((assertSet(e), !Array.isArray(e))) throw new Error('Value must be a an array') - return e -} -encodings.assertArray = assertArray -function assertObject(e) { - if ((assertSet(e), typeof e != 'object')) throw new Error('Value must be an object') - if (Object.prototype.toString.call(e) !== '[object Object]') - throw new Error('Value must be a simple object') - return e -} -encodings.assertObject = assertObject -function assertNotEmpty(e) { - if ((assertSet(e), typeof e == 'number' && e === 0)) - throw new Error('must provide a non-zero value') - if (e.length === 0) throw new Error('must provide a non-empty value') - return e -} -encodings.assertNotEmpty = assertNotEmpty -function may(e, o) { - return o == null ? void 0 : e(o) -} -encodings.may = may -function dictionaryToStringMap(e) { - const o = new Map() - for (const _ of Object.keys(e)) { - const b = e[_] - if (typeof b != 'string') throw new Error('Found dictionary value of type other than string') - o.set(_, b) - } - return o -} -encodings.dictionaryToStringMap = dictionaryToStringMap -function encodeString(e) { - const o = (0, encoding_1$6.toUtf8)(e) - return Uint8Array.from([o.length, ...o]) -} -encodings.encodeString = encodeString -function encodeUvarint(e) { - return e >= 128 - ? Uint8Array.from([(e & 255) | 128, ...encodeUvarint(e >> 7)]) - : Uint8Array.from([e & 255]) -} -encodings.encodeUvarint = encodeUvarint -function encodeTime(e) { - const o = e.getTime(), - _ = Math.floor(o / 1e3), - b = _ ? [8, ...encodeUvarint(_)] : new Uint8Array(), - $ = (e.nanoseconds || 0) + (o % 1e3) * 1e6, - en = $ ? [16, ...encodeUvarint($)] : new Uint8Array() - return Uint8Array.from([...b, ...en]) -} -encodings.encodeTime = encodeTime -function encodeBytes(e) { - if (e.length >= 128) throw new Error('Not implemented for byte arrays of length 128 or more') - return e.length ? Uint8Array.from([e.length, ...e]) : new Uint8Array() -} -encodings.encodeBytes = encodeBytes -function encodeVersion(e) { - const o = e.block ? Uint8Array.from([8, ...encodeUvarint(e.block)]) : new Uint8Array(), - _ = e.app ? Uint8Array.from([16, ...encodeUvarint(e.app)]) : new Uint8Array() - return Uint8Array.from([...o, ..._]) -} -encodings.encodeVersion = encodeVersion -function encodeBlockId(e) { - return Uint8Array.from([ - 10, - e.hash.length, - ...e.hash, - 18, - e.parts.hash.length + 4, - 8, - e.parts.total, - 18, - e.parts.hash.length, - ...e.parts.hash, - ]) -} -encodings.encodeBlockId = encodeBlockId -Object.defineProperty(hasher, '__esModule', { value: !0 }) -hasher.hashBlock = hasher.hashTx = void 0 -const crypto_1 = build$6, - encodings_1$2 = encodings -function hashTx(e) { - return (0, crypto_1.sha256)(e) -} -hasher.hashTx = hashTx -function getSplitPoint(e) { - if (e < 1) throw new Error('Cannot split an empty tree') - const o = 2 ** Math.floor(Math.log2(e)) - return o < e ? o : o / 2 -} -function hashLeaf(e) { - const o = new crypto_1.Sha256(Uint8Array.from([0])) - return o.update(e), o.digest() -} -function hashInner(e, o) { - const _ = new crypto_1.Sha256(Uint8Array.from([1])) - return _.update(e), _.update(o), _.digest() -} -function hashTree(e) { - switch (e.length) { - case 0: - throw new Error('Cannot hash empty tree') - case 1: - return hashLeaf(e[0]) - default: { - const o = getSplitPoint(e.length), - _ = hashTree(e.slice(0, o)), - b = hashTree(e.slice(o)) - return hashInner(_, b) - } - } -} -function hashBlock(e) { - if (!e.lastBlockId) - throw new Error( - 'Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.', - ) - const o = [ - (0, encodings_1$2.encodeVersion)(e.version), - (0, encodings_1$2.encodeString)(e.chainId), - (0, encodings_1$2.encodeUvarint)(e.height), - (0, encodings_1$2.encodeTime)(e.time), - (0, encodings_1$2.encodeBlockId)(e.lastBlockId), - (0, encodings_1$2.encodeBytes)(e.lastCommitHash), - (0, encodings_1$2.encodeBytes)(e.dataHash), - (0, encodings_1$2.encodeBytes)(e.validatorsHash), - (0, encodings_1$2.encodeBytes)(e.nextValidatorsHash), - (0, encodings_1$2.encodeBytes)(e.consensusHash), - (0, encodings_1$2.encodeBytes)(e.appHash), - (0, encodings_1$2.encodeBytes)(e.lastResultsHash), - (0, encodings_1$2.encodeBytes)(e.evidenceHash), - (0, encodings_1$2.encodeBytes)(e.proposerAddress), - ] - return hashTree(o) -} -hasher.hashBlock = hashBlock -var requests$2 = {}, - __createBinding$1 = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault$1 = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar$1 = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && - Object.prototype.hasOwnProperty.call(e, _) && - __createBinding$1(o, e, _) - return __setModuleDefault$1(o, e), o - } -Object.defineProperty(requests$2, '__esModule', { value: !0 }) -requests$2.Params = void 0 -const encoding_1$5 = build$b, - inthelpers_1$1 = inthelpers, - jsonrpc_1$1 = jsonrpc, - encodings_1$1 = encodings, - requests$1 = __importStar$1(requests$3) -function encodeHeightParam(e) { - return { height: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.height) } -} -function encodeBlockchainRequestParams(e) { - return { - minHeight: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.minHeight), - maxHeight: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.maxHeight), - } -} -function encodeBlockSearchParams(e) { - return { - query: e.query, - page: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.page), - per_page: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.per_page), - order_by: e.order_by, - } -} -function encodeAbciQueryParams(e) { - return { - path: (0, encodings_1$1.assertNotEmpty)(e.path), - data: (0, encoding_1$5.toHex)(e.data), - height: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.height), - prove: e.prove, - } -} -function encodeBroadcastTxParams(e) { - return { tx: (0, encoding_1$5.toBase64)((0, encodings_1$1.assertNotEmpty)(e.tx)) } -} -function encodeTxParams(e) { - return { - hash: (0, encoding_1$5.toBase64)((0, encodings_1$1.assertNotEmpty)(e.hash)), - prove: e.prove, - } -} -function encodeTxSearchParams(e) { - return { - query: e.query, - prove: e.prove, - page: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.page), - per_page: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.per_page), - order_by: e.order_by, - } -} -function encodeValidatorsParams(e) { - return { - height: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.height), - page: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.page), - per_page: (0, encodings_1$1.may)(inthelpers_1$1.smallIntToApi, e.per_page), - } -} -class Params { - static encodeAbciInfo(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method) - } - static encodeAbciQuery(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeAbciQueryParams(o.params)) - } - static encodeBlock(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeHeightParam(o.params)) - } - static encodeBlockchain(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeBlockchainRequestParams(o.params)) - } - static encodeBlockResults(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeHeightParam(o.params)) - } - static encodeBlockSearch(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeBlockSearchParams(o.params)) - } - static encodeBroadcastTx(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeBroadcastTxParams(o.params)) - } - static encodeCommit(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeHeightParam(o.params)) - } - static encodeGenesis(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method) - } - static encodeHealth(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method) - } - static encodeNumUnconfirmedTxs(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method) - } - static encodeStatus(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method) - } - static encodeSubscribe(o) { - const _ = { key: 'tm.event', value: o.query.type }, - b = requests$1.buildQuery({ tags: [_], raw: o.query.raw }) - return (0, jsonrpc_1$1.createJsonRpcRequest)('subscribe', { query: b }) - } - static encodeTx(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeTxParams(o.params)) - } - static encodeTxSearch(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeTxSearchParams(o.params)) - } - static encodeValidators(o) { - return (0, jsonrpc_1$1.createJsonRpcRequest)(o.method, encodeValidatorsParams(o.params)) - } -} -requests$2.Params = Params -var responses = {} -Object.defineProperty(responses, '__esModule', { value: !0 }) -responses.Responses = - responses.decodeValidatorInfo = - responses.decodeValidatorGenesis = - responses.decodeValidatorUpdate = - responses.decodeEvent = - void 0 -const encoding_1$4 = build$b, - utils_1$2 = build$5, - dates_1 = dates, - inthelpers_1 = inthelpers, - types_1$2 = types$1, - encodings_1 = encodings, - hasher_1$1 = hasher -function decodeAbciInfo(e) { - return { - data: e.data, - lastBlockHeight: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, e.last_block_height), - lastBlockAppHash: (0, encodings_1.may)(encoding_1$4.fromBase64, e.last_block_app_hash), - } -} -function decodeQueryProof(e) { - return { - ops: e.ops.map((o) => ({ - type: o.type, - key: (0, encoding_1$4.fromBase64)(o.key), - data: (0, encoding_1$4.fromBase64)(o.data), - })), - } -} -function decodeAbciQuery(e) { - return { - key: (0, encoding_1$4.fromBase64)((0, encodings_1.assertString)(e.key ?? '')), - value: (0, encoding_1$4.fromBase64)((0, encodings_1.assertString)(e.value ?? '')), - proof: (0, encodings_1.may)(decodeQueryProof, e.proofOps), - height: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, e.height), - code: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, e.code), - codespace: (0, encodings_1.assertString)(e.codespace ?? ''), - index: (0, encodings_1.may)(inthelpers_1.apiToSmallInt, e.index), - log: e.log, - info: (0, encodings_1.assertString)(e.info ?? ''), - } -} -function decodeEventAttribute(e) { - return { key: (0, encodings_1.assertNotEmpty)(e.key), value: e.value ?? '' } -} -function decodeAttributes(e) { - return (0, encodings_1.assertArray)(e).map(decodeEventAttribute) -} -function decodeEvent(e) { - return { type: e.type, attributes: e.attributes ? decodeAttributes(e.attributes) : [] } -} -responses.decodeEvent = decodeEvent -function decodeEvents(e) { - return (0, encodings_1.assertArray)(e).map(decodeEvent) -} -function decodeTxData(e) { - return { - code: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNumber)(e.code ?? 0)), - codespace: e.codespace, - log: e.log, - data: (0, encodings_1.may)(encoding_1$4.fromBase64, e.data), - events: e.events ? decodeEvents(e.events) : [], - gasWanted: (0, inthelpers_1.apiToSmallInt)(e.gas_wanted ?? '0'), - gasUsed: (0, inthelpers_1.apiToSmallInt)(e.gas_used ?? '0'), - } -} -function decodePubkey(e) { - if ('Sum' in e) { - const [[o, _]] = Object.entries(e.Sum.value) - return ( - (0, utils_1$2.assert)(o === 'ed25519' || o === 'secp256k1', `unknown pubkey type: ${o}`), - { algorithm: o, data: (0, encoding_1$4.fromBase64)((0, encodings_1.assertNotEmpty)(_)) } - ) - } else - switch (e.type) { - case 'tendermint/PubKeyEd25519': - return { - algorithm: 'ed25519', - data: (0, encoding_1$4.fromBase64)((0, encodings_1.assertNotEmpty)(e.value)), - } - case 'tendermint/PubKeySecp256k1': - return { - algorithm: 'secp256k1', - data: (0, encoding_1$4.fromBase64)((0, encodings_1.assertNotEmpty)(e.value)), - } - default: - throw new Error(`unknown pubkey type: ${e.type}`) - } -} -function decodeBlockParams(e) { - return { - maxBytes: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.max_bytes)), - maxGas: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.max_gas)), - } -} -function decodeEvidenceParams(e) { - return { - maxAgeNumBlocks: (0, inthelpers_1.apiToSmallInt)( - (0, encodings_1.assertNotEmpty)(e.max_age_num_blocks), - ), - maxAgeDuration: (0, inthelpers_1.apiToSmallInt)( - (0, encodings_1.assertNotEmpty)(e.max_age_duration), - ), - } -} -function decodeConsensusParams(e) { - return { - block: decodeBlockParams((0, encodings_1.assertObject)(e.block)), - evidence: decodeEvidenceParams((0, encodings_1.assertObject)(e.evidence)), - } -} -function decodeValidatorUpdate(e) { - return { - pubkey: decodePubkey((0, encodings_1.assertObject)(e.pub_key)), - votingPower: (0, inthelpers_1.apiToBigInt)(e.power ?? '0'), - } -} -responses.decodeValidatorUpdate = decodeValidatorUpdate -function decodeBlockResults(e) { - return { - height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.height)), - results: (e.txs_results || []).map(decodeTxData), - validatorUpdates: (e.validator_updates || []).map(decodeValidatorUpdate), - consensusUpdates: (0, encodings_1.may)(decodeConsensusParams, e.consensus_param_updates), - beginBlockEvents: decodeEvents(e.begin_block_events || []), - endBlockEvents: decodeEvents(e.end_block_events || []), - } -} -function decodeBlockId(e) { - return { - hash: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.hash)), - parts: { - total: (0, encodings_1.assertNotEmpty)(e.parts.total), - hash: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.parts.hash)), - }, - } -} -function decodeBlockVersion(e) { - return { - block: (0, inthelpers_1.apiToSmallInt)(e.block), - app: (0, inthelpers_1.apiToSmallInt)(e.app ?? 0), - } -} -function decodeHeader(e) { - return { - version: decodeBlockVersion(e.version), - chainId: (0, encodings_1.assertNotEmpty)(e.chain_id), - height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.height)), - time: (0, dates_1.fromRfc3339WithNanoseconds)((0, encodings_1.assertNotEmpty)(e.time)), - lastBlockId: e.last_block_id.hash ? decodeBlockId(e.last_block_id) : null, - lastCommitHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.last_commit_hash)), - dataHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.data_hash)), - validatorsHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.validators_hash)), - nextValidatorsHash: (0, encoding_1$4.fromHex)( - (0, encodings_1.assertSet)(e.next_validators_hash), - ), - consensusHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.consensus_hash)), - appHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.app_hash)), - lastResultsHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.last_results_hash)), - evidenceHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.evidence_hash)), - proposerAddress: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.proposer_address)), - } -} -function decodeBlockMeta(e) { - return { - blockId: decodeBlockId(e.block_id), - blockSize: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.block_size)), - header: decodeHeader(e.header), - numTxs: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.num_txs)), - } -} -function decodeBlockchain(e) { - return { - lastHeight: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.last_height)), - blockMetas: (0, encodings_1.assertArray)(e.block_metas).map(decodeBlockMeta), - } -} -function decodeBroadcastTxSync(e) { - return { - ...decodeTxData(e), - hash: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.hash)), - } -} -function decodeBroadcastTxCommit(e) { - return { - height: (0, inthelpers_1.apiToSmallInt)(e.height), - hash: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.hash)), - checkTx: decodeTxData((0, encodings_1.assertObject)(e.check_tx)), - deliverTx: (0, encodings_1.may)(decodeTxData, e.deliver_tx), - } -} -function decodeBlockIdFlag(e) { - return (0, utils_1$2.assert)(e in types_1$2.BlockIdFlag), e -} -function decodeOptionalTime(e) { - return e && !e.startsWith('0001-01-01') ? (0, dates_1.fromRfc3339WithNanoseconds)(e) : void 0 -} -function decodeCommitSignature(e) { - return { - blockIdFlag: decodeBlockIdFlag(e.block_id_flag), - validatorAddress: e.validator_address ? (0, encoding_1$4.fromHex)(e.validator_address) : void 0, - timestamp: decodeOptionalTime(e.timestamp), - signature: e.signature ? (0, encoding_1$4.fromBase64)(e.signature) : void 0, - } -} -function decodeCommit(e) { - return { - blockId: decodeBlockId((0, encodings_1.assertObject)(e.block_id)), - height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.height)), - round: (0, inthelpers_1.apiToSmallInt)(e.round), - signatures: (0, encodings_1.assertArray)(e.signatures).map(decodeCommitSignature), - } -} -function decodeCommitResponse(e) { - return { - canonical: (0, encodings_1.assertBoolean)(e.canonical), - header: decodeHeader(e.signed_header.header), - commit: decodeCommit(e.signed_header.commit), - } -} -function decodeValidatorGenesis(e) { - return { - address: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.address)), - pubkey: decodePubkey((0, encodings_1.assertObject)(e.pub_key)), - votingPower: (0, inthelpers_1.apiToBigInt)((0, encodings_1.assertNotEmpty)(e.power)), - } -} -responses.decodeValidatorGenesis = decodeValidatorGenesis -function decodeGenesis(e) { - return { - genesisTime: (0, dates_1.fromRfc3339WithNanoseconds)( - (0, encodings_1.assertNotEmpty)(e.genesis_time), - ), - chainId: (0, encodings_1.assertNotEmpty)(e.chain_id), - consensusParams: decodeConsensusParams(e.consensus_params), - validators: e.validators - ? (0, encodings_1.assertArray)(e.validators).map(decodeValidatorGenesis) - : [], - appHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertSet)(e.app_hash)), - appState: e.app_state, - } -} -function decodeValidatorInfo(e) { - return { - pubkey: decodePubkey((0, encodings_1.assertObject)(e.pub_key)), - votingPower: (0, inthelpers_1.apiToBigInt)((0, encodings_1.assertNotEmpty)(e.voting_power)), - address: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.address)), - proposerPriority: e.proposer_priority - ? (0, inthelpers_1.apiToSmallInt)(e.proposer_priority) - : void 0, - } -} -responses.decodeValidatorInfo = decodeValidatorInfo -function decodeNodeInfo(e) { - return { - id: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.id)), - listenAddr: (0, encodings_1.assertNotEmpty)(e.listen_addr), - network: (0, encodings_1.assertNotEmpty)(e.network), - version: (0, encodings_1.assertString)(e.version), - channels: (0, encodings_1.assertNotEmpty)(e.channels), - moniker: (0, encodings_1.assertNotEmpty)(e.moniker), - other: (0, encodings_1.dictionaryToStringMap)(e.other), - protocolVersion: { - app: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.protocol_version.app)), - block: (0, inthelpers_1.apiToSmallInt)( - (0, encodings_1.assertNotEmpty)(e.protocol_version.block), - ), - p2p: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.protocol_version.p2p)), - }, - } -} -function decodeSyncInfo(e) { - const o = e.earliest_block_height - ? (0, inthelpers_1.apiToSmallInt)(e.earliest_block_height) - : void 0, - _ = e.earliest_block_time - ? (0, dates_1.fromRfc3339WithNanoseconds)(e.earliest_block_time) - : void 0 - return { - earliestAppHash: e.earliest_app_hash ? (0, encoding_1$4.fromHex)(e.earliest_app_hash) : void 0, - earliestBlockHash: e.earliest_block_hash - ? (0, encoding_1$4.fromHex)(e.earliest_block_hash) - : void 0, - earliestBlockHeight: o || void 0, - earliestBlockTime: _?.getTime() ? _ : void 0, - latestBlockHash: (0, encoding_1$4.fromHex)( - (0, encodings_1.assertNotEmpty)(e.latest_block_hash), - ), - latestAppHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.latest_app_hash)), - latestBlockTime: (0, dates_1.fromRfc3339WithNanoseconds)( - (0, encodings_1.assertNotEmpty)(e.latest_block_time), - ), - latestBlockHeight: (0, inthelpers_1.apiToSmallInt)( - (0, encodings_1.assertNotEmpty)(e.latest_block_height), - ), - catchingUp: (0, encodings_1.assertBoolean)(e.catching_up), - } -} -function decodeStatus(e) { - return { - nodeInfo: decodeNodeInfo(e.node_info), - syncInfo: decodeSyncInfo(e.sync_info), - validatorInfo: decodeValidatorInfo(e.validator_info), - } -} -function decodeTxProof(e) { - return { - data: (0, encoding_1$4.fromBase64)((0, encodings_1.assertNotEmpty)(e.data)), - rootHash: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.root_hash)), - proof: { - total: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.proof.total)), - index: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.proof.index)), - leafHash: (0, encoding_1$4.fromBase64)((0, encodings_1.assertNotEmpty)(e.proof.leaf_hash)), - aunts: (0, encodings_1.assertArray)(e.proof.aunts).map(encoding_1$4.fromBase64), - }, - } -} -function decodeTxResponse(e) { - return { - tx: (0, encoding_1$4.fromBase64)((0, encodings_1.assertNotEmpty)(e.tx)), - result: decodeTxData((0, encodings_1.assertObject)(e.tx_result)), - height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.height)), - index: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNumber)(e.index)), - hash: (0, encoding_1$4.fromHex)((0, encodings_1.assertNotEmpty)(e.hash)), - proof: (0, encodings_1.may)(decodeTxProof, e.proof), - } -} -function decodeTxSearch(e) { - return { - totalCount: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.total_count)), - txs: (0, encodings_1.assertArray)(e.txs).map(decodeTxResponse), - } -} -function decodeTxEvent(e) { - const o = (0, encoding_1$4.fromBase64)((0, encodings_1.assertNotEmpty)(e.tx)) - return { - tx: o, - hash: (0, hasher_1$1.hashTx)(o), - result: decodeTxData(e.result), - height: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.height)), - } -} -function decodeValidators(e) { - return { - blockHeight: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.block_height)), - validators: (0, encodings_1.assertArray)(e.validators).map(decodeValidatorInfo), - count: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.count)), - total: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.total)), - } -} -function decodeBlock(e) { - return { - header: decodeHeader((0, encodings_1.assertObject)(e.header)), - lastCommit: e.last_commit.block_id.hash - ? decodeCommit((0, encodings_1.assertObject)(e.last_commit)) - : null, - txs: e.data.txs ? (0, encodings_1.assertArray)(e.data.txs).map(encoding_1$4.fromBase64) : [], - evidence: e.evidence?.evidence ?? [], - } -} -function decodeBlockResponse(e) { - return { blockId: decodeBlockId(e.block_id), block: decodeBlock(e.block) } -} -function decodeBlockSearch(e) { - return { - totalCount: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.total_count)), - blocks: (0, encodings_1.assertArray)(e.blocks).map(decodeBlockResponse), - } -} -function decodeNumUnconfirmedTxs(e) { - return { - total: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.total)), - totalBytes: (0, inthelpers_1.apiToSmallInt)((0, encodings_1.assertNotEmpty)(e.total_bytes)), - } -} -class Responses { - static decodeAbciInfo(o) { - return decodeAbciInfo((0, encodings_1.assertObject)(o.result.response)) - } - static decodeAbciQuery(o) { - return decodeAbciQuery((0, encodings_1.assertObject)(o.result.response)) - } - static decodeBlock(o) { - return decodeBlockResponse(o.result) - } - static decodeBlockResults(o) { - return decodeBlockResults(o.result) - } - static decodeBlockSearch(o) { - return decodeBlockSearch(o.result) - } - static decodeBlockchain(o) { - return decodeBlockchain(o.result) - } - static decodeBroadcastTxSync(o) { - return decodeBroadcastTxSync(o.result) - } - static decodeBroadcastTxAsync(o) { - return Responses.decodeBroadcastTxSync(o) - } - static decodeBroadcastTxCommit(o) { - return decodeBroadcastTxCommit(o.result) - } - static decodeCommit(o) { - return decodeCommitResponse(o.result) - } - static decodeGenesis(o) { - return decodeGenesis((0, encodings_1.assertObject)(o.result.genesis)) - } - static decodeHealth() { - return null - } - static decodeNumUnconfirmedTxs(o) { - return decodeNumUnconfirmedTxs(o.result) - } - static decodeStatus(o) { - return decodeStatus(o.result) - } - static decodeNewBlockEvent(o) { - return decodeBlock(o.data.value.block) - } - static decodeNewBlockHeaderEvent(o) { - return decodeHeader(o.data.value.header) - } - static decodeTxEvent(o) { - return decodeTxEvent(o.data.value.TxResult) - } - static decodeTx(o) { - return decodeTxResponse(o.result) - } - static decodeTxSearch(o) { - return decodeTxSearch(o.result) - } - static decodeValidators(o) { - return decodeValidators(o.result) - } -} -responses.Responses = Responses -Object.defineProperty(adaptor, '__esModule', { value: !0 }) -adaptor.adaptor37 = void 0 -const hasher_1 = hasher, - requests_1 = requests$2, - responses_1 = responses -adaptor.adaptor37 = { - params: requests_1.Params, - responses: responses_1.Responses, - hashTx: hasher_1.hashTx, - hashBlock: hasher_1.hashBlock, -} -var __createBinding = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (e, o, _, b) { - b === void 0 && (b = _) - var $ = Object.getOwnPropertyDescriptor(o, _) - ;(!$ || ('get' in $ ? !o.__esModule : $.writable || $.configurable)) && - ($ = { - enumerable: !0, - get: function () { - return o[_] - }, - }), - Object.defineProperty(e, b, $) - } - : function (e, o, _, b) { - b === void 0 && (b = _), (e[b] = o[_]) - }), - __setModuleDefault = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (e, o) { - Object.defineProperty(e, 'default', { enumerable: !0, value: o }) - } - : function (e, o) { - e.default = o - }), - __importStar = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (e) { - if (e && e.__esModule) return e - var o = {} - if (e != null) - for (var _ in e) - _ !== 'default' && Object.prototype.hasOwnProperty.call(e, _) && __createBinding(o, e, _) - return __setModuleDefault(o, e), o - } -Object.defineProperty(tendermint37client, '__esModule', { value: !0 }) -tendermint37client.Tendermint37Client = void 0 -const jsonrpc_1 = jsonrpc, - rpcclients_1 = rpcclients, - adaptor_1 = adaptor, - requests = __importStar(requests$3) -class Tendermint37Client { - static async connect(o) { - let _ - return ( - typeof o == 'object' - ? (_ = new rpcclients_1.HttpClient(o)) - : (_ = - o.startsWith('http://') || o.startsWith('https://') - ? new rpcclients_1.HttpClient(o) - : new rpcclients_1.WebsocketClient(o)), - await this.detectVersion(_), - Tendermint37Client.create(_) - ) - } - static async create(o) { - return new Tendermint37Client(o) - } - static async detectVersion(o) { - const _ = (0, jsonrpc_1.createJsonRpcRequest)(requests.Method.Status), - $ = (await o.execute(_)).result - if (!$ || !$.node_info) throw new Error('Unrecognized format for status response') - const en = $.node_info.version - if (typeof en != 'string') throw new Error('Unrecognized version format: must be string') - return en - } - constructor(o) { - ;(this.client = o), - (this.p = adaptor_1.adaptor37.params), - (this.r = adaptor_1.adaptor37.responses) - } - disconnect() { - this.client.disconnect() - } - async abciInfo() { - const o = { method: requests.Method.AbciInfo } - return this.doCall(o, this.p.encodeAbciInfo, this.r.decodeAbciInfo) - } - async abciQuery(o) { - const _ = { params: o, method: requests.Method.AbciQuery } - return this.doCall(_, this.p.encodeAbciQuery, this.r.decodeAbciQuery) - } - async block(o) { - const _ = { method: requests.Method.Block, params: { height: o } } - return this.doCall(_, this.p.encodeBlock, this.r.decodeBlock) - } - async blockResults(o) { - const _ = { method: requests.Method.BlockResults, params: { height: o } } - return this.doCall(_, this.p.encodeBlockResults, this.r.decodeBlockResults) - } - async blockSearch(o) { - const _ = { params: o, method: requests.Method.BlockSearch }, - b = await this.doCall(_, this.p.encodeBlockSearch, this.r.decodeBlockSearch) - return { - ...b, - blocks: [...b.blocks].sort(($, en) => $.block.header.height - en.block.header.height), - } - } - async blockSearchAll(o) { - let _ = o.page || 1 - const b = [] - let $ = !1 - for (; !$; ) { - const en = await this.blockSearch({ ...o, page: _ }) - b.push(...en.blocks), b.length < en.totalCount ? _++ : ($ = !0) - } - return ( - b.sort((en, nn) => en.block.header.height - nn.block.header.height), - { totalCount: b.length, blocks: b } - ) - } - async blockchain(o, _) { - const b = { method: requests.Method.Blockchain, params: { minHeight: o, maxHeight: _ } } - return this.doCall(b, this.p.encodeBlockchain, this.r.decodeBlockchain) - } - async broadcastTxSync(o) { - const _ = { params: o, method: requests.Method.BroadcastTxSync } - return this.doCall(_, this.p.encodeBroadcastTx, this.r.decodeBroadcastTxSync) - } - async broadcastTxAsync(o) { - const _ = { params: o, method: requests.Method.BroadcastTxAsync } - return this.doCall(_, this.p.encodeBroadcastTx, this.r.decodeBroadcastTxAsync) - } - async broadcastTxCommit(o) { - const _ = { params: o, method: requests.Method.BroadcastTxCommit } - return this.doCall(_, this.p.encodeBroadcastTx, this.r.decodeBroadcastTxCommit) - } - async commit(o) { - const _ = { method: requests.Method.Commit, params: { height: o } } - return this.doCall(_, this.p.encodeCommit, this.r.decodeCommit) - } - async genesis() { - const o = { method: requests.Method.Genesis } - return this.doCall(o, this.p.encodeGenesis, this.r.decodeGenesis) - } - async health() { - const o = { method: requests.Method.Health } - return this.doCall(o, this.p.encodeHealth, this.r.decodeHealth) - } - async numUnconfirmedTxs() { - const o = { method: requests.Method.NumUnconfirmedTxs } - return this.doCall(o, this.p.encodeNumUnconfirmedTxs, this.r.decodeNumUnconfirmedTxs) - } - async status() { - const o = { method: requests.Method.Status } - return this.doCall(o, this.p.encodeStatus, this.r.decodeStatus) - } - subscribeNewBlock() { - const o = { - method: requests.Method.Subscribe, - query: { type: requests.SubscriptionEventType.NewBlock }, - } - return this.subscribe(o, this.r.decodeNewBlockEvent) - } - subscribeNewBlockHeader() { - const o = { - method: requests.Method.Subscribe, - query: { type: requests.SubscriptionEventType.NewBlockHeader }, - } - return this.subscribe(o, this.r.decodeNewBlockHeaderEvent) - } - subscribeTx(o) { - const _ = { - method: requests.Method.Subscribe, - query: { type: requests.SubscriptionEventType.Tx, raw: o }, - } - return this.subscribe(_, this.r.decodeTxEvent) - } - async tx(o) { - const _ = { params: o, method: requests.Method.Tx } - return this.doCall(_, this.p.encodeTx, this.r.decodeTx) - } - async txSearch(o) { - const _ = { params: o, method: requests.Method.TxSearch } - return this.doCall(_, this.p.encodeTxSearch, this.r.decodeTxSearch) - } - async txSearchAll(o) { - let _ = o.page || 1 - const b = [] - let $ = !1 - for (; !$; ) { - const en = await this.txSearch({ ...o, page: _ }) - b.push(...en.txs), b.length < en.totalCount ? _++ : ($ = !0) - } - return { totalCount: b.length, txs: b } - } - async validators(o) { - const _ = { method: requests.Method.Validators, params: o } - return this.doCall(_, this.p.encodeValidators, this.r.decodeValidators) - } - async validatorsAll(o) { - const _ = [] - let b = 1, - $ = !1, - en = o - for (; !$; ) { - const nn = await this.validators({ per_page: 50, height: en, page: b }) - _.push(...nn.validators), (en = en || nn.blockHeight), _.length < nn.total ? b++ : ($ = !0) - } - return { blockHeight: en ?? 0, count: _.length, total: _.length, validators: _ } - } - async doCall(o, _, b) { - const $ = _(o), - en = await this.client.execute($) - return b(en) - } - subscribe(o, _) { - if (!(0, rpcclients_1.instanceOfRpcStreamingClient)(this.client)) - throw new Error('This RPC client type cannot subscribe to events') - const b = this.p.encodeSubscribe(o) - return this.client.listen(b).map((en) => _(en)) - } -} -tendermint37client.Tendermint37Client = Tendermint37Client -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Tendermint37Client = - e.VoteType = - e.broadcastTxSyncSuccess = - e.broadcastTxCommitSuccess = - e.SubscriptionEventType = - e.Method = - void 0) - var o = requests$3 - Object.defineProperty(e, 'Method', { - enumerable: !0, - get: function () { - return o.Method - }, - }), - Object.defineProperty(e, 'SubscriptionEventType', { - enumerable: !0, - get: function () { - return o.SubscriptionEventType - }, - }) - var _ = responses$1 - Object.defineProperty(e, 'broadcastTxCommitSuccess', { - enumerable: !0, - get: function () { - return _.broadcastTxCommitSuccess - }, - }), - Object.defineProperty(e, 'broadcastTxSyncSuccess', { - enumerable: !0, - get: function () { - return _.broadcastTxSyncSuccess - }, - }), - Object.defineProperty(e, 'VoteType', { - enumerable: !0, - get: function () { - return _.VoteType - }, - }) - var b = tendermint37client - Object.defineProperty(e, 'Tendermint37Client', { - enumerable: !0, - get: function () { - return b.Tendermint37Client - }, - }) -})(tendermint37) -var tendermintclient = {} -Object.defineProperty(tendermintclient, '__esModule', { value: !0 }) -tendermintclient.isTendermint37Client = tendermintclient.isTendermint34Client = void 0 -const tendermint34_1 = tendermint34, - tendermint37_1 = tendermint37 -function isTendermint34Client(e) { - return e instanceof tendermint34_1.Tendermint34Client -} -tendermintclient.isTendermint34Client = isTendermint34Client -function isTendermint37Client(e) { - return e instanceof tendermint37_1.Tendermint37Client -} -tendermintclient.isTendermint37Client = isTendermint37Client -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Kn, an, xn, mn) { - mn === void 0 && (mn = xn) - var Bn = Object.getOwnPropertyDescriptor(an, xn) - ;(!Bn || ('get' in Bn ? !an.__esModule : Bn.writable || Bn.configurable)) && - (Bn = { - enumerable: !0, - get: function () { - return an[xn] - }, - }), - Object.defineProperty(Kn, mn, Bn) - } - : function (Kn, an, xn, mn) { - mn === void 0 && (mn = xn), (Kn[mn] = an[xn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Kn, an) { - Object.defineProperty(Kn, 'default', { enumerable: !0, value: an }) - } - : function (Kn, an) { - Kn.default = an - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Kn) { - if (Kn && Kn.__esModule) return Kn - var an = {} - if (Kn != null) - for (var xn in Kn) - xn !== 'default' && Object.prototype.hasOwnProperty.call(Kn, xn) && o(an, Kn, xn) - return _(an, Kn), an - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.BlockIdFlag = - e.isTendermint37Client = - e.isTendermint34Client = - e.Tendermint37Client = - e.tendermint37 = - e.Tendermint34Client = - e.tendermint34 = - e.VoteType = - e.SubscriptionEventType = - e.Method = - e.broadcastTxSyncSuccess = - e.broadcastTxCommitSuccess = - e.WebsocketClient = - e.HttpClient = - e.HttpBatchClient = - e.toSeconds = - e.toRfc3339WithNanoseconds = - e.fromSeconds = - e.fromRfc3339WithNanoseconds = - e.DateTime = - e.rawSecp256k1PubkeyToRawAddress = - e.rawEd25519PubkeyToRawAddress = - e.pubkeyToRawAddress = - e.pubkeyToAddress = - void 0) - var $ = addresses - Object.defineProperty(e, 'pubkeyToAddress', { - enumerable: !0, - get: function () { - return $.pubkeyToAddress - }, - }), - Object.defineProperty(e, 'pubkeyToRawAddress', { - enumerable: !0, - get: function () { - return $.pubkeyToRawAddress - }, - }), - Object.defineProperty(e, 'rawEd25519PubkeyToRawAddress', { - enumerable: !0, - get: function () { - return $.rawEd25519PubkeyToRawAddress - }, - }), - Object.defineProperty(e, 'rawSecp256k1PubkeyToRawAddress', { - enumerable: !0, - get: function () { - return $.rawSecp256k1PubkeyToRawAddress - }, - }) - var en = dates - Object.defineProperty(e, 'DateTime', { - enumerable: !0, - get: function () { - return en.DateTime - }, - }), - Object.defineProperty(e, 'fromRfc3339WithNanoseconds', { - enumerable: !0, - get: function () { - return en.fromRfc3339WithNanoseconds - }, - }), - Object.defineProperty(e, 'fromSeconds', { - enumerable: !0, - get: function () { - return en.fromSeconds - }, - }), - Object.defineProperty(e, 'toRfc3339WithNanoseconds', { - enumerable: !0, - get: function () { - return en.toRfc3339WithNanoseconds - }, - }), - Object.defineProperty(e, 'toSeconds', { - enumerable: !0, - get: function () { - return en.toSeconds - }, - }) - var nn = rpcclients - Object.defineProperty(e, 'HttpBatchClient', { - enumerable: !0, - get: function () { - return nn.HttpBatchClient - }, - }), - Object.defineProperty(e, 'HttpClient', { - enumerable: !0, - get: function () { - return nn.HttpClient - }, - }), - Object.defineProperty(e, 'WebsocketClient', { - enumerable: !0, - get: function () { - return nn.WebsocketClient - }, - }) - var sn = tendermint34 - Object.defineProperty(e, 'broadcastTxCommitSuccess', { - enumerable: !0, - get: function () { - return sn.broadcastTxCommitSuccess - }, - }), - Object.defineProperty(e, 'broadcastTxSyncSuccess', { - enumerable: !0, - get: function () { - return sn.broadcastTxSyncSuccess - }, - }), - Object.defineProperty(e, 'Method', { - enumerable: !0, - get: function () { - return sn.Method - }, - }), - Object.defineProperty(e, 'SubscriptionEventType', { - enumerable: !0, - get: function () { - return sn.SubscriptionEventType - }, - }), - Object.defineProperty(e, 'VoteType', { - enumerable: !0, - get: function () { - return sn.VoteType - }, - }), - (e.tendermint34 = b(tendermint34)) - var gn = tendermint34 - Object.defineProperty(e, 'Tendermint34Client', { - enumerable: !0, - get: function () { - return gn.Tendermint34Client - }, - }), - (e.tendermint37 = b(tendermint37)) - var In = tendermint37 - Object.defineProperty(e, 'Tendermint37Client', { - enumerable: !0, - get: function () { - return In.Tendermint37Client - }, - }) - var Jn = tendermintclient - Object.defineProperty(e, 'isTendermint34Client', { - enumerable: !0, - get: function () { - return Jn.isTendermint34Client - }, - }), - Object.defineProperty(e, 'isTendermint37Client', { - enumerable: !0, - get: function () { - return Jn.isTendermint37Client - }, - }) - var qn = types$1 - Object.defineProperty(e, 'BlockIdFlag', { - enumerable: !0, - get: function () { - return qn.BlockIdFlag - }, - }) -})(build$2) -var stargateclient = {} -Object.defineProperty(stargateclient, '__esModule', { value: !0 }) -stargateclient.StargateClient = - stargateclient.BroadcastTxError = - stargateclient.assertIsDeliverTxFailure = - stargateclient.assertIsDeliverTxSuccess = - stargateclient.isDeliverTxSuccess = - stargateclient.isDeliverTxFailure = - stargateclient.TimeoutError = - void 0 -const amino_1 = build$7, - encoding_1$3 = build$b, - math_1$1 = build$a, - tendermint_rpc_1$1 = build$2, - utils_1$1 = build$5, - abci_1$1 = abci, - accounts_1 = accounts, - events_1 = events, - modules_1$1 = modules$1, - queryclient_1 = queryclient$1 -class TimeoutError extends Error { - constructor(o, _) { - super(o), (this.txId = _) - } -} -stargateclient.TimeoutError = TimeoutError -function isDeliverTxFailure(e) { - return !!e.code -} -stargateclient.isDeliverTxFailure = isDeliverTxFailure -function isDeliverTxSuccess(e) { - return !isDeliverTxFailure(e) -} -stargateclient.isDeliverTxSuccess = isDeliverTxSuccess -function assertIsDeliverTxSuccess(e) { - if (isDeliverTxFailure(e)) - throw new Error( - `Error when broadcasting tx ${e.transactionHash} at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`, - ) -} -stargateclient.assertIsDeliverTxSuccess = assertIsDeliverTxSuccess -function assertIsDeliverTxFailure(e) { - if (isDeliverTxSuccess(e)) - throw new Error( - `Transaction ${e.transactionHash} did not fail at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`, - ) -} -stargateclient.assertIsDeliverTxFailure = assertIsDeliverTxFailure -class BroadcastTxError extends Error { - constructor(o, _, b) { - super(`Broadcasting transaction failed with code ${o} (codespace: ${_}). Log: ${b}`), - (this.code = o), - (this.codespace = _), - (this.log = b) - } -} -stargateclient.BroadcastTxError = BroadcastTxError -class StargateClient { - static async connect(o, _ = {}) { - let b - const $ = await tendermint_rpc_1$1.Tendermint37Client.connect(o) - return ( - (await $.status()).nodeInfo.version.startsWith('0.37.') - ? (b = $) - : ($.disconnect(), (b = await tendermint_rpc_1$1.Tendermint34Client.connect(o))), - StargateClient.create(b, _) - ) - } - static async create(o, _ = {}) { - return new StargateClient(o, _) - } - constructor(o, _) { - o && - ((this.tmClient = o), - (this.queryClient = queryclient_1.QueryClient.withExtensions( - o, - modules_1$1.setupAuthExtension, - modules_1$1.setupBankExtension, - modules_1$1.setupStakingExtension, - modules_1$1.setupTxExtension, - ))) - const { accountParser: b = accounts_1.accountFromAny } = _ - this.accountParser = b - } - getTmClient() { - return this.tmClient - } - forceGetTmClient() { - if (!this.tmClient) - throw new Error( - 'Tendermint client not available. You cannot use online functionality in offline mode.', - ) - return this.tmClient - } - getQueryClient() { - return this.queryClient - } - forceGetQueryClient() { - if (!this.queryClient) - throw new Error( - 'Query client not available. You cannot use online functionality in offline mode.', - ) - return this.queryClient - } - async getChainId() { - if (!this.chainId) { - const _ = (await this.forceGetTmClient().status()).nodeInfo.network - if (!_) throw new Error('Chain ID must not be empty') - this.chainId = _ - } - return this.chainId - } - async getHeight() { - return (await this.forceGetTmClient().status()).syncInfo.latestBlockHeight - } - async getAccount(o) { - try { - const _ = await this.forceGetQueryClient().auth.account(o) - return _ ? this.accountParser(_) : null - } catch (_) { - if (/rpc error: code = NotFound/i.test(_.toString())) return null - throw _ - } - } - async getSequence(o) { - const _ = await this.getAccount(o) - if (!_) - throw new Error( - `Account '${o}' does not exist on chain. Send some tokens there before trying to query sequence.`, - ) - return { accountNumber: _.accountNumber, sequence: _.sequence } - } - async getBlock(o) { - const _ = await this.forceGetTmClient().block(o) - return { - id: (0, encoding_1$3.toHex)(_.blockId.hash).toUpperCase(), - header: { - version: { - block: new math_1$1.Uint53(_.block.header.version.block).toString(), - app: new math_1$1.Uint53(_.block.header.version.app).toString(), - }, - height: _.block.header.height, - chainId: _.block.header.chainId, - time: (0, tendermint_rpc_1$1.toRfc3339WithNanoseconds)(_.block.header.time), - }, - txs: _.block.txs, - } - } - async getBalance(o, _) { - return this.forceGetQueryClient().bank.balance(o, _) - } - async getAllBalances(o) { - return this.forceGetQueryClient().bank.allBalances(o) - } - async getBalanceStaked(o) { - const _ = [] - let b - do { - const { delegationResponses: en, pagination: nn } = - await this.forceGetQueryClient().staking.delegatorDelegations(o, b), - sn = en || [] - _.push(...sn), (b = nn?.nextKey) - } while (b !== void 0 && b.length !== 0) - return _.reduce( - (en, nn) => ( - (0, utils_1$1.assert)(nn.balance), - en !== null ? (0, amino_1.addCoins)(en, nn.balance) : nn.balance - ), - null, - ) - } - async getDelegation(o, _) { - let b - try { - b = (await this.forceGetQueryClient().staking.delegation(o, _)).delegationResponse?.balance - } catch ($) { - if (!$.toString().includes('key not found')) throw $ - } - return b || null - } - async getTx(o) { - return (await this.txsQuery(`tx.hash='${o}'`))[0] ?? null - } - async searchTx(o) { - let _ - if (typeof o == 'string') _ = o - else if (Array.isArray(o)) _ = o.map((b) => `${b.key}='${b.value}'`).join(' AND ') - else - throw new Error( - 'Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.', - ) - return this.txsQuery(_) - } - disconnect() { - this.tmClient && this.tmClient.disconnect() - } - async broadcastTx(o, _ = 6e4, b = 3e3) { - let $ = !1 - const en = setTimeout(() => { - $ = !0 - }, _), - nn = async (gn) => { - if ($) - throw new TimeoutError( - `Transaction with ID ${gn} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${ - _ / 1e3 - } seconds.`, - gn, - ) - await (0, utils_1$1.sleep)(b) - const In = await this.getTx(gn) - return In - ? { - code: In.code, - height: In.height, - txIndex: In.txIndex, - events: In.events, - rawLog: In.rawLog, - transactionHash: gn, - msgResponses: In.msgResponses, - gasUsed: In.gasUsed, - gasWanted: In.gasWanted, - } - : nn(gn) - }, - sn = await this.broadcastTxSync(o) - return new Promise((gn, In) => - nn(sn).then( - (Jn) => { - clearTimeout(en), gn(Jn) - }, - (Jn) => { - clearTimeout(en), In(Jn) - }, - ), - ) - } - async broadcastTxSync(o) { - const _ = await this.forceGetTmClient().broadcastTxSync({ tx: o }) - return _.code - ? Promise.reject(new BroadcastTxError(_.code, _.codespace ?? '', _.log)) - : (0, encoding_1$3.toHex)(_.hash).toUpperCase() - } - async txsQuery(o) { - return (await this.forceGetTmClient().txSearchAll({ query: o })).txs.map((b) => { - const $ = abci_1$1.TxMsgData.decode(b.result.data ?? new Uint8Array()) - return { - height: b.height, - txIndex: b.index, - hash: (0, encoding_1$3.toHex)(b.hash).toUpperCase(), - code: b.result.code, - events: b.result.events.map(events_1.fromTendermintEvent), - rawLog: b.result.log || '', - tx: b.tx, - msgResponses: $.msgResponses, - gasUsed: b.result.gasUsed, - gasWanted: b.result.gasWanted, - } - }) - } -} -stargateclient.StargateClient = StargateClient -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (Gn) { - return Gn && Gn.__esModule ? Gn : { default: Gn } - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.SigningStargateClient = e.createDefaultAminoConverters = e.defaultRegistryTypes = void 0) - const _ = build$7, - b = build$b, - $ = build$a, - en = build$8, - nn = build$2, - sn = build$5, - gn = coin$1, - In = tx$b, - Jn = tx$2, - qn = signing$1, - Kn = tx$e, - an = tx$6, - xn = o(long$1), - mn = aminotypes, - Bn = fee, - kn = modules$1, - ln = modules$1, - yn = stargateclient - e.defaultRegistryTypes = [ - ['/cosmos.base.v1beta1.Coin', gn.Coin], - ...kn.authzTypes, - ...kn.bankTypes, - ...kn.distributionTypes, - ...kn.feegrantTypes, - ...kn.govTypes, - ...kn.groupTypes, - ...kn.stakingTypes, - ...kn.ibcTypes, - ...kn.vestingTypes, - ] - function Cn() { - return { - ...(0, ln.createAuthzAminoConverters)(), - ...(0, ln.createBankAminoConverters)(), - ...(0, ln.createDistributionAminoConverters)(), - ...(0, ln.createGovAminoConverters)(), - ...(0, ln.createStakingAminoConverters)(), - ...(0, ln.createIbcAminoConverters)(), - ...(0, ln.createFeegrantAminoConverters)(), - ...(0, ln.createVestingAminoConverters)(), - } - } - e.createDefaultAminoConverters = Cn - class Tn extends yn.StargateClient { - static async connectWithSigner(Sn, Zn, tn = {}) { - let En - const Mn = await nn.Tendermint37Client.connect(Sn) - return ( - (await Mn.status()).nodeInfo.version.startsWith('0.37.') - ? (En = Mn) - : (Mn.disconnect(), (En = await nn.Tendermint34Client.connect(Sn))), - Tn.createWithSigner(En, Zn, tn) - ) - } - static async createWithSigner(Sn, Zn, tn = {}) { - return new Tn(Sn, Zn, tn) - } - static async offline(Sn, Zn = {}) { - return new Tn(void 0, Sn, Zn) - } - constructor(Sn, Zn, tn) { - super(Sn, tn) - const { - registry: En = new en.Registry(e.defaultRegistryTypes), - aminoTypes: Mn = new mn.AminoTypes(Cn()), - } = tn - ;(this.registry = En), - (this.aminoTypes = Mn), - (this.signer = Zn), - (this.broadcastTimeoutMs = tn.broadcastTimeoutMs), - (this.broadcastPollIntervalMs = tn.broadcastPollIntervalMs), - (this.gasPrice = tn.gasPrice) - } - async simulate(Sn, Zn, tn) { - const En = Zn.map((Nn) => this.registry.encodeAsAny(Nn)), - Mn = (await this.signer.getAccounts()).find((Nn) => Nn.address === Sn) - if (!Mn) throw new Error('Failed to retrieve account from signer') - const Hn = (0, _.encodeSecp256k1Pubkey)(Mn.pubkey), - { sequence: un } = await this.getSequence(Sn), - { gasInfo: dn } = await this.forceGetQueryClient().tx.simulate(En, tn, Hn, un) - return (0, sn.assertDefined)(dn), $.Uint53.fromString(dn.gasUsed.toString()).toNumber() - } - async sendTokens(Sn, Zn, tn, En, Mn = '') { - const Hn = { - typeUrl: '/cosmos.bank.v1beta1.MsgSend', - value: { fromAddress: Sn, toAddress: Zn, amount: [...tn] }, - } - return this.signAndBroadcast(Sn, [Hn], En, Mn) - } - async delegateTokens(Sn, Zn, tn, En, Mn = '') { - const Hn = { - typeUrl: '/cosmos.staking.v1beta1.MsgDelegate', - value: Jn.MsgDelegate.fromPartial({ - delegatorAddress: Sn, - validatorAddress: Zn, - amount: tn, - }), - } - return this.signAndBroadcast(Sn, [Hn], En, Mn) - } - async undelegateTokens(Sn, Zn, tn, En, Mn = '') { - const Hn = { - typeUrl: '/cosmos.staking.v1beta1.MsgUndelegate', - value: Jn.MsgUndelegate.fromPartial({ - delegatorAddress: Sn, - validatorAddress: Zn, - amount: tn, - }), - } - return this.signAndBroadcast(Sn, [Hn], En, Mn) - } - async withdrawRewards(Sn, Zn, tn, En = '') { - const Mn = { - typeUrl: '/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward', - value: In.MsgWithdrawDelegatorReward.fromPartial({ - delegatorAddress: Sn, - validatorAddress: Zn, - }), - } - return this.signAndBroadcast(Sn, [Mn], tn, En) - } - async sendIbcTokens(Sn, Zn, tn, En, Mn, Hn, un, dn, Nn = '') { - const fn = un ? xn.default.fromNumber(un).multiply(1e9) : void 0, - _n = { - typeUrl: '/ibc.applications.transfer.v1.MsgTransfer', - value: an.MsgTransfer.fromPartial({ - sourcePort: En, - sourceChannel: Mn, - sender: Sn, - receiver: Zn, - token: tn, - timeoutHeight: Hn, - timeoutTimestamp: fn, - }), - } - return this.signAndBroadcast(Sn, [_n], dn, Nn) - } - async signAndBroadcast(Sn, Zn, tn, En = '') { - let Mn - if (tn == 'auto' || typeof tn == 'number') { - ;(0, sn.assertDefined)( - this.gasPrice, - 'Gas price must be set in the client options when auto gas is used.', - ) - const dn = await this.simulate(Sn, Zn, En), - Nn = typeof tn == 'number' ? tn : 1.4 - Mn = (0, Bn.calculateFee)(Math.round(dn * Nn), this.gasPrice) - } else Mn = tn - const Hn = await this.sign(Sn, Zn, Mn, En), - un = Kn.TxRaw.encode(Hn).finish() - return this.broadcastTx(un, this.broadcastTimeoutMs, this.broadcastPollIntervalMs) - } - async signAndBroadcastSync(Sn, Zn, tn, En = '') { - let Mn - if (tn == 'auto' || typeof tn == 'number') { - ;(0, sn.assertDefined)( - this.gasPrice, - 'Gas price must be set in the client options when auto gas is used.', - ) - const dn = await this.simulate(Sn, Zn, En), - Nn = typeof tn == 'number' ? tn : 1.3 - Mn = (0, Bn.calculateFee)(Math.round(dn * Nn), this.gasPrice) - } else Mn = tn - const Hn = await this.sign(Sn, Zn, Mn, En), - un = Kn.TxRaw.encode(Hn).finish() - return this.broadcastTxSync(un) - } - async sign(Sn, Zn, tn, En, Mn) { - let Hn - if (Mn) Hn = Mn - else { - const { accountNumber: un, sequence: dn } = await this.getSequence(Sn), - Nn = await this.getChainId() - Hn = { accountNumber: un, sequence: dn, chainId: Nn } - } - return (0, en.isOfflineDirectSigner)(this.signer) - ? this.signDirect(Sn, Zn, tn, En, Hn) - : this.signAmino(Sn, Zn, tn, En, Hn) - } - async signAmino(Sn, Zn, tn, En, { accountNumber: Mn, sequence: Hn, chainId: un }) { - ;(0, sn.assert)(!(0, en.isOfflineDirectSigner)(this.signer)) - const dn = (await this.signer.getAccounts()).find((Wt) => Wt.address === Sn) - if (!dn) throw new Error('Failed to retrieve account from signer') - const Nn = (0, en.encodePubkey)((0, _.encodeSecp256k1Pubkey)(dn.pubkey)), - fn = qn.SignMode.SIGN_MODE_LEGACY_AMINO_JSON, - _n = Zn.map((Wt) => this.aminoTypes.toAmino(Wt)), - Ln = (0, _.makeSignDoc)(_n, tn, un, En, Mn, Hn), - { signature: zn, signed: Fn } = await this.signer.signAmino(Sn, Ln), - Qn = { - typeUrl: '/cosmos.tx.v1beta1.TxBody', - value: { messages: Fn.msgs.map((Wt) => this.aminoTypes.fromAmino(Wt)), memo: Fn.memo }, - }, - Rn = this.registry.encode(Qn), - Vn = $.Int53.fromString(Fn.fee.gas).toNumber(), - Wn = $.Int53.fromString(Fn.sequence).toNumber(), - ht = (0, en.makeAuthInfoBytes)( - [{ pubkey: Nn, sequence: Wn }], - Fn.fee.amount, - Vn, - Fn.fee.granter, - Fn.fee.payer, - fn, - ) - return Kn.TxRaw.fromPartial({ - bodyBytes: Rn, - authInfoBytes: ht, - signatures: [(0, b.fromBase64)(zn.signature)], - }) - } - async signDirect(Sn, Zn, tn, En, { accountNumber: Mn, sequence: Hn, chainId: un }) { - ;(0, sn.assert)((0, en.isOfflineDirectSigner)(this.signer)) - const dn = (await this.signer.getAccounts()).find((Rn) => Rn.address === Sn) - if (!dn) throw new Error('Failed to retrieve account from signer') - const Nn = (0, en.encodePubkey)((0, _.encodeSecp256k1Pubkey)(dn.pubkey)), - fn = { typeUrl: '/cosmos.tx.v1beta1.TxBody', value: { messages: Zn, memo: En } }, - _n = this.registry.encode(fn), - Ln = $.Int53.fromString(tn.gas).toNumber(), - zn = (0, en.makeAuthInfoBytes)( - [{ pubkey: Nn, sequence: Hn }], - tn.amount, - Ln, - tn.granter, - tn.payer, - ), - Fn = (0, en.makeSignDoc)(_n, zn, un, Mn), - { signature: An, signed: Qn } = await this.signer.signDirect(Sn, Fn) - return Kn.TxRaw.fromPartial({ - bodyBytes: Qn.bodyBytes, - authInfoBytes: Qn.authInfoBytes, - signatures: [(0, b.fromBase64)(An.signature)], - }) - } - } - e.SigningStargateClient = Tn -})(signingstargateclient) -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn) - var ln = Object.getOwnPropertyDescriptor(mn, Bn) - ;(!ln || ('get' in ln ? !mn.__esModule : ln.writable || ln.configurable)) && - (ln = { - enumerable: !0, - get: function () { - return mn[Bn] - }, - }), - Object.defineProperty(xn, kn, ln) - } - : function (xn, mn, Bn, kn) { - kn === void 0 && (kn = Bn), (xn[kn] = mn[Bn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (xn, mn) { - Object.defineProperty(xn, 'default', { enumerable: !0, value: mn }) - } - : function (xn, mn) { - xn.default = mn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (xn) { - if (xn && xn.__esModule) return xn - var mn = {} - if (xn != null) - for (var Bn in xn) - Bn !== 'default' && Object.prototype.hasOwnProperty.call(xn, Bn) && o(mn, xn, Bn) - return _(mn, xn), mn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.isMsgWithdrawDelegatorRewardEncodeObject = - e.isMsgVoteWeightedEncodeObject = - e.isMsgVoteEncodeObject = - e.isMsgUndelegateEncodeObject = - e.isMsgTransferEncodeObject = - e.isMsgSubmitProposalEncodeObject = - e.isMsgSendEncodeObject = - e.isMsgEditValidatorEncodeObject = - e.isMsgDepositEncodeObject = - e.isMsgDelegateEncodeObject = - e.isMsgCreateValidatorEncodeObject = - e.isMsgBeginRedelegateEncodeObject = - e.isAminoMsgWithdrawValidatorCommission = - e.isAminoMsgWithdrawDelegatorReward = - e.isAminoMsgVoteWeighted = - e.isAminoMsgVote = - e.isAminoMsgVerifyInvariant = - e.isAminoMsgUnjail = - e.isAminoMsgUndelegate = - e.isAminoMsgTransfer = - e.isAminoMsgSubmitProposal = - e.isAminoMsgSubmitEvidence = - e.isAminoMsgSetWithdrawAddress = - e.isAminoMsgSend = - e.isAminoMsgMultiSend = - e.isAminoMsgFundCommunityPool = - e.isAminoMsgEditValidator = - e.isAminoMsgDeposit = - e.isAminoMsgDelegate = - e.isAminoMsgCreateVestingAccount = - e.isAminoMsgCreateValidator = - e.isAminoMsgBeginRedelegate = - e.createVestingAminoConverters = - e.createStakingAminoConverters = - e.createSlashingAminoConverters = - e.createIbcAminoConverters = - e.createGroupAminoConverters = - e.createGovAminoConverters = - e.createFeegrantAminoConverters = - e.createEvidenceAminoConverters = - e.createDistributionAminoConverters = - e.createCrysisAminoConverters = - e.createBankAminoConverters = - e.createAuthzAminoConverters = - e.logs = - e.GasPrice = - e.calculateFee = - e.fromTendermintEvent = - e.AminoTypes = - e.accountFromAny = - void 0), - (e.parseCoins = - e.makeCosmoshubPath = - e.coins = - e.coin = - e.TimeoutError = - e.StargateClient = - e.isDeliverTxSuccess = - e.isDeliverTxFailure = - e.BroadcastTxError = - e.assertIsDeliverTxSuccess = - e.assertIsDeliverTxFailure = - e.SigningStargateClient = - e.defaultRegistryTypes = - e.createDefaultAminoConverters = - e.QueryClient = - e.decodeCosmosSdkDecFromProto = - e.createProtobufRpcClient = - e.createPagination = - e.makeMultisignedTxBytes = - e.makeMultisignedTx = - e.setupTxExtension = - e.setupStakingExtension = - e.setupSlashingExtension = - e.setupMintExtension = - e.setupIbcExtension = - e.setupGovExtension = - e.setupFeegrantExtension = - e.setupDistributionExtension = - e.setupBankExtension = - e.setupAuthzExtension = - e.setupAuthExtension = - void 0) - var $ = accounts - Object.defineProperty(e, 'accountFromAny', { - enumerable: !0, - get: function () { - return $.accountFromAny - }, - }) - var en = aminotypes - Object.defineProperty(e, 'AminoTypes', { - enumerable: !0, - get: function () { - return en.AminoTypes - }, - }) - var nn = events - Object.defineProperty(e, 'fromTendermintEvent', { - enumerable: !0, - get: function () { - return nn.fromTendermintEvent - }, - }) - var sn = fee - Object.defineProperty(e, 'calculateFee', { - enumerable: !0, - get: function () { - return sn.calculateFee - }, - }), - Object.defineProperty(e, 'GasPrice', { - enumerable: !0, - get: function () { - return sn.GasPrice - }, - }), - (e.logs = b(logs)) - var gn = modules$1 - Object.defineProperty(e, 'createAuthzAminoConverters', { - enumerable: !0, - get: function () { - return gn.createAuthzAminoConverters - }, - }), - Object.defineProperty(e, 'createBankAminoConverters', { - enumerable: !0, - get: function () { - return gn.createBankAminoConverters - }, - }), - Object.defineProperty(e, 'createCrysisAminoConverters', { - enumerable: !0, - get: function () { - return gn.createCrysisAminoConverters - }, - }), - Object.defineProperty(e, 'createDistributionAminoConverters', { - enumerable: !0, - get: function () { - return gn.createDistributionAminoConverters - }, - }), - Object.defineProperty(e, 'createEvidenceAminoConverters', { - enumerable: !0, - get: function () { - return gn.createEvidenceAminoConverters - }, - }), - Object.defineProperty(e, 'createFeegrantAminoConverters', { - enumerable: !0, - get: function () { - return gn.createFeegrantAminoConverters - }, - }), - Object.defineProperty(e, 'createGovAminoConverters', { - enumerable: !0, - get: function () { - return gn.createGovAminoConverters - }, - }), - Object.defineProperty(e, 'createGroupAminoConverters', { - enumerable: !0, - get: function () { - return gn.createGroupAminoConverters - }, - }), - Object.defineProperty(e, 'createIbcAminoConverters', { - enumerable: !0, - get: function () { - return gn.createIbcAminoConverters - }, - }), - Object.defineProperty(e, 'createSlashingAminoConverters', { - enumerable: !0, - get: function () { - return gn.createSlashingAminoConverters - }, - }), - Object.defineProperty(e, 'createStakingAminoConverters', { - enumerable: !0, - get: function () { - return gn.createStakingAminoConverters - }, - }), - Object.defineProperty(e, 'createVestingAminoConverters', { - enumerable: !0, - get: function () { - return gn.createVestingAminoConverters - }, - }), - Object.defineProperty(e, 'isAminoMsgBeginRedelegate', { - enumerable: !0, - get: function () { - return gn.isAminoMsgBeginRedelegate - }, - }), - Object.defineProperty(e, 'isAminoMsgCreateValidator', { - enumerable: !0, - get: function () { - return gn.isAminoMsgCreateValidator - }, - }), - Object.defineProperty(e, 'isAminoMsgCreateVestingAccount', { - enumerable: !0, - get: function () { - return gn.isAminoMsgCreateVestingAccount - }, - }), - Object.defineProperty(e, 'isAminoMsgDelegate', { - enumerable: !0, - get: function () { - return gn.isAminoMsgDelegate - }, - }), - Object.defineProperty(e, 'isAminoMsgDeposit', { - enumerable: !0, - get: function () { - return gn.isAminoMsgDeposit - }, - }), - Object.defineProperty(e, 'isAminoMsgEditValidator', { - enumerable: !0, - get: function () { - return gn.isAminoMsgEditValidator - }, - }), - Object.defineProperty(e, 'isAminoMsgFundCommunityPool', { - enumerable: !0, - get: function () { - return gn.isAminoMsgFundCommunityPool - }, - }), - Object.defineProperty(e, 'isAminoMsgMultiSend', { - enumerable: !0, - get: function () { - return gn.isAminoMsgMultiSend - }, - }), - Object.defineProperty(e, 'isAminoMsgSend', { - enumerable: !0, - get: function () { - return gn.isAminoMsgSend - }, - }), - Object.defineProperty(e, 'isAminoMsgSetWithdrawAddress', { - enumerable: !0, - get: function () { - return gn.isAminoMsgSetWithdrawAddress - }, - }), - Object.defineProperty(e, 'isAminoMsgSubmitEvidence', { - enumerable: !0, - get: function () { - return gn.isAminoMsgSubmitEvidence - }, - }), - Object.defineProperty(e, 'isAminoMsgSubmitProposal', { - enumerable: !0, - get: function () { - return gn.isAminoMsgSubmitProposal - }, - }), - Object.defineProperty(e, 'isAminoMsgTransfer', { - enumerable: !0, - get: function () { - return gn.isAminoMsgTransfer - }, - }), - Object.defineProperty(e, 'isAminoMsgUndelegate', { - enumerable: !0, - get: function () { - return gn.isAminoMsgUndelegate - }, - }), - Object.defineProperty(e, 'isAminoMsgUnjail', { - enumerable: !0, - get: function () { - return gn.isAminoMsgUnjail - }, - }), - Object.defineProperty(e, 'isAminoMsgVerifyInvariant', { - enumerable: !0, - get: function () { - return gn.isAminoMsgVerifyInvariant - }, - }), - Object.defineProperty(e, 'isAminoMsgVote', { - enumerable: !0, - get: function () { - return gn.isAminoMsgVote - }, - }), - Object.defineProperty(e, 'isAminoMsgVoteWeighted', { - enumerable: !0, - get: function () { - return gn.isAminoMsgVoteWeighted - }, - }), - Object.defineProperty(e, 'isAminoMsgWithdrawDelegatorReward', { - enumerable: !0, - get: function () { - return gn.isAminoMsgWithdrawDelegatorReward - }, - }), - Object.defineProperty(e, 'isAminoMsgWithdrawValidatorCommission', { - enumerable: !0, - get: function () { - return gn.isAminoMsgWithdrawValidatorCommission - }, - }), - Object.defineProperty(e, 'isMsgBeginRedelegateEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgBeginRedelegateEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgCreateValidatorEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgCreateValidatorEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgDelegateEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgDelegateEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgDepositEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgDepositEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgEditValidatorEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgEditValidatorEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgSendEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgSendEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgSubmitProposalEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgSubmitProposalEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgTransferEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgTransferEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgUndelegateEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgUndelegateEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgVoteEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgVoteEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgVoteWeightedEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgVoteWeightedEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgWithdrawDelegatorRewardEncodeObject', { - enumerable: !0, - get: function () { - return gn.isMsgWithdrawDelegatorRewardEncodeObject - }, - }), - Object.defineProperty(e, 'setupAuthExtension', { - enumerable: !0, - get: function () { - return gn.setupAuthExtension - }, - }), - Object.defineProperty(e, 'setupAuthzExtension', { - enumerable: !0, - get: function () { - return gn.setupAuthzExtension - }, - }), - Object.defineProperty(e, 'setupBankExtension', { - enumerable: !0, - get: function () { - return gn.setupBankExtension - }, - }), - Object.defineProperty(e, 'setupDistributionExtension', { - enumerable: !0, - get: function () { - return gn.setupDistributionExtension - }, - }), - Object.defineProperty(e, 'setupFeegrantExtension', { - enumerable: !0, - get: function () { - return gn.setupFeegrantExtension - }, - }), - Object.defineProperty(e, 'setupGovExtension', { - enumerable: !0, - get: function () { - return gn.setupGovExtension - }, - }), - Object.defineProperty(e, 'setupIbcExtension', { - enumerable: !0, - get: function () { - return gn.setupIbcExtension - }, - }), - Object.defineProperty(e, 'setupMintExtension', { - enumerable: !0, - get: function () { - return gn.setupMintExtension - }, - }), - Object.defineProperty(e, 'setupSlashingExtension', { - enumerable: !0, - get: function () { - return gn.setupSlashingExtension - }, - }), - Object.defineProperty(e, 'setupStakingExtension', { - enumerable: !0, - get: function () { - return gn.setupStakingExtension - }, - }), - Object.defineProperty(e, 'setupTxExtension', { - enumerable: !0, - get: function () { - return gn.setupTxExtension - }, - }) - var In = multisignature - Object.defineProperty(e, 'makeMultisignedTx', { - enumerable: !0, - get: function () { - return In.makeMultisignedTx - }, - }), - Object.defineProperty(e, 'makeMultisignedTxBytes', { - enumerable: !0, - get: function () { - return In.makeMultisignedTxBytes - }, - }) - var Jn = queryclient$1 - Object.defineProperty(e, 'createPagination', { - enumerable: !0, - get: function () { - return Jn.createPagination - }, - }), - Object.defineProperty(e, 'createProtobufRpcClient', { - enumerable: !0, - get: function () { - return Jn.createProtobufRpcClient - }, - }), - Object.defineProperty(e, 'decodeCosmosSdkDecFromProto', { - enumerable: !0, - get: function () { - return Jn.decodeCosmosSdkDecFromProto - }, - }), - Object.defineProperty(e, 'QueryClient', { - enumerable: !0, - get: function () { - return Jn.QueryClient - }, - }) - var qn = signingstargateclient - Object.defineProperty(e, 'createDefaultAminoConverters', { - enumerable: !0, - get: function () { - return qn.createDefaultAminoConverters - }, - }), - Object.defineProperty(e, 'defaultRegistryTypes', { - enumerable: !0, - get: function () { - return qn.defaultRegistryTypes - }, - }), - Object.defineProperty(e, 'SigningStargateClient', { - enumerable: !0, - get: function () { - return qn.SigningStargateClient - }, - }) - var Kn = stargateclient - Object.defineProperty(e, 'assertIsDeliverTxFailure', { - enumerable: !0, - get: function () { - return Kn.assertIsDeliverTxFailure - }, - }), - Object.defineProperty(e, 'assertIsDeliverTxSuccess', { - enumerable: !0, - get: function () { - return Kn.assertIsDeliverTxSuccess - }, - }), - Object.defineProperty(e, 'BroadcastTxError', { - enumerable: !0, - get: function () { - return Kn.BroadcastTxError - }, - }), - Object.defineProperty(e, 'isDeliverTxFailure', { - enumerable: !0, - get: function () { - return Kn.isDeliverTxFailure - }, - }), - Object.defineProperty(e, 'isDeliverTxSuccess', { - enumerable: !0, - get: function () { - return Kn.isDeliverTxSuccess - }, - }), - Object.defineProperty(e, 'StargateClient', { - enumerable: !0, - get: function () { - return Kn.StargateClient - }, - }), - Object.defineProperty(e, 'TimeoutError', { - enumerable: !0, - get: function () { - return Kn.TimeoutError - }, - }) - var an = build$8 - Object.defineProperty(e, 'coin', { - enumerable: !0, - get: function () { - return an.coin - }, - }), - Object.defineProperty(e, 'coins', { - enumerable: !0, - get: function () { - return an.coins - }, - }), - Object.defineProperty(e, 'makeCosmoshubPath', { - enumerable: !0, - get: function () { - return an.makeCosmoshubPath - }, - }), - Object.defineProperty(e, 'parseCoins', { - enumerable: !0, - get: function () { - return an.parseCoins - }, - }) -})(build$9) -var types = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (Tn, Gn, Sn, Zn) { - Zn === void 0 && (Zn = Sn) - var tn = Object.getOwnPropertyDescriptor(Gn, Sn) - ;(!tn || ('get' in tn ? !Gn.__esModule : tn.writable || tn.configurable)) && - (tn = { - enumerable: !0, - get: function () { - return Gn[Sn] - }, - }), - Object.defineProperty(Tn, Zn, tn) - } - : function (Tn, Gn, Sn, Zn) { - Zn === void 0 && (Zn = Sn), (Tn[Zn] = Gn[Sn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (Tn, Gn) { - Object.defineProperty(Tn, 'default', { enumerable: !0, value: Gn }) - } - : function (Tn, Gn) { - Tn.default = Gn - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (Tn) { - if (Tn && Tn.__esModule) return Tn - var Gn = {} - if (Tn != null) - for (var Sn in Tn) - Sn !== 'default' && Object.prototype.hasOwnProperty.call(Tn, Sn) && o(Gn, Tn, Sn) - return _(Gn, Tn), Gn - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.Model = - e.AbsoluteTxPosition = - e.ContractCodeHistoryEntry = - e.ContractInfo = - e.CodeInfo = - e.Params = - e.AccessConfig = - e.AccessTypeParam = - e.contractCodeHistoryOperationTypeToJSON = - e.contractCodeHistoryOperationTypeFromJSON = - e.ContractCodeHistoryOperationType = - e.accessTypeToJSON = - e.accessTypeFromJSON = - e.AccessType = - e.protobufPackage = - void 0) - const $ = any, - en = helpers, - nn = b(minimalExports) - e.protobufPackage = 'cosmwasm.wasm.v1' - var sn - ;(function (Tn) { - ;(Tn[(Tn.ACCESS_TYPE_UNSPECIFIED = 0)] = 'ACCESS_TYPE_UNSPECIFIED'), - (Tn[(Tn.ACCESS_TYPE_NOBODY = 1)] = 'ACCESS_TYPE_NOBODY'), - (Tn[(Tn.ACCESS_TYPE_ONLY_ADDRESS = 2)] = 'ACCESS_TYPE_ONLY_ADDRESS'), - (Tn[(Tn.ACCESS_TYPE_EVERYBODY = 3)] = 'ACCESS_TYPE_EVERYBODY'), - (Tn[(Tn.ACCESS_TYPE_ANY_OF_ADDRESSES = 4)] = 'ACCESS_TYPE_ANY_OF_ADDRESSES'), - (Tn[(Tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((sn = e.AccessType || (e.AccessType = {}))) - function gn(Tn) { - switch (Tn) { - case 0: - case 'ACCESS_TYPE_UNSPECIFIED': - return sn.ACCESS_TYPE_UNSPECIFIED - case 1: - case 'ACCESS_TYPE_NOBODY': - return sn.ACCESS_TYPE_NOBODY - case 2: - case 'ACCESS_TYPE_ONLY_ADDRESS': - return sn.ACCESS_TYPE_ONLY_ADDRESS - case 3: - case 'ACCESS_TYPE_EVERYBODY': - return sn.ACCESS_TYPE_EVERYBODY - case 4: - case 'ACCESS_TYPE_ANY_OF_ADDRESSES': - return sn.ACCESS_TYPE_ANY_OF_ADDRESSES - case -1: - case 'UNRECOGNIZED': - default: - return sn.UNRECOGNIZED - } - } - e.accessTypeFromJSON = gn - function In(Tn) { - switch (Tn) { - case sn.ACCESS_TYPE_UNSPECIFIED: - return 'ACCESS_TYPE_UNSPECIFIED' - case sn.ACCESS_TYPE_NOBODY: - return 'ACCESS_TYPE_NOBODY' - case sn.ACCESS_TYPE_ONLY_ADDRESS: - return 'ACCESS_TYPE_ONLY_ADDRESS' - case sn.ACCESS_TYPE_EVERYBODY: - return 'ACCESS_TYPE_EVERYBODY' - case sn.ACCESS_TYPE_ANY_OF_ADDRESSES: - return 'ACCESS_TYPE_ANY_OF_ADDRESSES' - case sn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.accessTypeToJSON = In - var Jn - ;(function (Tn) { - ;(Tn[(Tn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED = 0)] = - 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED'), - (Tn[(Tn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT = 1)] = - 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT'), - (Tn[(Tn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE = 2)] = - 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE'), - (Tn[(Tn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS = 3)] = - 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS'), - (Tn[(Tn.UNRECOGNIZED = -1)] = 'UNRECOGNIZED') - })((Jn = e.ContractCodeHistoryOperationType || (e.ContractCodeHistoryOperationType = {}))) - function qn(Tn) { - switch (Tn) { - case 0: - case 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED': - return Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED - case 1: - case 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT': - return Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT - case 2: - case 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE': - return Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE - case 3: - case 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS': - return Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS - case -1: - case 'UNRECOGNIZED': - default: - return Jn.UNRECOGNIZED - } - } - e.contractCodeHistoryOperationTypeFromJSON = qn - function Kn(Tn) { - switch (Tn) { - case Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED: - return 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED' - case Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT: - return 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT' - case Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE: - return 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE' - case Jn.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS: - return 'CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS' - case Jn.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } - } - e.contractCodeHistoryOperationTypeToJSON = Kn - function an() { - return { value: 0 } - } - e.AccessTypeParam = { - encode(Tn, Gn = nn.Writer.create()) { - return Tn.value !== 0 && Gn.uint32(8).int32(Tn.value), Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = an() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.value = Sn.int32() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { value: (0, en.isSet)(Tn.value) ? gn(Tn.value) : 0 } - }, - toJSON(Tn) { - const Gn = {} - return Tn.value !== void 0 && (Gn.value = In(Tn.value)), Gn - }, - fromPartial(Tn) { - const Gn = an() - return (Gn.value = Tn.value ?? 0), Gn - }, - } - function xn() { - return { permission: 0, address: '', addresses: [] } - } - e.AccessConfig = { - encode(Tn, Gn = nn.Writer.create()) { - Tn.permission !== 0 && Gn.uint32(8).int32(Tn.permission), - Tn.address !== '' && Gn.uint32(18).string(Tn.address) - for (const Sn of Tn.addresses) Gn.uint32(26).string(Sn) - return Gn - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = xn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.permission = Sn.int32() - break - case 2: - tn.address = Sn.string() - break - case 3: - tn.addresses.push(Sn.string()) - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - permission: (0, en.isSet)(Tn.permission) ? gn(Tn.permission) : 0, - address: (0, en.isSet)(Tn.address) ? String(Tn.address) : '', - addresses: Array.isArray(Tn?.addresses) ? Tn.addresses.map((Gn) => String(Gn)) : [], - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.permission !== void 0 && (Gn.permission = In(Tn.permission)), - Tn.address !== void 0 && (Gn.address = Tn.address), - Tn.addresses ? (Gn.addresses = Tn.addresses.map((Sn) => Sn)) : (Gn.addresses = []), - Gn - ) - }, - fromPartial(Tn) { - const Gn = xn() - return ( - (Gn.permission = Tn.permission ?? 0), - (Gn.address = Tn.address ?? ''), - (Gn.addresses = Tn.addresses?.map((Sn) => Sn) || []), - Gn - ) - }, - } - function mn() { - return { codeUploadAccess: void 0, instantiateDefaultPermission: 0 } - } - e.Params = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.codeUploadAccess !== void 0 && - e.AccessConfig.encode(Tn.codeUploadAccess, Gn.uint32(10).fork()).ldelim(), - Tn.instantiateDefaultPermission !== 0 && - Gn.uint32(16).int32(Tn.instantiateDefaultPermission), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = mn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.codeUploadAccess = e.AccessConfig.decode(Sn, Sn.uint32()) - break - case 2: - tn.instantiateDefaultPermission = Sn.int32() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - codeUploadAccess: (0, en.isSet)(Tn.codeUploadAccess) - ? e.AccessConfig.fromJSON(Tn.codeUploadAccess) - : void 0, - instantiateDefaultPermission: (0, en.isSet)(Tn.instantiateDefaultPermission) - ? gn(Tn.instantiateDefaultPermission) - : 0, - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.codeUploadAccess !== void 0 && - (Gn.codeUploadAccess = Tn.codeUploadAccess - ? e.AccessConfig.toJSON(Tn.codeUploadAccess) - : void 0), - Tn.instantiateDefaultPermission !== void 0 && - (Gn.instantiateDefaultPermission = In(Tn.instantiateDefaultPermission)), - Gn - ) - }, - fromPartial(Tn) { - const Gn = mn() - return ( - (Gn.codeUploadAccess = - Tn.codeUploadAccess !== void 0 && Tn.codeUploadAccess !== null - ? e.AccessConfig.fromPartial(Tn.codeUploadAccess) - : void 0), - (Gn.instantiateDefaultPermission = Tn.instantiateDefaultPermission ?? 0), - Gn - ) - }, - } - function Bn() { - return { codeHash: new Uint8Array(), creator: '', instantiateConfig: void 0 } - } - e.CodeInfo = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.codeHash.length !== 0 && Gn.uint32(10).bytes(Tn.codeHash), - Tn.creator !== '' && Gn.uint32(18).string(Tn.creator), - Tn.instantiateConfig !== void 0 && - e.AccessConfig.encode(Tn.instantiateConfig, Gn.uint32(42).fork()).ldelim(), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = Bn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.codeHash = Sn.bytes() - break - case 2: - tn.creator = Sn.string() - break - case 5: - tn.instantiateConfig = e.AccessConfig.decode(Sn, Sn.uint32()) - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - codeHash: (0, en.isSet)(Tn.codeHash) - ? (0, en.bytesFromBase64)(Tn.codeHash) - : new Uint8Array(), - creator: (0, en.isSet)(Tn.creator) ? String(Tn.creator) : '', - instantiateConfig: (0, en.isSet)(Tn.instantiateConfig) - ? e.AccessConfig.fromJSON(Tn.instantiateConfig) - : void 0, - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.codeHash !== void 0 && - (Gn.codeHash = (0, en.base64FromBytes)( - Tn.codeHash !== void 0 ? Tn.codeHash : new Uint8Array(), - )), - Tn.creator !== void 0 && (Gn.creator = Tn.creator), - Tn.instantiateConfig !== void 0 && - (Gn.instantiateConfig = Tn.instantiateConfig - ? e.AccessConfig.toJSON(Tn.instantiateConfig) - : void 0), - Gn - ) - }, - fromPartial(Tn) { - const Gn = Bn() - return ( - (Gn.codeHash = Tn.codeHash ?? new Uint8Array()), - (Gn.creator = Tn.creator ?? ''), - (Gn.instantiateConfig = - Tn.instantiateConfig !== void 0 && Tn.instantiateConfig !== null - ? e.AccessConfig.fromPartial(Tn.instantiateConfig) - : void 0), - Gn - ) - }, - } - function kn() { - return { - codeId: en.Long.UZERO, - creator: '', - admin: '', - label: '', - created: void 0, - ibcPortId: '', - extension: void 0, - } - } - e.ContractInfo = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.codeId.isZero() || Gn.uint32(8).uint64(Tn.codeId), - Tn.creator !== '' && Gn.uint32(18).string(Tn.creator), - Tn.admin !== '' && Gn.uint32(26).string(Tn.admin), - Tn.label !== '' && Gn.uint32(34).string(Tn.label), - Tn.created !== void 0 && - e.AbsoluteTxPosition.encode(Tn.created, Gn.uint32(42).fork()).ldelim(), - Tn.ibcPortId !== '' && Gn.uint32(50).string(Tn.ibcPortId), - Tn.extension !== void 0 && $.Any.encode(Tn.extension, Gn.uint32(58).fork()).ldelim(), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = kn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.codeId = Sn.uint64() - break - case 2: - tn.creator = Sn.string() - break - case 3: - tn.admin = Sn.string() - break - case 4: - tn.label = Sn.string() - break - case 5: - tn.created = e.AbsoluteTxPosition.decode(Sn, Sn.uint32()) - break - case 6: - tn.ibcPortId = Sn.string() - break - case 7: - tn.extension = $.Any.decode(Sn, Sn.uint32()) - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - codeId: (0, en.isSet)(Tn.codeId) ? en.Long.fromValue(Tn.codeId) : en.Long.UZERO, - creator: (0, en.isSet)(Tn.creator) ? String(Tn.creator) : '', - admin: (0, en.isSet)(Tn.admin) ? String(Tn.admin) : '', - label: (0, en.isSet)(Tn.label) ? String(Tn.label) : '', - created: (0, en.isSet)(Tn.created) ? e.AbsoluteTxPosition.fromJSON(Tn.created) : void 0, - ibcPortId: (0, en.isSet)(Tn.ibcPortId) ? String(Tn.ibcPortId) : '', - extension: (0, en.isSet)(Tn.extension) ? $.Any.fromJSON(Tn.extension) : void 0, - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.codeId !== void 0 && (Gn.codeId = (Tn.codeId || en.Long.UZERO).toString()), - Tn.creator !== void 0 && (Gn.creator = Tn.creator), - Tn.admin !== void 0 && (Gn.admin = Tn.admin), - Tn.label !== void 0 && (Gn.label = Tn.label), - Tn.created !== void 0 && - (Gn.created = Tn.created ? e.AbsoluteTxPosition.toJSON(Tn.created) : void 0), - Tn.ibcPortId !== void 0 && (Gn.ibcPortId = Tn.ibcPortId), - Tn.extension !== void 0 && - (Gn.extension = Tn.extension ? $.Any.toJSON(Tn.extension) : void 0), - Gn - ) - }, - fromPartial(Tn) { - const Gn = kn() - return ( - (Gn.codeId = - Tn.codeId !== void 0 && Tn.codeId !== null - ? en.Long.fromValue(Tn.codeId) - : en.Long.UZERO), - (Gn.creator = Tn.creator ?? ''), - (Gn.admin = Tn.admin ?? ''), - (Gn.label = Tn.label ?? ''), - (Gn.created = - Tn.created !== void 0 && Tn.created !== null - ? e.AbsoluteTxPosition.fromPartial(Tn.created) - : void 0), - (Gn.ibcPortId = Tn.ibcPortId ?? ''), - (Gn.extension = - Tn.extension !== void 0 && Tn.extension !== null - ? $.Any.fromPartial(Tn.extension) - : void 0), - Gn - ) - }, - } - function ln() { - return { operation: 0, codeId: en.Long.UZERO, updated: void 0, msg: new Uint8Array() } - } - e.ContractCodeHistoryEntry = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.operation !== 0 && Gn.uint32(8).int32(Tn.operation), - Tn.codeId.isZero() || Gn.uint32(16).uint64(Tn.codeId), - Tn.updated !== void 0 && - e.AbsoluteTxPosition.encode(Tn.updated, Gn.uint32(26).fork()).ldelim(), - Tn.msg.length !== 0 && Gn.uint32(34).bytes(Tn.msg), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = ln() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.operation = Sn.int32() - break - case 2: - tn.codeId = Sn.uint64() - break - case 3: - tn.updated = e.AbsoluteTxPosition.decode(Sn, Sn.uint32()) - break - case 4: - tn.msg = Sn.bytes() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - operation: (0, en.isSet)(Tn.operation) ? qn(Tn.operation) : 0, - codeId: (0, en.isSet)(Tn.codeId) ? en.Long.fromValue(Tn.codeId) : en.Long.UZERO, - updated: (0, en.isSet)(Tn.updated) ? e.AbsoluteTxPosition.fromJSON(Tn.updated) : void 0, - msg: (0, en.isSet)(Tn.msg) ? (0, en.bytesFromBase64)(Tn.msg) : new Uint8Array(), - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.operation !== void 0 && (Gn.operation = Kn(Tn.operation)), - Tn.codeId !== void 0 && (Gn.codeId = (Tn.codeId || en.Long.UZERO).toString()), - Tn.updated !== void 0 && - (Gn.updated = Tn.updated ? e.AbsoluteTxPosition.toJSON(Tn.updated) : void 0), - Tn.msg !== void 0 && - (Gn.msg = (0, en.base64FromBytes)(Tn.msg !== void 0 ? Tn.msg : new Uint8Array())), - Gn - ) - }, - fromPartial(Tn) { - const Gn = ln() - return ( - (Gn.operation = Tn.operation ?? 0), - (Gn.codeId = - Tn.codeId !== void 0 && Tn.codeId !== null - ? en.Long.fromValue(Tn.codeId) - : en.Long.UZERO), - (Gn.updated = - Tn.updated !== void 0 && Tn.updated !== null - ? e.AbsoluteTxPosition.fromPartial(Tn.updated) - : void 0), - (Gn.msg = Tn.msg ?? new Uint8Array()), - Gn - ) - }, - } - function yn() { - return { blockHeight: en.Long.UZERO, txIndex: en.Long.UZERO } - } - e.AbsoluteTxPosition = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.blockHeight.isZero() || Gn.uint32(8).uint64(Tn.blockHeight), - Tn.txIndex.isZero() || Gn.uint32(16).uint64(Tn.txIndex), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = yn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.blockHeight = Sn.uint64() - break - case 2: - tn.txIndex = Sn.uint64() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - blockHeight: (0, en.isSet)(Tn.blockHeight) - ? en.Long.fromValue(Tn.blockHeight) - : en.Long.UZERO, - txIndex: (0, en.isSet)(Tn.txIndex) ? en.Long.fromValue(Tn.txIndex) : en.Long.UZERO, - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.blockHeight !== void 0 && - (Gn.blockHeight = (Tn.blockHeight || en.Long.UZERO).toString()), - Tn.txIndex !== void 0 && (Gn.txIndex = (Tn.txIndex || en.Long.UZERO).toString()), - Gn - ) - }, - fromPartial(Tn) { - const Gn = yn() - return ( - (Gn.blockHeight = - Tn.blockHeight !== void 0 && Tn.blockHeight !== null - ? en.Long.fromValue(Tn.blockHeight) - : en.Long.UZERO), - (Gn.txIndex = - Tn.txIndex !== void 0 && Tn.txIndex !== null - ? en.Long.fromValue(Tn.txIndex) - : en.Long.UZERO), - Gn - ) - }, - } - function Cn() { - return { key: new Uint8Array(), value: new Uint8Array() } - } - e.Model = { - encode(Tn, Gn = nn.Writer.create()) { - return ( - Tn.key.length !== 0 && Gn.uint32(10).bytes(Tn.key), - Tn.value.length !== 0 && Gn.uint32(18).bytes(Tn.value), - Gn - ) - }, - decode(Tn, Gn) { - const Sn = Tn instanceof nn.Reader ? Tn : new nn.Reader(Tn) - let Zn = Gn === void 0 ? Sn.len : Sn.pos + Gn - const tn = Cn() - for (; Sn.pos < Zn; ) { - const En = Sn.uint32() - switch (En >>> 3) { - case 1: - tn.key = Sn.bytes() - break - case 2: - tn.value = Sn.bytes() - break - default: - Sn.skipType(En & 7) - break - } - } - return tn - }, - fromJSON(Tn) { - return { - key: (0, en.isSet)(Tn.key) ? (0, en.bytesFromBase64)(Tn.key) : new Uint8Array(), - value: (0, en.isSet)(Tn.value) ? (0, en.bytesFromBase64)(Tn.value) : new Uint8Array(), - } - }, - toJSON(Tn) { - const Gn = {} - return ( - Tn.key !== void 0 && - (Gn.key = (0, en.base64FromBytes)(Tn.key !== void 0 ? Tn.key : new Uint8Array())), - Tn.value !== void 0 && - (Gn.value = (0, en.base64FromBytes)(Tn.value !== void 0 ? Tn.value : new Uint8Array())), - Gn - ) - }, - fromPartial(Tn) { - const Gn = Cn() - return (Gn.key = Tn.key ?? new Uint8Array()), (Gn.value = Tn.value ?? new Uint8Array()), Gn - }, - } -})(types) -var modules = {}, - aminomessages = {}, - long = Long, - wasm = null -try { - wasm = new WebAssembly.Instance( - new WebAssembly.Module( - new Uint8Array([ - 0, 97, 115, 109, 1, 0, 0, 0, 1, 13, 2, 96, 0, 1, 127, 96, 4, 127, 127, 127, 127, 1, 127, 3, - 7, 6, 0, 1, 1, 1, 1, 1, 6, 6, 1, 127, 1, 65, 0, 11, 7, 50, 6, 3, 109, 117, 108, 0, 1, 5, - 100, 105, 118, 95, 115, 0, 2, 5, 100, 105, 118, 95, 117, 0, 3, 5, 114, 101, 109, 95, 115, 0, - 4, 5, 114, 101, 109, 95, 117, 0, 5, 8, 103, 101, 116, 95, 104, 105, 103, 104, 0, 0, 10, 191, - 1, 6, 4, 0, 35, 0, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 126, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 127, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, - 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, 128, 34, 4, 66, 32, 135, 167, - 36, 0, 32, 4, 167, 11, 36, 1, 1, 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, - 32, 3, 173, 66, 32, 134, 132, 129, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, 36, 1, 1, - 126, 32, 0, 173, 32, 1, 173, 66, 32, 134, 132, 32, 2, 173, 32, 3, 173, 66, 32, 134, 132, - 130, 34, 4, 66, 32, 135, 167, 36, 0, 32, 4, 167, 11, - ]), - ), - {}, - ).exports -} catch (e) {} -function Long(e, o, _) { - ;(this.low = e | 0), (this.high = o | 0), (this.unsigned = !!_) -} -Long.prototype.__isLong__ -Object.defineProperty(Long.prototype, '__isLong__', { value: !0 }) -function isLong(e) { - return (e && e.__isLong__) === !0 -} -Long.isLong = isLong -var INT_CACHE = {}, - UINT_CACHE = {} -function fromInt(e, o) { - var _, b, $ - return o - ? ((e >>>= 0), - ($ = 0 <= e && e < 256) && ((b = UINT_CACHE[e]), b) - ? b - : ((_ = fromBits(e, (e | 0) < 0 ? -1 : 0, !0)), $ && (UINT_CACHE[e] = _), _)) - : ((e |= 0), - ($ = -128 <= e && e < 128) && ((b = INT_CACHE[e]), b) - ? b - : ((_ = fromBits(e, e < 0 ? -1 : 0, !1)), $ && (INT_CACHE[e] = _), _)) -} -Long.fromInt = fromInt -function fromNumber(e, o) { - if (isNaN(e)) return o ? UZERO : ZERO - if (o) { - if (e < 0) return UZERO - if (e >= TWO_PWR_64_DBL) return MAX_UNSIGNED_VALUE - } else { - if (e <= -TWO_PWR_63_DBL) return MIN_VALUE - if (e + 1 >= TWO_PWR_63_DBL) return MAX_VALUE - } - return e < 0 - ? fromNumber(-e, o).neg() - : fromBits(e % TWO_PWR_32_DBL | 0, (e / TWO_PWR_32_DBL) | 0, o) -} -Long.fromNumber = fromNumber -function fromBits(e, o, _) { - return new Long(e, o, _) -} -Long.fromBits = fromBits -var pow_dbl = Math.pow -function fromString(e, o, _) { - if (e.length === 0) throw Error('empty string') - if (e === 'NaN' || e === 'Infinity' || e === '+Infinity' || e === '-Infinity') return ZERO - if ((typeof o == 'number' ? ((_ = o), (o = !1)) : (o = !!o), (_ = _ || 10), _ < 2 || 36 < _)) - throw RangeError('radix') - var b - if ((b = e.indexOf('-')) > 0) throw Error('interior hyphen') - if (b === 0) return fromString(e.substring(1), o, _).neg() - for (var $ = fromNumber(pow_dbl(_, 8)), en = ZERO, nn = 0; nn < e.length; nn += 8) { - var sn = Math.min(8, e.length - nn), - gn = parseInt(e.substring(nn, nn + sn), _) - if (sn < 8) { - var In = fromNumber(pow_dbl(_, sn)) - en = en.mul(In).add(fromNumber(gn)) - } else (en = en.mul($)), (en = en.add(fromNumber(gn))) - } - return (en.unsigned = o), en -} -Long.fromString = fromString -function fromValue(e, o) { - return typeof e == 'number' - ? fromNumber(e, o) - : typeof e == 'string' - ? fromString(e, o) - : fromBits(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) -} -Long.fromValue = fromValue -var TWO_PWR_16_DBL = 1 << 16, - TWO_PWR_24_DBL = 1 << 24, - TWO_PWR_32_DBL = TWO_PWR_16_DBL * TWO_PWR_16_DBL, - TWO_PWR_64_DBL = TWO_PWR_32_DBL * TWO_PWR_32_DBL, - TWO_PWR_63_DBL = TWO_PWR_64_DBL / 2, - TWO_PWR_24 = fromInt(TWO_PWR_24_DBL), - ZERO = fromInt(0) -Long.ZERO = ZERO -var UZERO = fromInt(0, !0) -Long.UZERO = UZERO -var ONE = fromInt(1) -Long.ONE = ONE -var UONE = fromInt(1, !0) -Long.UONE = UONE -var NEG_ONE = fromInt(-1) -Long.NEG_ONE = NEG_ONE -var MAX_VALUE = fromBits(-1, 2147483647, !1) -Long.MAX_VALUE = MAX_VALUE -var MAX_UNSIGNED_VALUE = fromBits(-1, -1, !0) -Long.MAX_UNSIGNED_VALUE = MAX_UNSIGNED_VALUE -var MIN_VALUE = fromBits(0, -2147483648, !1) -Long.MIN_VALUE = MIN_VALUE -var LongPrototype = Long.prototype -LongPrototype.toInt = function e() { - return this.unsigned ? this.low >>> 0 : this.low -} -LongPrototype.toNumber = function e() { - return this.unsigned - ? (this.high >>> 0) * TWO_PWR_32_DBL + (this.low >>> 0) - : this.high * TWO_PWR_32_DBL + (this.low >>> 0) -} -LongPrototype.toString = function e(o) { - if (((o = o || 10), o < 2 || 36 < o)) throw RangeError('radix') - if (this.isZero()) return '0' - if (this.isNegative()) - if (this.eq(MIN_VALUE)) { - var _ = fromNumber(o), - b = this.div(_), - $ = b.mul(_).sub(this) - return b.toString(o) + $.toInt().toString(o) - } else return '-' + this.neg().toString(o) - for (var en = fromNumber(pow_dbl(o, 6), this.unsigned), nn = this, sn = ''; ; ) { - var gn = nn.div(en), - In = nn.sub(gn.mul(en)).toInt() >>> 0, - Jn = In.toString(o) - if (((nn = gn), nn.isZero())) return Jn + sn - for (; Jn.length < 6; ) Jn = '0' + Jn - sn = '' + Jn + sn - } -} -LongPrototype.getHighBits = function e() { - return this.high -} -LongPrototype.getHighBitsUnsigned = function e() { - return this.high >>> 0 -} -LongPrototype.getLowBits = function e() { - return this.low -} -LongPrototype.getLowBitsUnsigned = function e() { - return this.low >>> 0 -} -LongPrototype.getNumBitsAbs = function e() { - if (this.isNegative()) return this.eq(MIN_VALUE) ? 64 : this.neg().getNumBitsAbs() - for (var o = this.high != 0 ? this.high : this.low, _ = 31; _ > 0 && !(o & (1 << _)); _--); - return this.high != 0 ? _ + 33 : _ + 1 -} -LongPrototype.isZero = function e() { - return this.high === 0 && this.low === 0 -} -LongPrototype.eqz = LongPrototype.isZero -LongPrototype.isNegative = function e() { - return !this.unsigned && this.high < 0 -} -LongPrototype.isPositive = function e() { - return this.unsigned || this.high >= 0 -} -LongPrototype.isOdd = function e() { - return (this.low & 1) === 1 -} -LongPrototype.isEven = function e() { - return (this.low & 1) === 0 -} -LongPrototype.equals = function e(o) { - return ( - isLong(o) || (o = fromValue(o)), - this.unsigned !== o.unsigned && this.high >>> 31 === 1 && o.high >>> 31 === 1 - ? !1 - : this.high === o.high && this.low === o.low - ) -} -LongPrototype.eq = LongPrototype.equals -LongPrototype.notEquals = function e(o) { - return !this.eq(o) -} -LongPrototype.neq = LongPrototype.notEquals -LongPrototype.ne = LongPrototype.notEquals -LongPrototype.lessThan = function e(o) { - return this.comp(o) < 0 -} -LongPrototype.lt = LongPrototype.lessThan -LongPrototype.lessThanOrEqual = function e(o) { - return this.comp(o) <= 0 -} -LongPrototype.lte = LongPrototype.lessThanOrEqual -LongPrototype.le = LongPrototype.lessThanOrEqual -LongPrototype.greaterThan = function e(o) { - return this.comp(o) > 0 -} -LongPrototype.gt = LongPrototype.greaterThan -LongPrototype.greaterThanOrEqual = function e(o) { - return this.comp(o) >= 0 -} -LongPrototype.gte = LongPrototype.greaterThanOrEqual -LongPrototype.ge = LongPrototype.greaterThanOrEqual -LongPrototype.compare = function e(o) { - if ((isLong(o) || (o = fromValue(o)), this.eq(o))) return 0 - var _ = this.isNegative(), - b = o.isNegative() - return _ && !b - ? -1 - : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 -} -LongPrototype.comp = LongPrototype.compare -LongPrototype.negate = function e() { - return !this.unsigned && this.eq(MIN_VALUE) ? MIN_VALUE : this.not().add(ONE) -} -LongPrototype.neg = LongPrototype.negate -LongPrototype.add = function e(o) { - isLong(o) || (o = fromValue(o)) - var _ = this.high >>> 16, - b = this.high & 65535, - $ = this.low >>> 16, - en = this.low & 65535, - nn = o.high >>> 16, - sn = o.high & 65535, - gn = o.low >>> 16, - In = o.low & 65535, - Jn = 0, - qn = 0, - Kn = 0, - an = 0 - return ( - (an += en + In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ + gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b + sn), - (Jn += qn >>> 16), - (qn &= 65535), - (Jn += _ + nn), - (Jn &= 65535), - fromBits((Kn << 16) | an, (Jn << 16) | qn, this.unsigned) - ) -} -LongPrototype.subtract = function e(o) { - return isLong(o) || (o = fromValue(o)), this.add(o.neg()) -} -LongPrototype.sub = LongPrototype.subtract -LongPrototype.multiply = function e(o) { - if (this.isZero()) return ZERO - if ((isLong(o) || (o = fromValue(o)), wasm)) { - var _ = wasm.mul(this.low, this.high, o.low, o.high) - return fromBits(_, wasm.get_high(), this.unsigned) - } - if (o.isZero()) return ZERO - if (this.eq(MIN_VALUE)) return o.isOdd() ? MIN_VALUE : ZERO - if (o.eq(MIN_VALUE)) return this.isOdd() ? MIN_VALUE : ZERO - if (this.isNegative()) return o.isNegative() ? this.neg().mul(o.neg()) : this.neg().mul(o).neg() - if (o.isNegative()) return this.mul(o.neg()).neg() - if (this.lt(TWO_PWR_24) && o.lt(TWO_PWR_24)) - return fromNumber(this.toNumber() * o.toNumber(), this.unsigned) - var b = this.high >>> 16, - $ = this.high & 65535, - en = this.low >>> 16, - nn = this.low & 65535, - sn = o.high >>> 16, - gn = o.high & 65535, - In = o.low >>> 16, - Jn = o.low & 65535, - qn = 0, - Kn = 0, - an = 0, - xn = 0 - return ( - (xn += nn * Jn), - (an += xn >>> 16), - (xn &= 65535), - (an += en * Jn), - (Kn += an >>> 16), - (an &= 65535), - (an += nn * In), - (Kn += an >>> 16), - (an &= 65535), - (Kn += $ * Jn), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += en * In), - (qn += Kn >>> 16), - (Kn &= 65535), - (Kn += nn * gn), - (qn += Kn >>> 16), - (Kn &= 65535), - (qn += b * Jn + $ * In + en * gn + nn * sn), - (qn &= 65535), - fromBits((an << 16) | xn, (qn << 16) | Kn, this.unsigned) - ) -} -LongPrototype.mul = LongPrototype.multiply -LongPrototype.divide = function e(o) { - if ((isLong(o) || (o = fromValue(o)), o.isZero())) throw Error('division by zero') - if (wasm) { - if (!this.unsigned && this.high === -2147483648 && o.low === -1 && o.high === -1) return this - var _ = (this.unsigned ? wasm.div_u : wasm.div_s)(this.low, this.high, o.low, o.high) - return fromBits(_, wasm.get_high(), this.unsigned) - } - if (this.isZero()) return this.unsigned ? UZERO : ZERO - var b, $, en - if (this.unsigned) { - if ((o.unsigned || (o = o.toUnsigned()), o.gt(this))) return UZERO - if (o.gt(this.shru(1))) return UONE - en = UZERO - } else { - if (this.eq(MIN_VALUE)) { - if (o.eq(ONE) || o.eq(NEG_ONE)) return MIN_VALUE - if (o.eq(MIN_VALUE)) return ONE - var nn = this.shr(1) - return ( - (b = nn.div(o).shl(1)), - b.eq(ZERO) - ? o.isNegative() - ? ONE - : NEG_ONE - : (($ = this.sub(o.mul(b))), (en = b.add($.div(o))), en) - ) - } else if (o.eq(MIN_VALUE)) return this.unsigned ? UZERO : ZERO - if (this.isNegative()) return o.isNegative() ? this.neg().div(o.neg()) : this.neg().div(o).neg() - if (o.isNegative()) return this.div(o.neg()).neg() - en = ZERO - } - for ($ = this; $.gte(o); ) { - b = Math.max(1, Math.floor($.toNumber() / o.toNumber())) - for ( - var sn = Math.ceil(Math.log(b) / Math.LN2), - gn = sn <= 48 ? 1 : pow_dbl(2, sn - 48), - In = fromNumber(b), - Jn = In.mul(o); - Jn.isNegative() || Jn.gt($); - - ) - (b -= gn), (In = fromNumber(b, this.unsigned)), (Jn = In.mul(o)) - In.isZero() && (In = ONE), (en = en.add(In)), ($ = $.sub(Jn)) - } - return en -} -LongPrototype.div = LongPrototype.divide -LongPrototype.modulo = function e(o) { - if ((isLong(o) || (o = fromValue(o)), wasm)) { - var _ = (this.unsigned ? wasm.rem_u : wasm.rem_s)(this.low, this.high, o.low, o.high) - return fromBits(_, wasm.get_high(), this.unsigned) - } - return this.sub(this.div(o).mul(o)) -} -LongPrototype.mod = LongPrototype.modulo -LongPrototype.rem = LongPrototype.modulo -LongPrototype.not = function e() { - return fromBits(~this.low, ~this.high, this.unsigned) -} -LongPrototype.and = function e(o) { - return ( - isLong(o) || (o = fromValue(o)), fromBits(this.low & o.low, this.high & o.high, this.unsigned) - ) -} -LongPrototype.or = function e(o) { - return ( - isLong(o) || (o = fromValue(o)), fromBits(this.low | o.low, this.high | o.high, this.unsigned) - ) -} -LongPrototype.xor = function e(o) { - return ( - isLong(o) || (o = fromValue(o)), fromBits(this.low ^ o.low, this.high ^ o.high, this.unsigned) - ) -} -LongPrototype.shiftLeft = function e(o) { - return ( - isLong(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits(0, this.low << (o - 32), this.unsigned) - ) -} -LongPrototype.shl = LongPrototype.shiftLeft -LongPrototype.shiftRight = function e(o) { - return ( - isLong(o) && (o = o.toInt()), - (o &= 63) === 0 - ? this - : o < 32 - ? fromBits((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) - ) -} -LongPrototype.shr = LongPrototype.shiftRight -LongPrototype.shiftRightUnsigned = function e(o) { - if ((isLong(o) && (o = o.toInt()), (o &= 63), o === 0)) return this - var _ = this.high - if (o < 32) { - var b = this.low - return fromBits((b >>> o) | (_ << (32 - o)), _ >>> o, this.unsigned) - } else - return o === 32 ? fromBits(_, 0, this.unsigned) : fromBits(_ >>> (o - 32), 0, this.unsigned) -} -LongPrototype.shru = LongPrototype.shiftRightUnsigned -LongPrototype.shr_u = LongPrototype.shiftRightUnsigned -LongPrototype.toSigned = function e() { - return this.unsigned ? fromBits(this.low, this.high, !1) : this -} -LongPrototype.toUnsigned = function e() { - return this.unsigned ? this : fromBits(this.low, this.high, !0) -} -LongPrototype.toBytes = function e(o) { - return o ? this.toBytesLE() : this.toBytesBE() -} -LongPrototype.toBytesLE = function e() { - var o = this.high, - _ = this.low - return [ - _ & 255, - (_ >>> 8) & 255, - (_ >>> 16) & 255, - _ >>> 24, - o & 255, - (o >>> 8) & 255, - (o >>> 16) & 255, - o >>> 24, - ] -} -LongPrototype.toBytesBE = function e() { - var o = this.high, - _ = this.low - return [ - o >>> 24, - (o >>> 16) & 255, - (o >>> 8) & 255, - o & 255, - _ >>> 24, - (_ >>> 16) & 255, - (_ >>> 8) & 255, - _ & 255, - ] -} -Long.fromBytes = function e(o, _, b) { - return b ? Long.fromBytesLE(o, _) : Long.fromBytesBE(o, _) -} -Long.fromBytesLE = function e(o, _) { - return new Long( - o[0] | (o[1] << 8) | (o[2] << 16) | (o[3] << 24), - o[4] | (o[5] << 8) | (o[6] << 16) | (o[7] << 24), - _, - ) -} -Long.fromBytesBE = function e(o, _) { - return new Long( - (o[4] << 24) | (o[5] << 16) | (o[6] << 8) | o[7], - (o[0] << 24) | (o[1] << 16) | (o[2] << 8) | o[3], - _, - ) -} -var __importDefault$1 = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(aminomessages, '__esModule', { value: !0 }) -aminomessages.createWasmAminoConverters = - aminomessages.accessTypeToString = - aminomessages.accessTypeFromString = - void 0 -const encoding_1$2 = build$b, - types_1$1 = types, - long_1$1 = __importDefault$1(long) -function accessTypeFromString(e) { - switch (e) { - case 'Unspecified': - return types_1$1.AccessType.ACCESS_TYPE_UNSPECIFIED - case 'Nobody': - return types_1$1.AccessType.ACCESS_TYPE_NOBODY - case 'OnlyAddress': - return types_1$1.AccessType.ACCESS_TYPE_ONLY_ADDRESS - case 'Everybody': - return types_1$1.AccessType.ACCESS_TYPE_EVERYBODY - case 'AnyOfAddresses': - return types_1$1.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES - default: - return types_1$1.AccessType.UNRECOGNIZED - } -} -aminomessages.accessTypeFromString = accessTypeFromString -function accessTypeToString(e) { - switch (e) { - case types_1$1.AccessType.ACCESS_TYPE_UNSPECIFIED: - return 'Unspecified' - case types_1$1.AccessType.ACCESS_TYPE_NOBODY: - return 'Nobody' - case types_1$1.AccessType.ACCESS_TYPE_ONLY_ADDRESS: - return 'OnlyAddress' - case types_1$1.AccessType.ACCESS_TYPE_EVERYBODY: - return 'Everybody' - case types_1$1.AccessType.ACCESS_TYPE_ANY_OF_ADDRESSES: - return 'AnyOfAddresses' - case types_1$1.AccessType.UNRECOGNIZED: - default: - return 'UNRECOGNIZED' - } -} -aminomessages.accessTypeToString = accessTypeToString -function createWasmAminoConverters() { - return { - '/cosmwasm.wasm.v1.MsgStoreCode': { - aminoType: 'wasm/MsgStoreCode', - toAmino: ({ sender: e, wasmByteCode: o, instantiatePermission: _ }) => ({ - sender: e, - wasm_byte_code: (0, encoding_1$2.toBase64)(o), - instantiate_permission: _ - ? { - permission: accessTypeToString(_.permission), - address: _.address || void 0, - addresses: _.addresses.length !== 0 ? _.addresses : void 0, - } - : void 0, - }), - fromAmino: ({ sender: e, wasm_byte_code: o, instantiate_permission: _ }) => ({ - sender: e, - wasmByteCode: (0, encoding_1$2.fromBase64)(o), - instantiatePermission: _ - ? { - permission: accessTypeFromString(_.permission), - address: _.address ?? '', - addresses: _.addresses ?? [], - } - : void 0, - }), - }, - '/cosmwasm.wasm.v1.MsgInstantiateContract': { - aminoType: 'wasm/MsgInstantiateContract', - toAmino: ({ sender: e, codeId: o, label: _, msg: b, funds: $, admin: en }) => ({ - sender: e, - code_id: o.toString(), - label: _, - msg: JSON.parse((0, encoding_1$2.fromUtf8)(b)), - funds: $, - admin: en || void 0, - }), - fromAmino: ({ sender: e, code_id: o, label: _, msg: b, funds: $, admin: en }) => ({ - sender: e, - codeId: long_1$1.default.fromString(o), - label: _, - msg: (0, encoding_1$2.toUtf8)(JSON.stringify(b)), - funds: [...$], - admin: en ?? '', - }), - }, - '/cosmwasm.wasm.v1.MsgInstantiateContract2': { - aminoType: 'wasm/MsgInstantiateContract2', - toAmino: ({ - sender: e, - codeId: o, - label: _, - msg: b, - funds: $, - admin: en, - salt: nn, - fixMsg: sn, - }) => ({ - sender: e, - code_id: o.toString(), - label: _, - msg: JSON.parse((0, encoding_1$2.fromUtf8)(b)), - funds: $, - admin: en || void 0, - salt: (0, encoding_1$2.toBase64)(nn), - fix_msg: sn, - }), - fromAmino: ({ - sender: e, - code_id: o, - label: _, - msg: b, - funds: $, - admin: en, - salt: nn, - fix_msg: sn, - }) => ({ - sender: e, - codeId: long_1$1.default.fromString(o), - label: _, - msg: (0, encoding_1$2.toUtf8)(JSON.stringify(b)), - funds: [...$], - admin: en ?? '', - salt: (0, encoding_1$2.fromBase64)(nn), - fixMsg: sn, - }), - }, - '/cosmwasm.wasm.v1.MsgUpdateAdmin': { - aminoType: 'wasm/MsgUpdateAdmin', - toAmino: ({ sender: e, newAdmin: o, contract: _ }) => ({ - sender: e, - new_admin: o, - contract: _, - }), - fromAmino: ({ sender: e, new_admin: o, contract: _ }) => ({ - sender: e, - newAdmin: o, - contract: _, - }), - }, - '/cosmwasm.wasm.v1.MsgClearAdmin': { - aminoType: 'wasm/MsgClearAdmin', - toAmino: ({ sender: e, contract: o }) => ({ sender: e, contract: o }), - fromAmino: ({ sender: e, contract: o }) => ({ sender: e, contract: o }), - }, - '/cosmwasm.wasm.v1.MsgExecuteContract': { - aminoType: 'wasm/MsgExecuteContract', - toAmino: ({ sender: e, contract: o, msg: _, funds: b }) => ({ - sender: e, - contract: o, - msg: JSON.parse((0, encoding_1$2.fromUtf8)(_)), - funds: b, - }), - fromAmino: ({ sender: e, contract: o, msg: _, funds: b }) => ({ - sender: e, - contract: o, - msg: (0, encoding_1$2.toUtf8)(JSON.stringify(_)), - funds: [...b], - }), - }, - '/cosmwasm.wasm.v1.MsgMigrateContract': { - aminoType: 'wasm/MsgMigrateContract', - toAmino: ({ sender: e, contract: o, codeId: _, msg: b }) => ({ - sender: e, - contract: o, - code_id: _.toString(), - msg: JSON.parse((0, encoding_1$2.fromUtf8)(b)), - }), - fromAmino: ({ sender: e, contract: o, code_id: _, msg: b }) => ({ - sender: e, - contract: o, - codeId: long_1$1.default.fromString(_), - msg: (0, encoding_1$2.toUtf8)(JSON.stringify(b)), - }), - }, - } -} -aminomessages.createWasmAminoConverters = createWasmAminoConverters -var messages = {}, - tx = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn) - var un = Object.getOwnPropertyDescriptor(En, Mn) - ;(!un || ('get' in un ? !En.__esModule : un.writable || un.configurable)) && - (un = { - enumerable: !0, - get: function () { - return En[Mn] - }, - }), - Object.defineProperty(tn, Hn, un) - } - : function (tn, En, Mn, Hn) { - Hn === void 0 && (Hn = Mn), (tn[Hn] = En[Mn]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (tn, En) { - Object.defineProperty(tn, 'default', { enumerable: !0, value: En }) - } - : function (tn, En) { - tn.default = En - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (tn) { - if (tn && tn.__esModule) return tn - var En = {} - if (tn != null) - for (var Mn in tn) - Mn !== 'default' && Object.prototype.hasOwnProperty.call(tn, Mn) && o(En, tn, Mn) - return _(En, tn), En - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.MsgClientImpl = - e.MsgUpdateInstantiateConfigResponse = - e.MsgUpdateInstantiateConfig = - e.MsgClearAdminResponse = - e.MsgClearAdmin = - e.MsgUpdateAdminResponse = - e.MsgUpdateAdmin = - e.MsgMigrateContractResponse = - e.MsgMigrateContract = - e.MsgExecuteContractResponse = - e.MsgExecuteContract = - e.MsgInstantiateContract2Response = - e.MsgInstantiateContractResponse = - e.MsgInstantiateContract2 = - e.MsgInstantiateContract = - e.MsgStoreCodeResponse = - e.MsgStoreCode = - e.protobufPackage = - void 0) - const $ = types, - en = coin$1, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmwasm.wasm.v1' - function gn() { - return { sender: '', wasmByteCode: new Uint8Array(), instantiatePermission: void 0 } - } - e.MsgStoreCode = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.wasmByteCode.length !== 0 && En.uint32(18).bytes(tn.wasmByteCode), - tn.instantiatePermission !== void 0 && - $.AccessConfig.encode(tn.instantiatePermission, En.uint32(42).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 2: - un.wasmByteCode = Mn.bytes() - break - case 5: - un.instantiatePermission = $.AccessConfig.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - wasmByteCode: (0, nn.isSet)(tn.wasmByteCode) - ? (0, nn.bytesFromBase64)(tn.wasmByteCode) - : new Uint8Array(), - instantiatePermission: (0, nn.isSet)(tn.instantiatePermission) - ? $.AccessConfig.fromJSON(tn.instantiatePermission) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.wasmByteCode !== void 0 && - (En.wasmByteCode = (0, nn.base64FromBytes)( - tn.wasmByteCode !== void 0 ? tn.wasmByteCode : new Uint8Array(), - )), - tn.instantiatePermission !== void 0 && - (En.instantiatePermission = tn.instantiatePermission - ? $.AccessConfig.toJSON(tn.instantiatePermission) - : void 0), - En - ) - }, - fromPartial(tn) { - const En = gn() - return ( - (En.sender = tn.sender ?? ''), - (En.wasmByteCode = tn.wasmByteCode ?? new Uint8Array()), - (En.instantiatePermission = - tn.instantiatePermission !== void 0 && tn.instantiatePermission !== null - ? $.AccessConfig.fromPartial(tn.instantiatePermission) - : void 0), - En - ) - }, - } - function In() { - return { codeId: nn.Long.UZERO, checksum: new Uint8Array() } - } - e.MsgStoreCodeResponse = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.codeId.isZero() || En.uint32(8).uint64(tn.codeId), - tn.checksum.length !== 0 && En.uint32(18).bytes(tn.checksum), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = In() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.codeId = Mn.uint64() - break - case 2: - un.checksum = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - codeId: (0, nn.isSet)(tn.codeId) ? nn.Long.fromValue(tn.codeId) : nn.Long.UZERO, - checksum: (0, nn.isSet)(tn.checksum) - ? (0, nn.bytesFromBase64)(tn.checksum) - : new Uint8Array(), - } - }, - toJSON(tn) { - const En = {} - return ( - tn.codeId !== void 0 && (En.codeId = (tn.codeId || nn.Long.UZERO).toString()), - tn.checksum !== void 0 && - (En.checksum = (0, nn.base64FromBytes)( - tn.checksum !== void 0 ? tn.checksum : new Uint8Array(), - )), - En - ) - }, - fromPartial(tn) { - const En = In() - return ( - (En.codeId = - tn.codeId !== void 0 && tn.codeId !== null - ? nn.Long.fromValue(tn.codeId) - : nn.Long.UZERO), - (En.checksum = tn.checksum ?? new Uint8Array()), - En - ) - }, - } - function Jn() { - return { - sender: '', - admin: '', - codeId: nn.Long.UZERO, - label: '', - msg: new Uint8Array(), - funds: [], - } - } - e.MsgInstantiateContract = { - encode(tn, En = sn.Writer.create()) { - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.admin !== '' && En.uint32(18).string(tn.admin), - tn.codeId.isZero() || En.uint32(24).uint64(tn.codeId), - tn.label !== '' && En.uint32(34).string(tn.label), - tn.msg.length !== 0 && En.uint32(42).bytes(tn.msg) - for (const Mn of tn.funds) en.Coin.encode(Mn, En.uint32(50).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Jn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 2: - un.admin = Mn.string() - break - case 3: - un.codeId = Mn.uint64() - break - case 4: - un.label = Mn.string() - break - case 5: - un.msg = Mn.bytes() - break - case 6: - un.funds.push(en.Coin.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - admin: (0, nn.isSet)(tn.admin) ? String(tn.admin) : '', - codeId: (0, nn.isSet)(tn.codeId) ? nn.Long.fromValue(tn.codeId) : nn.Long.UZERO, - label: (0, nn.isSet)(tn.label) ? String(tn.label) : '', - msg: (0, nn.isSet)(tn.msg) ? (0, nn.bytesFromBase64)(tn.msg) : new Uint8Array(), - funds: Array.isArray(tn?.funds) ? tn.funds.map((En) => en.Coin.fromJSON(En)) : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.admin !== void 0 && (En.admin = tn.admin), - tn.codeId !== void 0 && (En.codeId = (tn.codeId || nn.Long.UZERO).toString()), - tn.label !== void 0 && (En.label = tn.label), - tn.msg !== void 0 && - (En.msg = (0, nn.base64FromBytes)(tn.msg !== void 0 ? tn.msg : new Uint8Array())), - tn.funds - ? (En.funds = tn.funds.map((Mn) => (Mn ? en.Coin.toJSON(Mn) : void 0))) - : (En.funds = []), - En - ) - }, - fromPartial(tn) { - const En = Jn() - return ( - (En.sender = tn.sender ?? ''), - (En.admin = tn.admin ?? ''), - (En.codeId = - tn.codeId !== void 0 && tn.codeId !== null - ? nn.Long.fromValue(tn.codeId) - : nn.Long.UZERO), - (En.label = tn.label ?? ''), - (En.msg = tn.msg ?? new Uint8Array()), - (En.funds = tn.funds?.map((Mn) => en.Coin.fromPartial(Mn)) || []), - En - ) - }, - } - function qn() { - return { - sender: '', - admin: '', - codeId: nn.Long.UZERO, - label: '', - msg: new Uint8Array(), - funds: [], - salt: new Uint8Array(), - fixMsg: !1, - } - } - e.MsgInstantiateContract2 = { - encode(tn, En = sn.Writer.create()) { - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.admin !== '' && En.uint32(18).string(tn.admin), - tn.codeId.isZero() || En.uint32(24).uint64(tn.codeId), - tn.label !== '' && En.uint32(34).string(tn.label), - tn.msg.length !== 0 && En.uint32(42).bytes(tn.msg) - for (const Mn of tn.funds) en.Coin.encode(Mn, En.uint32(50).fork()).ldelim() - return ( - tn.salt.length !== 0 && En.uint32(58).bytes(tn.salt), - tn.fixMsg === !0 && En.uint32(64).bool(tn.fixMsg), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = qn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 2: - un.admin = Mn.string() - break - case 3: - un.codeId = Mn.uint64() - break - case 4: - un.label = Mn.string() - break - case 5: - un.msg = Mn.bytes() - break - case 6: - un.funds.push(en.Coin.decode(Mn, Mn.uint32())) - break - case 7: - un.salt = Mn.bytes() - break - case 8: - un.fixMsg = Mn.bool() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - admin: (0, nn.isSet)(tn.admin) ? String(tn.admin) : '', - codeId: (0, nn.isSet)(tn.codeId) ? nn.Long.fromValue(tn.codeId) : nn.Long.UZERO, - label: (0, nn.isSet)(tn.label) ? String(tn.label) : '', - msg: (0, nn.isSet)(tn.msg) ? (0, nn.bytesFromBase64)(tn.msg) : new Uint8Array(), - funds: Array.isArray(tn?.funds) ? tn.funds.map((En) => en.Coin.fromJSON(En)) : [], - salt: (0, nn.isSet)(tn.salt) ? (0, nn.bytesFromBase64)(tn.salt) : new Uint8Array(), - fixMsg: (0, nn.isSet)(tn.fixMsg) ? Boolean(tn.fixMsg) : !1, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.admin !== void 0 && (En.admin = tn.admin), - tn.codeId !== void 0 && (En.codeId = (tn.codeId || nn.Long.UZERO).toString()), - tn.label !== void 0 && (En.label = tn.label), - tn.msg !== void 0 && - (En.msg = (0, nn.base64FromBytes)(tn.msg !== void 0 ? tn.msg : new Uint8Array())), - tn.funds - ? (En.funds = tn.funds.map((Mn) => (Mn ? en.Coin.toJSON(Mn) : void 0))) - : (En.funds = []), - tn.salt !== void 0 && - (En.salt = (0, nn.base64FromBytes)(tn.salt !== void 0 ? tn.salt : new Uint8Array())), - tn.fixMsg !== void 0 && (En.fixMsg = tn.fixMsg), - En - ) - }, - fromPartial(tn) { - const En = qn() - return ( - (En.sender = tn.sender ?? ''), - (En.admin = tn.admin ?? ''), - (En.codeId = - tn.codeId !== void 0 && tn.codeId !== null - ? nn.Long.fromValue(tn.codeId) - : nn.Long.UZERO), - (En.label = tn.label ?? ''), - (En.msg = tn.msg ?? new Uint8Array()), - (En.funds = tn.funds?.map((Mn) => en.Coin.fromPartial(Mn)) || []), - (En.salt = tn.salt ?? new Uint8Array()), - (En.fixMsg = tn.fixMsg ?? !1), - En - ) - }, - } - function Kn() { - return { address: '', data: new Uint8Array() } - } - e.MsgInstantiateContractResponse = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.address !== '' && En.uint32(10).string(tn.address), - tn.data.length !== 0 && En.uint32(18).bytes(tn.data), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.address = Mn.string() - break - case 2: - un.data = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - address: (0, nn.isSet)(tn.address) ? String(tn.address) : '', - data: (0, nn.isSet)(tn.data) ? (0, nn.bytesFromBase64)(tn.data) : new Uint8Array(), - } - }, - toJSON(tn) { - const En = {} - return ( - tn.address !== void 0 && (En.address = tn.address), - tn.data !== void 0 && - (En.data = (0, nn.base64FromBytes)(tn.data !== void 0 ? tn.data : new Uint8Array())), - En - ) - }, - fromPartial(tn) { - const En = Kn() - return (En.address = tn.address ?? ''), (En.data = tn.data ?? new Uint8Array()), En - }, - } - function an() { - return { address: '', data: new Uint8Array() } - } - e.MsgInstantiateContract2Response = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.address !== '' && En.uint32(10).string(tn.address), - tn.data.length !== 0 && En.uint32(18).bytes(tn.data), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = an() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.address = Mn.string() - break - case 2: - un.data = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - address: (0, nn.isSet)(tn.address) ? String(tn.address) : '', - data: (0, nn.isSet)(tn.data) ? (0, nn.bytesFromBase64)(tn.data) : new Uint8Array(), - } - }, - toJSON(tn) { - const En = {} - return ( - tn.address !== void 0 && (En.address = tn.address), - tn.data !== void 0 && - (En.data = (0, nn.base64FromBytes)(tn.data !== void 0 ? tn.data : new Uint8Array())), - En - ) - }, - fromPartial(tn) { - const En = an() - return (En.address = tn.address ?? ''), (En.data = tn.data ?? new Uint8Array()), En - }, - } - function xn() { - return { sender: '', contract: '', msg: new Uint8Array(), funds: [] } - } - e.MsgExecuteContract = { - encode(tn, En = sn.Writer.create()) { - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.contract !== '' && En.uint32(18).string(tn.contract), - tn.msg.length !== 0 && En.uint32(26).bytes(tn.msg) - for (const Mn of tn.funds) en.Coin.encode(Mn, En.uint32(42).fork()).ldelim() - return En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = xn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 2: - un.contract = Mn.string() - break - case 3: - un.msg = Mn.bytes() - break - case 5: - un.funds.push(en.Coin.decode(Mn, Mn.uint32())) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - contract: (0, nn.isSet)(tn.contract) ? String(tn.contract) : '', - msg: (0, nn.isSet)(tn.msg) ? (0, nn.bytesFromBase64)(tn.msg) : new Uint8Array(), - funds: Array.isArray(tn?.funds) ? tn.funds.map((En) => en.Coin.fromJSON(En)) : [], - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.contract !== void 0 && (En.contract = tn.contract), - tn.msg !== void 0 && - (En.msg = (0, nn.base64FromBytes)(tn.msg !== void 0 ? tn.msg : new Uint8Array())), - tn.funds - ? (En.funds = tn.funds.map((Mn) => (Mn ? en.Coin.toJSON(Mn) : void 0))) - : (En.funds = []), - En - ) - }, - fromPartial(tn) { - const En = xn() - return ( - (En.sender = tn.sender ?? ''), - (En.contract = tn.contract ?? ''), - (En.msg = tn.msg ?? new Uint8Array()), - (En.funds = tn.funds?.map((Mn) => en.Coin.fromPartial(Mn)) || []), - En - ) - }, - } - function mn() { - return { data: new Uint8Array() } - } - e.MsgExecuteContractResponse = { - encode(tn, En = sn.Writer.create()) { - return tn.data.length !== 0 && En.uint32(10).bytes(tn.data), En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = mn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.data = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { data: (0, nn.isSet)(tn.data) ? (0, nn.bytesFromBase64)(tn.data) : new Uint8Array() } - }, - toJSON(tn) { - const En = {} - return ( - tn.data !== void 0 && - (En.data = (0, nn.base64FromBytes)(tn.data !== void 0 ? tn.data : new Uint8Array())), - En - ) - }, - fromPartial(tn) { - const En = mn() - return (En.data = tn.data ?? new Uint8Array()), En - }, - } - function Bn() { - return { sender: '', contract: '', codeId: nn.Long.UZERO, msg: new Uint8Array() } - } - e.MsgMigrateContract = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.contract !== '' && En.uint32(18).string(tn.contract), - tn.codeId.isZero() || En.uint32(24).uint64(tn.codeId), - tn.msg.length !== 0 && En.uint32(34).bytes(tn.msg), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Bn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 2: - un.contract = Mn.string() - break - case 3: - un.codeId = Mn.uint64() - break - case 4: - un.msg = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - contract: (0, nn.isSet)(tn.contract) ? String(tn.contract) : '', - codeId: (0, nn.isSet)(tn.codeId) ? nn.Long.fromValue(tn.codeId) : nn.Long.UZERO, - msg: (0, nn.isSet)(tn.msg) ? (0, nn.bytesFromBase64)(tn.msg) : new Uint8Array(), - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.contract !== void 0 && (En.contract = tn.contract), - tn.codeId !== void 0 && (En.codeId = (tn.codeId || nn.Long.UZERO).toString()), - tn.msg !== void 0 && - (En.msg = (0, nn.base64FromBytes)(tn.msg !== void 0 ? tn.msg : new Uint8Array())), - En - ) - }, - fromPartial(tn) { - const En = Bn() - return ( - (En.sender = tn.sender ?? ''), - (En.contract = tn.contract ?? ''), - (En.codeId = - tn.codeId !== void 0 && tn.codeId !== null - ? nn.Long.fromValue(tn.codeId) - : nn.Long.UZERO), - (En.msg = tn.msg ?? new Uint8Array()), - En - ) - }, - } - function kn() { - return { data: new Uint8Array() } - } - e.MsgMigrateContractResponse = { - encode(tn, En = sn.Writer.create()) { - return tn.data.length !== 0 && En.uint32(10).bytes(tn.data), En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = kn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.data = Mn.bytes() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { data: (0, nn.isSet)(tn.data) ? (0, nn.bytesFromBase64)(tn.data) : new Uint8Array() } - }, - toJSON(tn) { - const En = {} - return ( - tn.data !== void 0 && - (En.data = (0, nn.base64FromBytes)(tn.data !== void 0 ? tn.data : new Uint8Array())), - En - ) - }, - fromPartial(tn) { - const En = kn() - return (En.data = tn.data ?? new Uint8Array()), En - }, - } - function ln() { - return { sender: '', newAdmin: '', contract: '' } - } - e.MsgUpdateAdmin = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.newAdmin !== '' && En.uint32(18).string(tn.newAdmin), - tn.contract !== '' && En.uint32(26).string(tn.contract), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = ln() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 2: - un.newAdmin = Mn.string() - break - case 3: - un.contract = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - newAdmin: (0, nn.isSet)(tn.newAdmin) ? String(tn.newAdmin) : '', - contract: (0, nn.isSet)(tn.contract) ? String(tn.contract) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.newAdmin !== void 0 && (En.newAdmin = tn.newAdmin), - tn.contract !== void 0 && (En.contract = tn.contract), - En - ) - }, - fromPartial(tn) { - const En = ln() - return ( - (En.sender = tn.sender ?? ''), - (En.newAdmin = tn.newAdmin ?? ''), - (En.contract = tn.contract ?? ''), - En - ) - }, - } - function yn() { - return {} - } - e.MsgUpdateAdminResponse = { - encode(tn, En = sn.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = yn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return yn() - }, - } - function Cn() { - return { sender: '', contract: '' } - } - e.MsgClearAdmin = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.contract !== '' && En.uint32(26).string(tn.contract), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Cn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 3: - un.contract = Mn.string() - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - contract: (0, nn.isSet)(tn.contract) ? String(tn.contract) : '', - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.contract !== void 0 && (En.contract = tn.contract), - En - ) - }, - fromPartial(tn) { - const En = Cn() - return (En.sender = tn.sender ?? ''), (En.contract = tn.contract ?? ''), En - }, - } - function Tn() { - return {} - } - e.MsgClearAdminResponse = { - encode(tn, En = sn.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Tn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return Tn() - }, - } - function Gn() { - return { sender: '', codeId: nn.Long.UZERO, newInstantiatePermission: void 0 } - } - e.MsgUpdateInstantiateConfig = { - encode(tn, En = sn.Writer.create()) { - return ( - tn.sender !== '' && En.uint32(10).string(tn.sender), - tn.codeId.isZero() || En.uint32(16).uint64(tn.codeId), - tn.newInstantiatePermission !== void 0 && - $.AccessConfig.encode(tn.newInstantiatePermission, En.uint32(26).fork()).ldelim(), - En - ) - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Gn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - case 1: - un.sender = Mn.string() - break - case 2: - un.codeId = Mn.uint64() - break - case 3: - un.newInstantiatePermission = $.AccessConfig.decode(Mn, Mn.uint32()) - break - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return { - sender: (0, nn.isSet)(tn.sender) ? String(tn.sender) : '', - codeId: (0, nn.isSet)(tn.codeId) ? nn.Long.fromValue(tn.codeId) : nn.Long.UZERO, - newInstantiatePermission: (0, nn.isSet)(tn.newInstantiatePermission) - ? $.AccessConfig.fromJSON(tn.newInstantiatePermission) - : void 0, - } - }, - toJSON(tn) { - const En = {} - return ( - tn.sender !== void 0 && (En.sender = tn.sender), - tn.codeId !== void 0 && (En.codeId = (tn.codeId || nn.Long.UZERO).toString()), - tn.newInstantiatePermission !== void 0 && - (En.newInstantiatePermission = tn.newInstantiatePermission - ? $.AccessConfig.toJSON(tn.newInstantiatePermission) - : void 0), - En - ) - }, - fromPartial(tn) { - const En = Gn() - return ( - (En.sender = tn.sender ?? ''), - (En.codeId = - tn.codeId !== void 0 && tn.codeId !== null - ? nn.Long.fromValue(tn.codeId) - : nn.Long.UZERO), - (En.newInstantiatePermission = - tn.newInstantiatePermission !== void 0 && tn.newInstantiatePermission !== null - ? $.AccessConfig.fromPartial(tn.newInstantiatePermission) - : void 0), - En - ) - }, - } - function Sn() { - return {} - } - e.MsgUpdateInstantiateConfigResponse = { - encode(tn, En = sn.Writer.create()) { - return En - }, - decode(tn, En) { - const Mn = tn instanceof sn.Reader ? tn : new sn.Reader(tn) - let Hn = En === void 0 ? Mn.len : Mn.pos + En - const un = Sn() - for (; Mn.pos < Hn; ) { - const dn = Mn.uint32() - switch (dn >>> 3) { - default: - Mn.skipType(dn & 7) - break - } - } - return un - }, - fromJSON(tn) { - return {} - }, - toJSON(tn) { - return {} - }, - fromPartial(tn) { - return Sn() - }, - } - class Zn { - constructor(En) { - ;(this.rpc = En), - (this.StoreCode = this.StoreCode.bind(this)), - (this.InstantiateContract = this.InstantiateContract.bind(this)), - (this.InstantiateContract2 = this.InstantiateContract2.bind(this)), - (this.ExecuteContract = this.ExecuteContract.bind(this)), - (this.MigrateContract = this.MigrateContract.bind(this)), - (this.UpdateAdmin = this.UpdateAdmin.bind(this)), - (this.ClearAdmin = this.ClearAdmin.bind(this)), - (this.UpdateInstantiateConfig = this.UpdateInstantiateConfig.bind(this)) - } - StoreCode(En) { - const Mn = e.MsgStoreCode.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'StoreCode', Mn) - .then((un) => e.MsgStoreCodeResponse.decode(new sn.Reader(un))) - } - InstantiateContract(En) { - const Mn = e.MsgInstantiateContract.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'InstantiateContract', Mn) - .then((un) => e.MsgInstantiateContractResponse.decode(new sn.Reader(un))) - } - InstantiateContract2(En) { - const Mn = e.MsgInstantiateContract2.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'InstantiateContract2', Mn) - .then((un) => e.MsgInstantiateContract2Response.decode(new sn.Reader(un))) - } - ExecuteContract(En) { - const Mn = e.MsgExecuteContract.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'ExecuteContract', Mn) - .then((un) => e.MsgExecuteContractResponse.decode(new sn.Reader(un))) - } - MigrateContract(En) { - const Mn = e.MsgMigrateContract.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'MigrateContract', Mn) - .then((un) => e.MsgMigrateContractResponse.decode(new sn.Reader(un))) - } - UpdateAdmin(En) { - const Mn = e.MsgUpdateAdmin.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'UpdateAdmin', Mn) - .then((un) => e.MsgUpdateAdminResponse.decode(new sn.Reader(un))) - } - ClearAdmin(En) { - const Mn = e.MsgClearAdmin.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'ClearAdmin', Mn) - .then((un) => e.MsgClearAdminResponse.decode(new sn.Reader(un))) - } - UpdateInstantiateConfig(En) { - const Mn = e.MsgUpdateInstantiateConfig.encode(En).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Msg', 'UpdateInstantiateConfig', Mn) - .then((un) => e.MsgUpdateInstantiateConfigResponse.decode(new sn.Reader(un))) - } - } - e.MsgClientImpl = Zn -})(tx) -Object.defineProperty(messages, '__esModule', { value: !0 }) -messages.isMsgExecuteEncodeObject = - messages.isMsgMigrateEncodeObject = - messages.isMsgClearAdminEncodeObject = - messages.isMsgUpdateAdminEncodeObject = - messages.isMsgInstantiateContract2EncodeObject = - messages.isMsgInstantiateContractEncodeObject = - messages.isMsgStoreCodeEncodeObject = - messages.wasmTypes = - void 0 -const tx_1 = tx -messages.wasmTypes = [ - ['/cosmwasm.wasm.v1.MsgClearAdmin', tx_1.MsgClearAdmin], - ['/cosmwasm.wasm.v1.MsgExecuteContract', tx_1.MsgExecuteContract], - ['/cosmwasm.wasm.v1.MsgMigrateContract', tx_1.MsgMigrateContract], - ['/cosmwasm.wasm.v1.MsgStoreCode', tx_1.MsgStoreCode], - ['/cosmwasm.wasm.v1.MsgInstantiateContract', tx_1.MsgInstantiateContract], - ['/cosmwasm.wasm.v1.MsgInstantiateContract2', tx_1.MsgInstantiateContract2], - ['/cosmwasm.wasm.v1.MsgUpdateAdmin', tx_1.MsgUpdateAdmin], -] -function isMsgStoreCodeEncodeObject(e) { - return e.typeUrl === '/cosmwasm.wasm.v1.MsgStoreCode' -} -messages.isMsgStoreCodeEncodeObject = isMsgStoreCodeEncodeObject -function isMsgInstantiateContractEncodeObject(e) { - return e.typeUrl === '/cosmwasm.wasm.v1.MsgInstantiateContract' -} -messages.isMsgInstantiateContractEncodeObject = isMsgInstantiateContractEncodeObject -function isMsgInstantiateContract2EncodeObject(e) { - return e.typeUrl === '/cosmwasm.wasm.v1.MsgInstantiateContract2' -} -messages.isMsgInstantiateContract2EncodeObject = isMsgInstantiateContract2EncodeObject -function isMsgUpdateAdminEncodeObject(e) { - return e.typeUrl === '/cosmwasm.wasm.v1.MsgUpdateAdmin' -} -messages.isMsgUpdateAdminEncodeObject = isMsgUpdateAdminEncodeObject -function isMsgClearAdminEncodeObject(e) { - return e.typeUrl === '/cosmwasm.wasm.v1.MsgClearAdmin' -} -messages.isMsgClearAdminEncodeObject = isMsgClearAdminEncodeObject -function isMsgMigrateEncodeObject(e) { - return e.typeUrl === '/cosmwasm.wasm.v1.MsgMigrateContract' -} -messages.isMsgMigrateEncodeObject = isMsgMigrateEncodeObject -function isMsgExecuteEncodeObject(e) { - return e.typeUrl === '/cosmwasm.wasm.v1.MsgExecuteContract' -} -messages.isMsgExecuteEncodeObject = isMsgExecuteEncodeObject -var queries = {}, - query = {} -;(function (e) { - var o = - (commonjsGlobal && commonjsGlobal.__createBinding) || - (Object.create - ? function (fn, _n, Ln, zn) { - zn === void 0 && (zn = Ln) - var Fn = Object.getOwnPropertyDescriptor(_n, Ln) - ;(!Fn || ('get' in Fn ? !_n.__esModule : Fn.writable || Fn.configurable)) && - (Fn = { - enumerable: !0, - get: function () { - return _n[Ln] - }, - }), - Object.defineProperty(fn, zn, Fn) - } - : function (fn, _n, Ln, zn) { - zn === void 0 && (zn = Ln), (fn[zn] = _n[Ln]) - }), - _ = - (commonjsGlobal && commonjsGlobal.__setModuleDefault) || - (Object.create - ? function (fn, _n) { - Object.defineProperty(fn, 'default', { enumerable: !0, value: _n }) - } - : function (fn, _n) { - fn.default = _n - }), - b = - (commonjsGlobal && commonjsGlobal.__importStar) || - function (fn) { - if (fn && fn.__esModule) return fn - var _n = {} - if (fn != null) - for (var Ln in fn) - Ln !== 'default' && Object.prototype.hasOwnProperty.call(fn, Ln) && o(_n, fn, Ln) - return _(_n, fn), _n - } - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.QueryClientImpl = - e.QueryContractsByCreatorResponse = - e.QueryContractsByCreatorRequest = - e.QueryParamsResponse = - e.QueryParamsRequest = - e.QueryPinnedCodesResponse = - e.QueryPinnedCodesRequest = - e.QueryCodesResponse = - e.QueryCodesRequest = - e.QueryCodeResponse = - e.CodeInfoResponse = - e.QueryCodeRequest = - e.QuerySmartContractStateResponse = - e.QuerySmartContractStateRequest = - e.QueryRawContractStateResponse = - e.QueryRawContractStateRequest = - e.QueryAllContractStateResponse = - e.QueryAllContractStateRequest = - e.QueryContractsByCodeResponse = - e.QueryContractsByCodeRequest = - e.QueryContractHistoryResponse = - e.QueryContractHistoryRequest = - e.QueryContractInfoResponse = - e.QueryContractInfoRequest = - e.protobufPackage = - void 0) - const $ = pagination, - en = types, - nn = helpers, - sn = b(minimalExports) - e.protobufPackage = 'cosmwasm.wasm.v1' - function gn() { - return { address: '' } - } - e.QueryContractInfoRequest = { - encode(fn, _n = sn.Writer.create()) { - return fn.address !== '' && _n.uint32(10).string(fn.address), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = gn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.address = Ln.string() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { address: (0, nn.isSet)(fn.address) ? String(fn.address) : '' } - }, - toJSON(fn) { - const _n = {} - return fn.address !== void 0 && (_n.address = fn.address), _n - }, - fromPartial(fn) { - const _n = gn() - return (_n.address = fn.address ?? ''), _n - }, - } - function In() { - return { address: '', contractInfo: void 0 } - } - e.QueryContractInfoResponse = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.address !== '' && _n.uint32(10).string(fn.address), - fn.contractInfo !== void 0 && - en.ContractInfo.encode(fn.contractInfo, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = In() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.address = Ln.string() - break - case 2: - Fn.contractInfo = en.ContractInfo.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - address: (0, nn.isSet)(fn.address) ? String(fn.address) : '', - contractInfo: (0, nn.isSet)(fn.contractInfo) - ? en.ContractInfo.fromJSON(fn.contractInfo) - : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.address !== void 0 && (_n.address = fn.address), - fn.contractInfo !== void 0 && - (_n.contractInfo = fn.contractInfo ? en.ContractInfo.toJSON(fn.contractInfo) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = In() - return ( - (_n.address = fn.address ?? ''), - (_n.contractInfo = - fn.contractInfo !== void 0 && fn.contractInfo !== null - ? en.ContractInfo.fromPartial(fn.contractInfo) - : void 0), - _n - ) - }, - } - function Jn() { - return { address: '', pagination: void 0 } - } - e.QueryContractHistoryRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.address !== '' && _n.uint32(10).string(fn.address), - fn.pagination !== void 0 && - $.PageRequest.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Jn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.address = Ln.string() - break - case 2: - Fn.pagination = $.PageRequest.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - address: (0, nn.isSet)(fn.address) ? String(fn.address) : '', - pagination: (0, nn.isSet)(fn.pagination) ? $.PageRequest.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.address !== void 0 && (_n.address = fn.address), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageRequest.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = Jn() - return ( - (_n.address = fn.address ?? ''), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageRequest.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function qn() { - return { entries: [], pagination: void 0 } - } - e.QueryContractHistoryResponse = { - encode(fn, _n = sn.Writer.create()) { - for (const Ln of fn.entries) - en.ContractCodeHistoryEntry.encode(Ln, _n.uint32(10).fork()).ldelim() - return ( - fn.pagination !== void 0 && - $.PageResponse.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = qn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.entries.push(en.ContractCodeHistoryEntry.decode(Ln, Ln.uint32())) - break - case 2: - Fn.pagination = $.PageResponse.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - entries: Array.isArray(fn?.entries) - ? fn.entries.map((_n) => en.ContractCodeHistoryEntry.fromJSON(_n)) - : [], - pagination: (0, nn.isSet)(fn.pagination) ? $.PageResponse.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.entries - ? (_n.entries = fn.entries.map((Ln) => - Ln ? en.ContractCodeHistoryEntry.toJSON(Ln) : void 0, - )) - : (_n.entries = []), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageResponse.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = qn() - return ( - (_n.entries = fn.entries?.map((Ln) => en.ContractCodeHistoryEntry.fromPartial(Ln)) || []), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageResponse.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function Kn() { - return { codeId: nn.Long.UZERO, pagination: void 0 } - } - e.QueryContractsByCodeRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.codeId.isZero() || _n.uint32(8).uint64(fn.codeId), - fn.pagination !== void 0 && - $.PageRequest.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Kn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.codeId = Ln.uint64() - break - case 2: - Fn.pagination = $.PageRequest.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - codeId: (0, nn.isSet)(fn.codeId) ? nn.Long.fromValue(fn.codeId) : nn.Long.UZERO, - pagination: (0, nn.isSet)(fn.pagination) ? $.PageRequest.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.codeId !== void 0 && (_n.codeId = (fn.codeId || nn.Long.UZERO).toString()), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageRequest.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = Kn() - return ( - (_n.codeId = - fn.codeId !== void 0 && fn.codeId !== null - ? nn.Long.fromValue(fn.codeId) - : nn.Long.UZERO), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageRequest.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function an() { - return { contracts: [], pagination: void 0 } - } - e.QueryContractsByCodeResponse = { - encode(fn, _n = sn.Writer.create()) { - for (const Ln of fn.contracts) _n.uint32(10).string(Ln) - return ( - fn.pagination !== void 0 && - $.PageResponse.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = an() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.contracts.push(Ln.string()) - break - case 2: - Fn.pagination = $.PageResponse.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - contracts: Array.isArray(fn?.contracts) ? fn.contracts.map((_n) => String(_n)) : [], - pagination: (0, nn.isSet)(fn.pagination) ? $.PageResponse.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.contracts ? (_n.contracts = fn.contracts.map((Ln) => Ln)) : (_n.contracts = []), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageResponse.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = an() - return ( - (_n.contracts = fn.contracts?.map((Ln) => Ln) || []), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageResponse.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function xn() { - return { address: '', pagination: void 0 } - } - e.QueryAllContractStateRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.address !== '' && _n.uint32(10).string(fn.address), - fn.pagination !== void 0 && - $.PageRequest.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = xn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.address = Ln.string() - break - case 2: - Fn.pagination = $.PageRequest.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - address: (0, nn.isSet)(fn.address) ? String(fn.address) : '', - pagination: (0, nn.isSet)(fn.pagination) ? $.PageRequest.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.address !== void 0 && (_n.address = fn.address), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageRequest.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = xn() - return ( - (_n.address = fn.address ?? ''), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageRequest.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function mn() { - return { models: [], pagination: void 0 } - } - e.QueryAllContractStateResponse = { - encode(fn, _n = sn.Writer.create()) { - for (const Ln of fn.models) en.Model.encode(Ln, _n.uint32(10).fork()).ldelim() - return ( - fn.pagination !== void 0 && - $.PageResponse.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = mn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.models.push(en.Model.decode(Ln, Ln.uint32())) - break - case 2: - Fn.pagination = $.PageResponse.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - models: Array.isArray(fn?.models) ? fn.models.map((_n) => en.Model.fromJSON(_n)) : [], - pagination: (0, nn.isSet)(fn.pagination) ? $.PageResponse.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.models - ? (_n.models = fn.models.map((Ln) => (Ln ? en.Model.toJSON(Ln) : void 0))) - : (_n.models = []), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageResponse.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = mn() - return ( - (_n.models = fn.models?.map((Ln) => en.Model.fromPartial(Ln)) || []), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageResponse.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function Bn() { - return { address: '', queryData: new Uint8Array() } - } - e.QueryRawContractStateRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.address !== '' && _n.uint32(10).string(fn.address), - fn.queryData.length !== 0 && _n.uint32(18).bytes(fn.queryData), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Bn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.address = Ln.string() - break - case 2: - Fn.queryData = Ln.bytes() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - address: (0, nn.isSet)(fn.address) ? String(fn.address) : '', - queryData: (0, nn.isSet)(fn.queryData) - ? (0, nn.bytesFromBase64)(fn.queryData) - : new Uint8Array(), - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.address !== void 0 && (_n.address = fn.address), - fn.queryData !== void 0 && - (_n.queryData = (0, nn.base64FromBytes)( - fn.queryData !== void 0 ? fn.queryData : new Uint8Array(), - )), - _n - ) - }, - fromPartial(fn) { - const _n = Bn() - return (_n.address = fn.address ?? ''), (_n.queryData = fn.queryData ?? new Uint8Array()), _n - }, - } - function kn() { - return { data: new Uint8Array() } - } - e.QueryRawContractStateResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.data.length !== 0 && _n.uint32(10).bytes(fn.data), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = kn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.data = Ln.bytes() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { data: (0, nn.isSet)(fn.data) ? (0, nn.bytesFromBase64)(fn.data) : new Uint8Array() } - }, - toJSON(fn) { - const _n = {} - return ( - fn.data !== void 0 && - (_n.data = (0, nn.base64FromBytes)(fn.data !== void 0 ? fn.data : new Uint8Array())), - _n - ) - }, - fromPartial(fn) { - const _n = kn() - return (_n.data = fn.data ?? new Uint8Array()), _n - }, - } - function ln() { - return { address: '', queryData: new Uint8Array() } - } - e.QuerySmartContractStateRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.address !== '' && _n.uint32(10).string(fn.address), - fn.queryData.length !== 0 && _n.uint32(18).bytes(fn.queryData), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = ln() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.address = Ln.string() - break - case 2: - Fn.queryData = Ln.bytes() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - address: (0, nn.isSet)(fn.address) ? String(fn.address) : '', - queryData: (0, nn.isSet)(fn.queryData) - ? (0, nn.bytesFromBase64)(fn.queryData) - : new Uint8Array(), - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.address !== void 0 && (_n.address = fn.address), - fn.queryData !== void 0 && - (_n.queryData = (0, nn.base64FromBytes)( - fn.queryData !== void 0 ? fn.queryData : new Uint8Array(), - )), - _n - ) - }, - fromPartial(fn) { - const _n = ln() - return (_n.address = fn.address ?? ''), (_n.queryData = fn.queryData ?? new Uint8Array()), _n - }, - } - function yn() { - return { data: new Uint8Array() } - } - e.QuerySmartContractStateResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.data.length !== 0 && _n.uint32(10).bytes(fn.data), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = yn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.data = Ln.bytes() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { data: (0, nn.isSet)(fn.data) ? (0, nn.bytesFromBase64)(fn.data) : new Uint8Array() } - }, - toJSON(fn) { - const _n = {} - return ( - fn.data !== void 0 && - (_n.data = (0, nn.base64FromBytes)(fn.data !== void 0 ? fn.data : new Uint8Array())), - _n - ) - }, - fromPartial(fn) { - const _n = yn() - return (_n.data = fn.data ?? new Uint8Array()), _n - }, - } - function Cn() { - return { codeId: nn.Long.UZERO } - } - e.QueryCodeRequest = { - encode(fn, _n = sn.Writer.create()) { - return fn.codeId.isZero() || _n.uint32(8).uint64(fn.codeId), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Cn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.codeId = Ln.uint64() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { codeId: (0, nn.isSet)(fn.codeId) ? nn.Long.fromValue(fn.codeId) : nn.Long.UZERO } - }, - toJSON(fn) { - const _n = {} - return fn.codeId !== void 0 && (_n.codeId = (fn.codeId || nn.Long.UZERO).toString()), _n - }, - fromPartial(fn) { - const _n = Cn() - return ( - (_n.codeId = - fn.codeId !== void 0 && fn.codeId !== null - ? nn.Long.fromValue(fn.codeId) - : nn.Long.UZERO), - _n - ) - }, - } - function Tn() { - return { - codeId: nn.Long.UZERO, - creator: '', - dataHash: new Uint8Array(), - instantiatePermission: void 0, - } - } - e.CodeInfoResponse = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.codeId.isZero() || _n.uint32(8).uint64(fn.codeId), - fn.creator !== '' && _n.uint32(18).string(fn.creator), - fn.dataHash.length !== 0 && _n.uint32(26).bytes(fn.dataHash), - fn.instantiatePermission !== void 0 && - en.AccessConfig.encode(fn.instantiatePermission, _n.uint32(50).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Tn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.codeId = Ln.uint64() - break - case 2: - Fn.creator = Ln.string() - break - case 3: - Fn.dataHash = Ln.bytes() - break - case 6: - Fn.instantiatePermission = en.AccessConfig.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - codeId: (0, nn.isSet)(fn.codeId) ? nn.Long.fromValue(fn.codeId) : nn.Long.UZERO, - creator: (0, nn.isSet)(fn.creator) ? String(fn.creator) : '', - dataHash: (0, nn.isSet)(fn.dataHash) - ? (0, nn.bytesFromBase64)(fn.dataHash) - : new Uint8Array(), - instantiatePermission: (0, nn.isSet)(fn.instantiatePermission) - ? en.AccessConfig.fromJSON(fn.instantiatePermission) - : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.codeId !== void 0 && (_n.codeId = (fn.codeId || nn.Long.UZERO).toString()), - fn.creator !== void 0 && (_n.creator = fn.creator), - fn.dataHash !== void 0 && - (_n.dataHash = (0, nn.base64FromBytes)( - fn.dataHash !== void 0 ? fn.dataHash : new Uint8Array(), - )), - fn.instantiatePermission !== void 0 && - (_n.instantiatePermission = fn.instantiatePermission - ? en.AccessConfig.toJSON(fn.instantiatePermission) - : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = Tn() - return ( - (_n.codeId = - fn.codeId !== void 0 && fn.codeId !== null - ? nn.Long.fromValue(fn.codeId) - : nn.Long.UZERO), - (_n.creator = fn.creator ?? ''), - (_n.dataHash = fn.dataHash ?? new Uint8Array()), - (_n.instantiatePermission = - fn.instantiatePermission !== void 0 && fn.instantiatePermission !== null - ? en.AccessConfig.fromPartial(fn.instantiatePermission) - : void 0), - _n - ) - }, - } - function Gn() { - return { codeInfo: void 0, data: new Uint8Array() } - } - e.QueryCodeResponse = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.codeInfo !== void 0 && - e.CodeInfoResponse.encode(fn.codeInfo, _n.uint32(10).fork()).ldelim(), - fn.data.length !== 0 && _n.uint32(18).bytes(fn.data), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Gn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.codeInfo = e.CodeInfoResponse.decode(Ln, Ln.uint32()) - break - case 2: - Fn.data = Ln.bytes() - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - codeInfo: (0, nn.isSet)(fn.codeInfo) ? e.CodeInfoResponse.fromJSON(fn.codeInfo) : void 0, - data: (0, nn.isSet)(fn.data) ? (0, nn.bytesFromBase64)(fn.data) : new Uint8Array(), - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.codeInfo !== void 0 && - (_n.codeInfo = fn.codeInfo ? e.CodeInfoResponse.toJSON(fn.codeInfo) : void 0), - fn.data !== void 0 && - (_n.data = (0, nn.base64FromBytes)(fn.data !== void 0 ? fn.data : new Uint8Array())), - _n - ) - }, - fromPartial(fn) { - const _n = Gn() - return ( - (_n.codeInfo = - fn.codeInfo !== void 0 && fn.codeInfo !== null - ? e.CodeInfoResponse.fromPartial(fn.codeInfo) - : void 0), - (_n.data = fn.data ?? new Uint8Array()), - _n - ) - }, - } - function Sn() { - return { pagination: void 0 } - } - e.QueryCodesRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.pagination !== void 0 && - $.PageRequest.encode(fn.pagination, _n.uint32(10).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Sn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.pagination = $.PageRequest.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - pagination: (0, nn.isSet)(fn.pagination) ? $.PageRequest.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageRequest.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = Sn() - return ( - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageRequest.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function Zn() { - return { codeInfos: [], pagination: void 0 } - } - e.QueryCodesResponse = { - encode(fn, _n = sn.Writer.create()) { - for (const Ln of fn.codeInfos) e.CodeInfoResponse.encode(Ln, _n.uint32(10).fork()).ldelim() - return ( - fn.pagination !== void 0 && - $.PageResponse.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Zn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.codeInfos.push(e.CodeInfoResponse.decode(Ln, Ln.uint32())) - break - case 2: - Fn.pagination = $.PageResponse.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - codeInfos: Array.isArray(fn?.codeInfos) - ? fn.codeInfos.map((_n) => e.CodeInfoResponse.fromJSON(_n)) - : [], - pagination: (0, nn.isSet)(fn.pagination) ? $.PageResponse.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.codeInfos - ? (_n.codeInfos = fn.codeInfos.map((Ln) => (Ln ? e.CodeInfoResponse.toJSON(Ln) : void 0))) - : (_n.codeInfos = []), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageResponse.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = Zn() - return ( - (_n.codeInfos = fn.codeInfos?.map((Ln) => e.CodeInfoResponse.fromPartial(Ln)) || []), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageResponse.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function tn() { - return { pagination: void 0 } - } - e.QueryPinnedCodesRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.pagination !== void 0 && - $.PageRequest.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = tn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 2: - Fn.pagination = $.PageRequest.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - pagination: (0, nn.isSet)(fn.pagination) ? $.PageRequest.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageRequest.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = tn() - return ( - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageRequest.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function En() { - return { codeIds: [], pagination: void 0 } - } - e.QueryPinnedCodesResponse = { - encode(fn, _n = sn.Writer.create()) { - _n.uint32(10).fork() - for (const Ln of fn.codeIds) _n.uint64(Ln) - return ( - _n.ldelim(), - fn.pagination !== void 0 && - $.PageResponse.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = En() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - if ((An & 7) === 2) { - const Qn = Ln.uint32() + Ln.pos - for (; Ln.pos < Qn; ) Fn.codeIds.push(Ln.uint64()) - } else Fn.codeIds.push(Ln.uint64()) - break - case 2: - Fn.pagination = $.PageResponse.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - codeIds: Array.isArray(fn?.codeIds) ? fn.codeIds.map((_n) => nn.Long.fromValue(_n)) : [], - pagination: (0, nn.isSet)(fn.pagination) ? $.PageResponse.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.codeIds - ? (_n.codeIds = fn.codeIds.map((Ln) => (Ln || nn.Long.UZERO).toString())) - : (_n.codeIds = []), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageResponse.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = En() - return ( - (_n.codeIds = fn.codeIds?.map((Ln) => nn.Long.fromValue(Ln)) || []), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageResponse.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function Mn() { - return {} - } - e.QueryParamsRequest = { - encode(fn, _n = sn.Writer.create()) { - return _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Mn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return {} - }, - toJSON(fn) { - return {} - }, - fromPartial(fn) { - return Mn() - }, - } - function Hn() { - return { params: void 0 } - } - e.QueryParamsResponse = { - encode(fn, _n = sn.Writer.create()) { - return fn.params !== void 0 && en.Params.encode(fn.params, _n.uint32(10).fork()).ldelim(), _n - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = Hn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.params = en.Params.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { params: (0, nn.isSet)(fn.params) ? en.Params.fromJSON(fn.params) : void 0 } - }, - toJSON(fn) { - const _n = {} - return ( - fn.params !== void 0 && (_n.params = fn.params ? en.Params.toJSON(fn.params) : void 0), _n - ) - }, - fromPartial(fn) { - const _n = Hn() - return ( - (_n.params = - fn.params !== void 0 && fn.params !== null ? en.Params.fromPartial(fn.params) : void 0), - _n - ) - }, - } - function un() { - return { creatorAddress: '', pagination: void 0 } - } - e.QueryContractsByCreatorRequest = { - encode(fn, _n = sn.Writer.create()) { - return ( - fn.creatorAddress !== '' && _n.uint32(10).string(fn.creatorAddress), - fn.pagination !== void 0 && - $.PageRequest.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = un() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.creatorAddress = Ln.string() - break - case 2: - Fn.pagination = $.PageRequest.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - creatorAddress: (0, nn.isSet)(fn.creatorAddress) ? String(fn.creatorAddress) : '', - pagination: (0, nn.isSet)(fn.pagination) ? $.PageRequest.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.creatorAddress !== void 0 && (_n.creatorAddress = fn.creatorAddress), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageRequest.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = un() - return ( - (_n.creatorAddress = fn.creatorAddress ?? ''), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageRequest.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - function dn() { - return { contractAddresses: [], pagination: void 0 } - } - e.QueryContractsByCreatorResponse = { - encode(fn, _n = sn.Writer.create()) { - for (const Ln of fn.contractAddresses) _n.uint32(10).string(Ln) - return ( - fn.pagination !== void 0 && - $.PageResponse.encode(fn.pagination, _n.uint32(18).fork()).ldelim(), - _n - ) - }, - decode(fn, _n) { - const Ln = fn instanceof sn.Reader ? fn : new sn.Reader(fn) - let zn = _n === void 0 ? Ln.len : Ln.pos + _n - const Fn = dn() - for (; Ln.pos < zn; ) { - const An = Ln.uint32() - switch (An >>> 3) { - case 1: - Fn.contractAddresses.push(Ln.string()) - break - case 2: - Fn.pagination = $.PageResponse.decode(Ln, Ln.uint32()) - break - default: - Ln.skipType(An & 7) - break - } - } - return Fn - }, - fromJSON(fn) { - return { - contractAddresses: Array.isArray(fn?.contractAddresses) - ? fn.contractAddresses.map((_n) => String(_n)) - : [], - pagination: (0, nn.isSet)(fn.pagination) ? $.PageResponse.fromJSON(fn.pagination) : void 0, - } - }, - toJSON(fn) { - const _n = {} - return ( - fn.contractAddresses - ? (_n.contractAddresses = fn.contractAddresses.map((Ln) => Ln)) - : (_n.contractAddresses = []), - fn.pagination !== void 0 && - (_n.pagination = fn.pagination ? $.PageResponse.toJSON(fn.pagination) : void 0), - _n - ) - }, - fromPartial(fn) { - const _n = dn() - return ( - (_n.contractAddresses = fn.contractAddresses?.map((Ln) => Ln) || []), - (_n.pagination = - fn.pagination !== void 0 && fn.pagination !== null - ? $.PageResponse.fromPartial(fn.pagination) - : void 0), - _n - ) - }, - } - class Nn { - constructor(_n) { - ;(this.rpc = _n), - (this.ContractInfo = this.ContractInfo.bind(this)), - (this.ContractHistory = this.ContractHistory.bind(this)), - (this.ContractsByCode = this.ContractsByCode.bind(this)), - (this.AllContractState = this.AllContractState.bind(this)), - (this.RawContractState = this.RawContractState.bind(this)), - (this.SmartContractState = this.SmartContractState.bind(this)), - (this.Code = this.Code.bind(this)), - (this.Codes = this.Codes.bind(this)), - (this.PinnedCodes = this.PinnedCodes.bind(this)), - (this.Params = this.Params.bind(this)), - (this.ContractsByCreator = this.ContractsByCreator.bind(this)) - } - ContractInfo(_n) { - const Ln = e.QueryContractInfoRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'ContractInfo', Ln) - .then((Fn) => e.QueryContractInfoResponse.decode(new sn.Reader(Fn))) - } - ContractHistory(_n) { - const Ln = e.QueryContractHistoryRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'ContractHistory', Ln) - .then((Fn) => e.QueryContractHistoryResponse.decode(new sn.Reader(Fn))) - } - ContractsByCode(_n) { - const Ln = e.QueryContractsByCodeRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'ContractsByCode', Ln) - .then((Fn) => e.QueryContractsByCodeResponse.decode(new sn.Reader(Fn))) - } - AllContractState(_n) { - const Ln = e.QueryAllContractStateRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'AllContractState', Ln) - .then((Fn) => e.QueryAllContractStateResponse.decode(new sn.Reader(Fn))) - } - RawContractState(_n) { - const Ln = e.QueryRawContractStateRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'RawContractState', Ln) - .then((Fn) => e.QueryRawContractStateResponse.decode(new sn.Reader(Fn))) - } - SmartContractState(_n) { - const Ln = e.QuerySmartContractStateRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'SmartContractState', Ln) - .then((Fn) => e.QuerySmartContractStateResponse.decode(new sn.Reader(Fn))) - } - Code(_n) { - const Ln = e.QueryCodeRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'Code', Ln) - .then((Fn) => e.QueryCodeResponse.decode(new sn.Reader(Fn))) - } - Codes(_n = { pagination: void 0 }) { - const Ln = e.QueryCodesRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'Codes', Ln) - .then((Fn) => e.QueryCodesResponse.decode(new sn.Reader(Fn))) - } - PinnedCodes(_n = { pagination: void 0 }) { - const Ln = e.QueryPinnedCodesRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'PinnedCodes', Ln) - .then((Fn) => e.QueryPinnedCodesResponse.decode(new sn.Reader(Fn))) - } - Params(_n = {}) { - const Ln = e.QueryParamsRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'Params', Ln) - .then((Fn) => e.QueryParamsResponse.decode(new sn.Reader(Fn))) - } - ContractsByCreator(_n) { - const Ln = e.QueryContractsByCreatorRequest.encode(_n).finish() - return this.rpc - .request('cosmwasm.wasm.v1.Query', 'ContractsByCreator', Ln) - .then((Fn) => e.QueryContractsByCreatorResponse.decode(new sn.Reader(Fn))) - } - } - e.QueryClientImpl = Nn -})(query) -var __importDefault = - (commonjsGlobal && commonjsGlobal.__importDefault) || - function (e) { - return e && e.__esModule ? e : { default: e } - } -Object.defineProperty(queries, '__esModule', { value: !0 }) -queries.setupWasmExtension = void 0 -const encoding_1$1 = build$b, - stargate_1$1 = build$9, - query_1 = query, - long_1 = __importDefault(long) -function setupWasmExtension(e) { - const o = (0, stargate_1$1.createProtobufRpcClient)(e), - _ = new query_1.QueryClientImpl(o) - return { - wasm: { - listCodeInfo: async (b) => { - const $ = { pagination: (0, stargate_1$1.createPagination)(b) } - return _.Codes($) - }, - getCode: async (b) => { - const $ = { codeId: long_1.default.fromNumber(b) } - return _.Code($) - }, - listContractsByCodeId: async (b, $) => { - const en = { - codeId: long_1.default.fromNumber(b), - pagination: (0, stargate_1$1.createPagination)($), - } - return _.ContractsByCode(en) - }, - listContractsByCreator: async (b, $) => { - const en = { creatorAddress: b, pagination: (0, stargate_1$1.createPagination)($) } - return _.ContractsByCreator(en) - }, - getContractInfo: async (b) => { - const $ = { address: b } - return _.ContractInfo($) - }, - getContractCodeHistory: async (b, $) => { - const en = { address: b, pagination: (0, stargate_1$1.createPagination)($) } - return _.ContractHistory(en) - }, - getAllContractState: async (b, $) => { - const en = { address: b, pagination: (0, stargate_1$1.createPagination)($) } - return _.AllContractState(en) - }, - queryContractRaw: async (b, $) => { - const en = { address: b, queryData: $ } - return _.RawContractState(en) - }, - queryContractSmart: async (b, $) => { - const en = { address: b, queryData: (0, encoding_1$1.toUtf8)(JSON.stringify($)) }, - { data: nn } = await _.SmartContractState(en) - let sn - try { - sn = (0, encoding_1$1.fromUtf8)(nn) - } catch (gn) { - throw new Error(`Could not UTF-8 decode smart query response from contract: ${gn}`) - } - try { - return JSON.parse(sn) - } catch (gn) { - throw new Error(`Could not JSON parse smart query response from contract: ${gn}`) - } - }, - }, - } -} -queries.setupWasmExtension = setupWasmExtension -;(function (e) { - Object.defineProperty(e, '__esModule', { value: !0 }), - (e.setupWasmExtension = - e.wasmTypes = - e.isMsgUpdateAdminEncodeObject = - e.isMsgStoreCodeEncodeObject = - e.isMsgMigrateEncodeObject = - e.isMsgInstantiateContractEncodeObject = - e.isMsgInstantiateContract2EncodeObject = - e.isMsgExecuteEncodeObject = - e.isMsgClearAdminEncodeObject = - e.createWasmAminoConverters = - void 0) - var o = aminomessages - Object.defineProperty(e, 'createWasmAminoConverters', { - enumerable: !0, - get: function () { - return o.createWasmAminoConverters - }, - }) - var _ = messages - Object.defineProperty(e, 'isMsgClearAdminEncodeObject', { - enumerable: !0, - get: function () { - return _.isMsgClearAdminEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgExecuteEncodeObject', { - enumerable: !0, - get: function () { - return _.isMsgExecuteEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgInstantiateContract2EncodeObject', { - enumerable: !0, - get: function () { - return _.isMsgInstantiateContract2EncodeObject - }, - }), - Object.defineProperty(e, 'isMsgInstantiateContractEncodeObject', { - enumerable: !0, - get: function () { - return _.isMsgInstantiateContractEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgMigrateEncodeObject', { - enumerable: !0, - get: function () { - return _.isMsgMigrateEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgStoreCodeEncodeObject', { - enumerable: !0, - get: function () { - return _.isMsgStoreCodeEncodeObject - }, - }), - Object.defineProperty(e, 'isMsgUpdateAdminEncodeObject', { - enumerable: !0, - get: function () { - return _.isMsgUpdateAdminEncodeObject - }, - }), - Object.defineProperty(e, 'wasmTypes', { - enumerable: !0, - get: function () { - return _.wasmTypes - }, - }) - var b = queries - Object.defineProperty(e, 'setupWasmExtension', { - enumerable: !0, - get: function () { - return b.setupWasmExtension - }, - }) -})(modules) -Object.defineProperty(cosmwasmclient, '__esModule', { value: !0 }) -var CosmWasmClient_1 = (cosmwasmclient.CosmWasmClient = void 0) -const encoding_1 = build$b, - math_1 = build$a, - stargate_1 = build$9, - tendermint_rpc_1 = build$2, - utils_1 = build$5, - abci_1 = abci, - types_1 = types, - modules_1 = modules -class CosmWasmClient { - static async connect(o) { - let _ - const b = await tendermint_rpc_1.Tendermint37Client.connect(o) - return ( - (await b.status()).nodeInfo.version.startsWith('0.37.') - ? (_ = b) - : (b.disconnect(), (_ = await tendermint_rpc_1.Tendermint34Client.connect(o))), - CosmWasmClient.create(_) - ) - } - static async create(o) { - return new CosmWasmClient(o) - } - constructor(o) { - ;(this.codesCache = new Map()), - o && - ((this.tmClient = o), - (this.queryClient = stargate_1.QueryClient.withExtensions( - o, - stargate_1.setupAuthExtension, - stargate_1.setupBankExtension, - modules_1.setupWasmExtension, - stargate_1.setupTxExtension, - ))) - } - getTmClient() { - return this.tmClient - } - forceGetTmClient() { - if (!this.tmClient) - throw new Error( - 'Tendermint client not available. You cannot use online functionality in offline mode.', - ) - return this.tmClient - } - getQueryClient() { - return this.queryClient - } - forceGetQueryClient() { - if (!this.queryClient) - throw new Error( - 'Query client not available. You cannot use online functionality in offline mode.', - ) - return this.queryClient - } - async getChainId() { - if (!this.chainId) { - const _ = (await this.forceGetTmClient().status()).nodeInfo.network - if (!_) throw new Error('Chain ID must not be empty') - this.chainId = _ - } - return this.chainId - } - async getHeight() { - return (await this.forceGetTmClient().status()).syncInfo.latestBlockHeight - } - async getAccount(o) { - try { - const _ = await this.forceGetQueryClient().auth.account(o) - return _ ? (0, stargate_1.accountFromAny)(_) : null - } catch (_) { - if (/rpc error: code = NotFound/i.test(_.toString())) return null - throw _ - } - } - async getSequence(o) { - const _ = await this.getAccount(o) - if (!_) - throw new Error( - `Account '${o}' does not exist on chain. Send some tokens there before trying to query sequence.`, - ) - return { accountNumber: _.accountNumber, sequence: _.sequence } - } - async getBlock(o) { - const _ = await this.forceGetTmClient().block(o) - return { - id: (0, encoding_1.toHex)(_.blockId.hash).toUpperCase(), - header: { - version: { - block: new math_1.Uint53(_.block.header.version.block).toString(), - app: new math_1.Uint53(_.block.header.version.app).toString(), - }, - height: _.block.header.height, - chainId: _.block.header.chainId, - time: (0, tendermint_rpc_1.toRfc3339WithNanoseconds)(_.block.header.time), - }, - txs: _.block.txs, - } - } - async getBalance(o, _) { - return this.forceGetQueryClient().bank.balance(o, _) - } - async getTx(o) { - return (await this.txsQuery(`tx.hash='${o}'`))[0] ?? null - } - async searchTx(o) { - let _ - if (typeof o == 'string') _ = o - else if (Array.isArray(o)) _ = o.map((b) => `${b.key}='${b.value}'`).join(' AND ') - else - throw new Error( - 'Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.', - ) - return this.txsQuery(_) - } - disconnect() { - this.tmClient && this.tmClient.disconnect() - } - async broadcastTx(o, _ = 6e4, b = 3e3) { - let $ = !1 - const en = setTimeout(() => { - $ = !0 - }, _), - nn = async (gn) => { - if ($) - throw new stargate_1.TimeoutError( - `Transaction with ID ${gn} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${ - _ / 1e3 - } seconds.`, - gn, - ) - await (0, utils_1.sleep)(b) - const In = await this.getTx(gn) - return In - ? { - code: In.code, - height: In.height, - txIndex: In.txIndex, - rawLog: In.rawLog, - transactionHash: gn, - events: In.events, - msgResponses: In.msgResponses, - gasUsed: In.gasUsed, - gasWanted: In.gasWanted, - } - : nn(gn) - }, - sn = await this.broadcastTxSync(o) - return new Promise((gn, In) => - nn(sn).then( - (Jn) => { - clearTimeout(en), gn(Jn) - }, - (Jn) => { - clearTimeout(en), In(Jn) - }, - ), - ) - } - async broadcastTxSync(o) { - const _ = await this.forceGetTmClient().broadcastTxSync({ tx: o }) - return _.code - ? Promise.reject(new stargate_1.BroadcastTxError(_.code, _.codespace ?? '', _.log)) - : (0, encoding_1.toHex)(_.hash).toUpperCase() - } - async getCodes() { - const o = [] - let _ - do { - const { codeInfos: b, pagination: $ } = await this.forceGetQueryClient().wasm.listCodeInfo(_), - en = b || [] - o.push(...en), (_ = $?.nextKey) - } while (_?.length !== 0) - return o.map( - (b) => ( - (0, utils_1.assert)(b.creator && b.codeId && b.dataHash, 'entry incomplete'), - { id: b.codeId.toNumber(), creator: b.creator, checksum: (0, encoding_1.toHex)(b.dataHash) } - ), - ) - } - async getCodeDetails(o) { - const _ = this.codesCache.get(o) - if (_) return _ - const { codeInfo: b, data: $ } = await this.forceGetQueryClient().wasm.getCode(o) - ;(0, utils_1.assert)( - b && b.codeId && b.creator && b.dataHash && $, - 'codeInfo missing or incomplete', - ) - const en = { - id: b.codeId.toNumber(), - creator: b.creator, - checksum: (0, encoding_1.toHex)(b.dataHash), - data: $, - } - return this.codesCache.set(o, en), en - } - async getContracts(o) { - const _ = [] - let b - do { - const { contracts: $, pagination: en } = - await this.forceGetQueryClient().wasm.listContractsByCodeId(o, b) - _.push(...$), (b = en?.nextKey) - } while (b?.length !== 0 && b !== void 0) - return _ - } - async getContractsByCreator(o) { - const _ = [] - let b - do { - const { contractAddresses: $, pagination: en } = - await this.forceGetQueryClient().wasm.listContractsByCreator(o, b) - _.push(...$), (b = en?.nextKey) - } while (b?.length !== 0 && b !== void 0) - return _ - } - async getContract(o) { - const { address: _, contractInfo: b } = await this.forceGetQueryClient().wasm.getContractInfo(o) - if (!b) throw new Error(`No contract found at address "${o}"`) - return ( - (0, utils_1.assert)(_, 'address missing'), - (0, utils_1.assert)(b.codeId && b.creator && b.label, 'contractInfo incomplete'), - { - address: _, - codeId: b.codeId.toNumber(), - creator: b.creator, - admin: b.admin || void 0, - label: b.label, - ibcPortId: b.ibcPortId || void 0, - } - ) - } - async getContractCodeHistory(o) { - const _ = await this.forceGetQueryClient().wasm.getContractCodeHistory(o) - if (!_) throw new Error(`No contract history found for address "${o}"`) - const b = { - [types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT]: 'Init', - [types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS]: - 'Genesis', - [types_1.ContractCodeHistoryOperationType.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE]: - 'Migrate', - } - return (_.entries || []).map( - ($) => ( - (0, utils_1.assert)($.operation && $.codeId && $.msg), - { - operation: b[$.operation], - codeId: $.codeId.toNumber(), - msg: JSON.parse((0, encoding_1.fromUtf8)($.msg)), - } - ), - ) - } - async queryContractRaw(o, _) { - await this.getContract(o) - const { data: b } = await this.forceGetQueryClient().wasm.queryContractRaw(o, _) - return b ?? null - } - async queryContractSmart(o, _) { - try { - return await this.forceGetQueryClient().wasm.queryContractSmart(o, _) - } catch (b) { - throw b instanceof Error && b.message.startsWith('not found: contract') - ? new Error(`No contract found at address "${o}"`) - : b - } - } - async txsQuery(o) { - return (await this.forceGetTmClient().txSearchAll({ query: o })).txs.map((b) => { - const $ = abci_1.TxMsgData.decode(b.result.data ?? new Uint8Array()) - return { - height: b.height, - txIndex: b.index, - hash: (0, encoding_1.toHex)(b.hash).toUpperCase(), - code: b.result.code, - events: b.result.events.map(stargate_1.fromTendermintEvent), - rawLog: b.result.log || '', - tx: b.tx, - msgResponses: $.msgResponses, - gasUsed: b.result.gasUsed, - gasWanted: b.result.gasWanted, - } - }) - } -} -CosmWasmClient_1 = cosmwasmclient.CosmWasmClient = CosmWasmClient -class MarsOracleOsmosisQueryClient { - constructor(o, _) { - ;(this.config = async () => - this.client.queryContractSmart(this.contractAddress, { config: {} })), - (this.priceSource = async ({ denom: b }) => - this.client.queryContractSmart(this.contractAddress, { price_source: { denom: b } })), - (this.priceSources = async ({ limit: b, startAfter: $ }) => - this.client.queryContractSmart(this.contractAddress, { - price_sources: { limit: b, start_after: $ }, - })), - (this.price = async ({ denom: b, kind: $ }) => - this.client.queryContractSmart(this.contractAddress, { price: { denom: b, kind: $ } })), - (this.prices = async ({ kind: b, limit: $, startAfter: en }) => - this.client.queryContractSmart(this.contractAddress, { - prices: { kind: b, limit: $, start_after: en }, - })), - (this.client = o), - (this.contractAddress = _), - (this.config = this.config.bind(this)), - (this.priceSource = this.priceSource.bind(this)), - (this.priceSources = this.priceSources.bind(this)), - (this.price = this.price.bind(this)), - (this.prices = this.prices.bind(this)) - } -} -class MarsMockVaultQueryClient { - constructor(o, _) { - ;(this.vaultStandardInfo = async () => - this.client.queryContractSmart(this.contractAddress, { vault_standard_info: {} })), - (this.info = async () => this.client.queryContractSmart(this.contractAddress, { info: {} })), - (this.previewDeposit = async ({ amount: b }) => - this.client.queryContractSmart(this.contractAddress, { preview_deposit: { amount: b } })), - (this.previewRedeem = async ({ amount: b }) => - this.client.queryContractSmart(this.contractAddress, { preview_redeem: { amount: b } })), - (this.totalAssets = async () => - this.client.queryContractSmart(this.contractAddress, { total_assets: {} })), - (this.totalVaultTokenSupply = async () => - this.client.queryContractSmart(this.contractAddress, { total_vault_token_supply: {} })), - (this.convertToShares = async ({ amount: b }) => - this.client.queryContractSmart(this.contractAddress, { convert_to_shares: { amount: b } })), - (this.convertToAssets = async ({ amount: b }) => - this.client.queryContractSmart(this.contractAddress, { convert_to_assets: { amount: b } })), - (this.vaultExtension = async (b) => - this.client.queryContractSmart(this.contractAddress, { vault_extension: b })), - (this.client = o), - (this.contractAddress = _), - (this.vaultStandardInfo = this.vaultStandardInfo.bind(this)), - (this.info = this.info.bind(this)), - (this.previewDeposit = this.previewDeposit.bind(this)), - (this.previewRedeem = this.previewRedeem.bind(this)), - (this.totalAssets = this.totalAssets.bind(this)), - (this.totalVaultTokenSupply = this.totalVaultTokenSupply.bind(this)), - (this.convertToShares = this.convertToShares.bind(this)), - (this.convertToAssets = this.convertToAssets.bind(this)), - (this.vaultExtension = this.vaultExtension.bind(this)) - } -} -class MarsParamsQueryClient { - constructor(o, _) { - ;(this.owner = async () => this.client.queryContractSmart(this.contractAddress, { owner: {} })), - (this.config = async () => - this.client.queryContractSmart(this.contractAddress, { config: {} })), - (this.assetParams = async ({ denom: b }) => - this.client.queryContractSmart(this.contractAddress, { asset_params: { denom: b } })), - (this.allAssetParams = async ({ limit: b, startAfter: $ }) => - this.client.queryContractSmart(this.contractAddress, { - all_asset_params: { limit: b, start_after: $ }, - })), - (this.vaultConfig = async ({ address: b }) => - this.client.queryContractSmart(this.contractAddress, { vault_config: { address: b } })), - (this.allVaultConfigs = async ({ limit: b, startAfter: $ }) => - this.client.queryContractSmart(this.contractAddress, { - all_vault_configs: { limit: b, start_after: $ }, - })), - (this.targetHealthFactor = async () => - this.client.queryContractSmart(this.contractAddress, { target_health_factor: {} })), - (this.totalDeposit = async ({ denom: b }) => - this.client.queryContractSmart(this.contractAddress, { total_deposit: { denom: b } })), - (this.client = o), - (this.contractAddress = _), - (this.owner = this.owner.bind(this)), - (this.config = this.config.bind(this)), - (this.assetParams = this.assetParams.bind(this)), - (this.allAssetParams = this.allAssetParams.bind(this)), - (this.vaultConfig = this.vaultConfig.bind(this)), - (this.allVaultConfigs = this.allVaultConfigs.bind(this)), - (this.targetHealthFactor = this.targetHealthFactor.bind(this)), - (this.totalDeposit = this.totalDeposit.bind(this)) - } -} -class DataFetcher { - constructor(o, _, b, $, en, nn, sn) { - ;(this.computeHealthFn = o), - (this.maxWithdrawFn = _), - (this.maxBorrowFn = b), - (this.creditManagerAddr = $), - (this.oracleAddr = en), - (this.paramsAddr = nn), - (this.rpcEndpoint = sn), - (this.getClient = async () => await CosmWasmClient_1.connect(this.rpcEndpoint)), - (this.fetchPositions = async (gn) => - await new MarsCreditManagerQueryClient( - await this.getClient(), - this.creditManagerAddr, - ).positions({ accountId: gn })), - (this.fetchParams = async (gn) => { - const In = new MarsParamsQueryClient(await this.getClient(), this.paramsAddr), - Jn = gn.map(async (Kn) => ({ denom: Kn, params: await In.assetParams({ denom: Kn }) })) - return (await Promise.all(Jn)).reduce((Kn, an) => ((Kn[an.denom] = an.params), Kn), {}) - }), - (this.fetchPrices = async (gn) => { - const In = new MarsOracleOsmosisQueryClient(await this.getClient(), this.oracleAddr), - Jn = gn.map(async (Kn) => await In.price({ denom: Kn })) - return (await Promise.all(Jn)).reduce((Kn, an) => ((Kn[an.denom] = an.price), Kn), {}) - }), - (this.fetchDenomsData = async (gn) => { - const In = gn.deposits.map((an) => an.denom), - Jn = gn.debts.map((an) => an.denom), - qn = await Promise.all( - gn.vaults.map( - async (an) => - ( - await new MarsMockVaultQueryClient( - await this.getClient(), - an.vault.address, - ).info() - ).base_token, - ), - ), - Kn = In.concat(Jn).concat(qn) - return { params: await this.fetchParams(Kn), prices: await this.fetchPrices(Kn) } - }), - (this.fetchVaultsData = async (gn) => { - const In = { vault_values: {}, vault_configs: {} }, - Jn = new MarsCreditManagerQueryClient(await this.getClient(), this.creditManagerAddr), - qn = new MarsParamsQueryClient(await this.getClient(), this.paramsAddr) - return ( - await Promise.all( - gn.vaults.map(async (Kn) => { - ;(In.vault_values[Kn.vault.address] = await Jn.vaultPositionValue({ - vaultPosition: Kn, - })), - (In.vault_configs[Kn.vault.address] = await qn.vaultConfig({ - address: Kn.vault.address, - })) - }), - ), - In - ) - }), - (this.assembleComputer = async (gn) => { - const In = await this.fetchPositions(gn), - [Jn, qn] = await Promise.all([this.fetchDenomsData(In), this.fetchVaultsData(In)]) - return { positions: In, denoms_data: Jn, vaults_data: qn, kind: 'default' } - }), - (this.computeHealth = async (gn) => { - const In = await this.assembleComputer(gn) - return this.computeHealthFn(In) - }), - (this.maxWithdrawAmount = async (gn, In) => { - const Jn = await this.assembleComputer(gn), - qn = this.maxWithdrawFn(Jn, In) - return parseInt(qn) - }), - (this.maxBorrowAmount = async (gn, In, Jn) => { - const qn = await this.assembleComputer(gn), - Kn = this.maxBorrowFn(qn, In, Jn) - return parseInt(Kn) - }) - } -} -const getFetcher = (e) => - new DataFetcher( - compute_health_js, - max_withdraw_estimate_js, - max_borrow_estimate_js, - e, - oracle, - params$1, - 'https://rpc.devnet.osmosis.zone', - ), - fetchPositions = async (e, o) => await getFetcher(e).fetchPositions(o), - fetchHealth = async (e, o) => (await __wbg_init(), await getFetcher(e).computeHealth(o)) -var mainExports = {}, - main = { - get exports() { - return mainExports - }, - set exports(e) { - mainExports = e - }, - } -;(function (e, o) { - ;(function (_, b) { - e.exports = b(reactExports) - })(commonjsGlobal, function (_) { - return (function (b) { - var $ = {} - function en(nn) { - if ($[nn]) return $[nn].exports - var sn = ($[nn] = { i: nn, l: !1, exports: {} }) - return b[nn].call(sn.exports, sn, sn.exports, en), (sn.l = !0), sn.exports - } - return ( - (en.m = b), - (en.c = $), - (en.d = function (nn, sn, gn) { - en.o(nn, sn) || Object.defineProperty(nn, sn, { enumerable: !0, get: gn }) - }), - (en.r = function (nn) { - typeof Symbol < 'u' && - Symbol.toStringTag && - Object.defineProperty(nn, Symbol.toStringTag, { value: 'Module' }), - Object.defineProperty(nn, '__esModule', { value: !0 }) - }), - (en.t = function (nn, sn) { - if ( - (1 & sn && (nn = en(nn)), - 8 & sn || (4 & sn && typeof nn == 'object' && nn && nn.__esModule)) - ) - return nn - var gn = Object.create(null) - if ( - (en.r(gn), - Object.defineProperty(gn, 'default', { enumerable: !0, value: nn }), - 2 & sn && typeof nn != 'string') - ) - for (var In in nn) - en.d( - gn, - In, - function (Jn) { - return nn[Jn] - }.bind(null, In), - ) - return gn - }), - (en.n = function (nn) { - var sn = - nn && nn.__esModule - ? function () { - return nn.default - } - : function () { - return nn - } - return en.d(sn, 'a', sn), sn - }), - (en.o = function (nn, sn) { - return Object.prototype.hasOwnProperty.call(nn, sn) - }), - (en.p = ''), - en((en.s = 48)) - ) - })([ - function (b, $) { - b.exports = _ - }, - function (b, $) { - var en = (b.exports = { version: '2.6.12' }) - typeof __e == 'number' && (__e = en) - }, - function (b, $, en) { - var nn = en(26)('wks'), - sn = en(17), - gn = en(3).Symbol, - In = typeof gn == 'function' - ;(b.exports = function (Jn) { - return nn[Jn] || (nn[Jn] = (In && gn[Jn]) || (In ? gn : sn)('Symbol.' + Jn)) - }).store = nn - }, - function (b, $) { - var en = (b.exports = - typeof window < 'u' && window.Math == Math - ? window - : typeof self < 'u' && self.Math == Math - ? self - : Function('return this')()) - typeof __g == 'number' && (__g = en) - }, - function (b, $, en) { - b.exports = !en(8)(function () { - return ( - Object.defineProperty({}, 'a', { - get: function () { - return 7 - }, - }).a != 7 - ) - }) - }, - function (b, $) { - var en = {}.hasOwnProperty - b.exports = function (nn, sn) { - return en.call(nn, sn) - } - }, - function (b, $, en) { - var nn = en(7), - sn = en(16) - b.exports = en(4) - ? function (gn, In, Jn) { - return nn.f(gn, In, sn(1, Jn)) - } - : function (gn, In, Jn) { - return (gn[In] = Jn), gn - } - }, - function (b, $, en) { - var nn = en(10), - sn = en(35), - gn = en(23), - In = Object.defineProperty - $.f = en(4) - ? Object.defineProperty - : function (Jn, qn, Kn) { - if ((nn(Jn), (qn = gn(qn, !0)), nn(Kn), sn)) - try { - return In(Jn, qn, Kn) - } catch {} - if ('get' in Kn || 'set' in Kn) throw TypeError('Accessors not supported!') - return 'value' in Kn && (Jn[qn] = Kn.value), Jn - } - }, - function (b, $) { - b.exports = function (en) { - try { - return !!en() - } catch { - return !0 - } - } - }, - function (b, $, en) { - var nn = en(40), - sn = en(22) - b.exports = function (gn) { - return nn(sn(gn)) - } - }, - function (b, $, en) { - var nn = en(11) - b.exports = function (sn) { - if (!nn(sn)) throw TypeError(sn + ' is not an object!') - return sn - } - }, - function (b, $) { - b.exports = function (en) { - return typeof en == 'object' ? en !== null : typeof en == 'function' - } - }, - function (b, $) { - b.exports = {} - }, - function (b, $, en) { - var nn = en(39), - sn = en(27) - b.exports = - Object.keys || - function (gn) { - return nn(gn, sn) - } - }, - function (b, $) { - b.exports = !0 - }, - function (b, $, en) { - var nn = en(3), - sn = en(1), - gn = en(53), - In = en(6), - Jn = en(5), - qn = function (Kn, an, xn) { - var mn, - Bn, - kn, - ln = Kn & qn.F, - yn = Kn & qn.G, - Cn = Kn & qn.S, - Tn = Kn & qn.P, - Gn = Kn & qn.B, - Sn = Kn & qn.W, - Zn = yn ? sn : sn[an] || (sn[an] = {}), - tn = Zn.prototype, - En = yn ? nn : Cn ? nn[an] : (nn[an] || {}).prototype - for (mn in (yn && (xn = an), xn)) - ((Bn = !ln && En && En[mn] !== void 0) && Jn(Zn, mn)) || - ((kn = Bn ? En[mn] : xn[mn]), - (Zn[mn] = - yn && typeof En[mn] != 'function' - ? xn[mn] - : Gn && Bn - ? gn(kn, nn) - : Sn && En[mn] == kn - ? (function (Mn) { - var Hn = function (un, dn, Nn) { - if (this instanceof Mn) { - switch (arguments.length) { - case 0: - return new Mn() - case 1: - return new Mn(un) - case 2: - return new Mn(un, dn) - } - return new Mn(un, dn, Nn) - } - return Mn.apply(this, arguments) - } - return (Hn.prototype = Mn.prototype), Hn - })(kn) - : Tn && typeof kn == 'function' - ? gn(Function.call, kn) - : kn), - Tn && - (((Zn.virtual || (Zn.virtual = {}))[mn] = kn), - Kn & qn.R && tn && !tn[mn] && In(tn, mn, kn))) - } - ;(qn.F = 1), - (qn.G = 2), - (qn.S = 4), - (qn.P = 8), - (qn.B = 16), - (qn.W = 32), - (qn.U = 64), - (qn.R = 128), - (b.exports = qn) - }, - function (b, $) { - b.exports = function (en, nn) { - return { enumerable: !(1 & en), configurable: !(2 & en), writable: !(4 & en), value: nn } - } - }, - function (b, $) { - var en = 0, - nn = Math.random() - b.exports = function (sn) { - return 'Symbol('.concat(sn === void 0 ? '' : sn, ')_', (++en + nn).toString(36)) - } - }, - function (b, $, en) { - var nn = en(22) - b.exports = function (sn) { - return Object(nn(sn)) - } - }, - function (b, $) { - $.f = {}.propertyIsEnumerable - }, - function (b, $, en) { - var nn = en(52)(!0) - en(34)( - String, - 'String', - function (sn) { - ;(this._t = String(sn)), (this._i = 0) - }, - function () { - var sn, - gn = this._t, - In = this._i - return In >= gn.length - ? { value: void 0, done: !0 } - : ((sn = nn(gn, In)), (this._i += sn.length), { value: sn, done: !1 }) - }, - ) - }, - function (b, $) { - var en = Math.ceil, - nn = Math.floor - b.exports = function (sn) { - return isNaN((sn = +sn)) ? 0 : (sn > 0 ? nn : en)(sn) - } - }, - function (b, $) { - b.exports = function (en) { - if (en == null) throw TypeError("Can't call method on " + en) - return en - } - }, - function (b, $, en) { - var nn = en(11) - b.exports = function (sn, gn) { - if (!nn(sn)) return sn - var In, Jn - if ( - (gn && typeof (In = sn.toString) == 'function' && !nn((Jn = In.call(sn)))) || - (typeof (In = sn.valueOf) == 'function' && !nn((Jn = In.call(sn)))) || - (!gn && typeof (In = sn.toString) == 'function' && !nn((Jn = In.call(sn)))) - ) - return Jn - throw TypeError("Can't convert object to primitive value") - } - }, - function (b, $) { - var en = {}.toString - b.exports = function (nn) { - return en.call(nn).slice(8, -1) - } - }, - function (b, $, en) { - var nn = en(26)('keys'), - sn = en(17) - b.exports = function (gn) { - return nn[gn] || (nn[gn] = sn(gn)) - } - }, - function (b, $, en) { - var nn = en(1), - sn = en(3), - gn = sn['__core-js_shared__'] || (sn['__core-js_shared__'] = {}) - ;(b.exports = function (In, Jn) { - return gn[In] || (gn[In] = Jn !== void 0 ? Jn : {}) - })('versions', []).push({ - version: nn.version, - mode: en(14) ? 'pure' : 'global', - copyright: '© 2020 Denis Pushkarev (zloirock.ru)', - }) - }, - function (b, $) { - b.exports = - 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( - ',', - ) - }, - function (b, $, en) { - var nn = en(7).f, - sn = en(5), - gn = en(2)('toStringTag') - b.exports = function (In, Jn, qn) { - In && - !sn((In = qn ? In : In.prototype), gn) && - nn(In, gn, { configurable: !0, value: Jn }) - } - }, - function (b, $, en) { - en(62) - for ( - var nn = en(3), - sn = en(6), - gn = en(12), - In = en(2)('toStringTag'), - Jn = - 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( - ',', - ), - qn = 0; - qn < Jn.length; - qn++ - ) { - var Kn = Jn[qn], - an = nn[Kn], - xn = an && an.prototype - xn && !xn[In] && sn(xn, In, Kn), (gn[Kn] = gn.Array) - } - }, - function (b, $, en) { - $.f = en(2) - }, - function (b, $, en) { - var nn = en(3), - sn = en(1), - gn = en(14), - In = en(30), - Jn = en(7).f - b.exports = function (qn) { - var Kn = sn.Symbol || (sn.Symbol = gn ? {} : nn.Symbol || {}) - qn.charAt(0) == '_' || qn in Kn || Jn(Kn, qn, { value: In.f(qn) }) - } - }, - function (b, $) { - $.f = Object.getOwnPropertySymbols - }, - function (b, $) { - b.exports = function (en, nn, sn) { - return Math.min(Math.max(en, nn), sn) - } - }, - function (b, $, en) { - var nn = en(14), - sn = en(15), - gn = en(37), - In = en(6), - Jn = en(12), - qn = en(55), - Kn = en(28), - an = en(61), - xn = en(2)('iterator'), - mn = !([].keys && 'next' in [].keys()), - Bn = function () { - return this - } - b.exports = function (kn, ln, yn, Cn, Tn, Gn, Sn) { - qn(yn, ln, Cn) - var Zn, - tn, - En, - Mn = function (Fn) { - if (!mn && Fn in Nn) return Nn[Fn] - switch (Fn) { - case 'keys': - case 'values': - return function () { - return new yn(this, Fn) - } - } - return function () { - return new yn(this, Fn) - } - }, - Hn = ln + ' Iterator', - un = Tn == 'values', - dn = !1, - Nn = kn.prototype, - fn = Nn[xn] || Nn['@@iterator'] || (Tn && Nn[Tn]), - _n = fn || Mn(Tn), - Ln = Tn ? (un ? Mn('entries') : _n) : void 0, - zn = (ln == 'Array' && Nn.entries) || fn - if ( - (zn && - (En = an(zn.call(new kn()))) !== Object.prototype && - En.next && - (Kn(En, Hn, !0), nn || typeof En[xn] == 'function' || In(En, xn, Bn)), - un && - fn && - fn.name !== 'values' && - ((dn = !0), - (_n = function () { - return fn.call(this) - })), - (nn && !Sn) || (!mn && !dn && Nn[xn]) || In(Nn, xn, _n), - (Jn[ln] = _n), - (Jn[Hn] = Bn), - Tn) - ) - if ( - ((Zn = { values: un ? _n : Mn('values'), keys: Gn ? _n : Mn('keys'), entries: Ln }), - Sn) - ) - for (tn in Zn) tn in Nn || gn(Nn, tn, Zn[tn]) - else sn(sn.P + sn.F * (mn || dn), ln, Zn) - return Zn - } - }, - function (b, $, en) { - b.exports = - !en(4) && - !en(8)(function () { - return ( - Object.defineProperty(en(36)('div'), 'a', { - get: function () { - return 7 - }, - }).a != 7 - ) - }) - }, - function (b, $, en) { - var nn = en(11), - sn = en(3).document, - gn = nn(sn) && nn(sn.createElement) - b.exports = function (In) { - return gn ? sn.createElement(In) : {} - } - }, - function (b, $, en) { - b.exports = en(6) - }, - function (b, $, en) { - var nn = en(10), - sn = en(56), - gn = en(27), - In = en(25)('IE_PROTO'), - Jn = function () {}, - qn = function () { - var Kn, - an = en(36)('iframe'), - xn = gn.length - for ( - an.style.display = 'none', - en(60).appendChild(an), - an.src = 'javascript:', - (Kn = an.contentWindow.document).open(), - Kn.write(''), - Kn.close(), - qn = Kn.F; - xn--; - - ) - delete qn.prototype[gn[xn]] - return qn() - } - b.exports = - Object.create || - function (Kn, an) { - var xn - return ( - Kn !== null - ? ((Jn.prototype = nn(Kn)), (xn = new Jn()), (Jn.prototype = null), (xn[In] = Kn)) - : (xn = qn()), - an === void 0 ? xn : sn(xn, an) - ) - } - }, - function (b, $, en) { - var nn = en(5), - sn = en(9), - gn = en(57)(!1), - In = en(25)('IE_PROTO') - b.exports = function (Jn, qn) { - var Kn, - an = sn(Jn), - xn = 0, - mn = [] - for (Kn in an) Kn != In && nn(an, Kn) && mn.push(Kn) - for (; qn.length > xn; ) nn(an, (Kn = qn[xn++])) && (~gn(mn, Kn) || mn.push(Kn)) - return mn - } - }, - function (b, $, en) { - var nn = en(24) - b.exports = Object('z').propertyIsEnumerable(0) - ? Object - : function (sn) { - return nn(sn) == 'String' ? sn.split('') : Object(sn) - } - }, - function (b, $, en) { - var nn = en(39), - sn = en(27).concat('length', 'prototype') - $.f = - Object.getOwnPropertyNames || - function (gn) { - return nn(gn, sn) - } - }, - function (b, $, en) { - var nn = en(24), - sn = en(2)('toStringTag'), - gn = - nn( - (function () { - return arguments - })(), - ) == 'Arguments' - b.exports = function (In) { - var Jn, qn, Kn - return In === void 0 - ? 'Undefined' - : In === null - ? 'Null' - : typeof (qn = (function (an, xn) { - try { - return an[xn] - } catch {} - })((Jn = Object(In)), sn)) == 'string' - ? qn - : gn - ? nn(Jn) - : (Kn = nn(Jn)) == 'Object' && typeof Jn.callee == 'function' - ? 'Arguments' - : Kn - } - }, - function (b, $) { - var en - en = (function () { - return this - })() - try { - en = en || new Function('return this')() - } catch { - typeof window == 'object' && (en = window) - } - b.exports = en - }, - function (b, $) { - var en = /-?\d+(\.\d+)?%?/g - b.exports = function (nn) { - return nn.match(en) - } - }, - function (b, $, en) { - Object.defineProperty($, '__esModule', { value: !0 }), - ($.getBase16Theme = $.createStyling = $.invertTheme = void 0) - var nn = Bn(en(49)), - sn = Bn(en(76)), - gn = Bn(en(81)), - In = Bn(en(89)), - Jn = Bn(en(93)), - qn = (function (tn) { - if (tn && tn.__esModule) return tn - var En = {} - if (tn != null) - for (var Mn in tn) Object.prototype.hasOwnProperty.call(tn, Mn) && (En[Mn] = tn[Mn]) - return (En.default = tn), En - })(en(94)), - Kn = Bn(en(132)), - an = Bn(en(133)), - xn = Bn(en(138)), - mn = en(139) - function Bn(tn) { - return tn && tn.__esModule ? tn : { default: tn } - } - var kn = qn.default, - ln = (0, In.default)(kn), - yn = (0, xn.default)( - an.default, - mn.rgb2yuv, - function (tn) { - var En, - Mn = (0, gn.default)(tn, 3), - Hn = Mn[0], - un = Mn[1], - dn = Mn[2] - return [((En = Hn), En < 0.25 ? 1 : En < 0.5 ? 0.9 - En : 1.1 - En), un, dn] - }, - mn.yuv2rgb, - Kn.default, - ), - Cn = function (tn) { - return function (En) { - return { - className: [En.className, tn.className].filter(Boolean).join(' '), - style: (0, sn.default)({}, En.style || {}, tn.style || {}), - } - } - }, - Tn = function (tn, En) { - var Mn = (0, In.default)(En) - for (var Hn in tn) Mn.indexOf(Hn) === -1 && Mn.push(Hn) - return Mn.reduce(function (un, dn) { - return ( - (un[dn] = (function (Nn, fn) { - if (Nn === void 0) return fn - if (fn === void 0) return Nn - var _n = Nn === void 0 ? 'undefined' : (0, nn.default)(Nn), - Ln = fn === void 0 ? 'undefined' : (0, nn.default)(fn) - switch (_n) { - case 'string': - switch (Ln) { - case 'string': - return [fn, Nn].filter(Boolean).join(' ') - case 'object': - return Cn({ className: Nn, style: fn }) - case 'function': - return function (zn) { - for ( - var Fn = arguments.length, An = Array(Fn > 1 ? Fn - 1 : 0), Qn = 1; - Qn < Fn; - Qn++ - ) - An[Qn - 1] = arguments[Qn] - return Cn({ className: Nn })(fn.apply(void 0, [zn].concat(An))) - } - } - case 'object': - switch (Ln) { - case 'string': - return Cn({ className: fn, style: Nn }) - case 'object': - return (0, sn.default)({}, fn, Nn) - case 'function': - return function (zn) { - for ( - var Fn = arguments.length, An = Array(Fn > 1 ? Fn - 1 : 0), Qn = 1; - Qn < Fn; - Qn++ - ) - An[Qn - 1] = arguments[Qn] - return Cn({ style: Nn })(fn.apply(void 0, [zn].concat(An))) - } - } - case 'function': - switch (Ln) { - case 'string': - return function (zn) { - for ( - var Fn = arguments.length, An = Array(Fn > 1 ? Fn - 1 : 0), Qn = 1; - Qn < Fn; - Qn++ - ) - An[Qn - 1] = arguments[Qn] - return Nn.apply(void 0, [Cn(zn)({ className: fn })].concat(An)) - } - case 'object': - return function (zn) { - for ( - var Fn = arguments.length, An = Array(Fn > 1 ? Fn - 1 : 0), Qn = 1; - Qn < Fn; - Qn++ - ) - An[Qn - 1] = arguments[Qn] - return Nn.apply(void 0, [Cn(zn)({ style: fn })].concat(An)) - } - case 'function': - return function (zn) { - for ( - var Fn = arguments.length, An = Array(Fn > 1 ? Fn - 1 : 0), Qn = 1; - Qn < Fn; - Qn++ - ) - An[Qn - 1] = arguments[Qn] - return Nn.apply(void 0, [fn.apply(void 0, [zn].concat(An))].concat(An)) - } - } - } - })(tn[dn], En[dn])), - un - ) - }, {}) - }, - Gn = function (tn, En) { - for (var Mn = arguments.length, Hn = Array(Mn > 2 ? Mn - 2 : 0), un = 2; un < Mn; un++) - Hn[un - 2] = arguments[un] - if (En === null) return tn - Array.isArray(En) || (En = [En]) - var dn = En.map(function (fn) { - return tn[fn] - }).filter(Boolean), - Nn = dn.reduce( - function (fn, _n) { - return ( - typeof _n == 'string' - ? (fn.className = [fn.className, _n].filter(Boolean).join(' ')) - : (_n === void 0 ? 'undefined' : (0, nn.default)(_n)) === 'object' - ? (fn.style = (0, sn.default)({}, fn.style, _n)) - : typeof _n == 'function' && - (fn = (0, sn.default)({}, fn, _n.apply(void 0, [fn].concat(Hn)))), - fn - ) - }, - { className: '', style: {} }, - ) - return ( - Nn.className || delete Nn.className, - (0, In.default)(Nn.style).length === 0 && delete Nn.style, - Nn - ) - }, - Sn = ($.invertTheme = function (tn) { - return (0, In.default)(tn).reduce(function (En, Mn) { - return ( - (En[Mn] = /^base/.test(Mn) - ? yn(tn[Mn]) - : Mn === 'scheme' - ? tn[Mn] + ':inverted' - : tn[Mn]), - En - ) - }, {}) - }), - Zn = - (($.createStyling = (0, Jn.default)(function (tn) { - for ( - var En = arguments.length, Mn = Array(En > 3 ? En - 3 : 0), Hn = 3; - Hn < En; - Hn++ - ) - Mn[Hn - 3] = arguments[Hn] - var un = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, - dn = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, - Nn = un.defaultBase16, - fn = Nn === void 0 ? kn : Nn, - _n = un.base16Themes, - Ln = _n === void 0 ? null : _n, - zn = Zn(dn, Ln) - zn && (dn = (0, sn.default)({}, zn, dn)) - var Fn = ln.reduce(function (Vn, Wn) { - return (Vn[Wn] = dn[Wn] || fn[Wn]), Vn - }, {}), - An = (0, In.default)(dn).reduce(function (Vn, Wn) { - return ln.indexOf(Wn) === -1 && (Vn[Wn] = dn[Wn]), Vn - }, {}), - Qn = tn(Fn), - Rn = Tn(An, Qn) - return (0, Jn.default)(Gn, 2).apply(void 0, [Rn].concat(Mn)) - }, 3)), - ($.getBase16Theme = function (tn, En) { - if ((tn && tn.extend && (tn = tn.extend), typeof tn == 'string')) { - var Mn = tn.split(':'), - Hn = (0, gn.default)(Mn, 2), - un = Hn[0], - dn = Hn[1] - ;(tn = (En || {})[un] || qn[un]), dn === 'inverted' && (tn = Sn(tn)) - } - return tn && tn.hasOwnProperty('base00') ? tn : void 0 - })) - }, - function (b, $, en) { - var nn, - sn = typeof Reflect == 'object' ? Reflect : null, - gn = - sn && typeof sn.apply == 'function' - ? sn.apply - : function (Cn, Tn, Gn) { - return Function.prototype.apply.call(Cn, Tn, Gn) - } - nn = - sn && typeof sn.ownKeys == 'function' - ? sn.ownKeys - : Object.getOwnPropertySymbols - ? function (Cn) { - return Object.getOwnPropertyNames(Cn).concat(Object.getOwnPropertySymbols(Cn)) - } - : function (Cn) { - return Object.getOwnPropertyNames(Cn) - } - var In = - Number.isNaN || - function (Cn) { - return Cn != Cn - } - function Jn() { - Jn.init.call(this) - } - ;(b.exports = Jn), - (b.exports.once = function (Cn, Tn) { - return new Promise(function (Gn, Sn) { - function Zn() { - tn !== void 0 && Cn.removeListener('error', tn), Gn([].slice.call(arguments)) - } - var tn - Tn !== 'error' && - ((tn = function (En) { - Cn.removeListener(Tn, Zn), Sn(En) - }), - Cn.once('error', tn)), - Cn.once(Tn, Zn) - }) - }), - (Jn.EventEmitter = Jn), - (Jn.prototype._events = void 0), - (Jn.prototype._eventsCount = 0), - (Jn.prototype._maxListeners = void 0) - var qn = 10 - function Kn(Cn) { - if (typeof Cn != 'function') - throw new TypeError( - 'The "listener" argument must be of type Function. Received type ' + typeof Cn, - ) - } - function an(Cn) { - return Cn._maxListeners === void 0 ? Jn.defaultMaxListeners : Cn._maxListeners - } - function xn(Cn, Tn, Gn, Sn) { - var Zn, tn, En, Mn - if ( - (Kn(Gn), - (tn = Cn._events) === void 0 - ? ((tn = Cn._events = Object.create(null)), (Cn._eventsCount = 0)) - : (tn.newListener !== void 0 && - (Cn.emit('newListener', Tn, Gn.listener ? Gn.listener : Gn), (tn = Cn._events)), - (En = tn[Tn])), - En === void 0) - ) - (En = tn[Tn] = Gn), ++Cn._eventsCount - else if ( - (typeof En == 'function' - ? (En = tn[Tn] = Sn ? [Gn, En] : [En, Gn]) - : Sn - ? En.unshift(Gn) - : En.push(Gn), - (Zn = an(Cn)) > 0 && En.length > Zn && !En.warned) - ) { - En.warned = !0 - var Hn = new Error( - 'Possible EventEmitter memory leak detected. ' + - En.length + - ' ' + - String(Tn) + - ' listeners added. Use emitter.setMaxListeners() to increase limit', - ) - ;(Hn.name = 'MaxListenersExceededWarning'), - (Hn.emitter = Cn), - (Hn.type = Tn), - (Hn.count = En.length), - (Mn = Hn), - console && console.warn && console.warn(Mn) - } - return Cn - } - function mn() { - if (!this.fired) - return ( - this.target.removeListener(this.type, this.wrapFn), - (this.fired = !0), - arguments.length === 0 - ? this.listener.call(this.target) - : this.listener.apply(this.target, arguments) - ) - } - function Bn(Cn, Tn, Gn) { - var Sn = { fired: !1, wrapFn: void 0, target: Cn, type: Tn, listener: Gn }, - Zn = mn.bind(Sn) - return (Zn.listener = Gn), (Sn.wrapFn = Zn), Zn - } - function kn(Cn, Tn, Gn) { - var Sn = Cn._events - if (Sn === void 0) return [] - var Zn = Sn[Tn] - return Zn === void 0 - ? [] - : typeof Zn == 'function' - ? Gn - ? [Zn.listener || Zn] - : [Zn] - : Gn - ? (function (tn) { - for (var En = new Array(tn.length), Mn = 0; Mn < En.length; ++Mn) - En[Mn] = tn[Mn].listener || tn[Mn] - return En - })(Zn) - : yn(Zn, Zn.length) - } - function ln(Cn) { - var Tn = this._events - if (Tn !== void 0) { - var Gn = Tn[Cn] - if (typeof Gn == 'function') return 1 - if (Gn !== void 0) return Gn.length - } - return 0 - } - function yn(Cn, Tn) { - for (var Gn = new Array(Tn), Sn = 0; Sn < Tn; ++Sn) Gn[Sn] = Cn[Sn] - return Gn - } - Object.defineProperty(Jn, 'defaultMaxListeners', { - enumerable: !0, - get: function () { - return qn - }, - set: function (Cn) { - if (typeof Cn != 'number' || Cn < 0 || In(Cn)) - throw new RangeError( - 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + - Cn + - '.', - ) - qn = Cn - }, - }), - (Jn.init = function () { - ;(this._events !== void 0 && this._events !== Object.getPrototypeOf(this)._events) || - ((this._events = Object.create(null)), (this._eventsCount = 0)), - (this._maxListeners = this._maxListeners || void 0) - }), - (Jn.prototype.setMaxListeners = function (Cn) { - if (typeof Cn != 'number' || Cn < 0 || In(Cn)) - throw new RangeError( - 'The value of "n" is out of range. It must be a non-negative number. Received ' + - Cn + - '.', - ) - return (this._maxListeners = Cn), this - }), - (Jn.prototype.getMaxListeners = function () { - return an(this) - }), - (Jn.prototype.emit = function (Cn) { - for (var Tn = [], Gn = 1; Gn < arguments.length; Gn++) Tn.push(arguments[Gn]) - var Sn = Cn === 'error', - Zn = this._events - if (Zn !== void 0) Sn = Sn && Zn.error === void 0 - else if (!Sn) return !1 - if (Sn) { - var tn - if ((Tn.length > 0 && (tn = Tn[0]), tn instanceof Error)) throw tn - var En = new Error('Unhandled error.' + (tn ? ' (' + tn.message + ')' : '')) - throw ((En.context = tn), En) - } - var Mn = Zn[Cn] - if (Mn === void 0) return !1 - if (typeof Mn == 'function') gn(Mn, this, Tn) - else { - var Hn = Mn.length, - un = yn(Mn, Hn) - for (Gn = 0; Gn < Hn; ++Gn) gn(un[Gn], this, Tn) - } - return !0 - }), - (Jn.prototype.addListener = function (Cn, Tn) { - return xn(this, Cn, Tn, !1) - }), - (Jn.prototype.on = Jn.prototype.addListener), - (Jn.prototype.prependListener = function (Cn, Tn) { - return xn(this, Cn, Tn, !0) - }), - (Jn.prototype.once = function (Cn, Tn) { - return Kn(Tn), this.on(Cn, Bn(this, Cn, Tn)), this - }), - (Jn.prototype.prependOnceListener = function (Cn, Tn) { - return Kn(Tn), this.prependListener(Cn, Bn(this, Cn, Tn)), this - }), - (Jn.prototype.removeListener = function (Cn, Tn) { - var Gn, Sn, Zn, tn, En - if ((Kn(Tn), (Sn = this._events) === void 0)) return this - if ((Gn = Sn[Cn]) === void 0) return this - if (Gn === Tn || Gn.listener === Tn) - --this._eventsCount == 0 - ? (this._events = Object.create(null)) - : (delete Sn[Cn], - Sn.removeListener && this.emit('removeListener', Cn, Gn.listener || Tn)) - else if (typeof Gn != 'function') { - for (Zn = -1, tn = Gn.length - 1; tn >= 0; tn--) - if (Gn[tn] === Tn || Gn[tn].listener === Tn) { - ;(En = Gn[tn].listener), (Zn = tn) - break - } - if (Zn < 0) return this - Zn === 0 - ? Gn.shift() - : (function (Mn, Hn) { - for (; Hn + 1 < Mn.length; Hn++) Mn[Hn] = Mn[Hn + 1] - Mn.pop() - })(Gn, Zn), - Gn.length === 1 && (Sn[Cn] = Gn[0]), - Sn.removeListener !== void 0 && this.emit('removeListener', Cn, En || Tn) - } - return this - }), - (Jn.prototype.off = Jn.prototype.removeListener), - (Jn.prototype.removeAllListeners = function (Cn) { - var Tn, Gn, Sn - if ((Gn = this._events) === void 0) return this - if (Gn.removeListener === void 0) - return ( - arguments.length === 0 - ? ((this._events = Object.create(null)), (this._eventsCount = 0)) - : Gn[Cn] !== void 0 && - (--this._eventsCount == 0 - ? (this._events = Object.create(null)) - : delete Gn[Cn]), - this - ) - if (arguments.length === 0) { - var Zn, - tn = Object.keys(Gn) - for (Sn = 0; Sn < tn.length; ++Sn) - (Zn = tn[Sn]) !== 'removeListener' && this.removeAllListeners(Zn) - return ( - this.removeAllListeners('removeListener'), - (this._events = Object.create(null)), - (this._eventsCount = 0), - this - ) - } - if (typeof (Tn = Gn[Cn]) == 'function') this.removeListener(Cn, Tn) - else if (Tn !== void 0) - for (Sn = Tn.length - 1; Sn >= 0; Sn--) this.removeListener(Cn, Tn[Sn]) - return this - }), - (Jn.prototype.listeners = function (Cn) { - return kn(this, Cn, !0) - }), - (Jn.prototype.rawListeners = function (Cn) { - return kn(this, Cn, !1) - }), - (Jn.listenerCount = function (Cn, Tn) { - return typeof Cn.listenerCount == 'function' ? Cn.listenerCount(Tn) : ln.call(Cn, Tn) - }), - (Jn.prototype.listenerCount = ln), - (Jn.prototype.eventNames = function () { - return this._eventsCount > 0 ? nn(this._events) : [] - }) - }, - function (b, $, en) { - b.exports.Dispatcher = en(140) - }, - function (b, $, en) { - b.exports = en(142) - }, - function (b, $, en) { - $.__esModule = !0 - var nn = In(en(50)), - sn = In(en(65)), - gn = - typeof sn.default == 'function' && typeof nn.default == 'symbol' - ? function (Jn) { - return typeof Jn - } - : function (Jn) { - return Jn && - typeof sn.default == 'function' && - Jn.constructor === sn.default && - Jn !== sn.default.prototype - ? 'symbol' - : typeof Jn - } - function In(Jn) { - return Jn && Jn.__esModule ? Jn : { default: Jn } - } - $.default = - typeof sn.default == 'function' && gn(nn.default) === 'symbol' - ? function (Jn) { - return Jn === void 0 ? 'undefined' : gn(Jn) - } - : function (Jn) { - return Jn && - typeof sn.default == 'function' && - Jn.constructor === sn.default && - Jn !== sn.default.prototype - ? 'symbol' - : Jn === void 0 - ? 'undefined' - : gn(Jn) - } - }, - function (b, $, en) { - b.exports = { default: en(51), __esModule: !0 } - }, - function (b, $, en) { - en(20), en(29), (b.exports = en(30).f('iterator')) - }, - function (b, $, en) { - var nn = en(21), - sn = en(22) - b.exports = function (gn) { - return function (In, Jn) { - var qn, - Kn, - an = String(sn(In)), - xn = nn(Jn), - mn = an.length - return xn < 0 || xn >= mn - ? gn - ? '' - : void 0 - : (qn = an.charCodeAt(xn)) < 55296 || - qn > 56319 || - xn + 1 === mn || - (Kn = an.charCodeAt(xn + 1)) < 56320 || - Kn > 57343 - ? gn - ? an.charAt(xn) - : qn - : gn - ? an.slice(xn, xn + 2) - : Kn - 56320 + ((qn - 55296) << 10) + 65536 - } - } - }, - function (b, $, en) { - var nn = en(54) - b.exports = function (sn, gn, In) { - if ((nn(sn), gn === void 0)) return sn - switch (In) { - case 1: - return function (Jn) { - return sn.call(gn, Jn) - } - case 2: - return function (Jn, qn) { - return sn.call(gn, Jn, qn) - } - case 3: - return function (Jn, qn, Kn) { - return sn.call(gn, Jn, qn, Kn) - } - } - return function () { - return sn.apply(gn, arguments) - } - } - }, - function (b, $) { - b.exports = function (en) { - if (typeof en != 'function') throw TypeError(en + ' is not a function!') - return en - } - }, - function (b, $, en) { - var nn = en(38), - sn = en(16), - gn = en(28), - In = {} - en(6)(In, en(2)('iterator'), function () { - return this - }), - (b.exports = function (Jn, qn, Kn) { - ;(Jn.prototype = nn(In, { next: sn(1, Kn) })), gn(Jn, qn + ' Iterator') - }) - }, - function (b, $, en) { - var nn = en(7), - sn = en(10), - gn = en(13) - b.exports = en(4) - ? Object.defineProperties - : function (In, Jn) { - sn(In) - for (var qn, Kn = gn(Jn), an = Kn.length, xn = 0; an > xn; ) - nn.f(In, (qn = Kn[xn++]), Jn[qn]) - return In - } - }, - function (b, $, en) { - var nn = en(9), - sn = en(58), - gn = en(59) - b.exports = function (In) { - return function (Jn, qn, Kn) { - var an, - xn = nn(Jn), - mn = sn(xn.length), - Bn = gn(Kn, mn) - if (In && qn != qn) { - for (; mn > Bn; ) if ((an = xn[Bn++]) != an) return !0 - } else for (; mn > Bn; Bn++) if ((In || Bn in xn) && xn[Bn] === qn) return In || Bn || 0 - return !In && -1 - } - } - }, - function (b, $, en) { - var nn = en(21), - sn = Math.min - b.exports = function (gn) { - return gn > 0 ? sn(nn(gn), 9007199254740991) : 0 - } - }, - function (b, $, en) { - var nn = en(21), - sn = Math.max, - gn = Math.min - b.exports = function (In, Jn) { - return (In = nn(In)) < 0 ? sn(In + Jn, 0) : gn(In, Jn) - } - }, - function (b, $, en) { - var nn = en(3).document - b.exports = nn && nn.documentElement - }, - function (b, $, en) { - var nn = en(5), - sn = en(18), - gn = en(25)('IE_PROTO'), - In = Object.prototype - b.exports = - Object.getPrototypeOf || - function (Jn) { - return ( - (Jn = sn(Jn)), - nn(Jn, gn) - ? Jn[gn] - : typeof Jn.constructor == 'function' && Jn instanceof Jn.constructor - ? Jn.constructor.prototype - : Jn instanceof Object - ? In - : null - ) - } - }, - function (b, $, en) { - var nn = en(63), - sn = en(64), - gn = en(12), - In = en(9) - ;(b.exports = en(34)( - Array, - 'Array', - function (Jn, qn) { - ;(this._t = In(Jn)), (this._i = 0), (this._k = qn) - }, - function () { - var Jn = this._t, - qn = this._k, - Kn = this._i++ - return !Jn || Kn >= Jn.length - ? ((this._t = void 0), sn(1)) - : sn(0, qn == 'keys' ? Kn : qn == 'values' ? Jn[Kn] : [Kn, Jn[Kn]]) - }, - 'values', - )), - (gn.Arguments = gn.Array), - nn('keys'), - nn('values'), - nn('entries') - }, - function (b, $) { - b.exports = function () {} - }, - function (b, $) { - b.exports = function (en, nn) { - return { value: nn, done: !!en } - } - }, - function (b, $, en) { - b.exports = { default: en(66), __esModule: !0 } - }, - function (b, $, en) { - en(67), en(73), en(74), en(75), (b.exports = en(1).Symbol) - }, - function (b, $, en) { - var nn = en(3), - sn = en(5), - gn = en(4), - In = en(15), - Jn = en(37), - qn = en(68).KEY, - Kn = en(8), - an = en(26), - xn = en(28), - mn = en(17), - Bn = en(2), - kn = en(30), - ln = en(31), - yn = en(69), - Cn = en(70), - Tn = en(10), - Gn = en(11), - Sn = en(18), - Zn = en(9), - tn = en(23), - En = en(16), - Mn = en(38), - Hn = en(71), - un = en(72), - dn = en(32), - Nn = en(7), - fn = en(13), - _n = un.f, - Ln = Nn.f, - zn = Hn.f, - Fn = nn.Symbol, - An = nn.JSON, - Qn = An && An.stringify, - Rn = Bn('_hidden'), - Vn = Bn('toPrimitive'), - Wn = {}.propertyIsEnumerable, - ht = an('symbol-registry'), - Wt = an('symbols'), - zt = an('op-symbols'), - mr = Object.prototype, - Uo = typeof Fn == 'function' && !!dn.f, - Vo = nn.QObject, - ko = !Vo || !Vo.prototype || !Vo.prototype.findChild, - na = - gn && - Kn(function () { - return ( - Mn( - Ln({}, 'a', { - get: function () { - return Ln(this, 'a', { value: 7 }).a - }, - }), - ).a != 7 - ) - }) - ? function (vn, gr, Mr) { - var Or = _n(mr, gr) - Or && delete mr[gr], Ln(vn, gr, Mr), Or && vn !== mr && Ln(mr, gr, Or) - } - : Ln, - Yo = function (vn) { - var gr = (Wt[vn] = Mn(Fn.prototype)) - return (gr._k = vn), gr - }, - vo = - Uo && typeof Fn.iterator == 'symbol' - ? function (vn) { - return typeof vn == 'symbol' - } - : function (vn) { - return vn instanceof Fn - }, - Wo = function (vn, gr, Mr) { - return ( - vn === mr && Wo(zt, gr, Mr), - Tn(vn), - (gr = tn(gr, !0)), - Tn(Mr), - sn(Wt, gr) - ? (Mr.enumerable - ? (sn(vn, Rn) && vn[Rn][gr] && (vn[Rn][gr] = !1), - (Mr = Mn(Mr, { enumerable: En(0, !1) }))) - : (sn(vn, Rn) || Ln(vn, Rn, En(1, {})), (vn[Rn][gr] = !0)), - na(vn, gr, Mr)) - : Ln(vn, gr, Mr) - ) - }, - ba = function (vn, gr) { - Tn(vn) - for (var Mr, Or = yn((gr = Zn(gr))), _i = 0, eo = Or.length; eo > _i; ) - Wo(vn, (Mr = Or[_i++]), gr[Mr]) - return vn - }, - Co = function (vn) { - var gr = Wn.call(this, (vn = tn(vn, !0))) - return ( - !(this === mr && sn(Wt, vn) && !sn(zt, vn)) && - (!(gr || !sn(this, vn) || !sn(Wt, vn) || (sn(this, Rn) && this[Rn][vn])) || gr) - ) - }, - Ko = function (vn, gr) { - if (((vn = Zn(vn)), (gr = tn(gr, !0)), vn !== mr || !sn(Wt, gr) || sn(zt, gr))) { - var Mr = _n(vn, gr) - return !Mr || !sn(Wt, gr) || (sn(vn, Rn) && vn[Rn][gr]) || (Mr.enumerable = !0), Mr - } - }, - xa = function (vn) { - for (var gr, Mr = zn(Zn(vn)), Or = [], _i = 0; Mr.length > _i; ) - sn(Wt, (gr = Mr[_i++])) || gr == Rn || gr == qn || Or.push(gr) - return Or - }, - bo = function (vn) { - for ( - var gr, Mr = vn === mr, Or = zn(Mr ? zt : Zn(vn)), _i = [], eo = 0; - Or.length > eo; - - ) - !sn(Wt, (gr = Or[eo++])) || (Mr && !sn(mr, gr)) || _i.push(Wt[gr]) - return _i - } - Uo || - (Jn( - (Fn = function () { - if (this instanceof Fn) throw TypeError('Symbol is not a constructor!') - var vn = mn(arguments.length > 0 ? arguments[0] : void 0), - gr = function (Mr) { - this === mr && gr.call(zt, Mr), - sn(this, Rn) && sn(this[Rn], vn) && (this[Rn][vn] = !1), - na(this, vn, En(1, Mr)) - } - return gn && ko && na(mr, vn, { configurable: !0, set: gr }), Yo(vn) - }).prototype, - 'toString', - function () { - return this._k - }, - ), - (un.f = Ko), - (Nn.f = Wo), - (en(41).f = Hn.f = xa), - (en(19).f = Co), - (dn.f = bo), - gn && !en(14) && Jn(mr, 'propertyIsEnumerable', Co, !0), - (kn.f = function (vn) { - return Yo(Bn(vn)) - })), - In(In.G + In.W + In.F * !Uo, { Symbol: Fn }) - for ( - var br = - 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( - ',', - ), - Fr = 0; - br.length > Fr; - - ) - Bn(br[Fr++]) - for (var $r = fn(Bn.store), cr = 0; $r.length > cr; ) ln($r[cr++]) - In(In.S + In.F * !Uo, 'Symbol', { - for: function (vn) { - return sn(ht, (vn += '')) ? ht[vn] : (ht[vn] = Fn(vn)) - }, - keyFor: function (vn) { - if (!vo(vn)) throw TypeError(vn + ' is not a symbol!') - for (var gr in ht) if (ht[gr] === vn) return gr - }, - useSetter: function () { - ko = !0 - }, - useSimple: function () { - ko = !1 - }, - }), - In(In.S + In.F * !Uo, 'Object', { - create: function (vn, gr) { - return gr === void 0 ? Mn(vn) : ba(Mn(vn), gr) - }, - defineProperty: Wo, - defineProperties: ba, - getOwnPropertyDescriptor: Ko, - getOwnPropertyNames: xa, - getOwnPropertySymbols: bo, - }) - var ir = Kn(function () { - dn.f(1) - }) - In(In.S + In.F * ir, 'Object', { - getOwnPropertySymbols: function (vn) { - return dn.f(Sn(vn)) - }, - }), - An && - In( - In.S + - In.F * - (!Uo || - Kn(function () { - var vn = Fn() - return Qn([vn]) != '[null]' || Qn({ a: vn }) != '{}' || Qn(Object(vn)) != '{}' - })), - 'JSON', - { - stringify: function (vn) { - for (var gr, Mr, Or = [vn], _i = 1; arguments.length > _i; ) - Or.push(arguments[_i++]) - if (((Mr = gr = Or[1]), (Gn(gr) || vn !== void 0) && !vo(vn))) - return ( - Cn(gr) || - (gr = function (eo, no) { - if ((typeof Mr == 'function' && (no = Mr.call(this, eo, no)), !vo(no))) - return no - }), - (Or[1] = gr), - Qn.apply(An, Or) - ) - }, - }, - ), - Fn.prototype[Vn] || en(6)(Fn.prototype, Vn, Fn.prototype.valueOf), - xn(Fn, 'Symbol'), - xn(Math, 'Math', !0), - xn(nn.JSON, 'JSON', !0) - }, - function (b, $, en) { - var nn = en(17)('meta'), - sn = en(11), - gn = en(5), - In = en(7).f, - Jn = 0, - qn = - Object.isExtensible || - function () { - return !0 - }, - Kn = !en(8)(function () { - return qn(Object.preventExtensions({})) - }), - an = function (mn) { - In(mn, nn, { value: { i: 'O' + ++Jn, w: {} } }) - }, - xn = (b.exports = { - KEY: nn, - NEED: !1, - fastKey: function (mn, Bn) { - if (!sn(mn)) - return typeof mn == 'symbol' ? mn : (typeof mn == 'string' ? 'S' : 'P') + mn - if (!gn(mn, nn)) { - if (!qn(mn)) return 'F' - if (!Bn) return 'E' - an(mn) - } - return mn[nn].i - }, - getWeak: function (mn, Bn) { - if (!gn(mn, nn)) { - if (!qn(mn)) return !0 - if (!Bn) return !1 - an(mn) - } - return mn[nn].w - }, - onFreeze: function (mn) { - return Kn && xn.NEED && qn(mn) && !gn(mn, nn) && an(mn), mn - }, - }) - }, - function (b, $, en) { - var nn = en(13), - sn = en(32), - gn = en(19) - b.exports = function (In) { - var Jn = nn(In), - qn = sn.f - if (qn) - for (var Kn, an = qn(In), xn = gn.f, mn = 0; an.length > mn; ) - xn.call(In, (Kn = an[mn++])) && Jn.push(Kn) - return Jn - } - }, - function (b, $, en) { - var nn = en(24) - b.exports = - Array.isArray || - function (sn) { - return nn(sn) == 'Array' - } - }, - function (b, $, en) { - var nn = en(9), - sn = en(41).f, - gn = {}.toString, - In = - typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) - : [] - b.exports.f = function (Jn) { - return In && gn.call(Jn) == '[object Window]' - ? (function (qn) { - try { - return sn(qn) - } catch { - return In.slice() - } - })(Jn) - : sn(nn(Jn)) - } - }, - function (b, $, en) { - var nn = en(19), - sn = en(16), - gn = en(9), - In = en(23), - Jn = en(5), - qn = en(35), - Kn = Object.getOwnPropertyDescriptor - $.f = en(4) - ? Kn - : function (an, xn) { - if (((an = gn(an)), (xn = In(xn, !0)), qn)) - try { - return Kn(an, xn) - } catch {} - if (Jn(an, xn)) return sn(!nn.f.call(an, xn), an[xn]) - } - }, - function (b, $) {}, - function (b, $, en) { - en(31)('asyncIterator') - }, - function (b, $, en) { - en(31)('observable') - }, - function (b, $, en) { - $.__esModule = !0 - var nn, - sn = en(77), - gn = (nn = sn) && nn.__esModule ? nn : { default: nn } - $.default = - gn.default || - function (In) { - for (var Jn = 1; Jn < arguments.length; Jn++) { - var qn = arguments[Jn] - for (var Kn in qn) Object.prototype.hasOwnProperty.call(qn, Kn) && (In[Kn] = qn[Kn]) - } - return In - } - }, - function (b, $, en) { - b.exports = { default: en(78), __esModule: !0 } - }, - function (b, $, en) { - en(79), (b.exports = en(1).Object.assign) - }, - function (b, $, en) { - var nn = en(15) - nn(nn.S + nn.F, 'Object', { assign: en(80) }) - }, - function (b, $, en) { - var nn = en(4), - sn = en(13), - gn = en(32), - In = en(19), - Jn = en(18), - qn = en(40), - Kn = Object.assign - b.exports = - !Kn || - en(8)(function () { - var an = {}, - xn = {}, - mn = Symbol(), - Bn = 'abcdefghijklmnopqrst' - return ( - (an[mn] = 7), - Bn.split('').forEach(function (kn) { - xn[kn] = kn - }), - Kn({}, an)[mn] != 7 || Object.keys(Kn({}, xn)).join('') != Bn - ) - }) - ? function (an, xn) { - for ( - var mn = Jn(an), Bn = arguments.length, kn = 1, ln = gn.f, yn = In.f; - Bn > kn; - - ) - for ( - var Cn, - Tn = qn(arguments[kn++]), - Gn = ln ? sn(Tn).concat(ln(Tn)) : sn(Tn), - Sn = Gn.length, - Zn = 0; - Sn > Zn; - - ) - (Cn = Gn[Zn++]), (nn && !yn.call(Tn, Cn)) || (mn[Cn] = Tn[Cn]) - return mn - } - : Kn - }, - function (b, $, en) { - $.__esModule = !0 - var nn = gn(en(82)), - sn = gn(en(85)) - function gn(In) { - return In && In.__esModule ? In : { default: In } - } - $.default = function (In, Jn) { - if (Array.isArray(In)) return In - if ((0, nn.default)(Object(In))) - return (function (qn, Kn) { - var an = [], - xn = !0, - mn = !1, - Bn = void 0 - try { - for ( - var kn, ln = (0, sn.default)(qn); - !(xn = (kn = ln.next()).done) && (an.push(kn.value), !Kn || an.length !== Kn); - xn = !0 - ); - } catch (yn) { - ;(mn = !0), (Bn = yn) - } finally { - try { - !xn && ln.return && ln.return() - } finally { - if (mn) throw Bn - } - } - return an - })(In, Jn) - throw new TypeError('Invalid attempt to destructure non-iterable instance') - } - }, - function (b, $, en) { - b.exports = { default: en(83), __esModule: !0 } - }, - function (b, $, en) { - en(29), en(20), (b.exports = en(84)) - }, - function (b, $, en) { - var nn = en(42), - sn = en(2)('iterator'), - gn = en(12) - b.exports = en(1).isIterable = function (In) { - var Jn = Object(In) - return Jn[sn] !== void 0 || '@@iterator' in Jn || gn.hasOwnProperty(nn(Jn)) - } - }, - function (b, $, en) { - b.exports = { default: en(86), __esModule: !0 } - }, - function (b, $, en) { - en(29), en(20), (b.exports = en(87)) - }, - function (b, $, en) { - var nn = en(10), - sn = en(88) - b.exports = en(1).getIterator = function (gn) { - var In = sn(gn) - if (typeof In != 'function') throw TypeError(gn + ' is not iterable!') - return nn(In.call(gn)) - } - }, - function (b, $, en) { - var nn = en(42), - sn = en(2)('iterator'), - gn = en(12) - b.exports = en(1).getIteratorMethod = function (In) { - if (In != null) return In[sn] || In['@@iterator'] || gn[nn(In)] - } - }, - function (b, $, en) { - b.exports = { default: en(90), __esModule: !0 } - }, - function (b, $, en) { - en(91), (b.exports = en(1).Object.keys) - }, - function (b, $, en) { - var nn = en(18), - sn = en(13) - en(92)('keys', function () { - return function (gn) { - return sn(nn(gn)) - } - }) - }, - function (b, $, en) { - var nn = en(15), - sn = en(1), - gn = en(8) - b.exports = function (In, Jn) { - var qn = (sn.Object || {})[In] || Object[In], - Kn = {} - ;(Kn[In] = Jn(qn)), - nn( - nn.S + - nn.F * - gn(function () { - qn(1) - }), - 'Object', - Kn, - ) - } - }, - function (b, $, en) { - ;(function (nn) { - var sn = [ - ['ary', 128], - ['bind', 1], - ['bindKey', 2], - ['curry', 8], - ['curryRight', 16], - ['flip', 512], - ['partial', 32], - ['partialRight', 64], - ['rearg', 256], - ], - gn = /^\s+|\s+$/g, - In = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, - Jn = /\{\n\/\* \[wrapped with (.+)\] \*/, - qn = /,? & /, - Kn = /^[-+]0x[0-9a-f]+$/i, - an = /^0b[01]+$/i, - xn = /^\[object .+?Constructor\]$/, - mn = /^0o[0-7]+$/i, - Bn = /^(?:0|[1-9]\d*)$/, - kn = parseInt, - ln = typeof nn == 'object' && nn && nn.Object === Object && nn, - yn = typeof self == 'object' && self && self.Object === Object && self, - Cn = ln || yn || Function('return this')() - function Tn(cr, ir, vn) { - switch (vn.length) { - case 0: - return cr.call(ir) - case 1: - return cr.call(ir, vn[0]) - case 2: - return cr.call(ir, vn[0], vn[1]) - case 3: - return cr.call(ir, vn[0], vn[1], vn[2]) - } - return cr.apply(ir, vn) - } - function Gn(cr, ir) { - return ( - !!(cr && cr.length) && - (function (vn, gr, Mr) { - if (gr != gr) - return (function (eo, no, Oo, So) { - for (var lo = eo.length, Pn = Oo + (So ? 1 : -1); So ? Pn-- : ++Pn < lo; ) - if (no(eo[Pn], Pn, eo)) return Pn - return -1 - })(vn, Sn, Mr) - for (var Or = Mr - 1, _i = vn.length; ++Or < _i; ) if (vn[Or] === gr) return Or - return -1 - })(cr, ir, 0) > -1 - ) - } - function Sn(cr) { - return cr != cr - } - function Zn(cr, ir) { - for (var vn = cr.length, gr = 0; vn--; ) cr[vn] === ir && gr++ - return gr - } - function tn(cr, ir) { - for (var vn = -1, gr = cr.length, Mr = 0, Or = []; ++vn < gr; ) { - var _i = cr[vn] - ;(_i !== ir && _i !== '__lodash_placeholder__') || - ((cr[vn] = '__lodash_placeholder__'), (Or[Mr++] = vn)) - } - return Or - } - var En, - Mn, - Hn, - un = Function.prototype, - dn = Object.prototype, - Nn = Cn['__core-js_shared__'], - fn = (En = /[^.]+$/.exec((Nn && Nn.keys && Nn.keys.IE_PROTO) || '')) - ? 'Symbol(src)_1.' + En - : '', - _n = un.toString, - Ln = dn.hasOwnProperty, - zn = dn.toString, - Fn = RegExp( - '^' + - _n - .call(Ln) - .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + - '$', - ), - An = Object.create, - Qn = Math.max, - Rn = Math.min, - Vn = - ((Mn = Yo(Object, 'defineProperty')), (Hn = Yo.name) && Hn.length > 2 ? Mn : void 0) - function Wn(cr) { - return br(cr) ? An(cr) : {} - } - function ht(cr) { - return ( - !( - !br(cr) || - (function (ir) { - return !!fn && fn in ir - })(cr) - ) && - ((function (ir) { - var vn = br(ir) ? zn.call(ir) : '' - return vn == '[object Function]' || vn == '[object GeneratorFunction]' - })(cr) || - (function (ir) { - var vn = !1 - if (ir != null && typeof ir.toString != 'function') - try { - vn = !!(ir + '') - } catch {} - return vn - })(cr) - ? Fn - : xn - ).test( - (function (ir) { - if (ir != null) { - try { - return _n.call(ir) - } catch {} - try { - return ir + '' - } catch {} - } - return '' - })(cr), - ) - ) - } - function Wt(cr, ir, vn, gr) { - for ( - var Mr = -1, - Or = cr.length, - _i = vn.length, - eo = -1, - no = ir.length, - Oo = Qn(Or - _i, 0), - So = Array(no + Oo), - lo = !gr; - ++eo < no; - - ) - So[eo] = ir[eo] - for (; ++Mr < _i; ) (lo || Mr < Or) && (So[vn[Mr]] = cr[Mr]) - for (; Oo--; ) So[eo++] = cr[Mr++] - return So - } - function zt(cr, ir, vn, gr) { - for ( - var Mr = -1, - Or = cr.length, - _i = -1, - eo = vn.length, - no = -1, - Oo = ir.length, - So = Qn(Or - eo, 0), - lo = Array(So + Oo), - Pn = !gr; - ++Mr < So; - - ) - lo[Mr] = cr[Mr] - for (var Xn = Mr; ++no < Oo; ) lo[Xn + no] = ir[no] - for (; ++_i < eo; ) (Pn || Mr < Or) && (lo[Xn + vn[_i]] = cr[Mr++]) - return lo - } - function mr(cr) { - return function () { - var ir = arguments - switch (ir.length) { - case 0: - return new cr() - case 1: - return new cr(ir[0]) - case 2: - return new cr(ir[0], ir[1]) - case 3: - return new cr(ir[0], ir[1], ir[2]) - case 4: - return new cr(ir[0], ir[1], ir[2], ir[3]) - case 5: - return new cr(ir[0], ir[1], ir[2], ir[3], ir[4]) - case 6: - return new cr(ir[0], ir[1], ir[2], ir[3], ir[4], ir[5]) - case 7: - return new cr(ir[0], ir[1], ir[2], ir[3], ir[4], ir[5], ir[6]) - } - var vn = Wn(cr.prototype), - gr = cr.apply(vn, ir) - return br(gr) ? gr : vn - } - } - function Uo(cr, ir, vn, gr, Mr, Or, _i, eo, no, Oo) { - var So = 128 & ir, - lo = 1 & ir, - Pn = 2 & ir, - Xn = 24 & ir, - dt = 512 & ir, - Ir = Pn ? void 0 : mr(cr) - return function Lt() { - for (var ur = arguments.length, ho = Array(ur), xo = ur; xo--; ) - ho[xo] = arguments[xo] - if (Xn) - var yo = na(Lt), - ga = Zn(ho, yo) - if ( - (gr && (ho = Wt(ho, gr, Mr, Xn)), - Or && (ho = zt(ho, Or, _i, Xn)), - (ur -= ga), - Xn && ur < Oo) - ) { - var Zo = tn(ho, yo) - return Vo(cr, ir, Uo, Lt.placeholder, vn, ho, Zo, eo, no, Oo - ur) - } - var _o = lo ? vn : this, - zo = Pn ? _o[cr] : cr - return ( - (ur = ho.length), - eo ? (ho = Co(ho, eo)) : dt && ur > 1 && ho.reverse(), - So && no < ur && (ho.length = no), - this && this !== Cn && this instanceof Lt && (zo = Ir || mr(zo)), - zo.apply(_o, ho) - ) - } - } - function Vo(cr, ir, vn, gr, Mr, Or, _i, eo, no, Oo) { - var So = 8 & ir - ;(ir |= So ? 32 : 64), 4 & (ir &= ~(So ? 64 : 32)) || (ir &= -4) - var lo = vn( - cr, - ir, - Mr, - So ? Or : void 0, - So ? _i : void 0, - So ? void 0 : Or, - So ? void 0 : _i, - eo, - no, - Oo, - ) - return (lo.placeholder = gr), Ko(lo, cr, ir) - } - function ko(cr, ir, vn, gr, Mr, Or, _i, eo) { - var no = 2 & ir - if (!no && typeof cr != 'function') throw new TypeError('Expected a function') - var Oo = gr ? gr.length : 0 - if ( - (Oo || ((ir &= -97), (gr = Mr = void 0)), - (_i = _i === void 0 ? _i : Qn($r(_i), 0)), - (eo = eo === void 0 ? eo : $r(eo)), - (Oo -= Mr ? Mr.length : 0), - 64 & ir) - ) { - var So = gr, - lo = Mr - gr = Mr = void 0 - } - var Pn = [cr, ir, vn, gr, Mr, So, lo, Or, _i, eo] - if ( - ((cr = Pn[0]), - (ir = Pn[1]), - (vn = Pn[2]), - (gr = Pn[3]), - (Mr = Pn[4]), - !(eo = Pn[9] = Pn[9] == null ? (no ? 0 : cr.length) : Qn(Pn[9] - Oo, 0)) && - 24 & ir && - (ir &= -25), - ir && ir != 1) - ) - Xn = - ir == 8 || ir == 16 - ? (function (dt, Ir, Lt) { - var ur = mr(dt) - return function ho() { - for ( - var xo = arguments.length, yo = Array(xo), ga = xo, Zo = na(ho); - ga--; - - ) - yo[ga] = arguments[ga] - var _o = xo < 3 && yo[0] !== Zo && yo[xo - 1] !== Zo ? [] : tn(yo, Zo) - if ((xo -= _o.length) < Lt) - return Vo( - dt, - Ir, - Uo, - ho.placeholder, - void 0, - yo, - _o, - void 0, - void 0, - Lt - xo, - ) - var zo = this && this !== Cn && this instanceof ho ? ur : dt - return Tn(zo, this, yo) - } - })(cr, ir, eo) - : (ir != 32 && ir != 33) || Mr.length - ? Uo.apply(void 0, Pn) - : (function (dt, Ir, Lt, ur) { - var ho = 1 & Ir, - xo = mr(dt) - return function yo() { - for ( - var ga = -1, - Zo = arguments.length, - _o = -1, - zo = ur.length, - $a = Array(zo + Zo), - No = this && this !== Cn && this instanceof yo ? xo : dt; - ++_o < zo; - - ) - $a[_o] = ur[_o] - for (; Zo--; ) $a[_o++] = arguments[++ga] - return Tn(No, ho ? Lt : this, $a) - } - })(cr, ir, vn, gr) - else - var Xn = (function (dt, Ir, Lt) { - var ur = 1 & Ir, - ho = mr(dt) - return function xo() { - var yo = this && this !== Cn && this instanceof xo ? ho : dt - return yo.apply(ur ? Lt : this, arguments) - } - })(cr, ir, vn) - return Ko(Xn, cr, ir) - } - function na(cr) { - return cr.placeholder - } - function Yo(cr, ir) { - var vn = (function (gr, Mr) { - return gr?.[Mr] - })(cr, ir) - return ht(vn) ? vn : void 0 - } - function vo(cr) { - var ir = cr.match(Jn) - return ir ? ir[1].split(qn) : [] - } - function Wo(cr, ir) { - var vn = ir.length, - gr = vn - 1 - return ( - (ir[gr] = (vn > 1 ? '& ' : '') + ir[gr]), - (ir = ir.join(vn > 2 ? ', ' : ' ')), - cr.replace( - In, - `{ -/* [wrapped with ` + - ir + - `] */ -`, - ) - ) - } - function ba(cr, ir) { - return ( - !!(ir = ir ?? 9007199254740991) && - (typeof cr == 'number' || Bn.test(cr)) && - cr > -1 && - cr % 1 == 0 && - cr < ir - ) - } - function Co(cr, ir) { - for ( - var vn = cr.length, - gr = Rn(ir.length, vn), - Mr = (function (_i, eo) { - var no = -1, - Oo = _i.length - for (eo || (eo = Array(Oo)); ++no < Oo; ) eo[no] = _i[no] - return eo - })(cr); - gr--; - - ) { - var Or = ir[gr] - cr[gr] = ba(Or, vn) ? Mr[Or] : void 0 - } - return cr - } - var Ko = Vn - ? function (cr, ir, vn) { - var gr, - Mr = ir + '' - return Vn(cr, 'toString', { - configurable: !0, - enumerable: !1, - value: - ((gr = Wo(Mr, xa(vo(Mr), vn))), - function () { - return gr - }), - }) - } - : function (cr) { - return cr - } - function xa(cr, ir) { - return ( - (function (vn, gr) { - for ( - var Mr = -1, Or = vn ? vn.length : 0; - ++Mr < Or && gr(vn[Mr], Mr, vn) !== !1; - - ); - })(sn, function (vn) { - var gr = '_.' + vn[0] - ir & vn[1] && !Gn(cr, gr) && cr.push(gr) - }), - cr.sort() - ) - } - function bo(cr, ir, vn) { - var gr = ko(cr, 8, void 0, void 0, void 0, void 0, void 0, (ir = vn ? void 0 : ir)) - return (gr.placeholder = bo.placeholder), gr - } - function br(cr) { - var ir = typeof cr - return !!cr && (ir == 'object' || ir == 'function') - } - function Fr(cr) { - return cr - ? (cr = (function (ir) { - if (typeof ir == 'number') return ir - if ( - (function (Mr) { - return ( - typeof Mr == 'symbol' || - ((function (Or) { - return !!Or && typeof Or == 'object' - })(Mr) && - zn.call(Mr) == '[object Symbol]') - ) - })(ir) - ) - return NaN - if (br(ir)) { - var vn = typeof ir.valueOf == 'function' ? ir.valueOf() : ir - ir = br(vn) ? vn + '' : vn - } - if (typeof ir != 'string') return ir === 0 ? ir : +ir - ir = ir.replace(gn, '') - var gr = an.test(ir) - return gr || mn.test(ir) ? kn(ir.slice(2), gr ? 2 : 8) : Kn.test(ir) ? NaN : +ir - })(cr)) === - 1 / 0 || cr === -1 / 0 - ? 17976931348623157e292 * (cr < 0 ? -1 : 1) - : cr == cr - ? cr - : 0 - : cr === 0 - ? cr - : 0 - } - function $r(cr) { - var ir = Fr(cr), - vn = ir % 1 - return ir == ir ? (vn ? ir - vn : ir) : 0 - } - ;(bo.placeholder = {}), (b.exports = bo) - }).call(this, en(43)) - }, - function (b, $, en) { - function nn(zt) { - return zt && zt.__esModule ? zt.default : zt - } - $.__esModule = !0 - var sn = en(95) - $.threezerotwofour = nn(sn) - var gn = en(96) - $.apathy = nn(gn) - var In = en(97) - $.ashes = nn(In) - var Jn = en(98) - $.atelierDune = nn(Jn) - var qn = en(99) - $.atelierForest = nn(qn) - var Kn = en(100) - $.atelierHeath = nn(Kn) - var an = en(101) - $.atelierLakeside = nn(an) - var xn = en(102) - $.atelierSeaside = nn(xn) - var mn = en(103) - $.bespin = nn(mn) - var Bn = en(104) - $.brewer = nn(Bn) - var kn = en(105) - $.bright = nn(kn) - var ln = en(106) - $.chalk = nn(ln) - var yn = en(107) - $.codeschool = nn(yn) - var Cn = en(108) - $.colors = nn(Cn) - var Tn = en(109) - $.default = nn(Tn) - var Gn = en(110) - $.eighties = nn(Gn) - var Sn = en(111) - $.embers = nn(Sn) - var Zn = en(112) - $.flat = nn(Zn) - var tn = en(113) - $.google = nn(tn) - var En = en(114) - $.grayscale = nn(En) - var Mn = en(115) - $.greenscreen = nn(Mn) - var Hn = en(116) - $.harmonic = nn(Hn) - var un = en(117) - $.hopscotch = nn(un) - var dn = en(118) - $.isotope = nn(dn) - var Nn = en(119) - $.marrakesh = nn(Nn) - var fn = en(120) - $.mocha = nn(fn) - var _n = en(121) - $.monokai = nn(_n) - var Ln = en(122) - $.ocean = nn(Ln) - var zn = en(123) - $.paraiso = nn(zn) - var Fn = en(124) - $.pop = nn(Fn) - var An = en(125) - $.railscasts = nn(An) - var Qn = en(126) - $.shapeshifter = nn(Qn) - var Rn = en(127) - $.solarized = nn(Rn) - var Vn = en(128) - $.summerfruit = nn(Vn) - var Wn = en(129) - $.tomorrow = nn(Wn) - var ht = en(130) - $.tube = nn(ht) - var Wt = en(131) - $.twilight = nn(Wt) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'threezerotwofour', - author: 'jan t. sott (http://github.com/idleberg)', - base00: '#090300', - base01: '#3a3432', - base02: '#4a4543', - base03: '#5c5855', - base04: '#807d7c', - base05: '#a5a2a2', - base06: '#d6d5d4', - base07: '#f7f7f7', - base08: '#db2d20', - base09: '#e8bbd0', - base0A: '#fded02', - base0B: '#01a252', - base0C: '#b5e4f4', - base0D: '#01a0e4', - base0E: '#a16a94', - base0F: '#cdab53', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'apathy', - author: 'jannik siebert (https://github.com/janniks)', - base00: '#031A16', - base01: '#0B342D', - base02: '#184E45', - base03: '#2B685E', - base04: '#5F9C92', - base05: '#81B5AC', - base06: '#A7CEC8', - base07: '#D2E7E4', - base08: '#3E9688', - base09: '#3E7996', - base0A: '#3E4C96', - base0B: '#883E96', - base0C: '#963E4C', - base0D: '#96883E', - base0E: '#4C963E', - base0F: '#3E965B', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'ashes', - author: 'jannik siebert (https://github.com/janniks)', - base00: '#1C2023', - base01: '#393F45', - base02: '#565E65', - base03: '#747C84', - base04: '#ADB3BA', - base05: '#C7CCD1', - base06: '#DFE2E5', - base07: '#F3F4F5', - base08: '#C7AE95', - base09: '#C7C795', - base0A: '#AEC795', - base0B: '#95C7AE', - base0C: '#95AEC7', - base0D: '#AE95C7', - base0E: '#C795AE', - base0F: '#C79595', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'atelier dune', - author: - 'bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)', - base00: '#20201d', - base01: '#292824', - base02: '#6e6b5e', - base03: '#7d7a68', - base04: '#999580', - base05: '#a6a28c', - base06: '#e8e4cf', - base07: '#fefbec', - base08: '#d73737', - base09: '#b65611', - base0A: '#cfb017', - base0B: '#60ac39', - base0C: '#1fad83', - base0D: '#6684e1', - base0E: '#b854d4', - base0F: '#d43552', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'atelier forest', - author: - 'bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)', - base00: '#1b1918', - base01: '#2c2421', - base02: '#68615e', - base03: '#766e6b', - base04: '#9c9491', - base05: '#a8a19f', - base06: '#e6e2e0', - base07: '#f1efee', - base08: '#f22c40', - base09: '#df5320', - base0A: '#d5911a', - base0B: '#5ab738', - base0C: '#00ad9c', - base0D: '#407ee7', - base0E: '#6666ea', - base0F: '#c33ff3', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'atelier heath', - author: - 'bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)', - base00: '#1b181b', - base01: '#292329', - base02: '#695d69', - base03: '#776977', - base04: '#9e8f9e', - base05: '#ab9bab', - base06: '#d8cad8', - base07: '#f7f3f7', - base08: '#ca402b', - base09: '#a65926', - base0A: '#bb8a35', - base0B: '#379a37', - base0C: '#159393', - base0D: '#516aec', - base0E: '#7b59c0', - base0F: '#cc33cc', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'atelier lakeside', - author: - 'bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)', - base00: '#161b1d', - base01: '#1f292e', - base02: '#516d7b', - base03: '#5a7b8c', - base04: '#7195a8', - base05: '#7ea2b4', - base06: '#c1e4f6', - base07: '#ebf8ff', - base08: '#d22d72', - base09: '#935c25', - base0A: '#8a8a0f', - base0B: '#568c3b', - base0C: '#2d8f6f', - base0D: '#257fad', - base0E: '#5d5db1', - base0F: '#b72dd2', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'atelier seaside', - author: - 'bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)', - base00: '#131513', - base01: '#242924', - base02: '#5e6e5e', - base03: '#687d68', - base04: '#809980', - base05: '#8ca68c', - base06: '#cfe8cf', - base07: '#f0fff0', - base08: '#e6193c', - base09: '#87711d', - base0A: '#c3c322', - base0B: '#29a329', - base0C: '#1999b3', - base0D: '#3d62f5', - base0E: '#ad2bee', - base0F: '#e619c3', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'bespin', - author: 'jan t. sott', - base00: '#28211c', - base01: '#36312e', - base02: '#5e5d5c', - base03: '#666666', - base04: '#797977', - base05: '#8a8986', - base06: '#9d9b97', - base07: '#baae9e', - base08: '#cf6a4c', - base09: '#cf7d34', - base0A: '#f9ee98', - base0B: '#54be0d', - base0C: '#afc4db', - base0D: '#5ea6ea', - base0E: '#9b859d', - base0F: '#937121', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'brewer', - author: 'timothée poisot (http://github.com/tpoisot)', - base00: '#0c0d0e', - base01: '#2e2f30', - base02: '#515253', - base03: '#737475', - base04: '#959697', - base05: '#b7b8b9', - base06: '#dadbdc', - base07: '#fcfdfe', - base08: '#e31a1c', - base09: '#e6550d', - base0A: '#dca060', - base0B: '#31a354', - base0C: '#80b1d3', - base0D: '#3182bd', - base0E: '#756bb1', - base0F: '#b15928', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'bright', - author: 'chris kempson (http://chriskempson.com)', - base00: '#000000', - base01: '#303030', - base02: '#505050', - base03: '#b0b0b0', - base04: '#d0d0d0', - base05: '#e0e0e0', - base06: '#f5f5f5', - base07: '#ffffff', - base08: '#fb0120', - base09: '#fc6d24', - base0A: '#fda331', - base0B: '#a1c659', - base0C: '#76c7b7', - base0D: '#6fb3d2', - base0E: '#d381c3', - base0F: '#be643c', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'chalk', - author: 'chris kempson (http://chriskempson.com)', - base00: '#151515', - base01: '#202020', - base02: '#303030', - base03: '#505050', - base04: '#b0b0b0', - base05: '#d0d0d0', - base06: '#e0e0e0', - base07: '#f5f5f5', - base08: '#fb9fb1', - base09: '#eda987', - base0A: '#ddb26f', - base0B: '#acc267', - base0C: '#12cfc0', - base0D: '#6fc2ef', - base0E: '#e1a3ee', - base0F: '#deaf8f', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'codeschool', - author: 'brettof86', - base00: '#232c31', - base01: '#1c3657', - base02: '#2a343a', - base03: '#3f4944', - base04: '#84898c', - base05: '#9ea7a6', - base06: '#a7cfa3', - base07: '#b5d8f6', - base08: '#2a5491', - base09: '#43820d', - base0A: '#a03b1e', - base0B: '#237986', - base0C: '#b02f30', - base0D: '#484d79', - base0E: '#c59820', - base0F: '#c98344', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'colors', - author: 'mrmrs (http://clrs.cc)', - base00: '#111111', - base01: '#333333', - base02: '#555555', - base03: '#777777', - base04: '#999999', - base05: '#bbbbbb', - base06: '#dddddd', - base07: '#ffffff', - base08: '#ff4136', - base09: '#ff851b', - base0A: '#ffdc00', - base0B: '#2ecc40', - base0C: '#7fdbff', - base0D: '#0074d9', - base0E: '#b10dc9', - base0F: '#85144b', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'default', - author: 'chris kempson (http://chriskempson.com)', - base00: '#181818', - base01: '#282828', - base02: '#383838', - base03: '#585858', - base04: '#b8b8b8', - base05: '#d8d8d8', - base06: '#e8e8e8', - base07: '#f8f8f8', - base08: '#ab4642', - base09: '#dc9656', - base0A: '#f7ca88', - base0B: '#a1b56c', - base0C: '#86c1b9', - base0D: '#7cafc2', - base0E: '#ba8baf', - base0F: '#a16946', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'eighties', - author: 'chris kempson (http://chriskempson.com)', - base00: '#2d2d2d', - base01: '#393939', - base02: '#515151', - base03: '#747369', - base04: '#a09f93', - base05: '#d3d0c8', - base06: '#e8e6df', - base07: '#f2f0ec', - base08: '#f2777a', - base09: '#f99157', - base0A: '#ffcc66', - base0B: '#99cc99', - base0C: '#66cccc', - base0D: '#6699cc', - base0E: '#cc99cc', - base0F: '#d27b53', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'embers', - author: 'jannik siebert (https://github.com/janniks)', - base00: '#16130F', - base01: '#2C2620', - base02: '#433B32', - base03: '#5A5047', - base04: '#8A8075', - base05: '#A39A90', - base06: '#BEB6AE', - base07: '#DBD6D1', - base08: '#826D57', - base09: '#828257', - base0A: '#6D8257', - base0B: '#57826D', - base0C: '#576D82', - base0D: '#6D5782', - base0E: '#82576D', - base0F: '#825757', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'flat', - author: 'chris kempson (http://chriskempson.com)', - base00: '#2C3E50', - base01: '#34495E', - base02: '#7F8C8D', - base03: '#95A5A6', - base04: '#BDC3C7', - base05: '#e0e0e0', - base06: '#f5f5f5', - base07: '#ECF0F1', - base08: '#E74C3C', - base09: '#E67E22', - base0A: '#F1C40F', - base0B: '#2ECC71', - base0C: '#1ABC9C', - base0D: '#3498DB', - base0E: '#9B59B6', - base0F: '#be643c', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'google', - author: 'seth wright (http://sethawright.com)', - base00: '#1d1f21', - base01: '#282a2e', - base02: '#373b41', - base03: '#969896', - base04: '#b4b7b4', - base05: '#c5c8c6', - base06: '#e0e0e0', - base07: '#ffffff', - base08: '#CC342B', - base09: '#F96A38', - base0A: '#FBA922', - base0B: '#198844', - base0C: '#3971ED', - base0D: '#3971ED', - base0E: '#A36AC7', - base0F: '#3971ED', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'grayscale', - author: 'alexandre gavioli (https://github.com/alexx2/)', - base00: '#101010', - base01: '#252525', - base02: '#464646', - base03: '#525252', - base04: '#ababab', - base05: '#b9b9b9', - base06: '#e3e3e3', - base07: '#f7f7f7', - base08: '#7c7c7c', - base09: '#999999', - base0A: '#a0a0a0', - base0B: '#8e8e8e', - base0C: '#868686', - base0D: '#686868', - base0E: '#747474', - base0F: '#5e5e5e', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'green screen', - author: 'chris kempson (http://chriskempson.com)', - base00: '#001100', - base01: '#003300', - base02: '#005500', - base03: '#007700', - base04: '#009900', - base05: '#00bb00', - base06: '#00dd00', - base07: '#00ff00', - base08: '#007700', - base09: '#009900', - base0A: '#007700', - base0B: '#00bb00', - base0C: '#005500', - base0D: '#009900', - base0E: '#00bb00', - base0F: '#005500', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'harmonic16', - author: 'jannik siebert (https://github.com/janniks)', - base00: '#0b1c2c', - base01: '#223b54', - base02: '#405c79', - base03: '#627e99', - base04: '#aabcce', - base05: '#cbd6e2', - base06: '#e5ebf1', - base07: '#f7f9fb', - base08: '#bf8b56', - base09: '#bfbf56', - base0A: '#8bbf56', - base0B: '#56bf8b', - base0C: '#568bbf', - base0D: '#8b56bf', - base0E: '#bf568b', - base0F: '#bf5656', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'hopscotch', - author: 'jan t. sott', - base00: '#322931', - base01: '#433b42', - base02: '#5c545b', - base03: '#797379', - base04: '#989498', - base05: '#b9b5b8', - base06: '#d5d3d5', - base07: '#ffffff', - base08: '#dd464c', - base09: '#fd8b19', - base0A: '#fdcc59', - base0B: '#8fc13e', - base0C: '#149b93', - base0D: '#1290bf', - base0E: '#c85e7c', - base0F: '#b33508', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'isotope', - author: 'jan t. sott', - base00: '#000000', - base01: '#404040', - base02: '#606060', - base03: '#808080', - base04: '#c0c0c0', - base05: '#d0d0d0', - base06: '#e0e0e0', - base07: '#ffffff', - base08: '#ff0000', - base09: '#ff9900', - base0A: '#ff0099', - base0B: '#33ff00', - base0C: '#00ffff', - base0D: '#0066ff', - base0E: '#cc00ff', - base0F: '#3300ff', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'marrakesh', - author: 'alexandre gavioli (http://github.com/alexx2/)', - base00: '#201602', - base01: '#302e00', - base02: '#5f5b17', - base03: '#6c6823', - base04: '#86813b', - base05: '#948e48', - base06: '#ccc37a', - base07: '#faf0a5', - base08: '#c35359', - base09: '#b36144', - base0A: '#a88339', - base0B: '#18974e', - base0C: '#75a738', - base0D: '#477ca1', - base0E: '#8868b3', - base0F: '#b3588e', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'mocha', - author: 'chris kempson (http://chriskempson.com)', - base00: '#3B3228', - base01: '#534636', - base02: '#645240', - base03: '#7e705a', - base04: '#b8afad', - base05: '#d0c8c6', - base06: '#e9e1dd', - base07: '#f5eeeb', - base08: '#cb6077', - base09: '#d28b71', - base0A: '#f4bc87', - base0B: '#beb55b', - base0C: '#7bbda4', - base0D: '#8ab3b5', - base0E: '#a89bb9', - base0F: '#bb9584', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'monokai', - author: 'wimer hazenberg (http://www.monokai.nl)', - base00: '#272822', - base01: '#383830', - base02: '#49483e', - base03: '#75715e', - base04: '#a59f85', - base05: '#f8f8f2', - base06: '#f5f4f1', - base07: '#f9f8f5', - base08: '#f92672', - base09: '#fd971f', - base0A: '#f4bf75', - base0B: '#a6e22e', - base0C: '#a1efe4', - base0D: '#66d9ef', - base0E: '#ae81ff', - base0F: '#cc6633', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'ocean', - author: 'chris kempson (http://chriskempson.com)', - base00: '#2b303b', - base01: '#343d46', - base02: '#4f5b66', - base03: '#65737e', - base04: '#a7adba', - base05: '#c0c5ce', - base06: '#dfe1e8', - base07: '#eff1f5', - base08: '#bf616a', - base09: '#d08770', - base0A: '#ebcb8b', - base0B: '#a3be8c', - base0C: '#96b5b4', - base0D: '#8fa1b3', - base0E: '#b48ead', - base0F: '#ab7967', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'paraiso', - author: 'jan t. sott', - base00: '#2f1e2e', - base01: '#41323f', - base02: '#4f424c', - base03: '#776e71', - base04: '#8d8687', - base05: '#a39e9b', - base06: '#b9b6b0', - base07: '#e7e9db', - base08: '#ef6155', - base09: '#f99b15', - base0A: '#fec418', - base0B: '#48b685', - base0C: '#5bc4bf', - base0D: '#06b6ef', - base0E: '#815ba4', - base0F: '#e96ba8', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'pop', - author: 'chris kempson (http://chriskempson.com)', - base00: '#000000', - base01: '#202020', - base02: '#303030', - base03: '#505050', - base04: '#b0b0b0', - base05: '#d0d0d0', - base06: '#e0e0e0', - base07: '#ffffff', - base08: '#eb008a', - base09: '#f29333', - base0A: '#f8ca12', - base0B: '#37b349', - base0C: '#00aabb', - base0D: '#0e5a94', - base0E: '#b31e8d', - base0F: '#7a2d00', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'railscasts', - author: 'ryan bates (http://railscasts.com)', - base00: '#2b2b2b', - base01: '#272935', - base02: '#3a4055', - base03: '#5a647e', - base04: '#d4cfc9', - base05: '#e6e1dc', - base06: '#f4f1ed', - base07: '#f9f7f3', - base08: '#da4939', - base09: '#cc7833', - base0A: '#ffc66d', - base0B: '#a5c261', - base0C: '#519f50', - base0D: '#6d9cbe', - base0E: '#b6b3eb', - base0F: '#bc9458', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'shapeshifter', - author: 'tyler benziger (http://tybenz.com)', - base00: '#000000', - base01: '#040404', - base02: '#102015', - base03: '#343434', - base04: '#555555', - base05: '#ababab', - base06: '#e0e0e0', - base07: '#f9f9f9', - base08: '#e92f2f', - base09: '#e09448', - base0A: '#dddd13', - base0B: '#0ed839', - base0C: '#23edda', - base0D: '#3b48e3', - base0E: '#f996e2', - base0F: '#69542d', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'solarized', - author: 'ethan schoonover (http://ethanschoonover.com/solarized)', - base00: '#002b36', - base01: '#073642', - base02: '#586e75', - base03: '#657b83', - base04: '#839496', - base05: '#93a1a1', - base06: '#eee8d5', - base07: '#fdf6e3', - base08: '#dc322f', - base09: '#cb4b16', - base0A: '#b58900', - base0B: '#859900', - base0C: '#2aa198', - base0D: '#268bd2', - base0E: '#6c71c4', - base0F: '#d33682', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'summerfruit', - author: 'christopher corley (http://cscorley.github.io/)', - base00: '#151515', - base01: '#202020', - base02: '#303030', - base03: '#505050', - base04: '#B0B0B0', - base05: '#D0D0D0', - base06: '#E0E0E0', - base07: '#FFFFFF', - base08: '#FF0086', - base09: '#FD8900', - base0A: '#ABA800', - base0B: '#00C918', - base0C: '#1faaaa', - base0D: '#3777E6', - base0E: '#AD00A1', - base0F: '#cc6633', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'tomorrow', - author: 'chris kempson (http://chriskempson.com)', - base00: '#1d1f21', - base01: '#282a2e', - base02: '#373b41', - base03: '#969896', - base04: '#b4b7b4', - base05: '#c5c8c6', - base06: '#e0e0e0', - base07: '#ffffff', - base08: '#cc6666', - base09: '#de935f', - base0A: '#f0c674', - base0B: '#b5bd68', - base0C: '#8abeb7', - base0D: '#81a2be', - base0E: '#b294bb', - base0F: '#a3685a', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'london tube', - author: 'jan t. sott', - base00: '#231f20', - base01: '#1c3f95', - base02: '#5a5758', - base03: '#737171', - base04: '#959ca1', - base05: '#d9d8d8', - base06: '#e7e7e8', - base07: '#ffffff', - base08: '#ee2e24', - base09: '#f386a1', - base0A: '#ffd204', - base0B: '#00853e', - base0C: '#85cebc', - base0D: '#009ddc', - base0E: '#98005d', - base0F: '#b06110', - }), - (b.exports = $.default) - }, - function (b, $, en) { - ;($.__esModule = !0), - ($.default = { - scheme: 'twilight', - author: 'david hart (http://hart-dev.com)', - base00: '#1e1e1e', - base01: '#323537', - base02: '#464b50', - base03: '#5f5a60', - base04: '#838184', - base05: '#a7a7a7', - base06: '#c3c3c3', - base07: '#ffffff', - base08: '#cf6a4c', - base09: '#cda869', - base0A: '#f9ee98', - base0B: '#8f9d6a', - base0C: '#afc4db', - base0D: '#7587a6', - base0E: '#9b859d', - base0F: '#9b703f', - }), - (b.exports = $.default) - }, - function (b, $, en) { - var nn = en(33) - function sn(gn) { - var In = Math.round(nn(gn, 0, 255)).toString(16) - return In.length == 1 ? '0' + In : In - } - b.exports = function (gn) { - var In = gn.length === 4 ? sn(255 * gn[3]) : '' - return '#' + sn(gn[0]) + sn(gn[1]) + sn(gn[2]) + In - } - }, - function (b, $, en) { - var nn = en(134), - sn = en(135), - gn = en(136), - In = en(137), - Jn = { - '#': sn, - hsl: function (Kn) { - var an = nn(Kn), - xn = In(an) - return an.length === 4 && xn.push(an[3]), xn - }, - rgb: gn, - } - function qn(Kn) { - for (var an in Jn) if (Kn.indexOf(an) === 0) return Jn[an](Kn) - } - ;(qn.rgb = gn), (qn.hsl = nn), (qn.hex = sn), (b.exports = qn) - }, - function (b, $, en) { - var nn = en(44), - sn = en(33) - function gn(In, Jn) { - switch (((In = parseFloat(In)), Jn)) { - case 0: - return sn(In, 0, 360) - case 1: - case 2: - return sn(In, 0, 100) - case 3: - return sn(In, 0, 1) - } - } - b.exports = function (In) { - return nn(In).map(gn) - } - }, - function (b, $) { - b.exports = function (en) { - ;(en.length !== 4 && en.length !== 5) || - (en = (function (gn) { - for (var In = '#', Jn = 1; Jn < gn.length; Jn++) { - var qn = gn.charAt(Jn) - In += qn + qn - } - return In - })(en)) - var nn = [ - parseInt(en.substring(1, 3), 16), - parseInt(en.substring(3, 5), 16), - parseInt(en.substring(5, 7), 16), - ] - if (en.length === 9) { - var sn = parseFloat((parseInt(en.substring(7, 9), 16) / 255).toFixed(2)) - nn.push(sn) - } - return nn - } - }, - function (b, $, en) { - var nn = en(44), - sn = en(33) - function gn(In, Jn) { - return Jn < 3 - ? In.indexOf('%') != -1 - ? Math.round((255 * sn(parseInt(In, 10), 0, 100)) / 100) - : sn(parseInt(In, 10), 0, 255) - : sn(parseFloat(In), 0, 1) - } - b.exports = function (In) { - return nn(In).map(gn) - } - }, - function (b, $) { - b.exports = function (en) { - var nn, - sn, - gn, - In, - Jn, - qn = en[0] / 360, - Kn = en[1] / 100, - an = en[2] / 100 - if (Kn == 0) return [(Jn = 255 * an), Jn, Jn] - ;(nn = 2 * an - (sn = an < 0.5 ? an * (1 + Kn) : an + Kn - an * Kn)), (In = [0, 0, 0]) - for (var xn = 0; xn < 3; xn++) - (gn = qn + (1 / 3) * -(xn - 1)) < 0 && gn++, - gn > 1 && gn--, - (Jn = - 6 * gn < 1 - ? nn + 6 * (sn - nn) * gn - : 2 * gn < 1 - ? sn - : 3 * gn < 2 - ? nn + (sn - nn) * (2 / 3 - gn) * 6 - : nn), - (In[xn] = 255 * Jn) - return In - } - }, - function (b, $, en) { - ;(function (nn) { - var sn = typeof nn == 'object' && nn && nn.Object === Object && nn, - gn = typeof self == 'object' && self && self.Object === Object && self, - In = sn || gn || Function('return this')() - function Jn(tn, En, Mn) { - switch (Mn.length) { - case 0: - return tn.call(En) - case 1: - return tn.call(En, Mn[0]) - case 2: - return tn.call(En, Mn[0], Mn[1]) - case 3: - return tn.call(En, Mn[0], Mn[1], Mn[2]) - } - return tn.apply(En, Mn) - } - function qn(tn, En) { - for (var Mn = -1, Hn = En.length, un = tn.length; ++Mn < Hn; ) tn[un + Mn] = En[Mn] - return tn - } - var Kn = Object.prototype, - an = Kn.hasOwnProperty, - xn = Kn.toString, - mn = In.Symbol, - Bn = Kn.propertyIsEnumerable, - kn = mn ? mn.isConcatSpreadable : void 0, - ln = Math.max - function yn(tn) { - return ( - Cn(tn) || - (function (En) { - return ( - (function (Mn) { - return ( - (function (Hn) { - return !!Hn && typeof Hn == 'object' - })(Mn) && - (function (Hn) { - return ( - Hn != null && - (function (un) { - return ( - typeof un == 'number' && - un > -1 && - un % 1 == 0 && - un <= 9007199254740991 - ) - })(Hn.length) && - !(function (un) { - var dn = (function (Nn) { - var fn = typeof Nn - return !!Nn && (fn == 'object' || fn == 'function') - })(un) - ? xn.call(un) - : '' - return dn == '[object Function]' || dn == '[object GeneratorFunction]' - })(Hn) - ) - })(Mn) - ) - })(En) && - an.call(En, 'callee') && - (!Bn.call(En, 'callee') || xn.call(En) == '[object Arguments]') - ) - })(tn) || - !!(kn && tn && tn[kn]) - ) - } - var Cn = Array.isArray, - Tn, - Gn, - Sn, - Zn = - ((Gn = function (tn) { - var En = (tn = (function Hn(un, dn, Nn, fn, _n) { - var Ln = -1, - zn = un.length - for (Nn || (Nn = yn), _n || (_n = []); ++Ln < zn; ) { - var Fn = un[Ln] - dn > 0 && Nn(Fn) - ? dn > 1 - ? Hn(Fn, dn - 1, Nn, fn, _n) - : qn(_n, Fn) - : fn || (_n[_n.length] = Fn) - } - return _n - })(tn, 1)).length, - Mn = En - for (Tn; Mn--; ) - if (typeof tn[Mn] != 'function') throw new TypeError('Expected a function') - return function () { - for ( - var Hn = 0, un = En ? tn[Hn].apply(this, arguments) : arguments[0]; - ++Hn < En; - - ) - un = tn[Hn].call(this, un) - return un - } - }), - (Sn = ln(Sn === void 0 ? Gn.length - 1 : Sn, 0)), - function () { - for ( - var tn = arguments, En = -1, Mn = ln(tn.length - Sn, 0), Hn = Array(Mn); - ++En < Mn; - - ) - Hn[En] = tn[Sn + En] - En = -1 - for (var un = Array(Sn + 1); ++En < Sn; ) un[En] = tn[En] - return (un[Sn] = Hn), Jn(Gn, this, un) - }) - b.exports = Zn - }).call(this, en(43)) - }, - function (b, $, en) { - Object.defineProperty($, '__esModule', { value: !0 }), - ($.yuv2rgb = function (nn) { - var sn, - gn, - In, - Jn = nn[0], - qn = nn[1], - Kn = nn[2] - return ( - (sn = 1 * Jn + 0 * qn + 1.13983 * Kn), - (gn = 1 * Jn + -0.39465 * qn + -0.5806 * Kn), - (In = 1 * Jn + 2.02311 * qn + 0 * Kn), - (sn = Math.min(Math.max(0, sn), 1)), - (gn = Math.min(Math.max(0, gn), 1)), - (In = Math.min(Math.max(0, In), 1)), - [255 * sn, 255 * gn, 255 * In] - ) - }), - ($.rgb2yuv = function (nn) { - var sn = nn[0] / 255, - gn = nn[1] / 255, - In = nn[2] / 255 - return [ - 0.299 * sn + 0.587 * gn + 0.114 * In, - -0.14713 * sn + -0.28886 * gn + 0.436 * In, - 0.615 * sn + -0.51499 * gn + -0.10001 * In, - ] - }) - }, - function (b, $, en) { - function nn(In, Jn, qn) { - return ( - Jn in In - ? Object.defineProperty(In, Jn, { - value: qn, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (In[Jn] = qn), - In - ) - } - var sn = en(141), - gn = (function () { - function In() { - nn(this, '_callbacks', void 0), - nn(this, '_isDispatching', void 0), - nn(this, '_isHandled', void 0), - nn(this, '_isPending', void 0), - nn(this, '_lastID', void 0), - nn(this, '_pendingPayload', void 0), - (this._callbacks = {}), - (this._isDispatching = !1), - (this._isHandled = {}), - (this._isPending = {}), - (this._lastID = 1) - } - var Jn = In.prototype - return ( - (Jn.register = function (qn) { - var Kn = 'ID_' + this._lastID++ - return (this._callbacks[Kn] = qn), Kn - }), - (Jn.unregister = function (qn) { - this._callbacks[qn] || sn(!1), delete this._callbacks[qn] - }), - (Jn.waitFor = function (qn) { - this._isDispatching || sn(!1) - for (var Kn = 0; Kn < qn.length; Kn++) { - var an = qn[Kn] - this._isPending[an] - ? this._isHandled[an] || sn(!1) - : (this._callbacks[an] || sn(!1), this._invokeCallback(an)) - } - }), - (Jn.dispatch = function (qn) { - this._isDispatching && sn(!1), this._startDispatching(qn) - try { - for (var Kn in this._callbacks) this._isPending[Kn] || this._invokeCallback(Kn) - } finally { - this._stopDispatching() - } - }), - (Jn.isDispatching = function () { - return this._isDispatching - }), - (Jn._invokeCallback = function (qn) { - ;(this._isPending[qn] = !0), - this._callbacks[qn](this._pendingPayload), - (this._isHandled[qn] = !0) - }), - (Jn._startDispatching = function (qn) { - for (var Kn in this._callbacks) - (this._isPending[Kn] = !1), (this._isHandled[Kn] = !1) - ;(this._pendingPayload = qn), (this._isDispatching = !0) - }), - (Jn._stopDispatching = function () { - delete this._pendingPayload, (this._isDispatching = !1) - }), - In - ) - })() - b.exports = gn - }, - function (b, $, en) { - b.exports = function (nn, sn) { - for ( - var gn = arguments.length, In = new Array(gn > 2 ? gn - 2 : 0), Jn = 2; - Jn < gn; - Jn++ - ) - In[Jn - 2] = arguments[Jn] - if (!nn) { - var qn - if (sn === void 0) - qn = new Error( - 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.', - ) - else { - var Kn = 0 - ;(qn = new Error( - sn.replace(/%s/g, function () { - return String(In[Kn++]) - }), - )).name = 'Invariant Violation' - } - throw ((qn.framesToPop = 1), qn) - } - } - }, - function (b, $, en) { - function nn(Kt, Vt, Mt) { - return ( - Vt in Kt - ? Object.defineProperty(Kt, Vt, { - value: Mt, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (Kt[Vt] = Mt), - Kt - ) - } - function sn(Kt, Vt) { - var Mt = Object.keys(Kt) - if (Object.getOwnPropertySymbols) { - var $t = Object.getOwnPropertySymbols(Kt) - Vt && - ($t = $t.filter(function (qt) { - return Object.getOwnPropertyDescriptor(Kt, qt).enumerable - })), - Mt.push.apply(Mt, $t) - } - return Mt - } - function gn(Kt) { - for (var Vt = 1; Vt < arguments.length; Vt++) { - var Mt = arguments[Vt] != null ? arguments[Vt] : {} - Vt % 2 - ? sn(Object(Mt), !0).forEach(function ($t) { - nn(Kt, $t, Mt[$t]) - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(Kt, Object.getOwnPropertyDescriptors(Mt)) - : sn(Object(Mt)).forEach(function ($t) { - Object.defineProperty(Kt, $t, Object.getOwnPropertyDescriptor(Mt, $t)) - }) - } - return Kt - } - function In(Kt, Vt) { - if (!(Kt instanceof Vt)) throw new TypeError('Cannot call a class as a function') - } - function Jn(Kt, Vt) { - for (var Mt = 0; Mt < Vt.length; Mt++) { - var $t = Vt[Mt] - ;($t.enumerable = $t.enumerable || !1), - ($t.configurable = !0), - 'value' in $t && ($t.writable = !0), - Object.defineProperty(Kt, $t.key, $t) - } - } - function qn(Kt, Vt, Mt) { - return Vt && Jn(Kt.prototype, Vt), Mt && Jn(Kt, Mt), Kt - } - function Kn(Kt, Vt) { - return (Kn = - Object.setPrototypeOf || - function (Mt, $t) { - return (Mt.__proto__ = $t), Mt - })(Kt, Vt) - } - function an(Kt, Vt) { - if (typeof Vt != 'function' && Vt !== null) - throw new TypeError('Super expression must either be null or a function') - ;(Kt.prototype = Object.create(Vt && Vt.prototype, { - constructor: { value: Kt, writable: !0, configurable: !0 }, - })), - Vt && Kn(Kt, Vt) - } - function xn(Kt) { - return (xn = Object.setPrototypeOf - ? Object.getPrototypeOf - : function (Vt) { - return Vt.__proto__ || Object.getPrototypeOf(Vt) - })(Kt) - } - function mn(Kt) { - return (mn = - typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' - ? function (Vt) { - return typeof Vt - } - : function (Vt) { - return Vt && - typeof Symbol == 'function' && - Vt.constructor === Symbol && - Vt !== Symbol.prototype - ? 'symbol' - : typeof Vt - })(Kt) - } - function Bn(Kt) { - if (Kt === void 0) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called") - return Kt - } - function kn(Kt, Vt) { - return !Vt || (mn(Vt) !== 'object' && typeof Vt != 'function') ? Bn(Kt) : Vt - } - function ln(Kt) { - var Vt = (function () { - if (typeof Reflect > 'u' || !Reflect.construct || Reflect.construct.sham) return !1 - if (typeof Proxy == 'function') return !0 - try { - return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0 - } catch { - return !1 - } - })() - return function () { - var Mt, - $t = xn(Kt) - if (Vt) { - var qt = xn(this).constructor - Mt = Reflect.construct($t, arguments, qt) - } else Mt = $t.apply(this, arguments) - return kn(this, Mt) - } - } - en.r($) - var yn = en(0), - Cn = en.n(yn) - function Tn() { - var Kt = this.constructor.getDerivedStateFromProps(this.props, this.state) - Kt != null && this.setState(Kt) - } - function Gn(Kt) { - this.setState( - function (Vt) { - var Mt = this.constructor.getDerivedStateFromProps(Kt, Vt) - return Mt ?? null - }.bind(this), - ) - } - function Sn(Kt, Vt) { - try { - var Mt = this.props, - $t = this.state - ;(this.props = Kt), - (this.state = Vt), - (this.__reactInternalSnapshotFlag = !0), - (this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(Mt, $t)) - } finally { - ;(this.props = Mt), (this.state = $t) - } - } - function Zn(Kt) { - var Vt = Kt.prototype - if (!Vt || !Vt.isReactComponent) throw new Error('Can only polyfill class components') - if ( - typeof Kt.getDerivedStateFromProps != 'function' && - typeof Vt.getSnapshotBeforeUpdate != 'function' - ) - return Kt - var Mt = null, - $t = null, - qt = null - if ( - (typeof Vt.componentWillMount == 'function' - ? (Mt = 'componentWillMount') - : typeof Vt.UNSAFE_componentWillMount == 'function' && - (Mt = 'UNSAFE_componentWillMount'), - typeof Vt.componentWillReceiveProps == 'function' - ? ($t = 'componentWillReceiveProps') - : typeof Vt.UNSAFE_componentWillReceiveProps == 'function' && - ($t = 'UNSAFE_componentWillReceiveProps'), - typeof Vt.componentWillUpdate == 'function' - ? (qt = 'componentWillUpdate') - : typeof Vt.UNSAFE_componentWillUpdate == 'function' && - (qt = 'UNSAFE_componentWillUpdate'), - Mt !== null || $t !== null || qt !== null) - ) { - var pr = Kt.displayName || Kt.name, - Rr = - typeof Kt.getDerivedStateFromProps == 'function' - ? 'getDerivedStateFromProps()' - : 'getSnapshotBeforeUpdate()' - throw Error( - `Unsafe legacy lifecycles will not be called for components using new component APIs. - -` + - pr + - ' uses ' + - Rr + - ' but also contains the following legacy lifecycles:' + - (Mt !== null - ? ` - ` + Mt - : '') + - ($t !== null - ? ` - ` + $t - : '') + - (qt !== null - ? ` - ` + qt - : '') + - ` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`, - ) - } - if ( - (typeof Kt.getDerivedStateFromProps == 'function' && - ((Vt.componentWillMount = Tn), (Vt.componentWillReceiveProps = Gn)), - typeof Vt.getSnapshotBeforeUpdate == 'function') - ) { - if (typeof Vt.componentDidUpdate != 'function') - throw new Error( - 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype', - ) - Vt.componentWillUpdate = Sn - var Sr = Vt.componentDidUpdate - Vt.componentDidUpdate = function (lr, Jr, co) { - var Po = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : co - Sr.call(this, lr, Jr, Po) - } - } - return Kt - } - function tn(Kt, Vt) { - if (Kt == null) return {} - var Mt, - $t, - qt = (function (Rr, Sr) { - if (Rr == null) return {} - var lr, - Jr, - co = {}, - Po = Object.keys(Rr) - for (Jr = 0; Jr < Po.length; Jr++) - (lr = Po[Jr]), Sr.indexOf(lr) >= 0 || (co[lr] = Rr[lr]) - return co - })(Kt, Vt) - if (Object.getOwnPropertySymbols) { - var pr = Object.getOwnPropertySymbols(Kt) - for ($t = 0; $t < pr.length; $t++) - (Mt = pr[$t]), - Vt.indexOf(Mt) >= 0 || - (Object.prototype.propertyIsEnumerable.call(Kt, Mt) && (qt[Mt] = Kt[Mt])) - } - return qt - } - function En(Kt) { - var Vt = (function (Mt) { - return {}.toString - .call(Mt) - .match(/\s([a-zA-Z]+)/)[1] - .toLowerCase() - })(Kt) - return ( - Vt === 'number' && (Vt = isNaN(Kt) ? 'nan' : (0 | Kt) != Kt ? 'float' : 'integer'), Vt - ) - } - ;(Tn.__suppressDeprecationWarning = !0), - (Gn.__suppressDeprecationWarning = !0), - (Sn.__suppressDeprecationWarning = !0) - var Mn = { - scheme: 'rjv-default', - author: 'mac gainor', - base00: 'rgba(0, 0, 0, 0)', - base01: 'rgb(245, 245, 245)', - base02: 'rgb(235, 235, 235)', - base03: '#93a1a1', - base04: 'rgba(0, 0, 0, 0.3)', - base05: '#586e75', - base06: '#073642', - base07: '#002b36', - base08: '#d33682', - base09: '#cb4b16', - base0A: '#dc322f', - base0B: '#859900', - base0C: '#6c71c4', - base0D: '#586e75', - base0E: '#2aa198', - base0F: '#268bd2', - }, - Hn = { - scheme: 'rjv-grey', - author: 'mac gainor', - base00: 'rgba(1, 1, 1, 0)', - base01: 'rgba(1, 1, 1, 0.1)', - base02: 'rgba(0, 0, 0, 0.2)', - base03: 'rgba(1, 1, 1, 0.3)', - base04: 'rgba(0, 0, 0, 0.4)', - base05: 'rgba(1, 1, 1, 0.5)', - base06: 'rgba(1, 1, 1, 0.6)', - base07: 'rgba(1, 1, 1, 0.7)', - base08: 'rgba(1, 1, 1, 0.8)', - base09: 'rgba(1, 1, 1, 0.8)', - base0A: 'rgba(1, 1, 1, 0.8)', - base0B: 'rgba(1, 1, 1, 0.8)', - base0C: 'rgba(1, 1, 1, 0.8)', - base0D: 'rgba(1, 1, 1, 0.8)', - base0E: 'rgba(1, 1, 1, 0.8)', - base0F: 'rgba(1, 1, 1, 0.8)', - }, - un = { - white: '#fff', - black: '#000', - transparent: 'rgba(1, 1, 1, 0)', - globalFontFamily: 'monospace', - globalCursor: 'default', - indentBlockWidth: '5px', - braceFontWeight: 'bold', - braceCursor: 'pointer', - ellipsisFontSize: '18px', - ellipsisLineHeight: '10px', - ellipsisCursor: 'pointer', - keyMargin: '0px 5px', - keyLetterSpacing: '0.5px', - keyFontStyle: 'none', - keyBorderRadius: '3px', - keyColonWeight: 'bold', - keyVerticalAlign: 'top', - keyOpacity: '0.85', - keyOpacityHover: '1', - keyValPaddingTop: '3px', - keyValPaddingBottom: '3px', - keyValPaddingRight: '5px', - keyValBorderLeft: '1px solid', - keyValBorderHover: '2px solid', - keyValPaddingHover: '3px 5px 3px 4px', - pushedContentMarginLeft: '6px', - variableValuePaddingRight: '6px', - nullFontSize: '11px', - nullFontWeight: 'bold', - nullPadding: '1px 2px', - nullBorderRadius: '3px', - nanFontSize: '11px', - nanFontWeight: 'bold', - nanPadding: '1px 2px', - nanBorderRadius: '3px', - undefinedFontSize: '11px', - undefinedFontWeight: 'bold', - undefinedPadding: '1px 2px', - undefinedBorderRadius: '3px', - dataTypeFontSize: '11px', - dataTypeMarginRight: '4px', - datatypeOpacity: '0.8', - objectSizeBorderRadius: '3px', - objectSizeFontStyle: 'italic', - objectSizeMargin: '0px 6px 0px 0px', - clipboardCursor: 'pointer', - clipboardCheckMarginLeft: '-12px', - metaDataPadding: '0px 0px 0px 10px', - arrayGroupMetaPadding: '0px 0px 0px 4px', - iconContainerWidth: '17px', - tooltipPadding: '4px', - editInputMinWidth: '130px', - editInputBorderRadius: '2px', - editInputPadding: '5px', - editInputMarginRight: '4px', - editInputFontFamily: 'monospace', - iconCursor: 'pointer', - iconFontSize: '15px', - iconPaddingRight: '1px', - dateValueMarginLeft: '2px', - iconMarginRight: '3px', - detectedRowPaddingTop: '3px', - addKeyCoverBackground: 'rgba(255, 255, 255, 0.3)', - addKeyCoverPosition: 'absolute', - addKeyCoverPositionPx: '0px', - addKeyModalWidth: '200px', - addKeyModalMargin: 'auto', - addKeyModalPadding: '10px', - addKeyModalRadius: '3px', - }, - dn = en(45), - Nn = function (Kt) { - var Vt = (function (Mt) { - return { - backgroundColor: Mt.base00, - ellipsisColor: Mt.base09, - braceColor: Mt.base07, - expandedIcon: Mt.base0D, - collapsedIcon: Mt.base0E, - keyColor: Mt.base07, - arrayKeyColor: Mt.base0C, - objectSize: Mt.base04, - copyToClipboard: Mt.base0F, - copyToClipboardCheck: Mt.base0D, - objectBorder: Mt.base02, - dataTypes: { - boolean: Mt.base0E, - date: Mt.base0D, - float: Mt.base0B, - function: Mt.base0D, - integer: Mt.base0F, - string: Mt.base09, - nan: Mt.base08, - null: Mt.base0A, - undefined: Mt.base05, - regexp: Mt.base0A, - background: Mt.base02, - }, - editVariable: { - editIcon: Mt.base0E, - cancelIcon: Mt.base09, - removeIcon: Mt.base09, - addIcon: Mt.base0E, - checkIcon: Mt.base0E, - background: Mt.base01, - color: Mt.base0A, - border: Mt.base07, - }, - addKeyModal: { - background: Mt.base05, - border: Mt.base04, - color: Mt.base0A, - labelColor: Mt.base01, - }, - validationFailure: { - background: Mt.base09, - iconColor: Mt.base01, - fontColor: Mt.base01, - }, - } - })(Kt) - return { - 'app-container': { - fontFamily: un.globalFontFamily, - cursor: un.globalCursor, - backgroundColor: Vt.backgroundColor, - position: 'relative', - }, - ellipsis: { - display: 'inline-block', - color: Vt.ellipsisColor, - fontSize: un.ellipsisFontSize, - lineHeight: un.ellipsisLineHeight, - cursor: un.ellipsisCursor, - }, - 'brace-row': { display: 'inline-block', cursor: 'pointer' }, - brace: { - display: 'inline-block', - cursor: un.braceCursor, - fontWeight: un.braceFontWeight, - color: Vt.braceColor, - }, - 'expanded-icon': { color: Vt.expandedIcon }, - 'collapsed-icon': { color: Vt.collapsedIcon }, - colon: { - display: 'inline-block', - margin: un.keyMargin, - color: Vt.keyColor, - verticalAlign: 'top', - }, - objectKeyVal: function (Mt, $t) { - return { - style: gn( - { - paddingTop: un.keyValPaddingTop, - paddingRight: un.keyValPaddingRight, - paddingBottom: un.keyValPaddingBottom, - borderLeft: un.keyValBorderLeft + ' ' + Vt.objectBorder, - ':hover': { - paddingLeft: $t.paddingLeft - 1 + 'px', - borderLeft: un.keyValBorderHover + ' ' + Vt.objectBorder, - }, - }, - $t, - ), - } - }, - 'object-key-val-no-border': { padding: un.keyValPadding }, - 'pushed-content': { marginLeft: un.pushedContentMarginLeft }, - variableValue: function (Mt, $t) { - return { - style: gn( - { - display: 'inline-block', - paddingRight: un.variableValuePaddingRight, - position: 'relative', - }, - $t, - ), - } - }, - 'object-name': { - display: 'inline-block', - color: Vt.keyColor, - letterSpacing: un.keyLetterSpacing, - fontStyle: un.keyFontStyle, - verticalAlign: un.keyVerticalAlign, - opacity: un.keyOpacity, - ':hover': { opacity: un.keyOpacityHover }, - }, - 'array-key': { - display: 'inline-block', - color: Vt.arrayKeyColor, - letterSpacing: un.keyLetterSpacing, - fontStyle: un.keyFontStyle, - verticalAlign: un.keyVerticalAlign, - opacity: un.keyOpacity, - ':hover': { opacity: un.keyOpacityHover }, - }, - 'object-size': { - color: Vt.objectSize, - borderRadius: un.objectSizeBorderRadius, - fontStyle: un.objectSizeFontStyle, - margin: un.objectSizeMargin, - cursor: 'default', - }, - 'data-type-label': { - fontSize: un.dataTypeFontSize, - marginRight: un.dataTypeMarginRight, - opacity: un.datatypeOpacity, - }, - boolean: { display: 'inline-block', color: Vt.dataTypes.boolean }, - date: { display: 'inline-block', color: Vt.dataTypes.date }, - 'date-value': { marginLeft: un.dateValueMarginLeft }, - float: { display: 'inline-block', color: Vt.dataTypes.float }, - function: { - display: 'inline-block', - color: Vt.dataTypes.function, - cursor: 'pointer', - whiteSpace: 'pre-line', - }, - 'function-value': { fontStyle: 'italic' }, - integer: { display: 'inline-block', color: Vt.dataTypes.integer }, - string: { display: 'inline-block', color: Vt.dataTypes.string }, - nan: { - display: 'inline-block', - color: Vt.dataTypes.nan, - fontSize: un.nanFontSize, - fontWeight: un.nanFontWeight, - backgroundColor: Vt.dataTypes.background, - padding: un.nanPadding, - borderRadius: un.nanBorderRadius, - }, - null: { - display: 'inline-block', - color: Vt.dataTypes.null, - fontSize: un.nullFontSize, - fontWeight: un.nullFontWeight, - backgroundColor: Vt.dataTypes.background, - padding: un.nullPadding, - borderRadius: un.nullBorderRadius, - }, - undefined: { - display: 'inline-block', - color: Vt.dataTypes.undefined, - fontSize: un.undefinedFontSize, - padding: un.undefinedPadding, - borderRadius: un.undefinedBorderRadius, - backgroundColor: Vt.dataTypes.background, - }, - regexp: { display: 'inline-block', color: Vt.dataTypes.regexp }, - 'copy-to-clipboard': { cursor: un.clipboardCursor }, - 'copy-icon': { - color: Vt.copyToClipboard, - fontSize: un.iconFontSize, - marginRight: un.iconMarginRight, - verticalAlign: 'top', - }, - 'copy-icon-copied': { - color: Vt.copyToClipboardCheck, - marginLeft: un.clipboardCheckMarginLeft, - }, - 'array-group-meta-data': { - display: 'inline-block', - padding: un.arrayGroupMetaPadding, - }, - 'object-meta-data': { display: 'inline-block', padding: un.metaDataPadding }, - 'icon-container': { display: 'inline-block', width: un.iconContainerWidth }, - tooltip: { padding: un.tooltipPadding }, - removeVarIcon: { - verticalAlign: 'top', - display: 'inline-block', - color: Vt.editVariable.removeIcon, - cursor: un.iconCursor, - fontSize: un.iconFontSize, - marginRight: un.iconMarginRight, - }, - addVarIcon: { - verticalAlign: 'top', - display: 'inline-block', - color: Vt.editVariable.addIcon, - cursor: un.iconCursor, - fontSize: un.iconFontSize, - marginRight: un.iconMarginRight, - }, - editVarIcon: { - verticalAlign: 'top', - display: 'inline-block', - color: Vt.editVariable.editIcon, - cursor: un.iconCursor, - fontSize: un.iconFontSize, - marginRight: un.iconMarginRight, - }, - 'edit-icon-container': { display: 'inline-block', verticalAlign: 'top' }, - 'check-icon': { - display: 'inline-block', - cursor: un.iconCursor, - color: Vt.editVariable.checkIcon, - fontSize: un.iconFontSize, - paddingRight: un.iconPaddingRight, - }, - 'cancel-icon': { - display: 'inline-block', - cursor: un.iconCursor, - color: Vt.editVariable.cancelIcon, - fontSize: un.iconFontSize, - paddingRight: un.iconPaddingRight, - }, - 'edit-input': { - display: 'inline-block', - minWidth: un.editInputMinWidth, - borderRadius: un.editInputBorderRadius, - backgroundColor: Vt.editVariable.background, - color: Vt.editVariable.color, - padding: un.editInputPadding, - marginRight: un.editInputMarginRight, - fontFamily: un.editInputFontFamily, - }, - 'detected-row': { paddingTop: un.detectedRowPaddingTop }, - 'key-modal-request': { - position: un.addKeyCoverPosition, - top: un.addKeyCoverPositionPx, - left: un.addKeyCoverPositionPx, - right: un.addKeyCoverPositionPx, - bottom: un.addKeyCoverPositionPx, - backgroundColor: un.addKeyCoverBackground, - }, - 'key-modal': { - width: un.addKeyModalWidth, - backgroundColor: Vt.addKeyModal.background, - marginLeft: un.addKeyModalMargin, - marginRight: un.addKeyModalMargin, - padding: un.addKeyModalPadding, - borderRadius: un.addKeyModalRadius, - marginTop: '15px', - position: 'relative', - }, - 'key-modal-label': { - color: Vt.addKeyModal.labelColor, - marginLeft: '2px', - marginBottom: '5px', - fontSize: '11px', - }, - 'key-modal-input-container': { overflow: 'hidden' }, - 'key-modal-input': { - width: '100%', - padding: '3px 6px', - fontFamily: 'monospace', - color: Vt.addKeyModal.color, - border: 'none', - boxSizing: 'border-box', - borderRadius: '2px', - }, - 'key-modal-cancel': { - backgroundColor: Vt.editVariable.removeIcon, - position: 'absolute', - top: '0px', - right: '0px', - borderRadius: '0px 3px 0px 3px', - cursor: 'pointer', - }, - 'key-modal-cancel-icon': { - color: Vt.addKeyModal.labelColor, - fontSize: un.iconFontSize, - transform: 'rotate(45deg)', - }, - 'key-modal-submit': { - color: Vt.editVariable.addIcon, - fontSize: un.iconFontSize, - position: 'absolute', - right: '2px', - top: '3px', - cursor: 'pointer', - }, - 'function-ellipsis': { - display: 'inline-block', - color: Vt.ellipsisColor, - fontSize: un.ellipsisFontSize, - lineHeight: un.ellipsisLineHeight, - cursor: un.ellipsisCursor, - }, - 'validation-failure': { - float: 'right', - padding: '3px 6px', - borderRadius: '2px', - cursor: 'pointer', - color: Vt.validationFailure.fontColor, - backgroundColor: Vt.validationFailure.background, - }, - 'validation-failure-label': { marginRight: '6px' }, - 'validation-failure-clear': { - position: 'relative', - verticalAlign: 'top', - cursor: 'pointer', - color: Vt.validationFailure.iconColor, - fontSize: un.iconFontSize, - transform: 'rotate(45deg)', - }, - } - } - function fn(Kt, Vt, Mt) { - return ( - Kt || console.error('theme has not been set'), - (function ($t) { - var qt = Mn - return ( - ($t !== !1 && $t !== 'none') || (qt = Hn), - Object(dn.createStyling)(Nn, { defaultBase16: qt })($t) - ) - })(Kt)(Vt, Mt) - ) - } - var _n = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = ($t.rjvId, $t.type_name), - pr = $t.displayDataTypes, - Rr = $t.theme - return pr - ? Cn.a.createElement( - 'span', - Object.assign( - { className: 'data-type-label' }, - fn(Rr, 'data-type-label'), - ), - qt, - ) - : null - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Ln = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props - return Cn.a.createElement( - 'div', - fn($t.theme, 'boolean'), - Cn.a.createElement(_n, Object.assign({ type_name: 'bool' }, $t)), - $t.value ? 'true' : 'false', - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - zn = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props - return Cn.a.createElement( - 'div', - fn($t.theme, 'date'), - Cn.a.createElement(_n, Object.assign({ type_name: 'date' }, $t)), - Cn.a.createElement( - 'span', - Object.assign({ className: 'date-value' }, fn($t.theme, 'date-value')), - $t.value.toLocaleTimeString('en-us', { - weekday: 'short', - year: 'numeric', - month: 'short', - day: 'numeric', - hour: '2-digit', - minute: '2-digit', - }), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Fn = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props - return Cn.a.createElement( - 'div', - fn($t.theme, 'float'), - Cn.a.createElement(_n, Object.assign({ type_name: 'float' }, $t)), - this.props.value, - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent) - function An(Kt, Vt) { - ;(Vt == null || Vt > Kt.length) && (Vt = Kt.length) - for (var Mt = 0, $t = new Array(Vt); Mt < Vt; Mt++) $t[Mt] = Kt[Mt] - return $t - } - function Qn(Kt, Vt) { - if (Kt) { - if (typeof Kt == 'string') return An(Kt, Vt) - var Mt = Object.prototype.toString.call(Kt).slice(8, -1) - return ( - Mt === 'Object' && Kt.constructor && (Mt = Kt.constructor.name), - Mt === 'Map' || Mt === 'Set' - ? Array.from(Kt) - : Mt === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mt) - ? An(Kt, Vt) - : void 0 - ) - } - } - function Rn(Kt, Vt) { - var Mt - if (typeof Symbol > 'u' || Kt[Symbol.iterator] == null) { - if (Array.isArray(Kt) || (Mt = Qn(Kt)) || (Vt && Kt && typeof Kt.length == 'number')) { - Mt && (Kt = Mt) - var $t = 0, - qt = function () {} - return { - s: qt, - n: function () { - return $t >= Kt.length ? { done: !0 } : { done: !1, value: Kt[$t++] } - }, - e: function (lr) { - throw lr - }, - f: qt, - } - } - throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) - } - var pr, - Rr = !0, - Sr = !1 - return { - s: function () { - Mt = Kt[Symbol.iterator]() - }, - n: function () { - var lr = Mt.next() - return (Rr = lr.done), lr - }, - e: function (lr) { - ;(Sr = !0), (pr = lr) - }, - f: function () { - try { - Rr || Mt.return == null || Mt.return() - } finally { - if (Sr) throw pr - } - }, - } - } - function Vn(Kt) { - return ( - (function (Vt) { - if (Array.isArray(Vt)) return An(Vt) - })(Kt) || - (function (Vt) { - if (typeof Symbol < 'u' && Symbol.iterator in Object(Vt)) return Array.from(Vt) - })(Kt) || - Qn(Kt) || - (function () { - throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) - })() - ) - } - var Wn = en(46), - ht = new (en(47).Dispatcher)(), - Wt = new ((function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - var $t - In(this, Mt) - for (var qt = arguments.length, pr = new Array(qt), Rr = 0; Rr < qt; Rr++) - pr[Rr] = arguments[Rr] - return ( - (($t = Vt.call.apply(Vt, [this].concat(pr))).objects = {}), - ($t.set = function (Sr, lr, Jr, co) { - $t.objects[Sr] === void 0 && ($t.objects[Sr] = {}), - $t.objects[Sr][lr] === void 0 && ($t.objects[Sr][lr] = {}), - ($t.objects[Sr][lr][Jr] = co) - }), - ($t.get = function (Sr, lr, Jr, co) { - return $t.objects[Sr] === void 0 || - $t.objects[Sr][lr] === void 0 || - $t.objects[Sr][lr][Jr] == null - ? co - : $t.objects[Sr][lr][Jr] - }), - ($t.handleAction = function (Sr) { - var lr = Sr.rjvId, - Jr = Sr.data - switch (Sr.name) { - case 'RESET': - $t.emit('reset-' + lr) - break - case 'VARIABLE_UPDATED': - ;(Sr.data.updated_src = $t.updateSrc(lr, Jr)), - $t.set( - lr, - 'action', - 'variable-update', - gn(gn({}, Jr), {}, { type: 'variable-edited' }), - ), - $t.emit('variable-update-' + lr) - break - case 'VARIABLE_REMOVED': - ;(Sr.data.updated_src = $t.updateSrc(lr, Jr)), - $t.set( - lr, - 'action', - 'variable-update', - gn(gn({}, Jr), {}, { type: 'variable-removed' }), - ), - $t.emit('variable-update-' + lr) - break - case 'VARIABLE_ADDED': - ;(Sr.data.updated_src = $t.updateSrc(lr, Jr)), - $t.set( - lr, - 'action', - 'variable-update', - gn(gn({}, Jr), {}, { type: 'variable-added' }), - ), - $t.emit('variable-update-' + lr) - break - case 'ADD_VARIABLE_KEY_REQUEST': - $t.set(lr, 'action', 'new-key-request', Jr), $t.emit('add-key-request-' + lr) - } - }), - ($t.updateSrc = function (Sr, lr) { - var Jr = lr.name, - co = lr.namespace, - Po = lr.new_value, - Ho = (lr.existing_value, lr.variable_removed) - co.shift() - var Xo, - Mo = $t.get(Sr, 'global', 'src'), - vr = $t.deepCopy(Mo, Vn(co)), - Wr = vr, - qr = Rn(co) - try { - for (qr.s(); !(Xo = qr.n()).done; ) Wr = Wr[Xo.value] - } catch (Xr) { - qr.e(Xr) - } finally { - qr.f() - } - return ( - Ho - ? En(Wr) == 'array' - ? Wr.splice(Jr, 1) - : delete Wr[Jr] - : Jr !== null - ? (Wr[Jr] = Po) - : (vr = Po), - $t.set(Sr, 'global', 'src', vr), - vr - ) - }), - ($t.deepCopy = function (Sr, lr) { - var Jr, - co = En(Sr), - Po = lr.shift() - return ( - co == 'array' ? (Jr = Vn(Sr)) : co == 'object' && (Jr = gn({}, Sr)), - Po !== void 0 && (Jr[Po] = $t.deepCopy(Sr[Po], lr)), - Jr - ) - }), - $t - ) - } - return Mt - })(Wn.EventEmitter))() - ht.register(Wt.handleAction.bind(Wt)) - var zt = Wt, - mr = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - return ( - In(this, Mt), - ((qt = Vt.call(this, $t)).toggleCollapsed = function () { - qt.setState({ collapsed: !qt.state.collapsed }, function () { - zt.set(qt.props.rjvId, qt.props.namespace, 'collapsed', qt.state.collapsed) - }) - }), - (qt.getFunctionDisplay = function (pr) { - var Rr = Bn(qt).props - return pr - ? Cn.a.createElement( - 'span', - null, - qt.props.value - .toString() - .slice(9, -1) - .replace(/\{[\s\S]+/, ''), - Cn.a.createElement( - 'span', - { className: 'function-collapsed', style: { fontWeight: 'bold' } }, - Cn.a.createElement('span', null, '{'), - Cn.a.createElement('span', fn(Rr.theme, 'ellipsis'), '...'), - Cn.a.createElement('span', null, '}'), - ), - ) - : qt.props.value.toString().slice(9, -1) - }), - (qt.state = { collapsed: zt.get($t.rjvId, $t.namespace, 'collapsed', !0) }), - qt - ) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = this.state.collapsed - return Cn.a.createElement( - 'div', - fn($t.theme, 'function'), - Cn.a.createElement(_n, Object.assign({ type_name: 'function' }, $t)), - Cn.a.createElement( - 'span', - Object.assign({}, fn($t.theme, 'function-value'), { - className: 'rjv-function-container', - onClick: this.toggleCollapsed, - }), - this.getFunctionDisplay(qt), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Uo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - return Cn.a.createElement('div', fn(this.props.theme, 'nan'), 'NaN') - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Vo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - return Cn.a.createElement('div', fn(this.props.theme, 'null'), 'NULL') - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - ko = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props - return Cn.a.createElement( - 'div', - fn($t.theme, 'integer'), - Cn.a.createElement(_n, Object.assign({ type_name: 'int' }, $t)), - this.props.value, - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - na = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props - return Cn.a.createElement( - 'div', - fn($t.theme, 'regexp'), - Cn.a.createElement(_n, Object.assign({ type_name: 'regexp' }, $t)), - this.props.value.toString(), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Yo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - return ( - In(this, Mt), - ((qt = Vt.call(this, $t)).toggleCollapsed = function () { - qt.setState({ collapsed: !qt.state.collapsed }, function () { - zt.set(qt.props.rjvId, qt.props.namespace, 'collapsed', qt.state.collapsed) - }) - }), - (qt.state = { collapsed: zt.get($t.rjvId, $t.namespace, 'collapsed', !0) }), - qt - ) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - this.state.collapsed - var $t = this.props, - qt = $t.collapseStringsAfterLength, - pr = $t.theme, - Rr = $t.value, - Sr = { style: { cursor: 'default' } } - return ( - En(qt) === 'integer' && - Rr.length > qt && - ((Sr.style.cursor = 'pointer'), - this.state.collapsed && - (Rr = Cn.a.createElement( - 'span', - null, - Rr.substring(0, qt), - Cn.a.createElement('span', fn(pr, 'ellipsis'), ' ...'), - ))), - Cn.a.createElement( - 'div', - fn(pr, 'string'), - Cn.a.createElement(_n, Object.assign({ type_name: 'string' }, $t)), - Cn.a.createElement( - 'span', - Object.assign({ className: 'string-value' }, Sr, { - onClick: this.toggleCollapsed, - }), - '"', - Rr, - '"', - ), - ) - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - vo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - return Cn.a.createElement('div', fn(this.props.theme, 'undefined'), 'undefined') - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent) - function Wo() { - return (Wo = - Object.assign || - function (Kt) { - for (var Vt = 1; Vt < arguments.length; Vt++) { - var Mt = arguments[Vt] - for (var $t in Mt) Object.prototype.hasOwnProperty.call(Mt, $t) && (Kt[$t] = Mt[$t]) - } - return Kt - }).apply(this, arguments) - } - var ba = yn.useLayoutEffect, - Co = function (Kt) { - var Vt = Object(yn.useRef)(Kt) - return ( - ba(function () { - Vt.current = Kt - }), - Vt - ) - }, - Ko = function (Kt, Vt) { - typeof Kt != 'function' ? (Kt.current = Vt) : Kt(Vt) - }, - xa = function (Kt, Vt) { - var Mt = Object(yn.useRef)() - return Object(yn.useCallback)( - function ($t) { - ;(Kt.current = $t), - Mt.current && Ko(Mt.current, null), - (Mt.current = Vt), - Vt && Ko(Vt, $t) - }, - [Vt], - ) - }, - bo = { - 'min-height': '0', - 'max-height': 'none', - height: '0', - visibility: 'hidden', - overflow: 'hidden', - position: 'absolute', - 'z-index': '-1000', - top: '0', - right: '0', - }, - br = function (Kt) { - Object.keys(bo).forEach(function (Vt) { - Kt.style.setProperty(Vt, bo[Vt], 'important') - }) - }, - Fr = null, - $r = function () {}, - cr = [ - 'borderBottomWidth', - 'borderLeftWidth', - 'borderRightWidth', - 'borderTopWidth', - 'boxSizing', - 'fontFamily', - 'fontSize', - 'fontStyle', - 'fontWeight', - 'letterSpacing', - 'lineHeight', - 'paddingBottom', - 'paddingLeft', - 'paddingRight', - 'paddingTop', - 'tabSize', - 'textIndent', - 'textRendering', - 'textTransform', - 'width', - ], - ir = !!document.documentElement.currentStyle, - vn = function (Kt, Vt) { - var Mt = Kt.cacheMeasurements, - $t = Kt.maxRows, - qt = Kt.minRows, - pr = Kt.onChange, - Rr = pr === void 0 ? $r : pr, - Sr = Kt.onHeightChange, - lr = Sr === void 0 ? $r : Sr, - Jr = (function (qr, Xr) { - if (qr == null) return {} - var Ao, - fo, - wo = {}, - so = Object.keys(qr) - for (fo = 0; fo < so.length; fo++) - (Ao = so[fo]), Xr.indexOf(Ao) >= 0 || (wo[Ao] = qr[Ao]) - return wo - })(Kt, ['cacheMeasurements', 'maxRows', 'minRows', 'onChange', 'onHeightChange']), - co, - Po = Jr.value !== void 0, - Ho = Object(yn.useRef)(null), - Xo = xa(Ho, Vt), - Mo = Object(yn.useRef)(0), - vr = Object(yn.useRef)(), - Wr = function () { - var qr = Ho.current, - Xr = - Mt && vr.current - ? vr.current - : (function (so) { - var jo = window.getComputedStyle(so) - if (jo === null) return null - var os, - as = - ((os = jo), - cr.reduce(function (pn, c) { - return (pn[c] = os[c]), pn - }, {})), - ys = as.boxSizing - return ys === '' - ? null - : (ir && - ys === 'border-box' && - (as.width = - parseFloat(as.width) + - parseFloat(as.borderRightWidth) + - parseFloat(as.borderLeftWidth) + - parseFloat(as.paddingRight) + - parseFloat(as.paddingLeft) + - 'px'), - { - sizingStyle: as, - paddingSize: - parseFloat(as.paddingBottom) + parseFloat(as.paddingTop), - borderSize: - parseFloat(as.borderBottomWidth) + parseFloat(as.borderTopWidth), - }) - })(qr) - if (Xr) { - vr.current = Xr - var Ao = (function (so, jo, os, as) { - os === void 0 && (os = 1), - as === void 0 && (as = 1 / 0), - Fr || - ((Fr = document.createElement('textarea')).setAttribute( - 'tab-index', - '-1', - ), - Fr.setAttribute('aria-hidden', 'true'), - br(Fr)), - Fr.parentNode === null && document.body.appendChild(Fr) - var ys = so.paddingSize, - pn = so.borderSize, - c = so.sizingStyle, - rn = c.boxSizing - Object.keys(c).forEach(function (ru) { - var Zs = ru - Fr.style[Zs] = c[Zs] - }), - br(Fr), - (Fr.value = jo) - var Es = (function (ru, Zs) { - var wu = ru.scrollHeight - return Zs.sizingStyle.boxSizing === 'border-box' - ? wu + Zs.borderSize - : wu - Zs.paddingSize - })(Fr, so) - Fr.value = 'x' - var zr = Fr.scrollHeight - ys, - Ms = zr * os - rn === 'border-box' && (Ms = Ms + ys + pn), (Es = Math.max(Ms, Es)) - var Ws = zr * as - return ( - rn === 'border-box' && (Ws = Ws + ys + pn), [(Es = Math.min(Ws, Es)), zr] - ) - })(Xr, qr.value || qr.placeholder || 'x', qt, $t), - fo = Ao[0], - wo = Ao[1] - Mo.current !== fo && - ((Mo.current = fo), - qr.style.setProperty('height', fo + 'px', 'important'), - lr(fo, { rowHeight: wo })) - } - } - return ( - Object(yn.useLayoutEffect)(Wr), - (co = Co(Wr)), - Object(yn.useLayoutEffect)(function () { - var qr = function (Xr) { - co.current(Xr) - } - return ( - window.addEventListener('resize', qr), - function () { - window.removeEventListener('resize', qr) - } - ) - }, []), - Object(yn.createElement)( - 'textarea', - Wo({}, Jr, { - onChange: function (qr) { - Po || Wr(), Rr(qr) - }, - ref: Xo, - }), - ) - ) - }, - gr = Object(yn.forwardRef)(vn) - function Mr(Kt) { - Kt = Kt.trim() - try { - if ((Kt = JSON.stringify(JSON.parse(Kt)))[0] === '[') return Or('array', JSON.parse(Kt)) - if (Kt[0] === '{') return Or('object', JSON.parse(Kt)) - if (Kt.match(/\-?\d+\.\d+/) && Kt.match(/\-?\d+\.\d+/)[0] === Kt) - return Or('float', parseFloat(Kt)) - if (Kt.match(/\-?\d+e-\d+/) && Kt.match(/\-?\d+e-\d+/)[0] === Kt) - return Or('float', Number(Kt)) - if (Kt.match(/\-?\d+/) && Kt.match(/\-?\d+/)[0] === Kt) - return Or('integer', parseInt(Kt)) - if (Kt.match(/\-?\d+e\+\d+/) && Kt.match(/\-?\d+e\+\d+/)[0] === Kt) - return Or('integer', Number(Kt)) - } catch {} - switch ((Kt = Kt.toLowerCase())) { - case 'undefined': - return Or('undefined', void 0) - case 'nan': - return Or('nan', NaN) - case 'null': - return Or('null', null) - case 'true': - return Or('boolean', !0) - case 'false': - return Or('boolean', !1) - default: - if ((Kt = Date.parse(Kt))) return Or('date', new Date(Kt)) - } - return Or(!1, null) - } - function Or(Kt, Vt) { - return { type: Kt, value: Vt } - } - var _i = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 24 24', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement('path', { - d: 'M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7', - }), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - eo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 24 24', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement('path', { - d: 'M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z', - }), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - no = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']), - Rr = ho(qt).style - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - { - fill: Rr.color, - width: Rr.height, - height: Rr.width, - style: Rr, - viewBox: '0 0 1792 1792', - }, - Cn.a.createElement('path', { - d: 'M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z', - }), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Oo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']), - Rr = ho(qt).style - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - { - fill: Rr.color, - width: Rr.height, - height: Rr.width, - style: Rr, - viewBox: '0 0 1792 1792', - }, - Cn.a.createElement('path', { - d: 'M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z', - }), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - So = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - { - style: gn( - gn({}, ho(qt).style), - {}, - { paddingLeft: '2px', verticalAlign: 'top' }, - ), - viewBox: '0 0 15 15', - fill: 'currentColor', - }, - Cn.a.createElement('path', { d: 'M0 14l6-6-6-6z' }), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - lo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - { - style: gn( - gn({}, ho(qt).style), - {}, - { paddingLeft: '2px', verticalAlign: 'top' }, - ), - viewBox: '0 0 15 15', - fill: 'currentColor', - }, - Cn.a.createElement('path', { d: 'M0 5l6 6 6-6z' }), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Pn = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 40 40', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement( - 'g', - null, - Cn.a.createElement('path', { - d: 'm30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z', - }), - ), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Xn = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 40 40', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement( - 'g', - null, - Cn.a.createElement('path', { - d: 'm28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z', - }), - ), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - dt = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 40 40', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement( - 'g', - null, - Cn.a.createElement('path', { - d: 'm30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z', - }), - ), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Ir = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 40 40', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement( - 'g', - null, - Cn.a.createElement('path', { - d: 'm31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z', - }), - ), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Lt = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 40 40', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement( - 'g', - null, - Cn.a.createElement('path', { - d: 'm19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z', - }), - ), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - ur = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.style, - pr = tn($t, ['style']) - return Cn.a.createElement( - 'span', - pr, - Cn.a.createElement( - 'svg', - Object.assign({}, ho(qt), { - viewBox: '0 0 40 40', - fill: 'currentColor', - preserveAspectRatio: 'xMidYMid meet', - }), - Cn.a.createElement( - 'g', - null, - Cn.a.createElement('path', { - d: 'm31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z', - }), - ), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent) - function ho(Kt) { - return ( - Kt || (Kt = {}), - { - style: gn( - gn({ verticalAlign: 'middle' }, Kt), - {}, - { color: Kt.color ? Kt.color : '#000000', height: '1em', width: '1em' }, - ), - } - ) - } - var xo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - return ( - In(this, Mt), - ((qt = Vt.call(this, $t)).copiedTimer = null), - (qt.handleCopy = function () { - var pr = document.createElement('textarea'), - Rr = qt.props, - Sr = Rr.clickCallback, - lr = Rr.src, - Jr = Rr.namespace - ;(pr.innerHTML = JSON.stringify(qt.clipboardValue(lr), null, ' ')), - document.body.appendChild(pr), - pr.select(), - document.execCommand('copy'), - document.body.removeChild(pr), - (qt.copiedTimer = setTimeout(function () { - qt.setState({ copied: !1 }) - }, 5500)), - qt.setState({ copied: !0 }, function () { - typeof Sr == 'function' && - Sr({ src: lr, namespace: Jr, name: Jr[Jr.length - 1] }) - }) - }), - (qt.getClippyIcon = function () { - var pr = qt.props.theme - return qt.state.copied - ? Cn.a.createElement( - 'span', - null, - Cn.a.createElement( - Pn, - Object.assign({ className: 'copy-icon' }, fn(pr, 'copy-icon')), - ), - Cn.a.createElement('span', fn(pr, 'copy-icon-copied'), '✔'), - ) - : Cn.a.createElement( - Pn, - Object.assign({ className: 'copy-icon' }, fn(pr, 'copy-icon')), - ) - }), - (qt.clipboardValue = function (pr) { - switch (En(pr)) { - case 'function': - case 'regexp': - return pr.toString() - default: - return pr - } - }), - (qt.state = { copied: !1 }), - qt - ) - } - return ( - qn(Mt, [ - { - key: 'componentWillUnmount', - value: function () { - this.copiedTimer && (clearTimeout(this.copiedTimer), (this.copiedTimer = null)) - }, - }, - { - key: 'render', - value: function () { - var $t = this.props, - qt = ($t.src, $t.theme), - pr = $t.hidden, - Rr = $t.rowHovered, - Sr = fn(qt, 'copy-to-clipboard').style, - lr = 'inline' - return ( - pr && (lr = 'none'), - Cn.a.createElement( - 'span', - { - className: 'copy-to-clipboard-container', - title: 'Copy to clipboard', - style: { verticalAlign: 'top', display: Rr ? 'inline-block' : 'none' }, - }, - Cn.a.createElement( - 'span', - { style: gn(gn({}, Sr), {}, { display: lr }), onClick: this.handleCopy }, - this.getClippyIcon(), - ), - ) - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - yo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - return ( - In(this, Mt), - ((qt = Vt.call(this, $t)).getEditIcon = function () { - var pr = qt.props, - Rr = pr.variable, - Sr = pr.theme - return Cn.a.createElement( - 'div', - { - className: 'click-to-edit', - style: { - verticalAlign: 'top', - display: qt.state.hovered ? 'inline-block' : 'none', - }, - }, - Cn.a.createElement( - Lt, - Object.assign({ className: 'click-to-edit-icon' }, fn(Sr, 'editVarIcon'), { - onClick: function () { - qt.prepopInput(Rr) - }, - }), - ), - ) - }), - (qt.prepopInput = function (pr) { - if (qt.props.onEdit !== !1) { - var Rr = (function (lr) { - var Jr - switch (En(lr)) { - case 'undefined': - Jr = 'undefined' - break - case 'nan': - Jr = 'NaN' - break - case 'string': - Jr = lr - break - case 'date': - case 'function': - case 'regexp': - Jr = lr.toString() - break - default: - try { - Jr = JSON.stringify(lr, null, ' ') - } catch { - Jr = '' - } - } - return Jr - })(pr.value), - Sr = Mr(Rr) - qt.setState({ - editMode: !0, - editValue: Rr, - parsedInput: { type: Sr.type, value: Sr.value }, - }) - } - }), - (qt.getRemoveIcon = function () { - var pr = qt.props, - Rr = pr.variable, - Sr = pr.namespace, - lr = pr.theme, - Jr = pr.rjvId - return Cn.a.createElement( - 'div', - { - className: 'click-to-remove', - style: { - verticalAlign: 'top', - display: qt.state.hovered ? 'inline-block' : 'none', - }, - }, - Cn.a.createElement( - Xn, - Object.assign( - { className: 'click-to-remove-icon' }, - fn(lr, 'removeVarIcon'), - { - onClick: function () { - ht.dispatch({ - name: 'VARIABLE_REMOVED', - rjvId: Jr, - data: { - name: Rr.name, - namespace: Sr, - existing_value: Rr.value, - variable_removed: !0, - }, - }) - }, - }, - ), - ), - ) - }), - (qt.getValue = function (pr, Rr) { - var Sr = !Rr && pr.type, - lr = Bn(qt).props - switch (Sr) { - case !1: - return qt.getEditInput() - case 'string': - return Cn.a.createElement(Yo, Object.assign({ value: pr.value }, lr)) - case 'integer': - return Cn.a.createElement(ko, Object.assign({ value: pr.value }, lr)) - case 'float': - return Cn.a.createElement(Fn, Object.assign({ value: pr.value }, lr)) - case 'boolean': - return Cn.a.createElement(Ln, Object.assign({ value: pr.value }, lr)) - case 'function': - return Cn.a.createElement(mr, Object.assign({ value: pr.value }, lr)) - case 'null': - return Cn.a.createElement(Vo, lr) - case 'nan': - return Cn.a.createElement(Uo, lr) - case 'undefined': - return Cn.a.createElement(vo, lr) - case 'date': - return Cn.a.createElement(zn, Object.assign({ value: pr.value }, lr)) - case 'regexp': - return Cn.a.createElement(na, Object.assign({ value: pr.value }, lr)) - default: - return Cn.a.createElement( - 'div', - { className: 'object-value' }, - JSON.stringify(pr.value), - ) - } - }), - (qt.getEditInput = function () { - var pr = qt.props.theme, - Rr = qt.state.editValue - return Cn.a.createElement( - 'div', - null, - Cn.a.createElement( - gr, - Object.assign( - { - type: 'text', - inputRef: function (Sr) { - return Sr && Sr.focus() - }, - value: Rr, - className: 'variable-editor', - onChange: function (Sr) { - var lr = Sr.target.value, - Jr = Mr(lr) - qt.setState({ - editValue: lr, - parsedInput: { type: Jr.type, value: Jr.value }, - }) - }, - onKeyDown: function (Sr) { - switch (Sr.key) { - case 'Escape': - qt.setState({ editMode: !1, editValue: '' }) - break - case 'Enter': - ;(Sr.ctrlKey || Sr.metaKey) && qt.submitEdit(!0) - } - Sr.stopPropagation() - }, - placeholder: 'update this value', - minRows: 2, - }, - fn(pr, 'edit-input'), - ), - ), - Cn.a.createElement( - 'div', - fn(pr, 'edit-icon-container'), - Cn.a.createElement( - Xn, - Object.assign({ className: 'edit-cancel' }, fn(pr, 'cancel-icon'), { - onClick: function () { - qt.setState({ editMode: !1, editValue: '' }) - }, - }), - ), - Cn.a.createElement( - ur, - Object.assign( - { className: 'edit-check string-value' }, - fn(pr, 'check-icon'), - { - onClick: function () { - qt.submitEdit() - }, - }, - ), - ), - Cn.a.createElement('div', null, qt.showDetected()), - ), - ) - }), - (qt.submitEdit = function (pr) { - var Rr = qt.props, - Sr = Rr.variable, - lr = Rr.namespace, - Jr = Rr.rjvId, - co = qt.state, - Po = co.editValue, - Ho = co.parsedInput, - Xo = Po - pr && Ho.type && (Xo = Ho.value), - qt.setState({ editMode: !1 }), - ht.dispatch({ - name: 'VARIABLE_UPDATED', - rjvId: Jr, - data: { - name: Sr.name, - namespace: lr, - existing_value: Sr.value, - new_value: Xo, - variable_removed: !1, - }, - }) - }), - (qt.showDetected = function () { - var pr = qt.props, - Rr = pr.theme, - Sr = (pr.variable, pr.namespace, pr.rjvId, qt.state.parsedInput), - lr = (Sr.type, Sr.value, qt.getDetectedInput()) - if (lr) - return Cn.a.createElement( - 'div', - null, - Cn.a.createElement( - 'div', - fn(Rr, 'detected-row'), - lr, - Cn.a.createElement(ur, { - className: 'edit-check detected', - style: gn( - { verticalAlign: 'top', paddingLeft: '3px' }, - fn(Rr, 'check-icon').style, - ), - onClick: function () { - qt.submitEdit(!0) - }, - }), - ), - ) - }), - (qt.getDetectedInput = function () { - var pr = qt.state.parsedInput, - Rr = pr.type, - Sr = pr.value, - lr = Bn(qt).props, - Jr = lr.theme - if (Rr !== !1) - switch (Rr.toLowerCase()) { - case 'object': - return Cn.a.createElement( - 'span', - null, - Cn.a.createElement( - 'span', - { style: gn(gn({}, fn(Jr, 'brace').style), {}, { cursor: 'default' }) }, - '{', - ), - Cn.a.createElement( - 'span', - { - style: gn( - gn({}, fn(Jr, 'ellipsis').style), - {}, - { cursor: 'default' }, - ), - }, - '...', - ), - Cn.a.createElement( - 'span', - { style: gn(gn({}, fn(Jr, 'brace').style), {}, { cursor: 'default' }) }, - '}', - ), - ) - case 'array': - return Cn.a.createElement( - 'span', - null, - Cn.a.createElement( - 'span', - { style: gn(gn({}, fn(Jr, 'brace').style), {}, { cursor: 'default' }) }, - '[', - ), - Cn.a.createElement( - 'span', - { - style: gn( - gn({}, fn(Jr, 'ellipsis').style), - {}, - { cursor: 'default' }, - ), - }, - '...', - ), - Cn.a.createElement( - 'span', - { style: gn(gn({}, fn(Jr, 'brace').style), {}, { cursor: 'default' }) }, - ']', - ), - ) - case 'string': - return Cn.a.createElement(Yo, Object.assign({ value: Sr }, lr)) - case 'integer': - return Cn.a.createElement(ko, Object.assign({ value: Sr }, lr)) - case 'float': - return Cn.a.createElement(Fn, Object.assign({ value: Sr }, lr)) - case 'boolean': - return Cn.a.createElement(Ln, Object.assign({ value: Sr }, lr)) - case 'function': - return Cn.a.createElement(mr, Object.assign({ value: Sr }, lr)) - case 'null': - return Cn.a.createElement(Vo, lr) - case 'nan': - return Cn.a.createElement(Uo, lr) - case 'undefined': - return Cn.a.createElement(vo, lr) - case 'date': - return Cn.a.createElement(zn, Object.assign({ value: new Date(Sr) }, lr)) - } - }), - (qt.state = { - editMode: !1, - editValue: '', - hovered: !1, - renameKey: !1, - parsedInput: { type: !1, value: null }, - }), - qt - ) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this, - qt = this.props, - pr = qt.variable, - Rr = qt.singleIndent, - Sr = qt.type, - lr = qt.theme, - Jr = qt.namespace, - co = qt.indentWidth, - Po = qt.enableClipboard, - Ho = qt.onEdit, - Xo = qt.onDelete, - Mo = qt.onSelect, - vr = qt.displayArrayKey, - Wr = qt.quotesOnKeys, - qr = this.state.editMode - return Cn.a.createElement( - 'div', - Object.assign({}, fn(lr, 'objectKeyVal', { paddingLeft: co * Rr }), { - onMouseEnter: function () { - return $t.setState(gn(gn({}, $t.state), {}, { hovered: !0 })) - }, - onMouseLeave: function () { - return $t.setState(gn(gn({}, $t.state), {}, { hovered: !1 })) - }, - className: 'variable-row', - key: pr.name, - }), - Sr == 'array' - ? vr - ? Cn.a.createElement( - 'span', - Object.assign({}, fn(lr, 'array-key'), { key: pr.name + '_' + Jr }), - pr.name, - Cn.a.createElement('div', fn(lr, 'colon'), ':'), - ) - : null - : Cn.a.createElement( - 'span', - null, - Cn.a.createElement( - 'span', - Object.assign({}, fn(lr, 'object-name'), { - className: 'object-key', - key: pr.name + '_' + Jr, - }), - !!Wr && - Cn.a.createElement( - 'span', - { style: { verticalAlign: 'top' } }, - '"', - ), - Cn.a.createElement( - 'span', - { style: { display: 'inline-block' } }, - pr.name, - ), - !!Wr && - Cn.a.createElement( - 'span', - { style: { verticalAlign: 'top' } }, - '"', - ), - ), - Cn.a.createElement('span', fn(lr, 'colon'), ':'), - ), - Cn.a.createElement( - 'div', - Object.assign( - { - className: 'variable-value', - onClick: - Mo === !1 && Ho === !1 - ? null - : function (Xr) { - var Ao = Vn(Jr) - ;(Xr.ctrlKey || Xr.metaKey) && Ho !== !1 - ? $t.prepopInput(pr) - : Mo !== !1 && - (Ao.shift(), Mo(gn(gn({}, pr), {}, { namespace: Ao }))) - }, - }, - fn(lr, 'variableValue', { cursor: Mo === !1 ? 'default' : 'pointer' }), - ), - this.getValue(pr, qr), - ), - Po - ? Cn.a.createElement(xo, { - rowHovered: this.state.hovered, - hidden: qr, - src: pr.value, - clickCallback: Po, - theme: lr, - namespace: [].concat(Vn(Jr), [pr.name]), - }) - : null, - Ho !== !1 && qr == 0 ? this.getEditIcon() : null, - Xo !== !1 && qr == 0 ? this.getRemoveIcon() : null, - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - ga = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - var $t - In(this, Mt) - for (var qt = arguments.length, pr = new Array(qt), Rr = 0; Rr < qt; Rr++) - pr[Rr] = arguments[Rr] - return ( - (($t = Vt.call.apply(Vt, [this].concat(pr))).getObjectSize = function () { - var Sr = $t.props, - lr = Sr.size, - Jr = Sr.theme - if (Sr.displayObjectSize) - return Cn.a.createElement( - 'span', - Object.assign({ className: 'object-size' }, fn(Jr, 'object-size')), - lr, - ' item', - lr === 1 ? '' : 's', - ) - }), - ($t.getAddAttribute = function (Sr) { - var lr = $t.props, - Jr = lr.theme, - co = lr.namespace, - Po = lr.name, - Ho = lr.src, - Xo = lr.rjvId, - Mo = lr.depth - return Cn.a.createElement( - 'span', - { - className: 'click-to-add', - style: { verticalAlign: 'top', display: Sr ? 'inline-block' : 'none' }, - }, - Cn.a.createElement( - dt, - Object.assign({ className: 'click-to-add-icon' }, fn(Jr, 'addVarIcon'), { - onClick: function () { - var vr = { - name: Mo > 0 ? Po : null, - namespace: co.splice(0, co.length - 1), - existing_value: Ho, - variable_removed: !1, - key_name: null, - } - En(Ho) === 'object' - ? ht.dispatch({ name: 'ADD_VARIABLE_KEY_REQUEST', rjvId: Xo, data: vr }) - : ht.dispatch({ - name: 'VARIABLE_ADDED', - rjvId: Xo, - data: gn(gn({}, vr), {}, { new_value: [].concat(Vn(Ho), [null]) }), - }) - }, - }), - ), - ) - }), - ($t.getRemoveObject = function (Sr) { - var lr = $t.props, - Jr = lr.theme, - co = (lr.hover, lr.namespace), - Po = lr.name, - Ho = lr.src, - Xo = lr.rjvId - if (co.length !== 1) - return Cn.a.createElement( - 'span', - { - className: 'click-to-remove', - style: { display: Sr ? 'inline-block' : 'none' }, - }, - Cn.a.createElement( - Xn, - Object.assign( - { className: 'click-to-remove-icon' }, - fn(Jr, 'removeVarIcon'), - { - onClick: function () { - ht.dispatch({ - name: 'VARIABLE_REMOVED', - rjvId: Xo, - data: { - name: Po, - namespace: co.splice(0, co.length - 1), - existing_value: Ho, - variable_removed: !0, - }, - }) - }, - }, - ), - ), - ) - }), - ($t.render = function () { - var Sr = $t.props, - lr = Sr.theme, - Jr = Sr.onDelete, - co = Sr.onAdd, - Po = Sr.enableClipboard, - Ho = Sr.src, - Xo = Sr.namespace, - Mo = Sr.rowHovered - return Cn.a.createElement( - 'div', - Object.assign({}, fn(lr, 'object-meta-data'), { - className: 'object-meta-data', - onClick: function (vr) { - vr.stopPropagation() - }, - }), - $t.getObjectSize(), - Po - ? Cn.a.createElement(xo, { - rowHovered: Mo, - clickCallback: Po, - src: Ho, - theme: lr, - namespace: Xo, - }) - : null, - co !== !1 ? $t.getAddAttribute(Mo) : null, - Jr !== !1 ? $t.getRemoveObject(Mo) : null, - ) - }), - $t - ) - } - return Mt - })(Cn.a.PureComponent) - function Zo(Kt) { - var Vt = Kt.parent_type, - Mt = Kt.namespace, - $t = Kt.quotesOnKeys, - qt = Kt.theme, - pr = Kt.jsvRoot, - Rr = Kt.name, - Sr = Kt.displayArrayKey, - lr = Kt.name ? Kt.name : '' - return !pr || (Rr !== !1 && Rr !== null) - ? Vt == 'array' - ? Sr - ? Cn.a.createElement( - 'span', - Object.assign({}, fn(qt, 'array-key'), { key: Mt }), - Cn.a.createElement('span', { className: 'array-key' }, lr), - Cn.a.createElement('span', fn(qt, 'colon'), ':'), - ) - : Cn.a.createElement('span', null) - : Cn.a.createElement( - 'span', - Object.assign({}, fn(qt, 'object-name'), { key: Mt }), - Cn.a.createElement( - 'span', - { className: 'object-key' }, - $t && Cn.a.createElement('span', { style: { verticalAlign: 'top' } }, '"'), - Cn.a.createElement('span', null, lr), - $t && Cn.a.createElement('span', { style: { verticalAlign: 'top' } }, '"'), - ), - Cn.a.createElement('span', fn(qt, 'colon'), ':'), - ) - : Cn.a.createElement('span', null) - } - function _o(Kt) { - var Vt = Kt.theme - switch (Kt.iconStyle) { - case 'triangle': - return Cn.a.createElement( - lo, - Object.assign({}, fn(Vt, 'expanded-icon'), { className: 'expanded-icon' }), - ) - case 'square': - return Cn.a.createElement( - no, - Object.assign({}, fn(Vt, 'expanded-icon'), { className: 'expanded-icon' }), - ) - default: - return Cn.a.createElement( - _i, - Object.assign({}, fn(Vt, 'expanded-icon'), { className: 'expanded-icon' }), - ) - } - } - function zo(Kt) { - var Vt = Kt.theme - switch (Kt.iconStyle) { - case 'triangle': - return Cn.a.createElement( - So, - Object.assign({}, fn(Vt, 'collapsed-icon'), { className: 'collapsed-icon' }), - ) - case 'square': - return Cn.a.createElement( - Oo, - Object.assign({}, fn(Vt, 'collapsed-icon'), { className: 'collapsed-icon' }), - ) - default: - return Cn.a.createElement( - eo, - Object.assign({}, fn(Vt, 'collapsed-icon'), { className: 'collapsed-icon' }), - ) - } - } - var $a = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - return ( - In(this, Mt), - ((qt = Vt.call(this, $t)).toggleCollapsed = function (pr) { - var Rr = [] - for (var Sr in qt.state.expanded) Rr.push(qt.state.expanded[Sr]) - ;(Rr[pr] = !Rr[pr]), qt.setState({ expanded: Rr }) - }), - (qt.state = { expanded: [] }), - qt - ) - } - return ( - qn(Mt, [ - { - key: 'getExpandedIcon', - value: function ($t) { - var qt = this.props, - pr = qt.theme, - Rr = qt.iconStyle - return this.state.expanded[$t] - ? Cn.a.createElement(_o, { theme: pr, iconStyle: Rr }) - : Cn.a.createElement(zo, { theme: pr, iconStyle: Rr }) - }, - }, - { - key: 'render', - value: function () { - var $t = this, - qt = this.props, - pr = qt.src, - Rr = qt.groupArraysAfterLength, - Sr = (qt.depth, qt.name), - lr = qt.theme, - Jr = qt.jsvRoot, - co = qt.namespace, - Po = - (qt.parent_type, - tn(qt, [ - 'src', - 'groupArraysAfterLength', - 'depth', - 'name', - 'theme', - 'jsvRoot', - 'namespace', - 'parent_type', - ])), - Ho = 0, - Xo = 5 * this.props.indentWidth - Jr || (Ho = 5 * this.props.indentWidth) - var Mo = Rr, - vr = Math.ceil(pr.length / Mo) - return Cn.a.createElement( - 'div', - Object.assign( - { className: 'object-key-val' }, - fn(lr, Jr ? 'jsv-root' : 'objectKeyVal', { paddingLeft: Ho }), - ), - Cn.a.createElement(Zo, this.props), - Cn.a.createElement( - 'span', - null, - Cn.a.createElement(ga, Object.assign({ size: pr.length }, this.props)), - ), - Vn(Array(vr)).map(function (Wr, qr) { - return Cn.a.createElement( - 'div', - Object.assign( - { key: qr, className: 'object-key-val array-group' }, - fn(lr, 'objectKeyVal', { marginLeft: 6, paddingLeft: Xo }), - ), - Cn.a.createElement( - 'span', - fn(lr, 'brace-row'), - Cn.a.createElement( - 'div', - Object.assign( - { className: 'icon-container' }, - fn(lr, 'icon-container'), - { - onClick: function (Xr) { - $t.toggleCollapsed(qr) - }, - }, - ), - $t.getExpandedIcon(qr), - ), - $t.state.expanded[qr] - ? Cn.a.createElement( - rs, - Object.assign( - { - key: Sr + qr, - depth: 0, - name: !1, - collapsed: !1, - groupArraysAfterLength: Mo, - index_offset: qr * Mo, - src: pr.slice(qr * Mo, qr * Mo + Mo), - namespace: co, - type: 'array', - parent_type: 'array_group', - theme: lr, - }, - Po, - ), - ) - : Cn.a.createElement( - 'span', - Object.assign({}, fn(lr, 'brace'), { - onClick: function (Xr) { - $t.toggleCollapsed(qr) - }, - className: 'array-group-brace', - }), - '[', - Cn.a.createElement( - 'div', - Object.assign({}, fn(lr, 'array-group-meta-data'), { - className: 'array-group-meta-data', - }), - Cn.a.createElement( - 'span', - Object.assign( - { className: 'object-size' }, - fn(lr, 'object-size'), - ), - qr * Mo, - ' - ', - qr * Mo + Mo > pr.length ? pr.length : qr * Mo + Mo, - ), - ), - ']', - ), - ), - ) - }), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - No = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - In(this, Mt), - ((qt = Vt.call(this, $t)).toggleCollapsed = function () { - qt.setState({ expanded: !qt.state.expanded }, function () { - zt.set(qt.props.rjvId, qt.props.namespace, 'expanded', qt.state.expanded) - }) - }), - (qt.getObjectContent = function (Rr, Sr, lr) { - return Cn.a.createElement( - 'div', - { className: 'pushed-content object-container' }, - Cn.a.createElement( - 'div', - Object.assign( - { className: 'object-content' }, - fn(qt.props.theme, 'pushed-content'), - ), - qt.renderObjectContents(Sr, lr), - ), - ) - }), - (qt.getEllipsis = function () { - return qt.state.size === 0 - ? null - : Cn.a.createElement( - 'div', - Object.assign({}, fn(qt.props.theme, 'ellipsis'), { - className: 'node-ellipsis', - onClick: qt.toggleCollapsed, - }), - '...', - ) - }), - (qt.getObjectMetaData = function (Rr) { - var Sr = qt.props, - lr = (Sr.rjvId, Sr.theme, qt.state), - Jr = lr.size, - co = lr.hovered - return Cn.a.createElement( - ga, - Object.assign({ rowHovered: co, size: Jr }, qt.props), - ) - }), - (qt.renderObjectContents = function (Rr, Sr) { - var lr, - Jr = qt.props, - co = Jr.depth, - Po = Jr.parent_type, - Ho = Jr.index_offset, - Xo = Jr.groupArraysAfterLength, - Mo = Jr.namespace, - vr = qt.state.object_type, - Wr = [], - qr = Object.keys(Rr || {}) - return ( - qt.props.sortKeys && vr !== 'array' && (qr = qr.sort()), - qr.forEach(function (Xr) { - if ( - ((lr = new us(Xr, Rr[Xr])), - Po === 'array_group' && Ho && (lr.name = parseInt(lr.name) + Ho), - Rr.hasOwnProperty(Xr)) - ) - if (lr.type === 'object') - Wr.push( - Cn.a.createElement( - rs, - Object.assign( - { - key: lr.name, - depth: co + 1, - name: lr.name, - src: lr.value, - namespace: Mo.concat(lr.name), - parent_type: vr, - }, - Sr, - ), - ), - ) - else if (lr.type === 'array') { - var Ao = rs - Xo && lr.value.length > Xo && (Ao = $a), - Wr.push( - Cn.a.createElement( - Ao, - Object.assign( - { - key: lr.name, - depth: co + 1, - name: lr.name, - src: lr.value, - namespace: Mo.concat(lr.name), - type: 'array', - parent_type: vr, - }, - Sr, - ), - ), - ) - } else - Wr.push( - Cn.a.createElement( - yo, - Object.assign( - { - key: lr.name + '_' + Mo, - variable: lr, - singleIndent: 5, - namespace: Mo, - type: qt.props.type, - }, - Sr, - ), - ), - ) - }), - Wr - ) - }) - var pr = Mt.getState($t) - return (qt.state = gn(gn({}, pr), {}, { prevProps: {} })), qt - } - return ( - qn( - Mt, - [ - { - key: 'getBraceStart', - value: function ($t, qt) { - var pr = this, - Rr = this.props, - Sr = Rr.src, - lr = Rr.theme, - Jr = Rr.iconStyle - if (Rr.parent_type === 'array_group') - return Cn.a.createElement( - 'span', - null, - Cn.a.createElement('span', fn(lr, 'brace'), $t === 'array' ? '[' : '{'), - qt ? this.getObjectMetaData(Sr) : null, - ) - var co = qt ? _o : zo - return Cn.a.createElement( - 'span', - null, - Cn.a.createElement( - 'span', - Object.assign( - { - onClick: function (Po) { - pr.toggleCollapsed() - }, - }, - fn(lr, 'brace-row'), - ), - Cn.a.createElement( - 'div', - Object.assign( - { className: 'icon-container' }, - fn(lr, 'icon-container'), - ), - Cn.a.createElement(co, { theme: lr, iconStyle: Jr }), - ), - Cn.a.createElement(Zo, this.props), - Cn.a.createElement('span', fn(lr, 'brace'), $t === 'array' ? '[' : '{'), - ), - qt ? this.getObjectMetaData(Sr) : null, - ) - }, - }, - { - key: 'render', - value: function () { - var $t = this, - qt = this.props, - pr = qt.depth, - Rr = qt.src, - Sr = (qt.namespace, qt.name, qt.type, qt.parent_type), - lr = qt.theme, - Jr = qt.jsvRoot, - co = qt.iconStyle, - Po = tn(qt, [ - 'depth', - 'src', - 'namespace', - 'name', - 'type', - 'parent_type', - 'theme', - 'jsvRoot', - 'iconStyle', - ]), - Ho = this.state, - Xo = Ho.object_type, - Mo = Ho.expanded, - vr = {} - return ( - Jr || Sr === 'array_group' - ? Sr === 'array_group' && ((vr.borderLeft = 0), (vr.display = 'inline')) - : (vr.paddingLeft = 5 * this.props.indentWidth), - Cn.a.createElement( - 'div', - Object.assign( - { - className: 'object-key-val', - onMouseEnter: function () { - return $t.setState(gn(gn({}, $t.state), {}, { hovered: !0 })) - }, - onMouseLeave: function () { - return $t.setState(gn(gn({}, $t.state), {}, { hovered: !1 })) - }, - }, - fn(lr, Jr ? 'jsv-root' : 'objectKeyVal', vr), - ), - this.getBraceStart(Xo, Mo), - Mo - ? this.getObjectContent(pr, Rr, gn({ theme: lr, iconStyle: co }, Po)) - : this.getEllipsis(), - Cn.a.createElement( - 'span', - { className: 'brace-row' }, - Cn.a.createElement( - 'span', - { - style: gn( - gn({}, fn(lr, 'brace').style), - {}, - { paddingLeft: Mo ? '3px' : '0px' }, - ), - }, - Xo === 'array' ? ']' : '}', - ), - Mo ? null : this.getObjectMetaData(Rr), - ), - ) - ) - }, - }, - ], - [ - { - key: 'getDerivedStateFromProps', - value: function ($t, qt) { - var pr = qt.prevProps - return $t.src !== pr.src || - $t.collapsed !== pr.collapsed || - $t.name !== pr.name || - $t.namespace !== pr.namespace || - $t.rjvId !== pr.rjvId - ? gn(gn({}, Mt.getState($t)), {}, { prevProps: $t }) - : null - }, - }, - ], - ), - Mt - ) - })(Cn.a.PureComponent) - No.getState = function (Kt) { - var Vt = Object.keys(Kt.src).length, - Mt = - (Kt.collapsed === !1 || (Kt.collapsed !== !0 && Kt.collapsed > Kt.depth)) && - (!Kt.shouldCollapse || - Kt.shouldCollapse({ - name: Kt.name, - src: Kt.src, - type: En(Kt.src), - namespace: Kt.namespace, - }) === !1) && - Vt !== 0 - return { - expanded: zt.get(Kt.rjvId, Kt.namespace, 'expanded', Mt), - object_type: Kt.type === 'array' ? 'array' : 'object', - parent_type: Kt.type === 'array' ? 'array' : 'object', - size: Vt, - hovered: !1, - } - } - var us = function Kt(Vt, Mt) { - In(this, Kt), (this.name = Vt), (this.value = Mt), (this.type = En(Mt)) - } - Zn(No) - var rs = No, - Ro = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - var $t - In(this, Mt) - for (var qt = arguments.length, pr = new Array(qt), Rr = 0; Rr < qt; Rr++) - pr[Rr] = arguments[Rr] - return ( - (($t = Vt.call.apply(Vt, [this].concat(pr))).render = function () { - var Sr = Bn($t).props, - lr = [Sr.name], - Jr = rs - return ( - Array.isArray(Sr.src) && - Sr.groupArraysAfterLength && - Sr.src.length > Sr.groupArraysAfterLength && - (Jr = $a), - Cn.a.createElement( - 'div', - { className: 'pretty-json-container object-container' }, - Cn.a.createElement( - 'div', - { className: 'object-content' }, - Cn.a.createElement( - Jr, - Object.assign({ namespace: lr, depth: 0, jsvRoot: !0 }, Sr), - ), - ), - ) - ) - }), - $t - ) - } - return Mt - })(Cn.a.PureComponent), - is = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - return ( - In(this, Mt), - ((qt = Vt.call(this, $t)).closeModal = function () { - ht.dispatch({ rjvId: qt.props.rjvId, name: 'RESET' }) - }), - (qt.submit = function () { - qt.props.submit(qt.state.input) - }), - (qt.state = { input: $t.input ? $t.input : '' }), - qt - ) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this, - qt = this.props, - pr = qt.theme, - Rr = qt.rjvId, - Sr = qt.isValid, - lr = this.state.input, - Jr = Sr(lr) - return Cn.a.createElement( - 'div', - Object.assign( - { className: 'key-modal-request' }, - fn(pr, 'key-modal-request'), - { onClick: this.closeModal }, - ), - Cn.a.createElement( - 'div', - Object.assign({}, fn(pr, 'key-modal'), { - onClick: function (co) { - co.stopPropagation() - }, - }), - Cn.a.createElement('div', fn(pr, 'key-modal-label'), 'Key Name:'), - Cn.a.createElement( - 'div', - { style: { position: 'relative' } }, - Cn.a.createElement( - 'input', - Object.assign({}, fn(pr, 'key-modal-input'), { - className: 'key-modal-input', - ref: function (co) { - return co && co.focus() - }, - spellCheck: !1, - value: lr, - placeholder: '...', - onChange: function (co) { - $t.setState({ input: co.target.value }) - }, - onKeyPress: function (co) { - Jr && co.key === 'Enter' - ? $t.submit() - : co.key === 'Escape' && $t.closeModal() - }, - }), - ), - Jr - ? Cn.a.createElement( - ur, - Object.assign({}, fn(pr, 'key-modal-submit'), { - className: 'key-modal-submit', - onClick: function (co) { - return $t.submit() - }, - }), - ) - : null, - ), - Cn.a.createElement( - 'span', - fn(pr, 'key-modal-cancel'), - Cn.a.createElement( - Ir, - Object.assign({}, fn(pr, 'key-modal-cancel-icon'), { - className: 'key-modal-cancel', - onClick: function () { - ht.dispatch({ rjvId: Rr, name: 'RESET' }) - }, - }), - ), - ), - ), - ) - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - ns = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - var $t - In(this, Mt) - for (var qt = arguments.length, pr = new Array(qt), Rr = 0; Rr < qt; Rr++) - pr[Rr] = arguments[Rr] - return ( - (($t = Vt.call.apply(Vt, [this].concat(pr))).isValid = function (Sr) { - var lr = $t.props.rjvId, - Jr = zt.get(lr, 'action', 'new-key-request') - return Sr != '' && Object.keys(Jr.existing_value).indexOf(Sr) === -1 - }), - ($t.submit = function (Sr) { - var lr = $t.props.rjvId, - Jr = zt.get(lr, 'action', 'new-key-request') - ;(Jr.new_value = gn({}, Jr.existing_value)), - (Jr.new_value[Sr] = $t.props.defaultValue), - ht.dispatch({ name: 'VARIABLE_ADDED', rjvId: lr, data: Jr }) - }), - $t - ) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.active, - pr = $t.theme, - Rr = $t.rjvId - return qt - ? Cn.a.createElement(is, { - rjvId: Rr, - theme: pr, - isValid: this.isValid, - submit: this.submit, - }) - : null - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - Bo = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt() { - return In(this, Mt), Vt.apply(this, arguments) - } - return ( - qn(Mt, [ - { - key: 'render', - value: function () { - var $t = this.props, - qt = $t.message, - pr = $t.active, - Rr = $t.theme, - Sr = $t.rjvId - return pr - ? Cn.a.createElement( - 'div', - Object.assign( - { className: 'validation-failure' }, - fn(Rr, 'validation-failure'), - { - onClick: function () { - ht.dispatch({ rjvId: Sr, name: 'RESET' }) - }, - }, - ), - Cn.a.createElement('span', fn(Rr, 'validation-failure-label'), qt), - Cn.a.createElement(Ir, fn(Rr, 'validation-failure-clear')), - ) - : null - }, - }, - ]), - Mt - ) - })(Cn.a.PureComponent), - ts = (function (Kt) { - an(Mt, Kt) - var Vt = ln(Mt) - function Mt($t) { - var qt - return ( - In(this, Mt), - ((qt = Vt.call(this, $t)).rjvId = Date.now().toString()), - (qt.getListeners = function () { - return { - reset: qt.resetState, - 'variable-update': qt.updateSrc, - 'add-key-request': qt.addKeyRequest, - } - }), - (qt.updateSrc = function () { - var pr, - Rr = zt.get(qt.rjvId, 'action', 'variable-update'), - Sr = Rr.name, - lr = Rr.namespace, - Jr = Rr.new_value, - co = Rr.existing_value, - Po = (Rr.variable_removed, Rr.updated_src), - Ho = Rr.type, - Xo = qt.props, - Mo = Xo.onEdit, - vr = Xo.onDelete, - Wr = Xo.onAdd, - qr = { - existing_src: qt.state.src, - new_value: Jr, - updated_src: Po, - name: Sr, - namespace: lr, - existing_value: co, - } - switch (Ho) { - case 'variable-added': - pr = Wr(qr) - break - case 'variable-edited': - pr = Mo(qr) - break - case 'variable-removed': - pr = vr(qr) - } - pr !== !1 - ? (zt.set(qt.rjvId, 'global', 'src', Po), qt.setState({ src: Po })) - : qt.setState({ validationFailure: !0 }) - }), - (qt.addKeyRequest = function () { - qt.setState({ addKeyRequest: !0 }) - }), - (qt.resetState = function () { - qt.setState({ validationFailure: !1, addKeyRequest: !1 }) - }), - (qt.state = { - addKeyRequest: !1, - editKeyRequest: !1, - validationFailure: !1, - src: Mt.defaultProps.src, - name: Mt.defaultProps.name, - theme: Mt.defaultProps.theme, - validationMessage: Mt.defaultProps.validationMessage, - prevSrc: Mt.defaultProps.src, - prevName: Mt.defaultProps.name, - prevTheme: Mt.defaultProps.theme, - }), - qt - ) - } - return ( - qn( - Mt, - [ - { - key: 'componentDidMount', - value: function () { - zt.set(this.rjvId, 'global', 'src', this.state.src) - var $t = this.getListeners() - for (var qt in $t) zt.on(qt + '-' + this.rjvId, $t[qt]) - this.setState({ addKeyRequest: !1, editKeyRequest: !1 }) - }, - }, - { - key: 'componentDidUpdate', - value: function ($t, qt) { - qt.addKeyRequest !== !1 && this.setState({ addKeyRequest: !1 }), - qt.editKeyRequest !== !1 && this.setState({ editKeyRequest: !1 }), - $t.src !== this.state.src && - zt.set(this.rjvId, 'global', 'src', this.state.src) - }, - }, - { - key: 'componentWillUnmount', - value: function () { - var $t = this.getListeners() - for (var qt in $t) zt.removeListener(qt + '-' + this.rjvId, $t[qt]) - }, - }, - { - key: 'render', - value: function () { - var $t = this.state, - qt = $t.validationFailure, - pr = $t.validationMessage, - Rr = $t.addKeyRequest, - Sr = $t.theme, - lr = $t.src, - Jr = $t.name, - co = this.props, - Po = co.style, - Ho = co.defaultValue - return Cn.a.createElement( - 'div', - { - className: 'react-json-view', - style: gn(gn({}, fn(Sr, 'app-container').style), Po), - }, - Cn.a.createElement(Bo, { - message: pr, - active: qt, - theme: Sr, - rjvId: this.rjvId, - }), - Cn.a.createElement( - Ro, - Object.assign({}, this.props, { - src: lr, - name: Jr, - theme: Sr, - type: En(lr), - rjvId: this.rjvId, - }), - ), - Cn.a.createElement(ns, { - active: Rr, - theme: Sr, - rjvId: this.rjvId, - defaultValue: Ho, - }), - ) - }, - }, - ], - [ - { - key: 'getDerivedStateFromProps', - value: function ($t, qt) { - if ( - $t.src !== qt.prevSrc || - $t.name !== qt.prevName || - $t.theme !== qt.prevTheme - ) { - var pr = { - src: $t.src, - name: $t.name, - theme: $t.theme, - validationMessage: $t.validationMessage, - prevSrc: $t.src, - prevName: $t.name, - prevTheme: $t.theme, - } - return Mt.validateState(pr) - } - return null - }, - }, - ], - ), - Mt - ) - })(Cn.a.PureComponent) - ;(ts.defaultProps = { - src: {}, - name: 'root', - theme: 'rjv-default', - collapsed: !1, - collapseStringsAfterLength: !1, - shouldCollapse: !1, - sortKeys: !1, - quotesOnKeys: !0, - groupArraysAfterLength: 100, - indentWidth: 4, - enableClipboard: !0, - displayObjectSize: !0, - displayDataTypes: !0, - onEdit: !1, - onDelete: !1, - onAdd: !1, - onSelect: !1, - iconStyle: 'triangle', - style: {}, - validationMessage: 'Validation Error', - defaultValue: null, - displayArrayKey: !0, - }), - (ts.validateState = function (Kt) { - var Vt = {} - return ( - En(Kt.theme) !== 'object' || - (function (Mt) { - var $t = [ - 'base00', - 'base01', - 'base02', - 'base03', - 'base04', - 'base05', - 'base06', - 'base07', - 'base08', - 'base09', - 'base0A', - 'base0B', - 'base0C', - 'base0D', - 'base0E', - 'base0F', - ] - if (En(Mt) === 'object') { - for (var qt = 0; qt < $t.length; qt++) if (!($t[qt] in Mt)) return !1 - return !0 - } - return !1 - })(Kt.theme) || - (console.error( - 'react-json-view error:', - 'theme prop must be a theme name or valid base-16 theme object.', - 'defaulting to "rjv-default" theme', - ), - (Vt.theme = 'rjv-default')), - En(Kt.src) !== 'object' && - En(Kt.src) !== 'array' && - (console.error( - 'react-json-view error:', - 'src property must be a valid json object', - ), - (Vt.name = 'ERROR'), - (Vt.src = { message: 'src property must be a valid json object' })), - gn(gn({}, Kt), Vt) - ) - }), - Zn(ts), - ($.default = ts) - }, - ]) - }) -})(main) -const ReactJson = getDefaultExportFromCjs(mainExports) -var cssUnit = { - cm: !0, - mm: !0, - in: !0, - px: !0, - pt: !0, - pc: !0, - em: !0, - ex: !0, - ch: !0, - rem: !0, - vw: !0, - vh: !0, - vmin: !0, - vmax: !0, - '%': !0, -} -function parseLengthAndUnit(e) { - if (typeof e == 'number') return { value: e, unit: 'px' } - var o, - _ = (e.match(/^[0-9.]*/) || '').toString() - _.includes('.') ? (o = parseFloat(_)) : (o = parseInt(_, 10)) - var b = (e.match(/[^0-9]*$/) || '').toString() - return cssUnit[b] - ? { value: o, unit: b } - : (console.warn( - 'React Spinners: '.concat(e, ' is not a valid css value. Defaulting to ').concat(o, 'px.'), - ), - { value: o, unit: 'px' }) -} -function cssValue(e) { - var o = parseLengthAndUnit(e) - return ''.concat(o.value).concat(o.unit) -} -var createAnimation = function (e, o, _) { - var b = 'react-spinners-'.concat(e, '-').concat(_) - if (typeof window > 'u' || !window.document) return b - var $ = document.createElement('style') - document.head.appendChild($) - var en = $.sheet, - nn = ` - @keyframes ` - .concat( - b, - ` { - `, - ) - .concat( - o, - ` - } - `, - ) - return en && en.insertRule(nn, 0), b - }, - __assign = - (globalThis && globalThis.__assign) || - function () { - return ( - (__assign = - Object.assign || - function (e) { - for (var o, _ = 1, b = arguments.length; _ < b; _++) { - o = arguments[_] - for (var $ in o) Object.prototype.hasOwnProperty.call(o, $) && (e[$] = o[$]) - } - return e - }), - __assign.apply(this, arguments) - ) - }, - __rest = - (globalThis && globalThis.__rest) || - function (e, o) { - var _ = {} - for (var b in e) - Object.prototype.hasOwnProperty.call(e, b) && o.indexOf(b) < 0 && (_[b] = e[b]) - if (e != null && typeof Object.getOwnPropertySymbols == 'function') - for (var $ = 0, b = Object.getOwnPropertySymbols(e); $ < b.length; $++) - o.indexOf(b[$]) < 0 && - Object.prototype.propertyIsEnumerable.call(e, b[$]) && - (_[b[$]] = e[b[$]]) - return _ - }, - sync = createAnimation( - 'SyncLoader', - `33% {transform: translateY(10px)} - 66% {transform: translateY(-10px)} - 100% {transform: translateY(0)}`, - 'sync', - ) -function SyncLoader(e) { - var o = e.loading, - _ = o === void 0 ? !0 : o, - b = e.color, - $ = b === void 0 ? '#000000' : b, - en = e.speedMultiplier, - nn = en === void 0 ? 1 : en, - sn = e.cssOverride, - gn = sn === void 0 ? {} : sn, - In = e.size, - Jn = In === void 0 ? 15 : In, - qn = e.margin, - Kn = qn === void 0 ? 2 : qn, - an = __rest(e, ['loading', 'color', 'speedMultiplier', 'cssOverride', 'size', 'margin']), - xn = __assign({ display: 'inherit' }, gn), - mn = function (Bn) { - return { - backgroundColor: $, - width: cssValue(Jn), - height: cssValue(Jn), - margin: cssValue(Kn), - borderRadius: '100%', - display: 'inline-block', - animation: '' - .concat(sync, ' ') - .concat(0.6 / nn, 's ') - .concat(Bn * 0.07, 's infinite ease-in-out'), - animationFillMode: 'both', - } - } - return _ - ? reactExports.createElement( - 'span', - __assign({ style: xn }, an), - reactExports.createElement('span', { style: mn(1) }), - reactExports.createElement('span', { style: mn(2) }), - reactExports.createElement('span', { style: mn(3) }), - ) - : null -} -function App() { - const [e, o] = reactExports.useState(creditManager), - [_, b] = reactExports.useState('1'), - $ = useQuery([e, _, 'positions'], () => fetchPositions(e, _)), - en = useQuery([e, _, 'health'], () => fetchHealth(e, _)) - return jsxs('main', { - children: [ - jsx('div', { - children: jsxs('label', { - children: [ - 'Credit Manager contract addr:', - jsx('input', { - type: 'text', - value: e, - onChange: ({ target: { value: nn } }) => o(nn), - }), - ], - }), - }), - jsx('div', { - children: jsxs('label', { - children: [ - 'Credit account:', - jsx('input', { - type: 'text', - value: _, - onChange: ({ target: { value: nn } }) => b(nn), - }), - ], - }), - }), - jsxs('div', { - children: [ - 'Positions:', - ' ', - $.isLoading - ? jsx(SyncLoader, { color: '#36d7b7' }) - : $.error - ? 'error ❌' - : $.data - ? jsx(ReactJson, { src: $.data }) - : void 0, - ], - }), - jsxs('div', { - children: [ - 'Health:', - ' ', - en.isLoading - ? jsx(SyncLoader, { color: '#36d7b7' }) - : en.error - ? 'error ❌' - : en.data - ? jsx(ReactJson, { src: en.data }) - : void 0, - ], - }), - ], - }) -} -const queryClient = new QueryClient$1() -client$1.createRoot(document.getElementById('root')).render( - jsx(React.StrictMode, { - children: jsx(QueryClientProvider, { client: queryClient, children: jsx(App, {}) }), - }), -) diff --git a/scripts/health/example-react/dist/assets/index_bg-f709bbb4.wasm b/scripts/health/example-react/dist/assets/index_bg-f709bbb4.wasm deleted file mode 100644 index 3a42ecaa..00000000 Binary files a/scripts/health/example-react/dist/assets/index_bg-f709bbb4.wasm and /dev/null differ diff --git a/scripts/health/example-react/dist/index.html b/scripts/health/example-react/dist/index.html deleted file mode 100644 index 5b277824..00000000 --- a/scripts/health/example-react/dist/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - Health compute react example - - - -
- - diff --git a/scripts/health/pkg-web/package.json b/scripts/health/pkg-web/package.json index 6ae6893a..b68ef342 100644 --- a/scripts/health/pkg-web/package.json +++ b/scripts/health/pkg-web/package.json @@ -4,6 +4,8 @@ "Gabe R. ", "Larry Engineer ", "Piotr B. ", + "Bob v.d. H. ", + "Mark Watney ", "Spike Spiegel ", "Brianna M. ", "Ahmad Kaouk", diff --git a/scripts/multisig/neutron/README.md b/scripts/multisig/neutron/README.md index f6212b45..8bbac840 100644 --- a/scripts/multisig/neutron/README.md +++ b/scripts/multisig/neutron/README.md @@ -13,7 +13,7 @@ Neutrond is the daemon for the neutron blockchain. To install, follow [this docu The benefit is that you will be more secure of a signer The downsides are that: a. Some Ledgers are not able to sign large messages such as contract uploads -b. If you are travelling a lot it's best to leave your hardware wallet at home in a secure place, and so if this is the case it might actually be more secure to have a hot wallet as hardware wallets are easily recognisable in airport security etc. +b. If you are traveling a lot it's best to leave your hardware wallet at home in a secure place, and so if this is the case it might actually be more secure to have a hot wallet as hardware wallets are easily recognisable in airport security etc. ```bash neutrond keys add [name]_ntrn @@ -21,7 +21,7 @@ neutrond keys add [name]_ntrn 2. Note down the mnemonic - it is important that you are able to recover this account as a multisig signer. -3. Send a small amount of funds to the address to register it. In testnet you can do this by visiting the facuet [here](https://t.me/+SyhWrlnwfCw2NGM6) +3. Send a small amount of funds to the address to register it. In testnet you can do this by visiting the faucet [here](https://t.me/+SyhWrlnwfCw2NGM6) ## Set up the multisig on your local network @@ -29,7 +29,7 @@ _Steps 2-4 must be completed by ALL multisig holders to properly set up their lo 1. Generate the public keys of each of the 5 multisig holder's wallets. In order to generate a public key, the wallet must be active and have made at least one transaction on the specified network to return a public key. -To do a send transaction of 1 NTRN to anoter account you can use the command: +To do a send transaction of 1 NTRN to another account you can use the command: ```bash neutrond tx bank send [name]_ntrn [to_address] 1000000untrn --node=[rpc node] --chain-id=[chain id] @@ -65,7 +65,7 @@ neutrond query account [address] --node=[node_URL] neutrond keys show neutron_multisig ``` -5. Update the config with the new mutlisig address in `red-bank/scripts/deploy/neutron/config`, which will set the owner and admin of the smart contracts to the multisig upon deployment. +5. Update the config with the new multisig address in `red-bank/scripts/deploy/neutron/config`, which will set the owner and admin of the smart contracts to the multisig upon deployment. ## Set up environment variables diff --git a/scripts/multisig/osmosis/README.md b/scripts/multisig/osmosis/README.md index 73bf82d0..c016f91b 100644 --- a/scripts/multisig/osmosis/README.md +++ b/scripts/multisig/osmosis/README.md @@ -38,7 +38,7 @@ _Steps 2-4 must be completed by ALL multisig holders to properly set up their lo osmosisd keys show osmosis_multisig ``` -5. Update the config with the new mutlisig address in `red-bank/scripts/deploy/osmosis/config`, which will set the owner and admin of the smart contracts to the multisig upon deployment. +5. Update the config with the new multisig address in `red-bank/scripts/deploy/osmosis/config`, which will set the owner and admin of the smart contracts to the multisig upon deployment. ## Set up environment variables diff --git a/scripts/multisig/osmosis/multisig-setup.md b/scripts/multisig/osmosis/multisig-setup.md index 99b247b2..a5148257 100644 --- a/scripts/multisig/osmosis/multisig-setup.md +++ b/scripts/multisig/osmosis/multisig-setup.md @@ -40,4 +40,4 @@ _Steps 2-4 must be completed by ALL multisig holders to properly set up their lo osmosisd keys show osmosis_multisig ``` -5. Update the config with the new mutlisig address in `rover/scripts/deploy/osmosis/config`, which will set the owner and admin of the smart contracts to the multisig upon deployment. +5. Update the config with the new multisig address in `rover/scripts/deploy/osmosis/config`, which will set the owner and admin of the smart contracts to the multisig upon deployment. diff --git a/scripts/package.json b/scripts/package.json index 48e1bfdf..9e828b67 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -22,31 +22,31 @@ "format-check": "prettier --ignore-path .gitignore --check ." }, "dependencies": { - "@cosmjs/cosmwasm-stargate": "^0.31.1", - "@cosmjs/proto-signing": "^0.31.1", - "@cosmjs/stargate": "^0.31.1", - "@cosmwasm/ts-codegen": "^0.35.3", + "@cosmjs/cosmwasm-stargate": "^0.32.3", + "@cosmjs/proto-signing": "^0.32.3", + "@cosmjs/stargate": "^0.32.3", + "@cosmwasm/ts-codegen": "^1.10.0", "chalk": "4.1.2", "copyfiles": "^2.4.1", - "cosmjs-types": "^0.8.0", + "cosmjs-types": "^0.9.0", "lodash": "^4.17.21", "long": "^5.2.3", "prepend-file": "^2.0.1", - "simple-git": "^3.19.1", + "simple-git": "^3.24.0", "ts-codegen": "^0.0.0", "wasm-pack": "^0.12.1" }, "devDependencies": { - "@babel/preset-env": "^7.22.9", - "@babel/preset-typescript": "^7.22.5", - "@types/jest": "^29.5.3", - "@types/node": "^20.6.2", - "@typescript-eslint/eslint-plugin": "^6.7.2", - "@typescript-eslint/parser": "^6.7.2", - "eslint": "^8.49.0", - "eslint-config-prettier": "^9.0.0", - "jest": "^29.6.1", - "prettier": "^3.0.3", - "typescript": "^5.2.2" + "@babel/preset-env": "^7.24.6", + "@babel/preset-typescript": "^7.24.6", + "@types/jest": "^29.5.12", + "@types/node": "^20.14.1", + "@typescript-eslint/eslint-plugin": "^7.12.0", + "@typescript-eslint/parser": "^7.12.0", + "eslint": "^9.4.0", + "eslint-config-prettier": "^9.1.0", + "jest": "^29.7.0", + "prettier": "^3.3.0", + "typescript": "^5.4.5" } } diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 028cb51e..1475f283 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -28,5 +28,5 @@ "allowJs": true }, "include": ["**/*.ts", "**/*.tsx", "types.d.ts"], - "exclude": ["node_modules", "./build/**/*", "types/generated/**/*", "health/example-react"] + "exclude": ["node_modules", "./build/**/*", "types/generated/**/*"] } diff --git a/scripts/types/config.ts b/scripts/types/config.ts index 5f5d615c..7039daed 100644 --- a/scripts/types/config.ts +++ b/scripts/types/config.ts @@ -34,6 +34,12 @@ export function isAstroportRoute(route: OsmosisRoute | AstroportRoute): route is return !isOsmosisRoute(route) } +export interface AstroportConfig { + factory: string + router: string + incentives: string +} + export interface DeploymentConfig { mainnet: boolean deployerMnemonic: string @@ -84,6 +90,7 @@ export interface DeploymentConfig { assets: AssetConfig[] vaults: VaultConfig[] oracleConfigs: OracleConfig[] + astroportConfig?: AstroportConfig } export interface AssetConfig { diff --git a/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts b/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts index 334425ee..0f54b3e2 100644 --- a/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts +++ b/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -106,7 +106,6 @@ export interface MarsAccountNftReadOnlyInterface { export class MarsAccountNftQueryClient implements MarsAccountNftReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -125,7 +124,6 @@ export class MarsAccountNftQueryClient implements MarsAccountNftReadOnlyInterfac this.minter = this.minter.bind(this) this.ownership = this.ownership.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -289,8 +287,10 @@ export interface MarsAccountNftInterface extends MarsAccountNftReadOnlyInterface ) => Promise mint: ( { + tokenId, user, }: { + tokenId?: string user: string }, fee?: number | StdFee | 'auto', @@ -401,7 +401,6 @@ export class MarsAccountNftClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -419,7 +418,6 @@ export class MarsAccountNftClient this.revokeAll = this.revokeAll.bind(this) this.updateOwnership = this.updateOwnership.bind(this) } - updateConfig = async ( { updates, @@ -445,8 +443,10 @@ export class MarsAccountNftClient } mint = async ( { + tokenId, user, }: { + tokenId?: string user: string }, fee: number | StdFee | 'auto' = 'auto', @@ -458,6 +458,7 @@ export class MarsAccountNftClient this.contractAddress, { mint: { + token_id: tokenId, user, }, }, diff --git a/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts b/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts index 8df2e401..577ddee2 100644 --- a/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts +++ b/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -45,48 +45,123 @@ export const marsAccountNftQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsAccountNftQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsAccountNftQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, nextId: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'next_id', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'next_id', + args, + }, + ] as const, ownerOf: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'owner_of', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'owner_of', + args, + }, + ] as const, approval: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'approval', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'approval', + args, + }, + ] as const, approvals: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'approvals', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'approvals', + args, + }, ] as const, allOperators: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'all_operators', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'all_operators', + args, + }, ] as const, numTokens: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'num_tokens', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'num_tokens', + args, + }, ] as const, contractInfo: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'contract_info', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'contract_info', + args, + }, ] as const, nftInfo: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'nft_info', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'nft_info', + args, + }, + ] as const, allNftInfo: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'all_nft_info', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'all_nft_info', + args, + }, ] as const, tokens: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'tokens', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'tokens', + args, + }, + ] as const, allTokens: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'all_tokens', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'all_tokens', + args, + }, ] as const, minter: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'minter', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'minter', + args, + }, + ] as const, ownership: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'ownership', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'ownership', + args, + }, ] as const, } export interface MarsAccountNftReactQuery { @@ -107,7 +182,10 @@ export function useMarsAccountNftOwnershipQuery({ return useQuery( marsAccountNftQueryKeys.ownership(client?.contractAddress), () => (client ? client.ownership() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftMinterQuery @@ -119,7 +197,10 @@ export function useMarsAccountNftMinterQuery({ return useQuery( marsAccountNftQueryKeys.minter(client?.contractAddress), () => (client ? client.minter() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftAllTokensQuery @@ -143,7 +224,10 @@ export function useMarsAccountNftAllTokensQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftTokensQuery @@ -169,7 +253,10 @@ export function useMarsAccountNftTokensQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftAllNftInfoQuery @@ -193,7 +280,10 @@ export function useMarsAccountNftAllNftInfoQuery @@ -215,7 +305,10 @@ export function useMarsAccountNftNftInfoQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftContractInfoQuery @@ -227,7 +320,10 @@ export function useMarsAccountNftContractInfoQuery return useQuery( marsAccountNftQueryKeys.contractInfo(client?.contractAddress), () => (client ? client.contractInfo() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftNumTokensQuery @@ -239,7 +335,10 @@ export function useMarsAccountNftNumTokensQuery({ return useQuery( marsAccountNftQueryKeys.numTokens(client?.contractAddress), () => (client ? client.numTokens() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftAllOperatorsQuery @@ -267,7 +366,10 @@ export function useMarsAccountNftAllOperatorsQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftApprovalsQuery @@ -291,7 +393,10 @@ export function useMarsAccountNftApprovalsQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftApprovalQuery @@ -317,7 +422,10 @@ export function useMarsAccountNftApprovalQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftOwnerOfQuery @@ -341,7 +449,10 @@ export function useMarsAccountNftOwnerOfQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftNextIdQuery extends MarsAccountNftReactQuery {} @@ -352,7 +463,10 @@ export function useMarsAccountNftNextIdQuery({ return useQuery( marsAccountNftQueryKeys.nextId(client?.contractAddress), () => (client ? client.nextId() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftConfigQuery @@ -364,7 +478,10 @@ export function useMarsAccountNftConfigQuery({ return useQuery( marsAccountNftQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftUpdateOwnershipMutation { @@ -572,6 +689,7 @@ export function useMarsAccountNftBurnMutation( export interface MarsAccountNftMintMutation { client: MarsAccountNftClient msg: { + tokenId?: string user: string } args?: { diff --git a/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts b/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts index 779ebec0..775b714d 100644 --- a/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts +++ b/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -22,6 +22,7 @@ export type ExecuteMsg = } | { mint: { + token_id?: string | null user: string } } diff --git a/scripts/types/generated/mars-account-nft/bundle.ts b/scripts/types/generated/mars-account-nft/bundle.ts index c7a0026c..8d86beba 100644 --- a/scripts/types/generated/mars-account-nft/bundle.ts +++ b/scripts/types/generated/mars-account-nft/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _0 from './MarsAccountNft.types' import * as _1 from './MarsAccountNft.client' import * as _2 from './MarsAccountNft.react-query' export namespace contracts { - export const MarsAccountNft = { ..._0, ..._1, ..._2 } + export const MarsAccountNft = { + ..._0, + ..._1, + ..._2, + } } diff --git a/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts b/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts index 97b9cab8..5e3193c4 100644 --- a/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts +++ b/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -33,7 +33,6 @@ export interface MarsAddressProviderReadOnlyInterface { export class MarsAddressProviderQueryClient implements MarsAddressProviderReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -42,7 +41,6 @@ export class MarsAddressProviderQueryClient implements MarsAddressProviderReadOn this.addresses = this.addresses.bind(this) this.allAddresses = this.allAddresses.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -102,7 +100,6 @@ export class MarsAddressProviderClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -111,7 +108,6 @@ export class MarsAddressProviderClient this.setAddress = this.setAddress.bind(this) this.updateOwner = this.updateOwner.bind(this) } - setAddress = async ( { address, diff --git a/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts b/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts index 67df3695..ba90f4c3 100644 --- a/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts +++ b/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -29,18 +29,35 @@ export const marsAddressProviderQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsAddressProviderQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsAddressProviderQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAddressProviderQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsAddressProviderQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, address: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAddressProviderQueryKeys.address(contractAddress)[0], method: 'address', args }, + { + ...marsAddressProviderQueryKeys.address(contractAddress)[0], + method: 'address', + args, + }, ] as const, addresses: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAddressProviderQueryKeys.address(contractAddress)[0], method: 'addresses', args }, + { + ...marsAddressProviderQueryKeys.address(contractAddress)[0], + method: 'addresses', + args, + }, ] as const, allAddresses: (contractAddress: string | undefined, args?: Record) => [ @@ -81,7 +98,10 @@ export function useMarsAddressProviderAllAddressesQuery @@ -93,7 +113,10 @@ export function useMarsAddressProviderAddressesQuery( marsAddressProviderQueryKeys.addresses(client?.contractAddress), () => (client ? client.addresses() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAddressProviderAddressQuery @@ -105,7 +128,10 @@ export function useMarsAddressProviderAddressQuery( return useQuery( marsAddressProviderQueryKeys.address(client?.contractAddress), () => (client ? client.address() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAddressProviderConfigQuery @@ -117,7 +143,10 @@ export function useMarsAddressProviderConfigQuery({ return useQuery( marsAddressProviderQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAddressProviderUpdateOwnerMutation { diff --git a/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts b/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts index 572f4035..a2545bd3 100644 --- a/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts +++ b/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -25,6 +25,7 @@ export type MarsAddressType = | 'fee_collector' | 'safety_fund' | 'swapper' + | 'astroport_incentives' export type OwnerUpdate = | { propose_new_owner: { diff --git a/scripts/types/generated/mars-address-provider/bundle.ts b/scripts/types/generated/mars-address-provider/bundle.ts index 4bcba804..65400353 100644 --- a/scripts/types/generated/mars-address-provider/bundle.ts +++ b/scripts/types/generated/mars-address-provider/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _3 from './MarsAddressProvider.types' import * as _4 from './MarsAddressProvider.client' import * as _5 from './MarsAddressProvider.react-query' export namespace contracts { - export const MarsAddressProvider = { ..._3, ..._4, ..._5 } + export const MarsAddressProvider = { + ..._3, + ..._4, + ..._5, + } } diff --git a/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts b/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts index bd3f2300..2e299a37 100644 --- a/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts +++ b/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -73,6 +73,8 @@ import { ArrayOfCoin, Positions, DebtAmount, + ArrayOfVaultBinding, + VaultBinding, VaultPositionValue, CoinValue, } from './MarsCreditManager.types' @@ -140,11 +142,17 @@ export interface MarsCreditManagerReadOnlyInterface { }: { vaultPosition: VaultPosition }) => Promise + vaultBindings: ({ + limit, + startAfter, + }: { + limit?: number + startAfter?: string + }) => Promise } export class MarsCreditManagerQueryClient implements MarsCreditManagerReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -162,8 +170,8 @@ export class MarsCreditManagerQueryClient implements MarsCreditManagerReadOnlyIn this.estimateProvideLiquidity = this.estimateProvideLiquidity.bind(this) this.estimateWithdrawLiquidity = this.estimateWithdrawLiquidity.bind(this) this.vaultPositionValue = this.vaultPositionValue.bind(this) + this.vaultBindings = this.vaultBindings.bind(this) } - accountKind = async ({ accountId }: { accountId: string }): Promise => { return this.client.queryContractSmart(this.contractAddress, { account_kind: { @@ -318,11 +326,38 @@ export class MarsCreditManagerQueryClient implements MarsCreditManagerReadOnlyIn }, }) } + vaultBindings = async ({ + limit, + startAfter, + }: { + limit?: number + startAfter?: string + }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + vault_bindings: { + limit, + start_after: startAfter, + }, + }) + } } export interface MarsCreditManagerInterface extends MarsCreditManagerReadOnlyInterface { contractAddress: string sender: string createCreditAccount: ( + accountKind: AccountKind, + fee?: number | StdFee | 'auto', + memo?: string, + _funds?: Coin[], + ) => Promise + createCreditAccountV2: ( + { + accountId, + kind, + }: { + accountId?: string + kind: AccountKind + }, fee?: number | StdFee | 'auto', memo?: string, _funds?: Coin[], @@ -330,9 +365,11 @@ export interface MarsCreditManagerInterface extends MarsCreditManagerReadOnlyInt updateCreditAccount: ( { accountId, + accountKind, actions, }: { - accountId: string + accountId?: string + accountKind?: AccountKind actions: Action[] }, fee?: number | StdFee | 'auto', @@ -391,13 +428,13 @@ export class MarsCreditManagerClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client this.sender = sender this.contractAddress = contractAddress this.createCreditAccount = this.createCreditAccount.bind(this) + this.createCreditAccountV2 = this.createCreditAccountV2.bind(this) this.updateCreditAccount = this.updateCreditAccount.bind(this) this.repayFromWallet = this.repayFromWallet.bind(this) this.updateConfig = this.updateConfig.bind(this) @@ -405,8 +442,8 @@ export class MarsCreditManagerClient this.updateNftConfig = this.updateNftConfig.bind(this) this.callback = this.callback.bind(this) } - createCreditAccount = async ( + accountKind: AccountKind, fee: number | StdFee | 'auto' = 'auto', memo?: string, _funds?: Coin[], @@ -415,7 +452,33 @@ export class MarsCreditManagerClient this.sender, this.contractAddress, { - create_credit_account: {}, + create_credit_account: accountKind, + }, + fee, + memo, + _funds, + ) + } + createCreditAccountV2 = async ( + { + accountId, + kind, + }: { + accountId?: string + kind: AccountKind + }, + fee: number | StdFee | 'auto' = 'auto', + memo?: string, + _funds?: Coin[], + ): Promise => { + return await this.client.execute( + this.sender, + this.contractAddress, + { + create_credit_account_v2: { + account_id: accountId, + kind, + }, }, fee, memo, @@ -425,9 +488,11 @@ export class MarsCreditManagerClient updateCreditAccount = async ( { accountId, + accountKind, actions, }: { - accountId: string + accountId?: string + accountKind?: AccountKind actions: Action[] }, fee: number | StdFee | 'auto' = 'auto', @@ -440,6 +505,7 @@ export class MarsCreditManagerClient { update_credit_account: { account_id: accountId, + account_kind: accountKind, actions, }, }, diff --git a/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts b/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts index 70243d51..9d1ea488 100644 --- a/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts +++ b/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -74,6 +74,8 @@ import { ArrayOfCoin, Positions, DebtAmount, + ArrayOfVaultBinding, + VaultBinding, VaultPositionValue, CoinValue, } from './MarsCreditManager.types' @@ -85,18 +87,35 @@ export const marsCreditManagerQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsCreditManagerQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsCreditManagerQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, accountKind: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'account_kind', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'account_kind', + args, + }, ] as const, accounts: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'accounts', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'accounts', + args, + }, ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, vaultUtilization: (contractAddress: string | undefined, args?: Record) => [ @@ -116,7 +135,11 @@ export const marsCreditManagerQueryKeys = { ] as const, positions: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'positions', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'positions', + args, + }, ] as const, allCoinBalances: (contractAddress: string | undefined, args?: Record) => [ @@ -185,6 +208,14 @@ export const marsCreditManagerQueryKeys = { args, }, ] as const, + vaultBindings: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'vault_bindings', + args, + }, + ] as const, } export interface MarsCreditManagerReactQuery { client: MarsCreditManagerQueryClient | undefined @@ -195,6 +226,33 @@ export interface MarsCreditManagerReactQuery { initialData?: undefined } } +export interface MarsCreditManagerVaultBindingsQuery + extends MarsCreditManagerReactQuery { + args: { + limit?: number + startAfter?: string + } +} +export function useMarsCreditManagerVaultBindingsQuery({ + client, + args, + options, +}: MarsCreditManagerVaultBindingsQuery) { + return useQuery( + marsCreditManagerQueryKeys.vaultBindings(client?.contractAddress, args), + () => + client + ? client.vaultBindings({ + limit: args.limit, + startAfter: args.startAfter, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} export interface MarsCreditManagerVaultPositionValueQuery extends MarsCreditManagerReactQuery { args: { @@ -214,7 +272,10 @@ export function useMarsCreditManagerVaultPositionValueQuery @@ -236,7 +297,10 @@ export function useMarsCreditManagerEstimateWithdrawLiquidityQuery @@ -260,7 +324,10 @@ export function useMarsCreditManagerEstimateProvideLiquidityQuery @@ -282,7 +349,10 @@ export function useMarsCreditManagerAllVaultPositionsQuery< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAllTotalDebtSharesQuery @@ -306,7 +376,10 @@ export function useMarsCreditManagerAllTotalDebtSharesQuery @@ -318,7 +391,10 @@ export function useMarsCreditManagerTotalDebtSharesQuery({ return useQuery( marsCreditManagerQueryKeys.totalDebtShares(client?.contractAddress), () => (client ? client.totalDebtShares() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAllDebtSharesQuery @@ -342,7 +418,10 @@ export function useMarsCreditManagerAllDebtSharesQuery @@ -366,7 +445,10 @@ export function useMarsCreditManagerAllCoinBalancesQuery @@ -388,7 +470,10 @@ export function useMarsCreditManagerPositionsQuery({ accountId: args.accountId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAllVaultUtilizationsQuery @@ -410,7 +495,10 @@ export function useMarsCreditManagerAllVaultUtilizationsQuery< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerVaultUtilizationQuery @@ -432,7 +520,10 @@ export function useMarsCreditManagerVaultUtilizationQuery @@ -444,7 +535,10 @@ export function useMarsCreditManagerConfigQuery({ return useQuery( marsCreditManagerQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAccountsQuery @@ -470,7 +564,10 @@ export function useMarsCreditManagerAccountsQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAccountKindQuery @@ -492,7 +589,10 @@ export function useMarsCreditManagerAccountKindQuery({ accountId: args.accountId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerCallbackMutation { @@ -608,7 +708,8 @@ export function useMarsCreditManagerRepayFromWalletMutation( export interface MarsCreditManagerUpdateCreditAccountMutation { client: MarsCreditManagerClient msg: { - accountId: string + accountId?: string + accountKind?: AccountKind actions: Action[] } args?: { @@ -629,8 +730,33 @@ export function useMarsCreditManagerUpdateCreditAccountMutation( options, ) } +export interface MarsCreditManagerCreateCreditAccountV2Mutation { + client: MarsCreditManagerClient + msg: { + accountId?: string + kind: AccountKind + } + args?: { + fee?: number | StdFee | 'auto' + memo?: string + funds?: Coin[] + } +} +export function useMarsCreditManagerCreateCreditAccountV2Mutation( + options?: Omit< + UseMutationOptions, + 'mutationFn' + >, +) { + return useMutation( + ({ client, msg, args: { fee, memo, funds } = {} }) => + client.createCreditAccountV2(msg, fee, memo, funds), + options, + ) +} export interface MarsCreditManagerCreateCreditAccountMutation { client: MarsCreditManagerClient + msg: AccountKind args?: { fee?: number | StdFee | 'auto' memo?: string diff --git a/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts b/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts index 0b94a73d..fc054df7 100644 --- a/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts +++ b/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -30,9 +30,16 @@ export type ExecuteMsg = | { create_credit_account: AccountKind } + | { + create_credit_account_v2: { + account_id?: string | null + kind: AccountKind + } + } | { update_credit_account: { - account_id: string + account_id?: string | null + account_kind?: AccountKind | null actions: Action[] } } @@ -58,7 +65,13 @@ export type ExecuteMsg = | { callback: CallbackMsg } -export type AccountKind = 'default' | 'high_levered_strategy' +export type AccountKind = + | ('default' | 'high_levered_strategy') + | { + fund_manager: { + vault_addr: string + } + } export type Action = | { deposit: Coin @@ -66,6 +79,12 @@ export type Action = | { withdraw: ActionCoin } + | { + withdraw_to_wallet: { + coin: ActionCoin + recipient: string + } + } | { borrow: Coin } @@ -119,8 +138,8 @@ export type Action = swap_exact_in: { coin_in: ActionCoin denom_out: string + min_receive: Uint128 route?: SwapperRoute | null - slippage: Decimal } } | { @@ -136,6 +155,21 @@ export type Action = slippage: Decimal } } + | { + stake_astro_lp: { + lp_token: ActionCoin + } + } + | { + unstake_astro_lp: { + lp_token: ActionCoin + } + } + | { + claim_astro_lp_rewards: { + lp_denom: string + } + } | { refund_all_coin_balances: {} } @@ -157,6 +191,9 @@ export type LiquidateRequestForVaultBaseForString = request_vault: VaultBaseForString } } + | { + staked_astro_lp: string + } export type VaultPositionType = 'u_n_l_o_c_k_e_d' | 'l_o_c_k_e_d' | 'u_n_l_o_c_k_i_n_g' export type SwapperRoute = | { @@ -244,7 +281,6 @@ export type CallbackMsg = | { claim_rewards: { account_id: string - recipient: Addr } } | { @@ -255,7 +291,9 @@ export type CallbackMsg = } | { assert_deposit_caps: { - denoms: string[] + denoms: { + [k: string]: Uint128 | null + } } } | { @@ -306,8 +344,8 @@ export type CallbackMsg = account_id: string coin_in: ActionCoin denom_out: string + min_receive: Uint128 route?: SwapperRoute | null - slippage: Decimal } } | { @@ -332,6 +370,24 @@ export type CallbackMsg = slippage: Decimal } } + | { + stake_astro_lp: { + account_id: string + lp_token: ActionCoin + } + } + | { + unstake_astro_lp: { + account_id: string + lp_token: ActionCoin + } + } + | { + claim_astro_lp_rewards: { + account_id: string + lp_denom: string + } + } | { withdraw_liquidity: { account_id: string @@ -352,13 +408,6 @@ export type CallbackMsg = | { remove_reentrancy_guard: {} } - | { - send_rewards_to_addr: { - account_id: string - previous_balances: Coin[] - recipient: Addr - } - } export type Addr = string export type HealthState = | 'healthy' @@ -380,6 +429,9 @@ export type LiquidateRequestForVaultBaseForAddr = request_vault: VaultBaseForAddr } } + | { + staked_astro_lp: string + } export type ChangeExpected = 'increase' | 'decrease' export interface Coin { amount: Uint128 @@ -502,6 +554,12 @@ export type QueryMsg = vault_position: VaultPosition } } + | { + vault_bindings: { + limit?: number | null + start_after?: string | null + } + } export type VaultPositionAmount = | { unlocked: VaultAmount @@ -590,9 +648,11 @@ export interface RewardsCollector { export type ArrayOfCoin = Coin[] export interface Positions { account_id: string + account_kind: AccountKind debts: DebtAmount[] deposits: Coin[] lends: Coin[] + staked_astro_lps: Coin[] vaults: VaultPosition[] } export interface DebtAmount { @@ -600,6 +660,11 @@ export interface DebtAmount { denom: string shares: Uint128 } +export type ArrayOfVaultBinding = VaultBinding[] +export interface VaultBinding { + account_id: string + vault_address: string +} export interface VaultPositionValue { base_coin: CoinValue vault_coin: CoinValue diff --git a/scripts/types/generated/mars-credit-manager/bundle.ts b/scripts/types/generated/mars-credit-manager/bundle.ts index 5d5cd8bd..1e6f6811 100644 --- a/scripts/types/generated/mars-credit-manager/bundle.ts +++ b/scripts/types/generated/mars-credit-manager/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _6 from './MarsCreditManager.types' import * as _7 from './MarsCreditManager.client' import * as _8 from './MarsCreditManager.react-query' export namespace contracts { - export const MarsCreditManager = { ..._6, ..._7, ..._8 } + export const MarsCreditManager = { + ..._6, + ..._7, + ..._8, + } } diff --git a/scripts/types/generated/mars-incentives/MarsIncentives.client.ts b/scripts/types/generated/mars-incentives/MarsIncentives.client.ts index cf9a37c8..b457b5a6 100644 --- a/scripts/types/generated/mars-incentives/MarsIncentives.client.ts +++ b/scripts/types/generated/mars-incentives/MarsIncentives.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -12,9 +12,12 @@ import { ExecuteMsg, Uint128, Addr, + ActionAmount, OwnerUpdate, MigrateV1ToV2, WhitelistEntry, + Coin, + ActionCoin, QueryMsg, ArrayOfActiveEmission, ActiveEmission, @@ -24,12 +27,22 @@ import { Decimal, IncentiveStateResponse, ArrayOfIncentiveStateResponse, + StakedLpPositionResponse, + PaginationResponseForStakedLpPositionResponse, + Metadata, + PaginationResponseForTupleOfStringAndArrayOfCoin, ArrayOfCoin, - Coin, ArrayOfWhitelistEntry, } from './MarsIncentives.types' export interface MarsIncentivesReadOnlyInterface { contractAddress: string + stakedAstroLpRewards: ({ + accountId, + lpDenom, + }: { + accountId: string + lpDenom: string + }) => Promise activeEmissions: ({ collateralDenom, }: { @@ -72,6 +85,22 @@ export interface MarsIncentivesReadOnlyInterface { limit?: number startAfterTimestamp?: number }) => Promise + stakedAstroLpPositions: ({ + accountId, + limit, + startAfter, + }: { + accountId: string + limit?: number + startAfter?: string + }) => Promise + stakedAstroLpPosition: ({ + accountId, + lpDenom, + }: { + accountId: string + lpDenom: string + }) => Promise userUnclaimedRewards: ({ accountId, limit, @@ -90,20 +119,35 @@ export interface MarsIncentivesReadOnlyInterface { export class MarsIncentivesQueryClient implements MarsIncentivesReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress + this.stakedAstroLpRewards = this.stakedAstroLpRewards.bind(this) this.activeEmissions = this.activeEmissions.bind(this) this.config = this.config.bind(this) this.incentiveState = this.incentiveState.bind(this) this.incentiveStates = this.incentiveStates.bind(this) this.emission = this.emission.bind(this) this.emissions = this.emissions.bind(this) + this.stakedAstroLpPositions = this.stakedAstroLpPositions.bind(this) + this.stakedAstroLpPosition = this.stakedAstroLpPosition.bind(this) this.userUnclaimedRewards = this.userUnclaimedRewards.bind(this) this.whitelist = this.whitelist.bind(this) } - + stakedAstroLpRewards = async ({ + accountId, + lpDenom, + }: { + accountId: string + lpDenom: string + }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + staked_astro_lp_rewards: { + account_id: accountId, + lp_denom: lpDenom, + }, + }) + } activeEmissions = async ({ collateralDenom, }: { @@ -188,6 +232,37 @@ export class MarsIncentivesQueryClient implements MarsIncentivesReadOnlyInterfac }, }) } + stakedAstroLpPositions = async ({ + accountId, + limit, + startAfter, + }: { + accountId: string + limit?: number + startAfter?: string + }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + staked_astro_lp_positions: { + account_id: accountId, + limit, + start_after: startAfter, + }, + }) + } + stakedAstroLpPosition = async ({ + accountId, + lpDenom, + }: { + accountId: string + lpDenom: string + }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + staked_astro_lp_position: { + account_id: accountId, + lp_denom: lpDenom, + }, + }) + } userUnclaimedRewards = async ({ accountId, limit, @@ -284,6 +359,42 @@ export interface MarsIncentivesInterface extends MarsIncentivesReadOnlyInterface memo?: string, _funds?: Coin[], ) => Promise + claimStakedAstroLpRewards: ( + { + accountId, + lpDenom, + }: { + accountId: string + lpDenom: string + }, + fee?: number | StdFee | 'auto', + memo?: string, + _funds?: Coin[], + ) => Promise + stakeAstroLp: ( + { + accountId, + lpCoin, + }: { + accountId: string + lpCoin: Coin + }, + fee?: number | StdFee | 'auto', + memo?: string, + _funds?: Coin[], + ) => Promise + unstakeAstroLp: ( + { + accountId, + lpCoin, + }: { + accountId: string + lpCoin: ActionCoin + }, + fee?: number | StdFee | 'auto', + memo?: string, + _funds?: Coin[], + ) => Promise updateConfig: ( { addressProvider, @@ -316,7 +427,6 @@ export class MarsIncentivesClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -326,11 +436,13 @@ export class MarsIncentivesClient this.setAssetIncentive = this.setAssetIncentive.bind(this) this.balanceChange = this.balanceChange.bind(this) this.claimRewards = this.claimRewards.bind(this) + this.claimStakedAstroLpRewards = this.claimStakedAstroLpRewards.bind(this) + this.stakeAstroLp = this.stakeAstroLp.bind(this) + this.unstakeAstroLp = this.unstakeAstroLp.bind(this) this.updateConfig = this.updateConfig.bind(this) this.updateOwner = this.updateOwner.bind(this) this.migrate = this.migrate.bind(this) } - updateWhitelist = async ( { addDenoms, @@ -459,6 +571,84 @@ export class MarsIncentivesClient _funds, ) } + claimStakedAstroLpRewards = async ( + { + accountId, + lpDenom, + }: { + accountId: string + lpDenom: string + }, + fee: number | StdFee | 'auto' = 'auto', + memo?: string, + _funds?: Coin[], + ): Promise => { + return await this.client.execute( + this.sender, + this.contractAddress, + { + claim_staked_astro_lp_rewards: { + account_id: accountId, + lp_denom: lpDenom, + }, + }, + fee, + memo, + _funds, + ) + } + stakeAstroLp = async ( + { + accountId, + lpCoin, + }: { + accountId: string + lpCoin: Coin + }, + fee: number | StdFee | 'auto' = 'auto', + memo?: string, + _funds?: Coin[], + ): Promise => { + return await this.client.execute( + this.sender, + this.contractAddress, + { + stake_astro_lp: { + account_id: accountId, + lp_coin: lpCoin, + }, + }, + fee, + memo, + _funds, + ) + } + unstakeAstroLp = async ( + { + accountId, + lpCoin, + }: { + accountId: string + lpCoin: ActionCoin + }, + fee: number | StdFee | 'auto' = 'auto', + memo?: string, + _funds?: Coin[], + ): Promise => { + return await this.client.execute( + this.sender, + this.contractAddress, + { + unstake_astro_lp: { + account_id: accountId, + lp_coin: lpCoin, + }, + }, + fee, + memo, + _funds, + ) + } updateConfig = async ( { addressProvider, diff --git a/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts b/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts index 109af6c7..b2d1165b 100644 --- a/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts +++ b/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -13,9 +13,12 @@ import { ExecuteMsg, Uint128, Addr, + ActionAmount, OwnerUpdate, MigrateV1ToV2, WhitelistEntry, + Coin, + ActionCoin, QueryMsg, ArrayOfActiveEmission, ActiveEmission, @@ -25,8 +28,11 @@ import { Decimal, IncentiveStateResponse, ArrayOfIncentiveStateResponse, + StakedLpPositionResponse, + PaginationResponseForStakedLpPositionResponse, + Metadata, + PaginationResponseForTupleOfStringAndArrayOfCoin, ArrayOfCoin, - Coin, ArrayOfWhitelistEntry, } from './MarsIncentives.types' import { MarsIncentivesQueryClient, MarsIncentivesClient } from './MarsIncentives.client' @@ -37,26 +43,83 @@ export const marsIncentivesQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsIncentivesQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsIncentivesQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, + stakedAstroLpRewards: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'staked_astro_lp_rewards', + args, + }, + ] as const, activeEmissions: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'active_emissions', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'active_emissions', + args, + }, ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, incentiveState: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'incentive_state', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'incentive_state', + args, + }, ] as const, incentiveStates: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'incentive_states', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'incentive_states', + args, + }, ] as const, emission: (contractAddress: string | undefined, args?: Record) => - [{ ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'emission', args }] as const, + [ + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'emission', + args, + }, + ] as const, emissions: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'emissions', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'emissions', + args, + }, + ] as const, + stakedAstroLpPositions: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'staked_astro_lp_positions', + args, + }, + ] as const, + stakedAstroLpPosition: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'staked_astro_lp_position', + args, + }, ] as const, userUnclaimedRewards: (contractAddress: string | undefined, args?: Record) => [ @@ -68,7 +131,11 @@ export const marsIncentivesQueryKeys = { ] as const, whitelist: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'whitelist', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'whitelist', + args, + }, ] as const, } export interface MarsIncentivesReactQuery { @@ -89,7 +156,10 @@ export function useMarsIncentivesWhitelistQuery({ return useQuery( marsIncentivesQueryKeys.whitelist(client?.contractAddress), () => (client ? client.whitelist() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesUserUnclaimedRewardsQuery @@ -119,7 +189,64 @@ export function useMarsIncentivesUserUnclaimedRewardsQuery( user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsIncentivesStakedAstroLpPositionQuery + extends MarsIncentivesReactQuery { + args: { + accountId: string + lpDenom: string + } +} +export function useMarsIncentivesStakedAstroLpPositionQuery({ + client, + args, + options, +}: MarsIncentivesStakedAstroLpPositionQuery) { + return useQuery( + marsIncentivesQueryKeys.stakedAstroLpPosition(client?.contractAddress, args), + () => + client + ? client.stakedAstroLpPosition({ + accountId: args.accountId, + lpDenom: args.lpDenom, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsIncentivesStakedAstroLpPositionsQuery + extends MarsIncentivesReactQuery { + args: { + accountId: string + limit?: number + startAfter?: string + } +} +export function useMarsIncentivesStakedAstroLpPositionsQuery< + TData = PaginationResponseForStakedLpPositionResponse, +>({ client, args, options }: MarsIncentivesStakedAstroLpPositionsQuery) { + return useQuery( + marsIncentivesQueryKeys.stakedAstroLpPositions(client?.contractAddress, args), + () => + client + ? client.stakedAstroLpPositions({ + accountId: args.accountId, + limit: args.limit, + startAfter: args.startAfter, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesEmissionsQuery @@ -147,7 +274,10 @@ export function useMarsIncentivesEmissionsQuery startAfterTimestamp: args.startAfterTimestamp, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesEmissionQuery @@ -173,7 +303,10 @@ export function useMarsIncentivesEmissionQuery({ timestamp: args.timestamp, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesIncentiveStatesQuery @@ -199,7 +332,10 @@ export function useMarsIncentivesIncentiveStatesQuery @@ -223,7 +359,10 @@ export function useMarsIncentivesIncentiveStateQuery @@ -235,7 +374,10 @@ export function useMarsIncentivesConfigQuery({ return useQuery( marsIncentivesQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesActiveEmissionsQuery @@ -257,7 +399,35 @@ export function useMarsIncentivesActiveEmissionsQuery + extends MarsIncentivesReactQuery { + args: { + accountId: string + lpDenom: string + } +} +export function useMarsIncentivesStakedAstroLpRewardsQuery< + TData = PaginationResponseForTupleOfStringAndArrayOfCoin, +>({ client, args, options }: MarsIncentivesStakedAstroLpRewardsQuery) { + return useQuery( + marsIncentivesQueryKeys.stakedAstroLpRewards(client?.contractAddress, args), + () => + client + ? client.stakedAstroLpRewards({ + accountId: args.accountId, + lpDenom: args.lpDenom, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesMigrateMutation { @@ -324,6 +494,78 @@ export function useMarsIncentivesUpdateConfigMutation( options, ) } +export interface MarsIncentivesUnstakeAstroLpMutation { + client: MarsIncentivesClient + msg: { + accountId: string + lpCoin: ActionCoin + } + args?: { + fee?: number | StdFee | 'auto' + memo?: string + funds?: Coin[] + } +} +export function useMarsIncentivesUnstakeAstroLpMutation( + options?: Omit< + UseMutationOptions, + 'mutationFn' + >, +) { + return useMutation( + ({ client, msg, args: { fee, memo, funds } = {} }) => + client.unstakeAstroLp(msg, fee, memo, funds), + options, + ) +} +export interface MarsIncentivesStakeAstroLpMutation { + client: MarsIncentivesClient + msg: { + accountId: string + lpCoin: Coin + } + args?: { + fee?: number | StdFee | 'auto' + memo?: string + funds?: Coin[] + } +} +export function useMarsIncentivesStakeAstroLpMutation( + options?: Omit< + UseMutationOptions, + 'mutationFn' + >, +) { + return useMutation( + ({ client, msg, args: { fee, memo, funds } = {} }) => + client.stakeAstroLp(msg, fee, memo, funds), + options, + ) +} +export interface MarsIncentivesClaimStakedAstroLpRewardsMutation { + client: MarsIncentivesClient + msg: { + accountId: string + lpDenom: string + } + args?: { + fee?: number | StdFee | 'auto' + memo?: string + funds?: Coin[] + } +} +export function useMarsIncentivesClaimStakedAstroLpRewardsMutation( + options?: Omit< + UseMutationOptions, + 'mutationFn' + >, +) { + return useMutation( + ({ client, msg, args: { fee, memo, funds } = {} }) => + client.claimStakedAstroLpRewards(msg, fee, memo, funds), + options, + ) +} export interface MarsIncentivesClaimRewardsMutation { client: MarsIncentivesClient msg: { diff --git a/scripts/types/generated/mars-incentives/MarsIncentives.types.ts b/scripts/types/generated/mars-incentives/MarsIncentives.types.ts index f8fe3c58..f1afbf92 100644 --- a/scripts/types/generated/mars-incentives/MarsIncentives.types.ts +++ b/scripts/types/generated/mars-incentives/MarsIncentives.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -8,7 +8,6 @@ export interface InstantiateMsg { address_provider: string epoch_duration: number - mars_denom: string max_whitelisted_denoms: number owner: string } @@ -45,6 +44,24 @@ export type ExecuteMsg = start_after_incentive_denom?: string | null } } + | { + claim_staked_astro_lp_rewards: { + account_id: string + lp_denom: string + } + } + | { + stake_astro_lp: { + account_id: string + lp_coin: Coin + } + } + | { + unstake_astro_lp: { + account_id: string + lp_coin: ActionCoin + } + } | { update_config: { address_provider?: string | null @@ -59,6 +76,11 @@ export type ExecuteMsg = } export type Uint128 = string export type Addr = string +export type ActionAmount = + | 'account_balance' + | { + exact: Uint128 + } export type OwnerUpdate = | { propose_new_owner: { @@ -87,7 +109,22 @@ export interface WhitelistEntry { denom: string min_emission_rate: Uint128 } +export interface Coin { + amount: Uint128 + denom: string + [k: string]: unknown +} +export interface ActionCoin { + amount: ActionAmount + denom: string +} export type QueryMsg = + | { + staked_astro_lp_rewards: { + account_id: string + lp_denom: string + } + } | { active_emissions: { collateral_denom: string @@ -124,6 +161,19 @@ export type QueryMsg = start_after_timestamp?: number | null } } + | { + staked_astro_lp_positions: { + account_id: string + limit?: number | null + start_after?: string | null + } + } + | { + staked_astro_lp_position: { + account_id: string + lp_denom: string + } + } | { user_unclaimed_rewards: { account_id?: string | null @@ -162,10 +212,20 @@ export interface IncentiveStateResponse { last_updated: number } export type ArrayOfIncentiveStateResponse = IncentiveStateResponse[] -export type ArrayOfCoin = Coin[] -export interface Coin { - amount: Uint128 - denom: string - [k: string]: unknown +export interface StakedLpPositionResponse { + lp_coin: Coin + rewards: Coin[] } +export interface PaginationResponseForStakedLpPositionResponse { + data: StakedLpPositionResponse[] + metadata: Metadata +} +export interface Metadata { + has_more: boolean +} +export interface PaginationResponseForTupleOfStringAndArrayOfCoin { + data: [string, Coin[]][] + metadata: Metadata +} +export type ArrayOfCoin = Coin[] export type ArrayOfWhitelistEntry = WhitelistEntry[] diff --git a/scripts/types/generated/mars-incentives/bundle.ts b/scripts/types/generated/mars-incentives/bundle.ts index da717f0e..88c9525a 100644 --- a/scripts/types/generated/mars-incentives/bundle.ts +++ b/scripts/types/generated/mars-incentives/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _9 from './MarsIncentives.types' import * as _10 from './MarsIncentives.client' import * as _11 from './MarsIncentives.react-query' export namespace contracts { - export const MarsIncentives = { ..._9, ..._10, ..._11 } + export const MarsIncentives = { + ..._9, + ..._10, + ..._11, + } } diff --git a/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts b/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts index fd8ec78d..2348405e 100644 --- a/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts +++ b/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -38,7 +38,6 @@ export interface MarsMockVaultReadOnlyInterface { export class MarsMockVaultQueryClient implements MarsMockVaultReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -52,7 +51,6 @@ export class MarsMockVaultQueryClient implements MarsMockVaultReadOnlyInterface this.convertToAssets = this.convertToAssets.bind(this) this.vaultExtension = this.vaultExtension.bind(this) } - vaultStandardInfo = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { vault_standard_info: {}, @@ -148,7 +146,6 @@ export class MarsMockVaultClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -158,7 +155,6 @@ export class MarsMockVaultClient this.redeem = this.redeem.bind(this) this.vaultExtension = this.vaultExtension.bind(this) } - deposit = async ( { amount, diff --git a/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts b/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts index c718b679..0f7588c4 100644 --- a/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts +++ b/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -32,7 +32,12 @@ export const marsMockVaultQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsMockVaultQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsMockVaultQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, vaultStandardInfo: (contractAddress: string | undefined, args?: Record) => [ { @@ -42,18 +47,36 @@ export const marsMockVaultQueryKeys = { }, ] as const, info: (contractAddress: string | undefined, args?: Record) => - [{ ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'info', args }] as const, + [ + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'info', + args, + }, + ] as const, previewDeposit: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'preview_deposit', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'preview_deposit', + args, + }, ] as const, previewRedeem: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'preview_redeem', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'preview_redeem', + args, + }, ] as const, totalAssets: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'total_assets', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'total_assets', + args, + }, ] as const, totalVaultTokenSupply: (contractAddress: string | undefined, args?: Record) => [ @@ -65,15 +88,27 @@ export const marsMockVaultQueryKeys = { ] as const, convertToShares: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'convert_to_shares', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_shares', + args, + }, ] as const, convertToAssets: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'convert_to_assets', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_assets', + args, + }, ] as const, vaultExtension: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'vault_extension', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'vault_extension', + args, + }, ] as const, } export interface MarsMockVaultReactQuery { @@ -94,7 +129,10 @@ export function useMarsMockVaultVaultExtensionQuery({ return useQuery( marsMockVaultQueryKeys.vaultExtension(client?.contractAddress), () => (client ? client.vaultExtension() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultConvertToAssetsQuery @@ -116,7 +154,10 @@ export function useMarsMockVaultConvertToAssetsQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultConvertToSharesQuery @@ -138,7 +179,10 @@ export function useMarsMockVaultConvertToSharesQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultTotalVaultTokenSupplyQuery @@ -150,7 +194,10 @@ export function useMarsMockVaultTotalVaultTokenSupplyQuery({ return useQuery( marsMockVaultQueryKeys.totalVaultTokenSupply(client?.contractAddress), () => (client ? client.totalVaultTokenSupply() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultTotalAssetsQuery @@ -162,7 +209,10 @@ export function useMarsMockVaultTotalAssetsQuery({ return useQuery( marsMockVaultQueryKeys.totalAssets(client?.contractAddress), () => (client ? client.totalAssets() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultPreviewRedeemQuery @@ -184,7 +234,10 @@ export function useMarsMockVaultPreviewRedeemQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultPreviewDepositQuery @@ -206,7 +259,10 @@ export function useMarsMockVaultPreviewDepositQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultInfoQuery @@ -218,7 +274,10 @@ export function useMarsMockVaultInfoQuery({ return useQuery( marsMockVaultQueryKeys.info(client?.contractAddress), () => (client ? client.info() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultVaultStandardInfoQuery @@ -230,7 +289,10 @@ export function useMarsMockVaultVaultStandardInfoQuery( marsMockVaultQueryKeys.vaultStandardInfo(client?.contractAddress), () => (client ? client.vaultStandardInfo() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultVaultExtensionMutation { diff --git a/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts b/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts index 9db4ece1..ae9bab1e 100644 --- a/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts +++ b/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-mock-vault/bundle.ts b/scripts/types/generated/mars-mock-vault/bundle.ts index 02170260..a3e22b9e 100644 --- a/scripts/types/generated/mars-mock-vault/bundle.ts +++ b/scripts/types/generated/mars-mock-vault/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _12 from './MarsMockVault.types' import * as _13 from './MarsMockVault.client' import * as _14 from './MarsMockVault.react-query' export namespace contracts { - export const MarsMockVault = { ..._12, ..._13, ..._14 } + export const MarsMockVault = { + ..._12, + ..._13, + ..._14, + } } diff --git a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts index 1cb05610..6e1aa645 100644 --- a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts +++ b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -53,7 +53,6 @@ export interface MarsOracleOsmosisReadOnlyInterface { export class MarsOracleOsmosisQueryClient implements MarsOracleOsmosisReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -63,7 +62,6 @@ export class MarsOracleOsmosisQueryClient implements MarsOracleOsmosisReadOnlyIn this.price = this.price.bind(this) this.prices = this.prices.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -166,7 +164,6 @@ export class MarsOracleOsmosisClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -178,7 +175,6 @@ export class MarsOracleOsmosisClient this.updateConfig = this.updateConfig.bind(this) this.custom = this.custom.bind(this) } - setPriceSource = async ( { denom, diff --git a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts index 10b6cc76..31bb3814 100644 --- a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts +++ b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -37,24 +37,51 @@ export const marsOracleOsmosisQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsOracleOsmosisQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsOracleOsmosisQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, priceSource: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'price_source', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'price_source', + args, + }, ] as const, priceSources: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'price_sources', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'price_sources', + args, + }, ] as const, price: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'price', args }] as const, + [ + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'price', + args, + }, + ] as const, prices: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'prices', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'prices', + args, + }, ] as const, } export interface MarsOracleOsmosisReactQuery { @@ -89,7 +116,10 @@ export function useMarsOracleOsmosisPricesQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleOsmosisPriceQuery @@ -113,7 +143,10 @@ export function useMarsOracleOsmosisPriceQuery({ kind: args.kind, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleOsmosisPriceSourcesQuery @@ -137,7 +170,10 @@ export function useMarsOracleOsmosisPriceSourcesQuery @@ -159,7 +195,10 @@ export function useMarsOracleOsmosisPriceSourceQuery @@ -171,7 +210,10 @@ export function useMarsOracleOsmosisConfigQuery({ return useQuery( marsOracleOsmosisQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleOsmosisCustomMutation { diff --git a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts index 14650c33..c2c4a573 100644 --- a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts +++ b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-oracle-osmosis/bundle.ts b/scripts/types/generated/mars-oracle-osmosis/bundle.ts index 9428a689..fecefc5f 100644 --- a/scripts/types/generated/mars-oracle-osmosis/bundle.ts +++ b/scripts/types/generated/mars-oracle-osmosis/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _15 from './MarsOracleOsmosis.types' import * as _16 from './MarsOracleOsmosis.client' import * as _17 from './MarsOracleOsmosis.react-query' export namespace contracts { - export const MarsOracleOsmosis = { ..._15, ..._16, ..._17 } + export const MarsOracleOsmosis = { + ..._15, + ..._16, + ..._17, + } } diff --git a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts index cda2b0a7..2f9abfdd 100644 --- a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts +++ b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -51,7 +51,6 @@ export interface MarsOracleWasmReadOnlyInterface { export class MarsOracleWasmQueryClient implements MarsOracleWasmReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -61,7 +60,6 @@ export class MarsOracleWasmQueryClient implements MarsOracleWasmReadOnlyInterfac this.price = this.price.bind(this) this.prices = this.prices.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -169,7 +167,6 @@ export class MarsOracleWasmClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -181,7 +178,6 @@ export class MarsOracleWasmClient this.updateConfig = this.updateConfig.bind(this) this.custom = this.custom.bind(this) } - setPriceSource = async ( { denom, diff --git a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts index 1d2c23cf..1b5becd2 100644 --- a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts +++ b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -35,21 +35,52 @@ export const marsOracleWasmQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsOracleWasmQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsOracleWasmQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, priceSource: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'price_source', args }, + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'price_source', + args, + }, ] as const, priceSources: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'price_sources', args }, + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'price_sources', + args, + }, ] as const, price: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'price', args }] as const, + [ + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'price', + args, + }, + ] as const, prices: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'prices', args }] as const, + [ + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'prices', + args, + }, + ] as const, } export interface MarsOracleWasmReactQuery { client: MarsOracleWasmQueryClient | undefined @@ -83,7 +114,10 @@ export function useMarsOracleWasmPricesQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleWasmPriceQuery @@ -107,7 +141,10 @@ export function useMarsOracleWasmPriceQuery({ kind: args.kind, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleWasmPriceSourcesQuery @@ -131,7 +168,10 @@ export function useMarsOracleWasmPriceSourcesQuery @@ -153,7 +193,10 @@ export function useMarsOracleWasmPriceSourceQuery @@ -165,7 +208,10 @@ export function useMarsOracleWasmConfigQuery({ return useQuery( marsOracleWasmQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleWasmCustomMutation { diff --git a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts index 2559f1b6..fb643cb5 100644 --- a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts +++ b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -71,6 +71,21 @@ export type WasmPriceSourceForString = twap: AstroportTwapForString } } + | { + xyk_liquidity_token: { + pair_address: string + } + } + | { + pcl_liquidity_token: { + pair_address: string + } + } + | { + ss_liquidity_token: { + pair_address: string + } + } export type Decimal = string export type Identifier = string export type OwnerUpdate = diff --git a/scripts/types/generated/mars-oracle-wasm/bundle.ts b/scripts/types/generated/mars-oracle-wasm/bundle.ts index 96d688af..8555a023 100644 --- a/scripts/types/generated/mars-oracle-wasm/bundle.ts +++ b/scripts/types/generated/mars-oracle-wasm/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _18 from './MarsOracleWasm.types' import * as _19 from './MarsOracleWasm.client' import * as _20 from './MarsOracleWasm.react-query' export namespace contracts { - export const MarsOracleWasm = { ..._18, ..._19, ..._20 } + export const MarsOracleWasm = { + ..._18, + ..._19, + ..._20, + } } diff --git a/scripts/types/generated/mars-params/MarsParams.client.ts b/scripts/types/generated/mars-params/MarsParams.client.ts index 1cfe31b9..40e7ea01 100644 --- a/scripts/types/generated/mars-params/MarsParams.client.ts +++ b/scripts/types/generated/mars-params/MarsParams.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -33,19 +33,21 @@ import { AssetParamsBaseForAddr, CmSettingsForAddr, HlsParamsBaseForAddr, + PaginationResponseForTotalDepositResponse, + TotalDepositResponse, + Metadata, ArrayOfVaultConfigBaseForAddr, VaultConfigBaseForAddr, PaginationResponseForVaultConfigBaseForAddr, - Metadata, + NullableAssetParamsBaseForAddr, ConfigResponse, OwnerResponse, - TotalDepositResponse, } from './MarsParams.types' export interface MarsParamsReadOnlyInterface { contractAddress: string owner: () => Promise config: () => Promise - assetParams: ({ denom }: { denom: string }) => Promise + assetParams: ({ denom }: { denom: string }) => Promise allAssetParams: ({ limit, startAfter, @@ -70,11 +72,17 @@ export interface MarsParamsReadOnlyInterface { }) => Promise targetHealthFactor: () => Promise totalDeposit: ({ denom }: { denom: string }) => Promise + allTotalDepositsV2: ({ + limit, + startAfter, + }: { + limit?: number + startAfter?: string + }) => Promise } export class MarsParamsQueryClient implements MarsParamsReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -87,8 +95,8 @@ export class MarsParamsQueryClient implements MarsParamsReadOnlyInterface { this.allVaultConfigsV2 = this.allVaultConfigsV2.bind(this) this.targetHealthFactor = this.targetHealthFactor.bind(this) this.totalDeposit = this.totalDeposit.bind(this) + this.allTotalDepositsV2 = this.allTotalDepositsV2.bind(this) } - owner = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -99,7 +107,7 @@ export class MarsParamsQueryClient implements MarsParamsReadOnlyInterface { config: {}, }) } - assetParams = async ({ denom }: { denom: string }): Promise => { + assetParams = async ({ denom }: { denom: string }): Promise => { return this.client.queryContractSmart(this.contractAddress, { asset_params: { denom, @@ -167,6 +175,20 @@ export class MarsParamsQueryClient implements MarsParamsReadOnlyInterface { }, }) } + allTotalDepositsV2 = async ({ + limit, + startAfter, + }: { + limit?: number + startAfter?: string + }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + all_total_deposits_v2: { + limit, + start_after: startAfter, + }, + }) + } } export interface MarsParamsInterface extends MarsParamsReadOnlyInterface { contractAddress: string @@ -215,7 +237,6 @@ export class MarsParamsClient extends MarsParamsQueryClient implements MarsParam client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -228,7 +249,6 @@ export class MarsParamsClient extends MarsParamsQueryClient implements MarsParam this.updateVaultConfig = this.updateVaultConfig.bind(this) this.emergencyUpdate = this.emergencyUpdate.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-params/MarsParams.react-query.ts b/scripts/types/generated/mars-params/MarsParams.react-query.ts index ad6d093f..f39396e4 100644 --- a/scripts/types/generated/mars-params/MarsParams.react-query.ts +++ b/scripts/types/generated/mars-params/MarsParams.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -34,13 +34,15 @@ import { AssetParamsBaseForAddr, CmSettingsForAddr, HlsParamsBaseForAddr, + PaginationResponseForTotalDepositResponse, + TotalDepositResponse, + Metadata, ArrayOfVaultConfigBaseForAddr, VaultConfigBaseForAddr, PaginationResponseForVaultConfigBaseForAddr, - Metadata, + NullableAssetParamsBaseForAddr, ConfigResponse, OwnerResponse, - TotalDepositResponse, } from './MarsParams.types' import { MarsParamsQueryClient, MarsParamsClient } from './MarsParams.client' export const marsParamsQueryKeys = { @@ -50,34 +52,91 @@ export const marsParamsQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsParamsQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsParamsQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'owner', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, assetParams: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'asset_params', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'asset_params', + args, + }, + ] as const, allAssetParams: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'all_asset_params', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_asset_params', + args, + }, ] as const, vaultConfig: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'vault_config', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'vault_config', + args, + }, + ] as const, allVaultConfigs: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'all_vault_configs', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_vault_configs', + args, + }, ] as const, allVaultConfigsV2: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'all_vault_configs_v2', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_vault_configs_v2', + args, + }, ] as const, targetHealthFactor: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'target_health_factor', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'target_health_factor', + args, + }, ] as const, totalDeposit: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'total_deposit', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'total_deposit', + args, + }, + ] as const, + allTotalDepositsV2: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_total_deposits_v2', + args, + }, ] as const, } export interface MarsParamsReactQuery { @@ -89,6 +148,31 @@ export interface MarsParamsReactQuery { initialData?: undefined } } +export interface MarsParamsAllTotalDepositsV2Query + extends MarsParamsReactQuery { + args: { + limit?: number + startAfter?: string + } +} +export function useMarsParamsAllTotalDepositsV2Query< + TData = PaginationResponseForTotalDepositResponse, +>({ client, args, options }: MarsParamsAllTotalDepositsV2Query) { + return useQuery( + marsParamsQueryKeys.allTotalDepositsV2(client?.contractAddress, args), + () => + client + ? client.allTotalDepositsV2({ + limit: args.limit, + startAfter: args.startAfter, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} export interface MarsParamsTotalDepositQuery extends MarsParamsReactQuery { args: { @@ -108,7 +192,10 @@ export function useMarsParamsTotalDepositQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsTargetHealthFactorQuery @@ -120,7 +207,10 @@ export function useMarsParamsTargetHealthFactorQuery({ return useQuery( marsParamsQueryKeys.targetHealthFactor(client?.contractAddress), () => (client ? client.targetHealthFactor() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsAllVaultConfigsV2Query @@ -142,7 +232,10 @@ export function useMarsParamsAllVaultConfigsV2Query< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsAllVaultConfigsQuery @@ -166,7 +259,10 @@ export function useMarsParamsAllVaultConfigsQuery @@ -188,7 +284,10 @@ export function useMarsParamsVaultConfigQuery({ address: args.address, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsAllAssetParamsQuery @@ -212,21 +311,24 @@ export function useMarsParamsAllAssetParamsQuery - extends MarsParamsReactQuery { + extends MarsParamsReactQuery { args: { denom: string } } -export function useMarsParamsAssetParamsQuery({ +export function useMarsParamsAssetParamsQuery({ client, args, options, }: MarsParamsAssetParamsQuery) { - return useQuery( + return useQuery( marsParamsQueryKeys.assetParams(client?.contractAddress, args), () => client @@ -234,7 +336,10 @@ export function useMarsParamsAssetParamsQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsConfigQuery extends MarsParamsReactQuery {} @@ -245,7 +350,10 @@ export function useMarsParamsConfigQuery({ return useQuery( marsParamsQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsOwnerQuery extends MarsParamsReactQuery {} @@ -256,7 +364,10 @@ export function useMarsParamsOwnerQuery({ return useQuery( marsParamsQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsEmergencyUpdateMutation { diff --git a/scripts/types/generated/mars-params/MarsParams.types.ts b/scripts/types/generated/mars-params/MarsParams.types.ts index b77cf813..c274a4f7 100644 --- a/scripts/types/generated/mars-params/MarsParams.types.ts +++ b/scripts/types/generated/mars-params/MarsParams.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -174,6 +174,12 @@ export type QueryMsg = denom: string } } + | { + all_total_deposits_v2: { + limit?: number | null + start_after?: string | null + } + } export type HlsAssetTypeForAddr = | { coin: { @@ -206,6 +212,18 @@ export interface HlsParamsBaseForAddr { liquidation_threshold: Decimal max_loan_to_value: Decimal } +export interface PaginationResponseForTotalDepositResponse { + data: TotalDepositResponse[] + metadata: Metadata +} +export interface TotalDepositResponse { + amount: Uint128 + cap: Uint128 + denom: string +} +export interface Metadata { + has_more: boolean +} export type ArrayOfVaultConfigBaseForAddr = VaultConfigBaseForAddr[] export interface VaultConfigBaseForAddr { addr: Addr @@ -219,9 +237,7 @@ export interface PaginationResponseForVaultConfigBaseForAddr { data: VaultConfigBaseForAddr[] metadata: Metadata } -export interface Metadata { - has_more: boolean -} +export type NullableAssetParamsBaseForAddr = AssetParamsBaseForAddr | null export interface ConfigResponse { address_provider: string } @@ -232,8 +248,3 @@ export interface OwnerResponse { owner?: string | null proposed?: string | null } -export interface TotalDepositResponse { - amount: Uint128 - cap: Uint128 - denom: string -} diff --git a/scripts/types/generated/mars-params/bundle.ts b/scripts/types/generated/mars-params/bundle.ts index 66f5f4a3..595e7ecd 100644 --- a/scripts/types/generated/mars-params/bundle.ts +++ b/scripts/types/generated/mars-params/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _21 from './MarsParams.types' import * as _22 from './MarsParams.client' import * as _23 from './MarsParams.react-query' export namespace contracts { - export const MarsParams = { ..._21, ..._22, ..._23 } + export const MarsParams = { + ..._21, + ..._22, + ..._23, + } } diff --git a/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts b/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts index 7db690bd..8aa61f4b 100644 --- a/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts +++ b/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -20,13 +20,13 @@ import { QueryMsg, ConfigResponse, Market, + MarketV2Response, ArrayOfMarket, - UncollateralizedLoanLimitResponse, - ArrayOfUncollateralizedLoanLimitResponse, + PaginationResponseForMarketV2Response, + Metadata, UserCollateralResponse, ArrayOfUserCollateralResponse, PaginationResponseForUserCollateralResponse, - Metadata, UserDebtResponse, ArrayOfUserDebtResponse, UserHealthStatus, @@ -36,6 +36,7 @@ export interface MarsRedBankReadOnlyInterface { contractAddress: string config: () => Promise market: ({ denom }: { denom: string }) => Promise + marketV2: ({ denom }: { denom: string }) => Promise markets: ({ limit, startAfter, @@ -43,22 +44,13 @@ export interface MarsRedBankReadOnlyInterface { limit?: number startAfter?: string }) => Promise - uncollateralizedLoanLimit: ({ - denom, - user, - }: { - denom: string - user: string - }) => Promise - uncollateralizedLoanLimits: ({ + marketsV2: ({ limit, startAfter, - user, }: { limit?: number startAfter?: string - user: string - }) => Promise + }) => Promise userDebt: ({ denom, user }: { denom: string; user: string }) => Promise userDebts: ({ limit, @@ -134,15 +126,14 @@ export interface MarsRedBankReadOnlyInterface { export class MarsRedBankQueryClient implements MarsRedBankReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress this.config = this.config.bind(this) this.market = this.market.bind(this) + this.marketV2 = this.marketV2.bind(this) this.markets = this.markets.bind(this) - this.uncollateralizedLoanLimit = this.uncollateralizedLoanLimit.bind(this) - this.uncollateralizedLoanLimits = this.uncollateralizedLoanLimits.bind(this) + this.marketsV2 = this.marketsV2.bind(this) this.userDebt = this.userDebt.bind(this) this.userDebts = this.userDebts.bind(this) this.userCollateral = this.userCollateral.bind(this) @@ -155,7 +146,6 @@ export class MarsRedBankQueryClient implements MarsRedBankReadOnlyInterface { this.underlyingLiquidityAmount = this.underlyingLiquidityAmount.bind(this) this.underlyingDebtAmount = this.underlyingDebtAmount.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -168,6 +158,13 @@ export class MarsRedBankQueryClient implements MarsRedBankReadOnlyInterface { }, }) } + marketV2 = async ({ denom }: { denom: string }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + market_v2: { + denom, + }, + }) + } markets = async ({ limit, startAfter, @@ -182,34 +179,17 @@ export class MarsRedBankQueryClient implements MarsRedBankReadOnlyInterface { }, }) } - uncollateralizedLoanLimit = async ({ - denom, - user, - }: { - denom: string - user: string - }): Promise => { - return this.client.queryContractSmart(this.contractAddress, { - uncollateralized_loan_limit: { - denom, - user, - }, - }) - } - uncollateralizedLoanLimits = async ({ + marketsV2 = async ({ limit, startAfter, - user, }: { limit?: number startAfter?: string - user: string - }): Promise => { + }): Promise => { return this.client.queryContractSmart(this.contractAddress, { - uncollateralized_loan_limits: { + markets_v2: { limit, start_after: startAfter, - user, }, }) } @@ -429,20 +409,6 @@ export interface MarsRedBankInterface extends MarsRedBankReadOnlyInterface { memo?: string, _funds?: Coin[], ) => Promise - updateUncollateralizedLoanLimit: ( - { - denom, - newLimit, - user, - }: { - denom: string - newLimit: Uint128 - user: string - }, - fee?: number | StdFee | 'auto', - memo?: string, - _funds?: Coin[], - ) => Promise deposit: ( { accountId, @@ -534,7 +500,6 @@ export class MarsRedBankClient extends MarsRedBankQueryClient implements MarsRed client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -544,7 +509,6 @@ export class MarsRedBankClient extends MarsRedBankQueryClient implements MarsRed this.updateConfig = this.updateConfig.bind(this) this.initAsset = this.initAsset.bind(this) this.updateAsset = this.updateAsset.bind(this) - this.updateUncollateralizedLoanLimit = this.updateUncollateralizedLoanLimit.bind(this) this.deposit = this.deposit.bind(this) this.withdraw = this.withdraw.bind(this) this.borrow = this.borrow.bind(this) @@ -553,7 +517,6 @@ export class MarsRedBankClient extends MarsRedBankQueryClient implements MarsRed this.updateAssetCollateralStatus = this.updateAssetCollateralStatus.bind(this) this.migrate = this.migrate.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', @@ -646,35 +609,6 @@ export class MarsRedBankClient extends MarsRedBankQueryClient implements MarsRed _funds, ) } - updateUncollateralizedLoanLimit = async ( - { - denom, - newLimit, - user, - }: { - denom: string - newLimit: Uint128 - user: string - }, - fee: number | StdFee | 'auto' = 'auto', - memo?: string, - _funds?: Coin[], - ): Promise => { - return await this.client.execute( - this.sender, - this.contractAddress, - { - update_uncollateralized_loan_limit: { - denom, - new_limit: newLimit, - user, - }, - }, - fee, - memo, - _funds, - ) - } deposit = async ( { accountId, diff --git a/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts b/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts index 244993df..7f848782 100644 --- a/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts +++ b/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -21,13 +21,13 @@ import { QueryMsg, ConfigResponse, Market, + MarketV2Response, ArrayOfMarket, - UncollateralizedLoanLimitResponse, - ArrayOfUncollateralizedLoanLimitResponse, + PaginationResponseForMarketV2Response, + Metadata, UserCollateralResponse, ArrayOfUserCollateralResponse, PaginationResponseForUserCollateralResponse, - Metadata, UserDebtResponse, ArrayOfUserDebtResponse, UserHealthStatus, @@ -41,54 +41,99 @@ export const marsRedBankQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsRedBankQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsRedBankQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, market: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'market', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'market', + args, + }, + ] as const, + marketV2: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'market_v2', + args, + }, + ] as const, markets: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'markets', args }] as const, - uncollateralizedLoanLimit: ( - contractAddress: string | undefined, - args?: Record, - ) => [ { ...marsRedBankQueryKeys.address(contractAddress)[0], - method: 'uncollateralized_loan_limit', + method: 'markets', args, }, ] as const, - uncollateralizedLoanLimits: ( - contractAddress: string | undefined, - args?: Record, - ) => + marketsV2: (contractAddress: string | undefined, args?: Record) => [ { ...marsRedBankQueryKeys.address(contractAddress)[0], - method: 'uncollateralized_loan_limits', + method: 'markets_v2', args, }, ] as const, userDebt: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_debt', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_debt', + args, + }, + ] as const, userDebts: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_debts', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_debts', + args, + }, + ] as const, userCollateral: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_collateral', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_collateral', + args, + }, ] as const, userCollaterals: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_collaterals', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_collaterals', + args, + }, ] as const, userCollateralsV2: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_collaterals_v2', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_collaterals_v2', + args, + }, ] as const, userPosition: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_position', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_position', + args, + }, ] as const, userPositionLiquidationPricing: ( contractAddress: string | undefined, @@ -111,7 +156,11 @@ export const marsRedBankQueryKeys = { ] as const, scaledDebtAmount: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'scaled_debt_amount', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'scaled_debt_amount', + args, + }, ] as const, underlyingLiquidityAmount: ( contractAddress: string | undefined, @@ -163,7 +212,10 @@ export function useMarsRedBankUnderlyingDebtAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUnderlyingLiquidityAmountQuery @@ -187,7 +239,10 @@ export function useMarsRedBankUnderlyingLiquidityAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankScaledDebtAmountQuery @@ -211,7 +266,10 @@ export function useMarsRedBankScaledDebtAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankScaledLiquidityAmountQuery @@ -235,7 +293,10 @@ export function useMarsRedBankScaledLiquidityAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserPositionLiquidationPricingQuery @@ -259,7 +320,10 @@ export function useMarsRedBankUserPositionLiquidationPricingQuery @@ -283,7 +347,10 @@ export function useMarsRedBankUserPositionQuery({ user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserCollateralsV2Query @@ -309,7 +376,10 @@ export function useMarsRedBankUserCollateralsV2Query< user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserCollateralsQuery @@ -337,7 +407,10 @@ export function useMarsRedBankUserCollateralsQuery @@ -363,7 +436,10 @@ export function useMarsRedBankUserCollateralQuery @@ -389,7 +465,10 @@ export function useMarsRedBankUserDebtsQuery({ user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserDebtQuery @@ -413,53 +492,37 @@ export function useMarsRedBankUserDebtQuery({ user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } -export interface MarsRedBankUncollateralizedLoanLimitsQuery - extends MarsRedBankReactQuery { +export interface MarsRedBankMarketsV2Query + extends MarsRedBankReactQuery { args: { limit?: number startAfter?: string - user: string } } -export function useMarsRedBankUncollateralizedLoanLimitsQuery< - TData = ArrayOfUncollateralizedLoanLimitResponse, ->({ client, args, options }: MarsRedBankUncollateralizedLoanLimitsQuery) { - return useQuery( - marsRedBankQueryKeys.uncollateralizedLoanLimits(client?.contractAddress, args), +export function useMarsRedBankMarketsV2Query({ + client, + args, + options, +}: MarsRedBankMarketsV2Query) { + return useQuery( + marsRedBankQueryKeys.marketsV2(client?.contractAddress, args), () => client - ? client.uncollateralizedLoanLimits({ + ? client.marketsV2({ limit: args.limit, startAfter: args.startAfter, - user: args.user, - }) - : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, - ) -} -export interface MarsRedBankUncollateralizedLoanLimitQuery - extends MarsRedBankReactQuery { - args: { - denom: string - user: string - } -} -export function useMarsRedBankUncollateralizedLoanLimitQuery< - TData = UncollateralizedLoanLimitResponse, ->({ client, args, options }: MarsRedBankUncollateralizedLoanLimitQuery) { - return useQuery( - marsRedBankQueryKeys.uncollateralizedLoanLimit(client?.contractAddress, args), - () => - client - ? client.uncollateralizedLoanLimit({ - denom: args.denom, - user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankMarketsQuery @@ -483,7 +546,35 @@ export function useMarsRedBankMarketsQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsRedBankMarketV2Query + extends MarsRedBankReactQuery { + args: { + denom: string + } +} +export function useMarsRedBankMarketV2Query({ + client, + args, + options, +}: MarsRedBankMarketV2Query) { + return useQuery( + marsRedBankQueryKeys.marketV2(client?.contractAddress, args), + () => + client + ? client.marketV2({ + denom: args.denom, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankMarketQuery extends MarsRedBankReactQuery { @@ -504,7 +595,10 @@ export function useMarsRedBankMarketQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankConfigQuery @@ -516,7 +610,10 @@ export function useMarsRedBankConfigQuery({ return useQuery( marsRedBankQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankMigrateMutation { @@ -676,31 +773,6 @@ export function useMarsRedBankDepositMutation( options, ) } -export interface MarsRedBankUpdateUncollateralizedLoanLimitMutation { - client: MarsRedBankClient - msg: { - denom: string - newLimit: Uint128 - user: string - } - args?: { - fee?: number | StdFee | 'auto' - memo?: string - funds?: Coin[] - } -} -export function useMarsRedBankUpdateUncollateralizedLoanLimitMutation( - options?: Omit< - UseMutationOptions, - 'mutationFn' - >, -) { - return useMutation( - ({ client, msg, args: { fee, memo, funds } = {} }) => - client.updateUncollateralizedLoanLimit(msg, fee, memo, funds), - options, - ) -} export interface MarsRedBankUpdateAssetMutation { client: MarsRedBankClient msg: { diff --git a/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts b/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts index fb915743..bd54d453 100644 --- a/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts +++ b/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -33,13 +33,6 @@ export type ExecuteMsg = params: InitOrUpdateAssetParams } } - | { - update_uncollateralized_loan_limit: { - denom: string - new_limit: Uint128 - user: string - } - } | { deposit: { account_id?: string | null @@ -129,22 +122,20 @@ export type QueryMsg = } } | { - markets: { - limit?: number | null - start_after?: string | null + market_v2: { + denom: string } } | { - uncollateralized_loan_limit: { - denom: string - user: string + markets: { + limit?: number | null + start_after?: string | null } } | { - uncollateralized_loan_limits: { + markets_v2: { limit?: number | null start_after?: string | null - user: string } } | { @@ -236,12 +227,29 @@ export interface Market { liquidity_rate: Decimal reserve_factor: Decimal } -export type ArrayOfMarket = Market[] -export interface UncollateralizedLoanLimitResponse { +export interface MarketV2Response { + borrow_index: Decimal + borrow_rate: Decimal + collateral_total_amount: Uint128 + collateral_total_scaled: Uint128 + debt_total_amount: Uint128 + debt_total_scaled: Uint128 denom: string - limit: Uint128 + indexes_last_updated: number + interest_rate_model: InterestRateModel + liquidity_index: Decimal + liquidity_rate: Decimal + reserve_factor: Decimal + utilization_rate: Decimal +} +export type ArrayOfMarket = Market[] +export interface PaginationResponseForMarketV2Response { + data: MarketV2Response[] + metadata: Metadata +} +export interface Metadata { + has_more: boolean } -export type ArrayOfUncollateralizedLoanLimitResponse = UncollateralizedLoanLimitResponse[] export interface UserCollateralResponse { amount: Uint128 amount_scaled: Uint128 @@ -253,9 +261,6 @@ export interface PaginationResponseForUserCollateralResponse { data: UserCollateralResponse[] metadata: Metadata } -export interface Metadata { - has_more: boolean -} export interface UserDebtResponse { amount: Uint128 amount_scaled: Uint128 diff --git a/scripts/types/generated/mars-red-bank/bundle.ts b/scripts/types/generated/mars-red-bank/bundle.ts index 6eed8763..706a30f9 100644 --- a/scripts/types/generated/mars-red-bank/bundle.ts +++ b/scripts/types/generated/mars-red-bank/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _24 from './MarsRedBank.types' import * as _25 from './MarsRedBank.client' import * as _26 from './MarsRedBank.react-query' export namespace contracts { - export const MarsRedBank = { ..._24, ..._25, ..._26 } + export const MarsRedBank = { + ..._24, + ..._25, + ..._26, + } } diff --git a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts index 2d05d8c9..020d7a49 100644 --- a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts +++ b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -39,13 +39,11 @@ export class MarsRewardsCollectorBaseQueryClient { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress this.config = this.config.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -112,12 +110,16 @@ export interface MarsRewardsCollectorBaseInterface { amount, denom, + feeCollectorMinReceive, feeCollectorRoute, + safetyFundMinReceive, safetyFundRoute, }: { amount?: Uint128 denom: string + feeCollectorMinReceive?: Uint128 feeCollectorRoute?: SwapperRoute + safetyFundMinReceive?: Uint128 safetyFundRoute?: SwapperRoute }, fee?: number | StdFee | 'auto', @@ -146,7 +148,6 @@ export class MarsRewardsCollectorBaseClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -160,7 +161,6 @@ export class MarsRewardsCollectorBaseClient this.swapAsset = this.swapAsset.bind(this) this.claimIncentiveRewards = this.claimIncentiveRewards.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', @@ -283,12 +283,16 @@ export class MarsRewardsCollectorBaseClient { amount, denom, + feeCollectorMinReceive, feeCollectorRoute, + safetyFundMinReceive, safetyFundRoute, }: { amount?: Uint128 denom: string + feeCollectorMinReceive?: Uint128 feeCollectorRoute?: SwapperRoute + safetyFundMinReceive?: Uint128 safetyFundRoute?: SwapperRoute }, fee: number | StdFee | 'auto' = 'auto', @@ -302,7 +306,9 @@ export class MarsRewardsCollectorBaseClient swap_asset: { amount, denom, + fee_collector_min_receive: feeCollectorMinReceive, fee_collector_route: feeCollectorRoute, + safety_fund_min_receive: safetyFundMinReceive, safety_fund_route: safetyFundRoute, }, }, diff --git a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts index de5be0cf..10853a7e 100644 --- a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts +++ b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -42,10 +42,19 @@ export const marsRewardsCollectorBaseQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsRewardsCollectorBaseQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsRewardsCollectorBaseQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRewardsCollectorBaseQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsRewardsCollectorBaseQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, } export interface MarsRewardsCollectorBaseReactQuery { @@ -66,7 +75,10 @@ export function useMarsRewardsCollectorBaseConfigQuery({ return useQuery( marsRewardsCollectorBaseQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRewardsCollectorBaseClaimIncentiveRewardsMutation { @@ -99,7 +111,9 @@ export interface MarsRewardsCollectorBaseSwapAssetMutation { msg: { amount?: Uint128 denom: string + feeCollectorMinReceive?: Uint128 feeCollectorRoute?: SwapperRoute + safetyFundMinReceive?: Uint128 safetyFundRoute?: SwapperRoute } args?: { diff --git a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts index 255f8baa..f566c4af 100644 --- a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts +++ b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -59,7 +59,9 @@ export type ExecuteMsg = swap_asset: { amount?: Uint128 | null denom: string + fee_collector_min_receive?: Uint128 | null fee_collector_route?: SwapperRoute | null + safety_fund_min_receive?: Uint128 | null safety_fund_route?: SwapperRoute | null } } @@ -92,6 +94,12 @@ export type Action = | { withdraw: ActionCoin } + | { + withdraw_to_wallet: { + coin: ActionCoin + recipient: string + } + } | { borrow: Coin } @@ -145,8 +153,8 @@ export type Action = swap_exact_in: { coin_in: ActionCoin denom_out: string + min_receive: Uint128 route?: SwapperRoute | null - slippage: Decimal } } | { @@ -162,6 +170,21 @@ export type Action = slippage: Decimal } } + | { + stake_astro_lp: { + lp_token: ActionCoin + } + } + | { + unstake_astro_lp: { + lp_token: ActionCoin + } + } + | { + claim_astro_lp_rewards: { + lp_denom: string + } + } | { refund_all_coin_balances: {} } @@ -183,6 +206,9 @@ export type LiquidateRequestForVaultBaseForString = request_vault: VaultBaseForString } } + | { + staked_astro_lp: string + } export type VaultPositionType = 'u_n_l_o_c_k_e_d' | 'l_o_c_k_e_d' | 'u_n_l_o_c_k_i_n_g' export type SwapperRoute = | { diff --git a/scripts/types/generated/mars-rewards-collector-base/bundle.ts b/scripts/types/generated/mars-rewards-collector-base/bundle.ts index cb483255..dea007b4 100644 --- a/scripts/types/generated/mars-rewards-collector-base/bundle.ts +++ b/scripts/types/generated/mars-rewards-collector-base/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _27 from './MarsRewardsCollectorBase.types' import * as _28 from './MarsRewardsCollectorBase.client' import * as _29 from './MarsRewardsCollectorBase.react-query' export namespace contracts { - export const MarsRewardsCollectorBase = { ..._27, ..._28, ..._29 } + export const MarsRewardsCollectorBase = { + ..._27, + ..._28, + ..._29, + } } diff --git a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts index 7489b612..d7a0ed68 100644 --- a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts +++ b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts index b89502a5..dea04321 100644 --- a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts +++ b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts index 29afa63d..a44d3017 100644 --- a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts +++ b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -19,7 +19,13 @@ export type HlsAssetTypeForAddr = export type Addr = string export type Decimal = string export type Uint128 = string -export type AccountKind = 'default' | 'high_levered_strategy' +export type AccountKind = + | ('default' | 'high_levered_strategy') + | { + fund_manager: { + vault_addr: string + } + } export type VaultPositionAmount = | { unlocked: VaultAmount @@ -75,9 +81,11 @@ export interface RedBankSettings { } export interface Positions { account_id: string + account_kind: AccountKind debts: DebtAmount[] deposits: Coin[] lends: Coin[] + staked_astro_lps: Coin[] vaults: VaultPosition[] } export interface DebtAmount { diff --git a/scripts/types/generated/mars-rover-health-computer/bundle.ts b/scripts/types/generated/mars-rover-health-computer/bundle.ts index 27b5d1eb..9bf5785e 100644 --- a/scripts/types/generated/mars-rover-health-computer/bundle.ts +++ b/scripts/types/generated/mars-rover-health-computer/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _33 from './MarsRoverHealthComputer.types' import * as _34 from './MarsRoverHealthComputer.client' import * as _35 from './MarsRoverHealthComputer.react-query' export namespace contracts { - export const MarsRoverHealthComputer = { ..._33, ..._34, ..._35 } + export const MarsRoverHealthComputer = { + ..._33, + ..._34, + ..._35, + } } diff --git a/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts b/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts index 8b863418..1568d5df 100644 --- a/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts +++ b/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -46,7 +46,6 @@ export interface MarsRoverHealthReadOnlyInterface { export class MarsRoverHealthQueryClient implements MarsRoverHealthReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -54,7 +53,6 @@ export class MarsRoverHealthQueryClient implements MarsRoverHealthReadOnlyInterf this.healthState = this.healthState.bind(this) this.config = this.config.bind(this) } - healthValues = async ({ accountId, action, @@ -122,7 +120,6 @@ export class MarsRoverHealthClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -131,7 +128,6 @@ export class MarsRoverHealthClient this.updateOwner = this.updateOwner.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts b/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts index 6da6d48a..7557fd9f 100644 --- a/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts +++ b/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -30,17 +30,36 @@ export const marsRoverHealthQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsRoverHealthQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsRoverHealthQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, healthValues: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRoverHealthQueryKeys.address(contractAddress)[0], method: 'health_values', args }, + { + ...marsRoverHealthQueryKeys.address(contractAddress)[0], + method: 'health_values', + args, + }, ] as const, healthState: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRoverHealthQueryKeys.address(contractAddress)[0], method: 'health_state', args }, + { + ...marsRoverHealthQueryKeys.address(contractAddress)[0], + method: 'health_state', + args, + }, ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRoverHealthQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsRoverHealthQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, } export interface MarsRoverHealthReactQuery { client: MarsRoverHealthQueryClient | undefined @@ -60,7 +79,10 @@ export function useMarsRoverHealthConfigQuery({ return useQuery( marsRoverHealthQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRoverHealthHealthStateQuery @@ -86,7 +108,10 @@ export function useMarsRoverHealthHealthStateQuery({ kind: args.kind, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRoverHealthHealthValuesQuery @@ -112,7 +137,10 @@ export function useMarsRoverHealthHealthValuesQuery => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -156,13 +153,13 @@ export interface MarsSwapperAstroportInterface extends MarsSwapperAstroportReadO { coinIn, denomOut, + minReceive, route, - slippage, }: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal }, fee?: number | StdFee | 'auto', memo?: string, @@ -200,7 +197,6 @@ export class MarsSwapperAstroportClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -212,7 +208,6 @@ export class MarsSwapperAstroportClient this.transferResult = this.transferResult.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', @@ -263,13 +258,13 @@ export class MarsSwapperAstroportClient { coinIn, denomOut, + minReceive, route, - slippage, }: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal }, fee: number | StdFee | 'auto' = 'auto', memo?: string, @@ -282,8 +277,8 @@ export class MarsSwapperAstroportClient swap_exact_in: { coin_in: coinIn, denom_out: denomOut, + min_receive: minReceive, route, - slippage, }, }, fee, diff --git a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts index 8dbd0082..a43d9dd4 100644 --- a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts +++ b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -17,7 +17,6 @@ import { Addr, Uint128, SwapperRoute, - Decimal, AstroportRoute, Coin, AstroRoute, @@ -43,18 +42,35 @@ export const marsSwapperAstroportQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsSwapperAstroportQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsSwapperAstroportQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'owner', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, ] as const, route: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'route', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'route', + args, + }, ] as const, routes: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'routes', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'routes', + args, + }, ] as const, estimateExactInSwap: (contractAddress: string | undefined, args?: Record) => [ @@ -66,7 +82,11 @@ export const marsSwapperAstroportQueryKeys = { ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, } export interface MarsSwapperAstroportReactQuery { @@ -87,7 +107,10 @@ export function useMarsSwapperAstroportConfigQuery({ return useQuery( marsSwapperAstroportQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportEstimateExactInSwapQuery @@ -111,7 +134,10 @@ export function useMarsSwapperAstroportEstimateExactInSwapQuery< route: args.route, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportRoutesQuery @@ -135,7 +161,10 @@ export function useMarsSwapperAstroportRoutesQuery @@ -159,7 +188,10 @@ export function useMarsSwapperAstroportRouteQuery denomOut: args.denomOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportOwnerQuery @@ -171,7 +203,10 @@ export function useMarsSwapperAstroportOwnerQuery({ return useQuery( marsSwapperAstroportQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportUpdateConfigMutation { @@ -227,8 +262,8 @@ export interface MarsSwapperAstroportSwapExactInMutation { msg: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal } args?: { fee?: number | StdFee | 'auto' diff --git a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts index d2e1faa2..696cae5f 100644 --- a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts +++ b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -23,8 +23,8 @@ export type ExecuteMsg = swap_exact_in: { coin_in: Coin denom_out: string + min_receive: Uint128 route?: SwapperRoute | null - slippage: Decimal } } | { @@ -87,7 +87,6 @@ export type SwapperRoute = | { osmo: OsmoRoute } -export type Decimal = string export interface AstroportRoute { factory: string operations: SwapOperation[] diff --git a/scripts/types/generated/mars-swapper-astroport/bundle.ts b/scripts/types/generated/mars-swapper-astroport/bundle.ts index 05c745c1..79f61688 100644 --- a/scripts/types/generated/mars-swapper-astroport/bundle.ts +++ b/scripts/types/generated/mars-swapper-astroport/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _36 from './MarsSwapperAstroport.types' import * as _37 from './MarsSwapperAstroport.client' import * as _38 from './MarsSwapperAstroport.react-query' export namespace contracts { - export const MarsSwapperAstroport = { ..._36, ..._37, ..._38 } + export const MarsSwapperAstroport = { + ..._36, + ..._37, + ..._38, + } } diff --git a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts index 7ec62c05..6a2e2b64 100644 --- a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts +++ b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -13,7 +13,6 @@ import { OwnerUpdate, Uint128, SwapperRoute, - Decimal, Addr, Empty, Coin, @@ -58,7 +57,6 @@ export interface MarsSwapperBaseReadOnlyInterface { export class MarsSwapperBaseQueryClient implements MarsSwapperBaseReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -68,7 +66,6 @@ export class MarsSwapperBaseQueryClient implements MarsSwapperBaseReadOnlyInterf this.estimateExactInSwap = this.estimateExactInSwap.bind(this) this.config = this.config.bind(this) } - owner = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -152,13 +149,13 @@ export interface MarsSwapperBaseInterface extends MarsSwapperBaseReadOnlyInterfa { coinIn, denomOut, + minReceive, route, - slippage, }: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal }, fee?: number | StdFee | 'auto', memo?: string, @@ -196,7 +193,6 @@ export class MarsSwapperBaseClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -208,7 +204,6 @@ export class MarsSwapperBaseClient this.transferResult = this.transferResult.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', @@ -259,13 +254,13 @@ export class MarsSwapperBaseClient { coinIn, denomOut, + minReceive, route, - slippage, }: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal }, fee: number | StdFee | 'auto' = 'auto', memo?: string, @@ -278,8 +273,8 @@ export class MarsSwapperBaseClient swap_exact_in: { coin_in: coinIn, denom_out: denomOut, + min_receive: minReceive, route, - slippage, }, }, fee, diff --git a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts index 4daaa901..4f067328 100644 --- a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts +++ b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -14,7 +14,6 @@ import { OwnerUpdate, Uint128, SwapperRoute, - Decimal, Addr, Empty, Coin, @@ -36,13 +35,36 @@ export const marsSwapperBaseQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsSwapperBaseQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsSwapperBaseQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'owner', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, + ] as const, route: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'route', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'route', + args, + }, + ] as const, routes: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'routes', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'routes', + args, + }, + ] as const, estimateExactInSwap: (contractAddress: string | undefined, args?: Record) => [ { @@ -52,7 +74,13 @@ export const marsSwapperBaseQueryKeys = { }, ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, } export interface MarsSwapperBaseReactQuery { client: MarsSwapperBaseQueryClient | undefined @@ -72,7 +100,10 @@ export function useMarsSwapperBaseConfigQuery({ return useQuery( marsSwapperBaseQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperBaseEstimateExactInSwapQuery @@ -98,7 +129,10 @@ export function useMarsSwapperBaseEstimateExactInSwapQuery @@ -122,7 +156,10 @@ export function useMarsSwapperBaseRoutesQuery @@ -146,7 +183,10 @@ export function useMarsSwapperBaseRouteQuery({ denomOut: args.denomOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperBaseOwnerQuery @@ -158,7 +198,10 @@ export function useMarsSwapperBaseOwnerQuery({ return useQuery( marsSwapperBaseQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperBaseUpdateConfigMutation { @@ -214,8 +257,8 @@ export interface MarsSwapperBaseSwapExactInMutation { msg: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal } args?: { fee?: number | StdFee | 'auto' diff --git a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts index 8cd96168..8b8a5b86 100644 --- a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts +++ b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -23,8 +23,8 @@ export type ExecuteMsg = swap_exact_in: { coin_in: Coin denom_out: string + min_receive: Uint128 route?: SwapperRoute | null - slippage: Decimal } } | { @@ -62,7 +62,6 @@ export type SwapperRoute = | { osmo: OsmoRoute } -export type Decimal = string export type Addr = string export interface Empty { [k: string]: unknown diff --git a/scripts/types/generated/mars-swapper-base/bundle.ts b/scripts/types/generated/mars-swapper-base/bundle.ts index 43ad2b7a..95e00774 100644 --- a/scripts/types/generated/mars-swapper-base/bundle.ts +++ b/scripts/types/generated/mars-swapper-base/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _39 from './MarsSwapperBase.types' import * as _40 from './MarsSwapperBase.client' import * as _41 from './MarsSwapperBase.react-query' export namespace contracts { - export const MarsSwapperBase = { ..._39, ..._40, ..._41 } + export const MarsSwapperBase = { + ..._39, + ..._40, + ..._41, + } } diff --git a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts index 1f5a07bf..9150c793 100644 --- a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts +++ b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -14,7 +14,6 @@ import { OsmosisRoute, Uint128, SwapperRoute, - Decimal, Addr, SwapAmountInRoute, Coin, @@ -61,7 +60,6 @@ export interface MarsSwapperOsmosisReadOnlyInterface { export class MarsSwapperOsmosisQueryClient implements MarsSwapperOsmosisReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -71,7 +69,6 @@ export class MarsSwapperOsmosisQueryClient implements MarsSwapperOsmosisReadOnly this.estimateExactInSwap = this.estimateExactInSwap.bind(this) this.config = this.config.bind(this) } - owner = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -155,13 +152,13 @@ export interface MarsSwapperOsmosisInterface extends MarsSwapperOsmosisReadOnlyI { coinIn, denomOut, + minReceive, route, - slippage, }: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal }, fee?: number | StdFee | 'auto', memo?: string, @@ -199,7 +196,6 @@ export class MarsSwapperOsmosisClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -211,7 +207,6 @@ export class MarsSwapperOsmosisClient this.transferResult = this.transferResult.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', @@ -262,13 +257,13 @@ export class MarsSwapperOsmosisClient { coinIn, denomOut, + minReceive, route, - slippage, }: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal }, fee: number | StdFee | 'auto' = 'auto', memo?: string, @@ -281,8 +276,8 @@ export class MarsSwapperOsmosisClient swap_exact_in: { coin_in: coinIn, denom_out: denomOut, + min_receive: minReceive, route, - slippage, }, }, fee, diff --git a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts index 969c367d..0f79eb7c 100644 --- a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts +++ b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -15,7 +15,6 @@ import { OsmosisRoute, Uint128, SwapperRoute, - Decimal, Addr, SwapAmountInRoute, Coin, @@ -42,18 +41,35 @@ export const marsSwapperOsmosisQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsSwapperOsmosisQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsSwapperOsmosisQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'owner', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, ] as const, route: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'route', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'route', + args, + }, ] as const, routes: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'routes', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'routes', + args, + }, ] as const, estimateExactInSwap: (contractAddress: string | undefined, args?: Record) => [ @@ -65,7 +81,11 @@ export const marsSwapperOsmosisQueryKeys = { ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, } export interface MarsSwapperOsmosisReactQuery { @@ -86,7 +106,10 @@ export function useMarsSwapperOsmosisConfigQuery({ return useQuery( marsSwapperOsmosisQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperOsmosisEstimateExactInSwapQuery @@ -112,7 +135,10 @@ export function useMarsSwapperOsmosisEstimateExactInSwapQuery @@ -136,7 +162,10 @@ export function useMarsSwapperOsmosisRoutesQuery @@ -160,7 +189,10 @@ export function useMarsSwapperOsmosisRouteQuery({ denomOut: args.denomOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperOsmosisOwnerQuery @@ -172,7 +204,10 @@ export function useMarsSwapperOsmosisOwnerQuery({ return useQuery( marsSwapperOsmosisQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperOsmosisUpdateConfigMutation { @@ -228,8 +263,8 @@ export interface MarsSwapperOsmosisSwapExactInMutation { msg: { coinIn: Coin denomOut: string + minReceive: Uint128 route?: SwapperRoute - slippage: Decimal } args?: { fee?: number | StdFee | 'auto' diff --git a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts index d76d682d..79c8669c 100644 --- a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts +++ b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -23,8 +23,8 @@ export type ExecuteMsg = swap_exact_in: { coin_in: Coin denom_out: string + min_receive: Uint128 route?: SwapperRoute | null - slippage: Decimal } } | { @@ -63,7 +63,6 @@ export type SwapperRoute = | { osmo: OsmoRoute } -export type Decimal = string export type Addr = string export interface SwapAmountInRoute { pool_id: number diff --git a/scripts/types/generated/mars-swapper-osmosis/bundle.ts b/scripts/types/generated/mars-swapper-osmosis/bundle.ts index c0c3a3d7..06363205 100644 --- a/scripts/types/generated/mars-swapper-osmosis/bundle.ts +++ b/scripts/types/generated/mars-swapper-osmosis/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _42 from './MarsSwapperOsmosis.types' import * as _43 from './MarsSwapperOsmosis.client' import * as _44 from './MarsSwapperOsmosis.react-query' export namespace contracts { - export const MarsSwapperOsmosis = { ..._42, ..._43, ..._44 } + export const MarsSwapperOsmosis = { + ..._42, + ..._43, + ..._44, + } } diff --git a/scripts/types/generated/mars-vault/MarsVault.client.ts b/scripts/types/generated/mars-vault/MarsVault.client.ts new file mode 100644 index 00000000..46ab6249 --- /dev/null +++ b/scripts/types/generated/mars-vault/MarsVault.client.ts @@ -0,0 +1,221 @@ +// @ts-nocheck +/** + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run the @cosmwasm/ts-codegen generate command to regenerate this file. + */ + +import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from '@cosmjs/cosmwasm-stargate' +import { Coin, StdFee } from '@cosmjs/amino' +import { + Decimal, + InstantiateMsg, + PerformanceFeeConfig, + ExecuteMsg, + Uint128, + ExtensionExecuteMsg, + QueryMsg, + ExtensionQueryMsg, + VaultInfoResponse, + Empty, + VaultStandardInfoResponse, +} from './MarsVault.types' +export interface MarsVaultReadOnlyInterface { + contractAddress: string + vaultStandardInfo: () => Promise + info: () => Promise + previewDeposit: ({ amount }: { amount: Uint128 }) => Promise + previewRedeem: ({ amount }: { amount: Uint128 }) => Promise + totalAssets: () => Promise + totalVaultTokenSupply: () => Promise + convertToShares: ({ amount }: { amount: Uint128 }) => Promise + convertToAssets: ({ amount }: { amount: Uint128 }) => Promise + vaultExtension: (extensionQueryMsg: ExtensionQueryMsg) => Promise +} +export class MarsVaultQueryClient implements MarsVaultReadOnlyInterface { + client: CosmWasmClient + contractAddress: string + constructor(client: CosmWasmClient, contractAddress: string) { + this.client = client + this.contractAddress = contractAddress + this.vaultStandardInfo = this.vaultStandardInfo.bind(this) + this.info = this.info.bind(this) + this.previewDeposit = this.previewDeposit.bind(this) + this.previewRedeem = this.previewRedeem.bind(this) + this.totalAssets = this.totalAssets.bind(this) + this.totalVaultTokenSupply = this.totalVaultTokenSupply.bind(this) + this.convertToShares = this.convertToShares.bind(this) + this.convertToAssets = this.convertToAssets.bind(this) + this.vaultExtension = this.vaultExtension.bind(this) + } + vaultStandardInfo = async (): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + vault_standard_info: {}, + }) + } + info = async (): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + info: {}, + }) + } + previewDeposit = async ({ amount }: { amount: Uint128 }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + preview_deposit: { + amount, + }, + }) + } + previewRedeem = async ({ amount }: { amount: Uint128 }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + preview_redeem: { + amount, + }, + }) + } + totalAssets = async (): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + total_assets: {}, + }) + } + totalVaultTokenSupply = async (): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + total_vault_token_supply: {}, + }) + } + convertToShares = async ({ amount }: { amount: Uint128 }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + convert_to_shares: { + amount, + }, + }) + } + convertToAssets = async ({ amount }: { amount: Uint128 }): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + convert_to_assets: { + amount, + }, + }) + } + vaultExtension = async (extensionQueryMsg: ExtensionQueryMsg): Promise => { + return this.client.queryContractSmart(this.contractAddress, { + vault_extension: extensionQueryMsg, + }) + } +} +export interface MarsVaultInterface extends MarsVaultReadOnlyInterface { + contractAddress: string + sender: string + deposit: ( + { + amount, + recipient, + }: { + amount: Uint128 + recipient?: string + }, + fee?: number | StdFee | 'auto', + memo?: string, + _funds?: Coin[], + ) => Promise + redeem: ( + { + amount, + recipient, + }: { + amount: Uint128 + recipient?: string + }, + fee?: number | StdFee | 'auto', + memo?: string, + _funds?: Coin[], + ) => Promise + vaultExtension: ( + extensionExecuteMsg: ExtensionExecuteMsg, + fee?: number | StdFee | 'auto', + memo?: string, + _funds?: Coin[], + ) => Promise +} +export class MarsVaultClient extends MarsVaultQueryClient implements MarsVaultInterface { + client: SigningCosmWasmClient + sender: string + contractAddress: string + constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { + super(client, contractAddress) + this.client = client + this.sender = sender + this.contractAddress = contractAddress + this.deposit = this.deposit.bind(this) + this.redeem = this.redeem.bind(this) + this.vaultExtension = this.vaultExtension.bind(this) + } + deposit = async ( + { + amount, + recipient, + }: { + amount: Uint128 + recipient?: string + }, + fee: number | StdFee | 'auto' = 'auto', + memo?: string, + _funds?: Coin[], + ): Promise => { + return await this.client.execute( + this.sender, + this.contractAddress, + { + deposit: { + amount, + recipient, + }, + }, + fee, + memo, + _funds, + ) + } + redeem = async ( + { + amount, + recipient, + }: { + amount: Uint128 + recipient?: string + }, + fee: number | StdFee | 'auto' = 'auto', + memo?: string, + _funds?: Coin[], + ): Promise => { + return await this.client.execute( + this.sender, + this.contractAddress, + { + redeem: { + amount, + recipient, + }, + }, + fee, + memo, + _funds, + ) + } + vaultExtension = async ( + extensionExecuteMsg: ExtensionExecuteMsg, + fee: number | StdFee | 'auto' = 'auto', + memo?: string, + _funds?: Coin[], + ): Promise => { + return await this.client.execute( + this.sender, + this.contractAddress, + { + vault_extension: extensionExecuteMsg, + }, + fee, + memo, + _funds, + ) + } +} diff --git a/scripts/types/generated/mars-vault/MarsVault.react-query.ts b/scripts/types/generated/mars-vault/MarsVault.react-query.ts new file mode 100644 index 00000000..d7098785 --- /dev/null +++ b/scripts/types/generated/mars-vault/MarsVault.react-query.ts @@ -0,0 +1,348 @@ +// @ts-nocheck +/** + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run the @cosmwasm/ts-codegen generate command to regenerate this file. + */ + +import { UseQueryOptions, useQuery, useMutation, UseMutationOptions } from '@tanstack/react-query' +import { ExecuteResult } from '@cosmjs/cosmwasm-stargate' +import { StdFee, Coin } from '@cosmjs/amino' +import { + Decimal, + InstantiateMsg, + PerformanceFeeConfig, + ExecuteMsg, + Uint128, + ExtensionExecuteMsg, + QueryMsg, + ExtensionQueryMsg, + VaultInfoResponse, + Empty, + VaultStandardInfoResponse, +} from './MarsVault.types' +import { MarsVaultQueryClient, MarsVaultClient } from './MarsVault.client' +export const marsVaultQueryKeys = { + contract: [ + { + contract: 'marsVault', + }, + ] as const, + address: (contractAddress: string | undefined) => + [ + { + ...marsVaultQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, + vaultStandardInfo: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'vault_standard_info', + args, + }, + ] as const, + info: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'info', + args, + }, + ] as const, + previewDeposit: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'preview_deposit', + args, + }, + ] as const, + previewRedeem: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'preview_redeem', + args, + }, + ] as const, + totalAssets: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'total_assets', + args, + }, + ] as const, + totalVaultTokenSupply: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'total_vault_token_supply', + args, + }, + ] as const, + convertToShares: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_shares', + args, + }, + ] as const, + convertToAssets: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_assets', + args, + }, + ] as const, + vaultExtension: (contractAddress: string | undefined, args?: Record) => + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'vault_extension', + args, + }, + ] as const, +} +export interface MarsVaultReactQuery { + client: MarsVaultQueryClient | undefined + options?: Omit< + UseQueryOptions, + "'queryKey' | 'queryFn' | 'initialData'" + > & { + initialData?: undefined + } +} +export interface MarsVaultVaultExtensionQuery extends MarsVaultReactQuery {} +export function useMarsVaultVaultExtensionQuery({ + client, + options, +}: MarsVaultVaultExtensionQuery) { + return useQuery( + marsVaultQueryKeys.vaultExtension(client?.contractAddress), + () => (client ? client.vaultExtension() : Promise.reject(new Error('Invalid client'))), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultConvertToAssetsQuery extends MarsVaultReactQuery { + args: { + amount: Uint128 + } +} +export function useMarsVaultConvertToAssetsQuery({ + client, + args, + options, +}: MarsVaultConvertToAssetsQuery) { + return useQuery( + marsVaultQueryKeys.convertToAssets(client?.contractAddress, args), + () => + client + ? client.convertToAssets({ + amount: args.amount, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultConvertToSharesQuery extends MarsVaultReactQuery { + args: { + amount: Uint128 + } +} +export function useMarsVaultConvertToSharesQuery({ + client, + args, + options, +}: MarsVaultConvertToSharesQuery) { + return useQuery( + marsVaultQueryKeys.convertToShares(client?.contractAddress, args), + () => + client + ? client.convertToShares({ + amount: args.amount, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultTotalVaultTokenSupplyQuery + extends MarsVaultReactQuery {} +export function useMarsVaultTotalVaultTokenSupplyQuery({ + client, + options, +}: MarsVaultTotalVaultTokenSupplyQuery) { + return useQuery( + marsVaultQueryKeys.totalVaultTokenSupply(client?.contractAddress), + () => (client ? client.totalVaultTokenSupply() : Promise.reject(new Error('Invalid client'))), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultTotalAssetsQuery extends MarsVaultReactQuery {} +export function useMarsVaultTotalAssetsQuery({ + client, + options, +}: MarsVaultTotalAssetsQuery) { + return useQuery( + marsVaultQueryKeys.totalAssets(client?.contractAddress), + () => (client ? client.totalAssets() : Promise.reject(new Error('Invalid client'))), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultPreviewRedeemQuery extends MarsVaultReactQuery { + args: { + amount: Uint128 + } +} +export function useMarsVaultPreviewRedeemQuery({ + client, + args, + options, +}: MarsVaultPreviewRedeemQuery) { + return useQuery( + marsVaultQueryKeys.previewRedeem(client?.contractAddress, args), + () => + client + ? client.previewRedeem({ + amount: args.amount, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultPreviewDepositQuery extends MarsVaultReactQuery { + args: { + amount: Uint128 + } +} +export function useMarsVaultPreviewDepositQuery({ + client, + args, + options, +}: MarsVaultPreviewDepositQuery) { + return useQuery( + marsVaultQueryKeys.previewDeposit(client?.contractAddress, args), + () => + client + ? client.previewDeposit({ + amount: args.amount, + }) + : Promise.reject(new Error('Invalid client')), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultInfoQuery extends MarsVaultReactQuery {} +export function useMarsVaultInfoQuery({ + client, + options, +}: MarsVaultInfoQuery) { + return useQuery( + marsVaultQueryKeys.info(client?.contractAddress), + () => (client ? client.info() : Promise.reject(new Error('Invalid client'))), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultVaultStandardInfoQuery + extends MarsVaultReactQuery {} +export function useMarsVaultVaultStandardInfoQuery({ + client, + options, +}: MarsVaultVaultStandardInfoQuery) { + return useQuery( + marsVaultQueryKeys.vaultStandardInfo(client?.contractAddress), + () => (client ? client.vaultStandardInfo() : Promise.reject(new Error('Invalid client'))), + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, + ) +} +export interface MarsVaultVaultExtensionMutation { + client: MarsVaultClient + msg: ExtensionExecuteMsg + args?: { + fee?: number | StdFee | 'auto' + memo?: string + funds?: Coin[] + } +} +export function useMarsVaultVaultExtensionMutation( + options?: Omit< + UseMutationOptions, + 'mutationFn' + >, +) { + return useMutation( + ({ client, msg, args: { fee, memo, funds } = {} }) => + client.vaultExtension(msg, fee, memo, funds), + options, + ) +} +export interface MarsVaultRedeemMutation { + client: MarsVaultClient + msg: { + amount: Uint128 + recipient?: string + } + args?: { + fee?: number | StdFee | 'auto' + memo?: string + funds?: Coin[] + } +} +export function useMarsVaultRedeemMutation( + options?: Omit, 'mutationFn'>, +) { + return useMutation( + ({ client, msg, args: { fee, memo, funds } = {} }) => client.redeem(msg, fee, memo, funds), + options, + ) +} +export interface MarsVaultDepositMutation { + client: MarsVaultClient + msg: { + amount: Uint128 + recipient?: string + } + args?: { + fee?: number | StdFee | 'auto' + memo?: string + funds?: Coin[] + } +} +export function useMarsVaultDepositMutation( + options?: Omit, 'mutationFn'>, +) { + return useMutation( + ({ client, msg, args: { fee, memo, funds } = {} }) => client.deposit(msg, fee, memo, funds), + options, + ) +} diff --git a/scripts/types/generated/mars-vault/MarsVault.types.ts b/scripts/types/generated/mars-vault/MarsVault.types.ts new file mode 100644 index 00000000..f6655162 --- /dev/null +++ b/scripts/types/generated/mars-vault/MarsVault.types.ts @@ -0,0 +1,120 @@ +// @ts-nocheck +/** + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run the @cosmwasm/ts-codegen generate command to regenerate this file. + */ + +export type Decimal = string +export interface InstantiateMsg { + base_token: string + cooldown_period: number + credit_manager: string + description?: string | null + performance_fee_config: PerformanceFeeConfig + subtitle?: string | null + title?: string | null + vault_token_subdenom: string +} +export interface PerformanceFeeConfig { + fee_rate: Decimal + withdrawal_interval: number +} +export type ExecuteMsg = + | { + deposit: { + amount: Uint128 + recipient?: string | null + } + } + | { + redeem: { + amount: Uint128 + recipient?: string | null + } + } + | { + vault_extension: ExtensionExecuteMsg + } +export type Uint128 = string +export type ExtensionExecuteMsg = + | { + bind_credit_manager_account: { + account_id: string + } + } + | { + unlock: { + amount: Uint128 + } + } + | { + withdraw_performance_fee: { + new_performance_fee_config?: PerformanceFeeConfig | null + } + } +export type QueryMsg = + | { + vault_standard_info: {} + } + | { + info: {} + } + | { + preview_deposit: { + amount: Uint128 + } + } + | { + preview_redeem: { + amount: Uint128 + } + } + | { + total_assets: {} + } + | { + total_vault_token_supply: {} + } + | { + convert_to_shares: { + amount: Uint128 + } + } + | { + convert_to_assets: { + amount: Uint128 + } + } + | { + vault_extension: ExtensionQueryMsg + } +export type ExtensionQueryMsg = + | { + vault_info: {} + } + | { + user_unlocks: { + user_address: string + } + } + | { + all_unlocks: { + limit?: number | null + start_after?: [string, number] | null + } + } + | { + performance_fee_state: {} + } +export interface VaultInfoResponse { + base_token: string + vault_token: string +} +export interface Empty { + [k: string]: unknown +} +export interface VaultStandardInfoResponse { + extensions: string[] + version: number +} diff --git a/scripts/types/generated/mars-vault/bundle.ts b/scripts/types/generated/mars-vault/bundle.ts new file mode 100644 index 00000000..2541d6ed --- /dev/null +++ b/scripts/types/generated/mars-vault/bundle.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +/** + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. + * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, + * and run the @cosmwasm/ts-codegen generate command to regenerate this file. + */ + +import * as _45 from './MarsVault.types' +import * as _46 from './MarsVault.client' +import * as _47 from './MarsVault.react-query' +export namespace contracts { + export const MarsVault = { + ..._45, + ..._46, + ..._47, + } +} diff --git a/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts b/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts index 4a10eb33..fc6161fc 100644 --- a/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts +++ b/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -31,14 +31,12 @@ export interface MarsZapperBaseReadOnlyInterface { export class MarsZapperBaseQueryClient implements MarsZapperBaseReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress this.estimateProvideLiquidity = this.estimateProvideLiquidity.bind(this) this.estimateWithdrawLiquidity = this.estimateWithdrawLiquidity.bind(this) } - estimateProvideLiquidity = async ({ coinsIn, lpTokenOut, @@ -104,7 +102,6 @@ export class MarsZapperBaseClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -114,7 +111,6 @@ export class MarsZapperBaseClient this.withdrawLiquidity = this.withdrawLiquidity.bind(this) this.callback = this.callback.bind(this) } - provideLiquidity = async ( { lpTokenOut, diff --git a/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts b/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts index 870dc73c..8c17ecd8 100644 --- a/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts +++ b/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -26,7 +26,12 @@ export const marsZapperBaseQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsZapperBaseQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsZapperBaseQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, estimateProvideLiquidity: (contractAddress: string | undefined, args?: Record) => [ { @@ -75,7 +80,10 @@ export function useMarsZapperBaseEstimateWithdrawLiquidityQuery @@ -99,7 +107,10 @@ export function useMarsZapperBaseEstimateProvideLiquidityQuery( lpTokenOut: args.lpTokenOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsZapperBaseCallbackMutation { diff --git a/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts b/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts index dbb6c81f..b9b89b3f 100644 --- a/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts +++ b/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-zapper-base/bundle.ts b/scripts/types/generated/mars-zapper-base/bundle.ts index 0770f75e..a5afaad7 100644 --- a/scripts/types/generated/mars-zapper-base/bundle.ts +++ b/scripts/types/generated/mars-zapper-base/bundle.ts @@ -1,13 +1,17 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ -import * as _45 from './MarsZapperBase.types' -import * as _46 from './MarsZapperBase.client' -import * as _47 from './MarsZapperBase.react-query' +import * as _48 from './MarsZapperBase.types' +import * as _49 from './MarsZapperBase.client' +import * as _50 from './MarsZapperBase.react-query' export namespace contracts { - export const MarsZapperBase = { ..._45, ..._46, ..._47 } + export const MarsZapperBase = { + ..._48, + ..._49, + ..._50, + } } diff --git a/scripts/yarn.lock b/scripts/yarn.lock index 9269e672..d5c8d93f 100644 --- a/scripts/yarn.lock +++ b/scripts/yarn.lock @@ -7,7 +7,7 @@ resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== -"@ampproject/remapping@^2.1.0", "@ampproject/remapping@^2.2.0": +"@ampproject/remapping@^2.2.0": version "2.2.1" resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz" integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg== @@ -15,14 +15,22 @@ "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6", "@babel/code-frame@^7.22.5": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.5.tgz" integrity sha512-Xmwn266vad+6DAqEB2A6V/CcZVp62BbwVmcOJc2RPuwih1kw02TjQvWVWlcKGbBPd+8/0V5DEkOcizRGYsspYQ== dependencies: "@babel/highlight" "^7.22.5" -"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.18.8", "@babel/compat-data@^7.20.5", "@babel/compat-data@^7.22.5": +"@babel/code-frame@^7.24.1", "@babel/code-frame@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.6.tgz#ab88da19344445c3d8889af2216606d3329f3ef2" + integrity sha512-ZJhac6FkEd1yhG2AHOmfcXG4ceoLltoCVJjN5XsWN9BifBQr+cHJbWi0h68HZuSORq+3WtJ2z0hwF2NG1b5kcA== + dependencies: + "@babel/highlight" "^7.24.6" + picocolors "^1.0.0" + +"@babel/compat-data@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.5.tgz" integrity sha512-4Jc/YuIaYqKnDDz892kPIledykKg12Aw1PYX5i/TY28anJtacvM1Rrr8wbieB9GfEJwlzqT0hUEao0CxEebiDA== @@ -32,31 +40,10 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.6.tgz#15606a20341de59ba02cd2fcc5086fcbe73bf544" integrity sha512-29tfsWTq2Ftu7MXmimyC0C5FDZv5DYxOZkh3XD3+QW4V/BYuv/LyEsjj3c0hqedEaDt6DBfDvexMKU8YevdqFg== -"@babel/compat-data@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.9.tgz#71cdb00a1ce3a329ce4cbec3a44f9fef35669730" - integrity sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ== - -"@babel/core@7.18.10": - version "7.18.10" - resolved "https://registry.npmjs.org/@babel/core/-/core-7.18.10.tgz" - integrity sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw== - dependencies: - "@ampproject/remapping" "^2.1.0" - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.18.10" - "@babel/helper-compilation-targets" "^7.18.9" - "@babel/helper-module-transforms" "^7.18.9" - "@babel/helpers" "^7.18.9" - "@babel/parser" "^7.18.10" - "@babel/template" "^7.18.10" - "@babel/traverse" "^7.18.10" - "@babel/types" "^7.18.10" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.1" - semver "^6.3.0" +"@babel/compat-data@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.6.tgz#b3600217688cabb26e25f8e467019e66d71b7ae2" + integrity sha512-aC2DGhBq5eEdyXWqrDInSqQjO0k8xtPRf5YylULqx8MCd6jBtzqfta/3ETMRpuKIc5hyswfO80ObyA1MvkCcUQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3": version "7.22.5" @@ -79,16 +66,38 @@ json5 "^2.2.2" semver "^6.3.0" -"@babel/generator@7.18.12": - version "7.18.12" - resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.18.12.tgz" - integrity sha512-dfQ8ebCN98SvyL7IxNMCUtZQSq5R7kxgN+r8qYTGDmmSion1hX2C0zq2yo1bsCDhXixokv1SAWTZUMYbO/V5zg== +"@babel/core@^7.23.9": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.6.tgz#8650e0e4b03589ebe886c4e4a60398db0a7ec787" + integrity sha512-qAHSfAdVyFmIvl0VHELib8xar7ONuSHrE2hLnsaWkYNTI68dmi1x8GYDhJjMI/e7XWal9QBlZkwbOnkcw7Z8gQ== dependencies: - "@babel/types" "^7.18.10" - "@jridgewell/gen-mapping" "^0.3.2" + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.24.6" + "@babel/generator" "^7.24.6" + "@babel/helper-compilation-targets" "^7.24.6" + "@babel/helper-module-transforms" "^7.24.6" + "@babel/helpers" "^7.24.6" + "@babel/parser" "^7.24.6" + "@babel/template" "^7.24.6" + "@babel/traverse" "^7.24.6" + "@babel/types" "^7.24.6" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/generator@7.24.4": + version "7.24.4" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.4.tgz#1fc55532b88adf952025d5d2d1e71f946cb1c498" + integrity sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw== + dependencies: + "@babel/types" "^7.24.0" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" -"@babel/generator@^7.18.10", "@babel/generator@^7.22.5", "@babel/generator@^7.7.2": +"@babel/generator@^7.22.5", "@babel/generator@^7.7.2": version "7.22.5" resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.22.5.tgz" integrity sha512-+lcUbnTRhd0jOewtFSedLyiPsD5tswKkbgcezOqqWFUVNEwoUTlpPOBmvhG7OXWLR4jMdv0czPGH5XbflnD1EA== @@ -98,21 +107,38 @@ "@jridgewell/trace-mapping" "^0.3.17" jsesc "^2.5.1" -"@babel/helper-annotate-as-pure@^7.18.6", "@babel/helper-annotate-as-pure@^7.22.5": +"@babel/generator@^7.24.1", "@babel/generator@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.6.tgz#dfac82a228582a9d30c959fe50ad28951d4737a7" + integrity sha512-S7m4eNa6YAPJRHmKsLHIDJhNAGNKoWNiWefz1MBbpnt8g9lvMDl1hir4P9bo/57bQEmuwEhnRU/AMWsD0G/Fbg== + dependencies: + "@babel/types" "^7.24.6" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + jsesc "^2.5.1" + +"@babel/helper-annotate-as-pure@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz" integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg== dependencies: "@babel/types" "^7.22.5" -"@babel/helper-builder-binary-assignment-operator-visitor@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.5.tgz" - integrity sha512-m1EP3lVOPptR+2DwD125gziZNcmoNSHGmJROKoy87loWUQyJaVXDgpmruWqDARZSmtYQ+Dl25okU8+qhVzuykw== +"@babel/helper-annotate-as-pure@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.6.tgz#517af93abc77924f9b2514c407bbef527fb8938d" + integrity sha512-DitEzDfOMnd13kZnDqns1ccmftwJTS9DMkyn9pYTxulS7bZxUxpMly3Nf23QQ6NwA4UB8lAqjbqWtyvElEMAkg== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.24.6" + +"@babel/helper-builder-binary-assignment-operator-visitor@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.6.tgz#19e9089ee87b0d0928012c83961a8deef4b0223f" + integrity sha512-+wnfqc5uHiMYtvRX7qu80Toef8BXeh4HHR1SPeonGb1SKPniNEd4a/nlaJJMv/OIEYvIVavvo0yR7u10Gqz0Iw== + dependencies: + "@babel/types" "^7.24.6" -"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9", "@babel/helper-compilation-targets@^7.20.7", "@babel/helper-compilation-targets@^7.22.5": +"@babel/helper-compilation-targets@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.5.tgz" integrity sha512-Ji+ywpHeuqxB8WDxraCiqR0xfhYjiDE/e6k7FuIaANnoOFxAHskHChz4vA1mJC9Lbm01s1PVAGhQY4FUKSkGZw== @@ -134,33 +160,33 @@ browserslist "^4.21.9" lru-cache "^5.1.1" -"@babel/helper-compilation-targets@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.9.tgz#f9d0a7aaaa7cd32a3f31c9316a69f5a9bcacb892" - integrity sha512-7qYrNM6HjpnPHJbopxmb8hSPoZ0gsX8IvUS32JGVoy+pU9e5N0nLr1VjJoR6kA4d9dmGLxNYOjeB8sUDal2WMw== +"@babel/helper-compilation-targets@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.6.tgz#4a51d681f7680043d38e212715e2a7b1ad29cb51" + integrity sha512-VZQ57UsDGlX/5fFA7GkVPplZhHsVc+vuErWgdOiysI9Ksnw0Pbbd6pnPiR/mmJyKHgyIW0c7KT32gmhiF+cirg== dependencies: - "@babel/compat-data" "^7.22.9" - "@babel/helper-validator-option" "^7.22.5" - browserslist "^4.21.9" + "@babel/compat-data" "^7.24.6" + "@babel/helper-validator-option" "^7.24.6" + browserslist "^4.22.2" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.21.0", "@babel/helper-create-class-features-plugin@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.5.tgz" - integrity sha512-xkb58MyOYIslxu3gKmVXmjTtUPvBU4odYzbiIQbWwLKIHCsx6UGZGX6F1IznMFVnDdirseUZopzN+ZRt8Xb33Q== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-function-name" "^7.22.5" - "@babel/helper-member-expression-to-functions" "^7.22.5" - "@babel/helper-optimise-call-expression" "^7.22.5" - "@babel/helper-replace-supers" "^7.22.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/helper-split-export-declaration" "^7.22.5" - semver "^6.3.0" +"@babel/helper-create-class-features-plugin@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.6.tgz#c50b86fa1c4ca9b7a890dc21884f097b6c4b5286" + integrity sha512-djsosdPJVZE6Vsw3kk7IPRWethP94WHGOhQTc67SNXE0ZzMhHgALw8iGmYS0TD1bbMM0VDROy43od7/hN6WYcA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.6" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-function-name" "^7.24.6" + "@babel/helper-member-expression-to-functions" "^7.24.6" + "@babel/helper-optimise-call-expression" "^7.24.6" + "@babel/helper-replace-supers" "^7.24.6" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.6" + "@babel/helper-split-export-declaration" "^7.24.6" + semver "^6.3.1" -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.22.5": +"@babel/helper-create-regexp-features-plugin@^7.18.6": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.5.tgz" integrity sha512-1VpEFOIbMRaXyDeUwUfmTIxExLwQ+zkW+Bh5zXpApA3oQedBx9v/updixWxnx/bZpKw7u8VxWjb/qWpIcmPq8A== @@ -169,22 +195,19 @@ regexpu-core "^5.3.1" semver "^6.3.0" -"@babel/helper-define-polyfill-provider@^0.3.2", "@babel/helper-define-polyfill-provider@^0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz" - integrity sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww== +"@babel/helper-create-regexp-features-plugin@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.24.6.tgz#47d382dec0d49e74ca1b6f7f3b81f5968022a3c8" + integrity sha512-C875lFBIWWwyv6MHZUG9HmRrlTDgOsLWZfYR0nW69gaKJNe0/Mpxx5r0EID2ZdHQkdUmQo2t0uNckTL08/1BgA== dependencies: - "@babel/helper-compilation-targets" "^7.17.7" - "@babel/helper-plugin-utils" "^7.16.7" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - semver "^6.1.2" + "@babel/helper-annotate-as-pure" "^7.24.6" + regexpu-core "^5.3.1" + semver "^6.3.1" -"@babel/helper-define-polyfill-provider@^0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.1.tgz#af1429c4a83ac316a6a8c2cc8ff45cb5d2998d3a" - integrity sha512-kX4oXixDxG197yhX+J3Wp+NpL2wuCFjWQAr6yX2jtCnflK9ulMI51ULFGIrWiX1jGfvAxdHp+XQCcP2bZGPs9A== +"@babel/helper-define-polyfill-provider@^0.6.1", "@babel/helper-define-polyfill-provider@^0.6.2": + version "0.6.2" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d" + integrity sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ== dependencies: "@babel/helper-compilation-targets" "^7.22.6" "@babel/helper-plugin-utils" "^7.22.5" @@ -192,12 +215,17 @@ lodash.debounce "^4.0.8" resolve "^1.14.2" -"@babel/helper-environment-visitor@^7.18.9", "@babel/helper-environment-visitor@^7.22.5": +"@babel/helper-environment-visitor@^7.22.20", "@babel/helper-environment-visitor@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.6.tgz#ac7ad5517821641550f6698dd5468f8cef78620d" + integrity sha512-Y50Cg3k0LKLMjxdPjIl40SdJgMB85iXn27Vk/qbHZCFx/o5XO3PSnpi675h1KEmmDb6OFArfd5SCQEQ5Q4H88g== + +"@babel/helper-environment-visitor@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz" integrity sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q== -"@babel/helper-function-name@^7.18.9", "@babel/helper-function-name@^7.22.5": +"@babel/helper-function-name@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz" integrity sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ== @@ -205,28 +233,50 @@ "@babel/template" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/helper-hoist-variables@^7.18.6", "@babel/helper-hoist-variables@^7.22.5": +"@babel/helper-function-name@^7.23.0", "@babel/helper-function-name@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.6.tgz#cebdd063386fdb95d511d84b117e51fc68fec0c8" + integrity sha512-xpeLqeeRkbxhnYimfr2PC+iA0Q7ljX/d1eZ9/inYbmfG2jpl8Lu3DyXvpOAnrS5kxkfOWJjioIMQsaMBXFI05w== + dependencies: + "@babel/template" "^7.24.6" + "@babel/types" "^7.24.6" + +"@babel/helper-hoist-variables@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz" integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== dependencies: "@babel/types" "^7.22.5" -"@babel/helper-member-expression-to-functions@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.5.tgz" - integrity sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ== +"@babel/helper-hoist-variables@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.6.tgz#8a7ece8c26756826b6ffcdd0e3cf65de275af7f9" + integrity sha512-SF/EMrC3OD7dSta1bLJIlrsVxwtd0UpjRJqLno6125epQMJ/kyFmpTT4pbvPbdQHzCHg+biQ7Syo8lnDtbR+uA== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.24.6" + +"@babel/helper-member-expression-to-functions@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.6.tgz#86084f3e0e4e2169a134754df3870bc7784db71e" + integrity sha512-OTsCufZTxDUsv2/eDXanw/mUZHWOxSbEmC3pP8cgjcy5rgeVPWWMStnv274DV60JtHxTk0adT0QrCzC4M9NWGg== + dependencies: + "@babel/types" "^7.24.6" -"@babel/helper-module-imports@^7.18.6", "@babel/helper-module-imports@^7.22.5": +"@babel/helper-module-imports@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz" integrity sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg== dependencies: "@babel/types" "^7.22.5" -"@babel/helper-module-transforms@^7.18.9", "@babel/helper-module-transforms@^7.22.5": +"@babel/helper-module-imports@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.6.tgz#65e54ffceed6a268dc4ce11f0433b82cfff57852" + integrity sha512-a26dmxFJBF62rRO9mmpgrfTLsAuyHk4e1hKTUkD/fcMfynt8gvEKwQPQDVxWhca8dHoDck+55DFt42zV0QMw5g== + dependencies: + "@babel/types" "^7.24.6" + +"@babel/helper-module-transforms@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.5.tgz" integrity sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw== @@ -240,39 +290,51 @@ "@babel/traverse" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/helper-optimise-call-expression@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz" - integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw== +"@babel/helper-module-transforms@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.6.tgz#22346ed9df44ce84dee850d7433c5b73fab1fe4e" + integrity sha512-Y/YMPm83mV2HJTbX1Qh2sjgjqcacvOlhbzdCCsSlblOKjSYmQqEbO6rUniWQyRo9ncyfjT8hnUjlG06RXDEmcA== dependencies: - "@babel/types" "^7.22.5" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-module-imports" "^7.24.6" + "@babel/helper-simple-access" "^7.24.6" + "@babel/helper-split-export-declaration" "^7.24.6" + "@babel/helper-validator-identifier" "^7.24.6" -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": +"@babel/helper-optimise-call-expression@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.6.tgz#f7836e3ccca3dfa02f15d2bc8b794efe75a5256e" + integrity sha512-3SFDJRbx7KuPRl8XDUr8O7GAEB8iGyWPjLKJh/ywP/Iy9WOmEfMrsWbaZpvBu2HSYn4KQygIsz0O7m8y10ncMA== + dependencies: + "@babel/types" "^7.24.6" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz" integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== -"@babel/helper-remap-async-to-generator@^7.18.9", "@babel/helper-remap-async-to-generator@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.5.tgz" - integrity sha512-cU0Sq1Rf4Z55fgz7haOakIyM7+x/uCFwXpLPaeRzfoUtAEAuUZjZvFPjL/rk5rW693dIgn2hng1W7xbT7lWT4g== +"@babel/helper-plugin-utils@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.6.tgz#fa02a32410a15a6e8f8185bcbf608f10528d2a24" + integrity sha512-MZG/JcWfxybKwsA9N9PmtF2lOSFSEMVCpIRrbxccZFLJPrJciJdG/UhSh5W96GEteJI2ARqm5UAHxISwRDLSNg== + +"@babel/helper-remap-async-to-generator@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.24.6.tgz#c96ceb9846e877d806ce82a1521230ea7e0fc354" + integrity sha512-1Qursq9ArRZPAMOZf/nuzVW8HgJLkTB9y9LfP4lW2MVp4e9WkLJDovfKBxoDcCk6VuzIxyqWHyBoaCtSRP10yg== dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-wrap-function" "^7.22.5" - "@babel/types" "^7.22.5" + "@babel/helper-annotate-as-pure" "^7.24.6" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-wrap-function" "^7.24.6" -"@babel/helper-replace-supers@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.5.tgz" - integrity sha512-aLdNM5I3kdI/V9xGNyKSF3X/gTyMUBohTZ+/3QdQKAA9vxIiy12E+8E2HoOP1/DjeqU+g6as35QHJNMDDYpuCg== +"@babel/helper-replace-supers@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.6.tgz#3ea87405a2986a49ab052d10e540fe036d747c71" + integrity sha512-mRhfPwDqDpba8o1F8ESxsEkJMQkUF8ZIWrAc0FtWhxnjfextxMWxr22RtFizxxSYLjVHDeMgVsRq8BBZR2ikJQ== dependencies: - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-member-expression-to-functions" "^7.22.5" - "@babel/helper-optimise-call-expression" "^7.22.5" - "@babel/template" "^7.22.5" - "@babel/traverse" "^7.22.5" - "@babel/types" "^7.22.5" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-member-expression-to-functions" "^7.24.6" + "@babel/helper-optimise-call-expression" "^7.24.6" "@babel/helper-simple-access@^7.22.5": version "7.22.5" @@ -281,14 +343,21 @@ dependencies: "@babel/types" "^7.22.5" -"@babel/helper-skip-transparent-expression-wrappers@^7.20.0", "@babel/helper-skip-transparent-expression-wrappers@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz" - integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q== +"@babel/helper-simple-access@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.6.tgz#1d6e04d468bba4fc963b4906f6dac6286cfedff1" + integrity sha512-nZzcMMD4ZhmB35MOOzQuiGO5RzL6tJbsT37Zx8M5L/i9KSrukGXWTjLe1knIbb/RmxoJE9GON9soq0c0VEMM5g== dependencies: - "@babel/types" "^7.22.5" + "@babel/types" "^7.24.6" -"@babel/helper-split-export-declaration@^7.18.6", "@babel/helper-split-export-declaration@^7.22.5": +"@babel/helper-skip-transparent-expression-wrappers@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.6.tgz#c47e9b33b7ea50d1073e125ebc26661717cb7040" + integrity sha512-jhbbkK3IUKc4T43WadP96a27oYti9gEf1LdyGSP2rHGH77kwLwfhO7TgwnWvxxQVmke0ImmCSS47vcuxEMGD3Q== + dependencies: + "@babel/types" "^7.24.6" + +"@babel/helper-split-export-declaration@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.5.tgz" integrity sha512-thqK5QFghPKWLhAV321lxF95yCg2K3Ob5yw+M3VHWfdia0IkPXUtoLH8x/6Fh486QUvzhb8YOWHChTVen2/PoQ== @@ -302,32 +371,53 @@ dependencies: "@babel/types" "^7.22.5" -"@babel/helper-string-parser@^7.18.10", "@babel/helper-string-parser@^7.22.5": +"@babel/helper-split-export-declaration@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.6.tgz#e830068f7ba8861c53b7421c284da30ae656d7a3" + integrity sha512-CvLSkwXGWnYlF9+J3iZUvwgAxKiYzK3BWuo+mLzD/MDGOZDj7Gq8+hqaOkMxmJwmlv0iu86uH5fdADd9Hxkymw== + dependencies: + "@babel/types" "^7.24.6" + +"@babel/helper-string-parser@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz" integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw== -"@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.22.5": +"@babel/helper-string-parser@^7.23.4", "@babel/helper-string-parser@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.6.tgz#28583c28b15f2a3339cfafafeaad42f9a0e828df" + integrity sha512-WdJjwMEkmBicq5T9fm/cHND3+UlFa2Yj8ALLgmoSQAJZysYbBjw+azChSGPN4DSPLXOcooGRvDwZWMcF/mLO2Q== + +"@babel/helper-validator-identifier@^7.22.20", "@babel/helper-validator-identifier@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.6.tgz#08bb6612b11bdec78f3feed3db196da682454a5e" + integrity sha512-4yA7s865JHaqUdRbnaxarZREuPTHrjpDT+pXoAZ1yhyo6uFnIEpS8VMu16siFOHDpZNKYv5BObhsB//ycbICyw== + +"@babel/helper-validator-identifier@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz" integrity sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ== -"@babel/helper-validator-option@^7.18.6", "@babel/helper-validator-option@^7.22.5": +"@babel/helper-validator-option@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz" integrity sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw== -"@babel/helper-wrap-function@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.5.tgz" - integrity sha512-bYqLIBSEshYcYQyfks8ewYA8S30yaGSeRslcvKMvoUk6HHPySbxHq9YRi6ghhzEU+yhQv9bP/jXnygkStOcqZw== +"@babel/helper-validator-option@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.6.tgz#59d8e81c40b7d9109ab7e74457393442177f460a" + integrity sha512-Jktc8KkF3zIkePb48QO+IapbXlSapOW9S+ogZZkcO6bABgYAxtZcjZ/O005111YLf+j4M84uEgwYoidDkXbCkQ== + +"@babel/helper-wrap-function@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.24.6.tgz#c27af1006e310683fdc76b668a0a1f6003e36217" + integrity sha512-f1JLrlw/jbiNfxvdrfBgio/gRBk3yTAEJWirpAkiJG2Hb22E7cEYKHWo0dFPTv/niPovzIdPdEDetrv6tC6gPQ== dependencies: - "@babel/helper-function-name" "^7.22.5" - "@babel/template" "^7.22.5" - "@babel/traverse" "^7.22.5" - "@babel/types" "^7.22.5" + "@babel/helper-function-name" "^7.24.6" + "@babel/template" "^7.24.6" + "@babel/types" "^7.24.6" -"@babel/helpers@^7.18.9", "@babel/helpers@^7.22.5": +"@babel/helpers@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.5.tgz" integrity sha512-pSXRmfE1vzcUIDFQcSGA5Mr+GxBV9oiRKDuDxXvWQQBCh8HoIjs/2DlDB7H8smac1IVrB9/xdXj2N3Wol9Cr+Q== @@ -336,6 +426,14 @@ "@babel/traverse" "^7.22.5" "@babel/types" "^7.22.5" +"@babel/helpers@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.6.tgz#cd124245299e494bd4e00edda0e4ea3545c2c176" + integrity sha512-V2PI+NqnyFu1i0GyTd/O/cTpxzQCYioSkUIRmgo7gFEHKKCg5w46+r/A6WeUR1+P3TeQ49dspGPNd/E3n9AnnA== + dependencies: + "@babel/template" "^7.24.6" + "@babel/types" "^7.24.6" + "@babel/highlight@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.5.tgz" @@ -345,185 +443,63 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@7.18.11": - version "7.18.11" - resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.18.11.tgz" - integrity sha512-9JKn5vN+hDt0Hdqn1PiJ2guflwP+B6Ga8qbDuoF0PzzVhrzsKIJo8yGqVk6CmMHiMei9w1C1Bp9IMJSIK+HPIQ== +"@babel/highlight@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.6.tgz#6d610c1ebd2c6e061cade0153bf69b0590b7b3df" + integrity sha512-2YnuOp4HAk2BsBrJJvYCbItHx0zWscI1C3zgWkz+wDyD9I7GIVrfnLyrR4Y1VR+7p+chAEcrgRQYZAGIKMV7vQ== + dependencies: + "@babel/helper-validator-identifier" "^7.24.6" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.18.11", "@babel/parser@^7.20.7", "@babel/parser@^7.22.5": +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.22.5.tgz" integrity sha512-DFZMC9LJUG9PLOclRC32G63UXwzqS2koQC8dkx+PLdmt1xSePYpbT/NbsrJy8Q/muXz7o/h/d4A7Fuyixm559Q== -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6", "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.22.5.tgz" - integrity sha512-NP1M5Rf+u2Gw9qfSO4ihjcTGW5zXTi36ITLd4/EoAcEhIZ0yjMqmftDNl3QC19CX7olhrjpyU454g/2W7X0jvQ== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" +"@babel/parser@^7.23.9", "@babel/parser@^7.24.1", "@babel/parser@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.6.tgz#5e030f440c3c6c78d195528c3b688b101a365328" + integrity sha512-eNZXdfU35nJC2h24RznROuOpO94h6x8sg9ju0tT9biNtLZ2vuP8SduLqqV+/8+cebSLV9SJEAN5Z3zQbJG/M+Q== -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.18.9", "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.5.tgz" - integrity sha512-31Bb65aZaUwqCbWMnZPduIZxCBngHFlzyN6Dq6KAJjtx+lx6ohKHubc61OomYi7XwVD4Ol0XCVz4h+pYFR048g== +"@babel/plugin-bugfix-firefox-class-in-computed-class-key@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.6.tgz#283a74ef365b1e954cda6b2724c678a978215e88" + integrity sha512-bYndrJ6Ph6Ar+GaB5VAc0JPoP80bQCm4qon6JEzXfRl5QZyQ8Ur1K6k7htxWmPA5z+k7JQvaMUrtXlqclWYzKw== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/plugin-transform-optional-chaining" "^7.22.5" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-proposal-async-generator-functions@^7.18.10": - version "7.20.7" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.7.tgz" - integrity sha512-xMbiLsn/8RK7Wq7VeVytytS2L6qE69bXPB10YCmMdDZbKF4okCqY74pI/jJQ/8U0b/F6NrT2+14b8/P9/3AMGA== +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.6.tgz#f9f5ae4d6fb72f5950262cb6f0b2482c3bc684ef" + integrity sha512-iVuhb6poq5ikqRq2XWU6OQ+R5o9wF+r/or9CeUyovgptz0UlnK4/seOQ1Istu/XybYjAhQv1FRSSfHHufIku5Q== dependencies: - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-remap-async-to-generator" "^7.18.9" - "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-proposal-class-properties@7.18.6", "@babel/plugin-proposal-class-properties@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz" - integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.6.tgz#ab9be6edfffa127bd5ec4317c76c5af0f8fc7e6c" + integrity sha512-c8TER5xMDYzzFcGqOEp9l4hvB7dcbhcGjcLVwxWfe4P5DOafdwjsBJZKsmv+o3aXh7NhopvayQIovHrh2zSRUQ== dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.6" + "@babel/plugin-transform-optional-chaining" "^7.24.6" -"@babel/plugin-proposal-class-static-block@^7.18.6": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.21.0.tgz" - integrity sha512-XP5G9MWNUskFuP30IfFSEFB0Z6HzLIUcjYM4bYOPHXl7eiJ9HFv8tWj6TXTN5QODiEhDZAeI4hLok2iHFFV4hw== +"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.6.tgz#0faf879249ec622d7f1c42eaebf7d11197401b2c" + integrity sha512-z8zEjYmwBUHN/pCF3NuWBhHQjJCrd33qAi8MgANfMrAvn72k2cImT8VjK9LJFu4ysOLJqhfkYYb3MvwANRUNZQ== dependencies: - "@babel/helper-create-class-features-plugin" "^7.21.0" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - -"@babel/plugin-proposal-dynamic-import@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz" - integrity sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" - -"@babel/plugin-proposal-export-default-from@7.18.10": - version "7.18.10" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz" - integrity sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - "@babel/plugin-syntax-export-default-from" "^7.18.6" - -"@babel/plugin-proposal-export-namespace-from@^7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz" - integrity sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.9" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - -"@babel/plugin-proposal-json-strings@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz" - integrity sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-json-strings" "^7.8.3" - -"@babel/plugin-proposal-logical-assignment-operators@^7.18.9": - version "7.20.7" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz" - integrity sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug== - dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - -"@babel/plugin-proposal-nullish-coalescing-operator@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz" - integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - -"@babel/plugin-proposal-numeric-separator@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz" - integrity sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - -"@babel/plugin-proposal-object-rest-spread@7.18.9": - version "7.18.9" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.18.9.tgz" - integrity sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q== - dependencies: - "@babel/compat-data" "^7.18.8" - "@babel/helper-compilation-targets" "^7.18.9" - "@babel/helper-plugin-utils" "^7.18.9" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.18.8" - -"@babel/plugin-proposal-object-rest-spread@^7.18.9": - version "7.20.7" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.7.tgz" - integrity sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg== - dependencies: - "@babel/compat-data" "^7.20.5" - "@babel/helper-compilation-targets" "^7.20.7" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.20.7" - -"@babel/plugin-proposal-optional-catch-binding@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz" - integrity sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw== - dependencies: - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - -"@babel/plugin-proposal-optional-chaining@^7.18.9": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz" - integrity sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA== - dependencies: - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/helper-skip-transparent-expression-wrappers" "^7.20.0" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - -"@babel/plugin-proposal-private-methods@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz" - integrity sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2": version "7.21.0-placeholder-for-preset-env.2" resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz" integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w== -"@babel/plugin-proposal-private-property-in-object@^7.18.6": - version "7.21.11" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz" - integrity sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - "@babel/helper-create-class-features-plugin" "^7.21.0" - "@babel/helper-plugin-utils" "^7.20.2" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - -"@babel/plugin-proposal-unicode-property-regex@^7.18.6", "@babel/plugin-proposal-unicode-property-regex@^7.4.4": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz" - integrity sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" resolved "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz" @@ -559,13 +535,6 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-export-default-from@^7.18.6": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.22.5.tgz" - integrity sha512-ODAqWWXB/yReh/jVQDag/3/tl6lgBueQkk/TcfW/59Oykm4c8a55XloX0CTk2k2VJiFWMgHby9xNX29IbCv9dQ== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/plugin-syntax-export-namespace-from@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz" @@ -573,19 +542,19 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" -"@babel/plugin-syntax-import-assertions@^7.18.6", "@babel/plugin-syntax-import-assertions@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.22.5.tgz" - integrity sha512-rdV97N7KqsRzeNGoWUOK6yUsWarLjE5Su/Snk9IYPU9CwkWHs4t+rTGOvffTR8XGkJMTAdLfO0xVnXm8wugIJg== +"@babel/plugin-syntax-import-assertions@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.6.tgz#52521c1c1698fc2dd9cf88f7a4dd86d4d041b9e1" + integrity sha512-BE6o2BogJKJImTmGpkmOic4V0hlRRxVtzqxiSPa8TIFxyhi4EFjHm08nq1M4STK4RytuLMgnSz0/wfflvGFNOg== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-syntax-import-attributes@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.5.tgz" - integrity sha512-KwvoWDeNKPETmozyFE0P2rOLqh39EoQHNjqizrI5B8Vt0ZNS7M56s7dAiAqbYfiAYOuIzIh96z3iR2ktgu3tEg== +"@babel/plugin-syntax-import-attributes@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.6.tgz#12aba325534129584672920274fefa4dc2d5f68e" + integrity sha512-D+CfsVZousPXIdudSII7RGy52+dYRtbyKAZcvtQKq/NpsivyMVduepzcLqG5pMBugtMdedxdC8Ramdpcne9ZWQ== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-import-meta@^7.10.4", "@babel/plugin-syntax-import-meta@^7.8.3": version "7.10.4" @@ -601,7 +570,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-jsx@^7.22.5", "@babel/plugin-syntax-jsx@^7.7.2": +"@babel/plugin-syntax-jsx@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.6.tgz#bcca2964150437f88f65e3679e3d68762287b9c8" + integrity sha512-lWfvAIFNWMlCsU0DRUun2GpFwZdGTukLaHJqRh1JRb80NdAP5Sb1HDHB5X9P9OtgZHQl089UzQkpYlBq2VTPRw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.6" + +"@babel/plugin-syntax-jsx@^7.7.2": version "7.22.5" resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz" integrity sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg== @@ -664,7 +640,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" -"@babel/plugin-syntax-typescript@^7.22.5", "@babel/plugin-syntax-typescript@^7.7.2": +"@babel/plugin-syntax-typescript@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.6.tgz#769daf2982d60308bc83d8936eaecb7582463c87" + integrity sha512-TzCtxGgVTEJWWwcYwQhCIQ6WaKlo80/B+Onsk4RRCcYqpYGFcG9etPW94VToGte5AAcxRrhjPUFvUS3Y2qKi4A== + dependencies: + "@babel/helper-plugin-utils" "^7.24.6" + +"@babel/plugin-syntax-typescript@^7.7.2": version "7.22.5" resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz" integrity sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ== @@ -679,540 +662,424 @@ "@babel/helper-create-regexp-features-plugin" "^7.18.6" "@babel/helper-plugin-utils" "^7.18.6" -"@babel/plugin-transform-arrow-functions@^7.18.6", "@babel/plugin-transform-arrow-functions@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.22.5.tgz" - integrity sha512-26lTNXoVRdAnsaDXPpvCNUq+OVWEVC6bx7Vvz9rC53F2bagUWW4u4ii2+h8Fejfh7RYqPxn+libeFBBck9muEw== +"@babel/plugin-transform-arrow-functions@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.6.tgz#93607d1ef5b81c70af174aff3532d57216367492" + integrity sha512-jSSSDt4ZidNMggcLx8SaKsbGNEfIl0PHx/4mFEulorE7bpYLbN0d3pDW3eJ7Y5Z3yPhy3L3NaPCYyTUY7TuugQ== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-async-generator-functions@^7.22.7": - version "7.22.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.7.tgz#053e76c0a903b72b573cb1ab7d6882174d460a1b" - integrity sha512-7HmE7pk/Fmke45TODvxvkxRMV9RazV+ZZzhOL9AG8G29TLrr3jkjwF7uJfxZ30EoXpO+LJkq4oA8NjO2DTnEDg== +"@babel/plugin-transform-async-generator-functions@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.6.tgz#fa4a9e5c3a7f60f697ba36587b6c41b04f507d84" + integrity sha512-VEP2o4iR2DqQU6KPgizTW2mnMx6BG5b5O9iQdrW9HesLkv8GIA8x2daXBQxw1MrsIkFQGA/iJ204CKoQ8UcnAA== dependencies: - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-remap-async-to-generator" "^7.22.5" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-remap-async-to-generator" "^7.24.6" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-transform-async-to-generator@^7.18.6", "@babel/plugin-transform-async-to-generator@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.22.5.tgz" - integrity sha512-b1A8D8ZzE/VhNDoV1MSJTnpKkCG5bJo+19R4o4oy03zM7ws8yEMK755j61Dc3EyvdysbqH5BOOTquJ7ZX9C6vQ== +"@babel/plugin-transform-async-to-generator@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.6.tgz#eb11434b11d73d8c0cf9f71a6f4f1e6ba441df35" + integrity sha512-NTBA2SioI3OsHeIn6sQmhvXleSl9T70YY/hostQLveWs0ic+qvbA3fa0kwAwQ0OA/XGaAerNZRQGJyRfhbJK4g== dependencies: - "@babel/helper-module-imports" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-remap-async-to-generator" "^7.22.5" + "@babel/helper-module-imports" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-remap-async-to-generator" "^7.24.6" -"@babel/plugin-transform-block-scoped-functions@^7.18.6", "@babel/plugin-transform-block-scoped-functions@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.22.5.tgz" - integrity sha512-tdXZ2UdknEKQWKJP1KMNmuF5Lx3MymtMN/pvA+p/VEkhK8jVcQ1fzSy8KM9qRYhAf2/lV33hoMPKI/xaI9sADA== +"@babel/plugin-transform-block-scoped-functions@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.6.tgz#975555b5bfa9870b1218da536d1528735f1f8c56" + integrity sha512-XNW7jolYHW9CwORrZgA/97tL/k05qe/HL0z/qqJq1mdWhwwCM6D4BJBV7wAz9HgFziN5dTOG31znkVIzwxv+vw== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-block-scoping@^7.18.9", "@babel/plugin-transform-block-scoping@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.22.5.tgz" - integrity sha512-EcACl1i5fSQ6bt+YGuU/XGCeZKStLmyVGytWkpyhCLeQVA0eu6Wtiw92V+I1T/hnezUv7j74dA/Ro69gWcU+hg== +"@babel/plugin-transform-block-scoping@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.6.tgz#a03ec8a4591c2b43cf7798bc633e698293fda179" + integrity sha512-S/t1Xh4ehW7sGA7c1j/hiOBLnEYCp/c2sEG4ZkL8kI1xX9tW2pqJTCHKtdhe/jHKt8nG0pFCrDHUXd4DvjHS9w== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-class-properties@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.5.tgz" - integrity sha512-nDkQ0NfkOhPTq8YCLiWNxp1+f9fCobEjCb0n8WdbNUBc4IB5V7P1QnX9IjpSoquKrXF5SKojHleVNs2vGeHCHQ== +"@babel/plugin-transform-class-properties@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.6.tgz#d9f394e97e88ef905d5a1e5e7a16238621b7982e" + integrity sha512-j6dZ0Z2Z2slWLR3kt9aOmSIrBvnntWjMDN/TVcMPxhXMLmJVqX605CBRlcGI4b32GMbfifTEsdEjGjiE+j/c3A== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-create-class-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-class-static-block@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.5.tgz" - integrity sha512-SPToJ5eYZLxlnp1UzdARpOGeC2GbHvr9d/UV0EukuVx8atktg194oe+C5BqQ8jRTkgLRVOPYeXRSBg1IlMoVRA== +"@babel/plugin-transform-class-static-block@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.6.tgz#f43f29286f6f0dca33d18fd5033b817d6c3fa816" + integrity sha512-1QSRfoPI9RoLRa8Mnakc6v3e0gJxiZQTYrMfLn+mD0sz5+ndSzwymp2hDcYJTyT0MOn0yuWzj8phlIvO72gTHA== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-create-class-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-class-static-block" "^7.14.5" -"@babel/plugin-transform-classes@^7.18.9": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.5.tgz" - integrity sha512-2edQhLfibpWpsVBx2n/GKOz6JdGQvLruZQfGr9l1qes2KQaWswjBzhQF7UDUZMNaMMQeYnQzxwOMPsbYF7wqPQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-compilation-targets" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-function-name" "^7.22.5" - "@babel/helper-optimise-call-expression" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-replace-supers" "^7.22.5" - "@babel/helper-split-export-declaration" "^7.22.5" +"@babel/plugin-transform-classes@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.6.tgz#0cc198c02720d4eeb091004843477659c6b37977" + integrity sha512-+fN+NO2gh8JtRmDSOB6gaCVo36ha8kfCW1nMq2Gc0DABln0VcHN4PrALDvF5/diLzIRKptC7z/d7Lp64zk92Fg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.6" + "@babel/helper-compilation-targets" "^7.24.6" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-function-name" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-replace-supers" "^7.24.6" + "@babel/helper-split-export-declaration" "^7.24.6" globals "^11.1.0" -"@babel/plugin-transform-classes@^7.22.6": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.22.6.tgz#e04d7d804ed5b8501311293d1a0e6d43e94c3363" - integrity sha512-58EgM6nuPNG6Py4Z3zSuu0xWu2VfodiMi72Jt5Kj2FECmaYk1RrTXA45z6KBFsu9tRgwQDwIiY4FXTt+YsSFAQ== +"@babel/plugin-transform-computed-properties@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.6.tgz#7a1765c01cdfe59c320d2d0f37a4dc4aecd14df1" + integrity sha512-cRzPobcfRP0ZtuIEkA8QzghoUpSB3X3qSH5W2+FzG+VjWbJXExtx0nbRqwumdBN1x/ot2SlTNQLfBCnPdzp6kg== dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-compilation-targets" "^7.22.6" - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-function-name" "^7.22.5" - "@babel/helper-optimise-call-expression" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-replace-supers" "^7.22.5" - "@babel/helper-split-export-declaration" "^7.22.6" - globals "^11.1.0" - -"@babel/plugin-transform-computed-properties@^7.18.9", "@babel/plugin-transform-computed-properties@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.22.5.tgz" - integrity sha512-4GHWBgRf0krxPX+AaPtgBAlTgTeZmqDynokHOX7aqqAB4tHs3U2Y02zH6ETFdLZGcg9UQSD1WCmkVrE9ErHeOg== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/template" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/template" "^7.24.6" -"@babel/plugin-transform-destructuring@^7.18.9", "@babel/plugin-transform-destructuring@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.22.5.tgz" - integrity sha512-GfqcFuGW8vnEqTUBM7UtPd5A4q797LTvvwKxXTgRsFjoqaJiEg9deBG6kWeQYkVEL569NpnmpC0Pkr/8BLKGnQ== +"@babel/plugin-transform-destructuring@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.6.tgz#bdd1a6c90ffb2bfd13b6007b13316eeafc97cb53" + integrity sha512-YLW6AE5LQpk5npNXL7i/O+U9CE4XsBCuRPgyjl1EICZYKmcitV+ayuuUGMJm2lC1WWjXYszeTnIxF/dq/GhIZQ== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-dotall-regex@^7.18.6", "@babel/plugin-transform-dotall-regex@^7.22.5", "@babel/plugin-transform-dotall-regex@^7.4.4": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.22.5.tgz" - integrity sha512-5/Yk9QxCQCl+sOIB1WelKnVRxTJDSAIxtJLL2/pqL14ZVlbH0fUQUZa/T5/UnQtBNgghR7mfB8ERBKyKPCi7Vw== +"@babel/plugin-transform-dotall-regex@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.6.tgz#5a6b3148ec5f4f274ff48cebea90565087cad126" + integrity sha512-rCXPnSEKvkm/EjzOtLoGvKseK+dS4kZwx1HexO3BtRtgL0fQ34awHn34aeSHuXtZY2F8a1X8xqBBPRtOxDVmcA== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-create-regexp-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-duplicate-keys@^7.18.9", "@babel/plugin-transform-duplicate-keys@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.22.5.tgz" - integrity sha512-dEnYD+9BBgld5VBXHnF/DbYGp3fqGMsyxKbtD1mDyIA7AkTSpKXFhCVuj/oQVOoALfBs77DudA0BE4d5mcpmqw== +"@babel/plugin-transform-duplicate-keys@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.6.tgz#2716301227cf7cd4fdadcbe4353ce191f8b3dc8a" + integrity sha512-/8Odwp/aVkZwPFJMllSbawhDAO3UJi65foB00HYnK/uXvvCPm0TAXSByjz1mpRmp0q6oX2SIxpkUOpPFHk7FLA== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-dynamic-import@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.5.tgz" - integrity sha512-0MC3ppTB1AMxd8fXjSrbPa7LT9hrImt+/fcj+Pg5YMD7UQyWp/02+JWpdnCymmsXwIx5Z+sYn1bwCn4ZJNvhqQ== +"@babel/plugin-transform-dynamic-import@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.6.tgz#b477177761d56b15a4ba42a83be31cf72d757acf" + integrity sha512-vpq8SSLRTBLOHUZHSnBqVo0AKX3PBaoPs2vVzYVWslXDTDIpwAcCDtfhUcHSQQoYoUvcFPTdC8TZYXu9ZnLT/w== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-dynamic-import" "^7.8.3" -"@babel/plugin-transform-exponentiation-operator@^7.18.6", "@babel/plugin-transform-exponentiation-operator@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.22.5.tgz" - integrity sha512-vIpJFNM/FjZ4rh1myqIya9jXwrwwgFRHPjT3DkUA9ZLHuzox8jiXkOLvwm1H+PQIP3CqfC++WPKeuDi0Sjdj1g== +"@babel/plugin-transform-exponentiation-operator@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.6.tgz#011e9e1a429f91b024af572530873ca571f9ef06" + integrity sha512-EemYpHtmz0lHE7hxxxYEuTYOOBZ43WkDgZ4arQ4r+VX9QHuNZC+WH3wUWmRNvR8ECpTRne29aZV6XO22qpOtdA== dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-export-namespace-from@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.5.tgz" - integrity sha512-X4hhm7FRnPgd4nDA4b/5V280xCx6oL7Oob5+9qVS5C13Zq4bh1qq7LU0GgRU6b5dBWBvhGaXYVB4AcN6+ol6vg== +"@babel/plugin-transform-export-namespace-from@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.6.tgz#b64ded74d9afb3db5d47d93996c4df69f15ac97c" + integrity sha512-inXaTM1SVrIxCkIJ5gqWiozHfFMStuGbGJAxZFBoHcRRdDP0ySLb3jH6JOwmfiinPwyMZqMBX+7NBDCO4z0NSA== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" -"@babel/plugin-transform-for-of@^7.18.8", "@babel/plugin-transform-for-of@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.22.5.tgz" - integrity sha512-3kxQjX1dU9uudwSshyLeEipvrLjBCVthCgeTp6CzE/9JYrlAIaeekVxRpCWsDDfYTfRZRoCeZatCQvwo+wvK8A== +"@babel/plugin-transform-for-of@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.6.tgz#7f31780bd0c582b546372c0c0da9d9d56731e0a2" + integrity sha512-n3Sf72TnqK4nw/jziSqEl1qaWPbCRw2CziHH+jdRYvw4J6yeCzsj4jdw8hIntOEeDGTmHVe2w4MVL44PN0GMzg== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.6" -"@babel/plugin-transform-function-name@^7.18.9", "@babel/plugin-transform-function-name@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.22.5.tgz" - integrity sha512-UIzQNMS0p0HHiQm3oelztj+ECwFnj+ZRV4KnguvlsD2of1whUeM6o7wGNj6oLwcDoAXQ8gEqfgC24D+VdIcevg== +"@babel/plugin-transform-function-name@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.6.tgz#60d1de3f6fd816a3e3bf9538578a64527e1b9c97" + integrity sha512-sOajCu6V0P1KPljWHKiDq6ymgqB+vfo3isUS4McqW1DZtvSVU2v/wuMhmRmkg3sFoq6GMaUUf8W4WtoSLkOV/Q== dependencies: - "@babel/helper-compilation-targets" "^7.22.5" - "@babel/helper-function-name" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-compilation-targets" "^7.24.6" + "@babel/helper-function-name" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-json-strings@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.5.tgz" - integrity sha512-DuCRB7fu8MyTLbEQd1ew3R85nx/88yMoqo2uPSjevMj3yoN7CDM8jkgrY0wmVxfJZyJ/B9fE1iq7EQppWQmR5A== +"@babel/plugin-transform-json-strings@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.6.tgz#a84639180ea1f9001bb5e6dc01921235ab05ad8b" + integrity sha512-Uvgd9p2gUnzYJxVdBLcU0KurF8aVhkmVyMKW4MIY1/BByvs3EBpv45q01o7pRTVmTvtQq5zDlytP3dcUgm7v9w== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-json-strings" "^7.8.3" -"@babel/plugin-transform-literals@^7.18.9", "@babel/plugin-transform-literals@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.22.5.tgz" - integrity sha512-fTLj4D79M+mepcw3dgFBTIDYpbcB9Sm0bpm4ppXPaO+U+PKFFyV9MGRvS0gvGw62sd10kT5lRMKXAADb9pWy8g== +"@babel/plugin-transform-literals@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.6.tgz#7f44f2871d7a4456030b0540858046f0b7bc6b18" + integrity sha512-f2wHfR2HF6yMj+y+/y07+SLqnOSwRp8KYLpQKOzS58XLVlULhXbiYcygfXQxJlMbhII9+yXDwOUFLf60/TL5tw== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-logical-assignment-operators@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.5.tgz" - integrity sha512-MQQOUW1KL8X0cDWfbwYP+TbVbZm16QmQXJQ+vndPtH/BoO0lOKpVoEDMI7+PskYxH+IiE0tS8xZye0qr1lGzSA== +"@babel/plugin-transform-logical-assignment-operators@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.6.tgz#9cc7baa5629866566562c159dc1eae7569810f33" + integrity sha512-EKaWvnezBCMkRIHxMJSIIylzhqK09YpiJtDbr2wsXTwnO0TxyjMUkaw4RlFIZMIS0iDj0KyIg7H7XCguHu/YDA== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" -"@babel/plugin-transform-member-expression-literals@^7.18.6", "@babel/plugin-transform-member-expression-literals@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.22.5.tgz" - integrity sha512-RZEdkNtzzYCFl9SE9ATaUMTj2hqMb4StarOJLrZRbqqU4HSBE7UlBw9WBWQiDzrJZJdUWiMTVDI6Gv/8DPvfew== +"@babel/plugin-transform-member-expression-literals@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.6.tgz#5d3681ca201ac6909419cc51ac082a6ba4c5c756" + integrity sha512-9g8iV146szUo5GWgXpRbq/GALTnY+WnNuRTuRHWWFfWGbP9ukRL0aO/jpu9dmOPikclkxnNsjY8/gsWl6bmZJQ== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-modules-amd@^7.18.6", "@babel/plugin-transform-modules-amd@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.22.5.tgz" - integrity sha512-R+PTfLTcYEmb1+kK7FNkhQ1gP4KgjpSO6HfH9+f8/yfp2Nt3ggBjiVpRwmwTlfqZLafYKJACy36yDXlEmI9HjQ== +"@babel/plugin-transform-modules-amd@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.6.tgz#09aeac7acb7913496aaaafdc64f40683e0db7e41" + integrity sha512-eAGogjZgcwqAxhyFgqghvoHRr+EYRQPFjUXrTYKBRb5qPnAVxOOglaxc4/byHqjvq/bqO2F3/CGwTHsgKJYHhQ== dependencies: - "@babel/helper-module-transforms" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-module-transforms" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-modules-commonjs@^7.18.6", "@babel/plugin-transform-modules-commonjs@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.22.5.tgz" - integrity sha512-B4pzOXj+ONRmuaQTg05b3y/4DuFz3WcCNAXPLb2Q0GT0TrGKGxNKV4jwsXts+StaM0LQczZbOpj8o1DLPDJIiA== +"@babel/plugin-transform-modules-commonjs@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.6.tgz#1b8269902f25bd91ca6427230d4735ddd1e1283e" + integrity sha512-JEV8l3MHdmmdb7S7Cmx6rbNEjRCgTQMZxllveHO0mx6uiclB0NflCawlQQ6+o5ZrwjUBYPzHm2XoK4wqGVUFuw== dependencies: - "@babel/helper-module-transforms" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-simple-access" "^7.22.5" + "@babel/helper-module-transforms" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-simple-access" "^7.24.6" -"@babel/plugin-transform-modules-systemjs@^7.18.9", "@babel/plugin-transform-modules-systemjs@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.5.tgz" - integrity sha512-emtEpoaTMsOs6Tzz+nbmcePl6AKVtS1yC4YNAeMun9U8YCsgadPNxnOPQ8GhHFB2qdx+LZu9LgoC0Lthuu05DQ== +"@babel/plugin-transform-modules-systemjs@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.6.tgz#c54eb53fe16f9b82d320abd76762d0320e3f9393" + integrity sha512-xg1Z0J5JVYxtpX954XqaaAT6NpAY6LtZXvYFCJmGFJWwtlz2EmJoR8LycFRGNE8dBKizGWkGQZGegtkV8y8s+w== dependencies: - "@babel/helper-hoist-variables" "^7.22.5" - "@babel/helper-module-transforms" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-identifier" "^7.22.5" + "@babel/helper-hoist-variables" "^7.24.6" + "@babel/helper-module-transforms" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-validator-identifier" "^7.24.6" -"@babel/plugin-transform-modules-umd@^7.18.6", "@babel/plugin-transform-modules-umd@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.22.5.tgz" - integrity sha512-+S6kzefN/E1vkSsKx8kmQuqeQsvCKCd1fraCM7zXm4SFoggI099Tr4G8U81+5gtMdUeMQ4ipdQffbKLX0/7dBQ== +"@babel/plugin-transform-modules-umd@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.6.tgz#c4ef8b6d4da230b8dc87e81cd66986728952f89b" + integrity sha512-esRCC/KsSEUvrSjv5rFYnjZI6qv4R1e/iHQrqwbZIoRJqk7xCvEUiN7L1XrmW5QSmQe3n1XD88wbgDTWLbVSyg== dependencies: - "@babel/helper-module-transforms" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-module-transforms" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-named-capturing-groups-regex@^7.18.6", "@babel/plugin-transform-named-capturing-groups-regex@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz" - integrity sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ== +"@babel/plugin-transform-named-capturing-groups-regex@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.6.tgz#352ee2861ab8705320029f80238cf26a92ba65d5" + integrity sha512-6DneiCiu91wm3YiNIGDWZsl6GfTTbspuj/toTEqLh9d4cx50UIzSdg+T96p8DuT7aJOBRhFyaE9ZvTHkXrXr6Q== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-create-regexp-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-new-target@^7.18.6", "@babel/plugin-transform-new-target@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.5.tgz" - integrity sha512-AsF7K0Fx/cNKVyk3a+DW0JLo+Ua598/NxMRvxDnkpCIGFh43+h/v2xyhRUYf6oD8gE4QtL83C7zZVghMjHd+iw== +"@babel/plugin-transform-new-target@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.6.tgz#fc024294714705113720d5e3dc0f9ad7abdbc289" + integrity sha512-f8liz9JG2Va8A4J5ZBuaSdwfPqN6axfWRK+y66fjKYbwf9VBLuq4WxtinhJhvp1w6lamKUwLG0slK2RxqFgvHA== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-nullish-coalescing-operator@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.5.tgz" - integrity sha512-6CF8g6z1dNYZ/VXok5uYkkBBICHZPiGEl7oDnAx2Mt1hlHVHOSIKWJaXHjQJA5VB43KZnXZDIexMchY4y2PGdA== +"@babel/plugin-transform-nullish-coalescing-operator@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.6.tgz#12b83b3cdfd1cd2066350e36e4fb912ab194545e" + integrity sha512-+QlAiZBMsBK5NqrBWFXCYeXyiU1y7BQ/OYaiPAcQJMomn5Tyg+r5WuVtyEuvTbpV7L25ZSLfE+2E9ywj4FD48A== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" -"@babel/plugin-transform-numeric-separator@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.5.tgz" - integrity sha512-NbslED1/6M+sXiwwtcAB/nieypGw02Ejf4KtDeMkCEpP6gWFMX1wI9WKYua+4oBneCCEmulOkRpwywypVZzs/g== +"@babel/plugin-transform-numeric-separator@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.6.tgz#d9115669cc85aa91fbfb15f88f2226332cf4946a" + integrity sha512-6voawq8T25Jvvnc4/rXcWZQKKxUNZcKMS8ZNrjxQqoRFernJJKjE3s18Qo6VFaatG5aiX5JV1oPD7DbJhn0a4Q== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-transform-object-rest-spread@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.5.tgz" - integrity sha512-Kk3lyDmEslH9DnvCDA1s1kkd3YWQITiBOHngOtDL9Pt6BZjzqb6hiOlb8VfjiiQJ2unmegBqZu0rx5RxJb5vmQ== +"@babel/plugin-transform-object-rest-spread@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.6.tgz#68d763f69955f9e599c405c6c876f5be46b47d8a" + integrity sha512-OKmi5wiMoRW5Smttne7BwHM8s/fb5JFs+bVGNSeHWzwZkWXWValR1M30jyXo1s/RaqgwwhEC62u4rFH/FBcBPg== dependencies: - "@babel/compat-data" "^7.22.5" - "@babel/helper-compilation-targets" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-compilation-targets" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.22.5" + "@babel/plugin-transform-parameters" "^7.24.6" -"@babel/plugin-transform-object-super@^7.18.6", "@babel/plugin-transform-object-super@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.22.5.tgz" - integrity sha512-klXqyaT9trSjIUrcsYIfETAzmOEZL3cBYqOYLJxBHfMFFggmXOv+NYSX/Jbs9mzMVESw/WycLFPRx8ba/b2Ipw== +"@babel/plugin-transform-object-super@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.6.tgz#9cbe6f995bed343a7ab8daf0416dac057a9c3e27" + integrity sha512-N/C76ihFKlZgKfdkEYKtaRUtXZAgK7sOY4h2qrbVbVTXPrKGIi8aww5WGe/+Wmg8onn8sr2ut6FXlsbu/j6JHg== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-replace-supers" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-replace-supers" "^7.24.6" -"@babel/plugin-transform-optional-catch-binding@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.5.tgz" - integrity sha512-pH8orJahy+hzZje5b8e2QIlBWQvGpelS76C63Z+jhZKsmzfNaPQ+LaW6dcJ9bxTpo1mtXbgHwy765Ro3jftmUg== +"@babel/plugin-transform-optional-catch-binding@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.6.tgz#c81e90a971aad898e56f2b75a358e6c4855aeba3" + integrity sha512-L5pZ+b3O1mSzJ71HmxSCmTVd03VOT2GXOigug6vDYJzE5awLI7P1g0wFcdmGuwSDSrQ0L2rDOe/hHws8J1rv3w== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.5.tgz" - integrity sha512-AconbMKOMkyG+xCng2JogMCDcqW8wedQAqpVIL4cOSescZ7+iW8utC6YDZLMCSUIReEA733gzRSaOSXMAt/4WQ== +"@babel/plugin-transform-optional-chaining@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.6.tgz#3d636b3ed8b5a506f93e4d4675fc95754d7594f5" + integrity sha512-cHbqF6l1QP11OkYTYQ+hhVx1E017O5ZcSPXk9oODpqhcAD1htsWG2NpHrrhthEO2qZomLK0FXS+u7NfrkF5aOQ== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.6" "@babel/plugin-syntax-optional-chaining" "^7.8.3" -"@babel/plugin-transform-optional-chaining@^7.22.6": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.6.tgz#4bacfe37001fe1901117672875e931d439811564" - integrity sha512-Vd5HiWml0mDVtcLHIoEU5sw6HOUW/Zk0acLs/SAeuLzkGNOPc9DB4nkUajemhCmTIz3eiaKREZn2hQQqF79YTg== +"@babel/plugin-transform-parameters@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.6.tgz#7aee86dfedd2fc0136fecbe6f7649fc02d86ab22" + integrity sha512-ST7guE8vLV+vI70wmAxuZpIKzVjvFX9Qs8bl5w6tN/6gOypPWUmMQL2p7LJz5E63vEGrDhAiYetniJFyBH1RkA== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-parameters@^7.18.8", "@babel/plugin-transform-parameters@^7.20.7", "@babel/plugin-transform-parameters@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.5.tgz" - integrity sha512-AVkFUBurORBREOmHRKo06FjHYgjrabpdqRSwq6+C7R5iTCZOsM4QbcB27St0a4U6fffyAOqh3s/qEfybAhfivg== +"@babel/plugin-transform-private-methods@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.6.tgz#258e1f859a52ff7b30ad556598224c192defcda7" + integrity sha512-T9LtDI0BgwXOzyXrvgLTT8DFjCC/XgWLjflczTLXyvxbnSR/gpv0hbmzlHE/kmh9nOvlygbamLKRo6Op4yB6aw== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-create-class-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-private-methods@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.5.tgz" - integrity sha512-PPjh4gyrQnGe97JTalgRGMuU4icsZFnWkzicB/fUtzlKUqvsWBKEpPPfr5a2JiyirZkHxnAqkQMO5Z5B2kK3fA== +"@babel/plugin-transform-private-property-in-object@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.6.tgz#59ff09a099f62213112cf348e96b6b11957d1f28" + integrity sha512-Qu/ypFxCY5NkAnEhCF86Mvg3NSabKsh/TPpBVswEdkGl7+FbsYHy1ziRqJpwGH4thBdQHh8zx+z7vMYmcJ7iaQ== dependencies: - "@babel/helper-create-class-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - -"@babel/plugin-transform-private-property-in-object@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.5.tgz" - integrity sha512-/9xnaTTJcVoBtSSmrVyhtSvO3kbqS2ODoh2juEU72c3aYonNF0OMGiaz2gjukyKM2wBBYJP38S4JiE0Wfb5VMQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-create-class-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-annotate-as-pure" "^7.24.6" + "@babel/helper-create-class-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" -"@babel/plugin-transform-property-literals@^7.18.6", "@babel/plugin-transform-property-literals@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.22.5.tgz" - integrity sha512-TiOArgddK3mK/x1Qwf5hay2pxI6wCZnvQqrFSqbtg1GLl2JcNMitVH/YnqjP+M31pLUeTfzY1HAXFDnUBV30rQ== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - -"@babel/plugin-transform-regenerator@^7.18.6", "@babel/plugin-transform-regenerator@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.22.5.tgz" - integrity sha512-rR7KePOE7gfEtNTh9Qw+iO3Q/e4DEsoQ+hdvM6QUDH7JRJ5qxq5AA52ZzBWbI5i9lfNuvySgOGP8ZN7LAmaiPw== +"@babel/plugin-transform-property-literals@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.6.tgz#243c4faabe811c405e9443059a58e834bf95dfd1" + integrity sha512-oARaglxhRsN18OYsnPTpb8TcKQWDYNsPNmTnx5++WOAsUJ0cSC/FZVlIJCKvPbU4yn/UXsS0551CFKJhN0CaMw== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - regenerator-transform "^0.15.1" - -"@babel/plugin-transform-reserved-words@^7.18.6", "@babel/plugin-transform-reserved-words@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.22.5.tgz" - integrity sha512-DTtGKFRQUDm8svigJzZHzb/2xatPc6TzNvAIJ5GqOKDsGFYgAskjRulbR/vGsPKq3OPqtexnz327qYpP57RFyA== - dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-runtime@7.18.10": - version "7.18.10" - resolved "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.18.10.tgz" - integrity sha512-q5mMeYAdfEbpBAgzl7tBre/la3LeCxmDO1+wMXRdPWbcoMjR3GiXlCLk7JBZVVye0bqTGNMbt0yYVXX1B1jEWQ== +"@babel/plugin-transform-regenerator@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.6.tgz#ed10cf0c13619365e15459f88d1b915ac57ffc24" + integrity sha512-SMDxO95I8WXRtXhTAc8t/NFQUT7VYbIWwJCJgEli9ml4MhqUMh4S6hxgH6SmAC3eAQNWCDJFxcFeEt9w2sDdXg== dependencies: - "@babel/helper-module-imports" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.9" - babel-plugin-polyfill-corejs2 "^0.3.2" - babel-plugin-polyfill-corejs3 "^0.5.3" - babel-plugin-polyfill-regenerator "^0.4.0" - semver "^6.3.0" + "@babel/helper-plugin-utils" "^7.24.6" + regenerator-transform "^0.15.2" -"@babel/plugin-transform-shorthand-properties@^7.18.6", "@babel/plugin-transform-shorthand-properties@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.22.5.tgz" - integrity sha512-vM4fq9IXHscXVKzDv5itkO1X52SmdFBFcMIBZ2FRn2nqVYqw6dBexUgMvAjHW+KXpPPViD/Yo3GrDEBaRC0QYA== +"@babel/plugin-transform-reserved-words@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.6.tgz#9eb16cbf339fcea0a46677716c775afb5ef14245" + integrity sha512-DcrgFXRRlK64dGE0ZFBPD5egM2uM8mgfrvTMOSB2yKzOtjpGegVYkzh3s1zZg1bBck3nkXiaOamJUqK3Syk+4A== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-spread@^7.18.9", "@babel/plugin-transform-spread@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.22.5.tgz" - integrity sha512-5ZzDQIGyvN4w8+dMmpohL6MBo+l2G7tfC/O2Dg7/hjpgeWvUx8FzfeOKxGog9IimPa4YekaQ9PlDqTLOljkcxg== +"@babel/plugin-transform-shorthand-properties@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.6.tgz#ef734ebccc428d2174c7bb36015d0800faf5381e" + integrity sha512-xnEUvHSMr9eOWS5Al2YPfc32ten7CXdH7Zwyyk7IqITg4nX61oHj+GxpNvl+y5JHjfN3KXE2IV55wAWowBYMVw== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-sticky-regex@^7.18.6", "@babel/plugin-transform-sticky-regex@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.22.5.tgz" - integrity sha512-zf7LuNpHG0iEeiyCNwX4j3gDg1jgt1k3ZdXBKbZSoA3BbGQGvMiSvfbZRR3Dr3aeJe3ooWFZxOOG3IRStYp2Bw== +"@babel/plugin-transform-spread@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.6.tgz#a56cecbd8617675531d1b79f5b755b7613aa0822" + integrity sha512-h/2j7oIUDjS+ULsIrNZ6/TKG97FgmEk1PXryk/HQq6op4XUUUwif2f69fJrzK0wza2zjCS1xhXmouACaWV5uPA== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.6" -"@babel/plugin-transform-template-literals@^7.18.9", "@babel/plugin-transform-template-literals@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.22.5.tgz" - integrity sha512-5ciOehRNf+EyUeewo8NkbQiUs4d6ZxiHo6BcBcnFlgiJfu16q0bQUw9Jvo0b0gBKFG1SMhDSjeKXSYuJLeFSMA== +"@babel/plugin-transform-sticky-regex@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.6.tgz#1a78127731fea87d954bed193840986a38f04327" + integrity sha512-fN8OcTLfGmYv7FnDrsjodYBo1DhPL3Pze/9mIIE2MGCT1KgADYIOD7rEglpLHZj8PZlC/JFX5WcD+85FLAQusw== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-typeof-symbol@^7.18.9", "@babel/plugin-transform-typeof-symbol@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.22.5.tgz" - integrity sha512-bYkI5lMzL4kPii4HHEEChkD0rkc+nvnlR6+o/qdqR6zrm0Sv/nodmyLhlq2DO0YKLUNd2VePmPRjJXSBh9OIdA== +"@babel/plugin-transform-template-literals@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.6.tgz#aaf2ae157acd0e5c9265dba8ac0a439f8d2a6303" + integrity sha512-BJbEqJIcKwrqUP+KfUIkxz3q8VzXe2R8Wv8TaNgO1cx+nNavxn/2+H8kp9tgFSOL6wYPPEgFvU6IKS4qoGqhmg== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-typescript@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.5.tgz" - integrity sha512-SMubA9S7Cb5sGSFFUlqxyClTA9zWJ8qGQrppNUm05LtFuN1ELRFNndkix4zUJrC9F+YivWwa1dHMSyo0e0N9dA== +"@babel/plugin-transform-typeof-symbol@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.6.tgz#3d02da23ebcc8f1982ddcd1f2581cf3ee4e58762" + integrity sha512-IshCXQ+G9JIFJI7bUpxTE/oA2lgVLAIK8q1KdJNoPXOpvRaNjMySGuvLfBw/Xi2/1lLo953uE8hyYSDW3TSYig== dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-create-class-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/plugin-syntax-typescript" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-unicode-escapes@^7.18.10", "@babel/plugin-transform-unicode-escapes@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.22.5.tgz" - integrity sha512-biEmVg1IYB/raUO5wT1tgfacCef15Fbzhkx493D3urBI++6hpJ+RFG4SrWMn0NEZLfvilqKf3QDrRVZHo08FYg== +"@babel/plugin-transform-typescript@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.24.6.tgz#339c6127a783c32e28a5b591e6c666f899b57db0" + integrity sha512-H0i+hDLmaYYSt6KU9cZE0gb3Cbssa/oxWis7PX4ofQzbvsfix9Lbh8SRk7LCPDlLWJHUiFeHU0qRRpF/4Zv7mQ== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-annotate-as-pure" "^7.24.6" + "@babel/helper-create-class-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/plugin-syntax-typescript" "^7.24.6" -"@babel/plugin-transform-unicode-property-regex@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.5.tgz" - integrity sha512-HCCIb+CbJIAE6sXn5CjFQXMwkCClcOfPCzTlilJ8cUatfzwHlWQkbtV0zD338u9dZskwvuOYTuuaMaA8J5EI5A== +"@babel/plugin-transform-unicode-escapes@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.6.tgz#c8ddca8fd5bacece837a4e27bd3b7ed64580d1a8" + integrity sha512-bKl3xxcPbkQQo5eX9LjjDpU2xYHeEeNQbOhj0iPvetSzA+Tu9q/o5lujF4Sek60CM6MgYvOS/DJuwGbiEYAnLw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-unicode-regex@^7.18.6", "@babel/plugin-transform-unicode-regex@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.22.5.tgz" - integrity sha512-028laaOKptN5vHJf9/Arr/HiJekMd41hOEZYvNsrsXqJ7YPYuX2bQxh31fkZzGmq3YqHRJzYFFAVYvKfMPKqyg== +"@babel/plugin-transform-unicode-property-regex@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.6.tgz#e66297d5d452db0b0be56515e3d0e10b7d33fb32" + integrity sha512-8EIgImzVUxy15cZiPii9GvLZwsy7Vxc+8meSlR3cXFmBIl5W5Tn9LGBf7CDKkHj4uVfNXCJB8RsVfnmY61iedA== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-create-regexp-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/plugin-transform-unicode-sets-regex@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.5.tgz" - integrity sha512-lhMfi4FC15j13eKrh3DnYHjpGj6UKQHtNKTbtc1igvAhRy4+kLhV07OpLcsN0VgDEw/MjAvJO4BdMJsHwMhzCg== +"@babel/plugin-transform-unicode-regex@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.6.tgz#2001e7d87ed709eea145e0b65fb5f93c3c0e225b" + integrity sha512-pssN6ExsvxaKU638qcWb81RrvvgZom3jDgU/r5xFZ7TONkZGFf4MhI2ltMb8OcQWhHyxgIavEU+hgqtbKOmsPA== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-create-regexp-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/preset-env@7.18.10": - version "7.18.10" - resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.18.10.tgz" - integrity sha512-wVxs1yjFdW3Z/XkNfXKoblxoHgbtUF7/l3PvvP4m02Qz9TZ6uZGxRVYjSQeR87oQmHco9zWitW5J82DJ7sCjvA== - dependencies: - "@babel/compat-data" "^7.18.8" - "@babel/helper-compilation-targets" "^7.18.9" - "@babel/helper-plugin-utils" "^7.18.9" - "@babel/helper-validator-option" "^7.18.6" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.18.6" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.18.9" - "@babel/plugin-proposal-async-generator-functions" "^7.18.10" - "@babel/plugin-proposal-class-properties" "^7.18.6" - "@babel/plugin-proposal-class-static-block" "^7.18.6" - "@babel/plugin-proposal-dynamic-import" "^7.18.6" - "@babel/plugin-proposal-export-namespace-from" "^7.18.9" - "@babel/plugin-proposal-json-strings" "^7.18.6" - "@babel/plugin-proposal-logical-assignment-operators" "^7.18.9" - "@babel/plugin-proposal-nullish-coalescing-operator" "^7.18.6" - "@babel/plugin-proposal-numeric-separator" "^7.18.6" - "@babel/plugin-proposal-object-rest-spread" "^7.18.9" - "@babel/plugin-proposal-optional-catch-binding" "^7.18.6" - "@babel/plugin-proposal-optional-chaining" "^7.18.9" - "@babel/plugin-proposal-private-methods" "^7.18.6" - "@babel/plugin-proposal-private-property-in-object" "^7.18.6" - "@babel/plugin-proposal-unicode-property-regex" "^7.18.6" - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - "@babel/plugin-syntax-import-assertions" "^7.18.6" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - "@babel/plugin-syntax-top-level-await" "^7.14.5" - "@babel/plugin-transform-arrow-functions" "^7.18.6" - "@babel/plugin-transform-async-to-generator" "^7.18.6" - "@babel/plugin-transform-block-scoped-functions" "^7.18.6" - "@babel/plugin-transform-block-scoping" "^7.18.9" - "@babel/plugin-transform-classes" "^7.18.9" - "@babel/plugin-transform-computed-properties" "^7.18.9" - "@babel/plugin-transform-destructuring" "^7.18.9" - "@babel/plugin-transform-dotall-regex" "^7.18.6" - "@babel/plugin-transform-duplicate-keys" "^7.18.9" - "@babel/plugin-transform-exponentiation-operator" "^7.18.6" - "@babel/plugin-transform-for-of" "^7.18.8" - "@babel/plugin-transform-function-name" "^7.18.9" - "@babel/plugin-transform-literals" "^7.18.9" - "@babel/plugin-transform-member-expression-literals" "^7.18.6" - "@babel/plugin-transform-modules-amd" "^7.18.6" - "@babel/plugin-transform-modules-commonjs" "^7.18.6" - "@babel/plugin-transform-modules-systemjs" "^7.18.9" - "@babel/plugin-transform-modules-umd" "^7.18.6" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.18.6" - "@babel/plugin-transform-new-target" "^7.18.6" - "@babel/plugin-transform-object-super" "^7.18.6" - "@babel/plugin-transform-parameters" "^7.18.8" - "@babel/plugin-transform-property-literals" "^7.18.6" - "@babel/plugin-transform-regenerator" "^7.18.6" - "@babel/plugin-transform-reserved-words" "^7.18.6" - "@babel/plugin-transform-shorthand-properties" "^7.18.6" - "@babel/plugin-transform-spread" "^7.18.9" - "@babel/plugin-transform-sticky-regex" "^7.18.6" - "@babel/plugin-transform-template-literals" "^7.18.9" - "@babel/plugin-transform-typeof-symbol" "^7.18.9" - "@babel/plugin-transform-unicode-escapes" "^7.18.10" - "@babel/plugin-transform-unicode-regex" "^7.18.6" - "@babel/preset-modules" "^0.1.5" - "@babel/types" "^7.18.10" - babel-plugin-polyfill-corejs2 "^0.3.2" - babel-plugin-polyfill-corejs3 "^0.5.3" - babel-plugin-polyfill-regenerator "^0.4.0" - core-js-compat "^3.22.1" - semver "^6.3.0" +"@babel/plugin-transform-unicode-sets-regex@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.6.tgz#f18b7292222aee85c155258ceb345a146a070a46" + integrity sha512-quiMsb28oXWIDK0gXLALOJRXLgICLiulqdZGOaPPd0vRT7fQp74NtdADAVu+D8s00C+0Xs0MxVP0VKF/sZEUgw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" -"@babel/preset-env@^7.22.9": - version "7.22.9" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.22.9.tgz#57f17108eb5dfd4c5c25a44c1977eba1df310ac7" - integrity sha512-wNi5H/Emkhll/bqPjsjQorSykrlfY5OWakd6AulLvMEytpKasMVUpVy8RL4qBIBs5Ac6/5i0/Rv0b/Fg6Eag/g== +"@babel/preset-env@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.6.tgz#a5a55bc70e5ff1ed7f872067e2a9d65ff917ad6f" + integrity sha512-CrxEAvN7VxfjOG8JNF2Y/eMqMJbZPZ185amwGUBp8D9USK90xQmv7dLdFSa+VbD7fdIqcy/Mfv7WtzG8+/qxKg== dependencies: - "@babel/compat-data" "^7.22.9" - "@babel/helper-compilation-targets" "^7.22.9" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-option" "^7.22.5" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.22.5" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.22.5" + "@babel/compat-data" "^7.24.6" + "@babel/helper-compilation-targets" "^7.24.6" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-validator-option" "^7.24.6" + "@babel/plugin-bugfix-firefox-class-in-computed-class-key" "^7.24.6" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.24.6" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.24.6" + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.24.6" "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-class-properties" "^7.12.13" "@babel/plugin-syntax-class-static-block" "^7.14.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - "@babel/plugin-syntax-import-assertions" "^7.22.5" - "@babel/plugin-syntax-import-attributes" "^7.22.5" + "@babel/plugin-syntax-import-assertions" "^7.24.6" + "@babel/plugin-syntax-import-attributes" "^7.24.6" "@babel/plugin-syntax-import-meta" "^7.10.4" "@babel/plugin-syntax-json-strings" "^7.8.3" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" @@ -1224,97 +1091,94 @@ "@babel/plugin-syntax-private-property-in-object" "^7.14.5" "@babel/plugin-syntax-top-level-await" "^7.14.5" "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" - "@babel/plugin-transform-arrow-functions" "^7.22.5" - "@babel/plugin-transform-async-generator-functions" "^7.22.7" - "@babel/plugin-transform-async-to-generator" "^7.22.5" - "@babel/plugin-transform-block-scoped-functions" "^7.22.5" - "@babel/plugin-transform-block-scoping" "^7.22.5" - "@babel/plugin-transform-class-properties" "^7.22.5" - "@babel/plugin-transform-class-static-block" "^7.22.5" - "@babel/plugin-transform-classes" "^7.22.6" - "@babel/plugin-transform-computed-properties" "^7.22.5" - "@babel/plugin-transform-destructuring" "^7.22.5" - "@babel/plugin-transform-dotall-regex" "^7.22.5" - "@babel/plugin-transform-duplicate-keys" "^7.22.5" - "@babel/plugin-transform-dynamic-import" "^7.22.5" - "@babel/plugin-transform-exponentiation-operator" "^7.22.5" - "@babel/plugin-transform-export-namespace-from" "^7.22.5" - "@babel/plugin-transform-for-of" "^7.22.5" - "@babel/plugin-transform-function-name" "^7.22.5" - "@babel/plugin-transform-json-strings" "^7.22.5" - "@babel/plugin-transform-literals" "^7.22.5" - "@babel/plugin-transform-logical-assignment-operators" "^7.22.5" - "@babel/plugin-transform-member-expression-literals" "^7.22.5" - "@babel/plugin-transform-modules-amd" "^7.22.5" - "@babel/plugin-transform-modules-commonjs" "^7.22.5" - "@babel/plugin-transform-modules-systemjs" "^7.22.5" - "@babel/plugin-transform-modules-umd" "^7.22.5" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5" - "@babel/plugin-transform-new-target" "^7.22.5" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.22.5" - "@babel/plugin-transform-numeric-separator" "^7.22.5" - "@babel/plugin-transform-object-rest-spread" "^7.22.5" - "@babel/plugin-transform-object-super" "^7.22.5" - "@babel/plugin-transform-optional-catch-binding" "^7.22.5" - "@babel/plugin-transform-optional-chaining" "^7.22.6" - "@babel/plugin-transform-parameters" "^7.22.5" - "@babel/plugin-transform-private-methods" "^7.22.5" - "@babel/plugin-transform-private-property-in-object" "^7.22.5" - "@babel/plugin-transform-property-literals" "^7.22.5" - "@babel/plugin-transform-regenerator" "^7.22.5" - "@babel/plugin-transform-reserved-words" "^7.22.5" - "@babel/plugin-transform-shorthand-properties" "^7.22.5" - "@babel/plugin-transform-spread" "^7.22.5" - "@babel/plugin-transform-sticky-regex" "^7.22.5" - "@babel/plugin-transform-template-literals" "^7.22.5" - "@babel/plugin-transform-typeof-symbol" "^7.22.5" - "@babel/plugin-transform-unicode-escapes" "^7.22.5" - "@babel/plugin-transform-unicode-property-regex" "^7.22.5" - "@babel/plugin-transform-unicode-regex" "^7.22.5" - "@babel/plugin-transform-unicode-sets-regex" "^7.22.5" - "@babel/preset-modules" "^0.1.5" - "@babel/types" "^7.22.5" - babel-plugin-polyfill-corejs2 "^0.4.4" - babel-plugin-polyfill-corejs3 "^0.8.2" - babel-plugin-polyfill-regenerator "^0.5.1" + "@babel/plugin-transform-arrow-functions" "^7.24.6" + "@babel/plugin-transform-async-generator-functions" "^7.24.6" + "@babel/plugin-transform-async-to-generator" "^7.24.6" + "@babel/plugin-transform-block-scoped-functions" "^7.24.6" + "@babel/plugin-transform-block-scoping" "^7.24.6" + "@babel/plugin-transform-class-properties" "^7.24.6" + "@babel/plugin-transform-class-static-block" "^7.24.6" + "@babel/plugin-transform-classes" "^7.24.6" + "@babel/plugin-transform-computed-properties" "^7.24.6" + "@babel/plugin-transform-destructuring" "^7.24.6" + "@babel/plugin-transform-dotall-regex" "^7.24.6" + "@babel/plugin-transform-duplicate-keys" "^7.24.6" + "@babel/plugin-transform-dynamic-import" "^7.24.6" + "@babel/plugin-transform-exponentiation-operator" "^7.24.6" + "@babel/plugin-transform-export-namespace-from" "^7.24.6" + "@babel/plugin-transform-for-of" "^7.24.6" + "@babel/plugin-transform-function-name" "^7.24.6" + "@babel/plugin-transform-json-strings" "^7.24.6" + "@babel/plugin-transform-literals" "^7.24.6" + "@babel/plugin-transform-logical-assignment-operators" "^7.24.6" + "@babel/plugin-transform-member-expression-literals" "^7.24.6" + "@babel/plugin-transform-modules-amd" "^7.24.6" + "@babel/plugin-transform-modules-commonjs" "^7.24.6" + "@babel/plugin-transform-modules-systemjs" "^7.24.6" + "@babel/plugin-transform-modules-umd" "^7.24.6" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.24.6" + "@babel/plugin-transform-new-target" "^7.24.6" + "@babel/plugin-transform-nullish-coalescing-operator" "^7.24.6" + "@babel/plugin-transform-numeric-separator" "^7.24.6" + "@babel/plugin-transform-object-rest-spread" "^7.24.6" + "@babel/plugin-transform-object-super" "^7.24.6" + "@babel/plugin-transform-optional-catch-binding" "^7.24.6" + "@babel/plugin-transform-optional-chaining" "^7.24.6" + "@babel/plugin-transform-parameters" "^7.24.6" + "@babel/plugin-transform-private-methods" "^7.24.6" + "@babel/plugin-transform-private-property-in-object" "^7.24.6" + "@babel/plugin-transform-property-literals" "^7.24.6" + "@babel/plugin-transform-regenerator" "^7.24.6" + "@babel/plugin-transform-reserved-words" "^7.24.6" + "@babel/plugin-transform-shorthand-properties" "^7.24.6" + "@babel/plugin-transform-spread" "^7.24.6" + "@babel/plugin-transform-sticky-regex" "^7.24.6" + "@babel/plugin-transform-template-literals" "^7.24.6" + "@babel/plugin-transform-typeof-symbol" "^7.24.6" + "@babel/plugin-transform-unicode-escapes" "^7.24.6" + "@babel/plugin-transform-unicode-property-regex" "^7.24.6" + "@babel/plugin-transform-unicode-regex" "^7.24.6" + "@babel/plugin-transform-unicode-sets-regex" "^7.24.6" + "@babel/preset-modules" "0.1.6-no-external-plugins" + babel-plugin-polyfill-corejs2 "^0.4.10" + babel-plugin-polyfill-corejs3 "^0.10.4" + babel-plugin-polyfill-regenerator "^0.6.1" core-js-compat "^3.31.0" semver "^6.3.1" -"@babel/preset-modules@^0.1.5": - version "0.1.5" - resolved "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz" - integrity sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA== +"@babel/preset-modules@0.1.6-no-external-plugins": + version "0.1.6-no-external-plugins" + resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a" + integrity sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" - "@babel/plugin-transform-dotall-regex" "^7.4.4" "@babel/types" "^7.4.4" esutils "^2.0.2" -"@babel/preset-typescript@^7.18.6", "@babel/preset-typescript@^7.22.5": - version "7.22.5" - resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.22.5.tgz" - integrity sha512-YbPaal9LxztSGhmndR46FmAbkJ/1fAsw293tSU+I5E5h+cnJ3d4GTwyUgGYmOXJYdGA+uNePle4qbaRzj2NISQ== +"@babel/preset-typescript@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.24.6.tgz#27057470fb981c31338bdb897fc3d9aa0cb7dab2" + integrity sha512-U10aHPDnokCFRXgyT/MaIRTivUu2K/mu0vJlwRS9LxJmJet+PFQNKpggPyFCUtC6zWSBPjvxjnpNkAn3Uw2m5w== dependencies: - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-validator-option" "^7.22.5" - "@babel/plugin-syntax-jsx" "^7.22.5" - "@babel/plugin-transform-modules-commonjs" "^7.22.5" - "@babel/plugin-transform-typescript" "^7.22.5" + "@babel/helper-plugin-utils" "^7.24.6" + "@babel/helper-validator-option" "^7.24.6" + "@babel/plugin-syntax-jsx" "^7.24.6" + "@babel/plugin-transform-modules-commonjs" "^7.24.6" + "@babel/plugin-transform-typescript" "^7.24.6" "@babel/regjsgen@^0.8.0": version "0.8.0" resolved "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz" integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== -"@babel/runtime@^7.11.2", "@babel/runtime@^7.18.9", "@babel/runtime@^7.8.4": +"@babel/runtime@^7.11.2", "@babel/runtime@^7.8.4": version "7.22.5" resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.5.tgz" integrity sha512-ecjvYlnAaZ/KVneE/OdKYBYfgXV3Ptu6zQWmgEF7vwKhQnvVS6bjMD2XYgj+SNvQ1GfK/pjgokfPkC/2CO8CuA== dependencies: regenerator-runtime "^0.13.11" -"@babel/template@^7.18.10", "@babel/template@^7.22.5", "@babel/template@^7.3.3": +"@babel/template@^7.22.5", "@babel/template@^7.3.3": version "7.22.5" resolved "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz" integrity sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw== @@ -1323,23 +1187,32 @@ "@babel/parser" "^7.22.5" "@babel/types" "^7.22.5" -"@babel/traverse@7.18.11": - version "7.18.11" - resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.11.tgz" - integrity sha512-TG9PiM2R/cWCAy6BPJKeHzNbu4lPzOSZpeMfeNErskGpTJx6trEvFaVCbDvpcxwy49BKWmEPwiW8mrysNiDvIQ== - dependencies: - "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.18.10" - "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.18.9" - "@babel/helper-hoist-variables" "^7.18.6" - "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.18.11" - "@babel/types" "^7.18.10" - debug "^4.1.0" +"@babel/template@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.6.tgz#048c347b2787a6072b24c723664c8d02b67a44f9" + integrity sha512-3vgazJlLwNXi9jhrR1ef8qiB65L1RK90+lEQwv4OxveHnqC3BfmnHdgySwRLzf6akhlOYenT+b7AfWq+a//AHw== + dependencies: + "@babel/code-frame" "^7.24.6" + "@babel/parser" "^7.24.6" + "@babel/types" "^7.24.6" + +"@babel/traverse@7.24.1": + version "7.24.1" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.1.tgz#d65c36ac9dd17282175d1e4a3c49d5b7988f530c" + integrity sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ== + dependencies: + "@babel/code-frame" "^7.24.1" + "@babel/generator" "^7.24.1" + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-function-name" "^7.23.0" + "@babel/helper-hoist-variables" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + "@babel/parser" "^7.24.1" + "@babel/types" "^7.24.0" + debug "^4.3.1" globals "^11.1.0" -"@babel/traverse@^7.18.10", "@babel/traverse@^7.22.5": +"@babel/traverse@^7.22.5": version "7.22.5" resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.5.tgz" integrity sha512-7DuIjPgERaNo6r+PZwItpjCZEa5vyw4eJGufeLxrPdBXBoLcCJCIasvK6pK/9DVNrLZTLFhUGqaC6X/PA007TQ== @@ -1355,16 +1228,32 @@ debug "^4.1.0" globals "^11.1.0" -"@babel/types@7.18.10": - version "7.18.10" - resolved "https://registry.npmjs.org/@babel/types/-/types-7.18.10.tgz" - integrity sha512-MJvnbEiiNkpjo+LknnmRrqbY1GPUUggjv+wQVjetM/AONoupqRALB7I6jGqNUAZsKcRIEu2J6FRFvsczljjsaQ== +"@babel/traverse@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.6.tgz#0941ec50cdeaeacad0911eb67ae227a4f8424edc" + integrity sha512-OsNjaJwT9Zn8ozxcfoBc+RaHdj3gFmCmYoQLUII1o6ZrUwku0BMg80FoOTPx+Gi6XhcQxAYE4xyjPTo4SxEQqw== + dependencies: + "@babel/code-frame" "^7.24.6" + "@babel/generator" "^7.24.6" + "@babel/helper-environment-visitor" "^7.24.6" + "@babel/helper-function-name" "^7.24.6" + "@babel/helper-hoist-variables" "^7.24.6" + "@babel/helper-split-export-declaration" "^7.24.6" + "@babel/parser" "^7.24.6" + "@babel/types" "^7.24.6" + debug "^4.3.1" + globals "^11.1.0" + +"@babel/types@7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.0.tgz#3b951f435a92e7333eba05b7566fd297960ea1bf" + integrity sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w== dependencies: - "@babel/helper-string-parser" "^7.18.10" - "@babel/helper-validator-identifier" "^7.18.6" + "@babel/helper-string-parser" "^7.23.4" + "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.20.7", "@babel/types@^7.22.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4": +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.22.5", "@babel/types@^7.3.3", "@babel/types@^7.4.4": version "7.22.5" resolved "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz" integrity sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA== @@ -1373,6 +1262,15 @@ "@babel/helper-validator-identifier" "^7.22.5" to-fast-properties "^2.0.0" +"@babel/types@^7.24.0", "@babel/types@^7.24.6": + version "7.24.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.6.tgz#ba4e1f59870c10dc2fa95a274ac4feec23b21912" + integrity sha512-WaMsgi6Q8zMgMth93GvWPXkhAIEobfsIkLTacoVZoK1J0CevIPGYY2Vo5YvJGqyHqXM6P4ppOYGsIRU8MM9pFQ== + dependencies: + "@babel/helper-string-parser" "^7.24.6" + "@babel/helper-validator-identifier" "^7.24.6" + to-fast-properties "^2.0.0" + "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" @@ -1386,171 +1284,176 @@ "@noble/hashes" "^1.0.0" protobufjs "^6.8.8" -"@cosmjs/amino@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.31.1.tgz#e6b4adc3ebe19ddfd953c67ee04b1eae488238af" - integrity sha512-kkB9IAkNEUFtjp/uwHv95TgM8VGJ4VWfZwrTyLNqBDD1EpSX2dsNrmUe7k8OMPzKlZUFcKmD4iA0qGvIwzjbGA== - dependencies: - "@cosmjs/crypto" "^0.31.1" - "@cosmjs/encoding" "^0.31.1" - "@cosmjs/math" "^0.31.1" - "@cosmjs/utils" "^0.31.1" - -"@cosmjs/cosmwasm-stargate@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.31.1.tgz#36d4386238fd4310d144486a27585a4fec3f27cd" - integrity sha512-5hwv4oztFnpqnFaXhYxZc93na3qdxylT2kqms4pLzD8CWMEQmrwhdM4KpZimrsyZK55WiMQtTPsdSh7M8KLOow== - dependencies: - "@cosmjs/amino" "^0.31.1" - "@cosmjs/crypto" "^0.31.1" - "@cosmjs/encoding" "^0.31.1" - "@cosmjs/math" "^0.31.1" - "@cosmjs/proto-signing" "^0.31.1" - "@cosmjs/stargate" "^0.31.1" - "@cosmjs/tendermint-rpc" "^0.31.1" - "@cosmjs/utils" "^0.31.1" - cosmjs-types "^0.8.0" - long "^4.0.0" +"@cosmjs/amino@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/amino/-/amino-0.32.3.tgz#b81d4a2b8d61568431a1afcd871e1344a19d97ff" + integrity sha512-G4zXl+dJbqrz1sSJ56H/25l5NJEk/pAPIr8piAHgbXYw88OdAOlpA26PQvk2IbSN/rRgVbvlLTNgX2tzz1dyUA== + dependencies: + "@cosmjs/crypto" "^0.32.3" + "@cosmjs/encoding" "^0.32.3" + "@cosmjs/math" "^0.32.3" + "@cosmjs/utils" "^0.32.3" + +"@cosmjs/cosmwasm-stargate@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/cosmwasm-stargate/-/cosmwasm-stargate-0.32.3.tgz#26a110a6bb0c15fdeef647e3433bd9553a1acd5f" + integrity sha512-pqkt+QsLIPNMTRh9m+igJgIpzXXgn1BxmxfAb9zlC23kvsuzY/12un9M7iAdim1NwKXDFeYw46xC2YkprwQp+g== + dependencies: + "@cosmjs/amino" "^0.32.3" + "@cosmjs/crypto" "^0.32.3" + "@cosmjs/encoding" "^0.32.3" + "@cosmjs/math" "^0.32.3" + "@cosmjs/proto-signing" "^0.32.3" + "@cosmjs/stargate" "^0.32.3" + "@cosmjs/tendermint-rpc" "^0.32.3" + "@cosmjs/utils" "^0.32.3" + cosmjs-types "^0.9.0" pako "^2.0.2" -"@cosmjs/crypto@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.31.1.tgz#ce4917df0f7b38f0909a32020907ccff04acefe6" - integrity sha512-4R/SqdzdVzd4E5dpyEh1IKm5GbTqwDogutyIyyb1bcOXiX/x3CrvPI9Tb4WSIMDLvlb5TVzu2YnUV51Q1+6mMA== +"@cosmjs/crypto@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/crypto/-/crypto-0.32.3.tgz#787f8e659709678722068ee1ddf379f65051a25e" + integrity sha512-niQOWJHUtlJm2GG4F00yGT7sGPKxfUwz+2qQ30uO/E3p58gOusTcH2qjiJNVxb8vScYJhFYFqpm/OA/mVqoUGQ== dependencies: - "@cosmjs/encoding" "^0.31.1" - "@cosmjs/math" "^0.31.1" - "@cosmjs/utils" "^0.31.1" + "@cosmjs/encoding" "^0.32.3" + "@cosmjs/math" "^0.32.3" + "@cosmjs/utils" "^0.32.3" "@noble/hashes" "^1" bn.js "^5.2.0" elliptic "^6.5.4" libsodium-wrappers-sumo "^0.7.11" -"@cosmjs/encoding@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.31.1.tgz#0041b2650c443d883e22f27c7d3cd7b844c6d0ec" - integrity sha512-IuxP6ewwX6vg9sUJ8ocJD92pkerI4lyG8J5ynAM3NaX3q+n+uMoPRSQXNeL9bnlrv01FF1kIm8if/f5F7ZPtkA== +"@cosmjs/encoding@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/encoding/-/encoding-0.32.3.tgz#e245ff511fe4a0df7ba427b5187aab69e3468e5b" + integrity sha512-p4KF7hhv8jBQX3MkB3Defuhz/W0l3PwWVYU2vkVuBJ13bJcXyhU9nJjiMkaIv+XP+W2QgRceqNNgFUC5chNR7w== dependencies: base64-js "^1.3.0" bech32 "^1.1.4" readonly-date "^1.0.0" -"@cosmjs/json-rpc@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/json-rpc/-/json-rpc-0.31.1.tgz#54d1064adb3ebd0412b04f87a3c2029384e4cb5e" - integrity sha512-gIkCj2mUDHAxvmJnHtybXtMLZDeXrkDZlujjzhvJlWsIuj1kpZbKtYqh+eNlfwhMkMMAlQa/y4422jDmizW+ng== +"@cosmjs/json-rpc@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/json-rpc/-/json-rpc-0.32.3.tgz#ccffdd7f722cecfab6daaa7463843b92f5d25355" + integrity sha512-JwFRWZa+Y95KrAG8CuEbPVOSnXO2uMSEBcaAB/FBU3Mo4jQnDoUjXvt3vwtFWxfAytrWCn1I4YDFaOAinnEG/Q== dependencies: - "@cosmjs/stream" "^0.31.1" + "@cosmjs/stream" "^0.32.3" xstream "^11.14.0" -"@cosmjs/math@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.31.1.tgz#74c02cf237c2996b77661b636b014168b18d95e6" - integrity sha512-kiuHV6m6DSB8/4UV1qpFhlc4ul8SgLXTGRlYkYiIIP4l0YNeJ+OpPYaOlEgx4Unk2mW3/O2FWYj7Jc93+BWXng== +"@cosmjs/math@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.32.3.tgz#16e4256f4da507b9352327da12ae64056a2ba6c9" + integrity sha512-amumUtZs8hCCnV+lSBaJIiZkGabQm22QGg/IotYrhcmoOEOjt82n7hMNlNXRs7V6WLMidGrGYcswB5zcmp0Meg== dependencies: bn.js "^5.2.0" -"@cosmjs/proto-signing@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.31.1.tgz#3929d5bee3c88c42b3bc3c4b9db4ab3bddb684c4" - integrity sha512-hipbBVrssPu+jnmRzQRP5hhS/mbz2nU7RvxG/B1ZcdNhr1AtZC5DN09OTUoEpMSRgyQvScXmk/NTbyf+xmCgYg== - dependencies: - "@cosmjs/amino" "^0.31.1" - "@cosmjs/crypto" "^0.31.1" - "@cosmjs/encoding" "^0.31.1" - "@cosmjs/math" "^0.31.1" - "@cosmjs/utils" "^0.31.1" - cosmjs-types "^0.8.0" - long "^4.0.0" +"@cosmjs/proto-signing@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/proto-signing/-/proto-signing-0.32.3.tgz#91ae149b747d18666a6ccc924165b306431f7c0d" + integrity sha512-kSZ0ZUY0DwcRT0NcIn2HkadH4NKlwjfZgbLj1ABwh/4l0RgeT84QCscZCu63tJYq3K6auwqTiZSZERwlO4/nbg== + dependencies: + "@cosmjs/amino" "^0.32.3" + "@cosmjs/crypto" "^0.32.3" + "@cosmjs/encoding" "^0.32.3" + "@cosmjs/math" "^0.32.3" + "@cosmjs/utils" "^0.32.3" + cosmjs-types "^0.9.0" -"@cosmjs/socket@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/socket/-/socket-0.31.1.tgz#887d4e9b6aad4b3d264d64a47bdb40bcfa9802ff" - integrity sha512-XTtEr+x3WGbqkzoGX0sCkwVqf5n+bBqDwqNgb+DWaBABQxHVRuuainrTVp0Yc91D3Iy2twLQzeBA9OrRxDSerw== +"@cosmjs/socket@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/socket/-/socket-0.32.3.tgz#fa5c36bf58e87c0ad865d6318ecb0f8d9c89a28a" + integrity sha512-F2WwNmaUPdZ4SsH6Uyreq3wQk7jpaEkb3wfOP951f5Jt6HCW/PxbxhKzHkAAf6+Sqks6SPhkbWoE8XaZpjL2KA== dependencies: - "@cosmjs/stream" "^0.31.1" + "@cosmjs/stream" "^0.32.3" isomorphic-ws "^4.0.1" ws "^7" xstream "^11.14.0" -"@cosmjs/stargate@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.31.1.tgz#7e2b0fd6f181250915b1d73ecf9dfbab6f3cdd0d" - integrity sha512-TqOJZYOH5W3sZIjR6949GfjhGXO3kSHQ3/KmE+SuKyMMmQ5fFZ45beawiRtVF0/CJg5RyPFyFGJKhb1Xxv3Lcg== +"@cosmjs/stargate@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/stargate/-/stargate-0.32.3.tgz#5a92b222ada960ebecea72cc9f366370763f4b66" + integrity sha512-OQWzO9YWKerUinPIxrO1MARbe84XkeXJAW0lyMIjXIEikajuXZ+PwftiKA5yA+8OyditVmHVLtPud6Pjna2s5w== dependencies: "@confio/ics23" "^0.6.8" - "@cosmjs/amino" "^0.31.1" - "@cosmjs/encoding" "^0.31.1" - "@cosmjs/math" "^0.31.1" - "@cosmjs/proto-signing" "^0.31.1" - "@cosmjs/stream" "^0.31.1" - "@cosmjs/tendermint-rpc" "^0.31.1" - "@cosmjs/utils" "^0.31.1" - cosmjs-types "^0.8.0" - long "^4.0.0" - protobufjs "~6.11.3" + "@cosmjs/amino" "^0.32.3" + "@cosmjs/encoding" "^0.32.3" + "@cosmjs/math" "^0.32.3" + "@cosmjs/proto-signing" "^0.32.3" + "@cosmjs/stream" "^0.32.3" + "@cosmjs/tendermint-rpc" "^0.32.3" + "@cosmjs/utils" "^0.32.3" + cosmjs-types "^0.9.0" xstream "^11.14.0" -"@cosmjs/stream@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/stream/-/stream-0.31.1.tgz#01bab56278bfe32cd601043949fcdc021a5f7ca7" - integrity sha512-xsIGD9bpBvYYZASajCyOevh1H5pDdbOWmvb4UwGZ78doGVz3IC3Kb9BZKJHIX2fjq9CMdGVJHmlM+Zp5aM8yZA== +"@cosmjs/stream@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/stream/-/stream-0.32.3.tgz#7522579aaf18025d322c2f33d6fb7573220395d6" + integrity sha512-J2zVWDojkynYifAUcRmVczzmp6STEpyiAARq0rSsviqjreGIfspfuws/8rmkPa6qQBZvpQOBQCm2HyZZwYplIw== dependencies: xstream "^11.14.0" -"@cosmjs/tendermint-rpc@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.31.1.tgz#0699c6046fc8afd1eee3c648cfb3b896119ce52e" - integrity sha512-KX+wwi725sSePqIxfMPPOqg+xTETV8BHGOBhRhCZXEl5Fq48UlXXq3/yG1sn7K67ADC0kqHqcCF41Wn1GxNNPA== - dependencies: - "@cosmjs/crypto" "^0.31.1" - "@cosmjs/encoding" "^0.31.1" - "@cosmjs/json-rpc" "^0.31.1" - "@cosmjs/math" "^0.31.1" - "@cosmjs/socket" "^0.31.1" - "@cosmjs/stream" "^0.31.1" - "@cosmjs/utils" "^0.31.1" - axios "^0.21.2" +"@cosmjs/tendermint-rpc@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/tendermint-rpc/-/tendermint-rpc-0.32.3.tgz#f0406b9f0233e588fb924dca8c614972f9038aff" + integrity sha512-xeprW+VR9xKGstqZg0H/KBZoUp8/FfFyS9ljIUTLM/UINjP2MhiwncANPS2KScfJVepGufUKk0/phHUeIBSEkw== + dependencies: + "@cosmjs/crypto" "^0.32.3" + "@cosmjs/encoding" "^0.32.3" + "@cosmjs/json-rpc" "^0.32.3" + "@cosmjs/math" "^0.32.3" + "@cosmjs/socket" "^0.32.3" + "@cosmjs/stream" "^0.32.3" + "@cosmjs/utils" "^0.32.3" + axios "^1.6.0" readonly-date "^1.0.0" xstream "^11.14.0" -"@cosmjs/utils@^0.31.1": - version "0.31.1" - resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.31.1.tgz#e6055cd7d722fa72df9cbd0d39cd1f7a9ac80483" - integrity sha512-n4Se1wu4GnKwztQHNFfJvUeWcpvx3o8cWhSbNs9JQShEuB3nv3R5lqFBtDCgHZF/emFQAP+ZjF8bTfCs9UBGhA== - -"@cosmwasm/ts-codegen@^0.35.3": - version "0.35.3" - resolved "https://registry.yarnpkg.com/@cosmwasm/ts-codegen/-/ts-codegen-0.35.3.tgz#58f34683f7eb318b022f0418252fb710df69c293" - integrity sha512-L7T4yjAQIWJ/h0YmqVjihzv78ZbqGD/f0G8EJTwccsPXqWzbcnXzQKsvtFXpDp6AzaJKVMchFHfp6ZPRP3boUQ== - dependencies: - "@babel/core" "7.18.10" - "@babel/generator" "7.18.12" - "@babel/parser" "7.18.11" - "@babel/plugin-proposal-class-properties" "7.18.6" - "@babel/plugin-proposal-export-default-from" "7.18.10" - "@babel/plugin-proposal-object-rest-spread" "7.18.9" - "@babel/plugin-transform-runtime" "7.18.10" - "@babel/preset-env" "7.18.10" - "@babel/preset-typescript" "^7.18.6" - "@babel/runtime" "^7.18.9" - "@babel/traverse" "7.18.11" - "@babel/types" "7.18.10" +"@cosmjs/utils@^0.32.3": + version "0.32.3" + resolved "https://registry.yarnpkg.com/@cosmjs/utils/-/utils-0.32.3.tgz#5dcaee6dd7cc846cdc073e9a7a7f63242f5f7e31" + integrity sha512-WCZK4yksj2hBDz4w7xFZQTRZQ/RJhBX26uFHmmQFIcNUUVAihrLO+RerqJgk0dZqC42wstM9pEUQGtPmLcIYvg== + +"@cosmwasm/ts-codegen-ast@^1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@cosmwasm/ts-codegen-ast/-/ts-codegen-ast-1.6.0.tgz#c3d0ffd6e24526ae83069be82e553472d61cdb73" + integrity sha512-Wf1jOkWWXJLd1H5DbZEf4+jZ/imrbbr8kbLbEwKwggvi4j3frwbeO7uUJMz6PulrHImaCBO0fWjVoeqsc210Gg== + dependencies: + "@babel/types" "7.24.0" + "@cosmwasm/ts-codegen-types" "^1.3.0" + ast-stringify "0.1.0" + case "1.6.3" + deepmerge "4.2.2" + +"@cosmwasm/ts-codegen-types@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@cosmwasm/ts-codegen-types/-/ts-codegen-types-1.3.0.tgz#9839d0521a3e1acc7145a5efe907590c93938b75" + integrity sha512-DF6CM+Pq+gqFY0jtLLzvxJaHsUrszn3WdyIrsM1SrEXzTtS9yg/pGMedVJ83SEREoz7MiG/0ori3Ghi3WSgnOg== + +"@cosmwasm/ts-codegen@^1.10.0": + version "1.10.0" + resolved "https://registry.yarnpkg.com/@cosmwasm/ts-codegen/-/ts-codegen-1.10.0.tgz#0c73e15e0e74c297ef61d1c660a601d15319c642" + integrity sha512-c/I4XOU2+28mJOeuHYSLRxGdCe7gXqY2v8u7UfC/t//W/gQ29sV5MxV0nYTLJDwqE3l45eje3Hx6DSj13Aspyg== + dependencies: + "@babel/generator" "7.24.4" + "@babel/traverse" "7.24.1" + "@babel/types" "7.24.0" + "@cosmwasm/ts-codegen-ast" "^1.6.0" + "@cosmwasm/ts-codegen-types" "^1.3.0" "@pyramation/json-schema-to-typescript" " 11.0.4" + "@types/rimraf" "3.0.2" + "@types/shelljs" "0.8.15" case "1.6.3" dargs "7.0.0" deepmerge "4.2.2" - dotty "0.1.2" fuzzy "0.1.3" glob "8.0.3" inquirerer "0.1.3" - long "^5.2.0" minimist "1.2.6" mkdirp "1.0.4" + nested-obj "0.0.1" parse-package-name "1.0.0" rimraf "3.0.2" shelljs "0.8.5" - wasm-ast-types "^0.26.2" "@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": version "4.4.0" @@ -1559,54 +1462,59 @@ dependencies: eslint-visitor-keys "^3.3.0" -"@eslint-community/regexpp@^4.5.1": - version "4.5.1" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884" - integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== +"@eslint-community/regexpp@^4.10.0": + version "4.10.1" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.1.tgz#361461e5cb3845d874e61731c11cfedd664d83a0" + integrity sha512-Zm2NGpWELsQAD1xsJzGQpYfvICSsFkEpU0jxBjfdC6uNEWXcHnfs9hScFWtXVDVl+rBQJGrl4g1vcKIejpH9dA== "@eslint-community/regexpp@^4.6.1": version "4.8.1" resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.8.1.tgz#8c4bb756cc2aa7eaf13cfa5e69c83afb3260c20c" integrity sha512-PWiOzLIUAjN/w5K17PoF4n6sKBw0gqLHPhywmYHP4t1VFQQVYeb1yWsJwnMVEMl3tUHME7X/SJPZLmtG7XBDxQ== -"@eslint/eslintrc@^2.1.2": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.2.tgz#c6936b4b328c64496692f76944e755738be62396" - integrity sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g== +"@eslint/config-array@^0.15.1": + version "0.15.1" + resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.15.1.tgz#1fa78b422d98f4e7979f2211a1fde137e26c7d61" + integrity sha512-K4gzNq+yymn/EVsXYmf+SBcBro8MTf+aXJZUphM96CdzUEr+ClGDvAbpmaEK+cGVigVXIgs9gNmvHAlrzzY5JQ== + dependencies: + "@eslint/object-schema" "^2.1.3" + debug "^4.3.1" + minimatch "^3.0.5" + +"@eslint/eslintrc@^3.1.0": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-3.1.0.tgz#dbd3482bfd91efa663cbe7aa1f506839868207b6" + integrity sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ== dependencies: ajv "^6.12.4" debug "^4.3.2" - espree "^9.6.0" - globals "^13.19.0" + espree "^10.0.1" + globals "^14.0.0" ignore "^5.2.0" import-fresh "^3.2.1" js-yaml "^4.1.0" minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@8.49.0": - version "8.49.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.49.0.tgz#86f79756004a97fa4df866835093f1df3d03c333" - integrity sha512-1S8uAY/MTJqVx0SC4epBq+N2yhuwtNwLbJYNZyhL2pO1ZVKn5HFXav5T41Ryzy9K9V7ZId2JB2oy/W4aCd9/2w== +"@eslint/js@9.4.0": + version "9.4.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.4.0.tgz#96a2edd37ec0551ce5f9540705be23951c008a0c" + integrity sha512-fdI7VJjP3Rvc70lC4xkFXHB0fiPeojiL1PxVG6t1ZvXQrarj893PweuBTujxDUFk0Fxj4R7PIIAZ/aiiyZPZcg== -"@humanwhocodes/config-array@^0.11.11": - version "0.11.11" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.11.tgz#88a04c570dbbc7dd943e4712429c3df09bc32844" - integrity sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.5" +"@eslint/object-schema@^2.1.3": + version "2.1.3" + resolved "https://registry.yarnpkg.com/@eslint/object-schema/-/object-schema-2.1.3.tgz#e65ae80ee2927b4fd8c5c26b15ecacc2b2a6cc2a" + integrity sha512-HAbhAYKfsAC2EkTqve00ibWIZlaU74Z1EHwAjYr4PXF0YU2VEA1zSIKSSpKszRLRWwHzzRZXvK632u+uXzvsvw== "@humanwhocodes/module-importer@^1.0.1": version "1.0.1" resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@humanwhocodes/retry@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@humanwhocodes/retry/-/retry-0.3.0.tgz#6d86b8cb322660f03d3f0aa94b99bdd8e172d570" + integrity sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew== "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" @@ -1619,66 +1527,66 @@ js-yaml "^3.13.1" resolve-from "^5.0.0" -"@istanbuljs/schema@^0.1.2": +"@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": version "0.1.3" resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz" integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== -"@jest/console@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.6.1.tgz#b48ba7b9c34b51483e6d590f46e5837f1ab5f639" - integrity sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q== +"@jest/console@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.7.0.tgz#cd4822dbdb84529265c5a2bdb529a3c9cc950ffc" + integrity sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg== dependencies: - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" - jest-message-util "^29.6.1" - jest-util "^29.6.1" + jest-message-util "^29.7.0" + jest-util "^29.7.0" slash "^3.0.0" -"@jest/core@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.6.1.tgz#fac0d9ddf320490c93356ba201451825231e95f6" - integrity sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ== +"@jest/core@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.7.0.tgz#b6cccc239f30ff36609658c5a5e2291757ce448f" + integrity sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg== dependencies: - "@jest/console" "^29.6.1" - "@jest/reporters" "^29.6.1" - "@jest/test-result" "^29.6.1" - "@jest/transform" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/console" "^29.7.0" + "@jest/reporters" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" ci-info "^3.2.0" exit "^0.1.2" graceful-fs "^4.2.9" - jest-changed-files "^29.5.0" - jest-config "^29.6.1" - jest-haste-map "^29.6.1" - jest-message-util "^29.6.1" - jest-regex-util "^29.4.3" - jest-resolve "^29.6.1" - jest-resolve-dependencies "^29.6.1" - jest-runner "^29.6.1" - jest-runtime "^29.6.1" - jest-snapshot "^29.6.1" - jest-util "^29.6.1" - jest-validate "^29.6.1" - jest-watcher "^29.6.1" + jest-changed-files "^29.7.0" + jest-config "^29.7.0" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-resolve-dependencies "^29.7.0" + jest-runner "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" + jest-watcher "^29.7.0" micromatch "^4.0.4" - pretty-format "^29.6.1" + pretty-format "^29.7.0" slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.6.1.tgz#ee358fff2f68168394b4a50f18c68278a21fe82f" - integrity sha512-RMMXx4ws+Gbvw3DfLSuo2cfQlK7IwGbpuEWXCqyYDcqYTI+9Ju3a5hDnXaxjNsa6uKh9PQF2v+qg+RLe63tz5A== +"@jest/environment@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.7.0.tgz#24d61f54ff1f786f3cd4073b4b94416383baf2a7" + integrity sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw== dependencies: - "@jest/fake-timers" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" - jest-mock "^29.6.1" + jest-mock "^29.7.0" "@jest/expect-utils@^29.5.0": version "29.5.0" @@ -1687,53 +1595,53 @@ dependencies: jest-get-type "^29.4.3" -"@jest/expect-utils@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.6.1.tgz#ab83b27a15cdd203fe5f68230ea22767d5c3acc5" - integrity sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw== +"@jest/expect-utils@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.7.0.tgz#023efe5d26a8a70f21677d0a1afc0f0a44e3a1c6" + integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA== dependencies: - jest-get-type "^29.4.3" + jest-get-type "^29.6.3" -"@jest/expect@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.6.1.tgz#fef18265188f6a97601f1ea0a2912d81a85b4657" - integrity sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg== +"@jest/expect@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.7.0.tgz#76a3edb0cb753b70dfbfe23283510d3d45432bf2" + integrity sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ== dependencies: - expect "^29.6.1" - jest-snapshot "^29.6.1" + expect "^29.7.0" + jest-snapshot "^29.7.0" -"@jest/fake-timers@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.6.1.tgz#c773efddbc61e1d2efcccac008139f621de57c69" - integrity sha512-RdgHgbXyosCDMVYmj7lLpUwXA4c69vcNzhrt69dJJdf8azUrpRh3ckFCaTPNjsEeRi27Cig0oKDGxy5j7hOgHg== +"@jest/fake-timers@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.7.0.tgz#fd91bf1fffb16d7d0d24a426ab1a47a49881a565" + integrity sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ== dependencies: - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" "@sinonjs/fake-timers" "^10.0.2" "@types/node" "*" - jest-message-util "^29.6.1" - jest-mock "^29.6.1" - jest-util "^29.6.1" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-util "^29.7.0" -"@jest/globals@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.6.1.tgz#c8a8923e05efd757308082cc22893d82b8aa138f" - integrity sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A== +"@jest/globals@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.7.0.tgz#8d9290f9ec47ff772607fa864ca1d5a2efae1d4d" + integrity sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ== dependencies: - "@jest/environment" "^29.6.1" - "@jest/expect" "^29.6.1" - "@jest/types" "^29.6.1" - jest-mock "^29.6.1" + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/types" "^29.6.3" + jest-mock "^29.7.0" -"@jest/reporters@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.6.1.tgz#3325a89c9ead3cf97ad93df3a427549d16179863" - integrity sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA== +"@jest/reporters@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.7.0.tgz#04b262ecb3b8faa83b0b3d321623972393e8f4c7" + integrity sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^29.6.1" - "@jest/test-result" "^29.6.1" - "@jest/transform" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/console" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" "@jridgewell/trace-mapping" "^0.3.18" "@types/node" "*" chalk "^4.0.0" @@ -1742,25 +1650,18 @@ glob "^7.1.3" graceful-fs "^4.2.9" istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^5.1.0" + istanbul-lib-instrument "^6.0.0" istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.1.3" - jest-message-util "^29.6.1" - jest-util "^29.6.1" - jest-worker "^29.6.1" + jest-message-util "^29.7.0" + jest-util "^29.7.0" + jest-worker "^29.7.0" slash "^3.0.0" string-length "^4.0.1" strip-ansi "^6.0.0" v8-to-istanbul "^9.0.1" -"@jest/schemas@^28.1.3": - version "28.1.3" - resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-28.1.3.tgz" - integrity sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg== - dependencies: - "@sinclair/typebox" "^0.24.1" - "@jest/schemas@^29.4.3": version "29.4.3" resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz" @@ -1768,96 +1669,63 @@ dependencies: "@sinclair/typebox" "^0.25.16" -"@jest/schemas@^29.6.0": - version "29.6.0" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.0.tgz#0f4cb2c8e3dca80c135507ba5635a4fd755b0040" - integrity sha512-rxLjXyJBTL4LQeJW3aKo0M/+GkCOXsO+8i9Iu7eDb6KwtP65ayoDsitrdPBtujxQ88k4wI2FNYfa6TOGwSn6cQ== +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== dependencies: "@sinclair/typebox" "^0.27.8" -"@jest/source-map@^29.6.0": - version "29.6.0" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.6.0.tgz#bd34a05b5737cb1a99d43e1957020ac8e5b9ddb1" - integrity sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA== +"@jest/source-map@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.6.3.tgz#d90ba772095cf37a34a5eb9413f1b562a08554c4" + integrity sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw== dependencies: "@jridgewell/trace-mapping" "^0.3.18" callsites "^3.0.0" graceful-fs "^4.2.9" -"@jest/test-result@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.6.1.tgz#850e565a3f58ee8ca6ec424db00cb0f2d83c36ba" - integrity sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw== +"@jest/test-result@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.7.0.tgz#8db9a80aa1a097bb2262572686734baed9b1657c" + integrity sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA== dependencies: - "@jest/console" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/console" "^29.7.0" + "@jest/types" "^29.6.3" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz#e3e582ee074dd24ea9687d7d1aaf05ee3a9b068e" - integrity sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg== - dependencies: - "@jest/test-result" "^29.6.1" - graceful-fs "^4.2.9" - jest-haste-map "^29.6.1" - slash "^3.0.0" - -"@jest/transform@28.1.3": - version "28.1.3" - resolved "https://registry.npmjs.org/@jest/transform/-/transform-28.1.3.tgz" - integrity sha512-u5dT5di+oFI6hfcLOHGTAfmUxFRrjK+vnaP0kkVow9Md/M7V/MxqQMOz/VV25UZO8pzeA9PjfTpOu6BDuwSPQA== +"@jest/test-sequencer@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz#6cef977ce1d39834a3aea887a1726628a6f072ce" + integrity sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw== dependencies: - "@babel/core" "^7.11.6" - "@jest/types" "^28.1.3" - "@jridgewell/trace-mapping" "^0.3.13" - babel-plugin-istanbul "^6.1.1" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" + "@jest/test-result" "^29.7.0" graceful-fs "^4.2.9" - jest-haste-map "^28.1.3" - jest-regex-util "^28.0.2" - jest-util "^28.1.3" - micromatch "^4.0.4" - pirates "^4.0.4" + jest-haste-map "^29.7.0" slash "^3.0.0" - write-file-atomic "^4.0.1" -"@jest/transform@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.6.1.tgz#acb5606019a197cb99beda3c05404b851f441c92" - integrity sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg== +"@jest/transform@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.7.0.tgz#df2dd9c346c7d7768b8a06639994640c642e284c" + integrity sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw== dependencies: "@babel/core" "^7.11.6" - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" "@jridgewell/trace-mapping" "^0.3.18" babel-plugin-istanbul "^6.1.1" chalk "^4.0.0" convert-source-map "^2.0.0" fast-json-stable-stringify "^2.1.0" graceful-fs "^4.2.9" - jest-haste-map "^29.6.1" - jest-regex-util "^29.4.3" - jest-util "^29.6.1" + jest-haste-map "^29.7.0" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" micromatch "^4.0.4" pirates "^4.0.4" slash "^3.0.0" write-file-atomic "^4.0.2" -"@jest/types@^28.1.3": - version "28.1.3" - resolved "https://registry.npmjs.org/@jest/types/-/types-28.1.3.tgz" - integrity sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ== - dependencies: - "@jest/schemas" "^28.1.3" - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^17.0.8" - chalk "^4.0.0" - "@jest/types@^29.5.0": version "29.5.0" resolved "https://registry.npmjs.org/@jest/types/-/types-29.5.0.tgz" @@ -1870,12 +1738,12 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" -"@jest/types@^29.6.1": - version "29.6.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.1.tgz#ae79080278acff0a6af5eb49d063385aaa897bf2" - integrity sha512-tPKQNMPuXgvdOn2/Lg9HNfUvjYVGolt04Hp03f5hAk878uwOLikN+JzeLY0HcVgKgFl9Hs3EIqpu3WX27XNhnw== +"@jest/types@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" + integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== dependencies: - "@jest/schemas" "^29.6.0" + "@jest/schemas" "^29.6.3" "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" "@types/node" "*" @@ -1891,27 +1759,46 @@ "@jridgewell/sourcemap-codec" "^1.4.10" "@jridgewell/trace-mapping" "^0.3.9" +"@jridgewell/gen-mapping@^0.3.5": + version "0.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + "@jridgewell/resolve-uri@3.1.0": version "3.1.0" resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz" integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== +"@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + "@jridgewell/set-array@^1.0.1": version "1.1.2" resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz" integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + "@jridgewell/sourcemap-codec@1.4.14": version "1.4.14" resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz" integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== -"@jridgewell/sourcemap-codec@^1.4.10": +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": version "1.4.15" resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.13", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.9": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.9": version "0.3.18" resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz" integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== @@ -1919,6 +1806,14 @@ "@jridgewell/resolve-uri" "3.1.0" "@jridgewell/sourcemap-codec" "1.4.14" +"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + "@jsdevtools/ono@^7.1.3": version "7.1.3" resolved "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz" @@ -2049,11 +1944,6 @@ mz "^2.7.0" prettier "^2.6.2" -"@sinclair/typebox@^0.24.1": - version "0.24.51" - resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.51.tgz" - integrity sha512-1P1OROm/rdubP5aFDSZQILU0vrLCJ4fvHt6EoqHEM+2D/G5MK3bIaymUKLit8Js9gbns5UyJnkP/TZROLw4tUA== - "@sinclair/typebox@^0.25.16": version "0.25.24" resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz" @@ -2111,7 +2001,15 @@ dependencies: "@babel/types" "^7.20.7" -"@types/glob@^7.1.3": +"@types/glob@*": + version "8.1.0" + resolved "https://registry.yarnpkg.com/@types/glob/-/glob-8.1.0.tgz#b63e70155391b0584dce44e7ea25190bbc38f2fc" + integrity sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w== + dependencies: + "@types/minimatch" "^5.1.2" + "@types/node" "*" + +"@types/glob@^7.1.3", "@types/glob@~7.2.0": version "7.2.0" resolved "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz" integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== @@ -2145,15 +2043,15 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@^29.5.3": - version "29.5.3" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.3.tgz#7a35dc0044ffb8b56325c6802a4781a626b05777" - integrity sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA== +"@types/jest@^29.5.12": + version "29.5.12" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.12.tgz#7f7dc6eb4cf246d2474ed78744b05d06ce025544" + integrity sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw== dependencies: expect "^29.0.0" pretty-format "^29.0.0" -"@types/json-schema@^7.0.11", "@types/json-schema@^7.0.12": +"@types/json-schema@^7.0.11": version "7.0.12" resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz" integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== @@ -2168,7 +2066,7 @@ resolved "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz" integrity sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA== -"@types/minimatch@*": +"@types/minimatch@*", "@types/minimatch@^5.1.2": version "5.1.2" resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz" integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== @@ -2178,20 +2076,33 @@ resolved "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz" integrity sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg== -"@types/node@^20.6.2": - version "20.6.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.6.2.tgz#a065925409f59657022e9063275cd0b9bd7e1b12" - integrity sha512-Y+/1vGBHV/cYk6OI1Na/LHzwnlNCAfU3ZNGrc1LdRe/LAIbdDPTTv/HU3M7yXN448aTVDq3eKRm2cg7iKLb8gw== +"@types/node@^20.14.1": + version "20.14.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.1.tgz#2434dbcb1f039e31f2c0e9969da93f52cf6348f3" + integrity sha512-T2MzSGEu+ysB/FkWfqmhV3PLyQlowdptmmgD20C6QxsS8Fmv5SjpZ1ayXaEC0S21/h5UJ9iA6W/5vSNU5l00OA== + dependencies: + undici-types "~5.26.4" -"@types/prettier@^2.1.5", "@types/prettier@^2.6.1": +"@types/prettier@^2.6.1": version "2.7.3" resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz" integrity sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA== -"@types/semver@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" - integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== +"@types/rimraf@3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@types/rimraf/-/rimraf-3.0.2.tgz#a63d175b331748e5220ad48c901d7bbf1f44eef8" + integrity sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ== + dependencies: + "@types/glob" "*" + "@types/node" "*" + +"@types/shelljs@0.8.15": + version "0.8.15" + resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.8.15.tgz#22c6ab9dfe05cec57d8e6cb1a95ea173aee9fcac" + integrity sha512-vzmnCHl6hViPu9GNLQJ+DZFd6BQI2DBTUeOvYHqkWQLMfKAAQYMb/xAmZkTogZI/vqXHCWkqDRymDI5p0QTi5Q== + dependencies: + "@types/glob" "~7.2.0" + "@types/node" "*" "@types/stack-utils@^2.0.0": version "2.0.1" @@ -2210,100 +2121,96 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.2.tgz#f18cc75c9cceac8080a9dc2e7d166008c5207b9f" - integrity sha512-ooaHxlmSgZTM6CHYAFRlifqh1OAr3PAQEwi7lhYhaegbnXrnh7CDcHmc3+ihhbQC7H0i4JF0psI5ehzkF6Yl6Q== +"@typescript-eslint/eslint-plugin@^7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.12.0.tgz#f87a32e8972b8a60024f2f8f12205e7c8108bc41" + integrity sha512-7F91fcbuDf/d3S8o21+r3ZncGIke/+eWk0EpO21LXhDfLahriZF9CGj4fbAetEjlaBdjdSm9a6VeXbpbT6Z40Q== dependencies: - "@eslint-community/regexpp" "^4.5.1" - "@typescript-eslint/scope-manager" "6.7.2" - "@typescript-eslint/type-utils" "6.7.2" - "@typescript-eslint/utils" "6.7.2" - "@typescript-eslint/visitor-keys" "6.7.2" - debug "^4.3.4" + "@eslint-community/regexpp" "^4.10.0" + "@typescript-eslint/scope-manager" "7.12.0" + "@typescript-eslint/type-utils" "7.12.0" + "@typescript-eslint/utils" "7.12.0" + "@typescript-eslint/visitor-keys" "7.12.0" graphemer "^1.4.0" - ignore "^5.2.4" + ignore "^5.3.1" natural-compare "^1.4.0" - semver "^7.5.4" - ts-api-utils "^1.0.1" + ts-api-utils "^1.3.0" -"@typescript-eslint/parser@^6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.7.2.tgz#e0ae93771441b9518e67d0660c79e3a105497af4" - integrity sha512-KA3E4ox0ws+SPyxQf9iSI25R6b4Ne78ORhNHeVKrPQnoYsb9UhieoiRoJgrzgEeKGOXhcY1i8YtOeCHHTDa6Fw== +"@typescript-eslint/parser@^7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.12.0.tgz#8761df3345528b35049353db80010b385719b1c3" + integrity sha512-dm/J2UDY3oV3TKius2OUZIFHsomQmpHtsV0FTh1WO8EKgHLQ1QCADUqscPgTpU+ih1e21FQSRjXckHn3txn6kQ== dependencies: - "@typescript-eslint/scope-manager" "6.7.2" - "@typescript-eslint/types" "6.7.2" - "@typescript-eslint/typescript-estree" "6.7.2" - "@typescript-eslint/visitor-keys" "6.7.2" + "@typescript-eslint/scope-manager" "7.12.0" + "@typescript-eslint/types" "7.12.0" + "@typescript-eslint/typescript-estree" "7.12.0" + "@typescript-eslint/visitor-keys" "7.12.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz#cf59a2095d2f894770c94be489648ad1c78dc689" - integrity sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw== +"@typescript-eslint/scope-manager@7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.12.0.tgz#259c014362de72dd34f995efe6bd8dda486adf58" + integrity sha512-itF1pTnN6F3unPak+kutH9raIkL3lhH1YRPGgt7QQOh43DQKVJXmWkpb+vpc/TiDHs6RSd9CTbDsc/Y+Ygq7kg== dependencies: - "@typescript-eslint/types" "6.7.2" - "@typescript-eslint/visitor-keys" "6.7.2" + "@typescript-eslint/types" "7.12.0" + "@typescript-eslint/visitor-keys" "7.12.0" -"@typescript-eslint/type-utils@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.7.2.tgz#ed921c9db87d72fa2939fee242d700561454f367" - integrity sha512-36F4fOYIROYRl0qj95dYKx6kybddLtsbmPIYNK0OBeXv2j9L5nZ17j9jmfy+bIDHKQgn2EZX+cofsqi8NPATBQ== +"@typescript-eslint/type-utils@7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.12.0.tgz#9dfaaa1972952f395ec5be4f5bbfc4d3cdc63908" + integrity sha512-lib96tyRtMhLxwauDWUp/uW3FMhLA6D0rJ8T7HmH7x23Gk1Gwwu8UZ94NMXBvOELn6flSPiBrCKlehkiXyaqwA== dependencies: - "@typescript-eslint/typescript-estree" "6.7.2" - "@typescript-eslint/utils" "6.7.2" + "@typescript-eslint/typescript-estree" "7.12.0" + "@typescript-eslint/utils" "7.12.0" debug "^4.3.4" - ts-api-utils "^1.0.1" + ts-api-utils "^1.3.0" -"@typescript-eslint/types@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.7.2.tgz#75a615a6dbeca09cafd102fe7f465da1d8a3c066" - integrity sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg== +"@typescript-eslint/types@7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.12.0.tgz#bf208f971a8da1e7524a5d9ae2b5f15192a37981" + integrity sha512-o+0Te6eWp2ppKY3mLCU+YA9pVJxhUJE15FV7kxuD9jgwIAa+w/ycGJBMrYDTpVGUM/tgpa9SeMOugSabWFq7bg== -"@typescript-eslint/typescript-estree@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz#ce5883c23b581a5caf878af641e49dd0349238c7" - integrity sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ== +"@typescript-eslint/typescript-estree@7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.12.0.tgz#e6c1074f248b3db6573ab6a7c47a39c4cd498ff9" + integrity sha512-5bwqLsWBULv1h6pn7cMW5dXX/Y2amRqLaKqsASVwbBHMZSnHqE/HN4vT4fE0aFsiwxYvr98kqOWh1a8ZKXalCQ== dependencies: - "@typescript-eslint/types" "6.7.2" - "@typescript-eslint/visitor-keys" "6.7.2" + "@typescript-eslint/types" "7.12.0" + "@typescript-eslint/visitor-keys" "7.12.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" - semver "^7.5.4" - ts-api-utils "^1.0.1" + minimatch "^9.0.4" + semver "^7.6.0" + ts-api-utils "^1.3.0" -"@typescript-eslint/utils@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.7.2.tgz#b9ef0da6f04932167a9222cb4ac59cb187165ebf" - integrity sha512-ZCcBJug/TS6fXRTsoTkgnsvyWSiXwMNiPzBUani7hDidBdj1779qwM1FIAmpH4lvlOZNF3EScsxxuGifjpLSWQ== +"@typescript-eslint/utils@7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.12.0.tgz#c6e58fd7f724cdccc848f71e388ad80cbdb95dd0" + integrity sha512-Y6hhwxwDx41HNpjuYswYp6gDbkiZ8Hin9Bf5aJQn1bpTs3afYY4GX+MPYxma8jtoIV2GRwTM/UJm/2uGCVv+DQ== dependencies: "@eslint-community/eslint-utils" "^4.4.0" - "@types/json-schema" "^7.0.12" - "@types/semver" "^7.5.0" - "@typescript-eslint/scope-manager" "6.7.2" - "@typescript-eslint/types" "6.7.2" - "@typescript-eslint/typescript-estree" "6.7.2" - semver "^7.5.4" + "@typescript-eslint/scope-manager" "7.12.0" + "@typescript-eslint/types" "7.12.0" + "@typescript-eslint/typescript-estree" "7.12.0" -"@typescript-eslint/visitor-keys@6.7.2": - version "6.7.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz#4cb2bd786f1f459731b0ad1584c9f73e1c7a4d5c" - integrity sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ== +"@typescript-eslint/visitor-keys@7.12.0": + version "7.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.12.0.tgz#c053b55a996679528beeedd8e565710ce1ae1ad3" + integrity sha512-uZk7DevrQLL3vSnfFl5bj4sL75qC9D6EdjemIdbtkuUmIheWpuiiylSY01JxJE7+zGrOWDZrp1WxOuDntvKrHQ== dependencies: - "@typescript-eslint/types" "6.7.2" - eslint-visitor-keys "^3.4.1" + "@typescript-eslint/types" "7.12.0" + eslint-visitor-keys "^3.4.3" acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn@^8.9.0: - version "8.10.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" - integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== +acorn@^8.11.3: + version "8.11.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" + integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== ajv@^6.12.4: version "6.12.6" @@ -2413,12 +2320,10 @@ ast-stringify@0.1.0: dependencies: "@babel/runtime" "^7.11.2" -axios@^0.21.2: - version "0.21.4" - resolved "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz" - integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== - dependencies: - follow-redirects "^1.14.0" +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== axios@^0.26.1: version "0.26.1" @@ -2427,15 +2332,24 @@ axios@^0.26.1: dependencies: follow-redirects "^1.14.8" -babel-jest@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.6.1.tgz#a7141ad1ed5ec50238f3cd36127636823111233a" - integrity sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A== +axios@^1.6.0: + version "1.7.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.2.tgz#b625db8a7051fbea61c35a3cbb3a1daa7b9c7621" + integrity sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +babel-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5" + integrity sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg== dependencies: - "@jest/transform" "^29.6.1" + "@jest/transform" "^29.7.0" "@types/babel__core" "^7.1.14" babel-plugin-istanbul "^6.1.1" - babel-preset-jest "^29.5.0" + babel-preset-jest "^29.6.3" chalk "^4.0.0" graceful-fs "^4.2.9" slash "^3.0.0" @@ -2451,63 +2365,39 @@ babel-plugin-istanbul@^6.1.1: istanbul-lib-instrument "^5.0.4" test-exclude "^6.0.0" -babel-plugin-jest-hoist@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz" - integrity sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w== +babel-plugin-jest-hoist@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz#aadbe943464182a8922c3c927c3067ff40d24626" + integrity sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg== dependencies: "@babel/template" "^7.3.3" "@babel/types" "^7.3.3" "@types/babel__core" "^7.1.14" "@types/babel__traverse" "^7.0.6" -babel-plugin-polyfill-corejs2@^0.3.2: - version "0.3.3" - resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz" - integrity sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q== - dependencies: - "@babel/compat-data" "^7.17.7" - "@babel/helper-define-polyfill-provider" "^0.3.3" - semver "^6.1.1" - -babel-plugin-polyfill-corejs2@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.4.tgz#9f9a0e1cd9d645cc246a5e094db5c3aa913ccd2b" - integrity sha512-9WeK9snM1BfxB38goUEv2FLnA6ja07UMfazFHzCXUb3NyDZAwfXvQiURQ6guTTMeHcOsdknULm1PDhs4uWtKyA== +babel-plugin-polyfill-corejs2@^0.4.10: + version "0.4.11" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz#30320dfe3ffe1a336c15afdcdafd6fd615b25e33" + integrity sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q== dependencies: "@babel/compat-data" "^7.22.6" - "@babel/helper-define-polyfill-provider" "^0.4.1" - "@nicolo-ribaudo/semver-v6" "^6.3.3" - -babel-plugin-polyfill-corejs3@^0.5.3: - version "0.5.3" - resolved "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.3.tgz" - integrity sha512-zKsXDh0XjnrUEW0mxIHLfjBfnXSMr5Q/goMe/fxpQnLm07mcOZiIZHBNWCMx60HmdvjxfXcalac0tfFg0wqxyw== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.3.2" - core-js-compat "^3.21.0" - -babel-plugin-polyfill-corejs3@^0.8.2: - version "0.8.2" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.2.tgz#d406c5738d298cd9c66f64a94cf8d5904ce4cc5e" - integrity sha512-Cid+Jv1BrY9ReW9lIfNlNpsI53N+FN7gE+f73zLAUbr9C52W4gKLWSByx47pfDJsEysojKArqOtOKZSVIIUTuQ== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.4.1" - core-js-compat "^3.31.0" + "@babel/helper-define-polyfill-provider" "^0.6.2" + semver "^6.3.1" -babel-plugin-polyfill-regenerator@^0.4.0: - version "0.4.1" - resolved "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz" - integrity sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw== +babel-plugin-polyfill-corejs3@^0.10.4: + version "0.10.4" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.4.tgz#789ac82405ad664c20476d0233b485281deb9c77" + integrity sha512-25J6I8NGfa5YkCDogHRID3fVCadIR8/pGl1/spvCkzb6lVn6SR3ojpx9nOn9iEBcUsjY24AmdKm5khcfKdylcg== dependencies: - "@babel/helper-define-polyfill-provider" "^0.3.3" + "@babel/helper-define-polyfill-provider" "^0.6.1" + core-js-compat "^3.36.1" -babel-plugin-polyfill-regenerator@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.1.tgz#ace7a5eced6dff7d5060c335c52064778216afd3" - integrity sha512-L8OyySuI6OSQ5hFy9O+7zFjyr4WhAfRjLIOkhQGYl+emwJkd/S4XXT1JpfrgR1jrQ1NcGiOh+yAdGlF8pnC3Jw== +babel-plugin-polyfill-regenerator@^0.6.1: + version "0.6.2" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz#addc47e240edd1da1058ebda03021f382bba785e" + integrity sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg== dependencies: - "@babel/helper-define-polyfill-provider" "^0.4.1" + "@babel/helper-define-polyfill-provider" "^0.6.2" babel-preset-current-node-syntax@^1.0.0: version "1.0.1" @@ -2527,12 +2417,12 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" -babel-preset-jest@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz" - integrity sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg== +babel-preset-jest@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz#fa05fa510e7d493896d7b0dd2033601c840f171c" + integrity sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA== dependencies: - babel-plugin-jest-hoist "^29.5.0" + babel-plugin-jest-hoist "^29.6.3" babel-preset-current-node-syntax "^1.0.0" balanced-match@^1.0.0: @@ -2596,7 +2486,7 @@ brorand@^1.1.0: resolved "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz" integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== -browserslist@^4.21.3, browserslist@^4.21.5, browserslist@^4.21.9: +browserslist@^4.21.3, browserslist@^4.21.9: version "4.21.9" resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz" integrity sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg== @@ -2606,6 +2496,16 @@ browserslist@^4.21.3, browserslist@^4.21.5, browserslist@^4.21.9: node-releases "^2.0.12" update-browserslist-db "^1.0.11" +browserslist@^4.22.2, browserslist@^4.23.0: + version "4.23.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" + integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== + dependencies: + caniuse-lite "^1.0.30001587" + electron-to-chromium "^1.4.668" + node-releases "^2.0.14" + update-browserslist-db "^1.0.13" + bser@2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" @@ -2643,6 +2543,11 @@ caniuse-lite@^1.0.30001503: resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001504.tgz" integrity sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q== +caniuse-lite@^1.0.30001587: + version "1.0.30001627" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001627.tgz#8071c42d468e06ed2fb2c545efe79a663fd326ab" + integrity sha512-4zgNiB8nTyV/tHhwZrFs88ryjls/lHiqFhrxCW4qSTeuRByBVnPYpDInchOIySWknznucaf31Z4KYqjfbrecVw== + case@1.6.3: version "1.6.3" resolved "https://registry.npmjs.org/case/-/case-1.6.3.tgz" @@ -2786,12 +2691,19 @@ colors@^1.1.2: resolved "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + concat-map@0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== -convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: +convert-source-map@^1.6.0, convert-source-map@^1.7.0: version "1.9.0" resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz" integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== @@ -2814,13 +2726,6 @@ copyfiles@^2.4.1: untildify "^4.0.0" yargs "^16.1.0" -core-js-compat@^3.21.0, core-js-compat@^3.22.1: - version "3.31.0" - resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.31.0.tgz" - integrity sha512-hM7YCu1cU6Opx7MXNu0NuumM0ezNeAeRKadixyiQELWY3vT3De9S4J5ZBMraWV2vZnrE1Cirl0GtFtDtMUXzPw== - dependencies: - browserslist "^4.21.5" - core-js-compat@^3.31.0: version "3.31.1" resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.31.1.tgz#5084ad1a46858df50ff89ace152441a63ba7aae0" @@ -2828,18 +2733,35 @@ core-js-compat@^3.31.0: dependencies: browserslist "^4.21.9" +core-js-compat@^3.36.1: + version "3.37.1" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.37.1.tgz#c844310c7852f4bdf49b8d339730b97e17ff09ee" + integrity sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg== + dependencies: + browserslist "^4.23.0" + core-util-is@~1.0.0: version "1.0.3" resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz" integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== -cosmjs-types@^0.8.0: - version "0.8.0" - resolved "https://registry.npmjs.org/cosmjs-types/-/cosmjs-types-0.8.0.tgz" - integrity sha512-Q2Mj95Fl0PYMWEhA2LuGEIhipF7mQwd9gTQ85DdP9jjjopeoGaDxvmPa5nakNzsq7FnO1DMTatXTAx6bxMH7Lg== +cosmjs-types@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/cosmjs-types/-/cosmjs-types-0.9.0.tgz#c3bc482d28c7dfa25d1445093fdb2d9da1f6cfcc" + integrity sha512-MN/yUe6mkJwHnCFfsNPeCfXVhyxHYW6c/xDUzrSbBycYzw++XvWDMJArXp2pLdgD6FQ8DW79vkPjeNKVrXaHeQ== + +create-jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320" + integrity sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q== dependencies: - long "^4.0.0" - protobufjs "~6.11.2" + "@jest/types" "^29.6.3" + chalk "^4.0.0" + exit "^0.1.2" + graceful-fs "^4.2.9" + jest-config "^29.7.0" + jest-util "^29.7.0" + prompts "^2.0.1" cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" @@ -2870,10 +2792,17 @@ debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: dependencies: ms "2.1.2" -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz" - integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== +debug@^4.3.1: + version "4.3.5" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" + integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + dependencies: + ms "2.1.2" + +dedent@^1.0.0: + version "1.5.3" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" + integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== deep-is@^0.1.3: version "0.1.4" @@ -2898,6 +2827,11 @@ define-properties@^1.1.3: has-property-descriptors "^1.0.0" object-keys "^1.1.1" +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + detect-newline@^3.0.0: version "3.1.0" resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz" @@ -2908,6 +2842,11 @@ diff-sequences@^29.4.3: resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz" integrity sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA== +diff-sequences@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" + integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== + dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" @@ -2915,23 +2854,16 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -dotty@0.1.2: - version "0.1.2" - resolved "https://registry.npmjs.org/dotty/-/dotty-0.1.2.tgz" - integrity sha512-V0EWmKeH3DEhMwAZ+8ZB2Ao4OK6p++Z0hsDtZq3N0+0ZMVqkzrcEGROvOnZpLnvBg5PTNG23JEDLAm64gPaotQ== - electron-to-chromium@^1.4.431: version "1.4.433" resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.433.tgz" integrity sha512-MGO1k0w1RgrfdbLVwmXcDhHHuxCn2qRgR7dYsJvWFKDttvYPx6FNzCGG0c/fBBvzK2LDh3UV7Tt9awnHnvAAUQ== +electron-to-chromium@^1.4.668: + version "1.4.789" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.789.tgz#fec941cb753ee139da562a5a8ff31fc3e828b411" + integrity sha512-0VbyiaXoT++Fi2vHGo2ThOeS6X3vgRCWrjPeO2FeIAWL6ItiSJ9BqlH8LfCXe3X1IdcG+S0iLoNaxQWhfZoGzQ== + elliptic@^6.5.4: version "6.5.4" resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz" @@ -3003,6 +2935,11 @@ escalade@^3.1.1: resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== +escalade@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== + escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" @@ -3018,20 +2955,20 @@ escape-string-regexp@^4.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -eslint-config-prettier@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz#eb25485946dd0c66cd216a46232dc05451518d1f" - integrity sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw== +eslint-config-prettier@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f" + integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw== -eslint-scope@^7.2.2: - version "7.2.2" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" - integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== +eslint-scope@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.0.1.tgz#a9601e4b81a0b9171657c343fb13111688963cfc" + integrity sha512-pL8XjgP4ZOmmwfFE8mEhSxA7ZY4C+LWyqjQ3o4yWkkmD0qcMT9kkW3zWHOczhWcjTSgqycYAgwSlXvZltv65og== dependencies: esrecurse "^4.3.0" estraverse "^5.2.0" -eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: +eslint-visitor-keys@^3.3.0: version "3.4.1" resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz" integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== @@ -3041,40 +2978,42 @@ eslint-visitor-keys@^3.4.3: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== -eslint@^8.49.0: - version "8.49.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.49.0.tgz#09d80a89bdb4edee2efcf6964623af1054bf6d42" - integrity sha512-jw03ENfm6VJI0jA9U+8H5zfl5b+FvuU3YYvZRdZHOlU2ggJkxrlkJH4HcDrZpj6YwD8kuYqvQM8LyesoazrSOQ== +eslint-visitor-keys@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz#e3adc021aa038a2a8e0b2f8b0ce8f66b9483b1fb" + integrity sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw== + +eslint@^9.4.0: + version "9.4.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-9.4.0.tgz#79150c3610ae606eb131f1d648d5f43b3d45f3cd" + integrity sha512-sjc7Y8cUD1IlwYcTS9qPSvGjAC8Ne9LctpxKKu3x/1IC9bnOg98Zy6GxEJUfr1NojMgVPlyANXYns8oE2c1TAA== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.6.1" - "@eslint/eslintrc" "^2.1.2" - "@eslint/js" "8.49.0" - "@humanwhocodes/config-array" "^0.11.11" + "@eslint/config-array" "^0.15.1" + "@eslint/eslintrc" "^3.1.0" + "@eslint/js" "9.4.0" "@humanwhocodes/module-importer" "^1.0.1" + "@humanwhocodes/retry" "^0.3.0" "@nodelib/fs.walk" "^1.2.8" ajv "^6.12.4" chalk "^4.0.0" cross-spawn "^7.0.2" debug "^4.3.2" - doctrine "^3.0.0" escape-string-regexp "^4.0.0" - eslint-scope "^7.2.2" - eslint-visitor-keys "^3.4.3" - espree "^9.6.1" + eslint-scope "^8.0.1" + eslint-visitor-keys "^4.0.0" + espree "^10.0.1" esquery "^1.4.2" esutils "^2.0.2" fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" + file-entry-cache "^8.0.0" find-up "^5.0.0" glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" ignore "^5.2.0" imurmurhash "^0.1.4" is-glob "^4.0.0" is-path-inside "^3.0.3" - js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" lodash.merge "^4.6.2" @@ -3084,23 +3023,14 @@ eslint@^8.49.0: strip-ansi "^6.0.1" text-table "^0.2.0" -espree@^9.6.0: - version "9.6.0" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.0.tgz#80869754b1c6560f32e3b6929194a3fe07c5b82f" - integrity sha512-1FH/IiruXZ84tpUlm0aCUEwMl2Ho5ilqVh0VvQXw+byAz/4SAciyHLlfmL5WYqsvD38oymdUwBss0LtK8m4s/A== +espree@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-10.0.1.tgz#600e60404157412751ba4a6f3a2ee1a42433139f" + integrity sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww== dependencies: - acorn "^8.9.0" + acorn "^8.11.3" acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - -espree@^9.6.1: - version "9.6.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" - integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== - dependencies: - acorn "^8.9.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" + eslint-visitor-keys "^4.0.0" esprima@^4.0.0: version "4.0.1" @@ -3170,17 +3100,16 @@ expect@^29.0.0: jest-message-util "^29.5.0" jest-util "^29.5.0" -expect@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/expect/-/expect-29.6.1.tgz#64dd1c8f75e2c0b209418f2b8d36a07921adfdf1" - integrity sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g== +expect@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc" + integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== dependencies: - "@jest/expect-utils" "^29.6.1" - "@types/node" "*" - jest-get-type "^29.4.3" - jest-matcher-utils "^29.6.1" - jest-message-util "^29.6.1" - jest-util "^29.6.1" + "@jest/expect-utils" "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" ext@^1.1.2: version "1.7.0" @@ -3254,12 +3183,12 @@ figures@^2.0.0: dependencies: escape-string-regexp "^1.0.5" -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== +file-entry-cache@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-8.0.0.tgz#7787bddcf1131bffb92636c69457bbc0edd6d81f" + integrity sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ== dependencies: - flat-cache "^3.0.4" + flat-cache "^4.0.0" fill-range@^7.0.1: version "7.0.1" @@ -3284,24 +3213,38 @@ find-up@^5.0.0: locate-path "^6.0.0" path-exists "^4.0.0" -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== +flat-cache@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-4.0.1.tgz#0ece39fcb14ee012f4b0410bd33dd9c1f011127c" + integrity sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw== dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" + flatted "^3.2.9" + keyv "^4.5.4" -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== +flatted@^3.2.9: + version "3.3.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" + integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== -follow-redirects@^1.14.0, follow-redirects@^1.14.8: +follow-redirects@^1.14.8: version "1.15.2" resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== +follow-redirects@^1.15.6: + version "1.15.6" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" + integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== + +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + fs-minipass@^2.0.0: version "2.1.0" resolved "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz" @@ -3413,12 +3356,10 @@ globals@^11.1.0: resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -globals@^13.19.0: - version "13.20.0" - resolved "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz" - integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== - dependencies: - type-fest "^0.20.2" +globals@^14.0.0: + version "14.0.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e" + integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ== globalthis@^1.0.1: version "1.0.3" @@ -3524,11 +3465,16 @@ iconv-lite@^0.4.17, iconv-lite@^0.4.24: dependencies: safer-buffer ">= 2.1.2 < 3" -ignore@^5.2.0, ignore@^5.2.4: +ignore@^5.2.0: version "5.2.4" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== +ignore@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" + integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== + import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" @@ -3718,7 +3664,7 @@ istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz" integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== -istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: +istanbul-lib-instrument@^5.0.4: version "5.2.1" resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz" integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== @@ -3729,6 +3675,17 @@ istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: istanbul-lib-coverage "^3.2.0" semver "^6.3.0" +istanbul-lib-instrument@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz#91655936cf7380e4e473383081e38478b69993b1" + integrity sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw== + dependencies: + "@babel/core" "^7.23.9" + "@babel/parser" "^7.23.9" + "@istanbuljs/schema" "^0.1.3" + istanbul-lib-coverage "^3.2.0" + semver "^7.5.4" + istanbul-lib-report@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz" @@ -3755,83 +3712,83 @@ istanbul-reports@^3.1.3: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" -jest-changed-files@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz" - integrity sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag== +jest-changed-files@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a" + integrity sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w== dependencies: execa "^5.0.0" + jest-util "^29.7.0" p-limit "^3.1.0" -jest-circus@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.6.1.tgz#861dab37e71a89907d1c0fabc54a0019738ed824" - integrity sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ== +jest-circus@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.7.0.tgz#b6817a45fcc835d8b16d5962d0c026473ee3668a" + integrity sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw== dependencies: - "@jest/environment" "^29.6.1" - "@jest/expect" "^29.6.1" - "@jest/test-result" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/environment" "^29.7.0" + "@jest/expect" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" co "^4.6.0" - dedent "^0.7.0" + dedent "^1.0.0" is-generator-fn "^2.0.0" - jest-each "^29.6.1" - jest-matcher-utils "^29.6.1" - jest-message-util "^29.6.1" - jest-runtime "^29.6.1" - jest-snapshot "^29.6.1" - jest-util "^29.6.1" + jest-each "^29.7.0" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-runtime "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" p-limit "^3.1.0" - pretty-format "^29.6.1" + pretty-format "^29.7.0" pure-rand "^6.0.0" slash "^3.0.0" stack-utils "^2.0.3" -jest-cli@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.6.1.tgz#99d9afa7449538221c71f358f0fdd3e9c6e89f72" - integrity sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing== +jest-cli@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.7.0.tgz#5592c940798e0cae677eec169264f2d839a37995" + integrity sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg== dependencies: - "@jest/core" "^29.6.1" - "@jest/test-result" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/core" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" chalk "^4.0.0" + create-jest "^29.7.0" exit "^0.1.2" - graceful-fs "^4.2.9" import-local "^3.0.2" - jest-config "^29.6.1" - jest-util "^29.6.1" - jest-validate "^29.6.1" - prompts "^2.0.1" + jest-config "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" yargs "^17.3.1" -jest-config@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.6.1.tgz#d785344509065d53a238224c6cdc0ed8e2f2f0dd" - integrity sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ== +jest-config@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.7.0.tgz#bcbda8806dbcc01b1e316a46bb74085a84b0245f" + integrity sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ== dependencies: "@babel/core" "^7.11.6" - "@jest/test-sequencer" "^29.6.1" - "@jest/types" "^29.6.1" - babel-jest "^29.6.1" + "@jest/test-sequencer" "^29.7.0" + "@jest/types" "^29.6.3" + babel-jest "^29.7.0" chalk "^4.0.0" ci-info "^3.2.0" deepmerge "^4.2.2" glob "^7.1.3" graceful-fs "^4.2.9" - jest-circus "^29.6.1" - jest-environment-node "^29.6.1" - jest-get-type "^29.4.3" - jest-regex-util "^29.4.3" - jest-resolve "^29.6.1" - jest-runner "^29.6.1" - jest-util "^29.6.1" - jest-validate "^29.6.1" + jest-circus "^29.7.0" + jest-environment-node "^29.7.0" + jest-get-type "^29.6.3" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-runner "^29.7.0" + jest-util "^29.7.0" + jest-validate "^29.7.0" micromatch "^4.0.4" parse-json "^5.2.0" - pretty-format "^29.6.1" + pretty-format "^29.7.0" slash "^3.0.0" strip-json-comments "^3.1.1" @@ -3845,96 +3802,82 @@ jest-diff@^29.5.0: jest-get-type "^29.4.3" pretty-format "^29.5.0" -jest-diff@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.6.1.tgz#13df6db0a89ee6ad93c747c75c85c70ba941e545" - integrity sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg== +jest-diff@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" + integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== dependencies: chalk "^4.0.0" - diff-sequences "^29.4.3" - jest-get-type "^29.4.3" - pretty-format "^29.6.1" + diff-sequences "^29.6.3" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" -jest-docblock@^29.4.3: - version "29.4.3" - resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz" - integrity sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg== +jest-docblock@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.7.0.tgz#8fddb6adc3cdc955c93e2a87f61cfd350d5d119a" + integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g== dependencies: detect-newline "^3.0.0" -jest-each@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.6.1.tgz#975058e5b8f55c6780beab8b6ab214921815c89c" - integrity sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ== +jest-each@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.7.0.tgz#162a9b3f2328bdd991beaabffbb74745e56577d1" + integrity sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ== dependencies: - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" chalk "^4.0.0" - jest-get-type "^29.4.3" - jest-util "^29.6.1" - pretty-format "^29.6.1" - -jest-environment-node@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.6.1.tgz#08a122dece39e58bc388da815a2166c58b4abec6" - integrity sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ== - dependencies: - "@jest/environment" "^29.6.1" - "@jest/fake-timers" "^29.6.1" - "@jest/types" "^29.6.1" + jest-get-type "^29.6.3" + jest-util "^29.7.0" + pretty-format "^29.7.0" + +jest-environment-node@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.7.0.tgz#0b93e111dda8ec120bc8300e6d1fb9576e164376" + integrity sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" - jest-mock "^29.6.1" - jest-util "^29.6.1" + jest-mock "^29.7.0" + jest-util "^29.7.0" jest-get-type@^29.4.3: version "29.4.3" resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz" integrity sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg== -jest-haste-map@^28.1.3: - version "28.1.3" - resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-28.1.3.tgz" - integrity sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA== - dependencies: - "@jest/types" "^28.1.3" - "@types/graceful-fs" "^4.1.3" - "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.9" - jest-regex-util "^28.0.2" - jest-util "^28.1.3" - jest-worker "^28.1.3" - micromatch "^4.0.4" - walker "^1.0.8" - optionalDependencies: - fsevents "^2.3.2" +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== -jest-haste-map@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.6.1.tgz#62655c7a1c1b349a3206441330fb2dbdb4b63803" - integrity sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig== +jest-haste-map@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.7.0.tgz#3c2396524482f5a0506376e6c858c3bbcc17b104" + integrity sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA== dependencies: - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" "@types/graceful-fs" "^4.1.3" "@types/node" "*" anymatch "^3.0.3" fb-watchman "^2.0.0" graceful-fs "^4.2.9" - jest-regex-util "^29.4.3" - jest-util "^29.6.1" - jest-worker "^29.6.1" + jest-regex-util "^29.6.3" + jest-util "^29.7.0" + jest-worker "^29.7.0" micromatch "^4.0.4" walker "^1.0.8" optionalDependencies: fsevents "^2.3.2" -jest-leak-detector@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz#66a902c81318e66e694df7d096a95466cb962f8e" - integrity sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ== +jest-leak-detector@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz#5b7ec0dadfdfec0ca383dc9aa016d36b5ea4c728" + integrity sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw== dependencies: - jest-get-type "^29.4.3" - pretty-format "^29.6.1" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" jest-matcher-utils@^29.5.0: version "29.5.0" @@ -3946,15 +3889,15 @@ jest-matcher-utils@^29.5.0: jest-get-type "^29.4.3" pretty-format "^29.5.0" -jest-matcher-utils@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz#6c60075d84655d6300c5d5128f46531848160b53" - integrity sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA== +jest-matcher-utils@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz#ae8fec79ff249fd592ce80e3ee474e83a6c44f12" + integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g== dependencies: chalk "^4.0.0" - jest-diff "^29.6.1" - jest-get-type "^29.4.3" - pretty-format "^29.6.1" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" jest-message-util@^29.5.0: version "29.5.0" @@ -3971,162 +3914,144 @@ jest-message-util@^29.5.0: slash "^3.0.0" stack-utils "^2.0.3" -jest-message-util@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.6.1.tgz#d0b21d87f117e1b9e165e24f245befd2ff34ff8d" - integrity sha512-KoAW2zAmNSd3Gk88uJ56qXUWbFk787QKmjjJVOjtGFmmGSZgDBrlIL4AfQw1xyMYPNVD7dNInfIbur9B2rd/wQ== +jest-message-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.7.0.tgz#8bc392e204e95dfe7564abbe72a404e28e51f7f3" + integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w== dependencies: "@babel/code-frame" "^7.12.13" - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" "@types/stack-utils" "^2.0.0" chalk "^4.0.0" graceful-fs "^4.2.9" micromatch "^4.0.4" - pretty-format "^29.6.1" + pretty-format "^29.7.0" slash "^3.0.0" stack-utils "^2.0.3" -jest-mock@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.6.1.tgz#049ee26aea8cbf54c764af649070910607316517" - integrity sha512-brovyV9HBkjXAEdRooaTQK42n8usKoSRR3gihzUpYeV/vwqgSoNfrksO7UfSACnPmxasO/8TmHM3w9Hp3G1dgw== +jest-mock@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.7.0.tgz#4e836cf60e99c6fcfabe9f99d017f3fdd50a6347" + integrity sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw== dependencies: - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" "@types/node" "*" - jest-util "^29.6.1" + jest-util "^29.7.0" jest-pnp-resolver@^1.2.2: version "1.2.3" resolved "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz" integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== -jest-regex-util@^28.0.2: - version "28.0.2" - resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-28.0.2.tgz" - integrity sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw== +jest-regex-util@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.6.3.tgz#4a556d9c776af68e1c5f48194f4d0327d24e8a52" + integrity sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg== -jest-regex-util@^29.4.3: - version "29.4.3" - resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz" - integrity sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg== - -jest-resolve-dependencies@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz#b85b06670f987a62515bbf625d54a499e3d708f5" - integrity sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw== +jest-resolve-dependencies@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz#1b04f2c095f37fc776ff40803dc92921b1e88428" + integrity sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA== dependencies: - jest-regex-util "^29.4.3" - jest-snapshot "^29.6.1" + jest-regex-util "^29.6.3" + jest-snapshot "^29.7.0" -jest-resolve@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.6.1.tgz#4c3324b993a85e300add2f8609f51b80ddea39ee" - integrity sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg== +jest-resolve@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.7.0.tgz#64d6a8992dd26f635ab0c01e5eef4399c6bcbc30" + integrity sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA== dependencies: chalk "^4.0.0" graceful-fs "^4.2.9" - jest-haste-map "^29.6.1" + jest-haste-map "^29.7.0" jest-pnp-resolver "^1.2.2" - jest-util "^29.6.1" - jest-validate "^29.6.1" + jest-util "^29.7.0" + jest-validate "^29.7.0" resolve "^1.20.0" resolve.exports "^2.0.0" slash "^3.0.0" -jest-runner@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.6.1.tgz#54557087e7972d345540d622ab5bfc3d8f34688c" - integrity sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ== +jest-runner@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.7.0.tgz#809af072d408a53dcfd2e849a4c976d3132f718e" + integrity sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ== dependencies: - "@jest/console" "^29.6.1" - "@jest/environment" "^29.6.1" - "@jest/test-result" "^29.6.1" - "@jest/transform" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/console" "^29.7.0" + "@jest/environment" "^29.7.0" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" emittery "^0.13.1" graceful-fs "^4.2.9" - jest-docblock "^29.4.3" - jest-environment-node "^29.6.1" - jest-haste-map "^29.6.1" - jest-leak-detector "^29.6.1" - jest-message-util "^29.6.1" - jest-resolve "^29.6.1" - jest-runtime "^29.6.1" - jest-util "^29.6.1" - jest-watcher "^29.6.1" - jest-worker "^29.6.1" + jest-docblock "^29.7.0" + jest-environment-node "^29.7.0" + jest-haste-map "^29.7.0" + jest-leak-detector "^29.7.0" + jest-message-util "^29.7.0" + jest-resolve "^29.7.0" + jest-runtime "^29.7.0" + jest-util "^29.7.0" + jest-watcher "^29.7.0" + jest-worker "^29.7.0" p-limit "^3.1.0" source-map-support "0.5.13" -jest-runtime@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.6.1.tgz#8a0fc9274ef277f3d70ba19d238e64334958a0dc" - integrity sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ== - dependencies: - "@jest/environment" "^29.6.1" - "@jest/fake-timers" "^29.6.1" - "@jest/globals" "^29.6.1" - "@jest/source-map" "^29.6.0" - "@jest/test-result" "^29.6.1" - "@jest/transform" "^29.6.1" - "@jest/types" "^29.6.1" +jest-runtime@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.7.0.tgz#efecb3141cf7d3767a3a0cc8f7c9990587d3d817" + integrity sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ== + dependencies: + "@jest/environment" "^29.7.0" + "@jest/fake-timers" "^29.7.0" + "@jest/globals" "^29.7.0" + "@jest/source-map" "^29.6.3" + "@jest/test-result" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" cjs-module-lexer "^1.0.0" collect-v8-coverage "^1.0.0" glob "^7.1.3" graceful-fs "^4.2.9" - jest-haste-map "^29.6.1" - jest-message-util "^29.6.1" - jest-mock "^29.6.1" - jest-regex-util "^29.4.3" - jest-resolve "^29.6.1" - jest-snapshot "^29.6.1" - jest-util "^29.6.1" + jest-haste-map "^29.7.0" + jest-message-util "^29.7.0" + jest-mock "^29.7.0" + jest-regex-util "^29.6.3" + jest-resolve "^29.7.0" + jest-snapshot "^29.7.0" + jest-util "^29.7.0" slash "^3.0.0" strip-bom "^4.0.0" -jest-snapshot@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.6.1.tgz#0d083cb7de716d5d5cdbe80d598ed2fbafac0239" - integrity sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A== +jest-snapshot@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.7.0.tgz#c2c574c3f51865da1bb329036778a69bf88a6be5" + integrity sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw== dependencies: "@babel/core" "^7.11.6" "@babel/generator" "^7.7.2" "@babel/plugin-syntax-jsx" "^7.7.2" "@babel/plugin-syntax-typescript" "^7.7.2" "@babel/types" "^7.3.3" - "@jest/expect-utils" "^29.6.1" - "@jest/transform" "^29.6.1" - "@jest/types" "^29.6.1" - "@types/prettier" "^2.1.5" + "@jest/expect-utils" "^29.7.0" + "@jest/transform" "^29.7.0" + "@jest/types" "^29.6.3" babel-preset-current-node-syntax "^1.0.0" chalk "^4.0.0" - expect "^29.6.1" + expect "^29.7.0" graceful-fs "^4.2.9" - jest-diff "^29.6.1" - jest-get-type "^29.4.3" - jest-matcher-utils "^29.6.1" - jest-message-util "^29.6.1" - jest-util "^29.6.1" + jest-diff "^29.7.0" + jest-get-type "^29.6.3" + jest-matcher-utils "^29.7.0" + jest-message-util "^29.7.0" + jest-util "^29.7.0" natural-compare "^1.4.0" - pretty-format "^29.6.1" + pretty-format "^29.7.0" semver "^7.5.3" -jest-util@^28.1.3: - version "28.1.3" - resolved "https://registry.npmjs.org/jest-util/-/jest-util-28.1.3.tgz" - integrity sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ== - dependencies: - "@jest/types" "^28.1.3" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" - jest-util@^29.5.0: version "29.5.0" resolved "https://registry.npmjs.org/jest-util/-/jest-util-29.5.0.tgz" @@ -4139,72 +4064,63 @@ jest-util@^29.5.0: graceful-fs "^4.2.9" picomatch "^2.2.3" -jest-util@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.6.1.tgz#c9e29a87a6edbf1e39e6dee2b4689b8a146679cb" - integrity sha512-NRFCcjc+/uO3ijUVyNOQJluf8PtGCe/W6cix36+M3cTFgiYqFOOW5MgN4JOOcvbUhcKTYVd1CvHz/LWi8d16Mg== +jest-util@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" + integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== dependencies: - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" "@types/node" "*" chalk "^4.0.0" ci-info "^3.2.0" graceful-fs "^4.2.9" picomatch "^2.2.3" -jest-validate@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.6.1.tgz#765e684af6e2c86dce950aebefbbcd4546d69f7b" - integrity sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA== +jest-validate@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.7.0.tgz#7bf705511c64da591d46b15fce41400d52147d9c" + integrity sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw== dependencies: - "@jest/types" "^29.6.1" + "@jest/types" "^29.6.3" camelcase "^6.2.0" chalk "^4.0.0" - jest-get-type "^29.4.3" + jest-get-type "^29.6.3" leven "^3.1.0" - pretty-format "^29.6.1" + pretty-format "^29.7.0" -jest-watcher@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.6.1.tgz#7c0c43ddd52418af134c551c92c9ea31e5ec942e" - integrity sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA== +jest-watcher@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.7.0.tgz#7810d30d619c3a62093223ce6bb359ca1b28a2f2" + integrity sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g== dependencies: - "@jest/test-result" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/test-result" "^29.7.0" + "@jest/types" "^29.6.3" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" emittery "^0.13.1" - jest-util "^29.6.1" + jest-util "^29.7.0" string-length "^4.0.1" -jest-worker@^28.1.3: - version "28.1.3" - resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-28.1.3.tgz" - integrity sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" - -jest-worker@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.6.1.tgz#64b015f0e985ef3a8ad049b61fe92b3db74a5319" - integrity sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA== +jest-worker@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a" + integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw== dependencies: "@types/node" "*" - jest-util "^29.6.1" + jest-util "^29.7.0" merge-stream "^2.0.0" supports-color "^8.0.0" -jest@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/jest/-/jest-29.6.1.tgz#74be1cb719c3abe439f2d94aeb18e6540a5b02ad" - integrity sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw== +jest@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-29.7.0.tgz#994676fc24177f088f1c5e3737f5697204ff2613" + integrity sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw== dependencies: - "@jest/core" "^29.6.1" - "@jest/types" "^29.6.1" + "@jest/core" "^29.7.0" + "@jest/types" "^29.6.3" import-local "^3.0.2" - jest-cli "^29.6.1" + jest-cli "^29.7.0" js-tokens@^4.0.0: version "4.0.0" @@ -4236,6 +4152,11 @@ jsesc@~0.5.0: resolved "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz" integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" @@ -4251,11 +4172,18 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== -json5@^2.2.1, json5@^2.2.2: +json5@^2.2.2, json5@^2.2.3: version "2.2.3" resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== +keyv@^4.5.4: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== + dependencies: + json-buffer "3.0.1" + kleur@^3.0.3: version "3.0.3" resolved "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz" @@ -4325,7 +4253,7 @@ long@^4.0.0: resolved "https://registry.npmjs.org/long/-/long-4.0.0.tgz" integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== -long@^5.2.0, long@^5.2.3: +long@^5.2.3: version "5.2.3" resolved "https://registry.npmjs.org/long/-/long-5.2.3.tgz" integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== @@ -4397,6 +4325,18 @@ micromatch@^4.0.4: braces "^3.0.2" picomatch "^2.3.1" +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + mimic-fn@^1.0.0: version "1.2.0" resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz" @@ -4431,6 +4371,13 @@ minimatch@^5.0.1: dependencies: brace-expansion "^2.0.1" +minimatch@^9.0.4: + version "9.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.4.tgz#8e49c731d1749cbec05050ee5145147b32496a51" + integrity sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw== + dependencies: + brace-expansion "^2.0.1" + minimist@1.2.6: version "1.2.6" resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz" @@ -4490,6 +4437,11 @@ natural-compare@^1.4.0: resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== +nested-obj@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/nested-obj/-/nested-obj-0.0.1.tgz#efe1da127c3d00826fa10ec25673e0f9ec1224fd" + integrity sha512-kB1WKTng+IePQhZVs1UXtFaHBx4QEM5a0XKGAzYfCKvdx5DhNjCytNDWMUGpNNpHLotln+tiwcA52kWCIgGq1Q== + next-tick@1, next-tick@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz" @@ -4505,6 +4457,11 @@ node-releases@^2.0.12: resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz" integrity sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ== +node-releases@^2.0.14: + version "2.0.14" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" + integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== + noms@0.0.0: version "0.0.0" resolved "https://registry.npmjs.org/noms/-/noms-0.0.0.tgz" @@ -4663,6 +4620,11 @@ picocolors@^1.0.0: resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== +picocolors@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" + integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== + picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" @@ -4697,10 +4659,10 @@ prettier@^2.6.2: resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== -prettier@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" - integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== +prettier@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.0.tgz#d173ea0524a691d4c0b1181752f2b46724328cdf" + integrity sha512-J9odKxERhCQ10OC2yb93583f6UnYutOeiV5i0zEDS7UGTdUt0u+y8erxl3lBKvwo/JHyyoEdXjwp4dke9oyZ/g== pretty-format@^29.0.0, pretty-format@^29.5.0: version "29.5.0" @@ -4711,12 +4673,12 @@ pretty-format@^29.0.0, pretty-format@^29.5.0: ansi-styles "^5.0.0" react-is "^18.0.0" -pretty-format@^29.6.1: - version "29.6.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.6.1.tgz#ec838c288850b7c4f9090b867c2d4f4edbfb0f3e" - integrity sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog== +pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== dependencies: - "@jest/schemas" "^29.6.0" + "@jest/schemas" "^29.6.3" ansi-styles "^5.0.0" react-is "^18.0.0" @@ -4733,7 +4695,7 @@ prompts@^2.0.1: kleur "^3.0.3" sisteransi "^1.0.5" -protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: +protobufjs@^6.8.8: version "6.11.3" resolved "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz" integrity sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg== @@ -4752,6 +4714,11 @@ protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: "@types/node" ">=13.7.0" long "^4.0.0" +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + punycode@^2.1.0: version "2.3.0" resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" @@ -4824,10 +4791,10 @@ regenerator-runtime@^0.13.11: resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz" integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== -regenerator-transform@^0.15.1: - version "0.15.1" - resolved "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz" - integrity sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg== +regenerator-transform@^0.15.2: + version "0.15.2" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4" + integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg== dependencies: "@babel/runtime" "^7.8.4" @@ -4947,7 +4914,7 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.3.0: +semver@^6.0.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -4964,6 +4931,11 @@ semver@^7.5.3, semver@^7.5.4: dependencies: lru-cache "^6.0.0" +semver@^7.6.0: + version "7.6.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" + integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== + shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" @@ -4990,10 +4962,10 @@ signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== -simple-git@^3.19.1: - version "3.19.1" - resolved "https://registry.npmjs.org/simple-git/-/simple-git-3.19.1.tgz" - integrity sha512-Ck+rcjVaE1HotraRAS8u/+xgTvToTuoMkT9/l9lvuP5jftwnYUp6DwuJzsKErHgfyRk8IB8pqGHWEbM3tLgV1w== +simple-git@^3.24.0: + version "3.24.0" + resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-3.24.0.tgz#33a8c88dc6fa74e53eaf3d6bfc27d0182a49ec00" + integrity sha512-QqAKee9Twv+3k8IFOFfPB2hnk6as6Y6ACUpwCtQvRYBAes23Wv3SZlHVobAzqcE8gfsisCvPw3HGW3HYM+VYYw== dependencies: "@kwsites/file-exists" "^1.1.1" "@kwsites/promise-deferred" "^1.1.1" @@ -5251,10 +5223,10 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -ts-api-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.1.tgz#8144e811d44c749cd65b2da305a032510774452d" - integrity sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A== +ts-api-utils@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" + integrity sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ== ts-codegen@^0.0.0: version "0.0.0" @@ -5278,11 +5250,6 @@ type-detect@4.0.8: resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - type-fest@^0.21.3: version "0.21.3" resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz" @@ -5298,10 +5265,15 @@ type@^2.7.2: resolved "https://registry.npmjs.org/type/-/type-2.7.2.tgz" integrity sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw== -typescript@^5.2.2: - version "5.2.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78" - integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w== +typescript@^5.4.5: + version "5.4.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" + integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== + +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== unicode-canonical-property-names-ecmascript@^2.0.0: version "2.0.0" @@ -5339,6 +5311,14 @@ update-browserslist-db@^1.0.11: escalade "^3.1.1" picocolors "^1.0.0" +update-browserslist-db@^1.0.13: + version "1.0.16" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356" + integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ== + dependencies: + escalade "^3.1.2" + picocolors "^1.0.1" + uri-js@^4.2.2: version "4.4.1" resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" @@ -5379,18 +5359,6 @@ walker@^1.0.8: dependencies: makeerror "1.0.12" -wasm-ast-types@^0.26.2: - version "0.26.2" - resolved "https://registry.yarnpkg.com/wasm-ast-types/-/wasm-ast-types-0.26.2.tgz#704b40c5d2374ccb56354bf7c57cde9a1969d1d9" - integrity sha512-DM34W0Sexd/BreN4g1ZjfaDC8hkKIw3FykV7vT9KdhCoroH+Qncz+jvSEI0fEDqbtJkWiP9Z+u61a5LPObHKaA== - dependencies: - "@babel/runtime" "^7.18.9" - "@babel/types" "7.18.10" - "@jest/transform" "28.1.3" - ast-stringify "0.1.0" - case "1.6.3" - deepmerge "4.2.2" - wasm-pack@^0.12.1: version "0.12.1" resolved "https://registry.yarnpkg.com/wasm-pack/-/wasm-pack-0.12.1.tgz#974c1fbbf5b65c9e135e0d1fba3a97de1a21a489" @@ -5419,7 +5387,7 @@ wrappy@1: resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^4.0.1, write-file-atomic@^4.0.2: +write-file-atomic@^4.0.2: version "4.0.2" resolved "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz" integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==